Files
dafuweng/public/exadmin/assets/xgplayer.51331964.js
2026-03-02 13:44:38 +08:00

279 lines
332 KiB
JavaScript

import{c as ga,g as ha}from"./@babel.6cd0804c.js";var or={exports:{}};(function(lr,ya){(function(s,l){lr.exports=l()})(ga,function(){return function(k){var s={};function l(r){if(s[r])return s[r].exports;var S=s[r]={i:r,l:!1,exports:{}};return k[r].call(S.exports,S,S.exports,l),S.l=!0,S.exports}return l.m=k,l.c=s,l.d=function(r,S,T){l.o(r,S)||Object.defineProperty(r,S,{enumerable:!0,get:T})},l.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},l.t=function(r,S){if(S&1&&(r=l(r)),S&8||S&4&&typeof r=="object"&&r&&r.__esModule)return r;var T=Object.create(null);if(l.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:r}),S&2&&typeof r!="string")for(var u in r)l.d(T,u,function(C){return r[C]}.bind(null,u));return T},l.n=function(r){var S=r&&r.__esModule?function(){return r.default}:function(){return r};return l.d(S,"a",S),S},l.o=function(r,S){return Object.prototype.hasOwnProperty.call(r,S)},l.p="",l(l.s=79)}([function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0}),s.util=s.PresentationMode=void 0,s.createDom=u,s.hasClass=C,s.addClass=g,s.removeClass=e,s.toggleClass=t,s.findDom=c,s.padStart=a,s.format=i,s.event=f,s.typeOf=v,s.deepCopy=b,s.getBgImage=x,s.copyDom=_,s._setInterval=o,s._clearInterval=h,s.createImgBtn=p,s.isWeiXin=O,s.isUc=F,s.computeWatchDur=L,s.offInDestroy=E,s.on=D,s.once=m,s.getBuffered2=P,s.checkIsBrowser=z,s.setStyle=H,s.checkWebkitSetPresentationMode=K;var r=l(7),S=T(r);function T(A){return A&&A.__esModule?A:{default:A}}function u(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",U=document.createElement(A);return U.className=j,U.innerHTML=M,Object.keys(B).forEach(function(N){var V=N,X=B[N];A==="video"||A==="audio"?X&&U.setAttribute(V,X):U.setAttribute(V,X)}),U}function C(A,M){return A?A.classList?Array.prototype.some.call(A.classList,function(B){return B===M}):A.className?!!A.className.match(new RegExp("(\\s|^)"+M+"(\\s|$)")):!1:!1}function g(A,M){!A||(A.classList?M.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(B){B&&A.classList.add(B)}):C(A,M)||(A.className+=" "+M))}function e(A,M){!A||(A.classList?M.split(/\s+/g).forEach(function(B){A.classList.remove(B)}):C(A,M)&&M.split(/\s+/g).forEach(function(B){var j=new RegExp("(\\s|^)"+B+"(\\s|$)");A.className=A.className.replace(j," ")}))}function t(A,M){!A||M.split(/\s+/g).forEach(function(B){C(A,B)?e(A,B):g(A,B)})}function c(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,M=arguments[1],B=void 0;try{B=A.querySelector(M)}catch{M.indexOf("#")===0&&(B=A.getElementById(M.slice(1)))}return B}function a(A,M,B){for(var j=String(B),U=M>>0,N=Math.ceil(U/j.length),V=[],X=String(A);N--;)V.push(j);return V.join("").substring(0,U-X.length)+X}function i(A){if(window.isNaN(A))return"";var M=a(Math.floor(A/3600),2,0),B=a(Math.floor((A-M*3600)/60),2,0),j=a(Math.floor(A-M*3600-B*60),2,0);return(M==="00"?[B,j]:[M,B,j]).join(":")}function f(A){if(A.touches){var M=A.touches[0]||A.changedTouches[0];A.clientX=M.clientX||0,A.clientY=M.clientY||0,A.offsetX=M.pageX-M.target.offsetLeft,A.offsetY=M.pageY-M.target.offsetTop}A._target=A.target||A.srcElement}function v(A){return Object.prototype.toString.call(A).match(/([^\s.*]+)(?=]$)/g)[0]}function b(A,M){if(v(M)==="Object"&&v(A)==="Object")return Object.keys(M).forEach(function(B){v(M[B])==="Object"&&!(M[B]instanceof Node)?A[B]?b(A[B],M[B]):A[B]=M[B]:v(M[B])==="Array"?A[B]=v(A[B])==="Array"?A[B].concat(M[B]):M[B]:A[B]=M[B]}),A}function x(A){var M=(A.currentStyle||window.getComputedStyle(A,null)).backgroundImage;if(!M||M==="none")return"";var B=document.createElement("a");return B.href=M.replace(/url\("|"\)/g,""),B.href}function _(A){if(A&&A.nodeType===1){var M=document.createElement(A.tagName);return Array.prototype.forEach.call(A.attributes,function(B){M.setAttribute(B.name,B.value)}),A.innerHTML&&(M.innerHTML=A.innerHTML),M}else return""}function o(A,M,B,j){A._interval[M]||(A._interval[M]=setInterval(B.bind(A),j))}function h(A,M){clearInterval(A._interval[M]),A._interval[M]=null}function p(A,M,B,j){var U=u("xg-"+A,"",{},"xgplayer-"+A+"-img");if(U.style.backgroundImage='url("'+M+'")',B&&j){var N=void 0,V=void 0,X=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(G){return B.indexOf(G)>-1&&j.indexOf(G)>-1?(N=Number(B.slice(0,B.indexOf(G)).trim()),V=Number(j.slice(0,j.indexOf(G)).trim()),X=G,!1):!0}),U.style.width=""+N+X,U.style.height=""+V+X,U.style.backgroundSize=""+N+X+" "+V+X,A==="start"?U.style.margin="-"+V/2+X+" auto auto -"+N/2+X:U.style.margin="auto 5px auto 5px"}return U}function O(){var A=window.navigator.userAgent.toLowerCase();return A.indexOf("micromessenger")>-1}function F(){var A=window.navigator.userAgent.toLowerCase();return A.indexOf("ucbrowser")>-1}function L(){for(var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=[],B=0;B<A.length;B++)if(!(!A[B].end||A[B].begin<0||A[B].end<0||A[B].end<A[B].begin))if(M.length<1)M.push({begin:A[B].begin,end:A[B].end});else for(var j=0;j<M.length;j++){var U=A[B].begin,N=A[B].end;if(N<M[j].begin){M.splice(j,0,{begin:U,end:N});break}else if(U>M[j].end){if(j>M.length-2){M.push({begin:U,end:N});break}}else{var V=M[j].begin,X=M[j].end;M[j].begin=Math.min(U,V),M[j].end=Math.max(N,X);break}}for(var G=0,te=0;te<M.length;te++)G+=M[te].end-M[te].begin;return G}function E(A,M,B,j){function U(){A.off(M,B),A.off(j,U)}A.once(j,U)}function D(A,M,B,j){if(j)A.on(M,B),E(A,M,B,j);else{var U=function N(V){B(V),A.off(M,N)};A.on(M,U)}}function m(A,M,B,j){if(j)A.once(M,B),E(A,M,B,j);else{var U=function N(V){B(V),A.off(M,N)};A.once(M,U)}}function P(A){for(var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,B=[],j=0;j<A.length;j++)B.push({start:A.start(j)<.5?0:A.start(j),end:A.end(j)});B.sort(function(G,te){var ue=G.start-te.start;return ue||te.end-G.end});var U=[];if(M)for(var N=0;N<B.length;N++){var V=U.length;if(V){var X=U[V-1].end;B[N].start-X<M?B[N].end>X&&(U[V-1].end=B[N].end):U.push(B[N])}else U.push(B[N])}else U=B;return new S.default(U)}function z(){return!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined")}function H(A,M,B){var j=A.style;try{j[M]=B}catch{j.setProperty(M,B)}}s.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"};function K(A){return typeof A.webkitSetPresentationMode=="function"}s.util={createDom:u,hasClass:C,addClass:g,removeClass:e,toggleClass:t,findDom:c,padStart:a,format:i,event:f,typeOf:v,deepCopy:b,getBgImage:x,copyDom:_,setInterval:o,clearInterval:h,createImgBtn:p,isWeiXin:O,isUc:F,computeWatchDur:L,offInDestroy:E,on:D,once:m,getBuffered2:P,checkIsBrowser:z,setStyle:H}},function(k,s){k.exports=function(S){var T=[];return T.toString=function(){return this.map(function(C){var g=l(C,S);return C[2]?"@media "+C[2]+"{"+g+"}":g}).join("")},T.i=function(u,C){typeof u=="string"&&(u=[[null,u,""]]);for(var g={},e=0;e<this.length;e++){var t=this[e][0];typeof t=="number"&&(g[t]=!0)}for(e=0;e<u.length;e++){var c=u[e];(typeof c[0]!="number"||!g[c[0]])&&(C&&!c[2]?c[2]=C:C&&(c[2]="("+c[2]+") and ("+C+")"),T.push(c))}},T};function l(S,T){var u=S[1]||"",C=S[3];if(!C)return u;if(T&&typeof btoa=="function"){var g=r(C),e=C.sources.map(function(t){return"/*# sourceURL="+C.sourceRoot+t+" */"});return[u].concat(e).concat([g]).join(`
`)}return[u].join(`
`)}function r(S){var T=btoa(unescape(encodeURIComponent(JSON.stringify(S)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,"+T;return"/*# "+u+" */"}},function(k,s,l){var r={},S=function(L){var E;return function(){return typeof E=="undefined"&&(E=L.apply(this,arguments)),E}},T=S(function(){return window&&document&&document.all&&!window.atob}),u=function(L){return document.querySelector(L)},C=function(L){var E={};return function(D){if(typeof D=="function")return D();if(typeof E[D]=="undefined"){var m=u.call(this,D);if(window.HTMLIFrameElement&&m instanceof window.HTMLIFrameElement)try{m=m.contentDocument.head}catch{m=null}E[D]=m}return E[D]}}(),g=null,e=0,t=[],c=l(36);k.exports=function(L,E){if(typeof DEBUG!="undefined"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");E=E||{},E.attrs=typeof E.attrs=="object"?E.attrs:{},!E.singleton&&typeof E.singleton!="boolean"&&(E.singleton=T()),E.insertInto||(E.insertInto="head"),E.insertAt||(E.insertAt="bottom");var D=i(L,E);return a(D,E),function(P){for(var z=[],H=0;H<D.length;H++){var K=D[H],A=r[K.id];A.refs--,z.push(A)}if(P){var M=i(P,E);a(M,E)}for(var H=0;H<z.length;H++){var A=z[H];if(A.refs===0){for(var B=0;B<A.parts.length;B++)A.parts[B]();delete r[A.id]}}}};function a(L,E){for(var D=0;D<L.length;D++){var m=L[D],P=r[m.id];if(P){P.refs++;for(var z=0;z<P.parts.length;z++)P.parts[z](m.parts[z]);for(;z<m.parts.length;z++)P.parts.push(o(m.parts[z],E))}else{for(var H=[],z=0;z<m.parts.length;z++)H.push(o(m.parts[z],E));r[m.id]={id:m.id,refs:1,parts:H}}}}function i(L,E){for(var D=[],m={},P=0;P<L.length;P++){var z=L[P],H=E.base?z[0]+E.base:z[0],K=z[1],A=z[2],M=z[3],B={css:K,media:A,sourceMap:M};m[H]?m[H].parts.push(B):D.push(m[H]={id:H,parts:[B]})}return D}function f(L,E){var D=C(L.insertInto);if(!D)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var m=t[t.length-1];if(L.insertAt==="top")m?m.nextSibling?D.insertBefore(E,m.nextSibling):D.appendChild(E):D.insertBefore(E,D.firstChild),t.push(E);else if(L.insertAt==="bottom")D.appendChild(E);else if(typeof L.insertAt=="object"&&L.insertAt.before){var P=C(L.insertInto+" "+L.insertAt.before);D.insertBefore(E,P)}else throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`)}function v(L){if(L.parentNode===null)return!1;L.parentNode.removeChild(L);var E=t.indexOf(L);E>=0&&t.splice(E,1)}function b(L){var E=document.createElement("style");return L.attrs.type="text/css",_(E,L.attrs),f(L,E),E}function x(L){var E=document.createElement("link");return L.attrs.type="text/css",L.attrs.rel="stylesheet",_(E,L.attrs),f(L,E),E}function _(L,E){Object.keys(E).forEach(function(D){L.setAttribute(D,E[D])})}function o(L,E){var D,m,P,z;if(E.transform&&L.css)if(z=E.transform(L.css),z)L.css=z;else return function(){};if(E.singleton){var H=e++;D=g||(g=b(E)),m=p.bind(null,D,H,!1),P=p.bind(null,D,H,!0)}else L.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(D=x(E),m=F.bind(null,D,E),P=function(){v(D),D.href&&URL.revokeObjectURL(D.href)}):(D=b(E),m=O.bind(null,D),P=function(){v(D)});return m(L),function(A){if(A){if(A.css===L.css&&A.media===L.media&&A.sourceMap===L.sourceMap)return;m(L=A)}else P()}}var h=function(){var L=[];return function(E,D){return L[E]=D,L.filter(Boolean).join(`
`)}}();function p(L,E,D,m){var P=D?"":m.css;if(L.styleSheet)L.styleSheet.cssText=h(E,P);else{var z=document.createTextNode(P),H=L.childNodes;H[E]&&L.removeChild(H[E]),H.length?L.insertBefore(z,H[E]):L.appendChild(z)}}function O(L,E){var D=E.css,m=E.media;if(m&&L.setAttribute("media",m),L.styleSheet)L.styleSheet.cssText=D;else{for(;L.firstChild;)L.removeChild(L.firstChild);L.appendChild(document.createTextNode(D))}}function F(L,E,D){var m=D.css,P=D.sourceMap,z=E.convertToAbsoluteUrls===void 0&&P;(E.convertToAbsoluteUrls||z)&&(m=c(m)),P&&(m+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(P))))+" */");var H=new Blob([m],{type:"text/css"}),K=L.href;L.href=URL.createObjectURL(H),K&&URL.revokeObjectURL(K)}},function(k,s,l){var r=l(24)();k.exports=function(S){return S!==r&&S!==null}},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(8);function S(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}var T={network:{code:1,msg:"\u89C6\u9891\u4E0B\u8F7D\u9519\u8BEF",remark:"\u53EA\u8981\u89C6\u9891\u4E0B\u8F7D\u9519\u8BEF\u5C31\u4F7F\u7528\u6B64\u7C7B\u578B\uFF0C\u65E0\u8BBA\u662Fvideo\u672C\u8EAB\u7684\u8D85\u65F6\u8FD8\u662Fxhr\u7684\u5206\u6BB5\u8BF7\u6C42\u8D85\u65F6\u6216\u8005\u8D44\u6E90\u4E0D\u5B58\u5728"},mse:{code:2,msg:"\u6D41\u8FFD\u52A0\u9519\u8BEF",remark:"\u8FFD\u52A0\u6D41\u7684\u65F6\u5019\u5982\u679C\u7C7B\u578B\u4E0D\u5BF9\u3001\u65E0\u6CD5\u88AB\u6B63\u786E\u89E3\u7801\u5219\u4F1A\u89E6\u53D1\u6B64\u7C7B\u9519\u8BEF"},parse:{code:3,msg:"\u89E3\u6790\u9519\u8BEF",remark:"mp4\u3001hls\u3001flv\u6211\u4EEC\u90FD\u662F\u4F7F\u7528js\u8FDB\u884C\u683C\u5F0F\u89E3\u6790\uFF0C\u5982\u679C\u89E3\u6790\u5931\u8D25\u5219\u4F1A\u89E6\u53D1\u6B64\u7C7B\u9519\u8BEF"},format:{code:4,msg:"\u683C\u5F0F\u9519\u8BEF",remark:"\u5982\u679C\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u7684\u683C\u5F0F\u5BFC\u81F4\u64AD\u653E\u9519\u8BEF"},decoder:{code:5,msg:"\u89E3\u7801\u9519\u8BEF",remark:"\u6D4F\u89C8\u5668\u89E3\u7801\u5F02\u5E38\u4F1A\u629B\u51FA\u6B64\u7C7B\u578B\u9519\u8BEF"},runtime:{code:6,msg:"\u8BED\u6CD5\u9519\u8BEF",remark:"\u64AD\u653E\u5668\u8BED\u6CD5\u9519\u8BEF"},timeout:{code:7,msg:"\u64AD\u653E\u8D85\u65F6",remark:"\u64AD\u653E\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u6B63\u5E38\u8BF7\u6C42\u4E0B\u4E00\u4E2A\u5206\u6BB5\u5BFC\u81F4\u64AD\u653E\u4E2D\u65AD"},other:{code:8,msg:"\u5176\u4ED6\u9519\u8BEF",remark:"\u4E0D\u53EF\u77E5\u7684\u9519\u8BEF\u6216\u88AB\u5FFD\u7565\u7684\u9519\u8BEF\u7C7B\u578B"}},u=function C(g,e,t,c,a,i,f,v){var b=arguments.length>8&&arguments[8]!==void 0?arguments[8]:{line:"",handle:"",msg:"",version:""},x=arguments[9],_=arguments[10];S(this,C);var o={};if(arguments.length>1)o.playerVersion=r.version,o.errorType=g,o.domain=document.domain,o.duration=t,o.currentTime=e,o.networkState=c,o.readyState=a,o.currentSrc=f,o.src=i,o.ended=v,o.errd=b,o.ex=(T[g]||{}).msg,o.errorCode=x,o.mediaError=_;else{var h=arguments[0];Object.keys(h).map(function(p){o[p]=h[p]}),o.ex=(h.type&&T[h.type]||{}).msg}return o};s.default=u,k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r={};Object.defineProperty(r,"device",{get:function(){var T=r.os;return T.isPc?"pc":"mobile"}}),Object.defineProperty(r,"browser",{get:function(){var T=navigator.userAgent.toLowerCase(),u={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(u).filter(function(C){return u[C].test(T)}))[0]||""}}),Object.defineProperty(r,"os",{get:function(){var T=navigator.userAgent,u=/(?:Windows Phone)/.test(T),C=/(?:SymbianOS)/.test(T)||u,g=/(?:Android)/.test(T),e=/(?:Firefox)/.test(T),t=/(?:iPad|PlayBook)/.test(T)||g&&!/(?:Mobile)/.test(T)||e&&/(?:Tablet)/.test(T),c=/(?:iPhone)/.test(T)&&!t,a=!c&&!g&&!C&&!t;return{isTablet:t,isPhone:c,isAndroid:g,isPc:a,isSymbian:C,isWindowsPhone:u,isFireFox:e}}}),s.default=r,k.exports=s.default},function(k,s,l){var r=void 0;k.exports=function(S){return S!==r&&S!==null}},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){function u(C,g){for(var e=0;e<g.length;e++){var t=g[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(C,t.key,t)}}return function(C,g,e){return g&&u(C.prototype,g),e&&u(C,e),C}}();function S(u,C){if(!(u instanceof C))throw new TypeError("Cannot call a class as a function")}var T=function(){function u(C){S(this,u),this.bufferedList=C}return r(u,[{key:"start",value:function(g){return this.bufferedList[g].start}},{key:"end",value:function(g){return this.bufferedList[g].end}},{key:"length",get:function(){return this.bufferedList.length}}]),u}();s.default=T,k.exports=s.default},function(k){k.exports=JSON.parse('{"version":"2.31.6"}')},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){function L(E,D){for(var m=0;m<D.length;m++){var P=D[m];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,D,m){return D&&L(E.prototype,D),m&&L(E,m),E}}(),S=function L(E,D,m){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,D);if(P===void 0){var z=Object.getPrototypeOf(E);return z===null?void 0:L(z,D,m)}else{if("value"in P)return P.value;var H=P.get;return H===void 0?void 0:H.call(m)}},T=l(11),u=o(T),C=l(0),g=l(5),e=o(g),t=l(7),c=o(t),a=l(4),i=o(a),f=l(31),v=o(f),b=l(10),x=o(b);l(34);var _=l(8);function o(L){return L&&L.__esModule?L:{default:L}}function h(L,E){if(!(L instanceof E))throw new TypeError("Cannot call a class as a function")}function p(L,E){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:L}function O(L,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);L.prototype=Object.create(E&&E.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(L,E):L.__proto__=E)}var F=function(L){O(E,L);function E(D){h(this,E);var m=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,D));if(m.config=(0,C.deepCopy)({width:600,height:337.5,ignores:[],whitelist:[],lang:(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase(),inactive:3e3,volume:.6,controls:!0,controlsList:["nodownload"]},D),m.version=_.version,m.userTimer=null,m.waitTimer=null,m.history=[],m.isProgressMoving=!1,m.root=(0,C.findDom)(document,"#"+m.config.id),m.controls=(0,C.createDom)("xg-controls","",{unselectable:"on",onselectstart:"return false"},"xgplayer-controls"),m.config.isShowControl&&(m.controls.style.display="none"),!m.root){var P=m.config.el;if(P&&P.nodeType===1)m.root=P;else{var z;return m.emit("error",new i.default({type:"use",errd:{line:45,handle:"Constructor",msg:"container id can't be empty"},vid:m.config.vid})),console.error("container id can't be empty"),z=!1,p(m,z)}}if((0,C.addClass)(m.root,"xgplayer xgplayer-"+e.default.device+" xgplayer-nostart xgplayer-pause "+(m.config.controls?"":"xgplayer-no-controls")),m.root.appendChild(m.controls),m.config.fluid?(m.root.style["max-width"]="100%",m.root.style.width="100%",m.root.style.height="0",m.root.style["padding-top"]=m.config.height*100/m.config.width+"%",m.video.style.position="absolute",m.video.style.top="0",m.video.style.left="0"):(m.config.width&&(typeof m.config.width!="number"?m.root.style.width=m.config.width:m.root.style.width=m.config.width+"px"),m.config.height&&(typeof m.config.height!="number"?m.root.style.height=m.config.height:m.root.style.height=m.config.height+"px")),m.config.execBeforePluginsCall&&m.config.execBeforePluginsCall.forEach(function(M){M.call(m,m)}),m.config.closeI18n||E.install(x.default.name,x.default.method),m.config.controlStyle&&(0,C.typeOf)(m.config.controlStyle)==="String"){var H=m;fetch(H.config.controlStyle,{method:"GET",headers:{Accept:"application/json"}}).then(function(M){M.ok&&M.json().then(function(B){for(var j in B)B.hasOwnProperty(j)&&(H.config[j]=B[j]);H.pluginsCall()})}).catch(function(M){console.log("Fetch\u9519\u8BEF:"+M)})}else m.pluginsCall();m.config.controlPlugins&&E.controlsRun(m.config.controlPlugins,m),m.ev.forEach(function(M){var B=Object.keys(M)[0],j=m[M[B]];j&&m.on(B,j)}),["focus","blur"].forEach(function(M){m.on(M,m["on"+M.charAt(0).toUpperCase()+M.slice(1)])});var K=m;m.mousemoveFunc=function(){K.emit("focus"),K.config.closeFocusVideoFocus||K.video.focus()},m.root.addEventListener("mousemove",m.mousemoveFunc),m.playFunc=function(){K.emit("focus"),K.config.closePlayVideoFocus||K.video.focus()},K.once("play",m.playFunc),m.getVideoSize=function(){if(this.video.videoWidth&&this.video.videoHeight){var M=K.root.getBoundingClientRect();K.config.fitVideoSize==="auto"?M.width/M.height>this.video.videoWidth/this.video.videoHeight?K.root.style.height=this.video.videoHeight/this.video.videoWidth*M.width+"px":K.root.style.width=this.video.videoWidth/this.video.videoHeight*M.height+"px":K.config.fitVideoSize==="fixWidth"?K.root.style.height=this.video.videoHeight/this.video.videoWidth*M.width+"px":K.config.fitVideoSize==="fixHeight"&&(K.root.style.width=this.video.videoWidth/this.video.videoHeight*M.height+"px")}},K.once("loadeddata",m.getVideoSize),setTimeout(function(){m.emit("ready"),m.isReady=!0},0),m.config.videoInit&&(0,C.hasClass)(m.root,"xgplayer-nostart")&&m.start(),K.config.rotate&&(K.on("requestFullscreen",m.updateRotateDeg),K.on("exitFullscreen",m.updateRotateDeg));function A(){K.root.removeEventListener("mousemove",K.mousemoveFunc),K.off("destroy",A)}return K.once("destroy",A),m}return r(E,[{key:"attachVideo",value:function(){var m=this;this.video&&this.video.nodeType===1&&this.root.insertBefore(this.video,this.root.firstChild),setTimeout(function(){m.emit("complete"),m.danmu&&typeof m.danmu.resize=="function"&&m.danmu.resize()},1)}},{key:"start",value:function(){var m=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.url;if(!!this.video){var z=this;if(!P||P===""){this.emit("urlNull");return}this.canPlayFunc=function(){z.off("canplay",z.canPlayFunc);var H=z.video.play();H!==void 0&&H&&H.then(function(){z.emit("autoplay started")}).catch(function(){z.emit("autoplay was prevented"),(0,C.addClass)(z.root,"xgplayer-is-autoplay")})},(0,C.typeOf)(P)!=="Array"?(0,C.typeOf)(P)==="String"&&P.indexOf("blob:")>-1&&P===this.video.src||(this.video.src=P):P.forEach(function(H){m.video.appendChild((0,C.createDom)("source","",{src:""+H.src,type:""+(H.type||"")}))}),this.config.autoplay&&(e.default.os.isPhone?this.canPlayFunc():this.on("canplay",this.canPlayFunc)),this.config.disableStartLoad||this.video.load(),this.attachVideo()}}},{key:"reload",value:function(){this.video.load(),this.reloadFunc=function(){var m=this.play();m!==void 0&&m&&m.catch(function(P){})},this.once("loadeddata",this.reloadFunc)}},{key:"destroy",value:function(){var m=this,P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,z=this;clearInterval(this.bulletResizeTimer);for(var H in this._interval)clearInterval(this._interval[H]),this._interval[H]=null;this.checkTimer&&clearInterval(this.checkTimer),this.waitTimer&&clearTimeout(this.waitTimer),this.ev.forEach(function(A){var M=Object.keys(A)[0],B=m[A[M]];B&&m.off(M,B)}),this.loadeddataFunc&&this.off("loadeddata",this.loadeddataFunc),this.reloadFunc&&this.off("loadeddata",this.reloadFunc),this.replayFunc&&this.off("play",this.replayFunc),this.playFunc&&this.off("play",this.playFunc),this.getVideoSize&&this.off("loadeddata",this.getVideoSize),["focus","blur"].forEach(function(A){m.off(A,m["on"+A.charAt(0).toUpperCase()+A.slice(1)])}),(!this.config.keyShortcut||this.config.keyShortcut==="on")&&["video","controls"].forEach(function(A){m[A]&&m[A].removeEventListener("keydown",function(M){z.onKeydown(M,z)})});function K(){if(this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),P){this.root.innerHTML="";var A=this.root.className.split(" ");A.length>0?this.root.className=A.filter(function(B){return B.indexOf("xgplayer")<0}).join(" "):this.root.className=""}for(var M in this)delete this[M];(0,v.default)(this)}this.paused?K.call(this):(this.pause(),this.once("pause",K)),S(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"destroy",this).call(this)}},{key:"replay",value:function(){var m=this._replay;if((0,C.removeClass)(this.root,"xgplayer-ended"),e.default.browser.indexOf("ie")>-1&&(this.emit("play"),this.emit("playing")),m&&m instanceof Function)m();else{this.currentTime=0;var P=this.play();P!==void 0&&P&&P.catch(function(z){})}}},{key:"userGestureTrigEvent",value:function(m,P){var z=this,H=function(A,M){z.emit(A,M)};this.config.userGestureEventMiddleware&&typeof this.config.userGestureEventMiddleware[m]=="function"?this.config.userGestureEventMiddleware[m].call(this,this,m,P,H):H.call(this,m,P)}},{key:"pluginsCall",value:function(){var m=this;E.plugins.s_i18n&&E.plugins.s_i18n.call(this,this);var P=this;if(E.plugins){var z=this.config.ignores;Object.keys(E.plugins).forEach(function(H){var K=E.plugins[H];!K||typeof K!="function"?console.warn("plugin name",H,"is invalid"):!z.some(function(A){return H===A||H==="s_"+A})&&H!=="s_i18n"&&(["pc","tablet","mobile"].some(function(A){return A===H})?H===e.default.device&&setTimeout(function(){!P.video||K.call(P,P)},0):K.call(m,m))})}}},{key:"onFocus",value:function(){var m=this;(0,C.hasClass)(this.root,"xgplayer-inactive")&&m.emit("controlShow"),(0,C.removeClass)(this.root,"xgplayer-inactive"),m.userTimer&&clearTimeout(m.userTimer),m.userTimer=setTimeout(function(){m.emit("blur")},m.config.inactive)}},{key:"onBlur",value:function(){(this.config.enablePausedInactive||!this.paused)&&!this.ended&&!this.config.closeInactive&&((0,C.hasClass)(this.root,"xgplayer-inactive")||this.emit("controlHide"),(0,C.addClass)(this.root,"xgplayer-inactive"))}},{key:"onPlay",value:function(){(0,C.addClass)(this.root,"xgplayer-isloading"),(0,C.addClass)(this.root,"xgplayer-playing"),(0,C.removeClass)(this.root,"xgplayer-pause")}},{key:"onPause",value:function(){(0,C.addClass)(this.root,"xgplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}},{key:"onEnded",value:function(){(0,C.addClass)(this.root,"xgplayer-ended"),(0,C.removeClass)(this.root,"xgplayer-playing")}},{key:"onSeeking",value:function(){this.isSeeking=!0,this.onWaiting()}},{key:"onSeeked",value:function(){var m=this;this.once("timeupdate",function(){m.isSeeking=!1}),this.waitTimer&&clearTimeout(this.waitTimer),(0,C.removeClass)(this.root,"xgplayer-isloading")}},{key:"onWaiting",value:function(){var m=this;m.waitTimer&&clearTimeout(m.waitTimer),m.checkTimer&&(clearInterval(m.checkTimer),m.checkTimer=null);var P=m.currentTime;m.waitTimer=setTimeout(function(){(0,C.addClass)(m.root,"xgplayer-isloading"),m.checkTimer=setInterval(function(){m.currentTime!==P&&((0,C.removeClass)(m.root,"xgplayer-isloading"),clearInterval(m.checkTimer),m.checkTimer=null)},1e3)},500)}},{key:"onPlaying",value:function(){this.paused||(this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),(0,C.removeClass)(this.root,"xgplayer-isloading xgplayer-nostart xgplayer-pause xgplayer-ended xgplayer-is-error xgplayer-replay"),(0,C.addClass)(this.root,"xgplayer-playing"))}}],[{key:"install",value:function(m,P){!(0,C.checkIsBrowser)()||(E.plugins||(E.plugins={}),E.plugins[m]||(E.plugins[m]=P))}},{key:"installAll",value:function(m){for(var P=0;P<m.length;P++)E.install(m[P].name,m[P].method)}},{key:"use",value:function(m,P){E.plugins||(E.plugins={}),E.plugins[m]=P}},{key:"useAll",value:function(m){for(var P in m)E.use(m[P].name,m[P].method)}},{key:"controlsRun",value:function(m,P){m.forEach(function(z){z.method.call(P)})}}]),E}(u.default);F.util=C.util,F.sniffer=e.default,F.Errors=i.default,F.XgplayerTimeRange=c.default,s.default=F,k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C={};C.en={HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"Pip",MINIPLAYER:"Miniplayer",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",MINIPLAYER_DRAG:"Click and hold to drag",AIRPLAY_TIPS:"Airplay"},C["zh-cn"]={HAVE_NOTHING:"\u6CA1\u6709\u5173\u4E8E\u97F3\u9891/\u89C6\u9891\u662F\u5426\u5C31\u7EEA\u7684\u4FE1\u606F",HAVE_METADATA:"\u97F3\u9891/\u89C6\u9891\u7684\u5143\u6570\u636E\u5DF2\u5C31\u7EEA",HAVE_CURRENT_DATA:"\u5173\u4E8E\u5F53\u524D\u64AD\u653E\u4F4D\u7F6E\u7684\u6570\u636E\u662F\u53EF\u7528\u7684\uFF0C\u4F46\u6CA1\u6709\u8DB3\u591F\u7684\u6570\u636E\u6765\u64AD\u653E\u4E0B\u4E00\u5E27/\u6BEB\u79D2",HAVE_FUTURE_DATA:"\u5F53\u524D\u53CA\u81F3\u5C11\u4E0B\u4E00\u5E27\u7684\u6570\u636E\u662F\u53EF\u7528\u7684",HAVE_ENOUGH_DATA:"\u53EF\u7528\u6570\u636E\u8DB3\u4EE5\u5F00\u59CB\u64AD\u653E",NETWORK_EMPTY:"\u97F3\u9891/\u89C6\u9891\u5C1A\u672A\u521D\u59CB\u5316",NETWORK_IDLE:"\u97F3\u9891/\u89C6\u9891\u662F\u6D3B\u52A8\u7684\u4E14\u5DF2\u9009\u53D6\u8D44\u6E90\uFF0C\u4F46\u5E76\u672A\u4F7F\u7528\u7F51\u7EDC",NETWORK_LOADING:"\u6D4F\u89C8\u5668\u6B63\u5728\u4E0B\u8F7D\u6570\u636E",NETWORK_NO_SOURCE:"\u672A\u627E\u5230\u97F3\u9891/\u89C6\u9891\u6765\u6E90",MEDIA_ERR_ABORTED:"\u53D6\u56DE\u8FC7\u7A0B\u88AB\u7528\u6237\u4E2D\u6B62",MEDIA_ERR_NETWORK:"\u5F53\u4E0B\u8F7D\u65F6\u53D1\u751F\u9519\u8BEF",MEDIA_ERR_DECODE:"\u5F53\u89E3\u7801\u65F6\u53D1\u751F\u9519\u8BEF",MEDIA_ERR_SRC_NOT_SUPPORTED:"\u4E0D\u652F\u6301\u7684\u97F3\u9891/\u89C6\u9891\u683C\u5F0F",REPLAY:"\u91CD\u64AD",ERROR:"\u7F51\u7EDC\u8FDE\u63A5\u4F3C\u4E4E\u51FA\u73B0\u4E86\u95EE\u9898",PLAY_TIPS:"\u64AD\u653E",PAUSE_TIPS:"\u6682\u505C",PLAYNEXT_TIPS:"\u4E0B\u4E00\u96C6",DOWNLOAD_TIPS:"\u4E0B\u8F7D",ROTATE_TIPS:"\u65CB\u8F6C",RELOAD_TIPS:"\u91CD\u65B0\u8F7D\u5165",FULLSCREEN_TIPS:"\u8FDB\u5165\u5168\u5C4F",EXITFULLSCREEN_TIPS:"\u9000\u51FA\u5168\u5C4F",CSSFULLSCREEN_TIPS:"\u8FDB\u5165\u6837\u5F0F\u5168\u5C4F",EXITCSSFULLSCREEN_TIPS:"\u9000\u51FA\u6837\u5F0F\u5168\u5C4F",TEXTTRACK:"\u5B57\u5E55",PIP:"\u753B\u4E2D\u753B",MINIPLAYER:"\u8FF7\u4F60\u64AD\u653E\u5668",SCREENSHOT:"\u622A\u56FE",LIVE:"\u6B63\u5728\u76F4\u64AD",OFF:"\u5173\u95ED",MINIPLAYER_DRAG:"\u70B9\u51FB\u6309\u4F4F\u53EF\u62D6\u52A8\u89C6\u9891",AIRPLAY_TIPS:"\u9694\u7A7A\u64AD\u653E"},C["zh-hk"]={HAVE_NOTHING:"\u6C92\u6709\u95DC\u65BC\u97F3\u983B/\u8996\u983B\u662F\u5426\u5C31\u7DD2\u7684\u4FE1\u606F",HAVE_METADATA:"\u97F3\u983B/\u8996\u983B\u7684\u5143\u6578\u64DA\u5DF2\u5C31\u7DD2",HAVE_CURRENT_DATA:"\u95DC\u65BC\u7576\u524D\u64AD\u653E\u4F4D\u7F6E\u7684\u6578\u64DA\u662F\u53EF\u7528\u7684\uFF0C\u4F46\u6C92\u6709\u8DB3\u5920\u7684\u6578\u64DA\u4F86\u64AD\u653E\u4E0B\u58F9\u5E40/\u6BEB\u79D2",HAVE_FUTURE_DATA:"\u7576\u524D\u53CA\u81F3\u5C11\u4E0B\u58F9\u5E40\u7684\u6578\u64DA\u662F\u53EF\u7528\u7684",HAVE_ENOUGH_DATA:"\u53EF\u7528\u6578\u64DA\u8DB3\u4EE5\u958B\u59CB\u64AD\u653E",NETWORK_EMPTY:"\u97F3\u983B/\u8996\u983B\u5C1A\u672A\u521D\u59CB\u5316",NETWORK_IDLE:"\u97F3\u983B/\u8996\u983B\u662F\u6D3B\u52D5\u7684\u4E14\u5DF2\u9078\u53D6\u8CC7\u6E90\uFF0C\u4F46\u4E26\u672A\u4F7F\u7528\u7DB2\u7D61",NETWORK_LOADING:"\u700F\u89BD\u5668\u6B63\u5728\u4E0B\u8F09\u6578\u64DA",NETWORK_NO_SOURCE:"\u672A\u627E\u5230\u97F3\u983B/\u8996\u983B\u4F86\u6E90",MEDIA_ERR_ABORTED:"\u53D6\u56DE\u904E\u7A0B\u88AB\u7528\u6236\u4E2D\u6B62",MEDIA_ERR_NETWORK:"\u7576\u4E0B\u8F09\u6642\u767C\u751F\u932F\u8AA4",MEDIA_ERR_DECODE:"\u7576\u89E3\u78BC\u6642\u767C\u751F\u932F\u8AA4",MEDIA_ERR_SRC_NOT_SUPPORTED:"\u4E0D\u652F\u6301\u7684\u97F3\u983B/\u8996\u983B\u683C\u5F0F",REPLAY:"\u91CD\u64AD",ERROR:"\u7DB2\u7D61\u9023\u63A5\u4F3C\u4E4E\u51FA\u73FE\u4E86\u554F\u984C",PLAY_TIPS:"\u64AD\u653E",PAUSE_TIPS:"\u66AB\u505C",PLAYNEXT_TIPS:"\u4E0B\u58F9\u96C6",DOWNLOAD_TIPS:"\u4E0B\u8F09",ROTATE_TIPS:"\u65CB\u8F49",RELOAD_TIPS:"\u91CD\u65B0\u8F09\u5165",FULLSCREEN_TIPS:"\u9032\u5165\u5168\u5C4F",EXITFULLSCREEN_TIPS:"\u9000\u51FA\u5168\u5C4F",CSSFULLSCREEN_TIPS:"\u9032\u5165\u6A23\u5F0F\u5168\u5C4F",EXITCSSFULLSCREEN_TIPS:"\u9000\u51FA\u6A23\u5F0F\u5168\u5C4F",TEXTTRACK:"\u5B57\u5E55",PIP:"\u756B\u4E2D\u756B",MINIPLAYER:"\u8FF7\u59B3\u64AD\u653E\u5668",SCREENSHOT:"\u622A\u5716",LIVE:"\u6B63\u5728\u76F4\u64AD",OFF:"\u95DC\u9589",MINIPLAYER_DRAG:"\u9EDE\u64CA\u6309\u4F4F\u53EF\u62D6\u52D5\u8996\u983B",AIRPLAY_TIPS:"\u9694\u7A7A\u64AD\u653E"},C.jp={HAVE_NOTHING:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u304C\u6E96\u5099\u3067\u304D\u3066\u3044\u308B\u304B\u60C5\u5831\u304C\u3042\u308A\u307E\u305B\u3093",HAVE_METADATA:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u306E\u30E1\u30BF\u30C7\u30FC\u30BF\u306F\u6E96\u5099\u3067\u304D\u3066\u3044\u307E\u3059",HAVE_CURRENT_DATA:"\u73FE\u5728\u306E\u518D\u751F\u4F4D\u7F6E\u306B\u95A2\u3059\u308B\u30C7\u30FC\u30BF\u306F\u5229\u7528\u53EF\u80FD\u3067\u3059\u304C\u3001\u6B21\u306E\u30D5\u30EC\u30FC\u30E0/\u30DF\u30EA\u79D2\u3092\u518D\u751F\u3059\u308B\u306E\u306B\u5341\u5206\u306A\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093",HAVE_FUTURE_DATA:"\u73FE\u5728\u3001\u5C11\u306A\u304F\u3068\u3082\u6B21\u306E\u30D5\u30EC\u30FC\u30E0\u306E\u30C7\u30FC\u30BF\u304C\u5229\u7528\u53EF\u80FD\u3067\u3059",HAVE_ENOUGH_DATA:"\u5229\u7528\u53EF\u80FD\u306A\u30C7\u30FC\u30BF\u306F\u518D\u751F\u3092\u958B\u59CB\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059",NETWORK_EMPTY:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u304C\u521D\u671F\u5316\u3055\u308C\u3066\u3044\u307E\u305B\u3093",NETWORK_IDLE:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA\u306F\u30A2\u30AF\u30C6\u30A3\u30D6\u3067\u30EA\u30BD\u30FC\u30B9\u304C\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u3059\u304C\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304C\u4F7F\u7528\u3055\u308C\u3066\u3044\u307E\u305B\u3093",NETWORK_LOADING:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306F\u30C7\u30FC\u30BF\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u3066\u3044\u307E\u3059",NETWORK_NO_SOURCE:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA \u306E\u30BD\u30FC\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",MEDIA_ERR_ABORTED:"\u30E6\u30FC\u30B6\u30FC\u306B\u3088\u3063\u3066\u30D5\u30A7\u30C3\u30C1\u30D7\u30ED\u30BB\u30B9\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F",MEDIA_ERR_NETWORK:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F",MEDIA_ERR_DECODE:"\u30C7\u30B3\u30FC\u30C9\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F",MEDIA_ERR_SRC_NOT_SUPPORTED:"\u30AA\u30FC\u30C7\u30A3\u30AA/\u30D3\u30C7\u30AA \u306E\u5F62\u5F0F\u304C\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093",REPLAY:"\u30EA\u30D7\u30EC\u30A4",ERROR:"\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F",PLAY_TIPS:"\u30D7\u30EC\u30A4",PAUSE_TIPS:"\u4E00\u6642\u505C\u6B62",PLAYNEXT_TIPS:"\u6B21\u3092\u30D7\u30EC\u30A4",DOWNLOAD_TIPS:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",ROTATE_TIPS:"\u56DE\u8EE2",RELOAD_TIPS:"\u518D\u8AAD\u307F\u8FBC\u307F",FULLSCREEN_TIPS:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3",EXITFULLSCREEN_TIPS:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3\u3092\u7D42\u4E86",CSSFULLSCREEN_TIPS:"\u30B7\u30A2\u30BF\u30FC\u30E2\u30FC\u30C9",EXITCSSFULLSCREEN_TIPS:"\u30B7\u30A2\u30BF\u30FC\u30E2\u30FC\u30C9\u3092\u7D42\u4E86",TEXTTRACK:"\u5B57\u5E55",PIP:"\u30DF\u30CB\u30D7\u30EC\u30FC\u30E4\u30FC",MINIPLAYER:"\u30DF\u30CB\u30D7\u30EC\u30FC\u30E4\u30FC",SCREENSHOT:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",LIVE:"\u751F\u653E\u9001",OFF:"\u30AA\u30D5",MINIPLAYER_DRAG:"\u30DC\u30BF\u30F3\u3092\u62BC\u3057\u3066\u50CD\u753B\u3092\u30C9\u30E9\u30C3\u30B0\u3059\u308B",AIRPLAY_TIPS:"\u9694\u7A7A\u653E\u9001"},Object.defineProperty(u,"lang",{get:function(){return u.config&&C[u.config.lang]||C.en},set:function(e){(0,r.typeOf)(e)==="Object"&&Object.keys(e).forEach(function(t){C[t]=e[t]})}})};s.default={name:"s_i18n",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){function i(f,v){for(var b=0;b<v.length;b++){var x=v[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}return function(f,v,b){return v&&i(f.prototype,v),b&&i(f,b),f}}(),S=l(12),T=e(S),u=l(0),C=l(4),g=e(C);function e(i){return i&&i.__esModule?i:{default:i}}function t(i,f,v){return f in i?Object.defineProperty(i,f,{value:v,enumerable:!0,configurable:!0,writable:!0}):i[f]=v,i}function c(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}var a=function(){function i(f){var v=this;c(this,i),this._hasStart=!1,this.videoConfig={controls:!!f.isShowControl,autoplay:f.autoplay,playsinline:f.playsinline,"webkit-playsinline":f.playsinline,"x5-playsinline":f.playsinline,"x5-video-player-type":f["x5-video-player-type"]||f.x5VideoPlayerType,"x5-video-player-fullscreen":f["x5-video-player-fullscreen"]||f.x5VideoPlayerFullscreen,"x5-video-orientation":f["x5-video-orientation"]||f.x5VideoOrientation,airplay:f.airplay,"webkit-airplay":f.airplay,tabindex:2,mediaType:f.mediaType||"video"},f.muted&&(this.videoConfig.muted="muted"),f.loop&&(this.videoConfig.loop="loop");var b="";if(this.textTrackShowDefault=!0,f.nativeTextTrack&&Array.isArray(f.nativeTextTrack)&&(f.nativeTextTrack.length>0&&!f.nativeTextTrack.some(function(P){return P.default})&&(f.nativeTextTrack[0].default=!0,this.textTrackShowDefault=!1),f.nativeTextTrack.some(function(P){if(P.src&&P.label&&P.default)return b+='<track src="'+P.src+'" ',P.kind&&(b+='kind="'+P.kind+'" '),b+='label="'+P.label+'" ',P.srclang&&(b+='srclang="'+P.srclang+'" '),b+=(P.default?"default":"")+">",!0}),this.videoConfig.crossorigin="anonymous"),f.textTrackStyle){var x=document.createElement("style");this.textTrackStyle=x,document.head.appendChild(x);var _="";for(var o in f.textTrackStyle)_+=o+": "+f.textTrackStyle[o]+";";var h=f.id?"#"+f.id:f.el.id?"#"+f.el.id:"."+f.el.className;x.sheet.insertRule?x.sheet.insertRule(h+" video::cue { "+_+" }",0):x.sheet.addRule&&x.sheet.addRule(h+" video::cue",_)}var p=f.el?f.el:(0,u.findDom)(document,"#"+f.id),O=this.constructor.XgVideoProxy;if(O&&this.videoConfig.mediaType===O.mediaType?this.video=new O(p,f):this.video=(0,u.createDom)(this.videoConfig.mediaType,b,this.videoConfig,""),f.videoStyle&&Object.keys(f.videoStyle).forEach(function(P){(0,u.setStyle)(v.video,P,f.videoStyle[P])}),!this.textTrackShowDefault&&b){var F=this.video.getElementsByTagName("Track");F[0].track.mode="hidden"}f.autoplay&&(this.video.autoplay=!0,f.autoplayMuted&&(this.video.muted=!0)),this.ev=["play","playing","pause","ended","error","seeking","seeked","progress","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","ratechange","loadedmetadata","loadeddata","loadstart"].map(function(P){return t({},P,"on"+P.charAt(0).toUpperCase()+P.slice(1))}),(0,T.default)(this),this._interval={};var L="0,0",E=this,D=function(z){!v||(z==="play"?v.hasStart=!0:z==="canplay"?(0,u.removeClass)(v.root,"xgplayer-is-enter"):z==="waiting"?v.inWaitingStart=new Date().getTime():z==="playing"&&((0,u.removeClass)(v.root,"xgplayer-is-enter"),v.inWaitingStart&&(v.inWaitingStart=void 0)),z==="error"?v._onError(z):v.emit(z,v),v.hasOwnProperty("_interval")&&(["ended","error","timeupdate"].indexOf(z)<0?((0,u._clearInterval)(v,"bufferedChange"),(0,u._setInterval)(v,"bufferedChange",function(){if(this.video&&this.video.buffered){for(var H=[],K=0,A=this.video.buffered.length;K<A;K++)H.push([this.video.buffered.start(K),this.video.buffered.end(K)]);H.toString()!==L&&(L=H.toString(),this.emit("bufferedChange",H))}},200)):z!=="timeupdate"&&(0,u._clearInterval)(v,"bufferedChange")))},m=function(z){f.videoEventMiddleware&&typeof f.videoEventMiddleware[z]=="function"?f.videoEventMiddleware[z].call(v,v,z,D):D.call(v,z)};this.ev.forEach(function(P){E.evItem=Object.keys(P)[0];var z=Object.keys(P)[0];E.video.addEventListener(Object.keys(P)[0],m.bind(E,z))})}return r(i,[{key:"_onError",value:function(v){this.video&&this.video.error&&this.emit(v,new g.default("other",this.currentTime,this.duration,this.networkState,this.readyState,this.currentSrc,this.src,this.ended,{line:162,msg:this.error,handle:"Constructor"},this.video.error.code,this.video.error))}},{key:"destroy",value:function(){this.textTrackStyle&&this.textTrackStyle.parentNode.removeChild(this.textTrackStyle)}},{key:"play",value:function(){return this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"canPlayType",value:function(v){return this.video.canPlayType(v)}},{key:"getBufferedRange",value:function(v){var b=[0,0],x=this.video;v||(v=x.buffered);var _=x.currentTime;if(v)for(var o=0,h=v.length;o<h&&(b[0]=v.start(o),b[1]=v.end(o),!(b[0]<=_&&_<=b[1]));o++);return b[0]-_<=0&&_-b[1]<=0?b:[0,0]}},{key:"proxyOn",value:function(v,b){(0,u.on)(this,v,b,"destroy")}},{key:"proxyOnce",value:function(v,b){(0,u.once)(this,v,b,"destroy")}},{key:"hasStart",get:function(){return this._hasStart},set:function(v){typeof v=="boolean"&&v===!0&&!this._hasStart&&(this._hasStart=!0,this.emit("hasstart"))}},{key:"autoplay",set:function(v){this.video&&(this.video.autoplay=v)},get:function(){return this.video?this.video.autoplay:!1}},{key:"buffered",get:function(){if(this.video)return this.video.buffered}},{key:"buffered2",get:function(){return(0,u.getBuffered2)(this.video.buffered)}},{key:"crossOrigin",get:function(){return this.video?this.video.crossOrigin:!1},set:function(v){this.video&&(this.video.crossOrigin=v)}},{key:"currentSrc",get:function(){if(this.video)return this.video.currentSrc}},{key:"currentTime",get:function(){return this.video&&this.video.currentTime||0},set:function(v){var b=this;typeof isFinite=="function"&&!isFinite(v)||((0,u.hasClass)(this.root,"xgplayer-ended")?(this.once("playing",function(){b.video.currentTime=v}),this.replay()):this.video.currentTime=v,this.emit("currentTimeChange",v))}},{key:"defaultMuted",get:function(){return this.video?this.video.defaultMuted:!1},set:function(v){this.video&&(this.video.defaultMuted=v)}},{key:"duration",get:function(){return this.config.duration?this.video?Math.min(this.config.duration,this.video.duration):this.config.duration:this.video?this.video.duration:null}},{key:"ended",get:function(){return this.video?this.video.ended||!1:!0}},{key:"error",get:function(){var v=this.video.error;if(!v)return null;var b=[{en:"MEDIA_ERR_ABORTED",cn:"\u53D6\u56DE\u8FC7\u7A0B\u88AB\u7528\u6237\u4E2D\u6B62"},{en:"MEDIA_ERR_NETWORK",cn:"\u5F53\u4E0B\u8F7D\u65F6\u53D1\u751F\u9519\u8BEF"},{en:"MEDIA_ERR_DECODE",cn:"\u5F53\u89E3\u7801\u65F6\u53D1\u751F\u9519\u8BEF"},{en:"MEDIA_ERR_SRC_NOT_SUPPORTED",cn:"\u4E0D\u652F\u6301\u97F3\u9891/\u89C6\u9891"}];return this.lang?this.lang[b[v.code-1].en]:b[v.code-1].en}},{key:"loop",get:function(){return this.video?this.video.loop:!1},set:function(v){this.video&&(this.video.loop=v)}},{key:"muted",get:function(){return this.video?this.video.muted:!1},set:function(v){this.video&&(this.video.muted=v)}},{key:"networkState",get:function(){var v=[{en:"NETWORK_EMPTY",cn:"\u97F3\u9891/\u89C6\u9891\u5C1A\u672A\u521D\u59CB\u5316"},{en:"NETWORK_IDLE",cn:"\u97F3\u9891/\u89C6\u9891\u662F\u6D3B\u52A8\u7684\u4E14\u5DF2\u9009\u53D6\u8D44\u6E90\uFF0C\u4F46\u5E76\u672A\u4F7F\u7528\u7F51\u7EDC"},{en:"NETWORK_LOADING",cn:"\u6D4F\u89C8\u5668\u6B63\u5728\u4E0B\u8F7D\u6570\u636E"},{en:"NETWORK_NO_SOURCE",cn:"\u672A\u627E\u5230\u97F3\u9891/\u89C6\u9891\u6765\u6E90"}];return this.lang?this.lang[v[this.video.networkState].en]:v[this.video.networkState].en}},{key:"paused",get:function(){return(0,u.hasClass)(this.root,"xgplayer-pause")}},{key:"playbackRate",get:function(){return this.video?this.video.playbackRate:1},set:function(v){this.video&&(this.video.playbackRate=v)}},{key:"played",get:function(){if(this.video)return this.video.played}},{key:"preload",get:function(){return this.video?this.video.preload:!1},set:function(v){this.video&&(this.video.preload=v)}},{key:"readyState",get:function(){var v=[{en:"HAVE_NOTHING",cn:"\u6CA1\u6709\u5173\u4E8E\u97F3\u9891/\u89C6\u9891\u662F\u5426\u5C31\u7EEA\u7684\u4FE1\u606F"},{en:"HAVE_METADATA",cn:"\u5173\u4E8E\u97F3\u9891/\u89C6\u9891\u5C31\u7EEA\u7684\u5143\u6570\u636E"},{en:"HAVE_CURRENT_DATA",cn:"\u5173\u4E8E\u5F53\u524D\u64AD\u653E\u4F4D\u7F6E\u7684\u6570\u636E\u662F\u53EF\u7528\u7684\uFF0C\u4F46\u6CA1\u6709\u8DB3\u591F\u7684\u6570\u636E\u6765\u64AD\u653E\u4E0B\u4E00\u5E27/\u6BEB\u79D2"},{en:"HAVE_FUTURE_DATA",cn:"\u5F53\u524D\u53CA\u81F3\u5C11\u4E0B\u4E00\u5E27\u7684\u6570\u636E\u662F\u53EF\u7528\u7684"},{en:"HAVE_ENOUGH_DATA",cn:"\u53EF\u7528\u6570\u636E\u8DB3\u4EE5\u5F00\u59CB\u64AD\u653E"}];return this.lang?this.lang[v[this.video.readyState].en]:v[this.video.readyState]}},{key:"seekable",get:function(){return this.video?this.video.seekable:!1}},{key:"seeking",get:function(){return this.video?this.video.seeking:!1}},{key:"src",get:function(){if(this.video)return this.video.src},set:function(v){(0,u.hasClass)(this.root,"xgplayer-ended")||this.emit("urlchange",this.video.src),(0,u.removeClass)(this.root,"xgplayer-ended xgplayer-is-replay xgplayer-is-error"),this.video.pause(),this.emit("pause"),this.video.src=v,this.emit("srcChange")}},{key:"poster",set:function(v){var b=(0,u.findDom)(this.root,".xgplayer-poster");b&&(b.style.backgroundImage="url("+v+")")}},{key:"volume",get:function(){return this.video?this.video.volume:1},set:function(v){this.video&&(this.video.volume=v)}},{key:"fullscreen",get:function(){return(0,u.hasClass)(this.root,"xgplayer-is-fullscreen")||(0,u.hasClass)(this.root,"xgplayer-fullscreen-active")}},{key:"bullet",get:function(){return(0,u.findDom)(this.root,"xg-danmu")?(0,u.hasClass)((0,u.findDom)(this.root,"xg-danmu"),"xgplayer-has-danmu"):!1}},{key:"textTrack",get:function(){return(0,u.hasClass)(this.root,"xgplayer-is-textTrack")}},{key:"pip",get:function(){return(0,u.hasClass)(this.root,"xgplayer-pip-active")}},{key:"isMiniPlayer",get:function(){return(0,u.hasClass)(this.root,"xgplayer-miniplayer-active")}}]),i}();s.default=a,k.exports=s.default},function(k,s,l){var r=l(13),S=l(30),T=Function.prototype.apply,u=Function.prototype.call,C=Object.create,g=Object.defineProperty,e=Object.defineProperties,t=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},a,i,f,v,b,x,_;a=function(o,h){var p;return S(h),t.call(this,"__ee__")?p=this.__ee__:(p=c.value=C(null),g(this,"__ee__",c),c.value=null),p[o]?typeof p[o]=="object"?p[o].push(h):p[o]=[p[o],h]:p[o]=h,this},i=function(o,h){var p,O;return S(h),O=this,a.call(this,o,p=function(){f.call(O,o,p),T.call(h,this,arguments)}),p.__eeOnceListener__=h,this},f=function(o,h){var p,O,F,L;if(S(h),!t.call(this,"__ee__"))return this;if(p=this.__ee__,!p[o])return this;if(O=p[o],typeof O=="object")for(L=0;F=O[L];++L)(F===h||F.__eeOnceListener__===h)&&(O.length===2?p[o]=O[L?0:1]:O.splice(L,1));else(O===h||O.__eeOnceListener__===h)&&delete p[o];return this},v=function(o){var h,p,O,F,L;if(!!t.call(this,"__ee__")&&(F=this.__ee__[o],!!F))if(typeof F=="object"){for(p=arguments.length,L=new Array(p-1),h=1;h<p;++h)L[h-1]=arguments[h];for(F=F.slice(),h=0;O=F[h];++h)T.call(O,this,L)}else switch(arguments.length){case 1:u.call(F,this);break;case 2:u.call(F,this,arguments[1]);break;case 3:u.call(F,this,arguments[1],arguments[2]);break;default:for(p=arguments.length,L=new Array(p-1),h=1;h<p;++h)L[h-1]=arguments[h];T.call(F,this,L)}},b={on:a,once:i,off:f,emit:v},x={on:r(a),once:r(i),off:r(f),emit:r(v)},_=e({},x),k.exports=s=function(o){return o==null?C(_):e(Object(o),x)},s.methods=b},function(k,s,l){var r=l(6),S=l(14),T=l(18),u=l(26),C=l(27),g=k.exports=function(e,t){var c,a,i,f,v;return arguments.length<2||typeof e!="string"?(f=t,t=e,e=null):f=arguments[2],r(e)?(c=C.call(e,"c"),a=C.call(e,"e"),i=C.call(e,"w")):(c=i=!0,a=!1),v={value:t,configurable:c,enumerable:a,writable:i},f?T(u(f),v):v};g.gs=function(e,t,c){var a,i,f,v;return typeof e!="string"?(f=c,c=t,t=e,e=null):f=arguments[3],r(t)?S(t)?r(c)?S(c)||(f=c,c=void 0):c=void 0:(f=t,t=c=void 0):t=void 0,r(e)?(a=C.call(e,"c"),i=C.call(e,"e")):(a=!0,i=!1),v={get:t,set:c,configurable:a,enumerable:i},f?T(u(f),v):v}},function(k,s,l){var r=l(15),S=/^\s*class[\s{/}]/,T=Function.prototype.toString;k.exports=function(u){return!(!r(u)||S.test(T.call(u)))}},function(k,s,l){var r=l(16);k.exports=function(S){if(typeof S!="function"||!hasOwnProperty.call(S,"length"))return!1;try{if(typeof S.length!="number"||typeof S.call!="function"||typeof S.apply!="function")return!1}catch{return!1}return!r(S)}},function(k,s,l){var r=l(17);k.exports=function(S){if(!r(S))return!1;try{return S.constructor?S.constructor.prototype===S:!1}catch{return!1}}},function(k,s,l){var r=l(6),S={object:!0,function:!0,undefined:!0};k.exports=function(T){return r(T)?hasOwnProperty.call(S,typeof T):!1}},function(k,s,l){k.exports=l(19)()?Object.assign:l(20)},function(k,s,l){k.exports=function(){var r=Object.assign,S;return typeof r!="function"?!1:(S={foo:"raz"},r(S,{bar:"dwa"},{trzy:"trzy"}),S.foo+S.bar+S.trzy==="razdwatrzy")}},function(k,s,l){var r=l(21),S=l(25),T=Math.max;k.exports=function(u,C){var g,e,t=T(arguments.length,2),c;for(u=Object(S(u)),c=function(a){try{u[a]=C[a]}catch(i){g||(g=i)}},e=1;e<t;++e)C=arguments[e],r(C).forEach(c);if(g!==void 0)throw g;return u}},function(k,s,l){k.exports=l(22)()?Object.keys:l(23)},function(k,s,l){k.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},function(k,s,l){var r=l(3),S=Object.keys;k.exports=function(T){return S(r(T)?Object(T):T)}},function(k,s,l){k.exports=function(){}},function(k,s,l){var r=l(3);k.exports=function(S){if(!r(S))throw new TypeError("Cannot use null or undefined");return S}},function(k,s,l){var r=l(3),S=Array.prototype.forEach,T=Object.create,u=function(C,g){var e;for(e in C)g[e]=C[e]};k.exports=function(C){var g=T(null);return S.call(arguments,function(e){!r(e)||u(Object(e),g)}),g}},function(k,s,l){k.exports=l(28)()?String.prototype.contains:l(29)},function(k,s,l){var r="razdwatrzy";k.exports=function(){return typeof r.contains!="function"?!1:r.contains("dwa")===!0&&r.contains("foo")===!1}},function(k,s,l){var r=String.prototype.indexOf;k.exports=function(S){return r.call(this,S,arguments[1])>-1}},function(k,s,l){k.exports=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}},function(k,s,l){var r=l(32),S=Object.prototype.hasOwnProperty;k.exports=function(T){var u=arguments[1],C;if(r(T),u!==void 0){if(C=S.call(T,"__ee__")&&T.__ee__,!C)return;C[u]&&delete C[u];return}S.call(T,"__ee__")&&delete T.__ee__}},function(k,s,l){var r=l(33);k.exports=function(S){if(!r(S))throw new TypeError(S+" is not an Object");return S}},function(k,s,l){var r=l(3),S={function:!0,object:!0};k.exports=function(T){return r(T)&&S[typeof T]||!1}},function(k,s,l){var r=l(35);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default{background:#000;width:100%;height:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.xgplayer-skin-default *{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.xgplayer-skin-default.xgplayer-rotate-fullscreen{position:absolute;top:0;left:100%;bottom:0;right:0;height:100vw!important;width:100vh!important;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.xgplayer-skin-default.xgplayer-is-fullscreen{width:100%!important;height:100%!important;padding-top:0!important;z-index:9999}.xgplayer-skin-default.xgplayer-is-fullscreen.xgplayer-inactive{cursor:none}.xgplayer-skin-default video{width:100%;height:100%;outline:none}.xgplayer-skin-default .xgplayer-none{display:none}@-webkit-keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}.xgplayer-skin-default .xgplayer-controls{display:-webkit-flex;display:-moz-box;display:flex;position:absolute;bottom:0;left:0;right:0;height:40px;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.37),rgba(0,0,0,.75),rgba(0,0,0,.75));z-index:10}.xgplayer-skin-default.xgplayer-inactive .xgplayer-controls,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-progress,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-time,.xgplayer-skin-default.xgplayer-no-controls .xgplayer-controls,.xgplayer-skin-default.xgplayer-nostart .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-live{display:block}.xgplayer-skin-default .xgplayer-live{display:block;font-size:12px;color:#fff;line-height:40px;-webkit-order:1;-moz-box-ordinal-group:2;order:1}.xgplayer-skin-default .xgplayer-icon{display:block;width:40px;height:40px;overflow:hidden;fill:#fff}.xgplayer-skin-default .xgplayer-icon svg{position:absolute}.xgplayer-skin-default .xgplayer-tips{background:rgba(0,0,0,.54);border-radius:1px;display:none;position:absolute;font-family:PingFangSC-Regular;font-size:11px;color:#fff;padding:2px 4px;text-align:center;top:-30px;left:50%;margin-left:-16px;width:auto;white-space:nowrap}.xgplayer-skin-default.xgplayer-mobile .xgplayer-tips{display:none!important}.xgplayer-skin-default .xgplayer-screen-container{display:block;width:100%}",""])},function(k,s){k.exports=function(l){var r=typeof window!="undefined"&&window.location;if(!r)throw new Error("fixUrls requires window.location");if(!l||typeof l!="string")return l;var S=r.protocol+"//"+r.host,T=S+r.pathname.replace(/\/[^\/]*$/,"/"),u=l.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(C,g){var e=g.trim().replace(/^"(.*)"$/,function(c,a){return a}).replace(/^'(.*)'$/,function(c,a){return a});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(e))return C;var t;return e.indexOf("//")===0?t=e:e.indexOf("/")===0?t=S+e:t=T+e.replace(/^\.\//,""),"url("+JSON.stringify(t)+")"});return u}},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root,g=0,e=void 0,t={first:"",second:""};u.onElementTouchend=function(i,f){this.config.closeVideoPreventDefault||i.preventDefault(),this.config.closeVideoStopPropagation||i.stopPropagation();var v=this;if((0,r.hasClass)(C,"xgplayer-inactive")?v.emit("focus"):v.emit("blur"),!v.config.closeVideoTouch&&!v.isTouchMove){var b=function(){e=setTimeout(function(){if((0,r.hasClass)(v.root,"xgplayer-nostart"))return!1;if(!v.ended)if(v.paused){var _=v.play();_!==void 0&&_&&_.catch(function(o){})}else v.pause();g=0},200)};v.config.closeVideoClick||(g++,e&&clearTimeout(e),g===1?v.config.enableVideoDbltouch?t.first=new Date:b():g===2&&v.config.enableVideoDbltouch?(t.second=new Date,Math.abs(t.first-t.second)<400?b():(t.first=new Date,g=1)):g=0)}};function c(i){u.video.addEventListener("touchend",function(f){u.onElementTouchend(f,u.video)}),u.video.addEventListener("touchstart",function(){u.isTouchMove=!1}),u.video.addEventListener("touchmove",function(){u.isTouchMove=!0}),u.config.autoplay&&u.start()}u.once("ready",c);function a(){u.off("ready",c),u.off("destroy",a)}u.once("destroy",a)};s.default={name:"mobile",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this;if(!u.controls||!u.video)return;var C=u.controls,g=u.root,e=0,t=void 0;u.onElementClick=function(_,o){this.config.closeVideoPreventDefault||_.preventDefault(),this.config.closeVideoStopPropagation||_.stopPropagation();var h=this;h.config.closeVideoClick||(e++,t&&clearTimeout(t),e===1?t=setTimeout(function(){if((0,r.hasClass)(h.root,"xgplayer-nostart"))return!1;if(!h.ended)if(h.paused){var p=h.play();p!==void 0&&p&&p.catch(function(O){})}else h.pause();e=0},200):e=0)},u.video.addEventListener("click",function(_){u.onElementClick(_,u.video)},!1),u.onElementDblclick=function(_,o){this.config.closeVideoPreventDefault||_.preventDefault(),this.config.closeVideoStopPropagation||_.stopPropagation();var h=this;if(!h.config.closeVideoDblclick){var p=C.querySelector(".xgplayer-fullscreen");if(p){var O=void 0;document.createEvent?(O=document.createEvent("Event"),O.initEvent("click",!0,!0)):O=new Event("click"),p.dispatchEvent(O)}}},u.video.addEventListener("dblclick",function(_){u.onElementDblclick(_,u.video)},!1);function c(){clearTimeout(u.leavePlayerTimer),u.emit("focus",u)}g.addEventListener("mouseenter",c);function a(){u.config.closePlayerBlur||(u.leavePlayerTimer=setTimeout(function(){u.emit("blur",u)},u.config.leavePlayerTime||0))}g.addEventListener("mouseleave",a);function i(_){u.userTimer&&clearTimeout(u.userTimer)}C.addEventListener("mouseenter",i);function f(_){u.config.closeControlsBlur||u.emit("focus",u)}C.addEventListener("mouseleave",f);function v(_){_.preventDefault(),_.stopPropagation()}C.addEventListener("click",v);function b(_){u.config.autoplay&&u.start()}u.once("ready",b);function x(){g.removeEventListener("mouseenter",c),g.removeEventListener("mouseleave",a),u.off("ready",b),u.off("destroy",x)}u.once("destroy",x)};s.default={name:"pc",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root;function g(){u.off("canplay",g);var c=u.play();c!==void 0&&c&&c.catch(function(a){})}function e(){(0,r.hasClass)(C,"xgplayer-nostart")?((0,r.removeClass)(C,"xgplayer-nostart"),(0,r.addClass)(C,"xgplayer-is-enter"),typeof C.contains=="function"?u.video&&u.video.nodeType===1&&!C.contains(u.video)||u.video&&u.video.nodeType!==1&&u.video.mediaSource===void 0?(u.once("canplay",g),u.start()):g():u.video&&u.video.nodeType===1&&!C.querySelector(this.videoConfig.mediaType)||u.video&&u.video.nodeType!==1&&u.video.mediaSource===void 0?(u.once("canplay",g),u.start()):g()):u.paused&&((0,r.removeClass)(C,"xgplayer-nostart xgplayer-isloading"),setTimeout(function(){var c=u.play();c!==void 0&&c&&c.catch(function(a){})},10))}u.on("startBtnClick",e);function t(){u.off("startBtnClick",e),u.off("canplay",g),u.off("destroy",t)}u.once("destroy",t)};s.default={name:"start",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(41),T=g(S),u=l(42),C=g(u);l(43);function g(t){return t&&t.__esModule?t:{default:t}}var e=function(){var c=this,a=c.root,i=(0,r.createDom)("xg-start",'<div class="xgplayer-icon-play">'+T.default+`</div>
<div class="xgplayer-icon-pause">`+C.default+"</div>",{},"xgplayer-start");function f(v){(0,r.addClass)(v.root,"xgplayer-skin-default"),v.config&&(v.config.autoplay&&!(0,r.isWeiXin)()&&!(0,r.isUc)()&&(0,r.addClass)(v.root,"xgplayer-is-enter"),v.config.lang&&v.config.lang==="en"?(0,r.addClass)(v.root,"xgplayer-lang-is-en"):v.config.lang==="jp"&&(0,r.addClass)(v.root,"xgplayer-lang-is-jp"),v.config.enableContextmenu||v.video.addEventListener("contextmenu",function(b){b.preventDefault(),b.stopPropagation()}))}c.config&&c.config.hideStartBtn&&(0,r.addClass)(a,"xgplayer-start-hide"),c.isReady?(a.appendChild(i),f(c)):c.once("ready",function(){a.appendChild(i),f(c)}),c.once("autoplay was prevented",function(){(0,r.removeClass)(c.root,"xgplayer-is-enter"),(0,r.addClass)(c.root,"xgplayer-nostart")}),c.once("canplay",function(){(0,r.removeClass)(c.root,"xgplayer-is-enter")}),i.onclick=function(v){v.preventDefault(),v.stopPropagation(),c.userGestureTrigEvent("startBtnClick")}};s.default={name:"s_start",method:e},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
<path transform="translate(15,15) scale(0.04,0.04)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
<path transform="translate(15,15) scale(0.04 0.04)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
</svg>
`},function(k,s,l){var r=l(44);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-start{border-radius:50%;display:inline-block;width:70px;height:70px;background:rgba(0,0,0,.38);overflow:hidden;text-align:center;line-height:70px;vertical-align:middle;position:absolute;left:50%;top:50%;z-index:115;margin:-35px auto auto -35px;cursor:pointer}.xgplayer-skin-default .xgplayer-start div{position:absolute}.xgplayer-skin-default .xgplayer-start div svg{fill:hsla(0,0%,100%,.7)}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-start:hover{opacity:.85}.xgplayer-skin-default.xgplayer-pause.xgplayer-start-hide .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-start-hide .xgplayer-start{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start{display:inline-block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start,.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-pause{display:none}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root;function g(){u.config.rotateFullscreen?(0,r.hasClass)(C,"xgplayer-rotate-fullscreen")?u.exitRotateFullscreen():u.getRotateFullscreen():(0,r.hasClass)(C,"xgplayer-is-fullscreen")?u.exitFullscreen(C):u.getFullscreen(C)}u.on("fullscreenBtnClick",g);function e(){var a=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;a&&a===C?((0,r.addClass)(C,"xgplayer-is-fullscreen"),u.emit("requestFullscreen")):(0,r.hasClass)(C,"xgplayer-is-fullscreen")&&((0,r.removeClass)(C,"xgplayer-is-fullscreen"),u.emit("exitFullscreen")),u.danmu&&typeof u.danmu.resize=="function"&&u.danmu.resize()}["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(function(a){document.addEventListener(a,e)}),u.video.addEventListener("webkitbeginfullscreen",function(){(0,r.addClass)(C,"xgplayer-is-fullscreen"),u.emit("requestFullscreen")}),u.video.addEventListener("webkitendfullscreen",function(){(0,r.removeClass)(C,"xgplayer-is-fullscreen"),u.emit("exitFullscreen")});function t(a){var i=u.video.webkitPresentationMode;i!==r.PresentationMode.FULLSCREEN&&((0,r.removeClass)(C,"xgplayer-is-fullscreen"),u.emit("exitFullscreen"))}(0,r.checkWebkitSetPresentationMode)(u.video)&&u.video.addEventListener("webkitpresentationmodechanged",t);function c(){u.off("fullscreenBtnClick",g),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(function(a){document.removeEventListener(a,e)}),(0,r.checkWebkitSetPresentationMode)(u.video)&&u.video.removeEventListener("webkitpresentationmodechanged",t),u.off("destroy",c)}u.once("destroy",c),u.getFullscreen=function(a){var i=this;if(a.requestFullscreen){var f=a.requestFullscreen();f&&f.catch(function(){i.emit("fullscreen error")})}else a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullscreen?a.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):i.video.webkitSupportsFullscreen?i.video.webkitEnterFullscreen():a.msRequestFullscreen?a.msRequestFullscreen():(0,r.addClass)(a,"xgplayer-is-cssfullscreen")},u.exitFullscreen=function(a){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),(0,r.removeClass)(a,"xgplayer-is-cssfullscreen")},u.getRotateFullscreen=function(){var a=this;document.documentElement.style.width="100%",document.documentElement.style.height="100%",a.config.fluid&&(a.root.style["padding-top"]="",a.root.style["max-width"]="unset"),a.root&&!(0,r.hasClass)(a.root,"xgplayer-rotate-fullscreen")&&(0,r.addClass)(a.root,"xgplayer-rotate-fullscreen"),a.emit("getRotateFullscreen")},u.exitRotateFullscreen=function(){var a=this;document.documentElement.style.width="unset",document.documentElement.style.height="unset",a.config.fluid&&(a.root.style.width="100%",a.root.style.height="0",a.root.style["padding-top"]=a.config.height*100/a.config.width+"%",a.root.style["max-width"]="100%"),a.root&&(0,r.hasClass)(a.root,"xgplayer-rotate-fullscreen")&&(0,r.removeClass)(a.root,"xgplayer-rotate-fullscreen"),a.emit("exitRotateFullscreen")}};s.default={name:"fullscreen",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this;function C(){if(!(!u.config.allowPlayAfterEnded&&u.ended))if((0,r.hasClass)(u.root,"xgplayer-nostart")&&u.start(),u.paused){var e=u.play();e!==void 0&&e&&e.catch(function(t){})}else u.pause()}u.on("playBtnClick",C);function g(){u.off("playBtnClick",C),u.off("destroy",g)}u.once("destroy",g)};s.default={name:"play",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root;function g(){(0,r.removeClass)(C,"xgplayer-is-replay"),u.replay()}u.on("replayBtnClick",g);function e(){u.config.loop||(0,r.addClass)(C,"xgplayer-is-replay")}u.on("ended",e);function t(){u.off("replayBtnClick",g),u.off("destroy",t)}u.once("destroy",t)};s.default={name:"replay",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(49),T=g(S),u=l(50),C=g(u);l(51);function g(t){return t&&t.__esModule?t:{default:t}}var e=function(){var c=this,a=c.config.playBtn?c.config.playBtn:{},i=void 0;a.type==="img"?i=(0,r.createImgBtn)("play",a.url.play,a.width,a.height):i=(0,r.createDom)("xg-play",`<xg-icon class="xgplayer-icon">
<div class="xgplayer-icon-play">`+T.default+`</div>
<div class="xgplayer-icon-pause">`+C.default+`</div>
</xg-icon>`,{},"xgplayer-play");var f={};f.play=c.lang.PLAY_TIPS,f.pause=c.lang.PAUSE_TIPS;var v=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-play">'+f.play+`</span>
<span class="xgplayer-tip-pause">`+f.pause+"</span>",{},"xgplayer-tips");i.appendChild(v),c.once("ready",function(){c.controls&&c.controls.appendChild(i)}),["click","touchend"].forEach(function(b){i.addEventListener(b,function(x){x.preventDefault(),x.stopPropagation(),c.userGestureTrigEvent("playBtnClick")})})};s.default={name:"s_play",method:e},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
</svg>
`},function(k,s,l){var r=l(52);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-play,.xgplayer-skin-default .xgplayer-play-img{width:40px;position:relative;-webkit-order:0;-moz-box-ordinal-group:1;order:0;display:block;cursor:pointer;margin-left:3px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-play .xgplayer-icon{margin-top:3px;width:32px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-play .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}.xgplayer-skin-default .xgplayer-play-img:hover,.xgplayer-skin-default .xgplayer-play:hover{opacity:.85}.xgplayer-skin-default .xgplayer-play-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-play:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(54);var S=function(){var u=this,C=u.root;if(!!u.config.poster){var g=(0,r.createDom)("xg-poster","",{},"xgplayer-poster");g.style.backgroundImage="url("+u.config.poster+")",C.appendChild(g)}};s.default={name:"s_poster",method:S},k.exports=s.default},function(k,s,l){var r=l(55);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-poster{display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-size:cover;background-position:50%}.xgplayer-skin-default.xgplayer-nostart .xgplayer-poster{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(57);var S=function(){var u=this,C=(0,r.createDom)("xg-placeholder","",{},"xgplayer-placeholder");u.controls.appendChild(C)};s.default={name:"s_flex",method:S},k.exports=s.default},function(k,s,l){var r=l(58);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-placeholder{-webkit-flex:1;-moz-box-flex:1;flex:1;-webkit-order:3;-moz-box-ordinal-group:4;order:3;display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(60),T=g(S),u=l(61),C=g(u);l(62);function g(t){return t&&t.__esModule?t:{default:t}}var e=function(){var c=this,a=c.config.fullscreenBtn?c.config.fullscreenBtn:{},i=void 0;a.type==="img"?i=(0,r.createImgBtn)("fullscreen",a.url.request,a.width,a.height):i=(0,r.createDom)("xg-fullscreen",`<xg-icon class="xgplayer-icon">
<div class="xgplayer-icon-requestfull">`+T.default+`</div>
<div class="xgplayer-icon-exitfull">`+C.default+`</div>
</xg-icon>`,{},"xgplayer-fullscreen");var f={};f.requestfull=c.lang.FULLSCREEN_TIPS,f.exitfull=c.lang.EXITFULLSCREEN_TIPS;var v=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-requestfull">'+f.requestfull+`</span>
<span class="xgplayer-tip-exitfull">`+f.exitfull+"</span>",{},"xgplayer-tips");i.appendChild(v),c.once("ready",function(){c.controls&&c.controls.appendChild(i)}),["click","touchend"].forEach(function(b){i.addEventListener(b,function(x){x.preventDefault(),x.stopPropagation(),c.userGestureTrigEvent("fullscreenBtnClick")})})};s.default={name:"s_fullscreen",method:e},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
</svg>
`},function(k,s,l){var r=l(63);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-fullscreen,.xgplayer-skin-default .xgplayer-fullscreen-img{position:relative;-webkit-order:13;-moz-box-ordinal-group:14;order:13;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img:hover,.xgplayer-skin-default .xgplayer-fullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-fullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(65),T=u(S);l(66);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.root,c=(0,r.createDom)("xg-loading",""+T.default,{},"xgplayer-loading");e.once("ready",function(){t.appendChild(c)})};s.default={name:"s_loading",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 100 100">
<path d="M100,50A50,50,0,1,1,50,0"></path>
</svg>
`},function(k,s,l){var r=l(67);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-loading{display:none;width:100px;height:100px;overflow:hidden;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);position:absolute;left:50%;top:50%;margin:-50px auto auto -50px}.xgplayer-skin-default .xgplayer-loading svg{border-radius:50%;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-animation:loadingRotate 1s linear infinite;animation:loadingRotate 1s linear infinite}.xgplayer-skin-default .xgplayer-loading svg path{stroke:#ddd;stroke-dasharray:236;-webkit-animation:loadingDashOffset 2s linear infinite;animation:loadingDashOffset 2s linear infinite;animation-direction:alternate-reverse;fill:none;stroke-width:12px}.xgplayer-skin-default.xgplayer-nostart .xgplayer-loading{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-loading{display:none!important}.xgplayer-skin-default.xgplayer-isloading .xgplayer-loading{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(5),T=u(S);l(69);function u(e){return e&&e.__esModule?e:{default:e}}var C=function(t){return(0,r.hasClass)(t.root,"xgplayer-rotate-fullscreen")},g=function(){var t=this,c=(0,r.createDom)("xg-progress",`<xg-outer class="xgplayer-progress-outer">
<xg-cache class="xgplayer-progress-cache"></xg-cache>
<xg-played class="xgplayer-progress-played">
<xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>
<xg-point class="xgplayer-progress-point xgplayer-tips"></xg-point>
<xg-thumbnail class="xgplayer-progress-thumbnail xgplayer-tips"></xg-thumbnail>
</xg-played>
</xg-outer>`,{tabindex:1},"xgplayer-progress"),a=void 0;t.controls.appendChild(c);var i=c.querySelector(".xgplayer-progress-played"),f=c.querySelector(".xgplayer-progress-outer"),v=c.querySelector(".xgplayer-progress-cache"),b=c.querySelector(".xgplayer-progress-point"),x=c.querySelector(".xgplayer-progress-thumbnail");t.dotArr={};function _(N,V){N.addEventListener("mouseenter",function(X){V&&((0,r.addClass)(N,"xgplayer-progress-dot-show"),(0,r.addClass)(c,"xgplayer-progress-dot-active"))}),N.addEventListener("mouseleave",function(X){V&&((0,r.removeClass)(N,"xgplayer-progress-dot-show"),(0,r.removeClass)(c,"xgplayer-progress-dot-active"))}),N.addEventListener("touchend",function(X){X.stopPropagation(),V&&((0,r.hasClass)(N,"xgplayer-progress-dot-show")||Object.keys(t.dotArr).forEach(function(G){t.dotArr[G]&&(0,r.removeClass)(t.dotArr[G],"xgplayer-progress-dot-show")}),(0,r.toggleClass)(N,"xgplayer-progress-dot-show"),(0,r.toggleClass)(c,"xgplayer-progress-dot-active"))})}function o(){t.config.progressDot&&(0,r.typeOf)(t.config.progressDot)==="Array"&&t.config.progressDot.forEach(function(N){if(N.time>=0&&N.time<=t.duration){var V=(0,r.createDom)("xg-progress-dot",N.text?'<span class="xgplayer-progress-tip">'+N.text+"</span>":"",{},"xgplayer-progress-dot");if(V.style.left=N.time/t.duration*100+"%",N.duration>=0&&(V.style.width=Math.min(N.duration,t.duration-N.time)/t.duration*100+"%"),N.style)for(var X in N.style)V.style[X]=N.style[X];f.appendChild(V),t.dotArr[N.time]=V,_(V,N.text)}})}t.once("canplay",o),t.addProgressDot=function(N,V,X,G){if(!t.dotArr[N]&&N>=0&&N<=t.duration){var te=(0,r.createDom)("xg-progress-dot",V?'<span class="xgplayer-progress-tip">'+V+"</span>":"",{},"xgplayer-progress-dot");if(te.style.left=N/t.duration*100+"%",X>=0&&(te.style.width=Math.min(X,t.duration-N)/t.duration*100+"%"),G)for(var ue in G)te.style[ue]=G[ue];f.appendChild(te),t.dotArr[N]=te,_(te,V)}},t.removeProgressDot=function(N){if(N>=0&&N<=t.duration&&t.dotArr[N]){var V=t.dotArr[N];V.parentNode.removeChild(V),V=null,t.dotArr[N]=null}},t.removeAllProgressDot=function(){Object.keys(t.dotArr).forEach(function(N){if(t.dotArr[N]){var V=t.dotArr[N];V.parentNode.removeChild(V),V=null,t.dotArr[N]=null}})};var h=0,p=0,O=0,F=0,L=0,E=0,D=[],m=void 0,P=void 0,z=function(){t.config.thumbnail&&(t.config.thumbnail.isShowCoverPreview&&!m&&(i.removeChild(x),m=(0,r.createDom)("xg-coverpreview",`<xg-outer class="xgplayer-coverpreview-outer">
<xg-thumbnail class="xgplayer-coverpreview-thumbnail"></xg-thumbnail>
<xg-point class="xgplayer-coverpreview-point"></xg-point>
</xg-outer>`,{tabindex:1},"xgplayer-coverpreview"),m.querySelector(".xgplayer-coverpreview-outer"),P=m.querySelector(".xgplayer-coverpreview-point"),x=m.querySelector(".xgplayer-coverpreview-thumbnail"),t.root.appendChild(m)),h=t.config.thumbnail.pic_num,p=t.config.thumbnail.width,O=t.config.thumbnail.height,F=t.config.thumbnail.col,L=t.config.thumbnail.row,D=t.config.thumbnail.urls,x.style.width=p+"px",x.style.height=O+"px")};t.on("loadedmetadata",z),typeof t.config.disableSwipeHandler=="function"&&typeof t.config.enableSwipeHandler=="function"&&(t.root.addEventListener("touchmove",function(N){N.preventDefault(),t.disableSwipe||(t.disableSwipe=!0,t.config.disableSwipeHandler.call(t))}),t.root.addEventListener("touchstart",function(N){t.disableSwipe=!0,t.config.disableSwipeHandler.call(t)}),t.root.addEventListener("touchend",function(N){t.disableSwipe=!1,t.config.enableSwipeHandler.call(t)}));var H=["touchstart","mousedown"];T.default.device==="mobile"&&H.pop(),H.forEach(function(N){c.addEventListener(N,function(V){if(!t.config.disableProgress){if(V.stopPropagation(),(0,r.event)(V),V._target===b||!t.config.allowSeekAfterEnded&&t.ended)return!0;c.focus();var X=i.getBoundingClientRect(),G=X.left,te=C(t);te?(G=i.getBoundingClientRect().top,a=c.getBoundingClientRect().height):(a=c.getBoundingClientRect().width,G=i.getBoundingClientRect().left);var ue=function(se){se.stopPropagation(),(0,r.event)(se),t.isProgressMoving=!0;var de=(te?se.clientY:se.clientX)-G;de>a&&(de=a);var he=de/a*t.duration;if(he<0&&(he=0),!(t.config.allowSeekPlayed&&Number(he).toFixed(1)>t.maxPlayedTime))if(i.style.width=de*100/a+"%",t.videoConfig.mediaType==="video"&&!t.dash&&!t.config.closeMoveSeek)console.log("trigger touchmove"),t.currentTime=Number(he).toFixed(1);else{var ke=(0,r.findDom)(t.controls,".xgplayer-time");ke&&(ke.innerHTML='<span class="xgplayer-time-current">'+(0,r.format)(he||0)+"</span><span>"+(0,r.format)(t.duration)+"</span>")}if(t.config.thumbnail&&t.config.thumbnail.isShowCoverPreview){P.innerHTML="<span>"+(0,r.format)(he)+"</span> / "+(0,r.format)(t.duration||0),E=t.duration/h;var Ee=Math.floor(he/E);x.style.backgroundImage="url("+D[Math.ceil((Ee+1)/(F*L))-1]+")";var ye=Ee+1-F*L*(Math.ceil((Ee+1)/(F*L))-1),Te=Math.ceil(ye/L)-1,pe=ye-Te*L-1;x.style["background-position"]="-"+pe*p+"px -"+Te*O+"px",m.style.display="block"}t.emit("focus")},fe=function ge(se){if(console.log("up event",se),se.stopPropagation(),(0,r.event)(se),window.removeEventListener("mousemove",ue),window.removeEventListener("touchmove",ue,{passive:!1}),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),T.default.browser.indexOf("ie")<0&&c.blur(),!t.isProgressMoving||t.videoConfig&&t.videoConfig.mediaType==="audio"||t.dash||t.config.closeMoveSeek){var de=(te?se.clientY:se.clientX)-G;de>a&&(de=a);var he=de/a*t.duration;he<0&&(he=0),t.config.allowSeekPlayed&&Number(he).toFixed(1)>t.maxPlayedTime||(i.style.width=de*100/a+"%",console.warn("trigger touchup"),t.currentTime=Number(he).toFixed(1))}t.config.thumbnail&&t.config.thumbnail.isShowCoverPreview&&(m.style.display="none"),t.emit("focus"),t.isProgressMoving=!1};return window.addEventListener("touchmove",ue,{passive:!1}),window.addEventListener("touchend",fe),window.addEventListener("mousemove",ue),window.addEventListener("mouseup",fe),!0}})}),c.addEventListener("mouseenter",function(N){if(!t.config.allowSeekAfterEnded&&t.ended)return!0;var V=C(t),X=V?c.getBoundingClientRect().top:c.getBoundingClientRect().left,G=V?c.getBoundingClientRect().height:c.getBoundingClientRect().width,te=function(se){var de=((V?se.clientY:se.clientX)-X)/G*t.duration;de=de<0?0:de,b.textContent=(0,r.format)(de);var he=b.getBoundingClientRect().width;if(t.config.thumbnail&&!t.config.thumbnail.isShowCoverPreview){E=t.duration/h;var ke=Math.floor(de/E);x.style.backgroundImage="url("+D[Math.ceil((ke+1)/(F*L))-1]+")";var Ee=ke+1-F*L*(Math.ceil((ke+1)/(F*L))-1),ye=Math.ceil(Ee/L)-1,Te=Ee-ye*L-1;x.style["background-position"]="-"+Te*p+"px -"+ye*O+"px";var pe=(V?se.clientY:se.clientX)-X-p/2;pe=pe>0?pe:0,pe=pe<G-p?pe:G-p,x.style.left=pe+"px",x.style.top=-10-O+"px",x.style.display="block",b.style.left=pe+p/2-he/2+"px"}else{var ie=se.clientX-X-he/2;ie=ie>0?ie:0,ie=ie>G-he?G-he:ie,b.style.left=ie+"px"}(0,r.hasClass)(c,"xgplayer-progress-dot-active")?b.style.display="none":b.style.display="block"},ue=function(se){te(se)},fe=function ge(se){c.removeEventListener("mousemove",ue,!1),c.removeEventListener("mouseleave",ge,!1),te(se),b.style.display="none",t.config.thumbnail&&!t.config.thumbnail.isShowCoverPreview&&(x.style.display="none")};c.addEventListener("mousemove",ue,!1),c.addEventListener("mouseleave",fe,!1),te(N)},!1);var K=function(){if(t.maxPlayedTime===void 0&&(t.maxPlayedTime=0),t.maxPlayedTime<t.currentTime&&(t.maxPlayedTime=t.currentTime),!a&&c&&(a=c.getBoundingClientRect().width),!t.isProgressMoving&&!t.isSeeking&&!t.seeking){var V=t.currentTime/t.duration,X=Number(i.style.width.replace("%","")||"0")/Number(c.style.width||"100");Math.abs(V-X)<=1&&(i.style.width=t.currentTime*100/t.duration+"%")}};t.on("timeupdate",K);var A=function(V){i.style.width=V*100/t.duration+"%"};t.on("currentTimeChange",A);var M=function(){i.style.width="0%"};t.on("srcChange",M);var B=function(){var V=t.buffered;if(V&&V.length>0){for(var X=V.end(V.length-1),G=0,te=V.length;G<te;G++)if(t.currentTime>=V.start(G)&&t.currentTime<=V.end(G)){X=V.end(G);for(var ue=G+1;ue<V.length;ue++)if(V.start(ue)-V.end(ue-1)>=2){X=V.end(ue-1);break}break}v.style.width=X/t.duration*100+"%"}},j=["bufferedChange","cacheupdate","ended","timeupdate"];j.forEach(function(N){t.on(N,B)});function U(){t.removeAllProgressDot(),t.off("canplay",o),t.off("timeupdate",K),t.off("currentTimeChange",A),t.off("srcChange",M),t.off("loadedmetadata",z),j.forEach(function(N){t.off(N,B)}),t.off("destroy",U)}t.once("destroy",U)};s.default={name:"s_progress",method:g},k.exports=s.default},function(k,s,l){var r=l(70);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-progress{display:block;position:absolute;height:20px;line-height:20px;left:12px;right:12px;outline:none;top:-15px;z-index:35}.xgplayer-skin-default .xgplayer-progress-outer{background:hsla(0,0%,100%,.3);display:block;height:3px;line-height:3px;margin-top:8.5px;width:100%;position:relative;cursor:pointer}.xgplayer-skin-default .xgplayer-progress-cache,.xgplayer-skin-default .xgplayer-progress-played{display:block;height:100%;line-height:1;position:absolute;left:0;top:0}.xgplayer-skin-default .xgplayer-progress-cache{width:0;background:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-progress-played{display:block;width:0;background-image:linear-gradient(-90deg,#fa1f41,#e31106);border-radius:0 1.5px 1.5px 0}.xgplayer-skin-default .xgplayer-progress-btn{display:none;position:absolute;left:0;top:-5px;width:13px;height:13px;border-radius:30px;background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.26);left:100%;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%);z-index:36}.xgplayer-skin-default .xgplayer-progress-point{position:absolute}.xgplayer-skin-default .xgplayer-progress-point.xgplayer-tips{margin-left:0;top:-25px;display:none;z-index:100}.xgplayer-skin-default .xgplayer-progress-dot{display:inline-block;position:absolute;height:3px;width:5px;top:0;background:#fff;border-radius:6px;z-index:16}.xgplayer-skin-default .xgplayer-progress-dot .xgplayer-progress-tip{position:absolute;bottom:200%;right:50%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);height:auto;line-height:30px;width:auto;background:rgba(0,0,0,.3);border-radius:6px;border:1px solid rgba(0,0,0,.8);cursor:default;white-space:nowrap;display:none}.xgplayer-skin-default .xgplayer-progress-dot-show .xgplayer-progress-tip{display:block}.xgplayer-skin-default .xgplayer-progress-thumbnail{position:absolute;-moz-box-sizing:border-box;box-sizing:border-box}.xgplayer-skin-default .xgplayer-progress-thumbnail.xgplayer-tips{margin-left:0;display:none;z-index:99}.xgplayer-skin-default .xgplayer-coverpreview{position:absolute;width:100%;height:100%;top:0;left:0;display:none}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer{position:absolute;display:block;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-thumbnail{display:block}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point{display:block;text-align:center;font-family:PingFangSC-Regular;font-size:11px;color:#ccc;padding:2px 4px}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point span{color:#fff}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-outer{height:6px;margin-top:7px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-dot,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-dot{height:6px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-btn{display:block;top:-3px}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-volume-active .xgplayer-progress{z-index:15}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress-btn{display:block!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-outer{height:3px!important;margin-top:8.5px!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-btn{display:block!important;top:-5px!important}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(72);var S=function(){var u=this,C=(0,r.createDom)("xg-time",'<span class="xgplayer-time-current">'+(u.currentTime||(0,r.format)(0))+`</span>
<span>`+(u.duration||(0,r.format)(0))+"</span>",{},"xgplayer-time");u.once("ready",function(){u.controls&&u.controls.appendChild(C)});var g=function(){(u.videoConfig.mediaType!=="audio"||!u.isProgressMoving||!u.dash)&&(C.innerHTML='<span class="xgplayer-time-current">'+(0,r.format)(u.currentTime||0)+"</span>"+("<span>"+(0,r.format)(u.duration)+"</span>"))};u.on("durationchange",g),u.on("timeupdate",g);function e(){u.off("durationchange",g),u.off("timeupdate",g),u.off("destroy",e)}u.once("destroy",e)};s.default={name:"s_time",method:S},k.exports=s.default},function(k,s,l){var r=l(73);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,'.xgplayer-skin-default .xgplayer-time{-webkit-order:2;-moz-box-ordinal-group:3;order:2;font-family:ArialMT;font-size:13px;color:#fff;line-height:40px;height:40px;text-align:center;display:inline-block;margin:auto 8px}.xgplayer-skin-default .xgplayer-time span{color:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current{color:#fff}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current:after{content:"/";display:inline-block;padding:0 3px}',""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(75),T=u(S);l(76);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.root,c=e.lang.REPLAY,a=(0,r.createDom)("xg-replay",T.default+`
<xg-replay-txt class="xgplayer-replay-txt">`+c+`</xg-replay-txt>
`,{},"xgplayer-replay");e.once("ready",function(){t.appendChild(a)});function i(){var x=a.querySelector("path");if(x){var _=window.getComputedStyle(x).getPropertyValue("transform");if(typeof _=="string"&&_.indexOf("none")>-1)return;x.setAttribute("transform",_)}}e.on("ended",i);function f(x){x.preventDefault(),x.stopPropagation()}a.addEventListener("click",f);var v=a.querySelector("svg");["click","touchend"].forEach(function(x){v.addEventListener(x,function(_){_.preventDefault(),_.stopPropagation(),e.userGestureTrigEvent("replayBtnClick")})});function b(){e.off("ended",i),e.off("destroy",b)}e.once("destroy",b)};s.default={name:"s_replay",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" width="78" height="78" viewbox="0 0 78 78">
<path d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
</svg>
`},function(k,s,l){var r=l(77);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-replay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:105;display:none;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;background:rgba(0,0,0,.54);-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column}.xgplayer-skin-default .xgplayer-replay svg{background:rgba(0,0,0,.58);border-radius:100%;cursor:pointer}.xgplayer-skin-default .xgplayer-replay svg path{-webkit-transform:translate(20px,21px);-ms-transform:translate(20px,21px);transform:translate(20px,21px);fill:#ddd}.xgplayer-skin-default .xgplayer-replay svg:hover{background:rgba(0,0,0,.38)}.xgplayer-skin-default .xgplayer-replay svg:hover path{fill:#fff}.xgplayer-skin-default .xgplayer-replay .xgplayer-replay-txt{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#fff;line-height:34px}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-replay{display:-webkit-flex;display:-moz-box;display:flex}",""])},function(k,s,l){var r=l(161);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){k.exports=l(80)},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(9),S=ie(r),T=l(81),u=ie(T),C=l(82),g=ie(C),e=l(83),t=ie(e),c=l(84),a=ie(c),i=l(85),f=ie(i),v=l(88),b=ie(v),x=l(45),_=ie(x),o=l(89),h=ie(o),p=l(90),O=ie(p),F=l(91),L=ie(F),E=l(92),D=ie(E),m=l(37),P=ie(m),z=l(38),H=ie(z),K=l(98),A=ie(K),M=l(46),B=ie(M),j=l(99),U=ie(j),N=l(100),V=ie(N),X=l(47),G=ie(X),te=l(101),ue=ie(te),fe=l(102),ge=ie(fe),se=l(103),de=ie(se),he=l(39),ke=ie(he),Ee=l(104),ye=ie(Ee),Te=l(105),pe=ie(Te);l(107);function ie(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}S.default.installAll([u.default,g.default,t.default,a.default,f.default,b.default,_.default,h.default,O.default,L.default,D.default,P.default,H.default,A.default,B.default,U.default,V.default,G.default,ue.default,ge.default,de.default,ke.default,ye.default,pe.default]),s.default=S.default,k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this;if(!T.config.airplay||!window.WebKitPlaybackTargetAvailabilityEvent)return;function u(){T.video.webkitShowPlaybackTargetPicker()}T.on("airplayBtnClick",u);function C(){T.off("airplayBtnClick",u),T.off("destroy",C)}T.once("destroy",C)};s.default={name:"airplay",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root;function g(){(0,r.hasClass)(C,"xgplayer-is-cssfullscreen")?u.exitCssFullscreen():u.getCssFullscreen()}u.on("cssFullscreenBtnClick",g),u.on("exitFullscreen",function(){(0,r.removeClass)(C,"xgplayer-is-cssfullscreen")});function e(){u.off("cssFullscreenBtnClick",g),u.off("destroy",e)}u.once("destroy",e),u.getCssFullscreen=function(){var t=this;t.config.fluid&&(t.root.style["padding-top"]=""),(0,r.addClass)(t.root,"xgplayer-is-cssfullscreen"),t.emit("requestCssFullscreen")},u.exitCssFullscreen=function(){var t=this;t.config.fluid&&(t.root.style.width="100%",t.root.style.height="0",t.root.style["padding-top"]=t.config.height*100/t.config.width+"%"),(0,r.removeClass)(t.root,"xgplayer-is-cssfullscreen"),t.emit("exitCssFullscreen")}};s.default={name:"cssFullscreen",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this;function C(g){var e=u.root.querySelector("xg-danmu");if((0,r.addClass)(e,"xgplayer-has-danmu"),!u.config.danmu.closeDefaultBtn){var t=function(){g.start()},c=function(){(0,r.hasClass)(u.danmuBtn,"danmu-switch-active")&&g.pause()},a=function(){(0,r.hasClass)(u.danmuBtn,"danmu-switch-active")&&g.play()},i=function(){(0,r.hasClass)(u.danmuBtn,"danmu-switch-active")&&(g.stop(),g.start())},f=function v(){u.off("timeupdate",t),u.off("pause",c),u.off("play",a),u.off("seeked",i),u.off("destroy",v)};u.danmuBtn=(0,r.copyDom)(g.bulletBtn.createSwitch(!0)),u.controls.appendChild(u.danmuBtn),["click","touchend"].forEach(function(v){u.danmuBtn.addEventListener(v,function(b){b.preventDefault(),b.stopPropagation(),(0,r.toggleClass)(u.danmuBtn,"danmu-switch-active"),(0,r.hasClass)(u.danmuBtn,"danmu-switch-active")?(u.emit("danmuBtnOn"),(0,r.addClass)(e,"xgplayer-has-danmu"),u.once("timeupdate",t)):(u.emit("danmuBtnOff"),(0,r.removeClass)(e,"xgplayer-has-danmu"),g.stop())})}),u.onElementClick&&e.addEventListener("click",function(v){u.onElementClick(v,e)},!1),u.onElementDblclick&&e.addEventListener("dblclick",function(v){u.onElementDblclick(v,e)},!1),u.on("pause",c),u.on("play",a),u.on("seeked",i),u.once("destroy",f)}}u.on("initDefaultDanmu",C)};s.default={name:"danmu",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this;function u(){T.off("destroy",u)}T.once("destroy",u)};s.default={name:"definition",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(86),S=u(r),T=l(87);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this;function t(){e.download()}e.on("downloadBtnClick",t);function c(){e.off("downloadBtnClick",t),e.off("destroy",c)}e.once("destroy",c),e.download=function(){var a=(0,T.getAbsoluteURL)(this.config.url);(0,S.default)(a)}};s.default={name:"download",method:C},k.exports=s.default},function(k,s,l){var r,S,T;(function(u,C){S=[],r=C,T=typeof r=="function"?r.apply(s,S):r,T!==void 0&&(k.exports=T)})(this,function(){return function u(C,g,e){var t=window,c="application/octet-stream",a=e||c,i=C,f=!g&&!e&&i,v=document.createElement("a"),b=function(m){return String(m)},x=t.Blob||t.MozBlob||t.WebKitBlob||b,_=g||"download",o,h;if(x=x.call?x.bind(t):Blob,String(this)==="true"&&(i=[i,a],a=i[0],i=i[1]),f&&f.length<2048&&(_=f.split("/").pop().split("?")[0],v.href=f,v.href.indexOf(f)!==-1)){var p=new XMLHttpRequest;return p.open("GET",f,!0),p.responseType="blob",p.onload=function(m){u(m.target.response,_,c)},setTimeout(function(){p.send()},0),p}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(i))if(i.length>1024*1024*1.999&&x!==b)i=E(i),a=i.type||c;else return navigator.msSaveBlob?navigator.msSaveBlob(E(i),_):D(i);else if(/([\x80-\xff])/.test(i)){var O=0,F=new Uint8Array(i.length),L=F.length;for(O;O<L;++O)F[O]=i.charCodeAt(O);i=new x([F],{type:a})}o=i instanceof x?i:new x([i],{type:a});function E(m){var P=m.split(/[:;,]/),z=P[1],H=P[2]=="base64"?atob:decodeURIComponent,K=H(P.pop()),A=K.length,M=0,B=new Uint8Array(A);for(M;M<A;++M)B[M]=K.charCodeAt(M);return new x([B],{type:z})}function D(m,P){if("download"in v)return v.href=m,v.setAttribute("download",_),v.className="download-js-link",v.innerHTML="downloading...",v.style.display="none",document.body.appendChild(v),setTimeout(function(){v.click(),document.body.removeChild(v),P===!0&&setTimeout(function(){t.URL.revokeObjectURL(v.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(m)&&(m="data:"+m.replace(/^data:([\w\/\-\+]+)/,c)),window.open(m)||confirm(`Displaying New Document
Use Save As... to download, then click back to return to this page.`)&&(location.href=m),!0;var z=document.createElement("iframe");document.body.appendChild(z),!P&&/^data:/.test(m)&&(m="data:"+m.replace(/^data:([\w\/\-\+]+)/,c)),z.src=m,setTimeout(function(){document.body.removeChild(z)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(o,_);if(t.URL)D(t.URL.createObjectURL(o),!0);else{if(typeof o=="string"||o.constructor===b)try{return D("data:"+a+";base64,"+t.btoa(o))}catch{return D("data:"+a+","+encodeURIComponent(o))}h=new FileReader,h.onload=function(m){D(this.result)},h.readAsDataURL(o)}return!0}})},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0}),s.getAbsoluteURL=function(S){if(!S.match(/^https?:\/\//)){var T=document.createElement("div");T.innerHTML='<a href="'+S+'">x</a>',S=T.firstChild.href}return S}},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(4),S=T(r);function T(g){return g&&g.__esModule?g:{default:g}}var u={maxCount:3,backupUrl:"",isFetch:!0,fetchTimeout:100};function C(){var g=this,e=this;if(!e.config.errorConfig||e.src.indexOf("blob:")>-1)return;var t={},c=e.config.errorConfig;for(var a in u)c[a]===void 0?t[a]=u[a]:t[a]=c[a];e.retryData={count:0,errfTimer:null,isFetchReturn:!1,currentTime:0};function i(b,x,_){var o=function(p,O){b.retryData.isFetchReturn||(b.retryData.isFetchReturn=!0,p(O))};return new Promise(function(h,p){try{var O=new window.XMLHttpRequest;O.open("get",x),O.onload=function(){o(h,{status:O.status,statusText:O.statusText,xhr:O})},O.onerror=function(){o(h,{status:O.status,statusText:O.statusText||"The network environment is disconnected or the address is invalid",xhr:O})},O.onabort=function(){},b.retryData.errfTimer=window.setTimeout(function(){var F=b.retryData.errfTimer;window.clearTimeout(F),b.retryData.errfTimer=null,o(h,{status:-1,statusText:"request timeout"})},_),O.send()}catch{b.retryData.isFetchReturn=!0,o(h,{status:-2,statusText:"request error"})}})}function f(){this.currentTime=this.retryData.currentTime,this.play(),this.retryData.retryCode=0,this.retryData.isFetchReturn=!1,this.retryData.currentTime=0}var v=e._onError;e._onError=function(b){var x=g.retryData.count;if(x>t.maxCount){t.isFetch?i(g,g.currentSrc,t.fetchTimeout).then(function(o){g.emit("error",new S.default({type:"network",currentTime:g.currentTime,duration:g.duration||0,networkState:g.networkState,readyState:g.readyState,currentSrc:g.currentSrc,src:g.src,ended:g.ended,httpCode:o.status,httpMsg:o.statusText,errd:{line:101,msg:g.error,handle:"plugin errorRetry"},errorCode:g.video&&g.video.error.code,mediaError:g.video&&g.video.error})),v.call(g,o)}):v.call(g,b);return}x===0&&(g.retryData.currentTime=g.currentTime,g.once("canplay",f.bind(g)));var _="";t.count<2?_=t.backupUrl?t.backupUrl:e.currentSrc:_=t.backupUrl&&x>1?t.backupUrl:e.currentSrc,g.retryData.count++,g.src=_}}s.default={name:"errorretry",method:C},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){function g(e,t){for(var c=0;c<t.length;c++){var a=t[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,t,c){return t&&g(e.prototype,t),c&&g(e,c),e}}(),S=l(0);function T(g,e){if(!(g instanceof e))throw new TypeError("Cannot call a class as a function")}var u=function(){function g(e){T(this,g),this.player=e,this.state={playbackRate:0,isRepeat:!1,keyCode:0,repeat:0,isBody:!1},this.timer=null,this.initEvents()}return r(g,[{key:"initEvents",value:function(){var t=this,c=this.player,a=c.root,i=c.config;if(this.player.onBodyKeydown=this.onBodyKeydown.bind(this),this.player.onKeydown=this.onKeydown.bind(this),this.player.onKeyup=this.onKeyup.bind(this),!i.keyShortcut||i.keyShortcut==="on"){document.addEventListener("keydown",this.player.onBodyKeydown),a.addEventListener("keydown",this.player.onKeydown);var f=function(){document.removeEventListener("keydown",t.player.onBodyKeydown),a.removeEventListener("keydown",t.player.onKeydown),clearTimeout(t.timer),t.timer=null};(0,S.on)(this.player,"destroy",f)}}},{key:"checkTarget",value:function(t){var c=this.player;return t.target===c.root||t.target===c.video||t.target===c.controls}},{key:"onBodyKeydown",value:function(t){var c=t||window.event,a=c.keyCode;if(c.target===document.body&&(a===37||a===39||a===32))return c.preventDefault(),c.cancelBubble=!0,c.returnValue=!1,c.repeat||document.addEventListener("keyup",this.player.onKeyup),this.handler(c),!1}},{key:"onKeydown",value:function(t){var c=t||window.event,a=c.keyCode;if(this.checkTarget(c)&&(a===37||a===38||a===39||a===40||a===32||a===27))return c.preventDefault(),c.cancelBubble=!0,c.returnValue=!1,this.player.emit("focus"),c.repeat||this.player.root.addEventListener("keyup",this.player.onKeyup),this.handler(c),!1}},{key:"onKeyup",value:function(){var t=this.state,c=this.player;document.removeEventListener("keyup",this.player.onKeyup),c.root.removeEventListener("keyup",this.player.onKeyup),!!t.keyCode&&(t.playbackRate!==0&&(c.playbackRate=t.playbackRate),t.isRepeat||this.handlerKeyCode(t.keyCode,!1),t.playbackRate=0,t.isRepeat=!1,t.keyCode=0,t.repeat=0,this.changeVolumeSlide())}},{key:"handler",value:function(t){var c=this.state,a=this.player;c.keyCode=t.keyCode,c.isRepeat=t.repeat,t.repeat&&(a.config.disableLongPress?this.handlerKeyCode(c.keyCode,!1):c.repeat%2===0&&this.handlerKeyCode(c.keyCode,!0),c.repeat++)}},{key:"handlerKeyCode",value:function(t,c){var a=this.player,i=this.state;switch(t){case 39:c?i.repeat===0&&this.changeRate():this.seek(!1,c);break;case 37:this.seek(!0,c);break;case 38:this.changeVolume(!0);break;case 40:this.changeVolume(!1);break;case 32:c||(a.paused?a.play():a.pause());break;case 27:(0,S.hasClass)(a.root,"xgplayer-is-cssfullscreen")&&a.exitCssFullscreen();break}}},{key:"seek",value:function(t,c){var a=this.player,i=a.config.keyShortcutStep||{},f=i.currentTime||10;a.isLoading||a.isSeeking||c&&this.state.repeat%8>0||(t?a.currentTime-f>=0?a.currentTime-=f:a.currentTime=0:a.maxPlayedTime&&a.config.allowSeekPlayed&&a.currentTime+f>a.maxPlayedTime?a.currentTime=a.maxPlayedTime:a.currentTime+f<=a.duration?a.currentTime+=f:a.currentTime=a.duration+1)}},{key:"changeRate",value:function(){this.state.playbackRate=this.player.playbackRate,this.player.playbackRate=this.player.config.keyboardRate||5}},{key:"changeVolumeSlide",value:function(t){var c=this.player;!c.controls||(t?(c.emit("focus"),(0,S.hasClass)(c.root,"xgplayer-volume-active")||(0,S.addClass)(c.root,"xgplayer-volume-active")):(clearTimeout(this.timer),this.timer=setTimeout(function(){(0,S.removeClass)(c.root,"xgplayer-volume-active")},1e3)))}},{key:"changeVolume",value:function(t){var c=this.player,a=c.config.keyShortcutStep||{},i=a.volume||.1;this.changeVolumeSlide(!0);var f=c.volume;t&&f+i<=1?c.volume=f+i:!t&&f-i>=0&&(c.volume=f-i)}}]),g}(),C=function(){var e=this;e.keyboard=new u(e)};s.default={name:"keyboard",method:C},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.root;function g(t){u.uploadFile=t.files[0];var c=URL.createObjectURL(u.uploadFile);if((0,r.hasClass)(C,"xgplayer-nostart"))u.config.url=c,u.start();else{u.src=c;var a=u.play();a!==void 0&&a&&a.catch(function(i){})}}u.on("upload",g);function e(){u.off("upload",g),u.off("destroy",e)}u.once("destroy",e)};s.default={name:"localPreview",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this;T.on("memoryPlayStart",function(u){setTimeout(function(){console.log("memoryPlayStart",u,T.readyState,11),T.currentTime=u})})};s.default={name:"memoryPlay",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(93),T=u(S);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.root;function c(){(0,r.hasClass)(t,"xgplayer-miniplayer-active")?e.exitMiniplayer():e.getMiniplayer()}e.on("miniplayerBtnClick",c);function a(){e.off("miniplayerBtnClick",c),e.off("destroy",a)}e.once("destroy",a),e.getMiniplayer=function(){(0,r.hasClass)(t,"xgplayer-is-fullscreen")&&this.exitFullscreen(t),(0,r.hasClass)(t,"xgplayer-is-cssfullscreen")&&this.exitCssFullscreen(),(0,r.hasClass)(t,"xgplayer-rotate-fullscreen")&&this.exitRotateFullscreen();var i=(0,r.createDom)("xg-miniplayer-lay","<div></div>",{},"xgplayer-miniplayer-lay");this.root.appendChild(i);var f=(0,r.createDom)("xg-miniplayer-drag",'<div class="drag-handle"><span>'+this.lang.MINIPLAYER_DRAG+"</span></div>",{tabindex:9},"xgplayer-miniplayer-drag");this.root.appendChild(f),new T.default(".xgplayer",{handle:".drag-handle"}),(0,r.addClass)(this.root,"xgplayer-miniplayer-active"),this.root.style.right=0,this.root.style.bottom="200px",this.root.style.top="",this.root.style.left="",this.root.style.width="320px",this.root.style.height="180px",this.config.miniplayerConfig&&(this.config.miniplayerConfig.top!==void 0&&(this.root.style.top=this.config.miniplayerConfig.top+"px",this.root.style.bottom=""),this.config.miniplayerConfig.bottom!==void 0&&(this.root.style.bottom=this.config.miniplayerConfig.bottom+"px"),this.config.miniplayerConfig.left!==void 0&&(this.root.style.left=this.config.miniplayerConfig.left+"px",this.root.style.right=""),this.config.miniplayerConfig.right!==void 0&&(this.root.style.right=this.config.miniplayerConfig.right+"px"),this.config.miniplayerConfig.width!==void 0&&(this.root.style.width=this.config.miniplayerConfig.width+"px"),this.config.miniplayerConfig.height!==void 0&&(this.root.style.height=this.config.miniplayerConfig.height+"px")),this.config.fluid&&(this.root.style["padding-top"]="");var v=this;["click","touchend"].forEach(function(b){i.addEventListener(b,function(x){x.preventDefault(),x.stopPropagation(),v.exitMiniplayer()})})},e.exitMiniplayer=function(){(0,r.removeClass)(this.root,"xgplayer-miniplayer-active"),this.root.style.right="",this.root.style.bottom="",this.root.style.top="",this.root.style.left="",this.config.fluid?(this.root.style.width="100%",this.root.style.height="0",this.root.style["padding-top"]=this.config.height*100/this.config.width+"%"):(this.config.width&&(typeof this.config.width!="number"?this.root.style.width=this.config.width:this.root.style.width=this.config.width+"px"),this.config.height&&(typeof this.config.height!="number"?this.root.style.height=this.config.height:this.root.style.height=this.config.height+"px"));var i=(0,r.findDom)(this.root,".xgplayer-miniplayer-lay");i&&i.parentNode&&i.parentNode.removeChild(i);var f=(0,r.findDom)(this.root,".xgplayer-miniplayer-drag");f&&f.parentNode&&f.parentNode.removeChild(f)}};s.default={name:"miniplayer",method:C},k.exports=s.default},function(k,s,l){var r,S;/*!
* Draggabilly v2.3.0
* Make that shiz draggable
* https://draggabilly.desandro.com
* MIT license
*/(function(T,u){r=[l(94),l(95)],S=function(C,g){return u(T,C,g)}.apply(s,r),S!==void 0&&(k.exports=S)})(window,function(u,C,g){function e(b,x){for(var _ in x)b[_]=x[_];return b}function t(){}var c=u.jQuery;function a(b,x){this.element=typeof b=="string"?document.querySelector(b):b,c&&(this.$element=c(this.element)),this.options=e({},this.constructor.defaults),this.option(x),this._create()}var i=a.prototype=Object.create(g.prototype);a.defaults={},i.option=function(b){e(this.options,b)};var f={relative:!0,absolute:!0,fixed:!0};i._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=e({},this.position);var b=getComputedStyle(this.element);f[b.position]||(this.element.style.position="relative"),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},i.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},i.dispatchEvent=function(b,x,_){var o=[x].concat(_);this.emitEvent(b,o),this.dispatchJQueryEvent(b,x,_)},i.dispatchJQueryEvent=function(b,x,_){var o=u.jQuery;if(!(!o||!this.$element)){var h=o.Event(x);h.type=b,this.$element.trigger(h,_)}},i._getPosition=function(){var b=getComputedStyle(this.element),x=this._getPositionCoord(b.left,"width"),_=this._getPositionCoord(b.top,"height");this.position.x=isNaN(x)?0:x,this.position.y=isNaN(_)?0:_,this._addTransformPosition(b)},i._getPositionCoord=function(b,x){if(b.indexOf("%")!=-1){var _=C(this.element.parentNode);return _?parseFloat(b)/100*_[x]:0}return parseInt(b,10)},i._addTransformPosition=function(b){var x=b.transform;if(x.indexOf("matrix")===0){var _=x.split(","),o=x.indexOf("matrix3d")===0?12:4,h=parseInt(_[o],10),p=parseInt(_[o+1],10);this.position.x+=h,this.position.y+=p}},i.onPointerDown=function(b,x){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",b,[x])},i.pointerDown=function(b,x){var _=this.okayPointerDown(b);if(!_||!this.isEnabled){this._pointerReset();return}this.pointerDownPointer={pageX:x.pageX,pageY:x.pageY},b.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(b),this.element.classList.add("is-pointer-down"),this.dispatchEvent("pointerDown",b,[x])},i.dragStart=function(b,x){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",b,[x]),this.animate())},i.measureContainment=function(){var b=this.getContainer();if(!!b){var x=C(this.element),_=C(b),o=this.element.getBoundingClientRect(),h=b.getBoundingClientRect(),p=_.borderLeftWidth+_.borderRightWidth,O=_.borderTopWidth+_.borderBottomWidth,F=this.relativeStartPosition={x:o.left-(h.left+_.borderLeftWidth),y:o.top-(h.top+_.borderTopWidth)};this.containSize={width:_.width-p-F.x-x.width,height:_.height-O-F.y-x.height}}},i.getContainer=function(){var b=this.options.containment;if(!!b){var x=b instanceof HTMLElement;return x?b:typeof b=="string"?document.querySelector(b):this.element.parentNode}},i.onPointerMove=function(b,x,_){this.dispatchJQueryEvent("pointerMove",b,[x,_])},i.dragMove=function(b,x,_){if(!!this.isEnabled){var o=_.x,h=_.y,p=this.options.grid,O=p&&p[0],F=p&&p[1];o=v(o,O),h=v(h,F),o=this.containDrag("x",o,O),h=this.containDrag("y",h,F),o=this.options.axis=="y"?0:o,h=this.options.axis=="x"?0:h,this.position.x=this.startPosition.x+o,this.position.y=this.startPosition.y+h,this.dragPoint.x=o,this.dragPoint.y=h,this.dispatchEvent("dragMove",b,[x,_])}};function v(b,x,_){return _=_||"round",x?Math[_](b/x)*x:b}return i.containDrag=function(b,x,_){if(!this.options.containment)return x;var o=b=="x"?"width":"height",h=this.relativeStartPosition[b],p=v(-h,_,"ceil"),O=this.containSize[o];return O=v(O,_,"floor"),Math.max(p,Math.min(O,x))},i.onPointerUp=function(b,x){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",b,[x])},i.dragEnd=function(b,x){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",b,[x]))},i.animate=function(){if(!!this.isDragging){this.positionDrag();var b=this;requestAnimationFrame(function(){b.animate()})}},i.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},i.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},i.staticClick=function(b,x){this.dispatchEvent("staticClick",b,[x])},i.setPosition=function(b,x){this.position.x=b,this.position.y=x,this.setLeftTop()},i.enable=function(){this.isEnabled=!0},i.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},i.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},i._init=t,c&&c.bridget&&c.bridget("draggabilly",a),a})},function(k,s,l){var r,S;/*!
* getSize v2.0.3
* measure size of elements
* MIT license
*/(function(T,u){r=u,S=typeof r=="function"?r.call(s,l,s,k):r,S!==void 0&&(k.exports=S)})(window,function(){function u(x){var _=parseFloat(x),o=x.indexOf("%")==-1&&!isNaN(_);return o&&_}function C(){}var g=typeof console=="undefined"?C:function(x){console.error(x)},e=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],t=e.length;function c(){for(var x={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},_=0;_<t;_++){var o=e[_];x[o]=0}return x}function a(x){var _=getComputedStyle(x);return _||g("Style returned "+_+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),_}var i=!1,f;function v(){if(!i){i=!0;var x=document.createElement("div");x.style.width="200px",x.style.padding="1px 2px 3px 4px",x.style.borderStyle="solid",x.style.borderWidth="1px 2px 3px 4px",x.style.boxSizing="border-box";var _=document.body||document.documentElement;_.appendChild(x);var o=a(x);f=Math.round(u(o.width))==200,b.isBoxSizeOuter=f,_.removeChild(x)}}function b(x){if(v(),typeof x=="string"&&(x=document.querySelector(x)),!(!x||typeof x!="object"||!x.nodeType)){var _=a(x);if(_.display=="none")return c();var o={};o.width=x.offsetWidth,o.height=x.offsetHeight;for(var h=o.isBorderBox=_.boxSizing=="border-box",p=0;p<t;p++){var O=e[p],F=_[O],L=parseFloat(F);o[O]=isNaN(L)?0:L}var E=o.paddingLeft+o.paddingRight,D=o.paddingTop+o.paddingBottom,m=o.marginLeft+o.marginRight,P=o.marginTop+o.marginBottom,z=o.borderLeftWidth+o.borderRightWidth,H=o.borderTopWidth+o.borderBottomWidth,K=h&&f,A=u(_.width);A!==!1&&(o.width=A+(K?0:E+z));var M=u(_.height);return M!==!1&&(o.height=M+(K?0:D+H)),o.innerWidth=o.width-(E+z),o.innerHeight=o.height-(D+H),o.outerWidth=o.width+m,o.outerHeight=o.height+P,o}}return b})},function(k,s,l){var r,S;/*!
* Unidragger v2.3.1
* Draggable base class
* MIT license
*/(function(T,u){r=[l(96)],S=function(C){return u(T,C)}.apply(s,r),S!==void 0&&(k.exports=S)})(window,function(u,C){function g(){}var e=g.prototype=Object.create(C.prototype);e.bindHandles=function(){this._bindHandles(!0)},e.unbindHandles=function(){this._bindHandles(!1)},e._bindHandles=function(a){a=a===void 0?!0:a;for(var i=a?"addEventListener":"removeEventListener",f=a?this._touchActionValue:"",v=0;v<this.handles.length;v++){var b=this.handles[v];this._bindStartEvent(b,a),b[i]("click",this),u.PointerEvent&&(b.style.touchAction=f)}},e._touchActionValue="none",e.pointerDown=function(a,i){var f=this.okayPointerDown(a);!f||(this.pointerDownPointer={pageX:i.pageX,pageY:i.pageY},a.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,i]))};var t={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},c={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return e.okayPointerDown=function(a){var i=t[a.target.nodeName],f=c[a.target.type],v=!i||f;return v||this._pointerReset(),v},e.pointerDownBlur=function(){var a=document.activeElement,i=a&&a.blur&&a!=document.body;i&&a.blur()},e.pointerMove=function(a,i){var f=this._dragPointerMove(a,i);this.emitEvent("pointerMove",[a,i,f]),this._dragMove(a,i,f)},e._dragPointerMove=function(a,i){var f={x:i.pageX-this.pointerDownPointer.pageX,y:i.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(f)&&this._dragStart(a,i),f},e.hasDragStarted=function(a){return Math.abs(a.x)>3||Math.abs(a.y)>3},e.pointerUp=function(a,i){this.emitEvent("pointerUp",[a,i]),this._dragPointerUp(a,i)},e._dragPointerUp=function(a,i){this.isDragging?this._dragEnd(a,i):this._staticClick(a,i)},e._dragStart=function(a,i){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(a,i)},e.dragStart=function(a,i){this.emitEvent("dragStart",[a,i])},e._dragMove=function(a,i,f){!this.isDragging||this.dragMove(a,i,f)},e.dragMove=function(a,i,f){a.preventDefault(),this.emitEvent("dragMove",[a,i,f])},e._dragEnd=function(a,i){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(a,i)},e.dragEnd=function(a,i){this.emitEvent("dragEnd",[a,i])},e.onclick=function(a){this.isPreventingClicks&&a.preventDefault()},e._staticClick=function(a,i){this.isIgnoringMouseUp&&a.type=="mouseup"||(this.staticClick(a,i),a.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},e.staticClick=function(a,i){this.emitEvent("staticClick",[a,i])},g.getPointerPoint=C.getPointerPoint,g})},function(k,s,l){var r,S;/*!
* Unipointer v2.3.0
* base class for doing one thing with pointer event
* MIT license
*/(function(T,u){r=[l(97)],S=function(C){return u(T,C)}.apply(s,r),S!==void 0&&(k.exports=S)})(window,function(u,C){function g(){}function e(){}var t=e.prototype=Object.create(C.prototype);t.bindStartEvent=function(a){this._bindStartEvent(a,!0)},t.unbindStartEvent=function(a){this._bindStartEvent(a,!1)},t._bindStartEvent=function(a,i){i=i===void 0?!0:i;var f=i?"addEventListener":"removeEventListener",v="mousedown";u.PointerEvent?v="pointerdown":"ontouchstart"in u&&(v="touchstart"),a[f](v,this)},t.handleEvent=function(a){var i="on"+a.type;this[i]&&this[i](a)},t.getTouch=function(a){for(var i=0;i<a.length;i++){var f=a[i];if(f.identifier==this.pointerIdentifier)return f}},t.onmousedown=function(a){var i=a.button;i&&i!==0&&i!==1||this._pointerDown(a,a)},t.ontouchstart=function(a){this._pointerDown(a,a.changedTouches[0])},t.onpointerdown=function(a){this._pointerDown(a,a)},t._pointerDown=function(a,i){a.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=i.pointerId!==void 0?i.pointerId:i.identifier,this.pointerDown(a,i))},t.pointerDown=function(a,i){this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,i])};var c={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return t._bindPostStartEvents=function(a){if(!!a){var i=c[a.type];i.forEach(function(f){u.addEventListener(f,this)},this),this._boundPointerEvents=i}},t._unbindPostStartEvents=function(){!this._boundPointerEvents||(this._boundPointerEvents.forEach(function(a){u.removeEventListener(a,this)},this),delete this._boundPointerEvents)},t.onmousemove=function(a){this._pointerMove(a,a)},t.onpointermove=function(a){a.pointerId==this.pointerIdentifier&&this._pointerMove(a,a)},t.ontouchmove=function(a){var i=this.getTouch(a.changedTouches);i&&this._pointerMove(a,i)},t._pointerMove=function(a,i){this.pointerMove(a,i)},t.pointerMove=function(a,i){this.emitEvent("pointerMove",[a,i])},t.onmouseup=function(a){this._pointerUp(a,a)},t.onpointerup=function(a){a.pointerId==this.pointerIdentifier&&this._pointerUp(a,a)},t.ontouchend=function(a){var i=this.getTouch(a.changedTouches);i&&this._pointerUp(a,i)},t._pointerUp=function(a,i){this._pointerDone(),this.pointerUp(a,i)},t.pointerUp=function(a,i){this.emitEvent("pointerUp",[a,i])},t._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},t._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},t.pointerDone=g,t.onpointercancel=function(a){a.pointerId==this.pointerIdentifier&&this._pointerCancel(a,a)},t.ontouchcancel=function(a){var i=this.getTouch(a.changedTouches);i&&this._pointerCancel(a,i)},t._pointerCancel=function(a,i){this._pointerDone(),this.pointerCancel(a,i)},t.pointerCancel=function(a,i){this.emitEvent("pointerCancel",[a,i])},e.getPointerPoint=function(a){return{x:a.pageX,y:a.pageY}},e})},function(k,s,l){var r,S;(function(T,u){r=u,S=typeof r=="function"?r.call(s,l,s,k):r,S!==void 0&&(k.exports=S)})(typeof window!="undefined"?window:this,function(){function T(){}var u=T.prototype;return u.on=function(C,g){if(!(!C||!g)){var e=this._events=this._events||{},t=e[C]=e[C]||[];return t.indexOf(g)==-1&&t.push(g),this}},u.once=function(C,g){if(!(!C||!g)){this.on(C,g);var e=this._onceEvents=this._onceEvents||{},t=e[C]=e[C]||{};return t[g]=!0,this}},u.off=function(C,g){var e=this._events&&this._events[C];if(!(!e||!e.length)){var t=e.indexOf(g);return t!=-1&&e.splice(t,1),this}},u.emitEvent=function(C,g){var e=this._events&&this._events[C];if(!(!e||!e.length)){e=e.slice(0),g=g||[];for(var t=this._onceEvents&&this._onceEvents[C],c=0;c<e.length;c++){var a=e[c],i=t&&t[a];i&&(this.off(C,a),delete t[a]),a.apply(this,g)}return this}},u.allOff=function(){delete this._events,delete this._onceEvents},T})},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=this;function g(){C.video!==document.pictureInPictureElement?C.video.requestPictureInPicture():document.exitPictureInPicture()}C.on("pipBtnClick",g);var e=function(a){var i=C.video.webkitPresentationMode;u.pMode=i,i===r.PresentationMode.PIP?C.emit("requestPictureInPicture",a.pictureInPictureWindow):i===r.PresentationMode.INLINE&&C.emit("exitPictureInPicture")};C.video.addEventListener("enterpictureinpicture",function(c){(0,r.addClass)(C.root,"xgplayer-pip-active"),C.emit("requestPictureInPicture",c)}),C.video.addEventListener("leavepictureinpicture",function(){(0,r.removeClass)(C.root,"xgplayer-pip-active"),C.emit("exitPictureInPicture")}),(0,r.checkWebkitSetPresentationMode)(C.video)&&C.video.addEventListener("webkitpresentationmodechanged",e);function t(){C.off("pipBtnClick",g),C.off("destroy",t),(0,r.checkWebkitSetPresentationMode)(C.video)&&C.video.removeEventListener("webkitpresentationmodechanged",e)}C.once("destroy",t)};s.default={name:"pip",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this,u=T.config.playNext;T.currentVideoIndex=-1;function C(){T.currentVideoIndex+1<u.urlList.length&&(T.currentVideoIndex++,T.video.autoplay=!0,T.src=u.urlList[T.currentVideoIndex],T.emit("playerNext",T.currentVideoIndex+1),T.currentVideoIndex+1===u.urlList.length&&T.emit("urlListEnd"))}T.on("playNextBtnClick",C);function g(){T.off("playNextBtnClick",C),T.off("destroy",g)}T.once("destroy",g)};s.default={name:"playNext",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this,C=u.config.reload;if(!C)return;function g(){(0,r.removeClass)(u.root,"xgplayer-is-error"),u.src=u.config.url}u.on("reloadBtnClick",g);function e(){u.off("reloadBtnClick",g),u.off("destroy",e)}u.once("destroy",e)};s.default={name:"reload",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this,u=T.config.rotate;if(!u)return;function C(){T.rotate(u.clockwise,u.innerRotate)}T.on("rotateBtnClick",C);function g(){T.off("rotateBtnClick",C),T.off("destroy",g)}T.once("destroy",g),T.updateRotateDeg=function(){var e=this;e.rotateDeg||(e.rotateDeg=0);var t=e.root.offsetWidth,c=e.root.offsetHeight,a=e.video.videoWidth,i=e.video.videoHeight;!e.config.rotate.innerRotate&&e.config.rotate.controlsFix&&(e.root.style.width=c+"px",e.root.style.height=t+"px");var f=void 0;if(e.rotateDeg===.25||e.rotateDeg===.75){if(e.config.rotate.innerRotate)if(a/i>c/t){var v=0;i/a>c/t?v=c*a/i:v=t,f=c/v}else{var b=0;i/a>c/t?b=c:b=t*i/a,f=t/b}else t>=c?f=t/c:f=c/t;f=Number(f.toFixed(5))}else f=1;e.config.rotate.innerRotate||e.config.rotate.controlsFix?(e.video.style.transformOrigin="center center",e.video.style.transform="rotate("+e.rotateDeg+"turn) scale("+f+")",e.video.style.webKitTransform="rotate("+e.rotateDeg+"turn) scale("+f+")"):(e.root.style.transformOrigin="center center",e.root.style.transform="rotate("+e.rotateDeg+"turn) scale("+1+")",e.root.style.webKitTransform="rotate("+e.rotateDeg+"turn) scale("+1+")")},T.rotate=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=this;c.rotateDeg||(c.rotateDeg=0);var a=e?1:-1;c.rotateDeg=(c.rotateDeg+1+a*.25*t)%1,this.updateRotateDeg(),c.emit("rotate",c.rotateDeg*360)}};s.default={name:"rotate",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){var T=this,u=T.config.screenShot;if(!u)return;T.video.setAttribute("crossOrigin","anonymous");var C=.92;(u.quality||u.quality===0)&&(C=u.quality);var g=u.type===void 0?"image/png":u.type,e=u.format===void 0?".png":u.format,t=document.createElement("canvas"),c=t.getContext("2d"),a=new Image;t.width=this.config.width||600,t.height=this.config.height||337.5;var i=function(b,x){var _=document.createElement("a");_.href=b,_.download=x;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),_.dispatchEvent(o)};T.screenShot=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;v=u.saveImg===void 0?v:u.saveImg,t.width=T.video.videoWidth||600,t.height=T.video.videoHeight||337.5,a.onload=function(){c.drawImage(T.video,0,0,t.width,t.height),a.src=t.toDataURL(g,C).replace(g,"image/octet-stream");var b=a.src.replace(/^data:image\/[^;]+/,"data:application/octet-stream");T.emit("screenShot",b),v&&i(b,"\u622A\u56FE"+e)}()},T.on("screenShotBtnClick",T.screenShot);function f(){T.off("screenShotBtnClick",T.screenShot),T.off("destroy",f)}T.once("destroy",f)};s.default={name:"screenShot",method:r},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(4),S=T(r);function T(C){return C&&C.__esModule?C:{default:C}}function u(){var C=this;if(!!C.config.enableStallCheck){var g=0,e=void 0,t=void 0;C.once("complete",function(){setInterval(function(){C.currentTime-(g||0)>.1||C.paused?(e===1||e===2)&&(e=0,clearTimeout(t),t=null):e||(e=1,t=setTimeout(function(){e===1&&(e=2,C.emit("error",new S.default("STALL"))),t=null},2e4)),g=C.currentTime},1e3)})}}s.default={name:"stallCheck",method:u},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(5),T=u(S);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.root,c=void 0,a=void 0,i=void 0,f=void 0;function v(){!e.controls||(e.volume=e.config.volume,c=e.controls.querySelector(".xgplayer-volume"),!!c&&(a=c.querySelector(".xgplayer-slider"),i=c.querySelector(".xgplayer-bar"),f=c.querySelector(".xgplayer-drag"),T.default.device==="mobile"&&(e.volume===0&&(e.video.muted=!0),p())))}e.once("canplay",v);function b(F){if(!!a){e.video.muted=!1,a.focus(),(0,r.event)(F);var L=i.getBoundingClientRect(),E={x:F.clientX,y:F.clientY},D=f.getBoundingClientRect().height,m=!1,P=function(K){K.preventDefault(),K.stopPropagation(),(0,r.event)(K),m=!0;var A=D-K.clientY+E.y,M=A/L.height;f.style.height=A+"px",e.volume=Math.max(Math.min(M,1),0)},z=function H(K){if(K.preventDefault(),K.stopPropagation(),(0,r.event)(K),window.removeEventListener("mousemove",P),window.removeEventListener("touchmove",P),window.removeEventListener("mouseup",H),window.removeEventListener("touchend",H),!m){var A=L.height-(K.clientY-L.top),M=A/L.height;f.style.height=A+"px",M<=0&&(e.volume>0?f.volume=e.video.volume:M=f.volume),e.volume=Math.max(Math.min(M,1),0)}a.volume=e.volume,m=!1};return window.addEventListener("mousemove",P),window.addEventListener("touchmove",P),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),!1}}e.on("volumeBarClick",b);function x(){if(T.default.device==="mobile")e.video.muted?(e.video.muted=!1,e.emit("unmute"),e.volume=1):(e.video.muted=!0,e.emit("mute"),e.volume=0);else{if(!a)return;e.video.muted=!1,e.volume<.1?(a.volume<.1?e.volume=.6:e.volume=a.volume,e.emit("unmute")):(e.volume=0,e.emit("mute"))}}e.on("volumeIconClick",x);function _(){(0,r.addClass)(t,"xgplayer-volume-active"),c&&c.focus()}e.on("volumeIconEnter",_);function o(){(0,r.removeClass)(t,"xgplayer-volume-active")}e.on("volumeIconLeave",o);var h=null;function p(){h&&clearTimeout(h),h=setTimeout(function(){if(T.default.device==="mobile")(0,r.removeClass)(t,"xgplayer-volume-muted"),(0,r.removeClass)(t,"xgplayer-volume-large"),e.video.muted||e.video.defaultMuted?(e.video.muted||(e.video.muted=!0),e.video.defaultMuted=!1,(0,r.addClass)(t,"xgplayer-volume-muted")):(0,r.addClass)(t,"xgplayer-volume-large");else{if((0,r.removeClass)(t,"xgplayer-volume-muted"),(0,r.removeClass)(t,"xgplayer-volume-small"),(0,r.removeClass)(t,"xgplayer-volume-large"),e.volume===0||e.muted?(0,r.addClass)(t,"xgplayer-volume-muted"):e.volume<.5?(0,r.addClass)(t,"xgplayer-volume-small"):(0,r.addClass)(t,"xgplayer-volume-large"),!i)return;var F=i.getBoundingClientRect().height||76;f.style.height=e.volume*F+"px"}},50)}e.on("volumechange",p);function O(){e.off("canplay",v),e.off("volumeBarClick",b),e.off("volumeIconClick",x),e.off("volumeIconEnter",_),e.off("volumeIconLeave",o),e.off("volumechange",p),e.off("destroy",O),h&&(clearTimeout(h),h=null)}e.once("destroy",O)};s.default={name:"volume",method:C},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=function(){function c(a,i){for(var f=0;f<i.length;f++){var v=i[f];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}return function(a,i,f){return i&&c(a.prototype,i),f&&c(a,f),a}}(),S=l(106),T=u(S);function u(c){return c&&c.__esModule?c:{default:c}}function C(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}var g={follow:!0,mode:"stroke",followBottom:50,fitVideo:!0,offsetBottom:2,baseSizeX:49,baseSizeY:28,minSize:16,minMobileSize:13,line:"double",fontColor:"#fff"},e=function(){function c(a,i,f){var v=this;C(this,c);var b=this.create(i,f,a.textTrackShowDefault);b.attachPlayer(a),this.subtitle=b,this.player=a,this.positionData={vBottom:0,marginBottom:0},this.isActive=!1,this.followBottom=f.followBottom,["onSubtitleResize","onFocus","onBlur"].map(function(x){v[x]=v[x].bind(v)}),a.controls&&f.follow&&(this.subtitle.on("resize",this.onSubtitleResize),a.on("focus",this.onFocus),a.on("blur",this.onBlur))}return r(c,[{key:"create",value:function(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b={subTitles:i,defaultOpen:v};return Object.keys(f).map(function(x){b[x]=f[x]}),new T.default(b)}},{key:"switch",value:function(i){return this.subtitle.switch(i)}},{key:"switchOff",value:function(){return this.subtitle.switchOff()}},{key:"setSubTitles",value:function(i,f,v){return this.subtitle.setSubTitles(i,f,v)}},{key:"onFocus",value:function(){var i=this.positionData,f=i.marginBottom,v=i.vBottom;if(!(this.isActive||!f)){this.isActive=!0;var b=f+v;this.followBottom>b&&(b=this.followBottom),this.subtitle&&(this.subtitle.root.style.bottom=b+"px")}}},{key:"onBlur",value:function(){this.isActive=!1;var i=this.positionData.vBottom+this.positionData.marginBottom;this.subtitle&&(this.subtitle.root.style.bottom=i+"px")}},{key:"onSubtitleResize",value:function(i){this.positionData.vBottom=i.vBottom,this.positionData.marginBottom=i.marginBottom}},{key:"destroy",value:function(){this.subtitle.off("resize",this.onSubtitleResize),this.player.off("focus",this.onFocus),this.player.off("blur",this.onBlur),this.subtitle.destroy(),this.subtitle=null}}]),c}(),t=function(){var a=this,i=this,f=i.config.textTrack;if(!f)return;var v=i.config.textTrackStyle||{};Object.keys(g).map(function(x){v[x]===void 0&&(v[x]=g[x])}),i.textTrackShowDefault=!1,i.config.textTrack.map(function(x,_){!x.id&&!x.language&&(x.id=_),!x.url&&(x.url=x.src),!x.language&&(x.language=x.srclang),x.isDefault===void 0&&(x.isDefault=x.default),!i.textTrackShowDefault&&(i.textTrackShowDefault=x.isDefault||x.default)}),this.subTitles=new e(i,i.config.textTrack,v),i.setSubTitles=function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=!1;x.map(function(h,p){!h.id&&!h.language&&(h.id=p),!h.url&&(h.url=h.src),!h.language&&(h.language=h.srclang),h.isDefault===void 0&&(h.isDefault=h.default),h.isDefault&&(o=!0)}),i.textTrackShowDefault=o,a.subTitles.setSubTitles(x,o,_),i.emit("subtitle_change",{off:!1,isListUpdate:!0,list:x})},i.switchSubTitle=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{id:"",language:""};a.subTitles.switch(x).then(function(_){_.code===0&&(x.off=!1,x.isListUpdate=!1,x.list=[],i.emit("subtitle_change",x))})},i.switchOffSubtile=function(){a.subTitles.switchOff(),i.emit("subtitle_change",{off:!0,isListUpdate:!1,list:[]})};function b(){this.subTitles.destroy(),this.subTitles=null}i.once("destroy",b)};s.default={name:"textTrack",method:t},k.exports=s.default},function(k,s,l){(function(r,S){k.exports=S()})(this,function(){function r(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function S(n,d){return d={exports:{}},n(d,d.exports),d.exports}function T(n){var d,y;this.promise=new n(function(w,R){if(d!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");d=w,y=R}),this.resolve=G(d),this.reject=G(y)}function u(n){var d=n.length;return d===3?(60*(60*Number(n[0])+Number(n[1]))*1e3+1e3*Number(n[2]))/1e3:d===2?(60*Number(n[0])*1e3+1e3*Number(n[1]))/1e3:Number(n[0])}function C(n){return/^(\-|\+)?\d+(\.\d+)?$/.test(n)}function g(n){return n}function e(n,d){return n>=0&&n<d.length?d[n]:""}function t(n,d){if(!n)return!1;if(n.classList)return Array.prototype.some.call(n.classList,function(w){return w===d});var y=n.className&&Dt(n.className)==="object"?n.getAttribute("class"):n.className;return y&&!!y.match(new RegExp("(\\s|^)"+d+"(\\s|$)"))}function c(n,d){n&&(n.classList?d.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(y){y&&n.classList.add(y)}):t(n,d)||(n.className&&Dt(n.className)==="object"?n.setAttribute("class",n.getAttribute("class")+" "+d):n.className+=" "+d))}function a(n,d){n&&(n.classList?d.split(/\s+/g).forEach(function(y){n.classList.remove(y)}):t(n,d)&&d.split(/\s+/g).forEach(function(y){var w=new RegExp("(\\s|^)"+y+"(\\s|$)");n.className&&Dt(n.className)==="object"?n.setAttribute("class",n.getAttribute("class").replace(w," ")):n.className=n.className.replace(w," ")}))}function i(n,d,y){var w=d.length;if(w<1)return-1;if(y=y<0?0:y>=w?w-1:y,d[y].start<=n&&n<d[y].end)return y;for(var R=d[y].end<=n?y+1:0;R<w;R++){if(d[R].start<=n&&n<d[R].end)return R;if(n>d[R].end&&R+1<w&&n<d[R+1].start||n>d[R].end&&R+1>=w)return-1}return-1}function f(n,d,y){var w=d.length;if(w<1)return[];var R=[];if((y=y<0?0:y>=w?w-1:y)<w)for(var I=d[y].end<=n?y:0;I<w&&(d[I].start<=n&&n<d[I].end&&R.push(I),!(n<d[I].start));I++);return R}function v(n){return Object.prototype.toString.call(n).match(/([^\s.*]+)(?=]$)/g)[0]}function b(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",R=document.createElement(n);return R.className=w,R.innerHTML=d,Qe(y).forEach(function(I){var W=I,Y=y[I];n==="video"||n==="audio"||n==="live-video"?Y&&R.setAttribute(W,Y):R.setAttribute(W,Y)}),R}function x(){var n=navigator.userAgent,d=/(?:Windows Phone)/.test(n),y=/(?:SymbianOS)/.test(n)||d,w=/(?:Android)/.test(n),R=/(?:Firefox)/.test(n),I=/(?:iPad|PlayBook)/.test(n)||w&&!/(?:Mobile)/.test(n)||R&&/(?:Tablet)/.test(n);return/(?:iPhone)/.test(n)&&!I||w||y||I}function _(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y="";n.map(function(Y){y+=" "+d+" "+Y.key+" {"+Y.style+"}"});var w=document.createElement("style"),R=document.head||document.getElementsByTagName("head")[0];if(w.type="text/css",w.id="ssss",w.styleSheet){var I=function(){try{w.styleSheet.cssText=y}catch{}};w.styleSheet.disabled?setTimeout(I,10):I()}else{var W=document.createTextNode(y);w.appendChild(W)}R.appendChild(w)}function o(n,d){et||(et=new da),et.addObserver(n,d)}function h(n,d){et&&et.unObserver(n,d)}function p(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y={code:rr[n].code,msg:rr[n].msg};return Qe(d).map(function(w){y[w]=d[w]}),y}function O(n,d,y,w,R){R?y(p(2,R),{format:w.format}):w.format?(n.list=w.list,n.format=w.format,n.styles=w.styles,d(n)):y(p(3))}function F(n){return new qt(function(d,y){if(n.list)return void d(n);if(n.json){var w=Xt.parseJson(n.json);return n.list=w,n.format="json",void d(n)}if(n.stringContent&&!n.url)Xt.parse(n.stringContent,function(I,W){O(n,d,y,I,W)});else if(n.url)new sa({url:n.url,type:"text"}).then(function(I){Xt.parse(I.res.response,function(W,Y){O(n,d,y,W,Y)})}).catch(function(I){var W=p(1,{statusText:I.statusText,status:I.status,type:I.type,message:"http load error",url:n.url});y(W)});else{var R=p(8);y(R)}})}function L(n,d){return!!(n.id&&n.id===d.id||n.language&&n.language===d.language)}var E=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n},D=function(n){return Object(E(n))},m={}.hasOwnProperty,P=function(n,d){return m.call(n,d)},z=S(function(n){var d=n.exports={version:"2.6.12"};typeof __e=="number"&&(__e=d)}),H=(z.version,S(function(n){var d=n.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=d)})),K=S(function(n){var d=H["__core-js_shared__"]||(H["__core-js_shared__"]={});(n.exports=function(y,w){return d[y]||(d[y]=w!==void 0?w:{})})("versions",[]).push({version:z.version,mode:"pure",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})}),A=0,M=Math.random(),B=function(n){return"Symbol(".concat(n===void 0?"":n,")_",(++A+M).toString(36))},j=K("keys"),U=function(n){return j[n]||(j[n]=B(n))},N=U("IE_PROTO"),V=Object.prototype,X=Object.getPrototypeOf||function(n){return n=D(n),P(n,N)?n[N]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?V:null},G=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n},te=function(n,d,y){if(G(n),d===void 0)return n;switch(y){case 1:return function(w){return n.call(d,w)};case 2:return function(w,R){return n.call(d,w,R)};case 3:return function(w,R,I){return n.call(d,w,R,I)}}return function(){return n.apply(d,arguments)}},ue=function(n){return typeof n=="object"?n!==null:typeof n=="function"},fe=function(n){if(!ue(n))throw TypeError(n+" is not an object!");return n},ge=function(n){try{return!!n()}catch{return!0}},se=!ge(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),de=H.document,he=ue(de)&&ue(de.createElement),ke=function(n){return he?de.createElement(n):{}},Ee=!se&&!ge(function(){return Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a!=7}),ye=function(n,d){if(!ue(n))return n;var y,w;if(d&&typeof(y=n.toString)=="function"&&!ue(w=y.call(n))||typeof(y=n.valueOf)=="function"&&!ue(w=y.call(n))||!d&&typeof(y=n.toString)=="function"&&!ue(w=y.call(n)))return w;throw TypeError("Can't convert object to primitive value")},Te=Object.defineProperty,pe={f:se?Object.defineProperty:function(n,d,y){if(fe(n),d=ye(d,!0),fe(y),Ee)try{return Te(n,d,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported!");return"value"in y&&(n[d]=y.value),n}},ie=function(n,d){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:d}},Ce=se?function(n,d,y){return pe.f(n,d,ie(1,y))}:function(n,d,y){return n[d]=y,n},me=function(n,d,y){var w,R,I,W=n&me.F,Y=n&me.G,q=n&me.S,$=n&me.P,J=n&me.B,Q=n&me.W,ee=Y?z:z[d]||(z[d]={}),re=ee.prototype,Z=Y?H:q?H[d]:(H[d]||{}).prototype;Y&&(y=d);for(w in y)(R=!W&&Z&&Z[w]!==void 0)&&P(ee,w)||(I=R?Z[w]:y[w],ee[w]=Y&&typeof Z[w]!="function"?y[w]:J&&R?te(I,H):Q&&Z[w]==I?function(ae){var oe=function(le,xe,be){if(this instanceof ae){switch(arguments.length){case 0:return new ae;case 1:return new ae(le);case 2:return new ae(le,xe)}return new ae(le,xe,be)}return ae.apply(this,arguments)};return oe.prototype=ae.prototype,oe}(I):$&&typeof I=="function"?te(Function.call,I):I,$&&((ee.virtual||(ee.virtual={}))[w]=I,n&me.R&&re&&!re[w]&&Ce(re,w,I)))};me.F=1,me.G=2,me.S=4,me.P=8,me.B=16,me.W=32,me.U=64,me.R=128;var ne=me,ve=function(n,d){var y=(z.Object||{})[n]||Object[n],w={};w[n]=d(y),ne(ne.S+ne.F*ge(function(){y(1)}),"Object",w)};ve("getPrototypeOf",function(){return function(n){return X(D(n))}});var Ye=z.Object.getPrototypeOf,pt=r(S(function(n){n.exports={default:Ye,__esModule:!0}})),Fe=r(S(function(n,d){d.__esModule=!0,d.default=function(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}})),gt=Math.ceil,ht=Math.floor,ce=function(n){return isNaN(n=+n)?0:(n>0?ht:gt)(n)},Ae=Ce,De={},sr={}.toString,Ie=function(n){return sr.call(n).slice(8,-1)},ur=Object("z").propertyIsEnumerable(0)?Object:function(n){return Ie(n)=="String"?n.split(""):Object(n)},Le=function(n){return ur(E(n))},cr=Math.min,$t=function(n){return n>0?cr(ce(n),9007199254740991):0},fr=Math.max,dr=Math.min,pr=function(n,d){return n=ce(n),n<0?fr(n+d,0):dr(n,d)},gr=function(n){return function(d,y,w){var R,I=Le(d),W=$t(I.length),Y=pr(w,W);if(n&&y!=y){for(;W>Y;)if((R=I[Y++])!=R)return!0}else for(;W>Y;Y++)if((n||Y in I)&&I[Y]===y)return n||Y||0;return!n&&-1}}(!1),hr=U("IE_PROTO"),Jt=function(n,d){var y,w=Le(n),R=0,I=[];for(y in w)y!=hr&&P(w,y)&&I.push(y);for(;d.length>R;)P(w,y=d[R++])&&(~gr(I,y)||I.push(y));return I},tt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),nt=Object.keys||function(n){return Jt(n,tt)},yr=se?Object.defineProperties:function(n,d){fe(n);for(var y,w=nt(d),R=w.length,I=0;R>I;)pe.f(n,y=w[I++],d[y]);return n},Zt=H.document,yt=Zt&&Zt.documentElement,vr=U("IE_PROTO"),vt=function(){},rt=function(){var n,d=ke("iframe"),y=tt.length;for(d.style.display="none",yt.appendChild(d),d.src="javascript:",(n=d.contentWindow.document).open(),n.write("<script>document.F=Object<\/script>"),n.close(),rt=n.F;y--;)delete rt.prototype[tt[y]];return rt()},Be=Object.create||function(n,d){var y;return n!==null?(vt.prototype=fe(n),y=new vt,vt.prototype=null,y[vr]=n):y=rt(),d===void 0?y:yr(y,d)},we=S(function(n){var d=K("wks"),y=H.Symbol,w=typeof y=="function";(n.exports=function(R){return d[R]||(d[R]=w&&y[R]||(w?y:B)("Symbol."+R))}).store=d}),mr=pe.f,Qt=we("toStringTag"),Ne=function(n,d,y){n&&!P(n=y?n:n.prototype,Qt)&&mr(n,Qt,{configurable:!0,value:d})},en={};Ce(en,we("iterator"),function(){return this});var xr=function(n,d,y){n.prototype=Be(en,{next:ie(1,y)}),Ne(n,d+" Iterator")},mt=we("iterator"),xt=!([].keys&&"next"in[].keys()),br=function(){return this},tn=function(n,d,y,w,R,I,W){xr(y,d,w);var Y,q,$,J=function(be){if(!xt&&be in Z)return Z[be];switch(be){case"keys":case"values":return function(){return new y(this,be)}}return function(){return new y(this,be)}},Q=d+" Iterator",ee=R=="values",re=!1,Z=n.prototype,ae=Z[mt]||Z["@@iterator"]||R&&Z[R],oe=ae||J(R),le=R?ee?J("entries"):oe:void 0,xe=d=="Array"&&Z.entries||ae;if(xe&&($=X(xe.call(new n)))!==Object.prototype&&$.next&&Ne($,Q,!0),ee&&ae&&ae.name!=="values"&&(re=!0,oe=function(){return ae.call(this)}),W&&(xt||re||!Z[mt])&&Ce(Z,mt,oe),De[d]=oe,De[Q]=br,R)if(Y={values:ee?oe:J("values"),keys:I?oe:J("keys"),entries:le},W)for(q in Y)q in Z||Ae(Z,q,Y[q]);else ne(ne.P+ne.F*(xt||re),d,Y);return Y},kr=function(n){return function(d,y){var w,R,I=String(E(d)),W=ce(y),Y=I.length;return W<0||W>=Y?n?"":void 0:(w=I.charCodeAt(W),w<55296||w>56319||W+1===Y||(R=I.charCodeAt(W+1))<56320||R>57343?n?I.charAt(W):w:n?I.slice(W,W+2):R-56320+(w-55296<<10)+65536)}}(!0);tn(String,"String",function(n){this._t=String(n),this._i=0},function(){var n,d=this._t,y=this._i;return y>=d.length?{value:void 0,done:!0}:(n=kr(d,y),this._i+=n.length,{value:n,done:!1})});var at=function(n,d){return{value:d,done:!!n}};tn(Array,"Array",function(n,d){this._t=Le(n),this._i=0,this._k=d},function(){var n=this._t,d=this._k,y=this._i++;return!n||y>=n.length?(this._t=void 0,at(1)):d=="keys"?at(0,y):d=="values"?at(0,n[y]):at(0,[y,n[y]])},"values"),De.Arguments=De.Array;for(var nn=we("toStringTag"),rn="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),bt=0;bt<rn.length;bt++){var kt=rn[bt],an=H[kt],wt=an&&an.prototype;wt&&!wt[nn]&&Ce(wt,nn,kt),De[kt]=De.Array}var Et={f:we},wr=Et.f("iterator"),on=S(function(n){n.exports={default:wr,__esModule:!0}});r(on);var je=S(function(n){var d=B("meta"),y=pe.f,w=0,R=Object.isExtensible||function(){return!0},I=!ge(function(){return R(Object.preventExtensions({}))}),W=function(Q){y(Q,d,{value:{i:"O"+ ++w,w:{}}})},Y=function(Q,ee){if(!ue(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!P(Q,d)){if(!R(Q))return"F";if(!ee)return"E";W(Q)}return Q[d].i},q=function(Q,ee){if(!P(Q,d)){if(!R(Q))return!0;if(!ee)return!1;W(Q)}return Q[d].w},$=function(Q){return I&&J.NEED&&R(Q)&&!P(Q,d)&&W(Q),Q},J=n.exports={KEY:d,NEED:!1,fastKey:Y,getWeak:q,onFreeze:$}}),Er=(je.KEY,je.NEED,je.fastKey,je.getWeak,je.onFreeze,pe.f),Ct=function(n){var d=z.Symbol||(z.Symbol={});n.charAt(0)=="_"||n in d||Er(d,n,{value:Et.f(n)})},qe={f:Object.getOwnPropertySymbols},Tt={f:{}.propertyIsEnumerable},Cr=function(n){var d=nt(n),y=qe.f;if(y)for(var w,R=y(n),I=Tt.f,W=0;R.length>W;)I.call(n,w=R[W++])&&d.push(w);return d},Tr=Array.isArray||function(n){return Ie(n)=="Array"},_r=tt.concat("length","prototype"),ln={f:Object.getOwnPropertyNames||function(n){return Jt(n,_r)}},sn=ln.f,Sr={}.toString,un=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Pr=function(n){try{return sn(n)}catch{return un.slice()}},cn={f:function(n){return un&&Sr.call(n)=="[object Window]"?Pr(n):sn(Le(n))}},fn=Object.getOwnPropertyDescriptor,_t={f:se?fn:function(n,d){if(n=Le(n),d=ye(d,!0),Ee)try{return fn(n,d)}catch{}if(P(n,d))return ie(!Tt.f.call(n,d),n[d])}},Or=je.KEY,dn=_t.f,ze=pe.f,pn=cn.f,Se=H.Symbol,it=H.JSON,ot=it&&it.stringify,_e=we("_hidden"),gn=we("toPrimitive"),Lr={}.propertyIsEnumerable,Ke=K("symbol-registry"),Re=K("symbols"),Xe=K("op-symbols"),Pe=Object.prototype,He=typeof Se=="function"&&!!qe.f,St=H.QObject,Pt=!St||!St.prototype||!St.prototype.findChild,Ot=se&&ge(function(){return Be(ze({},"a",{get:function(){return ze(this,"a",{value:7}).a}})).a!=7})?function(n,d,y){var w=dn(Pe,d);w&&delete Pe[d],ze(n,d,y),w&&n!==Pe&&ze(Pe,d,w)}:ze,hn=function(n){var d=Re[n]=Be(Se.prototype);return d._k=n,d},Lt=He&&typeof Se.iterator=="symbol"?function(n){return typeof n=="symbol"}:function(n){return n instanceof Se},lt=function(n,d,y){return n===Pe&&lt(Xe,d,y),fe(n),d=ye(d,!0),fe(y),P(Re,d)?(y.enumerable?(P(n,_e)&&n[_e][d]&&(n[_e][d]=!1),y=Be(y,{enumerable:ie(0,!1)})):(P(n,_e)||ze(n,_e,ie(1,{})),n[_e][d]=!0),Ot(n,d,y)):ze(n,d,y)},yn=function(n,d){fe(n);for(var y,w=Cr(d=Le(d)),R=0,I=w.length;I>R;)lt(n,y=w[R++],d[y]);return n},Rr=function(n,d){return d===void 0?Be(n):yn(Be(n),d)},Dr=function(n){var d=Lr.call(this,n=ye(n,!0));return!(this===Pe&&P(Re,n)&&!P(Xe,n))&&(!(d||!P(this,n)||!P(Re,n)||P(this,_e)&&this[_e][n])||d)},vn=function(n,d){if(n=Le(n),d=ye(d,!0),n!==Pe||!P(Re,d)||P(Xe,d)){var y=dn(n,d);return!y||!P(Re,d)||P(n,_e)&&n[_e][d]||(y.enumerable=!0),y}},mn=function(n){for(var d,y=pn(Le(n)),w=[],R=0;y.length>R;)P(Re,d=y[R++])||d==_e||d==Or||w.push(d);return w},xn=function(n){for(var d,y=n===Pe,w=pn(y?Xe:Le(n)),R=[],I=0;w.length>I;)!P(Re,d=w[I++])||y&&!P(Pe,d)||R.push(Re[d]);return R};He||(Ae((Se=function(){if(this instanceof Se)throw TypeError("Symbol is not a constructor!");var n=B(arguments.length>0?arguments[0]:void 0),d=function(y){this===Pe&&d.call(Xe,y),P(this,_e)&&P(this[_e],n)&&(this[_e][n]=!1),Ot(this,n,ie(1,y))};return se&&Pt&&Ot(Pe,n,{configurable:!0,set:d}),hn(n)}).prototype,"toString",function(){return this._k}),_t.f=vn,pe.f=lt,ln.f=cn.f=mn,Tt.f=Dr,qe.f=xn,Et.f=function(n){return hn(we(n))}),ne(ne.G+ne.W+ne.F*!He,{Symbol:Se});for(var bn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),kn=0;bn.length>kn;)we(bn[kn++]);for(var wn=nt(we.store),En=0;wn.length>En;)Ct(wn[En++]);ne(ne.S+ne.F*!He,"Symbol",{for:function(n){return P(Ke,n+="")?Ke[n]:Ke[n]=Se(n)},keyFor:function(n){if(!Lt(n))throw TypeError(n+" is not a symbol!");for(var d in Ke)if(Ke[d]===n)return d},useSetter:function(){Pt=!0},useSimple:function(){Pt=!1}}),ne(ne.S+ne.F*!He,"Object",{create:Rr,defineProperty:lt,defineProperties:yn,getOwnPropertyDescriptor:vn,getOwnPropertyNames:mn,getOwnPropertySymbols:xn});var Mr=ge(function(){qe.f(1)});ne(ne.S+ne.F*Mr,"Object",{getOwnPropertySymbols:function(n){return qe.f(D(n))}}),it&&ne(ne.S+ne.F*(!He||ge(function(){var n=Se();return ot([n])!="[null]"||ot({a:n})!="{}"||ot(Object(n))!="{}"})),"JSON",{stringify:function(n){for(var d,y,w=[n],R=1;arguments.length>R;)w.push(arguments[R++]);if(y=d=w[1],(ue(d)||n!==void 0)&&!Lt(n))return Tr(d)||(d=function(I,W){if(typeof y=="function"&&(W=y.call(this,I,W)),!Lt(W))return W}),w[1]=d,ot.apply(it,w)}}),Se.prototype[gn]||Ce(Se.prototype,gn,Se.prototype.valueOf),Ne(Se,"Symbol"),Ne(Math,"Math",!0),Ne(H.JSON,"JSON",!0),Ct("asyncIterator"),Ct("observable");var Ar=z.Symbol,Cn=S(function(n){n.exports={default:Ar,__esModule:!0}});r(Cn);var Rt=S(function(n,d){function y(W){return W&&W.__esModule?W:{default:W}}d.__esModule=!0;var w=y(on),R=y(Cn),I=typeof R.default=="function"&&typeof w.default=="symbol"?function(W){return typeof W}:function(W){return W&&typeof R.default=="function"&&W.constructor===R.default&&W!==R.default.prototype?"symbol":typeof W};d.default=typeof R.default=="function"&&I(w.default)==="symbol"?function(W){return W===void 0?"undefined":I(W)}:function(W){return W&&typeof R.default=="function"&&W.constructor===R.default&&W!==R.default.prototype?"symbol":W===void 0?"undefined":I(W)}}),Dt=r(Rt),Tn=r(S(function(n,d){d.__esModule=!0;var y=function(w){return w&&w.__esModule?w:{default:w}}(Rt);d.default=function(w,R){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!R||(R===void 0?"undefined":(0,y.default)(R))!=="object"&&typeof R!="function"?w:R}}));ne(ne.S+ne.F*!se,"Object",{defineProperty:pe.f});var Ir=z.Object,Br=function(n,d,y){return Ir.defineProperty(n,d,y)},_n=S(function(n){n.exports={default:Br,__esModule:!0}});r(_n);var st=r(S(function(n,d){d.__esModule=!0;var y=function(w){return w&&w.__esModule?w:{default:w}}(_n);d.default=function(){function w(R,I){for(var W=0;W<I.length;W++){var Y=I[W];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),(0,y.default)(R,Y.key,Y)}}return function(R,I,W){return I&&w(R.prototype,I),W&&w(R,W),R}}()})),Sn=function(n,d){if(fe(n),!ue(d)&&d!==null)throw TypeError(d+": can't set as prototype!")},zr={set:Object.setPrototypeOf||("__proto__"in{}?function(n,d,y){try{(y=te(Function.call,_t.f(Object.prototype,"__proto__").set,2))(n,[]),d=!(n instanceof Array)}catch{d=!0}return function(w,R){return Sn(w,R),d?w.__proto__=R:y(w,R),w}}({},!1):void 0),check:Sn};ne(ne.S,"Object",{setPrototypeOf:zr.set});var Fr=z.Object.setPrototypeOf,Pn=S(function(n){n.exports={default:Fr,__esModule:!0}});r(Pn),ne(ne.S,"Object",{create:Be});var Nr=z.Object,jr=function(n,d){return Nr.create(n,d)},On=S(function(n){n.exports={default:jr,__esModule:!0}});r(On);var Ue,Ln,Mt,Hr=r(S(function(n,d){function y(W){return W&&W.__esModule?W:{default:W}}d.__esModule=!0;var w=y(Pn),R=y(On),I=y(Rt);d.default=function(W,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+(Y===void 0?"undefined":(0,I.default)(Y)));W.prototype=(0,R.default)(Y&&Y.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),Y&&(w.default?(0,w.default)(W,Y):W.__proto__=Y)}})),Ur=we("toStringTag"),Wr=Ie(function(){return arguments}())=="Arguments",Vr=function(n,d){try{return n[d]}catch{}},Rn=function(n){var d,y,w;return n===void 0?"Undefined":n===null?"Null":typeof(y=Vr(d=Object(n),Ur))=="string"?y:Wr?Ie(d):(w=Ie(d))=="Object"&&typeof d.callee=="function"?"Arguments":w},Yr=function(n,d,y,w){if(!(n instanceof d)||w!==void 0&&w in n)throw TypeError(y+": incorrect invocation!");return n},qr=function(n,d,y,w){try{return w?d(fe(y)[0],y[1]):d(y)}catch(I){var R=n.return;throw R!==void 0&&fe(R.call(n)),I}},Kr=we("iterator"),Xr=Array.prototype,Gr=function(n){return n!==void 0&&(De.Array===n||Xr[Kr]===n)},$r=we("iterator"),Jr=z.getIteratorMethod=function(n){if(n!=null)return n[$r]||n["@@iterator"]||De[Rn(n)]},Dn=S(function(n){var d={},y={},w=n.exports=function(R,I,W,Y,q){var $,J,Q,ee,re=q?function(){return R}:Jr(R),Z=te(W,Y,I?2:1),ae=0;if(typeof re!="function")throw TypeError(R+" is not iterable!");if(Gr(re)){for($=$t(R.length);$>ae;ae++)if((ee=I?Z(fe(J=R[ae])[0],J[1]):Z(R[ae]))===d||ee===y)return ee}else for(Q=re.call(R);!(J=Q.next()).done;)if((ee=qr(Q,Z,J.value,I))===d||ee===y)return ee};w.BREAK=d,w.RETURN=y}),Zr=we("species"),Mn=function(n,d){var y,w=fe(n).constructor;return w===void 0||(y=fe(w)[Zr])==null?d:G(y)},Qr=function(n,d,y){var w=y===void 0;switch(d.length){case 0:return w?n():n.call(y);case 1:return w?n(d[0]):n.call(y,d[0]);case 2:return w?n(d[0],d[1]):n.call(y,d[0],d[1]);case 3:return w?n(d[0],d[1],d[2]):n.call(y,d[0],d[1],d[2]);case 4:return w?n(d[0],d[1],d[2],d[3]):n.call(y,d[0],d[1],d[2],d[3])}return n.apply(y,d)},An=H.process,At=H.setImmediate,It=H.clearImmediate,In=H.MessageChannel,Bt=H.Dispatch,zt=0,Ge={},$e=function(){var n=+this;if(Ge.hasOwnProperty(n)){var d=Ge[n];delete Ge[n],d()}},Bn=function(n){$e.call(n.data)};At&&It||(At=function(n){for(var d=[],y=1;arguments.length>y;)d.push(arguments[y++]);return Ge[++zt]=function(){Qr(typeof n=="function"?n:Function(n),d)},Ue(zt),zt},It=function(n){delete Ge[n]},Ie(An)=="process"?Ue=function(n){An.nextTick(te($e,n,1))}:Bt&&Bt.now?Ue=function(n){Bt.now(te($e,n,1))}:In?(Mt=(Ln=new In).port2,Ln.port1.onmessage=Bn,Ue=te(Mt.postMessage,Mt,1)):H.addEventListener&&typeof postMessage=="function"&&!H.importScripts?(Ue=function(n){H.postMessage(n+"","*")},H.addEventListener("message",Bn,!1)):Ue="onreadystatechange"in ke("script")?function(n){yt.appendChild(ke("script")).onreadystatechange=function(){yt.removeChild(this),$e.call(n)}}:function(n){setTimeout(te($e,n,1),0)});var zn={set:At,clear:It},ea=zn.set,Fn=H.MutationObserver||H.WebKitMutationObserver,Ft=H.process,Nt=H.Promise,Nn=Ie(Ft)=="process",ut={f:function(n){return new T(n)}},ct=function(n){try{return{e:!1,v:n()}}catch(d){return{e:!0,v:d}}},jn=H.navigator,ta=jn&&jn.userAgent||"",jt=function(n,d){if(fe(n),ue(d)&&d.constructor===n)return d;var y=ut.f(n);return(0,y.resolve)(d),y.promise},Hn=we("species"),Ht=we("iterator"),Un=!1;try{var Wn=[7][Ht]();Wn.return=function(){Un=!0},Array.from(Wn,function(){throw 2})}catch{}var Ut,Vn,Yn,Wt,qn=zn.set,Kn=function(){var n,d,y,w=function(){var Y,q;for(Nn&&(Y=Ft.domain)&&Y.exit();n;){q=n.fn,n=n.next;try{q()}catch($){throw n?y():d=void 0,$}}d=void 0,Y&&Y.enter()};if(Nn)y=function(){Ft.nextTick(w)};else if(!Fn||H.navigator&&H.navigator.standalone)if(Nt&&Nt.resolve){var R=Nt.resolve(void 0);y=function(){R.then(w)}}else y=function(){ea.call(H,w)};else{var I=!0,W=document.createTextNode("");new Fn(w).observe(W,{characterData:!0}),y=function(){W.data=I=!I}}return function(Y){var q={fn:Y,next:void 0};d&&(d.next=q),n||(n=q,y()),d=q}}(),Xn=H.TypeError,We=H.process,Gn=We&&We.versions,na=Gn&&Gn.v8||"",Oe=H.Promise,Je=Rn(We)=="process",ft=function(){},Ze=Vn=ut.f,dt=!!function(){try{var n=Oe.resolve(1),d=(n.constructor={})[we("species")]=function(y){y(ft,ft)};return(Je||typeof PromiseRejectionEvent=="function")&&n.then(ft)instanceof d&&na.indexOf("6.6")!==0&&ta.indexOf("Chrome/66")===-1}catch{}}(),$n=function(n){var d;return!(!ue(n)||typeof(d=n.then)!="function")&&d},Vt=function(n,d){if(!n._n){n._n=!0;var y=n._c;Kn(function(){for(var w=n._v,R=n._s==1,I=0;y.length>I;)(function(W){var Y,q,$,J=R?W.ok:W.fail,Q=W.resolve,ee=W.reject,re=W.domain;try{J?(R||(n._h==2&&aa(n),n._h=1),J===!0?Y=w:(re&&re.enter(),Y=J(w),re&&(re.exit(),$=!0)),Y===W.promise?ee(Xn("Promise-chain cycle")):(q=$n(Y))?q.call(Y,Q,ee):Q(Y)):ee(w)}catch(Z){re&&!$&&re.exit(),ee(Z)}})(y[I++]);n._c=[],n._n=!1,d&&!n._h&&ra(n)})}},ra=function(n){qn.call(H,function(){var d,y,w,R=n._v,I=Jn(n);if(I&&(d=ct(function(){Je?We.emit("unhandledRejection",R,n):(y=H.onunhandledrejection)?y({promise:n,reason:R}):(w=H.console)&&w.error&&w.error("Unhandled promise rejection",R)}),n._h=Je||Jn(n)?2:1),n._a=void 0,I&&d.e)throw d.v})},Jn=function(n){return n._h!==1&&(n._a||n._c).length===0},aa=function(n){qn.call(H,function(){var d;Je?We.emit("rejectionHandled",n):(d=H.onrejectionhandled)&&d({promise:n,reason:n._v})})},Ve=function(n){var d=this;d._d||(d._d=!0,(d=d._w||d)._v=n,d._s=2,d._a||(d._a=d._c.slice()),Vt(d,!0))},Yt=function(n){var d,y=this;if(!y._d){y._d=!0,y=y._w||y;try{if(y===n)throw Xn("Promise can't be resolved itself");(d=$n(n))?Kn(function(){var w={_w:y,_d:!1};try{d.call(n,te(Yt,w,1),te(Ve,w,1))}catch(R){Ve.call(w,R)}}):(y._v=n,y._s=1,Vt(y,!1))}catch(w){Ve.call({_w:y,_d:!1},w)}}};dt||(Oe=function(n){Yr(this,Oe,"Promise","_h"),G(n),Ut.call(this);try{n(te(Yt,this,1),te(Ve,this,1))}catch(d){Ve.call(this,d)}},(Ut=function(n){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(n,d,y){for(var w in d)y&&n[w]?n[w]=d[w]:Ce(n,w,d[w]);return n}(Oe.prototype,{then:function(n,d){var y=Ze(Mn(this,Oe));return y.ok=typeof n!="function"||n,y.fail=typeof d=="function"&&d,y.domain=Je?We.domain:void 0,this._c.push(y),this._a&&this._a.push(y),this._s&&Vt(this,!1),y.promise},catch:function(n){return this.then(void 0,n)}}),Yn=function(){var n=new Ut;this.promise=n,this.resolve=te(Yt,n,1),this.reject=te(Ve,n,1)},ut.f=Ze=function(n){return n===Oe||n===Wt?new Yn(n):Vn(n)}),ne(ne.G+ne.W+ne.F*!dt,{Promise:Oe}),Ne(Oe,"Promise"),function(n){var d=typeof z[n]=="function"?z[n]:H[n];se&&d&&!d[Hn]&&pe.f(d,Hn,{configurable:!0,get:function(){return this}})}("Promise"),Wt=z.Promise,ne(ne.S+ne.F*!dt,"Promise",{reject:function(n){var d=Ze(this);return(0,d.reject)(n),d.promise}}),ne(ne.S+!0*ne.F,"Promise",{resolve:function(n){return jt(this===Wt?Oe:this,n)}}),ne(ne.S+ne.F*!(dt&&function(n,d){if(!d&&!Un)return!1;var y=!1;try{var w=[7],R=w[Ht]();R.next=function(){return{done:y=!0}},w[Ht]=function(){return R},n(w)}catch{}return y}(function(n){Oe.all(n).catch(ft)})),"Promise",{all:function(n){var d=this,y=Ze(d),w=y.resolve,R=y.reject,I=ct(function(){var W=[],Y=0,q=1;Dn(n,!1,function($){var J=Y++,Q=!1;W.push(void 0),q++,d.resolve($).then(function(ee){Q||(Q=!0,W[J]=ee,--q||w(W))},R)}),--q||w(W)});return I.e&&R(I.v),y.promise},race:function(n){var d=this,y=Ze(d),w=y.reject,R=ct(function(){Dn(n,!1,function(I){d.resolve(I).then(y.resolve,w)})});return R.e&&w(R.v),y.promise}}),ne(ne.P+ne.R,"Promise",{finally:function(n){var d=Mn(this,z.Promise||H.Promise),y=typeof n=="function";return this.then(y?function(w){return jt(d,n()).then(function(){return w})}:n,y?function(w){return jt(d,n()).then(function(){throw w})}:n)}}),ne(ne.S,"Promise",{try:function(n){var d=ut.f(this),y=ct(n);return(y.e?d.reject:d.resolve)(y.v),d.promise}});var ia=z.Promise,qt=r(S(function(n){n.exports={default:ia,__esModule:!0}}));ve("keys",function(){return function(n){return nt(D(n))}});var oa=z.Object.keys,Qe=r(S(function(n){n.exports={default:oa,__esModule:!0}})),la=S(function(n){function d(){}function y(q,$,J){this.fn=q,this.context=$,this.once=J||!1}function w(q,$,J,Q,ee){if(typeof J!="function")throw new TypeError("The listener must be a function");var re=new y(J,Q||q,ee),Z=Y?Y+$:$;return q._events[Z]?q._events[Z].fn?q._events[Z]=[q._events[Z],re]:q._events[Z].push(re):(q._events[Z]=re,q._eventsCount++),q}function R(q,$){--q._eventsCount==0?q._events=new d:delete q._events[$]}function I(){this._events=new d,this._eventsCount=0}var W=Object.prototype.hasOwnProperty,Y="~";Object.create&&(d.prototype=Object.create(null),new d().__proto__||(Y=!1)),I.prototype.eventNames=function(){var q,$,J=[];if(this._eventsCount===0)return J;for($ in q=this._events)W.call(q,$)&&J.push(Y?$.slice(1):$);return Object.getOwnPropertySymbols?J.concat(Object.getOwnPropertySymbols(q)):J},I.prototype.listeners=function(q){var $=Y?Y+q:q,J=this._events[$];if(!J)return[];if(J.fn)return[J.fn];for(var Q=0,ee=J.length,re=new Array(ee);Q<ee;Q++)re[Q]=J[Q].fn;return re},I.prototype.listenerCount=function(q){var $=Y?Y+q:q,J=this._events[$];return J?J.fn?1:J.length:0},I.prototype.emit=function(q,$,J,Q,ee,re){var Z=Y?Y+q:q;if(!this._events[Z])return!1;var ae,oe,le=this._events[Z],xe=arguments.length;if(le.fn){switch(le.once&&this.removeListener(q,le.fn,void 0,!0),xe){case 1:return le.fn.call(le.context),!0;case 2:return le.fn.call(le.context,$),!0;case 3:return le.fn.call(le.context,$,J),!0;case 4:return le.fn.call(le.context,$,J,Q),!0;case 5:return le.fn.call(le.context,$,J,Q,ee),!0;case 6:return le.fn.call(le.context,$,J,Q,ee,re),!0}for(oe=1,ae=new Array(xe-1);oe<xe;oe++)ae[oe-1]=arguments[oe];le.fn.apply(le.context,ae)}else{var be,Me=le.length;for(oe=0;oe<Me;oe++)switch(le[oe].once&&this.removeListener(q,le[oe].fn,void 0,!0),xe){case 1:le[oe].fn.call(le[oe].context);break;case 2:le[oe].fn.call(le[oe].context,$);break;case 3:le[oe].fn.call(le[oe].context,$,J);break;case 4:le[oe].fn.call(le[oe].context,$,J,Q);break;default:if(!ae)for(be=1,ae=new Array(xe-1);be<xe;be++)ae[be-1]=arguments[be];le[oe].fn.apply(le[oe].context,ae)}}return!0},I.prototype.on=function(q,$,J){return w(this,q,$,J,!1)},I.prototype.once=function(q,$,J){return w(this,q,$,J,!0)},I.prototype.removeListener=function(q,$,J,Q){var ee=Y?Y+q:q;if(!this._events[ee])return this;if(!$)return R(this,ee),this;var re=this._events[ee];if(re.fn)re.fn!==$||Q&&!re.once||J&&re.context!==J||R(this,ee);else{for(var Z=0,ae=[],oe=re.length;Z<oe;Z++)(re[Z].fn!==$||Q&&!re[Z].once||J&&re[Z].context!==J)&&ae.push(re[Z]);ae.length?this._events[ee]=ae.length===1?ae[0]:ae:R(this,ee)}return this},I.prototype.removeAllListeners=function(q){var $;return q?($=Y?Y+q:q,this._events[$]&&R(this,$)):(this._events=new d,this._eventsCount=0),this},I.prototype.off=I.prototype.removeListener,I.prototype.addListener=I.prototype.on,I.prefixed=Y,I.EventEmitter=I,n.exports=I}),sa=function n(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=d.url,w=d.method,R=w===void 0?"GET":w,I=d.type,W=I===void 0?"arraybuffer":I,Y=d.timeout,q=Y===void 0?1e4:Y,$=d.data,J=$===void 0?{}:$,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fe(this,n),new qt(function(ee,re){var Z=new window.XMLHttpRequest,ae=R.toUpperCase(),oe=[];W&&(Z.responseType=W),q&&(Z.timeout=q);for(var le in J)oe.push("k="+J[le]);if(Z.onload=function(){Z.status===200||Z.status===206?ee({context:Q,res:Z}):re(new Error({context:Q,res:Z,type:"error"}))},Z.onerror=function(xe){re(new Error({context:Q,res:Z,type:"error"}))},Z.ontimeout=function(xe){re(new Error({context:Q,res:Z,type:"error"}))},Z.onabort=function(){re(new Error({context:Q,res:Z,type:"error"}))},ae==="GET")Z.open(ae,""+y),Z.send();else{if(ae!=="post")throw new Error("xhr "+ae+" is not supported");Z.open(ae,y),Z.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Z.send(oe.join("&"))}})},Kt=/^WEBVTT/,ua=/^STYLE+$/,ca=/^\:\:cue/,fa=/^}+$/,Zn=/^\[Script Info\].*/,Qn=[/[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}-->[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}/,/[0-9]{2}:[0-9]{2}\.[0-9]{3}-->[0-9]{2}:[0-9]{2}\.[0-9]{3}/,/[0-9]{2}\.[0-9]{3}-->[0-9]{2}\.[0-9]{3}/],er=/^Format:\s/,tr=/^Style:\s/,nr=/^Dialogue:\s/,Xt=function(){function n(){Fe(this,n)}return st(n,null,[{key:"parseJson",value:function(d){for(var y=[],w=0,R=0;R<d.length;R++){if(w>=50&&(w=0),w===0){var I={start:d[R].start,list:[d[R]],end:d[R].end};y.push(I)}else y[y.length-1].list.push(d[R]),y[y.length-1].end=d[R].end;w++}return y}},{key:"parse",value:function(d,y){var w=n.checkFormat(d);w||y({format:w});try{var R=[];w==="ass"?R=n.parseASS(d):w==="vtt"&&(R=n.parseVTT(d)),y({format:w,list:R.list,styles:R.styles})}catch(I){console.error(I),y({format:w},I)}}},{key:"parseASSItem",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=d.split(","),R={},I="";try{var W=w.length-y.length;return I=W>0?w.splice(y.length-1,W+1).join(",")+"":w[w.length-1]+"",I=I.replace(/\\n+/g,""),I=I,w[y.length-1]=I,y.map(function(Y,q){Y==="end"||Y==="start"?R[Y]=u(w[q].split(":")):Y==="text"?R[Y]=[w[q]]:Y==="layer"?(R[Y]=[w[q]],R.textTag=[w[q]]):R[Y]=Y==="style"?[w[q]]:Number(w[q])?Number(w[q]):w[q]}),R}catch(Y){return console.error(Y),{}}}},{key:"parseASS",value:function(d){for(var y=d.split(`
`),w=[],R=0,I=0,W=[],Y=[],q=null;R<y.length;){if(er.test(y[R]))Y=(Y=y[R].replace(er,"").replace(/\s+/g,"").split(",")).map(function(ae){return ae.toLocaleLowerCase()});else if(tr.test(y[R]))W.push(y[R].replace(tr,"").replace(/\s+/g,""));else if(nr.test(y[R])){var $=n.parseASSItem(y[R].replace(nr,""),Y);if(q&&$.start===q.start&&$.end===q.end)try{var J=q,Q=J.text,ee=J.textTag,re=J.style;Q.push($.text[0]),ee.push($.textTag[0]),re.push($.style[0])}catch(ae){console.error(ae)}else{q=$;var Z=null;I%50==0?((Z={start:q.start,end:q.end,list:[]}).list.push(q),w.push(Z)):((Z=w[w.length-1]).end=q.end,Z.list.push(q)),I++}}R++}return{list:w,style:{}}}},{key:"parseVTTStyle",value:function(d,y){var w=d.split(":");if(w.length>1){var R=w[0].trim().split("-"),I="";R.length>1?R.map(function(W,Y){I+=Y===0?W:W.charAt(0).toUpperCase()+W.slice(1)}):I=R[0],y[I]=w[1].trim().replace(/;$/,"")}return y}},{key:"parseVTT",value:function(d){for(var y=(d=d.replace(Kt,"")).split(`
`),w=[],R=0,I=0,W=null,Y=!1,q=!1,$=null,J=null,Q=[];R<y.length;){var ee=e(R,y).trim();if(!ee||Y&&C(ee))Y=!ee;else if(ca.test(ee)&&ua.test(e(R-1,y).trim())){q=!0;var re=/\((.+?)\)/g.exec(ee);J=re?re[1]:"",$=""}else if(q)fa.test(ee)?(Q.push({key:J,style:$}),$=null,J=null,q=!1):$+=ee;else if(ee){Y=!1;var Z=this.checkIsTime(y[R]);if(Z){var ae=this.parseVttTime(Z);if(!W||ae.start!==W.start||ae.end!==W.end){(W=ae).text=[],W.textTag=[];var oe=null;I%50==0?((oe={start:W.start,end:W.end,list:[]}).list.push(W),w.push(oe)):((oe=w[w.length-1]).end=W.end,oe.list.push(W)),I++}}else if(W){var le=W,xe=le.text,be=le.textTag,Me=this.parseVttText(y[R]);xe.push(Me.text),be.push(Me.tag)}Y=!1}R++}return{list:w,styles:Q}}},{key:"checkIsTime",value:function(d){d=d.replace(/\s+/g,"");for(var y=0,w=null;y<Qn.length&&!(w=Qn[y].exec(d));)y++;return w?w[0]:null}},{key:"parseVttText",value:function(d){var y=/^(<?.+?>)/g.exec(d),w="",R="default";if(y){R=y[0].replace(/\<|\>|\&/g,"");var I=RegExp("^<"+R+">(([\\s\\S])*?)</"+R+">$").exec(d);I?w=I[1]:(w=d,R="")}else w=d;for(var W=/<(\w+).(\w+)>/g,Y=W.exec(w);Y&&Y.length>2;)w=w.replace(Y[0],"<"+Y[1]+' class="'+Y[2]+'">'),Y=W.exec(w);return{tag:R,text:w.replace(/\\n+/g,"<br/>")}}},{key:"parseVttTime",value:function(d){var y=d.split("-->"),w=void 0,R=0;if(y.length===2){var I=y[0].split(":"),W=y[1].split(":");w=u(I),R=u(W)}return{start:w,end:R,time:d}}},{key:"isVTT",value:function(d){return Kt.test(d)}},{key:"isASS",value:function(d){return Zn.test(d)}},{key:"checkFormat",value:function(d){return d?Kt.test(d)?"vtt":Zn.test(d)?"ass":null:null}}]),n}(),da=function(){function n(){var d=this;Fe(this,n),this.__handlers=[],window.ResizeObserver&&(this.observer=new window.ResizeObserver(function(y){d.__trigger(y)}))}return st(n,[{key:"addObserver",value:function(d,y){if(this.observer){this.observer&&this.observer.observe(d);for(var w=this.__handlers,R=-1,I=0;I<w.length;I++)w[I]&&d===w[I].target&&(R=I);R>-1?this.__handlers[R].handler.push(y):this.__handlers.push({target:d,handler:[y]})}}},{key:"unObserver",value:function(d){var y=-1;this.__handlers.map(function(w,R){d===w.target&&(y=R)}),this.observer&&this.observer.unobserve(d),y>-1&&this.__handlers.splice(y,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(d,y){for(var w=this.__handlers,R=0;R<w.length;R++)if(w[R]&&d===w[R].target){w[R].handler&&w[R].handler.map(function(I){try{I(d,y)}catch(W){console.error(W)}});break}}},{key:"__trigger",value:function(d){var y=this;d.map(function(w){var R=w.contentRect;y.__runHandler(w.target,R)})}}]),n}(),et=null;(function(n,d){d===void 0&&(d={});var y=d.insertAt;if(n&&typeof document!="undefined"){var w=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");R.type="text/css",y==="top"&&w.firstChild?w.insertBefore(R,w.firstChild):w.appendChild(R),R.styleSheet?R.styleSheet.cssText=n:R.appendChild(document.createTextNode(n))}})(`xg-text-track.xg-text-track {
font-family: "PingFang SC","SF Pro SC","SF Pro Text","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
-webkit-font-smoothing: antialiased;
position: absolute;
bottom: 0;
color: #fff;
left: 0;
right: 0;
pointer-events: none;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center; }
xg-text-track.xg-text-track.text-track-no-fitvideo {
margin-bottom: 2%; }
xg-text-track.xg-text-track.text-track-hide {
opacity: 0;
visibility: hidden; }
xg-text-track.xg-text-track.text-track-show {
opacity: 1;
visibility: visible; }
xg-text-track.xg-text-track xg-text-track-inner {
display: block;
max-width: 92%; }
xg-text-track.xg-text-track xg-text-track-span {
display: -webkit-box;
text-align: center;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
overflow: hidden;
padding: 1px 4px;
-webkit-line-clamp: 1;
line-height: 120%;
word-break: break-word; }
xg-text-track.xg-text-track xg-text-track-span.text-track-deputy {
font-size: 75%; }
xg-text-track.xg-text-track xg-text-track-span.text-track-single {
-webkit-line-clamp: 1; }
xg-text-track.xg-text-track xg-text-track-span.text-track-double {
-webkit-line-clamp: 2; }
xg-text-track.xg-text-track xg-text-track-span.text-track-three {
-webkit-line-clamp: 3; }
xg-text-track.xg-text-track.text-track-bg xg-text-track-inner {
background-color: rgba(0, 0, 0, .54);
border-radius: 2px; }
xg-text-track.xg-text-track.text-track-stroke xg-text-track-inner {
background-color: none;
border-radius: 0;
text-shadow: -1px 1px 0 rgba(0, 0, 0, .7), 1px 1px 0 rgba(0, 0, 0, .7), 1px -1px 0 rgba(0, 0, 0, .7), -1px -1px 0 rgba(0, 0, 0, .7); }
`);var rr=[{code:0,msg:"SUCCESS"},{code:1,msg:"LOAD_ERROR"},{code:2,msg:"PARSER_ERROR"},{code:3,msg:"FORMAT_NOT_SUPPORTED"},{code:4,msg:"ID_OR_LANGUAGE_NOT_EXIST"},{code:5,msg:"PARAMETERS_ERROR"},{code:6,msg:"ABORT"},{code:7,msg:"UNKNOWN"},{code:8,msg:"DATA_ERROR:subtitle.url is null"}],pa={RESIZE:"resize"},ar=!1;return function(n){function d(y){Fe(this,d);var w=Tn(this,(d.__proto__||pt(d)).call(this));return ar=x(),w.currentText=null,w.textTrack=[],w._cid=-1,w._gid=-1,w._cids=[],w._iId=null,w._iC=0,w.player=null,w.root=null,w.config={line:"double",bottom:0,mode:"stroke",defaultOpen:!1,baseSizeX:49,baseSizeY:28,minSize:16,minMobileSize:13,fitVideo:!0,offsetBottom:2,fontColor:"#fff"},w._ctime=0,w._loadingTrack={},Qe(w.config).map(function(R){y[R]!==void 0&&y[R]!==null&&(w.config[R]=y[R])}),w._isOpen=!1,w._videoMeta={scale:0,videoHeight:0,videoWidth:0,lwidth:0,lheight:0,vWidth:0,vHeight:0,vBottom:0,vLeft:0,marginBottom:0},y.subTitles&&v(y.subTitles)==="Array"?(y.player&&w.attachPlayer(y.player),w.setSubTitles(y.subTitles,w.config.defaultOpen),w):Tn(w)}return Hr(d,n),st(d,[{key:"version",get:function(){return"1.0.12"}}]),st(d,[{key:"setSubTitles",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=this,R=arguments.length>1&&arguments[1]!==void 0&&arguments[1],I=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],W=this._isOpen||R;I&&this.innerRoot&&this.switchOff(),this.currentText=null,this.textTrack=[],y.map(function(Y){var q={};Qe(Y).map(function($){q[$]=Y[$]}),q.isDefault&&(w.currentText=q),w.textTrack.push(q)}),this.currentText&&F(this.currentText).then(function(Y){w.addStyles(Y),W&&w.switch()})}},{key:"addStyles",value:function(y){var w=y.styles,R=y.format;w&&R==="vtt"&&(w.map(function(I){I.key||(I.key="xg-text-track-span")}),_(w,"xg-text-track"))}},{key:"attachPlayer",value:function(y){var w=this;if(y){this.player&&this.detachPlayer();var R=this.config,I=R.fontColor,W=R.mode,Y=R.fitVideo;this.player=y,this.root=document.createElement("xg-text-track"),this.root.className="xg-text-track",!this._isOpen&&c(this.root,"text-track-hide"),!Y&&c(this.root,"text-track-no-fitvideo"),W&&c(this.root,"text-track-"+W),this.innerRoot=document.createElement("xg-text-track-inner"),this.root.appendChild(this.innerRoot),I&&(this.root.style.color=I),this.currentText&&["language","id","label"].map(function(q){w.root.setAttribute("data-"+q,w.currentText[q]||"")}),this.player.root.appendChild(this.root),["destroy","__onTimeupdate","_onResize"].map(function(q){w[q]=w[q].bind(w)}),this.player.on("destroy",this.destroy),this.player.on("timeupdate",this.__onTimeupdate),this._isOpen&&this.switch(),o(y.root,this._onResize)}}},{key:"detachPlayer",value:function(){var y=this.player;y&&(y.off("destroy",this.destroy),y.off("timeupdate",this.__onTimeupdate),y.root&&(h(y.root,this._onResize),y.root.removeChild(this.root)),this.innerRoot=null,this.root=null,this.player=null)}},{key:"switch",value:function(){var y=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{id:"",language:""};return this._loadingTrack=w,new qt(function(R,I){if(!w.id&&!w.language){if(y.currentText){y._loadingTrack={},y._updateCurrent(y.currentText),y._isOpen=!0,y.show();var W=p(0,{message:"switch default subtitle success"});return void R(W)}var Y=p(5,{message:"no default subtitle"});return void I(Y)}if(y.currentText&&L(w,y.currentText))y._loadingTrack={},y._updateCurrent(y.currentText),y._isOpen=!0,y.show(),R(p(0));else{for(var q=null,$=0;$<y.textTrack.length;$++)if(L(w,y.textTrack[$])){q=y.textTrack[$];break}if(q)q.list?(y._loadingTrack={},y._updateCurrent(q),y._isOpen=!0,y.show(),R(p(0))):F(q).then(function(Q){if(y.addStyles(Q),y._loadingTrack.id===q.id||y._loadingTrack.language===Q.language)y._loadingTrack={},y._updateCurrent(Q),y._isOpen=!0,y.show(),R(p(0));else{var ee=p(6,{message:"check _loadingTrack fail id: "+y._loadingTrack.id+" nextSubtitle:"+Q.id});console.trace(ee),I(ee)}}).catch(function(Q){I(Q)});else{var J=p(4,new Error("The is no subtitle with id:[{"+w.id+"}] or language:["+w.language+"]"));console.trace(J),I(J)}}})}},{key:"switchOff",value:function(){this._isOpen=!1,this.hide()}},{key:"_updateCurrent",value:function(y){var w=this;if(this.root){this.currentText=y,["language","id","label"].map(function(I){w.root.setAttribute("data-"+I,w.currentText[I]||"")}),this.__remove(this._cids);var R=this.player.currentTime;this._cids=[],this._gid=-1,this._cid=-1,this._update(R)}}},{key:"__loadAll",value:function(){this.textTrack.map(function(y){F(y)})}},{key:"getDelCid",value:function(y,w){for(var R=[],I=0;I<y.length;I++)w.includes(y[I])||R.push(y[I]);return R}},{key:"getNewCid",value:function(y,w){for(var R=[],I=0;I<w.length;I++)y.includes(w[I])||R.push(w[I]);return R}},{key:"_update",value:function(y){var w=this,R=i(y,this.currentText.list,this._gid),I=[];if(R>-1&&(I=f(y,this.currentText.list[R].list,this._cid)),I.length<1)return this._cids.length>0&&this.__remove(this._cids),void(this._cids=[]);if(this._cids!==I||R!==this._gid){this._gid=R,this._cid=I[0];var W=this.getDelCid(this._cids,I),Y=this.getNewCid(this._cids,I);this._cids=I,this.__remove(W);var q=[];Y.map(function($){var J=w.currentText.list[R].list[$];J.index=$,q.push(J)}),this.__render(q,y)}}},{key:"__onTimeupdate",value:function(){if(this._isOpen){var y=this.player.video,w=y.videoWidth,R=y.videoHeight;!this._videoMeta.scale&&w&&R&&this._onResize(this.player.root);var I=this.player.currentTime;Math.round(Math.abs(1e3*I-this._ctime))<200||(this._ctime=1e3*I,this.currentText&&this.currentText.list&&this._update(I))}}},{key:"_onResize",value:function(y){var w=this._videoMeta;if(y&&y instanceof window.Element||(y=this.player.root),this._iId&&(clearTimeout(this._iId),this._iId=null),!w.scale){if(!this.player.video)return;var R=this.player.video,I=R.videoWidth,W=R.videoHeight;if(!I||!W)return;w.videoWidth=I,w.videoHeight=W,w.scale=parseInt(W/I*100,10)}this.__startResize(y)}},{key:"resize",value:function(y,w){var R=this,I=this.config,W=I.baseSizeX,Y=I.baseSizeY,q=I.minMobileSize,$=I.minSize,J=I.fitVideo,Q=I.offsetBottom,ee=this._videoMeta.scale;this._videoMeta.lwidth=y,this._videoMeta.lheight=w;var re=void 0,Z=0;w/y*100>=ee?(Z=parseInt(ee*y,10)/100,re=y):(Z=w,re=parseInt(w/ee*100,10)),this._videoMeta.vWidth=re,this._videoMeta.vHeight=Z;var ae=0,oe=0;ee>120?(ae=Y,oe=parseInt(ae*Z/1080,10)):(ae=W,oe=parseInt(ae*re/1920,10));var le=ar?q:$,xe={fontSize:oe=oe<le?le:oe>ae?ae:oe},be=parseInt((w-Z)/2,10),Me=parseInt((y-re)/2,10),Gt=parseInt(Z*Q,10)/100;this._videoMeta.vBottom=be,this._videoMeta.vLeft=Me,this._videoMeta.marginBottom=Gt,J&&(xe.bottom=be+Gt,xe.left=xe.right=Me),Qe(xe).map(function(ir){R.root.style[ir]=xe[ir]+"px"}),this.emit(pa.RESIZE,{vLeft:Me,vBottom:be,marginBottom:Gt,vWidth:re,vHeight:Z,fontSize:oe,scale:ee})}},{key:"__startResize",value:function(y){var w=this,R=y.getBoundingClientRect(),I=this._videoMeta,W=R.width,Y=R.height;if(this._iId&&(clearTimeout(this._iId),this._iId=null),W>0&&Y>0&&(W!==I.lwidth||Y!==I.lheight))this._iC=0,this.resize(W,Y);else{if(this._iC>=5)return void(this._iC=0);this._iC++,this._iId=setTimeout(function(){w.__startResize(y)},50)}}},{key:"__remove",value:function(y){var w=this;if(y&&!(y.length<1)){for(var R=this.innerRoot.children,I=[],W=0;W<R.length;W++){var Y=Number(R[W].getAttribute("data-index"));y.includes(Y)&&I.push(R[W])}I.map(function(q){w.innerRoot.removeChild(q)})}}},{key:"__render",value:function(){var y=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];w.length>0&&w.map(function(R){var I="text-track-"+y.config.line;R.text.map(function(W,Y){Y>0&&(I+=" text-track-deputy");var q={"data-start":R.start,"data-end":R.end,"data-index":R.index};y.innerRoot.appendChild(b("xg-text-track-span",W,q,I))})})}},{key:"show",value:function(){a(this.root,"text-track-hide")}},{key:"hide",value:function(){c(this.root,"text-track-hide"),this.innerRoot.innerHTML=""}},{key:"destroy",value:function(){this.detachPlayer(),this.removeAllListeners(),this.player=null,this.textTrack=null}},{key:"marginBottom",get:function(){var y=this._videoMeta,w=y.bottom,R=y.marginBottom;return this.config.fitVideo?w+R:R}}]),d}(la)})},function(k,s,l){var r=l(9),S=ce(r),T=l(10),u=ce(T),C=l(108),g=ce(C),e=l(48),t=ce(e),c=l(40),a=ce(c),i=l(53),f=ce(i),v=l(56),b=ce(v),x=l(59),_=ce(x),o=l(111),h=ce(o),p=l(116),O=ce(p),F=l(122),L=ce(F),E=l(64),D=ce(E),m=l(68),P=ce(m),z=l(71),H=ce(z),K=l(74),A=ce(K),M=l(125),B=ce(M),j=l(128),U=ce(j),N=l(129),V=ce(N),X=l(133),G=ce(X),te=l(139),ue=ce(te),fe=l(142),ge=ce(fe),se=l(145),de=ce(se),he=l(149),ke=ce(he),Ee=l(153),ye=ce(Ee),Te=l(157),pe=ce(Te),ie=l(160),Ce=ce(ie),me=l(162),ne=ce(me),ve=l(163),Ye=ce(ve),pt=l(166),Fe=ce(pt),gt=l(169),ht=ce(gt);function ce(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}S.default.installAll([u.default,g.default,t.default,a.default,f.default,b.default,_.default,h.default,O.default,L.default,D.default,P.default,H.default,A.default,B.default,U.default,V.default,G.default,ue.default,ge.default,de.default,ke.default,ye.default,pe.default,Ce.default,ne.default,Ye.default,Fe.default,ht.default])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(109);var S=function(){for(var u=this,C=u.root,g="",e=1;e<=12;e++)g+='<div class="xgplayer-enter-bar'+e+'"></div>';var t=(0,r.createDom)("xg-enter",`<div class="xgplayer-enter-spinner">
`+g+`
</div>`,{},"xgplayer-enter");C.appendChild(t)};s.default={name:"s_enter",method:S},k.exports=s.default},function(k,s,l){var r=l(110);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-enter{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background:#000;z-index:120}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner{display:block;position:absolute;left:50%;top:50%;height:100px;width:100px;position:relative;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div{width:12%;height:26%;background-color:hsla(0,0%,100%,.7);position:absolute;left:44%;top:37%;opacity:0;border-radius:30px;-webkit-animation:fade 1s linear infinite;animation:fade 1s linear infinite}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar1{-webkit-transform:rotate(0deg) translateY(-142%);-ms-transform:rotate(0deg) translateY(-142%);transform:rotate(0deg) translateY(-142%);-webkit-animation-delay:0s;animation-delay:0s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar2{-webkit-transform:rotate(30deg) translateY(-142%);-ms-transform:rotate(30deg) translateY(-142%);transform:rotate(30deg) translateY(-142%);-webkit-animation-delay:-.9163s;animation-delay:-.9163s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar3{-webkit-transform:rotate(60deg) translateY(-142%);-ms-transform:rotate(60deg) translateY(-142%);transform:rotate(60deg) translateY(-142%);-webkit-animation-delay:-.833s;animation-delay:-.833s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar4{-webkit-transform:rotate(90deg) translateY(-142%);-ms-transform:rotate(90deg) translateY(-142%);transform:rotate(90deg) translateY(-142%);-webkit-animation-delay:-.7497s;animation-delay:-.7497s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar5{-webkit-transform:rotate(120deg) translateY(-142%);-ms-transform:rotate(120deg) translateY(-142%);transform:rotate(120deg) translateY(-142%);-webkit-animation-delay:-.6664s;animation-delay:-.6664s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar6{-webkit-transform:rotate(150deg) translateY(-142%);-ms-transform:rotate(150deg) translateY(-142%);transform:rotate(150deg) translateY(-142%);-webkit-animation-delay:-.5831s;animation-delay:-.5831s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar7{-webkit-transform:rotate(180deg) translateY(-142%);-ms-transform:rotate(180deg) translateY(-142%);transform:rotate(180deg) translateY(-142%);-webkit-animation-delay:-.4998s;animation-delay:-.4998s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar8{-webkit-transform:rotate(210deg) translateY(-142%);-ms-transform:rotate(210deg) translateY(-142%);transform:rotate(210deg) translateY(-142%);-webkit-animation-delay:-.4165s;animation-delay:-.4165s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar9{-webkit-transform:rotate(240deg) translateY(-142%);-ms-transform:rotate(240deg) translateY(-142%);transform:rotate(240deg) translateY(-142%);-webkit-animation-delay:-.3332s;animation-delay:-.3332s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar10{-webkit-transform:rotate(270deg) translateY(-142%);-ms-transform:rotate(270deg) translateY(-142%);transform:rotate(270deg) translateY(-142%);-webkit-animation-delay:-.2499s;animation-delay:-.2499s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar11{-webkit-transform:rotate(300deg) translateY(-142%);-ms-transform:rotate(300deg) translateY(-142%);transform:rotate(300deg) translateY(-142%);-webkit-animation-delay:-.1666s;animation-delay:-.1666s}.xgplayer-skin-default .xgplayer-enter .xgplayer-enter-spinner div.xgplayer-enter-bar12{-webkit-transform:rotate(330deg) translateY(-142%);-ms-transform:rotate(330deg) translateY(-142%);transform:rotate(330deg) translateY(-142%);-webkit-animation-delay:-.0833s;animation-delay:-.0833s}@-webkit-keyframes fade{0%{opacity:1}to{opacity:.25}}@keyframes fade{0%{opacity:1}to{opacity:.25}}.xgplayer-skin-default.xgplayer-is-enter .xgplayer-enter{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(112),T=g(S),u=l(113),C=g(u);l(114);function g(t){return t&&t.__esModule?t:{default:t}}var e=function(){var c=this;if(!!c.config.cssFullscreen){var a=(0,r.createDom)("xg-cssfullscreen",`<xg-icon class="xgplayer-icon">
<div class="xgplayer-icon-requestfull">`+T.default+`</div>
<div class="xgplayer-icon-exitfull">`+C.default+`</div>
</xg-icon>`,{},"xgplayer-cssfullscreen"),i={};i.requestfull=c.lang.CSSFULLSCREEN_TIPS,i.exitfull=c.lang.EXITCSSFULLSCREEN_TIPS;var f=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-requestfull">'+i.requestfull+`</span>
<span class="xgplayer-tip-exitfull">`+i.exitfull+"</span>",{},"xgplayer-tips");a.appendChild(f),c.once("ready",function(){c.controls.appendChild(a)}),["click","touchend"].forEach(function(v){a.addEventListener(v,function(b){b.preventDefault(),b.stopPropagation(),c.userGestureTrigEvent("cssFullscreenBtnClick")})})}};s.default={name:"s_cssFullscreen",method:e},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="scale(0.028 0.028)" d="M843.617212 67.898413 175.411567 67.898413c-61.502749 0-111.367437 49.856501-111.367437 111.367437l0 668.205645c0 61.510936 49.864688 111.367437 111.367437 111.367437L843.617212 958.838931c61.510936 0 111.367437-49.856501 111.367437-111.367437L954.984648 179.26585C954.984648 117.754914 905.12917 67.898413 843.617212 67.898413zM398.146441 736.104057c15.380292 0 27.842115 12.461823 27.842115 27.842115 0 15.379269-12.461823 27.841092-27.842115 27.841092L259.725858 791.787264c-7.785314 0-14.781658-3.217275-19.838837-8.365528-5.383614-4.577249-8.791224-11.228739-8.791224-19.475564L231.095797 624.736621c0-15.371082 12.471033-27.842115 27.842115-27.842115 15.380292 0 27.842115 12.471033 27.842115 27.842115l-0.61603 71.426773 133.036969-133.037992 39.378869 39.378869L324.962651 736.113267 398.146441 736.104057zM419.199942 463.611943 286.162974 330.565764l0.61603 71.435982c0 15.380292-12.461823 27.842115-27.842115 27.842115-15.371082 0-27.842115-12.461823-27.842115-27.842115L231.094774 262.791172c0-8.256034 3.40761-14.908548 8.791224-19.476587 5.057179-5.148253 12.053524-8.374738 19.838837-8.374738l138.420583 0.00921c15.380292 0 27.842115 12.461823 27.842115 27.842115s-12.461823 27.842115-27.842115 27.842115l-73.175603-0.00921 133.607974 133.607974L419.199942 463.611943zM787.932981 763.946172c0 8.247848-3.40761 14.899338-8.791224 19.475564-5.057179 5.148253-12.053524 8.365528-19.839861 8.365528L620.881314 791.787264c-15.379269 0-27.841092-12.461823-27.841092-27.841092 0-15.380292 12.461823-27.842115 27.841092-27.842115l73.185836 0.00921L560.449967 602.50427l39.378869-39.378869L732.875015 696.163393l-0.62524-71.426773c0-15.371082 12.462846-27.842115 27.842115-27.842115 15.380292 0 27.842115 12.471033 27.842115 27.842115L787.934005 763.946172zM787.932981 402.000724c0 15.380292-12.461823 27.842115-27.842115 27.842115-15.379269 0-27.842115-12.461823-27.842115-27.842115l0.62524-71.435982L599.828836 463.611943l-39.378869-39.378869 133.617184-133.607974-73.185836 0.00921c-15.379269 0-27.841092-12.461823-27.841092-27.842115s12.461823-27.842115 27.841092-27.842115l138.421606-0.00921c7.785314 0 14.781658 3.226484 19.839861 8.374738 5.383614 4.568039 8.791224 11.219529 8.791224 19.476587L787.934005 402.000724z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="scale(0.028 0.028)" d="M834.56 81.92H189.44c-59.392 0-107.52 48.128-107.52 107.52v645.12c0 59.392 48.128 107.52 107.52 107.52h645.12c59.392 0 107.52-48.128 107.52-107.52V189.44c0-59.392-48.128-107.52-107.52-107.52zM458.24 727.04c0 14.848-12.288 26.624-26.624 26.624S404.48 741.888 404.48 727.04v-69.632L289.28 773.12c-10.752 10.24-27.648 10.24-37.888 0-10.24-10.752-10.24-27.648 0-37.888L366.592 619.52H296.96c-14.848 0-26.624-12.288-26.624-26.624s12.288-26.624 26.624-26.624h134.144c14.848 0 26.624 12.288 26.624 26.624V727.04z m0-295.936c0 14.848-12.288 26.624-26.624 26.624H296.96c-14.848 0-26.624-12.288-26.624-26.624S282.112 404.48 296.96 404.48h69.632L251.392 289.28c-10.24-10.752-10.24-27.648 0-37.888 5.12-5.12 12.288-7.68 18.944-7.68 6.656 0 13.824 2.56 18.944 7.68L404.48 366.592V296.96c0-14.848 12.288-26.624 26.624-26.624s26.624 12.288 26.624 26.624v134.144zM773.12 773.12c-10.752 10.24-27.648 10.24-37.888 0L619.52 657.408V727.04c0 14.848-12.288 26.624-26.624 26.624s-26.624-11.776-26.624-26.624v-134.144c0-14.848 12.288-26.624 26.624-26.624H727.04c14.848 0 26.624 12.288 26.624 26.624s-12.288 26.624-26.624 26.624h-69.632l115.2 115.2c10.752 10.752 10.752 27.648 0.512 38.4z m0-483.84L657.408 404.48H727.04c14.848 0 26.624 12.288 26.624 26.624 0 14.848-12.288 26.624-26.624 26.624h-134.144c-14.848 0-26.624-12.288-26.624-26.624V296.96c0-14.848 12.288-26.624 26.624-26.624s26.624 12.288 26.624 26.624v69.632L734.72 250.88c5.12-5.12 12.288-7.68 18.944-7.68s13.824 2.56 18.944 7.68c10.752 10.752 10.752 27.648 0.512 38.4z"></path>
</svg>
`},function(k,s,l){var r=l(115);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-cssfullscreen,.xgplayer-skin-default .xgplayer-cssfullscreen-img{position:relative;-webkit-order:12;-moz-box-ordinal-group:13;order:12;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon{width:32px;margin-top:5px}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-40px}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-cssfullscreen-img:hover,.xgplayer-skin-default .xgplayer-cssfullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-cssfullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-cssfullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-47px}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-cssfullscreen,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-cssfullscreen-img{display:none}.xgplayer-skin-default.xgplayer-is-cssfullscreen{position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:99999!important}.xgplayer-lang-is-en .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-lang-is-en .xgplayer-cssfullscreen .xgplayer-tips,.xgplayer-lang-is-en.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.xgplayer-lang-is-en.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-46px}.lang-is-jp .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-jp .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-120px}.lang-is-jp.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen-img .xgplayer-tips,.lang-is-jp.xgplayer-is-cssfullscreen .xgplayer-cssfullscreen .xgplayer-tips{margin-left:-60px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(117),T=t(S),u=l(118),C=t(u),g=l(119),e=t(g);l(120);function t(a){return a&&a.__esModule?a:{default:a}}var c=function(){var i=this,f=(0,r.createDom)("xg-volume",`<xg-icon class="xgplayer-icon">
<div class="xgplayer-icon-large">`+e.default+`</div>
<div class="xgplayer-icon-small">`+C.default+`</div>
<div class="xgplayer-icon-muted">`+T.default+`</div>
</xg-icon>
<xg-slider class="xgplayer-slider" tabindex="2">
<xg-bar class="xgplayer-bar">
<xg-drag class="xgplayer-drag"></xg-drag>
</xg-bar>
</xg-slider>`,{},"xgplayer-volume");i.once("ready",function(){i.controls&&i.controls.appendChild(f)});var v=f.querySelector(".xgplayer-slider"),b=f.querySelector(".xgplayer-bar"),x=f.querySelector(".xgplayer-drag"),_=f.querySelector(".xgplayer-icon");x.style.height=i.config.volume*100+"%",v.volume=i.config.volume,b.addEventListener("mousedown",function(o){o.preventDefault(),o.stopPropagation(),i.userGestureTrigEvent("volumeBarClick",o)}),["click","touchend"].forEach(function(o){_.addEventListener(o,function(h){h.preventDefault(),h.stopPropagation(),i.userGestureTrigEvent("volumeIconClick")})}),_.addEventListener("mouseenter",function(o){o.preventDefault(),o.stopPropagation(),i.userGestureTrigEvent("volumeIconEnter")}),["blur","mouseleave"].forEach(function(o){f.addEventListener(o,function(h){h.preventDefault(),h.stopPropagation(),i.userGestureTrigEvent("volumeIconLeave")})})};s.default={name:"s_volume",method:c},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
<path transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
<path transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
</svg>
`},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
<path transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
</svg>
`},function(k,s,l){var r=l(121);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,'.xgplayer-skin-default .xgplayer-volume{outline:none;-webkit-order:4;-moz-box-ordinal-group:5;order:4;width:40px;height:40px;display:block;position:relative;z-index:18}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon{margin-top:8px;cursor:pointer;position:absolute;bottom:-9px}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:none}.xgplayer-skin-default .xgplayer-slider{display:none;position:absolute;width:28px;height:92px;background:rgba(0,0,0,.54);border-radius:1px;bottom:42px;outline:none}.xgplayer-skin-default .xgplayer-slider:after{content:" ";display:block;height:15px;width:28px;position:absolute;bottom:-15px;left:0;z-index:20}.xgplayer-skin-default .xgplayer-bar,.xgplayer-skin-default .xgplayer-drag{display:block;position:absolute;bottom:6px;left:12px;background:hsla(0,0%,100%,.3);border-radius:100px;width:4px;height:76px;outline:none;cursor:pointer}.xgplayer-skin-default .xgplayer-drag{bottom:0;left:0;background:#fa1f41;max-height:76px}.xgplayer-skin-default .xgplayer-drag:after{content:" ";display:inline-block;width:8px;height:8px;background:#fff;box-shadow:0 0 5px 0 rgba(0,0,0,.26);position:absolute;border-radius:50%;left:-2px;top:-6px}.xgplayer-skin-default.xgplayer-volume-active .xgplayer-slider,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:none}.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:block}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-large,.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:none}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:block}.xgplayer-skin-default.xgplayer-mobile .xgplayer-volume .xgplayer-slider{display:none}',""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(5),T=u(S);l(123);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.root,c=void 0,a=(0,r.createDom)("xg-definition","",{tabindex:3},"xgplayer-definition");T.default.device==="mobile"&&(e.config.definitionActive="click");function i(){var o=e.definitionList,h=["<ul>"],p=e.config.url,O=document.createElement("a");e.switchURL?["mp4","hls","__flv__","dash"].every(function(m){return e[m]?(e[m].url&&(O.href=e[m].url),m==="__flv__"&&(e[m]._options?O.href=e[m]._options.url:O.href=e[m]._mediaDataSource.url),m==="hls"&&(O.href=e[m].originUrl||e[m].url,p=O.href),p=O.href,!1):!0}):p=e.currentSrc||e.src,o.forEach(function(m){O.href=m.url,e.dash?h.push("<li url='"+m.url+"' cname='"+m.name+"' class='"+(m.selected?"selected":"")+"'>"+m.name+"</li>"):h.push("<li url='"+m.url+"' cname='"+m.name+"' class='"+(O.href===p?"selected":"")+"'>"+m.name+"</li>")});var F=o.filter(function(m){return O.href=m.url,e.dash?m.selected===!0:O.href===p});h.push("</ul><p class='name'>"+(F[0]||{name:""}).name+"</p>");var L=t.querySelector(".xgplayer-definition");if(L){L.innerHTML=h.join("");var E=L.querySelector(".name");(!e.config.definitionActive||e.config.definitionActive==="hover")&&E.addEventListener("mouseenter",function(m){m.preventDefault(),m.stopPropagation(),(0,r.addClass)(e.root,"xgplayer-definition-active"),L.focus()})}else{a.innerHTML=h.join("");var D=a.querySelector(".name");(!e.config.definitionActive||e.config.definitionActive==="hover")&&D.addEventListener("mouseenter",function(m){m.preventDefault(),m.stopPropagation(),(0,r.addClass)(e.root,"xgplayer-definition-active"),a.focus()}),e.controls.appendChild(a)}}function f(o){e.definitionList=o,o&&o instanceof Array&&o.length>0&&((0,r.addClass)(t,"xgplayer-is-definition"),e.once("canplay",i))}e.on("resourceReady",f);function v(){if(e.currentTime=e.curTime,c)e.pause();else{var o=e.play();o!==void 0&&o&&o.catch(function(h){})}}function b(){e.once("timeupdate",v)}["touchend","click"].forEach(function(o){a.addEventListener(o,function(h){h.preventDefault(),h.stopPropagation();var p=e.definitionList,O=h.target||h.srcElement,F=document.createElement("a");if(O&&O.tagName.toLocaleLowerCase()==="li"){var L=void 0,E=void 0;if(Array.prototype.forEach.call(O.parentNode.childNodes,function(m){(0,r.hasClass)(m,"selected")&&(L=m.getAttribute("cname"),(0,r.removeClass)(m,"selected"),e.emit("beforeDefinitionChange",m.getAttribute("url")))}),e.dash&&p.forEach(function(m){m.selected=!1,m.name===O.innerHTML&&(m.selected=!0)}),(0,r.addClass)(O,"selected"),E=O.getAttribute("cname"),O.parentNode.nextSibling.innerHTML=""+O.getAttribute("cname"),F.href=O.getAttribute("url"),c=e.paused,e.switchURL){var D=document.createElement("a");["mp4","hls","__flv__","dash"].every(function(m){return e[m]?(e[m].url&&(D.href=e[m].url),m==="__flv__"&&(e[m]._options?D.href=e[m]._options.url:D.href=e[m]._mediaDataSource.url),m==="hls"&&(D.href=e[m].originUrl||e[m].url),!1):!0}),D.href!==F.href&&!e.ended&&e.switchURL(F.href)}else e.hls&&(document.createElement("a"),e.hls.url),F.href!==e.currentSrc&&(e.curTime=e.currentTime,e.ended||(e.src=F.href));navigator.userAgent.toLowerCase().indexOf("android")>-1?e.once("timeupdate",b):e.once("loadedmetadata",v),e.emit("definitionChange",{from:L,to:E}),T.default.device==="mobile"&&(0,r.removeClass)(e.root,"xgplayer-definition-active")}else e.config.definitionActive==="click"&&O&&(O.tagName.toLocaleLowerCase()==="p"||O.tagName.toLocaleLowerCase()==="em")&&(T.default.device==="mobile"?(0,r.toggleClass)(e.root,"xgplayer-definition-active"):(0,r.addClass)(e.root,"xgplayer-definition-active"),a.focus());e.emit("focus")},!1)}),a.addEventListener("mouseleave",function(o){o.preventDefault(),o.stopPropagation(),(0,r.removeClass)(t,"xgplayer-definition-active")});function x(){(0,r.removeClass)(t,"xgplayer-definition-active")}e.on("blur",x);function _(){e.off("resourceReady",f),e.off("canplay",i),navigator.userAgent.toLowerCase().indexOf("android")>-1?(e.off("timeupdate",b),e.off("timeupdate",v)):e.off("loadedmetadata",v),e.off("blur",x),e.off("destroy",_)}e.once("destroy",_),e.getCurrentDefinition=function(){for(var o=e.controls.querySelectorAll(".xgplayer-definition ul li"),h=0;h<o.length;h++)if(o[h].className&&o[h].className.indexOf("selected")>-1)return{name:o[h].getAttribute("cname"),url:o[h].getAttribute("url")};return{name:o[0].getAttribute("cname"),url:o[0].getAttribute("url")}},e.switchDefinition=function(){for(var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=e.controls.querySelectorAll(".xgplayer-definition ul li"),p=0;p<h.length;p++)(h[p].getAttribute("cname")===o.name||h[p].getAttribute("url")===o.url||p===o.index)&&h[p].click()}};s.default={name:"s_definition",method:C},k.exports=s.default},function(k,s,l){var r=l(124);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-definition{-webkit-order:5;-moz-box-ordinal-group:6;order:5;width:60px;height:150px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-left:10px;margin-top:-119px}.xgplayer-skin-default .xgplayer-definition ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;left:0;text-align:center;white-space:nowrap;margin-left:-10px;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-definition ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);padding:6px 13px}.xgplayer-skin-default .xgplayer-definition ul li.selected,.xgplayer-skin-default .xgplayer-definition ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-definition .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:0;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-definition ul,.xgplayer-skin-default.xgplayer-is-definition .xgplayer-definition{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(5),T=u(S);l(126);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=[];if(e.config.playbackRate)t=[].concat(e.config.playbackRate),t.sort(function(p,O){return O-p});else return!1;var c=e.config.playbackRateUnit!==void 0?e.config.playbackRateUnit:"x",a=(0,r.createDom)("xg-playbackrate"," ",{},"xgplayer-playbackrate");T.default.device==="mobile"&&(e.config.playbackRateActive="click");var i=[];t.forEach(function(p){i.push({name:""+p,rate:""+p+c,selected:!1})});var f=1,v=["<ul>"];i.forEach(function(p){e.config.defaultPlaybackRate&&e.config.defaultPlaybackRate.toString()===p.name?(p.selected=!0,f=e.config.defaultPlaybackRate,e.once("playing",function(){e.video.playbackRate=e.config.defaultPlaybackRate})):(p.name==="1.0"||p.name==="1")&&(!e.config.defaultPlaybackRate||e.config.defaultPlaybackRate===1)&&(p.selected=!0),v.push("<li cname='"+p.name+"' class='"+(p.selected?"selected":"")+"'>"+p.rate+"</li>")}),v.push("</ul><p class='name'>"+f+c+"</p>");var b=e.root.querySelector(".xgplayer-playbackrate");if(b){b.innerHTML=v.join("");var x=b.querySelector(".name");(!e.config.playbackRateActive||e.config.playbackRateActive==="hover")&&x.addEventListener("mouseenter",function(p){p.preventDefault(),p.stopPropagation(),(0,r.addClass)(e.root,"xgplayer-playbackrate-active"),b.focus()})}else{a.innerHTML=v.join("");var _=a.querySelector(".name");(!e.config.playbackRateActive||e.config.playbackRateActive==="hover")&&_.addEventListener("mouseenter",function(p){p.preventDefault(),p.stopPropagation(),(0,r.addClass)(e.root,"xgplayer-playbackrate-active"),a.focus()}),e.once("ready",function(){e.controls.appendChild(a)})}var o=["touchend","click"];o.forEach(function(p){a.addEventListener(p,function(O){O.stopPropagation(),O.preventDefault();var F=O.target;if(F&&F.tagName.toLocaleLowerCase()==="li"){var L=void 0,E=void 0;i.forEach(function(D){D.selected=!1,F.textContent.replace(/\s+/g,"")===D.rate&&(Array.prototype.forEach.call(F.parentNode.childNodes,function(m){(0,r.hasClass)(m,"selected")&&(L=Number(m.getAttribute("cname")),(0,r.removeClass)(m,"selected"))}),D.selected=!0,e.video.playbackRate=D.name*1,f=D.name*1)}),(0,r.addClass)(F,"selected"),E=Number(F.getAttribute("cname")),F.parentNode.nextSibling.innerHTML=""+F.getAttribute("cname")+c,e.emit("playbackrateChange",{from:L,to:E}),T.default.device==="mobile"&&(0,r.removeClass)(e.root,"xgplayer-playbackrate-active")}else e.config.playbackRateActive==="click"&&F&&(F.tagName.toLocaleLowerCase()==="p"||F.tagName.toLocaleLowerCase()==="span")&&(T.default.device==="mobile"?(0,r.toggleClass)(e.root,"xgplayer-playbackrate-active"):(0,r.addClass)(e.root,"xgplayer-playbackrate-active"),a.focus());e.emit("focus")},!1)}),a.addEventListener("mouseleave",function(p){p.preventDefault(),p.stopPropagation(),(0,r.removeClass)(e.root,"xgplayer-playbackrate-active")});function h(){(0,r.removeClass)(e.root,"xgplayer-playbackrate-active")}e.on("blur",h),e.on("play",function(){e.video.playbackRate.toFixed(1)!==f.toFixed(1)&&(e.video.playbackRate=f)}),e.switchPlaybackRate=function(){for(var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=e.controls.querySelectorAll(".xgplayer-playbackrate ul li"),F=0;F<O.length;F++)!(0,r.hasClass)(O[F],"selected")&&(O[F].getAttribute("cname")===""+p.playbackRate||F===p.index)&&O[F].click()},e.on("ratechange",function(){e.switchPlaybackRate({playbackRate:e.playbackRate})})};s.default={name:"s_playbackRate",method:C},k.exports=s.default},function(k,s,l){var r=l(127);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-playbackrate{-webkit-order:8;-moz-box-ordinal-group:9;order:8;width:60px;height:150px;z-index:18;position:relative;display:inline-block;cursor:default;margin-top:-119px}.xgplayer-skin-default .xgplayer-playbackrate ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:left;white-space:nowrap;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-playbackrate ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);position:relative;padding:4px 0;text-align:center}.xgplayer-skin-default .xgplayer-playbackrate ul li.selected,.xgplayer-skin-default .xgplayer-playbackrate ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-playbackrate ul li:first-child{position:relative;margin-top:12px}.xgplayer-skin-default .xgplayer-playbackrate ul li:last-child{position:relative;margin-bottom:12px}.xgplayer-skin-default .xgplayer-playbackrate .name{width:60px;height:20px;position:absolute;bottom:0;text-align:center;font-family:PingFangSC-Regular;font-size:13px;background:rgba(0,0,0,.38);color:hsla(0,0%,100%,.8);border-radius:10px;line-height:20px}.xgplayer-skin-default .xgplayer-playbackrate span{position:relative;top:19px;font-weight:700;text-shadow:0 0 4px rgba(0,0,0,.6)}.xgplayer-skin-default .xgplayer-playbackrate:hover{opacity:1}.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-playbackrate ul{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=function(){var u=this;if(u.config.preview&&u.config.preview.uploadEl){var C=(0,r.createDom)("xg-preview",'<input type="file">',{},"xgplayer-preview"),g=C.querySelector("input");u.config.preview.uploadEl.appendChild(C),g.onchange=function(){u.emit("upload",g)}}};s.default={name:"s_localPreview",method:S},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(130),T=u(S);l(131);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this;if(!!e.config.download){var t=(0,r.createDom)("xg-download",'<xg-icon class="xgplayer-icon">'+T.default+"</xg-icon>",{},"xgplayer-download"),c=e.lang.DOWNLOAD_TIPS,a=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-download">'+c+"</span>",{},"xgplayer-tips");t.appendChild(a),e.once("ready",function(){e.controls.appendChild(t)}),["click","touchend"].forEach(function(i){t.addEventListener(i,function(f){f.preventDefault(),f.stopPropagation(),e.userGestureTrigEvent("downloadBtnClick")})})}};s.default={name:"s_download",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
<g id="Group-2">
<g id="volme_big-copy" transform="translate(488.000000, 340.000000)">
<rect id="Rectangle-18" x="11" y="4" width="2" height="12" rx="1"></rect>
<rect id="Rectangle-2" x="3" y="18" width="18" height="2" rx="1"></rect>
<rect id="Rectangle-2" transform="translate(4.000000, 17.500000) rotate(90.000000) translate(-4.000000, -17.500000) " x="1.5" y="16.5" width="5" height="2" rx="1"></rect><rect id="Rectangle-2-Copy-3" transform="translate(20.000000, 17.500000) rotate(90.000000) translate(-20.000000, -17.500000) " x="17.5" y="16.5" width="5" height="2" rx="1"></rect>
<path d="M9.48791171,8.26502656 L9.48791171,14.2650266 C9.48791171,14.8173113 9.04019646,15.2650266 8.48791171,15.2650266 C7.93562696,15.2650266 7.48791171,14.8173113 7.48791171,14.2650266 L7.48791171,7.26502656 C7.48791171,6.71274181 7.93562696,6.26502656 8.48791171,6.26502656 L15.4879117,6.26502656 C16.0401965,6.26502656 16.4879117,6.71274181 16.4879117,7.26502656 C16.4879117,7.81731131 16.0401965,8.26502656 15.4879117,8.26502656 L9.48791171,8.26502656 Z" id="Combined-Shape" transform="translate(11.987912, 10.765027) scale(1, -1) rotate(45.000000) translate(-11.987912, -10.765027) "></path>
</g>
</g>
</g>
</g>
</svg>
`},function(k,s,l){var r=l(132);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-download{position:relative;-webkit-order:9;-moz-box-ordinal-group:10;order:9;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-download .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-download .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-download .xgplayer-icon svg{position:relative;top:5px;left:5px}.xgplayer-skin-default .xgplayer-download .xgplayer-tips{margin-left:-20px}.xgplayer-skin-default .xgplayer-download .xgplayer-tips .xgplayer-tip-download{display:block}.xgplayer-skin-default .xgplayer-download:hover{opacity:.85}.xgplayer-skin-default .xgplayer-download:hover .xgplayer-tips{display:block}.xgplayer-lang-is-en .xgplayer-download .xgplayer-tips{margin-left:-32px}.xgplayer-lang-is-jp .xgplayer-download .xgplayer-tips{margin-left:-40px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(134),T=g(S),u=l(136),C=g(u);l(137);function g(t){return t&&t.__esModule?t:{default:t}}var e=function(){var c=this,a=c.root;if(!!c.config.danmu){var i=(0,r.createDom)("xg-danmu","",{},"xgplayer-danmu");c.once("ready",function(){a.appendChild(i)});var f=(0,r.deepCopy)({container:i,player:c.video,comments:[],area:{start:0,end:1}},c.config.danmu),v=void 0;c.config.danmu.panel&&(v=(0,r.createDom)("xg-panel",`<xg-panel-icon class="xgplayer-panel-icon">
`+C.default+`
</xg-panel-icon>
<xg-panel-slider class="xgplayer-panel-slider">
<xg-hidemode class="xgplayer-hidemode">
<p class="xgplayer-hidemode-font">\u5C4F\u853D\u7C7B\u578B</p>
<ul class="xgplayer-hidemode-radio">
<li class="xgplayer-hidemode-scroll" id="false">\u6EDA\u52A8</li><li class="xgplayer-hidemode-top" id="false">\u9876\u90E8</li><li class="xgplayer-hidemode-bottom" id="false">\u5E95\u90E8</li><li class="xgplayer-hidemode-color" id="false">\u8272\u5F69</li>
</ul>
</xg-hidemode>
<xg-transparency class="xgplayer-transparency">
<span>\u4E0D\u900F\u660E\u5EA6</span>
<input class="xgplayer-transparency-line xgplayer-transparency-color xgplayer-transparency-bar xgplayer-transparency-gradient" type="range" min="0" max="100" step="0.1" value="50"></input>
</xg-transparency>
<xg-showarea class="xgplayer-showarea">
<div class="xgplayer-showarea-name">\u663E\u793A\u533A\u57DF</div>
<div class="xgplayer-showarea-control">
<div class="xgplayer-showarea-control-up">
<span class="xgplayer-showarea-control-up-item xgplayer-showarea-onequarters">1/4</span>
<span class="xgplayer-showarea-control-up-item xgplayer-showarea-twoquarters selected-color">1/2</span>
<span class="xgplayer-showarea-control-up-item xgplayer-showarea-threequarters">3/4</span>
<span class="xgplayer-showarea-control-up-item xgplayer-showarea-full">1</span>
</div>
<div class="xgplayer-showarea-control-down">
<div class="xgplayer-showarea-control-down-dots">
<span class="xgplayer-showarea-onequarters-dot"></span>
<span class="xgplayer-showarea-twoquarters-dot"></span>
<span class="xgplayer-showarea-threequarters-dot"></span>
<span class="xgplayer-showarea-full-dot"></span>
</div>
<input class="xgplayer-showarea-line xgplayer-showarea-color xgplayer-showarea-bar xgplayer-gradient" type="range" min="1" max="4" step="1" value="1">
</div>
</div>
</xg-showarea>
<xg-danmuspeed class="xgplayer-danmuspeed">
<div class="xgplayer-danmuspeed-name">\u5F39\u5E55\u901F\u5EA6</div>
<div class="xgplayer-danmuspeed-control">
<div class="xgplayer-danmuspeed-control-up">
<span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-small">\u6162</span>
<span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-middle selected-color">\u4E2D</span>
<span class="xgplayer-danmuspeed-control-up-item xgplayer-danmuspeed-large">\u5FEB</span>
</div>
<div class="xgplayer-danmuspeed-control-down">
<div class="xgplayer-danmuspeed-control-down-dots">
<span class="xgplayer-danmuspeed-small-dot"></span>
<span class="xgplayer-danmuspeed-middle-dot"></span>
<span class="xgplayer-danmuspeed-large-dot"></span>
</div>
<input class="xgplayer-danmuspeed-line xgplayer-danmuspeed-color xgplayer-danmuspeed-bar xgplayer-gradient" type="range" min="50" max="150" step="50" value="100">
</div>
</div>
</xg-danmuspeed>
<xg-danmufont class="xgplayer-danmufont">
<div class="xgplayer-danmufont-name">\u5B57\u4F53\u5927\u5C0F</div>
<div class="xgplayer-danmufont-control">
<div class="xgplayer-danmufont-control-up">
<span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-small">\u5C0F</span>
<span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-middle">\u4E2D</span>
<span class="xgplayer-danmufont-control-up-item xgplayer-danmufont-large selected-color">\u5927</span>
</div>
<div class="xgplayer-danmufont-control-down">
<div class="xgplayer-danmufont-control-down-dots">
<span class="xgplayer-danmufont-small-dot"></span>
<span class="xgplayer-danmufont-middle-dot"></span>
<span class="xgplayer-danmufont-large-dot"></span>
</div>
<input class="xgplayer-danmufont-line xgplayer-danmufont-color xgplayer-danmufont-bar xgplayer-gradient" type="range" min="20" max="30" step="5" value="25">
</div>
</div>
</xg-danmufont>
</xg-panel-slider>`,{tabindex:7},"xgplayer-panel"),c.once("ready",function(){c.controls.appendChild(v)})),c.once("complete",function(){var b=new T.default(f);if(c.emit("initDefaultDanmu",b),c.danmu=b,!!c.config.danmu.panel){var x=v.querySelector(".xgplayer-panel-slider"),_=void 0,o=["mouseenter","touchend","click"];o.forEach(function(j){v.addEventListener(j,function(U){U.preventDefault(),U.stopPropagation(),(0,r.addClass)(x,"xgplayer-panel-active"),v.focus(),_=!0})}),v.addEventListener("mouseleave",function(j){j.preventDefault(),j.stopPropagation(),(0,r.removeClass)(x,"xgplayer-panel-active"),_=!1}),x.addEventListener("mouseleave",function(j){j.preventDefault(),j.stopPropagation(),_===!1&&(0,r.removeClass)(x,"xgplayer-panel-active")});var h=c.config.danmu,p=v.querySelector(".xgplayer-hidemode-scroll"),O=v.querySelector(".xgplayer-hidemode-top"),F=v.querySelector(".xgplayer-hidemode-bottom"),L=v.querySelector(".xgplayer-hidemode-color"),E={scroll:p,top:O,bottom:F,color:L},D=function(U){var N=U,V=["touchend","click"];V.forEach(function(X){E[N].addEventListener(X,function(G){E[N].getAttribute("id")!=="true"?(E[N].style.color="#f85959",E[N].setAttribute("id","true"),c.danmu.hide(N)):(E[N].style.color="#aaa",E[N].setAttribute("id","false"),c.danmu.show(N))})})};for(var m in E)D(m);var P=v.querySelector(".xgplayer-transparency-line"),z=v.querySelector(".xgplayer-transparency-gradient"),H=50;z.style.background="linear-gradient(to right, #f85959 0%, #f85959 "+H+"%, #aaa "+H+"%, #aaa)",P.addEventListener("input",function(j){j.preventDefault(),j.stopPropagation(),H=j.target.value,z.style.background="linear-gradient(to right, #f85959 0%, #f85959 "+H+"%, #aaa "+H+"%, #aaa)",h.comments.forEach(function(U){U.style.opacity=H/100})});var K=v.querySelector(".xgplayer-showarea-line");K.addEventListener("input",function(j){j.preventDefault(),j.stopPropagation();var U=j.target.value;c.danmu.config.area.end=U/100,c.config.danmu.area.end=U/100,c.danmu.bulletBtn.main.channel.resize()});var A=v.querySelector(".xgplayer-danmuspeed-line");A.addEventListener("input",function(j){j.preventDefault(),j.stopPropagation();var U=j.target.value;h.comments.forEach(function(N){N.duration=(200-U)*100})});var M=v.querySelector(".xgplayer-danmufont-line");if(M.addEventListener("input",function(j){j.preventDefault(),j.stopPropagation();var U=j.target.value;h.comments.forEach(function(N){N.style.fontSize=U+"px"})}),navigator.userAgent.indexOf("Firefox")>-1)for(var B=0;B<x.querySelectorAll("input").length;B++)x.querySelectorAll("input")[B].style.marginTop="10px"}})}};s.default={name:"s_danmu",method:e},k.exports=s.default},function(k,s,l){(function(r){var S,T,u,C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};(function(g,e){C(s)=="object"&&C(r)=="object"?r.exports=e():(T=[],S=e,u=typeof S=="function"?S.apply(s,T):S,u!==void 0&&(r.exports=u))})(window,function(){return function(g){var e={};function t(c){if(e[c])return e[c].exports;var a=e[c]={i:c,l:!1,exports:{}};return g[c].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=g,t.c=e,t.d=function(c,a,i){t.o(c,a)||Object.defineProperty(c,a,{enumerable:!0,get:i})},t.r=function(c){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},t.t=function(c,a){if(1&a&&(c=t(c)),8&a||4&a&&(typeof c=="undefined"?"undefined":C(c))=="object"&&c&&c.__esModule)return c;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:c}),2&a&&typeof c!="string")for(var f in c)t.d(i,f,function(v){return c[v]}.bind(null,f));return i},t.n=function(c){var a=c&&c.__esModule?function(){return c.default}:function(){return c};return t.d(a,"a",a),a},t.o=function(c,a){return Object.prototype.hasOwnProperty.call(c,a)},t.p="",t(t.s=4)}([function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c={createDom:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",x=document.createElement(i);return x.className=b,x.innerHTML=f,Object.keys(v).forEach(function(_){var o=_,h=v[_];i==="video"||i==="audio"?h&&x.setAttribute(o,h):x.setAttribute(o,h)}),x},hasClass:function(i,f){return i.classList?Array.prototype.some.call(i.classList,function(v){return v===f}):!!i.className.match(new RegExp("(\\s|^)"+f+"(\\s|$)"))},addClass:function(i,f){i.classList?f.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(v){v&&i.classList.add(v)}):c.hasClass(i,f)||(i.className+=" "+f)},removeClass:function(i,f){i.classList?f.split(/\s+/g).forEach(function(v){i.classList.remove(v)}):c.hasClass(i,f)&&f.split(/\s+/g).forEach(function(v){var b=new RegExp("(\\s|^)"+v+"(\\s|$)");i.className=i.className.replace(b," ")})},toggleClass:function(i,f){f.split(/\s+/g).forEach(function(v){c.hasClass(i,v)?c.removeClass(i,v):c.addClass(i,v)})},findDom:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,f=arguments[1],v=void 0;try{v=i.querySelector(f)}catch{f.startsWith("#")&&(v=i.getElementById(f.slice(1)))}return v},deepCopy:function(i,f){if(c.typeOf(f)==="Object"&&c.typeOf(i)==="Object")return Object.keys(f).forEach(function(v){c.typeOf(f[v])!=="Object"||f[v]instanceof Node?c.typeOf(f[v])==="Array"?i[v]=c.typeOf(i[v])==="Array"?i[v].concat(f[v]):f[v]:i[v]=f[v]:i[v]?c.deepCopy(i[v],f[v]):i[v]=f[v]}),i},typeOf:function(i){return Object.prototype.toString.call(i).match(/([^\s.*]+)(?=]$)/g)[0]},copyDom:function(i){if(i&&i.nodeType===1){var f=document.createElement(i.tagName);return Array.prototype.forEach.call(i.attributes,function(v){f.setAttribute(v.name,v.value)}),i.innerHTML&&(f.innerHTML=i.innerHTML),f}return""},formatTime:function(i){var f=Math.floor(i);return 1e3*f+(i-f)},offInDestroy:function(i,f,v,b){i.once(b,function x(){i.off(f,v),i.off(b,x)})},on:function(i,f,v,b){b?(i.on(f,v),c.offInDestroy(i,f,v,b)):i.on(f,function x(_){v(_),i.off(f,x)})},style:function(i,f,v){var b=i.style;try{b[f]=v}catch{b.setProperty(f,v)}}};e.default=c,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c,a=function(){function b(x,_){for(var o=0;o<_.length;o++){var h=_[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}return function(x,_,o){return _&&b(x.prototype,_),o&&b(x,o),x}}(),i=t(26),f=(c=i)&&c.__esModule?c:{default:c},v=function(){function b(){(function(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")})(this,b)}return a(b,[{key:"setLogger",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";this.logger=new f.default(_+".js")}}]),b}();e.default=v,g.exports=e.default},function(g,e,t){var c=t(19)();g.exports=function(a){return a!==c&&a!==null}},function(g,e,t){g.exports=function(c){return c!=null}},function(g,e,t){g.exports=t(5)},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c,a=t(6),i=(c=a)&&c.__esModule?c:{default:c};t(34),e.default=i.default,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function O(F,L){for(var E=0;E<L.length;E++){var D=L[E];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(F,D.key,D)}}return function(F,L,E){return L&&O(F.prototype,L),E&&O(F,E),F}}(),a=o(t(7)),i=o(t(1)),f=o(t(27)),v=o(t(31)),b=o(t(0)),x=t(32),_=t(33);function o(O){return O&&O.__esModule?O:{default:O}}function h(O,F){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!F||(typeof F=="undefined"?"undefined":C(F))!="object"&&typeof F!="function"?O:F}var p=function(O){function F(L){(function(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")})(this,F);var E=h(this,(F.__proto__||Object.getPrototypeOf(F)).call(this));E.setLogger("danmu"),E.logger&&E.logger.info("danmu.js version: "+x.version);var D=E;if(D.config=b.default.deepCopy({overlap:!1,area:{start:0,end:1},live:!1,comments:[],direction:"r2l",needResizeObserver:!1},L),D.hideArr=[],D.domObj=new v.default,(0,a.default)(D),D.config.comments.forEach(function(P){P.duration=P.duration?P.duration:5e3,P.mode||(P.mode="scroll")}),!D.config.container||D.config.container.nodeType!==1)return D.emit("error","container id can't be empty"),h(E,!1);if(D.container=D.config.container,D.config.containerStyle){var m=D.config.containerStyle;Object.keys(m).forEach(function(P){D.container.style[P]=m[P]})}return D.live=D.config.live,D.player=D.config.player,D.direction=D.config.direction,b.default.addClass(D.container,"danmu"),D.bulletBtn=new f.default(D),D.isReady=!0,D.emit("ready"),E.logger&&E.logger.info("ready"),E.addResizeObserver(),E}return function(L,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof E=="undefined"?"undefined":C(E)));L.prototype=Object.create(E&&E.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(L,E):L.__proto__=E)}(F,O),c(F,[{key:"addResizeObserver",value:function(){var E=this;this.config.needResizeObserver&&(0,_.addObserver)(this.container,function(){E.logger&&E.logger.info("needResizeObserver"),E.resize()})}},{key:"start",value:function(){this.logger&&this.logger.info("start"),this.bulletBtn.main.start()}},{key:"pause",value:function(){this.logger&&this.logger.info("pause"),this.bulletBtn.main.pause()}},{key:"play",value:function(){this.logger&&this.logger.info("play"),this.bulletBtn.main.play()}},{key:"stop",value:function(){this.logger&&this.logger.info("stop"),this.bulletBtn.main.stop()}},{key:"clear",value:function(){this.logger&&this.logger.info("clear"),this.bulletBtn.main.clear()}},{key:"destroy",value:function(){for(var E in(0,_.unObserver)(this.container),this.logger&&this.logger.info("destroy"),this.stop(),this.bulletBtn.destroy(),this.domObj.destroy(),this)delete this[E];this.emit("destroy")}},{key:"sendComment",value:function(E){this.logger&&this.logger.info("sendComment: "+(E.txt||"[DOM Element]")),E.duration||(E.duration=15e3),E&&E.id&&E.duration&&(E.el||E.txt)&&(E.duration=E.duration?E.duration:5e3,E.style||(E.style={opacity:void 0,fontSize:void 0}),E.style&&(this.opacity&&this.opacity!==E.style.opacity&&(E.style.opacity=this.opacity),this.fontSize&&this.fontSize!==E.style.fontSize&&(E.style.fontSize=this.fontSize),this.like&&(E.like=E.like?E.like:this.like)),E.prior||E.realTime?(this.bulletBtn.main.data.unshift(E),E.realTime&&(this.bulletBtn.main.readData(),this.bulletBtn.main.dataHandle())):this.bulletBtn.main.data.push(E))}},{key:"setCommentID",value:function(E,D){var m=this;this.logger&&this.logger.info("setCommentID: oldID "+E+" newID "+D);var P=this.container.getBoundingClientRect();E&&D&&(this.bulletBtn.main.data.some(function(z){return z.id===E&&(z.id=D,!0)}),this.bulletBtn.main.queue.some(function(z){return z.id===E&&(z.id=D,z.pauseMove(P),m.bulletBtn.main.status!=="paused"&&z.startMove(P),!0)}))}},{key:"setCommentDuration",value:function(E,D){var m=this;this.logger&&this.logger.info("setCommentDuration: id "+E+" duration "+D);var P=this.container.getBoundingClientRect();E&&D&&(D=D||5e3,this.bulletBtn.main.data.some(function(z){return z.id===E&&(z.duration=D,!0)}),this.bulletBtn.main.queue.some(function(z){return z.id===E&&(z.duration=D,z.pauseMove(P),m.bulletBtn.main.status!=="paused"&&z.startMove(P),!0)}))}},{key:"setCommentLike",value:function(E,D){this.logger&&this.logger.info("setCommentLike: id "+E+" like "+D);var m=this.container.getBoundingClientRect();this.like=D,E&&D&&(this.bulletBtn.main.data.some(function(P){return P.id===E&&(P.like=D,!0)}),this.bulletBtn.main.queue.some(function(P){return P.id===E&&(P.pauseMove(m),P.setLikeDom(D.el,D.style),P.danmu.bulletBtn.main.status!=="paused"&&P.startMove(m),!0)}))}},{key:"restartComment",value:function(E){this.logger&&this.logger.info("restartComment: id "+E),this.mouseControl=!1;var D=this.container.getBoundingClientRect();E&&this.bulletBtn.main.queue.some(function(m){return m.id===E&&(m.danmu.bulletBtn.main.status!=="paused"?m.startMove(D,!0):m.status="paused",!0)})}},{key:"freezeComment",value:function(E){this.logger&&this.logger.info("freezeComment: id "+E),this.mouseControl=!0;var D=this.container.getBoundingClientRect();E&&this.bulletBtn.main.queue.some(function(m){return m.id===E&&(m.status="forcedPause",m.pauseMove(D),m.el&&m.el.style&&b.default.style(m.el,"zIndex",10),!0)})}},{key:"removeComment",value:function(E){this.logger&&this.logger.info("removeComment: id "+E),E&&(this.bulletBtn.main.queue.some(function(D){return D.id===E&&(D.remove(),!0)}),this.bulletBtn.main.data=this.bulletBtn.main.data.filter(function(D){return D.id!==E}))}},{key:"updateComments",value:function(E){var D=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];D&&(this.bulletBtn.main.data=[]),this.bulletBtn.main.data=this.bulletBtn.main.data.concat(E)}},{key:"setAllDuration",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll",D=arguments[1],m=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.logger&&this.logger.info("setAllDuration: mode "+E+" duration "+D+" force "+m);var P=this.container.getBoundingClientRect();D&&(D=D||5e3,m&&(this.bulletBtn.main.forceDuration=D),this.bulletBtn.main.data.forEach(function(z){E===z.mode&&(z.duration=D)}),this.bulletBtn.main.queue.forEach(function(z){E===z.mode&&(z.duration=D,z.pauseMove(P),z.danmu.bulletBtn.main.status!=="paused"&&z.startMove(P))}))}},{key:"setOpacity",value:function(E){this.logger&&this.logger.info("setOpacity: opacity "+E),this.container.style.opacity=E}},{key:"setFontSize",value:function(E,D){var m=this;this.logger&&this.logger.info("setFontSize: size "+E+" channelSize "+D),this.fontSize=E+"px",E&&(this.bulletBtn.main.data.forEach(function(P){P.style&&(P.style.fontSize=m.fontSize)}),this.bulletBtn.main.queue.forEach(function(P){P.options.style||(P.options.style={}),P.options.style.fontSize=m.fontSize,P.setFontSize(m.fontSize),D&&(P.top=P.channel_id[0]*D,P.topInit())})),D&&(this.config.channelSize=D,this.bulletBtn.main.channel.resize(!0))}},{key:"setArea",value:function(E){this.logger&&this.logger.info("setArea: area "+E),this.config.area=E,this.bulletBtn.main.channel.resize(!0)}},{key:"hide",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";this.logger&&this.logger.info("hide: mode "+E),this.hideArr.indexOf(E)<0&&this.hideArr.push(E);var D=this.bulletBtn.main.queue.filter(function(m){return E===m.mode||E==="color"&&m.color});D.forEach(function(m){return m.remove()})}},{key:"show",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"scroll";this.logger&&this.logger.info("show: mode "+E);var D=this.hideArr.indexOf(E);D>-1&&this.hideArr.splice(D,1)}},{key:"setDirection",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"r2l";this.logger&&this.logger.info("setDirection: direction "+E),this.emit("changeDirection",E)}},{key:"resize",value:function(){this.logger&&this.logger.info("resize"),this.emit("channel_resize")}}]),F}(i.default);e.default=p,g.exports=e.default},function(g,e,t){var c,a,i,f,v,b,x,_=t(8),o=t(25),h=Function.prototype.apply,p=Function.prototype.call,O=Object.create,F=Object.defineProperty,L=Object.defineProperties,E=Object.prototype.hasOwnProperty,D={configurable:!0,enumerable:!1,writable:!0};a=function(P,z){var H,K;return o(z),K=this,c.call(this,P,H=function(){i.call(K,P,H),h.call(z,this,arguments)}),H.__eeOnceListener__=z,this},v={on:c=function(P,z){var H;return o(z),E.call(this,"__ee__")?H=this.__ee__:(H=D.value=O(null),F(this,"__ee__",D),D.value=null),H[P]?C(H[P])=="object"?H[P].push(z):H[P]=[H[P],z]:H[P]=z,this},once:a,off:i=function(P,z){var H,K,A,M;if(o(z),!E.call(this,"__ee__"))return this;if(!(H=this.__ee__)[P])return this;if(C(K=H[P])=="object")for(M=0;A=K[M];++M)A!==z&&A.__eeOnceListener__!==z||(K.length===2?H[P]=K[M?0:1]:K.splice(M,1));else K!==z&&K.__eeOnceListener__!==z||delete H[P];return this},emit:f=function(P){var z,H,K,A,M;if(E.call(this,"__ee__")&&(A=this.__ee__[P]))if((typeof A=="undefined"?"undefined":C(A))=="object"){for(H=arguments.length,M=new Array(H-1),z=1;z<H;++z)M[z-1]=arguments[z];for(A=A.slice(),z=0;K=A[z];++z)h.call(K,this,M)}else switch(arguments.length){case 1:p.call(A,this);break;case 2:p.call(A,this,arguments[1]);break;case 3:p.call(A,this,arguments[1],arguments[2]);break;default:for(H=arguments.length,M=new Array(H-1),z=1;z<H;++z)M[z-1]=arguments[z];h.call(A,this,M)}}},b={on:_(c),once:_(a),off:_(i),emit:_(f)},x=L({},b),g.exports=e=function(P){return P==null?O(x):L(Object(P),b)},e.methods=v},function(g,e,t){var c=t(3),a=t(9),i=t(13),f=t(21),v=t(22);(g.exports=function(b,x){var _,o,h,p,O;return arguments.length<2||typeof b!="string"?(p=x,x=b,b=null):p=arguments[2],c(b)?(_=v.call(b,"c"),o=v.call(b,"e"),h=v.call(b,"w")):(_=h=!0,o=!1),O={value:x,configurable:_,enumerable:o,writable:h},p?i(f(p),O):O}).gs=function(b,x,_){var o,h,p,O;return typeof b!="string"?(p=_,_=x,x=b,b=null):p=arguments[3],c(x)?a(x)?c(_)?a(_)||(p=_,_=void 0):_=void 0:(p=x,x=_=void 0):x=void 0,c(b)?(o=v.call(b,"c"),h=v.call(b,"e")):(o=!0,h=!1),O={get:x,set:_,configurable:o,enumerable:h},p?i(f(p),O):O}},function(g,e,t){var c=t(10),a=/^\s*class[\s{/}]/,i=Function.prototype.toString;g.exports=function(f){return!!c(f)&&!a.test(i.call(f))}},function(g,e,t){var c=t(11);g.exports=function(a){if(typeof a!="function"||!hasOwnProperty.call(a,"length"))return!1;try{if(typeof a.length!="number"||typeof a.call!="function"||typeof a.apply!="function")return!1}catch{return!1}return!c(a)}},function(g,e,t){var c=t(12);g.exports=function(a){if(!c(a))return!1;try{return!!a.constructor&&a.constructor.prototype===a}catch{return!1}}},function(g,e,t){var c=t(3),a={object:!0,function:!0,undefined:!0};g.exports=function(i){return!!c(i)&&hasOwnProperty.call(a,typeof i=="undefined"?"undefined":C(i))}},function(g,e,t){g.exports=t(14)()?Object.assign:t(15)},function(g,e,t){g.exports=function(){var c,a=Object.assign;return typeof a=="function"&&(a(c={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),c.foo+c.bar+c.trzy==="razdwatrzy")}},function(g,e,t){var c=t(16),a=t(20),i=Math.max;g.exports=function(f,v){var b,x,_,o=i(arguments.length,2);for(f=Object(a(f)),_=function(p){try{f[p]=v[p]}catch(O){b||(b=O)}},x=1;x<o;++x)c(v=arguments[x]).forEach(_);if(b!==void 0)throw b;return f}},function(g,e,t){g.exports=t(17)()?Object.keys:t(18)},function(g,e,t){g.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},function(g,e,t){var c=t(2),a=Object.keys;g.exports=function(i){return a(c(i)?Object(i):i)}},function(g,e,t){g.exports=function(){}},function(g,e,t){var c=t(2);g.exports=function(a){if(!c(a))throw new TypeError("Cannot use null or undefined");return a}},function(g,e,t){var c=t(2),a=Array.prototype.forEach,i=Object.create,f=function(b,x){var _;for(_ in b)x[_]=b[_]};g.exports=function(v){var b=i(null);return a.call(arguments,function(x){c(x)&&f(Object(x),b)}),b}},function(g,e,t){g.exports=t(23)()?String.prototype.contains:t(24)},function(g,e,t){var c="razdwatrzy";g.exports=function(){return typeof c.contains=="function"&&c.contains("dwa")===!0&&c.contains("foo")===!1}},function(g,e,t){var c=String.prototype.indexOf;g.exports=function(a){return c.call(this,a,arguments[1])>-1}},function(g,e,t){g.exports=function(c){if(typeof c!="function")throw new TypeError(c+" is not a function");return c}},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function f(v,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(v,_.key,_)}}return function(v,b,x){return b&&f(v.prototype,b),x&&f(v,x),v}}(),a=typeof window!="undefined"&&window.location.href.indexOf("danmu-debug")>-1,i=function(){function f(v){(function(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")})(this,f),this.constructorName=v||""}return c(f,[{key:"info",value:function(b){for(var x,_=arguments.length,o=Array(_>1?_-1:0),h=1;h<_;h++)o[h-1]=arguments[h];a&&(x=console).log.apply(x,["[Danmu Log]["+this.constructorName+"]",b].concat(o))}}]),f}();e.default=i,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function x(_,o){for(var h=0;h<o.length;h++){var p=o[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(_,p.key,p)}}return function(_,o,h){return o&&x(_.prototype,o),h&&x(_,h),_}}(),a=v(t(1)),i=v(t(0)),f=v(t(28));function v(x){return x&&x.__esModule?x:{default:x}}var b=function(x){function _(o){(function(p,O){if(!(p instanceof O))throw new TypeError("Cannot call a class as a function")})(this,_);var h=function(p,O){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||(typeof O=="undefined"?"undefined":C(O))!="object"&&typeof O!="function"?p:O}(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return h.setLogger("control"),h.danmu=o,h.main=new f.default(o),o.config.defaultOff||h.main.start(),h}return function(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof h=="undefined"?"undefined":C(h)));o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(o,h):o.__proto__=h)}(_,x),c(_,[{key:"createSwitch",value:function(){var h=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.logger&&this.logger.info("createSwitch"),this.switchBtn=i.default.createDom("dk-switch",'<span class="txt">\u5F39</span>',{},"danmu-switch "+(h?"danmu-switch-active":"")),this.switchBtn}},{key:"destroy",value:function(){for(var h in this.logger&&this.logger.info("destroy"),this.main.destroy(),this)delete this[h]}}]),_}(a.default);e.default=b,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function _(o,h){for(var p=0;p<h.length;p++){var O=h[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(o,O.key,O)}}return function(o,h,p){return h&&_(o.prototype,h),p&&_(o,p),o}}(),a=b(t(1)),i=b(t(29)),f=b(t(30)),v=b(t(0));function b(_){return _&&_.__esModule?_:{default:_}}var x=function(_){function o(h){(function(F,L){if(!(F instanceof L))throw new TypeError("Cannot call a class as a function")})(this,o);var p=function(F,L){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||(typeof L=="undefined"?"undefined":C(L))!="object"&&typeof L!="function"?F:L}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));p.setLogger("main"),p.danmu=h,p.container=h.container,p.channel=new i.default(h),p.data=[].concat(h.config.comments),p.playedData=[],p.queue=[],p.timer=null,p.retryTimer=null,p.retryStatus="normal",p.interval=h.config.interval||2e3,p.status="idle",v.default.on(h,"bullet_remove",p.updateQueue.bind(p),"destroy");var O=p;return v.default.on(p.danmu,"changeDirection",function(F){O.danmu.direction=F},"destroy"),p.nums=0,p}return function(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof p=="undefined"?"undefined":C(p)));h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}(o,_),c(o,[{key:"destroy",value:function(){for(var p in this.logger&&this.logger.info("destroy"),clearTimeout(this.dataHandleTimer),this.channel.destroy(),this.data=[],this)delete this[p]}},{key:"updateQueue",value:function(p){this.logger&&this.logger.info("updateQueue");var O=this;O.queue.some(function(F,L){return F.id===p.bullet.id&&(O.queue.splice(L,1),!0)}),O.data.some(function(F,L){return F.id===p.bullet.id&&(F.hasAttached=!1,!0)})}},{key:"init",value:function(p,O){O.logger&&O.logger.info("init"),O||(O=this),O.retryStatus="normal",O.data.sort(function(F,L){return F.start-L.start}),O.retryTimer||function F(){O.status==="closed"&&O.retryStatus==="stop"||(O.status==="playing"&&(O.readData(),O.dataHandle()),O.retryStatus==="stop"&&O.status!=="paused"||(O.dataHandleTimer=setTimeout(function(){F()},O.interval-1e3)))}()}},{key:"start",value:function(){this.logger&&this.logger.info("start"),this.status="playing",this.queue=[],this.container.innerHTML="",this.channel.resetWithCb(this.init,this)}},{key:"stop",value:function(){this.logger&&this.logger.info("stop"),this.status="closed",this.retryTimer=null,this.retryStatus="stop",this.channel.reset(),this.queue=[],this.container.innerHTML=""}},{key:"clear",value:function(){this.logger&&this.logger.info("clear"),this.channel.reset(),this.data=[],this.queue=[],this.container.innerHTML=""}},{key:"play",value:function(){var p=this;this.logger&&this.logger.info("play"),this.status="playing";var O=this.channel.channels,F=this.danmu.container.getBoundingClientRect();O&&O.length>0&&["scroll","top","bottom"].forEach(function(L){p.queue.forEach(function(D){D.startMove(F),D.resized=!0});for(var E=0;E<O.length;E++)O[E].queue[L].forEach(function(D){D.resized=!1})})}},{key:"pause",value:function(){this.logger&&this.logger.info("pause"),this.status="paused";var p=this.channel.channels,O=this.danmu.container.getBoundingClientRect();p&&p.length>0&&this.queue.forEach(function(F){F.pauseMove(O)})}},{key:"dataHandle",value:function(){var p=this;this.status!=="paused"&&this.status!=="closed"&&p.queue.length&&p.queue.forEach(function(O){O.status==="waiting"&&O.startMove(p.channel.containerPos)})}},{key:"readData",value:function(){var p=this,O=this.danmu;if(O.isReady){var F=0;O.player&&O.player.currentTime&&(F=v.default.formatTime(O.player.currentTime));var L=void 0,E=p.interval,D=p.channel,m=void 0;O.player?(m=p.data.filter(function(P){return!P.start&&p.danmu.hideArr.indexOf(P.mode)<0&&(!P.color||p.danmu.hideArr.indexOf("color")<0)&&(P.start=F),p.danmu.hideArr.indexOf(P.mode)<0&&(!P.color||p.danmu.hideArr.indexOf("color")<0)&&P.start-E<=F&&F<=P.start+E}),O.live&&(p.data=[])):(m=p.data.splice(0,1)).length===0&&(m=p.playedData.splice(0,1)),m.length>0&&m.forEach(function(P){if(p.forceDuration&&p.forceDuration!=P.duration&&(P.duration=p.forceDuration),L=new f.default(O,P),P.hasAttached){for(var z in L.detach(),L)delete L[z];L=null,P.hasAttached=!1,P.noDiscard&&(P.prior?p.data.unshift(P):p.data.push(P))}else if(L.attach(),P.hasAttached=!0,D.addBullet(L).result)p.queue.push(L),p.nums++,L.topInit();else{for(var H in L.detach(),L)delete L[H];L=null,P.hasAttached=!1,P.noDiscard&&(P.prior?p.data.unshift(P):p.data.push(P))}})}}}]),o}(a.default);e.default=x,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function b(x,_){for(var o=0;o<_.length;o++){var h=_[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}return function(x,_,o){return _&&b(x.prototype,_),o&&b(x,o),x}}(),a=f(t(1)),i=f(t(0));function f(b){return b&&b.__esModule?b:{default:b}}var v=function(b){function x(_){(function(p,O){if(!(p instanceof O))throw new TypeError("Cannot call a class as a function")})(this,x);var o=function(p,O){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||(typeof O=="undefined"?"undefined":C(O))!="object"&&typeof O!="function"?p:O}(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));o.setLogger("channel"),o.danmu=_,o.reset(!0);var h=o;return i.default.on(o.danmu,"bullet_remove",function(p){h.removeBullet(p.bullet)},"destroy"),o.direction=_.direction,i.default.on(o.danmu,"changeDirection",function(p){h.direction=p},"destroy"),o.containerPos=o.danmu.container.getBoundingClientRect(),o.containerWidth=o.containerPos.width,o.containerHeight=o.containerPos.height,o.containerLeft=o.containerPos.left,o.containerRight=o.containerPos.right,i.default.on(o.danmu,"channel_resize",function(){h.containerPos=h.danmu.container.getBoundingClientRect(),h.resizing||(h.containerWidth=h.containerPos.width,h.containerHeight=h.containerPos.height,h.containerLeft=h.containerPos.left,h.containerRight=h.containerPos.right,h.resize(!0))},"destroy"),o}return function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof o=="undefined"?"undefined":C(o)));_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(_,o):_.__proto__=o)}(x,b),c(x,[{key:"destroy",value:function(){for(var o in this.logger&&this.logger.info("destroy"),clearTimeout(this.resizeTimer),this.channels=[],this)delete this[o]}},{key:"resize",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logger&&this.logger.info("resize");var h=this.danmu.container,p=this;p.resizing||(p.resizing=!0,this.resizeTimer=setTimeout(function(){p.danmu.bulletBtn.main.data&&p.danmu.bulletBtn.main.data.forEach(function(j){j.bookChannelId&&(delete j.bookChannelId,p.logger&&p.logger.info("resize\u5BFC\u81F4"+j.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u9884\u5B9A\u53D6\u6D88"))}),p.logger&&p.logger.info("resize\u5BFC\u81F4\u6240\u6709\u8F68\u9053\u6062\u590D\u6B63\u5E38\u4F7F\u7528");var O=h.getBoundingClientRect();p.width=O.width,p.height=O.height,p.danmu.config.area&&p.danmu.config.area.start>=0&&p.danmu.config.area.end>=p.danmu.config.area.start&&(p.direction==="b2t"?p.width=p.width*(p.danmu.config.area.end-p.danmu.config.area.start):p.height=p.height*(p.danmu.config.area.end-p.danmu.config.area.start)),p.container=h;var F=p.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12),L=void 0;L=p.direction==="b2t"?Math.floor(p.width/F):Math.floor(p.height/F);for(var E=[],D=0;D<L;D++)E[D]={id:D,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(p.channels&&p.channels.length<=E.length){for(var m=function(U){E[U]={id:U,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach(function(N){p.channels[U].queue[N].forEach(function(V){V.el&&(E[U].queue[N].push(V),V.resized||(V.pauseMove(p.containerPos,o),V.danmu.bulletBtn.main.status!=="paused"&&V.startMove(p.containerPos),V.resized=!0))})}),p.channels[U].queue.bottom.forEach(function(N){if(N.el){if(E[U+E.length-p.channels.length].queue.bottom.push(N),N.channel_id[0]+N.channel_id[1]-1===U){var V=[].concat(N.channel_id);N.channel_id=[V[0]-p.channels.length+E.length,V[1]],N.top=N.channel_id[0]*F,p.danmu.config.area&&p.danmu.config.area.start&&(N.top+=p.containerHeight*p.danmu.config.area.start),N.topInit()}N.resized||(N.pauseMove(p.containerPos,o),N.danmu.bulletBtn.main.status!=="paused"&&N.startMove(p.containerPos),N.resized=!0)}})},P=0;P<p.channels.length;P++)m(P);for(var z=function(U){["scroll","top","bottom"].forEach(function(N){E[U].queue[N].forEach(function(V){V.resized=!1})})},H=0;H<E.length;H++)z(H);p.channels=E,p.direction==="b2t"?p.channelWidth=F:p.channelHeight=F}else if(p.channels&&p.channels.length>E.length){for(var K=function(U){E[U]={id:U,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach(function(N){if(!(N==="top"&&U>Math.floor(E.length/2))){if(!(N==="bottom"&&U<=Math.floor(E.length/2))){var V=N==="bottom"?U-E.length+p.channels.length:U;p.channels[V].queue[N].forEach(function(X,G){if(X.el){if(E[U].queue[N].push(X),N==="bottom"&&X.channel_id[0]+X.channel_id[1]-1===V){var te=[].concat(X.channel_id);X.channel_id=[te[0]-p.channels.length+E.length,te[1]],X.top=X.channel_id[0]*F,p.danmu.config.area&&p.danmu.config.area.start&&(X.top+=p.containerHeight*p.danmu.config.area.start),X.topInit()}X.pauseMove(p.containerPos,o),X.danmu.bulletBtn.main.status!=="paused"&&X.startMove(p.containerPos),X.resized||(X.resized=!0)}p.channels[V].queue[N].splice(G,1)})}}})},A=0;A<E.length;A++)K(A);for(var M=function(U){["scroll","top","bottom"].forEach(function(N){E[U].queue[N].forEach(function(V){V.resized=!1})})},B=0;B<E.length;B++)M(B);p.channels=E,p.direction==="b2t"?p.channelWidth=F:p.channelHeight=F}p.resizing=!1},10))}},{key:"addBullet",value:function(o){var h=this,p=this.danmu,O=this.channels,F=void 0,L=void 0,E=void 0;if(h.direction==="b2t"?(L=this.channelWidth,E=Math.ceil(o.width/L)):(F=this.channelHeight,E=Math.ceil(o.height/F)),E>O.length)return{result:!1,message:"exceed channels.length, occupy="+E+",channelsSize="+O.length};for(var D=!0,m=void 0,P=-1,z=0,H=O.length;z<H;z++)if(O[z].queue[o.mode].some(function(ve){return ve.id===o.id}))return{result:!1,message:"exsited, channelOrder="+z+",danmu_id="+o.id};if(o.mode==="scroll")for(var K=0,A=O.length-E;K<=A;K++){D=!0;for(var M=K;M<K+E;M++){if((m=O[M]).operating.scroll){D=!1;break}if(m.bookId.scroll&&m.bookId.scroll!==o.id){D=!1;break}m.operating.scroll=!0;var B=m.queue.scroll[0];if(B){var j=B.el.getBoundingClientRect();if(h.direction==="b2t"){if(j.bottom>h.containerPos.bottom){D=!1,m.operating.scroll=!1;break}}else if(j.right>h.containerPos.right){D=!1,m.operating.scroll=!1;break}var U,N=void 0,V=void 0,X=void 0,G=void 0;if(h.direction==="b2t"?(V=(j.top-h.containerPos.top+j.height)/(N=(h.containerPos.height+j.height)/B.duration),X=h.containerPos.height,G=(h.containerPos.height+o.height)/o.duration):(V=(j.left-h.containerPos.left+j.width)/(N=(h.containerPos.width+j.width)/B.duration),X=h.containerPos.width,G=(h.containerPos.width+o.width)/o.duration),U=X/G,p.config.bOffset||(p.config.bOffset=0),N<G&&V+p.config.bOffset>U){D=!1,m.operating.scroll=!1;break}}m.operating.scroll=!1}if(D){P=K;break}}else if(o.mode==="top")for(var te=0,ue=O.length-E;te<=ue;te++){D=!0;for(var fe=te;fe<te+E;fe++){if(fe>Math.floor(O.length/2)){D=!1;break}if((m=O[fe]).operating[o.mode]){D=!1;break}if((m.bookId[o.mode]||o.prior)&&m.bookId[o.mode]!==o.id){D=!1;break}if(m.operating[o.mode]=!0,m.queue[o.mode].length>0){D=!1,m.operating[o.mode]=!1;break}m.operating[o.mode]=!1}if(D){P=te;break}}else if(o.mode==="bottom")for(var ge=O.length-E;ge>=0;ge--){D=!0;for(var se=ge;se<ge+E;se++){if(se<=Math.floor(O.length/2)){D=!1;break}if((m=O[se]).operating[o.mode]){D=!1;break}if((m.bookId[o.mode]||o.prior)&&m.bookId[o.mode]!==o.id){D=!1;break}if(m.operating[o.mode]=!0,m.queue[o.mode].length>0){D=!1,m.operating[o.mode]=!1;break}m.operating[o.mode]=!1}if(D){P=ge;break}}if(P!==-1){for(var de=P,he=P+E;de<he;de++)(m=O[de]).operating[o.mode]=!0,m.queue[o.mode].unshift(o),o.prior&&(delete m.bookId[o.mode],h.logger&&h.logger.info(de+"\u53F7\u8F68\u9053\u6062\u590D\u6B63\u5E38\u4F7F\u7528")),m.operating[o.mode]=!1;return o.prior&&(h.logger&&h.logger.info(o.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u8FD0\u884C\u5B8C\u6BD5"),delete o.bookChannelId,p.player&&p.bulletBtn.main.data.some(function(ve){return ve.id===o.id&&(delete ve.bookChannelId,!0)})),o.channel_id=[P,E],h.direction==="b2t"?(o.top=P*L,h.danmu.config.area&&h.danmu.config.area.start&&(o.top+=h.containerWidth*h.danmu.config.area.start)):(o.top=P*F,h.danmu.config.area&&h.danmu.config.area.start&&(o.top+=h.containerHeight*h.danmu.config.area.start)),{result:o,message:"success"}}if(o.options.realTime){var ke=0,Ee=-1,ye=null;if(h.danmu.bulletBtn.main.queue.forEach(function(ve,Ye){!ve.prior&&!ve.options.realTime&&ve.el&&ve.el.getBoundingClientRect().left>h.containerPos.right&&ve.start>=ke&&(ke=ve.start,Ee=Ye,ye=ve)}),ye){ye.remove(),h.removeBullet(ye),h.danmu.bulletBtn.main.queue.splice(Ee,1),o.channel_id=ye.channel_id;for(var Te=ye.channel_id[0],pe=ye.channel_id[0]+ye.channel_id[1];Te<pe;Te++)(m=O[Te]).operating[o.mode]=!0,m.queue[o.mode].unshift(o),o.prior&&delete m.bookId[o.mode],m.operating[o.mode]=!1;return o.top=ye.top,h.danmu.config.area&&h.danmu.config.area.start&&(o.top+=h.containerHeight*h.danmu.config.area.start),{result:o,message:"success"}}}if(o.prior)if(o.bookChannelId||h.danmu.live)p.player&&p.bulletBtn.main.data.some(function(ve){return ve.id===o.id&&(h.logger&&h.logger.info(o.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u5C06\u4E8E2\u79D2\u540E\u518D\u6B21\u8BF7\u6C42\u6CE8\u518C"),ve.start+=2e3,!0)});else{P=-1;for(var ie=0,Ce=O.length-E;ie<=Ce;ie++){D=!0;for(var me=ie;me<ie+E;me++)if(O[me].bookId[o.mode]){D=!1;break}if(D){P=ie;break}}if(P!==-1){for(var ne=P;ne<P+E;ne++)O[ne].bookId[o.mode]=o.id,h.logger&&h.logger.info(ne+"\u53F7\u8F68\u9053\u88AB"+o.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u9884\u5B9A");p.player&&p.bulletBtn.main.data.some(function(ve){return ve.id===o.id&&(h.logger&&h.logger.info(o.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u5C06\u4E8E2\u79D2\u540E\u518D\u6B21\u8BF7\u6C42\u6CE8\u518C"),ve.start+=2e3,ve.bookChannelId=[P,E],h.logger&&h.logger.info(o.id+"\u53F7\u4F18\u5148\u5F39\u5E55\u9884\u5B9A\u4E86"+P+"~"+(P+E-1)+"\u53F7\u8F68\u9053"),!0)})}}return{result:!1,message:"no surplus will right"}}},{key:"removeBullet",value:function(o){this.logger&&this.logger.info("removeBullet "+(o.options.txt||"[DOM Element]"));for(var h=this.channels,p=o.channel_id,O=void 0,F=p[0],L=p[0]+p[1];F<L;F++)if(O=h[F]){O.operating[o.mode]=!0;var E=-1;O.queue[o.mode].some(function(D,m){return D.id===o.id&&(E=m,!0)}),E>-1&&O.queue[o.mode].splice(E,1),O.operating[o.mode]=!1}o.options.loop&&this.danmu.bulletBtn.main.playedData.push(o.options)}},{key:"resetArea",value:function(){this.logger&&this.logger.info("resetArea");var o=this.danmu.container,h=this,p=o.getBoundingClientRect();h.width=p.width,h.height=p.height,h.danmu.config.area&&h.danmu.config.area.start>=0&&h.danmu.config.area.end>=h.danmu.config.area.start&&(h.direction==="b2t"?h.width=h.width*(h.danmu.config.area.end-h.danmu.config.area.start):h.height=h.height*(h.danmu.config.area.end-h.danmu.config.area.start)),h.container=o;var O=h.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12),F=void 0;F=h.direction==="b2t"?Math.floor(h.width/O):Math.floor(h.height/O);for(var L=[],E=0;E<F;E++)L[E]={id:E,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(h.channels&&h.channels.length<=L.length){for(var D=function(j){L[j]={id:j,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach(function(U){h.channels[j].queue[U].forEach(function(N){N.el&&(L[j].queue[U].push(N),N.resized||(N.pauseMove(h.containerPos,!1),N.startMove(h.containerPos),N.resized=!0))})}),h.channels[j].queue.bottom.forEach(function(U){if(U.el){if(L[j+L.length-h.channels.length].queue.bottom.push(U),U.channel_id[0]+U.channel_id[1]-1===j){var N=[].concat(U.channel_id);U.channel_id=[N[0]-h.channels.length+L.length,N[1]],U.top=U.channel_id[0]*O,h.danmu.config.area&&h.danmu.config.area.start&&(U.top+=h.containerHeight*h.danmu.config.area.start),U.topInit()}U.resized||(U.pauseMove(h.containerPos,!1),U.startMove(h.containerPos),U.resized=!0)}})},m=0;m<h.channels.length;m++)D(m);for(var P=function(j){["scroll","top","bottom"].forEach(function(U){L[j].queue[U].forEach(function(N){N.resized=!1})})},z=0;z<L.length;z++)P(z);h.channels=L,h.direction==="b2t"?h.channelWidth=O:h.channelHeight=O}else if(h.channels&&h.channels.length>L.length){for(var H=function(j){L[j]={id:j,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach(function(U){if(!(U==="top"&&j>Math.floor(L.length/2))){if(!(U==="bottom"&&j<=Math.floor(L.length/2))){var N=U==="bottom"?j-L.length+h.channels.length:j;h.channels[N].queue[U].forEach(function(V,X){if(V.el){if(L[j].queue[U].push(V),U==="bottom"&&V.channel_id[0]+V.channel_id[1]-1===N){var G=[].concat(V.channel_id);V.channel_id=[G[0]-h.channels.length+L.length,G[1]],V.top=V.channel_id[0]*O,h.danmu.config.area&&h.danmu.config.area.start&&(V.top+=h.containerHeight*h.danmu.config.area.start),V.topInit()}V.resized||(V.pauseMove(h.containerPos,!1),V.startMove(h.containerPos),V.resized=!0)}h.channels[N].queue[U].splice(X,1)})}}})},K=0;K<L.length;K++)H(K);for(var A=function(j){["scroll","top","bottom"].forEach(function(U){L[j].queue[U].forEach(function(N){N.resized=!1})})},M=0;M<L.length;M++)A(M);h.channels=L,h.direction==="b2t"?h.channelWidth=O:h.channelHeight=O}}},{key:"reset",value:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logger&&this.logger.info("reset");var h=this.danmu.container,p=this;function O(){var F=h.getBoundingClientRect();p.width=F.width,p.height=F.height,p.danmu.config.area&&p.danmu.config.area.start>=0&&p.danmu.config.area.end>=p.danmu.config.area.start&&(p.direction==="b2t"?p.width=p.width*(p.danmu.config.area.end-p.danmu.config.area.start):p.height=p.height*(p.danmu.config.area.end-p.danmu.config.area.start)),p.container=h;var L=p.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12),E=void 0;E=p.direction==="b2t"?Math.floor(p.width/L):Math.floor(p.height/L);for(var D=[],m=0;m<E;m++)D[m]={id:m,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};p.channels=D,p.direction==="b2t"?p.channelWidth=L:p.channelHeight=L}p.danmu.bulletBtn&&p.danmu.bulletBtn.main&&p.danmu.bulletBtn.main.queue.forEach(function(F){F.pauseMove(p.containerPos),F.remove()}),p.channels&&p.channels.length>0&&["scroll","top","bottom"].forEach(function(F){for(var L=0;L<p.channels.length;L++)p.channels[L].queue[F].forEach(function(E){E.pauseMove(p.containerPos),E.remove()})}),p.danmu.bulletBtn&&p.danmu.bulletBtn.main&&p.danmu.bulletBtn.main.data&&p.danmu.bulletBtn.main.data.forEach(function(F){F.hasAttached=!1}),o?this.resetTimer=setTimeout(O,200):O()}},{key:"resetWithCb",value:function(o,h){this.logger&&this.logger.info("resetWithCb");var p=this.danmu.container,O=this;O.channels&&O.channels.length>0&&["scroll","top","bottom"].forEach(function(P){for(var z=0;z<O.channels.length;z++)O.channels[z].queue[P].forEach(function(H){H.pauseMove(O.containerPos),H.remove()})});var F=p.getBoundingClientRect();O.width=F.width,O.height=F.height,O.danmu.config.area&&O.danmu.config.area.start>=0&&O.danmu.config.area.end>=O.danmu.config.area.start&&(O.direction==="b2t"?O.width=O.width*(O.danmu.config.area.end-O.danmu.config.area.start):O.height=O.height*(O.danmu.config.area.end-O.danmu.config.area.start)),O.container=p;var L=O.danmu.config.channelSize||(/mobile/gi.test(navigator.userAgent)?10:12),E=void 0;E=O.direction==="b2t"?Math.floor(O.width/L):Math.floor(O.height/L);for(var D=[],m=0;m<E;m++)D[m]={id:m,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};O.channels=D,O.channelHeight=L,o&&o(!0,h)}}]),x}(a.default);e.default=v,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function b(x,_){for(var o=0;o<_.length;o++){var h=_[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}return function(x,_,o){return _&&b(x.prototype,_),o&&b(x,o),x}}(),a=f(t(1)),i=f(t(0));function f(b){return b&&b.__esModule?b:{default:b}}var v=function(b){function x(_,o){(function(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")})(this,x);var h=function(P,z){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!z||(typeof z=="undefined"?"undefined":C(z))!="object"&&typeof z!="function"?P:z}(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));h.setLogger("bullet"),h.danmu=_,h.options=o,h.duration=o.duration,h.moveV=o.moveV,h.id=o.id,h.container=_.container,h.start=o.start,h.prior=o.prior,h.color=o.color,h.bookChannelId=o.bookChannelId,h.direction=_.direction;var p=h;h.onChangeDirection=function(P){p.direction=P},h.danmu.on("changeDirection",h.onChangeDirection);var O=void 0;if(h.domObj=_.domObj,o.el&&o.el.nodeType===1){O=h.domObj.use();var F=i.default.copyDom(o.el);o.eventListeners&&o.eventListeners.length>0&&o.eventListeners.forEach(function(P){F.addEventListener(P.event,P.listener,P.useCapture||!1)}),O.appendChild(F)}else(O=h.domObj.use()).textContent=o.txt;if(o.style){var L=o.style;Object.keys(L).forEach(function(P){i.default.style(O,P,L[P])})}o.mode==="top"||o.mode==="bottom"?h.mode=o.mode:h.mode="scroll",h.el=O,o.like&&o.like.el&&h.setLikeDom(o.like.el,o.like.style),h.status="waiting";var E=h.container.getBoundingClientRect(),D=Math.floor(Math.random()*(E.width/10>100?200:E.width/10));o.realTime&&(D=0);var m=E.width+D+"px";return i.default.style(h.el,"left",m),h.containerPos=E,h}return function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof o=="undefined"?"undefined":C(o)));_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(_,o):_.__proto__=o)}(x,b),c(x,[{key:"attach",value:function(){if(this.container.appendChild(this.el),this.elPos=this.el.getBoundingClientRect(),this.direction==="b2t"?(this.width=this.elPos.height,this.height=this.elPos.width):(this.width=this.elPos.width,this.height=this.elPos.height),this.moveV){var o=this.containerPos;this.duration=(o.width+this.width)/this.moveV*1e3}this.danmu.config&&this.danmu.config.mouseControl&&(this.mouseoverFunWrapper=this.mouseoverFun.bind(this),this.el.addEventListener("mouseover",this.mouseoverFunWrapper,!1)),this.danmu.config&&this.danmu.config.mouseEnterControl&&(this.mouseEnterFunWrapper=this.mouseoverFun.bind(this),this.el.addEventListener("mouseenter",this.mouseEnterFunWrapper,!1))}},{key:"mouseoverFun",value:function(o){this.danmu&&this.danmu.mouseControl&&this.danmu.config.mouseControlPause||this.status==="waiting"||this.status==="end"||this.danmu&&this.danmu.emit("bullet_hover",{bullet:this,event:o})}},{key:"detach",value:function(){this.el&&(this.danmu.config&&this.danmu.config.mouseControl&&this.el.removeEventListener("mouseover",this.mouseoverFunWrapper,!1),this.danmu.config&&this.danmu.config.mouseEnterControl&&this.el.removeEventListener("mouseenter",this.mouseEnterFunWrapper,!1),this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.domObj.unuse(this.el),this.el=null),this.danmu.off("changeDirection",this.onChangeDirection)}},{key:"topInit",value:function(){if(this.logger&&this.logger.info("topInit #"+(this.options.txt||"[DOM Element]")+"#"),this.direction==="b2t"){var o=this.containerPos;i.default.style(this.el,"transformOrigin","left top"),i.default.style(this.el,"transform","translateX(-"+this.top+"px) translateY("+o.height+"px) translateZ(0px) rotate(90deg)"),i.default.style(this.el,"transition","transform 0s linear 0s")}else i.default.style(this.el,"top",this.top+"px")}},{key:"pauseMove",value:function(o){var h=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.logger&&this.logger.info("pauseMove #"+(this.options.txt||"[DOM Element]")+"#");var p=this;if(this.status!=="paused"&&(p.status!=="forcedPause"&&(this.status="paused"),clearTimeout(p.removeTimer),this.el))if(i.default.style(this.el,"willChange","auto"),this.mode==="scroll"){if(h){var O=(new Date().getTime()-p.moveTime)/1e3,F=O*this.moveV,L=0;L=p.moveMoreS-F>=0?this.direction==="b2t"?(p.moveMoreS-F)/p.moveContainerHeight*o.height:(p.moveMoreS-F)/p.moveContainerWidth*o.width:p.moveMoreS-F,this.direction==="b2t"?i.default.style(this.el,"transform","translateX(-"+this.top+"px) translateY("+L+"px) translateZ(0px) rotate(90deg)"):i.default.style(this.el,"left",L+"px")}else this.direction==="b2t"?i.default.style(this.el,"transform","translateX(-"+this.top+"px) translateY("+(this.el.getBoundingClientRect().top-o.top)+"px) translateZ(0px) rotate(90deg)"):i.default.style(this.el,"left",this.el.getBoundingClientRect().left-o.left+"px");this.direction==="b2t"||i.default.style(this.el,"transform","translateX(0px) translateY(0px) translateZ(0px)"),i.default.style(this.el,"transition","transform 0s linear 0s")}else this.pastDuration&&this.startTime?this.pastDuration=this.pastDuration+new Date().getTime()-this.startTime:this.pastDuration=1}},{key:"startMove",value:function(o,h){this.logger&&this.logger.info("startMove #"+(this.options.txt||"[DOM Element]")+"#");var p=this;if(p.hasMove||(p.danmu.emit("bullet_start",p),p.hasMove=!0),(p.status!=="forcedPause"||h)&&this.el&&this.status!=="start")if(this.status="start",i.default.style(this.el,"willChange","transform"),this.mode==="scroll")if(this.direction==="b2t"){this.moveV=(o.height+this.height)/this.duration*1e3;var O=(p.el.getBoundingClientRect().bottom-o.top)/this.moveV;i.default.style(this.el,"transition","transform "+O+"s linear 0s"),this.startMoveTimer=setTimeout(function(){p.el&&(i.default.style(p.el,"transform","translateX(-"+p.top+"px) translateY(-"+p.height+"px) translateZ(0px) rotate(90deg)"),p.moveTime=new Date().getTime(),p.moveMoreS=p.el.getBoundingClientRect().top-o.top,p.moveContainerHeight=o.height,p.removeTimer=setTimeout(D,1e3*O))},20)}else{var F=this.el.getBoundingClientRect();this.moveV=(o.width+this.width)/this.duration*1e3;var L=(F.right-o.left)/this.moveV;i.default.style(this.el,"transition","transform "+L+"s linear 0s"),this.startMoveTimer=setTimeout(function(){if(p.el){var m=p.el.getBoundingClientRect(),P=(m.right-o.left)/L;m.right>o.left&&P>p.moveV-1&&P<p.moveV+1?(i.default.style(p.el,"transform","translateX(-"+(m.right-o.left)+"px) translateY(0px) translateZ(0px)"),p.moveTime=new Date().getTime(),p.moveMoreS=m.left-o.left,p.moveContainerWidth=o.width,p.removeTimer=setTimeout(D,1e3*L)):(p.status="end",p.remove())}},0)}else{i.default.style(this.el,"left","50%"),i.default.style(this.el,"margin","0 0 0 -"+this.width/2+"px"),this.pastDuration||(this.pastDuration=1);var E=this.duration>=this.pastDuration?this.duration-this.pastDuration:0;this.removeTimer=setTimeout(D,E),this.startTime=new Date().getTime()}function D(){if(p.el)if(p.mode==="scroll"){var m=p.containerPos,P=p.el.getBoundingClientRect();p.direction==="b2t"?P&&P.bottom<=m.top+100?(p.status="end",p.remove()):(p.pauseMove(m),p.danmu.bulletBtn.main.status!=="paused"&&p.startMove(m)):P&&P.right<=m.left+100?(p.status="end",p.remove()):(p.pauseMove(m),p.danmu.bulletBtn.main.status!=="paused"&&p.startMove(m))}else p.status="end",p.remove()}}},{key:"remove",value:function(){this.logger&&this.logger.info("remove #"+(this.options.txt||"[DOM Element]")+"#"),this.removeTimer&&clearTimeout(this.removeTimer),this.startMoveTimer&&clearTimeout(this.startMoveTimer),this.el&&this.el.parentNode&&(i.default.style(this.el,"willChange","auto"),this.detach(),this.danmu.emit("bullet_remove",{bullet:this}))}},{key:"setFontSize",value:function(o){this.el&&(this.el.style.fontSize=o)}},{key:"setLikeDom",value:function(o,h){if(o&&(Object.keys(h).forEach(function(O){o.style[O]=h[O]}),o.className="danmu-like",this.el)){var p=this.el.querySelector(".danmu-like");p&&this.el.removeChild(p),this.el.innerHTML=""+this.el.innerHTML+o.outerHTML}return o}}]),x}(a.default);e.default=v,g.exports=e.default},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c,a=function(){function b(x,_){for(var o=0;o<_.length;o++){var h=_[o];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}return function(x,_,o){return _&&b(x.prototype,_),o&&b(x,o),x}}(),i=t(0),f=(c=i)&&c.__esModule?c:{default:c},v=function(){function b(x){(function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")})(this,b),x={initDOM:function(){return document.createElement("div")},initSize:10},this.init(x)}return a(b,[{key:"init",value:function(_){this.idleList=[],this.usingList=[],this._id=0,this.options=_,this._expand(_.initSize)}},{key:"use",value:function(){this.idleList.length||this._expand(1);var _=this.idleList.shift();return this.usingList.push(_),_}},{key:"unuse",value:function(_){var o=this.usingList.indexOf(_);o<0||(this.usingList.splice(o,1),_.innerHTML="",_.textcontent="",this.clearElementStyle(_),this.idleList.push(_))}},{key:"_expand",value:function(_){for(var o=0;o<_;o++)this.idleList.push(this.options.initDOM(this._id++))}},{key:"destroy",value:function(){for(var _=0;_<this.idleList.length;_++)this.idleList[_].innerHTML="",this.idleList[_].textcontent="",this.clearElementStyle(this.idleList[_]);for(var o=0;o<this.usingList.length;o++)this.usingList[o].innerHTML="",this.usingList[o].textcontent="",this.clearElementStyle(this.usingList[o]);for(var h in this)delete this[h]}},{key:"clearElementStyle",value:function(_){var o=typeof window!="undefined"?window.navigator.userAgent:null;o&&(o.indexOf("MSIE ")>-1||o.indexOf("Trident/")>-1?f.default.style(_,"transform","none"):_.setAttribute("style",""))}}]),b}();e.default=v,g.exports=e.default},function(g){g.exports=JSON.parse('{"version":"0.5.10"}')},function(g,e,t){Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function i(f,v){for(var b=0;b<v.length;b++){var x=v[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}return function(f,v,b){return v&&i(f.prototype,v),b&&i(f,b),f}}(),a=new(function(){function i(){var f=this;if(function(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}(this,i),this.__handlers=[],window.ResizeObserver)try{this.observer=new window.ResizeObserver(function(v){var b=new Date().getTime();b-f.timeStampe<200||(f.timeStampe=b,f.__trigger(v))}),this.timeStampe=new Date().getTime()}catch{}}return c(i,[{key:"addObserver",value:function(v,b){if(this.observer){this.observer&&this.observer.observe(v);for(var x=this.__handlers,_=-1,o=0;o<x.length;o++)x[o]&&v===x[o].target&&(_=o);_>-1?this.__handlers[_].handler.push(b):this.__handlers.push({target:v,handler:[b]})}}},{key:"unObserver",value:function(v){var b=-1;this.__handlers.map(function(x,_){v===x.target&&(b=_)}),this.observer&&this.observer.unobserve(v),b>-1&&this.__handlers.splice(b,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(v){for(var b=this.__handlers,x=0;x<b.length;x++)if(b[x]&&v===b[x].target){b[x].handler&&b[x].handler.map(function(_){try{_()}catch(o){console.error(o)}});break}}},{key:"__trigger",value:function(v){var b=this;v.map(function(x){b.__runHandler(x.target)})}}]),i}());e.addObserver=function(i,f){a.addObserver(i,f)},e.unObserver=function(i,f){a.unObserver(i,f)},e.destroyObserver=function(i,f){a.destroyObserver(i,f)}},function(g,e,t){var c=t(35);typeof c=="string"&&(c=[[g.i,c,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};t(37)(c,a),c.locals&&(g.exports=c.locals)},function(g,e,t){(g.exports=t(36)(!1)).push([g.i,`.danmu{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.danmu>*{position:absolute;white-space:nowrap}.danmu-switch{width:32px;height:20px;border-radius:100px;background-color:#ccc;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;cursor:pointer;position:relative;text-align:center;margin:10px auto}.danmu-switch.danmu-switch-active{padding-left:12px;background-color:#f85959}.danmu-switch span.txt{width:20px;height:20px;line-height:20px;text-align:center;display:block;border-radius:100px;background-color:#ffffff;-webkit-box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);font-family:PingFangSC;font-size:10px;font-weight:500;color:#f44336}
`,""])},function(g,e){g.exports=function(t){var c=[];return c.toString=function(){return this.map(function(a){var i=function(f,v){var b=f[1]||"",x=f[3];if(!x)return b;if(v&&typeof btoa=="function"){var _=(h=x,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(h))))+" */"),o=x.sources.map(function(p){return"/*# sourceURL="+x.sourceRoot+p+" */"});return[b].concat(o).concat([_]).join(`
`)}var h;return[b].join(`
`)}(a,t);return a[2]?"@media "+a[2]+"{"+i+"}":i}).join("")},c.i=function(a,i){typeof a=="string"&&(a=[[null,a,""]]);for(var f={},v=0;v<this.length;v++){var b=this[v][0];typeof b=="number"&&(f[b]=!0)}for(v=0;v<a.length;v++){var x=a[v];typeof x[0]=="number"&&f[x[0]]||(i&&!x[2]?x[2]=i:i&&(x[2]="("+x[2]+") and ("+i+")"),c.push(x))}},c}},function(g,e,t){var c,a,i={},f=(c=function(){return window&&document&&document.all&&!window.atob},function(){return a===void 0&&(a=c.apply(this,arguments)),a}),v=function(B){return document.querySelector(B)},b=function(M){var B={};return function(j){if(typeof j=="function")return j();if(B[j]===void 0){var U=v.call(this,j);if(window.HTMLIFrameElement&&U instanceof window.HTMLIFrameElement)try{U=U.contentDocument.head}catch{U=null}B[j]=U}return B[j]}}(),x=null,_=0,o=[],h=t(38);function p(M,B){for(var j=0;j<M.length;j++){var U=M[j],N=i[U.id];if(N){N.refs++;for(var V=0;V<N.parts.length;V++)N.parts[V](U.parts[V]);for(;V<U.parts.length;V++)N.parts.push(m(U.parts[V],B))}else{var X=[];for(V=0;V<U.parts.length;V++)X.push(m(U.parts[V],B));i[U.id]={id:U.id,refs:1,parts:X}}}}function O(M,B){for(var j=[],U={},N=0;N<M.length;N++){var V=M[N],X=B.base?V[0]+B.base:V[0],G={css:V[1],media:V[2],sourceMap:V[3]};U[X]?U[X].parts.push(G):j.push(U[X]={id:X,parts:[G]})}return j}function F(M,B){var j=b(M.insertInto);if(!j)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var U=o[o.length-1];if(M.insertAt==="top")U?U.nextSibling?j.insertBefore(B,U.nextSibling):j.appendChild(B):j.insertBefore(B,j.firstChild),o.push(B);else if(M.insertAt==="bottom")j.appendChild(B);else{if(C(M.insertAt)!="object"||!M.insertAt.before)throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`);var N=b(M.insertInto+" "+M.insertAt.before);j.insertBefore(B,N)}}function L(M){if(M.parentNode===null)return!1;M.parentNode.removeChild(M);var B=o.indexOf(M);B>=0&&o.splice(B,1)}function E(M){var B=document.createElement("style");return M.attrs.type===void 0&&(M.attrs.type="text/css"),D(B,M.attrs),F(M,B),B}function D(M,B){Object.keys(B).forEach(function(j){M.setAttribute(j,B[j])})}function m(M,B){var j,U,N,V;if(B.transform&&M.css){if(!(V=B.transform(M.css)))return function(){};M.css=V}if(B.singleton){var X=_++;j=x||(x=E(B)),U=H.bind(null,j,X,!1),N=H.bind(null,j,X,!0)}else M.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(j=function(G){var te=document.createElement("link");return G.attrs.type===void 0&&(G.attrs.type="text/css"),G.attrs.rel="stylesheet",D(te,G.attrs),F(G,te),te}(B),U=A.bind(null,j,B),N=function(){L(j),j.href&&URL.revokeObjectURL(j.href)}):(j=E(B),U=K.bind(null,j),N=function(){L(j)});return U(M),function(G){if(G){if(G.css===M.css&&G.media===M.media&&G.sourceMap===M.sourceMap)return;U(M=G)}else N()}}g.exports=function(M,B){if(typeof DEBUG!="undefined"&&DEBUG&&(typeof document=="undefined"?"undefined":C(document))!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(B=B||{}).attrs=C(B.attrs)=="object"?B.attrs:{},B.singleton||typeof B.singleton=="boolean"||(B.singleton=f()),B.insertInto||(B.insertInto="head"),B.insertAt||(B.insertAt="bottom");var j=O(M,B);return p(j,B),function(U){for(var N=[],V=0;V<j.length;V++){var X=j[V];(G=i[X.id]).refs--,N.push(G)}for(U&&p(O(U,B),B),V=0;V<N.length;V++){var G;if((G=N[V]).refs===0){for(var te=0;te<G.parts.length;te++)G.parts[te]();delete i[G.id]}}}};var P,z=(P=[],function(M,B){return P[M]=B,P.filter(Boolean).join(`
`)});function H(M,B,j,U){var N=j?"":U.css;if(M.styleSheet)M.styleSheet.cssText=z(B,N);else{var V=document.createTextNode(N),X=M.childNodes;X[B]&&M.removeChild(X[B]),X.length?M.insertBefore(V,X[B]):M.appendChild(V)}}function K(M,B){var j=B.css,U=B.media;if(U&&M.setAttribute("media",U),M.styleSheet)M.styleSheet.cssText=j;else{for(;M.firstChild;)M.removeChild(M.firstChild);M.appendChild(document.createTextNode(j))}}function A(M,B,j){var U=j.css,N=j.sourceMap,V=B.convertToAbsoluteUrls===void 0&&N;(B.convertToAbsoluteUrls||V)&&(U=h(U)),N&&(U+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(N))))+" */");var X=new Blob([U],{type:"text/css"}),G=M.href;M.href=URL.createObjectURL(X),G&&URL.revokeObjectURL(G)}},function(g,e){g.exports=function(t){var c=typeof window!="undefined"&&window.location;if(!c)throw new Error("fixUrls requires window.location");if(!t||typeof t!="string")return t;var a=c.protocol+"//"+c.host,i=a+c.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(f,v){var b,x=v.trim().replace(/^"(.*)"$/,function(_,o){return o}).replace(/^'(.*)'$/,function(_,o){return o});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(x)?f:(b=x.indexOf("//")===0?x:x.indexOf("/")===0?a+x:i+x.replace(/^\.\//,""),"url("+JSON.stringify(b)+")")})}}])})}).call(this,l(135)(k))},function(k,s){k.exports=function(l){return l.webpackPolyfill||(l.deprecate=function(){},l.paths=[],l.children||(l.children=[]),Object.defineProperty(l,"loaded",{enumerable:!0,get:function(){return l.l}}),Object.defineProperty(l,"id",{enumerable:!0,get:function(){return l.i}}),l.webpackPolyfill=1),l}},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40">
<path fill="#f85959" transform="scale(0.8 0.8)" d="M36.5,18.73a1.19,1.19,0,0,0,1-1.14V16.33a1.2,1.2,0,0,0-1-1.13l-.61-.08a1.75,1.75,0,0,1-1.3-.86l-.21-.36-.2-.36A1.72,1.72,0,0,1,34,12l.23-.58a1.18,1.18,0,0,0-.5-1.42l-1.1-.62a1.18,1.18,0,0,0-1.47.3l-.39.51a1.82,1.82,0,0,1-1.41.72c-.44,0-1.88-.27-2.22-.7l-.39-.49a1.18,1.18,0,0,0-1.48-.28l-1.09.64a1.19,1.19,0,0,0-.47,1.43l.25.59a1.87,1.87,0,0,1-.08,1.58c-.26.37-1.17,1.5-1.71,1.58l-.63.09a1.19,1.19,0,0,0-1,1.14l0,1.27a1.17,1.17,0,0,0,1,1.12l.61.08a1.74,1.74,0,0,1,1.3.87l.21.36.2.35A1.69,1.69,0,0,1,24,22.08l-.23.59a1.19,1.19,0,0,0,.5,1.42l1.1.62a1.19,1.19,0,0,0,1.48-.31l.38-.5a1.83,1.83,0,0,1,1.41-.72c.44,0,1.88.25,2.22.69l.39.49a1.18,1.18,0,0,0,1.48.28L33.86,24a1.19,1.19,0,0,0,.47-1.43L34.09,22a1.84,1.84,0,0,1,.07-1.58c.26-.37,1.17-1.5,1.72-1.58ZM31,18.94a2.76,2.76,0,0,1-4.65-1.2A2.71,2.71,0,0,1,27,15.13a2.76,2.76,0,0,1,4.64,1.2A2.7,2.7,0,0,1,31,18.94Z"/>
<path fill="#f85959" transform="scale(0.8 0.8)" d="M32,0H3.59A3.59,3.59,0,0,0,0,3.59v17A3.59,3.59,0,0,0,3.59,24.2H19.72a12.59,12.59,0,0,1-.81-1.2A11.73,11.73,0,0,1,35.54,7.28V3.59A3.59,3.59,0,0,0,32,0ZM13,14.18H4.29a1.52,1.52,0,0,1,0-3H13a1.52,1.52,0,0,1,0,3ZM16.45,8H4.29a1.51,1.51,0,0,1,0-3H16.45a1.51,1.51,0,1,1,0,3Z"/>
</svg>
`},function(k,s,l){var r=l(138);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .danmu-switch{-webkit-order:6;-moz-box-ordinal-group:7;order:6;z-index:26}.xgplayer-skin-default .xgplayer-danmu{display:none;position:absolute;top:0;left:0;right:0;height:100%;overflow:hidden;z-index:9;outline:none}.xgplayer-skin-default .xgplayer-danmu>*{position:absolute;white-space:nowrap;z-index:9}.xgplayer-skin-default .xgplayer-danmu.xgplayer-has-danmu{display:block}.xgplayer-skin-default .xgplayer-panel{outline:none;-webkit-order:7;-moz-box-ordinal-group:8;order:7;width:40px;height:40px;display:inline-block;position:relative;font-family:PingFangSC-Regular;font-size:13px;color:hsla(0,0%,100%,.8);z-index:36}.xgplayer-skin-default .xgplayer-panel .xgplayer-panel-icon{cursor:pointer;position:absolute;margin-left:5px;top:10px}.xgplayer-skin-default .xgplayer-panel-active{display:block!important;bottom:30px}.xgplayer-skin-default .xgplayer-panel-slider{z-index:36;display:none;position:absolute;width:230px;height:230px;background:rgba(0,0,0,.54);border-radius:1px;padding:10px 20px;outline:none;left:-115px;bottom:40px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode{padding-bottom:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode-radio li{display:inline;list-style:none;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode ul{display:-webkit-flex;display:-moz-box;display:flex;-webkit-justify-content:space-around;justify-content:space-around}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode li{margin:0 12px;font-size:11px;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-hidemode-font{margin-bottom:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency{display:block;margin-top:10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-transparency .xgplayer-transparency-bar::-moz-range-progress{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;border-radius:4px;background:linear-gradient(90deg,#f85959,#f85959 100%,#aaa)}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea{display:block;margin-top:8px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-threequarters,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-twoquarters{margin-left:-6px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea-full{margin-right:3px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-full-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-onequarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-threequarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-twoquarters-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-showarea .xgplayer-showarea-zero-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed{display:block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-large-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-middle-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmuspeed .xgplayer-danmuspeed-small-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont{display:block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-name{display:inline-block;position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control{display:inline-block}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-up{width:150px;margin-left:10px;display:-moz-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between;color:#aaa}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-down{position:relative;top:-10px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont-control-down-dots{display:-webkit-flex;display:-moz-box;display:flex;width:150px;margin-left:10px;-webkit-justify-content:space-between;-moz-box-pack:justify;justify-content:space-between}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-line{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;width:150px;height:4px;background:#aaa;border-radius:4px;border-style:none;margin-left:10px;margin-top:-2px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-line::-moz-focus-outer{border:0!important}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-webkit-slider-runnable-track{outline:none;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-moz-range-track{outline:none;background-color:#aaa;border-color:transparent;cursor:pointer;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-color::-ms-track{outline:none;background-color:#aaa;color:transparent;border-color:transparent;width:150px;height:4px;border-radius:4px}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-webkit-slider-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;margin-top:-4px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-moz-range-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:0;width:0;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-bar::-ms-thumb{outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:6px solid #f85959;height:6px;width:6px;border-radius:6px;cursor:pointer}.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-large-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-middle-dot,.xgplayer-skin-default .xgplayer-panel-slider .xgplayer-danmufont .xgplayer-danmufont-small-dot{width:3px;height:3px;border:3px solid #aaa;border-radius:50%;background-color:#aaa;position:relative;top:16px;z-index:-1}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(140);var S=function(){var u=this;if(!(!u.config.pip||typeof u.video.requestPictureInPicture!="function")){var C=u.lang.PIP,g=(0,r.createDom)("xg-pip",'<p class="name"><span>'+C+"</span></p>",{tabindex:9},"xgplayer-pip");u.once("ready",function(){u.controls.appendChild(g)}),["click","touchend"].forEach(function(e){g.addEventListener(e,function(t){t.preventDefault(),t.stopPropagation(),u.userGestureTrigEvent("pipBtnClick")})})}};s.default={name:"s_pip",method:S},k.exports=s.default},function(k,s,l){var r=l(141);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-pip{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:10px}.xgplayer-skin-default .xgplayer-pip .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-pip .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.lang-is-jp .xgplayer-pip .name span{width:70px;height:20px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(143);var S=function(){var u=this;if(!!u.config.miniplayer){var C=u.lang.MINIPLAYER,g=(0,r.createDom)("xg-miniplayer",'<p class="name"><span>'+C+"</span></p>",{tabindex:9},"xgplayer-miniplayer");u.once("ready",function(){u.controls.appendChild(g)}),["click","touchend"].forEach(function(e){g.addEventListener(e,function(t){t.preventDefault(),t.stopPropagation(),u.userGestureTrigEvent("miniplayerBtnClick")})})}};s.default={name:"s_miniplayer",method:S},k.exports=s.default},function(k,s,l){var r=l(144);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-miniplayer{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:10px}.xgplayer-skin-default .xgplayer-miniplayer .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-miniplayer .name span{width:80px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default .xgplayer-miniplayer-lay{position:absolute;top:26px;left:0;width:100%;height:100%;z-index:130;cursor:pointer;background-color:transparent;display:none}.xgplayer-skin-default .xgplayer-miniplayer-lay div{width:100%;height:100%}.xgplayer-skin-default .xgplayer-miniplayer-drag{cursor:move;position:absolute;top:0;left:0;width:100%;height:26px;line-height:26px;background-image:linear-gradient(rgba(0,0,0,.3),transparent);z-index:130;display:none}.xgplayer-skin-default .xgplayer-miniplayer-drag .drag-handle{width:100%}.xgplayer-skin-default.xgplayer-miniplayer-active{position:fixed;right:0;bottom:200px;width:320px;height:180px;z-index:110}.xgplayer-skin-default.xgplayer-miniplayer-active .xgplayer-controls,.xgplayer-skin-default.xgplayer-miniplayer-active .xgplayer-danmu{display:none}.xgplayer-skin-default.xgplayer-miniplayer-active .xgplayer-miniplayer-lay{display:block}.xgplayer-skin-default.xgplayer-miniplayer-active .xgplayer-miniplayer-drag{display:-webkit-flex;display:-moz-box;display:flex}.xgplayer-skin-default.xgplayer-inactive .xgplayer-miniplayer-drag{display:none}.lang-is-jp .xgplayer-miniplayer .name span{width:70px;height:20px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(146),T=u(S);l(147);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this,t=e.config.playNext;if(!t||!t.urlList)return;var c=(0,r.createDom)("xg-playnext",'<xg-icon class="xgplayer-icon">'+T.default+"</xg-icon>",{},"xgplayer-playnext"),a=e.lang.PLAYNEXT_TIPS,i=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-playnext">'+a+"</span>",{},"xgplayer-tips");c.appendChild(i),e.once("ready",function(){e.controls.appendChild(c)}),["click","touchend"].forEach(function(b){c.addEventListener(b,function(x){x.preventDefault(),x.stopPropagation(),(0,r.addClass)(e.root,"xgplayer-is-enter"),e.userGestureTrigEvent("playNextBtnClick")})});var f=function(){(0,r.addClass)(e.root,"xgplayer-playnext-inactive")};e.on("urlListEnd",f);function v(){e.off("urlListEnd",f),e.off("destroy",v)}e.once("destroy",v)};s.default={name:"s_playNext",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
</svg>
`},function(k,s,l){var r=l(148);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-playnext{position:relative;-webkit-order:1;-moz-box-ordinal-group:2;order:1;display:block;cursor:pointer;top:-2px}.xgplayer-skin-default .xgplayer-playnext .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-playnext .xgplayer-tips .xgplayer-tip-playnext{display:block}.xgplayer-skin-default .xgplayer-playnext:hover{opacity:.85}.xgplayer-skin-default .xgplayer-playnext:hover .xgplayer-tips{display:block}.xgplayer-lang-is-en .xgplayer-playnext .xgplayer-tips{margin-left:-25px}.xgplayer-lang-is-jp .xgplayer-playnext .xgplayer-tips{margin-left:-38px}.xgplayer-skin-default.xgplayer-playnext-inactive .xgplayer-playnext{display:none}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(150),T=u(S);l(151);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this;if(!!e.config.rotate){var t=(0,r.createDom)("xg-rotate",'<xg-icon class="xgplayer-icon">'+T.default+"</xg-icon>",{},"xgplayer-rotate"),c=e.lang.ROTATE_TIPS,a=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-rotate">'+c+"</span>",{},"xgplayer-tips");t.appendChild(a),e.once("ready",function(){e.controls.appendChild(t)}),["click","touchend"].forEach(function(i){t.addEventListener(i,function(f){f.preventDefault(),f.stopPropagation(),e.userGestureTrigEvent("rotateBtnClick")})})}};s.default={name:"s_rotate",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 40 40" fill="none">
<g clip-path="url(#clip0)">
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
<path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="40" height="40" fill="white"/>
</clipPath>
</defs>
</svg>
`},function(k,s,l){var r=l(152);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-rotate{position:relative;-webkit-order:10;-moz-box-ordinal-group:11;order:10;display:block;cursor:pointer}.xgplayer-skin-default .xgplayer-rotate .xgplayer-icon{margin-top:7px;width:26px}.xgplayer-skin-default .xgplayer-rotate .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-rotate .xgplayer-tips{margin-left:-22px}.xgplayer-skin-default .xgplayer-rotate .xgplayer-tips .xgplayer-tip-rotate{display:block}.xgplayer-skin-default .xgplayer-rotate:hover{opacity:.85}.xgplayer-skin-default .xgplayer-rotate:hover .xgplayer-tips{display:block}.xgplayer-lang-is-en .xgplayer-rotate .xgplayer-tips{margin-left:-26px}.xgplayer-lang-is-jp .xgplayer-rotate .xgplayer-tips{margin-left:-38px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(154),T=u(S);l(155);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this;if(!!e.config.reload){var t=(0,r.createDom)("xg-reload",'<xg-icon class="xgplayer-icon">'+T.default+"</xg-icon>",{},"xgplayer-reload"),c=e.lang.RELOAD_TIPS,a=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-reload">'+c+"</span>",{},"xgplayer-tips");t.appendChild(a),e.once("ready",function(){e.controls.appendChild(t)}),["click","touchend"].forEach(function(i){t.addEventListener(i,function(f){f.preventDefault(),f.stopPropagation(),e.userGestureTrigEvent("reloadBtnClick")})})}};s.default={name:"s_reload",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
<path fill="#FFF" fill-opacity="1" fill-rule="nonzero" d="M18.17 19.988a7.182 7.182 0 0 1-4.256 1.318 7.806 7.806 0 0 1-.595-.03c-.08-.008-.16-.021-.242-.031a8.004 8.004 0 0 1-.458-.071c-.094-.018-.185-.042-.276-.063a7.743 7.743 0 0 1-.439-.113c-.068-.022-.136-.047-.205-.07a7.03 7.03 0 0 1-.492-.181c-.037-.015-.072-.032-.108-.049a7.295 7.295 0 0 1-.554-.269l-.025-.012a7.347 7.347 0 0 1-2.111-1.753c-.03-.036-.057-.074-.086-.11a7.305 7.305 0 0 1-1.594-4.557h1.686a.123.123 0 0 0 .108-.064.119.119 0 0 0-.006-.125L5.684 9.532a.123.123 0 0 0-.103-.056.123.123 0 0 0-.102.056l-2.834 4.276a.121.121 0 0 0-.005.125c.022.04.064.064.107.064h1.687c0 2.025.627 3.902 1.693 5.454.013.021.022.044.037.066.11.159.233.305.352.455.043.057.085.116.13.171.175.213.36.413.55.61.02.018.036.038.054.055a9.447 9.447 0 0 0 2.91 1.996c.058.026.115.054.175.079.202.084.41.158.619.228.098.034.196.069.296.1.183.054.37.1.558.145.125.029.249.06.376.085.052.01.102.027.155.035.177.032.355.05.533.071.064.007.128.018.19.026.32.03.639.052.956.052a9.46 9.46 0 0 0 5.47-1.746 1.16 1.16 0 0 0 .282-1.608 1.143 1.143 0 0 0-1.6-.283zm5.397-5.991a9.604 9.604 0 0 0-1.685-5.441c-.016-.027-.026-.054-.043-.078-.132-.19-.276-.366-.419-.543-.017-.022-.032-.044-.05-.065a9.467 9.467 0 0 0-3.571-2.7l-.114-.051a11.2 11.2 0 0 0-.673-.248c-.082-.027-.163-.057-.247-.082a9.188 9.188 0 0 0-.6-.156c-.113-.026-.224-.055-.337-.077-.057-.011-.109-.028-.164-.037-.151-.027-.304-.039-.455-.058-.104-.013-.208-.03-.313-.04a10.05 10.05 0 0 0-.759-.039c-.045 0-.09-.007-.136-.007l-.025.003a9.45 9.45 0 0 0-5.46 1.737 1.16 1.16 0 0 0-.284 1.608c.363.523 1.08.65 1.6.284a7.182 7.182 0 0 1 4.222-1.32c.217.002.429.013.639.033.065.007.129.017.193.025.173.021.344.046.513.08.075.014.149.033.221.05.166.037.331.077.494.127l.152.051c.185.061.366.127.545.201l.054.025a7.308 7.308 0 0 1 2.741 2.067l.013.018a7.302 7.302 0 0 1 1.652 4.633h-1.686a.123.123 0 0 0-.108.064.12.12 0 0 0 .006.124l2.834 4.277c.022.033.06.054.103.054.042 0 .08-.021.102-.054l2.833-4.277a.12.12 0 0 0 .005-.124.123.123 0 0 0-.108-.064h-1.685z"/>
</svg>
`},function(k,s,l){var r=l(156);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-reload{position:relative;-webkit-order:1;-moz-box-ordinal-group:2;order:1;display:block;width:40px;height:40px;cursor:pointer}.xgplayer-skin-default .xgplayer-reload .xgplayer-icon{margin-top:7px;width:26px}.xgplayer-skin-default .xgplayer-reload .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-reload .xgplayer-tips{margin-left:-22px}.xgplayer-skin-default .xgplayer-reload .xgplayer-tips .xgplayer-tip-reload{display:block}.xgplayer-skin-default .xgplayer-reload:hover{opacity:.85}.xgplayer-skin-default .xgplayer-reload:hover .xgplayer-tips{display:block}.xgplayer-lang-is-en .xgplayer-reload .xgplayer-tips{margin-left:-26px}.xgplayer-lang-is-jp .xgplayer-reload .xgplayer-tips{margin-left:-38px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(158);var S=function(){var u=this;if(!(!u.config.screenShot||u.config.screenShot.hideButton)){var C=u.lang.SCREENSHOT,g=(0,r.createDom)("xg-screenshot",'<p class="name"><span>'+(u.config.screenShot.iconText||C)+"</span></p>",{tabindex:11},"xgplayer-screenshot");u.once("ready",function(){u.controls.appendChild(g)}),["click","touchend"].forEach(function(e){g.addEventListener(e,function(t){t.preventDefault(),t.stopPropagation(),u.userGestureTrigEvent("screenShotBtnClick")})})}};s.default={name:"s_screenShot",method:S},k.exports=s.default},function(k,s,l){var r=l(159);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-screenshot{-webkit-order:11;-moz-box-ordinal-group:12;order:11;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:10px}.xgplayer-skin-default .xgplayer-screenshot .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-screenshot .name span{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 10px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-lang-is-en .xgplayer-screenshot .name span,.xgplayer-lang-is-jp .xgplayer-screenshot .name span{width:75px;height:20px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(9),S=T(r);l(78);function T(C){return C&&C.__esModule?C:{default:C}}var u=function(){if(!!this.config.nativeTextTrack){var g=this,e=g.root,t=S.default.util,c=t.createDom("xg-texttrack","",{tabindex:7},"xgplayer-texttrack"),a=g.config.nativeTextTrack;a&&Array.isArray(a)&&a.length>0&&(t.addClass(g.root,"xgplayer-is-texttrack"),g.once("canplay",function(){var i=this,f=["<ul>"];f.push("<li class='"+(this.textTrackShowDefault?"":"selected")+"'}'>"+g.lang.OFF+"</li>"),a.forEach(function(o){f.push("<li class='"+(o.default&&i.textTrackShowDefault?"selected":"")+"'>"+o.label+"</li>")});var v=g.lang.TEXTTRACK;f.push('</ul><p class="name">'+v+"</p>");var b=e.querySelector(".xgplayer-texttrack");if(b){b.innerHTML=f.join("");var x=b.querySelector(".name");(!g.config.textTrackActive||g.config.textTrackActive==="hover")&&x.addEventListener("mouseenter",function(o){o.preventDefault(),o.stopPropagation(),t.addClass(e,"xgplayer-texttrack-active"),b.focus()})}else{c.innerHTML=f.join("");var _=c.querySelector(".name");(!g.config.textTrackActive||g.config.textTrackActive==="hover")&&_.addEventListener("mouseenter",function(o){o.preventDefault(),o.stopPropagation(),t.addClass(g.root,"xgplayer-texttrack-active"),c.focus()}),g.controls.appendChild(c)}})),["touchend","click"].forEach(function(i){c.addEventListener(i,function(f){f.preventDefault(),f.stopPropagation();var v=f.target||f.srcElement;if(v&&v.tagName.toLocaleLowerCase()==="li"){Array.prototype.forEach.call(v.parentNode.childNodes,function(x){t.removeClass(x,"selected")}),t.addClass(v,"selected");var b=g.root.getElementsByTagName("Track");v.innerHTML===g.lang.OFF?(b[0].track.mode="hidden",b[0].src="",t.removeClass(g.root,"xgplayer-texttrack-active")):(b[0].style.display="block",t.addClass(g.root,"xgplayer-texttrack-active"),b[0].track.mode="showing",a.some(function(x){if(x.label===v.innerHTML)return b[0].src=x.src,x.kind&&(b[0].kind=x.kind),b[0].label=x.label,x.srclang&&(b[0].srclang=x.srclang),!0}),g.emit("textTrackChange",v.innerHTML))}else g.config.textTrackActive==="click"&&v&&(v.tagName.toLocaleLowerCase()==="p"||v.tagName.toLocaleLowerCase()==="em")&&(t.addClass(g.root,"xgplayer-texttrack-active"),c.focus())},!1)}),g.on("play",function(){var i=e.querySelector(".xgplayer-texttrack ul"),f=e.getElementsByTagName("Track");!g.hls||!i||!f||(f[0].src="",Array.prototype.forEach.call(i.childNodes,function(v){t.hasClass(v,"selected")&&(v.innerHTML===g.lang.OFF?(f[0].track.mode="hidden",f[0].src=""):(f[0].track.mode="hidden",a.some(function(b){if(b.label!==v.innerHTML)return f[0].src=b.src,b.kind&&(f[0].kind=b.kind),f[0].label=b.label,b.srclang&&(f[0].srclang=b.srclang),!0}),a.some(function(b){if(b.label===v.innerHTML)return setTimeout(function(){f[0].src=b.src,b.kind&&(f[0].kind=b.kind),f[0].label=b.label,b.srclang&&(f[0].srclang=b.srclang),f[0].track.mode="showing"}),!0})))}),t.removeClass(g.root,"xgplayer-texttrack-active"))}),c.addEventListener("mouseleave",function(i){i.preventDefault(),i.stopPropagation(),t.removeClass(g.root,"xgplayer-texttrack-active")})}};s.default={name:"s_nativeTextTrack",method:u},k.exports=s.default},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-texttrack{-webkit-order:7;-moz-box-ordinal-group:8;order:7;width:60px;height:150px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-top:-119px}.xgplayer-skin-default .xgplayer-texttrack ul{display:none;list-style:none;min-width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;text-align:center;white-space:nowrap;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-texttrack ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:auto;padding:6px 13px}.xgplayer-skin-default .xgplayer-texttrack ul li.selected,.xgplayer-skin-default .xgplayer-texttrack ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-texttrack .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:0;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-skin-default .xgplayer-texttrack.xgplayer-texttrack-hide{display:none}xg-text-track{transition:bottom .3s ease}.xgplayer-skin-default.xgplayer-is-texttrack .xgplayer-texttrack,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-texttrack ul{display:block}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(78);function S(u,C,g,e){if(C.length===0){u.innerHTML="";return}var t=[];t.push('<li data-type="off" class="'+(e?"":"selected")+'">'+g+"</li>"),C.forEach(function(c){t.push("<li data-id="+c.id+" data-language="+c.language+' class="'+(c.isDefault&&e?"selected":"")+'">'+c.label+"</li>")}),u.innerHTML=t.join("")}var T=function(){var C=this;if(!this.config.textTrack)return;var g=this.config.textTrack,e=C.lang.TEXTTRACK,t=(0,r.createDom)("xg-texttrack",'<ul></ul><p class="name">'+e+"</p>",{tabindex:7},"xgplayer-texttrack");function c(){var i=C.root.querySelector(".xgplayer-texttrack");if(!i){C.controls.appendChild(t);var f=t.querySelector(".name");!C.config.textTrackActive||C.config.textTrackActive==="hover"?(f.addEventListener("mouseenter",function(b){b.preventDefault(),b.stopPropagation(),(0,r.addClass)(C.root,"xgplayer-texttrack-active"),t.focus()}),t.addEventListener("mouseleave",function(b){b.preventDefault(),b.stopPropagation(),(0,r.removeClass)(C.root,"xgplayer-texttrack-active")})):f.addEventListener("click",function(b){b.preventDefault(),b.stopPropagation(),(0,r.hasClass)(C.root,"xgplayer-texttrack-active")?(0,r.removeClass)(C.root,"xgplayer-texttrack-active"):(0,r.addClass)(C.root,"xgplayer-texttrack-active")})}["touchend","click"].forEach(function(b){t.addEventListener(b,function(x){x.preventDefault(),x.stopPropagation();var _=x.target||x.srcElement;if(_&&_.tagName.toLocaleLowerCase()==="li"){var o=_.getAttribute("data-id"),h=_.getAttribute("data-type"),p=_.getAttribute("data-language");Array.prototype.forEach.call(_.parentNode.childNodes,function(O){(0,r.removeClass)(O,"selected")}),(0,r.addClass)(_,"selected"),h==="off"?(C.switchOffSubtile(),(0,r.removeClass)(C.root,"xgplayer-texttrack-active")):(C.switchSubTitle({id:o,language:p}),(0,r.addClass)(C.root,"xgplayer-texttrack-active"))}})});var v=t.getElementsByTagName("ul")[0];S(v,g,C.lang.OFF,C.textTrackShowDefault),g.length===0?(0,r.addClass)(t,"xgplayer-texttrack-hide"):(0,r.removeClass)(t,"xgplayer-texttrack-hide")}var a=function(f){if(!!f.isListUpdate){var v=t.getElementsByTagName("ul")[0];g=f.list,S(v,f.list,C.lang.OFF,C.textTrackShowDefault),f.list.length>0?(0,r.addClass)(C.root,"xgplayer-is-texttrack"):(0,r.removeClass)(C.root,"xgplayer-is-texttrack"),f.list.length===0?(0,r.addClass)(t,"xgplayer-texttrack-hide"):(0,r.removeClass)(t,"xgplayer-texttrack-hide")}};g&&Array.isArray(g)&&(g.length>0&&(0,r.addClass)(C.root,"xgplayer-is-texttrack"),C.once("canplay",c),C.on("subtitle_change",a))};s.default={name:"s_textTrack",method:T},k.exports=s.default},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(164);var S=function(){var u=this,C=u.root,g=(0,r.createDom)("xg-error",'<span class="xgplayer-error-text">\u8BF7<span class="xgplayer-error-refresh">\u5237\u65B0</span>\u8BD5\u8BD5</span>',{},"xgplayer-error");u.once("ready",function(){C.appendChild(g)});var e=g.querySelector(".xgplayer-error-text");u.config.lang&&u.config.lang==="zh-cn"?e.innerHTML=u.config.errorTips||'\u8BF7<span class="xgplayer-error-refresh">\u5237\u65B0</span>\u8BD5\u8BD5':e.innerHTML=u.config.errorTips||'please try to <span class="xgplayer-error-refresh">refresh</span>';var t=null;function c(){(0,r.addClass)(u.root,"xgplayer-is-error"),t=g.querySelector(".xgplayer-error-refresh"),t&&["touchend","click"].forEach(function(i){t.addEventListener(i,function(f){f.preventDefault(),f.stopPropagation(),u.autoplay=!0;var v=u.currentTime;u.once("playing",function(){u.currentTime=v,(0,r.removeClass)(u.root,"xgplayer-is-error")}),u.src=u.config.url})})}u.on("error",c);function a(){u.off("error",c),u.off("destroy",a)}u.once("destroy",a)};s.default={name:"s_error",method:S},k.exports=s.default},function(k,s,l){var r=l(165);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-error{background:#000;display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:125;font-family:PingFangSC-Regular;font-size:14px;color:#fff;text-align:center;line-height:100%;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center}.xgplayer-skin-default .xgplayer-error .xgplayer-error-refresh{color:#fa1f41;padding:0 3px;cursor:pointer}.xgplayer-skin-default .xgplayer-error .xgplayer-error-text{line-height:18px;margin:auto 6px}.xgplayer-skin-default.xgplayer-is-error .xgplayer-error{display:-webkit-flex;display:-moz-box;display:flex}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0);l(167);var S=function(){var u=this,C=u.config.lastPlayTime||0,g=u.config.lastPlayTimeHideDelay||0,e=null;if(!(C<=0)){e=(0,r.createDom)("xg-memoryplay",'<div class="xgplayer-memoryplay-spot"><div class="xgplayer-progress-tip">\u60A8\u4E0A\u6B21\u89C2\u770B\u5230 <span class="xgplayer-lasttime">'+(0,r.format)(C)+'</span> \uFF0C\u4E3A\u60A8\u81EA\u52A8\u7EED\u64AD <span class="btn-close"><svg viewBox="64 64 896 896" focusable="false" class="" data-icon="close" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg></span></div></div>',{},"xgplayer-memoryplay"),e.addEventListener("mouseover",function(a){a.stopPropagation()});var t=function(){e&&e.parentNode&&e.parentNode.removeChild(e),e=null};e.querySelector(".xgplayer-progress-tip .btn-close").addEventListener("click",t);var c=function(){g>0&&u.root.appendChild(e),u.emit("memoryPlayStart",C),g>0&&setTimeout(function(){t()},g*1e3)};u.once("playing",c),u.once("ended",t)}};s.default={name:"s_memoryPlay",method:S},k.exports=s.default},function(k,s,l){var r=l(168);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-memoryplay-spot{position:absolute;height:32px;left:10px;bottom:46px;background:rgba(0,0,0,.5);border-radius:32px;line-height:32px;color:#ddd;z-index:15;padding:0 32px 0 16px}.xgplayer-skin-default .xgplayer-memoryplay-spot .xgplayer-lasttime{color:red;font-weight:700}.xgplayer-skin-default .xgplayer-memoryplay-spot .btn-close{position:absolute;width:16px;height:16px;right:10px;top:2px;cursor:pointer;color:#fff;font-size:16px}",""])},function(k,s,l){Object.defineProperty(s,"__esModule",{value:!0});var r=l(0),S=l(170),T=u(S);l(171);function u(g){return g&&g.__esModule?g:{default:g}}var C=function(){var e=this;if(!(!e.config.airplay||!window.WebKitPlaybackTargetAvailabilityEvent)){var t=(0,r.createDom)("xg-airplay",`<xg-icon class="xgplayer-icon">
<div class="xgplayer-icon-airplay">`+T.default+`</div>
</xg-icon>`,{},"xgplayer-airplay"),c=(0,r.createDom)("xg-tips",'<span class="xgplayer-tip-airplay">'+e.lang.AIRPLAY_TIPS+"</span>",{},"xgplayer-tips");t.appendChild(c),e.once("ready",function(){e.controls.appendChild(t),e.video.addEventListener("webkitplaybacktargetavailabilitychanged",function(a){switch(a.availability){case"available":t.hidden=!1,t.disabled=!1;break;case"not-available":t.hidden=!0,t.disabled=!0;break}})}),["click","touchend"].forEach(function(a){t.addEventListener(a,function(i){i.preventDefault(),i.stopPropagation(),e.userGestureTrigEvent("airplayBtnClick")})})}};s.default={name:"s_airplay",method:C},k.exports=s.default},function(k,s,l){l.r(s),s.default='<svg t="1600422191774" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3100" width="28" height="28"><path d="M256 938.666667h512L512 597.333333 256 938.666667z m170.666667-85.333334l85.333333-113.781333L597.333333 853.333333H426.666667zM853.333333 85.333333H170.666667C99.946667 85.333333 42.666667 142.613333 42.666667 213.333333v426.666667c0 70.72 57.28 128 128 128h106.666666l64-85.333333H170.666667c-23.573333 0-42.666667-19.093333-42.666667-42.666667V213.333333c0-23.573333 19.093333-42.666667 42.666667-42.666666h682.666666c23.573333 0 42.666667 19.093333 42.666667 42.666666v426.666667c0 23.573333-19.093333 42.666667-42.666667 42.666667H682.666667l64 85.333333h106.666666c70.72 0 128-57.28 128-128V213.333333c0-70.72-57.28-128-128-128z" p-id="3101" fill="#ffffff"></path></svg>'},function(k,s,l){var r=l(172);typeof r=="string"&&(r=[[k.i,r,""]]);var S,T={hmr:!0};T.transform=S,T.insertInto=void 0,l(2)(r,T),r.locals&&(k.exports=r.locals)},function(k,s,l){s=k.exports=l(1)(!1),s.push([k.i,".xgplayer-skin-default .xgplayer-airplay{position:relative;-webkit-order:11;-moz-box-ordinal-group:12;order:11;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon{margin-top:6px;margin-left:6px}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-airplay .xgplayer-icon .xgplayer-icon-airplay{display:block}.xgplayer-skin-default .xgplayer-airplay .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-airplay .xgplayer-tips .xgplayer-tip-airplay{display:block}.xgplayer-skin-default .xgplayer-airplay:hover{opacity:.85}.xgplayer-skin-default .xgplayer-airplay:hover .xgplayer-tips{display:block}",""])}])})})(or);var ma=ha(or.exports);export{ma as P};