@volcengine/veplayer 2.6.0 → 2.6.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.d.ts +15 -0
- package/esm/veplayer.biz.live.development.js +3 -3
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +29 -0
- package/esm/veplayer.development.js +107 -40
- package/esm/veplayer.live.d.ts +29 -0
- package/esm/veplayer.live.development.js +107 -40
- package/esm/veplayer.live.production.js +3 -3
- package/esm/veplayer.production.js +3 -3
- package/esm/veplayer.vod.d.ts +15 -0
- package/esm/veplayer.vod.development.js +104 -37
- package/esm/veplayer.vod.production.js +3 -3
- package/package.json +1 -1
- package/umd/index.d.ts +15 -0
- package/umd/veplayer.biz.live.development.js +3 -3
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +29 -0
- package/umd/veplayer.development.js +107 -40
- package/umd/veplayer.live.d.ts +29 -0
- package/umd/veplayer.live.development.js +107 -40
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +15 -0
- package/umd/veplayer.vod.development.js +104 -37
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +29 -0
- package/veplayer.live.d.ts +29 -0
- package/veplayer.vod.d.ts +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),w=function(e){return _(m(e),8,-1)},b=w,S=g,E=function(e){if("Function"===b(e))return S(e)},T="object"==typeof document&&document.all,P={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},R=P.all,k=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},O={},x=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=a,I=Function.prototype.call,A=M?I.bind(I):function(){return I.apply(I,arguments)},C={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,j=D&&!L.call({1:2},1);C.f=j?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var N,F,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,V=w,B=Object,W=g("".split),K=z((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?W(e,""):B(e)}:B,H=function(e){return null==e},q=H,G=TypeError,X=function(e){if(q(e))throw G("Can't call method on "+e);return e},Y=K,$=X,Q=function(e){return Y($(e))},J=k,Z=P.all,ee=P.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},te={},re=te,ne=i,ie=k,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,pe=ce.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(F=(N=de.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&ue&&(!(N=ue.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=ue.match(/Chrome\/(\d+)/))&&(F=+N[1]);var ve=F,ge=ve,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),we=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ae,Se=k,Ee=se,Te=Object,Pe=we?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return Se(t)&&Ee(t.prototype,Te(e))},Re=String,ke=function(e){try{return Re(e)}catch(t){return"Object"}},Oe=k,xe=ke,Me=TypeError,Ie=function(e){if(Oe(e))return e;throw Me(xe(e)+" is not a function")},Ae=Ie,Ce=H,Le=function(e,t){var r=e[t];return Ce(r)?void 0:Ae(r)},De=A,je=k,Ne=ee,Fe=TypeError,Ue={exports:{}},ze=i,Ve=Object.defineProperty,Be=function(e,t){try{Ve(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",Ke=i[We]||Be(We,{}),He=Ke;(Ue.exports=function(e,t){return He[e]||(He[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var qe=Ue.exports,Ge=X,Xe=Object,Ye=function(e){return Xe(Ge(e))},$e=Ye,Qe=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Qe($e(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=qe,ot=Je,at=nt,st=_e,lt=we,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},ht=A,dt=ee,vt=Pe,gt=Le,yt=function(e,t){var r,n;if("string"===t&&je(r=e.toString)&&!Ne(n=De(r,e)))return n;if(je(r=e.valueOf)&&!Ne(n=De(r,e)))return n;if("string"!==t&&je(r=e.toString)&&!Ne(n=De(r,e)))return n;throw Fe("Can't convert object to primitive value")},mt=TypeError,_t=pt("toPrimitive"),wt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},bt=Pe,St=function(e){var t=wt(e,"string");return bt(t)?t:t+""},Et=ee,Tt=i.document,Pt=Et(Tt)&&Et(Tt.createElement),Rt=function(e){return Pt?Tt.createElement(e):{}},kt=Rt,Ot=!x&&!o((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),xt=x,Mt=A,It=C,At=U,Ct=Q,Lt=St,Dt=Je,jt=Ot,Nt=Object.getOwnPropertyDescriptor;O.f=xt?Nt:function(e,t){if(e=Ct(e),t=Lt(t),jt)try{return Nt(e,t)}catch(r){}if(Dt(e,t))return At(!Mt(It.f,e,t),e[t])};var Ft=o,Ut=k,zt=/#|\.prototype\./,Vt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=Kt&&(Ut(t)?Ft(t):!!t)},Bt=Vt.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Vt.data={},Kt=Vt.NATIVE="N",Ht=Vt.POLYFILL="P",qt=Vt,Gt=Ie,Xt=a,Yt=E(E.bind),$t=function(e,t){return Gt(e),void 0===t?e:Xt?Yt(e,t):function(){return e.apply(t,arguments)}},Qt={},Jt=x&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=x,ir=Ot,or=Jt,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Qt.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=ur(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Qt,vr=U,gr=x?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=E,wr=k,br=O.f,Sr=qt,Er=te,Tr=$t,Pr=gr,Rr=Je,kr=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Or=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?yr:h?yr[f]:(yr[f]||{}).prototype,g=p?Er:Er[f]||Pr(Er,f,{})[f],y=g.prototype;for(o in t)n=!(r=Sr(p?o:f+(h?".":"#")+o,e.forced))&&v&&Rr(v,o),s=g[o],n&&(l=e.dontCallGetSet?(u=br(v,o))&&u.value:v[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?Tr(a,yr):e.wrap&&n?kr(a):d&&wr(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(c,"sham",!0),Pr(g,o,c),d&&(Rr(Er,i=f+"Prototype")||Pr(Er,i,{}),Pr(Er[i],o,a),e.real&&y&&(r||!y[o])&&Pr(y,o,a)))},xr=w,Mr=Array.isArray||function(e){return"Array"==xr(e)};Or({target:"Array",stat:!0},{isArray:Mr});var Ir=te.Array.isArray,Ar=r(Ir);var Cr=Math.ceil,Lr=Math.floor,Dr=Math.trunc||function(e){var t=+e;return(t>0?Lr:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Dr(t)},Nr=jr,Fr=Math.min,Ur=function(e){return e>0?Fr(Nr(e),9007199254740991):0},zr=Ur,Vr=function(e){return zr(e.length)},Br=TypeError,Wr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},Kr=St,Hr=Qt,qr=U,Gr=function(e,t,r){var n=Kr(t);n in e?Hr.f(e,n,qr(0,r)):e[n]=r},Xr={};Xr[pt("toStringTag")]="z";var Yr="[object z]"===String(Xr),$r=Yr,Qr=k,Jr=w,Zr=pt("toStringTag"),en=Object,tn="Arguments"==Jr(function(){return arguments}()),rn=$r?Jr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=en(e),Zr))?r:tn?Jr(t):"Object"==(n=Jr(t))&&Qr(t.callee)?"Arguments":n},nn=k,on=Ke,an=g(Function.toString);nn(on.inspectSource)||(on.inspectSource=function(e){return an(e)});var sn=on.inspectSource,ln=g,cn=o,un=k,fn=rn,pn=sn,hn=function(){},dn=[],vn=ae("Reflect","construct"),gn=/^\s*(?:class|function)\b/,yn=ln(gn.exec),mn=!gn.exec(hn),_n=function(e){if(!un(e))return!1;try{return vn(hn,dn,e),!0}catch(t){return!1}},wn=function(e){if(!un(e))return!1;switch(fn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!yn(gn,pn(e))}catch(t){return!0}};wn.sham=!0;var bn=!vn||cn((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?wn:_n,Sn=Mr,En=bn,Tn=ee,Pn=pt("species"),Rn=Array,kn=function(e){var t;return Sn(e)&&(t=e.constructor,(En(t)&&(t===Rn||Sn(t.prototype))||Tn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?Rn:t},On=function(e,t){return new(kn(e))(0===t?0:t)},xn=o,Mn=ve,In=pt("species"),An=function(e){return Mn>=51||!xn((function(){var t=[];return(t.constructor={})[In]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=Or,Ln=o,Dn=Mr,jn=ee,Nn=Ye,Fn=Vr,Un=Wr,zn=Gr,Vn=On,Bn=An,Wn=ve,Kn=pt("isConcatSpreadable"),Hn=Wn>=51||!Ln((function(){var e=[];return e[Kn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Kn];return void 0!==t?!!t:Dn(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Hn||!Bn("concat")},{concat:function(e){var t,r,n,i,o,a=Nn(this),s=Vn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(o=-1===t?a:arguments[t]))for(i=Fn(o),Un(l+i),r=0;r<i;r++,l++)r in o&&zn(s,l,o[r]);else Un(l+1),zn(s,l++,o);return s.length=l,s}});var Gn=rn,Xn=String,Yn=function(e){if("Symbol"===Gn(e))throw TypeError("Cannot convert a Symbol value to a string");return Xn(e)},$n={},Qn=jr,Jn=Math.max,Zn=Math.min,ei=function(e,t){var r=Qn(e);return r<0?Jn(r+t,0):Zn(r,t)},ti=Q,ri=ei,ni=Vr,ii=function(e){return function(t,r,n){var i,o=ti(t),a=ni(o),s=ri(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},oi={includes:ii(!0),indexOf:ii(!1)},ai={},si=Je,li=Q,ci=oi.indexOf,ui=ai,fi=g([].push),pi=function(e,t){var r,n=li(e),i=0,o=[];for(r in n)!si(ui,r)&&si(n,r)&&fi(o,r);for(;t.length>i;)si(n,r=t[i++])&&(~ci(o,r)||fi(o,r));return o},hi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=pi,vi=hi,gi=Object.keys||function(e){return di(e,vi)},yi=x,mi=Jt,_i=Qt,wi=rr,bi=Q,Si=gi;$n.f=yi&&!mi?Object.defineProperties:function(e,t){wi(e);for(var r,n=bi(t),i=Si(t),o=i.length,a=0;o>a;)_i.f(e,r=i[a++],n[r]);return e};var Ei,Ti=ae("document","documentElement"),Pi=nt,Ri=qe("keys"),ki=function(e){return Ri[e]||(Ri[e]=Pi(e))},Oi=rr,xi=$n,Mi=hi,Ii=ai,Ai=Ti,Ci=Rt,Li="prototype",Di="script",ji=ki("IE_PROTO"),Ni=function(){},Fi=function(e){return"<"+Di+">"+e+"</"+Di+">"},Ui=function(e){e.write(Fi("")),e.close();var t=e.parentWindow.Object;return e=null,t},zi=function(){try{Ei=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;zi="undefined"!=typeof document?document.domain&&Ei?Ui(Ei):(t=Ci("iframe"),r="java"+Di+":",t.style.display="none",Ai.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Fi("document.F=Object")),e.close(),e.F):Ui(Ei);for(var n=Mi.length;n--;)delete zi[Li][Mi[n]];return zi()};Ii[ji]=!0;var Vi=Object.create||function(e,t){var r;return null!==e?(Ni[Li]=Oi(e),r=new Ni,Ni[Li]=null,r[ji]=e):r=zi(),void 0===t?r:xi.f(r,t)},Bi={},Wi=pi,Ki=hi.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(e){return Wi(e,Ki)};var Hi={},qi=ei,Gi=Vr,Xi=Gr,Yi=Array,$i=Math.max,Qi=function(e,t,r){for(var n=Gi(e),i=qi(t,n),o=qi(void 0===r?n:r,n),a=Yi($i(o-i,0)),s=0;i<o;i++,s++)Xi(a,s,e[i]);return a.length=s,a},Ji=w,Zi=Q,eo=Bi.f,to=Qi,ro="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Hi.f=function(e){return ro&&"Window"==Ji(e)?function(e){try{return eo(e)}catch(t){return to(ro)}}(e):eo(Zi(e))};var no={};no.f=Object.getOwnPropertySymbols;var io=gr,oo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:io(e,t,r),e},ao=Qt,so=function(e,t,r){return ao.f(e,t,r)},lo={},co=pt;lo.f=co;var uo,fo,po,ho=te,vo=Je,go=lo,yo=Qt.f,mo=function(e){var t=ho.Symbol||(ho.Symbol={});vo(t,e)||yo(t,e,{value:go.f(e)})},_o=A,wo=ae,bo=pt,So=oo,Eo=function(){var e=wo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=bo("toPrimitive");t&&!t[n]&&So(t,n,(function(e){return _o(r,this)}),{arity:1})},To=rn,Po=Yr?{}.toString:function(){return"[object "+To(this)+"]"},Ro=Yr,ko=Qt.f,Oo=gr,xo=Je,Mo=Po,Io=pt("toStringTag"),Ao=function(e,t,r,n){if(e){var i=r?e:e.prototype;xo(i,Io)||ko(i,Io,{configurable:!0,value:t}),n&&!Ro&&Oo(i,"toString",Mo)}},Co=k,Lo=i.WeakMap,Do=Co(Lo)&&/native code/.test(String(Lo)),jo=i,No=ee,Fo=gr,Uo=Je,zo=Ke,Vo=ki,Bo=ai,Wo="Object already initialized",Ko=jo.TypeError,Ho=jo.WeakMap;if(Do||zo.state){var qo=zo.state||(zo.state=new Ho);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,uo=function(e,t){if(qo.has(e))throw Ko(Wo);return t.facade=e,qo.set(e,t),t},fo=function(e){return qo.get(e)||{}},po=function(e){return qo.has(e)}}else{var Go=Vo("state");Bo[Go]=!0,uo=function(e,t){if(Uo(e,Go))throw Ko(Wo);return t.facade=e,Fo(e,Go,t),t},fo=function(e){return Uo(e,Go)?e[Go]:{}},po=function(e){return Uo(e,Go)}}var Xo={set:uo,get:fo,has:po,enforce:function(e){return po(e)?fo(e):uo(e,{})},getterFor:function(e){return function(t){var r;if(!No(t)||(r=fo(t)).type!==e)throw Ko("Incompatible receiver, "+e+" required");return r}}},Yo=$t,$o=K,Qo=Ye,Jo=Vr,Zo=On,ea=g([].push),ta=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var p,h,d=Qo(l),v=$o(d),g=Yo(c,u),y=Jo(v),m=0,_=f||Zo,w=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(h=g(p=v[m],m,d),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:ea(w,p)}else switch(e){case 4:return!1;case 7:ea(w,p)}return o?-1:n||i?i:w}},ra={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},na=Or,ia=i,oa=A,aa=g,sa=x,la=_e,ca=o,ua=Je,fa=se,pa=rr,ha=Q,da=St,va=Yn,ga=U,ya=Vi,ma=gi,_a=Bi,wa=Hi,ba=no,Sa=O,Ea=Qt,Ta=$n,Pa=C,Ra=oo,ka=so,Oa=qe,xa=ai,Ma=nt,Ia=pt,Aa=lo,Ca=mo,La=Eo,Da=Ao,ja=Xo,Na=ra.forEach,Fa=ki("hidden"),Ua="Symbol",za="prototype",Va=ja.set,Ba=ja.getterFor(Ua),Wa=Object[za],Ka=ia.Symbol,Ha=Ka&&Ka[za],qa=ia.TypeError,Ga=ia.QObject,Xa=Sa.f,Ya=Ea.f,$a=wa.f,Qa=Pa.f,Ja=aa([].push),Za=Oa("symbols"),es=Oa("op-symbols"),ts=Oa("wks"),rs=!Ga||!Ga[za]||!Ga[za].findChild,ns=sa&&ca((function(){return 7!=ya(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Xa(Wa,t);n&&delete Wa[t],Ya(e,t,r),n&&e!==Wa&&Ya(Wa,t,n)}:Ya,is=function(e,t){var r=Za[e]=ya(Ha);return Va(r,{type:Ua,tag:e,description:t}),sa||(r.description=t),r},os=function(e,t,r){e===Wa&&os(es,t,r),pa(e);var n=da(t);return pa(r),ua(Za,n)?(r.enumerable?(ua(e,Fa)&&e[Fa][n]&&(e[Fa][n]=!1),r=ya(r,{enumerable:ga(0,!1)})):(ua(e,Fa)||Ya(e,Fa,ga(1,{})),e[Fa][n]=!0),ns(e,n,r)):Ya(e,n,r)},as=function(e,t){pa(e);var r=ha(t),n=ma(r).concat(us(r));return Na(n,(function(t){sa&&!oa(ss,r,t)||os(e,t,r[t])})),e},ss=function(e){var t=da(e),r=oa(Qa,this,t);return!(this===Wa&&ua(Za,t)&&!ua(es,t))&&(!(r||!ua(this,t)||!ua(Za,t)||ua(this,Fa)&&this[Fa][t])||r)},ls=function(e,t){var r=ha(e),n=da(t);if(r!==Wa||!ua(Za,n)||ua(es,n)){var i=Xa(r,n);return!i||!ua(Za,n)||ua(r,Fa)&&r[Fa][n]||(i.enumerable=!0),i}},cs=function(e){var t=$a(ha(e)),r=[];return Na(t,(function(e){ua(Za,e)||ua(xa,e)||Ja(r,e)})),r},us=function(e){var t=e===Wa,r=$a(t?es:ha(e)),n=[];return Na(r,(function(e){!ua(Za,e)||t&&!ua(Wa,e)||Ja(n,Za[e])})),n};la||(Ka=function(){if(fa(Ha,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?va(arguments[0]):void 0,t=Ma(e),r=function(e){this===Wa&&oa(r,es,e),ua(this,Fa)&&ua(this[Fa],t)&&(this[Fa][t]=!1),ns(this,t,ga(1,e))};return sa&&rs&&ns(Wa,t,{configurable:!0,set:r}),is(t,e)},Ra(Ha=Ka[za],"toString",(function(){return Ba(this).tag})),Ra(Ka,"withoutSetter",(function(e){return is(Ma(e),e)})),Pa.f=ss,Ea.f=os,Ta.f=as,Sa.f=ls,_a.f=wa.f=cs,ba.f=us,Aa.f=function(e){return is(Ia(e),e)},sa&&ka(Ha,"description",{configurable:!0,get:function(){return Ba(this).description}})),na({global:!0,constructor:!0,wrap:!0,forced:!la,sham:!la},{Symbol:Ka}),Na(ma(ts),(function(e){Ca(e)})),na({target:Ua,stat:!0,forced:!la},{useSetter:function(){rs=!0},useSimple:function(){rs=!1}}),na({target:"Object",stat:!0,forced:!la,sham:!sa},{create:function(e,t){return void 0===t?ya(e):as(ya(e),t)},defineProperty:os,defineProperties:as,getOwnPropertyDescriptor:ls}),na({target:"Object",stat:!0,forced:!la},{getOwnPropertyNames:cs}),La(),Da(Ka,Ua),xa[Fa]=!0;var fs=_e&&!!Symbol.for&&!!Symbol.keyFor,ps=Or,hs=ae,ds=Je,vs=Yn,gs=qe,ys=fs,ms=gs("string-to-symbol-registry"),_s=gs("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{for:function(e){var t=vs(e);if(ds(ms,t))return ms[t];var r=hs("Symbol")(t);return ms[t]=r,_s[r]=t,r}});var ws=Or,bs=Je,Ss=Pe,Es=ke,Ts=fs,Ps=qe("symbol-to-string-registry");ws({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(e){if(!Ss(e))throw TypeError(Es(e)+" is not a symbol");if(bs(Ps,e))return Ps[e]}});var Rs=g([].slice),ks=Mr,Os=k,xs=w,Ms=Yn,Is=g([].push),As=Or,Cs=ae,Ls=f,Ds=A,js=g,Ns=o,Fs=k,Us=Pe,zs=Rs,Vs=function(e){if(Os(e))return e;if(ks(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Is(r,i):"number"!=typeof i&&"Number"!=xs(i)&&"String"!=xs(i)||Is(r,Ms(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(ks(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Bs=_e,Ws=String,Ks=Cs("JSON","stringify"),Hs=js(/./.exec),qs=js("".charAt),Gs=js("".charCodeAt),Xs=js("".replace),Ys=js(1..toString),$s=/[\uD800-\uDFFF]/g,Qs=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,Zs=!Bs||Ns((function(){var e=Cs("Symbol")();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))})),el=Ns((function(){return'"\\udf06\\ud834"'!==Ks("\udf06\ud834")||'"\\udead"'!==Ks("\udead")})),tl=function(e,t){var r=zs(arguments),n=Vs(t);if(Fs(n)||void 0!==e&&!Us(e))return r[1]=function(e,t){if(Fs(n)&&(t=Ds(n,this,Ws(e),t)),!Us(t))return t},Ls(Ks,null,r)},rl=function(e,t,r){var n=qs(r,t-1),i=qs(r,t+1);return Hs(Qs,e)&&!Hs(Js,i)||Hs(Js,e)&&!Hs(Qs,n)?"\\u"+Ys(Gs(e,0),16):e};Ks&&As({target:"JSON",stat:!0,arity:3,forced:Zs||el},{stringify:function(e,t,r){var n=zs(arguments),i=Ls(Zs?tl:Ks,null,n);return el&&"string"==typeof i?Xs(i,$s,rl):i}});var nl=no,il=Ye;Or({target:"Object",stat:!0,forced:!_e||o((function(){nl.f(1)}))},{getOwnPropertySymbols:function(e){var t=nl.f;return t?t(il(e)):[]}}),mo("asyncIterator"),mo("hasInstance"),mo("isConcatSpreadable"),mo("iterator"),mo("match"),mo("matchAll"),mo("replace"),mo("search"),mo("species"),mo("split");var ol=Eo;mo("toPrimitive"),ol();var al=ae,sl=Ao;mo("toStringTag"),sl(al("Symbol"),"Symbol"),mo("unscopables"),Ao(i.JSON,"JSON",!0);var ll,cl,ul,fl=te.Symbol,pl={},hl=x,dl=Je,vl=Function.prototype,gl=hl&&Object.getOwnPropertyDescriptor,yl=dl(vl,"name"),ml={EXISTS:yl,PROPER:yl&&"something"===function(){}.name,CONFIGURABLE:yl&&(!hl||hl&&gl(vl,"name").configurable)},_l=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wl=Je,bl=k,Sl=Ye,El=_l,Tl=ki("IE_PROTO"),Pl=Object,Rl=Pl.prototype,kl=El?Pl.getPrototypeOf:function(e){var t=Sl(e);if(wl(t,Tl))return t[Tl];var r=t.constructor;return bl(r)&&t instanceof r?r.prototype:t instanceof Pl?Rl:null},Ol=o,xl=k,Ml=ee,Il=Vi,Al=kl,Cl=oo,Ll=pt("iterator"),Dl=!1;[].keys&&("next"in(ul=[].keys())?(cl=Al(Al(ul)))!==Object.prototype&&(ll=cl):Dl=!0);var jl=!Ml(ll)||Ol((function(){var e={};return ll[Ll].call(e)!==e}));xl((ll=jl?{}:Il(ll))[Ll])||Cl(ll,Ll,(function(){return this}));var Nl={IteratorPrototype:ll,BUGGY_SAFARI_ITERATORS:Dl},Fl=Nl.IteratorPrototype,Ul=Vi,zl=U,Vl=Ao,Bl=pl,Wl=function(){return this},Kl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ul(Fl,{next:zl(+!n,r)}),Vl(e,i,!1,!0),Bl[i]=Wl,e},Hl=g,ql=Ie,Gl=k,Xl=String,Yl=TypeError,$l=function(e,t,r){try{return Hl(ql(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ql=rr,Jl=function(e){if("object"==typeof e||Gl(e))return e;throw Yl("Can't set "+Xl(e)+" as a prototype")},Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=$l(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ql(r),Jl(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=Or,tc=A,rc=ml,nc=Kl,ic=kl,oc=Ao,ac=oo,sc=pl,lc=Nl,cc=rc.PROPER,uc=lc.BUGGY_SAFARI_ITERATORS,fc=pt("iterator"),pc="keys",hc="values",dc="entries",vc=function(){return this},gc=function(e,t,r,n,i,o,a){nc(r,t,n);var s,l,c,u=function(e){if(e===i&&v)return v;if(!uc&&e in h)return h[e];switch(e){case pc:case hc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[fc]||h["@@iterator"]||i&&h[i],v=!uc&&d||u(i),g="Array"==t&&h.entries||d;if(g&&(s=ic(g.call(new e)))!==Object.prototype&&s.next&&(oc(s,f,!0,!0),sc[f]=vc),cc&&i==hc&&d&&d.name!==hc&&(p=!0,v=function(){return tc(d,this)}),i)if(l={values:u(hc),keys:o?v:u(pc),entries:u(dc)},a)for(c in l)(uc||p||!(c in h))&&ac(h,c,l[c]);else ec({target:t,proto:!0,forced:uc||p},l);return a&&h[fc]!==v&&ac(h,fc,v,{name:i}),sc[t]=v,l},yc=function(e,t){return{value:e,done:t}},mc=Q,_c=pl,wc=Xo;Qt.f;var bc=gc,Sc=yc,Ec="Array Iterator",Tc=wc.set,Pc=wc.getterFor(Ec);bc(Array,"Array",(function(e,t){Tc(this,{type:Ec,target:mc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Sc(void 0,!0)):Sc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),_c.Arguments=_c.Array;var Rc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kc=i,Oc=rn,xc=gr,Mc=pl,Ic=pt("toStringTag");for(var Ac in Rc){var Cc=kc[Ac],Lc=Cc&&Cc.prototype;Lc&&Oc(Lc)!==Ic&&xc(Lc,Ic,Ac),Mc[Ac]=Mc.Array}var Dc=fl;mo("dispose");var jc=Dc;mo("asyncDispose");var Nc=Or,Fc=g,Uc=ae("Symbol"),zc=Uc.keyFor,Vc=Fc(Uc.prototype.valueOf);Nc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==zc(Vc(e))}catch(t){return!1}}});for(var Bc=Or,Wc=qe,Kc=ae,Hc=g,qc=Pe,Gc=pt,Xc=Kc("Symbol"),Yc=Xc.isWellKnown,$c=Kc("Object","getOwnPropertyNames"),Qc=Hc(Xc.prototype.valueOf),Jc=Wc("wks"),Zc=0,eu=$c(Xc),tu=eu.length;Zc<tu;Zc++)try{var ru=eu[Zc];qc(Xc[ru])&&Gc(ru)}catch(vj){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=Qc(e),r=0,n=$c(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(vj){}return!1}}),mo("matcher"),mo("metadataKey"),mo("observable"),mo("metadata"),mo("patternMatch"),mo("replaceAll");var nu=jc,iu=r(nu),ou=g,au=jr,su=Yn,lu=X,cu=ou("".charAt),uu=ou("".charCodeAt),fu=ou("".slice),pu=function(e){return function(t,r){var n,i,o=su(lu(t)),a=au(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=uu(o,a))<55296||n>56319||a+1===s||(i=uu(o,a+1))<56320||i>57343?e?cu(o,a):n:e?fu(o,a,a+2):i-56320+(n-55296<<10)+65536}},hu={codeAt:pu(!1),charAt:pu(!0)},du=hu.charAt,vu=Yn,gu=Xo,yu=gc,mu=yc,_u="String Iterator",wu=gu.set,bu=gu.getterFor(_u);yu(String,"String",(function(e){wu(this,{type:_u,string:vu(e),index:0})}),(function(){var e,t=bu(this),r=t.string,n=t.index;return n>=r.length?mu(void 0,!0):(e=du(r,n),t.index+=e.length,mu(e,!1))}));var Su=rn,Eu=Le,Tu=H,Pu=pl,Ru=pt("iterator"),ku=function(e){if(!Tu(e))return Eu(e,Ru)||Eu(e,"@@iterator")||Pu[Su(e)]},Ou=ku,xu=r(Ou),Mu=x,Iu=Mr,Au=TypeError,Cu=Object.getOwnPropertyDescriptor,Lu=Mu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(vj){return vj instanceof TypeError}}()?function(e,t){if(Iu(e)&&!Cu(e,"length").writable)throw Au("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Du=Ye,ju=Vr,Nu=Lu,Fu=Wr;Or({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(vj){return vj instanceof TypeError}}()},{push:function(e){var t=Du(this),r=ju(t),n=arguments.length;Fu(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return Nu(t,r),r}});var Uu=te,zu=function(e){return Uu[e+"Prototype"]},Vu=zu("Array").push,Bu=se,Wu=Vu,Ku=Array.prototype,Hu=r((function(e){var t=e.push;return e===Ku||Bu(Ku,e)&&t===Ku.push?Wu:t}));var qu=Or,Gu=Mr,Xu=bn,Yu=ee,$u=ei,Qu=Vr,Ju=Q,Zu=Gr,ef=pt,tf=Rs,rf=An("slice"),nf=ef("species"),of=Array,af=Math.max;qu({target:"Array",proto:!0,forced:!rf},{slice:function(e,t){var r,n,i,o=Ju(this),a=Qu(o),s=$u(e,a),l=$u(void 0===t?a:t,a);if(Gu(o)&&(r=o.constructor,(Xu(r)&&(r===of||Gu(r.prototype))||Yu(r)&&null===(r=r[nf]))&&(r=void 0),r===of||void 0===r))return tf(o,s,l);for(n=new(void 0===r?of:r)(af(l-s,0)),i=0;s<l;s++,i++)s in o&&Zu(n,i,o[s]);return n.length=i,n}});var sf=zu("Array").slice,lf=se,cf=sf,uf=Array.prototype,ff=function(e){var t=e.slice;return e===uf||lf(uf,e)&&t===uf.slice?cf:t},pf=r(ff),hf=A,df=rr,vf=Le,gf=function(e,t,r){var n,i;df(e);try{if(!(n=vf(e,"return"))){if("throw"===t)throw r;return r}n=hf(n,e)}catch(vj){i=!0,n=vj}if("throw"===t)throw r;if(i)throw n;return df(n),r},yf=rr,mf=gf,_f=pl,wf=pt("iterator"),bf=Array.prototype,Sf=function(e){return void 0!==e&&(_f.Array===e||bf[wf]===e)},Ef=A,Tf=Ie,Pf=rr,Rf=ke,kf=ku,Of=TypeError,xf=function(e,t){var r=arguments.length<2?kf(e):t;if(Tf(r))return Pf(Ef(r,e));throw Of(Rf(e)+" is not iterable")},Mf=$t,If=A,Af=Ye,Cf=function(e,t,r,n){try{return n?t(yf(r)[0],r[1]):t(r)}catch(vj){mf(e,"throw",vj)}},Lf=Sf,Df=bn,jf=Vr,Nf=Gr,Ff=xf,Uf=ku,zf=Array,Vf=function(e){var t=Af(e),r=Df(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Mf(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,p=Uf(t),h=0;if(!p||this===zf&&Lf(p))for(a=jf(t),s=r?new this(a):zf(a);a>h;h++)f=o?i(t[h],h):t[h],Nf(s,h,f);else for(u=(c=Ff(t,p)).next,s=r?new this:[];!(l=If(u,c)).done;h++)f=o?Cf(c,i,[l.value,h],!0):l.value,Nf(s,h,f);return s.length=h,s},Bf=pt("iterator"),Wf=!1;try{var Kf=0,Hf={next:function(){return{done:!!Kf++}},return:function(){Wf=!0}};Hf[Bf]=function(){return this},Array.from(Hf,(function(){throw 2}))}catch(vj){}var qf=function(e,t){if(!t&&!Wf)return!1;var r=!1;try{var n={};n[Bf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(vj){}return r},Gf=Vf;Or({target:"Array",stat:!0,forced:!qf((function(e){Array.from(e)}))},{from:Gf});var Xf=te.Array.from,Yf=r(Xf);function $f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qf(e,t){var r;if(e){if("string"==typeof e)return $f(e,t);var n=pf(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Yf(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$f(e,t):void 0}}function Jf(e,t){return function(e){if(Ar(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==iu&&xu(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(Hu(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Qf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zf=Ye,ep=gi;Or({target:"Object",stat:!0,forced:o((function(){ep(1)}))},{keys:function(e){return ep(Zf(e))}});var tp=te.Object.keys,rp=r(tp),np=te.Object.getOwnPropertySymbols,ip=r(np),op=ra.filter;Or({target:"Array",proto:!0,forced:!An("filter")},{filter:function(e){return op(this,e,arguments.length>1?arguments[1]:void 0)}});var ap=zu("Array").filter,sp=se,lp=ap,cp=Array.prototype,up=function(e){var t=e.filter;return e===cp||sp(cp,e)&&t===cp.filter?lp:t},fp=r(up),pp={exports:{}},hp=Or,dp=o,vp=Q,gp=O.f,yp=x;hp({target:"Object",stat:!0,forced:!yp||dp((function(){gp(1)})),sham:!yp},{getOwnPropertyDescriptor:function(e,t){return gp(vp(e),t)}});var mp=te.Object,_p=pp.exports=function(e,t){return mp.getOwnPropertyDescriptor(e,t)};mp.getOwnPropertyDescriptor.sham&&(_p.sham=!0);var wp=pp.exports,bp=r(wp),Sp=o,Ep=function(e,t){var r=[][e];return!!r&&Sp((function(){r.call(null,t||function(){return 1},1)}))},Tp=ra.forEach,Pp=Ep("forEach")?[].forEach:function(e){return Tp(this,e,arguments.length>1?arguments[1]:void 0)};Or({target:"Array",proto:!0,forced:[].forEach!=Pp},{forEach:Pp});var Rp=zu("Array").forEach,kp=rn,Op=Je,xp=se,Mp=Rp,Ip=Array.prototype,Ap={DOMTokenList:!0,NodeList:!0},Cp=function(e){var t=e.forEach;return e===Ip||xp(Ip,e)&&t===Ip.forEach||Op(Ap,kp(e))?Mp:t},Lp=r(Cp),Dp=ae,jp=Bi,Np=no,Fp=rr,Up=g([].concat),zp=Dp("Reflect","ownKeys")||function(e){var t=jp.f(Fp(e)),r=Np.f;return r?Up(t,r(e)):t},Vp=zp,Bp=Q,Wp=O,Kp=Gr;Or({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Bp(e),i=Wp.f,o=Vp(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Kp(a,t,r);return a}});var Hp=te.Object.getOwnPropertyDescriptors,qp=r(Hp),Gp={exports:{}},Xp=Or,Yp=x,$p=$n.f;Xp({target:"Object",stat:!0,forced:Object.defineProperties!==$p,sham:!Yp},{defineProperties:$p});var Qp=te.Object,Jp=Gp.exports=function(e,t){return Qp.defineProperties(e,t)};Qp.defineProperties.sham&&(Jp.sham=!0);var Zp=Gp.exports,eh=r(Zp),th={exports:{}},rh=Or,nh=x,ih=Qt.f;rh({target:"Object",stat:!0,forced:Object.defineProperty!==ih,sham:!nh},{defineProperty:ih});var oh=te.Object,ah=th.exports=function(e,t,r){return oh.defineProperty(e,t,r)};oh.defineProperty.sham&&(ah.sham=!0);var sh=th.exports,lh=r(sh),ch=lo.f("iterator"),uh=r(ch);function fh(e){return(fh="function"==typeof iu&&"symbol"==typeof uh?function(e){return typeof e}:function(e){return e&&"function"==typeof iu&&e.constructor===iu&&e!==iu.prototype?"symbol":typeof e})(e)}var ph=lo.f("toPrimitive"),hh=r(ph);function dh(e){var t=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[hh];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fh(t)?t:String(t)}function vh(e,t,r){return(t=dh(t))in e?lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gh(e,t){var r=rp(e);if(ip){var n=ip(e);t&&(n=fp(n).call(n,(function(t){return bp(e,t).enumerable}))),Hu(r).apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?Lp(r=gh(Object(i),!0)).call(r,(function(t){vh(e,t,i[t])})):qp?eh(e,qp(i)):Lp(n=gh(Object(i))).call(n,(function(t){lh(e,t,bp(i,t))}))}return e}Or({target:"Object",stat:!0,sham:!x},{create:Vi});var mh=te.Object,_h=function(e,t){return mh.create(e,t)},wh=r(_h),bh=Ye,Sh=kl,Eh=_l;Or({target:"Object",stat:!0,forced:o((function(){Sh(1)})),sham:!Eh},{getPrototypeOf:function(e){return Sh(bh(e))}});var Th=r(te.Object.getPrototypeOf);Or({target:"Object",stat:!0},{setPrototypeOf:Zl});var Ph=r(te.Object.setPrototypeOf),Rh=Je,kh=zp,Oh=O,xh=Qt,Mh=ee,Ih=gr,Ah=Error,Ch=g("".replace),Lh=String(Ah("zxcasd").stack),Dh=/\n\s*at [^:]*:[^\n]*/,jh=Dh.test(Lh),Nh=U,Fh=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Nh(1,7)),7!==e.stack)})),Uh=gr,zh=function(e,t){if(jh&&"string"==typeof e&&!Ah.prepareStackTrace)for(;t--;)e=Ch(e,Dh,"");return e},Vh=Fh,Bh=Error.captureStackTrace,Wh=$t,Kh=A,Hh=rr,qh=ke,Gh=Sf,Xh=Vr,Yh=se,$h=xf,Qh=ku,Jh=gf,Zh=TypeError,ed=function(e,t){this.stopped=e,this.result=t},td=ed.prototype,rd=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Wh(t,u),g=function(e){return n&&Jh(n,"normal",e),new ed(!0,e)},y=function(e){return f?(Hh(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(i=Qh(e)))throw Zh(qh(e)+" is not iterable");if(Gh(i)){for(o=0,a=Xh(e);a>o;o++)if((s=y(e[o]))&&Yh(td,s))return s;return new ed(!1)}n=$h(e,i)}for(l=p?e.next:n.next;!(c=Kh(l,n)).done;){try{s=y(c.value)}catch(vj){Jh(n,"throw",vj)}if("object"==typeof s&&s&&Yh(td,s))return s}return new ed(!1)},nd=Yn,id=Or,od=se,ad=kl,sd=Zl,ld=function(e,t,r){for(var n=kh(t),i=xh.f,o=Oh.f,a=0;a<n.length;a++){var s=n[a];Rh(e,s)||r&&Rh(r,s)||i(e,s,o(t,s))}},cd=Vi,ud=gr,fd=U,pd=function(e,t){Mh(t)&&"cause"in t&&Ih(e,"cause",t.cause)},hd=function(e,t,r,n){Vh&&(Bh?Bh(e,t):Uh(e,"stack",zh(r,n)))},dd=rd,vd=function(e,t){return void 0===e?arguments.length<2?"":t:nd(e)},gd=pt("toStringTag"),yd=Error,md=[].push,_d=function(e,t){var r,n=od(wd,this);sd?r=sd(yd(),n?ad(this):wd):(r=n?this:cd(wd),ud(r,gd,"Error")),void 0!==t&&ud(r,"message",vd(t)),hd(r,_d,r.stack,1),arguments.length>2&&pd(r,arguments[2]);var i=[];return dd(e,md,{that:i}),ud(r,"errors",i),r};sd?sd(_d,yd):ld(_d,yd,{name:!0});var wd=_d.prototype=cd(yd.prototype,{constructor:fd(1,_d),message:fd(1,""),name:fd(1,"AggregateError")});id({global:!0,constructor:!0,arity:2},{AggregateError:_d});var bd,Sd,Ed,Td,Pd="undefined"!=typeof process&&"process"==w(process),Rd=ae,kd=so,Od=x,xd=pt("species"),Md=function(e){var t=Rd(e);Od&&t&&!t[xd]&&kd(t,xd,{configurable:!0,get:function(){return this}})},Id=se,Ad=TypeError,Cd=function(e,t){if(Id(t,e))return e;throw Ad("Incorrect invocation")},Ld=bn,Dd=ke,jd=TypeError,Nd=function(e){if(Ld(e))return e;throw jd(Dd(e)+" is not a constructor")},Fd=rr,Ud=Nd,zd=H,Vd=pt("species"),Bd=function(e,t){var r,n=Fd(e).constructor;return void 0===n||zd(r=Fd(n)[Vd])?t:Ud(r)},Wd=TypeError,Kd=function(e,t){if(e<t)throw Wd("Not enough arguments");return e},Hd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),qd=i,Gd=f,Xd=$t,Yd=k,$d=Je,Qd=o,Jd=Ti,Zd=Rs,ev=Rt,tv=Kd,rv=Hd,nv=Pd,iv=qd.setImmediate,ov=qd.clearImmediate,av=qd.process,sv=qd.Dispatch,lv=qd.Function,cv=qd.MessageChannel,uv=qd.String,fv=0,pv={},hv="onreadystatechange";Qd((function(){bd=qd.location}));var dv=function(e){if($d(pv,e)){var t=pv[e];delete pv[e],t()}},vv=function(e){return function(){dv(e)}},gv=function(e){dv(e.data)},yv=function(e){qd.postMessage(uv(e),bd.protocol+"//"+bd.host)};iv&&ov||(iv=function(e){tv(arguments.length,1);var t=Yd(e)?e:lv(e),r=Zd(arguments,1);return pv[++fv]=function(){Gd(t,void 0,r)},Sd(fv),fv},ov=function(e){delete pv[e]},nv?Sd=function(e){av.nextTick(vv(e))}:sv&&sv.now?Sd=function(e){sv.now(vv(e))}:cv&&!rv?(Td=(Ed=new cv).port2,Ed.port1.onmessage=gv,Sd=Xd(Td.postMessage,Td)):qd.addEventListener&&Yd(qd.postMessage)&&!qd.importScripts&&bd&&"file:"!==bd.protocol&&!Qd(yv)?(Sd=yv,qd.addEventListener("message",gv,!1)):Sd=hv in ev("script")?function(e){Jd.appendChild(ev("script"))[hv]=function(){Jd.removeChild(this),dv(e)}}:function(e){setTimeout(vv(e),0)});var mv={set:iv,clear:ov},_v=function(){this.head=null,this.tail=null};_v.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var wv,bv,Sv,Ev,Tv,Pv=_v,Rv=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,kv=/web0s(?!.*chrome)/i.test(le),Ov=i,xv=$t,Mv=O.f,Iv=mv.set,Av=Pv,Cv=Hd,Lv=Rv,Dv=kv,jv=Pd,Nv=Ov.MutationObserver||Ov.WebKitMutationObserver,Fv=Ov.document,Uv=Ov.process,zv=Ov.Promise,Vv=Mv(Ov,"queueMicrotask"),Bv=Vv&&Vv.value;if(!Bv){var Wv=new Av,Kv=function(){var e,t;for(jv&&(e=Uv.domain)&&e.exit();t=Wv.get();)try{t()}catch(vj){throw Wv.head&&wv(),vj}e&&e.enter()};Cv||jv||Dv||!Nv||!Fv?!Lv&&zv&&zv.resolve?((Ev=zv.resolve(void 0)).constructor=zv,Tv=xv(Ev.then,Ev),wv=function(){Tv(Kv)}):jv?wv=function(){Uv.nextTick(Kv)}:(Iv=xv(Iv,Ov),wv=function(){Iv(Kv)}):(bv=!0,Sv=Fv.createTextNode(""),new Nv(Kv).observe(Sv,{characterData:!0}),wv=function(){Sv.data=bv=!bv}),Bv=function(e){Wv.head||wv(),Wv.add(e)}}var Hv=Bv,qv=function(e){try{return{error:!1,value:e()}}catch(vj){return{error:!0,value:vj}}},Gv=i.Promise,Xv="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Yv=!Xv&&!Pd&&"object"==typeof window&&"object"==typeof document,$v=i,Qv=Gv,Jv=k,Zv=qt,eg=sn,tg=pt,rg=Yv,ng=Xv,ig=ve,og=Qv&&Qv.prototype,ag=tg("species"),sg=!1,lg=Jv($v.PromiseRejectionEvent),cg={CONSTRUCTOR:Zv("Promise",(function(){var e=eg(Qv),t=e!==String(Qv);if(!t&&66===ig)return!0;if(!og.catch||!og.finally)return!0;if(!ig||ig<51||!/native code/.test(e)){var r=new Qv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[ag]=n,!(sg=r.then((function(){}))instanceof n))return!0}return!t&&(rg||ng)&&!lg})),REJECTION_EVENT:lg,SUBCLASSING:sg},ug={},fg=Ie,pg=TypeError,hg=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw pg("Bad Promise constructor");t=e,r=n})),this.resolve=fg(t),this.reject=fg(r)};ug.f=function(e){return new hg(e)};var dg,vg,gg=Or,yg=Pd,mg=i,_g=A,wg=oo,bg=Ao,Sg=Md,Eg=Ie,Tg=k,Pg=ee,Rg=Cd,kg=Bd,Og=mv.set,xg=Hv,Mg=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(vj){}},Ig=qv,Ag=Pv,Cg=Xo,Lg=Gv,Dg=cg,jg=ug,Ng="Promise",Fg=Dg.CONSTRUCTOR,Ug=Dg.REJECTION_EVENT,zg=Cg.getterFor(Ng),Vg=Cg.set,Bg=Lg&&Lg.prototype,Wg=Lg,Kg=Bg,Hg=mg.TypeError,qg=mg.document,Gg=mg.process,Xg=jg.f,Yg=Xg,$g=!!(qg&&qg.createEvent&&mg.dispatchEvent),Qg="unhandledrejection",Jg=function(e){var t;return!(!Pg(e)||!Tg(t=e.then))&&t},Zg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&iy(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(Hg("Promise-chain cycle")):(n=Jg(r))?_g(n,r,l,c):l(r)):c(o)}catch(vj){u&&!i&&u.exit(),c(vj)}},ey=function(e,t){e.notified||(e.notified=!0,xg((function(){for(var r,n=e.reactions;r=n.get();)Zg(r,e);e.notified=!1,t&&!e.rejection&&ry(e)})))},ty=function(e,t,r){var n,i;$g?((n=qg.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),mg.dispatchEvent(n)):n={promise:t,reason:r},!Ug&&(i=mg["on"+e])?i(n):e===Qg&&Mg("Unhandled promise rejection",r)},ry=function(e){_g(Og,mg,(function(){var t,r=e.facade,n=e.value;if(ny(e)&&(t=Ig((function(){yg?Gg.emit("unhandledRejection",n,r):ty(Qg,r,n)})),e.rejection=yg||ny(e)?2:1,t.error))throw t.value}))},ny=function(e){return 1!==e.rejection&&!e.parent},iy=function(e){_g(Og,mg,(function(){var t=e.facade;yg?Gg.emit("rejectionHandled",t):ty("rejectionhandled",t,e.value)}))},oy=function(e,t,r){return function(n){e(t,n,r)}},ay=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,ey(e,!0))},sy=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Hg("Promise can't be resolved itself");var n=Jg(t);n?xg((function(){var r={done:!1};try{_g(n,t,oy(sy,r,e),oy(ay,r,e))}catch(vj){ay(r,vj,e)}})):(e.value=t,e.state=1,ey(e,!1))}catch(vj){ay({done:!1},vj,e)}}};Fg&&(Kg=(Wg=function(e){Rg(this,Kg),Eg(e),_g(dg,this);var t=zg(this);try{e(oy(sy,t),oy(ay,t))}catch(vj){ay(t,vj)}}).prototype,(dg=function(e){Vg(this,{type:Ng,done:!1,notified:!1,parent:!1,reactions:new Ag,rejection:!1,state:0,value:void 0})}).prototype=wg(Kg,"then",(function(e,t){var r=zg(this),n=Xg(kg(this,Wg));return r.parent=!0,n.ok=!Tg(e)||e,n.fail=Tg(t)&&t,n.domain=yg?Gg.domain:void 0,0==r.state?r.reactions.add(n):xg((function(){Zg(n,r)})),n.promise})),vg=function(){var e=new dg,t=zg(e);this.promise=e,this.resolve=oy(sy,t),this.reject=oy(ay,t)},jg.f=Xg=function(e){return e===Wg||undefined===e?new vg(e):Yg(e)}),gg({global:!0,constructor:!0,wrap:!0,forced:Fg},{Promise:Wg}),bg(Wg,Ng,!1,!0),Sg(Ng);var ly=Gv,cy=cg.CONSTRUCTOR||!qf((function(e){ly.all(e).then(void 0,(function(){}))})),uy=A,fy=Ie,py=ug,hy=qv,dy=rd;Or({target:"Promise",stat:!0,forced:cy},{all:function(e){var t=this,r=py.f(t),n=r.resolve,i=r.reject,o=hy((function(){var r=fy(t.resolve),o=[],a=0,s=1;dy(e,(function(e){var l=a++,c=!1;s++,uy(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var vy=Or,gy=cg.CONSTRUCTOR;Gv&&Gv.prototype,vy({target:"Promise",proto:!0,forced:gy,real:!0},{catch:function(e){return this.then(void 0,e)}});var yy=A,my=Ie,_y=ug,wy=qv,by=rd;Or({target:"Promise",stat:!0,forced:cy},{race:function(e){var t=this,r=_y.f(t),n=r.reject,i=wy((function(){var i=my(t.resolve);by(e,(function(e){yy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Sy=A,Ey=ug;Or({target:"Promise",stat:!0,forced:cg.CONSTRUCTOR},{reject:function(e){var t=Ey.f(this);return Sy(t.reject,void 0,e),t.promise}});var Ty=rr,Py=ee,Ry=ug,ky=function(e,t){if(Ty(e),Py(t)&&t.constructor===e)return t;var r=Ry.f(e);return(0,r.resolve)(t),r.promise},Oy=Or,xy=Gv,My=cg.CONSTRUCTOR,Iy=ky,Ay=ae("Promise"),Cy=!My;Oy({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Iy(Cy&&this===Ay?xy:this,e)}});var Ly=A,Dy=Ie,jy=ug,Ny=qv,Fy=rd;Or({target:"Promise",stat:!0,forced:cy},{allSettled:function(e){var t=this,r=jy.f(t),n=r.resolve,i=r.reject,o=Ny((function(){var r=Dy(t.resolve),i=[],o=0,a=1;Fy(e,(function(e){var s=o++,l=!1;a++,Ly(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Uy=A,zy=Ie,Vy=ae,By=ug,Wy=qv,Ky=rd,Hy="No one promise resolved";Or({target:"Promise",stat:!0,forced:cy},{any:function(e){var t=this,r=Vy("AggregateError"),n=By.f(t),i=n.resolve,o=n.reject,a=Wy((function(){var n=zy(t.resolve),a=[],s=0,l=1,c=!1;Ky(e,(function(e){var u=s++,f=!1;l++,Uy(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,Hy)))}))})),--l||o(new r(a,Hy))}));return a.error&&o(a.value),n.promise}});var qy=Or,Gy=Gv,Xy=o,Yy=ae,$y=k,Qy=Bd,Jy=ky,Zy=Gy&&Gy.prototype;qy({target:"Promise",proto:!0,real:!0,forced:!!Gy&&Xy((function(){Zy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Qy(this,Yy("Promise")),r=$y(e);return this.then(r?function(r){return Jy(t,e()).then((function(){return r}))}:e,r?function(r){return Jy(t,e()).then((function(){throw r}))}:e)}});var em=te.Promise,tm=ug,rm=qv;Or({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=tm.f(this),r=rm(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var nm=em,im=r(nm),om=Or,am=Mr,sm=g([].reverse),lm=[1,2];om({target:"Array",proto:!0,forced:String(lm)===String(lm.reverse())},{reverse:function(){return am(this)&&(this.length=this.length),sm(this)}});var cm=zu("Array").reverse,um=se,fm=cm,pm=Array.prototype,hm=function(e){var t=e.reverse;return e===pm||um(pm,e)&&t===pm.reverse?fm:t},dm=r(hm);function vm(){vm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=lh||function(e,t,r){e[t]=r.value},i="function"==typeof iu?iu:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof p?t:p,a=wh(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};l(v,o,(function(){return this}));var g=Th&&Th(Th(P([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=d.prototype=p.prototype=wh(v);function m(e){var t;Lp(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==fh(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),Hu(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],Lp(e).call(e,S,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Ph?Ph(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=wh(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=im);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Hu(r).call(r,n);return dm(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Lp(t=this.tryEntries).call(t,E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pf(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function gm(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(vj){return void r(vj)}s.done?t(l):im.resolve(l).then(n,i)}function ym(e){return function(){var t=this,r=arguments;return new im((function(n,i){var o=e.apply(t,r);function a(e){gm(o,n,i,a,s,"next",e)}function s(e){gm(o,n,i,a,s,"throw",e)}a(void 0)}))}}function mm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),lh(e,dh(n.key),n)}}function wm(e,t,r){return t&&_m(e.prototype,t),r&&_m(e,r),lh(e,"prototype",{writable:!1}),e}var bm=g,Sm=Ie,Em=ee,Tm=Je,Pm=Rs,Rm=a,km=Function,Om=bm([].concat),xm=bm([].join),Mm={},Im=Rm?km.bind:function(e){var t=Sm(this),r=t.prototype,n=Pm(arguments,1),i=function(){var r=Om(n,Pm(arguments));return this instanceof i?function(e,t,r){if(!Tm(Mm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Mm[t]=km("C,a","return new C("+xm(n,",")+")")}return Mm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Em(r)&&(i.prototype=r),i},Am=Im;Or({target:"Function",proto:!0,forced:Function.bind!==Am},{bind:Am});var Cm=zu("Function").bind,Lm=se,Dm=Cm,jm=Function.prototype,Nm=function(e){var t=e.bind;return e===jm||Lm(jm,e)&&t===jm.bind?Dm:t},Fm=r(Nm);function Um(e,t){var r;return(Um=Ph?Fm(r=Ph).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function zm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=wh(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lh(e,"prototype",{writable:!1}),t&&Um(e,t)}var Vm=Or,Bm=f,Wm=Im,Km=Nd,Hm=rr,qm=ee,Gm=Vi,Xm=o,Ym=ae("Reflect","construct"),$m=Object.prototype,Qm=[].push,Jm=Xm((function(){function e(){}return!(Ym((function(){}),[],e)instanceof e)})),Zm=!Xm((function(){Ym((function(){}))})),e_=Jm||Zm;Vm({target:"Reflect",stat:!0,forced:e_,sham:e_},{construct:function(e,t){Km(e),Hm(t);var r=arguments.length<3?e:Km(arguments[2]);if(Zm&&!Jm)return Ym(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Bm(Qm,n,t),new(Bm(Wm,e,n))}var i=r.prototype,o=Gm(qm(i)?i:$m),a=Bm(e,o,t);return qm(a)?a:o}});var t_=r(te.Reflect.construct);function r_(e){var t;return(r_=Ph?Fm(t=Th).call(t):function(e){return e.__proto__||Th(e)})(e)}function n_(){if("undefined"==typeof Reflect||!t_)return!1;if(t_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(t_(Boolean,[],(function(){}))),!0}catch(JO){return!1}}function i_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o_(e){var t=n_();return function(){var r,n=r_(e);if(t){var i=r_(this).constructor;r=t_(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===fh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i_(e)}(this,r)}}function a_(e){return function(e){if(Ar(e))return $f(e)}(e)||function(e){if(void 0!==iu&&null!=xu(e)||null!=e["@@iterator"])return Yf(e)}(e)||Qf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s_=zu("Array").concat,l_=se,c_=s_,u_=Array.prototype,f_=r((function(e){var t=e.concat;return e===u_||l_(u_,e)&&t===u_.concat?c_:t})),p_=r(nm),h_=x,d_=g,v_=A,g_=o,y_=gi,m_=no,__=C,w_=Ye,b_=K,S_=Object.assign,E_=Object.defineProperty,T_=d_([].concat),P_=!S_||g_((function(){if(h_&&1!==S_({b:1},S_(E_({},"a",{enumerable:!0,get:function(){E_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=S_({},e)[r]||y_(S_({},t)).join("")!=n}))?function(e,t){for(var r=w_(e),n=arguments.length,i=1,o=m_.f,a=__.f;n>i;)for(var s,l=b_(arguments[i++]),c=o?T_(y_(l),o(l)):y_(l),u=c.length,f=0;u>f;)s=c[f++],h_&&!v_(a,l,s)||(r[s]=l[s]);return r}:S_,R_=P_;Or({target:"Object",stat:!0,arity:2,forced:Object.assign!==R_},{assign:R_});var k_,O_=r(te.Object.assign),x_=window.VePlayer.error,M_=x_.VeError,I_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e[e.EMPTY_RTM_FALLBACK_PARAMETER=211]="EMPTY_RTM_FALLBACK_PARAMETER",e[e.INVALID_LOGGER=220]="INVALID_LOGGER",e}(I_||{});x_.Level;var A_=yh(yh({},I_),x_.ErrorCode),C_=yh(yh({},x_.ERROR_INFO),{},(vh(k_={},210,{messageTextKey:"INVALID_PARAMETER",level:x_.Level.Fatal}),vh(k_,211,{messageTextKey:"EMPTY_RTM_FALLBACK_PARAMETER",level:x_.Level.Warn}),vh(k_,220,{messageTextKey:"INVALID_LOGGER",level:x_.Level.Warn}),k_));function L_(e,t){return new M_(yh({errorCode:e},C_[e]),t)}var D_=Or,j_=oi.indexOf,N_=Ep,F_=E([].indexOf),U_=!!F_&&1/F_([1],1,-0)<0;D_({target:"Array",proto:!0,forced:U_||!N_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return U_?F_(this,e,t)||0:j_(this,e,t)}});var z_=zu("Array").indexOf,V_=se,B_=z_,W_=Array.prototype,K_=function(e){var t=e.indexOf;return e===W_||V_(W_,e)&&t===W_.indexOf?B_:t},H_=r(K_);function q_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=rp(e);for(n=0;n<o.length;n++)r=o[n],H_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(ip){var o=ip(e);for(n=0;n<o.length;n++)r=o[n],H_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var G_=window.VePlayer.DynamicModule,X_=window.VePlayer.load;function Y_(){return $_.apply(this,arguments)}function $_(){return($_=ym(vm().mark((function e(){var t,r;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X_(G_.PluginRtm);case 2:return t=e.sent,r=t.RtmPlugin,e.abrupt("return",r.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q_(){return J_.apply(this,arguments)}function J_(){return J_=ym(vm().mark((function e(){var t,r,n,i=arguments;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:qD.H264,e.next=3,X_(G_.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==qD.H264){e.next=7;break}return e.abrupt("return",n.isSupportedH264());case 7:return e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e)}))),J_.apply(this,arguments)}var Z_=ee,ew=w,tw=pt("match"),rw=function(e){var t;return Z_(e)&&(void 0!==(t=e[tw])?!!t:"RegExp"==ew(e))},nw=TypeError,iw=function(e){if(rw(e))throw nw("The method doesn't accept regular expressions");return e},ow=pt("match"),aw=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ow]=!1,"/./"[e](t)}catch(vj){}}return!1},sw=Or,lw=E,cw=Ur,uw=Yn,fw=iw,pw=X,hw=aw,dw=lw("".startsWith),vw=lw("".slice),gw=Math.min;sw({target:"String",proto:!0,forced:!hw("startsWith")},{startsWith:function(e){var t=uw(pw(this));fw(e);var r=cw(gw(arguments.length>1?arguments[1]:void 0,t.length)),n=uw(e);return dw?dw(t,n,r):vw(t,r,r+n.length)===n}});var yw=zu("String").startsWith,mw=se,_w=yw,ww=String.prototype,bw=r((function(e){var t=e.startsWith;return"string"==typeof e||e===ww||mw(ww,e)&&t===ww.startsWith?_w:t})),Sw=o,Ew=pt("iterator"),Tw=!Sw((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ew]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Pw=g,Rw=2147483647,kw=/[^\0-\u007E]/,Ow=/[.\u3002\uFF0E\uFF61]/g,xw="Overflow: input needs wider integers to process",Mw=RangeError,Iw=Pw(Ow.exec),Aw=Math.floor,Cw=String.fromCharCode,Lw=Pw("".charCodeAt),Dw=Pw([].join),jw=Pw([].push),Nw=Pw("".replace),Fw=Pw("".split),Uw=Pw("".toLowerCase),zw=function(e){return e+22+75*(e<26)},Vw=function(e,t,r){var n=0;for(e=r?Aw(e/700):e>>1,e+=Aw(e/t);e>455;)e=Aw(e/35),n+=36;return Aw(n+36*e/(e+38))},Bw=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Lw(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Lw(e,r++);56320==(64512&o)?jw(t,((1023&i)<<10)+(1023&o)+65536):(jw(t,i),r--)}else jw(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&jw(t,Cw(n));var l=t.length,c=l;for(l&&jw(t,"-");c<i;){var u=Rw;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>Aw((Rw-a)/f))throw Mw(xw);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>Rw)throw Mw(xw);if(n==o){for(var p=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(p<d)break;var v=p-d,g=36-d;jw(t,Cw(zw(d+v%g))),p=Aw(v/g),h+=36}jw(t,Cw(zw(p))),s=Vw(a,f,c==l),a=0,c++}}a++,o++}return Dw(t,"")},Ww=oo,Kw=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Ww(e,n,t[n],r);return e},Hw=Qi,qw=Math.floor,Gw=function(e,t){var r=e.length,n=qw(r/2);return r<8?Xw(e,t):Yw(e,Gw(Hw(e,0,n),t),Gw(Hw(e,n),t),t)},Xw=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Yw=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},$w=Gw,Qw=Or,Jw=i,Zw=A,eb=g,tb=x,rb=Tw,nb=oo,ib=so,ob=Kw,ab=Ao,sb=Kl,lb=Xo,cb=Cd,ub=k,fb=Je,pb=$t,hb=rn,db=rr,vb=ee,gb=Yn,yb=Vi,mb=U,_b=xf,wb=ku,bb=Kd,Sb=$w,Eb=pt("iterator"),Tb="URLSearchParams",Pb=Tb+"Iterator",Rb=lb.set,kb=lb.getterFor(Tb),Ob=lb.getterFor(Pb),xb=Object.getOwnPropertyDescriptor,Mb=function(e){if(!tb)return Jw[e];var t=xb(Jw,e);return t&&t.value},Ib=Mb("fetch"),Ab=Mb("Request"),Cb=Mb("Headers"),Lb=Ab&&Ab.prototype,Db=Cb&&Cb.prototype,jb=Jw.RegExp,Nb=Jw.TypeError,Fb=Jw.decodeURIComponent,Ub=Jw.encodeURIComponent,zb=eb("".charAt),Vb=eb([].join),Bb=eb([].push),Wb=eb("".replace),Kb=eb([].shift),Hb=eb([].splice),qb=eb("".split),Gb=eb("".slice),Xb=/\+/g,Yb=Array(4),$b=function(e){return Yb[e-1]||(Yb[e-1]=jb("((?:%[\\da-f]{2}){"+e+"})","gi"))},Qb=function(e){try{return Fb(e)}catch(vj){return e}},Jb=function(e){var t=Wb(e,Xb," "),r=4;try{return Fb(t)}catch(vj){for(;r;)t=Wb(t,$b(r--),Qb);return t}},Zb=/[!'()~]|%20/g,eS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},tS=function(e){return eS[e]},rS=function(e){return Wb(Ub(e),Zb,tS)},nS=sb((function(e,t){Rb(this,{type:Pb,iterator:_b(kb(e).entries),kind:t})}),"Iterator",(function(){var e=Ob(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),iS=function(e){this.entries=[],this.url=null,void 0!==e&&(vb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===zb(e,0)?Gb(e,1):e:gb(e)))};iS.prototype={type:Tb,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=wb(e);if(l)for(r=(t=_b(e,l)).next;!(n=Zw(r,t)).done;){if(o=(i=_b(db(n.value))).next,(a=Zw(o,i)).done||(s=Zw(o,i)).done||!Zw(o,i).done)throw Nb("Expected sequence with length 2");Bb(this.entries,{key:gb(a.value),value:gb(s.value)})}else for(var c in e)fb(e,c)&&Bb(this.entries,{key:c,value:gb(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=qb(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=qb(t,"="),Bb(this.entries,{key:Jb(Kb(r)),value:Jb(Vb(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Bb(r,rS(e.key)+"="+rS(e.value));return Vb(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var oS=function(){cb(this,aS);var e=Rb(this,new iS(arguments.length>0?arguments[0]:void 0));tb||(this.length=e.entries.length)},aS=oS.prototype;if(ob(aS,{append:function(e,t){bb(arguments.length,2);var r=kb(this);Bb(r.entries,{key:gb(e),value:gb(t)}),tb||this.length++,r.updateURL()},delete:function(e){bb(arguments.length,1);for(var t=kb(this),r=t.entries,n=gb(e),i=0;i<r.length;)r[i].key===n?Hb(r,i,1):i++;tb||(this.length=r.length),t.updateURL()},get:function(e){bb(arguments.length,1);for(var t=kb(this).entries,r=gb(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){bb(arguments.length,1);for(var t=kb(this).entries,r=gb(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Bb(n,t[i].value);return n},has:function(e){bb(arguments.length,1);for(var t=kb(this).entries,r=gb(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){bb(arguments.length,1);for(var r,n=kb(this),i=n.entries,o=!1,a=gb(e),s=gb(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?Hb(i,l--,1):(o=!0,r.value=s));o||Bb(i,{key:a,value:s}),tb||(this.length=i.length),n.updateURL()},sort:function(){var e=kb(this);Sb(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=kb(this).entries,n=pb(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new nS(this,"keys")},values:function(){return new nS(this,"values")},entries:function(){return new nS(this,"entries")}},{enumerable:!0}),nb(aS,Eb,aS.entries,{name:"entries"}),nb(aS,"toString",(function(){return kb(this).serialize()}),{enumerable:!0}),tb&&ib(aS,"size",{get:function(){return kb(this).entries.length},configurable:!0,enumerable:!0}),ab(oS,Tb),Qw({global:!0,constructor:!0,forced:!rb},{URLSearchParams:oS}),!rb&&ub(Cb)){var sS=eb(Db.has),lS=eb(Db.set),cS=function(e){if(vb(e)){var t,r=e.body;if(hb(r)===Tb)return t=e.headers?new Cb(e.headers):new Cb,sS(t,"content-type")||lS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),yb(e,{body:mb(0,gb(r)),headers:mb(0,t)})}return e};if(ub(Ib)&&Qw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Ib(e,arguments.length>1?cS(arguments[1]):{})}}),ub(Ab)){var uS=function(e){return cb(this,Lb),new Ab(e,arguments.length>1?cS(arguments[1]):{})};Lb.constructor=uS,uS.prototype=Lb,Qw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:uS})}}var fS,pS=Or,hS=x,dS=Tw,vS=i,gS=$t,yS=g,mS=oo,_S=so,wS=Cd,bS=Je,SS=P_,ES=Vf,TS=Qi,PS=hu.codeAt,RS=function(e){var t,r,n=[],i=Fw(Nw(Uw(e),Ow,"."),".");for(t=0;t<i.length;t++)r=i[t],jw(n,Iw(kw,r)?"xn--"+Bw(r):r);return Dw(n,".")},kS=Yn,OS=Ao,xS=Kd,MS={URLSearchParams:oS,getState:kb},IS=Xo,AS=IS.set,CS=IS.getterFor("URL"),LS=MS.URLSearchParams,DS=MS.getState,jS=vS.URL,NS=vS.TypeError,FS=vS.parseInt,US=Math.floor,zS=Math.pow,VS=yS("".charAt),BS=yS(/./.exec),WS=yS([].join),KS=yS(1..toString),HS=yS([].pop),qS=yS([].push),GS=yS("".replace),XS=yS([].shift),YS=yS("".split),$S=yS("".slice),QS=yS("".toLowerCase),JS=yS([].unshift),ZS="Invalid scheme",eE="Invalid host",tE="Invalid port",rE=/[a-z]/i,nE=/[\d+-.a-z]/i,iE=/\d/,oE=/^0x/i,aE=/^[0-7]+$/,sE=/^\d+$/,lE=/^[\da-f]+$/i,cE=/[\0\t\n\r #%/:<>?@[\\\]^|]/,uE=/[\0\t\n\r #/:<>?@[\\\]^|]/,fE=/^[\u0000-\u0020]+/,pE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,hE=/[\t\n\r]/g,dE=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)JS(t,e%256),e=US(e/256);return WS(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=KS(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},vE={},gE=SS({},vE,{" ":1,'"':1,"<":1,">":1,"`":1}),yE=SS({},gE,{"#":1,"?":1,"{":1,"}":1}),mE=SS({},yE,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_E=function(e,t){var r=PS(e,0);return r>32&&r<127&&!bS(t,e)?e:encodeURIComponent(e)},wE={ftp:21,file:null,http:80,https:443,ws:80,wss:443},bE=function(e,t){var r;return 2==e.length&&BS(rE,VS(e,0))&&(":"==(r=VS(e,1))||!t&&"|"==r)},SE=function(e){var t;return e.length>1&&bE($S(e,0,2))&&(2==e.length||"/"===(t=VS(e,2))||"\\"===t||"?"===t||"#"===t)},EE=function(e){return"."===e||"%2e"===QS(e)},TE={},PE={},RE={},kE={},OE={},xE={},ME={},IE={},AE={},CE={},LE={},DE={},jE={},NE={},FE={},UE={},zE={},VE={},BE={},WE={},KE={},HE=function(e,t,r){var n,i,o,a=kS(e);if(t){if(i=this.parse(a))throw NS(i);this.searchParams=null}else{if(void 0!==r&&(n=new HE(r,!0)),i=this.parse(a,null,n))throw NS(i);(o=DS(new LS)).bindURL(this),this.searchParams=o}};HE.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||TE,u=0,f="",p=!1,h=!1,d=!1;for(e=kS(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=GS(e,fE,""),e=GS(e,pE,"$1")),e=GS(e,hE,""),n=ES(e);u<=n.length;){switch(i=n[u],c){case TE:if(!i||!BS(rE,i)){if(t)return ZS;c=RE;continue}f+=QS(i),c=PE;break;case PE:if(i&&(BS(nE,i)||"+"==i||"-"==i||"."==i))f+=QS(i);else{if(":"!=i){if(t)return ZS;f="",c=RE,u=0;continue}if(t&&(l.isSpecial()!=bS(wE,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&wE[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=NE:l.isSpecial()&&r&&r.scheme==l.scheme?c=kE:l.isSpecial()?c=IE:"/"==n[u+1]?(c=OE,u++):(l.cannotBeABaseURL=!0,qS(l.path,""),c=BE)}break;case RE:if(!r||r.cannotBeABaseURL&&"#"!=i)return ZS;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=TS(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=KE;break}c="file"==r.scheme?NE:xE;continue;case kE:if("/"!=i||"/"!=n[u+1]){c=xE;continue}c=AE,u++;break;case OE:if("/"==i){c=CE;break}c=VE;continue;case xE:if(l.scheme=r.scheme,i==fS)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=ME;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query="",c=WE;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.path.length--,c=VE;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query=r.query,l.fragment="",c=KE}break;case ME:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=VE;continue}c=CE}else c=AE;break;case IE:if(c=AE,"/"!=i||"/"!=VS(f,u+1))continue;u++;break;case AE:if("/"!=i&&"\\"!=i){c=CE;continue}break;case CE:if("@"==i){p&&(f="%40"+f),p=!0,o=ES(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||d){var y=_E(g,mE);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(p&&""==f)return"Invalid authority";u-=ES(f).length+1,f="",c=LE}else f+=i;break;case LE:case DE:if(t&&"file"==l.scheme){c=UE;continue}if(":"!=i||h){if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return eE;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=zE,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return eE;if(a=l.parseHost(f))return a;if(f="",c=jE,t==DE)return}break;case jE:if(!BS(iE,i)){if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=FS(f,10);if(m>65535)return tE;l.port=l.isSpecial()&&m===wE[l.scheme]?null:m,f=""}if(t)return;c=zE;continue}return tE}f+=i;break;case NE:if(l.scheme="file","/"==i||"\\"==i)c=FE;else{if(!r||"file"!=r.scheme){c=VE;continue}if(i==fS)l.host=r.host,l.path=TS(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=TS(r.path),l.query="",c=WE;else{if("#"!=i){SE(WS(TS(n,u),""))||(l.host=r.host,l.path=TS(r.path),l.shortenPath()),c=VE;continue}l.host=r.host,l.path=TS(r.path),l.query=r.query,l.fragment="",c=KE}}break;case FE:if("/"==i||"\\"==i){c=UE;break}r&&"file"==r.scheme&&!SE(WS(TS(n,u),""))&&(bE(r.path[0],!0)?qS(l.path,r.path[0]):l.host=r.host),c=VE;continue;case UE:if(i==fS||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&bE(f))c=VE;else if(""==f){if(l.host="",t)return;c=zE}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=zE}continue}f+=i;break;case zE:if(l.isSpecial()){if(c=VE,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=fS&&(c=VE,"/"!=i))continue}else l.fragment="",c=KE;else l.query="",c=WE;break;case VE:if(i==fS||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=QS(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||qS(l.path,"")):EE(f)?"/"==i||"\\"==i&&l.isSpecial()||qS(l.path,""):("file"==l.scheme&&!l.path.length&&bE(f)&&(l.host&&(l.host=""),f=VS(f,0)+":"),qS(l.path,f)),f="","file"==l.scheme&&(i==fS||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)XS(l.path);"?"==i?(l.query="",c=WE):"#"==i&&(l.fragment="",c=KE)}else f+=_E(i,yE);break;case BE:"?"==i?(l.query="",c=WE):"#"==i?(l.fragment="",c=KE):i!=fS&&(l.path[0]+=_E(i,vE));break;case WE:t||"#"!=i?i!=fS&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":_E(i,vE)):(l.fragment="",c=KE);break;case KE:i!=fS&&(l.fragment+=_E(i,gE))}u++}},parseHost:function(e){var t,r,n;if("["==VS(e,0)){if("]"!=VS(e,e.length-1))return eE;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,p=function(){return VS(e,f)};if(":"==p()){if(":"!=VS(e,1))return;f+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&BS(lE,p());)t=16*t+FS(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(i=null,n>0){if(!("."==p()&&n<4))return;f++}if(!BS(iE,p()))return;for(;BS(iE,p());){if(o=FS(p(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}($S(e,1,-1)),!t)return eE;this.host=t}else if(this.isSpecial()){if(e=RS(e),BS(cE,e))return eE;if(t=function(e){var t,r,n,i,o,a,s,l=YS(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(o=10,i.length>1&&"0"==VS(i,0)&&(o=BS(oE,i)?16:8,i=$S(i,8==o?1:2)),""===i)a=0;else{if(!BS(10==o?sE:8==o?aE:lE,i))return e;a=FS(i,o)}qS(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=zS(256,5-t))return null}else if(a>255)return null;for(s=HS(r),n=0;n<r.length;n++)s+=r[n]*zS(256,3-n);return s}(e),null===t)return eE;this.host=t}else{if(BS(uE,e))return eE;for(t="",r=ES(e),n=0;n<r.length;n++)t+=_E(r[n],vE);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return bS(wE,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&bE(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=dE(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+WS(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw NS(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new qE(e.path[0]).origin}catch(vj){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+dE(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(kS(e)+":",TE)},getUsername:function(){return this.username},setUsername:function(e){var t=ES(kS(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=_E(t[r],mE)}},getPassword:function(){return this.password},setPassword:function(e){var t=ES(kS(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=_E(t[r],mE)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?dE(e):dE(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,LE)},getHostname:function(){var e=this.host;return null===e?"":dE(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,DE)},getPort:function(){var e=this.port;return null===e?"":kS(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=kS(e))?this.port=null:this.parse(e,jE))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+WS(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,zE))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=kS(e))?this.query=null:("?"==VS(e,0)&&(e=$S(e,1)),this.query="",this.parse(e,WE)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=kS(e))?("#"==VS(e,0)&&(e=$S(e,1)),this.fragment="",this.parse(e,KE)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qE=function(e){var t=wS(this,GE),r=xS(arguments.length,1)>1?arguments[1]:void 0,n=AS(t,new HE(e,!1,r));hS||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},GE=qE.prototype,XE=function(e,t){return{get:function(){return CS(this)[e]()},set:t&&function(e){return CS(this)[t](e)},configurable:!0,enumerable:!0}};if(hS&&(_S(GE,"href",XE("serialize","setHref")),_S(GE,"origin",XE("getOrigin")),_S(GE,"protocol",XE("getProtocol","setProtocol")),_S(GE,"username",XE("getUsername","setUsername")),_S(GE,"password",XE("getPassword","setPassword")),_S(GE,"host",XE("getHost","setHost")),_S(GE,"hostname",XE("getHostname","setHostname")),_S(GE,"port",XE("getPort","setPort")),_S(GE,"pathname",XE("getPathname","setPathname")),_S(GE,"search",XE("getSearch","setSearch")),_S(GE,"searchParams",XE("getSearchParams")),_S(GE,"hash",XE("getHash","setHash"))),mS(GE,"toJSON",(function(){return CS(this).serialize()}),{enumerable:!0}),mS(GE,"toString",(function(){return CS(this).serialize()}),{enumerable:!0}),jS){var YE=jS.createObjectURL,$E=jS.revokeObjectURL;YE&&mS(qE,"createObjectURL",gS(YE,jS)),$E&&mS(qE,"revokeObjectURL",gS($E,jS))}OS(qE,"URL"),pS({global:!0,constructor:!0,forced:!dS,sham:!hS},{URL:qE});var QE=Or,JE=o,ZE=Kd,eT=Yn,tT=Tw,rT=ae("URL");QE({target:"URL",stat:!0,forced:!(tT&&JE((function(){rT.canParse()})))},{canParse:function(e){var t=ZE(arguments.length,1),r=eT(e),n=t<2||void 0===arguments[1]?void 0:eT(arguments[1]);try{return!!new rT(r,n)}catch(vj){return!1}}});var nT=r(te.URL),iT=function(e){if(e){bw(e).call(e,"//")&&(e=location.protocol+e);try{return new nT(e)}catch(vj){return}}},oT=["fallbackUrl","enableRTMAutoTranscode"],aT=window.VePlayer.strategy,sT=window.VePlayer.util,lT=window.VePlayer.DynamicModule,cT=window.VePlayer.load,uT=window.VePlayer.Codec,fT=window.VePlayer.Sniffer,pT={options:{},module:lT.PluginRtm},hT=function(e){return"pc"===fT.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},dT=function(){var e=ym(vm().mark((function e(t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,w,b,S,E,T,P,R,k,O;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l="",c=t.url,u=t.playlist,f=t.rtm||{},p=f.fallbackUrl,h=f.enableRTMAutoTranscode,d=q_(f,oT),v=t.rtm||{},g=v.enableFallback,y=void 0===g||g,null!=u&&u.length&&(y=!1),m=h||"true"===(null===(i=iT(c))||void 0===i?void 0:i.searchParams.get("enableRTMAutoTranscode")),y&&(p?l=p:m&&c?l=hT(c):console.warn(L_(A_.EMPTY_RTM_FALLBACK_PARAMETER,n).message)),"flv"===(_=l&&sT.getStreamType(l))&&sT.isMseSupported(uT.H264)?s=aT.createFlvMseStrategy(t):"hls"===_&&("mobile"!==fT.device||null!=t&&null!==(o=t.hls)&&void 0!==o&&o.enableMSE)&&sT.isMseSupported(uT.H264)&&(s=aT.createHlsMseStrategy(t)),e.next=11,p_.all([cT(pT.module).then((function(e){return e.RtmPlugin})).catch((function(){})),s&&cT(s.module).then((function(e){var t,r;return(null===(t=s)||void 0===t?void 0:t.module)===lT.PluginFlv?e.FlvPlugin:(null===(r=s)||void 0===r?void 0:r.module)===lT.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 11:if(w=e.sent,b=Jf(w,2),S=b[0],E=b[1],!l){e.next=25;break}return e.next=18,p_.all([Y_(),Q_()]);case 18:if(T=e.sent,P=Jf(T,2),R=P[0],k=P[1],R&&k){e.next=25;break}return r&&r.emit("degrade",{url:l,originRtmUrl:c,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:R,isRTMSupportCodec:k}),e.abrupt("return",{options:yh(yh({},(null===(O=s)||void 0===O?void 0:O.options)||{}),{},{url:l,_RTMdegrade:{_originRtmUrl:c,_isRTMSupported:R,_isRTMSupportCodec:k}}),plugins:E?[E]:[]});case 25:return e.abrupt("return",{options:yh(yh({},(null===(a=s)||void 0===a?void 0:a.options)||{}),{},{url:h?sT.appendSearchParams(c,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:yh(yh({retryCount:0},d),{},{backupURL:l,backupConstruct:E})}),plugins:S?[S]:[]});case 26:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),vT=window.VePlayer.Sniffer,gT=function(e){return e.Fairplay="fairplay",e}(gT||{});function yT(e){if(null!=e&&e.fairplay&&("safari"===vT.browser||vT.os.isIos))return"fairplay"}function mT(e){var t=e.drm,r=e.streamType,n=yT(t);return!n||("fairplay"!==n||"hls"!==r)}var _T=window.VePlayer.Sniffer,wT=window.VePlayer.Codec,bT=window.VePlayer.util,ST=bT.isMMSSupported,ET=bT.isMseSupported;function TT(){return _T.os.isIos}function PT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wT.H264;return(TT()?ST:ET)(e)}var RT=window.VePlayer.strategy,kT=window.VePlayer.load,OT=window.VePlayer.Codec,xT=window.VePlayer.util.appendSearchParams,MT=function(){var e=ym(vm().mark((function e(t){var r,n,i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,w,b,S;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=null==t||null===(r=t.flv)||void 0===r?void 0:r.enableLowLatency,d=null===(n=null==t||null===(i=t.flv)||void 0===i||null===(i=i.lowLatency)||void 0===i?void 0:i.enableFrameChasing)||void 0===n||n,v=null!==(o=null==t||null===(a=t.flv)||void 0===a||null===(a=a.lowLatency)||void 0===a?void 0:a.abrPts)&&void 0!==o?o:"-800",e.next=5,RT.getCodec(t);case 5:return g=e.sent,e.next=8,RT.isSoftDecode(t,g);case 8:if(e.sent&&(p=g===OT.H265?RT.createSoftDecodeH265Strategy():RT.createSoftDecodeH264Strategy(),f=RT.createFlvMseStrategy(t)),PT("unknown"===g?OT.H264:g)&&(f=TT()?RT.createFlvMssStrategy(t):RT.createFlvMseStrategy(t)),f||p){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,p_.all([(null===(s=f)||void 0===s?void 0:s.module)&&kT(f.module).catch((function(){})),(null===(l=p)||void 0===l?void 0:l.module)&&kT(p.module).catch((function(){}))]);case 15:return y=e.sent,m=Jf(y,2),_=m[0],(null==(w=m[1])?void 0:w.XGVideoPlugin)&&(null===(c=p)||void 0===c||null===(u=c.afterLoad)||void 0===u||u.call(c,null==w?void 0:w.XGVideoPlugin)),b=RT.combineOptions([f,p]),S=[],h&&(b.url=xT(t.url,{abr_pts:v})),_&&(S.push(_.FlvPlugin),h&&d&&S.push(_.Adaptive)),e.abrupt("return",{options:b,plugins:S});case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),IT=window.VePlayer.util,AT=window.VePlayer.strategy,CT=function(){var e=ym(vm().mark((function e(t,r,n){var i;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=t.url?IT.getStreamType(t.url):"")&&"unknown"!==i){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==i){e.next=7;break}return e.next=6,dT(t,r,n);case 6:case 10:case 16:return e.abrupt("return",e.sent);case 7:if("flv"!==i){e.next=11;break}return e.next=10,MT(t);case 11:if("hls"!==i){e.next=17;break}if(mT({drm:t.drm,streamType:i})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,AT.getHlsStrategy(t);case 17:return e.abrupt("return",{options:{},plugins:[]});case 18:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LT=r(Nm),DT="\t\n\v\f\r \u2028\u2029\ufeff",jT=X,NT=Yn,FT=DT,UT=g("".replace),zT=RegExp("^["+FT+"]+"),VT=RegExp("(^|[^"+FT+"])["+FT+"]+$"),BT=function(e){return function(t){var r=NT(jT(t));return 1&e&&(r=UT(r,zT,"")),2&e&&(r=UT(r,VT,"$1")),r}},WT={start:BT(1),end:BT(2),trim:BT(3)},KT=i,HT=o,qT=g,GT=Yn,XT=WT.trim,YT=DT,$T=KT.parseInt,QT=KT.Symbol,JT=QT&&QT.iterator,ZT=/^[+-]?0x/i,eP=qT(ZT.exec),tP=8!==$T(YT+"08")||22!==$T(YT+"0x16")||JT&&!HT((function(){$T(Object(JT))}))?function(e,t){var r=XT(GT(e));return $T(r,t>>>0||(eP(ZT,r)?16:10))}:$T;Or({global:!0,forced:parseInt!=tP},{parseInt:tP});var rP,nP=r(te.parseInt),iP="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,oP=i,aP=f,sP=k,lP=iP,cP=le,uP=Rs,fP=Kd,pP=oP.Function,hP=/MSIE .\./.test(cP)||lP&&((rP=oP.Bun.version.split(".")).length<3||0==rP[0]&&(rP[1]<3||3==rP[1]&&0==rP[2])),dP=function(e,t){var r=t?2:1;return hP?function(n,i){var o=fP(arguments.length,1)>r,a=sP(n)?n:pP(n),s=o?uP(arguments,r):[],l=o?function(){aP(a,this,s)}:a;return t?e(l,i):e(l)}:e},vP=Or,gP=i,yP=dP(gP.setInterval,!0);vP({global:!0,bind:!0,forced:gP.setInterval!==yP},{setInterval:yP});var mP=Or,_P=i,wP=dP(_P.setTimeout,!0);mP({global:!0,bind:!0,forced:_P.setTimeout!==wP},{setTimeout:wP});var bP=r(te.setTimeout),SP=r(ff),EP=NaN,TP="[object Symbol]",PP=/^\s+|\s+$/g,RP=/^[-+]0x[0-9a-f]+$/i,kP=/^0b[01]+$/i,OP=/^0o[0-7]+$/i,xP=nP,MP="object"==fh(t)&&t&&t.Object===Object&&t,IP="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,AP=MP||IP||Function("return this")(),CP=Object.prototype.toString,LP=Math.max,DP=Math.min,jP=function(){return AP.Date.now()};function NP(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function FP(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&CP.call(e)==TP}function UP(e){if("number"==typeof e)return e;if(FP(e))return EP;if(NP(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=NP(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(PP,"");var r=kP.test(e);return r||OP.test(e)?xP(SP(e).call(e,2),r?2:8):RP.test(e)?EP:+e}var zP=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function v(){var e=jP();if(d(e))return g(e);s=bP(v,function(e){var r=t-(e-l);return f?DP(r,o-(e-c)):r}(e))}function g(e){return s=void 0,p&&n?h(e):(n=i=void 0,a)}function y(){var e=jP(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=bP(v,t),u?h(e):a}(l);if(f)return s=bP(v,t),h(l)}return void 0===s&&(s=bP(v,t)),a}return t=UP(t)||0,NP(r)&&(u=!!r.leading,o=(f="maxWait"in r)?LP(UP(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:g(jP())},y},VP=r(zP),BP=yh(yh({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function WP(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var KP=window.VePlayer.Plugin,HP=window.VePlayer.Sniffer,qP=window.VePlayer.XGEvents,GP=KP.POSITIONS,XP=function(e){zm(r,e);var t=o_(r);function r(){return mm(this,r),t.apply(this,arguments)}return wm(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:WP,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r,n;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(BP.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry(),null===(n=this.player)||void 0===n||null===(n=n.plugins)||void 0===n||null===(n=n.error)||void 0===n||n.hideError();t.once(qP.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=VP(LT(e=this._handleRefresh).call(e,this),200);var t="mobile"===HP.device?"touchend":"click";LT(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:GP.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(KP),YP=r(sh),$P=r(tp),QP=r(np),JP=r(up),ZP=r(wp),eR=r(Cp),tR=r(Hp),rR=r(Zp),nR=r(K_),iR=Or,oR=Date,aR=g(oR.prototype.getTime);iR({target:"Date",stat:!0},{now:function(){return aR(new oR)}});var sR=r(te.Date.now),lR=r(te.URLSearchParams),cR=tP;Or({target:"Number",stat:!0,forced:Number.parseInt!=cR},{parseInt:cR});var uR=r(te.Number.parseInt),fR=oi.includes;Or({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return fR(this,e,arguments.length>1?arguments[1]:void 0)}});var pR=zu("Array").includes,hR=Or,dR=iw,vR=X,gR=Yn,yR=aw,mR=g("".indexOf);hR({target:"String",proto:!0,forced:!yR("includes")},{includes:function(e){return!!~mR(gR(vR(this)),gR(dR(e)),arguments.length>1?arguments[1]:void 0)}});var _R=zu("String").includes,wR=se,bR=pR,SR=_R,ER=Array.prototype,TR=String.prototype,PR=r((function(e){var t=e.includes;return e===ER||wR(ER,e)&&t===ER.includes?bR:"string"==typeof e||e===TR||wR(TR,e)&&t===TR.includes?SR:t})),RR=te,kR=f;RR.JSON||(RR.JSON={stringify:JSON.stringify});var OR=function(e,t,r){return kR(RR.JSON.stringify,null,arguments)},xR=r(OR),MR=f,IR=Q,AR=jr,CR=Vr,LR=Ep,DR=Math.min,jR=[].lastIndexOf,NR=!!jR&&1/[1].lastIndexOf(1,-0)<0,FR=LR("lastIndexOf"),UR=NR||!FR?function(e){if(NR)return MR(jR,this,arguments)||0;var t=IR(this),r=CR(t),n=r-1;for(arguments.length>1&&(n=DR(n,AR(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:jR;Or({target:"Array",proto:!0,forced:UR!==[].lastIndexOf},{lastIndexOf:UR});var zR=zu("Array").lastIndexOf,VR=se,BR=zR,WR=Array.prototype,KR=r((function(e){var t=e.lastIndexOf;return e===WR||VR(WR,e)&&t===WR.lastIndexOf?BR:t})),HR=i,qR=o,GR=Yn,XR=WT.trim,YR=DT,$R=g("".charAt),QR=HR.parseFloat,JR=HR.Symbol,ZR=JR&&JR.iterator,ek=1/QR(YR+"-0")!=-1/0||ZR&&!qR((function(){QR(Object(ZR))}))?function(e){var t=XR(GR(e)),r=QR(t);return 0===r&&"-"==$R(t,0)?-0:r}:QR,tk=ek;Or({target:"Number",stat:!0,forced:Number.parseFloat!=tk},{parseFloat:tk});var rk=r(te.Number.parseFloat),nk=r(te.setInterval);function ik(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),YP(e,n.key,n)}}function ok(e,t,r){return t&&ik(e.prototype,t),r&&ik(e,r),e}function ak(e,t,r){return t in e?YP(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e,t){var r=$P(e);if(QP){var n=QP(e);t&&(n=JP(n).call(n,(function(t){return ZP(e,t).enumerable}))),r.push.apply(r,n)}return r}function lk(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)eR(r=sk(Object(n),!0)).call(r,(function(t){ak(e,t,n[t])}));else if(tR)rR(e,tR(n));else{var i;eR(i=sk(Object(n))).call(i,(function(t){YP(e,t,ZP(n,t))}))}}return e}var ck="xgplayer_device_id",uk="xgplayer_user_id",fk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(nR(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},pk=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},hk=function(){var e=fk(ck);if(e)return e;var t=pk(11);return document.cookie=ck+"="+t+";max-age=31536000;path=/",t},dk=function(){var e=fk(uk);if(e)return e;var t=pk(12);return document.cookie=uk+"="+t+";max-age=31536000;path=/",t};var vk={get device(){return vk.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:nR(e).call(e,"chrome")>-1&&nR(e).call(e,"safari")>-1,Firefox:nR(e).call(e,"firefox")>-1,Opera:nR(e).call(e,"opera")>-1,Safari:nR(e).call(e,"safari")>-1&&-1==nR(e).call(e,"chrome"),Edge:nR(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=nP(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function gk(){return sR()}function yk(e){var t="unknown";return"string"!=typeof e?t:nR(e).call(e,".flv")>-1?"flv":nR(e).call(e,".m3u8")>-1?"m3u8":nR(e).call(e,".mp4")>-1?"mp4":nR(e).call(e,".sdp")>-1?"rts":t}function mk(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}var _k={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},wk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=LT(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}ok(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&bw(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new lR(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=yk(e.cdn_play_url),e.timestamp=gk();var r=function(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(vj){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,O_(e,lk({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,lk({},e)))},e}(),bk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||vk.device:"none":"unknown";var e},Sk=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],Ek=function(){function e(e){var t,r;this.options=e,this.logger=new Tk(e),this.restart=LT(t=this.restart).call(t,this),this.bindUrlChange(),PR(r=vk.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Tk(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=O_(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),Tk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=O_({},e,function(e){return{device_id:e.device_id||hk(),user_id:e.user_id||dk(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?sR()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new wk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}ok(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return sR()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=sR()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,p,h,d,v;this.handlePlayerComlete=LT(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=LT(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=LT(r=this.destroyFunc).call(r,this),this.handleUserLeave=LT(n=this.handleUserLeave).call(n,this),this.handlePlayerError=LT(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=LT(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=LT(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=LT(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=LT(l=this.handlePlayerPause).call(l,this),this.handleTTFB=LT(c=this.handleTTFB).call(c,this),this.handleUrlChange=LT(u=this.handleUrlChange).call(u,this),this.handleKeyframe=LT(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=LT(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=LT(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=LT(d=this.handleCoreEvent).call(d,this),this.handleDegrade=LT(v=this.handleDegrade).call(v,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=lk({os:vk.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return lk({project_key:e.project_key,live_sdk_version:mk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.12",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:pk(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+sR(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:vk.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:sR(),play_current_time:0,cdn_play_url:r.config.url&&bw(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:yk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=O_({},{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:-1,drop_percent:-1,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){YP(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&YP(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?SP(e).call(e,0,25e4):""}return""},enumerable:!0}),YP(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),YP(this.log[o],"access",{get:function(){return bk()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=mk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=gk(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===vk.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===vk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;eR(Sk).call(Sk,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(O_(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=gk(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(O_({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,SP(Array.prototype).call(e,0))}catch(JO){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(O_(this.log.play_url_change,{url:e,timestamp:gk()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=gk(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=gk(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=gk(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;O_(this.log.play_error,lk({timestamp:gk(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:xR(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(O_(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=gk()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=gk(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=gk(),O_(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=SP(i).call(i,nR(i).call(i,"{"),KR(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(JO){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=gk(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){O_(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=gk(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(O_({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=mk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=uR(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(JO){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=rk((t.droppedVideoFrames-this.tempDroppedFrameCount)/(t.totalVideoFrames-this.tempTotalFrameCount)).toFixed(1),this.log.play_stop.drop_percent=rk(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}else if(null!=e.webkitDroppedFrameCount){var r=e.webkitDroppedFrameCount;this.log.playing.drop_count=r-this.tempDroppedFrameCount,this.tempDroppedFrameCount=r}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?p_.resolve(i.getStats()).then((function(t){return eR(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,p=t.framesDropped,h=t.keyFramesDecoded,d=t.totalDecodeTime,v=t.framesDecoded,g=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,w=t.jitterBufferEmittedCount,b=t.jitter,S=t.nackCount,E=t.packetsLost,T=t.pliCount,P=t.totalSamplesReceived,R=t.concealedSamples,k=t.currentRoundTripTime,O=t.decoderImplementation,x=t.mimeType,M=t.freezeCount,I=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=E-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=E,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(P-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=P,o.concealed_samples=R,o.total_samples_received=P):(o.frames_dropped=p,o.iframes_decoded=h,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/v,o.video_frame_height=g,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(v-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=v,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=M-r.cacheRtcStats.freezeCount,o.freeze_duration=I-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=M,r.cacheRtcStats.totalFreezesDuration=I,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/w*1e3,o.video_jitter=1e3*b,o.video_nack_count=S,o.video_packets_lost=E-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=E,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=T,o.decoder_name=O);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=g);break;case"candidate-pair":o.rtt=1e3*k;break;case"codec":PR(x).call(x,"video")?o.video_codec=x:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),O_(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):p_.resolve(o)}catch(JO){return p_.reject(JO)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<gk()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,gk()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=gk(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),O_(t.log.playing,lk({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),p_.resolve(t.getRtcStats(o,e)).then((function(r){var n={};if(t.core){if(t.core.getStats){var i=t.core.getStats()||{},a=i.bitrate,s=i.avgSpeed;O_(n,{bitrate:a,avg_speed:s,rate:s/a})}if(t.core.getNetWorkInfo){var l,c=(t.core.getNetWorkInfo()||{}).lostRate,u=((null===(l=t.core.core)||void 0===l?void 0:l._opts)||{}).networkEvaluateInterval;O_(n,{lostRate:c,networkEvaluateInterval:u})}}t.logmanager.push(O_({},t.log.playing,lk(lk({play_time:e?0:o},r),n)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(JO){return p_.reject(JO)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return p_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core&&e.core.getStats){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return p_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=nk((function(){try{var r=function(){if(Math.abs(sR()-e.log.playing.timestamp-t)<100||sR()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return p_.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return p_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(JO){return p_.reject(JO)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(JO){return p_.reject(JO)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=gk(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=gk(),this.playResultTimer=bP((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=gk(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=gk(),this.log.stall_start.stall_start_time=gk(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),O_(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=bP((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=gk();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=gk();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=gk(),this.log.playing.stall_count++,O_(this.log.stall,lk({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),O_(this.log.playing,lk({timestamp:gk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;O_(this.log.play_error,lk(lk({timestamp:gk()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=_k[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=gk()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=_k[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===vk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&window.removeEventListener("pagehide",this.handleUserLeave),eR(Sk).call(Sk,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this._player=null),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer))},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?p_.resolve():(e.destroyed=!0,p_.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(JO){return p_.reject(JO)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(vj){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(vj){}},t.reportPlayStop=function(){this.player&&(this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered()),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core&&this.core.getStats){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=gk();O_(this.log.first_frame,lk({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){O_(o,lk({timestamp:i,stop_time:i,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(o.play_time_on_no_frame=o.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=JP(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:uR(n.domainLookupEnd-n.domainLookupStart),redirect:uR(n.redirectEnd-n.redirectStart),ttfb:uR(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),i=gk();r.playedTime=i-r.log.start_play.start_play_time;var o=r.log.play_stop;if(O_(o,lk({},0===o.stall_count&&{stall_time:0})),r.inWaitingStart&&i-r.inWaitingStart>200&&(o.stall_time+=i-r.inWaitingStart),r.inWaitingStart=0,O_(o,lk({stall_time_per_100sec:o.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*o.stall_count/r.playedTime*100},n)),0===r.log.play_stop.stall_count_per_100sec&&(r.log.play_stop.stall_time_per_100sec=0),r.log.play_stop.stall_time_per_100sec>100||r.log.play_stop.stall_time_per_100sec<0)return p_.resolve();if(r.log.playing.index?(O_(r.log.playing,lk({timestamp:gk(),is_last:1},r.videoSize)),r.logmanager.push(r.log.playing,!0)):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),i=gk(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;O_(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var c=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return p_.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;O_(o,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return p_.resolve(c&&c.then?c.then(t):t())}catch(JO){return p_.reject(JO)}},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),Pk=r(nu),Rk=r(Ou),kk=ke,Ok=TypeError,xk=function(e,t){if(!delete e[t])throw Ok("Cannot delete property "+kk(t)+" of "+kk(e))},Mk=Or,Ik=Ye,Ak=ei,Ck=jr,Lk=Vr,Dk=Lu,jk=Wr,Nk=On,Fk=Gr,Uk=xk,zk=An("splice"),Vk=Math.max,Bk=Math.min;Mk({target:"Array",proto:!0,forced:!zk},{splice:function(e,t){var r,n,i,o,a,s,l=Ik(this),c=Lk(l),u=Ak(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=Bk(Vk(Ck(t),0),c-u)),jk(c+r-n),i=Nk(l,n),o=0;o<n;o++)(a=u+o)in l&&Fk(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:Uk(l,s);for(o=c;o>c-n+r;o--)Uk(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:Uk(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return Dk(l,c-n+r),i}});var Wk=zu("Array").splice,Kk=se,Hk=Wk,qk=Array.prototype,Gk=r((function(e){var t=e.splice;return e===qk||Kk(qk,e)&&t===qk.splice?Hk:t}));Or({global:!0,forced:parseFloat!=ek},{parseFloat:ek});var Xk=r(te.parseFloat),Yk=ml.PROPER,$k=o,Qk=DT,Jk=WT.trim;Or({target:"String",proto:!0,forced:function(e){return $k((function(){return!!Qk[e]()||"
"!=="
"[e]()||Yk&&Qk[e].name!==e}))}("trim")},{trim:function(){return Jk(this)}});var Zk=zu("String").trim,eO=se,tO=Zk,rO=String.prototype,nO=r((function(e){var t=e.trim;return"string"==typeof e||e===rO||eO(rO,e)&&t===rO.trim?tO:t})),iO=r(_h),oO=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),aO={exports:{}},sO=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),lO=o,cO=ee,uO=w,fO=sO,pO=Object.isExtensible,hO=lO((function(){pO(1)}))||fO?function(e){return!!cO(e)&&((!fO||"ArrayBuffer"!=uO(e))&&(!pO||pO(e)))}:pO,dO=Or,vO=g,gO=ai,yO=ee,mO=Je,_O=Qt.f,wO=Bi,bO=Hi,SO=hO,EO=oO,TO=!1,PO=nt("meta"),RO=0,kO=function(e){_O(e,PO,{value:{objectID:"O"+RO++,weakData:{}}})},OO=aO.exports={enable:function(){OO.enable=function(){},TO=!0;var e=wO.f,t=vO([].splice),r={};r[PO]=1,e(r).length&&(wO.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===PO){t(n,i,1);break}return n},dO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bO.f}))},fastKey:function(e,t){if(!yO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!mO(e,PO)){if(!SO(e))return"F";if(!t)return"E";kO(e)}return e[PO].objectID},getWeakData:function(e,t){if(!mO(e,PO)){if(!SO(e))return!0;if(!t)return!1;kO(e)}return e[PO].weakData},onFreeze:function(e){return EO&&TO&&SO(e)&&!mO(e,PO)&&kO(e),e}};gO[PO]=!0;var xO=aO.exports,MO=Or,IO=oO,AO=o,CO=ee,LO=xO.onFreeze,DO=Object.freeze;MO({target:"Object",stat:!0,forced:AO((function(){DO(1)})),sham:!IO},{freeze:function(e){return DO&&CO(e)?DO(LO(e)):e}});var jO=r(te.Object.freeze),NO=ra.map;Or({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return NO(this,e,arguments.length>1?arguments[1]:void 0)}});var FO,UO=zu("Array").map,zO=se,VO=UO,BO=Array.prototype,WO=r((function(e){var t=e.map;return e===BO||zO(BO,e)&&t===BO.map?VO:t})),KO=r(Ir),HO=function(){return HO=O_||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},HO.apply(this,arguments)};function qO(e,t){var r="function"==typeof Pk&&Rk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function GO(){for(var e=[],t=0;t<arguments.length;t++)e=f_(e).call(e,qO(arguments[t]));return e}var XO,YO,$O,QO,JO,ZO=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=nR(r=this._hooks[e]).call(r,t);-1!==i&&Gk(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==nR(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&eR(r=GO(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===nR(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),ex=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},tx=(XO=+sR()+Number(SP(FO=""+Math.random()).call(FO,2,8)),function(){return XO+=1}),rx=function(e){var t=document.createElement("a");return t.href=e,t},nx=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?rx(r).hostname:"";!function(e){var t={};try{var r,n=rx(e).search;eR(r=(n=SP(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+Xk(this.appVersion),i=this.userAgent;return-1!==nR(i).call(i,"Edge")||-1!==nR(i).call(i,"Edg")?(r="Microsoft Edge",-1!==nR(i).call(i,"Edge")?(e=nR(i).call(i,"Edge"),n=i.substring(e+5)):(e=nR(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=nR(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=nR(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=nR(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==nR(i).call(i,"MQQBrowser")||-1!==nR(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==nR(i).call(i,"MQQBrowser")?(e=nR(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==nR(i).call(i,"QQBrowser")&&(e=nR(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==nR(i).call(i,"Chrome")?-1!==(e=nR(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=nR(i).call(i,"360"))?(r="360browser",n=i.substring(nR(i).call(i,"Chrome")+7)):-1!==nR(i).call(i,"baidubrowser")||-1!==nR(i).call(i,"BIDUBrowser")?(-1!==nR(i).call(i,"baidubrowser")?(e=nR(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==nR(i).call(i,"BIDUBrowser")&&(e=nR(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=nR(i).call(i,"xiaomi"))?-1!==nR(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=nR(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=nR(i).call(i,"Chrome"))||-1!==(e=nR(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==nR(i).call(i,"Safari")?-1!==(e=nR(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=nR(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=nR(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=nR(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=nR(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=nR(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=nR(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=nR(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=nR(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=nR(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=nR(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?SP(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)eR(r=navigator.userAgent.split(";")).call(r,(function(e){nR(e).call(e,"Build/")>-1&&(t=SP(e).call(e,0,nR(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=nR(n).call(n,";");t=SP(n).call(n,0,i)}}catch(o){return nO(t).call(t)}return nO(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),ix=(YO=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(sR()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return iO({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=SP(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:jO(n)},converter:{value:jO(r)}})}({read:function(e){return'"'===e[0]&&(e=SP(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},YO($O={exports:{}}),$O.exports),ox=ix,ax=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),sx={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:xR(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return ox.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;ox.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(JO){return!1}}()},lx={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:xR(t);sessionStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(t){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(JO){return!1}}()},cx=function(){function e(e,t){this._storage=t&&"session"===t?lx:!e&&sx.isSupportLS?sx:new ax}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),ux={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},fx=void 0,px=(new Date).getTimezoneOffset(),hx=nP(""+-px/60,10),dx=60*px,vx=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new nx(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new cx(!1,"session"),this.localStorage=new cx(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:fx,user_type:fx,user_id:fx,user_is_auth:fx,user_is_login:fx,device_id:fx,web_id:fx,user_unique_id_type:fx},header:{app_id:fx,app_name:fx,app_install_id:fx,install_id:fx,app_package:fx,app_channel:fx,app_version:fx,ab_version:fx,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:fx,traffic_type:fx,client_ip:fx,device_brand:fx,os_api:fx,access:fx,language:r.language,region:fx,app_language:fx,app_region:fx,creative_id:fx,ad_id:fx,campaign_id:fx,log_type:fx,rnd:fx,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:fx,city:fx,timezone:hx,tz_offset:dx,tz_name:fx,sim_region:fx,carrier:fx,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:fx,utm_content:fx,utm_source:fx,utm_medium:fx,utm_campaign:fx,custom:{},wechat_unionid:fx,wechat_openid:fx}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=nP(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(ux[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;eR(t=$P(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=HO({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=HO({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?nR(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(xR(this.envInfo[e])):JSON.parse(xR(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(JO=QO||(QO={})).Init="init",JO.Config="config",JO.Start="start",JO.Ready="ready",JO.TokenComplete="token-complete",JO.TokenStorage="token-storage",JO.TokenFetch="token-fetch",JO.TokenError="token-error",JO.ConfigUuid="config-uuid",JO.TokenChange="token-change",JO.TokenReset="token-reset",JO.SessionReset="session-reset",JO.SessionResetTime="session-reset-time",JO.Event="event",JO.Events="events",JO.EventNow="event-now",JO.CleanEvents="clean-events",JO.BeconEvent="becon-event";var gx=QO;function yx(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(xR(t))}catch(f){}}var mx,_x=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new cx(!0),this.localStorage=new cx(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(gx.Ready,(function(){r.reportAll(!1)})),this.collect.on(gx.Event,(function(e){r.event(e)})),this.collect.on(gx.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=GO(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=bP((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=GO(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=SP(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=xR(n.custom);var o=this.configManager.get("evtParams"),a=WO(e).call(e,(function(e){try{return $P(o).length&&(e.params=HO({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=xR(e.params),e}catch(JO){return e}})),s=[];if(!$P(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(xR({events:a,user:i,header:n}));return l.local_time=Math.floor(sR()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return WO(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&eR(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,xR(i))||s(n,i):yx(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+xR(l.stack))}var n,i,o,a,s}))},e}(),wx=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},bx=function(){var e;return SP(e=wx().replace(/-/g,"")).call(e,0,19)},Sx=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new cx(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(gx.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=bx();yx(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=sR(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(gx.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===nR(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=sR(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=sR(),this.setStorage(this.cacheToken)),this.collect.emit(gx.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),Ex=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Tx=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new cx(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(gx.SessionReset,(function(){r.resetSessionId()})),this.collect.on(gx.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;sR()-t>this.expireTime?e={sessionId:Ex(),timestamp:sR()}:e.timestamp=sR(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=sR():t={sessionId:Ex(),timestamp:sR()},this.storage.setItem(this.sessionKey,t),this.sessionExp=nk((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=nk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:Ex(),timestamp:sR()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&sR()-e.timestamp+30>=this.expireTime&&(e={sessionId:Ex(),timestamp:sR()},this.storage.setItem(this.sessionKey,e))},e}(),Px=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new ZO,this.Types=gx,this.adapters.fetch=yx,this.adapters.storage=cx}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&ex(e)?e.app_id&&"number"==typeof(r=e.app_id)&&!isNaN(r)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==nR(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new vx(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new _x,this.tokenManager=new Sx,this.sessionManager=new Tx,p_.all([new p_((function(e){n.once(gx.TokenComplete,(function(){e(!0)}))})),new p_((function(e){n.once(gx.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(gx.Ready),console.info("appid: "+e.app_id+", userInfo:"+xR(n.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),n.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(gx.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&ex(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=HO({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&nR(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof QP){var i=0;for(n=QP(e);i<n.length;i++)nR(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(gx.ConfigUuid,t.user_unique_id),this.configManager.set(r)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(gx.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];KO(e)?eR(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(gx.Event,n),this.emit(gx.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(KO(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(gx.BeconEvent,r),this.emit(gx.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=SP(e).call(e,6));var n=t;"object"!=fh(n)&&(n={}),n.event_index=tx();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:sR(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=HO({},t,e);this.event("predefine_pageview",r)},e}(),Rx=new Px("default"),kx=new Uint8Array(16);function Ox(){var e;if(!mx&&!(mx="undefined"!=typeof crypto&&crypto.getRandomValues&<(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mx(kx)}for(var xx,Mx=[],Ix=0;Ix<256;++Ix){var Ax;Mx.push(SP(Ax=(Ix+256).toString(16)).call(Ax,1))}var Cx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&<(xx=crypto.randomUUID).call(xx,crypto)};function Lx(e,t,r){if(Cx.randomUUID&&!t&&!e)return Cx.randomUUID();var n=(e=e||{}).random||(e.rng||Ox)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Mx[e[t+0]]+Mx[e[t+1]]+Mx[e[t+2]]+Mx[e[t+3]]+"-"+Mx[e[t+4]]+Mx[e[t+5]]+"-"+Mx[e[t+6]]+Mx[e[t+7]]+"-"+Mx[e[t+8]]+Mx[e[t+9]]+"-"+Mx[e[t+10]]+Mx[e[t+11]]+Mx[e[t+12]]+Mx[e[t+13]]+Mx[e[t+14]]+Mx[e[t+15]]}(n)}var Dx=window.VePlayer.util,jx="veplayer_live_device_id",Nx="veplayer_live_user_id",Fx=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},Ux=function(e){var t=Dx.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:Dx.appendSearchParams(e,{_session_id:zx()}):null!=e?e:""},zx=function(){return Lx().replace(/-/g,"")+"."+sR()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(Lx().replace(/-/g,""))},Vx=function(e){zm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_userId",void 0),vh(i_(n),"_deviceId",void 0),vh(i_(n),"_liveLogger",void 0),n}return wm(r,[{key:"beforeCreate",value:function(e){var t,r,n,i;e.config.enable&&(e.config.userId=(null===(t=e.config)||void 0===t?void 0:t.userId)||((n=localStorage.getItem(Nx))||(n=Fx(12),localStorage.setItem(Nx,n),n)),e.config.deviceId=(null===(r=e.config)||void 0===r?void 0:r.deviceId)||((i=localStorage.getItem(jx))||(i=Fx(11),localStorage.setItem(jx,i),i)))}},{key:"afterCreate",value:function(){this.config.enable&&this.open()}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==Rx?void 0:Rx.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){Rx.init({app_id:468759,channel:"cn"}),Rx.start(),Rx.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new Ek({Tea:Rx,player:this.player,aid:this.config.appId||654925,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,error_report_stop:!0,ext:{veplayer_version:"2.3.0",flv_version:"3.0.21-rc.5",hls_version:"3.0.21-rc.5",rts_version:"0.2.1-alpha.14"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:654925,enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function Bx(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var Wx=window.VePlayer.util,Kx=window.VePlayer.Plugin,Hx=window.VePlayer.XGUtil,qx=function(e){zm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_pollTimer",void 0),vh(i_(n),"_visible",void 0),vh(i_(n),"_playPlugin",void 0),n}return wm(r,[{key:"_streamType",get:function(){return Wx.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(BP.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(BP.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(PR(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(BP.LOADED_DATA,(function(){return e.open()})),this.player.off(BP.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=bP((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=yh(yh({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:Bx(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:Bx(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:Bx(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:f_(r="".concat(Bx(e.height)," * ")).call(r,Bx(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:Bx(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:Bx(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:Bx(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:Bx(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",eR(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}eR(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=Hx.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=Hx.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=Hx.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=Hx.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=Hx.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(Kx),Gx="https://www.volcengine.com/docs/6469/138655#日志上报",Xx=yh(yh({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",INVALID_LOGGER:"Log options not configured correctly. Please refer to this document ".concat(Gx," to configure the logs."),EMPTY_RTM_FALLBACK_PARAMETER:"Fallback URL for RTM is not configured. Please set enableFallback: false to disable fallback, or configure fallbackUrl for FLV and HLS formats based on the browser environment.",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),Yx=yh(yh({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",INVALID_LOGGER:"未正确配置质量日志参数, 请参考 ".concat(Gx," 配置"),EMPTY_RTM_FALLBACK_PARAMETER:"未配置 RTM 降级地址 fallbackUrl,请设置 enableFallback: false 取消降级或根据浏览器环境配置 FLV、HLS 格式降级地址",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),$x=["getDrmConfig"],Qx=window.VePlayer.DynamicModule,Jx=window.VePlayer.load,Zx=function(){var e=ym(vm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,p,h;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=yT(t.drm),!t.url||n!==gT.Fairplay){e.next=18;break}return e.prev=2,a=null!==(i=null==t||null===(o=t.drm)||void 0===o?void 0:o.fairplay)&&void 0!==i?i:{},s=a.getDrmConfig,l=q_(a,$x),e.next=6,p_.all([Jx(Qx.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return c=e.sent,u=Jf(c,2),f=u[0],p=u[1],h=O_({},l,null==t?void 0:t.drm,p),p&&(null==r||r.updateDrmConfig(p)),e.abrupt("return",{options:{drm:h},plugins:f?[f]:[]});case 15:e.prev=15,e.t0=e.catch(2),console.log(e.t0);case 18:return e.abrupt("return",{});case 19:case"end":return e.stop()}}),e,null,[[2,15]])})));return function(t,r){return e.apply(this,arguments)}}(),eM=ra.some;Or({target:"Array",proto:!0,forced:!Ep("some")},{some:function(e){return eM(this,e,arguments.length>1?arguments[1]:void 0)}});var tM=zu("Array").some,rM=se,nM=tM,iM=Array.prototype,oM=r((function(e){var t=e.some;return e===iM||rM(iM,e)&&t===iM.some?nM:t})),aM={"biz:vod":"veplayer.biz.vod.[env].[ext]","biz:live":"veplayer.biz.live.[env].[ext]","plugin:flv":"veplayer.plugin.flv.[env].[ext]","plugin:mp4":"veplayer.plugin.mp4.[env].[ext]","plugin:hls":"veplayer.plugin.hls.[env].[ext]","plugin:hlsjs":"veplayer.plugin.hlsjs.[env].[ext]","plugin:shaka":"veplayer.plugin.shaka.[env].[ext]","plugin:rtm":"veplayer.plugin.rtm.[env].[ext]","plugin:xgvideo":"veplayer.plugin.xgvideo.[env].[ext]","plugin:drm":"veplayer.plugin.drm.[env].[ext]","plugin:abr":"veplayer.plugin.abr.[env].[ext]"},sM=function(e){return e.BizVod="biz:vod",e.BizLive="biz:live",e.PluginFlv="plugin:flv",e.PluginMp4="plugin:mp4",e.PluginHls="plugin:hls",e.PluginHlsJs="plugin:hlsjs",e.PluginShaka="plugin:shaka",e.PluginRtm="plugin:rtm",e.PluginXgvideo="plugin:xgvideo",e.PluginDrm="plugin:drm",e.PluginAbr="plugin:abr",e}(sM||{}),lM=function(){function e(t){var r=this;mm(this,e),vh(this,"modules",{}),vh(this,"mountPromiseMap",{}),vh(this,"_baseUrl",void 0),vh(this,"_moduleSystem",void 0),vh(this,"load",function(){var e=ym(vm().mark((function e(t,n){var i,o,a,s,l;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._moduleSystem){e.next=2;break}throw new Error('You have to specify moduleSystem first, call "setModuleSystem(moduleSystem)" to set module system');case 2:if(aM[t]){e.next=4;break}throw new Error('Invalid module name: "'.concat(t,'"'));case 4:if("esm"!==r._moduleSystem){e.next=11;break}if(r.modules[t]){e.next=9;break}throw new Error('Dynamic module "'.concat(t,'" not found, you have to register it first under ESM'));case 9:return o=r.modules[t].exports,e.abrupt("return",null!==(i=o.default)&&void 0!==i?i:o);case 11:if(!r.modules[t]){e.next=21;break}if(1!==r.modules[t].state){e.next=16;break}return e.abrupt("return",r.modules[t].exports);case 16:if(0!==r.modules[t].state){e.next=20;break}return e.abrupt("return",r.mountPromiseMap[t].then((function(e){var t;return null!==(t=e.default)&&void 0!==t?t:e})));case 20:throw null!==(a=r.modules[t].error)&&void 0!==a?a:new Error('Dynamic module "'.concat(t,'" load failed.'));case 21:return s=[r._baseUrl,aM[t]].join("/").replace("[env]","production").replace("[ext]","js"),l={src:null!=n?n:s,name:t,state:0,exports:{__PLUGIN_NAME__:t}},r.modules[t]=l,r.mountPromiseMap[t]=r._mount(l),e.abrupt("return",r.mountPromiseMap[t]);case 26:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),vh(this,"registerPlugin",(function(e,t){if(!r._moduleSystem)throw new Error("You have to specify moduleSystem first, call setModuleSystem(moduleSystem) to set module system");return"esm"===r._moduleSystem?(r.modules[e]={src:"esm:".concat(e),name:e,state:1,exports:t},r.modules[e].exports):(r.modules[e]?r.modules[e].exports=t:r.modules[e]={src:"umd:".concat(e),name:e,state:1,exports:t},r.modules[e].exports)})),vh(this,"register",(function(e){return WO(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return wm(e,[{key:"baseUrl",get:function(){return this._baseUrl}},{key:"moduleSystem",get:function(){return this._moduleSystem}},{key:"setModuleSystem",value:function(e){this._moduleSystem=e}},{key:"setBaseUrl",value:function(e){this._baseUrl=e}},{key:"_mount",value:function(e){var t=this.modules;return new p_((function(r,n){var i=document.createElement("script");i.src=e.src,i.onload=function(){e.state=1,r(t[e.name].exports),i.onload=null},i.onerror=function(t){e.state=2,e.error=t,n(t),i.onerror=null},document.body.appendChild(i)}))}}]),e}(),cM=zu("Array").keys,uM=rn,fM=Je,pM=se,hM=cM,dM=Array.prototype,vM={DOMTokenList:!0,NodeList:!0},gM=r((function(e){var t=e.keys;return e===dM||pM(dM,e)&&t===dM.keys||fM(vM,uM(e))?hM:t})),yM=r(ch),mM=r(Xf),_M=r(ph);function wM(e){return(wM="function"==typeof Pk&&"symbol"==typeof yM?function(e){return typeof e}:function(e){return e&&"function"==typeof Pk&&e.constructor===Pk&&e!==Pk.prototype?"symbol":typeof e})(e)}function bM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),YP(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[_M];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===fh(o)?o:String(o)),n)}var i,o}function SM(e){return function(e){if(KO(e))return EM(e)}(e)||function(e){if(void 0!==Pk&&null!=Rk(e)||null!=e["@@iterator"])return mM(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return EM(e,t);var n=SP(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return mM(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var TM=jr,PM=Yn,RM=X,kM=RangeError,OM=g,xM=Ur,MM=Yn,IM=X,AM=OM((function(e){var t=PM(RM(this)),r="",n=TM(e);if(n<0||n==1/0)throw kM("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),CM=OM("".slice),LM=Math.ceil,DM=function(e){return function(t,r,n){var i,o,a=MM(IM(t)),s=xM(r),l=a.length,c=void 0===n?" ":MM(n);return s<=l||""==c?a:((o=AM(c,LM((i=s-l)/c.length))).length>i&&(o=CM(o,0,i)),e?a+o:o+a)}},jM={start:DM(!1),end:DM(!0)},NM=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),FM=jM.start;Or({target:"String",proto:!0,forced:NM},{padStart:function(e){return FM(this,e,arguments.length>1?arguments[1]:void 0)}});var UM=zu("String").padStart,zM=se,VM=UM,BM=String.prototype,WM=r((function(e){var t=e.padStart;return"string"==typeof e||e===BM||zM(BM,e)&&t===BM.padStart?VM:t})),KM=ra.every;Or({target:"Array",proto:!0,forced:!Ep("every")},{every:function(e){return KM(this,e,arguments.length>1?arguments[1]:void 0)}});var HM=zu("Array").every,qM=se,GM=HM,XM=Array.prototype,YM=r((function(e){var t=e.every;return e===XM||qM(XM,e)&&t===XM.every?GM:t})),$M=le.match(/firefox\/(\d+)/i),QM=!!$M&&+$M[1],JM=/MSIE|Trident/.test(le),ZM=le.match(/AppleWebKit\/(\d+)\./),eI=!!ZM&&+ZM[1],tI=Or,rI=g,nI=Ie,iI=Ye,oI=Vr,aI=xk,sI=Yn,lI=o,cI=$w,uI=Ep,fI=QM,pI=JM,hI=ve,dI=eI,vI=[],gI=rI(vI.sort),yI=rI(vI.push),mI=lI((function(){vI.sort(void 0)})),_I=lI((function(){vI.sort(null)})),wI=uI("sort"),bI=!lI((function(){if(hI)return hI<70;if(!(fI&&fI>3)){if(pI)return!0;if(dI)return dI<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)vI.push({k:t+n,v:r})}for(vI.sort((function(e,t){return t.v-e.v})),n=0;n<vI.length;n++)t=vI[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));tI({target:"Array",proto:!0,forced:mI||!_I||!wI||!bI},{sort:function(e){void 0!==e&&nI(e);var t=iI(this);if(bI)return void 0===e?gI(t):gI(t,e);var r,n,i=[],o=oI(t);for(n=0;n<o;n++)n in t&&yI(i,t[n]);for(cI(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:sI(t)>sI(r)?1:-1}}(e)),r=oI(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)aI(t,n++);return t}});var SI,EI=zu("Array").sort,TI=se,PI=EI,RI=Array.prototype,kI=r((function(e){var t=e.sort;return e===RI||TI(RI,e)&&t===RI.sort?PI:t})),OI="undefined"!=typeof window&&window.location&&nR(SI=window.location.href).call(SI,"xgplayerdebugger=1")>-1,xI="color: #525252; background-color: #90ee90;",MI="color: #525252; background-color: red;",II="color: #525252; background-color: yellow; ",AI="%c[xgplayer]",CI={config:{debug:OI?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,f_(t=[AI,xI,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,f_(t=[AI,II,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,f_(t=[AI,MI,e]).call(t,o))}}},LI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bufferedList=t}var t,r,n;return t=e,(r=[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}])&&bM(t.prototype,r),n&&bM(t,n),YP(t,"prototype",{writable:!1}),e}(),DI={};DI.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,eR(e=$P(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},DI.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&DI.addClass(i,r),t)eR(o=$P(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return CI.logError("util.createDomFromHtml",a),null}},DI.hasClass=function(e,t){if(!e||!t)return!1;try{return oM(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(JO){var r=e.className&&"object"===wM(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},DI.addClass=function(e,t){if(e&&t)try{var r;eR(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(JO){DI.hasClass(e,t)||(e.className&&"object"===wM(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},DI.removeClass=function(e,t){if(e&&t)try{var r;eR(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(JO){var n;if(DI.hasClass(e,t))eR(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===wM(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},DI.toggleClass=function(e,t){var r;e&&eR(r=t.split(/\s+/g)).call(r,(function(t){DI.hasClass(e,t)?DI.removeClass(e,t):DI.addClass(e,t)}))},DI.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===DI.typeOf(e[r]))t.push(e[r]);else if("Object"===DI.typeOf(e[r])){var n;WO(n=$P(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},DI.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(JO){CI.logError("util.findDom",JO),0===nR(r).call(r,"#")&&(e=t.getElementById(SP(r).call(r,1)))}return e},DI.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},DI.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s},DI.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=WM(DI).call(DI,Math.floor(e/3600),2,0),r=WM(DI).call(DI,Math.floor((e-3600*t)/60),2,0),n=WM(DI).call(DI,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},DI.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},DI.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},DI.deepCopy=function(e,t){var r;if("Object"===DI.typeOf(t)&&"Object"===DI.typeOf(e))return eR(r=$P(t)).call(r,(function(r){if("Object"!==DI.typeOf(t[r])||t[r]instanceof Node)if("Array"===DI.typeOf(t[r])){var n;e[r]="Array"===DI.typeOf(e[r])?f_(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:DI.deepCopy(e[r],t[r])})),e},DI.deepMerge=function(e,t){var r;return WO(r=$P(t)).call(r,(function(r){var n;"Array"===DI.typeOf(t[r])&&"Array"===DI.typeOf(e[r])?"Array"===DI.typeOf(e[r])&&(n=e[r]).push.apply(n,SM(t[r])):DI.typeOf(e[r])!==DI.typeOf(t[r])||null===e[r]||"Object"!==DI.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):DI.deepMerge(e[r],t[r])})),e},DI.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},DI.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return eR(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},DI.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=nk(LT(r).call(r,e),n))},DI.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},DI.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=bP((function(){t(),DI.clearTimeout(e,n)}),r);return e._timers.push(n),n},DI.clearTimeout=function(e,t){var r=e._timers;if("Array"===DI.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){Gk(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},DI.clearAllTimers=function(e){var t=e._timers;"Array"===DI.typeOf(t)&&(WO(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},DI.createImgBtn=function(e,t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g=DI.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(YM(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(nR(r).call(r,e)>-1&&nR(n).call(n,e)>-1)||(u=Xk(nO(t=SP(r).call(r,0,nR(r).call(r,e))).call(t)),f=Xk(nO(i=SP(n).call(n,0,nR(n).call(n,e))).call(i)),p=e,!1)})),g.style.width=f_(o="".concat(u)).call(o,p),g.style.height=f_(a="".concat(f)).call(a,p),g.style.backgroundSize=f_(s=f_(l=f_(c="".concat(u)).call(c,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?f_(h=f_(d=f_(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,u/2)).call(h,p):"auto 5px auto 5px");return g},DI.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(nP(e,16))})),f_(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},DI.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},DI.checkIsFunction=function(e){return e&&"function"==typeof e},DI.checkIsObject=function(e){return null!==e&&"object"===wM(e)},DI.hide=function(e){e.style.display="none"},DI.show=function(e,t){e.style.display=t||"block"},DI.isUndefined=function(e){if(null==e)return!0},DI.isNotNull=function(e){return!(null==e)},DI.setStyleFromCsstext=function(e,t){if(t)if("String"===DI.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");WO(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;WO(n=$P(t)).call(n,(function(r){e.style[r]=t[r]}))}},DI.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return WO(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(nR(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),WO(t=$P(a)).call(t,(function(t){e.style[t]=a[t]})),o},DI.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return WO(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},DI.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},DI.stopPropagation=function(e){e&&e.stopPropagation()},DI.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},DI.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},DI.checkTouchSupport=function(){return"ontouchstart"in window},DI.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});kI(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var s=i[a-1].end;r[o].start-s<t?r[o].end>s&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new LI(i)},DI.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},DI.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},DI.getHostFromUrl=function(e){if("String"!==DI.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},DI.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},DI.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},DI.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},DI.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=nP(e)}catch(JO){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=nP(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},DI.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},DI.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},DI.createPositionBar=function(e,t){var r=DI.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},DI.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:f_(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=$P(n);return eR(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=f_(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},DI.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},DI.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},DI.getOffsetCurrentTime=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<t.length?r:DI.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,s=o.end,l=o.cTime,c=o.offset;return e<a?l:e>=a&&e<=s?e-c:e>s&&n>=i-1?s:-1},DI.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var jI=/(Android)\s([\d.]+)/,NI=/(Version)\/([\d.]+)/,FI=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],UI={get device(){return UI.os.isPc?"pc":"mobile"},get browser(){var e,t;if("undefined"==typeof navigator)return"";var r=navigator.userAgent.toLowerCase(),n={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return f_(e=[]).call(e,JP(t=$P(n)).call(t,(function(e){return n[e].test(r)})))[0]},get os(){if("undefined"==typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=o||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:o,isIos:s||o,isAndroid:n,isPc:!(s||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",r=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?NI:jI)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?nP(n[0]):0}return 0},get isWeixin(){if("undefined"==typeof navigator)return!1;return!!/(micromessenger)\/([\d.]+)/.exec(navigator.userAgent.toLocaleLowerCase())},isSupportMP4:function(){var e={isSupport:!1,mime:""};if("undefined"==typeof document)return e;if(this.supportResult)return this.supportResult;var t=document.createElement("video");return"function"==typeof t.canPlayType&&WO(FI).call(FI,(function(r){"probably"===t.canPlayType('video/mp4; codecs="'.concat(r,'"'))&&(e.isSupport=!0,e.mime+="||".concat(r))})),this.supportResult=e,t=null,e},isMSESupport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if("undefined"==typeof MediaSource||!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(vj){return this._logger.error(e,vj),!1}},isHevcSupported:function(){return!("undefined"==typeof MediaSource||!MediaSource.isTypeSupported)&&(MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))},probeConfigSupported:function(e){var t={supported:!1,smooth:!1,powerEfficient:!1};if(!e||"undefined"==typeof navigator)return p_.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var r=e.video||{},n=e.audio||{};try{var i=MediaSource.isTypeSupported(r.contentType),o=MediaSource.isTypeSupported(n.contentType);return p_.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(JO){return p_.resolve(t)}}},zI=r(hm),VI="Expected a function",BI="__lodash_placeholder__",WI=1,KI=2,HI=4,qI=8,GI=16,XI=32,YI=64,$I=128,QI=512,JI=1/0,ZI=9007199254740991,eA=17976931348623157e292,tA=NaN,rA=[["ary",$I],["bind",WI],["bindKey",KI],["curry",qI],["curryRight",GI],["flip",QI],["partial",XI],["partialRight",YI],["rearg",256]],nA="[object Function]",iA="[object GeneratorFunction]",oA="[object Symbol]",aA=/^\s+|\s+$/g,sA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lA=/\{\n\/\* \[wrapped with (.+)\] \*/,cA=/,? & /,uA=/^[-+]0x[0-9a-f]+$/i,fA=/^0b[01]+$/i,pA=/^\[object .+?Constructor\]$/,hA=/^0o[0-7]+$/i,dA=/^(?:0|[1-9]\d*)$/,vA=nP,gA="object"==fh(t)&&t&&t.Object===Object&&t,yA="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,mA=gA||yA||Function("return this")();function _A(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function wA(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,bA,r);var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function bA(e){return e!=e}function SA(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];a!==t&&a!==BI||(e[r]=BI,o[i++]=r)}return o}var EA,TA,PA,RA=Function.prototype,kA=Object.prototype,OA=mA["__core-js_shared__"],xA=(EA=/[^.]+$/.exec(OA&&gM(OA)&&gM(OA).IE_PROTO||""))?"Symbol(src)_1."+EA:"",MA=RA.toString,IA=kA.hasOwnProperty,AA=kA.toString,CA=RegExp("^"+MA.call(IA).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),LA=iO,DA=Math.max,jA=Math.min,NA=(TA=KA(Object,"defineProperty"),(PA=KA.name)&&PA.length>2?TA:void 0);function FA(e){if(!QA(e)||function(e){return!!xA&&xA in e}(e))return!1;var t=function(e){var t=QA(e)?AA.call(e):"";return t==nA||t==iA}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(JO){}return t}(e)?CA:pA;return t.test(function(e){if(null!=e){try{return MA.call(e)}catch(JO){}try{return e+""}catch(JO){}}return""}(e))}function UA(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=QA(r=e.prototype)?LA(r):{},i=e.apply(n,t);return QA(i)?i:n}}function zA(e,t,r,n,i,o,a,s,l,c){var u=t&$I,f=t&WI,p=t&KI,h=t&(qI|GI),d=t&QI,v=p?void 0:UA(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(h)var w=WA(g),b=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}(m,w);if(n&&(m=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,c=DA(o-a,0),u=Array(l+c),f=!n;++s<l;)u[s]=t[s];for(;++i<a;)(f||i<o)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}(m,n,i,h)),o&&(m=function(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,c=t.length,u=DA(o-s,0),f=Array(u+c),p=!n;++i<u;)f[i]=e[i];for(var h=i;++l<c;)f[h+l]=t[l];for(;++a<s;)(p||i<o)&&(f[h+r[a]]=e[i++]);return f}(m,o,a,h)),y-=b,h&&y<c){var S=SA(m,w);return VA(e,t,zA,g.placeholder,r,m,S,s,l,c-y)}var E=f?r:this,T=p?E[e]:e;return y=m.length,s?m=function(e,t){var r=e.length,n=jA(t.length,r),i=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e);for(;n--;){var o=t[n];e[n]=GA(o,r)?i[o]:void 0}return e}(m,s):d&&y>1&&zI(m).call(m),u&&l<y&&(m.length=l),this&&this!==mA&&this instanceof g&&(T=v||UA(T)),T.apply(E,m)}}function VA(e,t,r,n,i,o,a,s,l,c){var u=t&qI;t|=u?XI:YI,(t&=~(u?YI:XI))&HI||(t&=~(WI|KI));var f=r(e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c);return f.placeholder=n,XA(f,e,t)}function BA(e,t,r,n,i,o,a,s){var l=t&KI;if(!l&&"function"!=typeof e)throw new TypeError(VI);var c=n?n.length:0;if(c||(t&=~(XI|YI),n=i=void 0),a=void 0===a?a:DA(eC(a),0),s=void 0===s?s:eC(s),c-=i?i.length:0,t&YI){var u=n,f=i;n=i=void 0}var p=[e,t,r,n,i,u,f,o,a,s];if(e=p[0],t=p[1],r=p[2],n=p[3],i=p[4],!(s=p[9]=null==p[9]?l?0:e.length:DA(p[9]-c,0))&&t&(qI|GI)&&(t&=~(qI|GI)),t&&t!=WI)h=t==qI||t==GI?function(e,t,r){var n=UA(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=WA(i);s--;)a[s]=arguments[s];var c=o<3&&a[0]!==l&&a[o-1]!==l?[]:SA(a,l);return(o-=c.length)<r?VA(e,t,zA,i.placeholder,void 0,a,c,void 0,void 0,r-o):_A(this&&this!==mA&&this instanceof i?n:e,this,a)}}(e,t,s):t!=XI&&t!=(WI|XI)||i.length?zA.apply(void 0,p):function(e,t,r,n){var i=t&WI,o=UA(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=n.length,u=Array(c+s),f=this&&this!==mA&&this instanceof t?o:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++a];return _A(f,i?r:this,u)}}(e,t,r,n);else var h=function(e,t,r){var n=t&WI,i=UA(e);return function t(){return(this&&this!==mA&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return XA(h,e,t)}function WA(e){return e.placeholder}function KA(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return FA(r)?r:void 0}function HA(e){var t=e.match(lA);return t?t[1].split(cA):[]}function qA(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(sA,"{\n/* [wrapped with "+t+"] */\n")}function GA(e,t){return!!(t=null==t?ZI:t)&&("number"==typeof e||dA.test(e))&&e>-1&&e%1==0&&e<t}var XA=NA?function(e,t,r){var n,i=t+"";return NA(e,"toString",{configurable:!0,enumerable:!1,value:(n=qA(i,YA(HA(i),r)),function(){return n})})}:function(e){return e};function YA(e,t){return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(rA,(function(r){var n="_."+r[0];t&r[1]&&!wA(e,n)&&e.push(n)})),kI(e).call(e)}function $A(e,t,r){var n=BA(e,qI,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=$A.placeholder,n}function QA(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function JA(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&AA.call(e)==oA}function ZA(e){return e?(e=function(e){if("number"==typeof e)return e;if(JA(e))return tA;if(QA(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=QA(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(aA,"");var r=fA.test(e);return r||hA.test(e)?vA(SP(e).call(e,2),r?2:8):uA.test(e)?tA:+e}(e))===JI||e===-JI?(e<0?-1:1)*eA:e==e?e:0:0===e?e:0}function eC(e){var t=ZA(e),r=t%1;return t==t?r?t-r:t:0}$A.placeholder={};var tC=r($A),rC=Or,nC=i,iC=xO,oC=o,aC=gr,sC=rd,lC=Cd,cC=k,uC=ee,fC=Ao,pC=Qt.f,hC=ra.forEach,dC=x,vC=Xo.set,gC=Xo.getterFor,yC=Vi,mC=so,_C=Kw,wC=$t,bC=Cd,SC=H,EC=rd,TC=gc,PC=yc,RC=Md,kC=x,OC=xO.fastKey,xC=Xo.set,MC=Xo.getterFor,IC={getConstructor:function(e,t,r,n){var i=e((function(e,i){bC(e,o),xC(e,{type:t,index:yC(null),first:void 0,last:void 0,size:0}),kC||(e.size=0),SC(i)||EC(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=MC(t),s=function(e,t,r){var n,i,o=a(e),s=l(e,t);return s?s.value=r:(o.last=s={index:i=OC(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),kC?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var r,n=a(e),i=OC(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return _C(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,kC?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=l(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),kC?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=wC(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),_C(o,r?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),kC&&mC(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=MC(t),o=MC(n);TC(e,t,(function(e,t){xC(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?PC("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,PC(void 0,!0))}),r?"entries":"values",!r,!0),RC(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=nC[e],l=s&&s.prototype,c={};if(dC&&cC(s)&&(o||l.forEach&&!oC((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){vC(lC(t,u),{type:e,collection:new s}),null!=r&&sC(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=gC(e);hC(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||aC(u,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!uC(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||pC(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),iC.enable();fC(n,e,!1,!0),c[e]=n,rC({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),IC);var AC=te.Map,CC=$t,LC=A,DC=Ie,jC=Nd,NC=H,FC=rd,UC=[].push,zC=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return jC(this),(t=void 0!==a)&&DC(a),NC(e)?new this:(r=[],t?(n=0,i=CC(a,o>2?arguments[2]:void 0),FC(e,(function(e){LC(UC,r,i(e,n++))}))):FC(e,UC,{that:r}),new this(r))};Or({target:"Map",stat:!0,forced:!0},{from:zC});var VC=Rs,BC=function(){return new this(VC(arguments))};Or({target:"Map",stat:!0,forced:!0},{of:BC});var WC=ke,KC=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(WC(e)+" is not a map")},HC=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},qC=ae("Map"),GC={Map:qC,set:HC("set",2),get:HC("get",1),has:HC("has",1),remove:HC("delete",1),proto:qC.prototype},XC=KC,YC=GC.remove;Or({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=XC(this),r=!0,n=0,i=arguments.length;n<i;n++)e=YC(t,arguments[n]),r=r&&e;return!!r}});var $C=KC,QC=GC.get,JC=GC.has,ZC=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=$C(this);return JC(i,e)?(r=QC(i,e),"update"in t&&(r=t.update(r,e,i),ZC(i,e,r)),r):(n=t.insert(e,i),ZC(i,e,n),n)}});var eL=A,tL=function(e,t,r){for(var n,i,o=r||e.next;!(n=eL(o,e)).done;)if(void 0!==(i=t(n.value)))return i},rL=function(e,t,r){return r?tL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},nL=$t,iL=KC,oL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=iL(this),r=nL(e,arguments.length>1?arguments[1]:void 0);return!1!==oL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var aL=$t,sL=KC,lL=rL,cL=GC.Map,uL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=sL(this),r=aL(e,arguments.length>1?arguments[1]:void 0),n=new cL;return lL(t,(function(e,i){r(e,i,t)&&uL(n,i,e)})),n}});var fL=$t,pL=KC,hL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=pL(this),r=fL(e,arguments.length>1?arguments[1]:void 0),n=hL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var dL=$t,vL=KC,gL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=vL(this),r=dL(e,arguments.length>1?arguments[1]:void 0),n=gL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var yL=Or,mL=A,_L=k,wL=Ie,bL=rd,SL=GC.Map,EL=g([].push);yL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(_L(this)?this:SL);wL(t);var n=wL(r.has),i=wL(r.get),o=wL(r.set);return bL(e,(function(e){var a=t(e);mL(n,r,a)?EL(mL(i,r,a),e):mL(o,r,a,[e])})),r}});var TL=function(e,t){return e===t||e!=e&&t!=t},PL=KC,RL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===RL(PL(this),(function(t){if(TL(t,e))return!0}),!0)}});var kL=A,OL=rd,xL=k,ML=Ie,IL=GC.Map;Or({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(xL(this)?this:IL);ML(t);var n=ML(r.set);return OL(e,(function(e){kL(n,r,t(e),e)})),r}});var AL=KC,CL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=CL(AL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var LL=$t,DL=KC,jL=rL,NL=GC.Map,FL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=DL(this),r=LL(e,arguments.length>1?arguments[1]:void 0),n=new NL;return jL(t,(function(e,i){FL(n,r(e,i,t),e)})),n}});var UL=$t,zL=KC,VL=rL,BL=GC.Map,WL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=zL(this),r=UL(e,arguments.length>1?arguments[1]:void 0),n=new BL;return VL(t,(function(e,i){WL(n,i,r(e,i,t))})),n}});var KL=KC,HL=rd,qL=GC.set;Or({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=KL(this),r=arguments.length,n=0;n<r;)HL(arguments[n++],(function(e,r){qL(t,e,r)}),{AS_ENTRIES:!0});return t}});var GL=Ie,XL=KC,YL=rL,$L=TypeError;Or({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=XL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(GL(e),YL(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw $L("Reduce of empty map with no initial value");return n}});var QL=$t,JL=KC,ZL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=JL(this),r=QL(e,arguments.length>1?arguments[1]:void 0);return!0===ZL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var eD=Ie,tD=KC,rD=TypeError,nD=GC.get,iD=GC.has,oD=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=tD(this),n=arguments.length;eD(t);var i=iD(r,e);if(!i&&n<3)throw rD("Updating absent value");var o=i?nD(r,e):eD(n>2?arguments[2]:void 0)(e,r);return oD(r,e,t(o,e,r)),r}});var aD=A,sD=Ie,lD=k,cD=rr,uD=TypeError,fD=function(e,t){var r,n=cD(this),i=sD(n.get),o=sD(n.has),a=sD(n.set),s=arguments.length>2?arguments[2]:void 0;if(!lD(t)&&!lD(s))throw uD("At least one callback required");return aD(o,n,e)?(r=aD(i,n,e),lD(t)&&(r=t(r),aD(a,n,e,r))):lD(s)&&(r=s(),aD(a,n,e,r)),r};Or({target:"Map",proto:!0,real:!0,forced:!0},{upsert:fD}),Or({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:fD});var pD,hD,dD=r(AC);function vD(e,t,r){var n;n_()?vD=Fm(n=t_).call(n):vD=function(e,t,r){var n=[null];Hu(n).apply(n,t);var i=new(Fm(Function).apply(e,n));return r&&Um(i,r.prototype),i};return vD.apply(null,arguments)}function gD(e){var t="function"==typeof dD?new dD:void 0;return gD=function(e){if(null===e||(r=e,-1===H_(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return vD(e,arguments,r_(this).constructor)}return i.prototype=wh(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Um(i,e)},gD(e)}var yD=function(e){return e[e.MANIFEST_HLS_ERROR=1100]="MANIFEST_HLS_ERROR",e[e.MANIFEST_DASH_ERROR=1200]="MANIFEST_DASH_ERROR",e[e.NETWORK=2100]="NETWORK",e[e.NETWORK_TIMEOUT=2101]="NETWORK_TIMEOUT",e[e.NETWORK_FORBIDDEN=2103]="NETWORK_FORBIDDEN",e[e.NETWORK_NOTFOUND=2104]="NETWORK_NOTFOUND",e[e.NETWORK_RANGE_NOT_SATISFIABLE=2116]="NETWORK_RANGE_NOT_SATISFIABLE",e[e.DEMUX_FLV_ERROR=3100]="DEMUX_FLV_ERROR",e[e.DEMUX_HLS_ERROR=3200]="DEMUX_HLS_ERROR",e[e.DEMUX_MP4_ERROR=3300]="DEMUX_MP4_ERROR",e[e.DEMUX_FMP4_ERROR=3400]="DEMUX_FMP4_ERROR",e[e.DEMUX_SIDX_ERROR=3410]="DEMUX_SIDX_ERROR",e[e.REMUX_FMP4_ERROR=4100]="REMUX_FMP4_ERROR",e[e.REMUX_MP4_ERROR=4200]="REMUX_MP4_ERROR",e[e.MEDIA_ERR_ABORTED=5101]="MEDIA_ERR_ABORTED",e[e.MEDIA_ERR_NETWORK=5102]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=5103]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=5104]="MEDIA_ERR_SRC_NOT_SUPPORTED",e[e.MEDIA_ERR_CODEC_NOT_SUPPORTED=5105]="MEDIA_ERR_CODEC_NOT_SUPPORTED",e[e.MEDIA_ERR_URL_EMPTY=5106]="MEDIA_ERR_URL_EMPTY",e[e.MEDIA_MSE_ADD_SB=5200]="MEDIA_MSE_ADD_SB",e[e.MEDIA_MSE_APPEND_BUFFER=5201]="MEDIA_MSE_APPEND_BUFFER",e[e.MEDIA_MSE_OTHER=5202]="MEDIA_MSE_OTHER",e[e.MEDIA_MSE_FULL=5203]="MEDIA_MSE_FULL",e[e.MEDIA_MSE_HIJACK=5204]="MEDIA_MSE_HIJACK",e[e.MEDIA_EME_HIJACK=5301]="MEDIA_EME_HIJACK",e[e.DRM_LICENSE=7100]="DRM_LICENSE",e[e.DRM_CUSTOM_LICENSE=7200]="DRM_CUSTOM_LICENSE",e[e.OTHER=8e3]="OTHER",e[e.RUNTIME_NO_CANPLAY_ERROR=9001]="RUNTIME_NO_CANPLAY_ERROR",e[e.RUNTIME_BUFFERBREAK_ERROR=9002]="RUNTIME_BUFFERBREAK_ERROR",e[e.RUNTIME_BWAITING_TIMEOUT_ERROR=9002]="RUNTIME_BWAITING_TIMEOUT_ERROR",e[e.MODULE_LOAD_ERROR=110]="MODULE_LOAD_ERROR",e.UNKNOWN="UNKNOWN",e}(yD||{}),mD=(vh(pD={},2100,{messageTextKey:"NETWORK",level:"Error"}),vh(pD,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),vh(pD,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),vh(pD,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),vh(pD,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),vh(pD,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),vh(pD,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),vh(pD,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),vh(pD,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),vh(pD,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),vh(pD,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),vh(pD,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),pD);vh(hD={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),vh(hD,"network",{messageTextKey:"NETWORK",level:"Error"}),vh(hD,"demux",{messageTextKey:"DEMUX",level:"Error"}),vh(hD,"remux",{messageTextKey:"REMUX",level:"Error"}),vh(hD,"media",{messageTextKey:"MEDIA",level:"Error"}),vh(hD,"drm",{messageTextKey:"DRM",level:"Error"}),vh(hD,"other",{messageTextKey:"OTHER",level:"Error"}),vh(hD,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var _D,wD,bD=function(e){zm(r,e);var t=o_(r);function r(e,n){var i,o,a,s,l,c,u;mm(this,r);var f="string"==typeof e?{message:e}:e,p=null!==(i=null!==(o=null!==(a=null==n?void 0:n.getText(null==f?void 0:f.messageTextKey))&&void 0!==a?a:null==f?void 0:f.message)&&void 0!==o?o:null==f||null===(s=f.error)||void 0===s?void 0:s.message)&&void 0!==i?i:null==n?void 0:n.getText("UNKNOWN");return vh(i_(u=t.call(this,p)),"errorCode",void 0),vh(i_(u),"level",void 0),vh(i_(u),"ext",void 0),u.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",u.level=null!==(c=null==f?void 0:f.level)&&void 0!==c?c:"Error",u.ext=null==f?void 0:f.ext,u}return wm(r)}(gD(Error));function SD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new bD(yh(yh({errorCode:e},mD[e]),t),r)}var ED=null!==(_D=null===(wD=document.currentScript)||void 0===wD?void 0:wD.src)&&void 0!==_D?_D:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.0","/object/umd/"),TD=new lM({baseUrl:SP(ED).call(ED,0,KR(ED).call(ED,"/"))});function PD(e,t){return RD.apply(this,arguments)}function RD(){return RD=ym(vm().mark((function e(t,r){var n;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,TD.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),SD(yD.MODULE_LOAD_ERROR,{ext:{name:t,cdn:null===e.t0||void 0===e.t0||null===(n=e.t0.target)||void 0===n?void 0:n.src},error:e.t0});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),RD.apply(this,arguments)}TD.registerPlugin,TD.register;var kD=function(e){return e.H265="h265",e.H264="h264",e}(kD||{}),OD=['video/mp4;codecs="hev1.1.6.L120.90"','video/mp4;codecs="hev1.2.4.L120.90"','video/mp4;codecs="hev1.3.E.L120.90"','video/mp4;codecs="hev1.4.10.L120.90"'],xD=tC((function(e,t){var r;return null==t?void 0:PR(r=t.split("?")[0].toLowerCase()).call(r,e)})),MD=xD(".m3u8"),ID=xD(".mp4"),AD=xD(".flv"),CD=xD(".sdp"),LD=xD(".mpd");function DD(e){return MD(e)?"hls":AD(e)?"flv":CD(e)?"rtm":ID(e)?"mp4":LD(e)?"dash":"unknown"}function jD(){return(jD=ym(vm().mark((function e(){var t,r;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,PD(sM.PluginXgvideo);case 2:return t=e.sent,r=t.XGVideoPlugin,e.abrupt("return",null==r?void 0:r.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}yh(yh({},DI),{},{getStreamType:DD,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kD.H264;return e===kD.H265?UI.isHevcSupported():e===kD.H264?UI.isMSESupport():UI.isMSESupport(e)},isSoftDecodeSupported:function(){return jD.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kD.H264;return void 0!==window.ManagedMediaSource&&(e===kD.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===kD.H265?oM(OD).call(OD,(function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var r,n=iT(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var i,o=bw(e).call(e,"//");for(var a in t){var s,l,c=t[a];if(null!=n&&n.searchParams.has(a))null==n||null===(s=n.searchParams)||void 0===s||s.set(a,c);else null==n||null===(l=n.searchParams)||void 0===l||l.append(a,c)}return e=n.toString(),o?null===(i=e)||void 0===i?void 0:i.replace(location.protocol,""):e},getUrlObject:iT});var ND,FD=window.VePlayer.DynamicModule,UD=window.VePlayer.load,zD=function(){var e=ym(vm().mark((function e(t){var r,n,i,o,a,s;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("rtm"!==(o=t.url&&DD(t.url))){e.next=3;break}return e.abrupt("return",{});case 3:if(a="flv"===o?null==t||null===(r=t.flv)||void 0===r?void 0:r.abr:null==t||null===(n=t.hls)||void 0===n?void 0:n.abr){e.next=6;break}return e.abrupt("return",{});case 6:return e.next=8,UD(FD.PluginAbr).catch((function(){}));case 8:return s=e.sent,e.abrupt("return",{options:vh({},"flv"===o?"abr":"hlsabr",yh(yh({},a),{},{open:null===(i=a.enable)||void 0===i||i})),plugins:["flv"===o?null==s?void 0:s.AbrPlugin:null==s?void 0:s.HlsAbrPlugin]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),VD=window.VePlayer.DEFAULT_PLUGINS,BD=window.VePlayer.VePlayerBase,WD=window.VePlayer.VeI18n;WD.extend([{LANG:"zh-cn",TEXT:Yx},{LANG:"en",TEXT:Xx}]);var KD={autoplay:{muted:!0}},HD=f_(ND=[]).call(ND,a_(VD),[XP,Vx,qx]),qD=function(e){return e.H264="h264",e}(qD||{}),GD=function(e){zm(n,e);var t,r=o_(n);function n(e){return mm(this,n),r.call(this,e)}return wm(n,[{key:"playTime",get:function(){var e;if(null===(e=this._player)||void 0===e||null===(e=e.played)||void 0===e||!e.length)return 0;for(var t=this._player.played.length,r=0,n=0;n<t;n++){var i,o,a=null===(i=this._player)||void 0===i?void 0:i.played.start(n);r+=(null===(o=this._player)||void 0===o?void 0:o.played.end(n))-a}return r}},{key:"ad",get:function(){var e;return null===(e=this._player.plugins)||void 0===e||null===(e=e.ad)||void 0===e?void 0:e.adManager}},{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}},{key:"openAbr",value:function(){var e,t,r=this.url&&DD(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!0)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!0)}},{key:"closeAbr",value:function(){var e,t,r=this.url&&DD(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!1)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!1)}},{key:"updateDrmConfig",value:function(e){var t;null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.drm)||void 0===t||t.updateDrmConfig(e)}},{key:"switchAbr",value:function(e){var t;if(null!==(t=this._player.plugins)&&void 0!==t&&t.abr){if(void 0!==(null==e?void 0:e.bitrate)){var r=this._player.plugins.abr.config.urls[e.bitrate];if(!r)return;this.switch(r,{seamless:!0}),this._player.plugins.abr.bitrate=e.bitrate}var n;if(void 0!==(null==e?void 0:e.enable))null===(n=this._player.plugins)||void 0===n||n.abr.switchAbr(e.enable)}}},{key:"getRTMNetWorkInfo",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.rts)||void 0===e?void 0:e.getNetWorkInfo()}},{key:"getRTMStats",value:(t=ym(vm().mark((function e(){var t;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.rts)||void 0===t?void 0:t.getStatsSnapshoot());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getFLVStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.flv)||void 0===e?void 0:e.getStats()}}]),n}(BD);function XD(e){return YD.apply(this,arguments)}function YD(){return(YD=ym(vm().mark((function e(t){var r,n,i,o,a,s,l,c,u;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=void 0,s=new WD({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),t&&(t.url||t.playlist)){e.next=4;break}throw L_(A_.INVALID_PARAMETER,s);case 4:return null!==(r=t.logger)&&void 0!==r&&r.appId||!1===(null==t||null===(n=t.logger)||void 0===n?void 0:n.enable)||console.warn(L_(A_.INVALID_LOGGER,s).message),l=yh(yh({},t),{},{plugins:f_(i=[]).call(i,a_(HD),a_(null!==(o=t.plugins)&&void 0!==o?o:[]))}),e.next=8,BD.create(yh(yh(yh({},KD),l),{},{isLive:!0,i18nManager:s,preProcessUrl:function(e){return xD(".ts",e)?{url:e}:{url:Ux(e)}},preparePlugins:function(e){return ym(vm().mark((function t(){var r,n,i,o,c,u,f,p,h,d,v,g,y,m,_,w;return vm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p_.all([CT(yh(yh({},l),{},{url:e}),a,s),Zx(yh(yh({},l),{},{url:e}),a),zD(yh(yh({},l),{},{url:e}))]);case 2:return i=t.sent,o=Jf(i,3),c=o[0],u=o[1],f=o[2],h=(p=null!=c?c:{}).options,d=p.plugins,g=(v=null!=u?u:{}).options,y=v.plugins,_=(m=null!=f?f:{}).options,w=m.plugins,t.abrupt("return",{options:O_({},h,g,_),plugins:f_(r=[]).call(r,a_(null!=d?d:[]),a_(null!=y?y:[]),a_(null!=w?w:[])),useSrc:!(null!==(n=c.plugins)&&void 0!==n&&n.length)});case 11:case"end":return t.stop()}}),t)})))()}}),GD);case 8:return(a=e.sent)&&(u=null===(c=a)||void 0===c||null===(c=c._player)||void 0===c||null===(c=c.config)||void 0===c?void 0:c._RTMdegrade)&&a.emit("degrade",{originRtmUrl:u._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:u._isRTMSupported,isRTMSupportCodec:u._isRTMSupportCodec}),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var $D=Object.freeze({__proto__:null,ErrorCode:A_,Events:BP}),QD=window.VePlayer.setModuleSystem,JD=window.VePlayer.Codec,ZD=window.VePlayer.DecodeType,ej=window.VePlayer.Degradation,tj=window.VePlayer.POSITIONS,rj=window.VePlayer.register,nj=window.VePlayer.registerPlugin,ij=window.VePlayer.EN,oj=window.VePlayer.ZH_CN,aj=window.VePlayer.Plugin,sj=window.VePlayer.Sniffer,lj=window.VePlayer.DynamicModule,cj=window.VePlayer.util,uj=window.VePlayer.load,fj=window.VePlayer.ListType;QD("umd");var pj=cj.isMseSupported,hj=cj.isSoftDecodeSupported,dj=cj.isMMSSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(lj.BizLive,{createLivePlayer:XD}):nj(lj.BizLive,{createLivePlayer:XD}),e.Codec=JD,e.DecodeType=ZD,e.Degradation=ej,e.DynamicModule=lj,e.EN=ij,e.ListType=fj,e.POSITIONS=tj,e.Plugin=aj,e.RTMCodec=qD,e.Sniffer=sj,e.ZH_CN=oj,e.createLivePlayer=XD,e.isFLVSupported=PT,e.isMMSSupported=dj,e.isMseSupported=pj,e.isRTMSupportCodec=Q_,e.isRTMSupported=Y_,e.isSoftDecodeSupported=hj,e.live=$D,e.load=uj,e.register=rj,e.registerPlugin=nj,e.util=cj}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,S=g,E=function(e){if("Function"===w(e))return S(e)},T="object"==typeof document&&document.all,P={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},R=P.all,k=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},O={},x=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=a,I=Function.prototype.call,A=M?I.bind(I):function(){return I.apply(I,arguments)},C={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,j=D&&!L.call({1:2},1);C.f=j?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var N,F,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,V=b,B=Object,W=g("".split),K=z((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?W(e,""):B(e)}:B,H=function(e){return null==e},q=H,G=TypeError,X=function(e){if(q(e))throw G("Can't call method on "+e);return e},Y=K,$=X,Q=function(e){return Y($(e))},J=k,Z=P.all,ee=P.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},te={},re=te,ne=i,ie=k,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,pe=ce.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(F=(N=de.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&ue&&(!(N=ue.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=ue.match(/Chrome\/(\d+)/))&&(F=+N[1]);var ve=F,ge=ve,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=k,Ee=se,Te=Object,Pe=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&Ee(t.prototype,Te(e))},Re=String,ke=function(e){try{return Re(e)}catch(t){return"Object"}},Oe=k,xe=ke,Me=TypeError,Ie=function(e){if(Oe(e))return e;throw Me(xe(e)+" is not a function")},Ae=Ie,Ce=H,Le=function(e,t){var r=e[t];return Ce(r)?void 0:Ae(r)},De=A,je=k,Ne=ee,Fe=TypeError,Ue={exports:{}},ze=i,Ve=Object.defineProperty,Be=function(e,t){try{Ve(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",Ke=i[We]||Be(We,{}),He=Ke;(Ue.exports=function(e,t){return He[e]||(He[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var qe=Ue.exports,Ge=X,Xe=Object,Ye=function(e){return Xe(Ge(e))},$e=Ye,Qe=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Qe($e(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=qe,ot=Je,at=nt,st=_e,lt=be,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},ht=A,dt=ee,vt=Pe,gt=Le,yt=function(e,t){var r,n;if("string"===t&&je(r=e.toString)&&!Ne(n=De(r,e)))return n;if(je(r=e.valueOf)&&!Ne(n=De(r,e)))return n;if("string"!==t&&je(r=e.toString)&&!Ne(n=De(r,e)))return n;throw Fe("Can't convert object to primitive value")},mt=TypeError,_t=pt("toPrimitive"),bt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Pe,St=function(e){var t=bt(e,"string");return wt(t)?t:t+""},Et=ee,Tt=i.document,Pt=Et(Tt)&&Et(Tt.createElement),Rt=function(e){return Pt?Tt.createElement(e):{}},kt=Rt,Ot=!x&&!o((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),xt=x,Mt=A,It=C,At=U,Ct=Q,Lt=St,Dt=Je,jt=Ot,Nt=Object.getOwnPropertyDescriptor;O.f=xt?Nt:function(e,t){if(e=Ct(e),t=Lt(t),jt)try{return Nt(e,t)}catch(r){}if(Dt(e,t))return At(!Mt(It.f,e,t),e[t])};var Ft=o,Ut=k,zt=/#|\.prototype\./,Vt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=Kt&&(Ut(t)?Ft(t):!!t)},Bt=Vt.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Vt.data={},Kt=Vt.NATIVE="N",Ht=Vt.POLYFILL="P",qt=Vt,Gt=Ie,Xt=a,Yt=E(E.bind),$t=function(e,t){return Gt(e),void 0===t?e:Xt?Yt(e,t):function(){return e.apply(t,arguments)}},Qt={},Jt=x&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=x,ir=Ot,or=Jt,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Qt.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=ur(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Qt,vr=U,gr=x?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=E,br=k,wr=O.f,Sr=qt,Er=te,Tr=$t,Pr=gr,Rr=Je,kr=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Or=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?yr:h?yr[f]:(yr[f]||{}).prototype,g=p?Er:Er[f]||Pr(Er,f,{})[f],y=g.prototype;for(o in t)n=!(r=Sr(p?o:f+(h?".":"#")+o,e.forced))&&v&&Rr(v,o),s=g[o],n&&(l=e.dontCallGetSet?(u=wr(v,o))&&u.value:v[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?Tr(a,yr):e.wrap&&n?kr(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(c,"sham",!0),Pr(g,o,c),d&&(Rr(Er,i=f+"Prototype")||Pr(Er,i,{}),Pr(Er[i],o,a),e.real&&y&&(r||!y[o])&&Pr(y,o,a)))},xr=b,Mr=Array.isArray||function(e){return"Array"==xr(e)};Or({target:"Array",stat:!0},{isArray:Mr});var Ir=te.Array.isArray,Ar=r(Ir);var Cr=Math.ceil,Lr=Math.floor,Dr=Math.trunc||function(e){var t=+e;return(t>0?Lr:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Dr(t)},Nr=jr,Fr=Math.min,Ur=function(e){return e>0?Fr(Nr(e),9007199254740991):0},zr=Ur,Vr=function(e){return zr(e.length)},Br=TypeError,Wr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},Kr=St,Hr=Qt,qr=U,Gr=function(e,t,r){var n=Kr(t);n in e?Hr.f(e,n,qr(0,r)):e[n]=r},Xr={};Xr[pt("toStringTag")]="z";var Yr="[object z]"===String(Xr),$r=Yr,Qr=k,Jr=b,Zr=pt("toStringTag"),en=Object,tn="Arguments"==Jr(function(){return arguments}()),rn=$r?Jr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=en(e),Zr))?r:tn?Jr(t):"Object"==(n=Jr(t))&&Qr(t.callee)?"Arguments":n},nn=k,on=Ke,an=g(Function.toString);nn(on.inspectSource)||(on.inspectSource=function(e){return an(e)});var sn=on.inspectSource,ln=g,cn=o,un=k,fn=rn,pn=sn,hn=function(){},dn=[],vn=ae("Reflect","construct"),gn=/^\s*(?:class|function)\b/,yn=ln(gn.exec),mn=!gn.exec(hn),_n=function(e){if(!un(e))return!1;try{return vn(hn,dn,e),!0}catch(t){return!1}},bn=function(e){if(!un(e))return!1;switch(fn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!yn(gn,pn(e))}catch(t){return!0}};bn.sham=!0;var wn=!vn||cn((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?bn:_n,Sn=Mr,En=wn,Tn=ee,Pn=pt("species"),Rn=Array,kn=function(e){var t;return Sn(e)&&(t=e.constructor,(En(t)&&(t===Rn||Sn(t.prototype))||Tn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?Rn:t},On=function(e,t){return new(kn(e))(0===t?0:t)},xn=o,Mn=ve,In=pt("species"),An=function(e){return Mn>=51||!xn((function(){var t=[];return(t.constructor={})[In]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=Or,Ln=o,Dn=Mr,jn=ee,Nn=Ye,Fn=Vr,Un=Wr,zn=Gr,Vn=On,Bn=An,Wn=ve,Kn=pt("isConcatSpreadable"),Hn=Wn>=51||!Ln((function(){var e=[];return e[Kn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Kn];return void 0!==t?!!t:Dn(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Hn||!Bn("concat")},{concat:function(e){var t,r,n,i,o,a=Nn(this),s=Vn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(o=-1===t?a:arguments[t]))for(i=Fn(o),Un(l+i),r=0;r<i;r++,l++)r in o&&zn(s,l,o[r]);else Un(l+1),zn(s,l++,o);return s.length=l,s}});var Gn=rn,Xn=String,Yn=function(e){if("Symbol"===Gn(e))throw TypeError("Cannot convert a Symbol value to a string");return Xn(e)},$n={},Qn=jr,Jn=Math.max,Zn=Math.min,ei=function(e,t){var r=Qn(e);return r<0?Jn(r+t,0):Zn(r,t)},ti=Q,ri=ei,ni=Vr,ii=function(e){return function(t,r,n){var i,o=ti(t),a=ni(o),s=ri(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},oi={includes:ii(!0),indexOf:ii(!1)},ai={},si=Je,li=Q,ci=oi.indexOf,ui=ai,fi=g([].push),pi=function(e,t){var r,n=li(e),i=0,o=[];for(r in n)!si(ui,r)&&si(n,r)&&fi(o,r);for(;t.length>i;)si(n,r=t[i++])&&(~ci(o,r)||fi(o,r));return o},hi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=pi,vi=hi,gi=Object.keys||function(e){return di(e,vi)},yi=x,mi=Jt,_i=Qt,bi=rr,wi=Q,Si=gi;$n.f=yi&&!mi?Object.defineProperties:function(e,t){bi(e);for(var r,n=wi(t),i=Si(t),o=i.length,a=0;o>a;)_i.f(e,r=i[a++],n[r]);return e};var Ei,Ti=ae("document","documentElement"),Pi=nt,Ri=qe("keys"),ki=function(e){return Ri[e]||(Ri[e]=Pi(e))},Oi=rr,xi=$n,Mi=hi,Ii=ai,Ai=Ti,Ci=Rt,Li="prototype",Di="script",ji=ki("IE_PROTO"),Ni=function(){},Fi=function(e){return"<"+Di+">"+e+"</"+Di+">"},Ui=function(e){e.write(Fi("")),e.close();var t=e.parentWindow.Object;return e=null,t},zi=function(){try{Ei=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;zi="undefined"!=typeof document?document.domain&&Ei?Ui(Ei):(t=Ci("iframe"),r="java"+Di+":",t.style.display="none",Ai.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Fi("document.F=Object")),e.close(),e.F):Ui(Ei);for(var n=Mi.length;n--;)delete zi[Li][Mi[n]];return zi()};Ii[ji]=!0;var Vi=Object.create||function(e,t){var r;return null!==e?(Ni[Li]=Oi(e),r=new Ni,Ni[Li]=null,r[ji]=e):r=zi(),void 0===t?r:xi.f(r,t)},Bi={},Wi=pi,Ki=hi.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(e){return Wi(e,Ki)};var Hi={},qi=ei,Gi=Vr,Xi=Gr,Yi=Array,$i=Math.max,Qi=function(e,t,r){for(var n=Gi(e),i=qi(t,n),o=qi(void 0===r?n:r,n),a=Yi($i(o-i,0)),s=0;i<o;i++,s++)Xi(a,s,e[i]);return a.length=s,a},Ji=b,Zi=Q,eo=Bi.f,to=Qi,ro="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Hi.f=function(e){return ro&&"Window"==Ji(e)?function(e){try{return eo(e)}catch(t){return to(ro)}}(e):eo(Zi(e))};var no={};no.f=Object.getOwnPropertySymbols;var io=gr,oo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:io(e,t,r),e},ao=Qt,so=function(e,t,r){return ao.f(e,t,r)},lo={},co=pt;lo.f=co;var uo,fo,po,ho=te,vo=Je,go=lo,yo=Qt.f,mo=function(e){var t=ho.Symbol||(ho.Symbol={});vo(t,e)||yo(t,e,{value:go.f(e)})},_o=A,bo=ae,wo=pt,So=oo,Eo=function(){var e=bo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wo("toPrimitive");t&&!t[n]&&So(t,n,(function(e){return _o(r,this)}),{arity:1})},To=rn,Po=Yr?{}.toString:function(){return"[object "+To(this)+"]"},Ro=Yr,ko=Qt.f,Oo=gr,xo=Je,Mo=Po,Io=pt("toStringTag"),Ao=function(e,t,r,n){if(e){var i=r?e:e.prototype;xo(i,Io)||ko(i,Io,{configurable:!0,value:t}),n&&!Ro&&Oo(i,"toString",Mo)}},Co=k,Lo=i.WeakMap,Do=Co(Lo)&&/native code/.test(String(Lo)),jo=i,No=ee,Fo=gr,Uo=Je,zo=Ke,Vo=ki,Bo=ai,Wo="Object already initialized",Ko=jo.TypeError,Ho=jo.WeakMap;if(Do||zo.state){var qo=zo.state||(zo.state=new Ho);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,uo=function(e,t){if(qo.has(e))throw Ko(Wo);return t.facade=e,qo.set(e,t),t},fo=function(e){return qo.get(e)||{}},po=function(e){return qo.has(e)}}else{var Go=Vo("state");Bo[Go]=!0,uo=function(e,t){if(Uo(e,Go))throw Ko(Wo);return t.facade=e,Fo(e,Go,t),t},fo=function(e){return Uo(e,Go)?e[Go]:{}},po=function(e){return Uo(e,Go)}}var Xo={set:uo,get:fo,has:po,enforce:function(e){return po(e)?fo(e):uo(e,{})},getterFor:function(e){return function(t){var r;if(!No(t)||(r=fo(t)).type!==e)throw Ko("Incompatible receiver, "+e+" required");return r}}},Yo=$t,$o=K,Qo=Ye,Jo=Vr,Zo=On,ea=g([].push),ta=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var p,h,d=Qo(l),v=$o(d),g=Yo(c,u),y=Jo(v),m=0,_=f||Zo,b=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(h=g(p=v[m],m,d),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:ea(b,p)}else switch(e){case 4:return!1;case 7:ea(b,p)}return o?-1:n||i?i:b}},ra={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},na=Or,ia=i,oa=A,aa=g,sa=x,la=_e,ca=o,ua=Je,fa=se,pa=rr,ha=Q,da=St,va=Yn,ga=U,ya=Vi,ma=gi,_a=Bi,ba=Hi,wa=no,Sa=O,Ea=Qt,Ta=$n,Pa=C,Ra=oo,ka=so,Oa=qe,xa=ai,Ma=nt,Ia=pt,Aa=lo,Ca=mo,La=Eo,Da=Ao,ja=Xo,Na=ra.forEach,Fa=ki("hidden"),Ua="Symbol",za="prototype",Va=ja.set,Ba=ja.getterFor(Ua),Wa=Object[za],Ka=ia.Symbol,Ha=Ka&&Ka[za],qa=ia.TypeError,Ga=ia.QObject,Xa=Sa.f,Ya=Ea.f,$a=ba.f,Qa=Pa.f,Ja=aa([].push),Za=Oa("symbols"),es=Oa("op-symbols"),ts=Oa("wks"),rs=!Ga||!Ga[za]||!Ga[za].findChild,ns=sa&&ca((function(){return 7!=ya(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Xa(Wa,t);n&&delete Wa[t],Ya(e,t,r),n&&e!==Wa&&Ya(Wa,t,n)}:Ya,is=function(e,t){var r=Za[e]=ya(Ha);return Va(r,{type:Ua,tag:e,description:t}),sa||(r.description=t),r},os=function(e,t,r){e===Wa&&os(es,t,r),pa(e);var n=da(t);return pa(r),ua(Za,n)?(r.enumerable?(ua(e,Fa)&&e[Fa][n]&&(e[Fa][n]=!1),r=ya(r,{enumerable:ga(0,!1)})):(ua(e,Fa)||Ya(e,Fa,ga(1,{})),e[Fa][n]=!0),ns(e,n,r)):Ya(e,n,r)},as=function(e,t){pa(e);var r=ha(t),n=ma(r).concat(us(r));return Na(n,(function(t){sa&&!oa(ss,r,t)||os(e,t,r[t])})),e},ss=function(e){var t=da(e),r=oa(Qa,this,t);return!(this===Wa&&ua(Za,t)&&!ua(es,t))&&(!(r||!ua(this,t)||!ua(Za,t)||ua(this,Fa)&&this[Fa][t])||r)},ls=function(e,t){var r=ha(e),n=da(t);if(r!==Wa||!ua(Za,n)||ua(es,n)){var i=Xa(r,n);return!i||!ua(Za,n)||ua(r,Fa)&&r[Fa][n]||(i.enumerable=!0),i}},cs=function(e){var t=$a(ha(e)),r=[];return Na(t,(function(e){ua(Za,e)||ua(xa,e)||Ja(r,e)})),r},us=function(e){var t=e===Wa,r=$a(t?es:ha(e)),n=[];return Na(r,(function(e){!ua(Za,e)||t&&!ua(Wa,e)||Ja(n,Za[e])})),n};la||(Ka=function(){if(fa(Ha,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?va(arguments[0]):void 0,t=Ma(e),r=function(e){this===Wa&&oa(r,es,e),ua(this,Fa)&&ua(this[Fa],t)&&(this[Fa][t]=!1),ns(this,t,ga(1,e))};return sa&&rs&&ns(Wa,t,{configurable:!0,set:r}),is(t,e)},Ra(Ha=Ka[za],"toString",(function(){return Ba(this).tag})),Ra(Ka,"withoutSetter",(function(e){return is(Ma(e),e)})),Pa.f=ss,Ea.f=os,Ta.f=as,Sa.f=ls,_a.f=ba.f=cs,wa.f=us,Aa.f=function(e){return is(Ia(e),e)},sa&&ka(Ha,"description",{configurable:!0,get:function(){return Ba(this).description}})),na({global:!0,constructor:!0,wrap:!0,forced:!la,sham:!la},{Symbol:Ka}),Na(ma(ts),(function(e){Ca(e)})),na({target:Ua,stat:!0,forced:!la},{useSetter:function(){rs=!0},useSimple:function(){rs=!1}}),na({target:"Object",stat:!0,forced:!la,sham:!sa},{create:function(e,t){return void 0===t?ya(e):as(ya(e),t)},defineProperty:os,defineProperties:as,getOwnPropertyDescriptor:ls}),na({target:"Object",stat:!0,forced:!la},{getOwnPropertyNames:cs}),La(),Da(Ka,Ua),xa[Fa]=!0;var fs=_e&&!!Symbol.for&&!!Symbol.keyFor,ps=Or,hs=ae,ds=Je,vs=Yn,gs=qe,ys=fs,ms=gs("string-to-symbol-registry"),_s=gs("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{for:function(e){var t=vs(e);if(ds(ms,t))return ms[t];var r=hs("Symbol")(t);return ms[t]=r,_s[r]=t,r}});var bs=Or,ws=Je,Ss=Pe,Es=ke,Ts=fs,Ps=qe("symbol-to-string-registry");bs({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(e){if(!Ss(e))throw TypeError(Es(e)+" is not a symbol");if(ws(Ps,e))return Ps[e]}});var Rs=g([].slice),ks=Mr,Os=k,xs=b,Ms=Yn,Is=g([].push),As=Or,Cs=ae,Ls=f,Ds=A,js=g,Ns=o,Fs=k,Us=Pe,zs=Rs,Vs=function(e){if(Os(e))return e;if(ks(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Is(r,i):"number"!=typeof i&&"Number"!=xs(i)&&"String"!=xs(i)||Is(r,Ms(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(ks(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Bs=_e,Ws=String,Ks=Cs("JSON","stringify"),Hs=js(/./.exec),qs=js("".charAt),Gs=js("".charCodeAt),Xs=js("".replace),Ys=js(1..toString),$s=/[\uD800-\uDFFF]/g,Qs=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,Zs=!Bs||Ns((function(){var e=Cs("Symbol")();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))})),el=Ns((function(){return'"\\udf06\\ud834"'!==Ks("\udf06\ud834")||'"\\udead"'!==Ks("\udead")})),tl=function(e,t){var r=zs(arguments),n=Vs(t);if(Fs(n)||void 0!==e&&!Us(e))return r[1]=function(e,t){if(Fs(n)&&(t=Ds(n,this,Ws(e),t)),!Us(t))return t},Ls(Ks,null,r)},rl=function(e,t,r){var n=qs(r,t-1),i=qs(r,t+1);return Hs(Qs,e)&&!Hs(Js,i)||Hs(Js,e)&&!Hs(Qs,n)?"\\u"+Ys(Gs(e,0),16):e};Ks&&As({target:"JSON",stat:!0,arity:3,forced:Zs||el},{stringify:function(e,t,r){var n=zs(arguments),i=Ls(Zs?tl:Ks,null,n);return el&&"string"==typeof i?Xs(i,$s,rl):i}});var nl=no,il=Ye;Or({target:"Object",stat:!0,forced:!_e||o((function(){nl.f(1)}))},{getOwnPropertySymbols:function(e){var t=nl.f;return t?t(il(e)):[]}}),mo("asyncIterator"),mo("hasInstance"),mo("isConcatSpreadable"),mo("iterator"),mo("match"),mo("matchAll"),mo("replace"),mo("search"),mo("species"),mo("split");var ol=Eo;mo("toPrimitive"),ol();var al=ae,sl=Ao;mo("toStringTag"),sl(al("Symbol"),"Symbol"),mo("unscopables"),Ao(i.JSON,"JSON",!0);var ll,cl,ul,fl=te.Symbol,pl={},hl=x,dl=Je,vl=Function.prototype,gl=hl&&Object.getOwnPropertyDescriptor,yl=dl(vl,"name"),ml={EXISTS:yl,PROPER:yl&&"something"===function(){}.name,CONFIGURABLE:yl&&(!hl||hl&&gl(vl,"name").configurable)},_l=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bl=Je,wl=k,Sl=Ye,El=_l,Tl=ki("IE_PROTO"),Pl=Object,Rl=Pl.prototype,kl=El?Pl.getPrototypeOf:function(e){var t=Sl(e);if(bl(t,Tl))return t[Tl];var r=t.constructor;return wl(r)&&t instanceof r?r.prototype:t instanceof Pl?Rl:null},Ol=o,xl=k,Ml=ee,Il=Vi,Al=kl,Cl=oo,Ll=pt("iterator"),Dl=!1;[].keys&&("next"in(ul=[].keys())?(cl=Al(Al(ul)))!==Object.prototype&&(ll=cl):Dl=!0);var jl=!Ml(ll)||Ol((function(){var e={};return ll[Ll].call(e)!==e}));xl((ll=jl?{}:Il(ll))[Ll])||Cl(ll,Ll,(function(){return this}));var Nl={IteratorPrototype:ll,BUGGY_SAFARI_ITERATORS:Dl},Fl=Nl.IteratorPrototype,Ul=Vi,zl=U,Vl=Ao,Bl=pl,Wl=function(){return this},Kl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ul(Fl,{next:zl(+!n,r)}),Vl(e,i,!1,!0),Bl[i]=Wl,e},Hl=g,ql=Ie,Gl=k,Xl=String,Yl=TypeError,$l=function(e,t,r){try{return Hl(ql(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ql=rr,Jl=function(e){if("object"==typeof e||Gl(e))return e;throw Yl("Can't set "+Xl(e)+" as a prototype")},Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=$l(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ql(r),Jl(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=Or,tc=A,rc=ml,nc=Kl,ic=kl,oc=Ao,ac=oo,sc=pl,lc=Nl,cc=rc.PROPER,uc=lc.BUGGY_SAFARI_ITERATORS,fc=pt("iterator"),pc="keys",hc="values",dc="entries",vc=function(){return this},gc=function(e,t,r,n,i,o,a){nc(r,t,n);var s,l,c,u=function(e){if(e===i&&v)return v;if(!uc&&e in h)return h[e];switch(e){case pc:case hc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[fc]||h["@@iterator"]||i&&h[i],v=!uc&&d||u(i),g="Array"==t&&h.entries||d;if(g&&(s=ic(g.call(new e)))!==Object.prototype&&s.next&&(oc(s,f,!0,!0),sc[f]=vc),cc&&i==hc&&d&&d.name!==hc&&(p=!0,v=function(){return tc(d,this)}),i)if(l={values:u(hc),keys:o?v:u(pc),entries:u(dc)},a)for(c in l)(uc||p||!(c in h))&&ac(h,c,l[c]);else ec({target:t,proto:!0,forced:uc||p},l);return a&&h[fc]!==v&&ac(h,fc,v,{name:i}),sc[t]=v,l},yc=function(e,t){return{value:e,done:t}},mc=Q,_c=pl,bc=Xo;Qt.f;var wc=gc,Sc=yc,Ec="Array Iterator",Tc=bc.set,Pc=bc.getterFor(Ec);wc(Array,"Array",(function(e,t){Tc(this,{type:Ec,target:mc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Sc(void 0,!0)):Sc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),_c.Arguments=_c.Array;var Rc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kc=i,Oc=rn,xc=gr,Mc=pl,Ic=pt("toStringTag");for(var Ac in Rc){var Cc=kc[Ac],Lc=Cc&&Cc.prototype;Lc&&Oc(Lc)!==Ic&&xc(Lc,Ic,Ac),Mc[Ac]=Mc.Array}var Dc=fl;mo("dispose");var jc=Dc;mo("asyncDispose");var Nc=Or,Fc=g,Uc=ae("Symbol"),zc=Uc.keyFor,Vc=Fc(Uc.prototype.valueOf);Nc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==zc(Vc(e))}catch(t){return!1}}});for(var Bc=Or,Wc=qe,Kc=ae,Hc=g,qc=Pe,Gc=pt,Xc=Kc("Symbol"),Yc=Xc.isWellKnown,$c=Kc("Object","getOwnPropertyNames"),Qc=Hc(Xc.prototype.valueOf),Jc=Wc("wks"),Zc=0,eu=$c(Xc),tu=eu.length;Zc<tu;Zc++)try{var ru=eu[Zc];qc(Xc[ru])&&Gc(ru)}catch(yj){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=Qc(e),r=0,n=$c(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(yj){}return!1}}),mo("matcher"),mo("metadataKey"),mo("observable"),mo("metadata"),mo("patternMatch"),mo("replaceAll");var nu=jc,iu=r(nu),ou=g,au=jr,su=Yn,lu=X,cu=ou("".charAt),uu=ou("".charCodeAt),fu=ou("".slice),pu=function(e){return function(t,r){var n,i,o=su(lu(t)),a=au(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=uu(o,a))<55296||n>56319||a+1===s||(i=uu(o,a+1))<56320||i>57343?e?cu(o,a):n:e?fu(o,a,a+2):i-56320+(n-55296<<10)+65536}},hu={codeAt:pu(!1),charAt:pu(!0)},du=hu.charAt,vu=Yn,gu=Xo,yu=gc,mu=yc,_u="String Iterator",bu=gu.set,wu=gu.getterFor(_u);yu(String,"String",(function(e){bu(this,{type:_u,string:vu(e),index:0})}),(function(){var e,t=wu(this),r=t.string,n=t.index;return n>=r.length?mu(void 0,!0):(e=du(r,n),t.index+=e.length,mu(e,!1))}));var Su=rn,Eu=Le,Tu=H,Pu=pl,Ru=pt("iterator"),ku=function(e){if(!Tu(e))return Eu(e,Ru)||Eu(e,"@@iterator")||Pu[Su(e)]},Ou=ku,xu=r(Ou),Mu=x,Iu=Mr,Au=TypeError,Cu=Object.getOwnPropertyDescriptor,Lu=Mu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(yj){return yj instanceof TypeError}}()?function(e,t){if(Iu(e)&&!Cu(e,"length").writable)throw Au("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Du=Ye,ju=Vr,Nu=Lu,Fu=Wr;Or({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(yj){return yj instanceof TypeError}}()},{push:function(e){var t=Du(this),r=ju(t),n=arguments.length;Fu(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return Nu(t,r),r}});var Uu=te,zu=function(e){return Uu[e+"Prototype"]},Vu=zu("Array").push,Bu=se,Wu=Vu,Ku=Array.prototype,Hu=r((function(e){var t=e.push;return e===Ku||Bu(Ku,e)&&t===Ku.push?Wu:t}));var qu=Or,Gu=Mr,Xu=wn,Yu=ee,$u=ei,Qu=Vr,Ju=Q,Zu=Gr,ef=pt,tf=Rs,rf=An("slice"),nf=ef("species"),of=Array,af=Math.max;qu({target:"Array",proto:!0,forced:!rf},{slice:function(e,t){var r,n,i,o=Ju(this),a=Qu(o),s=$u(e,a),l=$u(void 0===t?a:t,a);if(Gu(o)&&(r=o.constructor,(Xu(r)&&(r===of||Gu(r.prototype))||Yu(r)&&null===(r=r[nf]))&&(r=void 0),r===of||void 0===r))return tf(o,s,l);for(n=new(void 0===r?of:r)(af(l-s,0)),i=0;s<l;s++,i++)s in o&&Zu(n,i,o[s]);return n.length=i,n}});var sf=zu("Array").slice,lf=se,cf=sf,uf=Array.prototype,ff=function(e){var t=e.slice;return e===uf||lf(uf,e)&&t===uf.slice?cf:t},pf=r(ff),hf=A,df=rr,vf=Le,gf=function(e,t,r){var n,i;df(e);try{if(!(n=vf(e,"return"))){if("throw"===t)throw r;return r}n=hf(n,e)}catch(yj){i=!0,n=yj}if("throw"===t)throw r;if(i)throw n;return df(n),r},yf=rr,mf=gf,_f=pl,bf=pt("iterator"),wf=Array.prototype,Sf=function(e){return void 0!==e&&(_f.Array===e||wf[bf]===e)},Ef=A,Tf=Ie,Pf=rr,Rf=ke,kf=ku,Of=TypeError,xf=function(e,t){var r=arguments.length<2?kf(e):t;if(Tf(r))return Pf(Ef(r,e));throw Of(Rf(e)+" is not iterable")},Mf=$t,If=A,Af=Ye,Cf=function(e,t,r,n){try{return n?t(yf(r)[0],r[1]):t(r)}catch(yj){mf(e,"throw",yj)}},Lf=Sf,Df=wn,jf=Vr,Nf=Gr,Ff=xf,Uf=ku,zf=Array,Vf=function(e){var t=Af(e),r=Df(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Mf(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,p=Uf(t),h=0;if(!p||this===zf&&Lf(p))for(a=jf(t),s=r?new this(a):zf(a);a>h;h++)f=o?i(t[h],h):t[h],Nf(s,h,f);else for(u=(c=Ff(t,p)).next,s=r?new this:[];!(l=If(u,c)).done;h++)f=o?Cf(c,i,[l.value,h],!0):l.value,Nf(s,h,f);return s.length=h,s},Bf=pt("iterator"),Wf=!1;try{var Kf=0,Hf={next:function(){return{done:!!Kf++}},return:function(){Wf=!0}};Hf[Bf]=function(){return this},Array.from(Hf,(function(){throw 2}))}catch(yj){}var qf=function(e,t){if(!t&&!Wf)return!1;var r=!1;try{var n={};n[Bf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(yj){}return r},Gf=Vf;Or({target:"Array",stat:!0,forced:!qf((function(e){Array.from(e)}))},{from:Gf});var Xf=te.Array.from,Yf=r(Xf);function $f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qf(e,t){var r;if(e){if("string"==typeof e)return $f(e,t);var n=pf(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Yf(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$f(e,t):void 0}}function Jf(e,t){return function(e){if(Ar(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==iu&&xu(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(Hu(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Qf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zf=Ye,ep=gi;Or({target:"Object",stat:!0,forced:o((function(){ep(1)}))},{keys:function(e){return ep(Zf(e))}});var tp=te.Object.keys,rp=r(tp),np=te.Object.getOwnPropertySymbols,ip=r(np),op=ra.filter;Or({target:"Array",proto:!0,forced:!An("filter")},{filter:function(e){return op(this,e,arguments.length>1?arguments[1]:void 0)}});var ap=zu("Array").filter,sp=se,lp=ap,cp=Array.prototype,up=function(e){var t=e.filter;return e===cp||sp(cp,e)&&t===cp.filter?lp:t},fp=r(up),pp={exports:{}},hp=Or,dp=o,vp=Q,gp=O.f,yp=x;hp({target:"Object",stat:!0,forced:!yp||dp((function(){gp(1)})),sham:!yp},{getOwnPropertyDescriptor:function(e,t){return gp(vp(e),t)}});var mp=te.Object,_p=pp.exports=function(e,t){return mp.getOwnPropertyDescriptor(e,t)};mp.getOwnPropertyDescriptor.sham&&(_p.sham=!0);var bp=pp.exports,wp=r(bp),Sp=o,Ep=function(e,t){var r=[][e];return!!r&&Sp((function(){r.call(null,t||function(){return 1},1)}))},Tp=ra.forEach,Pp=Ep("forEach")?[].forEach:function(e){return Tp(this,e,arguments.length>1?arguments[1]:void 0)};Or({target:"Array",proto:!0,forced:[].forEach!=Pp},{forEach:Pp});var Rp=zu("Array").forEach,kp=rn,Op=Je,xp=se,Mp=Rp,Ip=Array.prototype,Ap={DOMTokenList:!0,NodeList:!0},Cp=function(e){var t=e.forEach;return e===Ip||xp(Ip,e)&&t===Ip.forEach||Op(Ap,kp(e))?Mp:t},Lp=r(Cp),Dp=ae,jp=Bi,Np=no,Fp=rr,Up=g([].concat),zp=Dp("Reflect","ownKeys")||function(e){var t=jp.f(Fp(e)),r=Np.f;return r?Up(t,r(e)):t},Vp=zp,Bp=Q,Wp=O,Kp=Gr;Or({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Bp(e),i=Wp.f,o=Vp(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Kp(a,t,r);return a}});var Hp=te.Object.getOwnPropertyDescriptors,qp=r(Hp),Gp={exports:{}},Xp=Or,Yp=x,$p=$n.f;Xp({target:"Object",stat:!0,forced:Object.defineProperties!==$p,sham:!Yp},{defineProperties:$p});var Qp=te.Object,Jp=Gp.exports=function(e,t){return Qp.defineProperties(e,t)};Qp.defineProperties.sham&&(Jp.sham=!0);var Zp=Gp.exports,eh=r(Zp),th={exports:{}},rh=Or,nh=x,ih=Qt.f;rh({target:"Object",stat:!0,forced:Object.defineProperty!==ih,sham:!nh},{defineProperty:ih});var oh=te.Object,ah=th.exports=function(e,t,r){return oh.defineProperty(e,t,r)};oh.defineProperty.sham&&(ah.sham=!0);var sh=th.exports,lh=r(sh),ch=lo.f("iterator"),uh=r(ch);function fh(e){return(fh="function"==typeof iu&&"symbol"==typeof uh?function(e){return typeof e}:function(e){return e&&"function"==typeof iu&&e.constructor===iu&&e!==iu.prototype?"symbol":typeof e})(e)}var ph=lo.f("toPrimitive"),hh=r(ph);function dh(e){var t=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[hh];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fh(t)?t:String(t)}function vh(e,t,r){return(t=dh(t))in e?lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gh(e,t){var r=rp(e);if(ip){var n=ip(e);t&&(n=fp(n).call(n,(function(t){return wp(e,t).enumerable}))),Hu(r).apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?Lp(r=gh(Object(i),!0)).call(r,(function(t){vh(e,t,i[t])})):qp?eh(e,qp(i)):Lp(n=gh(Object(i))).call(n,(function(t){lh(e,t,wp(i,t))}))}return e}Or({target:"Object",stat:!0,sham:!x},{create:Vi});var mh=te.Object,_h=function(e,t){return mh.create(e,t)},bh=r(_h),wh=Ye,Sh=kl,Eh=_l;Or({target:"Object",stat:!0,forced:o((function(){Sh(1)})),sham:!Eh},{getPrototypeOf:function(e){return Sh(wh(e))}});var Th=r(te.Object.getPrototypeOf);Or({target:"Object",stat:!0},{setPrototypeOf:Zl});var Ph=r(te.Object.setPrototypeOf),Rh=Je,kh=zp,Oh=O,xh=Qt,Mh=ee,Ih=gr,Ah=Error,Ch=g("".replace),Lh=String(Ah("zxcasd").stack),Dh=/\n\s*at [^:]*:[^\n]*/,jh=Dh.test(Lh),Nh=U,Fh=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Nh(1,7)),7!==e.stack)})),Uh=gr,zh=function(e,t){if(jh&&"string"==typeof e&&!Ah.prepareStackTrace)for(;t--;)e=Ch(e,Dh,"");return e},Vh=Fh,Bh=Error.captureStackTrace,Wh=$t,Kh=A,Hh=rr,qh=ke,Gh=Sf,Xh=Vr,Yh=se,$h=xf,Qh=ku,Jh=gf,Zh=TypeError,ed=function(e,t){this.stopped=e,this.result=t},td=ed.prototype,rd=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Wh(t,u),g=function(e){return n&&Jh(n,"normal",e),new ed(!0,e)},y=function(e){return f?(Hh(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(i=Qh(e)))throw Zh(qh(e)+" is not iterable");if(Gh(i)){for(o=0,a=Xh(e);a>o;o++)if((s=y(e[o]))&&Yh(td,s))return s;return new ed(!1)}n=$h(e,i)}for(l=p?e.next:n.next;!(c=Kh(l,n)).done;){try{s=y(c.value)}catch(yj){Jh(n,"throw",yj)}if("object"==typeof s&&s&&Yh(td,s))return s}return new ed(!1)},nd=Yn,id=Or,od=se,ad=kl,sd=Zl,ld=function(e,t,r){for(var n=kh(t),i=xh.f,o=Oh.f,a=0;a<n.length;a++){var s=n[a];Rh(e,s)||r&&Rh(r,s)||i(e,s,o(t,s))}},cd=Vi,ud=gr,fd=U,pd=function(e,t){Mh(t)&&"cause"in t&&Ih(e,"cause",t.cause)},hd=function(e,t,r,n){Vh&&(Bh?Bh(e,t):Uh(e,"stack",zh(r,n)))},dd=rd,vd=function(e,t){return void 0===e?arguments.length<2?"":t:nd(e)},gd=pt("toStringTag"),yd=Error,md=[].push,_d=function(e,t){var r,n=od(bd,this);sd?r=sd(yd(),n?ad(this):bd):(r=n?this:cd(bd),ud(r,gd,"Error")),void 0!==t&&ud(r,"message",vd(t)),hd(r,_d,r.stack,1),arguments.length>2&&pd(r,arguments[2]);var i=[];return dd(e,md,{that:i}),ud(r,"errors",i),r};sd?sd(_d,yd):ld(_d,yd,{name:!0});var bd=_d.prototype=cd(yd.prototype,{constructor:fd(1,_d),message:fd(1,""),name:fd(1,"AggregateError")});id({global:!0,constructor:!0,arity:2},{AggregateError:_d});var wd,Sd,Ed,Td,Pd="undefined"!=typeof process&&"process"==b(process),Rd=ae,kd=so,Od=x,xd=pt("species"),Md=function(e){var t=Rd(e);Od&&t&&!t[xd]&&kd(t,xd,{configurable:!0,get:function(){return this}})},Id=se,Ad=TypeError,Cd=function(e,t){if(Id(t,e))return e;throw Ad("Incorrect invocation")},Ld=wn,Dd=ke,jd=TypeError,Nd=function(e){if(Ld(e))return e;throw jd(Dd(e)+" is not a constructor")},Fd=rr,Ud=Nd,zd=H,Vd=pt("species"),Bd=function(e,t){var r,n=Fd(e).constructor;return void 0===n||zd(r=Fd(n)[Vd])?t:Ud(r)},Wd=TypeError,Kd=function(e,t){if(e<t)throw Wd("Not enough arguments");return e},Hd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),qd=i,Gd=f,Xd=$t,Yd=k,$d=Je,Qd=o,Jd=Ti,Zd=Rs,ev=Rt,tv=Kd,rv=Hd,nv=Pd,iv=qd.setImmediate,ov=qd.clearImmediate,av=qd.process,sv=qd.Dispatch,lv=qd.Function,cv=qd.MessageChannel,uv=qd.String,fv=0,pv={},hv="onreadystatechange";Qd((function(){wd=qd.location}));var dv=function(e){if($d(pv,e)){var t=pv[e];delete pv[e],t()}},vv=function(e){return function(){dv(e)}},gv=function(e){dv(e.data)},yv=function(e){qd.postMessage(uv(e),wd.protocol+"//"+wd.host)};iv&&ov||(iv=function(e){tv(arguments.length,1);var t=Yd(e)?e:lv(e),r=Zd(arguments,1);return pv[++fv]=function(){Gd(t,void 0,r)},Sd(fv),fv},ov=function(e){delete pv[e]},nv?Sd=function(e){av.nextTick(vv(e))}:sv&&sv.now?Sd=function(e){sv.now(vv(e))}:cv&&!rv?(Td=(Ed=new cv).port2,Ed.port1.onmessage=gv,Sd=Xd(Td.postMessage,Td)):qd.addEventListener&&Yd(qd.postMessage)&&!qd.importScripts&&wd&&"file:"!==wd.protocol&&!Qd(yv)?(Sd=yv,qd.addEventListener("message",gv,!1)):Sd=hv in ev("script")?function(e){Jd.appendChild(ev("script"))[hv]=function(){Jd.removeChild(this),dv(e)}}:function(e){setTimeout(vv(e),0)});var mv={set:iv,clear:ov},_v=function(){this.head=null,this.tail=null};_v.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var bv,wv,Sv,Ev,Tv,Pv=_v,Rv=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,kv=/web0s(?!.*chrome)/i.test(le),Ov=i,xv=$t,Mv=O.f,Iv=mv.set,Av=Pv,Cv=Hd,Lv=Rv,Dv=kv,jv=Pd,Nv=Ov.MutationObserver||Ov.WebKitMutationObserver,Fv=Ov.document,Uv=Ov.process,zv=Ov.Promise,Vv=Mv(Ov,"queueMicrotask"),Bv=Vv&&Vv.value;if(!Bv){var Wv=new Av,Kv=function(){var e,t;for(jv&&(e=Uv.domain)&&e.exit();t=Wv.get();)try{t()}catch(yj){throw Wv.head&&bv(),yj}e&&e.enter()};Cv||jv||Dv||!Nv||!Fv?!Lv&&zv&&zv.resolve?((Ev=zv.resolve(void 0)).constructor=zv,Tv=xv(Ev.then,Ev),bv=function(){Tv(Kv)}):jv?bv=function(){Uv.nextTick(Kv)}:(Iv=xv(Iv,Ov),bv=function(){Iv(Kv)}):(wv=!0,Sv=Fv.createTextNode(""),new Nv(Kv).observe(Sv,{characterData:!0}),bv=function(){Sv.data=wv=!wv}),Bv=function(e){Wv.head||bv(),Wv.add(e)}}var Hv=Bv,qv=function(e){try{return{error:!1,value:e()}}catch(yj){return{error:!0,value:yj}}},Gv=i.Promise,Xv="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Yv=!Xv&&!Pd&&"object"==typeof window&&"object"==typeof document,$v=i,Qv=Gv,Jv=k,Zv=qt,eg=sn,tg=pt,rg=Yv,ng=Xv,ig=ve,og=Qv&&Qv.prototype,ag=tg("species"),sg=!1,lg=Jv($v.PromiseRejectionEvent),cg={CONSTRUCTOR:Zv("Promise",(function(){var e=eg(Qv),t=e!==String(Qv);if(!t&&66===ig)return!0;if(!og.catch||!og.finally)return!0;if(!ig||ig<51||!/native code/.test(e)){var r=new Qv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[ag]=n,!(sg=r.then((function(){}))instanceof n))return!0}return!t&&(rg||ng)&&!lg})),REJECTION_EVENT:lg,SUBCLASSING:sg},ug={},fg=Ie,pg=TypeError,hg=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw pg("Bad Promise constructor");t=e,r=n})),this.resolve=fg(t),this.reject=fg(r)};ug.f=function(e){return new hg(e)};var dg,vg,gg=Or,yg=Pd,mg=i,_g=A,bg=oo,wg=Ao,Sg=Md,Eg=Ie,Tg=k,Pg=ee,Rg=Cd,kg=Bd,Og=mv.set,xg=Hv,Mg=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(yj){}},Ig=qv,Ag=Pv,Cg=Xo,Lg=Gv,Dg=cg,jg=ug,Ng="Promise",Fg=Dg.CONSTRUCTOR,Ug=Dg.REJECTION_EVENT,zg=Cg.getterFor(Ng),Vg=Cg.set,Bg=Lg&&Lg.prototype,Wg=Lg,Kg=Bg,Hg=mg.TypeError,qg=mg.document,Gg=mg.process,Xg=jg.f,Yg=Xg,$g=!!(qg&&qg.createEvent&&mg.dispatchEvent),Qg="unhandledrejection",Jg=function(e){var t;return!(!Pg(e)||!Tg(t=e.then))&&t},Zg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&iy(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(Hg("Promise-chain cycle")):(n=Jg(r))?_g(n,r,l,c):l(r)):c(o)}catch(yj){u&&!i&&u.exit(),c(yj)}},ey=function(e,t){e.notified||(e.notified=!0,xg((function(){for(var r,n=e.reactions;r=n.get();)Zg(r,e);e.notified=!1,t&&!e.rejection&&ry(e)})))},ty=function(e,t,r){var n,i;$g?((n=qg.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),mg.dispatchEvent(n)):n={promise:t,reason:r},!Ug&&(i=mg["on"+e])?i(n):e===Qg&&Mg("Unhandled promise rejection",r)},ry=function(e){_g(Og,mg,(function(){var t,r=e.facade,n=e.value;if(ny(e)&&(t=Ig((function(){yg?Gg.emit("unhandledRejection",n,r):ty(Qg,r,n)})),e.rejection=yg||ny(e)?2:1,t.error))throw t.value}))},ny=function(e){return 1!==e.rejection&&!e.parent},iy=function(e){_g(Og,mg,(function(){var t=e.facade;yg?Gg.emit("rejectionHandled",t):ty("rejectionhandled",t,e.value)}))},oy=function(e,t,r){return function(n){e(t,n,r)}},ay=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,ey(e,!0))},sy=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Hg("Promise can't be resolved itself");var n=Jg(t);n?xg((function(){var r={done:!1};try{_g(n,t,oy(sy,r,e),oy(ay,r,e))}catch(yj){ay(r,yj,e)}})):(e.value=t,e.state=1,ey(e,!1))}catch(yj){ay({done:!1},yj,e)}}};Fg&&(Kg=(Wg=function(e){Rg(this,Kg),Eg(e),_g(dg,this);var t=zg(this);try{e(oy(sy,t),oy(ay,t))}catch(yj){ay(t,yj)}}).prototype,(dg=function(e){Vg(this,{type:Ng,done:!1,notified:!1,parent:!1,reactions:new Ag,rejection:!1,state:0,value:void 0})}).prototype=bg(Kg,"then",(function(e,t){var r=zg(this),n=Xg(kg(this,Wg));return r.parent=!0,n.ok=!Tg(e)||e,n.fail=Tg(t)&&t,n.domain=yg?Gg.domain:void 0,0==r.state?r.reactions.add(n):xg((function(){Zg(n,r)})),n.promise})),vg=function(){var e=new dg,t=zg(e);this.promise=e,this.resolve=oy(sy,t),this.reject=oy(ay,t)},jg.f=Xg=function(e){return e===Wg||undefined===e?new vg(e):Yg(e)}),gg({global:!0,constructor:!0,wrap:!0,forced:Fg},{Promise:Wg}),wg(Wg,Ng,!1,!0),Sg(Ng);var ly=Gv,cy=cg.CONSTRUCTOR||!qf((function(e){ly.all(e).then(void 0,(function(){}))})),uy=A,fy=Ie,py=ug,hy=qv,dy=rd;Or({target:"Promise",stat:!0,forced:cy},{all:function(e){var t=this,r=py.f(t),n=r.resolve,i=r.reject,o=hy((function(){var r=fy(t.resolve),o=[],a=0,s=1;dy(e,(function(e){var l=a++,c=!1;s++,uy(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var vy=Or,gy=cg.CONSTRUCTOR;Gv&&Gv.prototype,vy({target:"Promise",proto:!0,forced:gy,real:!0},{catch:function(e){return this.then(void 0,e)}});var yy=A,my=Ie,_y=ug,by=qv,wy=rd;Or({target:"Promise",stat:!0,forced:cy},{race:function(e){var t=this,r=_y.f(t),n=r.reject,i=by((function(){var i=my(t.resolve);wy(e,(function(e){yy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Sy=A,Ey=ug;Or({target:"Promise",stat:!0,forced:cg.CONSTRUCTOR},{reject:function(e){var t=Ey.f(this);return Sy(t.reject,void 0,e),t.promise}});var Ty=rr,Py=ee,Ry=ug,ky=function(e,t){if(Ty(e),Py(t)&&t.constructor===e)return t;var r=Ry.f(e);return(0,r.resolve)(t),r.promise},Oy=Or,xy=Gv,My=cg.CONSTRUCTOR,Iy=ky,Ay=ae("Promise"),Cy=!My;Oy({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Iy(Cy&&this===Ay?xy:this,e)}});var Ly=A,Dy=Ie,jy=ug,Ny=qv,Fy=rd;Or({target:"Promise",stat:!0,forced:cy},{allSettled:function(e){var t=this,r=jy.f(t),n=r.resolve,i=r.reject,o=Ny((function(){var r=Dy(t.resolve),i=[],o=0,a=1;Fy(e,(function(e){var s=o++,l=!1;a++,Ly(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Uy=A,zy=Ie,Vy=ae,By=ug,Wy=qv,Ky=rd,Hy="No one promise resolved";Or({target:"Promise",stat:!0,forced:cy},{any:function(e){var t=this,r=Vy("AggregateError"),n=By.f(t),i=n.resolve,o=n.reject,a=Wy((function(){var n=zy(t.resolve),a=[],s=0,l=1,c=!1;Ky(e,(function(e){var u=s++,f=!1;l++,Uy(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,Hy)))}))})),--l||o(new r(a,Hy))}));return a.error&&o(a.value),n.promise}});var qy=Or,Gy=Gv,Xy=o,Yy=ae,$y=k,Qy=Bd,Jy=ky,Zy=Gy&&Gy.prototype;qy({target:"Promise",proto:!0,real:!0,forced:!!Gy&&Xy((function(){Zy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Qy(this,Yy("Promise")),r=$y(e);return this.then(r?function(r){return Jy(t,e()).then((function(){return r}))}:e,r?function(r){return Jy(t,e()).then((function(){throw r}))}:e)}});var em=te.Promise,tm=ug,rm=qv;Or({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=tm.f(this),r=rm(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var nm=em,im=r(nm),om=Or,am=Mr,sm=g([].reverse),lm=[1,2];om({target:"Array",proto:!0,forced:String(lm)===String(lm.reverse())},{reverse:function(){return am(this)&&(this.length=this.length),sm(this)}});var cm=zu("Array").reverse,um=se,fm=cm,pm=Array.prototype,hm=function(e){var t=e.reverse;return e===pm||um(pm,e)&&t===pm.reverse?fm:t},dm=r(hm);function vm(){vm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=lh||function(e,t,r){e[t]=r.value},i="function"==typeof iu?iu:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof p?t:p,a=bh(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};l(v,o,(function(){return this}));var g=Th&&Th(Th(P([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=d.prototype=p.prototype=bh(v);function m(e){var t;Lp(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==fh(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),Hu(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],Lp(e).call(e,S,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Ph?Ph(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=bh(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=im);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Hu(r).call(r,n);return dm(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Lp(t=this.tryEntries).call(t,E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pf(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function gm(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(yj){return void r(yj)}s.done?t(l):im.resolve(l).then(n,i)}function ym(e){return function(){var t=this,r=arguments;return new im((function(n,i){var o=e.apply(t,r);function a(e){gm(o,n,i,a,s,"next",e)}function s(e){gm(o,n,i,a,s,"throw",e)}a(void 0)}))}}function mm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),lh(e,dh(n.key),n)}}function bm(e,t,r){return t&&_m(e.prototype,t),r&&_m(e,r),lh(e,"prototype",{writable:!1}),e}var wm=g,Sm=Ie,Em=ee,Tm=Je,Pm=Rs,Rm=a,km=Function,Om=wm([].concat),xm=wm([].join),Mm={},Im=Rm?km.bind:function(e){var t=Sm(this),r=t.prototype,n=Pm(arguments,1),i=function(){var r=Om(n,Pm(arguments));return this instanceof i?function(e,t,r){if(!Tm(Mm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Mm[t]=km("C,a","return new C("+xm(n,",")+")")}return Mm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Em(r)&&(i.prototype=r),i},Am=Im;Or({target:"Function",proto:!0,forced:Function.bind!==Am},{bind:Am});var Cm=zu("Function").bind,Lm=se,Dm=Cm,jm=Function.prototype,Nm=function(e){var t=e.bind;return e===jm||Lm(jm,e)&&t===jm.bind?Dm:t},Fm=r(Nm);function Um(e,t){var r;return(Um=Ph?Fm(r=Ph).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function zm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=bh(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lh(e,"prototype",{writable:!1}),t&&Um(e,t)}var Vm=Or,Bm=f,Wm=Im,Km=Nd,Hm=rr,qm=ee,Gm=Vi,Xm=o,Ym=ae("Reflect","construct"),$m=Object.prototype,Qm=[].push,Jm=Xm((function(){function e(){}return!(Ym((function(){}),[],e)instanceof e)})),Zm=!Xm((function(){Ym((function(){}))})),e_=Jm||Zm;Vm({target:"Reflect",stat:!0,forced:e_,sham:e_},{construct:function(e,t){Km(e),Hm(t);var r=arguments.length<3?e:Km(arguments[2]);if(Zm&&!Jm)return Ym(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Bm(Qm,n,t),new(Bm(Wm,e,n))}var i=r.prototype,o=Gm(qm(i)?i:$m),a=Bm(e,o,t);return qm(a)?a:o}});var t_=r(te.Reflect.construct);function r_(e){var t;return(r_=Ph?Fm(t=Th).call(t):function(e){return e.__proto__||Th(e)})(e)}function n_(){if("undefined"==typeof Reflect||!t_)return!1;if(t_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(t_(Boolean,[],(function(){}))),!0}catch(JO){return!1}}function i_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o_(e){var t=n_();return function(){var r,n=r_(e);if(t){var i=r_(this).constructor;r=t_(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===fh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i_(e)}(this,r)}}function a_(e){return function(e){if(Ar(e))return $f(e)}(e)||function(e){if(void 0!==iu&&null!=xu(e)||null!=e["@@iterator"])return Yf(e)}(e)||Qf(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s_=zu("Array").concat,l_=se,c_=s_,u_=Array.prototype,f_=r((function(e){var t=e.concat;return e===u_||l_(u_,e)&&t===u_.concat?c_:t})),p_=r(nm),h_=x,d_=g,v_=A,g_=o,y_=gi,m_=no,__=C,b_=Ye,w_=K,S_=Object.assign,E_=Object.defineProperty,T_=d_([].concat),P_=!S_||g_((function(){if(h_&&1!==S_({b:1},S_(E_({},"a",{enumerable:!0,get:function(){E_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=S_({},e)[r]||y_(S_({},t)).join("")!=n}))?function(e,t){for(var r=b_(e),n=arguments.length,i=1,o=m_.f,a=__.f;n>i;)for(var s,l=w_(arguments[i++]),c=o?T_(y_(l),o(l)):y_(l),u=c.length,f=0;u>f;)s=c[f++],h_&&!v_(a,l,s)||(r[s]=l[s]);return r}:S_,R_=P_;Or({target:"Object",stat:!0,arity:2,forced:Object.assign!==R_},{assign:R_});var k_,O_=r(te.Object.assign),x_=window.VePlayer.error,M_=x_.VeError,I_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e[e.EMPTY_RTM_FALLBACK_PARAMETER=211]="EMPTY_RTM_FALLBACK_PARAMETER",e[e.INVALID_LOGGER=220]="INVALID_LOGGER",e}(I_||{});x_.Level;var A_=yh(yh({},I_),x_.ErrorCode),C_=yh(yh({},x_.ERROR_INFO),{},(vh(k_={},210,{messageTextKey:"INVALID_PARAMETER",level:x_.Level.Fatal}),vh(k_,211,{messageTextKey:"EMPTY_RTM_FALLBACK_PARAMETER",level:x_.Level.Warn}),vh(k_,220,{messageTextKey:"INVALID_LOGGER",level:x_.Level.Warn}),k_));function L_(e,t){return new M_(yh({errorCode:e},C_[e]),t)}var D_=Or,j_=oi.indexOf,N_=Ep,F_=E([].indexOf),U_=!!F_&&1/F_([1],1,-0)<0;D_({target:"Array",proto:!0,forced:U_||!N_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return U_?F_(this,e,t)||0:j_(this,e,t)}});var z_=zu("Array").indexOf,V_=se,B_=z_,W_=Array.prototype,K_=function(e){var t=e.indexOf;return e===W_||V_(W_,e)&&t===W_.indexOf?B_:t},H_=r(K_);function q_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=rp(e);for(n=0;n<o.length;n++)r=o[n],H_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(ip){var o=ip(e);for(n=0;n<o.length;n++)r=o[n],H_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var G_=window.VePlayer.DynamicModule,X_=window.VePlayer.load;function Y_(){return $_.apply(this,arguments)}function $_(){return($_=ym(vm().mark((function e(){var t,r;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X_(G_.PluginRtm);case 2:return t=e.sent,r=t.RtmPlugin,e.abrupt("return",r.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q_(){return J_.apply(this,arguments)}function J_(){return J_=ym(vm().mark((function e(){var t,r,n,i=arguments;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:XD.H264,e.next=3,X_(G_.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==XD.H264){e.next=7;break}return e.abrupt("return",n.isSupportedH264());case 7:return e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e)}))),J_.apply(this,arguments)}var Z_=ee,eb=b,tb=pt("match"),rb=function(e){var t;return Z_(e)&&(void 0!==(t=e[tb])?!!t:"RegExp"==eb(e))},nb=TypeError,ib=function(e){if(rb(e))throw nb("The method doesn't accept regular expressions");return e},ob=pt("match"),ab=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ob]=!1,"/./"[e](t)}catch(yj){}}return!1},sb=Or,lb=E,cb=Ur,ub=Yn,fb=ib,pb=X,hb=ab,db=lb("".startsWith),vb=lb("".slice),gb=Math.min;sb({target:"String",proto:!0,forced:!hb("startsWith")},{startsWith:function(e){var t=ub(pb(this));fb(e);var r=cb(gb(arguments.length>1?arguments[1]:void 0,t.length)),n=ub(e);return db?db(t,n,r):vb(t,r,r+n.length)===n}});var yb=zu("String").startsWith,mb=se,_b=yb,bb=String.prototype,wb=r((function(e){var t=e.startsWith;return"string"==typeof e||e===bb||mb(bb,e)&&t===bb.startsWith?_b:t})),Sb=o,Eb=pt("iterator"),Tb=!Sb((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Eb]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Pb=g,Rb=2147483647,kb=/[^\0-\u007E]/,Ob=/[.\u3002\uFF0E\uFF61]/g,xb="Overflow: input needs wider integers to process",Mb=RangeError,Ib=Pb(Ob.exec),Ab=Math.floor,Cb=String.fromCharCode,Lb=Pb("".charCodeAt),Db=Pb([].join),jb=Pb([].push),Nb=Pb("".replace),Fb=Pb("".split),Ub=Pb("".toLowerCase),zb=function(e){return e+22+75*(e<26)},Vb=function(e,t,r){var n=0;for(e=r?Ab(e/700):e>>1,e+=Ab(e/t);e>455;)e=Ab(e/35),n+=36;return Ab(n+36*e/(e+38))},Bb=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Lb(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Lb(e,r++);56320==(64512&o)?jb(t,((1023&i)<<10)+(1023&o)+65536):(jb(t,i),r--)}else jb(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&jb(t,Cb(n));var l=t.length,c=l;for(l&&jb(t,"-");c<i;){var u=Rb;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>Ab((Rb-a)/f))throw Mb(xb);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>Rb)throw Mb(xb);if(n==o){for(var p=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(p<d)break;var v=p-d,g=36-d;jb(t,Cb(zb(d+v%g))),p=Ab(v/g),h+=36}jb(t,Cb(zb(p))),s=Vb(a,f,c==l),a=0,c++}}a++,o++}return Db(t,"")},Wb=oo,Kb=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Wb(e,n,t[n],r);return e},Hb=Qi,qb=Math.floor,Gb=function(e,t){var r=e.length,n=qb(r/2);return r<8?Xb(e,t):Yb(e,Gb(Hb(e,0,n),t),Gb(Hb(e,n),t),t)},Xb=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Yb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},$b=Gb,Qb=Or,Jb=i,Zb=A,ew=g,tw=x,rw=Tb,nw=oo,iw=so,ow=Kb,aw=Ao,sw=Kl,lw=Xo,cw=Cd,uw=k,fw=Je,pw=$t,hw=rn,dw=rr,vw=ee,gw=Yn,yw=Vi,mw=U,_w=xf,bw=ku,ww=Kd,Sw=$b,Ew=pt("iterator"),Tw="URLSearchParams",Pw=Tw+"Iterator",Rw=lw.set,kw=lw.getterFor(Tw),Ow=lw.getterFor(Pw),xw=Object.getOwnPropertyDescriptor,Mw=function(e){if(!tw)return Jb[e];var t=xw(Jb,e);return t&&t.value},Iw=Mw("fetch"),Aw=Mw("Request"),Cw=Mw("Headers"),Lw=Aw&&Aw.prototype,Dw=Cw&&Cw.prototype,jw=Jb.RegExp,Nw=Jb.TypeError,Fw=Jb.decodeURIComponent,Uw=Jb.encodeURIComponent,zw=ew("".charAt),Vw=ew([].join),Bw=ew([].push),Ww=ew("".replace),Kw=ew([].shift),Hw=ew([].splice),qw=ew("".split),Gw=ew("".slice),Xw=/\+/g,Yw=Array(4),$w=function(e){return Yw[e-1]||(Yw[e-1]=jw("((?:%[\\da-f]{2}){"+e+"})","gi"))},Qw=function(e){try{return Fw(e)}catch(yj){return e}},Jw=function(e){var t=Ww(e,Xw," "),r=4;try{return Fw(t)}catch(yj){for(;r;)t=Ww(t,$w(r--),Qw);return t}},Zw=/[!'()~]|%20/g,eS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},tS=function(e){return eS[e]},rS=function(e){return Ww(Uw(e),Zw,tS)},nS=sw((function(e,t){Rw(this,{type:Pw,iterator:_w(kw(e).entries),kind:t})}),"Iterator",(function(){var e=Ow(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),iS=function(e){this.entries=[],this.url=null,void 0!==e&&(vw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===zw(e,0)?Gw(e,1):e:gw(e)))};iS.prototype={type:Tw,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=bw(e);if(l)for(r=(t=_w(e,l)).next;!(n=Zb(r,t)).done;){if(o=(i=_w(dw(n.value))).next,(a=Zb(o,i)).done||(s=Zb(o,i)).done||!Zb(o,i).done)throw Nw("Expected sequence with length 2");Bw(this.entries,{key:gw(a.value),value:gw(s.value)})}else for(var c in e)fw(e,c)&&Bw(this.entries,{key:c,value:gw(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=qw(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=qw(t,"="),Bw(this.entries,{key:Jw(Kw(r)),value:Jw(Vw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Bw(r,rS(e.key)+"="+rS(e.value));return Vw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var oS=function(){cw(this,aS);var e=Rw(this,new iS(arguments.length>0?arguments[0]:void 0));tw||(this.length=e.entries.length)},aS=oS.prototype;if(ow(aS,{append:function(e,t){ww(arguments.length,2);var r=kw(this);Bw(r.entries,{key:gw(e),value:gw(t)}),tw||this.length++,r.updateURL()},delete:function(e){ww(arguments.length,1);for(var t=kw(this),r=t.entries,n=gw(e),i=0;i<r.length;)r[i].key===n?Hw(r,i,1):i++;tw||(this.length=r.length),t.updateURL()},get:function(e){ww(arguments.length,1);for(var t=kw(this).entries,r=gw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){ww(arguments.length,1);for(var t=kw(this).entries,r=gw(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Bw(n,t[i].value);return n},has:function(e){ww(arguments.length,1);for(var t=kw(this).entries,r=gw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){ww(arguments.length,1);for(var r,n=kw(this),i=n.entries,o=!1,a=gw(e),s=gw(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?Hw(i,l--,1):(o=!0,r.value=s));o||Bw(i,{key:a,value:s}),tw||(this.length=i.length),n.updateURL()},sort:function(){var e=kw(this);Sw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=kw(this).entries,n=pw(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new nS(this,"keys")},values:function(){return new nS(this,"values")},entries:function(){return new nS(this,"entries")}},{enumerable:!0}),nw(aS,Ew,aS.entries,{name:"entries"}),nw(aS,"toString",(function(){return kw(this).serialize()}),{enumerable:!0}),tw&&iw(aS,"size",{get:function(){return kw(this).entries.length},configurable:!0,enumerable:!0}),aw(oS,Tw),Qb({global:!0,constructor:!0,forced:!rw},{URLSearchParams:oS}),!rw&&uw(Cw)){var sS=ew(Dw.has),lS=ew(Dw.set),cS=function(e){if(vw(e)){var t,r=e.body;if(hw(r)===Tw)return t=e.headers?new Cw(e.headers):new Cw,sS(t,"content-type")||lS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),yw(e,{body:mw(0,gw(r)),headers:mw(0,t)})}return e};if(uw(Iw)&&Qb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Iw(e,arguments.length>1?cS(arguments[1]):{})}}),uw(Aw)){var uS=function(e){return cw(this,Lw),new Aw(e,arguments.length>1?cS(arguments[1]):{})};Lw.constructor=uS,uS.prototype=Lw,Qb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:uS})}}var fS,pS=Or,hS=x,dS=Tb,vS=i,gS=$t,yS=g,mS=oo,_S=so,bS=Cd,wS=Je,SS=P_,ES=Vf,TS=Qi,PS=hu.codeAt,RS=function(e){var t,r,n=[],i=Fb(Nb(Ub(e),Ob,"."),".");for(t=0;t<i.length;t++)r=i[t],jb(n,Ib(kb,r)?"xn--"+Bb(r):r);return Db(n,".")},kS=Yn,OS=Ao,xS=Kd,MS={URLSearchParams:oS,getState:kw},IS=Xo,AS=IS.set,CS=IS.getterFor("URL"),LS=MS.URLSearchParams,DS=MS.getState,jS=vS.URL,NS=vS.TypeError,FS=vS.parseInt,US=Math.floor,zS=Math.pow,VS=yS("".charAt),BS=yS(/./.exec),WS=yS([].join),KS=yS(1..toString),HS=yS([].pop),qS=yS([].push),GS=yS("".replace),XS=yS([].shift),YS=yS("".split),$S=yS("".slice),QS=yS("".toLowerCase),JS=yS([].unshift),ZS="Invalid scheme",eE="Invalid host",tE="Invalid port",rE=/[a-z]/i,nE=/[\d+-.a-z]/i,iE=/\d/,oE=/^0x/i,aE=/^[0-7]+$/,sE=/^\d+$/,lE=/^[\da-f]+$/i,cE=/[\0\t\n\r #%/:<>?@[\\\]^|]/,uE=/[\0\t\n\r #/:<>?@[\\\]^|]/,fE=/^[\u0000-\u0020]+/,pE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,hE=/[\t\n\r]/g,dE=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)JS(t,e%256),e=US(e/256);return WS(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=KS(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},vE={},gE=SS({},vE,{" ":1,'"':1,"<":1,">":1,"`":1}),yE=SS({},gE,{"#":1,"?":1,"{":1,"}":1}),mE=SS({},yE,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_E=function(e,t){var r=PS(e,0);return r>32&&r<127&&!wS(t,e)?e:encodeURIComponent(e)},bE={ftp:21,file:null,http:80,https:443,ws:80,wss:443},wE=function(e,t){var r;return 2==e.length&&BS(rE,VS(e,0))&&(":"==(r=VS(e,1))||!t&&"|"==r)},SE=function(e){var t;return e.length>1&&wE($S(e,0,2))&&(2==e.length||"/"===(t=VS(e,2))||"\\"===t||"?"===t||"#"===t)},EE=function(e){return"."===e||"%2e"===QS(e)},TE={},PE={},RE={},kE={},OE={},xE={},ME={},IE={},AE={},CE={},LE={},DE={},jE={},NE={},FE={},UE={},zE={},VE={},BE={},WE={},KE={},HE=function(e,t,r){var n,i,o,a=kS(e);if(t){if(i=this.parse(a))throw NS(i);this.searchParams=null}else{if(void 0!==r&&(n=new HE(r,!0)),i=this.parse(a,null,n))throw NS(i);(o=DS(new LS)).bindURL(this),this.searchParams=o}};HE.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||TE,u=0,f="",p=!1,h=!1,d=!1;for(e=kS(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=GS(e,fE,""),e=GS(e,pE,"$1")),e=GS(e,hE,""),n=ES(e);u<=n.length;){switch(i=n[u],c){case TE:if(!i||!BS(rE,i)){if(t)return ZS;c=RE;continue}f+=QS(i),c=PE;break;case PE:if(i&&(BS(nE,i)||"+"==i||"-"==i||"."==i))f+=QS(i);else{if(":"!=i){if(t)return ZS;f="",c=RE,u=0;continue}if(t&&(l.isSpecial()!=wS(bE,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&bE[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=NE:l.isSpecial()&&r&&r.scheme==l.scheme?c=kE:l.isSpecial()?c=IE:"/"==n[u+1]?(c=OE,u++):(l.cannotBeABaseURL=!0,qS(l.path,""),c=BE)}break;case RE:if(!r||r.cannotBeABaseURL&&"#"!=i)return ZS;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=TS(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=KE;break}c="file"==r.scheme?NE:xE;continue;case kE:if("/"!=i||"/"!=n[u+1]){c=xE;continue}c=AE,u++;break;case OE:if("/"==i){c=CE;break}c=VE;continue;case xE:if(l.scheme=r.scheme,i==fS)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=ME;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query="",c=WE;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.path.length--,c=VE;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=TS(r.path),l.query=r.query,l.fragment="",c=KE}break;case ME:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=VE;continue}c=CE}else c=AE;break;case IE:if(c=AE,"/"!=i||"/"!=VS(f,u+1))continue;u++;break;case AE:if("/"!=i&&"\\"!=i){c=CE;continue}break;case CE:if("@"==i){p&&(f="%40"+f),p=!0,o=ES(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||d){var y=_E(g,mE);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(p&&""==f)return"Invalid authority";u-=ES(f).length+1,f="",c=LE}else f+=i;break;case LE:case DE:if(t&&"file"==l.scheme){c=UE;continue}if(":"!=i||h){if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return eE;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=zE,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return eE;if(a=l.parseHost(f))return a;if(f="",c=jE,t==DE)return}break;case jE:if(!BS(iE,i)){if(i==fS||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=FS(f,10);if(m>65535)return tE;l.port=l.isSpecial()&&m===bE[l.scheme]?null:m,f=""}if(t)return;c=zE;continue}return tE}f+=i;break;case NE:if(l.scheme="file","/"==i||"\\"==i)c=FE;else{if(!r||"file"!=r.scheme){c=VE;continue}if(i==fS)l.host=r.host,l.path=TS(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=TS(r.path),l.query="",c=WE;else{if("#"!=i){SE(WS(TS(n,u),""))||(l.host=r.host,l.path=TS(r.path),l.shortenPath()),c=VE;continue}l.host=r.host,l.path=TS(r.path),l.query=r.query,l.fragment="",c=KE}}break;case FE:if("/"==i||"\\"==i){c=UE;break}r&&"file"==r.scheme&&!SE(WS(TS(n,u),""))&&(wE(r.path[0],!0)?qS(l.path,r.path[0]):l.host=r.host),c=VE;continue;case UE:if(i==fS||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&wE(f))c=VE;else if(""==f){if(l.host="",t)return;c=zE}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=zE}continue}f+=i;break;case zE:if(l.isSpecial()){if(c=VE,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=fS&&(c=VE,"/"!=i))continue}else l.fragment="",c=KE;else l.query="",c=WE;break;case VE:if(i==fS||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=QS(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||qS(l.path,"")):EE(f)?"/"==i||"\\"==i&&l.isSpecial()||qS(l.path,""):("file"==l.scheme&&!l.path.length&&wE(f)&&(l.host&&(l.host=""),f=VS(f,0)+":"),qS(l.path,f)),f="","file"==l.scheme&&(i==fS||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)XS(l.path);"?"==i?(l.query="",c=WE):"#"==i&&(l.fragment="",c=KE)}else f+=_E(i,yE);break;case BE:"?"==i?(l.query="",c=WE):"#"==i?(l.fragment="",c=KE):i!=fS&&(l.path[0]+=_E(i,vE));break;case WE:t||"#"!=i?i!=fS&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":_E(i,vE)):(l.fragment="",c=KE);break;case KE:i!=fS&&(l.fragment+=_E(i,gE))}u++}},parseHost:function(e){var t,r,n;if("["==VS(e,0)){if("]"!=VS(e,e.length-1))return eE;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,p=function(){return VS(e,f)};if(":"==p()){if(":"!=VS(e,1))return;f+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&BS(lE,p());)t=16*t+FS(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(i=null,n>0){if(!("."==p()&&n<4))return;f++}if(!BS(iE,p()))return;for(;BS(iE,p());){if(o=FS(p(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}($S(e,1,-1)),!t)return eE;this.host=t}else if(this.isSpecial()){if(e=RS(e),BS(cE,e))return eE;if(t=function(e){var t,r,n,i,o,a,s,l=YS(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(o=10,i.length>1&&"0"==VS(i,0)&&(o=BS(oE,i)?16:8,i=$S(i,8==o?1:2)),""===i)a=0;else{if(!BS(10==o?sE:8==o?aE:lE,i))return e;a=FS(i,o)}qS(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=zS(256,5-t))return null}else if(a>255)return null;for(s=HS(r),n=0;n<r.length;n++)s+=r[n]*zS(256,3-n);return s}(e),null===t)return eE;this.host=t}else{if(BS(uE,e))return eE;for(t="",r=ES(e),n=0;n<r.length;n++)t+=_E(r[n],vE);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return wS(bE,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&wE(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=dE(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+WS(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw NS(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new qE(e.path[0]).origin}catch(yj){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+dE(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(kS(e)+":",TE)},getUsername:function(){return this.username},setUsername:function(e){var t=ES(kS(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=_E(t[r],mE)}},getPassword:function(){return this.password},setPassword:function(e){var t=ES(kS(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=_E(t[r],mE)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?dE(e):dE(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,LE)},getHostname:function(){var e=this.host;return null===e?"":dE(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,DE)},getPort:function(){var e=this.port;return null===e?"":kS(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=kS(e))?this.port=null:this.parse(e,jE))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+WS(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,zE))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=kS(e))?this.query=null:("?"==VS(e,0)&&(e=$S(e,1)),this.query="",this.parse(e,WE)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=kS(e))?("#"==VS(e,0)&&(e=$S(e,1)),this.fragment="",this.parse(e,KE)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qE=function(e){var t=bS(this,GE),r=xS(arguments.length,1)>1?arguments[1]:void 0,n=AS(t,new HE(e,!1,r));hS||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},GE=qE.prototype,XE=function(e,t){return{get:function(){return CS(this)[e]()},set:t&&function(e){return CS(this)[t](e)},configurable:!0,enumerable:!0}};if(hS&&(_S(GE,"href",XE("serialize","setHref")),_S(GE,"origin",XE("getOrigin")),_S(GE,"protocol",XE("getProtocol","setProtocol")),_S(GE,"username",XE("getUsername","setUsername")),_S(GE,"password",XE("getPassword","setPassword")),_S(GE,"host",XE("getHost","setHost")),_S(GE,"hostname",XE("getHostname","setHostname")),_S(GE,"port",XE("getPort","setPort")),_S(GE,"pathname",XE("getPathname","setPathname")),_S(GE,"search",XE("getSearch","setSearch")),_S(GE,"searchParams",XE("getSearchParams")),_S(GE,"hash",XE("getHash","setHash"))),mS(GE,"toJSON",(function(){return CS(this).serialize()}),{enumerable:!0}),mS(GE,"toString",(function(){return CS(this).serialize()}),{enumerable:!0}),jS){var YE=jS.createObjectURL,$E=jS.revokeObjectURL;YE&&mS(qE,"createObjectURL",gS(YE,jS)),$E&&mS(qE,"revokeObjectURL",gS($E,jS))}OS(qE,"URL"),pS({global:!0,constructor:!0,forced:!dS,sham:!hS},{URL:qE});var QE=Or,JE=o,ZE=Kd,eT=Yn,tT=Tb,rT=ae("URL");QE({target:"URL",stat:!0,forced:!(tT&&JE((function(){rT.canParse()})))},{canParse:function(e){var t=ZE(arguments.length,1),r=eT(e),n=t<2||void 0===arguments[1]?void 0:eT(arguments[1]);try{return!!new rT(r,n)}catch(yj){return!1}}});var nT=r(te.URL),iT=function(e){if(e){wb(e).call(e,"//")&&(e=location.protocol+e);try{return new nT(e)}catch(yj){return}}},oT=["fallbackUrl","enableRTMAutoTranscode"],aT=window.VePlayer.strategy,sT=window.VePlayer.util,lT=window.VePlayer.DynamicModule,cT=window.VePlayer.load,uT=window.VePlayer.Codec,fT=window.VePlayer.Sniffer,pT={options:{},module:lT.PluginRtm},hT=function(e){return"pc"===fT.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},dT=function(){var e=ym(vm().mark((function e(t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,b,w,S,E,T,P,R,k,O;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l="",c=t.url,u=t.playlist,f=t.rtm||{},p=f.fallbackUrl,h=f.enableRTMAutoTranscode,d=q_(f,oT),v=t.rtm||{},g=v.enableFallback,y=void 0===g||g,null!=u&&u.length&&(y=!1),m=h||"true"===(null===(i=iT(c))||void 0===i?void 0:i.searchParams.get("enableRTMAutoTranscode")),y&&(p?l=p:m&&c?l=hT(c):console.warn(L_(A_.EMPTY_RTM_FALLBACK_PARAMETER,n).message)),"flv"===(_=l&&sT.getStreamType(l))&&sT.isMseSupported(uT.H264)?s=aT.createFlvMseStrategy(t):"hls"===_&&("mobile"!==fT.device||null!=t&&null!==(o=t.hls)&&void 0!==o&&o.enableMSE)&&sT.isMseSupported(uT.H264)&&(s=aT.createHlsMseStrategy(t)),e.next=11,p_.all([cT(pT.module).then((function(e){return e.RtmPlugin})).catch((function(){})),s&&cT(s.module).then((function(e){var t,r;return(null===(t=s)||void 0===t?void 0:t.module)===lT.PluginFlv?e.FlvPlugin:(null===(r=s)||void 0===r?void 0:r.module)===lT.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 11:if(b=e.sent,w=Jf(b,2),S=w[0],E=w[1],!l){e.next=25;break}return e.next=18,p_.all([Y_(),Q_()]);case 18:if(T=e.sent,P=Jf(T,2),R=P[0],k=P[1],R&&k){e.next=25;break}return r&&r.emit("degrade",{url:l,originRtmUrl:c,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:R,isRTMSupportCodec:k}),e.abrupt("return",{options:yh(yh({},(null===(O=s)||void 0===O?void 0:O.options)||{}),{},{url:l,_RTMdegrade:{_originRtmUrl:c,_isRTMSupported:R,_isRTMSupportCodec:k}}),plugins:E?[E]:[]});case 25:return e.abrupt("return",{options:yh(yh({},(null===(a=s)||void 0===a?void 0:a.options)||{}),{},{url:h?sT.appendSearchParams(c,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:yh(yh({retryCount:0},d),{},{backupURL:l,backupConstruct:E})}),plugins:S?[S]:[]});case 26:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),vT=window.VePlayer.Sniffer,gT=function(e){return e.Fairplay="fairplay",e}(gT||{});function yT(e){if(null!=e&&e.fairplay&&("safari"===vT.browser||vT.os.isIos))return"fairplay"}function mT(e){var t=e.drm,r=e.streamType,n=yT(t);return!n||("fairplay"!==n||"hls"!==r)}var _T=window.VePlayer.Sniffer,bT=window.VePlayer.Codec,wT=window.VePlayer.util,ST=wT.isMMSSupported,ET=wT.isMseSupported;function TT(){return _T.os.isIos}function PT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bT.H264;return(TT()?ST:ET)(e)}var RT=window.VePlayer.strategy,kT=window.VePlayer.load,OT=window.VePlayer.Codec,xT=window.VePlayer.util.appendSearchParams,MT=function(){var e=ym(vm().mark((function e(t){var r,n,i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,b,w,S;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=null==t||null===(r=t.flv)||void 0===r?void 0:r.enableLowLatency,d=null===(n=null==t||null===(i=t.flv)||void 0===i||null===(i=i.lowLatency)||void 0===i?void 0:i.enableFrameChasing)||void 0===n||n,v=null!==(o=null==t||null===(a=t.flv)||void 0===a||null===(a=a.lowLatency)||void 0===a?void 0:a.abrPts)&&void 0!==o?o:"-800",e.next=5,RT.getCodec(t);case 5:return g=e.sent,e.next=8,RT.isSoftDecode(t,g);case 8:if(e.sent&&(p=g===OT.H265?RT.createSoftDecodeH265Strategy():RT.createSoftDecodeH264Strategy(),f=RT.createFlvMseStrategy(t)),PT("unknown"===g?OT.H264:g)&&(f=TT()?RT.createFlvMssStrategy(t):RT.createFlvMseStrategy(t)),f||p){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,p_.all([(null===(s=f)||void 0===s?void 0:s.module)&&kT(f.module).catch((function(){})),(null===(l=p)||void 0===l?void 0:l.module)&&kT(p.module).catch((function(){}))]);case 15:return y=e.sent,m=Jf(y,2),_=m[0],(null==(b=m[1])?void 0:b.XGVideoPlugin)&&(null===(c=p)||void 0===c||null===(u=c.afterLoad)||void 0===u||u.call(c,null==b?void 0:b.XGVideoPlugin)),w=RT.combineOptions([f,p]),S=[],h&&(w.url=xT(t.url,{abr_pts:v})),_&&(S.push(_.FlvPlugin),h&&d&&S.push(_.Adaptive)),e.abrupt("return",{options:w,plugins:S});case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),IT=window.VePlayer.util,AT=window.VePlayer.strategy,CT=function(){var e=ym(vm().mark((function e(t,r,n){var i;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=t.url?IT.getStreamType(t.url):"")&&"unknown"!==i){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==i){e.next=7;break}return e.next=6,dT(t,r,n);case 6:case 10:case 16:return e.abrupt("return",e.sent);case 7:if("flv"!==i){e.next=11;break}return e.next=10,MT(t);case 11:if("hls"!==i){e.next=17;break}if(mT({drm:t.drm,streamType:i})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,AT.getHlsStrategy(t);case 17:return e.abrupt("return",{options:{},plugins:[]});case 18:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LT=r(Nm),DT="\t\n\v\f\r \u2028\u2029\ufeff",jT=X,NT=Yn,FT=DT,UT=g("".replace),zT=RegExp("^["+FT+"]+"),VT=RegExp("(^|[^"+FT+"])["+FT+"]+$"),BT=function(e){return function(t){var r=NT(jT(t));return 1&e&&(r=UT(r,zT,"")),2&e&&(r=UT(r,VT,"$1")),r}},WT={start:BT(1),end:BT(2),trim:BT(3)},KT=i,HT=o,qT=g,GT=Yn,XT=WT.trim,YT=DT,$T=KT.parseInt,QT=KT.Symbol,JT=QT&&QT.iterator,ZT=/^[+-]?0x/i,eP=qT(ZT.exec),tP=8!==$T(YT+"08")||22!==$T(YT+"0x16")||JT&&!HT((function(){$T(Object(JT))}))?function(e,t){var r=XT(GT(e));return $T(r,t>>>0||(eP(ZT,r)?16:10))}:$T;Or({global:!0,forced:parseInt!=tP},{parseInt:tP});var rP,nP=r(te.parseInt),iP="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,oP=i,aP=f,sP=k,lP=iP,cP=le,uP=Rs,fP=Kd,pP=oP.Function,hP=/MSIE .\./.test(cP)||lP&&((rP=oP.Bun.version.split(".")).length<3||0==rP[0]&&(rP[1]<3||3==rP[1]&&0==rP[2])),dP=function(e,t){var r=t?2:1;return hP?function(n,i){var o=fP(arguments.length,1)>r,a=sP(n)?n:pP(n),s=o?uP(arguments,r):[],l=o?function(){aP(a,this,s)}:a;return t?e(l,i):e(l)}:e},vP=Or,gP=i,yP=dP(gP.setInterval,!0);vP({global:!0,bind:!0,forced:gP.setInterval!==yP},{setInterval:yP});var mP=Or,_P=i,bP=dP(_P.setTimeout,!0);mP({global:!0,bind:!0,forced:_P.setTimeout!==bP},{setTimeout:bP});var wP=r(te.setTimeout),SP=r(ff),EP=NaN,TP="[object Symbol]",PP=/^\s+|\s+$/g,RP=/^[-+]0x[0-9a-f]+$/i,kP=/^0b[01]+$/i,OP=/^0o[0-7]+$/i,xP=nP,MP="object"==fh(t)&&t&&t.Object===Object&&t,IP="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,AP=MP||IP||Function("return this")(),CP=Object.prototype.toString,LP=Math.max,DP=Math.min,jP=function(){return AP.Date.now()};function NP(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function FP(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&CP.call(e)==TP}function UP(e){if("number"==typeof e)return e;if(FP(e))return EP;if(NP(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=NP(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(PP,"");var r=kP.test(e);return r||OP.test(e)?xP(SP(e).call(e,2),r?2:8):RP.test(e)?EP:+e}var zP=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function v(){var e=jP();if(d(e))return g(e);s=wP(v,function(e){var r=t-(e-l);return f?DP(r,o-(e-c)):r}(e))}function g(e){return s=void 0,p&&n?h(e):(n=i=void 0,a)}function y(){var e=jP(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=wP(v,t),u?h(e):a}(l);if(f)return s=wP(v,t),h(l)}return void 0===s&&(s=wP(v,t)),a}return t=UP(t)||0,NP(r)&&(u=!!r.leading,o=(f="maxWait"in r)?LP(UP(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:g(jP())},y},VP=r(zP),BP=yh(yh({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function WP(){return(new DOMParser).parseFromString('<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 2.488a7.48 7.48 0 00-4.154 1.253.908.908 0 101.005 1.512 5.695 5.695 0 018.844 4.746h-.908a.33.33 0 00-.264.528l1.816 2.422a.33.33 0 00.529 0l1.815-2.422A.33.33 0 0018.42 10h-.908A7.511 7.511 0 0010 2.49zM2.489 10a7.511 7.511 0 0011.665 6.26.908.908 0 00-1.005-1.513A5.695 5.695 0 014.305 10h.908a.33.33 0 00.264-.528L3.66 7.05a.33.33 0 00-.528 0L1.317 9.47a.33.33 0 00.264.53h.908z" fill="#fff"/></svg>',"image/svg+xml").firstChild}var KP=window.VePlayer.Plugin,HP=window.VePlayer.Sniffer,qP=window.VePlayer.XGEvents,GP=KP.POSITIONS,XP=function(e){zm(r,e);var t=o_(r);function r(){return mm(this,r),t.apply(this,arguments)}return bm(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:WP,class:"xgplayer-refresh-svg"}}}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this._handleRefresh)}},{key:"render",value:function(){var e=this.player.config.i18nManager;return'\n <xg-icon class="veplayer-refresh">\n <div class="xgplayer-icon">\n </div>\n <div class="xg-tips" lang-key="refresh">'.concat(e.getText("REFRESH"),"</div>\n </xg-icon>\n ")}},{key:"_handleRefresh",value:function(e){var t=this.player;if(t){var r,n;if(e.preventDefault(),e.stopPropagation(),t.addClass("xgplayer-is-enter"),t.pause(),t)t.emit(BP.REFRESH_CLICK),null===(r=this.player)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.veplayer)||void 0===r||r.retry(),null===(n=this.player)||void 0===n||null===(n=n.plugins)||void 0===n||null===(n=n.error)||void 0===n||n.hideError();t.once(qP.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=VP(LT(e=this._handleRefresh).call(e,this),200);var t="mobile"===HP.device?"touchend":"click";LT(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:GP.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(KP),YP=r(sh),$P=r(tp),QP=r(np),JP=r(up),ZP=r(bp),eR=r(Cp),tR=r(Hp),rR=r(Zp),nR=r(K_),iR=Or,oR=Date,aR=g(oR.prototype.getTime);iR({target:"Date",stat:!0},{now:function(){return aR(new oR)}});var sR=r(te.Date.now),lR=r(te.URLSearchParams),cR=tP;Or({target:"Number",stat:!0,forced:Number.parseInt!=cR},{parseInt:cR});var uR=r(te.Number.parseInt),fR=oi.includes;Or({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return fR(this,e,arguments.length>1?arguments[1]:void 0)}});var pR=zu("Array").includes,hR=Or,dR=ib,vR=X,gR=Yn,yR=ab,mR=g("".indexOf);hR({target:"String",proto:!0,forced:!yR("includes")},{includes:function(e){return!!~mR(gR(vR(this)),gR(dR(e)),arguments.length>1?arguments[1]:void 0)}});var _R=zu("String").includes,bR=se,wR=pR,SR=_R,ER=Array.prototype,TR=String.prototype,PR=r((function(e){var t=e.includes;return e===ER||bR(ER,e)&&t===ER.includes?wR:"string"==typeof e||e===TR||bR(TR,e)&&t===TR.includes?SR:t})),RR=te,kR=f;RR.JSON||(RR.JSON={stringify:JSON.stringify});var OR=function(e,t,r){return kR(RR.JSON.stringify,null,arguments)},xR=r(OR),MR=f,IR=Q,AR=jr,CR=Vr,LR=Ep,DR=Math.min,jR=[].lastIndexOf,NR=!!jR&&1/[1].lastIndexOf(1,-0)<0,FR=LR("lastIndexOf"),UR=NR||!FR?function(e){if(NR)return MR(jR,this,arguments)||0;var t=IR(this),r=CR(t),n=r-1;for(arguments.length>1&&(n=DR(n,AR(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:jR;Or({target:"Array",proto:!0,forced:UR!==[].lastIndexOf},{lastIndexOf:UR});var zR=zu("Array").lastIndexOf,VR=se,BR=zR,WR=Array.prototype,KR=r((function(e){var t=e.lastIndexOf;return e===WR||VR(WR,e)&&t===WR.lastIndexOf?BR:t})),HR=i,qR=o,GR=Yn,XR=WT.trim,YR=DT,$R=g("".charAt),QR=HR.parseFloat,JR=HR.Symbol,ZR=JR&&JR.iterator,ek=1/QR(YR+"-0")!=-1/0||ZR&&!qR((function(){QR(Object(ZR))}))?function(e){var t=XR(GR(e)),r=QR(t);return 0===r&&"-"==$R(t,0)?-0:r}:QR,tk=ek;Or({target:"Number",stat:!0,forced:Number.parseFloat!=tk},{parseFloat:tk});var rk=r(te.Number.parseFloat),nk=r(te.setInterval);function ik(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),YP(e,n.key,n)}}function ok(e,t,r){return t&&ik(e.prototype,t),r&&ik(e,r),e}function ak(e,t,r){return t in e?YP(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e,t){var r=$P(e);if(QP){var n=QP(e);t&&(n=JP(n).call(n,(function(t){return ZP(e,t).enumerable}))),r.push.apply(r,n)}return r}function lk(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)eR(r=sk(Object(n),!0)).call(r,(function(t){ak(e,t,n[t])}));else if(tR)rR(e,tR(n));else{var i;eR(i=sk(Object(n))).call(i,(function(t){YP(e,t,ZP(n,t))}))}}return e}var ck="xgplayer_device_id",uk="xgplayer_user_id",fk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(nR(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},pk=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},hk=function(){var e=fk(ck);if(e)return e;var t=pk(11);return document.cookie=ck+"="+t+";max-age=31536000;path=/",t},dk=function(){var e=fk(uk);if(e)return e;var t=pk(12);return document.cookie=uk+"="+t+";max-age=31536000;path=/",t};var vk={get device(){return vk.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:nR(e).call(e,"chrome")>-1&&nR(e).call(e,"safari")>-1,Firefox:nR(e).call(e,"firefox")>-1,Opera:nR(e).call(e,"opera")>-1,Safari:nR(e).call(e,"safari")>-1&&-1==nR(e).call(e,"chrome"),Edge:nR(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=nP(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function gk(){return sR()}function yk(e){var t="unknown";return"string"!=typeof e?t:nR(e).call(e,".flv")>-1?"flv":nR(e).call(e,".m3u8")>-1?"m3u8":nR(e).call(e,".mp4")>-1?"mp4":nR(e).call(e,".sdp")>-1?"rts":t}function mk(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}var _k={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},bk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=LT(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}ok(e,[{key:"videoSize",get:function(){return this._player&&this._player.video?{width:this._player.video.videoWidth,height:this._player.video.videoHeight}:{width:0,height:0}}}]);var t=e.prototype;return t.push=function(e){var t=this._player.config.url;this._player.video&&(e.play_current_time=this._player.currentTime),this.core&&this.core.loader&&this.core.loader.finnalUrl?e.cdn_play_url=this.core.loader.finnalUrl:e.cdn_play_url=t&&wb(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new lR(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=yk(e.cdn_play_url),e.timestamp=gk();var r=function(){var e={cpu_core_number:-1,memory_usage:-1,network_downlink:-1};try{e.cpu_core_number=navigator.hardwareConcurrency||-1,e.memory_usage=navigator.deviceMemory||-1,e.network_downlink=navigator.connection&&navigator.connection.downlink,null==e.network_downlink&&(e.network_downlink=-1)}catch(yj){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,O_(e,lk({},this.videoSize)),this.send(e)},t.send=function(e){e.event_key&&(this.logOptions.onReport&&this.logOptions.onReport(e.event_key,e),this.Tea(e.event_key,lk({},e)))},e}(),wk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||vk.device:"none":"unknown";var e},Sk=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],Ek=function(){function e(e){var t,r;this.options=e,this.logger=new Tk(e),this.restart=LT(t=this.restart).call(t,this),this.bindUrlChange(),PR(r=vk.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Tk(this.options),this.bindUrlChange(),this.logger.reportStartPlay(),this.logger.handlePlayerComlete()},t.bindUrlChange=function(){this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.on("urlchange",this.restart)},t.setNTP=function(e){this.logger.setNTP(e)},t.updateExt=function(e){this.options.ext=O_(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),Tk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=O_({},e,function(e){return{device_id:e.device_id||hk(),user_id:e.user_id||dk(),error_report_stop:!!e.error_report_stop,project_key:e.project_key||"live",product_line:e.product_line||"live",onReport:e.onReport||function(){}}}(e)),this._player=this.options.player,this._url=this._player.config.url,this.project_key=e.project_key||"live",this.product_line=e.product_line||"live",this.ntpDelta=this.options.ntp?sR()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new bk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}ok(e,[{key:"videoSize",get:function(){return this.player?{width:this.player.video.videoWidth,height:this.player.video.videoHeight}:{width:0,height:0}}},{key:"player",get:function(){return this._player}},{key:"logmanager",get:function(){return this._logmanager}},{key:"ntpTime",get:function(){return sR()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=sR()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,p,h,d,v;this.handlePlayerComlete=LT(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=LT(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=LT(r=this.destroyFunc).call(r,this),this.handleUserLeave=LT(n=this.handleUserLeave).call(n,this),this.handlePlayerError=LT(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=LT(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=LT(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=LT(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=LT(l=this.handlePlayerPause).call(l,this),this.handleTTFB=LT(c=this.handleTTFB).call(c,this),this.handleUrlChange=LT(u=this.handleUrlChange).call(u,this),this.handleKeyframe=LT(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=LT(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=LT(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=LT(d=this.handleCoreEvent).call(d,this),this.handleDegrade=LT(v=this.handleDegrade).call(v,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=lk({os:vk.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return lk({project_key:e.project_key,live_sdk_version:mk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.12",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:pk(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+sR(),is_preview:e.is_preview?1:0,codec_type:e.codec_type||"h264",width:Math.floor(r.config.width),height:Math.floor(r.config.height),browser:vk.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:sR(),play_current_time:0,cdn_play_url:r.config.url&&wb(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:yk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=O_({},{start_play:{start_play_time:0,event_key:"start_play"},first_frame:{start:0,first_frame_view:0,event_key:"first_frame",first_sei_delay:0,ntp_sync:0,ntp_delta:0,ttfb:-1,ttdb:-1,ttfb_end:0},first_frame_failed:{code:void 0,msg:"",event_key:"first_frame_failed"},stall_start:{ready_state:-1,stall_start_time:0,event_key:"stall_start"},stalling:{event_key:"stalling"},stall:{reason:0,stall_start:0,stall_end:0,ready_state:0,event_key:"stall"},play_stop:{code:0,stop_time:0,drop_percent:0,is_stream_received:0,stall_count:0,stall_time:0,retry_count:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0,event_key:"play_stop",dns_parse_time:-1,redirect:-1,ttfb:-1,buffered:[],is_firstframe_received:0,meta:null},playing:{index:0,stall_count:0,stall_time:0,play_time:1e4,retry_count:0,is_last:0,video_buffer_time:0,audio_buffer_time:0,speed_switch_count:0,speed_switch_info:"none",download_speed:0,decode_fps:0,render_fps:0,drop_count:-1,drop_percent:-1,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){YP(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&YP(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?SP(e).call(e,0,25e4):""}return""},enumerable:!0}),YP(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),YP(this.log[o],"access",{get:function(){return wk()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=mk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),this.started=!0,this.log.start_play.start_play_time=this.log.start_play.timestamp=gk(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===vk.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===vk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;eR(Sk).call(Sk,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(O_(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=gk(),this.logmanager.push(this.log.play_low_decode,!0),this.commonParams.is_wasm=0);break;case"core.largeavgap":this.handleAVUnsync(e);break;case"core.loadstart":this.handlePlayerLoadStream(e),this.reportStartPlay();break;case"core.loadcomplete":this.handlePlayerLoadedStream(e);break;case"core.streamexception":this.handleStreamException(e);break;case"core.rtcstatechange":this.logmanager.push(O_({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,SP(Array.prototype).call(e,0))}catch(JO){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(O_(this.log.play_url_change,{url:e,timestamp:gk()}))},t.handleKeyframe=function(e){this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=e},t.handleSourceOpen=function(){this.log.source_opened.timestamp=gk(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=gk(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=gk(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;O_(this.log.play_error,lk({timestamp:gk(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:xR(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(O_(this.log.first_frame_failed,{code:r||("parse"===t?31:21),msg:e.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=gk()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=gk(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=gk(),O_(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=SP(i).call(i,nR(i).call(i,"{"),KR(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(JO){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=gk(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){O_(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=gk(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(O_({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=mk(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=uR(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(JO){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=rk((t.droppedVideoFrames-this.tempDroppedFrameCount)/(t.totalVideoFrames-this.tempTotalFrameCount)).toFixed(1),this.log.play_stop.drop_percent=rk(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}else if(null!=e.webkitDroppedFrameCount){var r=e.webkitDroppedFrameCount;this.log.playing.drop_count=r-this.tempDroppedFrameCount,this.tempDroppedFrameCount=r}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?p_.resolve(i.getStats()).then((function(t){return eR(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,p=t.framesDropped,h=t.keyFramesDecoded,d=t.totalDecodeTime,v=t.framesDecoded,g=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,w=t.jitter,S=t.nackCount,E=t.packetsLost,T=t.pliCount,P=t.totalSamplesReceived,R=t.concealedSamples,k=t.currentRoundTripTime,O=t.decoderImplementation,x=t.mimeType,M=t.freezeCount,I=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=E-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=E,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(P-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=P,o.concealed_samples=R,o.total_samples_received=P):(o.frames_dropped=p,o.iframes_decoded=h,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/v,o.video_frame_height=g,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(v-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=v,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=M-r.cacheRtcStats.freezeCount,o.freeze_duration=I-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=M,r.cacheRtcStats.totalFreezesDuration=I,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/b*1e3,o.video_jitter=1e3*w,o.video_nack_count=S,o.video_packets_lost=E-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=E,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=T,o.decoder_name=O);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=g);break;case"candidate-pair":o.rtt=1e3*k;break;case"codec":PR(x).call(x,"video")?o.video_codec=x:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),O_(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):p_.resolve(o)}catch(JO){return p_.reject(JO)}},t.reportPlaying=function(e){try{var t=this;t.commonParams.is_wasm&&(t.commonParams.fps=t.player.video.fps,t.log.playing.render_fps=t.player.video.fps,t.log.playing.decode_fps=t.player.video.decodeFps),t.log.playing.index++;var r,n=t.log.playing.timestamp;t.inWaitingStart&&t.inWaitingStart<gk()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,gk()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=gk(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),O_(t.log.playing,lk({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),p_.resolve(t.getRtcStats(o,e)).then((function(r){var n={};if(t.core){if(t.core.getStats){var i=t.core.getStats()||{},a=i.bitrate,s=i.avgSpeed;O_(n,{bitrate:a,avg_speed:s,rate:s/a})}if(t.core.getNetWorkInfo){var l,c=(t.core.getNetWorkInfo()||{}).lostRate,u=((null===(l=t.core.core)||void 0===l?void 0:l._opts)||{}).networkEvaluateInterval;O_(n,{lostRate:c,networkEvaluateInterval:u})}}t.logmanager.push(O_({},t.log.playing,lk(lk({play_time:e?0:o},r),n)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(JO){return p_.reject(JO)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return p_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core&&e.core.getStats){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return p_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=nk((function(){try{var r=function(){if(Math.abs(sR()-e.log.playing.timestamp-t)<100||sR()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return p_.resolve(e.reportPlaying()).then((function(){}));e.handleVideopause()}();if(t&&t.then)return t.then((function(){}))}else e.destroyFunc()}();if(r&&r.then)return r.then((function(){}))}}();return p_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(JO){return p_.reject(JO)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(JO){return p_.reject(JO)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=gk(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=gk(),this.playResultTimer=wP((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=gk(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=gk(),this.log.stall_start.stall_start_time=gk(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),O_(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=wP((function(){e.logmanager.push(e.log.stall_start,!0)}),205))},t.handleVideoseeking=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.clearStallTimer())},t.handleVideoseeked=function(){this.player&&this.player.video&&this.inWaitingStart&&this.player.video.duration<1/0&&(this.inWaitingStart=0,this.log.play_stop.stall_count>0&&this.log.play_stop.stall_count--)},t.handleVideoplay=function(){this.reportStartPlay(),this.removeVideoEvt("play",this.handleVideoplay)},t.handleVideotimeupdate=function(){Math.abs(this.player.currentTime-this.log.stall_start.play_current_time)>.2&&this.stallEnd(),this.saveBuffered()},t.handleVideocanplay=function(){this.stallEnd(),this.reportFirstframe()},t.handleVideoplaying=function(){this.stallEnd(),this.log.play_stop.is_stream_received=1;var e=gk();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=gk();if(this.inWaitingStart){var t=e-this.inWaitingStart;t>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e-this.inWaitingStart,this.log.playing.stall_time+=e-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=e,this.log.stall.timestamp=gk(),this.log.playing.stall_count++,O_(this.log.stall,lk({},this.videoSize)),this.logmanager.push(this.log.stall,!0)),this.options.aggregationDowngradeStallTime&&t>this.options.aggregationDowngradeStallTime&&(this.log.playing.aggregation_downgrade_stall=(this.log.playing.aggregation_downgrade_stall||0)+(e-Math.max(this.inWaitingStart,this.log.playing.timestamp)))}this.inWaitingStart=0},t.handleVideoloadeddata=function(){this.reportFirstframe()},t.handleVideoratechange=function(){this.log.playing.speed_switch_count++,this.log.playing.speed_switch_info=this.player.video.playbackRate},t.handleVideoended=function(){this.clearPlayingInterval(),this.clearStallTimer(),O_(this.log.playing,lk({timestamp:gk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;O_(this.log.play_error,lk(lk({timestamp:gk()},this.videoSize),t&&{code:t.code,info:t.message})),this.logmanager.push(this.log.play_error,!0),0!==e.log.first_frame.first_frame_view||e.log.first_frame_failed.code||t&&(e.log.first_frame_failed.code=t.code,e.log.first_frame_failed.msg=_k[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=gk()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=_k[t.code]||"first frame failed",e.log.play_result.code=t.code,e.clearPlayResultTimer(),e.logmanager.push(e.log.play_result,!0))),e.options.error_report_stop?e.handleUserLeave():e.updatePlayStopParams()},t.handleVideopause=function(){this.stallEnd(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.player.once("playing",this.handlePlayerPlaying),this.player.once("timeupdate",this.handlePlayerPlaying)},t.destroyFunc=function(e){var t=this;this.destroyed||(e||this.handleUserLeave(),this.destroyed=!0,"pc"===vk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===vk.device&&window.removeEventListener("pagehide",this.handleUserLeave),eR(Sk).call(Sk,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this._player=null),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer))},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?p_.resolve():(e.destroyed=!0,p_.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(JO){return p_.reject(JO)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(yj){}},t.getBuffered=function(){try{for(var e=[],t=this.player.video,r=0;r<t.buffered.length;r++)e.push([t.buffered.start(r),t.buffered.end(r)]);return e}catch(yj){}},t.reportPlayStop=function(){this.player&&(this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered()),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core&&this.core.getStats){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=gk();O_(this.log.first_frame,lk({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){O_(o,lk({timestamp:i,stop_time:i,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(o.play_time_on_no_frame=o.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=JP(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:uR(n.domainLookupEnd-n.domainLookupStart),redirect:uR(n.redirectEnd-n.redirectStart),ttfb:uR(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),i=gk();r.playedTime=i-r.log.start_play.start_play_time;var o=r.log.play_stop;if(O_(o,lk({},0===o.stall_count&&{stall_time:0})),r.inWaitingStart&&i-r.inWaitingStart>200&&(o.stall_time+=i-r.inWaitingStart),r.inWaitingStart=0,O_(o,lk({stall_time_per_100sec:o.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*o.stall_count/r.playedTime*100},n)),0===r.log.play_stop.stall_count_per_100sec&&(r.log.play_stop.stall_time_per_100sec=0),r.log.play_stop.stall_time_per_100sec>100||r.log.play_stop.stall_time_per_100sec<0)return p_.resolve();if(r.log.playing.index?(O_(r.log.playing,lk({timestamp:gk(),is_last:1},r.videoSize)),r.logmanager.push(r.log.playing,!0)):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),i=gk(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;O_(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var c=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return p_.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;O_(o,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return p_.resolve(c&&c.then?c.then(t):t())}catch(JO){return p_.reject(JO)}},t.clearPlayingInterval=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},t.clearStallTimer=function(){clearTimeout(this.stallStartTimer)},t.clearPlayResultTimer=function(){clearTimeout(this.playResultTimer)},t.destroy=function(e){this.destroyFunc(!e)},t.bindVideoEvt=function(e,t){this.player&&this.player.video.addEventListener(e,t,!1)},t.removeVideoEvt=function(e,t){this.player&&this.player.video&&this.player.video.removeEventListener(e,t,!1)},t.send=function(e,t){this.logmanager.send(e,t)},e}(),Pk=r(nu),Rk=r(Ou),kk=ke,Ok=TypeError,xk=function(e,t){if(!delete e[t])throw Ok("Cannot delete property "+kk(t)+" of "+kk(e))},Mk=Or,Ik=Ye,Ak=ei,Ck=jr,Lk=Vr,Dk=Lu,jk=Wr,Nk=On,Fk=Gr,Uk=xk,zk=An("splice"),Vk=Math.max,Bk=Math.min;Mk({target:"Array",proto:!0,forced:!zk},{splice:function(e,t){var r,n,i,o,a,s,l=Ik(this),c=Lk(l),u=Ak(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=Bk(Vk(Ck(t),0),c-u)),jk(c+r-n),i=Nk(l,n),o=0;o<n;o++)(a=u+o)in l&&Fk(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:Uk(l,s);for(o=c;o>c-n+r;o--)Uk(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:Uk(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return Dk(l,c-n+r),i}});var Wk=zu("Array").splice,Kk=se,Hk=Wk,qk=Array.prototype,Gk=r((function(e){var t=e.splice;return e===qk||Kk(qk,e)&&t===qk.splice?Hk:t}));Or({global:!0,forced:parseFloat!=ek},{parseFloat:ek});var Xk=r(te.parseFloat),Yk=ml.PROPER,$k=o,Qk=DT,Jk=WT.trim;Or({target:"String",proto:!0,forced:function(e){return $k((function(){return!!Qk[e]()||"
"!=="
"[e]()||Yk&&Qk[e].name!==e}))}("trim")},{trim:function(){return Jk(this)}});var Zk=zu("String").trim,eO=se,tO=Zk,rO=String.prototype,nO=r((function(e){var t=e.trim;return"string"==typeof e||e===rO||eO(rO,e)&&t===rO.trim?tO:t})),iO=r(_h),oO=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),aO={exports:{}},sO=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),lO=o,cO=ee,uO=b,fO=sO,pO=Object.isExtensible,hO=lO((function(){pO(1)}))||fO?function(e){return!!cO(e)&&((!fO||"ArrayBuffer"!=uO(e))&&(!pO||pO(e)))}:pO,dO=Or,vO=g,gO=ai,yO=ee,mO=Je,_O=Qt.f,bO=Bi,wO=Hi,SO=hO,EO=oO,TO=!1,PO=nt("meta"),RO=0,kO=function(e){_O(e,PO,{value:{objectID:"O"+RO++,weakData:{}}})},OO=aO.exports={enable:function(){OO.enable=function(){},TO=!0;var e=bO.f,t=vO([].splice),r={};r[PO]=1,e(r).length&&(bO.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===PO){t(n,i,1);break}return n},dO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wO.f}))},fastKey:function(e,t){if(!yO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!mO(e,PO)){if(!SO(e))return"F";if(!t)return"E";kO(e)}return e[PO].objectID},getWeakData:function(e,t){if(!mO(e,PO)){if(!SO(e))return!0;if(!t)return!1;kO(e)}return e[PO].weakData},onFreeze:function(e){return EO&&TO&&SO(e)&&!mO(e,PO)&&kO(e),e}};gO[PO]=!0;var xO=aO.exports,MO=Or,IO=oO,AO=o,CO=ee,LO=xO.onFreeze,DO=Object.freeze;MO({target:"Object",stat:!0,forced:AO((function(){DO(1)})),sham:!IO},{freeze:function(e){return DO&&CO(e)?DO(LO(e)):e}});var jO=r(te.Object.freeze),NO=ra.map;Or({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return NO(this,e,arguments.length>1?arguments[1]:void 0)}});var FO,UO=zu("Array").map,zO=se,VO=UO,BO=Array.prototype,WO=r((function(e){var t=e.map;return e===BO||zO(BO,e)&&t===BO.map?VO:t})),KO=r(Ir),HO=function(){return HO=O_||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},HO.apply(this,arguments)};function qO(e,t){var r="function"==typeof Pk&&Rk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function GO(){for(var e=[],t=0;t<arguments.length;t++)e=f_(e).call(e,qO(arguments[t]));return e}var XO,YO,$O,QO,JO,ZO=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=nR(r=this._hooks[e]).call(r,t);-1!==i&&Gk(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==nR(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&eR(r=GO(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===nR(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),ex=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},tx=(XO=+sR()+Number(SP(FO=""+Math.random()).call(FO,2,8)),function(){return XO+=1}),rx=function(e){var t=document.createElement("a");return t.href=e,t},nx=function(){function e(e){this.appid=e,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?rx(r).hostname:"";!function(e){var t={};try{var r,n=rx(e).search;eR(r=(n=SP(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+Xk(this.appVersion),i=this.userAgent;return-1!==nR(i).call(i,"Edge")||-1!==nR(i).call(i,"Edg")?(r="Microsoft Edge",-1!==nR(i).call(i,"Edge")?(e=nR(i).call(i,"Edge"),n=i.substring(e+5)):(e=nR(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=nR(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=nR(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=nR(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==nR(i).call(i,"MQQBrowser")||-1!==nR(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==nR(i).call(i,"MQQBrowser")?(e=nR(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==nR(i).call(i,"QQBrowser")&&(e=nR(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==nR(i).call(i,"Chrome")?-1!==(e=nR(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=nR(i).call(i,"360"))?(r="360browser",n=i.substring(nR(i).call(i,"Chrome")+7)):-1!==nR(i).call(i,"baidubrowser")||-1!==nR(i).call(i,"BIDUBrowser")?(-1!==nR(i).call(i,"baidubrowser")?(e=nR(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==nR(i).call(i,"BIDUBrowser")&&(e=nR(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=nR(i).call(i,"xiaomi"))?-1!==nR(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=nR(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=nR(i).call(i,"Chrome"))||-1!==(e=nR(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==nR(i).call(i,"Safari")?-1!==(e=nR(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=nR(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=nR(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=nR(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=nR(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=nR(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=nR(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=nR(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=nR(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=nR(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=nR(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?SP(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)eR(r=navigator.userAgent.split(";")).call(r,(function(e){nR(e).call(e,"Build/")>-1&&(t=SP(e).call(e,0,nR(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=nR(n).call(n,";");t=SP(n).call(n,0,i)}}catch(o){return nO(t).call(t)}return nO(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),ix=(YO=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(sR()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return iO({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=SP(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:jO(n)},converter:{value:jO(r)}})}({read:function(e){return'"'===e[0]&&(e=SP(e).call(e,1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},YO($O={exports:{}}),$O.exports),ox=ix,ax=function(){function e(){this.cache={}}return e.prototype.setItem=function(e,t){this.cache[e]=t},e.prototype.getItem=function(e){return this.cache[e]},e.prototype.removeItem=function(e){this.cache[e]=void 0},e.prototype.getCookie=function(e){this.getItem(e)},e.prototype.setCookie=function(e,t){this.setItem(e,t)},e}(),sx={getItem:function(e){try{var t=localStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:xR(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return ox.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;ox.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(JO){return!1}}()},lx={getItem:function(e){try{var t=sessionStorage.getItem(e),r=t;try{t&&"string"==typeof t&&(r=JSON.parse(t))}catch(n){}return r||{}}catch(n){}return{}},setItem:function(e,t){try{var r="string"==typeof t?t:xR(t);sessionStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(t){}},getCookie:function(e){this.getItem(e)},setCookie:function(e,t){this.setItem(e,t)},isSupportSession:function(){try{return sessionStorage.setItem("_ranger-test-key","hi"),sessionStorage.getItem("_ranger-test-key"),sessionStorage.removeItem("_ranger-test-key"),!0}catch(JO){return!1}}()},cx=function(){function e(e,t){this._storage=t&&"session"===t?lx:!e&&sx.isSupportLS?sx:new ax}return e.prototype.getItem=function(e){return this._storage.getItem(e)},e.prototype.setItem=function(e,t){this._storage.setItem(e,t)},e.prototype.getCookie=function(e,t){return this._storage.getCookie(e,t)},e.prototype.setCookie=function(e,t,r,n){this._storage.setCookie(e,t,r,n)},e.prototype.removeItem=function(e){this._storage.removeItem(e)},e}(),ux={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},fx=void 0,px=(new Date).getTimezoneOffset(),hx=nP(""+-px/60,10),dx=60*px,vx=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new nx(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new cx(!1,"session"),this.localStorage=new cx(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:fx,user_type:fx,user_id:fx,user_is_auth:fx,user_is_login:fx,device_id:fx,web_id:fx,user_unique_id_type:fx},header:{app_id:fx,app_name:fx,app_install_id:fx,install_id:fx,app_package:fx,app_channel:fx,app_version:fx,ab_version:fx,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:fx,traffic_type:fx,client_ip:fx,device_brand:fx,os_api:fx,access:fx,language:r.language,region:fx,app_language:fx,app_region:fx,creative_id:fx,ad_id:fx,campaign_id:fx,log_type:fx,rnd:fx,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:fx,city:fx,timezone:hx,tz_offset:dx,tz_name:fx,sim_region:fx,carrier:fx,resolution:r.screen_width+"x"+r.screen_height,browser:r.browser,browser_version:r.browser_version,referrer:r.referrer,referrer_host:r.referrer_host,width:r.screen_width,height:r.screen_height,screen_width:r.screen_width,screen_height:r.screen_height,utm_term:fx,utm_content:fx,utm_source:fx,utm_medium:fx,utm_campaign:fx,custom:{},wechat_unionid:fx,wechat_openid:fx}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=nP(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(ux[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t=this.initConfig.report_url||"/list";break;case"webid":t="/webid"}return""+this.getDomain()+t},e.prototype.set=function(e){var t,r=this;eR(t=$P(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=HO({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=HO({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?nR(n=["user_id","web_id","user_unique_id"]).call(n,t)>-1&&(r.envInfo.user[t]=e[t]?String(e[t]):e[t]):Object.hasOwnProperty.call(r.envInfo.header,t)?r.envInfo.header[t]=e[t]:r.envInfo.header.custom[t]=e[t]}))},e.prototype.get=function(e){try{return e?"evtParams"===e?this.evtParams:"reportErrorCallback"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(xR(this.envInfo[e])):JSON.parse(xR(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(JO=QO||(QO={})).Init="init",JO.Config="config",JO.Start="start",JO.Ready="ready",JO.TokenComplete="token-complete",JO.TokenStorage="token-storage",JO.TokenFetch="token-fetch",JO.TokenError="token-error",JO.ConfigUuid="config-uuid",JO.TokenChange="token-change",JO.TokenReset="token-reset",JO.SessionReset="session-reset",JO.SessionResetTime="session-reset-time",JO.Event="event",JO.Events="events",JO.EventNow="event-now",JO.CleanEvents="clean-events",JO.BeconEvent="becon-event";var gx=QO;function yx(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(xR(t))}catch(f){}}var mx,_x=function(){function e(){this.eventLimit=50,this.eventCache=[],this.beconEventCache=[]}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new cx(!0),this.localStorage=new cx(!1),this.maxReport=t.max_report||20,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.reportUrl=this.configManager.getUrl("event"),this.eventKey="__tea_cache_events_"+this.configManager.get("app_id"),this.beconKey="__tea_cache_events_becon_"+this.configManager.get("app_id"),this.collect.on(gx.Ready,(function(){r.reportAll(!1)})),this.collect.on(gx.Event,(function(e){r.event(e)})),this.collect.on(gx.BeconEvent,(function(e){r.beconEvent(e)})),this.linster()},e.prototype.linster=function(){var e,t=this;window.addEventListener("unload",(function(){t.reportAll(!0)}),!1),e=function(){t.reportAll(!0)},navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&t.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=GO(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,r),this.reportTimeout&&clearTimeout(this.reportTimeout),r.length>=this.maxReport)this.report(!1);else{var n=this.reportTime;this.reportTimeout=wP((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=GO(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.destroyInstance||this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))},e.prototype.reportBecon=function(){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))},e.prototype.report=function(e){if(!this.collect.destroyInstance&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},e.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var r=0;r<e.length;r+=this.eventLimit){var n;n=SP(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=xR(n.custom);var o=this.configManager.get("evtParams"),a=WO(e).call(e,(function(e){try{return $P(o).length&&(e.params=HO({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=xR(e.params),e}catch(JO){return e}})),s=[];if(!$P(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(xR({events:a,user:i,header:n}));return l.local_time=Math.floor(sR()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return WO(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&eR(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,xR(i))||s(n,i):yx(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+xR(l.stack))}var n,i,o,a,s}))},e}(),bx=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},wx=function(){var e;return SP(e=bx().replace(/-/g,"")).call(e,0,19)},Sx=function(){function e(){this.cacheToken={}}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new cx(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(gx.ConfigUuid,(function(e){r.setUuid(e)})),this.checkStorage()},e.prototype.checkStorage=function(){this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.check()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.remoteWebid()},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl("webid"),r={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:""},n=wx();yx(t,r,3e5,0,(function(t){var r;t&&0===t.e?r=t.web_id:(r=n,e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+" get webid error, use local webid~")),e.complete({web_id:e.configManager.get("web_id")||r,user_unique_id:e.configManager.get("user_unique_id")||r})}),(function(){e.complete({web_id:e.configManager.get("web_id")||n,user_unique_id:e.configManager.get("user_unique_id")||n}),e.collect.configManager.set({localWebId:n}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}))},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;t||r?(e.timestamp=sR(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(gx.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===nR(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=sR(),this.setStorage(this.cacheToken)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get("web_id")&&(this.configManager.set({user_unique_id:this.configManager.get("web_id")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=sR(),this.setStorage(this.cacheToken)),this.collect.emit(gx.TokenReset))},e.prototype.setStorage=function(e){e._type_="default",this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e}(),Ex=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},Tx=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new cx(!1,"session"),this.sessionKey="__tea_session_id_"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSession||(this.setSessionId(),this.collect.on(gx.SessionReset,(function(){r.resetSessionId()})),this.collect.on(gx.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;sR()-t>this.expireTime?e={sessionId:Ex(),timestamp:sR()}:e.timestamp=sR(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=sR():t={sessionId:Ex(),timestamp:sR()},this.storage.setItem(this.sessionKey,t),this.sessionExp=nk((function(){e.checkEXp()}),this.expireTime)},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?"":e&&e.sessionId?e.sessionId:""},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=nk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:Ex(),timestamp:sR()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&sR()-e.timestamp+30>=this.expireTime&&(e={sessionId:Ex(),timestamp:sR()},this.storage.setItem(this.sessionKey,e))},e}(),Px=function(){function e(e){this.disableAutoPageView=!1,this.staging=!1,this.sended=!1,this.started=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new ZO,this.Types=gx,this.adapters.fetch=yx,this.adapters.storage=cx}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&ex(e)?e.app_id&&"number"==typeof(r=e.app_id)&&!isNaN(r)?e.app_key&&"string"!=typeof e.app_key?console.warn("app_key param is error, must be string, please check!"):(e.channel_domain||-1!==nR(t=["cn","sg","va"]).call(t,e.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),e.channel="cn"),this.inited=!0,this.configManager=new vx(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new _x,this.tokenManager=new Sx,this.sessionManager=new Tx,p_.all([new p_((function(e){n.once(gx.TokenComplete,(function(){e(!0)}))})),new p_((function(e){n.once(gx.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(gx.Ready),console.info("appid: "+e.app_id+", userInfo:"+xR(n.configManager.get("user"))),console.info("appid: "+e.app_id+", sdk is ready, version is 0.0.3-lite, you can report now !!!"),n.pageView()})),this.tokenManager.apply(this,e),this.eventManager.apply(this,e),this.sessionManager.apply(this,e),this.emit(gx.Init)):console.warn("app_id param is error, must be number, please check!"):console.warn("init params error,please check")},e.prototype.config=function(e){if(this.inited)if(e&&ex(e)){e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=HO({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&nR(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof QP){var i=0;for(n=QP(e);i<n.length;i++)nR(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(gx.ConfigUuid,t.user_unique_id),this.configManager.set(r)}else console.warn("config params is error, please check");else console.warn("config must be use after function init")},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(gx.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];KO(e)?eR(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(gx.Event,n),this.emit(gx.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(KO(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(gx.BeconEvent,r),this.emit(gx.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=SP(e).call(e,6));var n=t;"object"!=fh(n)&&(n={}),n.event_index=tx();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:sR(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=HO({},t,e);this.event("predefine_pageview",r)},e}(),Rx=new Px("default"),kx=new Uint8Array(16);function Ox(){var e;if(!mx&&!(mx="undefined"!=typeof crypto&&crypto.getRandomValues&<(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mx(kx)}for(var xx,Mx=[],Ix=0;Ix<256;++Ix){var Ax;Mx.push(SP(Ax=(Ix+256).toString(16)).call(Ax,1))}var Cx={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&<(xx=crypto.randomUUID).call(xx,crypto)};function Lx(e,t,r){if(Cx.randomUUID&&!t&&!e)return Cx.randomUUID();var n=(e=e||{}).random||(e.rng||Ox)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Mx[e[t+0]]+Mx[e[t+1]]+Mx[e[t+2]]+Mx[e[t+3]]+"-"+Mx[e[t+4]]+Mx[e[t+5]]+"-"+Mx[e[t+6]]+Mx[e[t+7]]+"-"+Mx[e[t+8]]+Mx[e[t+9]]+"-"+Mx[e[t+10]]+Mx[e[t+11]]+Mx[e[t+12]]+Mx[e[t+13]]+Mx[e[t+14]]+Mx[e[t+15]]}(n)}var Dx=window.VePlayer.util,jx="veplayer_live_device_id",Nx="veplayer_live_user_id",Fx=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},Ux=function(e){var t=Dx.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:Dx.appendSearchParams(e,{_session_id:zx()}):null!=e?e:""},zx=function(){return Lx().replace(/-/g,"")+"."+sR()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(Lx().replace(/-/g,""))},Vx=function(e){zm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_userId",void 0),vh(i_(n),"_deviceId",void 0),vh(i_(n),"_liveLogger",void 0),n}return bm(r,[{key:"beforeCreate",value:function(e){var t,r,n,i;e.config.enable&&(e.config.userId=(null===(t=e.config)||void 0===t?void 0:t.userId)||((n=localStorage.getItem(Nx))||(n=Fx(12),localStorage.setItem(Nx,n),n)),e.config.deviceId=(null===(r=e.config)||void 0===r?void 0:r.deviceId)||((i=localStorage.getItem(jx))||(i=Fx(11),localStorage.setItem(jx,i),i)))}},{key:"afterCreate",value:function(){this.config.enable&&this.open()}},{key:"destroy",value:function(){this.close()}},{key:"close",value:function(){var e;null===(e=this._liveLogger)||void 0===e||e.destroy(!1),this._liveLogger=void 0}},{key:"open",value:function(){this._liveLogger||(this._start(),this.config.showUserIdInErrorPanel&&this.player.plugins.error&&(this.player.plugins.error.config.extraTips=[{label:"userId",value:null==Rx?void 0:Rx.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){Rx.init({app_id:468759,channel:"cn"}),Rx.start(),Rx.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new Ek({Tea:Rx,player:this.player,aid:this.config.appId||654925,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,error_report_stop:!0,ext:{veplayer_version:"2.3.1-rc.1",flv_version:"3.0.21-rc.21",hls_version:"3.0.21-rc.21",rts_version:"0.2.1-alpha.14"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:654925,enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function Bx(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var Wx=window.VePlayer.util,Kx=window.VePlayer.Plugin,Hx=window.VePlayer.XGUtil,qx=function(e){zm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_pollTimer",void 0),vh(i_(n),"_visible",void 0),vh(i_(n),"_playPlugin",void 0),n}return bm(r,[{key:"_streamType",get:function(){return Wx.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(BP.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(BP.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(PR(e=["flv","hls"]).call(e,this._streamType)?this.player.plugins[this._streamType]?(this.root.style.display="block",this._tick(),this._visible=!0):console.warn("不支持或未加载".concat(this._streamType,"插件")):console.warn("仅支持flv和hls格式的信息展示"))}},{key:"close",value:function(){this._visible&&(clearTimeout(this._pollTimer),this.root.innerHTML="",this.root.style.display="none",this._visible=!1)}},{key:"destroy",value:function(){var e=this;this.close(),this.player.off(BP.LOADED_DATA,(function(){return e.open()})),this.player.off(BP.ERROR,(function(){return e.close()}))}},{key:"render",value:function(){return'\n <xg-live-panel class="veplayer-live-panel">\n </xg-live-panel>\n '}},{key:"_tick",value:function(){var e=this;clearTimeout(this._pollTimer),this._renderPanel(),this._pollTimer=wP((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=yh(yh({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:Bx(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:Bx(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:Bx(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:f_(r="".concat(Bx(e.height)," * ")).call(r,Bx(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:Bx(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:Bx(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:Bx(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:Bx(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",eR(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}eR(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=Hx.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=Hx.createDom("xg-live-panel",e,void 0,"veplayer-live-panel-row-title");return t.appendChild(r),t}},{key:"_genRowDom",value:function(e){var t=this.player.config.i18nManager,r=Hx.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=Hx.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=Hx.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(Kx),Gx="https://www.volcengine.com/docs/6469/138655#日志上报",Xx=yh(yh({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",INVALID_LOGGER:"Log options not configured correctly. Please refer to this document ".concat(Gx," to configure the logs."),EMPTY_RTM_FALLBACK_PARAMETER:"Fallback URL for RTM is not configured. Please set enableFallback: false to disable fallback, or configure fallbackUrl for FLV and HLS formats based on the browser environment.",FORMAT:"format",FPS:"fps",BITRATE:"bitrate",GOP:"gop",RESOLUTION:"resolution",ENCODE_TYPE:"encodeType",BUFFER_END:"bufferEnd",CURRENT_TIME:"currentTime",DECODE_EFFICIENCY:"efficiency",DECODE_COST:"cost",DECODE_INFO:"decodeInfo",REFRESH:"refresh"}),Yx=yh(yh({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",INVALID_LOGGER:"未正确配置质量日志参数, 请参考 ".concat(Gx," 配置"),EMPTY_RTM_FALLBACK_PARAMETER:"未配置 RTM 降级地址 fallbackUrl,请设置 enableFallback: false 取消降级或根据浏览器环境配置 FLV、HLS 格式降级地址",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),$x=["getDrmConfig"],Qx=window.VePlayer.DynamicModule,Jx=window.VePlayer.load,Zx=function(){var e=ym(vm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,p,h;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=yT(t.drm),!t.url||n!==gT.Fairplay){e.next=18;break}return e.prev=2,a=null!==(i=null==t||null===(o=t.drm)||void 0===o?void 0:o.fairplay)&&void 0!==i?i:{},s=a.getDrmConfig,l=q_(a,$x),e.next=6,p_.all([Jx(Qx.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return c=e.sent,u=Jf(c,2),f=u[0],p=u[1],h=O_({},l,null==t?void 0:t.drm,p),p&&(null==r||r.updateDrmConfig(p)),e.abrupt("return",{options:{drm:h},plugins:f?[f]:[]});case 15:e.prev=15,e.t0=e.catch(2),console.log(e.t0);case 18:return e.abrupt("return",{});case 19:case"end":return e.stop()}}),e,null,[[2,15]])})));return function(t,r){return e.apply(this,arguments)}}(),eM=ra.some;Or({target:"Array",proto:!0,forced:!Ep("some")},{some:function(e){return eM(this,e,arguments.length>1?arguments[1]:void 0)}});var tM=zu("Array").some,rM=se,nM=tM,iM=Array.prototype,oM=r((function(e){var t=e.some;return e===iM||rM(iM,e)&&t===iM.some?nM:t})),aM={"biz:vod":"veplayer.biz.vod.[env].[ext]","biz:live":"veplayer.biz.live.[env].[ext]","plugin:flv":"veplayer.plugin.flv.[env].[ext]","plugin:mp4":"veplayer.plugin.mp4.[env].[ext]","plugin:hls":"veplayer.plugin.hls.[env].[ext]","plugin:hlsjs":"veplayer.plugin.hlsjs.[env].[ext]","plugin:shaka":"veplayer.plugin.shaka.[env].[ext]","plugin:rtm":"veplayer.plugin.rtm.[env].[ext]","plugin:xgvideo":"veplayer.plugin.xgvideo.[env].[ext]","plugin:drm":"veplayer.plugin.drm.[env].[ext]","plugin:abr":"veplayer.plugin.abr.[env].[ext]"},sM=function(e){return e.BizVod="biz:vod",e.BizLive="biz:live",e.PluginFlv="plugin:flv",e.PluginMp4="plugin:mp4",e.PluginHls="plugin:hls",e.PluginHlsJs="plugin:hlsjs",e.PluginShaka="plugin:shaka",e.PluginRtm="plugin:rtm",e.PluginXgvideo="plugin:xgvideo",e.PluginDrm="plugin:drm",e.PluginAbr="plugin:abr",e}(sM||{}),lM=function(){function e(t){var r=this;mm(this,e),vh(this,"modules",{}),vh(this,"mountPromiseMap",{}),vh(this,"_baseUrl",void 0),vh(this,"_moduleSystem",void 0),vh(this,"load",function(){var e=ym(vm().mark((function e(t,n){var i,o,a,s,l;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._moduleSystem){e.next=2;break}throw new Error('You have to specify moduleSystem first, call "setModuleSystem(moduleSystem)" to set module system');case 2:if(aM[t]){e.next=4;break}throw new Error('Invalid module name: "'.concat(t,'"'));case 4:if("esm"!==r._moduleSystem){e.next=11;break}if(r.modules[t]){e.next=9;break}throw new Error('Dynamic module "'.concat(t,'" not found, you have to register it first under ESM'));case 9:return o=r.modules[t].exports,e.abrupt("return",null!==(i=o.default)&&void 0!==i?i:o);case 11:if(!r.modules[t]){e.next=21;break}if(1!==r.modules[t].state){e.next=16;break}return e.abrupt("return",r.modules[t].exports);case 16:if(0!==r.modules[t].state){e.next=20;break}return e.abrupt("return",r.mountPromiseMap[t].then((function(e){var t;return null!==(t=e.default)&&void 0!==t?t:e})));case 20:throw null!==(a=r.modules[t].error)&&void 0!==a?a:new Error('Dynamic module "'.concat(t,'" load failed.'));case 21:return s=[r._baseUrl,aM[t]].join("/").replace("[env]","production").replace("[ext]","js"),l={src:null!=n?n:s,name:t,state:0,exports:{__PLUGIN_NAME__:t}},r.modules[t]=l,r.mountPromiseMap[t]=r._mount(l),e.abrupt("return",r.mountPromiseMap[t]);case 26:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),vh(this,"registerPlugin",(function(e,t){if(!r._moduleSystem)throw new Error("You have to specify moduleSystem first, call setModuleSystem(moduleSystem) to set module system");return"esm"===r._moduleSystem?(r.modules[e]={src:"esm:".concat(e),name:e,state:1,exports:t},r.modules[e].exports):(r.modules[e]?r.modules[e].exports=t:r.modules[e]={src:"umd:".concat(e),name:e,state:1,exports:t},r.modules[e].exports)})),vh(this,"register",(function(e){return WO(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return bm(e,[{key:"baseUrl",get:function(){return this._baseUrl}},{key:"moduleSystem",get:function(){return this._moduleSystem}},{key:"setModuleSystem",value:function(e){this._moduleSystem=e}},{key:"setBaseUrl",value:function(e){this._baseUrl=e}},{key:"_mount",value:function(e){var t=this.modules;return new p_((function(r,n){var i=document.createElement("script");i.src=e.src,i.onload=function(){e.state=1,r(t[e.name].exports),i.onload=null},i.onerror=function(t){e.state=2,e.error=t,n(t),i.onerror=null},document.body.appendChild(i)}))}}]),e}(),cM=zu("Array").keys,uM=rn,fM=Je,pM=se,hM=cM,dM=Array.prototype,vM={DOMTokenList:!0,NodeList:!0},gM=r((function(e){var t=e.keys;return e===dM||pM(dM,e)&&t===dM.keys||fM(vM,uM(e))?hM:t})),yM=r(ch),mM=r(Xf),_M=r(ph);function bM(e){return(bM="function"==typeof Pk&&"symbol"==typeof yM?function(e){return typeof e}:function(e){return e&&"function"==typeof Pk&&e.constructor===Pk&&e!==Pk.prototype?"symbol":typeof e})(e)}function wM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),YP(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[_M];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===fh(o)?o:String(o)),n)}var i,o}function SM(e){return function(e){if(KO(e))return EM(e)}(e)||function(e){if(void 0!==Pk&&null!=Rk(e)||null!=e["@@iterator"])return mM(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return EM(e,t);var n=SP(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return mM(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var TM=jr,PM=Yn,RM=X,kM=RangeError,OM=g,xM=Ur,MM=Yn,IM=X,AM=OM((function(e){var t=PM(RM(this)),r="",n=TM(e);if(n<0||n==1/0)throw kM("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),CM=OM("".slice),LM=Math.ceil,DM=function(e){return function(t,r,n){var i,o,a=MM(IM(t)),s=xM(r),l=a.length,c=void 0===n?" ":MM(n);return s<=l||""==c?a:((o=AM(c,LM((i=s-l)/c.length))).length>i&&(o=CM(o,0,i)),e?a+o:o+a)}},jM={start:DM(!1),end:DM(!0)},NM=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),FM=jM.start;Or({target:"String",proto:!0,forced:NM},{padStart:function(e){return FM(this,e,arguments.length>1?arguments[1]:void 0)}});var UM=zu("String").padStart,zM=se,VM=UM,BM=String.prototype,WM=r((function(e){var t=e.padStart;return"string"==typeof e||e===BM||zM(BM,e)&&t===BM.padStart?VM:t})),KM=ra.every;Or({target:"Array",proto:!0,forced:!Ep("every")},{every:function(e){return KM(this,e,arguments.length>1?arguments[1]:void 0)}});var HM=zu("Array").every,qM=se,GM=HM,XM=Array.prototype,YM=r((function(e){var t=e.every;return e===XM||qM(XM,e)&&t===XM.every?GM:t})),$M=le.match(/firefox\/(\d+)/i),QM=!!$M&&+$M[1],JM=/MSIE|Trident/.test(le),ZM=le.match(/AppleWebKit\/(\d+)\./),eI=!!ZM&&+ZM[1],tI=Or,rI=g,nI=Ie,iI=Ye,oI=Vr,aI=xk,sI=Yn,lI=o,cI=$b,uI=Ep,fI=QM,pI=JM,hI=ve,dI=eI,vI=[],gI=rI(vI.sort),yI=rI(vI.push),mI=lI((function(){vI.sort(void 0)})),_I=lI((function(){vI.sort(null)})),bI=uI("sort"),wI=!lI((function(){if(hI)return hI<70;if(!(fI&&fI>3)){if(pI)return!0;if(dI)return dI<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)vI.push({k:t+n,v:r})}for(vI.sort((function(e,t){return t.v-e.v})),n=0;n<vI.length;n++)t=vI[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));tI({target:"Array",proto:!0,forced:mI||!_I||!bI||!wI},{sort:function(e){void 0!==e&&nI(e);var t=iI(this);if(wI)return void 0===e?gI(t):gI(t,e);var r,n,i=[],o=oI(t);for(n=0;n<o;n++)n in t&&yI(i,t[n]);for(cI(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:sI(t)>sI(r)?1:-1}}(e)),r=oI(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)aI(t,n++);return t}});var SI,EI=zu("Array").sort,TI=se,PI=EI,RI=Array.prototype,kI=r((function(e){var t=e.sort;return e===RI||TI(RI,e)&&t===RI.sort?PI:t})),OI="undefined"!=typeof window&&window.location&&nR(SI=window.location.href).call(SI,"xgplayerdebugger=1")>-1,xI="color: #525252; background-color: #90ee90;",MI="color: #525252; background-color: red;",II="color: #525252; background-color: yellow; ",AI="%c[xgplayer]",CI={config:{debug:OI?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,f_(t=[AI,xI,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,f_(t=[AI,II,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,f_(t=[AI,MI,e]).call(t,o))}}},LI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bufferedList=t}var t,r,n;return t=e,(r=[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}])&&wM(t.prototype,r),n&&wM(t,n),YP(t,"prototype",{writable:!1}),e}(),DI={};DI.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,eR(e=$P(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},DI.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&DI.addClass(i,r),t)eR(o=$P(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return CI.logError("util.createDomFromHtml",a),null}},DI.hasClass=function(e,t){if(!e||!t)return!1;try{return oM(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(JO){var r=e.className&&"object"===bM(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},DI.addClass=function(e,t){if(e&&t)try{var r;eR(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(JO){DI.hasClass(e,t)||(e.className&&"object"===bM(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},DI.removeClass=function(e,t){if(e&&t)try{var r;eR(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(JO){var n;if(DI.hasClass(e,t))eR(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===bM(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},DI.toggleClass=function(e,t){var r;e&&eR(r=t.split(/\s+/g)).call(r,(function(t){DI.hasClass(e,t)?DI.removeClass(e,t):DI.addClass(e,t)}))},DI.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===DI.typeOf(e[r]))t.push(e[r]);else if("Object"===DI.typeOf(e[r])){var n;WO(n=$P(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},DI.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(JO){CI.logError("util.findDom",JO),0===nR(r).call(r,"#")&&(e=t.getElementById(SP(r).call(r,1)))}return e},DI.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},DI.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s},DI.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=WM(DI).call(DI,Math.floor(e/3600),2,0),r=WM(DI).call(DI,Math.floor((e-3600*t)/60),2,0),n=WM(DI).call(DI,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},DI.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},DI.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},DI.deepCopy=function(e,t){var r;if("Object"===DI.typeOf(t)&&"Object"===DI.typeOf(e))return eR(r=$P(t)).call(r,(function(r){if("Object"!==DI.typeOf(t[r])||t[r]instanceof Node)if("Array"===DI.typeOf(t[r])){var n;e[r]="Array"===DI.typeOf(e[r])?f_(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:DI.deepCopy(e[r],t[r])})),e},DI.deepMerge=function(e,t){var r;return WO(r=$P(t)).call(r,(function(r){var n;"Array"===DI.typeOf(t[r])&&"Array"===DI.typeOf(e[r])?"Array"===DI.typeOf(e[r])&&(n=e[r]).push.apply(n,SM(t[r])):DI.typeOf(e[r])!==DI.typeOf(t[r])||null===e[r]||"Object"!==DI.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):DI.deepMerge(e[r],t[r])})),e},DI.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},DI.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return eR(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},DI.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=nk(LT(r).call(r,e),n))},DI.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},DI.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=wP((function(){t(),DI.clearTimeout(e,n)}),r);return e._timers.push(n),n},DI.clearTimeout=function(e,t){var r=e._timers;if("Array"===DI.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){Gk(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},DI.clearAllTimers=function(e){var t=e._timers;"Array"===DI.typeOf(t)&&(WO(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},DI.createImgBtn=function(e,t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g=DI.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(YM(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(nR(r).call(r,e)>-1&&nR(n).call(n,e)>-1)||(u=Xk(nO(t=SP(r).call(r,0,nR(r).call(r,e))).call(t)),f=Xk(nO(i=SP(n).call(n,0,nR(n).call(n,e))).call(i)),p=e,!1)})),g.style.width=f_(o="".concat(u)).call(o,p),g.style.height=f_(a="".concat(f)).call(a,p),g.style.backgroundSize=f_(s=f_(l=f_(c="".concat(u)).call(c,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?f_(h=f_(d=f_(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,u/2)).call(h,p):"auto 5px auto 5px");return g},DI.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(nP(e,16))})),f_(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},DI.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},DI.checkIsFunction=function(e){return e&&"function"==typeof e},DI.checkIsObject=function(e){return null!==e&&"object"===bM(e)},DI.hide=function(e){e.style.display="none"},DI.show=function(e,t){e.style.display=t||"block"},DI.isUndefined=function(e){if(null==e)return!0},DI.isNotNull=function(e){return!(null==e)},DI.setStyleFromCsstext=function(e,t){if(t)if("String"===DI.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");WO(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;WO(n=$P(t)).call(n,(function(r){e.style[r]=t[r]}))}},DI.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return WO(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(nR(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),WO(t=$P(a)).call(t,(function(t){e.style[t]=a[t]})),o},DI.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return WO(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},DI.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},DI.stopPropagation=function(e){e&&e.stopPropagation()},DI.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},DI.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},DI.checkTouchSupport=function(){return"ontouchstart"in window},DI.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});kI(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var s=i[a-1].end;r[o].start-s<t?r[o].end>s&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new LI(i)},DI.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},DI.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},DI.getHostFromUrl=function(e){if("String"!==DI.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},DI.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},DI.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},DI.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},DI.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=nP(e)}catch(JO){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=nP(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},DI.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},DI.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},DI.createPositionBar=function(e,t){var r=DI.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},DI.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:f_(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=$P(n);return eR(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=f_(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},DI.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},DI.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},DI.getOffsetCurrentTime=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<t.length?r:DI.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,s=o.end,l=o.cTime,c=o.offset;return e<a?l:e>=a&&e<=s?e-c:e>s&&n>=i-1?s:-1},DI.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var jI=/(Android)\s([\d.]+)/,NI=/(Version)\/([\d.]+)/,FI=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],UI={get device(){return UI.os.isPc?"pc":"mobile"},get browser(){var e,t;if("undefined"==typeof navigator)return"";var r=navigator.userAgent.toLowerCase(),n={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return f_(e=[]).call(e,JP(t=$P(n)).call(t,(function(e){return n[e].test(r)})))[0]},get os(){if("undefined"==typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=o||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:o,isIos:s||o,isAndroid:n,isPc:!(s||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",r=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?NI:jI)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?nP(n[0]):0}return 0},get isWeixin(){if("undefined"==typeof navigator)return!1;return!!/(micromessenger)\/([\d.]+)/.exec(navigator.userAgent.toLocaleLowerCase())},isSupportMP4:function(){var e={isSupport:!1,mime:""};if("undefined"==typeof document)return e;if(this.supportResult)return this.supportResult;var t=document.createElement("video");return"function"==typeof t.canPlayType&&WO(FI).call(FI,(function(r){"probably"===t.canPlayType('video/mp4; codecs="'.concat(r,'"'))&&(e.isSupport=!0,e.mime+="||".concat(r))})),this.supportResult=e,t=null,e},isMSESupport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if("undefined"==typeof MediaSource||!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(yj){return this._logger.error(e,yj),!1}},isHevcSupported:function(){return!("undefined"==typeof MediaSource||!MediaSource.isTypeSupported)&&(MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))},probeConfigSupported:function(e){var t={supported:!1,smooth:!1,powerEfficient:!1};if(!e||"undefined"==typeof navigator)return p_.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var r=e.video||{},n=e.audio||{};try{var i=MediaSource.isTypeSupported(r.contentType),o=MediaSource.isTypeSupported(n.contentType);return p_.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(JO){return p_.resolve(t)}}},zI=r(hm),VI="Expected a function",BI="__lodash_placeholder__",WI=1,KI=2,HI=4,qI=8,GI=16,XI=32,YI=64,$I=128,QI=512,JI=1/0,ZI=9007199254740991,eA=17976931348623157e292,tA=NaN,rA=[["ary",$I],["bind",WI],["bindKey",KI],["curry",qI],["curryRight",GI],["flip",QI],["partial",XI],["partialRight",YI],["rearg",256]],nA="[object Function]",iA="[object GeneratorFunction]",oA="[object Symbol]",aA=/^\s+|\s+$/g,sA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lA=/\{\n\/\* \[wrapped with (.+)\] \*/,cA=/,? & /,uA=/^[-+]0x[0-9a-f]+$/i,fA=/^0b[01]+$/i,pA=/^\[object .+?Constructor\]$/,hA=/^0o[0-7]+$/i,dA=/^(?:0|[1-9]\d*)$/,vA=nP,gA="object"==fh(t)&&t&&t.Object===Object&&t,yA="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,mA=gA||yA||Function("return this")();function _A(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function bA(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var i=e.length,o=r+(n?1:-1);for(;n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,wA,r);var n=r-1,i=e.length;for(;++n<i;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function wA(e){return e!=e}function SA(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];a!==t&&a!==BI||(e[r]=BI,o[i++]=r)}return o}var EA,TA,PA,RA=Function.prototype,kA=Object.prototype,OA=mA["__core-js_shared__"],xA=(EA=/[^.]+$/.exec(OA&&gM(OA)&&gM(OA).IE_PROTO||""))?"Symbol(src)_1."+EA:"",MA=RA.toString,IA=kA.hasOwnProperty,AA=kA.toString,CA=RegExp("^"+MA.call(IA).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),LA=iO,DA=Math.max,jA=Math.min,NA=(TA=KA(Object,"defineProperty"),(PA=KA.name)&&PA.length>2?TA:void 0);function FA(e){if(!QA(e)||function(e){return!!xA&&xA in e}(e))return!1;var t=function(e){var t=QA(e)?AA.call(e):"";return t==nA||t==iA}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(JO){}return t}(e)?CA:pA;return t.test(function(e){if(null!=e){try{return MA.call(e)}catch(JO){}try{return e+""}catch(JO){}}return""}(e))}function UA(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r,n=QA(r=e.prototype)?LA(r):{},i=e.apply(n,t);return QA(i)?i:n}}function zA(e,t,r,n,i,o,a,s,l,c){var u=t&$I,f=t&WI,p=t&KI,h=t&(qI|GI),d=t&QI,v=p?void 0:UA(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(h)var b=WA(g),w=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&n++;return n}(m,b);if(n&&(m=function(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,c=DA(o-a,0),u=Array(l+c),f=!n;++s<l;)u[s]=t[s];for(;++i<a;)(f||i<o)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}(m,n,i,h)),o&&(m=function(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,c=t.length,u=DA(o-s,0),f=Array(u+c),p=!n;++i<u;)f[i]=e[i];for(var h=i;++l<c;)f[h+l]=t[l];for(;++a<s;)(p||i<o)&&(f[h+r[a]]=e[i++]);return f}(m,o,a,h)),y-=w,h&&y<c){var S=SA(m,b);return VA(e,t,zA,g.placeholder,r,m,S,s,l,c-y)}var E=f?r:this,T=p?E[e]:e;return y=m.length,s?m=function(e,t){var r=e.length,n=jA(t.length,r),i=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(e);for(;n--;){var o=t[n];e[n]=GA(o,r)?i[o]:void 0}return e}(m,s):d&&y>1&&zI(m).call(m),u&&l<y&&(m.length=l),this&&this!==mA&&this instanceof g&&(T=v||UA(T)),T.apply(E,m)}}function VA(e,t,r,n,i,o,a,s,l,c){var u=t&qI;t|=u?XI:YI,(t&=~(u?YI:XI))&HI||(t&=~(WI|KI));var f=r(e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,l,c);return f.placeholder=n,XA(f,e,t)}function BA(e,t,r,n,i,o,a,s){var l=t&KI;if(!l&&"function"!=typeof e)throw new TypeError(VI);var c=n?n.length:0;if(c||(t&=~(XI|YI),n=i=void 0),a=void 0===a?a:DA(eC(a),0),s=void 0===s?s:eC(s),c-=i?i.length:0,t&YI){var u=n,f=i;n=i=void 0}var p=[e,t,r,n,i,u,f,o,a,s];if(e=p[0],t=p[1],r=p[2],n=p[3],i=p[4],!(s=p[9]=null==p[9]?l?0:e.length:DA(p[9]-c,0))&&t&(qI|GI)&&(t&=~(qI|GI)),t&&t!=WI)h=t==qI||t==GI?function(e,t,r){var n=UA(e);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=WA(i);s--;)a[s]=arguments[s];var c=o<3&&a[0]!==l&&a[o-1]!==l?[]:SA(a,l);return(o-=c.length)<r?VA(e,t,zA,i.placeholder,void 0,a,c,void 0,void 0,r-o):_A(this&&this!==mA&&this instanceof i?n:e,this,a)}}(e,t,s):t!=XI&&t!=(WI|XI)||i.length?zA.apply(void 0,p):function(e,t,r,n){var i=t&WI,o=UA(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=n.length,u=Array(c+s),f=this&&this!==mA&&this instanceof t?o:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++a];return _A(f,i?r:this,u)}}(e,t,r,n);else var h=function(e,t,r){var n=t&WI,i=UA(e);return function t(){return(this&&this!==mA&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return XA(h,e,t)}function WA(e){return e.placeholder}function KA(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return FA(r)?r:void 0}function HA(e){var t=e.match(lA);return t?t[1].split(cA):[]}function qA(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(sA,"{\n/* [wrapped with "+t+"] */\n")}function GA(e,t){return!!(t=null==t?ZI:t)&&("number"==typeof e||dA.test(e))&&e>-1&&e%1==0&&e<t}var XA=NA?function(e,t,r){var n,i=t+"";return NA(e,"toString",{configurable:!0,enumerable:!1,value:(n=qA(i,YA(HA(i),r)),function(){return n})})}:function(e){return e};function YA(e,t){return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(rA,(function(r){var n="_."+r[0];t&r[1]&&!bA(e,n)&&e.push(n)})),kI(e).call(e)}function $A(e,t,r){var n=BA(e,qI,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=$A.placeholder,n}function QA(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function JA(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&AA.call(e)==oA}function ZA(e){return e?(e=function(e){if("number"==typeof e)return e;if(JA(e))return tA;if(QA(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=QA(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(aA,"");var r=fA.test(e);return r||hA.test(e)?vA(SP(e).call(e,2),r?2:8):uA.test(e)?tA:+e}(e))===JI||e===-JI?(e<0?-1:1)*eA:e==e?e:0:0===e?e:0}function eC(e){var t=ZA(e),r=t%1;return t==t?r?t-r:t:0}$A.placeholder={};var tC=r($A),rC=Or,nC=i,iC=xO,oC=o,aC=gr,sC=rd,lC=Cd,cC=k,uC=ee,fC=Ao,pC=Qt.f,hC=ra.forEach,dC=x,vC=Xo.set,gC=Xo.getterFor,yC=Vi,mC=so,_C=Kb,bC=$t,wC=Cd,SC=H,EC=rd,TC=gc,PC=yc,RC=Md,kC=x,OC=xO.fastKey,xC=Xo.set,MC=Xo.getterFor,IC={getConstructor:function(e,t,r,n){var i=e((function(e,i){wC(e,o),xC(e,{type:t,index:yC(null),first:void 0,last:void 0,size:0}),kC||(e.size=0),SC(i)||EC(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=MC(t),s=function(e,t,r){var n,i,o=a(e),s=l(e,t);return s?s.value=r:(o.last=s={index:i=OC(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),kC?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var r,n=a(e),i=OC(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return _C(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,kC?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=l(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),kC?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=bC(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),_C(o,r?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),kC&&mC(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=MC(t),o=MC(n);TC(e,t,(function(e,t){xC(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?PC("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,PC(void 0,!0))}),r?"entries":"values",!r,!0),RC(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=nC[e],l=s&&s.prototype,c={};if(dC&&cC(s)&&(o||l.forEach&&!oC((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){vC(lC(t,u),{type:e,collection:new s}),null!=r&&sC(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=gC(e);hC(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||aC(u,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!uC(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||pC(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),iC.enable();fC(n,e,!1,!0),c[e]=n,rC({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),IC);var AC=te.Map,CC=$t,LC=A,DC=Ie,jC=Nd,NC=H,FC=rd,UC=[].push,zC=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return jC(this),(t=void 0!==a)&&DC(a),NC(e)?new this:(r=[],t?(n=0,i=CC(a,o>2?arguments[2]:void 0),FC(e,(function(e){LC(UC,r,i(e,n++))}))):FC(e,UC,{that:r}),new this(r))};Or({target:"Map",stat:!0,forced:!0},{from:zC});var VC=Rs,BC=function(){return new this(VC(arguments))};Or({target:"Map",stat:!0,forced:!0},{of:BC});var WC=ke,KC=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(WC(e)+" is not a map")},HC=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},qC=ae("Map"),GC={Map:qC,set:HC("set",2),get:HC("get",1),has:HC("has",1),remove:HC("delete",1),proto:qC.prototype},XC=KC,YC=GC.remove;Or({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=XC(this),r=!0,n=0,i=arguments.length;n<i;n++)e=YC(t,arguments[n]),r=r&&e;return!!r}});var $C=KC,QC=GC.get,JC=GC.has,ZC=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=$C(this);return JC(i,e)?(r=QC(i,e),"update"in t&&(r=t.update(r,e,i),ZC(i,e,r)),r):(n=t.insert(e,i),ZC(i,e,n),n)}});var eL=A,tL=function(e,t,r){for(var n,i,o=r||e.next;!(n=eL(o,e)).done;)if(void 0!==(i=t(n.value)))return i},rL=function(e,t,r){return r?tL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},nL=$t,iL=KC,oL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=iL(this),r=nL(e,arguments.length>1?arguments[1]:void 0);return!1!==oL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var aL=$t,sL=KC,lL=rL,cL=GC.Map,uL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=sL(this),r=aL(e,arguments.length>1?arguments[1]:void 0),n=new cL;return lL(t,(function(e,i){r(e,i,t)&&uL(n,i,e)})),n}});var fL=$t,pL=KC,hL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=pL(this),r=fL(e,arguments.length>1?arguments[1]:void 0),n=hL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var dL=$t,vL=KC,gL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=vL(this),r=dL(e,arguments.length>1?arguments[1]:void 0),n=gL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var yL=Or,mL=A,_L=k,bL=Ie,wL=rd,SL=GC.Map,EL=g([].push);yL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(_L(this)?this:SL);bL(t);var n=bL(r.has),i=bL(r.get),o=bL(r.set);return wL(e,(function(e){var a=t(e);mL(n,r,a)?EL(mL(i,r,a),e):mL(o,r,a,[e])})),r}});var TL=function(e,t){return e===t||e!=e&&t!=t},PL=KC,RL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===RL(PL(this),(function(t){if(TL(t,e))return!0}),!0)}});var kL=A,OL=rd,xL=k,ML=Ie,IL=GC.Map;Or({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(xL(this)?this:IL);ML(t);var n=ML(r.set);return OL(e,(function(e){kL(n,r,t(e),e)})),r}});var AL=KC,CL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=CL(AL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var LL=$t,DL=KC,jL=rL,NL=GC.Map,FL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=DL(this),r=LL(e,arguments.length>1?arguments[1]:void 0),n=new NL;return jL(t,(function(e,i){FL(n,r(e,i,t),e)})),n}});var UL=$t,zL=KC,VL=rL,BL=GC.Map,WL=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=zL(this),r=UL(e,arguments.length>1?arguments[1]:void 0),n=new BL;return VL(t,(function(e,i){WL(n,i,r(e,i,t))})),n}});var KL=KC,HL=rd,qL=GC.set;Or({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=KL(this),r=arguments.length,n=0;n<r;)HL(arguments[n++],(function(e,r){qL(t,e,r)}),{AS_ENTRIES:!0});return t}});var GL=Ie,XL=KC,YL=rL,$L=TypeError;Or({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=XL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(GL(e),YL(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw $L("Reduce of empty map with no initial value");return n}});var QL=$t,JL=KC,ZL=rL;Or({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=JL(this),r=QL(e,arguments.length>1?arguments[1]:void 0);return!0===ZL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var eD=Ie,tD=KC,rD=TypeError,nD=GC.get,iD=GC.has,oD=GC.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=tD(this),n=arguments.length;eD(t);var i=iD(r,e);if(!i&&n<3)throw rD("Updating absent value");var o=i?nD(r,e):eD(n>2?arguments[2]:void 0)(e,r);return oD(r,e,t(o,e,r)),r}});var aD=A,sD=Ie,lD=k,cD=rr,uD=TypeError,fD=function(e,t){var r,n=cD(this),i=sD(n.get),o=sD(n.has),a=sD(n.set),s=arguments.length>2?arguments[2]:void 0;if(!lD(t)&&!lD(s))throw uD("At least one callback required");return aD(o,n,e)?(r=aD(i,n,e),lD(t)&&(r=t(r),aD(a,n,e,r))):lD(s)&&(r=s(),aD(a,n,e,r)),r};Or({target:"Map",proto:!0,real:!0,forced:!0},{upsert:fD}),Or({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:fD});var pD,hD,dD=r(AC);function vD(e,t,r){var n;n_()?vD=Fm(n=t_).call(n):vD=function(e,t,r){var n=[null];Hu(n).apply(n,t);var i=new(Fm(Function).apply(e,n));return r&&Um(i,r.prototype),i};return vD.apply(null,arguments)}function gD(e){var t="function"==typeof dD?new dD:void 0;return gD=function(e){if(null===e||(r=e,-1===H_(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return vD(e,arguments,r_(this).constructor)}return i.prototype=bh(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Um(i,e)},gD(e)}var yD=function(e){return e[e.MANIFEST_HLS_ERROR=1100]="MANIFEST_HLS_ERROR",e[e.MANIFEST_DASH_ERROR=1200]="MANIFEST_DASH_ERROR",e[e.NETWORK=2100]="NETWORK",e[e.NETWORK_TIMEOUT=2101]="NETWORK_TIMEOUT",e[e.NETWORK_FORBIDDEN=2103]="NETWORK_FORBIDDEN",e[e.NETWORK_NOTFOUND=2104]="NETWORK_NOTFOUND",e[e.NETWORK_RANGE_NOT_SATISFIABLE=2116]="NETWORK_RANGE_NOT_SATISFIABLE",e[e.DEMUX_FLV_ERROR=3100]="DEMUX_FLV_ERROR",e[e.DEMUX_HLS_ERROR=3200]="DEMUX_HLS_ERROR",e[e.DEMUX_MP4_ERROR=3300]="DEMUX_MP4_ERROR",e[e.DEMUX_FMP4_ERROR=3400]="DEMUX_FMP4_ERROR",e[e.DEMUX_SIDX_ERROR=3410]="DEMUX_SIDX_ERROR",e[e.REMUX_FMP4_ERROR=4100]="REMUX_FMP4_ERROR",e[e.REMUX_MP4_ERROR=4200]="REMUX_MP4_ERROR",e[e.MEDIA_ERR_ABORTED=5101]="MEDIA_ERR_ABORTED",e[e.MEDIA_ERR_NETWORK=5102]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=5103]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=5104]="MEDIA_ERR_SRC_NOT_SUPPORTED",e[e.MEDIA_ERR_CODEC_NOT_SUPPORTED=5105]="MEDIA_ERR_CODEC_NOT_SUPPORTED",e[e.MEDIA_ERR_URL_EMPTY=5106]="MEDIA_ERR_URL_EMPTY",e[e.MEDIA_MSE_ADD_SB=5200]="MEDIA_MSE_ADD_SB",e[e.MEDIA_MSE_APPEND_BUFFER=5201]="MEDIA_MSE_APPEND_BUFFER",e[e.MEDIA_MSE_OTHER=5202]="MEDIA_MSE_OTHER",e[e.MEDIA_MSE_FULL=5203]="MEDIA_MSE_FULL",e[e.MEDIA_MSE_HIJACK=5204]="MEDIA_MSE_HIJACK",e[e.MEDIA_EME_HIJACK=5301]="MEDIA_EME_HIJACK",e[e.DRM_LICENSE=7100]="DRM_LICENSE",e[e.DRM_CUSTOM_LICENSE=7200]="DRM_CUSTOM_LICENSE",e[e.OTHER=8e3]="OTHER",e[e.RUNTIME_NO_CANPLAY_ERROR=9001]="RUNTIME_NO_CANPLAY_ERROR",e[e.RUNTIME_BUFFERBREAK_ERROR=9002]="RUNTIME_BUFFERBREAK_ERROR",e[e.RUNTIME_BWAITING_TIMEOUT_ERROR=9002]="RUNTIME_BWAITING_TIMEOUT_ERROR",e[e.MODULE_LOAD_ERROR=110]="MODULE_LOAD_ERROR",e.UNKNOWN="UNKNOWN",e}(yD||{}),mD=(vh(pD={},2100,{messageTextKey:"NETWORK",level:"Error"}),vh(pD,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),vh(pD,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),vh(pD,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),vh(pD,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),vh(pD,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),vh(pD,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),vh(pD,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),vh(pD,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),vh(pD,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),vh(pD,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),vh(pD,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),pD);vh(hD={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),vh(hD,"network",{messageTextKey:"NETWORK",level:"Error"}),vh(hD,"demux",{messageTextKey:"DEMUX",level:"Error"}),vh(hD,"remux",{messageTextKey:"REMUX",level:"Error"}),vh(hD,"media",{messageTextKey:"MEDIA",level:"Error"}),vh(hD,"drm",{messageTextKey:"DRM",level:"Error"}),vh(hD,"other",{messageTextKey:"OTHER",level:"Error"}),vh(hD,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var _D,bD,wD=function(e){zm(r,e);var t=o_(r);function r(e,n){var i,o,a,s,l,c,u;mm(this,r);var f="string"==typeof e?{message:e}:e,p=null!==(i=null!==(o=null!==(a=null==n?void 0:n.getText(null==f?void 0:f.messageTextKey))&&void 0!==a?a:null==f?void 0:f.message)&&void 0!==o?o:null==f||null===(s=f.error)||void 0===s?void 0:s.message)&&void 0!==i?i:null==n?void 0:n.getText("UNKNOWN");return vh(i_(u=t.call(this,p)),"errorCode",void 0),vh(i_(u),"level",void 0),vh(i_(u),"ext",void 0),u.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",u.level=null!==(c=null==f?void 0:f.level)&&void 0!==c?c:"Error",u.ext=null==f?void 0:f.ext,u}return bm(r)}(gD(Error));function SD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new wD(yh(yh({errorCode:e},mD[e]),t),r)}var ED=null!==(_D=null===(bD=document.currentScript)||void 0===bD?void 0:bD.src)&&void 0!==_D?_D:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.1-rc.1","/object/umd/"),TD=new lM({baseUrl:SP(ED).call(ED,0,KR(ED).call(ED,"/"))});function PD(e,t){return RD.apply(this,arguments)}function RD(){return RD=ym(vm().mark((function e(t,r){var n;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,TD.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),SD(yD.MODULE_LOAD_ERROR,{ext:{name:t,cdn:null===e.t0||void 0===e.t0||null===(n=e.t0.target)||void 0===n?void 0:n.src},error:e.t0});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),RD.apply(this,arguments)}TD.registerPlugin,TD.register;var kD=function(e){return e.H265="h265",e.H264="h264",e}(kD||{});function OD(e){var t,r={},n=function(e,t){var r=void 0!==iu&&xu(e)||e["@@iterator"];if(!r){if(Ar(e)||(r=Qf(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}(e.attributes);try{for(n.s();!(t=n.n()).done;){var i=t.value;r[i.name]=i.value}}catch(o){n.e(o)}finally{n.f()}return r}var xD=Object.freeze({__proto__:null,getAttributes:OD,replaceAttributes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=OD(e);return eR(t=$P(n)).call(t,(function(t){r[t]?null==e||e.setAttribute(t,r[t]):null==e||e.removeAttribute(t)})),e},setAttributes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return eR(t=$P(r)).call(t,(function(t){var n=t,i=r[t];i&&(null==e||e.setAttribute(n,i))})),e}}),MD=['video/mp4;codecs="hev1.1.6.L120.90"','video/mp4;codecs="hev1.2.4.L120.90"','video/mp4;codecs="hev1.3.E.L120.90"','video/mp4;codecs="hev1.4.10.L120.90"'],ID=tC((function(e,t){var r;return null==t?void 0:PR(r=t.split("?")[0].toLowerCase()).call(r,e)})),AD=ID(".m3u8"),CD=ID(".mp4"),LD=ID(".flv"),DD=ID(".sdp"),jD=ID(".mpd");function ND(e){return AD(e)?"hls":LD(e)?"flv":DD(e)?"rtm":CD(e)?"mp4":jD(e)?"dash":"unknown"}function FD(){return(FD=ym(vm().mark((function e(){var t,r;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,PD(sM.PluginXgvideo);case 2:return t=e.sent,r=t.XGVideoPlugin,e.abrupt("return",null==r?void 0:r.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}yh(yh(yh({},DI),xD),{},{getStreamType:ND,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kD.H264;return e===kD.H265?UI.isHevcSupported():e===kD.H264?UI.isMSESupport():UI.isMSESupport(e)},isSoftDecodeSupported:function(){return FD.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kD.H264;return void 0!==window.ManagedMediaSource&&(e===kD.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===kD.H265?oM(MD).call(MD,(function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var r,n=iT(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var i,o=wb(e).call(e,"//");for(var a in t){var s,l,c=t[a];if(null!=n&&n.searchParams.has(a))null==n||null===(s=n.searchParams)||void 0===s||s.set(a,c);else null==n||null===(l=n.searchParams)||void 0===l||l.append(a,c)}return e=n.toString(),o?null===(i=e)||void 0===i?void 0:i.replace(location.protocol,""):e},getUrlObject:iT});var UD,zD=window.VePlayer.DynamicModule,VD=window.VePlayer.load,BD=function(){var e=ym(vm().mark((function e(t){var r,n,i,o,a,s;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("rtm"!==(o=t.url&&ND(t.url))){e.next=3;break}return e.abrupt("return",{});case 3:if(a="flv"===o?null==t||null===(r=t.flv)||void 0===r?void 0:r.abr:null==t||null===(n=t.hls)||void 0===n?void 0:n.abr){e.next=6;break}return e.abrupt("return",{});case 6:return e.next=8,VD(zD.PluginAbr).catch((function(){}));case 8:return s=e.sent,e.abrupt("return",{options:vh({},"flv"===o?"abr":"hlsabr",yh(yh({},a),{},{open:null===(i=a.enable)||void 0===i||i})),plugins:["flv"===o?null==s?void 0:s.AbrPlugin:null==s?void 0:s.HlsAbrPlugin]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),WD=window.VePlayer.DEFAULT_PLUGINS,KD=window.VePlayer.VePlayerBase,HD=window.VePlayer.VeI18n;HD.extend([{LANG:"zh-cn",TEXT:Yx},{LANG:"en",TEXT:Xx}]);var qD={autoplay:{muted:!0}},GD=f_(UD=[]).call(UD,a_(WD),[XP,Vx,qx]),XD=function(e){return e.H264="h264",e}(XD||{}),YD=function(e){zm(n,e);var t,r=o_(n);function n(e){return mm(this,n),r.call(this,e)}return bm(n,[{key:"playTime",get:function(){var e;if(null===(e=this._player)||void 0===e||null===(e=e.played)||void 0===e||!e.length)return 0;for(var t=this._player.played.length,r=0,n=0;n<t;n++){var i,o,a=null===(i=this._player)||void 0===i?void 0:i.played.start(n);r+=(null===(o=this._player)||void 0===o?void 0:o.played.end(n))-a}return r}},{key:"ad",get:function(){var e;return null===(e=this._player.plugins)||void 0===e||null===(e=e.ad)||void 0===e?void 0:e.adManager}},{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}},{key:"openAbr",value:function(){var e,t,r=this.url&&ND(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!0)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!0)}},{key:"closeAbr",value:function(){var e,t,r=this.url&&ND(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!1)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!1)}},{key:"updateDrmConfig",value:function(e){var t;null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.drm)||void 0===t||t.updateDrmConfig(e)}},{key:"switchAbr",value:function(e){var t;if(null!==(t=this._player.plugins)&&void 0!==t&&t.abr){if(void 0!==(null==e?void 0:e.bitrate)){var r=this._player.plugins.abr.config.urls[e.bitrate];if(!r)return;this.switch(r,{seamless:!0}),this._player.plugins.abr.bitrate=e.bitrate}var n;if(void 0!==(null==e?void 0:e.enable))null===(n=this._player.plugins)||void 0===n||n.abr.switchAbr(e.enable)}}},{key:"getRTMNetWorkInfo",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.rts)||void 0===e?void 0:e.getNetWorkInfo()}},{key:"getRTMStats",value:(t=ym(vm().mark((function e(){var t;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.rts)||void 0===t?void 0:t.getStatsSnapshoot());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getFLVStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.flv)||void 0===e?void 0:e.getStats()}}]),n}(KD);function $D(e){return QD.apply(this,arguments)}function QD(){return(QD=ym(vm().mark((function e(t){var r,n,i,o,a,s,l,c,u;return vm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=void 0,s=new HD({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),t&&(t.url||t.playlist)){e.next=4;break}throw L_(A_.INVALID_PARAMETER,s);case 4:return null!==(r=t.logger)&&void 0!==r&&r.appId||!1===(null==t||null===(n=t.logger)||void 0===n?void 0:n.enable)||console.warn(L_(A_.INVALID_LOGGER,s).message),l=yh(yh({},t),{},{plugins:f_(i=[]).call(i,a_(GD),a_(null!==(o=t.plugins)&&void 0!==o?o:[]))}),e.next=8,KD.create(yh(yh(yh({},qD),l),{},{isLive:!0,i18nManager:s,preProcessUrl:function(e){return ID(".ts",e)?{url:e}:{url:Ux(e)}},preparePlugins:function(e){return ym(vm().mark((function t(){var r,n,i,o,c,u,f,p,h,d,v,g,y,m,_,b;return vm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p_.all([CT(yh(yh({},l),{},{url:e}),a,s),Zx(yh(yh({},l),{},{url:e}),a),BD(yh(yh({},l),{},{url:e}))]);case 2:return i=t.sent,o=Jf(i,3),c=o[0],u=o[1],f=o[2],h=(p=null!=c?c:{}).options,d=p.plugins,g=(v=null!=u?u:{}).options,y=v.plugins,_=(m=null!=f?f:{}).options,b=m.plugins,t.abrupt("return",{options:O_({},h,g,_),plugins:f_(r=[]).call(r,a_(null!=d?d:[]),a_(null!=y?y:[]),a_(null!=b?b:[])),useSrc:!(null!==(n=c.plugins)&&void 0!==n&&n.length)});case 11:case"end":return t.stop()}}),t)})))()}}),YD);case 8:return(a=e.sent)&&(u=null===(c=a)||void 0===c||null===(c=c._player)||void 0===c||null===(c=c.config)||void 0===c?void 0:c._RTMdegrade)&&a.emit("degrade",{originRtmUrl:u._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:u._isRTMSupported,isRTMSupportCodec:u._isRTMSupportCodec}),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var JD=Object.freeze({__proto__:null,ErrorCode:A_,Events:BP}),ZD=window.VePlayer.setModuleSystem,ej=window.VePlayer.Codec,tj=window.VePlayer.DecodeType,rj=window.VePlayer.Degradation,nj=window.VePlayer.POSITIONS,ij=window.VePlayer.register,oj=window.VePlayer.registerPlugin,aj=window.VePlayer.EN,sj=window.VePlayer.ZH_CN,lj=window.VePlayer.Plugin,cj=window.VePlayer.Sniffer,uj=window.VePlayer.DynamicModule,fj=window.VePlayer.util,pj=window.VePlayer.load,hj=window.VePlayer.ListType;ZD("umd");var dj=fj.isMseSupported,vj=fj.isSoftDecodeSupported,gj=fj.isMMSSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(uj.BizLive,{createLivePlayer:$D}):oj(uj.BizLive,{createLivePlayer:$D}),e.Codec=ej,e.DecodeType=tj,e.Degradation=rj,e.DynamicModule=uj,e.EN=aj,e.ListType=hj,e.POSITIONS=nj,e.Plugin=lj,e.RTMCodec=XD,e.Sniffer=cj,e.ZH_CN=sj,e.createLivePlayer=$D,e.isFLVSupported=PT,e.isMMSSupported=gj,e.isMseSupported=dj,e.isRTMSupportCodec=Q_,e.isRTMSupported=Y_,e.isSoftDecodeSupported=vj,e.live=JD,e.load=pj,e.register=ij,e.registerPlugin=oj,e.util=fj}));
|