@volcengine/veplayer 2.7.1-rc.4 → 2.7.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.
@@ -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},o=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")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,u=l.apply,c=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?c.bind(u):function(){return c.apply(u,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)},k="object"==typeof document&&document.all,P={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},T=P.all,R=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},x={},O=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=a,A=Function.prototype.call,I=M?A.bind(A):function(){return A.apply(A,arguments)},C={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,F=D&&!L.call({1:2},1);C.f=F?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var j,N,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V=i,z=b,B=Object,W=g("".split),K=V((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(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,J=function(e){return Y($(e))},Q=R,Z=P.all,ee=P.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te={},re=te,ne=o,oe=R,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=o,ce=le,fe=ue.process,pe=ue.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(N=(j=de.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!N&&ce&&(!(j=ce.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ce.match(/Chrome\/(\d+)/))&&(N=+j[1]);var ve=N,ge=ve,ye=i,me=o.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=R,Ee=se,ke=Object,Pe=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&Ee(t.prototype,ke(e))},Te=String,Re=function(e){try{return Te(e)}catch(t){return"Object"}},xe=R,Oe=Re,Me=TypeError,Ae=function(e){if(xe(e))return e;throw Me(Oe(e)+" is not a function")},Ie=Ae,Ce=H,Le=function(e,t){var r=e[t];return Ce(r)?void 0:Ie(r)},De=I,Fe=R,je=ee,Ne=TypeError,Ue={exports:{}},Ve=o,ze=Object.defineProperty,Be=function(e,t){try{ze(Ve,e,{value:t,configurable:!0,writable:!0})}catch(r){Ve[e]=t}return t},We="__core-js_shared__",Ke=o[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,Je=g({}.hasOwnProperty),Qe=Object.hasOwn||function(e,t){return Je($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)},ot=qe,it=Qe,at=nt,st=_e,lt=be,ut=o.Symbol,ct=ot("wks"),ft=lt?ut.for||ut:ut&&ut.withoutSetter||at,pt=function(e){return it(ct,e)||(ct[e]=st&&it(ut,e)?ut[e]:ft("Symbol."+e)),ct[e]},ht=I,dt=ee,vt=Pe,gt=Le,yt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!je(n=De(r,e)))return n;if(Fe(r=e.valueOf)&&!je(n=De(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!je(n=De(r,e)))return n;throw Ne("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,kt=o.document,Pt=Et(kt)&&Et(kt.createElement),Tt=function(e){return Pt?kt.createElement(e):{}},Rt=Tt,xt=!O&&!i((function(){return 7!=Object.defineProperty(Rt("div"),"a",{get:function(){return 7}}).a})),Ot=O,Mt=I,At=C,It=U,Ct=J,Lt=St,Dt=Qe,Ft=xt,jt=Object.getOwnPropertyDescriptor;x.f=Ot?jt:function(e,t){if(e=Ct(e),t=Lt(t),Ft)try{return jt(e,t)}catch(r){}if(Dt(e,t))return It(!Mt(At.f,e,t),e[t])};var Nt=i,Ut=R,Vt=/#|\.prototype\./,zt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=Kt&&(Ut(t)?Nt(t):!!t)},Bt=zt.normalize=function(e){return String(e).replace(Vt,".").toLowerCase()},Wt=zt.data={},Kt=zt.NATIVE="N",Ht=zt.POLYFILL="P",qt=zt,Gt=Ae,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)}},Jt={},Qt=O&&i((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=O,or=xt,ir=Qt,ar=rr,sr=St,lr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Jt.f=nr?ir?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=cr(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 ur(e,t,r)}:ur:function(e,t,r){if(ar(e),t=sr(t),ar(r),or)try{return ur(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=Jt,vr=U,gr=O?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=E,br=R,wr=x.f,Sr=qt,Er=te,kr=$t,Pr=gr,Tr=Qe,Rr=function(e){var t=function(r,n,o){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,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},xr=function(e,t){var r,n,o,i,a,s,l,u,c,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(i in t)n=!(r=Sr(p?i:f+(h?".":"#")+i,e.forced))&&v&&Tr(v,i),s=g[i],n&&(l=e.dontCallGetSet?(c=wr(v,i))&&c.value:v[i]),a=n&&l?l:t[i],n&&typeof s==typeof a||(u=e.bind&&n?kr(a,yr):e.wrap&&n?Rr(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(u,"sham",!0),Pr(g,i,u),d&&(Tr(Er,o=f+"Prototype")||Pr(Er,o,{}),Pr(Er[o],i,a),e.real&&y&&(r||!y[i])&&Pr(y,i,a)))},Or=Math.ceil,Mr=Math.floor,Ar=Math.trunc||function(e){var t=+e;return(t>0?Mr:Or)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:Ar(t)},Cr=Ir,Lr=Math.max,Dr=Math.min,Fr=function(e,t){var r=Cr(e);return r<0?Lr(r+t,0):Dr(r,t)},jr=Ir,Nr=Math.min,Ur=function(e){return e>0?Nr(jr(e),9007199254740991):0},Vr=Ur,zr=function(e){return Vr(e.length)},Br=J,Wr=Fr,Kr=zr,Hr=function(e){return function(t,r,n){var o,i=Br(t),a=Kr(i),s=Wr(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},qr={includes:Hr(!0),indexOf:Hr(!1)},Gr={},Xr=Qe,Yr=J,$r=qr.indexOf,Jr=Gr,Qr=g([].push),Zr=function(e,t){var r,n=Yr(e),o=0,i=[];for(r in n)!Xr(Jr,r)&&Xr(n,r)&&Qr(i,r);for(;t.length>o;)Xr(n,r=t[o++])&&(~$r(i,r)||Qr(i,r));return i},en=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=Zr,rn=en,nn=Object.keys||function(e){return tn(e,rn)},on=Ye,an=nn;xr({target:"Object",stat:!0,forced:i((function(){an(1)}))},{keys:function(e){return an(on(e))}});var sn=te.Object.keys,ln=r(sn),un={};un[pt("toStringTag")]="z";var cn="[object z]"===String(un),fn=cn,pn=R,hn=b,dn=pt("toStringTag"),vn=Object,gn="Arguments"==hn(function(){return arguments}()),yn=fn?hn: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=vn(e),dn))?r:gn?hn(t):"Object"==(n=hn(t))&&pn(t.callee)?"Arguments":n},mn=yn,_n=String,bn=function(e){if("Symbol"===mn(e))throw TypeError("Cannot convert a Symbol value to a string");return _n(e)},wn={},Sn=O,En=Qt,kn=Jt,Pn=rr,Tn=J,Rn=nn;wn.f=Sn&&!En?Object.defineProperties:function(e,t){Pn(e);for(var r,n=Tn(t),o=Rn(t),i=o.length,a=0;i>a;)kn.f(e,r=o[a++],n[r]);return e};var xn,On=ae("document","documentElement"),Mn=nt,An=qe("keys"),In=function(e){return An[e]||(An[e]=Mn(e))},Cn=rr,Ln=wn,Dn=en,Fn=Gr,jn=On,Nn=Tt,Un="prototype",Vn="script",zn=In("IE_PROTO"),Bn=function(){},Wn=function(e){return"<"+Vn+">"+e+"</"+Vn+">"},Kn=function(e){e.write(Wn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hn=function(){try{xn=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Hn="undefined"!=typeof document?document.domain&&xn?Kn(xn):(t=Nn("iframe"),r="java"+Vn+":",t.style.display="none",jn.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Wn("document.F=Object")),e.close(),e.F):Kn(xn);for(var n=Dn.length;n--;)delete Hn[Un][Dn[n]];return Hn()};Fn[zn]=!0;var qn=Object.create||function(e,t){var r;return null!==e?(Bn[Un]=Cn(e),r=new Bn,Bn[Un]=null,r[zn]=e):r=Hn(),void 0===t?r:Ln.f(r,t)},Gn={},Xn=Zr,Yn=en.concat("length","prototype");Gn.f=Object.getOwnPropertyNames||function(e){return Xn(e,Yn)};var $n={},Jn=St,Qn=Jt,Zn=U,eo=function(e,t,r){var n=Jn(t);n in e?Qn.f(e,n,Zn(0,r)):e[n]=r},to=Fr,ro=zr,no=eo,oo=Array,io=Math.max,ao=function(e,t,r){for(var n=ro(e),o=to(t,n),i=to(void 0===r?n:r,n),a=oo(io(i-o,0)),s=0;o<i;o++,s++)no(a,s,e[o]);return a.length=s,a},so=b,lo=J,uo=Gn.f,co=ao,fo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];$n.f=function(e){return fo&&"Window"==so(e)?function(e){try{return uo(e)}catch(t){return co(fo)}}(e):uo(lo(e))};var po={};po.f=Object.getOwnPropertySymbols;var ho=gr,vo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ho(e,t,r),e},go=Jt,yo=function(e,t,r){return go.f(e,t,r)},mo={},_o=pt;mo.f=_o;var bo,wo,So,Eo=te,ko=Qe,Po=mo,To=Jt.f,Ro=function(e){var t=Eo.Symbol||(Eo.Symbol={});ko(t,e)||To(t,e,{value:Po.f(e)})},xo=I,Oo=ae,Mo=pt,Ao=vo,Io=function(){var e=Oo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Mo("toPrimitive");t&&!t[n]&&Ao(t,n,(function(e){return xo(r,this)}),{arity:1})},Co=yn,Lo=cn?{}.toString:function(){return"[object "+Co(this)+"]"},Do=cn,Fo=Jt.f,jo=gr,No=Qe,Uo=Lo,Vo=pt("toStringTag"),zo=function(e,t,r,n){if(e){var o=r?e:e.prototype;No(o,Vo)||Fo(o,Vo,{configurable:!0,value:t}),n&&!Do&&jo(o,"toString",Uo)}},Bo=R,Wo=o.WeakMap,Ko=Bo(Wo)&&/native code/.test(String(Wo)),Ho=o,qo=ee,Go=gr,Xo=Qe,Yo=Ke,$o=In,Jo=Gr,Qo="Object already initialized",Zo=Ho.TypeError,ei=Ho.WeakMap;if(Ko||Yo.state){var ti=Yo.state||(Yo.state=new ei);ti.get=ti.get,ti.has=ti.has,ti.set=ti.set,bo=function(e,t){if(ti.has(e))throw Zo(Qo);return t.facade=e,ti.set(e,t),t},wo=function(e){return ti.get(e)||{}},So=function(e){return ti.has(e)}}else{var ri=$o("state");Jo[ri]=!0,bo=function(e,t){if(Xo(e,ri))throw Zo(Qo);return t.facade=e,Go(e,ri,t),t},wo=function(e){return Xo(e,ri)?e[ri]:{}},So=function(e){return Xo(e,ri)}}var ni={set:bo,get:wo,has:So,enforce:function(e){return So(e)?wo(e):bo(e,{})},getterFor:function(e){return function(t){var r;if(!qo(t)||(r=wo(t)).type!==e)throw Zo("Incompatible receiver, "+e+" required");return r}}},oi=b,ii=Array.isArray||function(e){return"Array"==oi(e)},ai=R,si=Ke,li=g(Function.toString);ai(si.inspectSource)||(si.inspectSource=function(e){return li(e)});var ui=si.inspectSource,ci=g,fi=i,pi=R,hi=yn,di=ui,vi=function(){},gi=[],yi=ae("Reflect","construct"),mi=/^\s*(?:class|function)\b/,_i=ci(mi.exec),bi=!mi.exec(vi),wi=function(e){if(!pi(e))return!1;try{return yi(vi,gi,e),!0}catch(t){return!1}},Si=function(e){if(!pi(e))return!1;switch(hi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bi||!!_i(mi,di(e))}catch(t){return!0}};Si.sham=!0;var Ei=!yi||fi((function(){var e;return wi(wi.call)||!wi(Object)||!wi((function(){e=!0}))||e}))?Si:wi,ki=ii,Pi=Ei,Ti=ee,Ri=pt("species"),xi=Array,Oi=function(e){var t;return ki(e)&&(t=e.constructor,(Pi(t)&&(t===xi||ki(t.prototype))||Ti(t)&&null===(t=t[Ri]))&&(t=void 0)),void 0===t?xi:t},Mi=function(e,t){return new(Oi(e))(0===t?0:t)},Ai=$t,Ii=K,Ci=Ye,Li=zr,Di=Mi,Fi=g([].push),ji=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,u,c,f){for(var p,h,d=Ci(l),v=Ii(d),g=Ai(u,c),y=Li(v),m=0,_=f||Di,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:Fi(b,p)}else switch(e){case 4:return!1;case 7:Fi(b,p)}return i?-1:n||o?o:b}},Ni={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},Ui=xr,Vi=o,zi=I,Bi=g,Wi=O,Ki=_e,Hi=i,qi=Qe,Gi=se,Xi=rr,Yi=J,$i=St,Ji=bn,Qi=U,Zi=qn,ea=nn,ta=Gn,ra=$n,na=po,oa=x,ia=Jt,aa=wn,sa=C,la=vo,ua=yo,ca=qe,fa=Gr,pa=nt,ha=pt,da=mo,va=Ro,ga=Io,ya=zo,ma=ni,_a=Ni.forEach,ba=In("hidden"),wa="Symbol",Sa="prototype",Ea=ma.set,ka=ma.getterFor(wa),Pa=Object[Sa],Ta=Vi.Symbol,Ra=Ta&&Ta[Sa],xa=Vi.TypeError,Oa=Vi.QObject,Ma=oa.f,Aa=ia.f,Ia=ra.f,Ca=sa.f,La=Bi([].push),Da=ca("symbols"),Fa=ca("op-symbols"),ja=ca("wks"),Na=!Oa||!Oa[Sa]||!Oa[Sa].findChild,Ua=Wi&&Hi((function(){return 7!=Zi(Aa({},"a",{get:function(){return Aa(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ma(Pa,t);n&&delete Pa[t],Aa(e,t,r),n&&e!==Pa&&Aa(Pa,t,n)}:Aa,Va=function(e,t){var r=Da[e]=Zi(Ra);return Ea(r,{type:wa,tag:e,description:t}),Wi||(r.description=t),r},za=function(e,t,r){e===Pa&&za(Fa,t,r),Xi(e);var n=$i(t);return Xi(r),qi(Da,n)?(r.enumerable?(qi(e,ba)&&e[ba][n]&&(e[ba][n]=!1),r=Zi(r,{enumerable:Qi(0,!1)})):(qi(e,ba)||Aa(e,ba,Qi(1,{})),e[ba][n]=!0),Ua(e,n,r)):Aa(e,n,r)},Ba=function(e,t){Xi(e);var r=Yi(t),n=ea(r).concat(qa(r));return _a(n,(function(t){Wi&&!zi(Wa,r,t)||za(e,t,r[t])})),e},Wa=function(e){var t=$i(e),r=zi(Ca,this,t);return!(this===Pa&&qi(Da,t)&&!qi(Fa,t))&&(!(r||!qi(this,t)||!qi(Da,t)||qi(this,ba)&&this[ba][t])||r)},Ka=function(e,t){var r=Yi(e),n=$i(t);if(r!==Pa||!qi(Da,n)||qi(Fa,n)){var o=Ma(r,n);return!o||!qi(Da,n)||qi(r,ba)&&r[ba][n]||(o.enumerable=!0),o}},Ha=function(e){var t=Ia(Yi(e)),r=[];return _a(t,(function(e){qi(Da,e)||qi(fa,e)||La(r,e)})),r},qa=function(e){var t=e===Pa,r=Ia(t?Fa:Yi(e)),n=[];return _a(r,(function(e){!qi(Da,e)||t&&!qi(Pa,e)||La(n,Da[e])})),n};Ki||(Ta=function(){if(Gi(Ra,this))throw xa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Ji(arguments[0]):void 0,t=pa(e),r=function(e){this===Pa&&zi(r,Fa,e),qi(this,ba)&&qi(this[ba],t)&&(this[ba][t]=!1),Ua(this,t,Qi(1,e))};return Wi&&Na&&Ua(Pa,t,{configurable:!0,set:r}),Va(t,e)},la(Ra=Ta[Sa],"toString",(function(){return ka(this).tag})),la(Ta,"withoutSetter",(function(e){return Va(pa(e),e)})),sa.f=Wa,ia.f=za,aa.f=Ba,oa.f=Ka,ta.f=ra.f=Ha,na.f=qa,da.f=function(e){return Va(ha(e),e)},Wi&&ua(Ra,"description",{configurable:!0,get:function(){return ka(this).description}})),Ui({global:!0,constructor:!0,wrap:!0,forced:!Ki,sham:!Ki},{Symbol:Ta}),_a(ea(ja),(function(e){va(e)})),Ui({target:wa,stat:!0,forced:!Ki},{useSetter:function(){Na=!0},useSimple:function(){Na=!1}}),Ui({target:"Object",stat:!0,forced:!Ki,sham:!Wi},{create:function(e,t){return void 0===t?Zi(e):Ba(Zi(e),t)},defineProperty:za,defineProperties:Ba,getOwnPropertyDescriptor:Ka}),Ui({target:"Object",stat:!0,forced:!Ki},{getOwnPropertyNames:Ha}),ga(),ya(Ta,wa),fa[ba]=!0;var Ga=_e&&!!Symbol.for&&!!Symbol.keyFor,Xa=xr,Ya=ae,$a=Qe,Ja=bn,Qa=qe,Za=Ga,es=Qa("string-to-symbol-registry"),ts=Qa("symbol-to-string-registry");Xa({target:"Symbol",stat:!0,forced:!Za},{for:function(e){var t=Ja(e);if($a(es,t))return es[t];var r=Ya("Symbol")(t);return es[t]=r,ts[r]=t,r}});var rs=xr,ns=Qe,os=Pe,is=Re,as=Ga,ss=qe("symbol-to-string-registry");rs({target:"Symbol",stat:!0,forced:!as},{keyFor:function(e){if(!os(e))throw TypeError(is(e)+" is not a symbol");if(ns(ss,e))return ss[e]}});var ls=g([].slice),us=ii,cs=R,fs=b,ps=bn,hs=g([].push),ds=xr,vs=ae,gs=f,ys=I,ms=g,_s=i,bs=R,ws=Pe,Ss=ls,Es=function(e){if(cs(e))return e;if(us(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?hs(r,o):"number"!=typeof o&&"Number"!=fs(o)&&"String"!=fs(o)||hs(r,ps(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(us(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},ks=_e,Ps=String,Ts=vs("JSON","stringify"),Rs=ms(/./.exec),xs=ms("".charAt),Os=ms("".charCodeAt),Ms=ms("".replace),As=ms(1..toString),Is=/[\uD800-\uDFFF]/g,Cs=/^[\uD800-\uDBFF]$/,Ls=/^[\uDC00-\uDFFF]$/,Ds=!ks||_s((function(){var e=vs("Symbol")();return"[null]"!=Ts([e])||"{}"!=Ts({a:e})||"{}"!=Ts(Object(e))})),Fs=_s((function(){return'"\\udf06\\ud834"'!==Ts("\udf06\ud834")||'"\\udead"'!==Ts("\udead")})),js=function(e,t){var r=Ss(arguments),n=Es(t);if(bs(n)||void 0!==e&&!ws(e))return r[1]=function(e,t){if(bs(n)&&(t=ys(n,this,Ps(e),t)),!ws(t))return t},gs(Ts,null,r)},Ns=function(e,t,r){var n=xs(r,t-1),o=xs(r,t+1);return Rs(Cs,e)&&!Rs(Ls,o)||Rs(Ls,e)&&!Rs(Cs,n)?"\\u"+As(Os(e,0),16):e};Ts&&ds({target:"JSON",stat:!0,arity:3,forced:Ds||Fs},{stringify:function(e,t,r){var n=Ss(arguments),o=gs(Ds?js:Ts,null,n);return Fs&&"string"==typeof o?Ms(o,Is,Ns):o}});var Us=po,Vs=Ye;xr({target:"Object",stat:!0,forced:!_e||i((function(){Us.f(1)}))},{getOwnPropertySymbols:function(e){var t=Us.f;return t?t(Vs(e)):[]}});var zs=te.Object.getOwnPropertySymbols,Bs=r(zs),Ws=i,Ks=ve,Hs=pt("species"),qs=function(e){return Ks>=51||!Ws((function(){var t=[];return(t.constructor={})[Hs]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Gs=Ni.filter;xr({target:"Array",proto:!0,forced:!qs("filter")},{filter:function(e){return Gs(this,e,arguments.length>1?arguments[1]:void 0)}});var Xs=te,Ys=function(e){return Xs[e+"Prototype"]},$s=Ys("Array").filter,Js=se,Qs=$s,Zs=Array.prototype,el=function(e){var t=e.filter;return e===Zs||Js(Zs,e)&&t===Zs.filter?Qs:t},tl=r(el),rl={exports:{}},nl=xr,ol=i,il=J,al=x.f,sl=O;nl({target:"Object",stat:!0,forced:!sl||ol((function(){al(1)})),sham:!sl},{getOwnPropertyDescriptor:function(e,t){return al(il(e),t)}});var ll=te.Object,ul=rl.exports=function(e,t){return ll.getOwnPropertyDescriptor(e,t)};ll.getOwnPropertyDescriptor.sham&&(ul.sham=!0);var cl=rl.exports,fl=r(cl),pl=O,hl=ii,dl=TypeError,vl=Object.getOwnPropertyDescriptor,gl=pl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(hl(e)&&!vl(e,"length").writable)throw dl("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},yl=TypeError,ml=function(e){if(e>9007199254740991)throw yl("Maximum allowed index exceeded");return e},_l=Ye,bl=zr,wl=gl,Sl=ml;xr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=_l(this),r=bl(t),n=arguments.length;Sl(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return wl(t,r),r}});var El,kl,Pl,Tl=Ys("Array").push,Rl=se,xl=Tl,Ol=Array.prototype,Ml=r((function(e){var t=e.push;return e===Ol||Rl(Ol,e)&&t===Ol.push?xl:t})),Al={},Il=O,Cl=Qe,Ll=Function.prototype,Dl=Il&&Object.getOwnPropertyDescriptor,Fl=Cl(Ll,"name"),jl={EXISTS:Fl,PROPER:Fl&&"something"===function(){}.name,CONFIGURABLE:Fl&&(!Il||Il&&Dl(Ll,"name").configurable)},Nl=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ul=Qe,Vl=R,zl=Ye,Bl=Nl,Wl=In("IE_PROTO"),Kl=Object,Hl=Kl.prototype,ql=Bl?Kl.getPrototypeOf:function(e){var t=zl(e);if(Ul(t,Wl))return t[Wl];var r=t.constructor;return Vl(r)&&t instanceof r?r.prototype:t instanceof Kl?Hl:null},Gl=i,Xl=R,Yl=ee,$l=qn,Jl=ql,Ql=vo,Zl=pt("iterator"),eu=!1;[].keys&&("next"in(Pl=[].keys())?(kl=Jl(Jl(Pl)))!==Object.prototype&&(El=kl):eu=!0);var tu=!Yl(El)||Gl((function(){var e={};return El[Zl].call(e)!==e}));Xl((El=tu?{}:$l(El))[Zl])||Ql(El,Zl,(function(){return this}));var ru={IteratorPrototype:El,BUGGY_SAFARI_ITERATORS:eu},nu=ru.IteratorPrototype,ou=qn,iu=U,au=zo,su=Al,lu=function(){return this},uu=function(e,t,r,n){var o=t+" Iterator";return e.prototype=ou(nu,{next:iu(+!n,r)}),au(e,o,!1,!0),su[o]=lu,e},cu=g,fu=Ae,pu=R,hu=String,du=TypeError,vu=function(e,t,r){try{return cu(fu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},gu=rr,yu=function(e){if("object"==typeof e||pu(e))return e;throw du("Can't set "+hu(e)+" as a prototype")},mu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=vu(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return gu(r),yu(n),t?e(r,n):r.__proto__=n,r}}():void 0),_u=xr,bu=I,wu=jl,Su=uu,Eu=ql,ku=zo,Pu=vo,Tu=Al,Ru=ru,xu=wu.PROPER,Ou=Ru.BUGGY_SAFARI_ITERATORS,Mu=pt("iterator"),Au="keys",Iu="values",Cu="entries",Lu=function(){return this},Du=function(e,t,r,n,o,i,a){Su(r,t,n);var s,l,u,c=function(e){if(e===o&&v)return v;if(!Ou&&e in h)return h[e];switch(e){case Au:case Iu:case Cu:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[Mu]||h["@@iterator"]||o&&h[o],v=!Ou&&d||c(o),g="Array"==t&&h.entries||d;if(g&&(s=Eu(g.call(new e)))!==Object.prototype&&s.next&&(ku(s,f,!0,!0),Tu[f]=Lu),xu&&o==Iu&&d&&d.name!==Iu&&(p=!0,v=function(){return bu(d,this)}),o)if(l={values:c(Iu),keys:i?v:c(Au),entries:c(Cu)},a)for(u in l)(Ou||p||!(u in h))&&Pu(h,u,l[u]);else _u({target:t,proto:!0,forced:Ou||p},l);return a&&h[Mu]!==v&&Pu(h,Mu,v,{name:o}),Tu[t]=v,l},Fu=function(e,t){return{value:e,done:t}},ju=J,Nu=Al,Uu=ni;Jt.f;var Vu=Du,zu=Fu,Bu="Array Iterator",Wu=Uu.set,Ku=Uu.getterFor(Bu);Vu(Array,"Array",(function(e,t){Wu(this,{type:Bu,target:ju(e),index:0,kind:t})}),(function(){var e=Ku(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,zu(void 0,!0)):zu("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Nu.Arguments=Nu.Array;var Hu={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},qu=o,Gu=yn,Xu=gr,Yu=Al,$u=pt("toStringTag");for(var Ju in Hu){var Qu=qu[Ju],Zu=Qu&&Qu.prototype;Zu&&Gu(Zu)!==$u&&Xu(Zu,$u,Ju),Yu[Ju]=Yu.Array}var ec=i,tc=function(e,t){var r=[][e];return!!r&&ec((function(){r.call(null,t||function(){return 1},1)}))},rc=Ni.forEach,nc=tc("forEach")?[].forEach:function(e){return rc(this,e,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!=nc},{forEach:nc});var oc=Ys("Array").forEach,ic=yn,ac=Qe,sc=se,lc=oc,uc=Array.prototype,cc={DOMTokenList:!0,NodeList:!0},fc=function(e){var t=e.forEach;return e===uc||sc(uc,e)&&t===uc.forEach||ac(cc,ic(e))?lc:t},pc=r(fc),hc=ae,dc=Gn,vc=po,gc=rr,yc=g([].concat),mc=hc("Reflect","ownKeys")||function(e){var t=dc.f(gc(e)),r=vc.f;return r?yc(t,r(e)):t},_c=mc,bc=J,wc=x,Sc=eo;xr({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(e){for(var t,r,n=bc(e),o=wc.f,i=_c(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Sc(a,t,r);return a}});var Ec=te.Object.getOwnPropertyDescriptors,kc=r(Ec),Pc={exports:{}},Tc=xr,Rc=O,xc=wn.f;Tc({target:"Object",stat:!0,forced:Object.defineProperties!==xc,sham:!Rc},{defineProperties:xc});var Oc=te.Object,Mc=Pc.exports=function(e,t){return Oc.defineProperties(e,t)};Oc.defineProperties.sham&&(Mc.sham=!0);var Ac=Pc.exports,Ic=r(Ac),Cc={exports:{}},Lc=xr,Dc=O,Fc=Jt.f;Lc({target:"Object",stat:!0,forced:Object.defineProperty!==Fc,sham:!Dc},{defineProperty:Fc});var jc=te.Object,Nc=Cc.exports=function(e,t,r){return jc.defineProperty(e,t,r)};jc.defineProperty.sham&&(Nc.sham=!0);var Uc=Cc.exports,Vc=r(Uc),zc=xr,Bc=i,Wc=ii,Kc=ee,Hc=Ye,qc=zr,Gc=ml,Xc=eo,Yc=Mi,$c=qs,Jc=ve,Qc=pt("isConcatSpreadable"),Zc=Jc>=51||!Bc((function(){var e=[];return e[Qc]=!1,e.concat()[0]!==e})),ef=function(e){if(!Kc(e))return!1;var t=e[Qc];return void 0!==t?!!t:Wc(e)};zc({target:"Array",proto:!0,arity:1,forced:!Zc||!$c("concat")},{concat:function(e){var t,r,n,o,i,a=Hc(this),s=Yc(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(ef(i=-1===t?a:arguments[t]))for(o=qc(i),Gc(l+o),r=0;r<o;r++,l++)r in i&&Xc(s,l,i[r]);else Gc(l+1),Xc(s,l++,i);return s.length=l,s}}),Ro("asyncIterator"),Ro("hasInstance"),Ro("isConcatSpreadable"),Ro("iterator"),Ro("match"),Ro("matchAll"),Ro("replace"),Ro("search"),Ro("species"),Ro("split");var tf=Io;Ro("toPrimitive"),tf();var rf=ae,nf=zo;Ro("toStringTag"),nf(rf("Symbol"),"Symbol"),Ro("unscopables"),zo(o.JSON,"JSON",!0);var of=te.Symbol;Ro("dispose");var af=of;Ro("asyncDispose");var sf=xr,lf=g,uf=ae("Symbol"),cf=uf.keyFor,ff=lf(uf.prototype.valueOf);sf({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==cf(ff(e))}catch(t){return!1}}});for(var pf=xr,hf=qe,df=ae,vf=g,gf=Pe,yf=pt,mf=df("Symbol"),_f=mf.isWellKnown,bf=df("Object","getOwnPropertyNames"),wf=vf(mf.prototype.valueOf),Sf=hf("wks"),Ef=0,kf=bf(mf),Pf=kf.length;Ef<Pf;Ef++)try{var Tf=kf[Ef];gf(mf[Tf])&&yf(Tf)}catch(Ej){}pf({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(_f&&_f(e))return!0;try{for(var t=wf(e),r=0,n=bf(Sf),o=n.length;r<o;r++)if(Sf[n[r]]==t)return!0}catch(Ej){}return!1}}),Ro("matcher"),Ro("metadataKey"),Ro("observable"),Ro("metadata"),Ro("patternMatch"),Ro("replaceAll");var Rf=af,xf=r(Rf),Of=g,Mf=Ir,Af=bn,If=X,Cf=Of("".charAt),Lf=Of("".charCodeAt),Df=Of("".slice),Ff=function(e){return function(t,r){var n,o,i=Af(If(t)),a=Mf(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Lf(i,a))<55296||n>56319||a+1===s||(o=Lf(i,a+1))<56320||o>57343?e?Cf(i,a):n:e?Df(i,a,a+2):o-56320+(n-55296<<10)+65536}},jf={codeAt:Ff(!1),charAt:Ff(!0)},Nf=jf.charAt,Uf=bn,Vf=ni,zf=Du,Bf=Fu,Wf="String Iterator",Kf=Vf.set,Hf=Vf.getterFor(Wf);zf(String,"String",(function(e){Kf(this,{type:Wf,string:Uf(e),index:0})}),(function(){var e,t=Hf(this),r=t.string,n=t.index;return n>=r.length?Bf(void 0,!0):(e=Nf(r,n),t.index+=e.length,Bf(e,!1))}));var qf=mo.f("iterator"),Gf=r(qf);function Xf(e){return(Xf="function"==typeof xf&&"symbol"==typeof Gf?function(e){return typeof e}:function(e){return e&&"function"==typeof xf&&e.constructor===xf&&e!==xf.prototype?"symbol":typeof e})(e)}var Yf=mo.f("toPrimitive"),$f=r(Yf);function Jf(e){var t=function(e,t){if("object"!==Xf(e)||null===e)return e;var r=e[$f];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xf(t)?t:String(t)}function Qf(e,t,r){return(t=Jf(t))in e?Vc(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zf(e,t){var r=ln(e);if(Bs){var n=Bs(e);t&&(n=tl(n).call(n,(function(t){return fl(e,t).enumerable}))),Ml(r).apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?pc(r=Zf(Object(o),!0)).call(r,(function(t){Qf(e,t,o[t])})):kc?Ic(e,kc(o)):pc(n=Zf(Object(o))).call(n,(function(t){Vc(e,t,fl(o,t))}))}return e}xr({target:"Object",stat:!0,sham:!O},{create:qn});var tp=te.Object,rp=function(e,t){return tp.create(e,t)},np=r(rp),op=Ye,ip=ql,ap=Nl;xr({target:"Object",stat:!0,forced:i((function(){ip(1)})),sham:!ap},{getPrototypeOf:function(e){return ip(op(e))}});var sp=r(te.Object.getPrototypeOf);xr({target:"Object",stat:!0},{setPrototypeOf:mu});var lp=r(te.Object.setPrototypeOf),up=Qe,cp=mc,fp=x,pp=Jt,hp=ee,dp=gr,vp=Error,gp=g("".replace),yp=String(vp("zxcasd").stack),mp=/\n\s*at [^:]*:[^\n]*/,_p=mp.test(yp),bp=U,wp=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",bp(1,7)),7!==e.stack)})),Sp=gr,Ep=function(e,t){if(_p&&"string"==typeof e&&!vp.prepareStackTrace)for(;t--;)e=gp(e,mp,"");return e},kp=wp,Pp=Error.captureStackTrace,Tp=Al,Rp=pt("iterator"),xp=Array.prototype,Op=function(e){return void 0!==e&&(Tp.Array===e||xp[Rp]===e)},Mp=yn,Ap=Le,Ip=H,Cp=Al,Lp=pt("iterator"),Dp=function(e){if(!Ip(e))return Ap(e,Lp)||Ap(e,"@@iterator")||Cp[Mp(e)]},Fp=I,jp=Ae,Np=rr,Up=Re,Vp=Dp,zp=TypeError,Bp=function(e,t){var r=arguments.length<2?Vp(e):t;if(jp(r))return Np(Fp(r,e));throw zp(Up(e)+" is not iterable")},Wp=I,Kp=rr,Hp=Le,qp=function(e,t,r){var n,o;Kp(e);try{if(!(n=Hp(e,"return"))){if("throw"===t)throw r;return r}n=Wp(n,e)}catch(Ej){o=!0,n=Ej}if("throw"===t)throw r;if(o)throw n;return Kp(n),r},Gp=$t,Xp=I,Yp=rr,$p=Re,Jp=Op,Qp=zr,Zp=se,eh=Bp,th=Dp,rh=qp,nh=TypeError,oh=function(e,t){this.stopped=e,this.result=t},ih=oh.prototype,ah=function(e,t,r){var n,o,i,a,s,l,u,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Gp(t,c),g=function(e){return n&&rh(n,"normal",e),new oh(!0,e)},y=function(e){return f?(Yp(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(!(o=th(e)))throw nh($p(e)+" is not iterable");if(Jp(o)){for(i=0,a=Qp(e);a>i;i++)if((s=y(e[i]))&&Zp(ih,s))return s;return new oh(!1)}n=eh(e,o)}for(l=p?e.next:n.next;!(u=Xp(l,n)).done;){try{s=y(u.value)}catch(Ej){rh(n,"throw",Ej)}if("object"==typeof s&&s&&Zp(ih,s))return s}return new oh(!1)},sh=bn,lh=xr,uh=se,ch=ql,fh=mu,ph=function(e,t,r){for(var n=cp(t),o=pp.f,i=fp.f,a=0;a<n.length;a++){var s=n[a];up(e,s)||r&&up(r,s)||o(e,s,i(t,s))}},hh=qn,dh=gr,vh=U,gh=function(e,t){hp(t)&&"cause"in t&&dp(e,"cause",t.cause)},yh=function(e,t,r,n){kp&&(Pp?Pp(e,t):Sp(e,"stack",Ep(r,n)))},mh=ah,_h=function(e,t){return void 0===e?arguments.length<2?"":t:sh(e)},bh=pt("toStringTag"),wh=Error,Sh=[].push,Eh=function(e,t){var r,n=uh(kh,this);fh?r=fh(wh(),n?ch(this):kh):(r=n?this:hh(kh),dh(r,bh,"Error")),void 0!==t&&dh(r,"message",_h(t)),yh(r,Eh,r.stack,1),arguments.length>2&&gh(r,arguments[2]);var o=[];return mh(e,Sh,{that:o}),dh(r,"errors",o),r};fh?fh(Eh,wh):ph(Eh,wh,{name:!0});var kh=Eh.prototype=hh(wh.prototype,{constructor:vh(1,Eh),message:vh(1,""),name:vh(1,"AggregateError")});lh({global:!0,constructor:!0,arity:2},{AggregateError:Eh});var Ph,Th,Rh,xh,Oh="undefined"!=typeof process&&"process"==b(process),Mh=ae,Ah=yo,Ih=O,Ch=pt("species"),Lh=function(e){var t=Mh(e);Ih&&t&&!t[Ch]&&Ah(t,Ch,{configurable:!0,get:function(){return this}})},Dh=se,Fh=TypeError,jh=function(e,t){if(Dh(t,e))return e;throw Fh("Incorrect invocation")},Nh=Ei,Uh=Re,Vh=TypeError,zh=function(e){if(Nh(e))return e;throw Vh(Uh(e)+" is not a constructor")},Bh=rr,Wh=zh,Kh=H,Hh=pt("species"),qh=function(e,t){var r,n=Bh(e).constructor;return void 0===n||Kh(r=Bh(n)[Hh])?t:Wh(r)},Gh=TypeError,Xh=function(e,t){if(e<t)throw Gh("Not enough arguments");return e},Yh=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),$h=o,Jh=f,Qh=$t,Zh=R,ed=Qe,td=i,rd=On,nd=ls,od=Tt,id=Xh,ad=Yh,sd=Oh,ld=$h.setImmediate,ud=$h.clearImmediate,cd=$h.process,fd=$h.Dispatch,pd=$h.Function,hd=$h.MessageChannel,dd=$h.String,vd=0,gd={},yd="onreadystatechange";td((function(){Ph=$h.location}));var md=function(e){if(ed(gd,e)){var t=gd[e];delete gd[e],t()}},_d=function(e){return function(){md(e)}},bd=function(e){md(e.data)},wd=function(e){$h.postMessage(dd(e),Ph.protocol+"//"+Ph.host)};ld&&ud||(ld=function(e){id(arguments.length,1);var t=Zh(e)?e:pd(e),r=nd(arguments,1);return gd[++vd]=function(){Jh(t,void 0,r)},Th(vd),vd},ud=function(e){delete gd[e]},sd?Th=function(e){cd.nextTick(_d(e))}:fd&&fd.now?Th=function(e){fd.now(_d(e))}:hd&&!ad?(xh=(Rh=new hd).port2,Rh.port1.onmessage=bd,Th=Qh(xh.postMessage,xh)):$h.addEventListener&&Zh($h.postMessage)&&!$h.importScripts&&Ph&&"file:"!==Ph.protocol&&!td(wd)?(Th=wd,$h.addEventListener("message",bd,!1)):Th=yd in od("script")?function(e){rd.appendChild(od("script"))[yd]=function(){rd.removeChild(this),md(e)}}:function(e){setTimeout(_d(e),0)});var Sd={set:ld,clear:ud},Ed=function(){this.head=null,this.tail=null};Ed.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 kd,Pd,Td,Rd,xd,Od=Ed,Md=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,Ad=/web0s(?!.*chrome)/i.test(le),Id=o,Cd=$t,Ld=x.f,Dd=Sd.set,Fd=Od,jd=Yh,Nd=Md,Ud=Ad,Vd=Oh,zd=Id.MutationObserver||Id.WebKitMutationObserver,Bd=Id.document,Wd=Id.process,Kd=Id.Promise,Hd=Ld(Id,"queueMicrotask"),qd=Hd&&Hd.value;if(!qd){var Gd=new Fd,Xd=function(){var e,t;for(Vd&&(e=Wd.domain)&&e.exit();t=Gd.get();)try{t()}catch(Ej){throw Gd.head&&kd(),Ej}e&&e.enter()};jd||Vd||Ud||!zd||!Bd?!Nd&&Kd&&Kd.resolve?((Rd=Kd.resolve(void 0)).constructor=Kd,xd=Cd(Rd.then,Rd),kd=function(){xd(Xd)}):Vd?kd=function(){Wd.nextTick(Xd)}:(Dd=Cd(Dd,Id),kd=function(){Dd(Xd)}):(Pd=!0,Td=Bd.createTextNode(""),new zd(Xd).observe(Td,{characterData:!0}),kd=function(){Td.data=Pd=!Pd}),qd=function(e){Gd.head||kd(),Gd.add(e)}}var Yd=qd,$d=function(e){try{return{error:!1,value:e()}}catch(Ej){return{error:!0,value:Ej}}},Jd=o.Promise,Qd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Zd=!Qd&&!Oh&&"object"==typeof window&&"object"==typeof document,ev=o,tv=Jd,rv=R,nv=qt,ov=ui,iv=pt,av=Zd,sv=Qd,lv=ve,uv=tv&&tv.prototype,cv=iv("species"),fv=!1,pv=rv(ev.PromiseRejectionEvent),hv={CONSTRUCTOR:nv("Promise",(function(){var e=ov(tv),t=e!==String(tv);if(!t&&66===lv)return!0;if(!uv.catch||!uv.finally)return!0;if(!lv||lv<51||!/native code/.test(e)){var r=new tv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[cv]=n,!(fv=r.then((function(){}))instanceof n))return!0}return!t&&(av||sv)&&!pv})),REJECTION_EVENT:pv,SUBCLASSING:fv},dv={},vv=Ae,gv=TypeError,yv=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw gv("Bad Promise constructor");t=e,r=n})),this.resolve=vv(t),this.reject=vv(r)};dv.f=function(e){return new yv(e)};var mv,_v,bv=xr,wv=Oh,Sv=o,Ev=I,kv=vo,Pv=zo,Tv=Lh,Rv=Ae,xv=R,Ov=ee,Mv=jh,Av=qh,Iv=Sd.set,Cv=Yd,Lv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(Ej){}},Dv=$d,Fv=Od,jv=ni,Nv=Jd,Uv=hv,Vv=dv,zv="Promise",Bv=Uv.CONSTRUCTOR,Wv=Uv.REJECTION_EVENT,Kv=jv.getterFor(zv),Hv=jv.set,qv=Nv&&Nv.prototype,Gv=Nv,Xv=qv,Yv=Sv.TypeError,$v=Sv.document,Jv=Sv.process,Qv=Vv.f,Zv=Qv,eg=!!($v&&$v.createEvent&&Sv.dispatchEvent),tg="unhandledrejection",rg=function(e){var t;return!(!Ov(e)||!xv(t=e.then))&&t},ng=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&lg(t),t.rejection=1),!0===s?r=i:(c&&c.enter(),r=s(i),c&&(c.exit(),o=!0)),r===e.promise?u(Yv("Promise-chain cycle")):(n=rg(r))?Ev(n,r,l,u):l(r)):u(i)}catch(Ej){c&&!o&&c.exit(),u(Ej)}},og=function(e,t){e.notified||(e.notified=!0,Cv((function(){for(var r,n=e.reactions;r=n.get();)ng(r,e);e.notified=!1,t&&!e.rejection&&ag(e)})))},ig=function(e,t,r){var n,o;eg?((n=$v.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Sv.dispatchEvent(n)):n={promise:t,reason:r},!Wv&&(o=Sv["on"+e])?o(n):e===tg&&Lv("Unhandled promise rejection",r)},ag=function(e){Ev(Iv,Sv,(function(){var t,r=e.facade,n=e.value;if(sg(e)&&(t=Dv((function(){wv?Jv.emit("unhandledRejection",n,r):ig(tg,r,n)})),e.rejection=wv||sg(e)?2:1,t.error))throw t.value}))},sg=function(e){return 1!==e.rejection&&!e.parent},lg=function(e){Ev(Iv,Sv,(function(){var t=e.facade;wv?Jv.emit("rejectionHandled",t):ig("rejectionhandled",t,e.value)}))},ug=function(e,t,r){return function(n){e(t,n,r)}},cg=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,og(e,!0))},fg=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Yv("Promise can't be resolved itself");var n=rg(t);n?Cv((function(){var r={done:!1};try{Ev(n,t,ug(fg,r,e),ug(cg,r,e))}catch(Ej){cg(r,Ej,e)}})):(e.value=t,e.state=1,og(e,!1))}catch(Ej){cg({done:!1},Ej,e)}}};Bv&&(Xv=(Gv=function(e){Mv(this,Xv),Rv(e),Ev(mv,this);var t=Kv(this);try{e(ug(fg,t),ug(cg,t))}catch(Ej){cg(t,Ej)}}).prototype,(mv=function(e){Hv(this,{type:zv,done:!1,notified:!1,parent:!1,reactions:new Fv,rejection:!1,state:0,value:void 0})}).prototype=kv(Xv,"then",(function(e,t){var r=Kv(this),n=Qv(Av(this,Gv));return r.parent=!0,n.ok=!xv(e)||e,n.fail=xv(t)&&t,n.domain=wv?Jv.domain:void 0,0==r.state?r.reactions.add(n):Cv((function(){ng(n,r)})),n.promise})),_v=function(){var e=new mv,t=Kv(e);this.promise=e,this.resolve=ug(fg,t),this.reject=ug(cg,t)},Vv.f=Qv=function(e){return e===Gv||undefined===e?new _v(e):Zv(e)}),bv({global:!0,constructor:!0,wrap:!0,forced:Bv},{Promise:Gv}),Pv(Gv,zv,!1,!0),Tv(zv);var pg=pt("iterator"),hg=!1;try{var dg=0,vg={next:function(){return{done:!!dg++}},return:function(){hg=!0}};vg[pg]=function(){return this},Array.from(vg,(function(){throw 2}))}catch(Ej){}var gg=function(e,t){if(!t&&!hg)return!1;var r=!1;try{var n={};n[pg]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(Ej){}return r},yg=Jd,mg=hv.CONSTRUCTOR||!gg((function(e){yg.all(e).then(void 0,(function(){}))})),_g=I,bg=Ae,wg=dv,Sg=$d,Eg=ah;xr({target:"Promise",stat:!0,forced:mg},{all:function(e){var t=this,r=wg.f(t),n=r.resolve,o=r.reject,i=Sg((function(){var r=bg(t.resolve),i=[],a=0,s=1;Eg(e,(function(e){var l=a++,u=!1;s++,_g(r,t,e).then((function(e){u||(u=!0,i[l]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var kg=xr,Pg=hv.CONSTRUCTOR;Jd&&Jd.prototype,kg({target:"Promise",proto:!0,forced:Pg,real:!0},{catch:function(e){return this.then(void 0,e)}});var Tg=I,Rg=Ae,xg=dv,Og=$d,Mg=ah;xr({target:"Promise",stat:!0,forced:mg},{race:function(e){var t=this,r=xg.f(t),n=r.reject,o=Og((function(){var o=Rg(t.resolve);Mg(e,(function(e){Tg(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Ag=I,Ig=dv;xr({target:"Promise",stat:!0,forced:hv.CONSTRUCTOR},{reject:function(e){var t=Ig.f(this);return Ag(t.reject,void 0,e),t.promise}});var Cg=rr,Lg=ee,Dg=dv,Fg=function(e,t){if(Cg(e),Lg(t)&&t.constructor===e)return t;var r=Dg.f(e);return(0,r.resolve)(t),r.promise},jg=xr,Ng=Jd,Ug=hv.CONSTRUCTOR,Vg=Fg,zg=ae("Promise"),Bg=!Ug;jg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Vg(Bg&&this===zg?Ng:this,e)}});var Wg=I,Kg=Ae,Hg=dv,qg=$d,Gg=ah;xr({target:"Promise",stat:!0,forced:mg},{allSettled:function(e){var t=this,r=Hg.f(t),n=r.resolve,o=r.reject,i=qg((function(){var r=Kg(t.resolve),o=[],i=0,a=1;Gg(e,(function(e){var s=i++,l=!1;a++,Wg(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var Xg=I,Yg=Ae,$g=ae,Jg=dv,Qg=$d,Zg=ah,ey="No one promise resolved";xr({target:"Promise",stat:!0,forced:mg},{any:function(e){var t=this,r=$g("AggregateError"),n=Jg.f(t),o=n.resolve,i=n.reject,a=Qg((function(){var n=Yg(t.resolve),a=[],s=0,l=1,u=!1;Zg(e,(function(e){var c=s++,f=!1;l++,Xg(n,t,e).then((function(e){f||u||(u=!0,o(e))}),(function(e){f||u||(f=!0,a[c]=e,--l||i(new r(a,ey)))}))})),--l||i(new r(a,ey))}));return a.error&&i(a.value),n.promise}});var ty=xr,ry=Jd,ny=i,oy=ae,iy=R,ay=qh,sy=Fg,ly=ry&&ry.prototype;ty({target:"Promise",proto:!0,real:!0,forced:!!ry&&ny((function(){ly.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=ay(this,oy("Promise")),r=iy(e);return this.then(r?function(r){return sy(t,e()).then((function(){return r}))}:e,r?function(r){return sy(t,e()).then((function(){throw r}))}:e)}});var uy=te.Promise,cy=dv,fy=$d;xr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=cy.f(this),r=fy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var py=uy,hy=r(py),dy=xr,vy=ii,gy=g([].reverse),yy=[1,2];dy({target:"Array",proto:!0,forced:String(yy)===String(yy.reverse())},{reverse:function(){return vy(this)&&(this.length=this.length),gy(this)}});var my=Ys("Array").reverse,_y=se,by=my,wy=Array.prototype,Sy=function(e){var t=e.reverse;return e===wy||_y(wy,e)&&t===wy.reverse?by:t},Ey=r(Sy),ky=xr,Py=ii,Ty=Ei,Ry=ee,xy=Fr,Oy=zr,My=J,Ay=eo,Iy=pt,Cy=ls,Ly=qs("slice"),Dy=Iy("species"),Fy=Array,jy=Math.max;ky({target:"Array",proto:!0,forced:!Ly},{slice:function(e,t){var r,n,o,i=My(this),a=Oy(i),s=xy(e,a),l=xy(void 0===t?a:t,a);if(Py(i)&&(r=i.constructor,(Ty(r)&&(r===Fy||Py(r.prototype))||Ry(r)&&null===(r=r[Dy]))&&(r=void 0),r===Fy||void 0===r))return Cy(i,s,l);for(n=new(void 0===r?Fy:r)(jy(l-s,0)),o=0;s<l;s++,o++)s in i&&Ay(n,o,i[s]);return n.length=o,n}});var Ny=Ys("Array").slice,Uy=se,Vy=Ny,zy=Array.prototype,By=function(e){var t=e.slice;return e===zy||Uy(zy,e)&&t===zy.slice?Vy:t},Wy=r(By);function Ky(){Ky=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Vc||function(e,t,r){e[t]=r.value},o="function"==typeof xf?xf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Vc(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(R){l=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=np(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}e.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};l(v,i,(function(){return this}));var g=sp&&sp(sp(P([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=np(v);function m(e){var t;pc(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var l=c(e[n],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Xf(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(l.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){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=c(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 o=c(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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]),Ml(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],pc(e).call(e,S,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:T}}function T(){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 lp?lp(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=np(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,o,i){void 0===i&&(i=hy);var a=new _(u(t,r,n,o),i);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,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Ml(r).call(r,n);return Ey(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,k.prototype={constructor:k,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,pc(t=this.tryEntries).call(t,E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Wy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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 o=n.arg;E(r)}return o}}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 Hy(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(Ej){return void r(Ej)}s.done?t(l):hy.resolve(l).then(n,o)}function qy(e){return function(){var t=this,r=arguments;return new hy((function(n,o){var i=e.apply(t,r);function a(e){Hy(i,n,o,a,s,"next",e)}function s(e){Hy(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Gy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xy(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),Vc(e,Jf(n.key),n)}}function Yy(e,t,r){return t&&Xy(e.prototype,t),r&&Xy(e,r),Vc(e,"prototype",{writable:!1}),e}function $y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jy=Qe,Qy=I,Zy=ee,em=rr,tm=function(e){return void 0!==e&&(Jy(e,"value")||Jy(e,"writable"))},rm=x,nm=ql;xr({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return em(t)===i?t[r]:(n=rm.f(t,r))?tm(n)?n.value:void 0===n.get?void 0:Qy(n.get,i):Zy(o=nm(t))?e(o,r,i):void 0}});var om=r(te.Reflect.get),im=g,am=Ae,sm=ee,lm=Qe,um=ls,cm=a,fm=Function,pm=im([].concat),hm=im([].join),dm={},vm=cm?fm.bind:function(e){var t=am(this),r=t.prototype,n=um(arguments,1),o=function(){var r=pm(n,um(arguments));return this instanceof o?function(e,t,r){if(!lm(dm,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";dm[t]=fm("C,a","return new C("+hm(n,",")+")")}return dm[t](e,r)}(t,r.length,r):t.apply(e,r)};return sm(r)&&(o.prototype=r),o},gm=vm;xr({target:"Function",proto:!0,forced:Function.bind!==gm},{bind:gm});var ym=Ys("Function").bind,mm=se,_m=ym,bm=Function.prototype,wm=function(e){var t=e.bind;return e===bm||mm(bm,e)&&t===bm.bind?_m:t},Sm=r(wm);function Em(e){var t;return(Em=lp?Sm(t=sp).call(t):function(e){return e.__proto__||sp(e)})(e)}function km(){var e;"undefined"!=typeof Reflect&&om?km=Sm(e=om).call(e):km=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Em(e)););return e}(e,t);if(n){var o=fl(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return km.apply(this,arguments)}function Pm(e,t){var r;return(Pm=lp?Sm(r=lp).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function Tm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=np(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Vc(e,"prototype",{writable:!1}),t&&Pm(e,t)}var Rm=xr,xm=f,Om=vm,Mm=zh,Am=rr,Im=ee,Cm=qn,Lm=i,Dm=ae("Reflect","construct"),Fm=Object.prototype,jm=[].push,Nm=Lm((function(){function e(){}return!(Dm((function(){}),[],e)instanceof e)})),Um=!Lm((function(){Dm((function(){}))})),Vm=Nm||Um;Rm({target:"Reflect",stat:!0,forced:Vm,sham:Vm},{construct:function(e,t){Mm(e),Am(t);var r=arguments.length<3?e:Mm(arguments[2]);if(Um&&!Nm)return Dm(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 xm(jm,n,t),new(xm(Om,e,n))}var o=r.prototype,i=Cm(Im(o)?o:Fm),a=xm(e,i,t);return Im(a)?a:i}});var zm=r(te.Reflect.construct);function Bm(){if("undefined"==typeof Reflect||!zm)return!1;if(zm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(zm(Boolean,[],(function(){}))),!0}catch(vT){return!1}}function Wm(e){var t=Bm();return function(){var r,n=Em(e);if(t){var o=Em(this).constructor;r=zm(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $y(e)}(this,r)}}xr({target:"Array",stat:!0},{isArray:ii});var Km=te.Array.isArray,Hm=r(Km);function qm(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 Gm=Dp,Xm=r(Gm),Ym=rr,$m=qp,Jm=$t,Qm=I,Zm=Ye,e_=function(e,t,r,n){try{return n?t(Ym(r)[0],r[1]):t(r)}catch(Ej){$m(e,"throw",Ej)}},t_=Op,r_=Ei,n_=zr,o_=eo,i_=Bp,a_=Dp,s_=Array,l_=function(e){var t=Zm(e),r=r_(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Jm(o,n>2?arguments[2]:void 0));var a,s,l,u,c,f,p=a_(t),h=0;if(!p||this===s_&&t_(p))for(a=n_(t),s=r?new this(a):s_(a);a>h;h++)f=i?o(t[h],h):t[h],o_(s,h,f);else for(c=(u=i_(t,p)).next,s=r?new this:[];!(l=Qm(c,u)).done;h++)f=i?e_(u,o,[l.value,h],!0):l.value,o_(s,h,f);return s.length=h,s},u_=l_;xr({target:"Array",stat:!0,forced:!gg((function(e){Array.from(e)}))},{from:u_});var c_=te.Array.from,f_=r(c_);function p_(e,t){var r;if(e){if("string"==typeof e)return qm(e,t);var n=Wy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?f_(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qm(e,t):void 0}}function h_(e){return function(e){if(Hm(e))return qm(e)}(e)||function(e){if(void 0!==xf&&null!=Xm(e)||null!=e["@@iterator"])return f_(e)}(e)||p_(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 d_,v_=Ys("Array").concat,g_=se,y_=v_,m_=Array.prototype,__=r((function(e){var t=e.concat;return e===m_||g_(m_,e)&&t===m_.concat?y_:t})),b_=window.VePlayer.error,w_=b_.VeError,S_=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}(S_||{});b_.Level;var E_=ep(ep({},S_),b_.ErrorCode),k_=ep(ep({},b_.ERROR_INFO),{},(Qf(d_={},210,{messageTextKey:"INVALID_PARAMETER",level:b_.Level.Fatal}),Qf(d_,211,{messageTextKey:"EMPTY_RTM_FALLBACK_PARAMETER",level:b_.Level.Warn}),Qf(d_,220,{messageTextKey:"INVALID_LOGGER",level:b_.Level.Warn}),d_));function P_(e,t){return new w_(ep({errorCode:e},k_[e]),t)}var T_=r(wm),R_="\t\n\v\f\r                 \u2028\u2029\ufeff",x_=X,O_=bn,M_=R_,A_=g("".replace),I_=RegExp("^["+M_+"]+"),C_=RegExp("(^|[^"+M_+"])["+M_+"]+$"),L_=function(e){return function(t){var r=O_(x_(t));return 1&e&&(r=A_(r,I_,"")),2&e&&(r=A_(r,C_,"$1")),r}},D_={start:L_(1),end:L_(2),trim:L_(3)},F_=o,j_=i,N_=g,U_=bn,V_=D_.trim,z_=R_,B_=F_.parseInt,W_=F_.Symbol,K_=W_&&W_.iterator,H_=/^[+-]?0x/i,q_=N_(H_.exec),G_=8!==B_(z_+"08")||22!==B_(z_+"0x16")||K_&&!j_((function(){B_(Object(K_))}))?function(e,t){var r=V_(U_(e));return B_(r,t>>>0||(q_(H_,r)?16:10))}:B_;xr({global:!0,forced:parseInt!=G_},{parseInt:G_});var X_,Y_=r(te.parseInt),$_="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,J_=o,Q_=f,Z_=R,eb=$_,tb=le,rb=ls,nb=Xh,ob=J_.Function,ib=/MSIE .\./.test(tb)||eb&&((X_=J_.Bun.version.split(".")).length<3||0==X_[0]&&(X_[1]<3||3==X_[1]&&0==X_[2])),ab=function(e,t){var r=t?2:1;return ib?function(n,o){var i=nb(arguments.length,1)>r,a=Z_(n)?n:ob(n),s=i?rb(arguments,r):[],l=i?function(){Q_(a,this,s)}:a;return t?e(l,o):e(l)}:e},sb=xr,lb=o,ub=ab(lb.setInterval,!0);sb({global:!0,bind:!0,forced:lb.setInterval!==ub},{setInterval:ub});var cb=xr,fb=o,pb=ab(fb.setTimeout,!0);cb({global:!0,bind:!0,forced:fb.setTimeout!==pb},{setTimeout:pb});var hb=r(te.setTimeout),db=r(By),vb=NaN,gb="[object Symbol]",yb=/^\s+|\s+$/g,mb=/^[-+]0x[0-9a-f]+$/i,_b=/^0b[01]+$/i,bb=/^0o[0-7]+$/i,wb=Y_,Sb="object"==Xf(t)&&t&&t.Object===Object&&t,Eb="object"==("undefined"==typeof self?"undefined":Xf(self))&&self&&self.Object===Object&&self,kb=Sb||Eb||Function("return this")(),Pb=Object.prototype.toString,Tb=Math.max,Rb=Math.min,xb=function(){return kb.Date.now()};function Ob(e){var t=Xf(e);return!!e&&("object"==t||"function"==t)}function Mb(e){return"symbol"==Xf(e)||function(e){return!!e&&"object"==Xf(e)}(e)&&Pb.call(e)==gb}function Ab(e){if("number"==typeof e)return e;if(Mb(e))return vb;if(Ob(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ob(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(yb,"");var r=_b.test(e);return r||bb.test(e)?wb(db(e).call(e,2),r?2:8):mb.test(e)?vb:+e}var Ib=function(e,t,r){var n,o,i,a,s,l,u=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-u>=i}function v(){var e=xb();if(d(e))return g(e);s=hb(v,function(e){var r=t-(e-l);return f?Rb(r,i-(e-u)):r}(e))}function g(e){return s=void 0,p&&n?h(e):(n=o=void 0,a)}function y(){var e=xb(),r=d(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return u=e,s=hb(v,t),c?h(e):a}(l);if(f)return s=hb(v,t),h(l)}return void 0===s&&(s=hb(v,t)),a}return t=Ab(t)||0,Ob(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Tb(Ab(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(xb())},y},Cb=r(Ib),Lb=ep(ep({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function Db(){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 Fb=window.VePlayer.Plugin,jb=window.VePlayer.Sniffer,Nb=window.VePlayer.XGEvents,Ub=Fb.POSITIONS,Vb=function(e){Tm(r,e);var t=Wm(r);function r(){return Gy(this,r),t.apply(this,arguments)}return Yy(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Db,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(Lb.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(Nb.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=Cb(T_(e=this._handleRefresh).call(e,this),200);var t="mobile"===jb.device?"touchend":"click";T_(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:Ub.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(Fb),zb=r(Uc),Bb=r(sn),Wb=r(zs),Kb=r(el),Hb=r(cl),qb=r(fc),Gb=r(Ec),Xb=r(Ac),Yb=r(Rf),$b=r(qf),Jb=r(mo.f("asyncIterator")),Qb=xr,Zb=qr.indexOf,ew=tc,tw=E([].indexOf),rw=!!tw&&1/tw([1],1,-0)<0;Qb({target:"Array",proto:!0,forced:rw||!ew("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return rw?tw(this,e,t)||0:Zb(this,e,t)}});var nw=Ys("Array").indexOf,ow=se,iw=nw,aw=Array.prototype,sw=function(e){var t=e.indexOf;return e===aw||ow(aw,e)&&t===aw.indexOf?iw:t},lw=r(sw),uw=r(sw),cw=xr,fw=Date,pw=g(fw.prototype.getTime);cw({target:"Date",stat:!0},{now:function(){return pw(new fw)}});var hw=r(te.Date.now),dw=i,vw=pt("iterator"),gw=!dw((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[vw]||"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})),yw=vo,mw=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:yw(e,n,t[n],r);return e},_w=ao,bw=Math.floor,ww=function(e,t){var r=e.length,n=bw(r/2);return r<8?Sw(e,t):Ew(e,ww(_w(e,0,n),t),ww(_w(e,n),t),t)},Sw=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Ew=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},kw=ww,Pw=xr,Tw=o,Rw=I,xw=g,Ow=O,Mw=gw,Aw=vo,Iw=yo,Cw=mw,Lw=zo,Dw=uu,Fw=ni,jw=jh,Nw=R,Uw=Qe,Vw=$t,zw=yn,Bw=rr,Ww=ee,Kw=bn,Hw=qn,qw=U,Gw=Bp,Xw=Dp,Yw=Xh,$w=kw,Jw=pt("iterator"),Qw="URLSearchParams",Zw=Qw+"Iterator",eS=Fw.set,tS=Fw.getterFor(Qw),rS=Fw.getterFor(Zw),nS=Object.getOwnPropertyDescriptor,oS=function(e){if(!Ow)return Tw[e];var t=nS(Tw,e);return t&&t.value},iS=oS("fetch"),aS=oS("Request"),sS=oS("Headers"),lS=aS&&aS.prototype,uS=sS&&sS.prototype,cS=Tw.RegExp,fS=Tw.TypeError,pS=Tw.decodeURIComponent,hS=Tw.encodeURIComponent,dS=xw("".charAt),vS=xw([].join),gS=xw([].push),yS=xw("".replace),mS=xw([].shift),_S=xw([].splice),bS=xw("".split),wS=xw("".slice),SS=/\+/g,ES=Array(4),kS=function(e){return ES[e-1]||(ES[e-1]=cS("((?:%[\\da-f]{2}){"+e+"})","gi"))},PS=function(e){try{return pS(e)}catch(Ej){return e}},TS=function(e){var t=yS(e,SS," "),r=4;try{return pS(t)}catch(Ej){for(;r;)t=yS(t,kS(r--),PS);return t}},RS=/[!'()~]|%20/g,xS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},OS=function(e){return xS[e]},MS=function(e){return yS(hS(e),RS,OS)},AS=Dw((function(e,t){eS(this,{type:Zw,iterator:Gw(tS(e).entries),kind:t})}),"Iterator",(function(){var e=rS(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&&(Ww(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===dS(e,0)?wS(e,1):e:Kw(e)))};IS.prototype={type:Qw,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,l=Xw(e);if(l)for(r=(t=Gw(e,l)).next;!(n=Rw(r,t)).done;){if(i=(o=Gw(Bw(n.value))).next,(a=Rw(i,o)).done||(s=Rw(i,o)).done||!Rw(i,o).done)throw fS("Expected sequence with length 2");gS(this.entries,{key:Kw(a.value),value:Kw(s.value)})}else for(var u in e)Uw(e,u)&&gS(this.entries,{key:u,value:Kw(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=bS(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=bS(t,"="),gS(this.entries,{key:TS(mS(r)),value:TS(vS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],gS(r,MS(e.key)+"="+MS(e.value));return vS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var CS=function(){jw(this,LS);var e=eS(this,new IS(arguments.length>0?arguments[0]:void 0));Ow||(this.length=e.entries.length)},LS=CS.prototype;if(Cw(LS,{append:function(e,t){Yw(arguments.length,2);var r=tS(this);gS(r.entries,{key:Kw(e),value:Kw(t)}),Ow||this.length++,r.updateURL()},delete:function(e){Yw(arguments.length,1);for(var t=tS(this),r=t.entries,n=Kw(e),o=0;o<r.length;)r[o].key===n?_S(r,o,1):o++;Ow||(this.length=r.length),t.updateURL()},get:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=[],o=0;o<t.length;o++)t[o].key===r&&gS(n,t[o].value);return n},has:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Yw(arguments.length,1);for(var r,n=tS(this),o=n.entries,i=!1,a=Kw(e),s=Kw(t),l=0;l<o.length;l++)(r=o[l]).key===a&&(i?_S(o,l--,1):(i=!0,r.value=s));i||gS(o,{key:a,value:s}),Ow||(this.length=o.length),n.updateURL()},sort:function(){var e=tS(this);$w(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=tS(this).entries,n=Vw(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new AS(this,"keys")},values:function(){return new AS(this,"values")},entries:function(){return new AS(this,"entries")}},{enumerable:!0}),Aw(LS,Jw,LS.entries,{name:"entries"}),Aw(LS,"toString",(function(){return tS(this).serialize()}),{enumerable:!0}),Ow&&Iw(LS,"size",{get:function(){return tS(this).entries.length},configurable:!0,enumerable:!0}),Lw(CS,Qw),Pw({global:!0,constructor:!0,forced:!Mw},{URLSearchParams:CS}),!Mw&&Nw(sS)){var DS=xw(uS.has),FS=xw(uS.set),jS=function(e){if(Ww(e)){var t,r=e.body;if(zw(r)===Qw)return t=e.headers?new sS(e.headers):new sS,DS(t,"content-type")||FS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Hw(e,{body:qw(0,Kw(r)),headers:qw(0,t)})}return e};if(Nw(iS)&&Pw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return iS(e,arguments.length>1?jS(arguments[1]):{})}}),Nw(aS)){var NS=function(e){return jw(this,lS),new aS(e,arguments.length>1?jS(arguments[1]):{})};lS.constructor=NS,NS.prototype=lS,Pw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:NS})}}var US={URLSearchParams:CS,getState:tS},VS=r(te.URLSearchParams),zS=ee,BS=b,WS=pt("match"),KS=function(e){var t;return zS(e)&&(void 0!==(t=e[WS])?!!t:"RegExp"==BS(e))},HS=TypeError,qS=function(e){if(KS(e))throw HS("The method doesn't accept regular expressions");return e},GS=pt("match"),XS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[GS]=!1,"/./"[e](t)}catch(Ej){}}return!1},YS=xr,$S=E;x.f;var JS=Ur,QS=bn,ZS=qS,eE=X,tE=XS,rE=$S("".startsWith),nE=$S("".slice),oE=Math.min;YS({target:"String",proto:!0,forced:!tE("startsWith")},{startsWith:function(e){var t=QS(eE(this));ZS(e);var r=JS(oE(arguments.length>1?arguments[1]:void 0,t.length)),n=QS(e);return rE?rE(t,n,r):nE(t,r,r+n.length)===n}});var iE=Ys("String").startsWith,aE=se,sE=iE,lE=String.prototype,uE=r((function(e){var t=e.startsWith;return"string"==typeof e||e===lE||aE(lE,e)&&t===lE.startsWith?sE:t})),cE=G_;xr({target:"Number",stat:!0,forced:Number.parseInt!=cE},{parseInt:cE});var fE=r(te.Number.parseInt),pE=O,hE=g,dE=I,vE=i,gE=nn,yE=po,mE=C,_E=Ye,bE=K,wE=Object.assign,SE=Object.defineProperty,EE=hE([].concat),kE=!wE||vE((function(){if(pE&&1!==wE({b:1},wE(SE({},"a",{enumerable:!0,get:function(){SE(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!=wE({},e)[r]||gE(wE({},t)).join("")!=n}))?function(e,t){for(var r=_E(e),n=arguments.length,o=1,i=yE.f,a=mE.f;n>o;)for(var s,l=bE(arguments[o++]),u=i?EE(gE(l),i(l)):gE(l),c=u.length,f=0;c>f;)s=u[f++],pE&&!dE(a,l,s)||(r[s]=l[s]);return r}:wE,PE=kE;xr({target:"Object",stat:!0,arity:2,forced:Object.assign!==PE},{assign:PE});var TE=r(te.Object.assign),RE=te,xE=f;RE.JSON||(RE.JSON={stringify:JSON.stringify});var OE=function(e,t,r){return xE(RE.JSON.stringify,null,arguments)},ME=r(OE),AE=f,IE=J,CE=Ir,LE=zr,DE=tc,FE=Math.min,jE=[].lastIndexOf,NE=!!jE&&1/[1].lastIndexOf(1,-0)<0,UE=DE("lastIndexOf"),VE=NE||!UE?function(e){if(NE)return AE(jE,this,arguments)||0;var t=IE(this),r=LE(t),n=r-1;for(arguments.length>1&&(n=FE(n,CE(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:jE;xr({target:"Array",proto:!0,forced:VE!==[].lastIndexOf},{lastIndexOf:VE});var zE=Ys("Array").lastIndexOf,BE=se,WE=zE,KE=Array.prototype,HE=r((function(e){var t=e.lastIndexOf;return e===KE||BE(KE,e)&&t===KE.lastIndexOf?WE:t})),qE=r(py),GE=o,XE=i,YE=bn,$E=D_.trim,JE=R_,QE=g("".charAt),ZE=GE.parseFloat,ek=GE.Symbol,tk=ek&&ek.iterator,rk=1/ZE(JE+"-0")!=-1/0||tk&&!XE((function(){ZE(Object(tk))}))?function(e){var t=$E(YE(e)),r=ZE(t);return 0===r&&"-"==QE(t,0)?-0:r}:ZE,nk=rk;xr({target:"Number",stat:!0,forced:Number.parseFloat!=nk},{parseFloat:nk});var ok=r(te.Number.parseFloat),ik=qr.includes;xr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return ik(this,e,arguments.length>1?arguments[1]:void 0)}});var ak=Ys("Array").includes,sk=xr,lk=qS,uk=X,ck=bn,fk=XS,pk=g("".indexOf);sk({target:"String",proto:!0,forced:!fk("includes")},{includes:function(e){return!!~pk(ck(uk(this)),ck(lk(e)),arguments.length>1?arguments[1]:void 0)}});var hk=Ys("String").includes,dk=se,vk=ak,gk=hk,yk=Array.prototype,mk=String.prototype,_k=r((function(e){var t=e.includes;return e===yk||dk(yk,e)&&t===yk.includes?vk:"string"==typeof e||e===mk||dk(mk,e)&&t===mk.includes?gk:t})),bk=r(te.setInterval);function wk(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),zb(e,n.key,n)}}function Sk(e,t,r){return t&&wk(e.prototype,t),r&&wk(e,r),e}function Ek(e,t,r){return t in e?zb(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kk(e,t){var r=Bb(e);if(Wb){var n=Wb(e);t&&(n=Kb(n).call(n,(function(t){return Hb(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pk(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)qb(r=kk(Object(n),!0)).call(r,(function(t){Ek(e,t,n[t])}));else if(Gb)Xb(e,Gb(n));else{var o;qb(o=kk(Object(n))).call(o,(function(t){zb(e,t,Hb(n,t))}))}}return e}void 0===Yb||($b||(Yb.iterator=Yb("Symbol.iterator"))),void 0===Yb||(Jb||(Yb.asyncIterator=Yb("Symbol.asyncIterator")));var Tk="xgplayer_device_id",Rk="xgplayer_user_id",xk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,i=t[r];if(uw(o=t[r]).call(o,e)>=0)return i.split("=")[1]||null}},Ok=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},Mk=function(){var e=xk(Tk);if(e)return e;var t=Ok(11);return document.cookie=Tk+"="+t+";max-age=31536000;path=/",t},Ak=function(){var e=xk(Rk);if(e)return e;var t=Ok(12);return document.cookie=Rk+"="+t+";max-age=31536000;path=/",t};var Ik={get device(){return Ik.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:uw(e).call(e,"chrome")>-1&&uw(e).call(e,"safari")>-1,Firefox:uw(e).call(e,"firefox")>-1,Opera:uw(e).call(e,"opera")>-1,Safari:uw(e).call(e,"safari")>-1&&-1==uw(e).call(e,"chrome"),Edge:uw(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var i in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[i].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);o=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var u=e.match(/version\/([\d.]+)/);o=u?u[1]:"-1"}else if("Edge"===n){var c=e.match(/edge\/([\d.]+)/);o=c?c[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);o=f?f[1]:"-1"}t.type=n,t.versions=Y_(o)}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),o=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!i;return{isTablet:i,isPhone:a,isAndroid:n,isPc:!(a||n||r||i),isSymbian:r,isWindowsPhone:t,isFireFox:o}},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 Ck(){return hw()}function Lk(e){var t="unknown";return"string"!=typeof e?t:uw(e).call(e,".flv")>-1?"flv":uw(e).call(e,".m3u8")>-1?"m3u8":uw(e).call(e,".mp4")>-1?"mp4":uw(e).call(e,".sdp")>-1?"rts":t}function Dk(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function Fk(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.flvlive)return e.plugins.flvlive;if(e.plugins.hlslive)return e.plugins.hlslive;if(e.plugins.hlsvod)return e.plugins.hlsvod;if(e.plugins.hlslivemobile)return e.plugins.hlslivemobile;if(e.plugins.flvlivemobile)return e.plugins.flvlivemobile}return e.newHls||e.newFlv||e.__core__||e.flv}var jk={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Nk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=T_(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}Sk(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&&uE(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new VS(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=Lk(e.cdn_play_url),e.timestamp=Ck();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(Ej){}return e}(),n=r.cpu_core_number,o=r.memory_usage,i=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=i,e.muted=+this._player.muted,TE(e,Pk({},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,Pk({},e)))},e}(),Uk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||Ik.device:"none":"unknown";var e},Vk=["play","playing","pause","ended","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],zk=function(){function e(e){var t;this.options=e,this.logger=new Bk(e),this.restart=T_(t=this.restart).call(t,this),this.bindUrlChange()}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Bk(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=TE(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.sendLog=function(e){this.logger.sendLog(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}(),Bk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=TE({},e,function(e){return{device_id:e.device_id||Mk(),user_id:e.user_id||Ak(),error_report_stop:"boolean"!=typeof e.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?hw()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Nk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={},this.cachePlaying={}}Sk(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 hw()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=hw()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,i,a,s,l,u,c,f,p,h,d,v;this.handlePlayerComlete=T_(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=T_(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=T_(r=this.destroyFunc).call(r,this),this.handleUserLeave=T_(n=this.handleUserLeave).call(n,this),this.handlePlayerError=T_(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=T_(i=this.handlePlayerReady).call(i,this),this.handlePlayerWaiting=T_(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=T_(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=T_(l=this.handlePlayerPause).call(l,this),this.handleTTFB=T_(u=this.handleTTFB).call(u,this),this.handleUrlChange=T_(c=this.handleUrlChange).call(c,this),this.handleKeyframe=T_(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=T_(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=T_(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=T_(d=this.handleCoreEvent).call(d,this),this.handleDegrade=T_(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=Pk({os:Ik.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return Pk({project_key:e.project_key,live_sdk_version:Fk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.17",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:Ok(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,isSupportedH265:Dk("hev1.1.6.L93.B0,mp4a.40.2"),aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+hw(),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:Ik.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:hw(),play_current_time:0,cdn_play_url:r.config.url&&uE(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:Lk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=TE({},{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 o=this;for(var i in this.log){var a=function(t){zb(e.log[i],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&zb(this.log[i],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?db(e).call(e,0,25e4):""}return""},enumerable:!0}),zb(this.log[i],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),zb(this.log[i],"access",{get:function(){return Uk()},enumerable:!0})}},t.sendLog=function(e){for(var t in this.commonParams)void 0===e[t]&&(e[t]=this["_"+t]||this.commonParams[t]);this.logmanager.push(e)},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=Fk(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=Ck(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===Ik.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===Ik.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;qb(Vk).call(Vk,(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,o=e.type,i=e.meta,a=e.sei,s=e.decodeFps,l=e.url,u=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var c=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),c&&(this.commonParams.cdn_ip=c);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,i);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(TE(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=Ck(),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(TE({url:l,state:u},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,db(Array.prototype).call(e,0))}catch(vT){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed,o=t.responseUrl,i=t.url;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0,this.log.first_frame.is_redirect=+(i!==o),this.log.play_result.is_redirect=this.log.first_frame.is_redirect},t.handleUrlChange=function(e){this.logmanager.push(TE(this.log.play_url_change,{url:e,timestamp:Ck()}))},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=Ck(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=Ck(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=Ck(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;TE(this.log.play_error,Pk({timestamp:Ck(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:ME(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(TE(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=Ck()),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))),this.options.error_report_stop?this.destroy(!0):this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=Ck(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=Ck(),TE(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){try{var t=this,r=t.log,n=r.playing,o=r.first_frame,i=function(){if(100===e.code){var r=function(e){var t,r,n,o,i,a;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:i=e[r++],t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e[r++],a=e[r++],t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t}(e.content);r=db(r).call(r,uw(r).call(r,"{"),HE(r).call(r,"}")+1);var i=function(e,t){try{var r=e()}catch(vT){return t(vT)}return r&&r.then?r.then(void 0,t):r}((function(){var e=JSON.parse(r);return qE.resolve(t.getPlayerBuffer()).then((function(r){var i=r+t.ntpTime-e.ts;n.sei_delay=i,n.sei_source=e.source,n.ntp_sync=t.options.ntp?1:0,n.ntp_delta=t.ntp_delta,o.first_sei_delay=i,o.ntp_sync=t.options.ntp?1:0,o.ntp_delta=t.ntp_delta}))}),(function(){}));if(i&&i.then)return i.then((function(){}))}}();return qE.resolve(i&&i.then?i.then((function(){})):void 0)}catch(vT){return qE.reject(vT)}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=Ck(),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=Dk(t.codec))),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){TE(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=Ck(),this.logmanager.push(this.log.play_av_unsync)},t.handleStreamException=function(e){this.logmanager.push(TE({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=Fk(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(){try{var e=this;return qE.resolve(e.getRtcStats({onlyJb:!0})).then((function(t){if(void 0!==t.video_jb_delay)return t.video_jb_delay;var r=e.player.video.buffered;if(r){var n=Math.max(0,r.length-1);try{var o=fE(1e3*(r.end(n)-e.player.video.currentTime));return e.log.playing.audio_buffer_time=e.log.playing.video_buffer_time=o,o}catch(vT){return 0}}}))}catch(vT){return qE.reject(vT)}},t.getTransferCost=function(e){var t;if(!(null===(t=this.core)||void 0===t?void 0:t.transferCost))return{};if(e)return this.core.transferCost;var r=this.core.transferCost,n=r.demuxCost,o=r.remuxCost,i=r.appendCost,a={demuxCost:n-this.cachePlaying.demuxCost,remuxCost:o-this.cachePlaying.remuxCost,appendCost:i-this.cachePlaying.appendCost};return TE(this.cachePlaying,this.core.transferCost),a},t.getPlayerDownloadSpeed=function(){return this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo&&this.core.core.speedInfo().speed||{}},t.getPlayerQuality=function(){var e=this.player.video;if(e)if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=ok((t.droppedVideoFrames-this.tempDroppedFrameCount)/(t.totalVideoFrames-this.tempTotalFrameCount)).toFixed(1),this.log.play_stop.drop_percent=ok(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){var t=e.duration,r=void 0===t?1e3:t,n=e.onlyJb,o=void 0!==n&&n;try{var i=this,a=i.player.plugins.rts||i.player.plugins.rtm,s=a&&a.pc,l={};return s?qE.resolve(s.getStats()).then((function(e){return qb(e).call(e,(function(e){var t=e.type,n=e.mediaType,a=e.bytesReceived,s=e.packetsReceived,u=e.audioLevel,c=e.concealmentEvents,f=e.remoteTimestamp,p=e.timestamp,h=e.framesDropped,d=e.keyFramesDecoded,v=e.totalDecodeTime,g=e.framesDecoded,y=e.frameHeight,m=e.frameWidth,_=e.framesReceived,b=e.jitterBufferDelay,w=e.jitterBufferEmittedCount,S=e.jitter,E=e.nackCount,k=e.packetsLost,P=e.pliCount,T=e.totalSamplesReceived,R=e.concealedSamples,x=e.currentRoundTripTime,O=e.decoderImplementation,M=e.mimeType,A=e.freezeCount,I=e.totalFreezesDuration,C=e.totalPausesDuration;switch(t){case"inbound-rtp":if("audio"===n)l.audio_bytes_received=a-(i.cacheRtcStats.audioBytesReceived||0),i.cacheRtcStats.audioBytesReceived=a,l.audio_packets_lost=k-(i.cacheRtcStats.audioPacketsLost||0),l.audio_packets_received=s-(i.cacheRtcStats.audioPacketsReceived||0),i.cacheRtcStats.audioPacketsLost=k,i.cacheRtcStats.audioPacketsReceived=s,l.audio_level=u,l.concealment_event=c,l.audio_fraction_lost=l.audio_packets_lost/l.audio_packets_received,void 0!==i.cacheRtcStats.totalSamplesReceived&&(l.audio_rec_sample_rate=(T-i.cacheRtcStats.totalSamplesReceived)/r),i.cacheRtcStats.totalSamplesReceived=T,l.concealed_samples=R,l.total_samples_received=T;else{if(l.video_jb_delay=b/w*1e3,o)return l;l.frames_dropped=h,l.iframes_decoded=d,l.video_bytes_received=a-(i.cacheRtcStats.videoBytesReceived||0),i.cacheRtcStats.videoBytesReceived=a,l.video_dec_time=v,l.video_decoded_delay_ms=l.video_dec_elapse/g,l.video_frame_height=y,l.video_frame_width=m,void 0!==i.cacheRtcStats.framesDecoded&&(l.video_decode_framerate=(g-i.cacheRtcStats.framesDecoded)/r),i.cacheRtcStats.framesDecoded=g,void 0!==i.cacheRtcStats.framesReceived&&(l.video_recv_framerate=(_-i.cacheRtcStats.framesReceived)/r),void 0!==i.cacheRtcStats.freezeCount&&(l.freeze_count=A-i.cacheRtcStats.freezeCount,l.freeze_duration=I-i.cacheRtcStats.totalFreezesDuration),i.cacheRtcStats.freezeCount=A,i.cacheRtcStats.totalFreezesDuration=I,i.cacheRtcStats.framesReceived=_,l.total_pauses_duration=C,l.video_jitter=1e3*S,l.video_nack_count=E,l.video_packets_lost=k-(i.cacheRtcStats.videoPacketsLost||0),l.video_packets_received=s-(i.cacheRtcStats.videoPacketsReceived||0),l.video_fraction_lost=l.video_packets_lost/l.video_packets_received,i.cacheRtcStats.videoPacketsLost=k,i.cacheRtcStats.videoPacketsReceived=s,l.video_pli_count=P,l.decoder_name=O}break;case"remote-outbound-rtp":l.e2e_delay_ms=p-f;break;case"track":void 0!==m&&(l.video_frame_width=m,l.video_frame_height=y);break;case"candidate-pair":l.rtt=1e3*x;break;case"codec":_k(M).call(M,"video")?l.video_codec=M:l.audio_codec=n}})),TE(i.log.playing,{video_download_size:l.video_bytes_received,decode_fps:l.video_decode_framerate,width:l.video_frame_width,height:l.video_frame_height,current_speed:(l.audio_bytes_received+l.video_bytes_received)/r}),l})):qE.resolve(l)}catch(vT){return qE.reject(vT)}},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<Ck()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,Ck()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer();var o=t.getTransferCost(!1);if(!t.options.downloadSpeedInterval){var i=t.getPlayerDownloadSpeed(),a=i.speed,s=i.avgSpeed;t.log.playing.current_speed=a,t.log.playing.avg_speed=s}var l=Ck(),u=l-n,c=(r>200?r:0)+t.log.playing.stall_time,f=(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)),TE(t.log.playing,Pk(Pk({timestamp:l,stop_time:l,duration:e?0:u/1e3,stall_time_per_100sec:c/u*100,stall_count_per_100sec:1e3*f/u*100,stall_count:f,stall_time:c,play_current_time:t.player.currentTime},o),t.videoSize)),qE.resolve(t.getRtcStats({duration:u,first:e,onlyJb:!1})).then((function(r){var n={};if(t.core){if(t.core.getStats){var o=t.core.getStats()||{},i=o.bitrate,a=o.avgSpeed;TE(n,{bitrate:i,avg_speed:a,rate:a/i})}if(t.core.getNetWorkInfo){var s,l=(t.core.getNetWorkInfo()||{}).lostRate,c=((null===(s=t.core.core)||void 0===s?void 0:s._opts)||{}).networkEvaluateInterval;TE(n,{lostRate:l,networkEvaluateInterval:c})}}t.logmanager.push(TE({},t.log.playing,Pk(Pk({play_time:e?0:u},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(vT){return qE.reject(vT)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return qE.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),!e.player.video)return e.destroyFunc(),qE.resolve();if(e.player.paused)return e.handleVideopause(),qE.resolve();if(e.core&&e.core.getStats){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return qE.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=bk((function(){try{var r=function(){if(Math.abs(hw()-e.log.playing.timestamp-t)<100||hw()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return qE.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 qE.resolve(r&&r.then?r.then((function(){})):void 0)}catch(vT){return qE.reject(vT)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(vT){return qE.reject(vT)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=Ck(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=Ck(),this.playResultTimer=hb((function(){e.log.play_result.timestamp>=e.log.play_result.start||e.player&&!e.player.paused&&e.player.video&&(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;if(!this.inWaitingStart&&this.log.first_frame.timestamp){this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=Ck(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=Ck(),this.log.stall_start.stall_start_time=Ck(),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;var t=this.getPlayerDownloadSpeed(),r=t.speed,n=t.avgSpeed;this.log.stall.current_speed=r,this.log.stall.avg_speed=n,TE(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=hb((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=Ck();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=Ck();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=Ck(),this.log.playing.stall_count++,TE(this.log.stall,Pk({},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(),TE(this.log.playing,{is_last:1}),this.reportPlaying()},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;TE(this.log.play_error,Pk(Pk({timestamp:Ck()},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=jk[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=Ck()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=jk[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"===Ik.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&window.removeEventListener("pagehide",this.handleUserLeave),qb(Vk).call(Vk,(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.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null)},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?qE.resolve():(e.destroyed=!0,qE.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(vT){return qE.reject(vT)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(Ej){}},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(Ej){}},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)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core&&this.core.getStats){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}var t=this.getTransferCost(!0);this.firstFrameViewed=!0;var r=Ck();TE(this.log.first_frame,Pk(Pk({first_frame_view:r-this.log.start_play.start_play_time||r,timestamp:r},t),this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=r-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){TE(i,Pk({timestamp:o,stop_time:o,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(i.play_time_on_no_frame=i.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=Kb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:fE(n.domainLookupEnd-n.domainLookupStart),redirect:fE(n.redirectEnd-n.redirectStart),ttfb:fE(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),o=Ck();r.playedTime=o-r.log.start_play.start_play_time;var i=r.log.play_stop;if(TE(i,Pk({},0===i.stall_count&&{stall_time:0})),r.inWaitingStart&&o-r.inWaitingStart>200&&(i.stall_time+=o-r.inWaitingStart),r.inWaitingStart=0,TE(i,Pk({stall_time_per_100sec:i.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*i.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 qE.resolve();if(r.log.playing.index?(TE(r.log.playing,{is_last:1}),r.reportPlaying()):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),o=Ck(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;TE(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var u=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return qE.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;TE(i,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return qE.resolve(u&&u.then?u.then(t):t())}catch(vT){return qE.reject(vT)}},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}(),Wk=r(Gm),Kk=Re,Hk=TypeError,qk=function(e,t){if(!delete e[t])throw Hk("Cannot delete property "+Kk(t)+" of "+Kk(e))},Gk=xr,Xk=Ye,Yk=Fr,$k=Ir,Jk=zr,Qk=gl,Zk=ml,eP=Mi,tP=eo,rP=qk,nP=qs("splice"),oP=Math.max,iP=Math.min;Gk({target:"Array",proto:!0,forced:!nP},{splice:function(e,t){var r,n,o,i,a,s,l=Xk(this),u=Jk(l),c=Yk(e,u),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=u-c):(r=f-2,n=iP(oP($k(t),0),u-c)),Zk(u+r-n),o=eP(l,n),i=0;i<n;i++)(a=c+i)in l&&tP(o,i,l[a]);if(o.length=n,r<n){for(i=c;i<u-n;i++)s=i+r,(a=i+n)in l?l[s]=l[a]:rP(l,s);for(i=u;i>u-n+r;i--)rP(l,i-1)}else if(r>n)for(i=u-n;i>c;i--)s=i+r-1,(a=i+n-1)in l?l[s]=l[a]:rP(l,s);for(i=0;i<r;i++)l[i+c]=arguments[i+2];return Qk(l,u-n+r),o}});var aP=Ys("Array").splice,sP=se,lP=aP,uP=Array.prototype,cP=r((function(e){var t=e.splice;return e===uP||sP(uP,e)&&t===uP.splice?lP:t}));xr({global:!0,forced:parseFloat!=rk},{parseFloat:rk});var fP=r(te.parseFloat),pP=jl.PROPER,hP=i,dP=R_,vP=D_.trim;xr({target:"String",proto:!0,forced:function(e){return hP((function(){return!!dP[e]()||"​…᠎"!=="​…᠎"[e]()||pP&&dP[e].name!==e}))}("trim")},{trim:function(){return vP(this)}});var gP=Ys("String").trim,yP=se,mP=gP,_P=String.prototype,bP=r((function(e){var t=e.trim;return"string"==typeof e||e===_P||yP(_P,e)&&t===_P.trim?mP:t})),wP=r(rp),SP=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),EP={exports:{}},kP=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),PP=i,TP=ee,RP=b,xP=kP,OP=Object.isExtensible,MP=PP((function(){OP(1)}))||xP?function(e){return!!TP(e)&&((!xP||"ArrayBuffer"!=RP(e))&&(!OP||OP(e)))}:OP,AP=xr,IP=g,CP=Gr,LP=ee,DP=Qe,FP=Jt.f,jP=Gn,NP=$n,UP=MP,VP=SP,zP=!1,BP=nt("meta"),WP=0,KP=function(e){FP(e,BP,{value:{objectID:"O"+WP++,weakData:{}}})},HP=EP.exports={enable:function(){HP.enable=function(){},zP=!0;var e=jP.f,t=IP([].splice),r={};r[BP]=1,e(r).length&&(jP.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===BP){t(n,o,1);break}return n},AP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NP.f}))},fastKey:function(e,t){if(!LP(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DP(e,BP)){if(!UP(e))return"F";if(!t)return"E";KP(e)}return e[BP].objectID},getWeakData:function(e,t){if(!DP(e,BP)){if(!UP(e))return!0;if(!t)return!1;KP(e)}return e[BP].weakData},onFreeze:function(e){return VP&&zP&&UP(e)&&!DP(e,BP)&&KP(e),e}};CP[BP]=!0;var qP=EP.exports,GP=xr,XP=SP,YP=i,$P=ee,JP=qP.onFreeze,QP=Object.freeze;GP({target:"Object",stat:!0,forced:YP((function(){QP(1)})),sham:!XP},{freeze:function(e){return QP&&$P(e)?QP(JP(e)):e}});var ZP=r(te.Object.freeze),eT=Ni.map;xr({target:"Array",proto:!0,forced:!qs("map")},{map:function(e){return eT(this,e,arguments.length>1?arguments[1]:void 0)}});var tT,rT=Ys("Array").map,nT=se,oT=rT,iT=Array.prototype,aT=r((function(e){var t=e.map;return e===iT||nT(iT,e)&&t===iT.map?oT:t})),sT=r(Km),lT=function(){return lT=TE||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lT.apply(this,arguments)};function uT(e,t){var r="function"==typeof Yb&&Wk(e);if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function cT(){for(var e=[],t=0;t<arguments.length;t++)e=__(e).call(e,uT(arguments[t]));return e}var fT,pT,hT,dT,vT,gT=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(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=uw(r=this._hooks[e]).call(r,t);-1!==o&&cP(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==uw(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&&qb(r=cT(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===uw(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),yT=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},mT=(fT=+hw()+Number(db(tT=""+Math.random()).call(tT,2,8)),function(){return fT+=1}),_T=function(e){var t=document.createElement("a");return t.href=e,t},bT=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?_T(r).hostname:"";!function(e){var t={};try{var r,n=_T(e).search;qb(r=(n=db(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(i){t[r]=n}}))}catch(o){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",i=this.browser(),a=this.os();return{browser:i.browser,browser_version:i.browser_version,platform:o,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=""+fP(this.appVersion),o=this.userAgent;return-1!==uw(o).call(o,"Edge")||-1!==uw(o).call(o,"Edg")?(r="Microsoft Edge",-1!==uw(o).call(o,"Edge")?(e=uw(o).call(o,"Edge"),n=o.substring(e+5)):(e=uw(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=uw(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=uw(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=uw(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==uw(o).call(o,"MQQBrowser")||-1!==uw(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==uw(o).call(o,"MQQBrowser")?(e=uw(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==uw(o).call(o,"QQBrowser")&&(e=uw(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==uw(o).call(o,"Chrome")?-1!==(e=uw(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=uw(o).call(o,"360"))?(r="360browser",n=o.substring(uw(o).call(o,"Chrome")+7)):-1!==uw(o).call(o,"baidubrowser")||-1!==uw(o).call(o,"BIDUBrowser")?(-1!==uw(o).call(o,"baidubrowser")?(e=uw(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==uw(o).call(o,"BIDUBrowser")&&(e=uw(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=uw(o).call(o,"xiaomi"))?-1!==uw(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=uw(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=uw(o).call(o,"Chrome"))||-1!==(e=uw(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==uw(o).call(o,"Safari")?-1!==(e=uw(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=uw(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=uw(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=uw(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=uw(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=uw(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=uw(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=uw(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=uw(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=uw(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=uw(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 o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var i,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?db(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]+)/,i=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,i)),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)qb(r=navigator.userAgent.split(";")).call(r,(function(e){uw(e).call(e,"Build/")>-1&&(t=db(e).call(e,0,uw(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 (",""),o=uw(n).call(n,";");t=db(n).call(n,0,o)}}catch(i){return bP(t).call(t)}return bP(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),wT=(pT=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 o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},n,i)).expires&&(i.expires=new Date(hw()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+a}}return wP({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var i=t[o].split("="),a=db(i).call(i,1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){o(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:ZP(n)},converter:{value:ZP(r)}})}({read:function(e){return'"'===e[0]&&(e=db(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:"/"})}()},pT(hT={exports:{}}),hT.exports),ST=wT,ET=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}(),kT={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:ME(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return ST.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,i=+new Date+r;ST.set(e,t,{expires:new Date(i),path:"/",domain:o})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(vT){return!1}}()},PT={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:ME(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(vT){return!1}}()},TT=function(){function e(e,t){this._storage=t&&"session"===t?PT:!e&&kT.isSupportLS?kT:new ET}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}(),RT={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},xT=void 0,OT=(new Date).getTimezoneOffset(),MT=Y_(""+-OT/60,10),AT=60*OT,IT=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new bT(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new TT(!1,"session"),this.localStorage=new TT(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:xT,user_type:xT,user_id:xT,user_is_auth:xT,user_is_login:xT,device_id:xT,web_id:xT,user_unique_id_type:xT},header:{app_id:xT,app_name:xT,app_install_id:xT,install_id:xT,app_package:xT,app_channel:xT,app_version:xT,ab_version:xT,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:xT,traffic_type:xT,client_ip:xT,device_brand:xT,os_api:xT,access:xT,language:r.language,region:xT,app_language:xT,app_region:xT,creative_id:xT,ad_id:xT,campaign_id:xT,log_type:xT,rnd:xT,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:xT,city:xT,timezone:MT,tz_offset:AT,tz_name:xT,sim_region:xT,carrier:xT,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:xT,utm_content:xT,utm_source:xT,utm_medium:xT,utm_campaign:xT,custom:{},wechat_unionid:xT,wechat_openid:xT}},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,o=[];r=r<=25?r:r%25;var i=String.fromCharCode(r+97);n=e.split(i);for(var a=0;a<n.length;a++){var s=Y_(n[a],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)}(RT[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;qb(t=Bb(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=lT({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=lT({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?uw(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(ME(this.envInfo[e])):JSON.parse(ME(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(vT=dT||(dT={})).Init="init",vT.Config="config",vT.Start="start",vT.Ready="ready",vT.TokenComplete="token-complete",vT.TokenStorage="token-storage",vT.TokenFetch="token-fetch",vT.TokenError="token-error",vT.ConfigUuid="config-uuid",vT.TokenChange="token-change",vT.TokenReset="token-reset",vT.SessionReset="session-reset",vT.SessionResetTime="session-reset-time",vT.Event="event",vT.Events="events",vT.EventNow="event-now",vT.CleanEvents="clean-events",vT.BeconEvent="becon-event";var CT=dT;function LT(e,t,r,n,o,i,a,s,l){try{var u=new XMLHttpRequest,c=s||"POST";u.open(c,""+e,!0),u.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(u.timeout=r,u.ontimeout=function(){i&&i(t,5005)}),u.onload=function(){if(o){var e=null;if(u.responseText){try{e=JSON.parse(u.responseText)}catch(r){e={}}o(e,t)}}},u.onerror=function(){u.abort(),i&&i(t,500)},l?u.send(t):u.send(ME(t))}catch(f){}}var DT,FT=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 TT(!0),this.localStorage=new TT(!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(CT.Ready,(function(){r.reportAll(!1)})),this.collect.on(CT.Event,(function(e){r.event(e)})),this.collect.on(CT.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=cT(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=hb((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(o){}},e.prototype.beconEvent=function(e){var t=cT(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=db(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=ME(n.custom);var i=this.configManager.get("evtParams"),a=aT(e).call(e,(function(e){try{return Bb(i).length&&(e.params=lT({},i,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=ME(e.params),e}catch(vT){return e}})),s=[];if(!Bb(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(ME({events:a,user:o,header:n}));return l.local_time=Math.floor(hw()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return aT(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&qb(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,i=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,ME(o))||s(n,o):LT(n,o,i,0,a,s,0,"",false)}catch(l){console.warn("something error, "+ME(l.stack))}var n,o,i,a,s}))},e}(),jT=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},NT=function(){var e;return db(e=jT().replace(/-/g,"")).call(e,0,19)},UT=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 TT(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(CT.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=NT();LT(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=hw(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(CT.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===uw(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=hw(),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=hw(),this.setStorage(this.cacheToken)),this.collect.emit(CT.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}(),VT=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)}))},zT=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new TT(!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(CT.SessionReset,(function(){r.resetSessionId()})),this.collect.on(CT.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;hw()-t>this.expireTime?e={sessionId:VT(),timestamp:hw()}:e.timestamp=hw(),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=hw():t={sessionId:VT(),timestamp:hw()},this.storage.setItem(this.sessionKey,t),this.sessionExp=bk((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=bk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:VT(),timestamp:hw()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&hw()-e.timestamp+30>=this.expireTime&&(e={sessionId:VT(),timestamp:hw()},this.storage.setItem(this.sessionKey,e))},e}(),BT=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 gT,this.Types=CT,this.adapters.fetch=LT,this.adapters.storage=TT}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&yT(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!==uw(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 IT(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new FT,this.tokenManager=new UT,this.sessionManager=new zT,qE.all([new qE((function(e){n.once(CT.TokenComplete,(function(){e(!0)}))})),new qE((function(e){n.once(CT.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(CT.Ready),console.info("appid: "+e.app_id+", userInfo:"+ME(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(CT.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&&yT(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=lT({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&uw(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Wb){var o=0;for(n=Wb(e);o<n.length;o++)uw(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(CT.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(CT.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];sT(e)?qb(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(CT.Event,n),this.emit(CT.SessionResetTime))}catch(o){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(sT(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(CT.BeconEvent,r),this.emit(CT.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=db(e).call(e,6));var n=t;"object"!=Xf(n)&&(n={}),n.event_index=mT();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(i){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:hw(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=lT({},t,e);this.event("predefine_pageview",r)},e}(),WT=new BT("default"),KT=new Uint8Array(16);function HT(){var e;if(!DT&&!(DT="undefined"!=typeof crypto&&crypto.getRandomValues&&T_(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return DT(KT)}for(var qT,GT=[],XT=0;XT<256;++XT){var YT;GT.push(db(YT=(XT+256).toString(16)).call(YT,1))}var $T={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&T_(qT=crypto.randomUUID).call(qT,crypto)};function JT(e,t,r){if($T.randomUUID&&!t&&!e)return $T.randomUUID();var n=(e=e||{}).random||(e.rng||HT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return GT[e[t+0]]+GT[e[t+1]]+GT[e[t+2]]+GT[e[t+3]]+"-"+GT[e[t+4]]+GT[e[t+5]]+"-"+GT[e[t+6]]+GT[e[t+7]]+"-"+GT[e[t+8]]+GT[e[t+9]]+"-"+GT[e[t+10]]+GT[e[t+11]]+GT[e[t+12]]+GT[e[t+13]]+GT[e[t+14]]+GT[e[t+15]]}(n)}var QT=window.VePlayer.util,ZT="veplayer_live_device_id",eR="veplayer_live_user_id",tR=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},rR=function(e){var t=QT.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:QT.appendSearchParams(e,{_session_id:nR()}):null!=e?e:""},nR=function(){return JT().replace(/-/g,"")+"."+hw()+"."+function(e){for(var t=0,r=0,n=(e+="").length,o=0;o<n;o++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(JT().replace(/-/g,""))},oR=function(e){Tm(r,e);var t=Wm(r);function r(){var e,n;Gy(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Qf($y(n=t.call.apply(t,__(e=[this]).call(e,i))),"_liveLogger",void 0),n}return Yy(r,[{key:"beforeCreate",value:function(e){var t,r,n,o;e.config.enable&&(e.config.userId=(null===(t=e.config)||void 0===t?void 0:t.userId)||((n=localStorage.getItem(eR))||(n=tR(12),localStorage.setItem(eR,n),n)),e.config.deviceId=(null===(r=e.config)||void 0===r?void 0:r.deviceId)||((o=localStorage.getItem(ZT))||(o=tR(11),localStorage.setItem(ZT,o),o)))}},{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==WT?void 0:WT.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){WT.init({app_id:468759,channel:"cn"}),WT.start(),WT.config({user_unique_id:this.config.userId,device_id:this.config.deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new zk({Tea:WT,player:this.player,aid:this.config.appId||654925,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this.config.userId,device_id:this.config.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.32"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:654925,enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function iR(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var aR=window.VePlayer.util,sR=window.VePlayer.Plugin,lR=window.VePlayer.XGUtil,uR=function(e){Tm(r,e);var t=Wm(r);function r(){var e,n;Gy(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Qf($y(n=t.call.apply(t,__(e=[this]).call(e,i))),"_pollTimer",void 0),Qf($y(n),"_visible",void 0),Qf($y(n),"_playPlugin",void 0),n}return Yy(r,[{key:"_streamType",get:function(){return aR.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Lb.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Lb.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_k(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(Lb.LOADED_DATA,(function(){return e.open()})),this.player.off(Lb.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=hb((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,o,i=this._getStats()||{},a="".concat(this._streamType,"_live"),s=this._playPlugin.softDecode,l=[(e=ep(ep({},i),{},{format:a}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:iR(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:iR(e.bitrate,(function(e){return"".concat((e/1e3).toFixed(2)," kbps")}))},{key:"gop",labelTextKey:"GOP",value:iR(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:__(r="".concat(iR(e.width)," * ")).call(r,iR(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:iR(Number(null===(o=e.bufferEnd)||void 0===o?void 0:o.toFixed(2)))},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:iR(e.currentTime,(function(e){return e.toFixed(4)+"s"}))}]})];return s&&l.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:iR(e.decodeFps,(function(e){return e+" frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:iR(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),l}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",qb(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,i=t.rows,a=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=a.getText(o))&&void 0!==s?s:n);e.appendChild(l)}qb(i).call(i,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=lR.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=lR.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=lR.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=lR.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=lR.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(sR),cR="https://www.volcengine.com/docs/6469/138655#日志上报",fR=ep(ep({},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(cR," 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"}),pR=ep(ep({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",INVALID_LOGGER:"未正确配置质量日志参数, 请参考 ".concat(cR," 配置"),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:"刷新"}),hR=Ni.some;xr({target:"Array",proto:!0,forced:!tc("some")},{some:function(e){return hR(this,e,arguments.length>1?arguments[1]:void 0)}});var dR=Ys("Array").some,vR=se,gR=dR,yR=Array.prototype,mR=r((function(e){var t=e.some;return e===yR||vR(yR,e)&&t===yR.some?gR:t})),_R={"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]"},bR=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}(bR||{}),wR=function(){function e(t){var r=this;Gy(this,e),Qf(this,"modules",{}),Qf(this,"mountPromiseMap",{}),Qf(this,"_baseUrl",void 0),Qf(this,"_moduleSystem",void 0),Qf(this,"load",function(){var e=qy(Ky().mark((function e(t,n){var o,i,a,s,l;return Ky().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(_R[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 i=r.modules[t].exports,e.abrupt("return",null!==(o=i.default)&&void 0!==o?o:i);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,_R[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)}}()),Qf(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)})),Qf(this,"register",(function(e){return aT(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return Yy(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 qE((function(r,n){var o=document.createElement("script");o.src=e.src,o.onload=function(){e.state=1,r(t[e.name].exports),o.onload=null},o.onerror=function(t){e.state=2,e.error=t,n(t),o.onerror=null},document.body.appendChild(o)}))}}]),e}(),SR=xr,ER=Ni.find,kR="find",PR=!0;kR in[]&&Array(1)[kR]((function(){PR=!1})),SR({target:"Array",proto:!0,forced:PR},{find:function(e){return ER(this,e,arguments.length>1?arguments[1]:void 0)}});var TR=Ys("Array").find,RR=se,xR=TR,OR=Array.prototype,MR=r((function(e){var t=e.find;return e===OR||RR(OR,e)&&t===OR.find?xR:t})),AR=Ys("Array").keys,IR=yn,CR=Qe,LR=se,DR=AR,FR=Array.prototype,jR={DOMTokenList:!0,NodeList:!0},NR=r((function(e){var t=e.keys;return e===FR||LR(FR,e)&&t===FR.keys||CR(jR,IR(e))?DR:t})),UR=r(c_),VR=r(Yf);function zR(e){return(zR="function"==typeof Yb&&"symbol"==typeof $b?function(e){return typeof e}:function(e){return e&&"function"==typeof Yb&&e.constructor===Yb&&e!==Yb.prototype?"symbol":typeof e})(e)}function BR(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),zb(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Xf(e)||null===e)return e;var r=e[VR];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Xf(i)?i:String(i)),n)}var o,i}function WR(e){return function(e){if(sT(e))return KR(e)}(e)||function(e){if(void 0!==Yb&&null!=Wk(e)||null!=e["@@iterator"])return UR(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return KR(e,t);var n=db(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return UR(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KR(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 KR(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 HR=Ir,qR=bn,GR=X,XR=RangeError,YR=g,$R=Ur,JR=bn,QR=X,ZR=YR((function(e){var t=qR(GR(this)),r="",n=HR(e);if(n<0||n==1/0)throw XR("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),ex=YR("".slice),tx=Math.ceil,rx=function(e){return function(t,r,n){var o,i,a=JR(QR(t)),s=$R(r),l=a.length,u=void 0===n?" ":JR(n);return s<=l||""==u?a:((i=ZR(u,tx((o=s-l)/u.length))).length>o&&(i=ex(i,0,o)),e?a+i:i+a)}},nx={start:rx(!1),end:rx(!0)},ox=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),ix=nx.start;xr({target:"String",proto:!0,forced:ox},{padStart:function(e){return ix(this,e,arguments.length>1?arguments[1]:void 0)}});var ax=Ys("String").padStart,sx=se,lx=ax,ux=String.prototype,cx=r((function(e){var t=e.padStart;return"string"==typeof e||e===ux||sx(ux,e)&&t===ux.padStart?lx:t})),fx=Ni.every;xr({target:"Array",proto:!0,forced:!tc("every")},{every:function(e){return fx(this,e,arguments.length>1?arguments[1]:void 0)}});var px=Ys("Array").every,hx=se,dx=px,vx=Array.prototype,gx=r((function(e){var t=e.every;return e===vx||hx(vx,e)&&t===vx.every?dx:t})),yx=le.match(/firefox\/(\d+)/i),mx=!!yx&&+yx[1],_x=/MSIE|Trident/.test(le),bx=le.match(/AppleWebKit\/(\d+)\./),wx=!!bx&&+bx[1],Sx=xr,Ex=g,kx=Ae,Px=Ye,Tx=zr,Rx=qk,xx=bn,Ox=i,Mx=kw,Ax=tc,Ix=mx,Cx=_x,Lx=ve,Dx=wx,Fx=[],jx=Ex(Fx.sort),Nx=Ex(Fx.push),Ux=Ox((function(){Fx.sort(void 0)})),Vx=Ox((function(){Fx.sort(null)})),zx=Ax("sort"),Bx=!Ox((function(){if(Lx)return Lx<70;if(!(Ix&&Ix>3)){if(Cx)return!0;if(Dx)return Dx<603;var e,t,r,n,o="";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++)Fx.push({k:t+n,v:r})}for(Fx.sort((function(e,t){return t.v-e.v})),n=0;n<Fx.length;n++)t=Fx[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Sx({target:"Array",proto:!0,forced:Ux||!Vx||!zx||!Bx},{sort:function(e){void 0!==e&&kx(e);var t=Px(this);if(Bx)return void 0===e?jx(t):jx(t,e);var r,n,o=[],i=Tx(t);for(n=0;n<i;n++)n in t&&Nx(o,t[n]);for(Mx(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:xx(t)>xx(r)?1:-1}}(e)),r=Tx(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)Rx(t,n++);return t}});var Wx,Kx=Ys("Array").sort,Hx=se,qx=Kx,Gx=Array.prototype,Xx=r((function(e){var t=e.sort;return e===Gx||Hx(Gx,e)&&t===Gx.sort?qx:t})),Yx="undefined"!=typeof window&&window.location&&uw(Wx=window.location.href).call(Wx,"xgplayerdebugger=1")>-1,$x="color: #525252; background-color: #90ee90;",Jx="color: #525252; background-color: red;",Qx="color: #525252; background-color: yellow; ",Zx="%c[xgplayer]",eO={config:{debug:Yx?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,__(t=[Zx,$x,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,__(t=[Zx,Qx,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,__(t=[Zx,Jx,e]).call(t,i))}}},tO=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}}])&&BR(t.prototype,r),n&&BR(t,n),zb(t,"prototype",{writable:!1}),e}(),rO={};rO.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]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,qb(e=Bb(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},rO.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 o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&rO.addClass(o,r),t)qb(i=Bb(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return eO.logError("util.createDomFromHtml",a),null}},rO.hasClass=function(e,t){if(!e||!t)return!1;try{return mR(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(vT){var r=e.className&&"object"===zR(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},rO.addClass=function(e,t){if(e&&t)try{var r;qb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(vT){rO.hasClass(e,t)||(e.className&&"object"===zR(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},rO.removeClass=function(e,t){if(e&&t)try{var r;qb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(vT){var n;if(rO.hasClass(e,t))qb(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===zR(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},rO.toggleClass=function(e,t){var r;e&&qb(r=t.split(/\s+/g)).call(r,(function(t){rO.hasClass(e,t)?rO.removeClass(e,t):rO.addClass(e,t)}))},rO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===rO.typeOf(e[r]))t.push(e[r]);else if("Object"===rO.typeOf(e[r])){var n;aT(n=Bb(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},rO.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(vT){eO.logError("util.findDom",vT),0===uw(r).call(r,"#")&&(e=t.getElementById(db(r).call(r,1)))}return e},rO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},rO.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],s=String(e);i--;)a.push(n);return a.join("").substring(0,o-s.length)+s},rO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=cx(rO).call(rO,Math.floor(e/3600),2,0),r=cx(rO).call(rO,Math.floor((e-3600*t)/60),2,0),n=cx(rO).call(rO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},rO.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},rO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},rO.deepCopy=function(e,t){var r;if("Object"===rO.typeOf(t)&&"Object"===rO.typeOf(e))return qb(r=Bb(t)).call(r,(function(r){if("Object"!==rO.typeOf(t[r])||t[r]instanceof Node)if("Array"===rO.typeOf(t[r])){var n;e[r]="Array"===rO.typeOf(e[r])?__(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]:rO.deepCopy(e[r],t[r])})),e},rO.deepMerge=function(e,t){var r;return aT(r=Bb(t)).call(r,(function(r){var n;"Array"===rO.typeOf(t[r])&&"Array"===rO.typeOf(e[r])?"Array"===rO.typeOf(e[r])&&(n=e[r]).push.apply(n,WR(t[r])):rO.typeOf(e[r])!==rO.typeOf(t[r])||null===e[r]||"Object"!==rO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):rO.deepMerge(e[r],t[r])})),e},rO.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},rO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return qb(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},rO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=bk(T_(r).call(r,e),n))},rO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},rO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=hb((function(){t(),rO.clearTimeout(e,n)}),r);return e._timers.push(n),n},rO.clearTimeout=function(e,t){var r=e._timers;if("Array"===rO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){cP(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},rO.clearAllTimers=function(e){var t=e._timers;"Array"===rO.typeOf(t)&&(aT(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},rO.createImgBtn=function(e,t,r,n){var o,i,a,s,l,u,c,f,p,h,d,v,g=rO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(gx(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(uw(r).call(r,e)>-1&&uw(n).call(n,e)>-1)||(c=fP(bP(t=db(r).call(r,0,uw(r).call(r,e))).call(t)),f=fP(bP(o=db(n).call(n,0,uw(n).call(n,e))).call(o)),p=e,!1)})),g.style.width=__(i="".concat(c)).call(i,p),g.style.height=__(a="".concat(f)).call(a,p),g.style.backgroundSize=__(s=__(l=__(u="".concat(c)).call(u,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?__(h=__(d=__(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,c/2)).call(h,p):"auto 5px auto 5px");return g},rO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(Y_(e,16))})),__(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},rO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},rO.checkIsFunction=function(e){return e&&"function"==typeof e},rO.checkIsObject=function(e){return null!==e&&"object"===zR(e)},rO.hide=function(e){e.style.display="none"},rO.show=function(e,t){e.style.display=t||"block"},rO.isUndefined=function(e){if(null==e)return!0},rO.isNotNull=function(e){return!(null==e)},rO.setStyleFromCsstext=function(e,t){if(t)if("String"===rO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");aT(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;aT(n=Bb(t)).call(n,(function(r){e.style[r]=t[r]}))}},rO.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 o=n.replace(/\s+/g,"").split(";"),i={},a={};return aT(o).call(o,(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(uw(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),aT(t=Bb(a)).call(t,(function(t){e.style[t]=a[t]})),i},rO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return aT(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},rO.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}},rO.stopPropagation=function(e){e&&e.stopPropagation()},rO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},rO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},rO.checkTouchSupport=function(){return"ontouchstart"in window},rO.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)});Xx(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var s=o[a-1].end;r[i].start-s<t?r[i].end>s&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new tO(o)},rO.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}},rO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},rO.getHostFromUrl=function(e){if("String"!==rO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},rO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},rO.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},rO.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},rO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Y_(e)}catch(vT){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Y_(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)}))},rO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},rO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},rO.createPositionBar=function(e,t){var r=rO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},rO.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:__(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Bb(n);return qb(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=__(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},rO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},rO.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 o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},rO.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:rO.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,s=i.end,l=i.cTime,u=i.offset;return e<a?l:e>=a&&e<=s?e-u:e>s&&n>=o-1?s:-1},rO.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 o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var nO,oO=/(Android)\s([\d.]+)/,iO=/(Version)\/([\d.]+)/,aO=["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"],sO={get device(){return sO.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 __(e=[]).call(e,Kb(t=Bb(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),o=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=i||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:i,isIos:s||i,isAndroid:n,isPc:!(s||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",r=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?iO:oO)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?Y_(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&&aT(aO).call(aO,(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(Ej){return this._logger.error(e,Ej),!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 qE.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var r=e.video||{},n=e.audio||{};try{var o=MediaSource.isTypeSupported(r.contentType),i=MediaSource.isTypeSupported(n.contentType);return qE.resolve({supported:o&&i,smooth:!1,powerEfficient:!1})}catch(vT){return qE.resolve(t)}}},lO=g,uO=2147483647,cO=/[^\0-\u007E]/,fO=/[.\u3002\uFF0E\uFF61]/g,pO="Overflow: input needs wider integers to process",hO=RangeError,dO=lO(fO.exec),vO=Math.floor,gO=String.fromCharCode,yO=lO("".charCodeAt),mO=lO([].join),_O=lO([].push),bO=lO("".replace),wO=lO("".split),SO=lO("".toLowerCase),EO=function(e){return e+22+75*(e<26)},kO=function(e,t,r){var n=0;for(e=r?vO(e/700):e>>1,e+=vO(e/t);e>455;)e=vO(e/35),n+=36;return vO(n+36*e/(e+38))},PO=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=yO(e,r++);if(o>=55296&&o<=56319&&r<n){var i=yO(e,r++);56320==(64512&i)?_O(t,((1023&o)<<10)+(1023&i)+65536):(_O(t,o),r--)}else _O(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&_O(t,gO(n));var l=t.length,u=l;for(l&&_O(t,"-");u<o;){var c=uO;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<c&&(c=n);var f=u+1;if(c-i>vO((uO-a)/f))throw hO(pO);for(a+=(c-i)*f,i=c,r=0;r<e.length;r++){if((n=e[r])<i&&++a>uO)throw hO(pO);if(n==i){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;_O(t,gO(EO(d+v%g))),p=vO(v/g),h+=36}_O(t,gO(EO(p))),s=kO(a,f,u==l),a=0,u++}}a++,i++}return mO(t,"")},TO=xr,RO=O,xO=gw,OO=o,MO=$t,AO=g,IO=vo,CO=yo,LO=jh,DO=Qe,FO=kE,jO=l_,NO=ao,UO=jf.codeAt,VO=function(e){var t,r,n=[],o=wO(bO(SO(e),fO,"."),".");for(t=0;t<o.length;t++)r=o[t],_O(n,dO(cO,r)?"xn--"+PO(r):r);return mO(n,".")},zO=bn,BO=zo,WO=Xh,KO=US,HO=ni,qO=HO.set,GO=HO.getterFor("URL"),XO=KO.URLSearchParams,YO=KO.getState,$O=OO.URL,JO=OO.TypeError,QO=OO.parseInt,ZO=Math.floor,eM=Math.pow,tM=AO("".charAt),rM=AO(/./.exec),nM=AO([].join),oM=AO(1..toString),iM=AO([].pop),aM=AO([].push),sM=AO("".replace),lM=AO([].shift),uM=AO("".split),cM=AO("".slice),fM=AO("".toLowerCase),pM=AO([].unshift),hM="Invalid scheme",dM="Invalid host",vM="Invalid port",gM=/[a-z]/i,yM=/[\d+-.a-z]/i,mM=/\d/,_M=/^0x/i,bM=/^[0-7]+$/,wM=/^\d+$/,SM=/^[\da-f]+$/i,EM=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kM=/[\0\t\n\r #/:<>?@[\\\]^|]/,PM=/^[\u0000-\u0020]+/,TM=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,RM=/[\t\n\r]/g,xM=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)pM(t,e%256),e=ZO(e/256);return nM(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=oM(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},OM={},MM=FO({},OM,{" ":1,'"':1,"<":1,">":1,"`":1}),AM=FO({},MM,{"#":1,"?":1,"{":1,"}":1}),IM=FO({},AM,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),CM=function(e,t){var r=UO(e,0);return r>32&&r<127&&!DO(t,e)?e:encodeURIComponent(e)},LM={ftp:21,file:null,http:80,https:443,ws:80,wss:443},DM=function(e,t){var r;return 2==e.length&&rM(gM,tM(e,0))&&(":"==(r=tM(e,1))||!t&&"|"==r)},FM=function(e){var t;return e.length>1&&DM(cM(e,0,2))&&(2==e.length||"/"===(t=tM(e,2))||"\\"===t||"?"===t||"#"===t)},jM=function(e){return"."===e||"%2e"===fM(e)},NM={},UM={},VM={},zM={},BM={},WM={},KM={},HM={},qM={},GM={},XM={},YM={},$M={},JM={},QM={},ZM={},eA={},tA={},rA={},nA={},oA={},iA=function(e,t,r){var n,o,i,a=zO(e);if(t){if(o=this.parse(a))throw JO(o);this.searchParams=null}else{if(void 0!==r&&(n=new iA(r,!0)),o=this.parse(a,null,n))throw JO(o);(i=YO(new XO)).bindURL(this),this.searchParams=i}};iA.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,l=this,u=t||NM,c=0,f="",p=!1,h=!1,d=!1;for(e=zO(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=sM(e,PM,""),e=sM(e,TM,"$1")),e=sM(e,RM,""),n=jO(e);c<=n.length;){switch(o=n[c],u){case NM:if(!o||!rM(gM,o)){if(t)return hM;u=VM;continue}f+=fM(o),u=UM;break;case UM:if(o&&(rM(yM,o)||"+"==o||"-"==o||"."==o))f+=fM(o);else{if(":"!=o){if(t)return hM;f="",u=VM,c=0;continue}if(t&&(l.isSpecial()!=DO(LM,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&LM[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?u=JM:l.isSpecial()&&r&&r.scheme==l.scheme?u=zM:l.isSpecial()?u=HM:"/"==n[c+1]?(u=BM,c++):(l.cannotBeABaseURL=!0,aM(l.path,""),u=rA)}break;case VM:if(!r||r.cannotBeABaseURL&&"#"!=o)return hM;if(r.cannotBeABaseURL&&"#"==o){l.scheme=r.scheme,l.path=NO(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,u=oA;break}u="file"==r.scheme?JM:WM;continue;case zM:if("/"!=o||"/"!=n[c+1]){u=WM;continue}u=qM,c++;break;case BM:if("/"==o){u=GM;break}u=tA;continue;case WM:if(l.scheme=r.scheme,o==nO)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query=r.query;else if("/"==o||"\\"==o&&l.isSpecial())u=KM;else if("?"==o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query="",u=nA;else{if("#"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.path.length--,u=tA;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query=r.query,l.fragment="",u=oA}break;case KM:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,u=tA;continue}u=GM}else u=qM;break;case HM:if(u=qM,"/"!=o||"/"!=tM(f,c+1))continue;c++;break;case qM:if("/"!=o&&"\\"!=o){u=GM;continue}break;case GM:if("@"==o){p&&(f="%40"+f),p=!0,i=jO(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=CM(g,IM);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(p&&""==f)return"Invalid authority";c-=jO(f).length+1,f="",u=XM}else f+=o;break;case XM:case YM:if(t&&"file"==l.scheme){u=ZM;continue}if(":"!=o||h){if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==f)return dM;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",u=eA,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return dM;if(a=l.parseHost(f))return a;if(f="",u=$M,t==YM)return}break;case $M:if(!rM(mM,o)){if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||t){if(""!=f){var m=QO(f,10);if(m>65535)return vM;l.port=l.isSpecial()&&m===LM[l.scheme]?null:m,f=""}if(t)return;u=eA;continue}return vM}f+=o;break;case JM:if(l.scheme="file","/"==o||"\\"==o)u=QM;else{if(!r||"file"!=r.scheme){u=tA;continue}if(o==nO)l.host=r.host,l.path=NO(r.path),l.query=r.query;else if("?"==o)l.host=r.host,l.path=NO(r.path),l.query="",u=nA;else{if("#"!=o){FM(nM(NO(n,c),""))||(l.host=r.host,l.path=NO(r.path),l.shortenPath()),u=tA;continue}l.host=r.host,l.path=NO(r.path),l.query=r.query,l.fragment="",u=oA}}break;case QM:if("/"==o||"\\"==o){u=ZM;break}r&&"file"==r.scheme&&!FM(nM(NO(n,c),""))&&(DM(r.path[0],!0)?aM(l.path,r.path[0]):l.host=r.host),u=tA;continue;case ZM:if(o==nO||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&DM(f))u=tA;else if(""==f){if(l.host="",t)return;u=eA}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",u=eA}continue}f+=o;break;case eA:if(l.isSpecial()){if(u=tA,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=nO&&(u=tA,"/"!=o))continue}else l.fragment="",u=oA;else l.query="",u=nA;break;case tA:if(o==nO||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=fM(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||aM(l.path,"")):jM(f)?"/"==o||"\\"==o&&l.isSpecial()||aM(l.path,""):("file"==l.scheme&&!l.path.length&&DM(f)&&(l.host&&(l.host=""),f=tM(f,0)+":"),aM(l.path,f)),f="","file"==l.scheme&&(o==nO||"?"==o||"#"==o))for(;l.path.length>1&&""===l.path[0];)lM(l.path);"?"==o?(l.query="",u=nA):"#"==o&&(l.fragment="",u=oA)}else f+=CM(o,AM);break;case rA:"?"==o?(l.query="",u=nA):"#"==o?(l.fragment="",u=oA):o!=nO&&(l.path[0]+=CM(o,OM));break;case nA:t||"#"!=o?o!=nO&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":CM(o,OM)):(l.fragment="",u=oA);break;case oA:o!=nO&&(l.fragment+=CM(o,MM))}c++}},parseHost:function(e){var t,r,n;if("["==tM(e,0)){if("]"!=tM(e,e.length-1))return dM;if(t=function(e){var t,r,n,o,i,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,p=function(){return tM(e,f)};if(":"==p()){if(":"!=tM(e,1))return;f+=2,c=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=r=0;r<4&&rM(SM,p());)t=16*t+QO(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,u>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!rM(mM,p()))return;for(;rM(mM,p());){if(i=QO(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[u]=256*l[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l}(cM(e,1,-1)),!t)return dM;this.host=t}else if(this.isSpecial()){if(e=VO(e),rM(EM,e))return dM;if(t=function(e){var t,r,n,o,i,a,s,l=uM(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=l[n]))return e;if(i=10,o.length>1&&"0"==tM(o,0)&&(i=rM(_M,o)?16:8,o=cM(o,8==i?1:2)),""===o)a=0;else{if(!rM(10==i?wM:8==i?bM:SM,o))return e;a=QO(o,i)}aM(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=eM(256,5-t))return null}else if(a>255)return null;for(s=iM(r),n=0;n<r.length;n++)s+=r[n]*eM(256,3-n);return s}(e),null===t)return dM;this.host=t}else{if(rM(kM,e))return dM;for(t="",r=jO(e),n=0;n<r.length;n++)t+=CM(r[n],OM);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return DO(LM,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&DM(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=xM(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+nM(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw JO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new aA(e.path[0]).origin}catch(Ej){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+xM(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(zO(e)+":",NM)},getUsername:function(){return this.username},setUsername:function(e){var t=jO(zO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=CM(t[r],IM)}},getPassword:function(){return this.password},setPassword:function(e){var t=jO(zO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=CM(t[r],IM)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?xM(e):xM(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,XM)},getHostname:function(){var e=this.host;return null===e?"":xM(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,YM)},getPort:function(){var e=this.port;return null===e?"":zO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=zO(e))?this.port=null:this.parse(e,$M))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+nM(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eA))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=zO(e))?this.query=null:("?"==tM(e,0)&&(e=cM(e,1)),this.query="",this.parse(e,nA)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=zO(e))?("#"==tM(e,0)&&(e=cM(e,1)),this.fragment="",this.parse(e,oA)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var aA=function(e){var t=LO(this,sA),r=WO(arguments.length,1)>1?arguments[1]:void 0,n=qO(t,new iA(e,!1,r));RO||(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())},sA=aA.prototype,lA=function(e,t){return{get:function(){return GO(this)[e]()},set:t&&function(e){return GO(this)[t](e)},configurable:!0,enumerable:!0}};if(RO&&(CO(sA,"href",lA("serialize","setHref")),CO(sA,"origin",lA("getOrigin")),CO(sA,"protocol",lA("getProtocol","setProtocol")),CO(sA,"username",lA("getUsername","setUsername")),CO(sA,"password",lA("getPassword","setPassword")),CO(sA,"host",lA("getHost","setHost")),CO(sA,"hostname",lA("getHostname","setHostname")),CO(sA,"port",lA("getPort","setPort")),CO(sA,"pathname",lA("getPathname","setPathname")),CO(sA,"search",lA("getSearch","setSearch")),CO(sA,"searchParams",lA("getSearchParams")),CO(sA,"hash",lA("getHash","setHash"))),IO(sA,"toJSON",(function(){return GO(this).serialize()}),{enumerable:!0}),IO(sA,"toString",(function(){return GO(this).serialize()}),{enumerable:!0}),$O){var uA=$O.createObjectURL,cA=$O.revokeObjectURL;uA&&IO(aA,"createObjectURL",MO(uA,$O)),cA&&IO(aA,"revokeObjectURL",MO(cA,$O))}BO(aA,"URL"),TO({global:!0,constructor:!0,forced:!xO,sham:!RO},{URL:aA});var fA=xr,pA=i,hA=Xh,dA=bn,vA=gw,gA=ae("URL");fA({target:"URL",stat:!0,forced:!(vA&&pA((function(){gA.canParse()})))},{canParse:function(e){var t=hA(arguments.length,1),r=dA(e),n=t<2||void 0===arguments[1]?void 0:dA(arguments[1]);try{return!!new gA(r,n)}catch(Ej){return!1}}});var yA=r(te.URL),mA=r(Sy),_A="Expected a function",bA="__lodash_placeholder__",wA=1,SA=2,EA=4,kA=8,PA=16,TA=32,RA=64,xA=128,OA=512,MA=1/0,AA=9007199254740991,IA=17976931348623157e292,CA=NaN,LA=[["ary",xA],["bind",wA],["bindKey",SA],["curry",kA],["curryRight",PA],["flip",OA],["partial",TA],["partialRight",RA],["rearg",256]],DA="[object Function]",FA="[object GeneratorFunction]",jA="[object Symbol]",NA=/^\s+|\s+$/g,UA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VA=/\{\n\/\* \[wrapped with (.+)\] \*/,zA=/,? & /,BA=/^[-+]0x[0-9a-f]+$/i,WA=/^0b[01]+$/i,KA=/^\[object .+?Constructor\]$/,HA=/^0o[0-7]+$/i,qA=/^(?:0|[1-9]\d*)$/,GA=Y_,XA="object"==Xf(t)&&t&&t.Object===Object&&t,YA="object"==("undefined"==typeof self?"undefined":Xf(self))&&self&&self.Object===Object&&self,$A=XA||YA||Function("return this")();function JA(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 QA(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var o=e.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,ZA,r);var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function ZA(e){return e!=e}function eI(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==bA||(e[r]=bA,i[o++]=r)}return i}var tI,rI,nI,oI=Function.prototype,iI=Object.prototype,aI=$A["__core-js_shared__"],sI=(tI=/[^.]+$/.exec(aI&&NR(aI)&&NR(aI).IE_PROTO||""))?"Symbol(src)_1."+tI:"",lI=oI.toString,uI=iI.hasOwnProperty,cI=iI.toString,fI=RegExp("^"+lI.call(uI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pI=wP,hI=Math.max,dI=Math.min,vI=(rI=SI(Object,"defineProperty"),(nI=SI.name)&&nI.length>2?rI:void 0);function gI(e){if(!OI(e)||function(e){return!!sI&&sI in e}(e))return!1;var t=function(e){var t=OI(e)?cI.call(e):"";return t==DA||t==FA}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(vT){}return t}(e)?fI:KA;return t.test(function(e){if(null!=e){try{return lI.call(e)}catch(vT){}try{return e+""}catch(vT){}}return""}(e))}function yI(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=OI(r=e.prototype)?pI(r):{},o=e.apply(n,t);return OI(o)?o:n}}function mI(e,t,r,n,o,i,a,s,l,u){var c=t&xA,f=t&wA,p=t&SA,h=t&(kA|PA),d=t&OA,v=p?void 0:yI(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(h)var b=wI(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 o=-1,i=e.length,a=r.length,s=-1,l=t.length,u=hI(i-a,0),c=Array(l+u),f=!n;++s<l;)c[s]=t[s];for(;++o<a;)(f||o<i)&&(c[r[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}(m,n,o,h)),i&&(m=function(e,t,r,n){for(var o=-1,i=e.length,a=-1,s=r.length,l=-1,u=t.length,c=hI(i-s,0),f=Array(c+u),p=!n;++o<c;)f[o]=e[o];for(var h=o;++l<u;)f[h+l]=t[l];for(;++a<s;)(p||o<i)&&(f[h+r[a]]=e[o++]);return f}(m,i,a,h)),y-=w,h&&y<u){var S=eI(m,b);return _I(e,t,mI,g.placeholder,r,m,S,s,l,u-y)}var E=f?r:this,k=p?E[e]:e;return y=m.length,s?m=function(e,t){var r=e.length,n=dI(t.length,r),o=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 i=t[n];e[n]=PI(i,r)?o[i]:void 0}return e}(m,s):d&&y>1&&mA(m).call(m),c&&l<y&&(m.length=l),this&&this!==$A&&this instanceof g&&(k=v||yI(k)),k.apply(E,m)}}function _I(e,t,r,n,o,i,a,s,l,u){var c=t&kA;t|=c?TA:RA,(t&=~(c?RA:TA))&EA||(t&=~(wA|SA));var f=r(e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u);return f.placeholder=n,TI(f,e,t)}function bI(e,t,r,n,o,i,a,s){var l=t&SA;if(!l&&"function"!=typeof e)throw new TypeError(_A);var u=n?n.length:0;if(u||(t&=~(TA|RA),n=o=void 0),a=void 0===a?a:hI(II(a),0),s=void 0===s?s:II(s),u-=o?o.length:0,t&RA){var c=n,f=o;n=o=void 0}var p=[e,t,r,n,o,c,f,i,a,s];if(e=p[0],t=p[1],r=p[2],n=p[3],o=p[4],!(s=p[9]=null==p[9]?l?0:e.length:hI(p[9]-u,0))&&t&(kA|PA)&&(t&=~(kA|PA)),t&&t!=wA)h=t==kA||t==PA?function(e,t,r){var n=yI(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=wI(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:eI(a,l);return(i-=u.length)<r?_I(e,t,mI,o.placeholder,void 0,a,u,void 0,void 0,r-i):JA(this&&this!==$A&&this instanceof o?n:e,this,a)}}(e,t,s):t!=TA&&t!=(wA|TA)||o.length?mI.apply(void 0,p):function(e,t,r,n){var o=t&wA,i=yI(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=n.length,c=Array(u+s),f=this&&this!==$A&&this instanceof t?i:e;++l<u;)c[l]=n[l];for(;s--;)c[l++]=arguments[++a];return JA(f,o?r:this,c)}}(e,t,r,n);else var h=function(e,t,r){var n=t&wA,o=yI(e);return function t(){return(this&&this!==$A&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return TI(h,e,t)}function wI(e){return e.placeholder}function SI(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return gI(r)?r:void 0}function EI(e){var t=e.match(VA);return t?t[1].split(zA):[]}function kI(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(UA,"{\n/* [wrapped with "+t+"] */\n")}function PI(e,t){return!!(t=null==t?AA:t)&&("number"==typeof e||qA.test(e))&&e>-1&&e%1==0&&e<t}var TI=vI?function(e,t,r){var n,o=t+"";return vI(e,"toString",{configurable:!0,enumerable:!1,value:(n=kI(o,RI(EI(o),r)),function(){return n})})}:function(e){return e};function RI(e,t){return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(LA,(function(r){var n="_."+r[0];t&r[1]&&!QA(e,n)&&e.push(n)})),Xx(e).call(e)}function xI(e,t,r){var n=bI(e,kA,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=xI.placeholder,n}function OI(e){var t=Xf(e);return!!e&&("object"==t||"function"==t)}function MI(e){return"symbol"==Xf(e)||function(e){return!!e&&"object"==Xf(e)}(e)&&cI.call(e)==jA}function AI(e){return e?(e=function(e){if("number"==typeof e)return e;if(MI(e))return CA;if(OI(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=OI(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(NA,"");var r=WA.test(e);return r||HA.test(e)?GA(db(e).call(e,2),r?2:8):BA.test(e)?CA:+e}(e))===MA||e===-MA?(e<0?-1:1)*IA:e==e?e:0:0===e?e:0}function II(e){var t=AI(e),r=t%1;return t==t?r?t-r:t:0}xI.placeholder={};var CI=r(xI),LI=xr,DI=o,FI=qP,jI=i,NI=gr,UI=ah,VI=jh,zI=R,BI=ee,WI=zo,KI=Jt.f,HI=Ni.forEach,qI=O,GI=ni.set,XI=ni.getterFor,YI=qn,$I=yo,JI=mw,QI=$t,ZI=jh,eC=H,tC=ah,rC=Du,nC=Fu,oC=Lh,iC=O,aC=qP.fastKey,sC=ni.set,lC=ni.getterFor,uC={getConstructor:function(e,t,r,n){var o=e((function(e,o){ZI(e,i),sC(e,{type:t,index:YI(null),first:void 0,last:void 0,size:0}),iC||(e.size=0),eC(o)||tC(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=lC(t),s=function(e,t,r){var n,o,i=a(e),s=l(e,t);return s?s.value=r:(i.last=s={index:o=aC(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),iC?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},l=function(e,t){var r,n=a(e),o=aC(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return JI(i,{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,iC?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=l(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),iC?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=QI(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)}}),JI(i,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)}}),iC&&$I(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=lC(t),i=lC(n);rC(e,t,(function(e,t){sC(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(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)?nC("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,nC(void 0,!0))}),r?"entries":"values",!r,!0),oC(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=DI[e],l=s&&s.prototype,u={};if(qI&&zI(s)&&(i||l.forEach&&!jI((function(){(new s).entries().next()})))){var c=(n=t((function(t,r){GI(VI(t,c),{type:e,collection:new s}),null!=r&&UI(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=XI(e);HI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||i&&"clear"==e||NI(c,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!BI(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||KI(c,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),FI.enable();WI(n,e,!1,!0),u[e]=n,LI({global:!0,forced:!0},u),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uC);var cC=te.Map,fC=$t,pC=I,hC=Ae,dC=zh,vC=H,gC=ah,yC=[].push,mC=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return dC(this),(t=void 0!==a)&&hC(a),vC(e)?new this:(r=[],t?(n=0,o=fC(a,i>2?arguments[2]:void 0),gC(e,(function(e){pC(yC,r,o(e,n++))}))):gC(e,yC,{that:r}),new this(r))};xr({target:"Map",stat:!0,forced:!0},{from:mC});var _C=ls,bC=function(){return new this(_C(arguments))};xr({target:"Map",stat:!0,forced:!0},{of:bC});var wC=Re,SC=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")},EC=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},kC=ae("Map"),PC={Map:kC,set:EC("set",2),get:EC("get",1),has:EC("has",1),remove:EC("delete",1),proto:kC.prototype},TC=SC,RC=PC.remove;xr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=TC(this),r=!0,n=0,o=arguments.length;n<o;n++)e=RC(t,arguments[n]),r=r&&e;return!!r}});var xC=SC,OC=PC.get,MC=PC.has,AC=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=xC(this);return MC(o,e)?(r=OC(o,e),"update"in t&&(r=t.update(r,e,o),AC(o,e,r)),r):(n=t.insert(e,o),AC(o,e,n),n)}});var IC=I,CC=function(e,t,r){for(var n,o,i=r||e.next;!(n=IC(i,e)).done;)if(void 0!==(o=t(n.value)))return o},LC=function(e,t,r){return r?CC(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},DC=$t,FC=SC,jC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=FC(this),r=DC(e,arguments.length>1?arguments[1]:void 0);return!1!==jC(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var NC=$t,UC=SC,VC=LC,zC=PC.Map,BC=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=UC(this),r=NC(e,arguments.length>1?arguments[1]:void 0),n=new zC;return VC(t,(function(e,o){r(e,o,t)&&BC(n,o,e)})),n}});var WC=$t,KC=SC,HC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=KC(this),r=WC(e,arguments.length>1?arguments[1]:void 0),n=HC(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var qC=$t,GC=SC,XC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=GC(this),r=qC(e,arguments.length>1?arguments[1]:void 0),n=XC(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var YC=xr,$C=I,JC=R,QC=Ae,ZC=ah,eL=PC.Map,tL=g([].push);YC({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(JC(this)?this:eL);QC(t);var n=QC(r.has),o=QC(r.get),i=QC(r.set);return ZC(e,(function(e){var a=t(e);$C(n,r,a)?tL($C(o,r,a),e):$C(i,r,a,[e])})),r}});var rL=function(e,t){return e===t||e!=e&&t!=t},nL=SC,oL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===oL(nL(this),(function(t){if(rL(t,e))return!0}),!0)}});var iL=I,aL=ah,sL=R,lL=Ae,uL=PC.Map;xr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(sL(this)?this:uL);lL(t);var n=lL(r.set);return aL(e,(function(e){iL(n,r,t(e),e)})),r}});var cL=SC,fL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=fL(cL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var pL=$t,hL=SC,dL=LC,vL=PC.Map,gL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=hL(this),r=pL(e,arguments.length>1?arguments[1]:void 0),n=new vL;return dL(t,(function(e,o){gL(n,r(e,o,t),e)})),n}});var yL=$t,mL=SC,_L=LC,bL=PC.Map,wL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=mL(this),r=yL(e,arguments.length>1?arguments[1]:void 0),n=new bL;return _L(t,(function(e,o){wL(n,o,r(e,o,t))})),n}});var SL=SC,EL=ah,kL=PC.set;xr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=SL(this),r=arguments.length,n=0;n<r;)EL(arguments[n++],(function(e,r){kL(t,e,r)}),{AS_ENTRIES:!0});return t}});var PL=Ae,TL=SC,RL=LC,xL=TypeError;xr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=TL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(PL(e),RL(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw xL("Reduce of empty map with no initial value");return n}});var OL=$t,ML=SC,AL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=ML(this),r=OL(e,arguments.length>1?arguments[1]:void 0);return!0===AL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var IL=Ae,CL=SC,LL=TypeError,DL=PC.get,FL=PC.has,jL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=CL(this),n=arguments.length;IL(t);var o=FL(r,e);if(!o&&n<3)throw LL("Updating absent value");var i=o?DL(r,e):IL(n>2?arguments[2]:void 0)(e,r);return jL(r,e,t(i,e,r)),r}});var NL=I,UL=Ae,VL=R,zL=rr,BL=TypeError,WL=function(e,t){var r,n=zL(this),o=UL(n.get),i=UL(n.has),a=UL(n.set),s=arguments.length>2?arguments[2]:void 0;if(!VL(t)&&!VL(s))throw BL("At least one callback required");return NL(i,n,e)?(r=NL(o,n,e),VL(t)&&(r=t(r),NL(a,n,e,r))):VL(s)&&(r=s(),NL(a,n,e,r)),r};xr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:WL}),xr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:WL});var KL,HL,qL=r(cC);function GL(e,t,r){var n;Bm()?GL=Sm(n=zm).call(n):GL=function(e,t,r){var n=[null];Ml(n).apply(n,t);var o=new(Sm(Function).apply(e,n));return r&&Pm(o,r.prototype),o};return GL.apply(null,arguments)}function XL(e){var t="function"==typeof qL?new qL:void 0;return XL=function(e){if(null===e||(r=e,-1===lw(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,o)}function o(){return GL(e,arguments,Em(this).constructor)}return o.prototype=np(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Pm(o,e)},XL(e)}var YL=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}(YL||{}),$L=(Qf(KL={},2100,{messageTextKey:"NETWORK",level:"Error"}),Qf(KL,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),Qf(KL,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),Qf(KL,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),Qf(KL,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),Qf(KL,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),Qf(KL,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),Qf(KL,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),Qf(KL,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),Qf(KL,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),Qf(KL,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),Qf(KL,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),KL);Qf(HL={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),Qf(HL,"network",{messageTextKey:"NETWORK",level:"Error"}),Qf(HL,"demux",{messageTextKey:"DEMUX",level:"Error"}),Qf(HL,"remux",{messageTextKey:"REMUX",level:"Error"}),Qf(HL,"media",{messageTextKey:"MEDIA",level:"Error"}),Qf(HL,"drm",{messageTextKey:"DRM",level:"Error"}),Qf(HL,"other",{messageTextKey:"OTHER",level:"Error"}),Qf(HL,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var JL,QL,ZL=function(e){Tm(r,e);var t=Wm(r);function r(e,n){var o,i,a,s,l,u,c;Gy(this,r);var f="string"==typeof e?{message:e}:e,p=null!==(o=null!==(i=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!==i?i:null==f||null===(s=f.error)||void 0===s?void 0:s.message)&&void 0!==o?o:null==n?void 0:n.getText("UNKNOWN");return Qf($y(c=t.call(this,p)),"errorCode",void 0),Qf($y(c),"level",void 0),Qf($y(c),"ext",void 0),c.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",c.level=null!==(u=null==f?void 0:f.level)&&void 0!==u?u:"Error",c.ext=null==f?void 0:f.ext,c}return Yy(r)}(XL(Error));function eD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new ZL(ep(ep({errorCode:e},$L[e]),t),r)}var tD=null!==(JL=null===(QL=document.currentScript)||void 0===QL?void 0:QL.src)&&void 0!==JL?JL:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.1-rc.1","/object/umd/"),rD=new wR({baseUrl:db(tD).call(tD,0,HE(tD).call(tD,"/"))});function nD(e,t){return oD.apply(this,arguments)}function oD(){return oD=qy(Ky().mark((function e(t,r){var n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rD.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),eD(YL.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]])}))),oD.apply(this,arguments)}rD.registerPlugin,rD.register;var iD=function(e){return e.H265="h265",e.H264="h264",e}(iD||{}),aD=function(e){if(e){uE(e).call(e,"//")&&(e=location.protocol+e);try{return new yA(e)}catch(Ej){return}}};function sD(e){var t,r={},n=function(e,t){var r=void 0!==xf&&Xm(e)||e["@@iterator"];if(!r){if(Hm(e)||(r=p_(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(e.attributes);try{for(n.s();!(t=n.n()).done;){var o=t.value;r[o.name]=o.value}}catch(i){n.e(i)}finally{n.f()}return r}var lD=Object.freeze({__proto__:null,getAttributes:sD,replaceAttributes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=sD(e);return qb(t=Bb(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 qb(t=Bb(r)).call(t,(function(t){var n=t,o=r[t];o&&(null==e||e.setAttribute(n,o))})),e}}),uD=['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"'],cD=CI((function(e,t){var r;return null==t?void 0:_k(r=t.split("?")[0].toLowerCase()).call(r,e)})),fD=cD(".m3u8"),pD=cD(".mp4"),hD=cD(".flv"),dD=cD(".sdp"),vD=cD(".mpd");function gD(e){return fD(e)?"hls":hD(e)?"flv":dD(e)?"rtm":pD(e)?"mp4":vD(e)?"dash":"unknown"}function yD(){return(yD=qy(Ky().mark((function e(){var t,r;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nD(bR.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)}function mD(e,t){return function(e){if(Hm(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==xf&&Xm(e)||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(Ml(s).call(s,n.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||p_(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.")}()}ep(ep(ep({},rO),lD),{},{getStreamType:gD,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iD.H264;return e===iD.H265?sO.isHevcSupported():e===iD.H264?sO.isMSESupport():sO.isMSESupport(e)},isSoftDecodeSupported:function(){return yD.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iD.H264;return void 0!==window.ManagedMediaSource&&(e===iD.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===iD.H265?mR(uD).call(uD,(function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var r,n=aD(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var o,i=uE(e).call(e,"//");for(var a in t){var s,l,u=t[a];if(null!=n&&n.searchParams.has(a))null==n||null===(s=n.searchParams)||void 0===s||s.set(a,u);else null==n||null===(l=n.searchParams)||void 0===l||l.append(a,u)}return e=n.toString(),i?null===(o=e)||void 0===o?void 0:o.replace(location.protocol,""):e},getUrlObject:aD});var _D="hls",bD="ll-hls",wD="flv",SD="rtm",ED="ll-flv",kD=window.VePlayer.Sniffer,PD=window.VePlayer.Codec,TD=window.VePlayer.util,RD=TD.isMMSSupported,xD=TD.isMseSupported;function OD(){return kD.os.isIos}function MD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PD.H264;return(OD()?RD:xD)(e)}var AD=function(e){return e.Error="Error",e.Stall="Stall",e}(AD||{}),ID=function(){function e(t){Gy(this,e),Qf(this,"nextProtocol",void 0),Qf(this,"preProtocol",void 0),Qf(this,"protocolStrategy",void 0),Qf(this,"_fallback",void 0),this._fallback=t.fallback}return Yy(e,[{key:"_getKindFallbackStrategy",value:function(e){var t,r,n,o,i;return null!==(t=null!==(r=null===(n=this._fallback)||void 0===n||null===(n=n.fallbackStrategy)||void 0===n||null===(n=n[this.protocolType])||void 0===n?void 0:n[e])&&void 0!==r?r:null===(o=this._fallback)||void 0===o||null===(o=o.fallbackStrategy)||void 0===o||null===(o=o.all)||void 0===o?void 0:o[e])&&void 0!==t?t:null===(i=this.defaultFallbackStrategy)||void 0===i?void 0:i[e]}},{key:"errorFallbackStrategy",get:function(){return this._getKindFallbackStrategy("Error")}},{key:"stallFallbackStrategy",get:function(){return this._getKindFallbackStrategy("Stall")}},{key:"shouldFallbackWhenError",value:function(e){var t,r,n,o;return null!==(t=this.errorFallbackStrategy)&&void 0!==t&&t.shouldFallback?null===(n=this.errorFallbackStrategy)||void 0===n?void 0:n.shouldFallback(this.protocolType,e):!(null===(r=this.errorFallbackStrategy)||void 0===r||!r.excludeList)&&!_k(o=this.errorFallbackStrategy.excludeList).call(o,e.error.errorCode)}}]),e}(),CD=window.VePlayer.strategy,LD=window.VePlayer.load,DD=window.VePlayer.Codec,FD=window.VePlayer.util.appendSearchParams,jD=function(){var e=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w,S;return Ky().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===(o=t.flv)||void 0===o||null===(o=o.lowLatency)||void 0===o?void 0:o.enableFrameChasing)||void 0===n||n,v=null!==(i=null==t||null===(a=t.flv)||void 0===a||null===(a=a.lowLatency)||void 0===a?void 0:a.abrPts)&&void 0!==i?i:"-800",e.next=5,CD.getCodec(t);case 5:return g=e.sent,e.next=8,CD.isSoftDecode(t,g);case 8:if(e.sent&&(p=g===DD.H265?CD.createSoftDecodeH265Strategy():CD.createSoftDecodeH264Strategy(),f=CD.createFlvMseStrategy(t)),MD("unknown"===g?DD.H264:g)&&(f=OD()?CD.createFlvMssStrategy(t):CD.createFlvMseStrategy(t)),f||p){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,qE.all([(null===(s=f)||void 0===s?void 0:s.module)&&LD(f.module).catch((function(){})),(null===(l=p)||void 0===l?void 0:l.module)&&LD(p.module).catch((function(){}))]);case 15:return y=e.sent,m=mD(y,2),_=m[0],(null==(b=m[1])?void 0:b.XGVideoPlugin)&&(null===(u=p)||void 0===u||null===(c=u.afterLoad)||void 0===c||c.call(u,null==b?void 0:b.XGVideoPlugin)),w=CD.combineOptions([f,p]),S=[],h&&(w.url=FD(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)}}(),ND=window.VePlayer.DynamicModule,UD=window.VePlayer.load,VD=function(e){Tm(i,e);var t,r,n,o=Wm(i);function i(){return Gy(this,i),o.apply(this,arguments)}return Yy(i,[{key:"protocolType",get:function(){return wD}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:MD()});case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(r=qy(Ky().mark((function e(t,r){var n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.enableSelector,e.abrupt("return",jD(n?ep(ep({},t),{},{flv:ep(ep({},t.flv),{},{enableLowLatency:!1})}):t));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"getAbrStrategy",value:(t=qy(Ky().mark((function e(t){var r,n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==t||null===(r=t.flv)||void 0===r?void 0:r.abr){e.next=3;break}return e.abrupt("return",{});case 3:return e.next=5,UD(ND.PluginAbr).catch((function(){}));case 5:return i=e.sent,e.abrupt("return",{options:{abr:ep(ep({},o),{},{open:null===(n=o.enable)||void 0===n||n})},plugins:[null==i?void 0:i.AbrPlugin]});case 7:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".flv"}},{key:"generateUrl",value:function(e,t){var r,n=t.generateUrlFromOtherProtocol;return null!==(r=e[wD])&&void 0!==r?r:n()}},{key:"canGenerateOtherProtocol",value:function(){return!0}}]),i}(ID),zD=function(e){Tm(n,e);var t,r=Wm(n);function n(){return Gy(this,n),r.apply(this,arguments)}return Yy(n,[{key:"protocolType",get:function(){return ED}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",jD(ep(ep({},t),{},{flv:ep(ep({},t.flv),{},{enableLowLatency:!0})})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),n}(VD),BD=window.VePlayer.Sniffer,WD=function(e){return e.Fairplay="fairplay",e}(WD||{});function KD(e){if(null!=e&&e.fairplay&&("safari"===BD.browser||BD.os.isIos))return"fairplay"}function HD(e){var t=e.drm,r=e.streamType,n=KD(t);return!n||("fairplay"!==n||"hls"!==r)}var qD=window.VePlayer.Codec,GD=window.VePlayer.strategy,XD=window.VePlayer.load,YD=window.VePlayer.Sniffer,$D=window.VePlayer.util.isMseSupported;function JD(e){var t,r;return!(null==e||null===(t=e.hls)||void 0===t||!t.enableHlsJs)||"ssai"===(null==e||null===(r=e.ad)||void 0===r?void 0:r.adType)}var QD=function(){var e=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f,p,h,d,v,g;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(HD({drm:t.drm,streamType:"hls"})){e.next=2;break}return e.abrupt("return",{options:{},plugins:[]});case 2:return e.next=4,GD.getCodec(t);case 4:return u=e.sent,e.next=7,GD.isSoftDecode(t,u);case 7:if(c=e.sent,f=JD(t),c&&(l=u===qD.H265?GD.createSoftDecodeH265Strategy():GD.createSoftDecodeH264Strategy(),s=GD.createHlsMseStrategy(t,f)),("mobile"!==YD.device||null!=t&&null!==(r=t.hls)&&void 0!==r&&r.enableMSE)&&$D("unknown"===u?qD.H264:u)&&(s=GD.createHlsMseStrategy(t,f)),s||l){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,qE.all([(null===(n=s)||void 0===n?void 0:n.module)&&XD(s.module).catch((function(){})),(null===(o=l)||void 0===o?void 0:o.module)&&XD(l.module).catch((function(){}))]);case 15:return p=e.sent,h=mD(p,2),d=h[0],(null==(v=h[1])?void 0:v.XGVideoPlugin)&&(null===(i=l)||void 0===i||null===(a=i.afterLoad)||void 0===a||a.call(i,null==v?void 0:v.XGVideoPlugin)),g=GD.combineOptions([s,l]),e.abrupt("return",{options:g,plugins:null!=d&&d.HlsPlugin?[d.HlsPlugin]:[]});case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ZD=Ae,eF=Ye,tF=K,rF=zr,nF=TypeError,oF=function(e){return function(t,r,n,o){ZD(r);var i=eF(t),a=tF(i),s=rF(i),l=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(l in a){o=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw nF("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(o=r(o,a[l],l,i));return o}},iF={left:oF(!1),right:oF(!0)}.left;xr({target:"Array",proto:!0,forced:!Oh&&ve>79&&ve<83||!tc("reduce")},{reduce:function(e){var t=arguments.length;return iF(this,e,t,t>1?arguments[1]:void 0)}});var aF=Ys("Array").reduce,sF=se,lF=aF,uF=Array.prototype,cF=r((function(e){var t=e.reduce;return e===uF||sF(uF,e)&&t===uF.reduce?lF:t}));function fF(e,t,r){e[t]||(e[t]=[]),e[t].push(r)}function pF(e){return cF(e).call(e,(function(e,t){var r,n,o=cF(r=t.definitions).call(r,(function(e,t){var r=function(e){return"string"==typeof e?gD(e):e.type?e.type:gD(e.url)}(t);return fF(e,r,t),e}),{});return aT(n=Bb(o)).call(n,(function(r){fF(e,r,ep(ep({},t),{},{definitions:o[r]}))})),e}),{})}function hF(e,t){var r=[];return null==e||qb(e).call(e,(function(e){var n,o=[];qb(n=e.definitions).call(n,(function(e){var r;"string"==typeof e?o.push(t(e)):o.push(ep(ep({},e),{},{url:t(e.url),fallbackUrls:null===(r=e.fallbackUrls)||void 0===r?void 0:aT(r).call(r,(function(e){return t(e)}))}))})),r.push(ep(ep({},e),{},{definitions:o}))})),r}function dF(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=ln(e);for(n=0;n<i.length;n++)r=i[n],lw(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Bs){var i=Bs(e);for(n=0;n<i.length;n++)r=i[n],lw(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var vF=["getDrmConfig"],gF=window.VePlayer.DynamicModule,yF=window.VePlayer.load,mF=function(){var e=qy(Ky().mark((function e(t,r){var n,o,i,a,s,l,u,c,f,p,h;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=KD(t.drm),!t.url||n!==WD.Fairplay){e.next=18;break}return e.prev=2,a=null!==(o=null==t||null===(i=t.drm)||void 0===i?void 0:i.fairplay)&&void 0!==o?o:{},s=a.getDrmConfig,l=dF(a,vF),e.next=6,qE.all([yF(gF.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return u=e.sent,c=mD(u,2),f=c[0],p=c[1],h=TE({},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)}}(),_F=window.VePlayer.DynamicModule,bF=window.VePlayer.load,wF=window.VePlayer.util,SF=function(e){Tm(i,e);var t,r,n,o=Wm(i);function i(){return Gy(this,i),o.apply(this,arguments)}return Yy(i,[{key:"protocolType",get:function(){return _D}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:!0});case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(r=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",QD(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getAbrStrategy",value:(t=qy(Ky().mark((function e(t){var r,n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==t||null===(r=t.hls)||void 0===r?void 0:r.abr){e.next=3;break}return e.abrupt("return",{});case 3:return e.next=5,bF(_F.PluginAbr).catch((function(){}));case 5:return i=e.sent,e.abrupt("return",{options:{hlsabr:ep(ep({},o),{},{open:null===(n=o.enable)||void 0===n||n})},plugins:[null==i?void 0:i.HlsAbrPlugin]});case 7:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getDrmStrategy",value:function(e,t){return mF(e,t)}}],[{key:"suffix",get:function(){return".m3u8"}},{key:"canGenerateOtherProtocol",value:function(){return!0}},{key:"generateUrl",value:function(e,t){var r=t.generateUrlFromOtherProtocol;return e[_D]?e[_D]:e[bD]?hF(e[bD],(function(e){return wF.appendSearchParams(e,{fpkey_normal_hls:"1"})})):r()}}]),i}(ID),EF=function(e){Tm(o,e);var t,r,n=Wm(o);function o(){return Gy(this,o),n.apply(this,arguments)}return Yy(o,[{key:"protocolType",get:function(){return bD}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(r=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:!0});case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",QD(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getAbrStrategy",value:function(){}},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".m3u8"}},{key:"generateUrl",value:function(e){return e[bD]}},{key:"canGenerateOtherProtocol",value:function(){return!0}}]),o}(ID),kF=window.VePlayer.DynamicModule,PF=window.VePlayer.load;function TF(){return RF.apply(this,arguments)}function RF(){return(RF=qy(Ky().mark((function e(){var t,r;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,PF(kF.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 xF(){return OF.apply(this,arguments)}function OF(){return OF=qy(Ky().mark((function e(){var t,r,n,o=arguments;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:ej.H264,e.next=3,PF(kF.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==ej.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)}))),OF.apply(this,arguments)}var MF=["fallbackUrl","enableRTMAutoTranscode"],AF=window.VePlayer.strategy,IF=window.VePlayer.util,CF=window.VePlayer.DynamicModule,LF=window.VePlayer.load,DF=window.VePlayer.Codec,FF=window.VePlayer.Sniffer,jF={options:{},module:CF.PluginRtm},NF=function(e){return"pc"===FF.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},UF=function(){var e=qy(Ky().mark((function e(t,r,n){var o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w,S,E,k,P,T,R,x;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l="",u=t.url,c=t.playlist,f=t.rtm||{},p=f.fallbackUrl,h=f.enableRTMAutoTranscode,d=dF(f,MF),v=t.rtm||{},g=v.enableFallback,y=void 0===g||g,null!=c&&c.length&&(y=!1),m=h||"true"===(null===(o=aD(u))||void 0===o?void 0:o.searchParams.get("enableRTMAutoTranscode")),y&&(p?l=p:m&&u?l=NF(u):console.warn(P_(E_.EMPTY_RTM_FALLBACK_PARAMETER,n).message)),"flv"===(_=l&&IF.getStreamType(l))&&IF.isMseSupported(DF.H264)?s=AF.createFlvMseStrategy(t):"hls"===_&&("mobile"!==FF.device||null!=t&&null!==(i=t.hls)&&void 0!==i&&i.enableMSE)&&IF.isMseSupported(DF.H264)&&(s=AF.createHlsMseStrategy(t)),e.next=11,qE.all([LF(jF.module).then((function(e){return e.RtmPlugin})).catch((function(){})),s&&LF(s.module).then((function(e){var t,r;return(null===(t=s)||void 0===t?void 0:t.module)===CF.PluginFlv?e.FlvPlugin:(null===(r=s)||void 0===r?void 0:r.module)===CF.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 11:if(b=e.sent,w=mD(b,2),S=w[0],E=w[1],!l){e.next=25;break}return e.next=18,qE.all([TF(),xF()]);case 18:if(k=e.sent,P=mD(k,2),T=P[0],R=P[1],T&&R){e.next=25;break}return r&&r.emit("degrade",{url:l,originRtmUrl:u,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:T,isRTMSupportCodec:R}),e.abrupt("return",{options:ep(ep({},(null===(x=s)||void 0===x?void 0:x.options)||{}),{},{url:l,_RTMdegrade:{_originRtmUrl:u,_isRTMSupported:T,_isRTMSupportCodec:R}}),plugins:E?[E]:[]});case 25:return e.abrupt("return",{options:ep(ep({},(null===(a=s)||void 0===a?void 0:a.options)||{}),{},{url:h?IF.appendSearchParams(u,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:ep(ep({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)}}(),VF=function(e){Tm(o,e);var t,r,n=Wm(o);function o(){return Gy(this,o),n.apply(this,arguments)}return Yy(o,[{key:"protocolType",get:function(){return SD}},{key:"defaultFallbackStrategy",get:function(){return Qf({},AD.Error,{shouldFallback:function(){return!0}})}},{key:"canPlay",value:(r=qy(Ky().mark((function e(){var t,r,n,o;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qE.all([TF(),xF()]);case 2:return t=e.sent,r=mD(t,2),n=r[0],o=r[1],e.abrupt("return",{canPlay:n&&o});case 7:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t,r){var n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.player,o=r.i18n,i=r.enableSelector,e.next=3,UF(i?{options:t,rtm:ep(ep({},t.rtm),{},{enableFallback:!1})}:t,n,o);case 3:return this.protocolStrategy=e.sent,e.abrupt("return",this.protocolStrategy);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"getAbrStrategy",value:function(){}},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".sdp"}},{key:"canGenerateOtherProtocol",value:function(e){var t;return null===(t=e.rtm)||void 0===t?void 0:t.enableRTMAutoTranscode}},{key:"generateUrl",value:function(e,t){var r,n=t.generateUrlFromOtherProtocol,o=t.options;return e[SD]?e[SD]:null!==(r=o.rtm)&&void 0!==r&&r.enableRTMAutoTranscode?n():void console.warn("生成 rtm 地址失败。请传入 rtm 播放地址,或开启自动转码")}}]),o}(ID),zF=function(){function e(t){var r=t.queue,n=t.streams,o=t.options;Gy(this,e),Qf(this,"current",void 0),Qf(this,"_queue",void 0),Qf(this,"_streams",void 0),Qf(this,"_options",void 0),this._queue=r,this._streams=n,this._options=o,this.current=this._getStartProtocol()}var t;return Yy(e,[{key:"getProtocol",value:(t=qy(Ky().mark((function e(){var t;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.current){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.current.canPlay();case 4:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==t;case 8:if(!e.t0){e.next=12;break}e.t2=t,e.next=13;break;case 12:e.t2={};case 13:if(!e.t2.canPlay){e.next=17;break}return e.abrupt("return",this.current);case 17:return this.next(),e.abrupt("return",this.getProtocol());case 19:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"next",value:function(){var e;this.current=null===(e=this.current)||void 0===e?void 0:e.nextProtocol}},{key:"_getStartProtocol",value:function(){for(var e,t=this._queue.length-1;t>=0;t--){var r=this._queue[t],n=this._streams[r];n&&(e&&(e.preProtocol=n,n.nextProtocol=e),e=n)}return e}}]),e}(),BF=function(e){Tm(r,e);var t=Wm(r);function r(e){var n=e.streams,o=e.options;return Gy(this,r),t.call(this,{queue:r.queue,streams:n,options:o})}return Yy(r)}(zF);Qf(BF,"queue",[SD,ED,wD,bD,_D]);var WF,KF=function(e){Tm(r,e);var t=Wm(r);function r(e){var n,o=e.streams,i=e.options;return Gy(this,r),t.call(this,{queue:null===(n=i.fallback)||void 0===n?void 0:n.fallbackOrder,streams:o,options:i})}return Yy(r)}(zF);Qf(KF,"queue",void 0);var HF=function(){function e(t){Gy(this,e),Qf(this,"_options",void 0),Qf(this,"_selector",void 0),Qf(this,"_protocol",void 0),Qf(this,"_playlistMap",{}),this._options=t,this._init({url:t.url,playlist:t.playlist})}var t,r,n,o,i;return Yy(e,[{key:"enableSelector",get:function(){return!!this._selector}},{key:"protocol",get:function(){return this._protocol}},{key:"playlist",get:function(){var e;return null!==(e=this._protocol)&&void 0!==e&&e.protocolType&&this._playlistMap?this._playlistMap[this._protocol.protocolType]:void 0}},{key:"getProtocol",value:(i=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._selector){e.next=4;break}return e.next=3,this._selector.getProtocol();case 3:this._protocol=e.sent;case 4:return e.abrupt("return",this._protocol);case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"update",value:(o=qy(Ky().mark((function e(t){var r,n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.playlist,this._options=ep(ep({},this._options),{},{url:r,playlist:n}),this._init({url:r,playlist:n}),e.next=5,this.getProtocol();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"next",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selector){e.next=2;break}return e.abrupt("return");case 2:return this._selector.next(),e.next=5,this.getProtocol();case 5:return e.abrupt("return",this._protocol);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStrategy",value:(r=qy(Ky().mark((function e(t,r){var n,o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=this._protocol,e.next=3,qE.all([null==s?void 0:s.getProtocolStrategy(this._options,{player:t,i18n:r,enableSelector:!!this._selector}),null==s||null===(n=s.getDrmStrategy)||void 0===n?void 0:n.call(s,this._options,t),null==s||null===(o=s.getAbrStrategy)||void 0===o?void 0:o.call(s,this._options)]);case 3:return l=e.sent,u=mD(l,3),c=u[0],f=u[1],p=u[2],d=(h=null!=c?c:{}).options,v=h.plugins,y=(g=null!=f?f:{}).options,m=g.plugins,b=(_=null!=p?p:{}).options,w=_.plugins,e.abrupt("return",{options:TE({},d,y,b),plugins:__(i=[]).call(i,h_(null!=v?v:[]),h_(null!=m?m:[]),h_(null!=w?w:[])),useSrc:!(null!=c&&null!==(a=c.plugins)&&void 0!==a&&a.length),protocol:null==s?void 0:s.protocolType});case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"_init",value:function(t){var r=t.url,n=t.playlist;if(n){var o,i,a=pF(n),s="low"===this._options.latencyMode?BF:KF,l=null!==(o=null==s?void 0:s.queue)&&void 0!==o?o:null===(i=this._options.fallback)||void 0===i?void 0:i.fallbackOrder;if(null!=l&&l.length){var u=e._generateProtocolMap(l,a,this._options),c=u.protocolMap,f=u.playlistMap;return this._playlistMap=f,void(this._selector=new s({streams:c,options:this._options}))}this._playlistMap=a,this._initSingleProtocol(Bb(a)[0])}else r&&this._initSingleProtocol(gD(r))}},{key:"_initSingleProtocol",value:function(t){t&&(this._protocol=new e._protocolMap[t](this._options))}}],[{key:"create",value:(t=qy(Ky().mark((function t(r){var n;return Ky().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new e(r),t.next=3,n.getProtocol();case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},{key:"_generateProtocolMap",value:function(t,r,n){var o={},i={},a=MR(t).call(t,(function(t){return e._protocolMap[t].canGenerateOtherProtocol(n)&&r[t]}));return qb(t).call(t,(function(t){var s,l,u=null!==(s=null===(l=e._protocolMap[t])||void 0===l?void 0:l.generateUrl(r,{generateUrlFromOtherProtocol:function(){if(a)return function(e,t,r){return hF(e,(function(e){return e.replace(t,r)}))}(r[a],e._protocolMap[a].suffix,e._protocolMap[t].suffix)},options:n}))&&void 0!==s?s:r[t];u&&(i[t]=u,o[t]=new e._protocolMap[t](n))})),{protocolMap:o,playlistMap:i}}}]),e}();Qf(HF,"_protocolMap",(Qf(WF={},wD,VD),Qf(WF,ED,zD),Qf(WF,_D,SF),Qf(WF,bD,EF),Qf(WF,SD,VF),WF));var qF,GF=function(){function e(){var t=this;Gy(this,e),Qf(this,"player",void 0),Qf(this,"protocolManager",void 0),Qf(this,"beforeFallbackError",function(){var e=qy(Ky().mark((function e(r){var n,o,i,a;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(n=t.protocolManager)&&void 0!==n&&null!==(n=n.protocol)&&void 0!==n&&n.shouldFallbackWhenError({error:r})&&null!==(o=t.protocolManager)&&void 0!==o&&null!==(o=o.protocol)&&void 0!==o&&o.nextProtocol){e.next=2;break}return e.abrupt("return",{canEmitError:!0});case 2:return e.next=4,null===(i=t.protocolManager)||void 0===i?void 0:i.next();case 4:if(e.sent&&null!==(a=t.protocolManager)&&void 0!==a&&a.playlist){e.next=7;break}return e.abrupt("return",{canEmitError:!0});case 7:return t.fallback(),e.abrupt("return",{canEmitError:!1});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var t;return Yy(e,[{key:"initErrorFallback",value:function(e,t){this.player=e,this.protocolManager=t}},{key:"fallback",value:(t=qy(Ky().mark((function e(){var t,r,n,o,i,a;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=this.protocolManager)&&void 0!==t&&t.playlist){e.next=2;break}return e.abrupt("return");case 2:i=null===(r=this.player)||void 0===r?void 0:r.definition,a=null===(n=this.player)||void 0===n?void 0:n.source,null===(o=this.player)||void 0===o||o.updatePlaylist(this.protocolManager.playlist,{definition:i,source:a},!1);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),XF=new GF,YF=window.VePlayer.DEFAULT_PLUGINS,$F=window.VePlayer.VePlayerBase,JF=window.VePlayer.VeI18n;JF.extend([{LANG:"zh-cn",TEXT:pR},{LANG:"en",TEXT:fR}]);var QF={autoplay:{muted:!0}},ZF=__(qF=[]).call(qF,h_(YF),[Vb,oR,uR]),ej=function(e){return e.H264="h264",e}(ej||{}),tj=function(e){Tm(o,e);var t,r,n=Wm(o);function o(e){var t;return Gy(this,o),Qf($y(t=n.call(this,e)),"_protocolManager",void 0),t}return Yy(o,[{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 o,i,a=null===(o=this._player)||void 0===o?void 0:o.played.start(n);r+=(null===(i=this._player)||void 0===i?void 0:i.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&&gD(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&&gD(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:(r=qy(Ky().mark((function e(){var t;return Ky().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 r.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()}},{key:"getHLSStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.hls)||void 0===e?void 0:e.getStats()}},{key:"updatePlaylist",value:(t=qy(Ky().mark((function e(t,r){var n,i=arguments;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.length>2&&void 0!==i[2]&&!i[2]){e.next=4;break}return e.next=4,null===(n=this._protocolManager)||void 0===n?void 0:n.update({playlist:t});case 4:return e.abrupt("return",km(Em(o.prototype),"updatePlaylist",this).call(this,t,r));case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),o}($F);function rj(e){return nj.apply(this,arguments)}function nj(){return(nj=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=void 0,s=new JF({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),t&&(t.url||t.playlist)){e.next=4;break}throw P_(E_.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(P_(E_.INVALID_LOGGER,s).message),l=ep(ep({},t),{},{plugins:__(o=[]).call(o,h_(ZF),h_(null!==(i=t.plugins)&&void 0!==i?i:[]))}),e.next=8,HF.create(l);case 8:if(u=e.sent,t.url||null!=u&&u.playlist){e.next=11;break}throw P_(E_.INVALID_PARAMETER,s);case 11:return e.next=13,$F.create(ep(ep(ep({},QF),l),{},{playlist:null==u?void 0:u.playlist,beforeFallbackError:XF.beforeFallbackError,isLive:!0,i18nManager:s,preProcessUrl:function(e){return cD(".ts",e)?{url:e}:{url:rR(e)}},preparePlugins:function(e){return qy(Ky().mark((function t(){return Ky().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u.enableSelector){t.next=3;break}return t.next=3,u.update({url:e});case 3:return t.abrupt("return",u.getStrategy(a,s));case 4:case"end":return t.stop()}}),t)})))()}}),tj);case 13:return(a=e.sent)._protocolManager=u,XF.initErrorFallback(a,u),a&&(f=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:f._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:f._isRTMSupported,isRTMSupportCodec:f._isRTMSupportCodec}),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var oj=Object.freeze({__proto__:null,ErrorCode:E_,Events:Lb}),ij=window.VePlayer.setModuleSystem,aj=window.VePlayer.Codec,sj=window.VePlayer.DecodeType,lj=window.VePlayer.Degradation,uj=window.VePlayer.POSITIONS,cj=window.VePlayer.register,fj=window.VePlayer.registerPlugin,pj=window.VePlayer.EN,hj=window.VePlayer.ZH_CN,dj=window.VePlayer.Plugin,vj=window.VePlayer.Sniffer,gj=window.VePlayer.DynamicModule,yj=window.VePlayer.util,mj=window.VePlayer.load,_j=window.VePlayer.ListType;ij("umd");var bj=yj.isMseSupported,wj=yj.isSoftDecodeSupported,Sj=yj.isMMSSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(gj.BizLive,{createLivePlayer:rj}):fj(gj.BizLive,{createLivePlayer:rj}),e.Codec=aj,e.DecodeType=sj,e.Degradation=lj,e.DynamicModule=gj,e.EN=pj,e.ListType=_j,e.POSITIONS=uj,e.Plugin=dj,e.RTMCodec=ej,e.Sniffer=vj,e.ZH_CN=hj,e.createLivePlayer=rj,e.isFLVSupported=MD,e.isMMSSupported=Sj,e.isMseSupported=bj,e.isRTMSupportCodec=xF,e.isRTMSupported=TF,e.isSoftDecodeSupported=wj,e.live=oj,e.load=mj,e.register=cj,e.registerPlugin=fj,e.util=yj}));
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},o=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")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,u=l.apply,c=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?c.bind(u):function(){return c.apply(u,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)},k="object"==typeof document&&document.all,P={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},T=P.all,R=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===T}:function(e){return"function"==typeof e},x={},O=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=a,A=Function.prototype.call,I=M?A.bind(A):function(){return A.apply(A,arguments)},C={},L={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,F=D&&!L.call({1:2},1);C.f=F?function(e){var t=D(this,e);return!!t&&t.enumerable}:L;var j,N,U=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V=i,z=b,B=Object,W=g("".split),K=V((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(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,J=function(e){return Y($(e))},Q=R,Z=P.all,ee=P.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Q(e)||e===Z}:function(e){return"object"==typeof e?null!==e:Q(e)},te={},re=te,ne=o,oe=R,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=o,ce=le,fe=ue.process,pe=ue.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(N=(j=de.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!N&&ce&&(!(j=ce.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ce.match(/Chrome\/(\d+)/))&&(N=+j[1]);var ve=N,ge=ve,ye=i,me=o.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=R,Ee=se,ke=Object,Pe=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&Ee(t.prototype,ke(e))},Te=String,Re=function(e){try{return Te(e)}catch(t){return"Object"}},xe=R,Oe=Re,Me=TypeError,Ae=function(e){if(xe(e))return e;throw Me(Oe(e)+" is not a function")},Ie=Ae,Ce=H,Le=function(e,t){var r=e[t];return Ce(r)?void 0:Ie(r)},De=I,Fe=R,je=ee,Ne=TypeError,Ue={exports:{}},Ve=o,ze=Object.defineProperty,Be=function(e,t){try{ze(Ve,e,{value:t,configurable:!0,writable:!0})}catch(r){Ve[e]=t}return t},We="__core-js_shared__",Ke=o[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,Je=g({}.hasOwnProperty),Qe=Object.hasOwn||function(e,t){return Je($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)},ot=qe,it=Qe,at=nt,st=_e,lt=be,ut=o.Symbol,ct=ot("wks"),ft=lt?ut.for||ut:ut&&ut.withoutSetter||at,pt=function(e){return it(ct,e)||(ct[e]=st&&it(ut,e)?ut[e]:ft("Symbol."+e)),ct[e]},ht=I,dt=ee,vt=Pe,gt=Le,yt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!je(n=De(r,e)))return n;if(Fe(r=e.valueOf)&&!je(n=De(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!je(n=De(r,e)))return n;throw Ne("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,kt=o.document,Pt=Et(kt)&&Et(kt.createElement),Tt=function(e){return Pt?kt.createElement(e):{}},Rt=Tt,xt=!O&&!i((function(){return 7!=Object.defineProperty(Rt("div"),"a",{get:function(){return 7}}).a})),Ot=O,Mt=I,At=C,It=U,Ct=J,Lt=St,Dt=Qe,Ft=xt,jt=Object.getOwnPropertyDescriptor;x.f=Ot?jt:function(e,t){if(e=Ct(e),t=Lt(t),Ft)try{return jt(e,t)}catch(r){}if(Dt(e,t))return It(!Mt(At.f,e,t),e[t])};var Nt=i,Ut=R,Vt=/#|\.prototype\./,zt=function(e,t){var r=Wt[Bt(e)];return r==Ht||r!=Kt&&(Ut(t)?Nt(t):!!t)},Bt=zt.normalize=function(e){return String(e).replace(Vt,".").toLowerCase()},Wt=zt.data={},Kt=zt.NATIVE="N",Ht=zt.POLYFILL="P",qt=zt,Gt=Ae,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)}},Jt={},Qt=O&&i((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=O,or=xt,ir=Qt,ar=rr,sr=St,lr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Jt.f=nr?ir?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=cr(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 ur(e,t,r)}:ur:function(e,t,r){if(ar(e),t=sr(t),ar(r),or)try{return ur(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=Jt,vr=U,gr=O?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=E,br=R,wr=x.f,Sr=qt,Er=te,kr=$t,Pr=gr,Tr=Qe,Rr=function(e){var t=function(r,n,o){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,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},xr=function(e,t){var r,n,o,i,a,s,l,u,c,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(i in t)n=!(r=Sr(p?i:f+(h?".":"#")+i,e.forced))&&v&&Tr(v,i),s=g[i],n&&(l=e.dontCallGetSet?(c=wr(v,i))&&c.value:v[i]),a=n&&l?l:t[i],n&&typeof s==typeof a||(u=e.bind&&n?kr(a,yr):e.wrap&&n?Rr(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(u,"sham",!0),Pr(g,i,u),d&&(Tr(Er,o=f+"Prototype")||Pr(Er,o,{}),Pr(Er[o],i,a),e.real&&y&&(r||!y[i])&&Pr(y,i,a)))},Or=Math.ceil,Mr=Math.floor,Ar=Math.trunc||function(e){var t=+e;return(t>0?Mr:Or)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:Ar(t)},Cr=Ir,Lr=Math.max,Dr=Math.min,Fr=function(e,t){var r=Cr(e);return r<0?Lr(r+t,0):Dr(r,t)},jr=Ir,Nr=Math.min,Ur=function(e){return e>0?Nr(jr(e),9007199254740991):0},Vr=Ur,zr=function(e){return Vr(e.length)},Br=J,Wr=Fr,Kr=zr,Hr=function(e){return function(t,r,n){var o,i=Br(t),a=Kr(i),s=Wr(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},qr={includes:Hr(!0),indexOf:Hr(!1)},Gr={},Xr=Qe,Yr=J,$r=qr.indexOf,Jr=Gr,Qr=g([].push),Zr=function(e,t){var r,n=Yr(e),o=0,i=[];for(r in n)!Xr(Jr,r)&&Xr(n,r)&&Qr(i,r);for(;t.length>o;)Xr(n,r=t[o++])&&(~$r(i,r)||Qr(i,r));return i},en=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=Zr,rn=en,nn=Object.keys||function(e){return tn(e,rn)},on=Ye,an=nn;xr({target:"Object",stat:!0,forced:i((function(){an(1)}))},{keys:function(e){return an(on(e))}});var sn=te.Object.keys,ln=r(sn),un={};un[pt("toStringTag")]="z";var cn="[object z]"===String(un),fn=cn,pn=R,hn=b,dn=pt("toStringTag"),vn=Object,gn="Arguments"==hn(function(){return arguments}()),yn=fn?hn: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=vn(e),dn))?r:gn?hn(t):"Object"==(n=hn(t))&&pn(t.callee)?"Arguments":n},mn=yn,_n=String,bn=function(e){if("Symbol"===mn(e))throw TypeError("Cannot convert a Symbol value to a string");return _n(e)},wn={},Sn=O,En=Qt,kn=Jt,Pn=rr,Tn=J,Rn=nn;wn.f=Sn&&!En?Object.defineProperties:function(e,t){Pn(e);for(var r,n=Tn(t),o=Rn(t),i=o.length,a=0;i>a;)kn.f(e,r=o[a++],n[r]);return e};var xn,On=ae("document","documentElement"),Mn=nt,An=qe("keys"),In=function(e){return An[e]||(An[e]=Mn(e))},Cn=rr,Ln=wn,Dn=en,Fn=Gr,jn=On,Nn=Tt,Un="prototype",Vn="script",zn=In("IE_PROTO"),Bn=function(){},Wn=function(e){return"<"+Vn+">"+e+"</"+Vn+">"},Kn=function(e){e.write(Wn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hn=function(){try{xn=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Hn="undefined"!=typeof document?document.domain&&xn?Kn(xn):(t=Nn("iframe"),r="java"+Vn+":",t.style.display="none",jn.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Wn("document.F=Object")),e.close(),e.F):Kn(xn);for(var n=Dn.length;n--;)delete Hn[Un][Dn[n]];return Hn()};Fn[zn]=!0;var qn=Object.create||function(e,t){var r;return null!==e?(Bn[Un]=Cn(e),r=new Bn,Bn[Un]=null,r[zn]=e):r=Hn(),void 0===t?r:Ln.f(r,t)},Gn={},Xn=Zr,Yn=en.concat("length","prototype");Gn.f=Object.getOwnPropertyNames||function(e){return Xn(e,Yn)};var $n={},Jn=St,Qn=Jt,Zn=U,eo=function(e,t,r){var n=Jn(t);n in e?Qn.f(e,n,Zn(0,r)):e[n]=r},to=Fr,ro=zr,no=eo,oo=Array,io=Math.max,ao=function(e,t,r){for(var n=ro(e),o=to(t,n),i=to(void 0===r?n:r,n),a=oo(io(i-o,0)),s=0;o<i;o++,s++)no(a,s,e[o]);return a.length=s,a},so=b,lo=J,uo=Gn.f,co=ao,fo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];$n.f=function(e){return fo&&"Window"==so(e)?function(e){try{return uo(e)}catch(t){return co(fo)}}(e):uo(lo(e))};var po={};po.f=Object.getOwnPropertySymbols;var ho=gr,vo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ho(e,t,r),e},go=Jt,yo=function(e,t,r){return go.f(e,t,r)},mo={},_o=pt;mo.f=_o;var bo,wo,So,Eo=te,ko=Qe,Po=mo,To=Jt.f,Ro=function(e){var t=Eo.Symbol||(Eo.Symbol={});ko(t,e)||To(t,e,{value:Po.f(e)})},xo=I,Oo=ae,Mo=pt,Ao=vo,Io=function(){var e=Oo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Mo("toPrimitive");t&&!t[n]&&Ao(t,n,(function(e){return xo(r,this)}),{arity:1})},Co=yn,Lo=cn?{}.toString:function(){return"[object "+Co(this)+"]"},Do=cn,Fo=Jt.f,jo=gr,No=Qe,Uo=Lo,Vo=pt("toStringTag"),zo=function(e,t,r,n){if(e){var o=r?e:e.prototype;No(o,Vo)||Fo(o,Vo,{configurable:!0,value:t}),n&&!Do&&jo(o,"toString",Uo)}},Bo=R,Wo=o.WeakMap,Ko=Bo(Wo)&&/native code/.test(String(Wo)),Ho=o,qo=ee,Go=gr,Xo=Qe,Yo=Ke,$o=In,Jo=Gr,Qo="Object already initialized",Zo=Ho.TypeError,ei=Ho.WeakMap;if(Ko||Yo.state){var ti=Yo.state||(Yo.state=new ei);ti.get=ti.get,ti.has=ti.has,ti.set=ti.set,bo=function(e,t){if(ti.has(e))throw Zo(Qo);return t.facade=e,ti.set(e,t),t},wo=function(e){return ti.get(e)||{}},So=function(e){return ti.has(e)}}else{var ri=$o("state");Jo[ri]=!0,bo=function(e,t){if(Xo(e,ri))throw Zo(Qo);return t.facade=e,Go(e,ri,t),t},wo=function(e){return Xo(e,ri)?e[ri]:{}},So=function(e){return Xo(e,ri)}}var ni={set:bo,get:wo,has:So,enforce:function(e){return So(e)?wo(e):bo(e,{})},getterFor:function(e){return function(t){var r;if(!qo(t)||(r=wo(t)).type!==e)throw Zo("Incompatible receiver, "+e+" required");return r}}},oi=b,ii=Array.isArray||function(e){return"Array"==oi(e)},ai=R,si=Ke,li=g(Function.toString);ai(si.inspectSource)||(si.inspectSource=function(e){return li(e)});var ui=si.inspectSource,ci=g,fi=i,pi=R,hi=yn,di=ui,vi=function(){},gi=[],yi=ae("Reflect","construct"),mi=/^\s*(?:class|function)\b/,_i=ci(mi.exec),bi=!mi.exec(vi),wi=function(e){if(!pi(e))return!1;try{return yi(vi,gi,e),!0}catch(t){return!1}},Si=function(e){if(!pi(e))return!1;switch(hi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bi||!!_i(mi,di(e))}catch(t){return!0}};Si.sham=!0;var Ei=!yi||fi((function(){var e;return wi(wi.call)||!wi(Object)||!wi((function(){e=!0}))||e}))?Si:wi,ki=ii,Pi=Ei,Ti=ee,Ri=pt("species"),xi=Array,Oi=function(e){var t;return ki(e)&&(t=e.constructor,(Pi(t)&&(t===xi||ki(t.prototype))||Ti(t)&&null===(t=t[Ri]))&&(t=void 0)),void 0===t?xi:t},Mi=function(e,t){return new(Oi(e))(0===t?0:t)},Ai=$t,Ii=K,Ci=Ye,Li=zr,Di=Mi,Fi=g([].push),ji=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,u,c,f){for(var p,h,d=Ci(l),v=Ii(d),g=Ai(u,c),y=Li(v),m=0,_=f||Di,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:Fi(b,p)}else switch(e){case 4:return!1;case 7:Fi(b,p)}return i?-1:n||o?o:b}},Ni={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},Ui=xr,Vi=o,zi=I,Bi=g,Wi=O,Ki=_e,Hi=i,qi=Qe,Gi=se,Xi=rr,Yi=J,$i=St,Ji=bn,Qi=U,Zi=qn,ea=nn,ta=Gn,ra=$n,na=po,oa=x,ia=Jt,aa=wn,sa=C,la=vo,ua=yo,ca=qe,fa=Gr,pa=nt,ha=pt,da=mo,va=Ro,ga=Io,ya=zo,ma=ni,_a=Ni.forEach,ba=In("hidden"),wa="Symbol",Sa="prototype",Ea=ma.set,ka=ma.getterFor(wa),Pa=Object[Sa],Ta=Vi.Symbol,Ra=Ta&&Ta[Sa],xa=Vi.TypeError,Oa=Vi.QObject,Ma=oa.f,Aa=ia.f,Ia=ra.f,Ca=sa.f,La=Bi([].push),Da=ca("symbols"),Fa=ca("op-symbols"),ja=ca("wks"),Na=!Oa||!Oa[Sa]||!Oa[Sa].findChild,Ua=Wi&&Hi((function(){return 7!=Zi(Aa({},"a",{get:function(){return Aa(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ma(Pa,t);n&&delete Pa[t],Aa(e,t,r),n&&e!==Pa&&Aa(Pa,t,n)}:Aa,Va=function(e,t){var r=Da[e]=Zi(Ra);return Ea(r,{type:wa,tag:e,description:t}),Wi||(r.description=t),r},za=function(e,t,r){e===Pa&&za(Fa,t,r),Xi(e);var n=$i(t);return Xi(r),qi(Da,n)?(r.enumerable?(qi(e,ba)&&e[ba][n]&&(e[ba][n]=!1),r=Zi(r,{enumerable:Qi(0,!1)})):(qi(e,ba)||Aa(e,ba,Qi(1,{})),e[ba][n]=!0),Ua(e,n,r)):Aa(e,n,r)},Ba=function(e,t){Xi(e);var r=Yi(t),n=ea(r).concat(qa(r));return _a(n,(function(t){Wi&&!zi(Wa,r,t)||za(e,t,r[t])})),e},Wa=function(e){var t=$i(e),r=zi(Ca,this,t);return!(this===Pa&&qi(Da,t)&&!qi(Fa,t))&&(!(r||!qi(this,t)||!qi(Da,t)||qi(this,ba)&&this[ba][t])||r)},Ka=function(e,t){var r=Yi(e),n=$i(t);if(r!==Pa||!qi(Da,n)||qi(Fa,n)){var o=Ma(r,n);return!o||!qi(Da,n)||qi(r,ba)&&r[ba][n]||(o.enumerable=!0),o}},Ha=function(e){var t=Ia(Yi(e)),r=[];return _a(t,(function(e){qi(Da,e)||qi(fa,e)||La(r,e)})),r},qa=function(e){var t=e===Pa,r=Ia(t?Fa:Yi(e)),n=[];return _a(r,(function(e){!qi(Da,e)||t&&!qi(Pa,e)||La(n,Da[e])})),n};Ki||(Ta=function(){if(Gi(Ra,this))throw xa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Ji(arguments[0]):void 0,t=pa(e),r=function(e){this===Pa&&zi(r,Fa,e),qi(this,ba)&&qi(this[ba],t)&&(this[ba][t]=!1),Ua(this,t,Qi(1,e))};return Wi&&Na&&Ua(Pa,t,{configurable:!0,set:r}),Va(t,e)},la(Ra=Ta[Sa],"toString",(function(){return ka(this).tag})),la(Ta,"withoutSetter",(function(e){return Va(pa(e),e)})),sa.f=Wa,ia.f=za,aa.f=Ba,oa.f=Ka,ta.f=ra.f=Ha,na.f=qa,da.f=function(e){return Va(ha(e),e)},Wi&&ua(Ra,"description",{configurable:!0,get:function(){return ka(this).description}})),Ui({global:!0,constructor:!0,wrap:!0,forced:!Ki,sham:!Ki},{Symbol:Ta}),_a(ea(ja),(function(e){va(e)})),Ui({target:wa,stat:!0,forced:!Ki},{useSetter:function(){Na=!0},useSimple:function(){Na=!1}}),Ui({target:"Object",stat:!0,forced:!Ki,sham:!Wi},{create:function(e,t){return void 0===t?Zi(e):Ba(Zi(e),t)},defineProperty:za,defineProperties:Ba,getOwnPropertyDescriptor:Ka}),Ui({target:"Object",stat:!0,forced:!Ki},{getOwnPropertyNames:Ha}),ga(),ya(Ta,wa),fa[ba]=!0;var Ga=_e&&!!Symbol.for&&!!Symbol.keyFor,Xa=xr,Ya=ae,$a=Qe,Ja=bn,Qa=qe,Za=Ga,es=Qa("string-to-symbol-registry"),ts=Qa("symbol-to-string-registry");Xa({target:"Symbol",stat:!0,forced:!Za},{for:function(e){var t=Ja(e);if($a(es,t))return es[t];var r=Ya("Symbol")(t);return es[t]=r,ts[r]=t,r}});var rs=xr,ns=Qe,os=Pe,is=Re,as=Ga,ss=qe("symbol-to-string-registry");rs({target:"Symbol",stat:!0,forced:!as},{keyFor:function(e){if(!os(e))throw TypeError(is(e)+" is not a symbol");if(ns(ss,e))return ss[e]}});var ls=g([].slice),us=ii,cs=R,fs=b,ps=bn,hs=g([].push),ds=xr,vs=ae,gs=f,ys=I,ms=g,_s=i,bs=R,ws=Pe,Ss=ls,Es=function(e){if(cs(e))return e;if(us(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?hs(r,o):"number"!=typeof o&&"Number"!=fs(o)&&"String"!=fs(o)||hs(r,ps(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(us(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},ks=_e,Ps=String,Ts=vs("JSON","stringify"),Rs=ms(/./.exec),xs=ms("".charAt),Os=ms("".charCodeAt),Ms=ms("".replace),As=ms(1..toString),Is=/[\uD800-\uDFFF]/g,Cs=/^[\uD800-\uDBFF]$/,Ls=/^[\uDC00-\uDFFF]$/,Ds=!ks||_s((function(){var e=vs("Symbol")();return"[null]"!=Ts([e])||"{}"!=Ts({a:e})||"{}"!=Ts(Object(e))})),Fs=_s((function(){return'"\\udf06\\ud834"'!==Ts("\udf06\ud834")||'"\\udead"'!==Ts("\udead")})),js=function(e,t){var r=Ss(arguments),n=Es(t);if(bs(n)||void 0!==e&&!ws(e))return r[1]=function(e,t){if(bs(n)&&(t=ys(n,this,Ps(e),t)),!ws(t))return t},gs(Ts,null,r)},Ns=function(e,t,r){var n=xs(r,t-1),o=xs(r,t+1);return Rs(Cs,e)&&!Rs(Ls,o)||Rs(Ls,e)&&!Rs(Cs,n)?"\\u"+As(Os(e,0),16):e};Ts&&ds({target:"JSON",stat:!0,arity:3,forced:Ds||Fs},{stringify:function(e,t,r){var n=Ss(arguments),o=gs(Ds?js:Ts,null,n);return Fs&&"string"==typeof o?Ms(o,Is,Ns):o}});var Us=po,Vs=Ye;xr({target:"Object",stat:!0,forced:!_e||i((function(){Us.f(1)}))},{getOwnPropertySymbols:function(e){var t=Us.f;return t?t(Vs(e)):[]}});var zs=te.Object.getOwnPropertySymbols,Bs=r(zs),Ws=i,Ks=ve,Hs=pt("species"),qs=function(e){return Ks>=51||!Ws((function(){var t=[];return(t.constructor={})[Hs]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Gs=Ni.filter;xr({target:"Array",proto:!0,forced:!qs("filter")},{filter:function(e){return Gs(this,e,arguments.length>1?arguments[1]:void 0)}});var Xs=te,Ys=function(e){return Xs[e+"Prototype"]},$s=Ys("Array").filter,Js=se,Qs=$s,Zs=Array.prototype,el=function(e){var t=e.filter;return e===Zs||Js(Zs,e)&&t===Zs.filter?Qs:t},tl=r(el),rl={exports:{}},nl=xr,ol=i,il=J,al=x.f,sl=O;nl({target:"Object",stat:!0,forced:!sl||ol((function(){al(1)})),sham:!sl},{getOwnPropertyDescriptor:function(e,t){return al(il(e),t)}});var ll=te.Object,ul=rl.exports=function(e,t){return ll.getOwnPropertyDescriptor(e,t)};ll.getOwnPropertyDescriptor.sham&&(ul.sham=!0);var cl=rl.exports,fl=r(cl),pl=O,hl=ii,dl=TypeError,vl=Object.getOwnPropertyDescriptor,gl=pl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(hl(e)&&!vl(e,"length").writable)throw dl("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},yl=TypeError,ml=function(e){if(e>9007199254740991)throw yl("Maximum allowed index exceeded");return e},_l=Ye,bl=zr,wl=gl,Sl=ml;xr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=_l(this),r=bl(t),n=arguments.length;Sl(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return wl(t,r),r}});var El,kl,Pl,Tl=Ys("Array").push,Rl=se,xl=Tl,Ol=Array.prototype,Ml=r((function(e){var t=e.push;return e===Ol||Rl(Ol,e)&&t===Ol.push?xl:t})),Al={},Il=O,Cl=Qe,Ll=Function.prototype,Dl=Il&&Object.getOwnPropertyDescriptor,Fl=Cl(Ll,"name"),jl={EXISTS:Fl,PROPER:Fl&&"something"===function(){}.name,CONFIGURABLE:Fl&&(!Il||Il&&Dl(Ll,"name").configurable)},Nl=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ul=Qe,Vl=R,zl=Ye,Bl=Nl,Wl=In("IE_PROTO"),Kl=Object,Hl=Kl.prototype,ql=Bl?Kl.getPrototypeOf:function(e){var t=zl(e);if(Ul(t,Wl))return t[Wl];var r=t.constructor;return Vl(r)&&t instanceof r?r.prototype:t instanceof Kl?Hl:null},Gl=i,Xl=R,Yl=ee,$l=qn,Jl=ql,Ql=vo,Zl=pt("iterator"),eu=!1;[].keys&&("next"in(Pl=[].keys())?(kl=Jl(Jl(Pl)))!==Object.prototype&&(El=kl):eu=!0);var tu=!Yl(El)||Gl((function(){var e={};return El[Zl].call(e)!==e}));Xl((El=tu?{}:$l(El))[Zl])||Ql(El,Zl,(function(){return this}));var ru={IteratorPrototype:El,BUGGY_SAFARI_ITERATORS:eu},nu=ru.IteratorPrototype,ou=qn,iu=U,au=zo,su=Al,lu=function(){return this},uu=function(e,t,r,n){var o=t+" Iterator";return e.prototype=ou(nu,{next:iu(+!n,r)}),au(e,o,!1,!0),su[o]=lu,e},cu=g,fu=Ae,pu=R,hu=String,du=TypeError,vu=function(e,t,r){try{return cu(fu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},gu=rr,yu=function(e){if("object"==typeof e||pu(e))return e;throw du("Can't set "+hu(e)+" as a prototype")},mu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=vu(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return gu(r),yu(n),t?e(r,n):r.__proto__=n,r}}():void 0),_u=xr,bu=I,wu=jl,Su=uu,Eu=ql,ku=zo,Pu=vo,Tu=Al,Ru=ru,xu=wu.PROPER,Ou=Ru.BUGGY_SAFARI_ITERATORS,Mu=pt("iterator"),Au="keys",Iu="values",Cu="entries",Lu=function(){return this},Du=function(e,t,r,n,o,i,a){Su(r,t,n);var s,l,u,c=function(e){if(e===o&&v)return v;if(!Ou&&e in h)return h[e];switch(e){case Au:case Iu:case Cu:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[Mu]||h["@@iterator"]||o&&h[o],v=!Ou&&d||c(o),g="Array"==t&&h.entries||d;if(g&&(s=Eu(g.call(new e)))!==Object.prototype&&s.next&&(ku(s,f,!0,!0),Tu[f]=Lu),xu&&o==Iu&&d&&d.name!==Iu&&(p=!0,v=function(){return bu(d,this)}),o)if(l={values:c(Iu),keys:i?v:c(Au),entries:c(Cu)},a)for(u in l)(Ou||p||!(u in h))&&Pu(h,u,l[u]);else _u({target:t,proto:!0,forced:Ou||p},l);return a&&h[Mu]!==v&&Pu(h,Mu,v,{name:o}),Tu[t]=v,l},Fu=function(e,t){return{value:e,done:t}},ju=J,Nu=Al,Uu=ni;Jt.f;var Vu=Du,zu=Fu,Bu="Array Iterator",Wu=Uu.set,Ku=Uu.getterFor(Bu);Vu(Array,"Array",(function(e,t){Wu(this,{type:Bu,target:ju(e),index:0,kind:t})}),(function(){var e=Ku(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,zu(void 0,!0)):zu("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Nu.Arguments=Nu.Array;var Hu={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},qu=o,Gu=yn,Xu=gr,Yu=Al,$u=pt("toStringTag");for(var Ju in Hu){var Qu=qu[Ju],Zu=Qu&&Qu.prototype;Zu&&Gu(Zu)!==$u&&Xu(Zu,$u,Ju),Yu[Ju]=Yu.Array}var ec=i,tc=function(e,t){var r=[][e];return!!r&&ec((function(){r.call(null,t||function(){return 1},1)}))},rc=Ni.forEach,nc=tc("forEach")?[].forEach:function(e){return rc(this,e,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!=nc},{forEach:nc});var oc=Ys("Array").forEach,ic=yn,ac=Qe,sc=se,lc=oc,uc=Array.prototype,cc={DOMTokenList:!0,NodeList:!0},fc=function(e){var t=e.forEach;return e===uc||sc(uc,e)&&t===uc.forEach||ac(cc,ic(e))?lc:t},pc=r(fc),hc=ae,dc=Gn,vc=po,gc=rr,yc=g([].concat),mc=hc("Reflect","ownKeys")||function(e){var t=dc.f(gc(e)),r=vc.f;return r?yc(t,r(e)):t},_c=mc,bc=J,wc=x,Sc=eo;xr({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(e){for(var t,r,n=bc(e),o=wc.f,i=_c(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Sc(a,t,r);return a}});var Ec=te.Object.getOwnPropertyDescriptors,kc=r(Ec),Pc={exports:{}},Tc=xr,Rc=O,xc=wn.f;Tc({target:"Object",stat:!0,forced:Object.defineProperties!==xc,sham:!Rc},{defineProperties:xc});var Oc=te.Object,Mc=Pc.exports=function(e,t){return Oc.defineProperties(e,t)};Oc.defineProperties.sham&&(Mc.sham=!0);var Ac=Pc.exports,Ic=r(Ac),Cc={exports:{}},Lc=xr,Dc=O,Fc=Jt.f;Lc({target:"Object",stat:!0,forced:Object.defineProperty!==Fc,sham:!Dc},{defineProperty:Fc});var jc=te.Object,Nc=Cc.exports=function(e,t,r){return jc.defineProperty(e,t,r)};jc.defineProperty.sham&&(Nc.sham=!0);var Uc=Cc.exports,Vc=r(Uc),zc=xr,Bc=i,Wc=ii,Kc=ee,Hc=Ye,qc=zr,Gc=ml,Xc=eo,Yc=Mi,$c=qs,Jc=ve,Qc=pt("isConcatSpreadable"),Zc=Jc>=51||!Bc((function(){var e=[];return e[Qc]=!1,e.concat()[0]!==e})),ef=function(e){if(!Kc(e))return!1;var t=e[Qc];return void 0!==t?!!t:Wc(e)};zc({target:"Array",proto:!0,arity:1,forced:!Zc||!$c("concat")},{concat:function(e){var t,r,n,o,i,a=Hc(this),s=Yc(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(ef(i=-1===t?a:arguments[t]))for(o=qc(i),Gc(l+o),r=0;r<o;r++,l++)r in i&&Xc(s,l,i[r]);else Gc(l+1),Xc(s,l++,i);return s.length=l,s}}),Ro("asyncIterator"),Ro("hasInstance"),Ro("isConcatSpreadable"),Ro("iterator"),Ro("match"),Ro("matchAll"),Ro("replace"),Ro("search"),Ro("species"),Ro("split");var tf=Io;Ro("toPrimitive"),tf();var rf=ae,nf=zo;Ro("toStringTag"),nf(rf("Symbol"),"Symbol"),Ro("unscopables"),zo(o.JSON,"JSON",!0);var of=te.Symbol;Ro("dispose");var af=of;Ro("asyncDispose");var sf=xr,lf=g,uf=ae("Symbol"),cf=uf.keyFor,ff=lf(uf.prototype.valueOf);sf({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==cf(ff(e))}catch(t){return!1}}});for(var pf=xr,hf=qe,df=ae,vf=g,gf=Pe,yf=pt,mf=df("Symbol"),_f=mf.isWellKnown,bf=df("Object","getOwnPropertyNames"),wf=vf(mf.prototype.valueOf),Sf=hf("wks"),Ef=0,kf=bf(mf),Pf=kf.length;Ef<Pf;Ef++)try{var Tf=kf[Ef];gf(mf[Tf])&&yf(Tf)}catch(Ej){}pf({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(_f&&_f(e))return!0;try{for(var t=wf(e),r=0,n=bf(Sf),o=n.length;r<o;r++)if(Sf[n[r]]==t)return!0}catch(Ej){}return!1}}),Ro("matcher"),Ro("metadataKey"),Ro("observable"),Ro("metadata"),Ro("patternMatch"),Ro("replaceAll");var Rf=af,xf=r(Rf),Of=g,Mf=Ir,Af=bn,If=X,Cf=Of("".charAt),Lf=Of("".charCodeAt),Df=Of("".slice),Ff=function(e){return function(t,r){var n,o,i=Af(If(t)),a=Mf(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=Lf(i,a))<55296||n>56319||a+1===s||(o=Lf(i,a+1))<56320||o>57343?e?Cf(i,a):n:e?Df(i,a,a+2):o-56320+(n-55296<<10)+65536}},jf={codeAt:Ff(!1),charAt:Ff(!0)},Nf=jf.charAt,Uf=bn,Vf=ni,zf=Du,Bf=Fu,Wf="String Iterator",Kf=Vf.set,Hf=Vf.getterFor(Wf);zf(String,"String",(function(e){Kf(this,{type:Wf,string:Uf(e),index:0})}),(function(){var e,t=Hf(this),r=t.string,n=t.index;return n>=r.length?Bf(void 0,!0):(e=Nf(r,n),t.index+=e.length,Bf(e,!1))}));var qf=mo.f("iterator"),Gf=r(qf);function Xf(e){return(Xf="function"==typeof xf&&"symbol"==typeof Gf?function(e){return typeof e}:function(e){return e&&"function"==typeof xf&&e.constructor===xf&&e!==xf.prototype?"symbol":typeof e})(e)}var Yf=mo.f("toPrimitive"),$f=r(Yf);function Jf(e){var t=function(e,t){if("object"!==Xf(e)||null===e)return e;var r=e[$f];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xf(t)?t:String(t)}function Qf(e,t,r){return(t=Jf(t))in e?Vc(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zf(e,t){var r=ln(e);if(Bs){var n=Bs(e);t&&(n=tl(n).call(n,(function(t){return fl(e,t).enumerable}))),Ml(r).apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?pc(r=Zf(Object(o),!0)).call(r,(function(t){Qf(e,t,o[t])})):kc?Ic(e,kc(o)):pc(n=Zf(Object(o))).call(n,(function(t){Vc(e,t,fl(o,t))}))}return e}xr({target:"Object",stat:!0,sham:!O},{create:qn});var tp=te.Object,rp=function(e,t){return tp.create(e,t)},np=r(rp),op=Ye,ip=ql,ap=Nl;xr({target:"Object",stat:!0,forced:i((function(){ip(1)})),sham:!ap},{getPrototypeOf:function(e){return ip(op(e))}});var sp=r(te.Object.getPrototypeOf);xr({target:"Object",stat:!0},{setPrototypeOf:mu});var lp=r(te.Object.setPrototypeOf),up=Qe,cp=mc,fp=x,pp=Jt,hp=ee,dp=gr,vp=Error,gp=g("".replace),yp=String(vp("zxcasd").stack),mp=/\n\s*at [^:]*:[^\n]*/,_p=mp.test(yp),bp=U,wp=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",bp(1,7)),7!==e.stack)})),Sp=gr,Ep=function(e,t){if(_p&&"string"==typeof e&&!vp.prepareStackTrace)for(;t--;)e=gp(e,mp,"");return e},kp=wp,Pp=Error.captureStackTrace,Tp=Al,Rp=pt("iterator"),xp=Array.prototype,Op=function(e){return void 0!==e&&(Tp.Array===e||xp[Rp]===e)},Mp=yn,Ap=Le,Ip=H,Cp=Al,Lp=pt("iterator"),Dp=function(e){if(!Ip(e))return Ap(e,Lp)||Ap(e,"@@iterator")||Cp[Mp(e)]},Fp=I,jp=Ae,Np=rr,Up=Re,Vp=Dp,zp=TypeError,Bp=function(e,t){var r=arguments.length<2?Vp(e):t;if(jp(r))return Np(Fp(r,e));throw zp(Up(e)+" is not iterable")},Wp=I,Kp=rr,Hp=Le,qp=function(e,t,r){var n,o;Kp(e);try{if(!(n=Hp(e,"return"))){if("throw"===t)throw r;return r}n=Wp(n,e)}catch(Ej){o=!0,n=Ej}if("throw"===t)throw r;if(o)throw n;return Kp(n),r},Gp=$t,Xp=I,Yp=rr,$p=Re,Jp=Op,Qp=zr,Zp=se,eh=Bp,th=Dp,rh=qp,nh=TypeError,oh=function(e,t){this.stopped=e,this.result=t},ih=oh.prototype,ah=function(e,t,r){var n,o,i,a,s,l,u,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Gp(t,c),g=function(e){return n&&rh(n,"normal",e),new oh(!0,e)},y=function(e){return f?(Yp(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(!(o=th(e)))throw nh($p(e)+" is not iterable");if(Jp(o)){for(i=0,a=Qp(e);a>i;i++)if((s=y(e[i]))&&Zp(ih,s))return s;return new oh(!1)}n=eh(e,o)}for(l=p?e.next:n.next;!(u=Xp(l,n)).done;){try{s=y(u.value)}catch(Ej){rh(n,"throw",Ej)}if("object"==typeof s&&s&&Zp(ih,s))return s}return new oh(!1)},sh=bn,lh=xr,uh=se,ch=ql,fh=mu,ph=function(e,t,r){for(var n=cp(t),o=pp.f,i=fp.f,a=0;a<n.length;a++){var s=n[a];up(e,s)||r&&up(r,s)||o(e,s,i(t,s))}},hh=qn,dh=gr,vh=U,gh=function(e,t){hp(t)&&"cause"in t&&dp(e,"cause",t.cause)},yh=function(e,t,r,n){kp&&(Pp?Pp(e,t):Sp(e,"stack",Ep(r,n)))},mh=ah,_h=function(e,t){return void 0===e?arguments.length<2?"":t:sh(e)},bh=pt("toStringTag"),wh=Error,Sh=[].push,Eh=function(e,t){var r,n=uh(kh,this);fh?r=fh(wh(),n?ch(this):kh):(r=n?this:hh(kh),dh(r,bh,"Error")),void 0!==t&&dh(r,"message",_h(t)),yh(r,Eh,r.stack,1),arguments.length>2&&gh(r,arguments[2]);var o=[];return mh(e,Sh,{that:o}),dh(r,"errors",o),r};fh?fh(Eh,wh):ph(Eh,wh,{name:!0});var kh=Eh.prototype=hh(wh.prototype,{constructor:vh(1,Eh),message:vh(1,""),name:vh(1,"AggregateError")});lh({global:!0,constructor:!0,arity:2},{AggregateError:Eh});var Ph,Th,Rh,xh,Oh="undefined"!=typeof process&&"process"==b(process),Mh=ae,Ah=yo,Ih=O,Ch=pt("species"),Lh=function(e){var t=Mh(e);Ih&&t&&!t[Ch]&&Ah(t,Ch,{configurable:!0,get:function(){return this}})},Dh=se,Fh=TypeError,jh=function(e,t){if(Dh(t,e))return e;throw Fh("Incorrect invocation")},Nh=Ei,Uh=Re,Vh=TypeError,zh=function(e){if(Nh(e))return e;throw Vh(Uh(e)+" is not a constructor")},Bh=rr,Wh=zh,Kh=H,Hh=pt("species"),qh=function(e,t){var r,n=Bh(e).constructor;return void 0===n||Kh(r=Bh(n)[Hh])?t:Wh(r)},Gh=TypeError,Xh=function(e,t){if(e<t)throw Gh("Not enough arguments");return e},Yh=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),$h=o,Jh=f,Qh=$t,Zh=R,ed=Qe,td=i,rd=On,nd=ls,od=Tt,id=Xh,ad=Yh,sd=Oh,ld=$h.setImmediate,ud=$h.clearImmediate,cd=$h.process,fd=$h.Dispatch,pd=$h.Function,hd=$h.MessageChannel,dd=$h.String,vd=0,gd={},yd="onreadystatechange";td((function(){Ph=$h.location}));var md=function(e){if(ed(gd,e)){var t=gd[e];delete gd[e],t()}},_d=function(e){return function(){md(e)}},bd=function(e){md(e.data)},wd=function(e){$h.postMessage(dd(e),Ph.protocol+"//"+Ph.host)};ld&&ud||(ld=function(e){id(arguments.length,1);var t=Zh(e)?e:pd(e),r=nd(arguments,1);return gd[++vd]=function(){Jh(t,void 0,r)},Th(vd),vd},ud=function(e){delete gd[e]},sd?Th=function(e){cd.nextTick(_d(e))}:fd&&fd.now?Th=function(e){fd.now(_d(e))}:hd&&!ad?(xh=(Rh=new hd).port2,Rh.port1.onmessage=bd,Th=Qh(xh.postMessage,xh)):$h.addEventListener&&Zh($h.postMessage)&&!$h.importScripts&&Ph&&"file:"!==Ph.protocol&&!td(wd)?(Th=wd,$h.addEventListener("message",bd,!1)):Th=yd in od("script")?function(e){rd.appendChild(od("script"))[yd]=function(){rd.removeChild(this),md(e)}}:function(e){setTimeout(_d(e),0)});var Sd={set:ld,clear:ud},Ed=function(){this.head=null,this.tail=null};Ed.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 kd,Pd,Td,Rd,xd,Od=Ed,Md=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,Ad=/web0s(?!.*chrome)/i.test(le),Id=o,Cd=$t,Ld=x.f,Dd=Sd.set,Fd=Od,jd=Yh,Nd=Md,Ud=Ad,Vd=Oh,zd=Id.MutationObserver||Id.WebKitMutationObserver,Bd=Id.document,Wd=Id.process,Kd=Id.Promise,Hd=Ld(Id,"queueMicrotask"),qd=Hd&&Hd.value;if(!qd){var Gd=new Fd,Xd=function(){var e,t;for(Vd&&(e=Wd.domain)&&e.exit();t=Gd.get();)try{t()}catch(Ej){throw Gd.head&&kd(),Ej}e&&e.enter()};jd||Vd||Ud||!zd||!Bd?!Nd&&Kd&&Kd.resolve?((Rd=Kd.resolve(void 0)).constructor=Kd,xd=Cd(Rd.then,Rd),kd=function(){xd(Xd)}):Vd?kd=function(){Wd.nextTick(Xd)}:(Dd=Cd(Dd,Id),kd=function(){Dd(Xd)}):(Pd=!0,Td=Bd.createTextNode(""),new zd(Xd).observe(Td,{characterData:!0}),kd=function(){Td.data=Pd=!Pd}),qd=function(e){Gd.head||kd(),Gd.add(e)}}var Yd=qd,$d=function(e){try{return{error:!1,value:e()}}catch(Ej){return{error:!0,value:Ej}}},Jd=o.Promise,Qd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Zd=!Qd&&!Oh&&"object"==typeof window&&"object"==typeof document,ev=o,tv=Jd,rv=R,nv=qt,ov=ui,iv=pt,av=Zd,sv=Qd,lv=ve,uv=tv&&tv.prototype,cv=iv("species"),fv=!1,pv=rv(ev.PromiseRejectionEvent),hv={CONSTRUCTOR:nv("Promise",(function(){var e=ov(tv),t=e!==String(tv);if(!t&&66===lv)return!0;if(!uv.catch||!uv.finally)return!0;if(!lv||lv<51||!/native code/.test(e)){var r=new tv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[cv]=n,!(fv=r.then((function(){}))instanceof n))return!0}return!t&&(av||sv)&&!pv})),REJECTION_EVENT:pv,SUBCLASSING:fv},dv={},vv=Ae,gv=TypeError,yv=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw gv("Bad Promise constructor");t=e,r=n})),this.resolve=vv(t),this.reject=vv(r)};dv.f=function(e){return new yv(e)};var mv,_v,bv=xr,wv=Oh,Sv=o,Ev=I,kv=vo,Pv=zo,Tv=Lh,Rv=Ae,xv=R,Ov=ee,Mv=jh,Av=qh,Iv=Sd.set,Cv=Yd,Lv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(Ej){}},Dv=$d,Fv=Od,jv=ni,Nv=Jd,Uv=hv,Vv=dv,zv="Promise",Bv=Uv.CONSTRUCTOR,Wv=Uv.REJECTION_EVENT,Kv=jv.getterFor(zv),Hv=jv.set,qv=Nv&&Nv.prototype,Gv=Nv,Xv=qv,Yv=Sv.TypeError,$v=Sv.document,Jv=Sv.process,Qv=Vv.f,Zv=Qv,eg=!!($v&&$v.createEvent&&Sv.dispatchEvent),tg="unhandledrejection",rg=function(e){var t;return!(!Ov(e)||!xv(t=e.then))&&t},ng=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&lg(t),t.rejection=1),!0===s?r=i:(c&&c.enter(),r=s(i),c&&(c.exit(),o=!0)),r===e.promise?u(Yv("Promise-chain cycle")):(n=rg(r))?Ev(n,r,l,u):l(r)):u(i)}catch(Ej){c&&!o&&c.exit(),u(Ej)}},og=function(e,t){e.notified||(e.notified=!0,Cv((function(){for(var r,n=e.reactions;r=n.get();)ng(r,e);e.notified=!1,t&&!e.rejection&&ag(e)})))},ig=function(e,t,r){var n,o;eg?((n=$v.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Sv.dispatchEvent(n)):n={promise:t,reason:r},!Wv&&(o=Sv["on"+e])?o(n):e===tg&&Lv("Unhandled promise rejection",r)},ag=function(e){Ev(Iv,Sv,(function(){var t,r=e.facade,n=e.value;if(sg(e)&&(t=Dv((function(){wv?Jv.emit("unhandledRejection",n,r):ig(tg,r,n)})),e.rejection=wv||sg(e)?2:1,t.error))throw t.value}))},sg=function(e){return 1!==e.rejection&&!e.parent},lg=function(e){Ev(Iv,Sv,(function(){var t=e.facade;wv?Jv.emit("rejectionHandled",t):ig("rejectionhandled",t,e.value)}))},ug=function(e,t,r){return function(n){e(t,n,r)}},cg=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,og(e,!0))},fg=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Yv("Promise can't be resolved itself");var n=rg(t);n?Cv((function(){var r={done:!1};try{Ev(n,t,ug(fg,r,e),ug(cg,r,e))}catch(Ej){cg(r,Ej,e)}})):(e.value=t,e.state=1,og(e,!1))}catch(Ej){cg({done:!1},Ej,e)}}};Bv&&(Xv=(Gv=function(e){Mv(this,Xv),Rv(e),Ev(mv,this);var t=Kv(this);try{e(ug(fg,t),ug(cg,t))}catch(Ej){cg(t,Ej)}}).prototype,(mv=function(e){Hv(this,{type:zv,done:!1,notified:!1,parent:!1,reactions:new Fv,rejection:!1,state:0,value:void 0})}).prototype=kv(Xv,"then",(function(e,t){var r=Kv(this),n=Qv(Av(this,Gv));return r.parent=!0,n.ok=!xv(e)||e,n.fail=xv(t)&&t,n.domain=wv?Jv.domain:void 0,0==r.state?r.reactions.add(n):Cv((function(){ng(n,r)})),n.promise})),_v=function(){var e=new mv,t=Kv(e);this.promise=e,this.resolve=ug(fg,t),this.reject=ug(cg,t)},Vv.f=Qv=function(e){return e===Gv||undefined===e?new _v(e):Zv(e)}),bv({global:!0,constructor:!0,wrap:!0,forced:Bv},{Promise:Gv}),Pv(Gv,zv,!1,!0),Tv(zv);var pg=pt("iterator"),hg=!1;try{var dg=0,vg={next:function(){return{done:!!dg++}},return:function(){hg=!0}};vg[pg]=function(){return this},Array.from(vg,(function(){throw 2}))}catch(Ej){}var gg=function(e,t){if(!t&&!hg)return!1;var r=!1;try{var n={};n[pg]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(Ej){}return r},yg=Jd,mg=hv.CONSTRUCTOR||!gg((function(e){yg.all(e).then(void 0,(function(){}))})),_g=I,bg=Ae,wg=dv,Sg=$d,Eg=ah;xr({target:"Promise",stat:!0,forced:mg},{all:function(e){var t=this,r=wg.f(t),n=r.resolve,o=r.reject,i=Sg((function(){var r=bg(t.resolve),i=[],a=0,s=1;Eg(e,(function(e){var l=a++,u=!1;s++,_g(r,t,e).then((function(e){u||(u=!0,i[l]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var kg=xr,Pg=hv.CONSTRUCTOR;Jd&&Jd.prototype,kg({target:"Promise",proto:!0,forced:Pg,real:!0},{catch:function(e){return this.then(void 0,e)}});var Tg=I,Rg=Ae,xg=dv,Og=$d,Mg=ah;xr({target:"Promise",stat:!0,forced:mg},{race:function(e){var t=this,r=xg.f(t),n=r.reject,o=Og((function(){var o=Rg(t.resolve);Mg(e,(function(e){Tg(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Ag=I,Ig=dv;xr({target:"Promise",stat:!0,forced:hv.CONSTRUCTOR},{reject:function(e){var t=Ig.f(this);return Ag(t.reject,void 0,e),t.promise}});var Cg=rr,Lg=ee,Dg=dv,Fg=function(e,t){if(Cg(e),Lg(t)&&t.constructor===e)return t;var r=Dg.f(e);return(0,r.resolve)(t),r.promise},jg=xr,Ng=Jd,Ug=hv.CONSTRUCTOR,Vg=Fg,zg=ae("Promise"),Bg=!Ug;jg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Vg(Bg&&this===zg?Ng:this,e)}});var Wg=I,Kg=Ae,Hg=dv,qg=$d,Gg=ah;xr({target:"Promise",stat:!0,forced:mg},{allSettled:function(e){var t=this,r=Hg.f(t),n=r.resolve,o=r.reject,i=qg((function(){var r=Kg(t.resolve),o=[],i=0,a=1;Gg(e,(function(e){var s=i++,l=!1;a++,Wg(r,t,e).then((function(e){l||(l=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){l||(l=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var Xg=I,Yg=Ae,$g=ae,Jg=dv,Qg=$d,Zg=ah,ey="No one promise resolved";xr({target:"Promise",stat:!0,forced:mg},{any:function(e){var t=this,r=$g("AggregateError"),n=Jg.f(t),o=n.resolve,i=n.reject,a=Qg((function(){var n=Yg(t.resolve),a=[],s=0,l=1,u=!1;Zg(e,(function(e){var c=s++,f=!1;l++,Xg(n,t,e).then((function(e){f||u||(u=!0,o(e))}),(function(e){f||u||(f=!0,a[c]=e,--l||i(new r(a,ey)))}))})),--l||i(new r(a,ey))}));return a.error&&i(a.value),n.promise}});var ty=xr,ry=Jd,ny=i,oy=ae,iy=R,ay=qh,sy=Fg,ly=ry&&ry.prototype;ty({target:"Promise",proto:!0,real:!0,forced:!!ry&&ny((function(){ly.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=ay(this,oy("Promise")),r=iy(e);return this.then(r?function(r){return sy(t,e()).then((function(){return r}))}:e,r?function(r){return sy(t,e()).then((function(){throw r}))}:e)}});var uy=te.Promise,cy=dv,fy=$d;xr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=cy.f(this),r=fy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var py=uy,hy=r(py),dy=xr,vy=ii,gy=g([].reverse),yy=[1,2];dy({target:"Array",proto:!0,forced:String(yy)===String(yy.reverse())},{reverse:function(){return vy(this)&&(this.length=this.length),gy(this)}});var my=Ys("Array").reverse,_y=se,by=my,wy=Array.prototype,Sy=function(e){var t=e.reverse;return e===wy||_y(wy,e)&&t===wy.reverse?by:t},Ey=r(Sy),ky=xr,Py=ii,Ty=Ei,Ry=ee,xy=Fr,Oy=zr,My=J,Ay=eo,Iy=pt,Cy=ls,Ly=qs("slice"),Dy=Iy("species"),Fy=Array,jy=Math.max;ky({target:"Array",proto:!0,forced:!Ly},{slice:function(e,t){var r,n,o,i=My(this),a=Oy(i),s=xy(e,a),l=xy(void 0===t?a:t,a);if(Py(i)&&(r=i.constructor,(Ty(r)&&(r===Fy||Py(r.prototype))||Ry(r)&&null===(r=r[Dy]))&&(r=void 0),r===Fy||void 0===r))return Cy(i,s,l);for(n=new(void 0===r?Fy:r)(jy(l-s,0)),o=0;s<l;s++,o++)s in i&&Ay(n,o,i[s]);return n.length=o,n}});var Ny=Ys("Array").slice,Uy=se,Vy=Ny,zy=Array.prototype,By=function(e){var t=e.slice;return e===zy||Uy(zy,e)&&t===zy.slice?Vy:t},Wy=r(By);function Ky(){Ky=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Vc||function(e,t,r){e[t]=r.value},o="function"==typeof xf?xf:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r){return Vc(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(R){l=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=np(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(R){return{type:"throw",arg:R}}}e.wrap=u;var f={};function p(){}function h(){}function d(){}var v={};l(v,i,(function(){return this}));var g=sp&&sp(sp(P([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=d.prototype=p.prototype=np(v);function m(e){var t;pc(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var l=c(e[n],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==Xf(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(l.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){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=c(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 o=c(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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]),Ml(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],pc(e).call(e,S,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:T}}function T(){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 lp?lp(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=np(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,o,i){void 0===i&&(i=hy);var a=new _(u(t,r,n,o),i);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,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Ml(r).call(r,n);return Ey(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,k.prototype={constructor:k,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,pc(t=this.tryEntries).call(t,E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Wy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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 o=n.arg;E(r)}return o}}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 Hy(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(Ej){return void r(Ej)}s.done?t(l):hy.resolve(l).then(n,o)}function qy(e){return function(){var t=this,r=arguments;return new hy((function(n,o){var i=e.apply(t,r);function a(e){Hy(i,n,o,a,s,"next",e)}function s(e){Hy(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Gy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xy(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),Vc(e,Jf(n.key),n)}}function Yy(e,t,r){return t&&Xy(e.prototype,t),r&&Xy(e,r),Vc(e,"prototype",{writable:!1}),e}function $y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jy=Qe,Qy=I,Zy=ee,em=rr,tm=function(e){return void 0!==e&&(Jy(e,"value")||Jy(e,"writable"))},rm=x,nm=ql;xr({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return em(t)===i?t[r]:(n=rm.f(t,r))?tm(n)?n.value:void 0===n.get?void 0:Qy(n.get,i):Zy(o=nm(t))?e(o,r,i):void 0}});var om=r(te.Reflect.get),im=g,am=Ae,sm=ee,lm=Qe,um=ls,cm=a,fm=Function,pm=im([].concat),hm=im([].join),dm={},vm=cm?fm.bind:function(e){var t=am(this),r=t.prototype,n=um(arguments,1),o=function(){var r=pm(n,um(arguments));return this instanceof o?function(e,t,r){if(!lm(dm,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";dm[t]=fm("C,a","return new C("+hm(n,",")+")")}return dm[t](e,r)}(t,r.length,r):t.apply(e,r)};return sm(r)&&(o.prototype=r),o},gm=vm;xr({target:"Function",proto:!0,forced:Function.bind!==gm},{bind:gm});var ym=Ys("Function").bind,mm=se,_m=ym,bm=Function.prototype,wm=function(e){var t=e.bind;return e===bm||mm(bm,e)&&t===bm.bind?_m:t},Sm=r(wm);function Em(e){var t;return(Em=lp?Sm(t=sp).call(t):function(e){return e.__proto__||sp(e)})(e)}function km(){var e;"undefined"!=typeof Reflect&&om?km=Sm(e=om).call(e):km=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Em(e)););return e}(e,t);if(n){var o=fl(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return km.apply(this,arguments)}function Pm(e,t){var r;return(Pm=lp?Sm(r=lp).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function Tm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=np(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Vc(e,"prototype",{writable:!1}),t&&Pm(e,t)}var Rm=xr,xm=f,Om=vm,Mm=zh,Am=rr,Im=ee,Cm=qn,Lm=i,Dm=ae("Reflect","construct"),Fm=Object.prototype,jm=[].push,Nm=Lm((function(){function e(){}return!(Dm((function(){}),[],e)instanceof e)})),Um=!Lm((function(){Dm((function(){}))})),Vm=Nm||Um;Rm({target:"Reflect",stat:!0,forced:Vm,sham:Vm},{construct:function(e,t){Mm(e),Am(t);var r=arguments.length<3?e:Mm(arguments[2]);if(Um&&!Nm)return Dm(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 xm(jm,n,t),new(xm(Om,e,n))}var o=r.prototype,i=Cm(Im(o)?o:Fm),a=xm(e,i,t);return Im(a)?a:i}});var zm=r(te.Reflect.construct);function Bm(){if("undefined"==typeof Reflect||!zm)return!1;if(zm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(zm(Boolean,[],(function(){}))),!0}catch(vT){return!1}}function Wm(e){var t=Bm();return function(){var r,n=Em(e);if(t){var o=Em(this).constructor;r=zm(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $y(e)}(this,r)}}xr({target:"Array",stat:!0},{isArray:ii});var Km=te.Array.isArray,Hm=r(Km);function qm(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 Gm=Dp,Xm=r(Gm),Ym=rr,$m=qp,Jm=$t,Qm=I,Zm=Ye,e_=function(e,t,r,n){try{return n?t(Ym(r)[0],r[1]):t(r)}catch(Ej){$m(e,"throw",Ej)}},t_=Op,r_=Ei,n_=zr,o_=eo,i_=Bp,a_=Dp,s_=Array,l_=function(e){var t=Zm(e),r=r_(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Jm(o,n>2?arguments[2]:void 0));var a,s,l,u,c,f,p=a_(t),h=0;if(!p||this===s_&&t_(p))for(a=n_(t),s=r?new this(a):s_(a);a>h;h++)f=i?o(t[h],h):t[h],o_(s,h,f);else for(c=(u=i_(t,p)).next,s=r?new this:[];!(l=Qm(c,u)).done;h++)f=i?e_(u,o,[l.value,h],!0):l.value,o_(s,h,f);return s.length=h,s},u_=l_;xr({target:"Array",stat:!0,forced:!gg((function(e){Array.from(e)}))},{from:u_});var c_=te.Array.from,f_=r(c_);function p_(e,t){var r;if(e){if("string"==typeof e)return qm(e,t);var n=Wy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?f_(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qm(e,t):void 0}}function h_(e){return function(e){if(Hm(e))return qm(e)}(e)||function(e){if(void 0!==xf&&null!=Xm(e)||null!=e["@@iterator"])return f_(e)}(e)||p_(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 d_,v_=Ys("Array").concat,g_=se,y_=v_,m_=Array.prototype,__=r((function(e){var t=e.concat;return e===m_||g_(m_,e)&&t===m_.concat?y_:t})),b_=window.VePlayer.error,w_=b_.VeError,S_=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}(S_||{});b_.Level;var E_=ep(ep({},S_),b_.ErrorCode),k_=ep(ep({},b_.ERROR_INFO),{},(Qf(d_={},210,{messageTextKey:"INVALID_PARAMETER",level:b_.Level.Fatal}),Qf(d_,211,{messageTextKey:"EMPTY_RTM_FALLBACK_PARAMETER",level:b_.Level.Warn}),Qf(d_,220,{messageTextKey:"INVALID_LOGGER",level:b_.Level.Warn}),d_));function P_(e,t){return new w_(ep({errorCode:e},k_[e]),t)}var T_=r(wm),R_="\t\n\v\f\r                 \u2028\u2029\ufeff",x_=X,O_=bn,M_=R_,A_=g("".replace),I_=RegExp("^["+M_+"]+"),C_=RegExp("(^|[^"+M_+"])["+M_+"]+$"),L_=function(e){return function(t){var r=O_(x_(t));return 1&e&&(r=A_(r,I_,"")),2&e&&(r=A_(r,C_,"$1")),r}},D_={start:L_(1),end:L_(2),trim:L_(3)},F_=o,j_=i,N_=g,U_=bn,V_=D_.trim,z_=R_,B_=F_.parseInt,W_=F_.Symbol,K_=W_&&W_.iterator,H_=/^[+-]?0x/i,q_=N_(H_.exec),G_=8!==B_(z_+"08")||22!==B_(z_+"0x16")||K_&&!j_((function(){B_(Object(K_))}))?function(e,t){var r=V_(U_(e));return B_(r,t>>>0||(q_(H_,r)?16:10))}:B_;xr({global:!0,forced:parseInt!=G_},{parseInt:G_});var X_,Y_=r(te.parseInt),$_="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,J_=o,Q_=f,Z_=R,eb=$_,tb=le,rb=ls,nb=Xh,ob=J_.Function,ib=/MSIE .\./.test(tb)||eb&&((X_=J_.Bun.version.split(".")).length<3||0==X_[0]&&(X_[1]<3||3==X_[1]&&0==X_[2])),ab=function(e,t){var r=t?2:1;return ib?function(n,o){var i=nb(arguments.length,1)>r,a=Z_(n)?n:ob(n),s=i?rb(arguments,r):[],l=i?function(){Q_(a,this,s)}:a;return t?e(l,o):e(l)}:e},sb=xr,lb=o,ub=ab(lb.setInterval,!0);sb({global:!0,bind:!0,forced:lb.setInterval!==ub},{setInterval:ub});var cb=xr,fb=o,pb=ab(fb.setTimeout,!0);cb({global:!0,bind:!0,forced:fb.setTimeout!==pb},{setTimeout:pb});var hb=r(te.setTimeout),db=r(By),vb=NaN,gb="[object Symbol]",yb=/^\s+|\s+$/g,mb=/^[-+]0x[0-9a-f]+$/i,_b=/^0b[01]+$/i,bb=/^0o[0-7]+$/i,wb=Y_,Sb="object"==Xf(t)&&t&&t.Object===Object&&t,Eb="object"==("undefined"==typeof self?"undefined":Xf(self))&&self&&self.Object===Object&&self,kb=Sb||Eb||Function("return this")(),Pb=Object.prototype.toString,Tb=Math.max,Rb=Math.min,xb=function(){return kb.Date.now()};function Ob(e){var t=Xf(e);return!!e&&("object"==t||"function"==t)}function Mb(e){return"symbol"==Xf(e)||function(e){return!!e&&"object"==Xf(e)}(e)&&Pb.call(e)==gb}function Ab(e){if("number"==typeof e)return e;if(Mb(e))return vb;if(Ob(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ob(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(yb,"");var r=_b.test(e);return r||bb.test(e)?wb(db(e).call(e,2),r?2:8):mb.test(e)?vb:+e}var Ib=function(e,t,r){var n,o,i,a,s,l,u=0,c=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,i=o;return n=o=void 0,u=t,a=e.apply(i,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-u>=i}function v(){var e=xb();if(d(e))return g(e);s=hb(v,function(e){var r=t-(e-l);return f?Rb(r,i-(e-u)):r}(e))}function g(e){return s=void 0,p&&n?h(e):(n=o=void 0,a)}function y(){var e=xb(),r=d(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return u=e,s=hb(v,t),c?h(e):a}(l);if(f)return s=hb(v,t),h(l)}return void 0===s&&(s=hb(v,t)),a}return t=Ab(t)||0,Ob(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Tb(Ab(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(xb())},y},Cb=r(Ib),Lb=ep(ep({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function Db(){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 Fb=window.VePlayer.Plugin,jb=window.VePlayer.Sniffer,Nb=window.VePlayer.XGEvents,Ub=Fb.POSITIONS,Vb=function(e){Tm(r,e);var t=Wm(r);function r(){return Gy(this,r),t.apply(this,arguments)}return Yy(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Db,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(Lb.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(Nb.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=Cb(T_(e=this._handleRefresh).call(e,this),200);var t="mobile"===jb.device?"touchend":"click";T_(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:Ub.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(Fb),zb=r(Uc),Bb=r(sn),Wb=r(zs),Kb=r(el),Hb=r(cl),qb=r(fc),Gb=r(Ec),Xb=r(Ac),Yb=r(Rf),$b=r(qf),Jb=r(mo.f("asyncIterator")),Qb=xr,Zb=qr.indexOf,ew=tc,tw=E([].indexOf),rw=!!tw&&1/tw([1],1,-0)<0;Qb({target:"Array",proto:!0,forced:rw||!ew("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return rw?tw(this,e,t)||0:Zb(this,e,t)}});var nw=Ys("Array").indexOf,ow=se,iw=nw,aw=Array.prototype,sw=function(e){var t=e.indexOf;return e===aw||ow(aw,e)&&t===aw.indexOf?iw:t},lw=r(sw),uw=r(sw),cw=xr,fw=Date,pw=g(fw.prototype.getTime);cw({target:"Date",stat:!0},{now:function(){return pw(new fw)}});var hw=r(te.Date.now),dw=i,vw=pt("iterator"),gw=!dw((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[vw]||"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})),yw=vo,mw=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:yw(e,n,t[n],r);return e},_w=ao,bw=Math.floor,ww=function(e,t){var r=e.length,n=bw(r/2);return r<8?Sw(e,t):Ew(e,ww(_w(e,0,n),t),ww(_w(e,n),t),t)},Sw=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Ew=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},kw=ww,Pw=xr,Tw=o,Rw=I,xw=g,Ow=O,Mw=gw,Aw=vo,Iw=yo,Cw=mw,Lw=zo,Dw=uu,Fw=ni,jw=jh,Nw=R,Uw=Qe,Vw=$t,zw=yn,Bw=rr,Ww=ee,Kw=bn,Hw=qn,qw=U,Gw=Bp,Xw=Dp,Yw=Xh,$w=kw,Jw=pt("iterator"),Qw="URLSearchParams",Zw=Qw+"Iterator",eS=Fw.set,tS=Fw.getterFor(Qw),rS=Fw.getterFor(Zw),nS=Object.getOwnPropertyDescriptor,oS=function(e){if(!Ow)return Tw[e];var t=nS(Tw,e);return t&&t.value},iS=oS("fetch"),aS=oS("Request"),sS=oS("Headers"),lS=aS&&aS.prototype,uS=sS&&sS.prototype,cS=Tw.RegExp,fS=Tw.TypeError,pS=Tw.decodeURIComponent,hS=Tw.encodeURIComponent,dS=xw("".charAt),vS=xw([].join),gS=xw([].push),yS=xw("".replace),mS=xw([].shift),_S=xw([].splice),bS=xw("".split),wS=xw("".slice),SS=/\+/g,ES=Array(4),kS=function(e){return ES[e-1]||(ES[e-1]=cS("((?:%[\\da-f]{2}){"+e+"})","gi"))},PS=function(e){try{return pS(e)}catch(Ej){return e}},TS=function(e){var t=yS(e,SS," "),r=4;try{return pS(t)}catch(Ej){for(;r;)t=yS(t,kS(r--),PS);return t}},RS=/[!'()~]|%20/g,xS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},OS=function(e){return xS[e]},MS=function(e){return yS(hS(e),RS,OS)},AS=Dw((function(e,t){eS(this,{type:Zw,iterator:Gw(tS(e).entries),kind:t})}),"Iterator",(function(){var e=rS(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&&(Ww(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===dS(e,0)?wS(e,1):e:Kw(e)))};IS.prototype={type:Qw,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,l=Xw(e);if(l)for(r=(t=Gw(e,l)).next;!(n=Rw(r,t)).done;){if(i=(o=Gw(Bw(n.value))).next,(a=Rw(i,o)).done||(s=Rw(i,o)).done||!Rw(i,o).done)throw fS("Expected sequence with length 2");gS(this.entries,{key:Kw(a.value),value:Kw(s.value)})}else for(var u in e)Uw(e,u)&&gS(this.entries,{key:u,value:Kw(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=bS(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=bS(t,"="),gS(this.entries,{key:TS(mS(r)),value:TS(vS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],gS(r,MS(e.key)+"="+MS(e.value));return vS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var CS=function(){jw(this,LS);var e=eS(this,new IS(arguments.length>0?arguments[0]:void 0));Ow||(this.length=e.entries.length)},LS=CS.prototype;if(Cw(LS,{append:function(e,t){Yw(arguments.length,2);var r=tS(this);gS(r.entries,{key:Kw(e),value:Kw(t)}),Ow||this.length++,r.updateURL()},delete:function(e){Yw(arguments.length,1);for(var t=tS(this),r=t.entries,n=Kw(e),o=0;o<r.length;)r[o].key===n?_S(r,o,1):o++;Ow||(this.length=r.length),t.updateURL()},get:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=[],o=0;o<t.length;o++)t[o].key===r&&gS(n,t[o].value);return n},has:function(e){Yw(arguments.length,1);for(var t=tS(this).entries,r=Kw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Yw(arguments.length,1);for(var r,n=tS(this),o=n.entries,i=!1,a=Kw(e),s=Kw(t),l=0;l<o.length;l++)(r=o[l]).key===a&&(i?_S(o,l--,1):(i=!0,r.value=s));i||gS(o,{key:a,value:s}),Ow||(this.length=o.length),n.updateURL()},sort:function(){var e=tS(this);$w(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=tS(this).entries,n=Vw(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new AS(this,"keys")},values:function(){return new AS(this,"values")},entries:function(){return new AS(this,"entries")}},{enumerable:!0}),Aw(LS,Jw,LS.entries,{name:"entries"}),Aw(LS,"toString",(function(){return tS(this).serialize()}),{enumerable:!0}),Ow&&Iw(LS,"size",{get:function(){return tS(this).entries.length},configurable:!0,enumerable:!0}),Lw(CS,Qw),Pw({global:!0,constructor:!0,forced:!Mw},{URLSearchParams:CS}),!Mw&&Nw(sS)){var DS=xw(uS.has),FS=xw(uS.set),jS=function(e){if(Ww(e)){var t,r=e.body;if(zw(r)===Qw)return t=e.headers?new sS(e.headers):new sS,DS(t,"content-type")||FS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Hw(e,{body:qw(0,Kw(r)),headers:qw(0,t)})}return e};if(Nw(iS)&&Pw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return iS(e,arguments.length>1?jS(arguments[1]):{})}}),Nw(aS)){var NS=function(e){return jw(this,lS),new aS(e,arguments.length>1?jS(arguments[1]):{})};lS.constructor=NS,NS.prototype=lS,Pw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:NS})}}var US={URLSearchParams:CS,getState:tS},VS=r(te.URLSearchParams),zS=ee,BS=b,WS=pt("match"),KS=function(e){var t;return zS(e)&&(void 0!==(t=e[WS])?!!t:"RegExp"==BS(e))},HS=TypeError,qS=function(e){if(KS(e))throw HS("The method doesn't accept regular expressions");return e},GS=pt("match"),XS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[GS]=!1,"/./"[e](t)}catch(Ej){}}return!1},YS=xr,$S=E;x.f;var JS=Ur,QS=bn,ZS=qS,eE=X,tE=XS,rE=$S("".startsWith),nE=$S("".slice),oE=Math.min;YS({target:"String",proto:!0,forced:!tE("startsWith")},{startsWith:function(e){var t=QS(eE(this));ZS(e);var r=JS(oE(arguments.length>1?arguments[1]:void 0,t.length)),n=QS(e);return rE?rE(t,n,r):nE(t,r,r+n.length)===n}});var iE=Ys("String").startsWith,aE=se,sE=iE,lE=String.prototype,uE=r((function(e){var t=e.startsWith;return"string"==typeof e||e===lE||aE(lE,e)&&t===lE.startsWith?sE:t})),cE=G_;xr({target:"Number",stat:!0,forced:Number.parseInt!=cE},{parseInt:cE});var fE=r(te.Number.parseInt),pE=O,hE=g,dE=I,vE=i,gE=nn,yE=po,mE=C,_E=Ye,bE=K,wE=Object.assign,SE=Object.defineProperty,EE=hE([].concat),kE=!wE||vE((function(){if(pE&&1!==wE({b:1},wE(SE({},"a",{enumerable:!0,get:function(){SE(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!=wE({},e)[r]||gE(wE({},t)).join("")!=n}))?function(e,t){for(var r=_E(e),n=arguments.length,o=1,i=yE.f,a=mE.f;n>o;)for(var s,l=bE(arguments[o++]),u=i?EE(gE(l),i(l)):gE(l),c=u.length,f=0;c>f;)s=u[f++],pE&&!dE(a,l,s)||(r[s]=l[s]);return r}:wE,PE=kE;xr({target:"Object",stat:!0,arity:2,forced:Object.assign!==PE},{assign:PE});var TE=r(te.Object.assign),RE=te,xE=f;RE.JSON||(RE.JSON={stringify:JSON.stringify});var OE=function(e,t,r){return xE(RE.JSON.stringify,null,arguments)},ME=r(OE),AE=f,IE=J,CE=Ir,LE=zr,DE=tc,FE=Math.min,jE=[].lastIndexOf,NE=!!jE&&1/[1].lastIndexOf(1,-0)<0,UE=DE("lastIndexOf"),VE=NE||!UE?function(e){if(NE)return AE(jE,this,arguments)||0;var t=IE(this),r=LE(t),n=r-1;for(arguments.length>1&&(n=FE(n,CE(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:jE;xr({target:"Array",proto:!0,forced:VE!==[].lastIndexOf},{lastIndexOf:VE});var zE=Ys("Array").lastIndexOf,BE=se,WE=zE,KE=Array.prototype,HE=r((function(e){var t=e.lastIndexOf;return e===KE||BE(KE,e)&&t===KE.lastIndexOf?WE:t})),qE=r(py),GE=o,XE=i,YE=bn,$E=D_.trim,JE=R_,QE=g("".charAt),ZE=GE.parseFloat,ek=GE.Symbol,tk=ek&&ek.iterator,rk=1/ZE(JE+"-0")!=-1/0||tk&&!XE((function(){ZE(Object(tk))}))?function(e){var t=$E(YE(e)),r=ZE(t);return 0===r&&"-"==QE(t,0)?-0:r}:ZE,nk=rk;xr({target:"Number",stat:!0,forced:Number.parseFloat!=nk},{parseFloat:nk});var ok=r(te.Number.parseFloat),ik=qr.includes;xr({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return ik(this,e,arguments.length>1?arguments[1]:void 0)}});var ak=Ys("Array").includes,sk=xr,lk=qS,uk=X,ck=bn,fk=XS,pk=g("".indexOf);sk({target:"String",proto:!0,forced:!fk("includes")},{includes:function(e){return!!~pk(ck(uk(this)),ck(lk(e)),arguments.length>1?arguments[1]:void 0)}});var hk=Ys("String").includes,dk=se,vk=ak,gk=hk,yk=Array.prototype,mk=String.prototype,_k=r((function(e){var t=e.includes;return e===yk||dk(yk,e)&&t===yk.includes?vk:"string"==typeof e||e===mk||dk(mk,e)&&t===mk.includes?gk:t})),bk=r(te.setInterval);function wk(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),zb(e,n.key,n)}}function Sk(e,t,r){return t&&wk(e.prototype,t),r&&wk(e,r),e}function Ek(e,t,r){return t in e?zb(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kk(e,t){var r=Bb(e);if(Wb){var n=Wb(e);t&&(n=Kb(n).call(n,(function(t){return Hb(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pk(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)qb(r=kk(Object(n),!0)).call(r,(function(t){Ek(e,t,n[t])}));else if(Gb)Xb(e,Gb(n));else{var o;qb(o=kk(Object(n))).call(o,(function(t){zb(e,t,Hb(n,t))}))}}return e}void 0===Yb||($b||(Yb.iterator=Yb("Symbol.iterator"))),void 0===Yb||(Jb||(Yb.asyncIterator=Yb("Symbol.asyncIterator")));var Tk="xgplayer_device_id",Rk="xgplayer_user_id",xk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var o,i=t[r];if(uw(o=t[r]).call(o,e)>=0)return i.split("=")[1]||null}},Ok=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},Mk=function(){var e=xk(Tk);if(e)return e;var t=Ok(11);return document.cookie=Tk+"="+t+";max-age=31536000;path=/",t},Ak=function(){var e=xk(Rk);if(e)return e;var t=Ok(12);return document.cookie=Rk+"="+t+";max-age=31536000;path=/",t};var Ik={get device(){return Ik.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:uw(e).call(e,"chrome")>-1&&uw(e).call(e,"safari")>-1,Firefox:uw(e).call(e,"firefox")>-1,Opera:uw(e).call(e,"opera")>-1,Safari:uw(e).call(e,"safari")>-1&&-1==uw(e).call(e,"chrome"),Edge:uw(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var o="";if("IE"===n)o=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var i in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[i].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);o=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);o=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);o=l?l[1]:"-1"}else if("Safari"===n){var u=e.match(/version\/([\d.]+)/);o=u?u[1]:"-1"}else if("Edge"===n){var c=e.match(/edge\/([\d.]+)/);o=c?c[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);o=f?f[1]:"-1"}t.type=n,t.versions=Y_(o)}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),o=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!i;return{isTablet:i,isPhone:a,isAndroid:n,isPc:!(a||n||r||i),isSymbian:r,isWindowsPhone:t,isFireFox:o}},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 Ck(){return hw()}function Lk(e){var t="unknown";return"string"!=typeof e?t:uw(e).call(e,".flv")>-1?"flv":uw(e).call(e,".m3u8")>-1?"m3u8":uw(e).call(e,".mp4")>-1?"mp4":uw(e).call(e,".sdp")>-1?"rts":t}function Dk(e){return"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+e):0}function Fk(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.flvlive)return e.plugins.flvlive;if(e.plugins.hlslive)return e.plugins.hlslive;if(e.plugins.hlsvod)return e.plugins.hlsvod;if(e.plugins.hlslivemobile)return e.plugins.hlslivemobile;if(e.plugins.flvlivemobile)return e.plugins.flvlivemobile}return e.newHls||e.newFlv||e.__core__||e.flv}var jk={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Nk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=T_(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}Sk(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&&uE(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new VS(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=Lk(e.cdn_play_url),e.timestamp=Ck();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(Ej){}return e}(),n=r.cpu_core_number,o=r.memory_usage,i=r.network_downlink;e.cpu_core_number=n,e.memory_usage=o,e.network_downlink=i,e.muted=+this._player.muted,TE(e,Pk({},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,Pk({},e)))},e}(),Uk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||Ik.device:"none":"unknown";var e},Vk=["play","playing","pause","ended","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],zk=function(){function e(e){var t;this.options=e,this.logger=new Bk(e),this.restart=T_(t=this.restart).call(t,this),this.bindUrlChange()}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Bk(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=TE(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.sendLog=function(e){this.logger.sendLog(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}(),Bk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=TE({},e,function(e){return{device_id:e.device_id||Mk(),user_id:e.user_id||Ak(),error_report_stop:"boolean"!=typeof e.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?hw()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Nk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={},this.cachePlaying={}}Sk(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 hw()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=hw()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,o,i,a,s,l,u,c,f,p,h,d,v;this.handlePlayerComlete=T_(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=T_(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=T_(r=this.destroyFunc).call(r,this),this.handleUserLeave=T_(n=this.handleUserLeave).call(n,this),this.handlePlayerError=T_(o=this.handlePlayerError).call(o,this),this.handlePlayerReady=T_(i=this.handlePlayerReady).call(i,this),this.handlePlayerWaiting=T_(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=T_(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=T_(l=this.handlePlayerPause).call(l,this),this.handleTTFB=T_(u=this.handleTTFB).call(u,this),this.handleUrlChange=T_(c=this.handleUrlChange).call(c,this),this.handleKeyframe=T_(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=T_(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=T_(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=T_(d=this.handleCoreEvent).call(d,this),this.handleDegrade=T_(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=Pk({os:Ik.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return Pk({project_key:e.project_key,live_sdk_version:Fk(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.17",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:Ok(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,isSupportedH265:Dk("hev1.1.6.L93.B0,mp4a.40.2"),aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+hw(),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:Ik.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:hw(),play_current_time:0,cdn_play_url:r.config.url&&uE(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:Lk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=TE({},{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 o=this;for(var i in this.log){var a=function(t){zb(e.log[i],t,{get:function(){return null==this["_"+t]?o.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&zb(this.log[i],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?db(e).call(e,0,25e4):""}return""},enumerable:!0}),zb(this.log[i],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),zb(this.log[i],"access",{get:function(){return Uk()},enumerable:!0})}},t.sendLog=function(e){for(var t in this.commonParams)void 0===e[t]&&(e[t]=this["_"+t]||this.commonParams[t]);this.logmanager.push(e)},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=Fk(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=Ck(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===Ik.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===Ik.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;qb(Vk).call(Vk,(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,o=e.type,i=e.meta,a=e.sei,s=e.decodeFps,l=e.url,u=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var c=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),c&&(this.commonParams.cdn_ip=c);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(o,i);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(TE(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=Ck(),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(TE({url:l,state:u},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,db(Array.prototype).call(e,0))}catch(vT){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed,o=t.responseUrl,i=t.url;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0,this.log.first_frame.is_redirect=+(i!==o),this.log.play_result.is_redirect=this.log.first_frame.is_redirect},t.handleUrlChange=function(e){this.logmanager.push(TE(this.log.play_url_change,{url:e,timestamp:Ck()}))},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=Ck(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=Ck(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=Ck(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;TE(this.log.play_error,Pk({timestamp:Ck(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:ME(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(TE(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=Ck()),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))),this.options.error_report_stop?this.destroy(!0):this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var o=this.log.play_loadstream;o.timestamp=Ck(),o.loadstream_url=t,o.offersdp=r,o.sessionId=n,this.logmanager.push(o)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=Ck(),TE(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){try{var t=this,r=t.log,n=r.playing,o=r.first_frame,i=function(){if(100===e.code){var r=function(e){var t,r,n,o,i,a;for(t="",n=e.length,r=0;r<n;)switch((o=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:i=e[r++],t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e[r++],a=e[r++],t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&a)<<0)}return t}(e.content);r=db(r).call(r,uw(r).call(r,"{"),HE(r).call(r,"}")+1);var i=function(e,t){try{var r=e()}catch(vT){return t(vT)}return r&&r.then?r.then(void 0,t):r}((function(){var e=JSON.parse(r);return qE.resolve(t.getPlayerBuffer()).then((function(r){var i=r+t.ntpTime-e.ts;n.sei_delay=i,n.sei_source=e.source,n.ntp_sync=t.options.ntp?1:0,n.ntp_delta=t.ntp_delta,o.first_sei_delay=i,o.ntp_sync=t.options.ntp?1:0,o.ntp_delta=t.ntp_delta}))}),(function(){}));if(i&&i.then)return i.then((function(){}))}}();return qE.resolve(i&&i.then?i.then((function(){})):void 0)}catch(vT){return qE.reject(vT)}},t.handleMetaDataLoaded=function(e,t){this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=Ck(),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=Dk(t.codec))),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){TE(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=Ck(),this.logmanager.push(this.log.play_av_unsync)},t.handleStreamException=function(e){this.logmanager.push(TE({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=Fk(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(){try{var e=this;return qE.resolve(e.getRtcStats({onlyJb:!0})).then((function(t){if(void 0!==t.video_jb_delay)return t.video_jb_delay;var r=e.player.video.buffered;if(r){var n=Math.max(0,r.length-1);try{var o=fE(1e3*(r.end(n)-e.player.video.currentTime));return e.log.playing.audio_buffer_time=e.log.playing.video_buffer_time=o,o}catch(vT){return 0}}}))}catch(vT){return qE.reject(vT)}},t.getTransferCost=function(e){var t;if(!(null===(t=this.core)||void 0===t?void 0:t.transferCost))return{};if(e)return this.core.transferCost;var r=this.core.transferCost,n=r.demuxCost,o=r.remuxCost,i=r.appendCost,a={demuxCost:n-this.cachePlaying.demuxCost,remuxCost:o-this.cachePlaying.remuxCost,appendCost:i-this.cachePlaying.appendCost};return TE(this.cachePlaying,this.core.transferCost),a},t.getPlayerDownloadSpeed=function(){return this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo&&this.core.core.speedInfo().speed||{}},t.getPlayerQuality=function(){var e=this.player.video;if(e)if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=ok((t.droppedVideoFrames-this.tempDroppedFrameCount)/(t.totalVideoFrames-this.tempTotalFrameCount)).toFixed(1),this.log.play_stop.drop_percent=ok(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){var t=e.duration,r=void 0===t?1e3:t,n=e.onlyJb,o=void 0!==n&&n;try{var i=this,a=i.player.plugins.rts||i.player.plugins.rtm,s=a&&a.pc,l={};return s?qE.resolve(s.getStats()).then((function(e){return qb(e).call(e,(function(e){var t=e.type,n=e.mediaType,a=e.bytesReceived,s=e.packetsReceived,u=e.audioLevel,c=e.concealmentEvents,f=e.remoteTimestamp,p=e.timestamp,h=e.framesDropped,d=e.keyFramesDecoded,v=e.totalDecodeTime,g=e.framesDecoded,y=e.frameHeight,m=e.frameWidth,_=e.framesReceived,b=e.jitterBufferDelay,w=e.jitterBufferEmittedCount,S=e.jitter,E=e.nackCount,k=e.packetsLost,P=e.pliCount,T=e.totalSamplesReceived,R=e.concealedSamples,x=e.currentRoundTripTime,O=e.decoderImplementation,M=e.mimeType,A=e.freezeCount,I=e.totalFreezesDuration,C=e.totalPausesDuration;switch(t){case"inbound-rtp":if("audio"===n)l.audio_bytes_received=a-(i.cacheRtcStats.audioBytesReceived||0),i.cacheRtcStats.audioBytesReceived=a,l.audio_packets_lost=k-(i.cacheRtcStats.audioPacketsLost||0),l.audio_packets_received=s-(i.cacheRtcStats.audioPacketsReceived||0),i.cacheRtcStats.audioPacketsLost=k,i.cacheRtcStats.audioPacketsReceived=s,l.audio_level=u,l.concealment_event=c,l.audio_fraction_lost=l.audio_packets_lost/l.audio_packets_received,void 0!==i.cacheRtcStats.totalSamplesReceived&&(l.audio_rec_sample_rate=(T-i.cacheRtcStats.totalSamplesReceived)/r),i.cacheRtcStats.totalSamplesReceived=T,l.concealed_samples=R,l.total_samples_received=T;else{if(l.video_jb_delay=b/w*1e3,o)return l;l.frames_dropped=h,l.iframes_decoded=d,l.video_bytes_received=a-(i.cacheRtcStats.videoBytesReceived||0),i.cacheRtcStats.videoBytesReceived=a,l.video_dec_time=v,l.video_decoded_delay_ms=l.video_dec_elapse/g,l.video_frame_height=y,l.video_frame_width=m,void 0!==i.cacheRtcStats.framesDecoded&&(l.video_decode_framerate=(g-i.cacheRtcStats.framesDecoded)/r),i.cacheRtcStats.framesDecoded=g,void 0!==i.cacheRtcStats.framesReceived&&(l.video_recv_framerate=(_-i.cacheRtcStats.framesReceived)/r),void 0!==i.cacheRtcStats.freezeCount&&(l.freeze_count=A-i.cacheRtcStats.freezeCount,l.freeze_duration=I-i.cacheRtcStats.totalFreezesDuration),i.cacheRtcStats.freezeCount=A,i.cacheRtcStats.totalFreezesDuration=I,i.cacheRtcStats.framesReceived=_,l.total_pauses_duration=C,l.video_jitter=1e3*S,l.video_nack_count=E,l.video_packets_lost=k-(i.cacheRtcStats.videoPacketsLost||0),l.video_packets_received=s-(i.cacheRtcStats.videoPacketsReceived||0),l.video_fraction_lost=l.video_packets_lost/l.video_packets_received,i.cacheRtcStats.videoPacketsLost=k,i.cacheRtcStats.videoPacketsReceived=s,l.video_pli_count=P,l.decoder_name=O}break;case"remote-outbound-rtp":l.e2e_delay_ms=p-f;break;case"track":void 0!==m&&(l.video_frame_width=m,l.video_frame_height=y);break;case"candidate-pair":l.rtt=1e3*x;break;case"codec":_k(M).call(M,"video")?l.video_codec=M:l.audio_codec=n}})),TE(i.log.playing,{video_download_size:l.video_bytes_received,decode_fps:l.video_decode_framerate,width:l.video_frame_width,height:l.video_frame_height,current_speed:(l.audio_bytes_received+l.video_bytes_received)/r}),l})):qE.resolve(l)}catch(vT){return qE.reject(vT)}},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<Ck()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,Ck()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer();var o=t.getTransferCost(!1);if(!t.options.downloadSpeedInterval){var i=t.getPlayerDownloadSpeed(),a=i.speed,s=i.avgSpeed;t.log.playing.current_speed=a,t.log.playing.avg_speed=s}var l=Ck(),u=l-n,c=(r>200?r:0)+t.log.playing.stall_time,f=(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)),TE(t.log.playing,Pk(Pk({timestamp:l,stop_time:l,duration:e?0:u/1e3,stall_time_per_100sec:c/u*100,stall_count_per_100sec:1e3*f/u*100,stall_count:f,stall_time:c,play_current_time:t.player.currentTime},o),t.videoSize)),qE.resolve(t.getRtcStats({duration:u,first:e,onlyJb:!1})).then((function(r){var n={};if(t.core){if(t.core.getStats){var o=t.core.getStats()||{},i=o.bitrate,a=o.avgSpeed;TE(n,{bitrate:i,avg_speed:a,rate:a/i})}if(t.core.getNetWorkInfo){var s,l=(t.core.getNetWorkInfo()||{}).lostRate,c=((null===(s=t.core.core)||void 0===s?void 0:s._opts)||{}).networkEvaluateInterval;TE(n,{lostRate:l,networkEvaluateInterval:c})}}t.logmanager.push(TE({},t.log.playing,Pk(Pk({play_time:e?0:u},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(vT){return qE.reject(vT)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return qE.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),!e.player.video)return e.destroyFunc(),qE.resolve();if(e.player.paused)return e.handleVideopause(),qE.resolve();if(e.core&&e.core.getStats){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return qE.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=bk((function(){try{var r=function(){if(Math.abs(hw()-e.log.playing.timestamp-t)<100||hw()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return qE.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 qE.resolve(r&&r.then?r.then((function(){})):void 0)}catch(vT){return qE.reject(vT)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(vT){return qE.reject(vT)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=Ck(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=Ck(),this.playResultTimer=hb((function(){e.log.play_result.timestamp>=e.log.play_result.start||e.player&&!e.player.paused&&e.player.video&&(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;if(!this.inWaitingStart&&this.log.first_frame.timestamp){this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=Ck(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=Ck(),this.log.stall_start.stall_start_time=Ck(),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;var t=this.getPlayerDownloadSpeed(),r=t.speed,n=t.avgSpeed;this.log.stall.current_speed=r,this.log.stall.avg_speed=n,TE(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=hb((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=Ck();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=Ck();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=Ck(),this.log.playing.stall_count++,TE(this.log.stall,Pk({},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(),TE(this.log.playing,{is_last:1}),this.reportPlaying()},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;TE(this.log.play_error,Pk(Pk({timestamp:Ck()},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=jk[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=Ck()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=jk[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"===Ik.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Ik.device&&window.removeEventListener("pagehide",this.handleUserLeave),qb(Vk).call(Vk,(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.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer),this._player=null)},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?qE.resolve():(e.destroyed=!0,qE.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(vT){return qE.reject(vT)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(Ej){}},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(Ej){}},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)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core&&this.core.getStats){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}var t=this.getTransferCost(!0);this.firstFrameViewed=!0;var r=Ck();TE(this.log.first_frame,Pk(Pk({first_frame_view:r-this.log.start_play.start_play_time||r,timestamp:r},t),this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=r-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){TE(i,Pk({timestamp:o,stop_time:o,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(i.play_time_on_no_frame=i.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=Kb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],o=r[r.length-1];return{dns_parse_time:fE(n.domainLookupEnd-n.domainLookupStart),redirect:fE(n.redirectEnd-n.redirectStart),ttfb:fE(o.responseStart-o.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),o=Ck();r.playedTime=o-r.log.start_play.start_play_time;var i=r.log.play_stop;if(TE(i,Pk({},0===i.stall_count&&{stall_time:0})),r.inWaitingStart&&o-r.inWaitingStart>200&&(i.stall_time+=o-r.inWaitingStart),r.inWaitingStart=0,TE(i,Pk({stall_time_per_100sec:i.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*i.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 qE.resolve();if(r.log.playing.index?(TE(r.log.playing,{is_last:1}),r.reportPlaying()):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),o=Ck(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;TE(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var u=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return qE.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;TE(i,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return qE.resolve(u&&u.then?u.then(t):t())}catch(vT){return qE.reject(vT)}},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}(),Wk=r(Gm),Kk=Re,Hk=TypeError,qk=function(e,t){if(!delete e[t])throw Hk("Cannot delete property "+Kk(t)+" of "+Kk(e))},Gk=xr,Xk=Ye,Yk=Fr,$k=Ir,Jk=zr,Qk=gl,Zk=ml,eP=Mi,tP=eo,rP=qk,nP=qs("splice"),oP=Math.max,iP=Math.min;Gk({target:"Array",proto:!0,forced:!nP},{splice:function(e,t){var r,n,o,i,a,s,l=Xk(this),u=Jk(l),c=Yk(e,u),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=u-c):(r=f-2,n=iP(oP($k(t),0),u-c)),Zk(u+r-n),o=eP(l,n),i=0;i<n;i++)(a=c+i)in l&&tP(o,i,l[a]);if(o.length=n,r<n){for(i=c;i<u-n;i++)s=i+r,(a=i+n)in l?l[s]=l[a]:rP(l,s);for(i=u;i>u-n+r;i--)rP(l,i-1)}else if(r>n)for(i=u-n;i>c;i--)s=i+r-1,(a=i+n-1)in l?l[s]=l[a]:rP(l,s);for(i=0;i<r;i++)l[i+c]=arguments[i+2];return Qk(l,u-n+r),o}});var aP=Ys("Array").splice,sP=se,lP=aP,uP=Array.prototype,cP=r((function(e){var t=e.splice;return e===uP||sP(uP,e)&&t===uP.splice?lP:t}));xr({global:!0,forced:parseFloat!=rk},{parseFloat:rk});var fP=r(te.parseFloat),pP=jl.PROPER,hP=i,dP=R_,vP=D_.trim;xr({target:"String",proto:!0,forced:function(e){return hP((function(){return!!dP[e]()||"​…᠎"!=="​…᠎"[e]()||pP&&dP[e].name!==e}))}("trim")},{trim:function(){return vP(this)}});var gP=Ys("String").trim,yP=se,mP=gP,_P=String.prototype,bP=r((function(e){var t=e.trim;return"string"==typeof e||e===_P||yP(_P,e)&&t===_P.trim?mP:t})),wP=r(rp),SP=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),EP={exports:{}},kP=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),PP=i,TP=ee,RP=b,xP=kP,OP=Object.isExtensible,MP=PP((function(){OP(1)}))||xP?function(e){return!!TP(e)&&((!xP||"ArrayBuffer"!=RP(e))&&(!OP||OP(e)))}:OP,AP=xr,IP=g,CP=Gr,LP=ee,DP=Qe,FP=Jt.f,jP=Gn,NP=$n,UP=MP,VP=SP,zP=!1,BP=nt("meta"),WP=0,KP=function(e){FP(e,BP,{value:{objectID:"O"+WP++,weakData:{}}})},HP=EP.exports={enable:function(){HP.enable=function(){},zP=!0;var e=jP.f,t=IP([].splice),r={};r[BP]=1,e(r).length&&(jP.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===BP){t(n,o,1);break}return n},AP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NP.f}))},fastKey:function(e,t){if(!LP(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DP(e,BP)){if(!UP(e))return"F";if(!t)return"E";KP(e)}return e[BP].objectID},getWeakData:function(e,t){if(!DP(e,BP)){if(!UP(e))return!0;if(!t)return!1;KP(e)}return e[BP].weakData},onFreeze:function(e){return VP&&zP&&UP(e)&&!DP(e,BP)&&KP(e),e}};CP[BP]=!0;var qP=EP.exports,GP=xr,XP=SP,YP=i,$P=ee,JP=qP.onFreeze,QP=Object.freeze;GP({target:"Object",stat:!0,forced:YP((function(){QP(1)})),sham:!XP},{freeze:function(e){return QP&&$P(e)?QP(JP(e)):e}});var ZP=r(te.Object.freeze),eT=Ni.map;xr({target:"Array",proto:!0,forced:!qs("map")},{map:function(e){return eT(this,e,arguments.length>1?arguments[1]:void 0)}});var tT,rT=Ys("Array").map,nT=se,oT=rT,iT=Array.prototype,aT=r((function(e){var t=e.map;return e===iT||nT(iT,e)&&t===iT.map?oT:t})),sT=r(Km),lT=function(){return lT=TE||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lT.apply(this,arguments)};function uT(e,t){var r="function"==typeof Yb&&Wk(e);if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function cT(){for(var e=[],t=0;t<arguments.length;t++)e=__(e).call(e,uT(arguments[t]));return e}var fT,pT,hT,dT,vT,gT=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(o){t(o),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,o=uw(r=this._hooks[e]).call(r,t);-1!==o&&cP(n=this._hooks[e]).call(n,o,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==uw(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&&qb(r=cT(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===uw(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),yT=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},mT=(fT=+hw()+Number(db(tT=""+Math.random()).call(tT,2,8)),function(){return fT+=1}),_T=function(e){var t=document.createElement("a");return t.href=e,t},bT=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?_T(r).hostname:"";!function(e){var t={};try{var r,n=_T(e).search;qb(r=(n=db(n).call(n,1)).split("&")).call(r,(function(e){var r,n,o=e.split("=");o.length&&(r=o[0],n=o[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(i){t[r]=n}}))}catch(o){}}(window.location.href);var o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",i=this.browser(),a=this.os();return{browser:i.browser,browser_version:i.browser_version,platform:o,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=""+fP(this.appVersion),o=this.userAgent;return-1!==uw(o).call(o,"Edge")||-1!==uw(o).call(o,"Edg")?(r="Microsoft Edge",-1!==uw(o).call(o,"Edge")?(e=uw(o).call(o,"Edge"),n=o.substring(e+5)):(e=uw(o).call(o,"Edg"),n=o.substring(e+4))):-1!==(e=uw(o).call(o,"MSIE"))?(r="Microsoft Internet Explorer",n=o.substring(e+5)):-1!==(e=uw(o).call(o,"Lark"))?(r="Lark",n=o.substring(e+5,e+11)):-1!==(e=uw(o).call(o,"MetaSr"))?(r="sougoubrowser",n=o.substring(e+7,e+10)):-1!==uw(o).call(o,"MQQBrowser")||-1!==uw(o).call(o,"QQBrowser")?(r="qqbrowser",-1!==uw(o).call(o,"MQQBrowser")?(e=uw(o).call(o,"MQQBrowser"),n=o.substring(e+11,e+15)):-1!==uw(o).call(o,"QQBrowser")&&(e=uw(o).call(o,"QQBrowser"),n=o.substring(e+10,e+17))):-1!==uw(o).call(o,"Chrome")?-1!==(e=uw(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=uw(o).call(o,"360"))?(r="360browser",n=o.substring(uw(o).call(o,"Chrome")+7)):-1!==uw(o).call(o,"baidubrowser")||-1!==uw(o).call(o,"BIDUBrowser")?(-1!==uw(o).call(o,"baidubrowser")?(e=uw(o).call(o,"baidubrowser"),n=o.substring(e+13,e+16)):-1!==uw(o).call(o,"BIDUBrowser")&&(e=uw(o).call(o,"BIDUBrowser"),n=o.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=uw(o).call(o,"xiaomi"))?-1!==uw(o).call(o,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=o.substring(e+7,e+13)):(r="xiaomi",n=o.substring(e-7,e-1)):-1!==(e=uw(o).call(o,"TTWebView"))?(r="TTWebView",n=o.substring(e+10,e+23)):(-1!==(e=uw(o).call(o,"Chrome"))||-1!==(e=uw(o).call(o,"Chrome")))&&(r="Chrome",n=o.substring(e+7)):-1!==uw(o).call(o,"Safari")?-1!==(e=uw(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+10,e+16)):-1!==(e=uw(o).call(o,"Safari"))&&(r="Safari",n=o.substring(e+7),-1!==(e=uw(o).call(o,"Version"))&&(n=o.substring(e+8))):-1!==(e=uw(o).call(o,"Firefox"))?(r="Firefox",n=o.substring(e+8)):-1!==(e=uw(o).call(o,"MicroMessenger"))?(r="weixin",n=o.substring(e+15,e+20)):-1!==(e=uw(o).call(o,"QQ"))?(r="qqbrowser",n=o.substring(e+3,e+8)):-1!==(e=uw(o).call(o,"Opera"))&&(r="Opera",n=o.substring(e+6),-1!==(e=uw(o).call(o,"Version"))&&(n=o.substring(e+8))),-1!==(t=uw(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=uw(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=uw(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 o=r[n];if(o.r.test(this.userAgent)){"Mac OS X"===(e=o.s)&&this.isNewIpad()&&(e="iOS");break}}var i,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?db(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]+)/,i=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,i)),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)qb(r=navigator.userAgent.split(";")).call(r,(function(e){uw(e).call(e,"Build/")>-1&&(t=db(e).call(e,0,uw(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 (",""),o=uw(n).call(n,";");t=db(n).call(n,0,o)}}catch(i){return bP(t).call(t)}return bP(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),wT=(pT=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 o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},n,i)).expires&&(i.expires=new Date(hw()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=t+"="+r.write(o,t)+a}}return wP({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},o=0;o<t.length;o++){var i=t[o].split("="),a=db(i).call(i,1).join("=");try{var s=decodeURIComponent(i[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){o(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:ZP(n)},converter:{value:ZP(r)}})}({read:function(e){return'"'===e[0]&&(e=db(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:"/"})}()},pT(hT={exports:{}}),hT.exports),ST=wT,ET=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}(),kT={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:ME(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return ST.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var o=n||document.domain,i=+new Date+r;ST.set(e,t,{expires:new Date(i),path:"/",domain:o})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(vT){return!1}}()},PT={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:ME(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(vT){return!1}}()},TT=function(){function e(e,t){this._storage=t&&"session"===t?PT:!e&&kT.isSupportLS?kT:new ET}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}(),RT={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},xT=void 0,OT=(new Date).getTimezoneOffset(),MT=Y_(""+-OT/60,10),AT=60*OT,IT=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new bT(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new TT(!1,"session"),this.localStorage=new TT(!1,"local");var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:xT,user_type:xT,user_id:xT,user_is_auth:xT,user_is_login:xT,device_id:xT,web_id:xT,user_unique_id_type:xT},header:{app_id:xT,app_name:xT,app_install_id:xT,install_id:xT,app_package:xT,app_channel:xT,app_version:xT,ab_version:xT,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:xT,traffic_type:xT,client_ip:xT,device_brand:xT,os_api:xT,access:xT,language:r.language,region:xT,app_language:xT,app_region:xT,creative_id:xT,ad_id:xT,campaign_id:xT,log_type:xT,rnd:xT,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:xT,city:xT,timezone:MT,tz_offset:AT,tz_name:xT,sim_region:xT,carrier:xT,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:xT,utm_content:xT,utm_source:xT,utm_medium:xT,utm_campaign:xT,custom:{},wechat_unionid:xT,wechat_openid:xT}},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,o=[];r=r<=25?r:r%25;var i=String.fromCharCode(r+97);n=e.split(i);for(var a=0;a<n.length;a++){var s=Y_(n[a],r);s=1*s^64;var l=String.fromCharCode(s);o.push(l)}return o.join("")}}(e,0,25)}(RT[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;qb(t=Bb(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=lT({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=lT({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?uw(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(ME(this.envInfo[e])):JSON.parse(ME(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(vT=dT||(dT={})).Init="init",vT.Config="config",vT.Start="start",vT.Ready="ready",vT.TokenComplete="token-complete",vT.TokenStorage="token-storage",vT.TokenFetch="token-fetch",vT.TokenError="token-error",vT.ConfigUuid="config-uuid",vT.TokenChange="token-change",vT.TokenReset="token-reset",vT.SessionReset="session-reset",vT.SessionResetTime="session-reset-time",vT.Event="event",vT.Events="events",vT.EventNow="event-now",vT.CleanEvents="clean-events",vT.BeconEvent="becon-event";var CT=dT;function LT(e,t,r,n,o,i,a,s,l){try{var u=new XMLHttpRequest,c=s||"POST";u.open(c,""+e,!0),u.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(u.timeout=r,u.ontimeout=function(){i&&i(t,5005)}),u.onload=function(){if(o){var e=null;if(u.responseText){try{e=JSON.parse(u.responseText)}catch(r){e={}}o(e,t)}}},u.onerror=function(){u.abort(),i&&i(t,500)},l?u.send(t):u.send(ME(t))}catch(f){}}var DT,FT=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 TT(!0),this.localStorage=new TT(!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(CT.Ready,(function(){r.reportAll(!1)})),this.collect.on(CT.Event,(function(e){r.event(e)})),this.collect.on(CT.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=cT(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=hb((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(o){}},e.prototype.beconEvent=function(e){var t=cT(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=db(e).call(e,r,r+this.eventLimit);var o=this.split(this.merge(n));this.send(o,t)}else o=this.split(this.merge(e)),this.send(o,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,o=r.user;n.custom=ME(n.custom);var i=this.configManager.get("evtParams"),a=aT(e).call(e,(function(e){try{return Bb(i).length&&(e.params=lT({},i,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=ME(e.params),e}catch(vT){return e}})),s=[];if(!Bb(o).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(ME({events:a,user:o,header:n}));return l.local_time=Math.floor(hw()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return aT(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&qb(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,o=e,i=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,ME(o))||s(n,o):LT(n,o,i,0,a,s,0,"",false)}catch(l){console.warn("something error, "+ME(l.stack))}var n,o,i,a,s}))},e}(),jT=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},NT=function(){var e;return db(e=jT().replace(/-/g,"")).call(e,0,19)},UT=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 TT(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(CT.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=NT();LT(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=hw(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(CT.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===uw(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),o=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===o)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=hw(),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=hw(),this.setStorage(this.cacheToken)),this.collect.emit(CT.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}(),VT=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)}))},zT=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new TT(!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(CT.SessionReset,(function(){r.resetSessionId()})),this.collect.on(CT.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;hw()-t>this.expireTime?e={sessionId:VT(),timestamp:hw()}:e.timestamp=hw(),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=hw():t={sessionId:VT(),timestamp:hw()},this.storage.setItem(this.sessionKey,t),this.sessionExp=bk((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=bk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:VT(),timestamp:hw()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&hw()-e.timestamp+30>=this.expireTime&&(e={sessionId:VT(),timestamp:hw()},this.storage.setItem(this.sessionKey,e))},e}(),BT=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 gT,this.Types=CT,this.adapters.fetch=LT,this.adapters.storage=TT}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&yT(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!==uw(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 IT(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new FT,this.tokenManager=new UT,this.sessionManager=new zT,qE.all([new qE((function(e){n.once(CT.TokenComplete,(function(){e(!0)}))})),new qE((function(e){n.once(CT.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(CT.Ready),console.info("appid: "+e.app_id+", userInfo:"+ME(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(CT.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&&yT(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=lT({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&uw(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Wb){var o=0;for(n=Wb(e);o<n.length;o++)uw(t).call(t,n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(CT.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(CT.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];sT(e)?qb(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(CT.Event,n),this.emit(CT.SessionResetTime))}catch(o){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(sT(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(CT.BeconEvent,r),this.emit(CT.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=db(e).call(e,6));var n=t;"object"!=Xf(n)&&(n={}),n.event_index=mT();var o=void 0;return n.local_ms?(o=n.local_ms,delete n.local_ms):o=+new Date,{event:r,params:n,local_time_ms:o}}catch(i){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:hw(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=lT({},t,e);this.event("predefine_pageview",r)},e}(),WT=new BT("default"),KT=new Uint8Array(16);function HT(){var e;if(!DT&&!(DT="undefined"!=typeof crypto&&crypto.getRandomValues&&T_(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return DT(KT)}for(var qT,GT=[],XT=0;XT<256;++XT){var YT;GT.push(db(YT=(XT+256).toString(16)).call(YT,1))}var $T={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&T_(qT=crypto.randomUUID).call(qT,crypto)};function JT(e,t,r){if($T.randomUUID&&!t&&!e)return $T.randomUUID();var n=(e=e||{}).random||(e.rng||HT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return GT[e[t+0]]+GT[e[t+1]]+GT[e[t+2]]+GT[e[t+3]]+"-"+GT[e[t+4]]+GT[e[t+5]]+"-"+GT[e[t+6]]+GT[e[t+7]]+"-"+GT[e[t+8]]+GT[e[t+9]]+"-"+GT[e[t+10]]+GT[e[t+11]]+GT[e[t+12]]+GT[e[t+13]]+GT[e[t+14]]+GT[e[t+15]]}(n)}var QT=window.VePlayer.util,ZT="veplayer_live_device_id",eR="veplayer_live_user_id",tR=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},rR=function(e){var t=QT.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:QT.appendSearchParams(e,{_session_id:nR()}):null!=e?e:""},nR=function(){return JT().replace(/-/g,"")+"."+hw()+"."+function(e){for(var t=0,r=0,n=(e+="").length,o=0;o<n;o++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(JT().replace(/-/g,""))},oR=function(e){Tm(r,e);var t=Wm(r);function r(){var e,n;Gy(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Qf($y(n=t.call.apply(t,__(e=[this]).call(e,i))),"_liveLogger",void 0),n}return Yy(r,[{key:"beforeCreate",value:function(e){var t,r,n,o;e.config.enable&&(e.config.userId=(null===(t=e.config)||void 0===t?void 0:t.userId)||((n=localStorage.getItem(eR))||(n=tR(12),localStorage.setItem(eR,n),n)),e.config.deviceId=(null===(r=e.config)||void 0===r?void 0:r.deviceId)||((o=localStorage.getItem(ZT))||(o=tR(11),localStorage.setItem(ZT,o),o)))}},{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==WT?void 0:WT.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){WT.init({app_id:468759,channel:"cn"}),WT.start(),WT.config({user_unique_id:this.config.userId,device_id:this.config.deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new zk({Tea:WT,player:this.player,aid:this.config.appId||654925,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this.config.userId,device_id:this.config.deviceId,error_report_stop:!0,ext:{veplayer_version:"2.3.0",flv_version:"3.0.21-rc.21",hls_version:"3.0.21-rc.21",rts_version:"0.2.1-alpha.32"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:654925,enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function iR(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var aR=window.VePlayer.util,sR=window.VePlayer.Plugin,lR=window.VePlayer.XGUtil,uR=function(e){Tm(r,e);var t=Wm(r);function r(){var e,n;Gy(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Qf($y(n=t.call.apply(t,__(e=[this]).call(e,i))),"_pollTimer",void 0),Qf($y(n),"_visible",void 0),Qf($y(n),"_playPlugin",void 0),n}return Yy(r,[{key:"_streamType",get:function(){return aR.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Lb.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Lb.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(_k(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(Lb.LOADED_DATA,(function(){return e.open()})),this.player.off(Lb.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=hb((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,o,i=this._getStats()||{},a="".concat(this._streamType,"_live"),s=this._playPlugin.softDecode,l=[(e=ep(ep({},i),{},{format:a}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:iR(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:iR(e.bitrate,(function(e){return"".concat((e/1e3).toFixed(2)," kbps")}))},{key:"gop",labelTextKey:"GOP",value:iR(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:__(r="".concat(iR(e.width)," * ")).call(r,iR(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:iR(Number(null===(o=e.bufferEnd)||void 0===o?void 0:o.toFixed(2)))},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:iR(e.currentTime,(function(e){return e.toFixed(4)+"s"}))}]})];return s&&l.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:iR(e.decodeFps,(function(e){return e+" frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:iR(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),l}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",qb(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,o=t.titleTextKey,i=t.rows,a=this.player.config.i18nManager;if(n||o){var s,l=this._genTitleDom(null!==(s=a.getText(o))&&void 0!==s?s:n);e.appendChild(l)}qb(i).call(i,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=lR.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=lR.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=lR.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=lR.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var o=lR.createDom("xg-live-panel",e.value);return r.appendChild(o),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(sR),cR="https://www.volcengine.com/docs/6469/138655#日志上报",fR=ep(ep({},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(cR," 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"}),pR=ep(ep({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",INVALID_LOGGER:"未正确配置质量日志参数, 请参考 ".concat(cR," 配置"),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:"刷新"}),hR=Ni.some;xr({target:"Array",proto:!0,forced:!tc("some")},{some:function(e){return hR(this,e,arguments.length>1?arguments[1]:void 0)}});var dR=Ys("Array").some,vR=se,gR=dR,yR=Array.prototype,mR=r((function(e){var t=e.some;return e===yR||vR(yR,e)&&t===yR.some?gR:t})),_R={"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]"},bR=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}(bR||{}),wR=function(){function e(t){var r=this;Gy(this,e),Qf(this,"modules",{}),Qf(this,"mountPromiseMap",{}),Qf(this,"_baseUrl",void 0),Qf(this,"_moduleSystem",void 0),Qf(this,"load",function(){var e=qy(Ky().mark((function e(t,n){var o,i,a,s,l;return Ky().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(_R[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 i=r.modules[t].exports,e.abrupt("return",null!==(o=i.default)&&void 0!==o?o:i);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,_R[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)}}()),Qf(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)})),Qf(this,"register",(function(e){return aT(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return Yy(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 qE((function(r,n){var o=document.createElement("script");o.src=e.src,o.onload=function(){e.state=1,r(t[e.name].exports),o.onload=null},o.onerror=function(t){e.state=2,e.error=t,n(t),o.onerror=null},document.body.appendChild(o)}))}}]),e}(),SR=xr,ER=Ni.find,kR="find",PR=!0;kR in[]&&Array(1)[kR]((function(){PR=!1})),SR({target:"Array",proto:!0,forced:PR},{find:function(e){return ER(this,e,arguments.length>1?arguments[1]:void 0)}});var TR=Ys("Array").find,RR=se,xR=TR,OR=Array.prototype,MR=r((function(e){var t=e.find;return e===OR||RR(OR,e)&&t===OR.find?xR:t})),AR=Ys("Array").keys,IR=yn,CR=Qe,LR=se,DR=AR,FR=Array.prototype,jR={DOMTokenList:!0,NodeList:!0},NR=r((function(e){var t=e.keys;return e===FR||LR(FR,e)&&t===FR.keys||CR(jR,IR(e))?DR:t})),UR=r(c_),VR=r(Yf);function zR(e){return(zR="function"==typeof Yb&&"symbol"==typeof $b?function(e){return typeof e}:function(e){return e&&"function"==typeof Yb&&e.constructor===Yb&&e!==Yb.prototype?"symbol":typeof e})(e)}function BR(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),zb(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==Xf(e)||null===e)return e;var r=e[VR];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Xf(i)?i:String(i)),n)}var o,i}function WR(e){return function(e){if(sT(e))return KR(e)}(e)||function(e){if(void 0!==Yb&&null!=Wk(e)||null!=e["@@iterator"])return UR(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return KR(e,t);var n=db(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return UR(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KR(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 KR(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 HR=Ir,qR=bn,GR=X,XR=RangeError,YR=g,$R=Ur,JR=bn,QR=X,ZR=YR((function(e){var t=qR(GR(this)),r="",n=HR(e);if(n<0||n==1/0)throw XR("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),ex=YR("".slice),tx=Math.ceil,rx=function(e){return function(t,r,n){var o,i,a=JR(QR(t)),s=$R(r),l=a.length,u=void 0===n?" ":JR(n);return s<=l||""==u?a:((i=ZR(u,tx((o=s-l)/u.length))).length>o&&(i=ex(i,0,o)),e?a+i:i+a)}},nx={start:rx(!1),end:rx(!0)},ox=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),ix=nx.start;xr({target:"String",proto:!0,forced:ox},{padStart:function(e){return ix(this,e,arguments.length>1?arguments[1]:void 0)}});var ax=Ys("String").padStart,sx=se,lx=ax,ux=String.prototype,cx=r((function(e){var t=e.padStart;return"string"==typeof e||e===ux||sx(ux,e)&&t===ux.padStart?lx:t})),fx=Ni.every;xr({target:"Array",proto:!0,forced:!tc("every")},{every:function(e){return fx(this,e,arguments.length>1?arguments[1]:void 0)}});var px=Ys("Array").every,hx=se,dx=px,vx=Array.prototype,gx=r((function(e){var t=e.every;return e===vx||hx(vx,e)&&t===vx.every?dx:t})),yx=le.match(/firefox\/(\d+)/i),mx=!!yx&&+yx[1],_x=/MSIE|Trident/.test(le),bx=le.match(/AppleWebKit\/(\d+)\./),wx=!!bx&&+bx[1],Sx=xr,Ex=g,kx=Ae,Px=Ye,Tx=zr,Rx=qk,xx=bn,Ox=i,Mx=kw,Ax=tc,Ix=mx,Cx=_x,Lx=ve,Dx=wx,Fx=[],jx=Ex(Fx.sort),Nx=Ex(Fx.push),Ux=Ox((function(){Fx.sort(void 0)})),Vx=Ox((function(){Fx.sort(null)})),zx=Ax("sort"),Bx=!Ox((function(){if(Lx)return Lx<70;if(!(Ix&&Ix>3)){if(Cx)return!0;if(Dx)return Dx<603;var e,t,r,n,o="";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++)Fx.push({k:t+n,v:r})}for(Fx.sort((function(e,t){return t.v-e.v})),n=0;n<Fx.length;n++)t=Fx[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Sx({target:"Array",proto:!0,forced:Ux||!Vx||!zx||!Bx},{sort:function(e){void 0!==e&&kx(e);var t=Px(this);if(Bx)return void 0===e?jx(t):jx(t,e);var r,n,o=[],i=Tx(t);for(n=0;n<i;n++)n in t&&Nx(o,t[n]);for(Mx(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:xx(t)>xx(r)?1:-1}}(e)),r=Tx(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)Rx(t,n++);return t}});var Wx,Kx=Ys("Array").sort,Hx=se,qx=Kx,Gx=Array.prototype,Xx=r((function(e){var t=e.sort;return e===Gx||Hx(Gx,e)&&t===Gx.sort?qx:t})),Yx="undefined"!=typeof window&&window.location&&uw(Wx=window.location.href).call(Wx,"xgplayerdebugger=1")>-1,$x="color: #525252; background-color: #90ee90;",Jx="color: #525252; background-color: red;",Qx="color: #525252; background-color: yellow; ",Zx="%c[xgplayer]",eO={config:{debug:Yx?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,__(t=[Zx,$x,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,__(t=[Zx,Qx,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,__(t=[Zx,Jx,e]).call(t,i))}}},tO=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}}])&&BR(t.prototype,r),n&&BR(t,n),zb(t,"prototype",{writable:!1}),e}(),rO={};rO.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]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,qb(e=Bb(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},rO.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 o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&rO.addClass(o,r),t)qb(i=Bb(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return eO.logError("util.createDomFromHtml",a),null}},rO.hasClass=function(e,t){if(!e||!t)return!1;try{return mR(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(vT){var r=e.className&&"object"===zR(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},rO.addClass=function(e,t){if(e&&t)try{var r;qb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(vT){rO.hasClass(e,t)||(e.className&&"object"===zR(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},rO.removeClass=function(e,t){if(e&&t)try{var r;qb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(vT){var n;if(rO.hasClass(e,t))qb(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===zR(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},rO.toggleClass=function(e,t){var r;e&&qb(r=t.split(/\s+/g)).call(r,(function(t){rO.hasClass(e,t)?rO.removeClass(e,t):rO.addClass(e,t)}))},rO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===rO.typeOf(e[r]))t.push(e[r]);else if("Object"===rO.typeOf(e[r])){var n;aT(n=Bb(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},rO.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(vT){eO.logError("util.findDom",vT),0===uw(r).call(r,"#")&&(e=t.getElementById(db(r).call(r,1)))}return e},rO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},rO.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],s=String(e);i--;)a.push(n);return a.join("").substring(0,o-s.length)+s},rO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=cx(rO).call(rO,Math.floor(e/3600),2,0),r=cx(rO).call(rO,Math.floor((e-3600*t)/60),2,0),n=cx(rO).call(rO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},rO.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},rO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},rO.deepCopy=function(e,t){var r;if("Object"===rO.typeOf(t)&&"Object"===rO.typeOf(e))return qb(r=Bb(t)).call(r,(function(r){if("Object"!==rO.typeOf(t[r])||t[r]instanceof Node)if("Array"===rO.typeOf(t[r])){var n;e[r]="Array"===rO.typeOf(e[r])?__(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]:rO.deepCopy(e[r],t[r])})),e},rO.deepMerge=function(e,t){var r;return aT(r=Bb(t)).call(r,(function(r){var n;"Array"===rO.typeOf(t[r])&&"Array"===rO.typeOf(e[r])?"Array"===rO.typeOf(e[r])&&(n=e[r]).push.apply(n,WR(t[r])):rO.typeOf(e[r])!==rO.typeOf(t[r])||null===e[r]||"Object"!==rO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):rO.deepMerge(e[r],t[r])})),e},rO.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},rO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return qb(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},rO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=bk(T_(r).call(r,e),n))},rO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},rO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=hb((function(){t(),rO.clearTimeout(e,n)}),r);return e._timers.push(n),n},rO.clearTimeout=function(e,t){var r=e._timers;if("Array"===rO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){cP(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},rO.clearAllTimers=function(e){var t=e._timers;"Array"===rO.typeOf(t)&&(aT(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},rO.createImgBtn=function(e,t,r,n){var o,i,a,s,l,u,c,f,p,h,d,v,g=rO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(gx(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(uw(r).call(r,e)>-1&&uw(n).call(n,e)>-1)||(c=fP(bP(t=db(r).call(r,0,uw(r).call(r,e))).call(t)),f=fP(bP(o=db(n).call(n,0,uw(n).call(n,e))).call(o)),p=e,!1)})),g.style.width=__(i="".concat(c)).call(i,p),g.style.height=__(a="".concat(f)).call(a,p),g.style.backgroundSize=__(s=__(l=__(u="".concat(c)).call(u,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?__(h=__(d=__(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,c/2)).call(h,p):"auto 5px auto 5px");return g},rO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(Y_(e,16))})),__(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},rO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},rO.checkIsFunction=function(e){return e&&"function"==typeof e},rO.checkIsObject=function(e){return null!==e&&"object"===zR(e)},rO.hide=function(e){e.style.display="none"},rO.show=function(e,t){e.style.display=t||"block"},rO.isUndefined=function(e){if(null==e)return!0},rO.isNotNull=function(e){return!(null==e)},rO.setStyleFromCsstext=function(e,t){if(t)if("String"===rO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");aT(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;aT(n=Bb(t)).call(n,(function(r){e.style[r]=t[r]}))}},rO.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 o=n.replace(/\s+/g,"").split(";"),i={},a={};return aT(o).call(o,(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(uw(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),aT(t=Bb(a)).call(t,(function(t){e.style[t]=a[t]})),i},rO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return aT(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},rO.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}},rO.stopPropagation=function(e){e&&e.stopPropagation()},rO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},rO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},rO.checkTouchSupport=function(){return"ontouchstart"in window},rO.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)});Xx(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var s=o[a-1].end;r[i].start-s<t?r[i].end>s&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new tO(o)},rO.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}},rO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},rO.getHostFromUrl=function(e){if("String"!==rO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},rO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},rO.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},rO.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},rO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Y_(e)}catch(vT){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Y_(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)}))},rO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},rO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},rO.createPositionBar=function(e,t){var r=rO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},rO.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:__(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Bb(n);return qb(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=__(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},rO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},rO.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 o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},rO.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:rO.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,s=i.end,l=i.cTime,u=i.offset;return e<a?l:e>=a&&e<=s?e-u:e>s&&n>=o-1?s:-1},rO.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 o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var nO,oO=/(Android)\s([\d.]+)/,iO=/(Version)\/([\d.]+)/,aO=["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"],sO={get device(){return sO.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 __(e=[]).call(e,Kb(t=Bb(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),o=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=i||n&&!/(?:Mobile)/.test(e)||o&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:i,isIos:s||i,isAndroid:n,isPc:!(s||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:o}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",r=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?iO:oO)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?Y_(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&&aT(aO).call(aO,(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(Ej){return this._logger.error(e,Ej),!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 qE.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var r=e.video||{},n=e.audio||{};try{var o=MediaSource.isTypeSupported(r.contentType),i=MediaSource.isTypeSupported(n.contentType);return qE.resolve({supported:o&&i,smooth:!1,powerEfficient:!1})}catch(vT){return qE.resolve(t)}}},lO=g,uO=2147483647,cO=/[^\0-\u007E]/,fO=/[.\u3002\uFF0E\uFF61]/g,pO="Overflow: input needs wider integers to process",hO=RangeError,dO=lO(fO.exec),vO=Math.floor,gO=String.fromCharCode,yO=lO("".charCodeAt),mO=lO([].join),_O=lO([].push),bO=lO("".replace),wO=lO("".split),SO=lO("".toLowerCase),EO=function(e){return e+22+75*(e<26)},kO=function(e,t,r){var n=0;for(e=r?vO(e/700):e>>1,e+=vO(e/t);e>455;)e=vO(e/35),n+=36;return vO(n+36*e/(e+38))},PO=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=yO(e,r++);if(o>=55296&&o<=56319&&r<n){var i=yO(e,r++);56320==(64512&i)?_O(t,((1023&o)<<10)+(1023&i)+65536):(_O(t,o),r--)}else _O(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&_O(t,gO(n));var l=t.length,u=l;for(l&&_O(t,"-");u<o;){var c=uO;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<c&&(c=n);var f=u+1;if(c-i>vO((uO-a)/f))throw hO(pO);for(a+=(c-i)*f,i=c,r=0;r<e.length;r++){if((n=e[r])<i&&++a>uO)throw hO(pO);if(n==i){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;_O(t,gO(EO(d+v%g))),p=vO(v/g),h+=36}_O(t,gO(EO(p))),s=kO(a,f,u==l),a=0,u++}}a++,i++}return mO(t,"")},TO=xr,RO=O,xO=gw,OO=o,MO=$t,AO=g,IO=vo,CO=yo,LO=jh,DO=Qe,FO=kE,jO=l_,NO=ao,UO=jf.codeAt,VO=function(e){var t,r,n=[],o=wO(bO(SO(e),fO,"."),".");for(t=0;t<o.length;t++)r=o[t],_O(n,dO(cO,r)?"xn--"+PO(r):r);return mO(n,".")},zO=bn,BO=zo,WO=Xh,KO=US,HO=ni,qO=HO.set,GO=HO.getterFor("URL"),XO=KO.URLSearchParams,YO=KO.getState,$O=OO.URL,JO=OO.TypeError,QO=OO.parseInt,ZO=Math.floor,eM=Math.pow,tM=AO("".charAt),rM=AO(/./.exec),nM=AO([].join),oM=AO(1..toString),iM=AO([].pop),aM=AO([].push),sM=AO("".replace),lM=AO([].shift),uM=AO("".split),cM=AO("".slice),fM=AO("".toLowerCase),pM=AO([].unshift),hM="Invalid scheme",dM="Invalid host",vM="Invalid port",gM=/[a-z]/i,yM=/[\d+-.a-z]/i,mM=/\d/,_M=/^0x/i,bM=/^[0-7]+$/,wM=/^\d+$/,SM=/^[\da-f]+$/i,EM=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kM=/[\0\t\n\r #/:<>?@[\\\]^|]/,PM=/^[\u0000-\u0020]+/,TM=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,RM=/[\t\n\r]/g,xM=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)pM(t,e%256),e=ZO(e/256);return nM(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=oM(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},OM={},MM=FO({},OM,{" ":1,'"':1,"<":1,">":1,"`":1}),AM=FO({},MM,{"#":1,"?":1,"{":1,"}":1}),IM=FO({},AM,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),CM=function(e,t){var r=UO(e,0);return r>32&&r<127&&!DO(t,e)?e:encodeURIComponent(e)},LM={ftp:21,file:null,http:80,https:443,ws:80,wss:443},DM=function(e,t){var r;return 2==e.length&&rM(gM,tM(e,0))&&(":"==(r=tM(e,1))||!t&&"|"==r)},FM=function(e){var t;return e.length>1&&DM(cM(e,0,2))&&(2==e.length||"/"===(t=tM(e,2))||"\\"===t||"?"===t||"#"===t)},jM=function(e){return"."===e||"%2e"===fM(e)},NM={},UM={},VM={},zM={},BM={},WM={},KM={},HM={},qM={},GM={},XM={},YM={},$M={},JM={},QM={},ZM={},eA={},tA={},rA={},nA={},oA={},iA=function(e,t,r){var n,o,i,a=zO(e);if(t){if(o=this.parse(a))throw JO(o);this.searchParams=null}else{if(void 0!==r&&(n=new iA(r,!0)),o=this.parse(a,null,n))throw JO(o);(i=YO(new XO)).bindURL(this),this.searchParams=i}};iA.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,l=this,u=t||NM,c=0,f="",p=!1,h=!1,d=!1;for(e=zO(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=sM(e,PM,""),e=sM(e,TM,"$1")),e=sM(e,RM,""),n=jO(e);c<=n.length;){switch(o=n[c],u){case NM:if(!o||!rM(gM,o)){if(t)return hM;u=VM;continue}f+=fM(o),u=UM;break;case UM:if(o&&(rM(yM,o)||"+"==o||"-"==o||"."==o))f+=fM(o);else{if(":"!=o){if(t)return hM;f="",u=VM,c=0;continue}if(t&&(l.isSpecial()!=DO(LM,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&LM[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?u=JM:l.isSpecial()&&r&&r.scheme==l.scheme?u=zM:l.isSpecial()?u=HM:"/"==n[c+1]?(u=BM,c++):(l.cannotBeABaseURL=!0,aM(l.path,""),u=rA)}break;case VM:if(!r||r.cannotBeABaseURL&&"#"!=o)return hM;if(r.cannotBeABaseURL&&"#"==o){l.scheme=r.scheme,l.path=NO(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,u=oA;break}u="file"==r.scheme?JM:WM;continue;case zM:if("/"!=o||"/"!=n[c+1]){u=WM;continue}u=qM,c++;break;case BM:if("/"==o){u=GM;break}u=tA;continue;case WM:if(l.scheme=r.scheme,o==nO)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query=r.query;else if("/"==o||"\\"==o&&l.isSpecial())u=KM;else if("?"==o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query="",u=nA;else{if("#"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.path.length--,u=tA;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=NO(r.path),l.query=r.query,l.fragment="",u=oA}break;case KM:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,u=tA;continue}u=GM}else u=qM;break;case HM:if(u=qM,"/"!=o||"/"!=tM(f,c+1))continue;c++;break;case qM:if("/"!=o&&"\\"!=o){u=GM;continue}break;case GM:if("@"==o){p&&(f="%40"+f),p=!0,i=jO(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||d){var y=CM(g,IM);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(p&&""==f)return"Invalid authority";c-=jO(f).length+1,f="",u=XM}else f+=o;break;case XM:case YM:if(t&&"file"==l.scheme){u=ZM;continue}if(":"!=o||h){if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==f)return dM;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",u=eA,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return dM;if(a=l.parseHost(f))return a;if(f="",u=$M,t==YM)return}break;case $M:if(!rM(mM,o)){if(o==nO||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||t){if(""!=f){var m=QO(f,10);if(m>65535)return vM;l.port=l.isSpecial()&&m===LM[l.scheme]?null:m,f=""}if(t)return;u=eA;continue}return vM}f+=o;break;case JM:if(l.scheme="file","/"==o||"\\"==o)u=QM;else{if(!r||"file"!=r.scheme){u=tA;continue}if(o==nO)l.host=r.host,l.path=NO(r.path),l.query=r.query;else if("?"==o)l.host=r.host,l.path=NO(r.path),l.query="",u=nA;else{if("#"!=o){FM(nM(NO(n,c),""))||(l.host=r.host,l.path=NO(r.path),l.shortenPath()),u=tA;continue}l.host=r.host,l.path=NO(r.path),l.query=r.query,l.fragment="",u=oA}}break;case QM:if("/"==o||"\\"==o){u=ZM;break}r&&"file"==r.scheme&&!FM(nM(NO(n,c),""))&&(DM(r.path[0],!0)?aM(l.path,r.path[0]):l.host=r.host),u=tA;continue;case ZM:if(o==nO||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&DM(f))u=tA;else if(""==f){if(l.host="",t)return;u=eA}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",u=eA}continue}f+=o;break;case eA:if(l.isSpecial()){if(u=tA,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=nO&&(u=tA,"/"!=o))continue}else l.fragment="",u=oA;else l.query="",u=nA;break;case tA:if(o==nO||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=fM(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||aM(l.path,"")):jM(f)?"/"==o||"\\"==o&&l.isSpecial()||aM(l.path,""):("file"==l.scheme&&!l.path.length&&DM(f)&&(l.host&&(l.host=""),f=tM(f,0)+":"),aM(l.path,f)),f="","file"==l.scheme&&(o==nO||"?"==o||"#"==o))for(;l.path.length>1&&""===l.path[0];)lM(l.path);"?"==o?(l.query="",u=nA):"#"==o&&(l.fragment="",u=oA)}else f+=CM(o,AM);break;case rA:"?"==o?(l.query="",u=nA):"#"==o?(l.fragment="",u=oA):o!=nO&&(l.path[0]+=CM(o,OM));break;case nA:t||"#"!=o?o!=nO&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":CM(o,OM)):(l.fragment="",u=oA);break;case oA:o!=nO&&(l.fragment+=CM(o,MM))}c++}},parseHost:function(e){var t,r,n;if("["==tM(e,0)){if("]"!=tM(e,e.length-1))return dM;if(t=function(e){var t,r,n,o,i,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,p=function(){return tM(e,f)};if(":"==p()){if(":"!=tM(e,1))return;f+=2,c=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=r=0;r<4&&rM(SM,p());)t=16*t+QO(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,u>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!rM(mM,p()))return;for(;rM(mM,p());){if(i=QO(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[u]=256*l[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;l[u++]=t}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l}(cM(e,1,-1)),!t)return dM;this.host=t}else if(this.isSpecial()){if(e=VO(e),rM(EM,e))return dM;if(t=function(e){var t,r,n,o,i,a,s,l=uM(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=l[n]))return e;if(i=10,o.length>1&&"0"==tM(o,0)&&(i=rM(_M,o)?16:8,o=cM(o,8==i?1:2)),""===o)a=0;else{if(!rM(10==i?wM:8==i?bM:SM,o))return e;a=QO(o,i)}aM(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=eM(256,5-t))return null}else if(a>255)return null;for(s=iM(r),n=0;n<r.length;n++)s+=r[n]*eM(256,3-n);return s}(e),null===t)return dM;this.host=t}else{if(rM(kM,e))return dM;for(t="",r=jO(e),n=0;n<r.length;n++)t+=CM(r[n],OM);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return DO(LM,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&DM(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=xM(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+nM(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw JO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new aA(e.path[0]).origin}catch(Ej){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+xM(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(zO(e)+":",NM)},getUsername:function(){return this.username},setUsername:function(e){var t=jO(zO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=CM(t[r],IM)}},getPassword:function(){return this.password},setPassword:function(e){var t=jO(zO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=CM(t[r],IM)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?xM(e):xM(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,XM)},getHostname:function(){var e=this.host;return null===e?"":xM(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,YM)},getPort:function(){var e=this.port;return null===e?"":zO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=zO(e))?this.port=null:this.parse(e,$M))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+nM(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,eA))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=zO(e))?this.query=null:("?"==tM(e,0)&&(e=cM(e,1)),this.query="",this.parse(e,nA)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=zO(e))?("#"==tM(e,0)&&(e=cM(e,1)),this.fragment="",this.parse(e,oA)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var aA=function(e){var t=LO(this,sA),r=WO(arguments.length,1)>1?arguments[1]:void 0,n=qO(t,new iA(e,!1,r));RO||(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())},sA=aA.prototype,lA=function(e,t){return{get:function(){return GO(this)[e]()},set:t&&function(e){return GO(this)[t](e)},configurable:!0,enumerable:!0}};if(RO&&(CO(sA,"href",lA("serialize","setHref")),CO(sA,"origin",lA("getOrigin")),CO(sA,"protocol",lA("getProtocol","setProtocol")),CO(sA,"username",lA("getUsername","setUsername")),CO(sA,"password",lA("getPassword","setPassword")),CO(sA,"host",lA("getHost","setHost")),CO(sA,"hostname",lA("getHostname","setHostname")),CO(sA,"port",lA("getPort","setPort")),CO(sA,"pathname",lA("getPathname","setPathname")),CO(sA,"search",lA("getSearch","setSearch")),CO(sA,"searchParams",lA("getSearchParams")),CO(sA,"hash",lA("getHash","setHash"))),IO(sA,"toJSON",(function(){return GO(this).serialize()}),{enumerable:!0}),IO(sA,"toString",(function(){return GO(this).serialize()}),{enumerable:!0}),$O){var uA=$O.createObjectURL,cA=$O.revokeObjectURL;uA&&IO(aA,"createObjectURL",MO(uA,$O)),cA&&IO(aA,"revokeObjectURL",MO(cA,$O))}BO(aA,"URL"),TO({global:!0,constructor:!0,forced:!xO,sham:!RO},{URL:aA});var fA=xr,pA=i,hA=Xh,dA=bn,vA=gw,gA=ae("URL");fA({target:"URL",stat:!0,forced:!(vA&&pA((function(){gA.canParse()})))},{canParse:function(e){var t=hA(arguments.length,1),r=dA(e),n=t<2||void 0===arguments[1]?void 0:dA(arguments[1]);try{return!!new gA(r,n)}catch(Ej){return!1}}});var yA=r(te.URL),mA=r(Sy),_A="Expected a function",bA="__lodash_placeholder__",wA=1,SA=2,EA=4,kA=8,PA=16,TA=32,RA=64,xA=128,OA=512,MA=1/0,AA=9007199254740991,IA=17976931348623157e292,CA=NaN,LA=[["ary",xA],["bind",wA],["bindKey",SA],["curry",kA],["curryRight",PA],["flip",OA],["partial",TA],["partialRight",RA],["rearg",256]],DA="[object Function]",FA="[object GeneratorFunction]",jA="[object Symbol]",NA=/^\s+|\s+$/g,UA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,VA=/\{\n\/\* \[wrapped with (.+)\] \*/,zA=/,? & /,BA=/^[-+]0x[0-9a-f]+$/i,WA=/^0b[01]+$/i,KA=/^\[object .+?Constructor\]$/,HA=/^0o[0-7]+$/i,qA=/^(?:0|[1-9]\d*)$/,GA=Y_,XA="object"==Xf(t)&&t&&t.Object===Object&&t,YA="object"==("undefined"==typeof self?"undefined":Xf(self))&&self&&self.Object===Object&&self,$A=XA||YA||Function("return this")();function JA(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 QA(e,t){return!!(e?e.length:0)&&function(e,t,r){if(t!=t)return function(e,t,r,n){var o=e.length,i=r+(n?1:-1);for(;n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,ZA,r);var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function ZA(e){return e!=e}function eI(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==bA||(e[r]=bA,i[o++]=r)}return i}var tI,rI,nI,oI=Function.prototype,iI=Object.prototype,aI=$A["__core-js_shared__"],sI=(tI=/[^.]+$/.exec(aI&&NR(aI)&&NR(aI).IE_PROTO||""))?"Symbol(src)_1."+tI:"",lI=oI.toString,uI=iI.hasOwnProperty,cI=iI.toString,fI=RegExp("^"+lI.call(uI).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pI=wP,hI=Math.max,dI=Math.min,vI=(rI=SI(Object,"defineProperty"),(nI=SI.name)&&nI.length>2?rI:void 0);function gI(e){if(!OI(e)||function(e){return!!sI&&sI in e}(e))return!1;var t=function(e){var t=OI(e)?cI.call(e):"";return t==DA||t==FA}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(vT){}return t}(e)?fI:KA;return t.test(function(e){if(null!=e){try{return lI.call(e)}catch(vT){}try{return e+""}catch(vT){}}return""}(e))}function yI(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=OI(r=e.prototype)?pI(r):{},o=e.apply(n,t);return OI(o)?o:n}}function mI(e,t,r,n,o,i,a,s,l,u){var c=t&xA,f=t&wA,p=t&SA,h=t&(kA|PA),d=t&OA,v=p?void 0:yI(e);return function g(){for(var y=arguments.length,m=Array(y),_=y;_--;)m[_]=arguments[_];if(h)var b=wI(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 o=-1,i=e.length,a=r.length,s=-1,l=t.length,u=hI(i-a,0),c=Array(l+u),f=!n;++s<l;)c[s]=t[s];for(;++o<a;)(f||o<i)&&(c[r[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}(m,n,o,h)),i&&(m=function(e,t,r,n){for(var o=-1,i=e.length,a=-1,s=r.length,l=-1,u=t.length,c=hI(i-s,0),f=Array(c+u),p=!n;++o<c;)f[o]=e[o];for(var h=o;++l<u;)f[h+l]=t[l];for(;++a<s;)(p||o<i)&&(f[h+r[a]]=e[o++]);return f}(m,i,a,h)),y-=w,h&&y<u){var S=eI(m,b);return _I(e,t,mI,g.placeholder,r,m,S,s,l,u-y)}var E=f?r:this,k=p?E[e]:e;return y=m.length,s?m=function(e,t){var r=e.length,n=dI(t.length,r),o=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 i=t[n];e[n]=PI(i,r)?o[i]:void 0}return e}(m,s):d&&y>1&&mA(m).call(m),c&&l<y&&(m.length=l),this&&this!==$A&&this instanceof g&&(k=v||yI(k)),k.apply(E,m)}}function _I(e,t,r,n,o,i,a,s,l,u){var c=t&kA;t|=c?TA:RA,(t&=~(c?RA:TA))&EA||(t&=~(wA|SA));var f=r(e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u);return f.placeholder=n,TI(f,e,t)}function bI(e,t,r,n,o,i,a,s){var l=t&SA;if(!l&&"function"!=typeof e)throw new TypeError(_A);var u=n?n.length:0;if(u||(t&=~(TA|RA),n=o=void 0),a=void 0===a?a:hI(II(a),0),s=void 0===s?s:II(s),u-=o?o.length:0,t&RA){var c=n,f=o;n=o=void 0}var p=[e,t,r,n,o,c,f,i,a,s];if(e=p[0],t=p[1],r=p[2],n=p[3],o=p[4],!(s=p[9]=null==p[9]?l?0:e.length:hI(p[9]-u,0))&&t&(kA|PA)&&(t&=~(kA|PA)),t&&t!=wA)h=t==kA||t==PA?function(e,t,r){var n=yI(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=wI(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:eI(a,l);return(i-=u.length)<r?_I(e,t,mI,o.placeholder,void 0,a,u,void 0,void 0,r-i):JA(this&&this!==$A&&this instanceof o?n:e,this,a)}}(e,t,s):t!=TA&&t!=(wA|TA)||o.length?mI.apply(void 0,p):function(e,t,r,n){var o=t&wA,i=yI(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=n.length,c=Array(u+s),f=this&&this!==$A&&this instanceof t?i:e;++l<u;)c[l]=n[l];for(;s--;)c[l++]=arguments[++a];return JA(f,o?r:this,c)}}(e,t,r,n);else var h=function(e,t,r){var n=t&wA,o=yI(e);return function t(){return(this&&this!==$A&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return TI(h,e,t)}function wI(e){return e.placeholder}function SI(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return gI(r)?r:void 0}function EI(e){var t=e.match(VA);return t?t[1].split(zA):[]}function kI(e,t){var r=t.length,n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(UA,"{\n/* [wrapped with "+t+"] */\n")}function PI(e,t){return!!(t=null==t?AA:t)&&("number"==typeof e||qA.test(e))&&e>-1&&e%1==0&&e<t}var TI=vI?function(e,t,r){var n,o=t+"";return vI(e,"toString",{configurable:!0,enumerable:!1,value:(n=kI(o,RI(EI(o),r)),function(){return n})})}:function(e){return e};function RI(e,t){return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(LA,(function(r){var n="_."+r[0];t&r[1]&&!QA(e,n)&&e.push(n)})),Xx(e).call(e)}function xI(e,t,r){var n=bI(e,kA,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return n.placeholder=xI.placeholder,n}function OI(e){var t=Xf(e);return!!e&&("object"==t||"function"==t)}function MI(e){return"symbol"==Xf(e)||function(e){return!!e&&"object"==Xf(e)}(e)&&cI.call(e)==jA}function AI(e){return e?(e=function(e){if("number"==typeof e)return e;if(MI(e))return CA;if(OI(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=OI(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(NA,"");var r=WA.test(e);return r||HA.test(e)?GA(db(e).call(e,2),r?2:8):BA.test(e)?CA:+e}(e))===MA||e===-MA?(e<0?-1:1)*IA:e==e?e:0:0===e?e:0}function II(e){var t=AI(e),r=t%1;return t==t?r?t-r:t:0}xI.placeholder={};var CI=r(xI),LI=xr,DI=o,FI=qP,jI=i,NI=gr,UI=ah,VI=jh,zI=R,BI=ee,WI=zo,KI=Jt.f,HI=Ni.forEach,qI=O,GI=ni.set,XI=ni.getterFor,YI=qn,$I=yo,JI=mw,QI=$t,ZI=jh,eC=H,tC=ah,rC=Du,nC=Fu,oC=Lh,iC=O,aC=qP.fastKey,sC=ni.set,lC=ni.getterFor,uC={getConstructor:function(e,t,r,n){var o=e((function(e,o){ZI(e,i),sC(e,{type:t,index:YI(null),first:void 0,last:void 0,size:0}),iC||(e.size=0),eC(o)||tC(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=lC(t),s=function(e,t,r){var n,o,i=a(e),s=l(e,t);return s?s.value=r:(i.last=s={index:o=aC(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),iC?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},l=function(e,t){var r,n=a(e),o=aC(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return JI(i,{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,iC?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=l(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),iC?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=QI(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)}}),JI(i,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)}}),iC&&$I(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=lC(t),i=lC(n);rC(e,t,(function(e,t){sC(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(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)?nC("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,nC(void 0,!0))}),r?"entries":"values",!r,!0),oC(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=DI[e],l=s&&s.prototype,u={};if(qI&&zI(s)&&(i||l.forEach&&!jI((function(){(new s).entries().next()})))){var c=(n=t((function(t,r){GI(VI(t,c),{type:e,collection:new s}),null!=r&&UI(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=XI(e);HI(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||i&&"clear"==e||NI(c,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!BI(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||KI(c,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),FI.enable();WI(n,e,!1,!0),u[e]=n,LI({global:!0,forced:!0},u),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uC);var cC=te.Map,fC=$t,pC=I,hC=Ae,dC=zh,vC=H,gC=ah,yC=[].push,mC=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return dC(this),(t=void 0!==a)&&hC(a),vC(e)?new this:(r=[],t?(n=0,o=fC(a,i>2?arguments[2]:void 0),gC(e,(function(e){pC(yC,r,o(e,n++))}))):gC(e,yC,{that:r}),new this(r))};xr({target:"Map",stat:!0,forced:!0},{from:mC});var _C=ls,bC=function(){return new this(_C(arguments))};xr({target:"Map",stat:!0,forced:!0},{of:bC});var wC=Re,SC=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")},EC=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},kC=ae("Map"),PC={Map:kC,set:EC("set",2),get:EC("get",1),has:EC("has",1),remove:EC("delete",1),proto:kC.prototype},TC=SC,RC=PC.remove;xr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=TC(this),r=!0,n=0,o=arguments.length;n<o;n++)e=RC(t,arguments[n]),r=r&&e;return!!r}});var xC=SC,OC=PC.get,MC=PC.has,AC=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=xC(this);return MC(o,e)?(r=OC(o,e),"update"in t&&(r=t.update(r,e,o),AC(o,e,r)),r):(n=t.insert(e,o),AC(o,e,n),n)}});var IC=I,CC=function(e,t,r){for(var n,o,i=r||e.next;!(n=IC(i,e)).done;)if(void 0!==(o=t(n.value)))return o},LC=function(e,t,r){return r?CC(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},DC=$t,FC=SC,jC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=FC(this),r=DC(e,arguments.length>1?arguments[1]:void 0);return!1!==jC(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var NC=$t,UC=SC,VC=LC,zC=PC.Map,BC=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=UC(this),r=NC(e,arguments.length>1?arguments[1]:void 0),n=new zC;return VC(t,(function(e,o){r(e,o,t)&&BC(n,o,e)})),n}});var WC=$t,KC=SC,HC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=KC(this),r=WC(e,arguments.length>1?arguments[1]:void 0),n=HC(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var qC=$t,GC=SC,XC=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=GC(this),r=qC(e,arguments.length>1?arguments[1]:void 0),n=XC(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var YC=xr,$C=I,JC=R,QC=Ae,ZC=ah,eL=PC.Map,tL=g([].push);YC({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(JC(this)?this:eL);QC(t);var n=QC(r.has),o=QC(r.get),i=QC(r.set);return ZC(e,(function(e){var a=t(e);$C(n,r,a)?tL($C(o,r,a),e):$C(i,r,a,[e])})),r}});var rL=function(e,t){return e===t||e!=e&&t!=t},nL=SC,oL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===oL(nL(this),(function(t){if(rL(t,e))return!0}),!0)}});var iL=I,aL=ah,sL=R,lL=Ae,uL=PC.Map;xr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(sL(this)?this:uL);lL(t);var n=lL(r.set);return aL(e,(function(e){iL(n,r,t(e),e)})),r}});var cL=SC,fL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=fL(cL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var pL=$t,hL=SC,dL=LC,vL=PC.Map,gL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=hL(this),r=pL(e,arguments.length>1?arguments[1]:void 0),n=new vL;return dL(t,(function(e,o){gL(n,r(e,o,t),e)})),n}});var yL=$t,mL=SC,_L=LC,bL=PC.Map,wL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=mL(this),r=yL(e,arguments.length>1?arguments[1]:void 0),n=new bL;return _L(t,(function(e,o){wL(n,o,r(e,o,t))})),n}});var SL=SC,EL=ah,kL=PC.set;xr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=SL(this),r=arguments.length,n=0;n<r;)EL(arguments[n++],(function(e,r){kL(t,e,r)}),{AS_ENTRIES:!0});return t}});var PL=Ae,TL=SC,RL=LC,xL=TypeError;xr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=TL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(PL(e),RL(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw xL("Reduce of empty map with no initial value");return n}});var OL=$t,ML=SC,AL=LC;xr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=ML(this),r=OL(e,arguments.length>1?arguments[1]:void 0);return!0===AL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var IL=Ae,CL=SC,LL=TypeError,DL=PC.get,FL=PC.has,jL=PC.set;xr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=CL(this),n=arguments.length;IL(t);var o=FL(r,e);if(!o&&n<3)throw LL("Updating absent value");var i=o?DL(r,e):IL(n>2?arguments[2]:void 0)(e,r);return jL(r,e,t(i,e,r)),r}});var NL=I,UL=Ae,VL=R,zL=rr,BL=TypeError,WL=function(e,t){var r,n=zL(this),o=UL(n.get),i=UL(n.has),a=UL(n.set),s=arguments.length>2?arguments[2]:void 0;if(!VL(t)&&!VL(s))throw BL("At least one callback required");return NL(i,n,e)?(r=NL(o,n,e),VL(t)&&(r=t(r),NL(a,n,e,r))):VL(s)&&(r=s(),NL(a,n,e,r)),r};xr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:WL}),xr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:WL});var KL,HL,qL=r(cC);function GL(e,t,r){var n;Bm()?GL=Sm(n=zm).call(n):GL=function(e,t,r){var n=[null];Ml(n).apply(n,t);var o=new(Sm(Function).apply(e,n));return r&&Pm(o,r.prototype),o};return GL.apply(null,arguments)}function XL(e){var t="function"==typeof qL?new qL:void 0;return XL=function(e){if(null===e||(r=e,-1===lw(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,o)}function o(){return GL(e,arguments,Em(this).constructor)}return o.prototype=np(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Pm(o,e)},XL(e)}var YL=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}(YL||{}),$L=(Qf(KL={},2100,{messageTextKey:"NETWORK",level:"Error"}),Qf(KL,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),Qf(KL,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),Qf(KL,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),Qf(KL,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),Qf(KL,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),Qf(KL,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),Qf(KL,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),Qf(KL,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),Qf(KL,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),Qf(KL,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),Qf(KL,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),KL);Qf(HL={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),Qf(HL,"network",{messageTextKey:"NETWORK",level:"Error"}),Qf(HL,"demux",{messageTextKey:"DEMUX",level:"Error"}),Qf(HL,"remux",{messageTextKey:"REMUX",level:"Error"}),Qf(HL,"media",{messageTextKey:"MEDIA",level:"Error"}),Qf(HL,"drm",{messageTextKey:"DRM",level:"Error"}),Qf(HL,"other",{messageTextKey:"OTHER",level:"Error"}),Qf(HL,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var JL,QL,ZL=function(e){Tm(r,e);var t=Wm(r);function r(e,n){var o,i,a,s,l,u,c;Gy(this,r);var f="string"==typeof e?{message:e}:e,p=null!==(o=null!==(i=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!==i?i:null==f||null===(s=f.error)||void 0===s?void 0:s.message)&&void 0!==o?o:null==n?void 0:n.getText("UNKNOWN");return Qf($y(c=t.call(this,p)),"errorCode",void 0),Qf($y(c),"level",void 0),Qf($y(c),"ext",void 0),c.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",c.level=null!==(u=null==f?void 0:f.level)&&void 0!==u?u:"Error",c.ext=null==f?void 0:f.ext,c}return Yy(r)}(XL(Error));function eD(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new ZL(ep(ep({errorCode:e},$L[e]),t),r)}var tD=null!==(JL=null===(QL=document.currentScript)||void 0===QL?void 0:QL.src)&&void 0!==JL?JL:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.0","/object/umd/"),rD=new wR({baseUrl:db(tD).call(tD,0,HE(tD).call(tD,"/"))});function nD(e,t){return oD.apply(this,arguments)}function oD(){return oD=qy(Ky().mark((function e(t,r){var n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,rD.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),eD(YL.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]])}))),oD.apply(this,arguments)}rD.registerPlugin,rD.register;var iD=function(e){return e.H265="h265",e.H264="h264",e}(iD||{}),aD=function(e){if(e){uE(e).call(e,"//")&&(e=location.protocol+e);try{return new yA(e)}catch(Ej){return}}};function sD(e){var t,r={},n=function(e,t){var r=void 0!==xf&&Xm(e)||e["@@iterator"];if(!r){if(Hm(e)||(r=p_(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,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,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(e.attributes);try{for(n.s();!(t=n.n()).done;){var o=t.value;r[o.name]=o.value}}catch(i){n.e(i)}finally{n.f()}return r}var lD=Object.freeze({__proto__:null,getAttributes:sD,replaceAttributes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=sD(e);return qb(t=Bb(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 qb(t=Bb(r)).call(t,(function(t){var n=t,o=r[t];o&&(null==e||e.setAttribute(n,o))})),e}}),uD=['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"'],cD=CI((function(e,t){var r;return null==t?void 0:_k(r=t.split("?")[0].toLowerCase()).call(r,e)})),fD=cD(".m3u8"),pD=cD(".mp4"),hD=cD(".flv"),dD=cD(".sdp"),vD=cD(".mpd");function gD(e){return fD(e)?"hls":hD(e)?"flv":dD(e)?"rtm":pD(e)?"mp4":vD(e)?"dash":"unknown"}function yD(){return(yD=qy(Ky().mark((function e(){var t,r;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nD(bR.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)}function mD(e,t){return function(e){if(Hm(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==xf&&Xm(e)||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(Ml(s).call(s,n.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||p_(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.")}()}ep(ep(ep({},rO),lD),{},{getStreamType:gD,isMseSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iD.H264;return e===iD.H265?sO.isHevcSupported():e===iD.H264?sO.isMSESupport():sO.isMSESupport(e)},isSoftDecodeSupported:function(){return yD.apply(this,arguments)},isMMSSupported:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iD.H264;return void 0!==window.ManagedMediaSource&&(e===iD.H264?window.ManagedMediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'):e===iD.H265?mR(uD).call(uD,(function(e){return window.ManagedMediaSource.isTypeSupported(e)})):window.ManagedMediaSource.isTypeSupported(e))},appendSearchParams:function(e,t){var r,n=aD(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var o,i=uE(e).call(e,"//");for(var a in t){var s,l,u=t[a];if(null!=n&&n.searchParams.has(a))null==n||null===(s=n.searchParams)||void 0===s||s.set(a,u);else null==n||null===(l=n.searchParams)||void 0===l||l.append(a,u)}return e=n.toString(),i?null===(o=e)||void 0===o?void 0:o.replace(location.protocol,""):e},getUrlObject:aD});var _D="hls",bD="ll-hls",wD="flv",SD="rtm",ED="ll-flv",kD=window.VePlayer.Sniffer,PD=window.VePlayer.Codec,TD=window.VePlayer.util,RD=TD.isMMSSupported,xD=TD.isMseSupported;function OD(){return kD.os.isIos}function MD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:PD.H264;return(OD()?RD:xD)(e)}var AD=function(e){return e.Error="Error",e.Stall="Stall",e}(AD||{}),ID=function(){function e(t){Gy(this,e),Qf(this,"nextProtocol",void 0),Qf(this,"preProtocol",void 0),Qf(this,"protocolStrategy",void 0),Qf(this,"_fallback",void 0),this._fallback=t.fallback}return Yy(e,[{key:"_getKindFallbackStrategy",value:function(e){var t,r,n,o,i;return null!==(t=null!==(r=null===(n=this._fallback)||void 0===n||null===(n=n.fallbackStrategy)||void 0===n||null===(n=n[this.protocolType])||void 0===n?void 0:n[e])&&void 0!==r?r:null===(o=this._fallback)||void 0===o||null===(o=o.fallbackStrategy)||void 0===o||null===(o=o.all)||void 0===o?void 0:o[e])&&void 0!==t?t:null===(i=this.defaultFallbackStrategy)||void 0===i?void 0:i[e]}},{key:"errorFallbackStrategy",get:function(){return this._getKindFallbackStrategy("Error")}},{key:"stallFallbackStrategy",get:function(){return this._getKindFallbackStrategy("Stall")}},{key:"shouldFallbackWhenError",value:function(e){var t,r,n,o;return null!==(t=this.errorFallbackStrategy)&&void 0!==t&&t.shouldFallback?null===(n=this.errorFallbackStrategy)||void 0===n?void 0:n.shouldFallback(this.protocolType,e):!(null===(r=this.errorFallbackStrategy)||void 0===r||!r.excludeList)&&!_k(o=this.errorFallbackStrategy.excludeList).call(o,e.error.errorCode)}}]),e}(),CD=window.VePlayer.strategy,LD=window.VePlayer.load,DD=window.VePlayer.Codec,FD=window.VePlayer.util.appendSearchParams,jD=function(){var e=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w,S;return Ky().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===(o=t.flv)||void 0===o||null===(o=o.lowLatency)||void 0===o?void 0:o.enableFrameChasing)||void 0===n||n,v=null!==(i=null==t||null===(a=t.flv)||void 0===a||null===(a=a.lowLatency)||void 0===a?void 0:a.abrPts)&&void 0!==i?i:"-800",e.next=5,CD.getCodec(t);case 5:return g=e.sent,e.next=8,CD.isSoftDecode(t,g);case 8:if(e.sent&&(p=g===DD.H265?CD.createSoftDecodeH265Strategy():CD.createSoftDecodeH264Strategy(),f=CD.createFlvMseStrategy(t)),MD("unknown"===g?DD.H264:g)&&(f=OD()?CD.createFlvMssStrategy(t):CD.createFlvMseStrategy(t)),f||p){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,qE.all([(null===(s=f)||void 0===s?void 0:s.module)&&LD(f.module).catch((function(){})),(null===(l=p)||void 0===l?void 0:l.module)&&LD(p.module).catch((function(){}))]);case 15:return y=e.sent,m=mD(y,2),_=m[0],(null==(b=m[1])?void 0:b.XGVideoPlugin)&&(null===(u=p)||void 0===u||null===(c=u.afterLoad)||void 0===c||c.call(u,null==b?void 0:b.XGVideoPlugin)),w=CD.combineOptions([f,p]),S=[],h&&(w.url=FD(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)}}(),ND=window.VePlayer.DynamicModule,UD=window.VePlayer.load,VD=function(e){Tm(i,e);var t,r,n,o=Wm(i);function i(){return Gy(this,i),o.apply(this,arguments)}return Yy(i,[{key:"protocolType",get:function(){return wD}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:MD()});case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(r=qy(Ky().mark((function e(t,r){var n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.enableSelector,e.abrupt("return",jD(n?ep(ep({},t),{},{flv:ep(ep({},t.flv),{},{enableLowLatency:!1})}):t));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"getAbrStrategy",value:(t=qy(Ky().mark((function e(t){var r,n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==t||null===(r=t.flv)||void 0===r?void 0:r.abr){e.next=3;break}return e.abrupt("return",{});case 3:return e.next=5,UD(ND.PluginAbr).catch((function(){}));case 5:return i=e.sent,e.abrupt("return",{options:{abr:ep(ep({},o),{},{open:null===(n=o.enable)||void 0===n||n})},plugins:[null==i?void 0:i.AbrPlugin]});case 7:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".flv"}},{key:"generateUrl",value:function(e,t){var r,n=t.generateUrlFromOtherProtocol;return null!==(r=e[wD])&&void 0!==r?r:n()}},{key:"canGenerateOtherProtocol",value:function(){return!0}}]),i}(ID),zD=function(e){Tm(n,e);var t,r=Wm(n);function n(){return Gy(this,n),r.apply(this,arguments)}return Yy(n,[{key:"protocolType",get:function(){return ED}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",jD(ep(ep({},t),{},{flv:ep(ep({},t.flv),{},{enableLowLatency:!0})})));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),n}(VD),BD=window.VePlayer.Sniffer,WD=function(e){return e.Fairplay="fairplay",e}(WD||{});function KD(e){if(null!=e&&e.fairplay&&("safari"===BD.browser||BD.os.isIos))return"fairplay"}function HD(e){var t=e.drm,r=e.streamType,n=KD(t);return!n||("fairplay"!==n||"hls"!==r)}var qD=window.VePlayer.Codec,GD=window.VePlayer.strategy,XD=window.VePlayer.load,YD=window.VePlayer.Sniffer,$D=window.VePlayer.util.isMseSupported;function JD(e){var t,r;return!(null==e||null===(t=e.hls)||void 0===t||!t.enableHlsJs)||"ssai"===(null==e||null===(r=e.ad)||void 0===r?void 0:r.adType)}var QD=function(){var e=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f,p,h,d,v,g;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(HD({drm:t.drm,streamType:"hls"})){e.next=2;break}return e.abrupt("return",{options:{},plugins:[]});case 2:return e.next=4,GD.getCodec(t);case 4:return u=e.sent,e.next=7,GD.isSoftDecode(t,u);case 7:if(c=e.sent,f=JD(t),c&&(l=u===qD.H265?GD.createSoftDecodeH265Strategy():GD.createSoftDecodeH264Strategy(),s=GD.createHlsMseStrategy(t,f)),("mobile"!==YD.device||null!=t&&null!==(r=t.hls)&&void 0!==r&&r.enableMSE)&&$D("unknown"===u?qD.H264:u)&&(s=GD.createHlsMseStrategy(t,f)),s||l){e.next=13;break}return e.abrupt("return",{});case 13:return e.next=15,qE.all([(null===(n=s)||void 0===n?void 0:n.module)&&XD(s.module).catch((function(){})),(null===(o=l)||void 0===o?void 0:o.module)&&XD(l.module).catch((function(){}))]);case 15:return p=e.sent,h=mD(p,2),d=h[0],(null==(v=h[1])?void 0:v.XGVideoPlugin)&&(null===(i=l)||void 0===i||null===(a=i.afterLoad)||void 0===a||a.call(i,null==v?void 0:v.XGVideoPlugin)),g=GD.combineOptions([s,l]),e.abrupt("return",{options:g,plugins:null!=d&&d.HlsPlugin?[d.HlsPlugin]:[]});case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ZD=Ae,eF=Ye,tF=K,rF=zr,nF=TypeError,oF=function(e){return function(t,r,n,o){ZD(r);var i=eF(t),a=tF(i),s=rF(i),l=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(l in a){o=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw nF("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(o=r(o,a[l],l,i));return o}},iF={left:oF(!1),right:oF(!0)}.left;xr({target:"Array",proto:!0,forced:!Oh&&ve>79&&ve<83||!tc("reduce")},{reduce:function(e){var t=arguments.length;return iF(this,e,t,t>1?arguments[1]:void 0)}});var aF=Ys("Array").reduce,sF=se,lF=aF,uF=Array.prototype,cF=r((function(e){var t=e.reduce;return e===uF||sF(uF,e)&&t===uF.reduce?lF:t}));function fF(e,t,r){e[t]||(e[t]=[]),e[t].push(r)}function pF(e){return cF(e).call(e,(function(e,t){var r,n,o=cF(r=t.definitions).call(r,(function(e,t){var r=function(e){return"string"==typeof e?gD(e):e.type?e.type:gD(e.url)}(t);return fF(e,r,t),e}),{});return aT(n=Bb(o)).call(n,(function(r){fF(e,r,ep(ep({},t),{},{definitions:o[r]}))})),e}),{})}function hF(e,t){var r=[];return null==e||qb(e).call(e,(function(e){var n,o=[];qb(n=e.definitions).call(n,(function(e){var r;"string"==typeof e?o.push(t(e)):o.push(ep(ep({},e),{},{url:t(e.url),fallbackUrls:null===(r=e.fallbackUrls)||void 0===r?void 0:aT(r).call(r,(function(e){return t(e)}))}))})),r.push(ep(ep({},e),{},{definitions:o}))})),r}function dF(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=ln(e);for(n=0;n<i.length;n++)r=i[n],lw(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Bs){var i=Bs(e);for(n=0;n<i.length;n++)r=i[n],lw(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var vF=["getDrmConfig"],gF=window.VePlayer.DynamicModule,yF=window.VePlayer.load,mF=function(){var e=qy(Ky().mark((function e(t,r){var n,o,i,a,s,l,u,c,f,p,h;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=KD(t.drm),!t.url||n!==WD.Fairplay){e.next=18;break}return e.prev=2,a=null!==(o=null==t||null===(i=t.drm)||void 0===i?void 0:i.fairplay)&&void 0!==o?o:{},s=a.getDrmConfig,l=dF(a,vF),e.next=6,qE.all([yF(gF.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return u=e.sent,c=mD(u,2),f=c[0],p=c[1],h=TE({},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)}}(),_F=window.VePlayer.DynamicModule,bF=window.VePlayer.load,wF=window.VePlayer.util,SF=function(e){Tm(i,e);var t,r,n,o=Wm(i);function i(){return Gy(this,i),o.apply(this,arguments)}return Yy(i,[{key:"protocolType",get:function(){return _D}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:!0});case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(r=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",QD(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getAbrStrategy",value:(t=qy(Ky().mark((function e(t){var r,n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=null==t||null===(r=t.hls)||void 0===r?void 0:r.abr){e.next=3;break}return e.abrupt("return",{});case 3:return e.next=5,bF(_F.PluginAbr).catch((function(){}));case 5:return i=e.sent,e.abrupt("return",{options:{hlsabr:ep(ep({},o),{},{open:null===(n=o.enable)||void 0===n||n})},plugins:[null==i?void 0:i.HlsAbrPlugin]});case 7:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getDrmStrategy",value:function(e,t){return mF(e,t)}}],[{key:"suffix",get:function(){return".m3u8"}},{key:"canGenerateOtherProtocol",value:function(){return!0}},{key:"generateUrl",value:function(e,t){var r=t.generateUrlFromOtherProtocol;return e[_D]?e[_D]:e[bD]?hF(e[bD],(function(e){return wF.appendSearchParams(e,{fpkey_normal_hls:"1"})})):r()}}]),i}(ID),EF=function(e){Tm(o,e);var t,r,n=Wm(o);function o(){return Gy(this,o),n.apply(this,arguments)}return Yy(o,[{key:"protocolType",get:function(){return bD}},{key:"defaultFallbackStrategy",get:function(){return{}}},{key:"canPlay",value:(r=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{canPlay:!0});case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",QD(t));case 1:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getAbrStrategy",value:function(){}},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".m3u8"}},{key:"generateUrl",value:function(e){return e[bD]}},{key:"canGenerateOtherProtocol",value:function(){return!0}}]),o}(ID),kF=window.VePlayer.DynamicModule,PF=window.VePlayer.load;function TF(){return RF.apply(this,arguments)}function RF(){return(RF=qy(Ky().mark((function e(){var t,r;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,PF(kF.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 xF(){return OF.apply(this,arguments)}function OF(){return OF=qy(Ky().mark((function e(){var t,r,n,o=arguments;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:ej.H264,e.next=3,PF(kF.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==ej.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)}))),OF.apply(this,arguments)}var MF=["fallbackUrl","enableRTMAutoTranscode"],AF=window.VePlayer.strategy,IF=window.VePlayer.util,CF=window.VePlayer.DynamicModule,LF=window.VePlayer.load,DF=window.VePlayer.Codec,FF=window.VePlayer.Sniffer,jF={options:{},module:CF.PluginRtm},NF=function(e){return"pc"===FF.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},UF=function(){var e=qy(Ky().mark((function e(t,r,n){var o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w,S,E,k,P,T,R,x;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l="",u=t.url,c=t.playlist,f=t.rtm||{},p=f.fallbackUrl,h=f.enableRTMAutoTranscode,d=dF(f,MF),v=t.rtm||{},g=v.enableFallback,y=void 0===g||g,null!=c&&c.length&&(y=!1),m=h||"true"===(null===(o=aD(u))||void 0===o?void 0:o.searchParams.get("enableRTMAutoTranscode")),y&&(p?l=p:m&&u?l=NF(u):console.warn(P_(E_.EMPTY_RTM_FALLBACK_PARAMETER,n).message)),"flv"===(_=l&&IF.getStreamType(l))&&IF.isMseSupported(DF.H264)?s=AF.createFlvMseStrategy(t):"hls"===_&&("mobile"!==FF.device||null!=t&&null!==(i=t.hls)&&void 0!==i&&i.enableMSE)&&IF.isMseSupported(DF.H264)&&(s=AF.createHlsMseStrategy(t)),e.next=11,qE.all([LF(jF.module).then((function(e){return e.RtmPlugin})).catch((function(){})),s&&LF(s.module).then((function(e){var t,r;return(null===(t=s)||void 0===t?void 0:t.module)===CF.PluginFlv?e.FlvPlugin:(null===(r=s)||void 0===r?void 0:r.module)===CF.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 11:if(b=e.sent,w=mD(b,2),S=w[0],E=w[1],!l){e.next=25;break}return e.next=18,qE.all([TF(),xF()]);case 18:if(k=e.sent,P=mD(k,2),T=P[0],R=P[1],T&&R){e.next=25;break}return r&&r.emit("degrade",{url:l,originRtmUrl:u,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:T,isRTMSupportCodec:R}),e.abrupt("return",{options:ep(ep({},(null===(x=s)||void 0===x?void 0:x.options)||{}),{},{url:l,_RTMdegrade:{_originRtmUrl:u,_isRTMSupported:T,_isRTMSupportCodec:R}}),plugins:E?[E]:[]});case 25:return e.abrupt("return",{options:ep(ep({},(null===(a=s)||void 0===a?void 0:a.options)||{}),{},{url:h?IF.appendSearchParams(u,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:ep(ep({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)}}(),VF=function(e){Tm(o,e);var t,r,n=Wm(o);function o(){return Gy(this,o),n.apply(this,arguments)}return Yy(o,[{key:"protocolType",get:function(){return SD}},{key:"defaultFallbackStrategy",get:function(){return Qf({},AD.Error,{shouldFallback:function(){return!0}})}},{key:"canPlay",value:(r=qy(Ky().mark((function e(){var t,r,n,o;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qE.all([TF(),xF()]);case 2:return t=e.sent,r=mD(t,2),n=r[0],o=r[1],e.abrupt("return",{canPlay:n&&o});case 7:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"shouldFallbackWhenStall",value:function(){return!1}},{key:"getProtocolStrategy",value:(t=qy(Ky().mark((function e(t,r){var n,o,i;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.player,o=r.i18n,i=r.enableSelector,e.next=3,UF(i?{options:t,rtm:ep(ep({},t.rtm),{},{enableFallback:!1})}:t,n,o);case 3:return this.protocolStrategy=e.sent,e.abrupt("return",this.protocolStrategy);case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"getAbrStrategy",value:function(){}},{key:"getDrmStrategy",value:function(){}}],[{key:"suffix",get:function(){return".sdp"}},{key:"canGenerateOtherProtocol",value:function(e){var t;return null===(t=e.rtm)||void 0===t?void 0:t.enableRTMAutoTranscode}},{key:"generateUrl",value:function(e,t){var r,n=t.generateUrlFromOtherProtocol,o=t.options;return e[SD]?e[SD]:null!==(r=o.rtm)&&void 0!==r&&r.enableRTMAutoTranscode?n():void console.warn("生成 rtm 地址失败。请传入 rtm 播放地址,或开启自动转码")}}]),o}(ID),zF=function(){function e(t){var r=t.queue,n=t.streams,o=t.options;Gy(this,e),Qf(this,"current",void 0),Qf(this,"_queue",void 0),Qf(this,"_streams",void 0),Qf(this,"_options",void 0),this._queue=r,this._streams=n,this._options=o,this.current=this._getStartProtocol()}var t;return Yy(e,[{key:"getProtocol",value:(t=qy(Ky().mark((function e(){var t;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.current){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.current.canPlay();case 4:if(e.t1=t=e.sent,e.t0=null!==e.t1,!e.t0){e.next=8;break}e.t0=void 0!==t;case 8:if(!e.t0){e.next=12;break}e.t2=t,e.next=13;break;case 12:e.t2={};case 13:if(!e.t2.canPlay){e.next=17;break}return e.abrupt("return",this.current);case 17:return this.next(),e.abrupt("return",this.getProtocol());case 19:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"next",value:function(){var e;this.current=null===(e=this.current)||void 0===e?void 0:e.nextProtocol}},{key:"_getStartProtocol",value:function(){for(var e,t=this._queue.length-1;t>=0;t--){var r=this._queue[t],n=this._streams[r];n&&(e&&(e.preProtocol=n,n.nextProtocol=e),e=n)}return e}}]),e}(),BF=function(e){Tm(r,e);var t=Wm(r);function r(e){var n=e.streams,o=e.options;return Gy(this,r),t.call(this,{queue:r.queue,streams:n,options:o})}return Yy(r)}(zF);Qf(BF,"queue",[SD,ED,wD,bD,_D]);var WF,KF=function(e){Tm(r,e);var t=Wm(r);function r(e){var n,o=e.streams,i=e.options;return Gy(this,r),t.call(this,{queue:null===(n=i.fallback)||void 0===n?void 0:n.fallbackOrder,streams:o,options:i})}return Yy(r)}(zF);Qf(KF,"queue",void 0);var HF=function(){function e(t){Gy(this,e),Qf(this,"_options",void 0),Qf(this,"_selector",void 0),Qf(this,"_protocol",void 0),Qf(this,"_playlistMap",{}),this._options=t,this._init({url:t.url,playlist:t.playlist})}var t,r,n,o,i;return Yy(e,[{key:"enableSelector",get:function(){return!!this._selector}},{key:"protocol",get:function(){return this._protocol}},{key:"playlist",get:function(){var e;return null!==(e=this._protocol)&&void 0!==e&&e.protocolType&&this._playlistMap?this._playlistMap[this._protocol.protocolType]:void 0}},{key:"getProtocol",value:(i=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._selector){e.next=4;break}return e.next=3,this._selector.getProtocol();case 3:this._protocol=e.sent;case 4:return e.abrupt("return",this._protocol);case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"update",value:(o=qy(Ky().mark((function e(t){var r,n;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.playlist,this._options=ep(ep({},this._options),{},{url:r,playlist:n}),this._init({url:r,playlist:n}),e.next=5,this.getProtocol();case 5:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"next",value:(n=qy(Ky().mark((function e(){return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._selector){e.next=2;break}return e.abrupt("return");case 2:return this._selector.next(),e.next=5,this.getProtocol();case 5:return e.abrupt("return",this._protocol);case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStrategy",value:(r=qy(Ky().mark((function e(t,r){var n,o,i,a,s,l,u,c,f,p,h,d,v,g,y,m,_,b,w;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=this._protocol,e.next=3,qE.all([null==s?void 0:s.getProtocolStrategy(this._options,{player:t,i18n:r,enableSelector:!!this._selector}),null==s||null===(n=s.getDrmStrategy)||void 0===n?void 0:n.call(s,this._options,t),null==s||null===(o=s.getAbrStrategy)||void 0===o?void 0:o.call(s,this._options)]);case 3:return l=e.sent,u=mD(l,3),c=u[0],f=u[1],p=u[2],d=(h=null!=c?c:{}).options,v=h.plugins,y=(g=null!=f?f:{}).options,m=g.plugins,b=(_=null!=p?p:{}).options,w=_.plugins,e.abrupt("return",{options:TE({},d,y,b),plugins:__(i=[]).call(i,h_(null!=v?v:[]),h_(null!=m?m:[]),h_(null!=w?w:[])),useSrc:!(null!=c&&null!==(a=c.plugins)&&void 0!==a&&a.length),protocol:null==s?void 0:s.protocolType});case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"_init",value:function(t){var r=t.url,n=t.playlist;if(n){var o,i,a=pF(n),s="low"===this._options.latencyMode?BF:KF,l=null!==(o=null==s?void 0:s.queue)&&void 0!==o?o:null===(i=this._options.fallback)||void 0===i?void 0:i.fallbackOrder;if(null!=l&&l.length){var u=e._generateProtocolMap(l,a,this._options),c=u.protocolMap,f=u.playlistMap;return this._playlistMap=f,void(this._selector=new s({streams:c,options:this._options}))}this._playlistMap=a,this._initSingleProtocol(Bb(a)[0])}else r&&this._initSingleProtocol(gD(r))}},{key:"_initSingleProtocol",value:function(t){t&&(this._protocol=new e._protocolMap[t](this._options))}}],[{key:"create",value:(t=qy(Ky().mark((function t(r){var n;return Ky().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new e(r),t.next=3,n.getProtocol();case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})},{key:"_generateProtocolMap",value:function(t,r,n){var o={},i={},a=MR(t).call(t,(function(t){return e._protocolMap[t].canGenerateOtherProtocol(n)&&r[t]}));return qb(t).call(t,(function(t){var s,l,u=null!==(s=null===(l=e._protocolMap[t])||void 0===l?void 0:l.generateUrl(r,{generateUrlFromOtherProtocol:function(){if(a)return function(e,t,r){return hF(e,(function(e){return e.replace(t,r)}))}(r[a],e._protocolMap[a].suffix,e._protocolMap[t].suffix)},options:n}))&&void 0!==s?s:r[t];u&&(i[t]=u,o[t]=new e._protocolMap[t](n))})),{protocolMap:o,playlistMap:i}}}]),e}();Qf(HF,"_protocolMap",(Qf(WF={},wD,VD),Qf(WF,ED,zD),Qf(WF,_D,SF),Qf(WF,bD,EF),Qf(WF,SD,VF),WF));var qF,GF=function(){function e(){var t=this;Gy(this,e),Qf(this,"player",void 0),Qf(this,"protocolManager",void 0),Qf(this,"beforeFallbackError",function(){var e=qy(Ky().mark((function e(r){var n,o,i,a;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(n=t.protocolManager)&&void 0!==n&&null!==(n=n.protocol)&&void 0!==n&&n.shouldFallbackWhenError({error:r})&&null!==(o=t.protocolManager)&&void 0!==o&&null!==(o=o.protocol)&&void 0!==o&&o.nextProtocol){e.next=2;break}return e.abrupt("return",{canEmitError:!0});case 2:return e.next=4,null===(i=t.protocolManager)||void 0===i?void 0:i.next();case 4:if(e.sent&&null!==(a=t.protocolManager)&&void 0!==a&&a.playlist){e.next=7;break}return e.abrupt("return",{canEmitError:!0});case 7:return t.fallback(),e.abrupt("return",{canEmitError:!1});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var t;return Yy(e,[{key:"initErrorFallback",value:function(e,t){this.player=e,this.protocolManager=t}},{key:"fallback",value:(t=qy(Ky().mark((function e(){var t,r,n,o,i,a;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=this.protocolManager)&&void 0!==t&&t.playlist){e.next=2;break}return e.abrupt("return");case 2:i=null===(r=this.player)||void 0===r?void 0:r.definition,a=null===(n=this.player)||void 0===n?void 0:n.source,null===(o=this.player)||void 0===o||o.updatePlaylist(this.protocolManager.playlist,{definition:i,source:a},!1);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),XF=new GF,YF=window.VePlayer.DEFAULT_PLUGINS,$F=window.VePlayer.VePlayerBase,JF=window.VePlayer.VeI18n;JF.extend([{LANG:"zh-cn",TEXT:pR},{LANG:"en",TEXT:fR}]);var QF={autoplay:{muted:!0}},ZF=__(qF=[]).call(qF,h_(YF),[Vb,oR,uR]),ej=function(e){return e.H264="h264",e}(ej||{}),tj=function(e){Tm(o,e);var t,r,n=Wm(o);function o(e){var t;return Gy(this,o),Qf($y(t=n.call(this,e)),"_protocolManager",void 0),t}return Yy(o,[{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 o,i,a=null===(o=this._player)||void 0===o?void 0:o.played.start(n);r+=(null===(i=this._player)||void 0===i?void 0:i.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&&gD(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&&gD(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:(r=qy(Ky().mark((function e(){var t;return Ky().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 r.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()}},{key:"getHLSStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.hls)||void 0===e?void 0:e.getStats()}},{key:"updatePlaylist",value:(t=qy(Ky().mark((function e(t,r){var n,i=arguments;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.length>2&&void 0!==i[2]&&!i[2]){e.next=4;break}return e.next=4,null===(n=this._protocolManager)||void 0===n?void 0:n.update({playlist:t});case 4:return e.abrupt("return",km(Em(o.prototype),"updatePlaylist",this).call(this,t,r));case 5:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),o}($F);function rj(e){return nj.apply(this,arguments)}function nj(){return(nj=qy(Ky().mark((function e(t){var r,n,o,i,a,s,l,u,c,f;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=void 0,s=new JF({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),t&&(t.url||t.playlist)){e.next=4;break}throw P_(E_.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(P_(E_.INVALID_LOGGER,s).message),l=ep(ep({},t),{},{plugins:__(o=[]).call(o,h_(ZF),h_(null!==(i=t.plugins)&&void 0!==i?i:[]))}),e.next=8,HF.create(l);case 8:if(u=e.sent,t.url||null!=u&&u.playlist){e.next=11;break}throw P_(E_.INVALID_PARAMETER,s);case 11:return e.next=13,$F.create(ep(ep(ep({},QF),l),{},{playlist:null==u?void 0:u.playlist,beforeFallbackError:XF.beforeFallbackError,isLive:!0,i18nManager:s,preProcessUrl:function(e){return cD(".ts",e)?{url:e}:{url:rR(e)}},preparePlugins:function(e){return qy(Ky().mark((function t(){return Ky().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u.enableSelector){t.next=3;break}return t.next=3,u.update({url:e});case 3:return t.abrupt("return",u.getStrategy(a,s));case 4:case"end":return t.stop()}}),t)})))()}}),tj);case 13:return(a=e.sent)._protocolManager=u,XF.initErrorFallback(a,u),a&&(f=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:f._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:f._isRTMSupported,isRTMSupportCodec:f._isRTMSupportCodec}),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var oj=Object.freeze({__proto__:null,ErrorCode:E_,Events:Lb}),ij=window.VePlayer.setModuleSystem,aj=window.VePlayer.Codec,sj=window.VePlayer.DecodeType,lj=window.VePlayer.Degradation,uj=window.VePlayer.POSITIONS,cj=window.VePlayer.register,fj=window.VePlayer.registerPlugin,pj=window.VePlayer.EN,hj=window.VePlayer.ZH_CN,dj=window.VePlayer.Plugin,vj=window.VePlayer.Sniffer,gj=window.VePlayer.DynamicModule,yj=window.VePlayer.util,mj=window.VePlayer.load,_j=window.VePlayer.ListType;ij("umd");var bj=yj.isMseSupported,wj=yj.isSoftDecodeSupported,Sj=yj.isMMSSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(gj.BizLive,{createLivePlayer:rj}):fj(gj.BizLive,{createLivePlayer:rj}),e.Codec=aj,e.DecodeType=sj,e.Degradation=lj,e.DynamicModule=gj,e.EN=pj,e.ListType=_j,e.POSITIONS=uj,e.Plugin=dj,e.RTMCodec=ej,e.Sniffer=vj,e.ZH_CN=hj,e.createLivePlayer=rj,e.isFLVSupported=MD,e.isMMSSupported=Sj,e.isMseSupported=bj,e.isRTMSupportCodec=xF,e.isRTMSupported=TF,e.isSoftDecodeSupported=wj,e.live=oj,e.load=mj,e.register=cj,e.registerPlugin=fj,e.util=yj}));