@volcengine/veplayer 2.3.0 → 2.4.0-rc.0

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.
Files changed (40) hide show
  1. package/esm/index.d.ts +73 -3
  2. package/esm/veplayer.biz.live.development.js +92 -21
  3. package/esm/veplayer.biz.live.production.js +1 -1
  4. package/esm/veplayer.d.ts +290 -5
  5. package/esm/veplayer.development.css +1 -1
  6. package/esm/veplayer.development.js +217 -75
  7. package/esm/veplayer.live.d.ts +290 -5
  8. package/esm/veplayer.live.development.css +1 -1
  9. package/esm/veplayer.live.development.js +217 -75
  10. package/esm/veplayer.live.production.css +1 -1
  11. package/esm/veplayer.live.production.js +3 -3
  12. package/esm/veplayer.production.css +1 -1
  13. package/esm/veplayer.production.js +3 -3
  14. package/esm/veplayer.vod.d.ts +73 -3
  15. package/esm/veplayer.vod.development.css +1 -1
  16. package/esm/veplayer.vod.development.js +169 -68
  17. package/esm/veplayer.vod.production.css +1 -1
  18. package/esm/veplayer.vod.production.js +2 -2
  19. package/package.json +1 -1
  20. package/umd/index.d.ts +73 -3
  21. package/umd/veplayer.biz.live.development.js +92 -21
  22. package/umd/veplayer.biz.live.production.js +1 -1
  23. package/umd/veplayer.d.ts +290 -5
  24. package/umd/veplayer.development.css +1 -1
  25. package/umd/veplayer.development.js +217 -75
  26. package/umd/veplayer.live.d.ts +290 -5
  27. package/umd/veplayer.live.development.css +1 -1
  28. package/umd/veplayer.live.development.js +217 -75
  29. package/umd/veplayer.live.production.css +1 -1
  30. package/umd/veplayer.live.production.js +1 -1
  31. package/umd/veplayer.production.css +1 -1
  32. package/umd/veplayer.production.js +1 -1
  33. package/umd/veplayer.vod.d.ts +73 -3
  34. package/umd/veplayer.vod.development.css +1 -1
  35. package/umd/veplayer.vod.development.js +169 -68
  36. package/umd/veplayer.vod.production.css +1 -1
  37. package/umd/veplayer.vod.production.js +1 -1
  38. package/veplayer.d.ts +290 -5
  39. package/veplayer.live.d.ts +290 -5
  40. package/veplayer.vod.d.ts +73 -3
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),h=a,p=Function.prototype,d=p.call,g=h&&p.bind.bind(d,d),v=h?g:function(e){return function(){return d.apply(e,arguments)}},y=v,m=y({}.toString),_=y("".slice),w=function(e){return _(m(e),8,-1)},b=w,S=v,P=function(e){if("Function"===b(e))return S(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},E=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===E}:function(e){return"function"==typeof e},x={},I=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=a,C=Function.prototype.call,A=R?C.bind(C):function(){return C.apply(C,arguments)},j={},M={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,D=L&&!M.call({1:2},1);j.f=D?function(e){var t=L(this,e);return!!t&&t.enumerable}:M;var F,N,V=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,U=w,B=Object,W=v("".split),K=z((function(){return!B("z").propertyIsEnumerable(0)}))?function(e){return"String"==U(e)?W(e,""):B(e)}:B,q=function(e){return null==e},G=q,H=TypeError,Q=function(e){if(G(e))throw H("Can't call method on "+e);return e},X=K,J=Q,Y=function(e){return X(J(e))},$=O,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:$(e)||e===Z}:function(e){return"object"==typeof e?null!==e:$(e)},te={},re=te,ne=i,ie=O,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=v({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,he=ce.Deno,pe=fe&&fe.versions||he&&he.version,de=pe&&pe.v8;de&&(N=(F=de.split("."))[0]>0&&F[0]<4?1:+(F[0]+F[1])),!N&&ue&&(!(F=ue.match(/Edge\/(\d+)/))||F[1]>=74)&&(F=ue.match(/Chrome\/(\d+)/))&&(N=+F[1]);var ge=N,ve=ge,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})),we=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ae,Se=O,Pe=se,ke=Object,Te=we?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return Se(t)&&Pe(t.prototype,ke(e))},Ee=String,Oe=function(e){try{return Ee(e)}catch(t){return"Object"}},xe=O,Ie=Oe,Re=TypeError,Ce=function(e){if(xe(e))return e;throw Re(Ie(e)+" is not a function")},Ae=Ce,je=q,Me=function(e,t){var r=e[t];return je(r)?void 0:Ae(r)},Le=A,De=O,Fe=ee,Ne=TypeError,Ve={exports:{}},ze=i,Ue=Object.defineProperty,Be=function(e,t){try{Ue(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",Ke=i[We]||Be(We,{}),qe=Ke;(Ve.exports=function(e,t){return qe[e]||(qe[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 Ge=Ve.exports,He=Q,Qe=Object,Xe=function(e){return Qe(He(e))},Je=Xe,Ye=v({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Ye(Je(e),t)},Ze=v,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=Ge,ot=$e,at=nt,st=_e,lt=we,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,ht=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},pt=A,dt=ee,gt=Te,vt=Me,yt=function(e,t){var r,n;if("string"===t&&De(r=e.toString)&&!Fe(n=Le(r,e)))return n;if(De(r=e.valueOf)&&!Fe(n=Le(r,e)))return n;if("string"!==t&&De(r=e.toString)&&!Fe(n=Le(r,e)))return n;throw Ne("Can't convert object to primitive value")},mt=TypeError,_t=ht("toPrimitive"),wt=function(e,t){if(!dt(e)||gt(e))return e;var r,n=vt(e,_t);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!dt(r)||gt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},bt=Te,St=function(e){var t=wt(e,"string");return bt(t)?t:t+""},Pt=ee,kt=i.document,Tt=Pt(kt)&&Pt(kt.createElement),Et=function(e){return Tt?kt.createElement(e):{}},Ot=Et,xt=!I&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),It=I,Rt=A,Ct=j,At=V,jt=Y,Mt=St,Lt=$e,Dt=xt,Ft=Object.getOwnPropertyDescriptor;x.f=It?Ft:function(e,t){if(e=jt(e),t=Mt(t),Dt)try{return Ft(e,t)}catch(r){}if(Lt(e,t))return At(!Rt(Ct.f,e,t),e[t])};var Nt=o,Vt=O,zt=/#|\.prototype\./,Ut=function(e,t){var r=Wt[Bt(e)];return r==qt||r!=Kt&&(Vt(t)?Nt(t):!!t)},Bt=Ut.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Ut.data={},Kt=Ut.NATIVE="N",qt=Ut.POLYFILL="P",Gt=Ut,Ht=Ce,Qt=a,Xt=P(P.bind),Jt=function(e,t){return Ht(e),void 0===t?e:Qt?Xt(e,t):function(){return e.apply(t,arguments)}},Yt={},$t=I&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=I,ir=xt,or=$t,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",pr="writable";Yt.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=ur(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Yt,gr=V,vr=I?function(e,t,r){return dr.f(e,t,gr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=P,wr=O,br=x.f,Sr=Gt,Pr=te,kr=Jt,Tr=vr,Er=$e,Or=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},xr=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,h=e.global,p=e.stat,d=e.proto,g=h?yr:p?yr[f]:(yr[f]||{}).prototype,v=h?Pr:Pr[f]||Tr(Pr,f,{})[f],y=v.prototype;for(o in t)n=!(r=Sr(h?o:f+(p?".":"#")+o,e.forced))&&g&&Er(g,o),s=v[o],n&&(l=e.dontCallGetSet?(u=br(g,o))&&u.value:g[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Or(a):d&&wr(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tr(c,"sham",!0),Tr(v,o,c),d&&(Er(Pr,i=f+"Prototype")||Tr(Pr,i,{}),Tr(Pr[i],o,a),e.real&&y&&(r||!y[o])&&Tr(y,o,a)))},Ir=w,Rr=Array.isArray||function(e){return"Array"==Ir(e)},Cr=Math.ceil,Ar=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Ar:Cr)(t)},Mr=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Lr=Mr,Dr=Math.min,Fr=function(e){return e>0?Dr(Lr(e),9007199254740991):0},Nr=Fr,Vr=function(e){return Nr(e.length)},zr=TypeError,Ur=function(e){if(e>9007199254740991)throw zr("Maximum allowed index exceeded");return e},Br=St,Wr=Yt,Kr=V,qr=function(e,t,r){var n=Br(t);n in e?Wr.f(e,n,Kr(0,r)):e[n]=r},Gr={};Gr[ht("toStringTag")]="z";var Hr="[object z]"===String(Gr),Qr=Hr,Xr=O,Jr=w,Yr=ht("toStringTag"),$r=Object,Zr="Arguments"==Jr(function(){return arguments}()),en=Qr?Jr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=$r(e),Yr))?r:Zr?Jr(t):"Object"==(n=Jr(t))&&Xr(t.callee)?"Arguments":n},tn=O,rn=Ke,nn=v(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=v,sn=o,ln=O,cn=en,un=on,fn=function(){},hn=[],pn=ae("Reflect","construct"),dn=/^\s*(?:class|function)\b/,gn=an(dn.exec),vn=!dn.exec(fn),yn=function(e){if(!ln(e))return!1;try{return pn(fn,hn,e),!0}catch(t){return!1}},mn=function(e){if(!ln(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!gn(dn,un(e))}catch(t){return!0}};mn.sham=!0;var _n=!pn||sn((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,wn=Rr,bn=_n,Sn=ee,Pn=ht("species"),kn=Array,Tn=function(e){var t;return wn(e)&&(t=e.constructor,(bn(t)&&(t===kn||wn(t.prototype))||Sn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?kn:t},En=function(e,t){return new(Tn(e))(0===t?0:t)},On=o,xn=ge,In=ht("species"),Rn=function(e){return xn>=51||!On((function(){var t=[];return(t.constructor={})[In]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=xr,An=o,jn=Rr,Mn=ee,Ln=Xe,Dn=Vr,Fn=Ur,Nn=qr,Vn=En,zn=Rn,Un=ge,Bn=ht("isConcatSpreadable"),Wn=Un>=51||!An((function(){var e=[];return e[Bn]=!1,e.concat()[0]!==e})),Kn=function(e){if(!Mn(e))return!1;var t=e[Bn];return void 0!==t?!!t:jn(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Wn||!zn("concat")},{concat:function(e){var t,r,n,i,o,a=Ln(this),s=Vn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(Kn(o=-1===t?a:arguments[t]))for(i=Dn(o),Fn(l+i),r=0;r<i;r++,l++)r in o&&Nn(s,l,o[r]);else Fn(l+1),Nn(s,l++,o);return s.length=l,s}});var qn=en,Gn=String,Hn=function(e){if("Symbol"===qn(e))throw TypeError("Cannot convert a Symbol value to a string");return Gn(e)},Qn={},Xn=Mr,Jn=Math.max,Yn=Math.min,$n=function(e,t){var r=Xn(e);return r<0?Jn(r+t,0):Yn(r,t)},Zn=Y,ei=$n,ti=Vr,ri=function(e){return function(t,r,n){var i,o=Zn(t),a=ti(o),s=ei(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=$e,ai=Y,si=ni.indexOf,li=ii,ci=v([].push),ui=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(li,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~si(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=ui,pi=fi,di=Object.keys||function(e){return hi(e,pi)},gi=I,vi=$t,yi=Yt,mi=rr,_i=Y,wi=di;Qn.f=gi&&!vi?Object.defineProperties:function(e,t){mi(e);for(var r,n=_i(t),i=wi(t),o=i.length,a=0;o>a;)yi.f(e,r=i[a++],n[r]);return e};var bi,Si=ae("document","documentElement"),Pi=nt,ki=Ge("keys"),Ti=function(e){return ki[e]||(ki[e]=Pi(e))},Ei=rr,Oi=Qn,xi=fi,Ii=ii,Ri=Si,Ci=Et,Ai="prototype",ji="script",Mi=Ti("IE_PROTO"),Li=function(){},Di=function(e){return"<"+ji+">"+e+"</"+ji+">"},Fi=function(e){e.write(Di("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ni=function(){try{bi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Ni="undefined"!=typeof document?document.domain&&bi?Fi(bi):(t=Ci("iframe"),r="java"+ji+":",t.style.display="none",Ri.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Di("document.F=Object")),e.close(),e.F):Fi(bi);for(var n=xi.length;n--;)delete Ni[Ai][xi[n]];return Ni()};Ii[Mi]=!0;var Vi=Object.create||function(e,t){var r;return null!==e?(Li[Ai]=Ei(e),r=new Li,Li[Ai]=null,r[Mi]=e):r=Ni(),void 0===t?r:Oi.f(r,t)},zi={},Ui=ui,Bi=fi.concat("length","prototype");zi.f=Object.getOwnPropertyNames||function(e){return Ui(e,Bi)};var Wi={},Ki=$n,qi=Vr,Gi=qr,Hi=Array,Qi=Math.max,Xi=function(e,t,r){for(var n=qi(e),i=Ki(t,n),o=Ki(void 0===r?n:r,n),a=Hi(Qi(o-i,0)),s=0;i<o;i++,s++)Gi(a,s,e[i]);return a.length=s,a},Ji=w,Yi=Y,$i=zi.f,Zi=Xi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Wi.f=function(e){return eo&&"Window"==Ji(e)?function(e){try{return $i(e)}catch(t){return Zi(eo)}}(e):$i(Yi(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=vr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=Yt,oo=function(e,t,r){return io.f(e,t,r)},ao={},so=ht;ao.f=so;var lo,co,uo,fo=te,ho=$e,po=ao,go=Yt.f,vo=function(e){var t=fo.Symbol||(fo.Symbol={});ho(t,e)||go(t,e,{value:po.f(e)})},yo=A,mo=ae,_o=ht,wo=no,bo=function(){var e=mo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_o("toPrimitive");t&&!t[n]&&wo(t,n,(function(e){return yo(r,this)}),{arity:1})},So=en,Po=Hr?{}.toString:function(){return"[object "+So(this)+"]"},ko=Hr,To=Yt.f,Eo=vr,Oo=$e,xo=Po,Io=ht("toStringTag"),Ro=function(e,t,r,n){if(e){var i=r?e:e.prototype;Oo(i,Io)||To(i,Io,{configurable:!0,value:t}),n&&!ko&&Eo(i,"toString",xo)}},Co=O,Ao=i.WeakMap,jo=Co(Ao)&&/native code/.test(String(Ao)),Mo=i,Lo=ee,Do=vr,Fo=$e,No=Ke,Vo=Ti,zo=ii,Uo="Object already initialized",Bo=Mo.TypeError,Wo=Mo.WeakMap;if(jo||No.state){var Ko=No.state||(No.state=new Wo);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,lo=function(e,t){if(Ko.has(e))throw Bo(Uo);return t.facade=e,Ko.set(e,t),t},co=function(e){return Ko.get(e)||{}},uo=function(e){return Ko.has(e)}}else{var qo=Vo("state");zo[qo]=!0,lo=function(e,t){if(Fo(e,qo))throw Bo(Uo);return t.facade=e,Do(e,qo,t),t},co=function(e){return Fo(e,qo)?e[qo]:{}},uo=function(e){return Fo(e,qo)}}var Go={set:lo,get:co,has:uo,enforce:function(e){return uo(e)?co(e):lo(e,{})},getterFor:function(e){return function(t){var r;if(!Lo(t)||(r=co(t)).type!==e)throw Bo("Incompatible receiver, "+e+" required");return r}}},Ho=Jt,Qo=K,Xo=Xe,Jo=Vr,Yo=En,$o=v([].push),Zo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var h,p,d=Xo(l),g=Qo(d),v=Ho(c,u),y=Jo(g),m=0,_=f||Yo,w=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in g)&&(p=v(h=g[m],m,d),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:$o(w,h)}else switch(e){case 4:return!1;case 7:$o(w,h)}return o?-1:n||i?i:w}},ea={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ta=xr,ra=i,na=A,ia=v,oa=I,aa=_e,sa=o,la=$e,ca=se,ua=rr,fa=Y,ha=St,pa=Hn,da=V,ga=Vi,va=di,ya=zi,ma=Wi,_a=to,wa=x,ba=Yt,Sa=Qn,Pa=j,ka=no,Ta=oo,Ea=Ge,Oa=ii,xa=nt,Ia=ht,Ra=ao,Ca=vo,Aa=bo,ja=Ro,Ma=Go,La=ea.forEach,Da=Ti("hidden"),Fa="Symbol",Na="prototype",Va=Ma.set,za=Ma.getterFor(Fa),Ua=Object[Na],Ba=ra.Symbol,Wa=Ba&&Ba[Na],Ka=ra.TypeError,qa=ra.QObject,Ga=wa.f,Ha=ba.f,Qa=ma.f,Xa=Pa.f,Ja=ia([].push),Ya=Ea("symbols"),$a=Ea("op-symbols"),Za=Ea("wks"),es=!qa||!qa[Na]||!qa[Na].findChild,ts=oa&&sa((function(){return 7!=ga(Ha({},"a",{get:function(){return Ha(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ga(Ua,t);n&&delete Ua[t],Ha(e,t,r),n&&e!==Ua&&Ha(Ua,t,n)}:Ha,rs=function(e,t){var r=Ya[e]=ga(Wa);return Va(r,{type:Fa,tag:e,description:t}),oa||(r.description=t),r},ns=function(e,t,r){e===Ua&&ns($a,t,r),ua(e);var n=ha(t);return ua(r),la(Ya,n)?(r.enumerable?(la(e,Da)&&e[Da][n]&&(e[Da][n]=!1),r=ga(r,{enumerable:da(0,!1)})):(la(e,Da)||Ha(e,Da,da(1,{})),e[Da][n]=!0),ts(e,n,r)):Ha(e,n,r)},is=function(e,t){ua(e);var r=fa(t),n=va(r).concat(ls(r));return La(n,(function(t){oa&&!na(os,r,t)||ns(e,t,r[t])})),e},os=function(e){var t=ha(e),r=na(Xa,this,t);return!(this===Ua&&la(Ya,t)&&!la($a,t))&&(!(r||!la(this,t)||!la(Ya,t)||la(this,Da)&&this[Da][t])||r)},as=function(e,t){var r=fa(e),n=ha(t);if(r!==Ua||!la(Ya,n)||la($a,n)){var i=Ga(r,n);return!i||!la(Ya,n)||la(r,Da)&&r[Da][n]||(i.enumerable=!0),i}},ss=function(e){var t=Qa(fa(e)),r=[];return La(t,(function(e){la(Ya,e)||la(Oa,e)||Ja(r,e)})),r},ls=function(e){var t=e===Ua,r=Qa(t?$a:fa(e)),n=[];return La(r,(function(e){!la(Ya,e)||t&&!la(Ua,e)||Ja(n,Ya[e])})),n};aa||(Ba=function(){if(ca(Wa,this))throw Ka("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=xa(e),r=function(e){this===Ua&&na(r,$a,e),la(this,Da)&&la(this[Da],t)&&(this[Da][t]=!1),ts(this,t,da(1,e))};return oa&&es&&ts(Ua,t,{configurable:!0,set:r}),rs(t,e)},ka(Wa=Ba[Na],"toString",(function(){return za(this).tag})),ka(Ba,"withoutSetter",(function(e){return rs(xa(e),e)})),Pa.f=os,ba.f=ns,Sa.f=is,wa.f=as,ya.f=ma.f=ss,_a.f=ls,Ra.f=function(e){return rs(Ia(e),e)},oa&&Ta(Wa,"description",{configurable:!0,get:function(){return za(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ba}),La(va(Za),(function(e){Ca(e)})),ta({target:Fa,stat:!0,forced:!aa},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?ga(e):is(ga(e),t)},defineProperty:ns,defineProperties:is,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Aa(),ja(Ba,Fa),Oa[Da]=!0;var cs=_e&&!!Symbol.for&&!!Symbol.keyFor,us=xr,fs=ae,hs=$e,ps=Hn,ds=Ge,gs=cs,vs=ds("string-to-symbol-registry"),ys=ds("symbol-to-string-registry");us({target:"Symbol",stat:!0,forced:!gs},{for:function(e){var t=ps(e);if(hs(vs,t))return vs[t];var r=fs("Symbol")(t);return vs[t]=r,ys[r]=t,r}});var ms=xr,_s=$e,ws=Te,bs=Oe,Ss=cs,Ps=Ge("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(e){if(!ws(e))throw TypeError(bs(e)+" is not a symbol");if(_s(Ps,e))return Ps[e]}});var ks=v([].slice),Ts=Rr,Es=O,Os=w,xs=Hn,Is=v([].push),Rs=xr,Cs=ae,As=f,js=A,Ms=v,Ls=o,Ds=O,Fs=Te,Ns=ks,Vs=function(e){if(Es(e))return e;if(Ts(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Is(r,i):"number"!=typeof i&&"Number"!=Os(i)&&"String"!=Os(i)||Is(r,xs(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ts(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},zs=_e,Us=String,Bs=Cs("JSON","stringify"),Ws=Ms(/./.exec),Ks=Ms("".charAt),qs=Ms("".charCodeAt),Gs=Ms("".replace),Hs=Ms(1..toString),Qs=/[\uD800-\uDFFF]/g,Xs=/^[\uD800-\uDBFF]$/,Js=/^[\uDC00-\uDFFF]$/,Ys=!zs||Ls((function(){var e=Cs("Symbol")();return"[null]"!=Bs([e])||"{}"!=Bs({a:e})||"{}"!=Bs(Object(e))})),$s=Ls((function(){return'"\\udf06\\ud834"'!==Bs("\udf06\ud834")||'"\\udead"'!==Bs("\udead")})),Zs=function(e,t){var r=Ns(arguments),n=Vs(t);if(Ds(n)||void 0!==e&&!Fs(e))return r[1]=function(e,t){if(Ds(n)&&(t=js(n,this,Us(e),t)),!Fs(t))return t},As(Bs,null,r)},el=function(e,t,r){var n=Ks(r,t-1),i=Ks(r,t+1);return Ws(Xs,e)&&!Ws(Js,i)||Ws(Js,e)&&!Ws(Xs,n)?"\\u"+Hs(qs(e,0),16):e};Bs&&Rs({target:"JSON",stat:!0,arity:3,forced:Ys||$s},{stringify:function(e,t,r){var n=Ns(arguments),i=As(Ys?Zs:Bs,null,n);return $s&&"string"==typeof i?Gs(i,Qs,el):i}});var tl=to,rl=Xe;xr({target:"Object",stat:!0,forced:!_e||o((function(){tl.f(1)}))},{getOwnPropertySymbols:function(e){var t=tl.f;return t?t(rl(e)):[]}}),vo("asyncIterator"),vo("hasInstance"),vo("isConcatSpreadable"),vo("iterator"),vo("match"),vo("matchAll"),vo("replace"),vo("search"),vo("species"),vo("split");var nl=bo;vo("toPrimitive"),nl();var il=ae,ol=Ro;vo("toStringTag"),ol(il("Symbol"),"Symbol"),vo("unscopables"),Ro(i.JSON,"JSON",!0);var al,sl,ll,cl=te.Symbol,ul={},fl=I,hl=$e,pl=Function.prototype,dl=fl&&Object.getOwnPropertyDescriptor,gl=hl(pl,"name"),vl={EXISTS:gl,PROPER:gl&&"something"===function(){}.name,CONFIGURABLE:gl&&(!fl||fl&&dl(pl,"name").configurable)},yl=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ml=$e,_l=O,wl=Xe,bl=yl,Sl=Ti("IE_PROTO"),Pl=Object,kl=Pl.prototype,Tl=bl?Pl.getPrototypeOf:function(e){var t=wl(e);if(ml(t,Sl))return t[Sl];var r=t.constructor;return _l(r)&&t instanceof r?r.prototype:t instanceof Pl?kl:null},El=o,Ol=O,xl=ee,Il=Vi,Rl=Tl,Cl=no,Al=ht("iterator"),jl=!1;[].keys&&("next"in(ll=[].keys())?(sl=Rl(Rl(ll)))!==Object.prototype&&(al=sl):jl=!0);var Ml=!xl(al)||El((function(){var e={};return al[Al].call(e)!==e}));Ol((al=Ml?{}:Il(al))[Al])||Cl(al,Al,(function(){return this}));var Ll={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:jl},Dl=Ll.IteratorPrototype,Fl=Vi,Nl=V,Vl=Ro,zl=ul,Ul=function(){return this},Bl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Fl(Dl,{next:Nl(+!n,r)}),Vl(e,i,!1,!0),zl[i]=Ul,e},Wl=v,Kl=Ce,ql=O,Gl=String,Hl=TypeError,Ql=function(e,t,r){try{return Wl(Kl(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Xl=rr,Jl=function(e){if("object"==typeof e||ql(e))return e;throw Hl("Can't set "+Gl(e)+" as a prototype")},Yl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ql(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Xl(r),Jl(n),t?e(r,n):r.__proto__=n,r}}():void 0),$l=xr,Zl=A,ec=vl,tc=Bl,rc=Tl,nc=Ro,ic=no,oc=ul,ac=Ll,sc=ec.PROPER,lc=ac.BUGGY_SAFARI_ITERATORS,cc=ht("iterator"),uc="keys",fc="values",hc="entries",pc=function(){return this},dc=function(e,t,r,n,i,o,a){tc(r,t,n);var s,l,c,u=function(e){if(e===i&&g)return g;if(!lc&&e in p)return p[e];switch(e){case uc:case fc:case hc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[cc]||p["@@iterator"]||i&&p[i],g=!lc&&d||u(i),v="Array"==t&&p.entries||d;if(v&&(s=rc(v.call(new e)))!==Object.prototype&&s.next&&(nc(s,f,!0,!0),oc[f]=pc),sc&&i==fc&&d&&d.name!==fc&&(h=!0,g=function(){return Zl(d,this)}),i)if(l={values:u(fc),keys:o?g:u(uc),entries:u(hc)},a)for(c in l)(lc||h||!(c in p))&&ic(p,c,l[c]);else $l({target:t,proto:!0,forced:lc||h},l);return a&&p[cc]!==g&&ic(p,cc,g,{name:i}),oc[t]=g,l},gc=function(e,t){return{value:e,done:t}},vc=Y,yc=ul,mc=Go;Yt.f;var _c=dc,wc=gc,bc="Array Iterator",Sc=mc.set,Pc=mc.getterFor(bc);_c(Array,"Array",(function(e,t){Sc(this,{type:bc,target:vc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,wc(void 0,!0)):wc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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},Tc=i,Ec=en,Oc=vr,xc=ul,Ic=ht("toStringTag");for(var Rc in kc){var Cc=Tc[Rc],Ac=Cc&&Cc.prototype;Ac&&Ec(Ac)!==Ic&&Oc(Ac,Ic,Rc),xc[Rc]=xc.Array}var jc=cl;vo("dispose");var Mc=jc;vo("asyncDispose");var Lc=xr,Dc=v,Fc=ae("Symbol"),Nc=Fc.keyFor,Vc=Dc(Fc.prototype.valueOf);Lc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Nc(Vc(e))}catch(t){return!1}}});for(var zc=xr,Uc=Ge,Bc=ae,Wc=v,Kc=Te,qc=ht,Gc=Bc("Symbol"),Hc=Gc.isWellKnown,Qc=Bc("Object","getOwnPropertyNames"),Xc=Wc(Gc.prototype.valueOf),Jc=Uc("wks"),Yc=0,$c=Qc(Gc),Zc=$c.length;Yc<Zc;Yc++)try{var eu=$c[Yc];Kc(Gc[eu])&&qc(eu)}catch(qO){}zc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Hc&&Hc(e))return!0;try{for(var t=Xc(e),r=0,n=Qc(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(qO){}return!1}}),vo("matcher"),vo("metadataKey"),vo("observable"),vo("metadata"),vo("patternMatch"),vo("replaceAll");var tu=Mc,ru=r(tu),nu=v,iu=Mr,ou=Hn,au=Q,su=nu("".charAt),lu=nu("".charCodeAt),cu=nu("".slice),uu=function(e){return function(t,r){var n,i,o=ou(au(t)),a=iu(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=lu(o,a))<55296||n>56319||a+1===s||(i=lu(o,a+1))<56320||i>57343?e?su(o,a):n:e?cu(o,a,a+2):i-56320+(n-55296<<10)+65536}},fu={codeAt:uu(!1),charAt:uu(!0)}.charAt,hu=Hn,pu=Go,du=dc,gu=gc,vu="String Iterator",yu=pu.set,mu=pu.getterFor(vu);du(String,"String",(function(e){yu(this,{type:vu,string:hu(e),index:0})}),(function(){var e,t=mu(this),r=t.string,n=t.index;return n>=r.length?gu(void 0,!0):(e=fu(r,n),t.index+=e.length,gu(e,!1))}));var _u=r(ao.f("iterator"));function wu(e){return(wu="function"==typeof ru&&"symbol"==typeof _u?function(e){return typeof e}:function(e){return e&&"function"==typeof ru&&e.constructor===ru&&e!==ru.prototype?"symbol":typeof e})(e)}var bu={exports:{}},Su=xr,Pu=I,ku=Yt.f;Su({target:"Object",stat:!0,forced:Object.defineProperty!==ku,sham:!Pu},{defineProperty:ku});var Tu=te.Object,Eu=bu.exports=function(e,t,r){return Tu.defineProperty(e,t,r)};Tu.defineProperty.sham&&(Eu.sham=!0);var Ou=bu.exports,xu=r(Ou);xr({target:"Object",stat:!0,sham:!I},{create:Vi});var Iu=te.Object,Ru=function(e,t){return Iu.create(e,t)},Cu=r(Ru),Au=Xe,ju=Tl,Mu=yl;xr({target:"Object",stat:!0,forced:o((function(){ju(1)})),sham:!Mu},{getPrototypeOf:function(e){return ju(Au(e))}});var Lu=r(te.Object.getPrototypeOf),Du=o,Fu=function(e,t){var r=[][e];return!!r&&Du((function(){r.call(null,t||function(){return 1},1)}))},Nu=ea.forEach,Vu=Fu("forEach")?[].forEach:function(e){return Nu(this,e,arguments.length>1?arguments[1]:void 0)};xr({target:"Array",proto:!0,forced:[].forEach!=Vu},{forEach:Vu});var zu=te,Uu=function(e){return zu[e+"Prototype"]},Bu=Uu("Array").forEach,Wu=en,Ku=$e,qu=se,Gu=Bu,Hu=Array.prototype,Qu={DOMTokenList:!0,NodeList:!0},Xu=function(e){var t=e.forEach;return e===Hu||qu(Hu,e)&&t===Hu.forEach||Ku(Qu,Wu(e))?Gu:t},Ju=r(Xu),Yu=I,$u=Rr,Zu=TypeError,ef=Object.getOwnPropertyDescriptor,tf=Yu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(qO){return qO instanceof TypeError}}()?function(e,t){if($u(e)&&!ef(e,"length").writable)throw Zu("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},rf=Xe,nf=Vr,of=tf,af=Ur;xr({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(qO){return qO instanceof TypeError}}()},{push:function(e){var t=rf(this),r=nf(t),n=arguments.length;af(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return of(t,r),r}});var sf=Uu("Array").push,lf=se,cf=sf,uf=Array.prototype,ff=r((function(e){var t=e.push;return e===uf||lf(uf,e)&&t===uf.push?cf:t}));xr({target:"Object",stat:!0},{setPrototypeOf:Yl});var hf=r(te.Object.setPrototypeOf),pf=ae,df=zi,gf=to,vf=rr,yf=v([].concat),mf=pf("Reflect","ownKeys")||function(e){var t=df.f(vf(e)),r=gf.f;return r?yf(t,r(e)):t},_f=$e,wf=mf,bf=x,Sf=Yt,Pf=ee,kf=vr,Tf=Error,Ef=v("".replace),Of=String(Tf("zxcasd").stack),xf=/\n\s*at [^:]*:[^\n]*/,If=xf.test(Of),Rf=V,Cf=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Rf(1,7)),7!==e.stack)})),Af=vr,jf=function(e,t){if(If&&"string"==typeof e&&!Tf.prepareStackTrace)for(;t--;)e=Ef(e,xf,"");return e},Mf=Cf,Lf=Error.captureStackTrace,Df=ul,Ff=ht("iterator"),Nf=Array.prototype,Vf=function(e){return void 0!==e&&(Df.Array===e||Nf[Ff]===e)},zf=en,Uf=Me,Bf=q,Wf=ul,Kf=ht("iterator"),qf=function(e){if(!Bf(e))return Uf(e,Kf)||Uf(e,"@@iterator")||Wf[zf(e)]},Gf=A,Hf=Ce,Qf=rr,Xf=Oe,Jf=qf,Yf=TypeError,$f=function(e,t){var r=arguments.length<2?Jf(e):t;if(Hf(r))return Qf(Gf(r,e));throw Yf(Xf(e)+" is not iterable")},Zf=A,eh=rr,th=Me,rh=function(e,t,r){var n,i;eh(e);try{if(!(n=th(e,"return"))){if("throw"===t)throw r;return r}n=Zf(n,e)}catch(qO){i=!0,n=qO}if("throw"===t)throw r;if(i)throw n;return eh(n),r},nh=Jt,ih=A,oh=rr,ah=Oe,sh=Vf,lh=Vr,ch=se,uh=$f,fh=qf,hh=rh,ph=TypeError,dh=function(e,t){this.stopped=e,this.result=t},gh=dh.prototype,vh=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),g=nh(t,u),v=function(e){return n&&hh(n,"normal",e),new dh(!0,e)},y=function(e){return f?(oh(e),d?g(e[0],e[1],v):g(e[0],e[1])):d?g(e,v):g(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(i=fh(e)))throw ph(ah(e)+" is not iterable");if(sh(i)){for(o=0,a=lh(e);a>o;o++)if((s=y(e[o]))&&ch(gh,s))return s;return new dh(!1)}n=uh(e,i)}for(l=h?e.next:n.next;!(c=ih(l,n)).done;){try{s=y(c.value)}catch(qO){hh(n,"throw",qO)}if("object"==typeof s&&s&&ch(gh,s))return s}return new dh(!1)},yh=Hn,mh=xr,_h=se,wh=Tl,bh=Yl,Sh=function(e,t,r){for(var n=wf(t),i=Sf.f,o=bf.f,a=0;a<n.length;a++){var s=n[a];_f(e,s)||r&&_f(r,s)||i(e,s,o(t,s))}},Ph=Vi,kh=vr,Th=V,Eh=function(e,t){Pf(t)&&"cause"in t&&kf(e,"cause",t.cause)},Oh=function(e,t,r,n){Mf&&(Lf?Lf(e,t):Af(e,"stack",jf(r,n)))},xh=vh,Ih=function(e,t){return void 0===e?arguments.length<2?"":t:yh(e)},Rh=ht("toStringTag"),Ch=Error,Ah=[].push,jh=function(e,t){var r,n=_h(Mh,this);bh?r=bh(Ch(),n?wh(this):Mh):(r=n?this:Ph(Mh),kh(r,Rh,"Error")),void 0!==t&&kh(r,"message",Ih(t)),Oh(r,jh,r.stack,1),arguments.length>2&&Eh(r,arguments[2]);var i=[];return xh(e,Ah,{that:i}),kh(r,"errors",i),r};bh?bh(jh,Ch):Sh(jh,Ch,{name:!0});var Mh=jh.prototype=Ph(Ch.prototype,{constructor:Th(1,jh),message:Th(1,""),name:Th(1,"AggregateError")});mh({global:!0,constructor:!0,arity:2},{AggregateError:jh});var Lh,Dh,Fh,Nh,Vh="undefined"!=typeof process&&"process"==w(process),zh=ae,Uh=oo,Bh=I,Wh=ht("species"),Kh=se,qh=TypeError,Gh=function(e,t){if(Kh(t,e))return e;throw qh("Incorrect invocation")},Hh=_n,Qh=Oe,Xh=TypeError,Jh=function(e){if(Hh(e))return e;throw Xh(Qh(e)+" is not a constructor")},Yh=rr,$h=Jh,Zh=q,ep=ht("species"),tp=function(e,t){var r,n=Yh(e).constructor;return void 0===n||Zh(r=Yh(n)[ep])?t:$h(r)},rp=TypeError,np=function(e,t){if(e<t)throw rp("Not enough arguments");return e},ip=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),op=i,ap=f,sp=Jt,lp=O,cp=$e,up=o,fp=Si,hp=ks,pp=Et,dp=np,gp=ip,vp=Vh,yp=op.setImmediate,mp=op.clearImmediate,_p=op.process,wp=op.Dispatch,bp=op.Function,Sp=op.MessageChannel,Pp=op.String,kp=0,Tp={},Ep="onreadystatechange";up((function(){Lh=op.location}));var Op=function(e){if(cp(Tp,e)){var t=Tp[e];delete Tp[e],t()}},xp=function(e){return function(){Op(e)}},Ip=function(e){Op(e.data)},Rp=function(e){op.postMessage(Pp(e),Lh.protocol+"//"+Lh.host)};yp&&mp||(yp=function(e){dp(arguments.length,1);var t=lp(e)?e:bp(e),r=hp(arguments,1);return Tp[++kp]=function(){ap(t,void 0,r)},Dh(kp),kp},mp=function(e){delete Tp[e]},vp?Dh=function(e){_p.nextTick(xp(e))}:wp&&wp.now?Dh=function(e){wp.now(xp(e))}:Sp&&!gp?(Nh=(Fh=new Sp).port2,Fh.port1.onmessage=Ip,Dh=sp(Nh.postMessage,Nh)):op.addEventListener&&lp(op.postMessage)&&!op.importScripts&&Lh&&"file:"!==Lh.protocol&&!up(Rp)?(Dh=Rp,op.addEventListener("message",Ip,!1)):Dh=Ep in pp("script")?function(e){fp.appendChild(pp("script"))[Ep]=function(){fp.removeChild(this),Op(e)}}:function(e){setTimeout(xp(e),0)});var Cp={set:yp,clear:mp},Ap=function(){this.head=null,this.tail=null};Ap.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 jp,Mp,Lp,Dp,Fp,Np=Ap,Vp=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,zp=/web0s(?!.*chrome)/i.test(le),Up=i,Bp=Jt,Wp=x.f,Kp=Cp.set,qp=Np,Gp=ip,Hp=Vp,Qp=zp,Xp=Vh,Jp=Up.MutationObserver||Up.WebKitMutationObserver,Yp=Up.document,$p=Up.process,Zp=Up.Promise,ed=Wp(Up,"queueMicrotask"),td=ed&&ed.value;if(!td){var rd=new qp,nd=function(){var e,t;for(Xp&&(e=$p.domain)&&e.exit();t=rd.get();)try{t()}catch(qO){throw rd.head&&jp(),qO}e&&e.enter()};Gp||Xp||Qp||!Jp||!Yp?!Hp&&Zp&&Zp.resolve?((Dp=Zp.resolve(void 0)).constructor=Zp,Fp=Bp(Dp.then,Dp),jp=function(){Fp(nd)}):Xp?jp=function(){$p.nextTick(nd)}:(Kp=Bp(Kp,Up),jp=function(){Kp(nd)}):(Mp=!0,Lp=Yp.createTextNode(""),new Jp(nd).observe(Lp,{characterData:!0}),jp=function(){Lp.data=Mp=!Mp}),td=function(e){rd.head||jp(),rd.add(e)}}var id=td,od=function(e){try{return{error:!1,value:e()}}catch(qO){return{error:!0,value:qO}}},ad=i.Promise,sd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ld=!sd&&!Vh&&"object"==typeof window&&"object"==typeof document,cd=i,ud=ad,fd=O,hd=Gt,pd=on,dd=ht,gd=ld,vd=sd,yd=ge,md=ud&&ud.prototype,_d=dd("species"),wd=!1,bd=fd(cd.PromiseRejectionEvent),Sd={CONSTRUCTOR:hd("Promise",(function(){var e=pd(ud),t=e!==String(ud);if(!t&&66===yd)return!0;if(!md.catch||!md.finally)return!0;if(!yd||yd<51||!/native code/.test(e)){var r=new ud((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[_d]=n,!(wd=r.then((function(){}))instanceof n))return!0}return!t&&(gd||vd)&&!bd})),REJECTION_EVENT:bd,SUBCLASSING:wd},Pd={},kd=Ce,Td=TypeError,Ed=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Td("Bad Promise constructor");t=e,r=n})),this.resolve=kd(t),this.reject=kd(r)};Pd.f=function(e){return new Ed(e)};var Od,xd,Id=xr,Rd=Vh,Cd=i,Ad=A,jd=no,Md=Ro,Ld=function(e){var t=zh(e);Bh&&t&&!t[Wh]&&Uh(t,Wh,{configurable:!0,get:function(){return this}})},Dd=Ce,Fd=O,Nd=ee,Vd=Gh,zd=tp,Ud=Cp.set,Bd=id,Wd=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(qO){}},Kd=od,qd=Np,Gd=Go,Hd=ad,Qd=Sd,Xd=Pd,Jd="Promise",Yd=Qd.CONSTRUCTOR,$d=Qd.REJECTION_EVENT,Zd=Gd.getterFor(Jd),eg=Gd.set,tg=Hd&&Hd.prototype,rg=Hd,ng=tg,ig=Cd.TypeError,og=Cd.document,ag=Cd.process,sg=Xd.f,lg=sg,cg=!!(og&&og.createEvent&&Cd.dispatchEvent),ug="unhandledrejection",fg=function(e){var t;return!(!Nd(e)||!Fd(t=e.then))&&t},hg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&yg(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(ig("Promise-chain cycle")):(n=fg(r))?Ad(n,r,l,c):l(r)):c(o)}catch(qO){u&&!i&&u.exit(),c(qO)}},pg=function(e,t){e.notified||(e.notified=!0,Bd((function(){for(var r,n=e.reactions;r=n.get();)hg(r,e);e.notified=!1,t&&!e.rejection&&gg(e)})))},dg=function(e,t,r){var n,i;cg?((n=og.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Cd.dispatchEvent(n)):n={promise:t,reason:r},!$d&&(i=Cd["on"+e])?i(n):e===ug&&Wd("Unhandled promise rejection",r)},gg=function(e){Ad(Ud,Cd,(function(){var t,r=e.facade,n=e.value;if(vg(e)&&(t=Kd((function(){Rd?ag.emit("unhandledRejection",n,r):dg(ug,r,n)})),e.rejection=Rd||vg(e)?2:1,t.error))throw t.value}))},vg=function(e){return 1!==e.rejection&&!e.parent},yg=function(e){Ad(Ud,Cd,(function(){var t=e.facade;Rd?ag.emit("rejectionHandled",t):dg("rejectionhandled",t,e.value)}))},mg=function(e,t,r){return function(n){e(t,n,r)}},_g=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,pg(e,!0))},wg=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw ig("Promise can't be resolved itself");var n=fg(t);n?Bd((function(){var r={done:!1};try{Ad(n,t,mg(wg,r,e),mg(_g,r,e))}catch(qO){_g(r,qO,e)}})):(e.value=t,e.state=1,pg(e,!1))}catch(qO){_g({done:!1},qO,e)}}};Yd&&(ng=(rg=function(e){Vd(this,ng),Dd(e),Ad(Od,this);var t=Zd(this);try{e(mg(wg,t),mg(_g,t))}catch(qO){_g(t,qO)}}).prototype,(Od=function(e){eg(this,{type:Jd,done:!1,notified:!1,parent:!1,reactions:new qd,rejection:!1,state:0,value:void 0})}).prototype=jd(ng,"then",(function(e,t){var r=Zd(this),n=sg(zd(this,rg));return r.parent=!0,n.ok=!Fd(e)||e,n.fail=Fd(t)&&t,n.domain=Rd?ag.domain:void 0,0==r.state?r.reactions.add(n):Bd((function(){hg(n,r)})),n.promise})),xd=function(){var e=new Od,t=Zd(e);this.promise=e,this.resolve=mg(wg,t),this.reject=mg(_g,t)},Xd.f=sg=function(e){return e===rg||undefined===e?new xd(e):lg(e)}),Id({global:!0,constructor:!0,wrap:!0,forced:Yd},{Promise:rg}),Md(rg,Jd,!1,!0),Ld(Jd);var bg=ht("iterator"),Sg=!1;try{var Pg=0,kg={next:function(){return{done:!!Pg++}},return:function(){Sg=!0}};kg[bg]=function(){return this},Array.from(kg,(function(){throw 2}))}catch(qO){}var Tg=function(e,t){if(!t&&!Sg)return!1;var r=!1;try{var n={};n[bg]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(qO){}return r},Eg=ad,Og=Sd.CONSTRUCTOR||!Tg((function(e){Eg.all(e).then(void 0,(function(){}))})),xg=A,Ig=Ce,Rg=Pd,Cg=od,Ag=vh;xr({target:"Promise",stat:!0,forced:Og},{all:function(e){var t=this,r=Rg.f(t),n=r.resolve,i=r.reject,o=Cg((function(){var r=Ig(t.resolve),o=[],a=0,s=1;Ag(e,(function(e){var l=a++,c=!1;s++,xg(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var jg=xr,Mg=Sd.CONSTRUCTOR;ad&&ad.prototype,jg({target:"Promise",proto:!0,forced:Mg,real:!0},{catch:function(e){return this.then(void 0,e)}});var Lg=A,Dg=Ce,Fg=Pd,Ng=od,Vg=vh;xr({target:"Promise",stat:!0,forced:Og},{race:function(e){var t=this,r=Fg.f(t),n=r.reject,i=Ng((function(){var i=Dg(t.resolve);Vg(e,(function(e){Lg(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var zg=A,Ug=Pd;xr({target:"Promise",stat:!0,forced:Sd.CONSTRUCTOR},{reject:function(e){var t=Ug.f(this);return zg(t.reject,void 0,e),t.promise}});var Bg=rr,Wg=ee,Kg=Pd,qg=function(e,t){if(Bg(e),Wg(t)&&t.constructor===e)return t;var r=Kg.f(e);return(0,r.resolve)(t),r.promise},Gg=xr,Hg=ad,Qg=Sd.CONSTRUCTOR,Xg=qg,Jg=ae("Promise"),Yg=!Qg;Gg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Xg(Yg&&this===Jg?Hg:this,e)}});var $g=A,Zg=Ce,ev=Pd,tv=od,rv=vh;xr({target:"Promise",stat:!0,forced:Og},{allSettled:function(e){var t=this,r=ev.f(t),n=r.resolve,i=r.reject,o=tv((function(){var r=Zg(t.resolve),i=[],o=0,a=1;rv(e,(function(e){var s=o++,l=!1;a++,$g(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var nv=A,iv=Ce,ov=ae,av=Pd,sv=od,lv=vh,cv="No one promise resolved";xr({target:"Promise",stat:!0,forced:Og},{any:function(e){var t=this,r=ov("AggregateError"),n=av.f(t),i=n.resolve,o=n.reject,a=sv((function(){var n=iv(t.resolve),a=[],s=0,l=1,c=!1;lv(e,(function(e){var u=s++,f=!1;l++,nv(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,cv)))}))})),--l||o(new r(a,cv))}));return a.error&&o(a.value),n.promise}});var uv=xr,fv=ad,hv=o,pv=ae,dv=O,gv=tp,vv=qg,yv=fv&&fv.prototype;uv({target:"Promise",proto:!0,real:!0,forced:!!fv&&hv((function(){yv.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=gv(this,pv("Promise")),r=dv(e);return this.then(r?function(r){return vv(t,e()).then((function(){return r}))}:e,r?function(r){return vv(t,e()).then((function(){throw r}))}:e)}});var mv=te.Promise,_v=Pd,wv=od;xr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=_v.f(this),r=wv(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var bv=mv,Sv=r(bv),Pv=xr,kv=Rr,Tv=v([].reverse),Ev=[1,2];Pv({target:"Array",proto:!0,forced:String(Ev)===String(Ev.reverse())},{reverse:function(){return kv(this)&&(this.length=this.length),Tv(this)}});var Ov=Uu("Array").reverse,xv=se,Iv=Ov,Rv=Array.prototype,Cv=r((function(e){var t=e.reverse;return e===Rv||xv(Rv,e)&&t===Rv.reverse?Iv:t})),Av=xr,jv=Rr,Mv=_n,Lv=ee,Dv=$n,Fv=Vr,Nv=Y,Vv=qr,zv=ht,Uv=ks,Bv=Rn("slice"),Wv=zv("species"),Kv=Array,qv=Math.max;Av({target:"Array",proto:!0,forced:!Bv},{slice:function(e,t){var r,n,i,o=Nv(this),a=Fv(o),s=Dv(e,a),l=Dv(void 0===t?a:t,a);if(jv(o)&&(r=o.constructor,(Mv(r)&&(r===Kv||jv(r.prototype))||Lv(r)&&null===(r=r[Wv]))&&(r=void 0),r===Kv||void 0===r))return Uv(o,s,l);for(n=new(void 0===r?Kv:r)(qv(l-s,0)),i=0;s<l;s++,i++)s in o&&Vv(n,i,o[s]);return n.length=i,n}});var Gv=Uu("Array").slice,Hv=se,Qv=Gv,Xv=Array.prototype,Jv=function(e){var t=e.slice;return e===Xv||Hv(Xv,e)&&t===Xv.slice?Qv:t},Yv=r(Jv);function $v(){$v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=xu||function(e,t,r){e[t]=r.value},i="function"==typeof ru?ru:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return xu(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=Cu(o.prototype),s=new k(i||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var g={};l(g,o,(function(){return this}));var v=Lu&&Lu(Lu(T([])));v&&v!==t&&r.call(v,o)&&(g=v);var y=d.prototype=h.prototype=Cu(g);function m(e){var t;Ju(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==wu(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),ff(t=this.tryEntries).call(t,r)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],Ju(e).call(e,S,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return hf?hf(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=Cu(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Sv);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)ff(r).call(r,n);return Cv(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=T,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,Ju(t=this.tryEntries).call(t,P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Yv(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}xr({target:"Array",stat:!0},{isArray:Rr});var Zv=te.Array.isArray,ey=r(Zv);var ty=qf,ry=r(ty);var ny=rr,iy=rh,oy=Jt,ay=A,sy=Xe,ly=function(e,t,r,n){try{return n?t(ny(r)[0],r[1]):t(r)}catch(qO){iy(e,"throw",qO)}},cy=Vf,uy=_n,fy=Vr,hy=qr,py=$f,dy=qf,gy=Array,vy=function(e){var t=sy(e),r=uy(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=oy(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,h=dy(t),p=0;if(!h||this===gy&&cy(h))for(a=fy(t),s=r?new this(a):gy(a);a>p;p++)f=o?i(t[p],p):t[p],hy(s,p,f);else for(u=(c=py(t,h)).next,s=r?new this:[];!(l=ay(u,c)).done;p++)f=o?ly(c,i,[l.value,p],!0):l.value,hy(s,p,f);return s.length=p,s};xr({target:"Array",stat:!0,forced:!Tg((function(e){Array.from(e)}))},{from:vy});var yy=r(te.Array.from);function my(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _y(e,t){var r;if(e){if("string"==typeof e)return my(e,t);var n=Yv(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?yy(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(e,t):void 0}}function wy(e,t){return function(e){if(ey(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==ru&&ry(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(ff(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||_y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var by=Xe,Sy=di;xr({target:"Object",stat:!0,forced:o((function(){Sy(1)}))},{keys:function(e){return Sy(by(e))}});var Py=te.Object.keys,ky=r(Py),Ty=te.Object.getOwnPropertySymbols,Ey=r(Ty),Oy=ea.filter;xr({target:"Array",proto:!0,forced:!Rn("filter")},{filter:function(e){return Oy(this,e,arguments.length>1?arguments[1]:void 0)}});var xy=Uu("Array").filter,Iy=se,Ry=xy,Cy=Array.prototype,Ay=function(e){var t=e.filter;return e===Cy||Iy(Cy,e)&&t===Cy.filter?Ry:t},jy=r(Ay),My={exports:{}},Ly=xr,Dy=o,Fy=Y,Ny=x.f,Vy=I;Ly({target:"Object",stat:!0,forced:!Vy||Dy((function(){Ny(1)})),sham:!Vy},{getOwnPropertyDescriptor:function(e,t){return Ny(Fy(e),t)}});var zy=te.Object,Uy=My.exports=function(e,t){return zy.getOwnPropertyDescriptor(e,t)};zy.getOwnPropertyDescriptor.sham&&(Uy.sham=!0);var By=My.exports,Wy=r(By),Ky=mf,qy=Y,Gy=x,Hy=qr;xr({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(e){for(var t,r,n=qy(e),i=Gy.f,o=Ky(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Hy(a,t,r);return a}});var Qy=te.Object.getOwnPropertyDescriptors,Xy=r(Qy),Jy={exports:{}},Yy=xr,$y=I,Zy=Qn.f;Yy({target:"Object",stat:!0,forced:Object.defineProperties!==Zy,sham:!$y},{defineProperties:Zy});var em=te.Object,tm=Jy.exports=function(e,t){return em.defineProperties(e,t)};em.defineProperties.sham&&(tm.sham=!0);var rm=Jy.exports,nm=r(rm),im=r(ao.f("toPrimitive"));function om(e){var t=function(e,t){if("object"!==wu(e)||null===e)return e;var r=e[im];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==wu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===wu(t)?t:String(t)}function am(e,t,r){return(t=om(t))in e?xu(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sm(e,t){var r=ky(e);if(Ey){var n=Ey(e);t&&(n=jy(n).call(n,(function(t){return Wy(e,t).enumerable}))),ff(r).apply(r,n)}return r}function lm(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?Ju(r=sm(Object(i),!0)).call(r,(function(t){am(e,t,i[t])})):Xy?nm(e,Xy(i)):Ju(n=sm(Object(i))).call(n,(function(t){xu(e,t,Wy(i,t))}))}return e}function cm(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(qO){return void r(qO)}s.done?t(l):Sv.resolve(l).then(n,i)}function um(e){return function(){var t=this,r=arguments;return new Sv((function(n,i){var o=e.apply(t,r);function a(e){cm(o,n,i,a,s,"next",e)}function s(e){cm(o,n,i,a,s,"throw",e)}a(void 0)}))}}function fm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hm(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),xu(e,om(n.key),n)}}function pm(e,t,r){return t&&hm(e.prototype,t),r&&hm(e,r),xu(e,"prototype",{writable:!1}),e}var dm=v,gm=Ce,vm=ee,ym=$e,mm=ks,_m=a,wm=Function,bm=dm([].concat),Sm=dm([].join),Pm={},km=_m?wm.bind:function(e){var t=gm(this),r=t.prototype,n=mm(arguments,1),i=function(){var r=bm(n,mm(arguments));return this instanceof i?function(e,t,r){if(!ym(Pm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Pm[t]=wm("C,a","return new C("+Sm(n,",")+")")}return Pm[t](e,r)}(t,r.length,r):t.apply(e,r)};return vm(r)&&(i.prototype=r),i},Tm=km;xr({target:"Function",proto:!0,forced:Function.bind!==Tm},{bind:Tm});var Em=Uu("Function").bind,Om=se,xm=Em,Im=Function.prototype,Rm=function(e){var t=e.bind;return e===Im||Om(Im,e)&&t===Im.bind?xm:t},Cm=r(Rm);function Am(e,t){var r;return(Am=hf?Cm(r=hf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function jm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Cu(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),xu(e,"prototype",{writable:!1}),t&&Am(e,t)}var Mm=xr,Lm=f,Dm=km,Fm=Jh,Nm=rr,Vm=ee,zm=Vi,Um=o,Bm=ae("Reflect","construct"),Wm=Object.prototype,Km=[].push,qm=Um((function(){function e(){}return!(Bm((function(){}),[],e)instanceof e)})),Gm=!Um((function(){Bm((function(){}))})),Hm=qm||Gm;Mm({target:"Reflect",stat:!0,forced:Hm,sham:Hm},{construct:function(e,t){Fm(e),Nm(t);var r=arguments.length<3?e:Fm(arguments[2]);if(Gm&&!qm)return Bm(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 Lm(Km,n,t),new(Lm(Dm,e,n))}var i=r.prototype,o=zm(Vm(i)?i:Wm),a=Lm(e,o,t);return Vm(a)?a:o}});var Qm=r(te.Reflect.construct);function Xm(e){var t;return(Xm=hf?Cm(t=Lu).call(t):function(e){return e.__proto__||Lu(e)})(e)}function Jm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ym(e){var t=function(){if("undefined"==typeof Reflect||!Qm)return!1;if(Qm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Qm(Boolean,[],(function(){}))),!0}catch(vE){return!1}}();return function(){var r,n=Xm(e);if(t){var i=Xm(this).constructor;r=Qm(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===wu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jm(e)}(this,r)}}function $m(e){return function(e){if(ey(e))return my(e)}(e)||function(e){if(void 0!==ru&&null!=ry(e)||null!=e["@@iterator"])return yy(e)}(e)||_y(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 Zm=Uu("Array").concat,e_=se,t_=Zm,r_=Array.prototype,n_=r((function(e){var t=e.concat;return e===r_||e_(r_,e)&&t===r_.concat?t_:t})),i_=r(bv),o_=I,a_=v,s_=A,l_=o,c_=di,u_=to,f_=j,h_=Xe,p_=K,d_=Object.assign,g_=Object.defineProperty,v_=a_([].concat),y_=!d_||l_((function(){if(o_&&1!==d_({b:1},d_(g_({},"a",{enumerable:!0,get:function(){g_(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!=d_({},e)[r]||c_(d_({},t)).join("")!=n}))?function(e,t){for(var r=h_(e),n=arguments.length,i=1,o=u_.f,a=f_.f;n>i;)for(var s,l=p_(arguments[i++]),c=o?v_(c_(l),o(l)):c_(l),u=c.length,f=0;u>f;)s=c[f++],o_&&!s_(a,l,s)||(r[s]=l[s]);return r}:d_,m_=y_;xr({target:"Object",stat:!0,arity:2,forced:Object.assign!==m_},{assign:m_});var __=r(te.Object.assign),w_=window.VePlayer.error,b_=w_.VeError,S_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(S_||{});w_.Level;var P_=lm(lm({},S_),w_.ErrorCode),k_=lm(lm({},w_.ERROR_INFO),{},am({},210,{messageTextKey:"INVALID_PARAMETER",level:w_.Level.Fatal}));function T_(e,t){return new b_(k_[e],t)}var E_=xr,O_=ni.indexOf,x_=Fu,I_=P([].indexOf),R_=!!I_&&1/I_([1],1,-0)<0;E_({target:"Array",proto:!0,forced:R_||!x_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return R_?I_(this,e,t)||0:O_(this,e,t)}});var C_=Uu("Array").indexOf,A_=se,j_=C_,M_=Array.prototype,L_=function(e){var t=e.indexOf;return e===M_||A_(M_,e)&&t===M_.indexOf?j_:t},D_=r(L_);function F_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=ky(e);for(n=0;n<o.length;n++)r=o[n],D_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(Ey){var o=Ey(e);for(n=0;n<o.length;n++)r=o[n],D_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var N_=window.VePlayer.DynamicModule,V_=window.VePlayer.load;function z_(){return U_.apply(this,arguments)}function U_(){return(U_=um($v().mark((function e(){var t,r;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,V_(N_.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 B_(){return W_.apply(this,arguments)}function W_(){return W_=um($v().mark((function e(){var t,r,n,i=arguments;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:PO.H264,e.next=3,V_(N_.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==PO.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)}))),W_.apply(this,arguments)}var K_=["fallbackUrl","enableFallback","enableRTMAutoTranscode"],q_=window.VePlayer.strategy,G_=window.VePlayer.util,H_=window.VePlayer.DynamicModule,Q_=window.VePlayer.load,X_=window.VePlayer.Codec,J_=window.VePlayer.Sniffer,Y_={options:{},module:H_.PluginRtm},$_=function(e){return"pc"===J_.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},Z_=function(){var e=um($v().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p,d,g,v,y,m,_,w,b,S,P;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,f=s.enableRTMAutoTranscode,h=F_(s,K_),p=u?!l&&a?$_(a):l:"","flv"===(d=p&&G_.getStreamType(p))&&G_.isMseSupported(X_.H264)?o=q_.createFlvMseStrategy(t):"hls"===d&&("mobile"!==J_.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&G_.isMseSupported(X_.H264)&&(o=q_.createHlsMseStrategy(t)),e.next=7,i_.all([Q_(Y_.module).then((function(e){return e.RtmPlugin})).catch((function(){})),o&&Q_(o.module).then((function(e){var t,r;return(null===(t=o)||void 0===t?void 0:t.module)===H_.PluginFlv?e.FlvPlugin:(null===(r=o)||void 0===r?void 0:r.module)===H_.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 7:return g=e.sent,v=wy(g,2),y=v[0],m=v[1],e.next=13,i_.all([z_(),B_()]);case 13:if(_=e.sent,w=wy(_,2),b=w[0],S=w[1],b&&S){e.next=20;break}return r&&r.emit("degrade",{url:p,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:b,isRTMSupportCodec:S}),e.abrupt("return",{options:lm(lm({},(null===(P=o)||void 0===P?void 0:P.options)||{}),{},{url:p,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:b,_isRTMSupportCodec:S}}),plugins:m?[m]:[]});case 20:return e.abrupt("return",{options:lm(lm({},(null===(i=o)||void 0===i?void 0:i.options)||{}),{},{url:f?G_.appendSearchParams(a,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:lm(lm({retryCount:0},h),{},{backupURL:p,backupConstruct:m})}),plugins:y?[y]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),ew=window.VePlayer.Sniffer,tw=function(e){return e.Fairplay="fairplay",e}(tw||{});function rw(e){if(null!=e&&e.fairplay&&("safari"===ew.browser||ew.os.isIos))return"fairplay"}function nw(e){var t=e.drm,r=e.streamType,n=rw(t);return!n||("fairplay"!==n||"hls"!==r)}var iw=window.VePlayer.util,ow=window.VePlayer.strategy,aw=function(){var e=um($v().mark((function e(t,r){var n;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?iw.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,Z_(t,r);case 6:case 10:case 16:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,ow.getFlvStrategy(t);case 11:if("hls"!==n){e.next=17;break}if(nw({drm:t.drm,streamType:n})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,ow.getHlsStrategy(t);case 17:return e.abrupt("return",{options:{},plugins:[]});case 18:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),sw=r(Rm),lw="\t\n\v\f\r                 \u2028\u2029\ufeff",cw=Q,uw=Hn,fw=lw,hw=v("".replace),pw=RegExp("^["+fw+"]+"),dw=RegExp("(^|[^"+fw+"])["+fw+"]+$"),gw=function(e){return function(t){var r=uw(cw(t));return 1&e&&(r=hw(r,pw,"")),2&e&&(r=hw(r,dw,"$1")),r}},vw={start:gw(1),end:gw(2),trim:gw(3)},yw=i,mw=o,_w=v,ww=Hn,bw=vw.trim,Sw=lw,Pw=yw.parseInt,kw=yw.Symbol,Tw=kw&&kw.iterator,Ew=/^[+-]?0x/i,Ow=_w(Ew.exec),xw=8!==Pw(Sw+"08")||22!==Pw(Sw+"0x16")||Tw&&!mw((function(){Pw(Object(Tw))}))?function(e,t){var r=bw(ww(e));return Pw(r,t>>>0||(Ow(Ew,r)?16:10))}:Pw;xr({global:!0,forced:parseInt!=xw},{parseInt:xw});var Iw,Rw=r(te.parseInt),Cw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Aw=i,jw=f,Mw=O,Lw=Cw,Dw=le,Fw=ks,Nw=np,Vw=Aw.Function,zw=/MSIE .\./.test(Dw)||Lw&&((Iw=Aw.Bun.version.split(".")).length<3||0==Iw[0]&&(Iw[1]<3||3==Iw[1]&&0==Iw[2])),Uw=function(e,t){var r=t?2:1;return zw?function(n,i){var o=Nw(arguments.length,1)>r,a=Mw(n)?n:Vw(n),s=o?Fw(arguments,r):[],l=o?function(){jw(a,this,s)}:a;return t?e(l,i):e(l)}:e},Bw=xr,Ww=i,Kw=Uw(Ww.setInterval,!0);Bw({global:!0,bind:!0,forced:Ww.setInterval!==Kw},{setInterval:Kw});var qw=xr,Gw=i,Hw=Uw(Gw.setTimeout,!0);qw({global:!0,bind:!0,forced:Gw.setTimeout!==Hw},{setTimeout:Hw});var Qw=r(te.setTimeout),Xw=r(Jv),Jw=NaN,Yw="[object Symbol]",$w=/^\s+|\s+$/g,Zw=/^[-+]0x[0-9a-f]+$/i,eb=/^0b[01]+$/i,tb=/^0o[0-7]+$/i,rb=Rw,nb="object"==wu(t)&&t&&t.Object===Object&&t,ib="object"==("undefined"==typeof self?"undefined":wu(self))&&self&&self.Object===Object&&self,ob=nb||ib||Function("return this")(),ab=Object.prototype.toString,sb=Math.max,lb=Math.min,cb=function(){return ob.Date.now()};function ub(e){var t=wu(e);return!!e&&("object"==t||"function"==t)}function fb(e){return"symbol"==wu(e)||function(e){return!!e&&"object"==wu(e)}(e)&&ab.call(e)==Yw}function hb(e){if("number"==typeof e)return e;if(fb(e))return Jw;if(ub(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ub(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($w,"");var r=eb.test(e);return r||tb.test(e)?rb(Xw(e).call(e,2),r?2:8):Zw.test(e)?Jw:+e}var pb=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function g(){var e=cb();if(d(e))return v(e);s=Qw(g,function(e){var r=t-(e-l);return f?lb(r,o-(e-c)):r}(e))}function v(e){return s=void 0,h&&n?p(e):(n=i=void 0,a)}function y(){var e=cb(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=Qw(g,t),u?p(e):a}(l);if(f)return s=Qw(g,t),p(l)}return void 0===s&&(s=Qw(g,t)),a}return t=hb(t)||0,ub(r)&&(u=!!r.leading,o=(f="maxWait"in r)?sb(hb(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(cb())},y},db=r(pb),gb=lm(lm({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function vb(){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 yb=window.VePlayer.Plugin,mb=window.VePlayer.Sniffer,_b=window.VePlayer.XGEvents,wb=yb.POSITIONS,bb=function(e){jm(r,e);var t=Ym(r);function r(){return fm(this,r),t.apply(this,arguments)}return pm(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:vb,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(gb.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(_b.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=db(sw(e=this._handleRefresh).call(e,this),200);var t="mobile"===mb.device?"touchend":"click";sw(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:wb.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(yb),Sb=r(Ou),Pb=r(Py),kb=r(Ty),Tb=r(Ay),Eb=r(By),Ob=r(Xu),xb=r(Qy),Ib=r(rm),Rb=r(L_),Cb=xr,Ab=Date,jb=v(Ab.prototype.getTime);Cb({target:"Date",stat:!0},{now:function(){return jb(new Ab)}});var Mb=r(te.Date.now),Lb=o,Db=ht("iterator"),Fb=!Lb((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[Db]||"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})),Nb=no,Vb=Xi,zb=Math.floor,Ub=function(e,t){var r=e.length,n=zb(r/2);return r<8?Bb(e,t):Wb(e,Ub(Vb(e,0,n),t),Ub(Vb(e,n),t),t)},Bb=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},Wb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},Kb=xr,qb=i,Gb=A,Hb=v,Qb=I,Xb=Fb,Jb=no,Yb=oo,$b=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Nb(e,n,t[n],r);return e},Zb=Ro,eS=Bl,tS=Go,rS=Gh,nS=O,iS=$e,oS=Jt,aS=en,sS=rr,lS=ee,cS=Hn,uS=Vi,fS=V,hS=$f,pS=qf,dS=np,gS=Ub,vS=ht("iterator"),yS="URLSearchParams",mS=yS+"Iterator",_S=tS.set,wS=tS.getterFor(yS),bS=tS.getterFor(mS),SS=Object.getOwnPropertyDescriptor,PS=function(e){if(!Qb)return qb[e];var t=SS(qb,e);return t&&t.value},kS=PS("fetch"),TS=PS("Request"),ES=PS("Headers"),OS=TS&&TS.prototype,xS=ES&&ES.prototype,IS=qb.RegExp,RS=qb.TypeError,CS=qb.decodeURIComponent,AS=qb.encodeURIComponent,jS=Hb("".charAt),MS=Hb([].join),LS=Hb([].push),DS=Hb("".replace),FS=Hb([].shift),NS=Hb([].splice),VS=Hb("".split),zS=Hb("".slice),US=/\+/g,BS=Array(4),WS=function(e){return BS[e-1]||(BS[e-1]=IS("((?:%[\\da-f]{2}){"+e+"})","gi"))},KS=function(e){try{return CS(e)}catch(qO){return e}},qS=function(e){var t=DS(e,US," "),r=4;try{return CS(t)}catch(qO){for(;r;)t=DS(t,WS(r--),KS);return t}},GS=/[!'()~]|%20/g,HS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},QS=function(e){return HS[e]},XS=function(e){return DS(AS(e),GS,QS)},JS=eS((function(e,t){_S(this,{type:mS,iterator:hS(wS(e).entries),kind:t})}),"Iterator",(function(){var e=bS(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),YS=function(e){this.entries=[],this.url=null,void 0!==e&&(lS(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===jS(e,0)?zS(e,1):e:cS(e)))};YS.prototype={type:yS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=pS(e);if(l)for(r=(t=hS(e,l)).next;!(n=Gb(r,t)).done;){if(o=(i=hS(sS(n.value))).next,(a=Gb(o,i)).done||(s=Gb(o,i)).done||!Gb(o,i).done)throw RS("Expected sequence with length 2");LS(this.entries,{key:cS(a.value),value:cS(s.value)})}else for(var c in e)iS(e,c)&&LS(this.entries,{key:c,value:cS(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=VS(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=VS(t,"="),LS(this.entries,{key:qS(FS(r)),value:qS(MS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],LS(r,XS(e.key)+"="+XS(e.value));return MS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var $S=function(){rS(this,ZS);var e=_S(this,new YS(arguments.length>0?arguments[0]:void 0));Qb||(this.length=e.entries.length)},ZS=$S.prototype;if($b(ZS,{append:function(e,t){dS(arguments.length,2);var r=wS(this);LS(r.entries,{key:cS(e),value:cS(t)}),Qb||this.length++,r.updateURL()},delete:function(e){dS(arguments.length,1);for(var t=wS(this),r=t.entries,n=cS(e),i=0;i<r.length;)r[i].key===n?NS(r,i,1):i++;Qb||(this.length=r.length),t.updateURL()},get:function(e){dS(arguments.length,1);for(var t=wS(this).entries,r=cS(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){dS(arguments.length,1);for(var t=wS(this).entries,r=cS(e),n=[],i=0;i<t.length;i++)t[i].key===r&&LS(n,t[i].value);return n},has:function(e){dS(arguments.length,1);for(var t=wS(this).entries,r=cS(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){dS(arguments.length,1);for(var r,n=wS(this),i=n.entries,o=!1,a=cS(e),s=cS(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?NS(i,l--,1):(o=!0,r.value=s));o||LS(i,{key:a,value:s}),Qb||(this.length=i.length),n.updateURL()},sort:function(){var e=wS(this);gS(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=wS(this).entries,n=oS(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new JS(this,"keys")},values:function(){return new JS(this,"values")},entries:function(){return new JS(this,"entries")}},{enumerable:!0}),Jb(ZS,vS,ZS.entries,{name:"entries"}),Jb(ZS,"toString",(function(){return wS(this).serialize()}),{enumerable:!0}),Qb&&Yb(ZS,"size",{get:function(){return wS(this).entries.length},configurable:!0,enumerable:!0}),Zb($S,yS),Kb({global:!0,constructor:!0,forced:!Xb},{URLSearchParams:$S}),!Xb&&nS(ES)){var eP=Hb(xS.has),tP=Hb(xS.set),rP=function(e){if(lS(e)){var t,r=e.body;if(aS(r)===yS)return t=e.headers?new ES(e.headers):new ES,eP(t,"content-type")||tP(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),uS(e,{body:fS(0,cS(r)),headers:fS(0,t)})}return e};if(nS(kS)&&Kb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return kS(e,arguments.length>1?rP(arguments[1]):{})}}),nS(TS)){var nP=function(e){return rS(this,OS),new TS(e,arguments.length>1?rP(arguments[1]):{})};OS.constructor=nP,nP.prototype=OS,Kb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:nP})}}var iP=r(te.URLSearchParams),oP=ee,aP=w,sP=ht("match"),lP=function(e){var t;return oP(e)&&(void 0!==(t=e[sP])?!!t:"RegExp"==aP(e))},cP=TypeError,uP=function(e){if(lP(e))throw cP("The method doesn't accept regular expressions");return e},fP=ht("match"),hP=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[fP]=!1,"/./"[e](t)}catch(qO){}}return!1},pP=xr,dP=P,gP=Fr,vP=Hn,yP=uP,mP=Q,_P=hP,wP=dP("".startsWith),bP=dP("".slice),SP=Math.min;pP({target:"String",proto:!0,forced:!_P("startsWith")},{startsWith:function(e){var t=vP(mP(this));yP(e);var r=gP(SP(arguments.length>1?arguments[1]:void 0,t.length)),n=vP(e);return wP?wP(t,n,r):bP(t,r,r+n.length)===n}});var PP=Uu("String").startsWith,kP=se,TP=PP,EP=String.prototype,OP=r((function(e){var t=e.startsWith;return"string"==typeof e||e===EP||kP(EP,e)&&t===EP.startsWith?TP:t})),xP=xw;xr({target:"Number",stat:!0,forced:Number.parseInt!=xP},{parseInt:xP});var IP=r(te.Number.parseInt),RP=ni.includes;xr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return RP(this,e,arguments.length>1?arguments[1]:void 0)}});var CP=Uu("Array").includes,AP=xr,jP=uP,MP=Q,LP=Hn,DP=hP,FP=v("".indexOf);AP({target:"String",proto:!0,forced:!DP("includes")},{includes:function(e){return!!~FP(LP(MP(this)),LP(jP(e)),arguments.length>1?arguments[1]:void 0)}});var NP=Uu("String").includes,VP=se,zP=CP,UP=NP,BP=Array.prototype,WP=String.prototype,KP=r((function(e){var t=e.includes;return e===BP||VP(BP,e)&&t===BP.includes?zP:"string"==typeof e||e===WP||VP(WP,e)&&t===WP.includes?UP:t})),qP=te,GP=f;qP.JSON||(qP.JSON={stringify:JSON.stringify});var HP=function(e,t,r){return GP(qP.JSON.stringify,null,arguments)},QP=r(HP),XP=f,JP=Y,YP=Mr,$P=Vr,ZP=Fu,ek=Math.min,tk=[].lastIndexOf,rk=!!tk&&1/[1].lastIndexOf(1,-0)<0,nk=ZP("lastIndexOf"),ik=rk||!nk?function(e){if(rk)return XP(tk,this,arguments)||0;var t=JP(this),r=$P(t),n=r-1;for(arguments.length>1&&(n=ek(n,YP(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:tk;xr({target:"Array",proto:!0,forced:ik!==[].lastIndexOf},{lastIndexOf:ik});var ok=Uu("Array").lastIndexOf,ak=se,sk=ok,lk=Array.prototype,ck=r((function(e){var t=e.lastIndexOf;return e===lk||ak(lk,e)&&t===lk.lastIndexOf?sk:t})),uk=i,fk=o,hk=Hn,pk=vw.trim,dk=lw,gk=v("".charAt),vk=uk.parseFloat,yk=uk.Symbol,mk=yk&&yk.iterator,_k=1/vk(dk+"-0")!=-1/0||mk&&!fk((function(){vk(Object(mk))}))?function(e){var t=pk(hk(e)),r=vk(t);return 0===r&&"-"==gk(t,0)?-0:r}:vk,wk=_k;xr({target:"Number",stat:!0,forced:Number.parseFloat!=wk},{parseFloat:wk});var bk=r(te.Number.parseFloat),Sk=r(te.setInterval);function Pk(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),Sb(e,n.key,n)}}function kk(e,t,r){return t&&Pk(e.prototype,t),r&&Pk(e,r),e}function Tk(e,t,r){return t in e?Sb(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ek(e,t){var r=Pb(e);if(kb){var n=kb(e);t&&(n=Tb(n).call(n,(function(t){return Eb(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ok(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)Ob(r=Ek(Object(n),!0)).call(r,(function(t){Tk(e,t,n[t])}));else if(xb)Ib(e,xb(n));else{var i;Ob(i=Ek(Object(n))).call(i,(function(t){Sb(e,t,Eb(n,t))}))}}return e}var xk="xgplayer_device_id",Ik="xgplayer_user_id",Rk=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(Rb(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},Ck=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},Ak=function(){var e=Rk(xk);if(e)return e;var t=Ck(11);return document.cookie=xk+"="+t+";max-age=31536000;path=/",t},jk=function(){var e=Rk(Ik);if(e)return e;var t=Ck(12);return document.cookie=Ik+"="+t+";max-age=31536000;path=/",t};var Mk={get device(){return Mk.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:Rb(e).call(e,"chrome")>-1&&Rb(e).call(e,"safari")>-1,Firefox:Rb(e).call(e,"firefox")>-1,Opera:Rb(e).call(e,"opera")>-1,Safari:Rb(e).call(e,"safari")>-1&&-1==Rb(e).call(e,"chrome"),Edge:Rb(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=Rw(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function Lk(){return Mb()}function Dk(e){var t="unknown";return"string"!=typeof e?t:Rb(e).call(e,".flv")>-1?"flv":Rb(e).call(e,".m3u8")>-1?"m3u8":Rb(e).call(e,".mp4")>-1?"mp4":Rb(e).call(e,".sdp")>-1?"rts":t}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.rtm)return e.plugins.rtm}return null}var Nk={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},Vk=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=sw(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}kk(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&&OP(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new iP(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=Dk(e.cdn_play_url),e.timestamp=Lk();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(qO){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,__(e,Ok({},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,Ok({},e)))},e}(),zk=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||Mk.device:"none":"unknown";var e},Uk=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],Bk=function(){function e(e){var t,r;this.options=e,this.logger=new Wk(e),this.restart=sw(t=this.restart).call(t,this),this.bindUrlChange(),KP(r=Mk.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new Wk(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=__(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),Wk=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=__({},e,function(e){return{device_id:e.device_id||Ak(),user_id:e.user_id||jk(),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?Mb()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new Vk(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}kk(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 Mb()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=Mb()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,h,p,d,g;this.handlePlayerComlete=sw(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=sw(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=sw(r=this.destroyFunc).call(r,this),this.handleUserLeave=sw(n=this.handleUserLeave).call(n,this),this.handlePlayerError=sw(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=sw(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=sw(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=sw(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=sw(l=this.handlePlayerPause).call(l,this),this.handleTTFB=sw(c=this.handleTTFB).call(c,this),this.handleUrlChange=sw(u=this.handleUrlChange).call(u,this),this.handleKeyframe=sw(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=sw(h=this.handleSourceOpen).call(h,this),this.handleBufferAppend=sw(p=this.handleBufferAppend).call(p,this),this.handleCoreEvent=sw(d=this.handleCoreEvent).call(d,this),this.handleDegrade=sw(g=this.handleDegrade).call(g,this)},t.initLog=function(){var e=this,t=this.options,r=t.player,n=void 0!==r.hlsOps;this.commonParams=Ok({os:Mk.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return Ok({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.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:Ck(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+Mb(),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:Mk.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:Mb(),play_current_time:0,cdn_play_url:r.config.url&&OP(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:Dk(r.config.url),codec_support:-1},e.ext)}(t)),this.log=__({},{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:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){Sb(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&Sb(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?Xw(e).call(e,0,25e4):""}return""},enumerable:!0}),Sb(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),Sb(this.log[o],"access",{get:function(){return zk()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=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=Lk(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===Mk.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===Mk.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===Mk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Mk.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;Ob(Uk).call(Uk,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(__(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=Lk(),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(__({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,Xw(Array.prototype).call(e,0))}catch(vE){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(__(this.log.play_url_change,{url:e,timestamp:Lk()}))},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=Lk(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=Lk(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=Lk(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;__(this.log.play_error,Ok({timestamp:Lk(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:QP(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(__(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=Lk()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=Lk(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=Lk(),__(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=Xw(i).call(i,Rb(i).call(i,"{"),ck(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(vE){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=Lk(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){__(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=Lk(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(__({},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(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=IP(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(vE){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=bk(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=bk(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?i_.resolve(i.getStats()).then((function(t){return Ob(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,h=t.framesDropped,p=t.keyFramesDecoded,d=t.totalDecodeTime,g=t.framesDecoded,v=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,w=t.jitterBufferEmittedCount,b=t.jitter,S=t.nackCount,P=t.packetsLost,k=t.pliCount,T=t.totalSamplesReceived,E=t.concealedSamples,O=t.currentRoundTripTime,x=t.decoderImplementation,I=t.mimeType,R=t.freezeCount,C=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=P-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=P,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(T-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=T,o.concealed_samples=E,o.total_samples_received=T):(o.frames_dropped=h,o.iframes_decoded=p,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/g,o.video_frame_height=v,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(g-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=g,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=R-r.cacheRtcStats.freezeCount,o.freeze_duration=C-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=R,r.cacheRtcStats.totalFreezesDuration=C,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/w*1e3,o.video_jitter=1e3*b,o.video_nack_count=S,o.video_packets_lost=P-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=P,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=k,o.decoder_name=x);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=v);break;case"candidate-pair":o.rtt=1e3*O;break;case"codec":KP(I).call(I,"video")?o.video_codec=I:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),__(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):i_.resolve(o)}catch(vE){return i_.reject(vE)}},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<Lk()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,Lk()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=Lk(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),__(t.log.playing,Ok({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),i_.resolve(t.getRtcStats(o,e)).then((function(r){t.logmanager.push(__({},t.log.playing,Ok({play_time:e?0:o},r)),!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(vE){return i_.reject(vE)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return i_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return i_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=Sk((function(){try{var r=function(){if(Math.abs(Mb()-e.log.playing.timestamp-t)<100||Mb()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return i_.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 i_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(vE){return i_.reject(vE)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(vE){return i_.reject(vE)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=Lk(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=Lk(),this.playResultTimer=Qw((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=Lk(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=Lk(),this.log.stall_start.stall_start_time=Lk(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),__(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=Qw((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=Lk();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=Lk();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=Lk(),this.log.playing.stall_count++,__(this.log.stall,Ok({},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(),__(this.log.playing,Ok({timestamp:Lk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;__(this.log.play_error,Ok(Ok({timestamp:Lk()},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=Nk[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=Lk()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=Nk[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"===Mk.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===Mk.device&&window.removeEventListener("pagehide",this.handleUserLeave),Ob(Uk).call(Uk,(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(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(qO){}},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(qO){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=Lk();__(this.log.first_frame,Ok({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=function(e){var t,r=Tb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:IP(n.domainLookupEnd-n.domainLookupStart),redirect:IP(n.redirectEnd-n.redirectStart),ttfb:IP(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(this._url),t=Lk();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;__(r,Ok({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,__(r,Ok({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(__(this.log.playing,Ok({timestamp:Lk(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=Lk(),__(r,Ok({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},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}(),Kk=r(tu),qk=r(ty),Gk=Oe,Hk=TypeError,Qk=xr,Xk=Xe,Jk=$n,Yk=Mr,$k=Vr,Zk=tf,eT=Ur,tT=En,rT=qr,nT=function(e,t){if(!delete e[t])throw Hk("Cannot delete property "+Gk(t)+" of "+Gk(e))},iT=Rn("splice"),oT=Math.max,aT=Math.min;Qk({target:"Array",proto:!0,forced:!iT},{splice:function(e,t){var r,n,i,o,a,s,l=Xk(this),c=$k(l),u=Jk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=aT(oT(Yk(t),0),c-u)),eT(c+r-n),i=tT(l,n),o=0;o<n;o++)(a=u+o)in l&&rT(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:nT(l,s);for(o=c;o>c-n+r;o--)nT(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:nT(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return Zk(l,c-n+r),i}});var sT=Uu("Array").splice,lT=se,cT=sT,uT=Array.prototype,fT=r((function(e){var t=e.splice;return e===uT||lT(uT,e)&&t===uT.splice?cT:t}));xr({global:!0,forced:parseFloat!=_k},{parseFloat:_k});var hT=r(te.parseFloat),pT=vl.PROPER,dT=o,gT=lw,vT=vw.trim;xr({target:"String",proto:!0,forced:function(e){return dT((function(){return!!gT[e]()||"​…᠎"!=="​…᠎"[e]()||pT&&gT[e].name!==e}))}("trim")},{trim:function(){return vT(this)}});var yT=Uu("String").trim,mT=se,_T=yT,wT=String.prototype,bT=r((function(e){var t=e.trim;return"string"==typeof e||e===wT||mT(wT,e)&&t===wT.trim?_T:t})),ST=r(Ru),PT=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),kT={exports:{}},TT=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ET=o,OT=ee,xT=w,IT=TT,RT=Object.isExtensible,CT=ET((function(){RT(1)}))||IT?function(e){return!!OT(e)&&((!IT||"ArrayBuffer"!=xT(e))&&(!RT||RT(e)))}:RT,AT=xr,jT=v,MT=ii,LT=ee,DT=$e,FT=Yt.f,NT=zi,VT=Wi,zT=CT,UT=PT,BT=!1,WT=nt("meta"),KT=0,qT=function(e){FT(e,WT,{value:{objectID:"O"+KT++,weakData:{}}})},GT=kT.exports={enable:function(){GT.enable=function(){},BT=!0;var e=NT.f,t=jT([].splice),r={};r[WT]=1,e(r).length&&(NT.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===WT){t(n,i,1);break}return n},AT({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:VT.f}))},fastKey:function(e,t){if(!LT(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DT(e,WT)){if(!zT(e))return"F";if(!t)return"E";qT(e)}return e[WT].objectID},getWeakData:function(e,t){if(!DT(e,WT)){if(!zT(e))return!0;if(!t)return!1;qT(e)}return e[WT].weakData},onFreeze:function(e){return UT&&BT&&zT(e)&&!DT(e,WT)&&qT(e),e}};MT[WT]=!0;var HT=kT.exports,QT=xr,XT=PT,JT=o,YT=ee,$T=HT.onFreeze,ZT=Object.freeze;QT({target:"Object",stat:!0,forced:JT((function(){ZT(1)})),sham:!XT},{freeze:function(e){return ZT&&YT(e)?ZT($T(e)):e}});var eE=r(te.Object.freeze),tE=ea.map;xr({target:"Array",proto:!0,forced:!Rn("map")},{map:function(e){return tE(this,e,arguments.length>1?arguments[1]:void 0)}});var rE,nE=Uu("Array").map,iE=se,oE=nE,aE=Array.prototype,sE=r((function(e){var t=e.map;return e===aE||iE(aE,e)&&t===aE.map?oE:t})),lE=r(Zv),cE=function(){return cE=__||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},cE.apply(this,arguments)};function uE(e,t){var r="function"==typeof Kk&&qk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function fE(){for(var e=[],t=0;t<arguments.length;t++)e=n_(e).call(e,uE(arguments[t]));return e}var hE,pE,dE,gE,vE,yE=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=Rb(r=this._hooks[e]).call(r,t);-1!==i&&fT(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==Rb(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&&Ob(r=fE(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===Rb(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),mE=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},_E=(hE=+Mb()+Number(Xw(rE=""+Math.random()).call(rE,2,8)),function(){return hE+=1}),wE=function(e){var t=document.createElement("a");return t.href=e,t},bE=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?wE(r).hostname:"";!function(e){var t={};try{var r,n=wE(e).search;Ob(r=(n=Xw(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+hT(this.appVersion),i=this.userAgent;return-1!==Rb(i).call(i,"Edge")||-1!==Rb(i).call(i,"Edg")?(r="Microsoft Edge",-1!==Rb(i).call(i,"Edge")?(e=Rb(i).call(i,"Edge"),n=i.substring(e+5)):(e=Rb(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=Rb(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=Rb(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=Rb(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==Rb(i).call(i,"MQQBrowser")||-1!==Rb(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==Rb(i).call(i,"MQQBrowser")?(e=Rb(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==Rb(i).call(i,"QQBrowser")&&(e=Rb(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==Rb(i).call(i,"Chrome")?-1!==(e=Rb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Rb(i).call(i,"360"))?(r="360browser",n=i.substring(Rb(i).call(i,"Chrome")+7)):-1!==Rb(i).call(i,"baidubrowser")||-1!==Rb(i).call(i,"BIDUBrowser")?(-1!==Rb(i).call(i,"baidubrowser")?(e=Rb(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==Rb(i).call(i,"BIDUBrowser")&&(e=Rb(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=Rb(i).call(i,"xiaomi"))?-1!==Rb(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=Rb(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=Rb(i).call(i,"Chrome"))||-1!==(e=Rb(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==Rb(i).call(i,"Safari")?-1!==(e=Rb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=Rb(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=Rb(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=Rb(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=Rb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Rb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=Rb(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=Rb(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=Rb(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=Rb(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=Rb(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?Xw(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)Ob(r=navigator.userAgent.split(";")).call(r,(function(e){Rb(e).call(e,"Build/")>-1&&(t=Xw(e).call(e,0,Rb(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=Rb(n).call(n,";");t=Xw(n).call(n,0,i)}}catch(o){return bT(t).call(t)}return bT(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),SE=(pE=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(Mb()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return ST({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=Xw(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:eE(n)},converter:{value:eE(r)}})}({read:function(e){return'"'===e[0]&&(e=Xw(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:"/"})}()},pE(dE={exports:{}}),dE.exports),PE=SE,kE=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}(),TE={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:QP(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return PE.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;PE.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(vE){return!1}}()},EE={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:QP(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(vE){return!1}}()},OE=function(){function e(e,t){this._storage=t&&"session"===t?EE:!e&&TE.isSupportLS?TE:new kE}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}(),xE={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},IE=void 0,RE=(new Date).getTimezoneOffset(),CE=Rw(""+-RE/60,10),AE=60*RE,jE=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new bE(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new OE(!1,"session"),this.localStorage=new OE(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:IE,user_type:IE,user_id:IE,user_is_auth:IE,user_is_login:IE,device_id:IE,web_id:IE,user_unique_id_type:IE},header:{app_id:IE,app_name:IE,app_install_id:IE,install_id:IE,app_package:IE,app_channel:IE,app_version:IE,ab_version:IE,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:IE,traffic_type:IE,client_ip:IE,device_brand:IE,os_api:IE,access:IE,language:r.language,region:IE,app_language:IE,app_region:IE,creative_id:IE,ad_id:IE,campaign_id:IE,log_type:IE,rnd:IE,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:IE,city:IE,timezone:CE,tz_offset:AE,tz_name:IE,sim_region:IE,carrier:IE,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:IE,utm_content:IE,utm_source:IE,utm_medium:IE,utm_campaign:IE,custom:{},wechat_unionid:IE,wechat_openid:IE}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=Rw(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(xE[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;Ob(t=Pb(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=cE({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=cE({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?Rb(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(QP(this.envInfo[e])):JSON.parse(QP(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(vE=gE||(gE={})).Init="init",vE.Config="config",vE.Start="start",vE.Ready="ready",vE.TokenComplete="token-complete",vE.TokenStorage="token-storage",vE.TokenFetch="token-fetch",vE.TokenError="token-error",vE.ConfigUuid="config-uuid",vE.TokenChange="token-change",vE.TokenReset="token-reset",vE.SessionReset="session-reset",vE.SessionResetTime="session-reset-time",vE.Event="event",vE.Events="events",vE.EventNow="event-now",vE.CleanEvents="clean-events",vE.BeconEvent="becon-event";var ME=gE;function LE(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(QP(t))}catch(f){}}var DE,FE=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 OE(!0),this.localStorage=new OE(!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(ME.Ready,(function(){r.reportAll(!1)})),this.collect.on(ME.Event,(function(e){r.event(e)})),this.collect.on(ME.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=fE(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=Qw((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=fE(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=Xw(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=QP(n.custom);var o=this.configManager.get("evtParams"),a=sE(e).call(e,(function(e){try{return Pb(o).length&&(e.params=cE({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=QP(e.params),e}catch(vE){return e}})),s=[];if(!Pb(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(QP({events:a,user:i,header:n}));return l.local_time=Math.floor(Mb()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return sE(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&Ob(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,QP(i))||s(n,i):LE(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+QP(l.stack))}var n,i,o,a,s}))},e}(),NE=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},VE=function(){var e;return Xw(e=NE().replace(/-/g,"")).call(e,0,19)},zE=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 OE(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(ME.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=VE();LE(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=Mb(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(ME.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===Rb(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=Mb(),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=Mb(),this.setStorage(this.cacheToken)),this.collect.emit(ME.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}(),UE=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)}))},BE=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new OE(!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(ME.SessionReset,(function(){r.resetSessionId()})),this.collect.on(ME.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Mb()-t>this.expireTime?e={sessionId:UE(),timestamp:Mb()}:e.timestamp=Mb(),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=Mb():t={sessionId:UE(),timestamp:Mb()},this.storage.setItem(this.sessionKey,t),this.sessionExp=Sk((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=Sk((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:UE(),timestamp:Mb()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&Mb()-e.timestamp+30>=this.expireTime&&(e={sessionId:UE(),timestamp:Mb()},this.storage.setItem(this.sessionKey,e))},e}(),WE=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 yE,this.Types=ME,this.adapters.fetch=LE,this.adapters.storage=OE}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&mE(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!==Rb(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 jE(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new FE,this.tokenManager=new zE,this.sessionManager=new BE,i_.all([new i_((function(e){n.once(ME.TokenComplete,(function(){e(!0)}))})),new i_((function(e){n.once(ME.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(ME.Ready),console.info("appid: "+e.app_id+", userInfo:"+QP(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(ME.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&&mE(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=cE({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&Rb(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof kb){var i=0;for(n=kb(e);i<n.length;i++)Rb(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(ME.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(ME.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];lE(e)?Ob(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(ME.Event,n),this.emit(ME.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(lE(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(ME.BeconEvent,r),this.emit(ME.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=Xw(e).call(e,6));var n=t;"object"!=wu(n)&&(n={}),n.event_index=_E();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:Mb(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=cE({},t,e);this.event("predefine_pageview",r)},e}(),KE=new WE("default"),qE=new Uint8Array(16);function GE(){var e;if(!DE&&!(DE="undefined"!=typeof crypto&&crypto.getRandomValues&&sw(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return DE(qE)}for(var HE,QE=[],XE=0;XE<256;++XE){var JE;QE.push(Xw(JE=(XE+256).toString(16)).call(JE,1))}var YE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&sw(HE=crypto.randomUUID).call(HE,crypto)};function $E(e,t,r){if(YE.randomUUID&&!t&&!e)return YE.randomUUID();var n=(e=e||{}).random||(e.rng||GE)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return QE[e[t+0]]+QE[e[t+1]]+QE[e[t+2]]+QE[e[t+3]]+"-"+QE[e[t+4]]+QE[e[t+5]]+"-"+QE[e[t+6]]+QE[e[t+7]]+"-"+QE[e[t+8]]+QE[e[t+9]]+"-"+QE[e[t+10]]+QE[e[t+11]]+QE[e[t+12]]+QE[e[t+13]]+QE[e[t+14]]+QE[e[t+15]]}(n)}var ZE=window.VePlayer.util,eO="veplayer_live_device_id",tO="veplayer_live_user_id",rO=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},nO=function(e){var t=ZE.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:ZE.appendSearchParams(e,{_session_id:iO()}):null!=e?e:""},iO=function(){return $E().replace(/-/g,"")+"."+Mb()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}($E().replace(/-/g,""))},oO=function(e){jm(r,e);var t=Ym(r);function r(){var e,n;fm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return am(Jm(n=t.call.apply(t,n_(e=[this]).call(e,o))),"_userId",void 0),am(Jm(n),"_deviceId",void 0),am(Jm(n),"_liveLogger",void 0),n}return pm(r,[{key:"afterCreate",value:function(){var e,t,r,n;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||((r=localStorage.getItem(tO))||(r=rO(12),localStorage.setItem(tO,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(eO))||(n=rO(11),localStorage.setItem(eO,n),n)),this.open()):console.info("not found appId, please generate an appId"))}},{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==KE?void 0:KE.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){KE.init({app_id:468759,channel:"cn"}),KE.start(),KE.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new Bk({Tea:KE,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.3.0",flv_version:"3.0.12",hls_version:"3.0.12",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function aO(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var sO,lO=window.VePlayer.util,cO=window.VePlayer.Plugin,uO=window.VePlayer.XGUtil,fO=function(e){jm(r,e);var t=Ym(r);function r(){var e,n;fm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return am(Jm(n=t.call.apply(t,n_(e=[this]).call(e,o))),"_pollTimer",void 0),am(Jm(n),"_visible",void 0),am(Jm(n),"_playPlugin",void 0),n}return pm(r,[{key:"_streamType",get:function(){return lO.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(gb.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(gb.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(KP(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(gb.LOADED_DATA,(function(){return e.open()})),this.player.off(gb.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=Qw((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=lm(lm({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:aO(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:aO(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:aO(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:n_(r="".concat(aO(e.height)," * ")).call(r,aO(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:aO(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:aO(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:aO(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:aO(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",Ob(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}Ob(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=uO.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=uO.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=uO.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=uO.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=uO.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(cO),hO=lm(lm({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",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"}),pO=lm(lm({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),dO=["getDrmConfig"],gO=window.VePlayer.DynamicModule,vO=window.VePlayer.load,yO=function(){var e=um($v().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=rw(t.drm),!t.url||n!==tw.Fairplay){e.next=18;break}return e.prev=2,a=null!==(i=null==t||null===(o=t.drm)||void 0===o?void 0:o.fairplay)&&void 0!==i?i:{},s=a.getDrmConfig,l=F_(a,dO),e.next=6,i_.all([vO(gO.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return c=e.sent,u=wy(c,2),f=u[0],h=u[1],p=__({},l,null==t?void 0:t.drm,h),h&&(null==r||r.updateDrmConfig(h)),e.abrupt("return",{options:{drm:p},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)}}(),mO=window.VePlayer.DEFAULT_PLUGINS,_O=window.VePlayer.VePlayerBase,wO=window.VePlayer.VeI18n;wO.extend([{LANG:"zh-cn",TEXT:pO},{LANG:"en",TEXT:hO}]);var bO={autoplay:{muted:!0}},SO=n_(sO=[]).call(sO,$m(mO),[bb,oO,fO]),PO=function(e){return e.H264="h264",e}(PO||{}),kO=function(e){jm(r,e);var t=Ym(r);function r(e){return fm(this,r),t.call(this,e)}return pm(r,[{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:"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)}}]),r}(_O);function TO(e){return EO.apply(this,arguments)}function EO(){return(EO=um($v().mark((function e(t){var r,n,i,o,a,s,l;return $v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw T_(P_.INVALID_PARAMETER,new wO);case 3:return o=new wO({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=lm(lm({},t),{},{plugins:n_(r=[]).call(r,$m(SO),$m(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,_O.create(lm(lm(lm({},bO),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:nO(e)}},preparePlugins:function(e){return um($v().mark((function t(){var r,n,o,s,l,c,u,f,h,p,d;return $v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i_.all([aw(lm(lm({},a),{},{url:e}),i),yO(lm(lm({},a),{},{url:e}),i)]);case 2:return n=t.sent,o=wy(n,2),s=o[0],l=o[1],u=(c=null!=s?s:{}).options,f=c.plugins,p=(h=null!=l?l:{}).options,d=h.plugins,t.abrupt("return",{options:__({},u,p),plugins:n_(r=[]).call(r,$m(null!=f?f:[]),$m(null!=d?d:[]))});case 9:case"end":return t.stop()}}),t)})))()}}),kO);case 7:return(i=e.sent)&&(l=null===(s=i)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&i.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var OO=Object.freeze({__proto__:null,ErrorCode:P_,Events:gb}),xO=window.VePlayer.setModuleSystem,IO=window.VePlayer.Codec,RO=window.VePlayer.DecodeType,CO=window.VePlayer.Degradation,AO=window.VePlayer.POSITIONS,jO=window.VePlayer.register,MO=window.VePlayer.registerPlugin,LO=window.VePlayer.EN,DO=window.VePlayer.ZH_CN,FO=window.VePlayer.Plugin,NO=window.VePlayer.Sniffer,VO=window.VePlayer.DynamicModule,zO=window.VePlayer.util,UO=window.VePlayer.load,BO=window.VePlayer.ListType;xO("umd");var WO=zO.isMseSupported,KO=zO.isSoftDecodeSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(VO.BizLive,{createLivePlayer:TO}):MO(VO.BizLive,{createLivePlayer:TO}),e.Codec=IO,e.DecodeType=RO,e.Degradation=CO,e.DynamicModule=VO,e.EN=LO,e.ListType=BO,e.POSITIONS=AO,e.Plugin=FO,e.RTMCodec=PO,e.Sniffer=NO,e.ZH_CN=DO,e.createLivePlayer=TO,e.isMseSupported=WO,e.isRTMSupportCodec=B_,e.isRTMSupported=z_,e.isSoftDecodeSupported=KO,e.live=OO,e.load=UO,e.register=jO,e.registerPlugin=MO,e.util=zO}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),w=function(e){return _(m(e),8,-1)},b=w,S=g,E=function(e){if("Function"===b(e))return S(e)},T="object"==typeof document&&document.all,P={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},R=P.all,k=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},O={},x=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=a,M=Function.prototype.call,A=I?M.bind(M):function(){return M.apply(M,arguments)},C={},D={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,j=L&&!D.call({1:2},1);C.f=j?function(e){var t=L(this,e);return!!t&&t.enumerable}:D;var N,U,F=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=o,B=w,V=Object,W=g("".split),K=z((function(){return!V("z").propertyIsEnumerable(0)}))?function(e){return"String"==B(e)?W(e,""):V(e)}:V,H=function(e){return null==e},q=H,X=TypeError,G=function(e){if(q(e))throw X("Can't call method on "+e);return e},Y=K,Q=G,J=function(e){return Y(Q(e))},$=k,Z=P.all,ee=P.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:$(e)||e===Z}:function(e){return"object"==typeof e?null!==e:$(e)},te={},re=te,ne=i,ie=k,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),le="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,ue=le,fe=ce.process,pe=ce.Deno,he=fe&&fe.versions||pe&&pe.version,de=he&&he.v8;de&&(U=(N=de.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!U&&ue&&(!(N=ue.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=ue.match(/Chrome\/(\d+)/))&&(U=+N[1]);var ve=U,ge=ve,ye=o,me=i.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),we=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=ae,Se=k,Ee=se,Te=Object,Pe=we?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return Se(t)&&Ee(t.prototype,Te(e))},Re=String,ke=function(e){try{return Re(e)}catch(t){return"Object"}},Oe=k,xe=ke,Ie=TypeError,Me=function(e){if(Oe(e))return e;throw Ie(xe(e)+" is not a function")},Ae=Me,Ce=H,De=function(e,t){var r=e[t];return Ce(r)?void 0:Ae(r)},Le=A,je=k,Ne=ee,Ue=TypeError,Fe={exports:{}},ze=i,Be=Object.defineProperty,Ve=function(e,t){try{Be(ze,e,{value:t,configurable:!0,writable:!0})}catch(r){ze[e]=t}return t},We="__core-js_shared__",Ke=i[We]||Ve(We,{}),He=Ke;(Fe.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=Fe.exports,Xe=G,Ge=Object,Ye=function(e){return Ge(Xe(e))},Qe=Ye,Je=g({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Je(Qe(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=qe,ot=$e,at=nt,st=_e,lt=we,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},ht=A,dt=ee,vt=Pe,gt=De,yt=function(e,t){var r,n;if("string"===t&&je(r=e.toString)&&!Ne(n=Le(r,e)))return n;if(je(r=e.valueOf)&&!Ne(n=Le(r,e)))return n;if("string"!==t&&je(r=e.toString)&&!Ne(n=Le(r,e)))return n;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=pt("toPrimitive"),wt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},bt=Pe,St=function(e){var t=wt(e,"string");return bt(t)?t:t+""},Et=ee,Tt=i.document,Pt=Et(Tt)&&Et(Tt.createElement),Rt=function(e){return Pt?Tt.createElement(e):{}},kt=Rt,Ot=!x&&!o((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),xt=x,It=A,Mt=C,At=F,Ct=J,Dt=St,Lt=$e,jt=Ot,Nt=Object.getOwnPropertyDescriptor;O.f=xt?Nt:function(e,t){if(e=Ct(e),t=Dt(t),jt)try{return Nt(e,t)}catch(r){}if(Lt(e,t))return At(!It(Mt.f,e,t),e[t])};var Ut=o,Ft=k,zt=/#|\.prototype\./,Bt=function(e,t){var r=Wt[Vt(e)];return r==Ht||r!=Kt&&(Ft(t)?Ut(t):!!t)},Vt=Bt.normalize=function(e){return String(e).replace(zt,".").toLowerCase()},Wt=Bt.data={},Kt=Bt.NATIVE="N",Ht=Bt.POLYFILL="P",qt=Bt,Xt=Me,Gt=a,Yt=E(E.bind),Qt=function(e,t){return Xt(e),void 0===t?e:Gt?Yt(e,t):function(){return e.apply(t,arguments)}},Jt={},$t=x&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=x,ir=Ot,or=$t,ar=rr,sr=St,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",pr="configurable",hr="writable";Jt.f=nr?or?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=ur(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:pr in r?r[pr]:n[pr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=sr(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw lr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var dr=Jt,vr=F,gr=x?function(e,t,r){return dr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=i,mr=f,_r=E,wr=k,br=O.f,Sr=qt,Er=te,Tr=Qt,Pr=gr,Rr=$e,kr=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Or=function(e,t){var r,n,i,o,a,s,l,c,u,f=e.target,p=e.global,h=e.stat,d=e.proto,v=p?yr:h?yr[f]:(yr[f]||{}).prototype,g=p?Er:Er[f]||Pr(Er,f,{})[f],y=g.prototype;for(o in t)n=!(r=Sr(p?o:f+(h?".":"#")+o,e.forced))&&v&&Rr(v,o),s=g[o],n&&(l=e.dontCallGetSet?(u=br(v,o))&&u.value:v[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?Tr(a,yr):e.wrap&&n?kr(a):d&&wr(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(c,"sham",!0),Pr(g,o,c),d&&(Rr(Er,i=f+"Prototype")||Pr(Er,i,{}),Pr(Er[i],o,a),e.real&&y&&(r||!y[o])&&Pr(y,o,a)))},xr=w,Ir=Array.isArray||function(e){return"Array"==xr(e)};Or({target:"Array",stat:!0},{isArray:Ir});var Mr=te.Array.isArray,Ar=r(Mr);var Cr=Math.ceil,Dr=Math.floor,Lr=Math.trunc||function(e){var t=+e;return(t>0?Dr:Cr)(t)},jr=function(e){var t=+e;return t!=t||0===t?0:Lr(t)},Nr=jr,Ur=Math.min,Fr=function(e){return e>0?Ur(Nr(e),9007199254740991):0},zr=Fr,Br=function(e){return zr(e.length)},Vr=TypeError,Wr=function(e){if(e>9007199254740991)throw Vr("Maximum allowed index exceeded");return e},Kr=St,Hr=Jt,qr=F,Xr=function(e,t,r){var n=Kr(t);n in e?Hr.f(e,n,qr(0,r)):e[n]=r},Gr={};Gr[pt("toStringTag")]="z";var Yr="[object z]"===String(Gr),Qr=Yr,Jr=k,$r=w,Zr=pt("toStringTag"),en=Object,tn="Arguments"==$r(function(){return arguments}()),rn=Qr?$r:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=en(e),Zr))?r:tn?$r(t):"Object"==(n=$r(t))&&Jr(t.callee)?"Arguments":n},nn=k,on=Ke,an=g(Function.toString);nn(on.inspectSource)||(on.inspectSource=function(e){return an(e)});var sn=on.inspectSource,ln=g,cn=o,un=k,fn=rn,pn=sn,hn=function(){},dn=[],vn=ae("Reflect","construct"),gn=/^\s*(?:class|function)\b/,yn=ln(gn.exec),mn=!gn.exec(hn),_n=function(e){if(!un(e))return!1;try{return vn(hn,dn,e),!0}catch(t){return!1}},wn=function(e){if(!un(e))return!1;switch(fn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!yn(gn,pn(e))}catch(t){return!0}};wn.sham=!0;var bn=!vn||cn((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?wn:_n,Sn=Ir,En=bn,Tn=ee,Pn=pt("species"),Rn=Array,kn=function(e){var t;return Sn(e)&&(t=e.constructor,(En(t)&&(t===Rn||Sn(t.prototype))||Tn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?Rn:t},On=function(e,t){return new(kn(e))(0===t?0:t)},xn=o,In=ve,Mn=pt("species"),An=function(e){return In>=51||!xn((function(){var t=[];return(t.constructor={})[Mn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=Or,Dn=o,Ln=Ir,jn=ee,Nn=Ye,Un=Br,Fn=Wr,zn=Xr,Bn=On,Vn=An,Wn=ve,Kn=pt("isConcatSpreadable"),Hn=Wn>=51||!Dn((function(){var e=[];return e[Kn]=!1,e.concat()[0]!==e})),qn=function(e){if(!jn(e))return!1;var t=e[Kn];return void 0!==t?!!t:Ln(e)};Cn({target:"Array",proto:!0,arity:1,forced:!Hn||!Vn("concat")},{concat:function(e){var t,r,n,i,o,a=Nn(this),s=Bn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(o=-1===t?a:arguments[t]))for(i=Un(o),Fn(l+i),r=0;r<i;r++,l++)r in o&&zn(s,l,o[r]);else Fn(l+1),zn(s,l++,o);return s.length=l,s}});var Xn=rn,Gn=String,Yn=function(e){if("Symbol"===Xn(e))throw TypeError("Cannot convert a Symbol value to a string");return Gn(e)},Qn={},Jn=jr,$n=Math.max,Zn=Math.min,ei=function(e,t){var r=Jn(e);return r<0?$n(r+t,0):Zn(r,t)},ti=J,ri=ei,ni=Br,ii=function(e){return function(t,r,n){var i,o=ti(t),a=ni(o),s=ri(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},oi={includes:ii(!0),indexOf:ii(!1)},ai={},si=$e,li=J,ci=oi.indexOf,ui=ai,fi=g([].push),pi=function(e,t){var r,n=li(e),i=0,o=[];for(r in n)!si(ui,r)&&si(n,r)&&fi(o,r);for(;t.length>i;)si(n,r=t[i++])&&(~ci(o,r)||fi(o,r));return o},hi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=pi,vi=hi,gi=Object.keys||function(e){return di(e,vi)},yi=x,mi=$t,_i=Jt,wi=rr,bi=J,Si=gi;Qn.f=yi&&!mi?Object.defineProperties:function(e,t){wi(e);for(var r,n=bi(t),i=Si(t),o=i.length,a=0;o>a;)_i.f(e,r=i[a++],n[r]);return e};var Ei,Ti=ae("document","documentElement"),Pi=nt,Ri=qe("keys"),ki=function(e){return Ri[e]||(Ri[e]=Pi(e))},Oi=rr,xi=Qn,Ii=hi,Mi=ai,Ai=Ti,Ci=Rt,Di="prototype",Li="script",ji=ki("IE_PROTO"),Ni=function(){},Ui=function(e){return"<"+Li+">"+e+"</"+Li+">"},Fi=function(e){e.write(Ui("")),e.close();var t=e.parentWindow.Object;return e=null,t},zi=function(){try{Ei=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;zi="undefined"!=typeof document?document.domain&&Ei?Fi(Ei):(t=Ci("iframe"),r="java"+Li+":",t.style.display="none",Ai.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ui("document.F=Object")),e.close(),e.F):Fi(Ei);for(var n=Ii.length;n--;)delete zi[Di][Ii[n]];return zi()};Mi[ji]=!0;var Bi=Object.create||function(e,t){var r;return null!==e?(Ni[Di]=Oi(e),r=new Ni,Ni[Di]=null,r[ji]=e):r=zi(),void 0===t?r:xi.f(r,t)},Vi={},Wi=pi,Ki=hi.concat("length","prototype");Vi.f=Object.getOwnPropertyNames||function(e){return Wi(e,Ki)};var Hi={},qi=ei,Xi=Br,Gi=Xr,Yi=Array,Qi=Math.max,Ji=function(e,t,r){for(var n=Xi(e),i=qi(t,n),o=qi(void 0===r?n:r,n),a=Yi(Qi(o-i,0)),s=0;i<o;i++,s++)Gi(a,s,e[i]);return a.length=s,a},$i=w,Zi=J,eo=Vi.f,to=Ji,ro="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Hi.f=function(e){return ro&&"Window"==$i(e)?function(e){try{return eo(e)}catch(t){return to(ro)}}(e):eo(Zi(e))};var no={};no.f=Object.getOwnPropertySymbols;var io=gr,oo=function(e,t,r,n){return n&&n.enumerable?e[t]=r:io(e,t,r),e},ao=Jt,so=function(e,t,r){return ao.f(e,t,r)},lo={},co=pt;lo.f=co;var uo,fo,po,ho=te,vo=$e,go=lo,yo=Jt.f,mo=function(e){var t=ho.Symbol||(ho.Symbol={});vo(t,e)||yo(t,e,{value:go.f(e)})},_o=A,wo=ae,bo=pt,So=oo,Eo=function(){var e=wo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=bo("toPrimitive");t&&!t[n]&&So(t,n,(function(e){return _o(r,this)}),{arity:1})},To=rn,Po=Yr?{}.toString:function(){return"[object "+To(this)+"]"},Ro=Yr,ko=Jt.f,Oo=gr,xo=$e,Io=Po,Mo=pt("toStringTag"),Ao=function(e,t,r,n){if(e){var i=r?e:e.prototype;xo(i,Mo)||ko(i,Mo,{configurable:!0,value:t}),n&&!Ro&&Oo(i,"toString",Io)}},Co=k,Do=i.WeakMap,Lo=Co(Do)&&/native code/.test(String(Do)),jo=i,No=ee,Uo=gr,Fo=$e,zo=Ke,Bo=ki,Vo=ai,Wo="Object already initialized",Ko=jo.TypeError,Ho=jo.WeakMap;if(Lo||zo.state){var qo=zo.state||(zo.state=new Ho);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,uo=function(e,t){if(qo.has(e))throw Ko(Wo);return t.facade=e,qo.set(e,t),t},fo=function(e){return qo.get(e)||{}},po=function(e){return qo.has(e)}}else{var Xo=Bo("state");Vo[Xo]=!0,uo=function(e,t){if(Fo(e,Xo))throw Ko(Wo);return t.facade=e,Uo(e,Xo,t),t},fo=function(e){return Fo(e,Xo)?e[Xo]:{}},po=function(e){return Fo(e,Xo)}}var Go={set:uo,get:fo,has:po,enforce:function(e){return po(e)?fo(e):uo(e,{})},getterFor:function(e){return function(t){var r;if(!No(t)||(r=fo(t)).type!==e)throw Ko("Incompatible receiver, "+e+" required");return r}}},Yo=Qt,Qo=K,Jo=Ye,$o=Br,Zo=On,ea=g([].push),ta=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var p,h,d=Jo(l),v=Qo(d),g=Yo(c,u),y=$o(v),m=0,_=f||Zo,w=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(h=g(p=v[m],m,d),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:ea(w,p)}else switch(e){case 4:return!1;case 7:ea(w,p)}return o?-1:n||i?i:w}},ra={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},na=Or,ia=i,oa=A,aa=g,sa=x,la=_e,ca=o,ua=$e,fa=se,pa=rr,ha=J,da=St,va=Yn,ga=F,ya=Bi,ma=gi,_a=Vi,wa=Hi,ba=no,Sa=O,Ea=Jt,Ta=Qn,Pa=C,Ra=oo,ka=so,Oa=qe,xa=ai,Ia=nt,Ma=pt,Aa=lo,Ca=mo,Da=Eo,La=Ao,ja=Go,Na=ra.forEach,Ua=ki("hidden"),Fa="Symbol",za="prototype",Ba=ja.set,Va=ja.getterFor(Fa),Wa=Object[za],Ka=ia.Symbol,Ha=Ka&&Ka[za],qa=ia.TypeError,Xa=ia.QObject,Ga=Sa.f,Ya=Ea.f,Qa=wa.f,Ja=Pa.f,$a=aa([].push),Za=Oa("symbols"),es=Oa("op-symbols"),ts=Oa("wks"),rs=!Xa||!Xa[za]||!Xa[za].findChild,ns=sa&&ca((function(){return 7!=ya(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ga(Wa,t);n&&delete Wa[t],Ya(e,t,r),n&&e!==Wa&&Ya(Wa,t,n)}:Ya,is=function(e,t){var r=Za[e]=ya(Ha);return Ba(r,{type:Fa,tag:e,description:t}),sa||(r.description=t),r},os=function(e,t,r){e===Wa&&os(es,t,r),pa(e);var n=da(t);return pa(r),ua(Za,n)?(r.enumerable?(ua(e,Ua)&&e[Ua][n]&&(e[Ua][n]=!1),r=ya(r,{enumerable:ga(0,!1)})):(ua(e,Ua)||Ya(e,Ua,ga(1,{})),e[Ua][n]=!0),ns(e,n,r)):Ya(e,n,r)},as=function(e,t){pa(e);var r=ha(t),n=ma(r).concat(us(r));return Na(n,(function(t){sa&&!oa(ss,r,t)||os(e,t,r[t])})),e},ss=function(e){var t=da(e),r=oa(Ja,this,t);return!(this===Wa&&ua(Za,t)&&!ua(es,t))&&(!(r||!ua(this,t)||!ua(Za,t)||ua(this,Ua)&&this[Ua][t])||r)},ls=function(e,t){var r=ha(e),n=da(t);if(r!==Wa||!ua(Za,n)||ua(es,n)){var i=Ga(r,n);return!i||!ua(Za,n)||ua(r,Ua)&&r[Ua][n]||(i.enumerable=!0),i}},cs=function(e){var t=Qa(ha(e)),r=[];return Na(t,(function(e){ua(Za,e)||ua(xa,e)||$a(r,e)})),r},us=function(e){var t=e===Wa,r=Qa(t?es:ha(e)),n=[];return Na(r,(function(e){!ua(Za,e)||t&&!ua(Wa,e)||$a(n,Za[e])})),n};la||(Ka=function(){if(fa(Ha,this))throw qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?va(arguments[0]):void 0,t=Ia(e),r=function(e){this===Wa&&oa(r,es,e),ua(this,Ua)&&ua(this[Ua],t)&&(this[Ua][t]=!1),ns(this,t,ga(1,e))};return sa&&rs&&ns(Wa,t,{configurable:!0,set:r}),is(t,e)},Ra(Ha=Ka[za],"toString",(function(){return Va(this).tag})),Ra(Ka,"withoutSetter",(function(e){return is(Ia(e),e)})),Pa.f=ss,Ea.f=os,Ta.f=as,Sa.f=ls,_a.f=wa.f=cs,ba.f=us,Aa.f=function(e){return is(Ma(e),e)},sa&&ka(Ha,"description",{configurable:!0,get:function(){return Va(this).description}})),na({global:!0,constructor:!0,wrap:!0,forced:!la,sham:!la},{Symbol:Ka}),Na(ma(ts),(function(e){Ca(e)})),na({target:Fa,stat:!0,forced:!la},{useSetter:function(){rs=!0},useSimple:function(){rs=!1}}),na({target:"Object",stat:!0,forced:!la,sham:!sa},{create:function(e,t){return void 0===t?ya(e):as(ya(e),t)},defineProperty:os,defineProperties:as,getOwnPropertyDescriptor:ls}),na({target:"Object",stat:!0,forced:!la},{getOwnPropertyNames:cs}),Da(),La(Ka,Fa),xa[Ua]=!0;var fs=_e&&!!Symbol.for&&!!Symbol.keyFor,ps=Or,hs=ae,ds=$e,vs=Yn,gs=qe,ys=fs,ms=gs("string-to-symbol-registry"),_s=gs("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{for:function(e){var t=vs(e);if(ds(ms,t))return ms[t];var r=hs("Symbol")(t);return ms[t]=r,_s[r]=t,r}});var ws=Or,bs=$e,Ss=Pe,Es=ke,Ts=fs,Ps=qe("symbol-to-string-registry");ws({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(e){if(!Ss(e))throw TypeError(Es(e)+" is not a symbol");if(bs(Ps,e))return Ps[e]}});var Rs=g([].slice),ks=Ir,Os=k,xs=w,Is=Yn,Ms=g([].push),As=Or,Cs=ae,Ds=f,Ls=A,js=g,Ns=o,Us=k,Fs=Pe,zs=Rs,Bs=function(e){if(Os(e))return e;if(ks(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Ms(r,i):"number"!=typeof i&&"Number"!=xs(i)&&"String"!=xs(i)||Ms(r,Is(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(ks(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Vs=_e,Ws=String,Ks=Cs("JSON","stringify"),Hs=js(/./.exec),qs=js("".charAt),Xs=js("".charCodeAt),Gs=js("".replace),Ys=js(1..toString),Qs=/[\uD800-\uDFFF]/g,Js=/^[\uD800-\uDBFF]$/,$s=/^[\uDC00-\uDFFF]$/,Zs=!Vs||Ns((function(){var e=Cs("Symbol")();return"[null]"!=Ks([e])||"{}"!=Ks({a:e})||"{}"!=Ks(Object(e))})),el=Ns((function(){return'"\\udf06\\ud834"'!==Ks("\udf06\ud834")||'"\\udead"'!==Ks("\udead")})),tl=function(e,t){var r=zs(arguments),n=Bs(t);if(Us(n)||void 0!==e&&!Fs(e))return r[1]=function(e,t){if(Us(n)&&(t=Ls(n,this,Ws(e),t)),!Fs(t))return t},Ds(Ks,null,r)},rl=function(e,t,r){var n=qs(r,t-1),i=qs(r,t+1);return Hs(Js,e)&&!Hs($s,i)||Hs($s,e)&&!Hs(Js,n)?"\\u"+Ys(Xs(e,0),16):e};Ks&&As({target:"JSON",stat:!0,arity:3,forced:Zs||el},{stringify:function(e,t,r){var n=zs(arguments),i=Ds(Zs?tl:Ks,null,n);return el&&"string"==typeof i?Gs(i,Qs,rl):i}});var nl=no,il=Ye;Or({target:"Object",stat:!0,forced:!_e||o((function(){nl.f(1)}))},{getOwnPropertySymbols:function(e){var t=nl.f;return t?t(il(e)):[]}}),mo("asyncIterator"),mo("hasInstance"),mo("isConcatSpreadable"),mo("iterator"),mo("match"),mo("matchAll"),mo("replace"),mo("search"),mo("species"),mo("split");var ol=Eo;mo("toPrimitive"),ol();var al=ae,sl=Ao;mo("toStringTag"),sl(al("Symbol"),"Symbol"),mo("unscopables"),Ao(i.JSON,"JSON",!0);var ll,cl,ul,fl=te.Symbol,pl={},hl=x,dl=$e,vl=Function.prototype,gl=hl&&Object.getOwnPropertyDescriptor,yl=dl(vl,"name"),ml={EXISTS:yl,PROPER:yl&&"something"===function(){}.name,CONFIGURABLE:yl&&(!hl||hl&&gl(vl,"name").configurable)},_l=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wl=$e,bl=k,Sl=Ye,El=_l,Tl=ki("IE_PROTO"),Pl=Object,Rl=Pl.prototype,kl=El?Pl.getPrototypeOf:function(e){var t=Sl(e);if(wl(t,Tl))return t[Tl];var r=t.constructor;return bl(r)&&t instanceof r?r.prototype:t instanceof Pl?Rl:null},Ol=o,xl=k,Il=ee,Ml=Bi,Al=kl,Cl=oo,Dl=pt("iterator"),Ll=!1;[].keys&&("next"in(ul=[].keys())?(cl=Al(Al(ul)))!==Object.prototype&&(ll=cl):Ll=!0);var jl=!Il(ll)||Ol((function(){var e={};return ll[Dl].call(e)!==e}));xl((ll=jl?{}:Ml(ll))[Dl])||Cl(ll,Dl,(function(){return this}));var Nl={IteratorPrototype:ll,BUGGY_SAFARI_ITERATORS:Ll},Ul=Nl.IteratorPrototype,Fl=Bi,zl=F,Bl=Ao,Vl=pl,Wl=function(){return this},Kl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Fl(Ul,{next:zl(+!n,r)}),Bl(e,i,!1,!0),Vl[i]=Wl,e},Hl=g,ql=Me,Xl=k,Gl=String,Yl=TypeError,Ql=function(e,t,r){try{return Hl(ql(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Jl=rr,$l=function(e){if("object"==typeof e||Xl(e))return e;throw Yl("Can't set "+Gl(e)+" as a prototype")},Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ql(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Jl(r),$l(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=Or,tc=A,rc=ml,nc=Kl,ic=kl,oc=Ao,ac=oo,sc=pl,lc=Nl,cc=rc.PROPER,uc=lc.BUGGY_SAFARI_ITERATORS,fc=pt("iterator"),pc="keys",hc="values",dc="entries",vc=function(){return this},gc=function(e,t,r,n,i,o,a){nc(r,t,n);var s,l,c,u=function(e){if(e===i&&v)return v;if(!uc&&e in h)return h[e];switch(e){case pc:case hc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,d=h[fc]||h["@@iterator"]||i&&h[i],v=!uc&&d||u(i),g="Array"==t&&h.entries||d;if(g&&(s=ic(g.call(new e)))!==Object.prototype&&s.next&&(oc(s,f,!0,!0),sc[f]=vc),cc&&i==hc&&d&&d.name!==hc&&(p=!0,v=function(){return tc(d,this)}),i)if(l={values:u(hc),keys:o?v:u(pc),entries:u(dc)},a)for(c in l)(uc||p||!(c in h))&&ac(h,c,l[c]);else ec({target:t,proto:!0,forced:uc||p},l);return a&&h[fc]!==v&&ac(h,fc,v,{name:i}),sc[t]=v,l},yc=function(e,t){return{value:e,done:t}},mc=J,_c=pl,wc=Go;Jt.f;var bc=gc,Sc=yc,Ec="Array Iterator",Tc=wc.set,Pc=wc.getterFor(Ec);bc(Array,"Array",(function(e,t){Tc(this,{type:Ec,target:mc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Sc(void 0,!0)):Sc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),_c.Arguments=_c.Array;var Rc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kc=i,Oc=rn,xc=gr,Ic=pl,Mc=pt("toStringTag");for(var Ac in Rc){var Cc=kc[Ac],Dc=Cc&&Cc.prototype;Dc&&Oc(Dc)!==Mc&&xc(Dc,Mc,Ac),Ic[Ac]=Ic.Array}var Lc=fl;mo("dispose");var jc=Lc;mo("asyncDispose");var Nc=Or,Uc=g,Fc=ae("Symbol"),zc=Fc.keyFor,Bc=Uc(Fc.prototype.valueOf);Nc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==zc(Bc(e))}catch(t){return!1}}});for(var Vc=Or,Wc=qe,Kc=ae,Hc=g,qc=Pe,Xc=pt,Gc=Kc("Symbol"),Yc=Gc.isWellKnown,Qc=Kc("Object","getOwnPropertyNames"),Jc=Hc(Gc.prototype.valueOf),$c=Wc("wks"),Zc=0,eu=Qc(Gc),tu=eu.length;Zc<tu;Zc++)try{var ru=eu[Zc];qc(Gc[ru])&&Xc(ru)}catch(FD){}Vc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=Jc(e),r=0,n=Qc($c),i=n.length;r<i;r++)if($c[n[r]]==t)return!0}catch(FD){}return!1}}),mo("matcher"),mo("metadataKey"),mo("observable"),mo("metadata"),mo("patternMatch"),mo("replaceAll");var nu=jc,iu=r(nu),ou=g,au=jr,su=Yn,lu=G,cu=ou("".charAt),uu=ou("".charCodeAt),fu=ou("".slice),pu=function(e){return function(t,r){var n,i,o=su(lu(t)),a=au(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=uu(o,a))<55296||n>56319||a+1===s||(i=uu(o,a+1))<56320||i>57343?e?cu(o,a):n:e?fu(o,a,a+2):i-56320+(n-55296<<10)+65536}},hu={codeAt:pu(!1),charAt:pu(!0)},du=hu.charAt,vu=Yn,gu=Go,yu=gc,mu=yc,_u="String Iterator",wu=gu.set,bu=gu.getterFor(_u);yu(String,"String",(function(e){wu(this,{type:_u,string:vu(e),index:0})}),(function(){var e,t=bu(this),r=t.string,n=t.index;return n>=r.length?mu(void 0,!0):(e=du(r,n),t.index+=e.length,mu(e,!1))}));var Su=rn,Eu=De,Tu=H,Pu=pl,Ru=pt("iterator"),ku=function(e){if(!Tu(e))return Eu(e,Ru)||Eu(e,"@@iterator")||Pu[Su(e)]},Ou=ku,xu=r(Ou),Iu=x,Mu=Ir,Au=TypeError,Cu=Object.getOwnPropertyDescriptor,Du=Iu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(FD){return FD instanceof TypeError}}()?function(e,t){if(Mu(e)&&!Cu(e,"length").writable)throw Au("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Lu=Ye,ju=Br,Nu=Du,Uu=Wr;Or({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(FD){return FD instanceof TypeError}}()},{push:function(e){var t=Lu(this),r=ju(t),n=arguments.length;Uu(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return Nu(t,r),r}});var Fu=te,zu=function(e){return Fu[e+"Prototype"]},Bu=zu("Array").push,Vu=se,Wu=Bu,Ku=Array.prototype,Hu=r((function(e){var t=e.push;return e===Ku||Vu(Ku,e)&&t===Ku.push?Wu:t}));var qu=Or,Xu=Ir,Gu=bn,Yu=ee,Qu=ei,Ju=Br,$u=J,Zu=Xr,ef=pt,tf=Rs,rf=An("slice"),nf=ef("species"),of=Array,af=Math.max;qu({target:"Array",proto:!0,forced:!rf},{slice:function(e,t){var r,n,i,o=$u(this),a=Ju(o),s=Qu(e,a),l=Qu(void 0===t?a:t,a);if(Xu(o)&&(r=o.constructor,(Gu(r)&&(r===of||Xu(r.prototype))||Yu(r)&&null===(r=r[nf]))&&(r=void 0),r===of||void 0===r))return tf(o,s,l);for(n=new(void 0===r?of:r)(af(l-s,0)),i=0;s<l;s++,i++)s in o&&Zu(n,i,o[s]);return n.length=i,n}});var sf=zu("Array").slice,lf=se,cf=sf,uf=Array.prototype,ff=function(e){var t=e.slice;return e===uf||lf(uf,e)&&t===uf.slice?cf:t},pf=r(ff),hf=A,df=rr,vf=De,gf=function(e,t,r){var n,i;df(e);try{if(!(n=vf(e,"return"))){if("throw"===t)throw r;return r}n=hf(n,e)}catch(FD){i=!0,n=FD}if("throw"===t)throw r;if(i)throw n;return df(n),r},yf=rr,mf=gf,_f=pl,wf=pt("iterator"),bf=Array.prototype,Sf=function(e){return void 0!==e&&(_f.Array===e||bf[wf]===e)},Ef=A,Tf=Me,Pf=rr,Rf=ke,kf=ku,Of=TypeError,xf=function(e,t){var r=arguments.length<2?kf(e):t;if(Tf(r))return Pf(Ef(r,e));throw Of(Rf(e)+" is not iterable")},If=Qt,Mf=A,Af=Ye,Cf=function(e,t,r,n){try{return n?t(yf(r)[0],r[1]):t(r)}catch(FD){mf(e,"throw",FD)}},Df=Sf,Lf=bn,jf=Br,Nf=Xr,Uf=xf,Ff=ku,zf=Array,Bf=function(e){var t=Af(e),r=Lf(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=If(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,p=Ff(t),h=0;if(!p||this===zf&&Df(p))for(a=jf(t),s=r?new this(a):zf(a);a>h;h++)f=o?i(t[h],h):t[h],Nf(s,h,f);else for(u=(c=Uf(t,p)).next,s=r?new this:[];!(l=Mf(u,c)).done;h++)f=o?Cf(c,i,[l.value,h],!0):l.value,Nf(s,h,f);return s.length=h,s},Vf=pt("iterator"),Wf=!1;try{var Kf=0,Hf={next:function(){return{done:!!Kf++}},return:function(){Wf=!0}};Hf[Vf]=function(){return this},Array.from(Hf,(function(){throw 2}))}catch(FD){}var qf=function(e,t){if(!t&&!Wf)return!1;var r=!1;try{var n={};n[Vf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(FD){}return r},Xf=Bf;Or({target:"Array",stat:!0,forced:!qf((function(e){Array.from(e)}))},{from:Xf});var Gf=te.Array.from,Yf=r(Gf);function Qf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Jf(e,t){var r;if(e){if("string"==typeof e)return Qf(e,t);var n=pf(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Yf(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qf(e,t):void 0}}function $f(e,t){return function(e){if(Ar(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==iu&&xu(e)||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(Hu(s).call(s,n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Jf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Zf=Ye,ep=gi;Or({target:"Object",stat:!0,forced:o((function(){ep(1)}))},{keys:function(e){return ep(Zf(e))}});var tp=te.Object.keys,rp=r(tp),np=te.Object.getOwnPropertySymbols,ip=r(np),op=ra.filter;Or({target:"Array",proto:!0,forced:!An("filter")},{filter:function(e){return op(this,e,arguments.length>1?arguments[1]:void 0)}});var ap=zu("Array").filter,sp=se,lp=ap,cp=Array.prototype,up=function(e){var t=e.filter;return e===cp||sp(cp,e)&&t===cp.filter?lp:t},fp=r(up),pp={exports:{}},hp=Or,dp=o,vp=J,gp=O.f,yp=x;hp({target:"Object",stat:!0,forced:!yp||dp((function(){gp(1)})),sham:!yp},{getOwnPropertyDescriptor:function(e,t){return gp(vp(e),t)}});var mp=te.Object,_p=pp.exports=function(e,t){return mp.getOwnPropertyDescriptor(e,t)};mp.getOwnPropertyDescriptor.sham&&(_p.sham=!0);var wp=pp.exports,bp=r(wp),Sp=o,Ep=function(e,t){var r=[][e];return!!r&&Sp((function(){r.call(null,t||function(){return 1},1)}))},Tp=ra.forEach,Pp=Ep("forEach")?[].forEach:function(e){return Tp(this,e,arguments.length>1?arguments[1]:void 0)};Or({target:"Array",proto:!0,forced:[].forEach!=Pp},{forEach:Pp});var Rp=zu("Array").forEach,kp=rn,Op=$e,xp=se,Ip=Rp,Mp=Array.prototype,Ap={DOMTokenList:!0,NodeList:!0},Cp=function(e){var t=e.forEach;return e===Mp||xp(Mp,e)&&t===Mp.forEach||Op(Ap,kp(e))?Ip:t},Dp=r(Cp),Lp=ae,jp=Vi,Np=no,Up=rr,Fp=g([].concat),zp=Lp("Reflect","ownKeys")||function(e){var t=jp.f(Up(e)),r=Np.f;return r?Fp(t,r(e)):t},Bp=zp,Vp=J,Wp=O,Kp=Xr;Or({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Vp(e),i=Wp.f,o=Bp(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&Kp(a,t,r);return a}});var Hp=te.Object.getOwnPropertyDescriptors,qp=r(Hp),Xp={exports:{}},Gp=Or,Yp=x,Qp=Qn.f;Gp({target:"Object",stat:!0,forced:Object.defineProperties!==Qp,sham:!Yp},{defineProperties:Qp});var Jp=te.Object,$p=Xp.exports=function(e,t){return Jp.defineProperties(e,t)};Jp.defineProperties.sham&&($p.sham=!0);var Zp=Xp.exports,eh=r(Zp),th={exports:{}},rh=Or,nh=x,ih=Jt.f;rh({target:"Object",stat:!0,forced:Object.defineProperty!==ih,sham:!nh},{defineProperty:ih});var oh=te.Object,ah=th.exports=function(e,t,r){return oh.defineProperty(e,t,r)};oh.defineProperty.sham&&(ah.sham=!0);var sh=th.exports,lh=r(sh),ch=lo.f("iterator"),uh=r(ch);function fh(e){return(fh="function"==typeof iu&&"symbol"==typeof uh?function(e){return typeof e}:function(e){return e&&"function"==typeof iu&&e.constructor===iu&&e!==iu.prototype?"symbol":typeof e})(e)}var ph=lo.f("toPrimitive"),hh=r(ph);function dh(e){var t=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[hh];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fh(t)?t:String(t)}function vh(e,t,r){return(t=dh(t))in e?lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gh(e,t){var r=rp(e);if(ip){var n=ip(e);t&&(n=fp(n).call(n,(function(t){return bp(e,t).enumerable}))),Hu(r).apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?Dp(r=gh(Object(i),!0)).call(r,(function(t){vh(e,t,i[t])})):qp?eh(e,qp(i)):Dp(n=gh(Object(i))).call(n,(function(t){lh(e,t,bp(i,t))}))}return e}Or({target:"Object",stat:!0,sham:!x},{create:Bi});var mh=te.Object,_h=function(e,t){return mh.create(e,t)},wh=r(_h),bh=Ye,Sh=kl,Eh=_l;Or({target:"Object",stat:!0,forced:o((function(){Sh(1)})),sham:!Eh},{getPrototypeOf:function(e){return Sh(bh(e))}});var Th=r(te.Object.getPrototypeOf);Or({target:"Object",stat:!0},{setPrototypeOf:Zl});var Ph=r(te.Object.setPrototypeOf),Rh=$e,kh=zp,Oh=O,xh=Jt,Ih=ee,Mh=gr,Ah=Error,Ch=g("".replace),Dh=String(Ah("zxcasd").stack),Lh=/\n\s*at [^:]*:[^\n]*/,jh=Lh.test(Dh),Nh=F,Uh=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Nh(1,7)),7!==e.stack)})),Fh=gr,zh=function(e,t){if(jh&&"string"==typeof e&&!Ah.prepareStackTrace)for(;t--;)e=Ch(e,Lh,"");return e},Bh=Uh,Vh=Error.captureStackTrace,Wh=Qt,Kh=A,Hh=rr,qh=ke,Xh=Sf,Gh=Br,Yh=se,Qh=xf,Jh=ku,$h=gf,Zh=TypeError,ed=function(e,t){this.stopped=e,this.result=t},td=ed.prototype,rd=function(e,t,r){var n,i,o,a,s,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Wh(t,u),g=function(e){return n&&$h(n,"normal",e),new ed(!0,e)},y=function(e){return f?(Hh(e),d?v(e[0],e[1],g):v(e[0],e[1])):d?v(e,g):v(e)};if(p)n=e.iterator;else if(h)n=e;else{if(!(i=Jh(e)))throw Zh(qh(e)+" is not iterable");if(Xh(i)){for(o=0,a=Gh(e);a>o;o++)if((s=y(e[o]))&&Yh(td,s))return s;return new ed(!1)}n=Qh(e,i)}for(l=p?e.next:n.next;!(c=Kh(l,n)).done;){try{s=y(c.value)}catch(FD){$h(n,"throw",FD)}if("object"==typeof s&&s&&Yh(td,s))return s}return new ed(!1)},nd=Yn,id=Or,od=se,ad=kl,sd=Zl,ld=function(e,t,r){for(var n=kh(t),i=xh.f,o=Oh.f,a=0;a<n.length;a++){var s=n[a];Rh(e,s)||r&&Rh(r,s)||i(e,s,o(t,s))}},cd=Bi,ud=gr,fd=F,pd=function(e,t){Ih(t)&&"cause"in t&&Mh(e,"cause",t.cause)},hd=function(e,t,r,n){Bh&&(Vh?Vh(e,t):Fh(e,"stack",zh(r,n)))},dd=rd,vd=function(e,t){return void 0===e?arguments.length<2?"":t:nd(e)},gd=pt("toStringTag"),yd=Error,md=[].push,_d=function(e,t){var r,n=od(wd,this);sd?r=sd(yd(),n?ad(this):wd):(r=n?this:cd(wd),ud(r,gd,"Error")),void 0!==t&&ud(r,"message",vd(t)),hd(r,_d,r.stack,1),arguments.length>2&&pd(r,arguments[2]);var i=[];return dd(e,md,{that:i}),ud(r,"errors",i),r};sd?sd(_d,yd):ld(_d,yd,{name:!0});var wd=_d.prototype=cd(yd.prototype,{constructor:fd(1,_d),message:fd(1,""),name:fd(1,"AggregateError")});id({global:!0,constructor:!0,arity:2},{AggregateError:_d});var bd,Sd,Ed,Td,Pd="undefined"!=typeof process&&"process"==w(process),Rd=ae,kd=so,Od=x,xd=pt("species"),Id=function(e){var t=Rd(e);Od&&t&&!t[xd]&&kd(t,xd,{configurable:!0,get:function(){return this}})},Md=se,Ad=TypeError,Cd=function(e,t){if(Md(t,e))return e;throw Ad("Incorrect invocation")},Dd=bn,Ld=ke,jd=TypeError,Nd=function(e){if(Dd(e))return e;throw jd(Ld(e)+" is not a constructor")},Ud=rr,Fd=Nd,zd=H,Bd=pt("species"),Vd=function(e,t){var r,n=Ud(e).constructor;return void 0===n||zd(r=Ud(n)[Bd])?t:Fd(r)},Wd=TypeError,Kd=function(e,t){if(e<t)throw Wd("Not enough arguments");return e},Hd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),qd=i,Xd=f,Gd=Qt,Yd=k,Qd=$e,Jd=o,$d=Ti,Zd=Rs,ev=Rt,tv=Kd,rv=Hd,nv=Pd,iv=qd.setImmediate,ov=qd.clearImmediate,av=qd.process,sv=qd.Dispatch,lv=qd.Function,cv=qd.MessageChannel,uv=qd.String,fv=0,pv={},hv="onreadystatechange";Jd((function(){bd=qd.location}));var dv=function(e){if(Qd(pv,e)){var t=pv[e];delete pv[e],t()}},vv=function(e){return function(){dv(e)}},gv=function(e){dv(e.data)},yv=function(e){qd.postMessage(uv(e),bd.protocol+"//"+bd.host)};iv&&ov||(iv=function(e){tv(arguments.length,1);var t=Yd(e)?e:lv(e),r=Zd(arguments,1);return pv[++fv]=function(){Xd(t,void 0,r)},Sd(fv),fv},ov=function(e){delete pv[e]},nv?Sd=function(e){av.nextTick(vv(e))}:sv&&sv.now?Sd=function(e){sv.now(vv(e))}:cv&&!rv?(Td=(Ed=new cv).port2,Ed.port1.onmessage=gv,Sd=Gd(Td.postMessage,Td)):qd.addEventListener&&Yd(qd.postMessage)&&!qd.importScripts&&bd&&"file:"!==bd.protocol&&!Jd(yv)?(Sd=yv,qd.addEventListener("message",gv,!1)):Sd=hv in ev("script")?function(e){$d.appendChild(ev("script"))[hv]=function(){$d.removeChild(this),dv(e)}}:function(e){setTimeout(vv(e),0)});var mv={set:iv,clear:ov},_v=function(){this.head=null,this.tail=null};_v.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var wv,bv,Sv,Ev,Tv,Pv=_v,Rv=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,kv=/web0s(?!.*chrome)/i.test(le),Ov=i,xv=Qt,Iv=O.f,Mv=mv.set,Av=Pv,Cv=Hd,Dv=Rv,Lv=kv,jv=Pd,Nv=Ov.MutationObserver||Ov.WebKitMutationObserver,Uv=Ov.document,Fv=Ov.process,zv=Ov.Promise,Bv=Iv(Ov,"queueMicrotask"),Vv=Bv&&Bv.value;if(!Vv){var Wv=new Av,Kv=function(){var e,t;for(jv&&(e=Fv.domain)&&e.exit();t=Wv.get();)try{t()}catch(FD){throw Wv.head&&wv(),FD}e&&e.enter()};Cv||jv||Lv||!Nv||!Uv?!Dv&&zv&&zv.resolve?((Ev=zv.resolve(void 0)).constructor=zv,Tv=xv(Ev.then,Ev),wv=function(){Tv(Kv)}):jv?wv=function(){Fv.nextTick(Kv)}:(Mv=xv(Mv,Ov),wv=function(){Mv(Kv)}):(bv=!0,Sv=Uv.createTextNode(""),new Nv(Kv).observe(Sv,{characterData:!0}),wv=function(){Sv.data=bv=!bv}),Vv=function(e){Wv.head||wv(),Wv.add(e)}}var Hv=Vv,qv=function(e){try{return{error:!1,value:e()}}catch(FD){return{error:!0,value:FD}}},Xv=i.Promise,Gv="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Yv=!Gv&&!Pd&&"object"==typeof window&&"object"==typeof document,Qv=i,Jv=Xv,$v=k,Zv=qt,eg=sn,tg=pt,rg=Yv,ng=Gv,ig=ve,og=Jv&&Jv.prototype,ag=tg("species"),sg=!1,lg=$v(Qv.PromiseRejectionEvent),cg={CONSTRUCTOR:Zv("Promise",(function(){var e=eg(Jv),t=e!==String(Jv);if(!t&&66===ig)return!0;if(!og.catch||!og.finally)return!0;if(!ig||ig<51||!/native code/.test(e)){var r=new Jv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[ag]=n,!(sg=r.then((function(){}))instanceof n))return!0}return!t&&(rg||ng)&&!lg})),REJECTION_EVENT:lg,SUBCLASSING:sg},ug={},fg=Me,pg=TypeError,hg=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw pg("Bad Promise constructor");t=e,r=n})),this.resolve=fg(t),this.reject=fg(r)};ug.f=function(e){return new hg(e)};var dg,vg,gg=Or,yg=Pd,mg=i,_g=A,wg=oo,bg=Ao,Sg=Id,Eg=Me,Tg=k,Pg=ee,Rg=Cd,kg=Vd,Og=mv.set,xg=Hv,Ig=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(FD){}},Mg=qv,Ag=Pv,Cg=Go,Dg=Xv,Lg=cg,jg=ug,Ng="Promise",Ug=Lg.CONSTRUCTOR,Fg=Lg.REJECTION_EVENT,zg=Cg.getterFor(Ng),Bg=Cg.set,Vg=Dg&&Dg.prototype,Wg=Dg,Kg=Vg,Hg=mg.TypeError,qg=mg.document,Xg=mg.process,Gg=jg.f,Yg=Gg,Qg=!!(qg&&qg.createEvent&&mg.dispatchEvent),Jg="unhandledrejection",$g=function(e){var t;return!(!Pg(e)||!Tg(t=e.then))&&t},Zg=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&iy(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?c(Hg("Promise-chain cycle")):(n=$g(r))?_g(n,r,l,c):l(r)):c(o)}catch(FD){u&&!i&&u.exit(),c(FD)}},ey=function(e,t){e.notified||(e.notified=!0,xg((function(){for(var r,n=e.reactions;r=n.get();)Zg(r,e);e.notified=!1,t&&!e.rejection&&ry(e)})))},ty=function(e,t,r){var n,i;Qg?((n=qg.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),mg.dispatchEvent(n)):n={promise:t,reason:r},!Fg&&(i=mg["on"+e])?i(n):e===Jg&&Ig("Unhandled promise rejection",r)},ry=function(e){_g(Og,mg,(function(){var t,r=e.facade,n=e.value;if(ny(e)&&(t=Mg((function(){yg?Xg.emit("unhandledRejection",n,r):ty(Jg,r,n)})),e.rejection=yg||ny(e)?2:1,t.error))throw t.value}))},ny=function(e){return 1!==e.rejection&&!e.parent},iy=function(e){_g(Og,mg,(function(){var t=e.facade;yg?Xg.emit("rejectionHandled",t):ty("rejectionhandled",t,e.value)}))},oy=function(e,t,r){return function(n){e(t,n,r)}},ay=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,ey(e,!0))},sy=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Hg("Promise can't be resolved itself");var n=$g(t);n?xg((function(){var r={done:!1};try{_g(n,t,oy(sy,r,e),oy(ay,r,e))}catch(FD){ay(r,FD,e)}})):(e.value=t,e.state=1,ey(e,!1))}catch(FD){ay({done:!1},FD,e)}}};Ug&&(Kg=(Wg=function(e){Rg(this,Kg),Eg(e),_g(dg,this);var t=zg(this);try{e(oy(sy,t),oy(ay,t))}catch(FD){ay(t,FD)}}).prototype,(dg=function(e){Bg(this,{type:Ng,done:!1,notified:!1,parent:!1,reactions:new Ag,rejection:!1,state:0,value:void 0})}).prototype=wg(Kg,"then",(function(e,t){var r=zg(this),n=Gg(kg(this,Wg));return r.parent=!0,n.ok=!Tg(e)||e,n.fail=Tg(t)&&t,n.domain=yg?Xg.domain:void 0,0==r.state?r.reactions.add(n):xg((function(){Zg(n,r)})),n.promise})),vg=function(){var e=new dg,t=zg(e);this.promise=e,this.resolve=oy(sy,t),this.reject=oy(ay,t)},jg.f=Gg=function(e){return e===Wg||undefined===e?new vg(e):Yg(e)}),gg({global:!0,constructor:!0,wrap:!0,forced:Ug},{Promise:Wg}),bg(Wg,Ng,!1,!0),Sg(Ng);var ly=Xv,cy=cg.CONSTRUCTOR||!qf((function(e){ly.all(e).then(void 0,(function(){}))})),uy=A,fy=Me,py=ug,hy=qv,dy=rd;Or({target:"Promise",stat:!0,forced:cy},{all:function(e){var t=this,r=py.f(t),n=r.resolve,i=r.reject,o=hy((function(){var r=fy(t.resolve),o=[],a=0,s=1;dy(e,(function(e){var l=a++,c=!1;s++,uy(r,t,e).then((function(e){c||(c=!0,o[l]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var vy=Or,gy=cg.CONSTRUCTOR;Xv&&Xv.prototype,vy({target:"Promise",proto:!0,forced:gy,real:!0},{catch:function(e){return this.then(void 0,e)}});var yy=A,my=Me,_y=ug,wy=qv,by=rd;Or({target:"Promise",stat:!0,forced:cy},{race:function(e){var t=this,r=_y.f(t),n=r.reject,i=wy((function(){var i=my(t.resolve);by(e,(function(e){yy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Sy=A,Ey=ug;Or({target:"Promise",stat:!0,forced:cg.CONSTRUCTOR},{reject:function(e){var t=Ey.f(this);return Sy(t.reject,void 0,e),t.promise}});var Ty=rr,Py=ee,Ry=ug,ky=function(e,t){if(Ty(e),Py(t)&&t.constructor===e)return t;var r=Ry.f(e);return(0,r.resolve)(t),r.promise},Oy=Or,xy=Xv,Iy=cg.CONSTRUCTOR,My=ky,Ay=ae("Promise"),Cy=!Iy;Oy({target:"Promise",stat:!0,forced:true},{resolve:function(e){return My(Cy&&this===Ay?xy:this,e)}});var Dy=A,Ly=Me,jy=ug,Ny=qv,Uy=rd;Or({target:"Promise",stat:!0,forced:cy},{allSettled:function(e){var t=this,r=jy.f(t),n=r.resolve,i=r.reject,o=Ny((function(){var r=Ly(t.resolve),i=[],o=0,a=1;Uy(e,(function(e){var s=o++,l=!1;a++,Dy(r,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Fy=A,zy=Me,By=ae,Vy=ug,Wy=qv,Ky=rd,Hy="No one promise resolved";Or({target:"Promise",stat:!0,forced:cy},{any:function(e){var t=this,r=By("AggregateError"),n=Vy.f(t),i=n.resolve,o=n.reject,a=Wy((function(){var n=zy(t.resolve),a=[],s=0,l=1,c=!1;Ky(e,(function(e){var u=s++,f=!1;l++,Fy(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[u]=e,--l||o(new r(a,Hy)))}))})),--l||o(new r(a,Hy))}));return a.error&&o(a.value),n.promise}});var qy=Or,Xy=Xv,Gy=o,Yy=ae,Qy=k,Jy=Vd,$y=ky,Zy=Xy&&Xy.prototype;qy({target:"Promise",proto:!0,real:!0,forced:!!Xy&&Gy((function(){Zy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Jy(this,Yy("Promise")),r=Qy(e);return this.then(r?function(r){return $y(t,e()).then((function(){return r}))}:e,r?function(r){return $y(t,e()).then((function(){throw r}))}:e)}});var em=te.Promise,tm=ug,rm=qv;Or({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=tm.f(this),r=rm(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var nm=em,im=r(nm),om=Or,am=Ir,sm=g([].reverse),lm=[1,2];om({target:"Array",proto:!0,forced:String(lm)===String(lm.reverse())},{reverse:function(){return am(this)&&(this.length=this.length),sm(this)}});var cm=zu("Array").reverse,um=se,fm=cm,pm=Array.prototype,hm=r((function(e){var t=e.reverse;return e===pm||um(pm,e)&&t===pm.reverse?fm:t}));function dm(){dm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=lh||function(e,t,r){e[t]=r.value},i="function"==typeof iu?iu:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,r){return lh(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof p?t:p,a=wh(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:w(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};l(v,o,(function(){return this}));var g=Th&&Th(Th(P([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=d.prototype=p.prototype=wh(v);function m(e){var t;Dp(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,s){var l=u(e[n],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==fh(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=b(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function b(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),Hu(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],Dp(e).call(e,S,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=d,n(y,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:h,configurable:!0}),h.displayName=l(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Ph?Ph(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=wh(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=im);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Hu(r).call(r,n);return hm(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,T.prototype={constructor:T,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,Dp(t=this.tryEntries).call(t,E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pf(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}var vm=Or,gm=oi.indexOf,ym=Ep,mm=E([].indexOf),_m=!!mm&&1/mm([1],1,-0)<0;vm({target:"Array",proto:!0,forced:_m||!ym("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return _m?mm(this,e,t)||0:gm(this,e,t)}});var wm=zu("Array").indexOf,bm=se,Sm=wm,Em=Array.prototype,Tm=function(e){var t=e.indexOf;return e===Em||bm(Em,e)&&t===Em.indexOf?Sm:t},Pm=r(Tm);function Rm(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=rp(e);for(n=0;n<o.length;n++)r=o[n],Pm(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(ip){var o=ip(e);for(n=0;n<o.length;n++)r=o[n],Pm(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function km(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(FD){return void r(FD)}s.done?t(l):im.resolve(l).then(n,i)}function Om(e){return function(){var t=this,r=arguments;return new im((function(n,i){var o=e.apply(t,r);function a(e){km(o,n,i,a,s,"next",e)}function s(e){km(o,n,i,a,s,"throw",e)}a(void 0)}))}}function xm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),lh(e,dh(n.key),n)}}function Mm(e,t,r){return t&&Im(e.prototype,t),r&&Im(e,r),lh(e,"prototype",{writable:!1}),e}var Am=$e,Cm=A,Dm=ee,Lm=rr,jm=function(e){return void 0!==e&&(Am(e,"value")||Am(e,"writable"))},Nm=O,Um=kl;Or({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return Lm(t)===o?t[r]:(n=Nm.f(t,r))?jm(n)?n.value:void 0===n.get?void 0:Cm(n.get,o):Dm(i=Um(t))?e(i,r,o):void 0}});var Fm=r(te.Reflect.get),zm=g,Bm=Me,Vm=ee,Wm=$e,Km=Rs,Hm=a,qm=Function,Xm=zm([].concat),Gm=zm([].join),Ym={},Qm=Hm?qm.bind:function(e){var t=Bm(this),r=t.prototype,n=Km(arguments,1),i=function(){var r=Xm(n,Km(arguments));return this instanceof i?function(e,t,r){if(!Wm(Ym,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Ym[t]=qm("C,a","return new C("+Gm(n,",")+")")}return Ym[t](e,r)}(t,r.length,r):t.apply(e,r)};return Vm(r)&&(i.prototype=r),i},Jm=Qm;Or({target:"Function",proto:!0,forced:Function.bind!==Jm},{bind:Jm});var $m=zu("Function").bind,Zm=se,e_=$m,t_=Function.prototype,r_=function(e){var t=e.bind;return e===t_||Zm(t_,e)&&t===t_.bind?e_:t},n_=r(r_);function i_(e){var t;return(i_=Ph?n_(t=Th).call(t):function(e){return e.__proto__||Th(e)})(e)}function o_(){var e;"undefined"!=typeof Reflect&&Fm?o_=n_(e=Fm).call(e):o_=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i_(e)););return e}(e,t);if(n){var i=bp(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return o_.apply(this,arguments)}function a_(e,t){var r;return(a_=Ph?n_(r=Ph).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function s_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=wh(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lh(e,"prototype",{writable:!1}),t&&a_(e,t)}var l_=Or,c_=f,u_=Qm,f_=Nd,p_=rr,h_=ee,d_=Bi,v_=o,g_=ae("Reflect","construct"),y_=Object.prototype,m_=[].push,__=v_((function(){function e(){}return!(g_((function(){}),[],e)instanceof e)})),w_=!v_((function(){g_((function(){}))})),b_=__||w_;l_({target:"Reflect",stat:!0,forced:b_,sham:b_},{construct:function(e,t){f_(e),p_(t);var r=arguments.length<3?e:f_(arguments[2]);if(w_&&!__)return g_(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 c_(m_,n,t),new(c_(u_,e,n))}var i=r.prototype,o=d_(h_(i)?i:y_),a=c_(e,o,t);return h_(a)?a:o}});var S_=r(te.Reflect.construct);function E_(){if("undefined"==typeof Reflect||!S_)return!1;if(S_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(S_(Boolean,[],(function(){}))),!0}catch(jR){return!1}}function T_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P_(e){var t=E_();return function(){var r,n=i_(e);if(t){var i=i_(this).constructor;r=S_(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===fh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T_(e)}(this,r)}}function R_(e){return function(e){if(Ar(e))return Qf(e)}(e)||function(e){if(void 0!==iu&&null!=xu(e)||null!=e["@@iterator"])return Yf(e)}(e)||Jf(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 k_=zu("Array").concat,O_=se,x_=k_,I_=Array.prototype,M_=r((function(e){var t=e.concat;return e===I_||O_(I_,e)&&t===I_.concat?x_:t})),A_=r(nm),C_=x,D_=g,L_=A,j_=o,N_=gi,U_=no,F_=C,z_=Ye,B_=K,V_=Object.assign,W_=Object.defineProperty,K_=D_([].concat),H_=!V_||j_((function(){if(C_&&1!==V_({b:1},V_(W_({},"a",{enumerable:!0,get:function(){W_(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!=V_({},e)[r]||N_(V_({},t)).join("")!=n}))?function(e,t){for(var r=z_(e),n=arguments.length,i=1,o=U_.f,a=F_.f;n>i;)for(var s,l=B_(arguments[i++]),c=o?K_(N_(l),o(l)):N_(l),u=c.length,f=0;u>f;)s=c[f++],C_&&!L_(a,l,s)||(r[s]=l[s]);return r}:V_,q_=H_;Or({target:"Object",stat:!0,arity:2,forced:Object.assign!==q_},{assign:q_});var X_=r(te.Object.assign),G_=window.VePlayer.error,Y_=G_.VeError,Q_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(Q_||{});G_.Level;var J_=yh(yh({},Q_),G_.ErrorCode),$_=yh(yh({},G_.ERROR_INFO),{},vh({},210,{messageTextKey:"INVALID_PARAMETER",level:G_.Level.Fatal}));function Z_(e,t){return new Y_($_[e],t)}var ew=window.VePlayer.DynamicModule,tw=window.VePlayer.load;function rw(){return nw.apply(this,arguments)}function nw(){return(nw=Om(dm().mark((function e(){var t,r;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tw(ew.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 iw(){return ow.apply(this,arguments)}function ow(){return ow=Om(dm().mark((function e(){var t,r,n,i=arguments;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:yD.H264,e.next=3,tw(ew.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==yD.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)}))),ow.apply(this,arguments)}var aw=["fallbackUrl","enableFallback","enableRTMAutoTranscode"],sw=window.VePlayer.strategy,lw=window.VePlayer.util,cw=window.VePlayer.DynamicModule,uw=window.VePlayer.load,fw=window.VePlayer.Codec,pw=window.VePlayer.Sniffer,hw={options:{},module:cw.PluginRtm},dw=function(e){return"pc"===pw.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},vw=function(){var e=Om(dm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,w,b,S,E;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.url,s=t.rtm||{},l=s.fallbackUrl,c=s.enableFallback,u=void 0===c||c,f=s.enableRTMAutoTranscode,p=Rm(s,aw),h=u?!l&&a?dw(a):l:"","flv"===(d=h&&lw.getStreamType(h))&&lw.isMseSupported(fw.H264)?o=sw.createFlvMseStrategy(t):"hls"===d&&("mobile"!==pw.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&lw.isMseSupported(fw.H264)&&(o=sw.createHlsMseStrategy(t)),e.next=7,A_.all([uw(hw.module).then((function(e){return e.RtmPlugin})).catch((function(){})),o&&uw(o.module).then((function(e){var t,r;return(null===(t=o)||void 0===t?void 0:t.module)===cw.PluginFlv?e.FlvPlugin:(null===(r=o)||void 0===r?void 0:r.module)===cw.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 7:return v=e.sent,g=$f(v,2),y=g[0],m=g[1],e.next=13,A_.all([rw(),iw()]);case 13:if(_=e.sent,w=$f(_,2),b=w[0],S=w[1],b&&S){e.next=20;break}return r&&r.emit("degrade",{url:h,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:b,isRTMSupportCodec:S}),e.abrupt("return",{options:yh(yh({},(null===(E=o)||void 0===E?void 0:E.options)||{}),{},{url:h,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:b,_isRTMSupportCodec:S}}),plugins:m?[m]:[]});case 20:return e.abrupt("return",{options:yh(yh({},(null===(i=o)||void 0===i?void 0:i.options)||{}),{},{url:f?lw.appendSearchParams(a,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:yh(yh({retryCount:0},p),{},{backupURL:h,backupConstruct:m})}),plugins:y?[y]:[]});case 21:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),gw=window.VePlayer.Sniffer,yw=function(e){return e.Fairplay="fairplay",e}(yw||{});function mw(e){if(null!=e&&e.fairplay&&("safari"===gw.browser||gw.os.isIos))return"fairplay"}function _w(e){var t=e.drm,r=e.streamType,n=mw(t);return!n||("fairplay"!==n||"hls"!==r)}var ww=window.VePlayer.util,bw=window.VePlayer.strategy,Sw=function(){var e=Om(dm().mark((function e(t,r){var n;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?ww.getStreamType(t.url):"")&&"unknown"!==n){e.next=3;break}return e.abrupt("return",{options:{},plugins:[]});case 3:if("rtm"!==n){e.next=7;break}return e.next=6,vw(t,r);case 6:case 10:case 16:return e.abrupt("return",e.sent);case 7:if("flv"!==n){e.next=11;break}return e.next=10,bw.getFlvStrategy(t);case 11:if("hls"!==n){e.next=17;break}if(_w({drm:t.drm,streamType:n})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,bw.getHlsStrategy(t);case 17:return e.abrupt("return",{options:{},plugins:[]});case 18:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Ew=r(r_),Tw="\t\n\v\f\r                 \u2028\u2029\ufeff",Pw=G,Rw=Yn,kw=Tw,Ow=g("".replace),xw=RegExp("^["+kw+"]+"),Iw=RegExp("(^|[^"+kw+"])["+kw+"]+$"),Mw=function(e){return function(t){var r=Rw(Pw(t));return 1&e&&(r=Ow(r,xw,"")),2&e&&(r=Ow(r,Iw,"$1")),r}},Aw={start:Mw(1),end:Mw(2),trim:Mw(3)},Cw=i,Dw=o,Lw=g,jw=Yn,Nw=Aw.trim,Uw=Tw,Fw=Cw.parseInt,zw=Cw.Symbol,Bw=zw&&zw.iterator,Vw=/^[+-]?0x/i,Ww=Lw(Vw.exec),Kw=8!==Fw(Uw+"08")||22!==Fw(Uw+"0x16")||Bw&&!Dw((function(){Fw(Object(Bw))}))?function(e,t){var r=Nw(jw(e));return Fw(r,t>>>0||(Ww(Vw,r)?16:10))}:Fw;Or({global:!0,forced:parseInt!=Kw},{parseInt:Kw});var Hw,qw=r(te.parseInt),Xw="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Gw=i,Yw=f,Qw=k,Jw=Xw,$w=le,Zw=Rs,eb=Kd,tb=Gw.Function,rb=/MSIE .\./.test($w)||Jw&&((Hw=Gw.Bun.version.split(".")).length<3||0==Hw[0]&&(Hw[1]<3||3==Hw[1]&&0==Hw[2])),nb=function(e,t){var r=t?2:1;return rb?function(n,i){var o=eb(arguments.length,1)>r,a=Qw(n)?n:tb(n),s=o?Zw(arguments,r):[],l=o?function(){Yw(a,this,s)}:a;return t?e(l,i):e(l)}:e},ib=Or,ob=i,ab=nb(ob.setInterval,!0);ib({global:!0,bind:!0,forced:ob.setInterval!==ab},{setInterval:ab});var sb=Or,lb=i,cb=nb(lb.setTimeout,!0);sb({global:!0,bind:!0,forced:lb.setTimeout!==cb},{setTimeout:cb});var ub=r(te.setTimeout),fb=r(ff),pb=NaN,hb="[object Symbol]",db=/^\s+|\s+$/g,vb=/^[-+]0x[0-9a-f]+$/i,gb=/^0b[01]+$/i,yb=/^0o[0-7]+$/i,mb=qw,_b="object"==fh(t)&&t&&t.Object===Object&&t,wb="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,bb=_b||wb||Function("return this")(),Sb=Object.prototype.toString,Eb=Math.max,Tb=Math.min,Pb=function(){return bb.Date.now()};function Rb(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function kb(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&Sb.call(e)==hb}function Ob(e){if("number"==typeof e)return e;if(kb(e))return pb;if(Rb(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Rb(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(db,"");var r=gb.test(e);return r||yb.test(e)?mb(fb(e).call(e,2),r?2:8):vb.test(e)?pb:+e}var xb=function(e,t,r){var n,i,o,a,s,l,c=0,u=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,o=i;return n=i=void 0,c=t,a=e.apply(o,r)}function d(e){var r=e-l;return void 0===l||r>=t||r<0||f&&e-c>=o}function v(){var e=Pb();if(d(e))return g(e);s=ub(v,function(e){var r=t-(e-l);return f?Tb(r,o-(e-c)):r}(e))}function g(e){return s=void 0,p&&n?h(e):(n=i=void 0,a)}function y(){var e=Pb(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=ub(v,t),u?h(e):a}(l);if(f)return s=ub(v,t),h(l)}return void 0===s&&(s=ub(v,t)),a}return t=Ob(t)||0,Rb(r)&&(u=!!r.leading,o=(f="maxWait"in r)?Eb(Ob(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=i=s=void 0},y.flush=function(){return void 0===s?a:g(Pb())},y},Ib=r(xb),Mb=yh(yh({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function Ab(){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 Cb=window.VePlayer.Plugin,Db=window.VePlayer.Sniffer,Lb=window.VePlayer.XGEvents,jb=Cb.POSITIONS,Nb=function(e){s_(r,e);var t=P_(r);function r(){return xm(this,r),t.apply(this,arguments)}return Mm(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Ab,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(Mb.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(Lb.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=Ib(Ew(e=this._handleRefresh).call(e,this),200);var t="mobile"===Db.device?"touchend":"click";Ew(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:jb.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(Cb),Ub=r(sh),Fb=r(tp),zb=r(np),Bb=r(up),Vb=r(wp),Wb=r(Cp),Kb=r(Hp),Hb=r(Zp),qb=r(Tm),Xb=Or,Gb=Date,Yb=g(Gb.prototype.getTime);Xb({target:"Date",stat:!0},{now:function(){return Yb(new Gb)}});var Qb=r(te.Date.now),Jb=o,$b=pt("iterator"),Zb=!Jb((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[$b]||"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})),eS=oo,tS=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:eS(e,n,t[n],r);return e},rS=Ji,nS=Math.floor,iS=function(e,t){var r=e.length,n=nS(r/2);return r<8?oS(e,t):aS(e,iS(rS(e,0,n),t),iS(rS(e,n),t),t)},oS=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},aS=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},sS=iS,lS=Or,cS=i,uS=A,fS=g,pS=x,hS=Zb,dS=oo,vS=so,gS=tS,yS=Ao,mS=Kl,_S=Go,wS=Cd,bS=k,SS=$e,ES=Qt,TS=rn,PS=rr,RS=ee,kS=Yn,OS=Bi,xS=F,IS=xf,MS=ku,AS=Kd,CS=sS,DS=pt("iterator"),LS="URLSearchParams",jS=LS+"Iterator",NS=_S.set,US=_S.getterFor(LS),FS=_S.getterFor(jS),zS=Object.getOwnPropertyDescriptor,BS=function(e){if(!pS)return cS[e];var t=zS(cS,e);return t&&t.value},VS=BS("fetch"),WS=BS("Request"),KS=BS("Headers"),HS=WS&&WS.prototype,qS=KS&&KS.prototype,XS=cS.RegExp,GS=cS.TypeError,YS=cS.decodeURIComponent,QS=cS.encodeURIComponent,JS=fS("".charAt),$S=fS([].join),ZS=fS([].push),eE=fS("".replace),tE=fS([].shift),rE=fS([].splice),nE=fS("".split),iE=fS("".slice),oE=/\+/g,aE=Array(4),sE=function(e){return aE[e-1]||(aE[e-1]=XS("((?:%[\\da-f]{2}){"+e+"})","gi"))},lE=function(e){try{return YS(e)}catch(FD){return e}},cE=function(e){var t=eE(e,oE," "),r=4;try{return YS(t)}catch(FD){for(;r;)t=eE(t,sE(r--),lE);return t}},uE=/[!'()~]|%20/g,fE={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pE=function(e){return fE[e]},hE=function(e){return eE(QS(e),uE,pE)},dE=mS((function(e,t){NS(this,{type:jS,iterator:IS(US(e).entries),kind:t})}),"Iterator",(function(){var e=FS(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),vE=function(e){this.entries=[],this.url=null,void 0!==e&&(RS(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===JS(e,0)?iE(e,1):e:kS(e)))};vE.prototype={type:LS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=MS(e);if(l)for(r=(t=IS(e,l)).next;!(n=uS(r,t)).done;){if(o=(i=IS(PS(n.value))).next,(a=uS(o,i)).done||(s=uS(o,i)).done||!uS(o,i).done)throw GS("Expected sequence with length 2");ZS(this.entries,{key:kS(a.value),value:kS(s.value)})}else for(var c in e)SS(e,c)&&ZS(this.entries,{key:c,value:kS(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=nE(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=nE(t,"="),ZS(this.entries,{key:cE(tE(r)),value:cE($S(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ZS(r,hE(e.key)+"="+hE(e.value));return $S(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gE=function(){wS(this,yE);var e=NS(this,new vE(arguments.length>0?arguments[0]:void 0));pS||(this.length=e.entries.length)},yE=gE.prototype;if(gS(yE,{append:function(e,t){AS(arguments.length,2);var r=US(this);ZS(r.entries,{key:kS(e),value:kS(t)}),pS||this.length++,r.updateURL()},delete:function(e){AS(arguments.length,1);for(var t=US(this),r=t.entries,n=kS(e),i=0;i<r.length;)r[i].key===n?rE(r,i,1):i++;pS||(this.length=r.length),t.updateURL()},get:function(e){AS(arguments.length,1);for(var t=US(this).entries,r=kS(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){AS(arguments.length,1);for(var t=US(this).entries,r=kS(e),n=[],i=0;i<t.length;i++)t[i].key===r&&ZS(n,t[i].value);return n},has:function(e){AS(arguments.length,1);for(var t=US(this).entries,r=kS(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){AS(arguments.length,1);for(var r,n=US(this),i=n.entries,o=!1,a=kS(e),s=kS(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?rE(i,l--,1):(o=!0,r.value=s));o||ZS(i,{key:a,value:s}),pS||(this.length=i.length),n.updateURL()},sort:function(){var e=US(this);CS(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=US(this).entries,n=ES(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new dE(this,"keys")},values:function(){return new dE(this,"values")},entries:function(){return new dE(this,"entries")}},{enumerable:!0}),dS(yE,DS,yE.entries,{name:"entries"}),dS(yE,"toString",(function(){return US(this).serialize()}),{enumerable:!0}),pS&&vS(yE,"size",{get:function(){return US(this).entries.length},configurable:!0,enumerable:!0}),yS(gE,LS),lS({global:!0,constructor:!0,forced:!hS},{URLSearchParams:gE}),!hS&&bS(KS)){var mE=fS(qS.has),_E=fS(qS.set),wE=function(e){if(RS(e)){var t,r=e.body;if(TS(r)===LS)return t=e.headers?new KS(e.headers):new KS,mE(t,"content-type")||_E(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),OS(e,{body:xS(0,kS(r)),headers:xS(0,t)})}return e};if(bS(VS)&&lS({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return VS(e,arguments.length>1?wE(arguments[1]):{})}}),bS(WS)){var bE=function(e){return wS(this,HS),new WS(e,arguments.length>1?wE(arguments[1]):{})};HS.constructor=bE,bE.prototype=HS,lS({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:bE})}}var SE={URLSearchParams:gE,getState:US},EE=r(te.URLSearchParams),TE=ee,PE=w,RE=pt("match"),kE=function(e){var t;return TE(e)&&(void 0!==(t=e[RE])?!!t:"RegExp"==PE(e))},OE=TypeError,xE=function(e){if(kE(e))throw OE("The method doesn't accept regular expressions");return e},IE=pt("match"),ME=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[IE]=!1,"/./"[e](t)}catch(FD){}}return!1},AE=Or,CE=E;O.f;var DE=Fr,LE=Yn,jE=xE,NE=G,UE=ME,FE=CE("".startsWith),zE=CE("".slice),BE=Math.min;AE({target:"String",proto:!0,forced:!UE("startsWith")},{startsWith:function(e){var t=LE(NE(this));jE(e);var r=DE(BE(arguments.length>1?arguments[1]:void 0,t.length)),n=LE(e);return FE?FE(t,n,r):zE(t,r,r+n.length)===n}});var VE=zu("String").startsWith,WE=se,KE=VE,HE=String.prototype,qE=r((function(e){var t=e.startsWith;return"string"==typeof e||e===HE||WE(HE,e)&&t===HE.startsWith?KE:t})),XE=Kw;Or({target:"Number",stat:!0,forced:Number.parseInt!=XE},{parseInt:XE});var GE=r(te.Number.parseInt),YE=oi.includes;Or({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return YE(this,e,arguments.length>1?arguments[1]:void 0)}});var QE=zu("Array").includes,JE=Or,$E=xE,ZE=G,eT=Yn,tT=ME,rT=g("".indexOf);JE({target:"String",proto:!0,forced:!tT("includes")},{includes:function(e){return!!~rT(eT(ZE(this)),eT($E(e)),arguments.length>1?arguments[1]:void 0)}});var nT=zu("String").includes,iT=se,oT=QE,aT=nT,sT=Array.prototype,lT=String.prototype,cT=r((function(e){var t=e.includes;return e===sT||iT(sT,e)&&t===sT.includes?oT:"string"==typeof e||e===lT||iT(lT,e)&&t===lT.includes?aT:t})),uT=te,fT=f;uT.JSON||(uT.JSON={stringify:JSON.stringify});var pT=function(e,t,r){return fT(uT.JSON.stringify,null,arguments)},hT=r(pT),dT=f,vT=J,gT=jr,yT=Br,mT=Ep,_T=Math.min,wT=[].lastIndexOf,bT=!!wT&&1/[1].lastIndexOf(1,-0)<0,ST=mT("lastIndexOf"),ET=bT||!ST?function(e){if(bT)return dT(wT,this,arguments)||0;var t=vT(this),r=yT(t),n=r-1;for(arguments.length>1&&(n=_T(n,gT(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:wT;Or({target:"Array",proto:!0,forced:ET!==[].lastIndexOf},{lastIndexOf:ET});var TT=zu("Array").lastIndexOf,PT=se,RT=TT,kT=Array.prototype,OT=r((function(e){var t=e.lastIndexOf;return e===kT||PT(kT,e)&&t===kT.lastIndexOf?RT:t})),xT=i,IT=o,MT=Yn,AT=Aw.trim,CT=Tw,DT=g("".charAt),LT=xT.parseFloat,jT=xT.Symbol,NT=jT&&jT.iterator,UT=1/LT(CT+"-0")!=-1/0||NT&&!IT((function(){LT(Object(NT))}))?function(e){var t=AT(MT(e)),r=LT(t);return 0===r&&"-"==DT(t,0)?-0:r}:LT,FT=UT;Or({target:"Number",stat:!0,forced:Number.parseFloat!=FT},{parseFloat:FT});var zT=r(te.Number.parseFloat),BT=r(te.setInterval);function VT(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),Ub(e,n.key,n)}}function WT(e,t,r){return t&&VT(e.prototype,t),r&&VT(e,r),e}function KT(e,t,r){return t in e?Ub(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HT(e,t){var r=Fb(e);if(zb){var n=zb(e);t&&(n=Bb(n).call(n,(function(t){return Vb(e,t).enumerable}))),r.push.apply(r,n)}return r}function qT(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)Wb(r=HT(Object(n),!0)).call(r,(function(t){KT(e,t,n[t])}));else if(Kb)Hb(e,Kb(n));else{var i;Wb(i=HT(Object(n))).call(i,(function(t){Ub(e,t,Vb(n,t))}))}}return e}var XT="xgplayer_device_id",GT="xgplayer_user_id",YT=function(e){if(!document.cookie)return null;for(var t=document.cookie.split(";"),r=0,n=t.length;r<n;r++){var i,o=t[r];if(qb(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},QT=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},JT=function(){var e=YT(XT);if(e)return e;var t=QT(11);return document.cookie=XT+"="+t+";max-age=31536000;path=/",t},$T=function(){var e=YT(GT);if(e)return e;var t=QT(12);return document.cookie=GT+"="+t+";max-age=31536000;path=/",t};var ZT={get device(){return ZT.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:qb(e).call(e,"chrome")>-1&&qb(e).call(e,"safari")>-1,Firefox:qb(e).call(e,"firefox")>-1,Opera:qb(e).call(e,"opera")>-1,Safari:qb(e).call(e,"safari")>-1&&-1==qb(e).call(e,"chrome"),Edge:qb(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var i="";if("IE"===n)i=e.match(/(msie\s|trident.*rv:)([\w.]+)/)[2];else if("Chrome"===n){for(var o in navigator.mimeTypes)"application/360softmgrplugin"===navigator.mimeTypes[o].type&&(n="360");var a=e.match(/chrome\/([\d.]+)/);i=a?a[1]:"-1"}else if("Firefox"===n){var s=e.match(/firefox\/([\d.]+)/);i=s?s[1]:"-1"}else if("Opera"===n){var l=e.match(/opera\/([\d.]+)/);i=l?l[1]:"-1"}else if("Safari"===n){var c=e.match(/version\/([\d.]+)/);i=c?c[1]:"-1"}else if("Edge"===n){var u=e.match(/edge\/([\d.]+)/);i=u?u[1]:"-1"}else if("QQBrowser"===n){var f=e.match(/qqbrowser\/([\d.]+)/);i=f?f[1]:"-1"}t.type=n,t.versions=qw(i)}return t}();return e.type+"_"+e.versions},get os(){var e=navigator.userAgent;navigator.platform.toLowerCase();var t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return{isTablet:o,isPhone:a,isAndroid:n,isPc:!(a||n||r||o),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get operation_os(){for(var e=navigator.userAgent,t=[{s:"windows",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1|Windows 8.1|Windows NT 6.3|Windows 8|Windows NT 6.2|Windows 7|Windows NT 6.1)/},{s:"android",r:/Android/},{s:"linux",r:/(Linux|X11)/},{s:"ios",r:/(iPhone|iPad|iPod)/},{s:"mac",r:/Mac OS X/},{s:"mac",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r<t.length;r++){var n=t[r];if(n.r.test(e))return n.s}return"unknown"}};function eP(){return Qb()}function tP(e){var t="unknown";return"string"!=typeof e?t:qb(e).call(e,".flv")>-1?"flv":qb(e).call(e,".m3u8")>-1?"m3u8":qb(e).call(e,".mp4")>-1?"mp4":qb(e).call(e,".sdp")>-1?"rts":t}function rP(e){if(e.plugins){if(e.plugins.flv)return e.plugins.flv;if(e.plugins.hls)return e.plugins.hls;if(e.plugins.rts)return e.plugins.rts;if(e.plugins.rtm)return e.plugins.rtm}return null}var nP={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},iP=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=Ew(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}WT(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&&qE(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new EE(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=tP(e.cdn_play_url),e.timestamp=eP();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(FD){}return e}(),n=r.cpu_core_number,i=r.memory_usage,o=r.network_downlink;e.cpu_core_number=n,e.memory_usage=i,e.network_downlink=o,X_(e,qT({},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,qT({},e)))},e}(),oP=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||ZT.device:"none":"unknown";var e},aP=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],sP=function(){function e(e){var t,r;this.options=e,this.logger=new lP(e),this.restart=Ew(t=this.restart).call(t,this),this.bindUrlChange(),cT(r=ZT.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new lP(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=X_(this.options.ext||{},e),this.logger&&this.logger.updateExt(e)},t.destroy=function(e){this.logger.destroy(e),this.logger=null,this.options&&this.options.player&&!this.options.manual_restart&&this.options.player.off("urlchange",this.restart)},e}(),lP=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=X_({},e,function(e){return{device_id:e.device_id||JT(),user_id:e.user_id||$T(),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?Qb()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new iP(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}WT(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 Qb()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=Qb()-this.options.ntp)},t.init=function(){this.bindCtx(),this.initLog(),this.initEvt()},t.bindCtx=function(){var e,t,r,n,i,o,a,s,l,c,u,f,p,h,d,v;this.handlePlayerComlete=Ew(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=Ew(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=Ew(r=this.destroyFunc).call(r,this),this.handleUserLeave=Ew(n=this.handleUserLeave).call(n,this),this.handlePlayerError=Ew(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=Ew(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=Ew(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=Ew(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=Ew(l=this.handlePlayerPause).call(l,this),this.handleTTFB=Ew(c=this.handleTTFB).call(c,this),this.handleUrlChange=Ew(u=this.handleUrlChange).call(u,this),this.handleKeyframe=Ew(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=Ew(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=Ew(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=Ew(d=this.handleCoreEvent).call(d,this),this.handleDegrade=Ew(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=qT({os:ZT.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return qT({project_key:e.project_key,live_sdk_version:rP(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.7",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:QT(12),app_name:e.app_name,cdn_ip:e.cdn_ip,is_wasm:+(!!n&&"video"!==n),review_is_live:r.config.isLive?2:1,aid:e.aid,live_id:e.live_id||e.aid+"-"+e.user_id+"-"+Qb(),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:ZT.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:Qb(),play_current_time:0,cdn_play_url:r.config.url&&qE(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:tP(r.config.url),codec_support:-1},e.ext)}(t)),this.log=X_({},{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:0,drop_percent:0,sei_source:"",sei_delay:0,ntp_sync:0,ntp_delta:0,event_key:"playing",stop_time:0,duration:0,stall_count_per_100sec:0,stall_time_per_100sec:0},play_error:{code:void 0,info:"",event_key:"play_error"},play_low_decode:{fps:-1,decode_fps:-1,bitrate:-1,url:-1,msg:"",event_key:"play_low_decode"},play_av_unsync:{aDts:-1,vDts:-1,frameLength:-1,currentTime:-1,duration:0,event_key:"play_av_unsync"},play_loadstream:{loadstream_url:"",event_key:"play_loadstream"},play_stream_loaded:{event_key:"play_stream_loaded"},play_metadata_loaded:{metadata_type:"",event_key:"play_metadata_loaded"},stream_exception:{event_key:"stream_exception"},pause:{event_key:"pause"},play_url_change:{event_key:"play_url_change"},source_opened:{event_key:"source_opened"},source_updateend:{event_key:"source_updateend"},play_result:{event_key:"play_result",result:0,threshold:15e3,is_threshold:0},degrade:{event_key:"degrade",payload:{}},rtcstatechange:{event_key:"rtcstatechange"}});var i=this;for(var o in this.log){var a=function(t){Ub(e.log[o],t,{get:function(){return null==this["_"+t]?i.commonParams[t]:this["_"+t]},set:function(e){this["_"+t]=e},enumerable:!0})};for(var s in this.commonParams)a(s);n&&Ub(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?fb(e).call(e,0,25e4):""}return""},enumerable:!0}),Ub(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),Ub(this.log[o],"access",{get:function(){return oP()},enumerable:!0})}},t.updateExt=function(e){for(var t in this.log)for(var r in e)this.log[t][r]=e[r]},t.reportStartPlay=function(){this.started||(this.core=rP(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=eP(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===ZT.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===ZT.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===ZT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===ZT.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;Wb(aP).call(aP,(function(t){e["handleVideo"+t+"Evt"]=function(){e["handleVideo"+t]&&e["handleVideo"+t]()},e.initWindowListener(),e.bindVideoEvt(t,e["handleVideo"+t+"Evt"])})),t.once("error",this.handlePlayerError),t.once("complete",this.handlePlayerComlete),t.once("playing",this.handlePlayerPlaying),t.once("timeupdate",this.handlePlayerPlaying),t.once("destroy",this.destroyFunc),t.on("ready",this.handlePlayerReady),t.on("waiting",this.handlePlayerWaiting),t.on("pause",this.handlePlayerPause),t.on("urlchange",this.handleUrlChange),t.once("sourceopen",this.handleSourceOpen),t.once("bufferappend",this.handleBufferAppend),t.on("core_event",this.handleCoreEvent),t.on("degrade",this.handleDegrade),this.hiJackPlayerStart()},t.handleCoreEvent=function(e){var t=e.eventName,r=e.headers,n=e.pts,i=e.type,o=e.meta,a=e.sei,s=e.decodeFps,l=e.url,c=e.state;switch(t){case"core.ttfb":this.handleTTFB(e);break;case"core.loadresponseheaders":var u=r.get("X-Server-Ip");void 0!==this.player.hlsOps&&(this.log.play_stop.review_ts_count+=1),u&&(this.commonParams.cdn_ip=u);break;case"core.loadretry":this.log.play_stop.retry_count++;break;case"core.keyframe":this.handleKeyframe(n);break;case"core.metadataparsed":this.handleMetaDataLoaded(i,o);break;case"core.sei":this.handleSEIParsed(a);break;case"core.lowdecode":this.commonParams.is_wasm&&(X_(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=eP(),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(X_({url:l,state:c},this.log.rtcstatechange))}},t.handleDegrade=function(e){this.log.degrade.payload=e,this.logmanager.push(this.log.degrade,!0)},t.hiJackPlayerStart=function(){var e=arguments,t=this;this.player._start=this.player.start;var r=this.player;r.start=function(){try{if(r._start)return r._start.apply(r,fb(Array.prototype).call(e,0))}catch(jR){}t.destroyed||t.handlePlayerComlete()}},t.handleTTFB=function(e){var t=e||{},r=t.end,n=t.elapsed;this.log.first_frame.ttfb=n||-1,this.log.first_frame.ttfb_end=r||0},t.handleUrlChange=function(e){this.logmanager.push(X_(this.log.play_url_change,{url:e,timestamp:eP()}))},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=eP(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=eP(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=eP(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;X_(this.log.play_error,qT({timestamp:eP(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:hT(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(X_(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=eP()),this.logmanager.push(this.log.first_frame_failed,!0),this.log.play_result.is_threshold||(this.clearPlayResultTimer(),this.log.play_result.reason=e.message||"first frame failed",this.log.play_result.code=this.log.play_error.code,this.logmanager.push(this.log.play_result,!0))),this.options.error_report_stop?this.handleUserLeave():this.updatePlayStopParams())},t.handlePlayerLoadStream=function(e){var t=e.url,r=e.offersdp,n=e.sessionId;if("string"==typeof t){var i=this.log.play_loadstream;i.timestamp=eP(),i.loadstream_url=t,i.offersdp=r,i.sessionId=n,this.logmanager.push(i)}},t.handlePlayerLoadedStream=function(e){var t=this.log.play_stream_loaded;t.timestamp=eP(),X_(t,e),this.logmanager.push(t)},t.handleSEIParsed=function(e){var t=this.log,r=t.playing,n=t.first_frame;if(100===e.code){var i=function(e){var t,r,n,i,o,a;for(t="",n=e.length,r=0;r<n;)switch((i=e[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(i);break;case 12:case 13:o=e[r++],t+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=e[r++],a=e[r++],t+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return t}(e.content);i=fb(i).call(i,qb(i).call(i,"{"),OT(i).call(i,"}")+1);try{var o=JSON.parse(i),a=this.getPlayerBuffer()+this.ntpTime-o.ts;r.sei_delay=a,r.sei_source=o.source,r.ntp_sync=this.options.ntp?1:0,r.ntp_delta=this.ntp_delta,n.first_sei_delay=a,n.ntp_sync=this.options.ntp?1:0,n.ntp_delta=this.ntp_delta}catch(jR){}}},t.handleMetaDataLoaded=function(e,t){var r;this.log.play_stop.meta=this.log.play_stop.meta||{},e&&(this.log.play_stop.meta[e]=t),this.log.play_metadata_loaded.timestamp=eP(),this.log.play_metadata_loaded.metadata_type=e,t&&(this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=t.codec,"video"===e&&(this.commonParams.codec_type=t.codec,this.commonParams.codec_support=(r=t.codec,"undefined"!=typeof MediaSource?+MediaSource.isTypeSupported("video/mp4; codecs="+r):0))),t||(this.log.play_metadata_loaded.meta=void 0,this.log.play_metadata_loaded.codec=void 0,"video"===e&&(this.commonParams.codec_type="unknown")),this.logmanager.push(this.log.play_metadata_loaded)},t.handleAVUnsync=function(e){X_(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=eP(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(X_({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=rP(this.player),this.core&&(this.commonParams.live_sdk_version="2",this.logmanager.core=this.core),(this.player.config.autoplay||this.player.config.videoInit)&&this.reportStartPlay())},t.getPlayerBuffer=function(){var e=this.player.video.buffered;if(e){var t=Math.max(0,e.length-1);try{var r=GE(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(jR){return 0}}},t.getPlayerDownloadSpeed=function(){if(this.core&&this.core.core&&"function"==typeof this.core.core.speedInfo)return this.core.core.speedInfo().speed},t.getPlayerQuality=function(){var e=this.player.video;if(e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();this.log.playing.drop_count=t.droppedVideoFrames-this.tempDroppedFrameCount,this.log.playing.drop_percent=zT(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=zT(t.droppedVideoFrames/t.totalVideoFrames).toFixed(1),this.tempDroppedFrameCount=t.droppedVideoFrames,this.tempTotalFrameCount=t.totalVideoFrames}},t.getRtcStats=function(e,t){try{var r=this,n=r.player.plugins.rts||r.player.plugins.rtm,i=n&&n.pc,o={};return i?A_.resolve(i.getStats()).then((function(t){return Wb(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,p=t.framesDropped,h=t.keyFramesDecoded,d=t.totalDecodeTime,v=t.framesDecoded,g=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,w=t.jitterBufferEmittedCount,b=t.jitter,S=t.nackCount,E=t.packetsLost,T=t.pliCount,P=t.totalSamplesReceived,R=t.concealedSamples,k=t.currentRoundTripTime,O=t.decoderImplementation,x=t.mimeType,I=t.freezeCount,M=t.totalFreezesDuration,A=t.totalPausesDuration;switch(n){case"inbound-rtp":"audio"===i?(o.audio_bytes_received=a-(r.cacheRtcStats.audioBytesReceived||0),r.cacheRtcStats.audioBytesReceived=a,o.audio_packets_lost=E-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=E,r.cacheRtcStats.audioPacketsReceived=s,o.audio_level=l,o.concealment_event=c,o.audio_fraction_lost=o.audio_packets_lost/o.audio_packets_received,void 0!==r.cacheRtcStats.totalSamplesReceived&&(o.audio_rec_sample_rate=(P-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=P,o.concealed_samples=R,o.total_samples_received=P):(o.frames_dropped=p,o.iframes_decoded=h,o.video_bytes_received=a-(r.cacheRtcStats.videoBytesReceived||0),r.cacheRtcStats.videoBytesReceived=a,o.video_dec_time=d,o.video_decoded_delay_ms=o.video_dec_elapse/v,o.video_frame_height=g,o.video_frame_width=y,void 0!==r.cacheRtcStats.framesDecoded&&(o.video_decode_framerate=(v-r.cacheRtcStats.framesDecoded)/e),r.cacheRtcStats.framesDecoded=v,void 0!==r.cacheRtcStats.framesReceived&&(o.video_recv_framerate=(m-r.cacheRtcStats.framesReceived)/e),void 0!==r.cacheRtcStats.freezeCount&&(o.freeze_count=I-r.cacheRtcStats.freezeCount,o.freeze_duration=M-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=I,r.cacheRtcStats.totalFreezesDuration=M,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=A,o.video_jb_delay=_/w*1e3,o.video_jitter=1e3*b,o.video_nack_count=S,o.video_packets_lost=E-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=E,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=T,o.decoder_name=O);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=g);break;case"candidate-pair":o.rtt=1e3*k;break;case"codec":cT(x).call(x,"video")?o.video_codec=x:o.audio_codec=i}o.total_delay=o.e2e_delay_ms+(o.video_decoded_delay_ms||0)+(o.video_jb_delay||0)})),X_(r.log.playing,{video_download_size:o.video_bytes_received,decode_fps:o.video_decode_framerate,sei_delay:o.total_delay,sei_network_delay:o.e2e_delay_ms,width:o.video_frame_width,height:o.video_frame_height,current_speed:(o.audio_bytes_received+o.video_bytes_received)/e}),o})):A_.resolve(o)}catch(jR){return A_.reject(jR)}},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<eP()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,eP()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=eP(),o=i-n,a=(r>200?r:0)+t.log.playing.stall_time,s=(r>200?1:0)+t.log.playing.stall_count;return t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=(r>t.options.aggregationDowngradeStallTime?r:0)+(t.log.playing.aggregation_downgrade_stall||0)),X_(t.log.playing,qT({timestamp:i,stop_time:i,duration:e?0:o/1e3,stall_time_per_100sec:a/o*100,stall_count_per_100sec:1e3*s/o*100,stall_count:s,stall_time:a,play_current_time:t.player.currentTime},t.videoSize)),A_.resolve(t.getRtcStats(o,e)).then((function(r){t.logmanager.push(X_({},t.log.playing,qT({play_time:e?0:o},r)),!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(jR){return A_.reject(jR)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return A_.resolve();if(e.player.off("playing",e.handlePlayerPlaying),e.player.off("timeupdate",e.handlePlayerPlaying),e.core){var t=(e.core.getStats()||{}).fps;e.commonParams.fps=t}return A_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=BT((function(){try{var r=function(){if(Math.abs(Qb()-e.log.playing.timestamp-t)<100||Qb()-e.log.playing.timestamp>=t){var r=function(){if(e.player.video){var t=function(){if(!e.player.paused)return A_.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 A_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(jR){return A_.reject(jR)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(jR){return A_.reject(jR)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=eP(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=eP(),this.playResultTimer=ub((function(){e.log.play_result.timestamp>=e.log.play_result.start||(e.log.play_result.is_threshold=1,e.logmanager.push(e.log.play_result,!0))}),this.log.play_result.threshold)},t.handlePlayerWaiting=function(){var e=this;!this.inWaitingStart&&this.log.first_frame.timestamp&&(this.log.stall.timestamp=this.inWaitingStart=this.log.stall.stall_start=eP(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=eP(),this.log.stall_start.stall_start_time=eP(),this.log.stall_start.video_buffer_time=this.player.video.readyState,this.log.stall_start.play_current_time=this.player.currentTime,this.log.stall.play_current_time=this.player.currentTime,this.log.stall_start.buffered=this.getBuffered(),this.log.stall.buffered=this.log.stall_start.buffered,this.log.stall.current_speed=this.getPlayerDownloadSpeed(),X_(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=ub((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=eP();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=eP();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=eP(),this.log.playing.stall_count++,X_(this.log.stall,qT({},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(),X_(this.log.playing,qT({timestamp:eP(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing)},t.handleVideoerror=function(){var e=this;this.errorNumber=1;var t=this.player.video.error;X_(this.log.play_error,qT(qT({timestamp:eP()},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=nP[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=eP()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=nP[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"===ZT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===ZT.device&&window.removeEventListener("pagehide",this.handleUserLeave),Wb(aP).call(aP,(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(){!this.destroyed&&this.started&&(this.destroyed=!0,this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval(),this.clearStallTimer(),clearTimeout(this.collectDownloadSpeedTimer),this.removeWindowListener())},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(FD){}},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(FD){}},t.reportPlayStop=function(){this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered(),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=eP();X_(this.log.first_frame,qT({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){var e=function(e){var t,r=Bb(t=performance.getEntriesByType("resource")).call(t,(function(t){return t.name===e}));if(r.length){var n=r[0],i=r[r.length-1];return{dns_parse_time:GE(n.domainLookupEnd-n.domainLookupStart),redirect:GE(n.redirectEnd-n.redirectStart),ttfb:GE(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(this._url),t=eP();this.playedTime=t-this.log.start_play.start_play_time;var r=this.log.play_stop;X_(r,qT({},0===r.stall_count&&{stall_time:0})),this.inWaitingStart&&t-this.inWaitingStart>200&&(r.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,X_(r,qT({stall_time_per_100sec:r.stall_time/this.playedTime*100,stall_count_per_100sec:1e3*r.stall_count/this.playedTime*100},e)),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),this.log.play_stop.stall_time_per_100sec>100||this.log.play_stop.stall_time_per_100sec<0||(this.log.playing.index?(X_(this.log.playing,qT({timestamp:eP(),is_last:1},this.videoSize)),this.logmanager.push(this.log.playing,!0)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.info),t=eP(),X_(r,qT({timestamp:t,stop_time:t,duration:this.playedTime/1e3,play_time:this.playedTime/1e3},this.videoSize)),0===this.errorNumber&&(r.play_time_on_no_frame=r.stop_time-this.log.start_play.start_play_time))},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}(),cP=r(nu),uP=r(Ou),fP=ke,pP=TypeError,hP=function(e,t){if(!delete e[t])throw pP("Cannot delete property "+fP(t)+" of "+fP(e))},dP=Or,vP=Ye,gP=ei,yP=jr,mP=Br,_P=Du,wP=Wr,bP=On,SP=Xr,EP=hP,TP=An("splice"),PP=Math.max,RP=Math.min;dP({target:"Array",proto:!0,forced:!TP},{splice:function(e,t){var r,n,i,o,a,s,l=vP(this),c=mP(l),u=gP(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=RP(PP(yP(t),0),c-u)),wP(c+r-n),i=bP(l,n),o=0;o<n;o++)(a=u+o)in l&&SP(i,o,l[a]);if(i.length=n,r<n){for(o=u;o<c-n;o++)s=o+r,(a=o+n)in l?l[s]=l[a]:EP(l,s);for(o=c;o>c-n+r;o--)EP(l,o-1)}else if(r>n)for(o=c-n;o>u;o--)s=o+r-1,(a=o+n-1)in l?l[s]=l[a]:EP(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return _P(l,c-n+r),i}});var kP=zu("Array").splice,OP=se,xP=kP,IP=Array.prototype,MP=r((function(e){var t=e.splice;return e===IP||OP(IP,e)&&t===IP.splice?xP:t}));Or({global:!0,forced:parseFloat!=UT},{parseFloat:UT});var AP=r(te.parseFloat),CP=ml.PROPER,DP=o,LP=Tw,jP=Aw.trim;Or({target:"String",proto:!0,forced:function(e){return DP((function(){return!!LP[e]()||"​…᠎"!=="​…᠎"[e]()||CP&&LP[e].name!==e}))}("trim")},{trim:function(){return jP(this)}});var NP=zu("String").trim,UP=se,FP=NP,zP=String.prototype,BP=r((function(e){var t=e.trim;return"string"==typeof e||e===zP||UP(zP,e)&&t===zP.trim?FP:t})),VP=r(_h),WP=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),KP={exports:{}},HP=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),qP=o,XP=ee,GP=w,YP=HP,QP=Object.isExtensible,JP=qP((function(){QP(1)}))||YP?function(e){return!!XP(e)&&((!YP||"ArrayBuffer"!=GP(e))&&(!QP||QP(e)))}:QP,$P=Or,ZP=g,eR=ai,tR=ee,rR=$e,nR=Jt.f,iR=Vi,oR=Hi,aR=JP,sR=WP,lR=!1,cR=nt("meta"),uR=0,fR=function(e){nR(e,cR,{value:{objectID:"O"+uR++,weakData:{}}})},pR=KP.exports={enable:function(){pR.enable=function(){},lR=!0;var e=iR.f,t=ZP([].splice),r={};r[cR]=1,e(r).length&&(iR.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===cR){t(n,i,1);break}return n},$P({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oR.f}))},fastKey:function(e,t){if(!tR(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!rR(e,cR)){if(!aR(e))return"F";if(!t)return"E";fR(e)}return e[cR].objectID},getWeakData:function(e,t){if(!rR(e,cR)){if(!aR(e))return!0;if(!t)return!1;fR(e)}return e[cR].weakData},onFreeze:function(e){return sR&&lR&&aR(e)&&!rR(e,cR)&&fR(e),e}};eR[cR]=!0;var hR=KP.exports,dR=Or,vR=WP,gR=o,yR=ee,mR=hR.onFreeze,_R=Object.freeze;dR({target:"Object",stat:!0,forced:gR((function(){_R(1)})),sham:!vR},{freeze:function(e){return _R&&yR(e)?_R(mR(e)):e}});var wR=r(te.Object.freeze),bR=ra.map;Or({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return bR(this,e,arguments.length>1?arguments[1]:void 0)}});var SR,ER=zu("Array").map,TR=se,PR=ER,RR=Array.prototype,kR=r((function(e){var t=e.map;return e===RR||TR(RR,e)&&t===RR.map?PR:t})),OR=r(Mr),xR=function(){return xR=X_||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xR.apply(this,arguments)};function IR(e,t){var r="function"==typeof cP&&uP(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function MR(){for(var e=[],t=0;t<arguments.length;t++)e=M_(e).call(e,IR(arguments[t]));return e}var AR,CR,DR,LR,jR,NR=function(){function e(){this._hooks={},this._cache=[],this._hooksCache={}}return e.prototype.on=function(e,t){e&&t&&"function"==typeof t&&(this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t))},e.prototype.once=function(e,t){var r=this;e&&t&&"function"==typeof t&&this.on(e,(function n(i){t(i),r.off(e,n)}))},e.prototype.off=function(e,t){if(e&&this._hooks[e]&&this._hooks[e].length)if(t){var r,n,i=qb(r=this._hooks[e]).call(r,t);-1!==i&&MP(n=this._hooks[e]).call(n,i,1)}else this._hooks[e]=[]},e.prototype.emit=function(e,t,r){if(r){var n;if(!e)return;-1!==qb(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&&Wb(r=MR(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===qb(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),UR=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},FR=(AR=+Qb()+Number(fb(SR=""+Math.random()).call(SR,2,8)),function(){return AR+=1}),zR=function(e){var t=document.createElement("a");return t.href=e,t},BR=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?zR(r).hostname:"";!function(e){var t={};try{var r,n=zR(e).search;Wb(r=(n=fb(n).call(n,1)).split("&")).call(r,(function(e){var r,n,i=e.split("=");i.length&&(r=i[0],n=i[1]);try{t[r]=decodeURIComponent(void 0===n?"":n)}catch(o){t[r]=n}}))}catch(i){}}(window.location.href);var i=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web",o=this.browser(),a=this.os();return{browser:o.browser,browser_version:o.browser_version,platform:i,os_name:a.os_name,os_version:a.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(a.os_name),language:t,referrer:r,referrer_host:n}},e.prototype.browser=function(){var e,t,r="",n=""+AP(this.appVersion),i=this.userAgent;return-1!==qb(i).call(i,"Edge")||-1!==qb(i).call(i,"Edg")?(r="Microsoft Edge",-1!==qb(i).call(i,"Edge")?(e=qb(i).call(i,"Edge"),n=i.substring(e+5)):(e=qb(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=qb(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=qb(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=qb(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==qb(i).call(i,"MQQBrowser")||-1!==qb(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==qb(i).call(i,"MQQBrowser")?(e=qb(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==qb(i).call(i,"QQBrowser")&&(e=qb(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==qb(i).call(i,"Chrome")?-1!==(e=qb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=qb(i).call(i,"360"))?(r="360browser",n=i.substring(qb(i).call(i,"Chrome")+7)):-1!==qb(i).call(i,"baidubrowser")||-1!==qb(i).call(i,"BIDUBrowser")?(-1!==qb(i).call(i,"baidubrowser")?(e=qb(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==qb(i).call(i,"BIDUBrowser")&&(e=qb(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=qb(i).call(i,"xiaomi"))?-1!==qb(i).call(i,"openlanguagexiaomi")?(r="openlanguage xiaomi",n=i.substring(e+7,e+13)):(r="xiaomi",n=i.substring(e-7,e-1)):-1!==(e=qb(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=qb(i).call(i,"Chrome"))||-1!==(e=qb(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==qb(i).call(i,"Safari")?-1!==(e=qb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=qb(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=qb(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=qb(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=qb(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=qb(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=qb(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=qb(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=qb(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=qb(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=qb(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o,a,s=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},l=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?fb(r).call(r,1)[0]:""};switch(/Windows/.test(e)&&(t=s(/Windows (.*)/,e),e="windows"),e){case"Mac OS X":t=l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":(a=s(/Android ([\.\_\d]+)/,o=this.userAgent))||(a=s(/Android\/([\.\_\d]+)/,o)),t=a,e="android";break;case"iOS":t=this.isNewIpad()?l("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent):(t=/OS (\d+)_(\d+)_?(\d+)?/.exec(this.appVersion))?t[1]+"."+t[2]+"."+(0|t[3]):"",e="ios"}return{os_name:e,os_version:t}},e.prototype.getDeviceModel=function(e){var t="";try{var r;if("android"===e)Wb(r=navigator.userAgent.split(";")).call(r,(function(e){qb(e).call(e,"Build/")>-1&&(t=fb(e).call(e,0,qb(e).call(e,"Build/")))}));else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=qb(n).call(n,";");t=fb(n).call(n,0,i)}}catch(o){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}(),VR=(CR=function(e,t){e.exports=function(){function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}return function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(Qb()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+a}}return VP({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),a=fb(o).call(o,1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=r.read(a,s),e===s)break}catch(l){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:wR(n)},converter:{value:wR(r)}})}({read:function(e){return'"'===e[0]&&(e=fb(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:"/"})}()},CR(DR={exports:{}}),DR.exports),WR=VR,KR=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}(),HR={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:hT(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return WR.get(e,{domain:t||document.domain})}catch(r){return""}},setCookie:function(e,t,r,n){try{var i=n||document.domain,o=+new Date+r;WR.set(e,t,{expires:new Date(o),path:"/",domain:i})}catch(a){}},isSupportLS:function(){try{return localStorage.setItem("_ranger-test-key","hi"),localStorage.getItem("_ranger-test-key"),localStorage.removeItem("_ranger-test-key"),!0}catch(jR){return!1}}()},qR={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:hT(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(jR){return!1}}()},XR=function(){function e(e,t){this._storage=t&&"session"===t?qR:!e&&HR.isSupportLS?HR:new KR}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}(),GR={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},YR=void 0,QR=(new Date).getTimezoneOffset(),JR=qw(""+-QR/60,10),$R=60*QR,ZR=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new BR(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new XR(!1,"session"),this.localStorage=new XR(!1,"local");var i=this.localStorage.getItem(n);i&&1==i?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,"1")),this.envInfo={user:{user_unique_id:YR,user_type:YR,user_id:YR,user_is_auth:YR,user_is_login:YR,device_id:YR,web_id:YR,user_unique_id_type:YR},header:{app_id:YR,app_name:YR,app_install_id:YR,install_id:YR,app_package:YR,app_channel:YR,app_version:YR,ab_version:YR,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:YR,traffic_type:YR,client_ip:YR,device_brand:YR,os_api:YR,access:YR,language:r.language,region:YR,app_language:YR,app_region:YR,creative_id:YR,ad_id:YR,campaign_id:YR,log_type:YR,rnd:YR,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:YR,city:YR,timezone:JR,tz_offset:$R,tz_name:YR,sim_region:YR,carrier:YR,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:YR,utm_content:YR,utm_source:YR,utm_medium:YR,utm_campaign:YR,custom:{},wechat_unionid:YR,wechat_openid:YR}},this.evtParams={},this.reportErrorCallback=function(){},this.initDomain()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof r){var n,i=[];r=r<=25?r:r%25;var o=String.fromCharCode(r+97);n=e.split(o);for(var a=0;a<n.length;a++){var s=qw(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(GR[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;Wb(t=Fb(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=xR({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=xR({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?qb(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(hT(this.envInfo[e])):JSON.parse(hT(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(jR=LR||(LR={})).Init="init",jR.Config="config",jR.Start="start",jR.Ready="ready",jR.TokenComplete="token-complete",jR.TokenStorage="token-storage",jR.TokenFetch="token-fetch",jR.TokenError="token-error",jR.ConfigUuid="config-uuid",jR.TokenChange="token-change",jR.TokenReset="token-reset",jR.SessionReset="session-reset",jR.SessionResetTime="session-reset-time",jR.Event="event",jR.Events="events",jR.EventNow="event-now",jR.CleanEvents="clean-events",jR.BeconEvent="becon-event";var ek=LR;function tk(e,t,r,n,i,o,a,s,l){try{var c=new XMLHttpRequest,u=s||"POST";c.open(u,""+e,!0),c.setRequestHeader("Content-Type","application/json; charset=utf-8"),r&&(c.timeout=r,c.ontimeout=function(){o&&o(t,5005)}),c.onload=function(){if(i){var e=null;if(c.responseText){try{e=JSON.parse(c.responseText)}catch(r){e={}}i(e,t)}}},c.onerror=function(){c.abort(),o&&o(t,500)},l?c.send(t):c.send(hT(t))}catch(f){}}var rk,nk=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 XR(!0),this.localStorage=new XR(!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(ek.Ready,(function(){r.reportAll(!1)})),this.collect.on(ek.Event,(function(e){r.event(e)})),this.collect.on(ek.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=MR(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=ub((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=MR(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=fb(e).call(e,r,r+this.eventLimit);var i=this.split(this.merge(n));this.send(i,t)}else i=this.split(this.merge(e)),this.send(i,t)},e.prototype.merge=function(e){var t=this,r=this.configManager.get(),n=r.header,i=r.user;n.custom=hT(n.custom);var o=this.configManager.get("evtParams"),a=kR(e).call(e,(function(e){try{return Fb(o).length&&(e.params=xR({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=hT(e.params),e}catch(jR){return e}})),s=[];if(!Fb(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(hT({events:a,user:i,header:n}));return l.local_time=Math.floor(Qb()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return kR(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&Wb(e).call(e,(function(e){try{if(!e.length)return;n=r.reportUrl,i=e,o=r.timeout,a=function(e,t){},s=function(e,t){r.configManager.get("reportErrorCallback")(e,t)},!1,t&&window.navigator&&window.navigator.sendBeacon?window.navigator.sendBeacon(n,hT(i))||s(n,i):tk(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+hT(l.stack))}var n,i,o,a,s}))},e}(),ik=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},ok=function(){var e;return fb(e=ik().replace(/-/g,"")).call(e,0,19)},ak=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 XR(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(ek.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=ok();tk(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=Qb(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(ek.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===qb(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),i=this.cacheToken&&this.cacheToken.user_unique_id;if(r===n&&r===i)return;this.configManager.set({user_unique_id:r}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=r,this.cacheToken.timestamp=Qb(),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=Qb(),this.setStorage(this.cacheToken)),this.collect.emit(ek.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}(),sk=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)}))},lk=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new XR(!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(ek.SessionReset,(function(){r.resetSessionId()})),this.collect.on(ek.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Qb()-t>this.expireTime?e={sessionId:sk(),timestamp:Qb()}:e.timestamp=Qb(),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=Qb():t={sessionId:sk(),timestamp:Qb()},this.storage.setItem(this.sessionKey,t),this.sessionExp=BT((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=BT((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:sk(),timestamp:Qb()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&Qb()-e.timestamp+30>=this.expireTime&&(e={sessionId:sk(),timestamp:Qb()},this.storage.setItem(this.sessionKey,e))},e}(),ck=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 NR,this.Types=ek,this.adapters.fetch=tk,this.adapters.storage=XR}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&UR(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!==qb(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 ZR(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new nk,this.tokenManager=new ak,this.sessionManager=new lk,A_.all([new A_((function(e){n.once(ek.TokenComplete,(function(){e(!0)}))})),new A_((function(e){n.once(ek.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(ek.Ready),console.info("appid: "+e.app_id+", userInfo:"+hT(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(ek.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&&UR(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=xR({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&qb(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof zb){var i=0;for(n=zb(e);i<n.length;i++)qb(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["user_unique_id"]);t.hasOwnProperty("user_unique_id")&&this.emit(ek.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(ek.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];OR(e)?Wb(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(ek.Event,n),this.emit(ek.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(OR(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(ek.BeconEvent,r),this.emit(ek.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=fb(e).call(e,6));var n=t;"object"!=fh(n)&&(n={}),n.event_index=FR();var i=void 0;return n.local_ms?(i=n.local_ms,delete n.local_ms):i=+new Date,{event:r,params:n,local_time_ms:i}}catch(o){return{event:e,params:t}}},e.prototype.on=function(e,t){this.hook.on(e,t)},e.prototype.once=function(e,t){this.hook.once(e,t)},e.prototype.off=function(e,t){this.hook.off(e,t)},e.prototype.emit=function(e,t,r){this.hook.emit(e,t,r)},e.prototype.set=function(e){this.hook.set(e)},e.prototype.pageView=function(){this.disableAutoPageView||this.predefinePageView()},e.prototype.predefinePageView=function(e){void 0===e&&(e={});var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:Qb(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=xR({},t,e);this.event("predefine_pageview",r)},e}(),uk=new ck("default"),fk=new Uint8Array(16);function pk(){var e;if(!rk&&!(rk="undefined"!=typeof crypto&&crypto.getRandomValues&&Ew(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rk(fk)}for(var hk,dk=[],vk=0;vk<256;++vk){var gk;dk.push(fb(gk=(vk+256).toString(16)).call(gk,1))}var yk={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&Ew(hk=crypto.randomUUID).call(hk,crypto)};function mk(e,t,r){if(yk.randomUUID&&!t&&!e)return yk.randomUUID();var n=(e=e||{}).random||(e.rng||pk)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return dk[e[t+0]]+dk[e[t+1]]+dk[e[t+2]]+dk[e[t+3]]+"-"+dk[e[t+4]]+dk[e[t+5]]+"-"+dk[e[t+6]]+dk[e[t+7]]+"-"+dk[e[t+8]]+dk[e[t+9]]+"-"+dk[e[t+10]]+dk[e[t+11]]+dk[e[t+12]]+dk[e[t+13]]+dk[e[t+14]]+dk[e[t+15]]}(n)}var _k=window.VePlayer.util,wk="veplayer_live_device_id",bk="veplayer_live_user_id",Sk=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},Ek=function(e){var t=_k.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:_k.appendSearchParams(e,{_session_id:Tk()}):null!=e?e:""},Tk=function(){return mk().replace(/-/g,"")+"."+Qb()+"."+function(e){for(var t=0,r=0,n=(e+="").length,i=0;i<n;i++)((t=31*t+e.charCodeAt(r++))>0x7fffffffffff||t<-0x800000000000)&&(t&=0xffffffffffff);return t<0&&(t+=0x7ffffffffffff),t}(mk().replace(/-/g,""))},Pk=function(e){s_(r,e);var t=P_(r);function r(){var e,n;xm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(T_(n=t.call.apply(t,M_(e=[this]).call(e,o))),"_userId",void 0),vh(T_(n),"_deviceId",void 0),vh(T_(n),"_liveLogger",void 0),n}return Mm(r,[{key:"afterCreate",value:function(){var e,t,r,n;this.config.enable&&(this.config.appId?(this._userId=(null===(e=this.config)||void 0===e?void 0:e.userId)||((r=localStorage.getItem(bk))||(r=Sk(12),localStorage.setItem(bk,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(wk))||(n=Sk(11),localStorage.setItem(wk,n),n)),this.open()):console.info("not found appId, please generate an appId"))}},{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==uk?void 0:uk.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){uk.init({app_id:468759,channel:"cn"}),uk.start(),uk.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new sP({Tea:uk,player:this.player,aid:this.config.appId,project_key:this.config.appId,app_name:this.config.appName||this.config.appId,user_id:this._userId,device_id:this._deviceId,ext:{veplayer_version:"2.3.1-rc.0",flv_version:"3.0.17",hls_version:"3.0.17",rts_version:"0.2.0-alpha.5"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function Rk(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var kk=window.VePlayer.util,Ok=window.VePlayer.Plugin,xk=window.VePlayer.XGUtil,Ik=function(e){s_(r,e);var t=P_(r);function r(){var e,n;xm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(T_(n=t.call.apply(t,M_(e=[this]).call(e,o))),"_pollTimer",void 0),vh(T_(n),"_visible",void 0),vh(T_(n),"_playPlugin",void 0),n}return Mm(r,[{key:"_streamType",get:function(){return kk.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Mb.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Mb.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(cT(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(Mb.LOADED_DATA,(function(){return e.open()})),this.player.off(Mb.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=ub((function(){e._tick()}),this.config.interval)}},{key:"_getStats",value:function(){var e;return null===(e=this._playPlugin)||void 0===e?void 0:e.getStats()}},{key:"_getPanelData",value:function(){var e,t,r,n,i=this._getStats()||{},o="".concat(this._streamType,"_live"),a=this._playPlugin.softDecode,s=[(e=yh(yh({},i),{},{format:o}),{rows:[{key:"format",labelTextKey:"FORMAT",value:null!==(t=null==e?void 0:e.format)&&void 0!==t?t:"-"},{key:"fps",labelTextKey:"FPS",value:Rk(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:Rk(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:Rk(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:M_(r="".concat(Rk(e.height)," * ")).call(r,Rk(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:Rk(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:Rk(e.currentTime,(function(e){return e.toFixed(6)+"s"}))}]})];return a&&s.push(function(e){return{titleTextKey:"DECODE_INFO",rows:[{key:"decodeEfficiency",labelTextKey:"DECODE_EFFICIENCY",value:Rk(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:Rk(e.decodeFps,(function(e){return(e?(1e3/e).toFixed():0)+"ms"}))}]}}(i)),s}},{key:"_renderPanel",value:function(){var e=this,t=this._getPanelData(),r=this.root;r&&(r.innerHTML="",Wb(t).call(t,(function(t){e._renderGroup(r,t)})))}},{key:"_renderGroup",value:function(e,t){var r=this,n=t.title,i=t.titleTextKey,o=t.rows,a=this.player.config.i18nManager;if(n||i){var s,l=this._genTitleDom(null!==(s=a.getText(i))&&void 0!==s?s:n);e.appendChild(l)}Wb(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=xk.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=xk.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=xk.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=xk.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=xk.createDom("xg-live-panel",e.value);return r.appendChild(i),r}}],[{key:"pluginName",get:function(){return"infoPanel"}},{key:"defaultConfig",get:function(){return{visible:!1,interval:500}}}]),r}(Ok),Mk=yh(yh({},window.VePlayer.EN),{},{INVALID_PARAMETER:"The imported parameter is empty, please pass in necessary parameters such as the stream address",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"}),Ak=yh(yh({},window.VePlayer.ZH_CN),{},{INVALID_PARAMETER:"入参为空,请传入流地址等必要参数",FORMAT:"格式",FPS:"帧率",BITRATE:"码率",GOP:"GOP",RESOLUTION:"视频分辨率",ENCODE_TYPE:"编码方式",BUFFER_END:"Buffer 水位",CURRENT_TIME:"播放进度",DECODE_EFFICIENCY:"解码效率",DECODE_COST:"解码消耗",DECODE_INFO:"软解信息",REFRESH:"刷新"}),Ck=["getDrmConfig"],Dk=window.VePlayer.DynamicModule,Lk=window.VePlayer.load,jk=function(){var e=Om(dm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,p,h;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=mw(t.drm),!t.url||n!==yw.Fairplay){e.next=18;break}return e.prev=2,a=null!==(i=null==t||null===(o=t.drm)||void 0===o?void 0:o.fairplay)&&void 0!==i?i:{},s=a.getDrmConfig,l=Rm(a,Ck),e.next=6,A_.all([Lk(Dk.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return c=e.sent,u=$f(c,2),f=u[0],p=u[1],h=X_({},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)}}(),Nk={"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: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]"},Uk=function(e){return e.BizVod="biz:vod",e.BizLive="biz:live",e.PluginFlv="plugin:flv",e.PluginMp4="plugin:mp4",e.PluginHls="plugin:hls",e.PluginShaka="plugin:shaka",e.PluginRtm="plugin:rtm",e.PluginXgvideo="plugin:xgvideo",e.PluginDrm="plugin:drm",e.PluginAbr="plugin:abr",e}(Uk||{}),Fk=function(){function e(t){var r=this;xm(this,e),vh(this,"modules",{}),vh(this,"mountPromiseMap",{}),vh(this,"_baseUrl",void 0),vh(this,"_moduleSystem",void 0),vh(this,"load",function(){var e=Om(dm().mark((function e(t,n){var i,o,a,s,l;return dm().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(Nk[t]){e.next=4;break}throw new Error('Invalid module name: "'.concat(t,'"'));case 4:if("esm"!==r._moduleSystem){e.next=11;break}if(r.modules[t]){e.next=9;break}throw new Error('Dynamic module "'.concat(t,'" not found, you have to register it first under ESM'));case 9:return o=r.modules[t].exports,e.abrupt("return",null!==(i=o.default)&&void 0!==i?i:o);case 11:if(!r.modules[t]){e.next=21;break}if(1!==r.modules[t].state){e.next=16;break}return e.abrupt("return",r.modules[t].exports);case 16:if(0!==r.modules[t].state){e.next=20;break}return e.abrupt("return",r.mountPromiseMap[t].then((function(e){var t;return null!==(t=e.default)&&void 0!==t?t:e})));case 20:throw null!==(a=r.modules[t].error)&&void 0!==a?a:new Error('Dynamic module "'.concat(t,'" load failed.'));case 21:return s=[r._baseUrl,Nk[t]].join("/").replace("[env]","production").replace("[ext]","js"),l={src:null!=n?n:s,name:t,state:0,exports:{__PLUGIN_NAME__:t}},r.modules[t]=l,r.mountPromiseMap[t]=r._mount(l),e.abrupt("return",r.mountPromiseMap[t]);case 26:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),vh(this,"registerPlugin",(function(e,t){if(!r._moduleSystem)throw new Error("You have to specify moduleSystem first, call setModuleSystem(moduleSystem) to set module system");return"esm"===r._moduleSystem?(r.modules[e]={src:"esm:".concat(e),name:e,state:1,exports:t},r.modules[e].exports):(r.modules[e]?r.modules[e].exports=t:r.modules[e]={src:"umd:".concat(e),name:e,state:1,exports:t},r.modules[e].exports)})),vh(this,"register",(function(e){return kR(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return Mm(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 A_((function(r,n){var i=document.createElement("script");i.src=e.src,i.onload=function(){e.state=1,r(t[e.name].exports),i.onload=null},i.onerror=function(t){e.state=2,e.error=t,n(t),i.onerror=null},document.body.appendChild(i)}))}}]),e}(),zk=r(ch),Bk=r(Gf),Vk=r(ph);function Wk(e){return(Wk="function"==typeof cP&&"symbol"==typeof zk?function(e){return typeof e}:function(e){return e&&"function"==typeof cP&&e.constructor===cP&&e!==cP.prototype?"symbol":typeof e})(e)}function Kk(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),Ub(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[Vk];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===fh(o)?o:String(o)),n)}var i,o}function Hk(e){return function(e){if(OR(e))return qk(e)}(e)||function(e){if(void 0!==cP&&null!=uP(e)||null!=e["@@iterator"])return Bk(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return qk(e,t);var n=fb(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Bk(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qk(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 qk(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 Xk=ra.some;Or({target:"Array",proto:!0,forced:!Ep("some")},{some:function(e){return Xk(this,e,arguments.length>1?arguments[1]:void 0)}});var Gk=zu("Array").some,Yk=se,Qk=Gk,Jk=Array.prototype,$k=r((function(e){var t=e.some;return e===Jk||Yk(Jk,e)&&t===Jk.some?Qk:t})),Zk=jr,eO=Yn,tO=G,rO=RangeError,nO=g,iO=Fr,oO=Yn,aO=G,sO=nO((function(e){var t=eO(tO(this)),r="",n=Zk(e);if(n<0||n==1/0)throw rO("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),lO=nO("".slice),cO=Math.ceil,uO=function(e){return function(t,r,n){var i,o,a=oO(aO(t)),s=iO(r),l=a.length,c=void 0===n?" ":oO(n);return s<=l||""==c?a:((o=sO(c,cO((i=s-l)/c.length))).length>i&&(o=lO(o,0,i)),e?a+o:o+a)}},fO={start:uO(!1),end:uO(!0)},pO=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),hO=fO.start;Or({target:"String",proto:!0,forced:pO},{padStart:function(e){return hO(this,e,arguments.length>1?arguments[1]:void 0)}});var dO=zu("String").padStart,vO=se,gO=dO,yO=String.prototype,mO=r((function(e){var t=e.padStart;return"string"==typeof e||e===yO||vO(yO,e)&&t===yO.padStart?gO:t})),_O=ra.every;Or({target:"Array",proto:!0,forced:!Ep("every")},{every:function(e){return _O(this,e,arguments.length>1?arguments[1]:void 0)}});var wO=zu("Array").every,bO=se,SO=wO,EO=Array.prototype,TO=r((function(e){var t=e.every;return e===EO||bO(EO,e)&&t===EO.every?SO:t})),PO=le.match(/firefox\/(\d+)/i),RO=!!PO&&+PO[1],kO=/MSIE|Trident/.test(le),OO=le.match(/AppleWebKit\/(\d+)\./),xO=!!OO&&+OO[1],IO=Or,MO=g,AO=Me,CO=Ye,DO=Br,LO=hP,jO=Yn,NO=o,UO=sS,FO=Ep,zO=RO,BO=kO,VO=ve,WO=xO,KO=[],HO=MO(KO.sort),qO=MO(KO.push),XO=NO((function(){KO.sort(void 0)})),GO=NO((function(){KO.sort(null)})),YO=FO("sort"),QO=!NO((function(){if(VO)return VO<70;if(!(zO&&zO>3)){if(BO)return!0;if(WO)return WO<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)KO.push({k:t+n,v:r})}for(KO.sort((function(e,t){return t.v-e.v})),n=0;n<KO.length;n++)t=KO[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));IO({target:"Array",proto:!0,forced:XO||!GO||!YO||!QO},{sort:function(e){void 0!==e&&AO(e);var t=CO(this);if(QO)return void 0===e?HO(t):HO(t,e);var r,n,i=[],o=DO(t);for(n=0;n<o;n++)n in t&&qO(i,t[n]);for(UO(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:jO(t)>jO(r)?1:-1}}(e)),r=DO(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)LO(t,n++);return t}});var JO,$O=zu("Array").sort,ZO=se,ex=$O,tx=Array.prototype,rx=r((function(e){var t=e.sort;return e===tx||ZO(tx,e)&&t===tx.sort?ex:t})),nx="undefined"!=typeof window&&window.location&&qb(JO=window.location.href).call(JO,"xgplayerdebugger=1")>-1,ix="color: #525252; background-color: #90ee90;",ox="color: #525252; background-color: red;",ax="color: #525252; background-color: yellow; ",sx="%c[xgplayer]",lx={config:{debug:nx?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,M_(t=[sx,ix,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,M_(t=[sx,ax,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,M_(t=[sx,ox,e]).call(t,o))}}},cx=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}}])&&Kk(t.prototype,r),n&&Kk(t,n),Ub(t,"prototype",{writable:!1}),e}(),ux={};ux.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,Wb(e=Fb(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},ux.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&ux.addClass(i,r),t)Wb(o=Fb(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return lx.logError("util.createDomFromHtml",a),null}},ux.hasClass=function(e,t){if(!e||!t)return!1;try{return $k(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(jR){var r=e.className&&"object"===Wk(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},ux.addClass=function(e,t){if(e&&t)try{var r;Wb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(jR){ux.hasClass(e,t)||(e.className&&"object"===Wk(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},ux.removeClass=function(e,t){if(e&&t)try{var r;Wb(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(jR){var n;if(ux.hasClass(e,t))Wb(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===Wk(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},ux.toggleClass=function(e,t){var r;e&&Wb(r=t.split(/\s+/g)).call(r,(function(t){ux.hasClass(e,t)?ux.removeClass(e,t):ux.addClass(e,t)}))},ux.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===ux.typeOf(e[r]))t.push(e[r]);else if("Object"===ux.typeOf(e[r])){var n;kR(n=Fb(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},ux.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(jR){lx.logError("util.findDom",jR),0===qb(r).call(r,"#")&&(e=t.getElementById(fb(r).call(r,1)))}return e},ux.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},ux.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s},ux.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=mO(ux).call(ux,Math.floor(e/3600),2,0),r=mO(ux).call(ux,Math.floor((e-3600*t)/60),2,0),n=mO(ux).call(ux,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},ux.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},ux.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},ux.deepCopy=function(e,t){var r;if("Object"===ux.typeOf(t)&&"Object"===ux.typeOf(e))return Wb(r=Fb(t)).call(r,(function(r){if("Object"!==ux.typeOf(t[r])||t[r]instanceof Node)if("Array"===ux.typeOf(t[r])){var n;e[r]="Array"===ux.typeOf(e[r])?M_(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]:ux.deepCopy(e[r],t[r])})),e},ux.deepMerge=function(e,t){var r;return kR(r=Fb(t)).call(r,(function(r){var n;"Array"===ux.typeOf(t[r])&&"Array"===ux.typeOf(e[r])?"Array"===ux.typeOf(e[r])&&(n=e[r]).push.apply(n,Hk(t[r])):ux.typeOf(e[r])!==ux.typeOf(t[r])||null===e[r]||"Object"!==ux.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):ux.deepMerge(e[r],t[r])})),e},ux.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},ux.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Wb(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},ux.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=BT(Ew(r).call(r,e),n))},ux.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},ux.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=ub((function(){t(),ux.clearTimeout(e,n)}),r);return e._timers.push(n),n},ux.clearTimeout=function(e,t){var r=e._timers;if("Array"===ux.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){MP(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},ux.clearAllTimers=function(e){var t=e._timers;"Array"===ux.typeOf(t)&&(kR(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},ux.createImgBtn=function(e,t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g=ux.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(TO(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(qb(r).call(r,e)>-1&&qb(n).call(n,e)>-1)||(u=AP(BP(t=fb(r).call(r,0,qb(r).call(r,e))).call(t)),f=AP(BP(i=fb(n).call(n,0,qb(n).call(n,e))).call(i)),p=e,!1)})),g.style.width=M_(o="".concat(u)).call(o,p),g.style.height=M_(a="".concat(f)).call(a,p),g.style.backgroundSize=M_(s=M_(l=M_(c="".concat(u)).call(c,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?M_(h=M_(d=M_(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,u/2)).call(h,p):"auto 5px auto 5px");return g},ux.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(qw(e,16))})),M_(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},ux.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},ux.checkIsFunction=function(e){return e&&"function"==typeof e},ux.checkIsObject=function(e){return null!==e&&"object"===Wk(e)},ux.hide=function(e){e.style.display="none"},ux.show=function(e,t){e.style.display=t||"block"},ux.isUndefined=function(e){if(null==e)return!0},ux.isNotNull=function(e){return!(null==e)},ux.setStyleFromCsstext=function(e,t){if(t)if("String"===ux.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");kR(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;kR(n=Fb(t)).call(n,(function(r){e.style[r]=t[r]}))}},ux.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return kR(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(qb(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),kR(t=Fb(a)).call(t,(function(t){e.style[t]=a[t]})),o},ux.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return kR(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},ux.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}},ux.stopPropagation=function(e){e&&e.stopPropagation()},ux.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},ux.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},ux.checkTouchSupport=function(){return"ontouchstart"in window},ux.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)});rx(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var s=i[a-1].end;r[o].start-s<t?r[o].end>s&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new cx(i)},ux.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}},ux.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},ux.getHostFromUrl=function(e){if("String"!==ux.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},ux.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},ux.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},ux.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},ux.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=qw(e)}catch(jR){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=qw(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)}))},ux.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},ux.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},ux.createPositionBar=function(e,t){var r=ux.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},ux.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:M_(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Fb(n);return Wb(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=M_(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},ux.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},ux.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},ux.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:ux.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,s=o.end,l=o.cTime,c=o.offset;return e<a?l:e>=a&&e<=s?e-c:e>s&&n>=i-1?s:-1},ux.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var fx,px=/(Android)\s([\d.]+)/,hx=/(Version)\/([\d.]+)/,dx=["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","avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],vx={get device(){return vx.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 M_(e=[]).call(e,Bb(t=Fb(n)).call(t,(function(e){return n[e].test(r)})))[0]},get os(){if("undefined"==typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),r=/(?:SymbianOS)/.test(e)||t,n=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,a=o||n&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),s=/(?:iPhone)/.test(e)&&!a;return{isTablet:a,isPhone:s,isIpad:o,isIos:s||o,isAndroid:n,isPc:!(s||n||r||a),isSymbian:r,isWindowsPhone:t,isFireFox:i}},get osVersion(){if("undefined"==typeof navigator)return 0;var e=navigator.userAgent,t="",r=(t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?hx:px)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?qw(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&&kR(dx).call(dx,(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(FD){return this._logger.error(e,FD),!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 A_.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var r=e.video||{},n=e.audio||{};try{var i=MediaSource.isTypeSupported(r.contentType),o=MediaSource.isTypeSupported(n.contentType);return A_.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(jR){return A_.resolve(t)}}},gx=g,yx=2147483647,mx=/[^\0-\u007E]/,_x=/[.\u3002\uFF0E\uFF61]/g,wx="Overflow: input needs wider integers to process",bx=RangeError,Sx=gx(_x.exec),Ex=Math.floor,Tx=String.fromCharCode,Px=gx("".charCodeAt),Rx=gx([].join),kx=gx([].push),Ox=gx("".replace),xx=gx("".split),Ix=gx("".toLowerCase),Mx=function(e){return e+22+75*(e<26)},Ax=function(e,t,r){var n=0;for(e=r?Ex(e/700):e>>1,e+=Ex(e/t);e>455;)e=Ex(e/35),n+=36;return Ex(n+36*e/(e+38))},Cx=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Px(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Px(e,r++);56320==(64512&o)?kx(t,((1023&i)<<10)+(1023&o)+65536):(kx(t,i),r--)}else kx(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&kx(t,Tx(n));var l=t.length,c=l;for(l&&kx(t,"-");c<i;){var u=yx;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>Ex((yx-a)/f))throw bx(wx);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>yx)throw bx(wx);if(n==o){for(var p=a,h=36;;){var d=h<=s?1:h>=s+26?26:h-s;if(p<d)break;var v=p-d,g=36-d;kx(t,Tx(Mx(d+v%g))),p=Ex(v/g),h+=36}kx(t,Tx(Mx(p))),s=Ax(a,f,c==l),a=0,c++}}a++,o++}return Rx(t,"")},Dx=Or,Lx=x,jx=Zb,Nx=i,Ux=Qt,Fx=g,zx=oo,Bx=so,Vx=Cd,Wx=$e,Kx=H_,Hx=Bf,qx=Ji,Xx=hu.codeAt,Gx=function(e){var t,r,n=[],i=xx(Ox(Ix(e),_x,"."),".");for(t=0;t<i.length;t++)r=i[t],kx(n,Sx(mx,r)?"xn--"+Cx(r):r);return Rx(n,".")},Yx=Yn,Qx=Ao,Jx=Kd,$x=SE,Zx=Go,eI=Zx.set,tI=Zx.getterFor("URL"),rI=$x.URLSearchParams,nI=$x.getState,iI=Nx.URL,oI=Nx.TypeError,aI=Nx.parseInt,sI=Math.floor,lI=Math.pow,cI=Fx("".charAt),uI=Fx(/./.exec),fI=Fx([].join),pI=Fx(1..toString),hI=Fx([].pop),dI=Fx([].push),vI=Fx("".replace),gI=Fx([].shift),yI=Fx("".split),mI=Fx("".slice),_I=Fx("".toLowerCase),wI=Fx([].unshift),bI="Invalid scheme",SI="Invalid host",EI="Invalid port",TI=/[a-z]/i,PI=/[\d+-.a-z]/i,RI=/\d/,kI=/^0x/i,OI=/^[0-7]+$/,xI=/^\d+$/,II=/^[\da-f]+$/i,MI=/[\0\t\n\r #%/:<>?@[\\\]^|]/,AI=/[\0\t\n\r #/:<>?@[\\\]^|]/,CI=/^[\u0000-\u0020]+/,DI=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,LI=/[\t\n\r]/g,jI=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)wI(t,e%256),e=sI(e/256);return fI(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=pI(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},NI={},UI=Kx({},NI,{" ":1,'"':1,"<":1,">":1,"`":1}),FI=Kx({},UI,{"#":1,"?":1,"{":1,"}":1}),zI=Kx({},FI,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),BI=function(e,t){var r=Xx(e,0);return r>32&&r<127&&!Wx(t,e)?e:encodeURIComponent(e)},VI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},WI=function(e,t){var r;return 2==e.length&&uI(TI,cI(e,0))&&(":"==(r=cI(e,1))||!t&&"|"==r)},KI=function(e){var t;return e.length>1&&WI(mI(e,0,2))&&(2==e.length||"/"===(t=cI(e,2))||"\\"===t||"?"===t||"#"===t)},HI=function(e){return"."===e||"%2e"===_I(e)},qI={},XI={},GI={},YI={},QI={},JI={},$I={},ZI={},eM={},tM={},rM={},nM={},iM={},oM={},aM={},sM={},lM={},cM={},uM={},fM={},pM={},hM=function(e,t,r){var n,i,o,a=Yx(e);if(t){if(i=this.parse(a))throw oI(i);this.searchParams=null}else{if(void 0!==r&&(n=new hM(r,!0)),i=this.parse(a,null,n))throw oI(i);(o=nI(new rI)).bindURL(this),this.searchParams=o}};hM.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||qI,u=0,f="",p=!1,h=!1,d=!1;for(e=Yx(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=vI(e,CI,""),e=vI(e,DI,"$1")),e=vI(e,LI,""),n=Hx(e);u<=n.length;){switch(i=n[u],c){case qI:if(!i||!uI(TI,i)){if(t)return bI;c=GI;continue}f+=_I(i),c=XI;break;case XI:if(i&&(uI(PI,i)||"+"==i||"-"==i||"."==i))f+=_I(i);else{if(":"!=i){if(t)return bI;f="",c=GI,u=0;continue}if(t&&(l.isSpecial()!=Wx(VI,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&VI[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=oM:l.isSpecial()&&r&&r.scheme==l.scheme?c=YI:l.isSpecial()?c=ZI:"/"==n[u+1]?(c=QI,u++):(l.cannotBeABaseURL=!0,dI(l.path,""),c=uM)}break;case GI:if(!r||r.cannotBeABaseURL&&"#"!=i)return bI;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=qx(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=pM;break}c="file"==r.scheme?oM:JI;continue;case YI:if("/"!=i||"/"!=n[u+1]){c=JI;continue}c=eM,u++;break;case QI:if("/"==i){c=tM;break}c=cM;continue;case JI:if(l.scheme=r.scheme,i==fx)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=qx(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=$I;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=qx(r.path),l.query="",c=fM;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=qx(r.path),l.path.length--,c=cM;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=qx(r.path),l.query=r.query,l.fragment="",c=pM}break;case $I:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=cM;continue}c=tM}else c=eM;break;case ZI:if(c=eM,"/"!=i||"/"!=cI(f,u+1))continue;u++;break;case eM:if("/"!=i&&"\\"!=i){c=tM;continue}break;case tM:if("@"==i){p&&(f="%40"+f),p=!0,o=Hx(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||d){var y=BI(g,zI);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==fx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(p&&""==f)return"Invalid authority";u-=Hx(f).length+1,f="",c=rM}else f+=i;break;case rM:case nM:if(t&&"file"==l.scheme){c=sM;continue}if(":"!=i||h){if(i==fx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return SI;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=lM,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return SI;if(a=l.parseHost(f))return a;if(f="",c=iM,t==nM)return}break;case iM:if(!uI(RI,i)){if(i==fx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=aI(f,10);if(m>65535)return EI;l.port=l.isSpecial()&&m===VI[l.scheme]?null:m,f=""}if(t)return;c=lM;continue}return EI}f+=i;break;case oM:if(l.scheme="file","/"==i||"\\"==i)c=aM;else{if(!r||"file"!=r.scheme){c=cM;continue}if(i==fx)l.host=r.host,l.path=qx(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=qx(r.path),l.query="",c=fM;else{if("#"!=i){KI(fI(qx(n,u),""))||(l.host=r.host,l.path=qx(r.path),l.shortenPath()),c=cM;continue}l.host=r.host,l.path=qx(r.path),l.query=r.query,l.fragment="",c=pM}}break;case aM:if("/"==i||"\\"==i){c=sM;break}r&&"file"==r.scheme&&!KI(fI(qx(n,u),""))&&(WI(r.path[0],!0)?dI(l.path,r.path[0]):l.host=r.host),c=cM;continue;case sM:if(i==fx||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&WI(f))c=cM;else if(""==f){if(l.host="",t)return;c=lM}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=lM}continue}f+=i;break;case lM:if(l.isSpecial()){if(c=cM,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=fx&&(c=cM,"/"!=i))continue}else l.fragment="",c=pM;else l.query="",c=fM;break;case cM:if(i==fx||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=_I(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||dI(l.path,"")):HI(f)?"/"==i||"\\"==i&&l.isSpecial()||dI(l.path,""):("file"==l.scheme&&!l.path.length&&WI(f)&&(l.host&&(l.host=""),f=cI(f,0)+":"),dI(l.path,f)),f="","file"==l.scheme&&(i==fx||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)gI(l.path);"?"==i?(l.query="",c=fM):"#"==i&&(l.fragment="",c=pM)}else f+=BI(i,FI);break;case uM:"?"==i?(l.query="",c=fM):"#"==i?(l.fragment="",c=pM):i!=fx&&(l.path[0]+=BI(i,NI));break;case fM:t||"#"!=i?i!=fx&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":BI(i,NI)):(l.fragment="",c=pM);break;case pM:i!=fx&&(l.fragment+=BI(i,UI))}u++}},parseHost:function(e){var t,r,n;if("["==cI(e,0)){if("]"!=cI(e,e.length-1))return SI;if(t=function(e){var t,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,p=function(){return cI(e,f)};if(":"==p()){if(":"!=cI(e,1))return;f+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&uI(II,p());)t=16*t+aI(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(i=null,n>0){if(!("."==p()&&n<4))return;f++}if(!uI(RI,p()))return;for(;uI(RI,p());){if(o=aI(p(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;f++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}(mI(e,1,-1)),!t)return SI;this.host=t}else if(this.isSpecial()){if(e=Gx(e),uI(MI,e))return SI;if(t=function(e){var t,r,n,i,o,a,s,l=yI(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=l[n]))return e;if(o=10,i.length>1&&"0"==cI(i,0)&&(o=uI(kI,i)?16:8,i=mI(i,8==o?1:2)),""===i)a=0;else{if(!uI(10==o?xI:8==o?OI:II,i))return e;a=aI(i,o)}dI(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=lI(256,5-t))return null}else if(a>255)return null;for(s=hI(r),n=0;n<r.length;n++)s+=r[n]*lI(256,3-n);return s}(e),null===t)return SI;this.host=t}else{if(uI(AI,e))return SI;for(t="",r=Hx(e),n=0;n<r.length;n++)t+=BI(r[n],NI);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Wx(VI,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&WI(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=jI(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+fI(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw oI(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new dM(e.path[0]).origin}catch(FD){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+jI(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Yx(e)+":",qI)},getUsername:function(){return this.username},setUsername:function(e){var t=Hx(Yx(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=BI(t[r],zI)}},getPassword:function(){return this.password},setPassword:function(e){var t=Hx(Yx(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=BI(t[r],zI)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?jI(e):jI(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,rM)},getHostname:function(){var e=this.host;return null===e?"":jI(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,nM)},getPort:function(){var e=this.port;return null===e?"":Yx(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Yx(e))?this.port=null:this.parse(e,iM))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+fI(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,lM))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Yx(e))?this.query=null:("?"==cI(e,0)&&(e=mI(e,1)),this.query="",this.parse(e,fM)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Yx(e))?("#"==cI(e,0)&&(e=mI(e,1)),this.fragment="",this.parse(e,pM)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var dM=function(e){var t=Vx(this,vM),r=Jx(arguments.length,1)>1?arguments[1]:void 0,n=eI(t,new hM(e,!1,r));Lx||(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())},vM=dM.prototype,gM=function(e,t){return{get:function(){return tI(this)[e]()},set:t&&function(e){return tI(this)[t](e)},configurable:!0,enumerable:!0}};if(Lx&&(Bx(vM,"href",gM("serialize","setHref")),Bx(vM,"origin",gM("getOrigin")),Bx(vM,"protocol",gM("getProtocol","setProtocol")),Bx(vM,"username",gM("getUsername","setUsername")),Bx(vM,"password",gM("getPassword","setPassword")),Bx(vM,"host",gM("getHost","setHost")),Bx(vM,"hostname",gM("getHostname","setHostname")),Bx(vM,"port",gM("getPort","setPort")),Bx(vM,"pathname",gM("getPathname","setPathname")),Bx(vM,"search",gM("getSearch","setSearch")),Bx(vM,"searchParams",gM("getSearchParams")),Bx(vM,"hash",gM("getHash","setHash"))),zx(vM,"toJSON",(function(){return tI(this).serialize()}),{enumerable:!0}),zx(vM,"toString",(function(){return tI(this).serialize()}),{enumerable:!0}),iI){var yM=iI.createObjectURL,mM=iI.revokeObjectURL;yM&&zx(dM,"createObjectURL",Ux(yM,iI)),mM&&zx(dM,"revokeObjectURL",Ux(mM,iI))}Qx(dM,"URL"),Dx({global:!0,constructor:!0,forced:!jx,sham:!Lx},{URL:dM});var _M=Or,wM=o,bM=Kd,SM=Yn,EM=Zb,TM=ae("URL");_M({target:"URL",stat:!0,forced:!(EM&&wM((function(){TM.canParse()})))},{canParse:function(e){var t=bM(arguments.length,1),r=SM(e),n=t<2||void 0===arguments[1]?void 0:SM(arguments[1]);try{return!!new TM(r,n)}catch(FD){return!1}}});var PM=r(te.URL),RM=Or,kM=i,OM=hR,xM=o,IM=gr,MM=rd,AM=Cd,CM=k,DM=ee,LM=Ao,jM=Jt.f,NM=ra.forEach,UM=x,FM=Go.set,zM=Go.getterFor,BM=Bi,VM=so,WM=tS,KM=Qt,HM=Cd,qM=H,XM=rd,GM=gc,YM=yc,QM=Id,JM=x,$M=hR.fastKey,ZM=Go.set,eA=Go.getterFor,tA={getConstructor:function(e,t,r,n){var i=e((function(e,i){HM(e,o),ZM(e,{type:t,index:BM(null),first:void 0,last:void 0,size:0}),JM||(e.size=0),qM(i)||XM(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=eA(t),s=function(e,t,r){var n,i,o=a(e),s=l(e,t);return s?s.value=r:(o.last=s={index:i=$M(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),JM?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var r,n=a(e),i=$M(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return WM(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,JM?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=l(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),JM?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=KM(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)}}),WM(o,r?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),JM&&VM(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=eA(t),o=eA(n);GM(e,t,(function(e,t){ZM(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?YM("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,YM(void 0,!0))}),r?"entries":"values",!r,!0),QM(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=kM[e],l=s&&s.prototype,c={};if(UM&&CM(s)&&(o||l.forEach&&!xM((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){FM(AM(t,u),{type:e,collection:new s}),null!=r&&MM(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=zM(e);NM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||IM(u,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!DM(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||jM(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),OM.enable();LM(n,e,!1,!0),c[e]=n,RM({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),tA);var rA=te.Map,nA=Qt,iA=A,oA=Me,aA=Nd,sA=H,lA=rd,cA=[].push,uA=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return aA(this),(t=void 0!==a)&&oA(a),sA(e)?new this:(r=[],t?(n=0,i=nA(a,o>2?arguments[2]:void 0),lA(e,(function(e){iA(cA,r,i(e,n++))}))):lA(e,cA,{that:r}),new this(r))};Or({target:"Map",stat:!0,forced:!0},{from:uA});var fA=Rs,pA=function(){return new this(fA(arguments))};Or({target:"Map",stat:!0,forced:!0},{of:pA});var hA=ke,dA=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(hA(e)+" is not a map")},vA=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},gA=ae("Map"),yA={Map:gA,set:vA("set",2),get:vA("get",1),has:vA("has",1),remove:vA("delete",1),proto:gA.prototype},mA=dA,_A=yA.remove;Or({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=mA(this),r=!0,n=0,i=arguments.length;n<i;n++)e=_A(t,arguments[n]),r=r&&e;return!!r}});var wA=dA,bA=yA.get,SA=yA.has,EA=yA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=wA(this);return SA(i,e)?(r=bA(i,e),"update"in t&&(r=t.update(r,e,i),EA(i,e,r)),r):(n=t.insert(e,i),EA(i,e,n),n)}});var TA=A,PA=function(e,t,r){for(var n,i,o=r||e.next;!(n=TA(o,e)).done;)if(void 0!==(i=t(n.value)))return i},RA=function(e,t,r){return r?PA(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},kA=Qt,OA=dA,xA=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=OA(this),r=kA(e,arguments.length>1?arguments[1]:void 0);return!1!==xA(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var IA=Qt,MA=dA,AA=RA,CA=yA.Map,DA=yA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=MA(this),r=IA(e,arguments.length>1?arguments[1]:void 0),n=new CA;return AA(t,(function(e,i){r(e,i,t)&&DA(n,i,e)})),n}});var LA=Qt,jA=dA,NA=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=jA(this),r=LA(e,arguments.length>1?arguments[1]:void 0),n=NA(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var UA=Qt,FA=dA,zA=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=FA(this),r=UA(e,arguments.length>1?arguments[1]:void 0),n=zA(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var BA=Or,VA=A,WA=k,KA=Me,HA=rd,qA=yA.Map,XA=g([].push);BA({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(WA(this)?this:qA);KA(t);var n=KA(r.has),i=KA(r.get),o=KA(r.set);return HA(e,(function(e){var a=t(e);VA(n,r,a)?XA(VA(i,r,a),e):VA(o,r,a,[e])})),r}});var GA=function(e,t){return e===t||e!=e&&t!=t},YA=dA,QA=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===QA(YA(this),(function(t){if(GA(t,e))return!0}),!0)}});var JA=A,$A=rd,ZA=k,eC=Me,tC=yA.Map;Or({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(ZA(this)?this:tC);eC(t);var n=eC(r.set);return $A(e,(function(e){JA(n,r,t(e),e)})),r}});var rC=dA,nC=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=nC(rC(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var iC=Qt,oC=dA,aC=RA,sC=yA.Map,lC=yA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=oC(this),r=iC(e,arguments.length>1?arguments[1]:void 0),n=new sC;return aC(t,(function(e,i){lC(n,r(e,i,t),e)})),n}});var cC=Qt,uC=dA,fC=RA,pC=yA.Map,hC=yA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=uC(this),r=cC(e,arguments.length>1?arguments[1]:void 0),n=new pC;return fC(t,(function(e,i){hC(n,i,r(e,i,t))})),n}});var dC=dA,vC=rd,gC=yA.set;Or({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=dC(this),r=arguments.length,n=0;n<r;)vC(arguments[n++],(function(e,r){gC(t,e,r)}),{AS_ENTRIES:!0});return t}});var yC=Me,mC=dA,_C=RA,wC=TypeError;Or({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=mC(this),r=arguments.length<2,n=r?void 0:arguments[1];if(yC(e),_C(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw wC("Reduce of empty map with no initial value");return n}});var bC=Qt,SC=dA,EC=RA;Or({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=SC(this),r=bC(e,arguments.length>1?arguments[1]:void 0);return!0===EC(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var TC=Me,PC=dA,RC=TypeError,kC=yA.get,OC=yA.has,xC=yA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=PC(this),n=arguments.length;TC(t);var i=OC(r,e);if(!i&&n<3)throw RC("Updating absent value");var o=i?kC(r,e):TC(n>2?arguments[2]:void 0)(e,r);return xC(r,e,t(o,e,r)),r}});var IC=A,MC=Me,AC=k,CC=rr,DC=TypeError,LC=function(e,t){var r,n=CC(this),i=MC(n.get),o=MC(n.has),a=MC(n.set),s=arguments.length>2?arguments[2]:void 0;if(!AC(t)&&!AC(s))throw DC("At least one callback required");return IC(o,n,e)?(r=IC(i,n,e),AC(t)&&(r=t(r),IC(a,n,e,r))):AC(s)&&(r=s(),IC(a,n,e,r)),r};Or({target:"Map",proto:!0,real:!0,forced:!0},{upsert:LC}),Or({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:LC});var jC,NC,UC=r(rA);function FC(e,t,r){var n;E_()?FC=n_(n=S_).call(n):FC=function(e,t,r){var n=[null];Hu(n).apply(n,t);var i=new(n_(Function).apply(e,n));return r&&a_(i,r.prototype),i};return FC.apply(null,arguments)}function zC(e){var t="function"==typeof UC?new UC:void 0;return zC=function(e){if(null===e||(r=e,-1===Pm(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return FC(e,arguments,i_(this).constructor)}return i.prototype=wh(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a_(i,e)},zC(e)}var BC=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}(BC||{}),VC=(vh(jC={},2100,{messageTextKey:"NETWORK",level:"Error"}),vh(jC,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),vh(jC,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),vh(jC,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),vh(jC,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),vh(jC,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),vh(jC,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),vh(jC,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),vh(jC,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),vh(jC,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),vh(jC,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),vh(jC,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),jC);vh(NC={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),vh(NC,"network",{messageTextKey:"NETWORK",level:"Error"}),vh(NC,"demux",{messageTextKey:"DEMUX",level:"Error"}),vh(NC,"remux",{messageTextKey:"REMUX",level:"Error"}),vh(NC,"media",{messageTextKey:"MEDIA",level:"Error"}),vh(NC,"drm",{messageTextKey:"DRM",level:"Error"}),vh(NC,"other",{messageTextKey:"OTHER",level:"Error"}),vh(NC,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var WC,KC,HC=function(e){s_(r,e);var t=P_(r);function r(e,n){var i,o,a,s,l,c,u;xm(this,r);var f="string"==typeof e?{message:e}:e,p=null!==(i=null!==(o=null!==(a=null==n?void 0:n.getText(null==f?void 0:f.messageTextKey))&&void 0!==a?a:null==f?void 0:f.message)&&void 0!==o?o:null==f||null===(s=f.error)||void 0===s?void 0:s.message)&&void 0!==i?i:null==n?void 0:n.getText("UNKNOWN");return vh(T_(u=t.call(this,p)),"errorCode",void 0),vh(T_(u),"level",void 0),vh(T_(u),"ext",void 0),u.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",u.level=null!==(c=null==f?void 0:f.level)&&void 0!==c?c:"Error",u.ext=null==f?void 0:f.ext,u}return Mm(r)}(zC(Error));function qC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new HC(yh(yh({errorCode:e},VC[e]),t),r)}var XC=null!==(WC=null===(KC=document.currentScript)||void 0===KC?void 0:KC.src)&&void 0!==WC?WC:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.1-rc.0","/object/umd/"),GC=new Fk({baseUrl:fb(XC).call(XC,0,OT(XC).call(XC,"/"))});function YC(e,t){return QC.apply(this,arguments)}function QC(){return(QC=Om(dm().mark((function e(t,r){var n;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,GC.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),qC(BC.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]])})))).apply(this,arguments)}GC.registerPlugin,GC.register;var JC=function(e){return e.H265="h265",e.H264="h264",e}(JC||{}),$C=function(e){if(e){qE(e).call(e,"//")&&(e=location.protocol+e);try{return new PM(e)}catch(FD){return}}};function ZC(e){return function(t){var r;return null==t?void 0:cT(r=t.split("?")[0].toLowerCase()).call(r,e)}}var eD=ZC(".m3u8"),tD=ZC(".mp4"),rD=ZC(".flv"),nD=ZC(".sdp"),iD=ZC(".mpd");function oD(e){return eD(e)?"hls":rD(e)?"flv":nD(e)?"rtm":tD(e)?"mp4":iD(e)?"dash":"unknown"}function aD(){return(aD=Om(dm().mark((function e(){var t,r;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,YC(Uk.PluginXgvideo);case 2:return t=e.sent,r=t.XGVideoPlugin,e.abrupt("return",null==r?void 0:r.isSupported());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}yh(yh({},ux),{},{getStreamType:oD,isMseSupported:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:JC.H264)===JC.H265?vx.isHevcSupported():vx.isMSESupport()},isSoftDecodeSupported:function(){return aD.apply(this,arguments)},appendSearchParams:function(e,t){var r,n=$C(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var i,o=qE(e).call(e,"//");for(var a in t){var s,l,c=t[a];if(null!=n&&n.searchParams.has(a))null==n||null===(s=n.searchParams)||void 0===s||s.set(a,c);else null==n||null===(l=n.searchParams)||void 0===l||l.append(a,c)}return e=n.toString(),o?null===(i=e)||void 0===i?void 0:i.replace(location.protocol,""):e},getUrlObject:$C});var sD,lD=window.VePlayer.DynamicModule,cD=window.VePlayer.load,uD=function(){var e=Om(dm().mark((function e(t){var r,n,i,o,a;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("rtm"!==(i=t.url&&oD(t.url))){e.next=3;break}return e.abrupt("return",{});case 3:if(o="flv"===i?null==t||null===(r=t.flv)||void 0===r?void 0:r.abr:null==t||null===(n=t.hls)||void 0===n?void 0:n.abr){e.next=6;break}return e.abrupt("return",{});case 6:return e.next=8,cD(lD.PluginAbr).catch((function(){}));case 8:return a=e.sent,e.abrupt("return",{options:vh({},"flv"===i?"abr":"hlsabr",o),plugins:["flv"===i?null==a?void 0:a.AbrPlugin:null==a?void 0:a.HlsAbrPlugin]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fD=["abr"],pD=window.VePlayer.DEFAULT_PLUGINS,hD=window.VePlayer.VePlayerBase,dD=window.VePlayer.VeI18n;dD.extend([{LANG:"zh-cn",TEXT:Ak},{LANG:"en",TEXT:Mk}]);var vD={autoplay:{muted:!0}},gD=M_(sD=[]).call(sD,R_(pD),[Nb,Pk,Ik]),yD=function(e){return e.H264="h264",e}(yD||{}),mD=function(e){s_(n,e);var t,r=P_(n);function n(e){return xm(this,n),r.call(this,e)}return Mm(n,[{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;null===(e=this._player.plugins)||void 0===e||null===(e=e.abr)||void 0===e||e.switchAbr(!0)}},{key:"closeAbr",value:function(){var e;null===(e=this._player.plugins)||void 0===e||null===(e=e.abr)||void 0===e||e.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:"switch",value:(t=Om(dm().mark((function e(t,r){var i,o,a,s;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(i=null!=r?r:{}).abr,a=Rm(i,fD),o&&(null===(s=this._player)||void 0===s||null===(s=s.plugins)||void 0===s||null===(s=s.abr)||void 0===s||s.updateConfig(o)),e.abrupt("return",o_(i_(n.prototype),"switch",this).call(this,t,a));case 3:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),n}(hD);function _D(e){return wD.apply(this,arguments)}function wD(){return(wD=Om(dm().mark((function e(t){var r,n,i,o,a,s,l;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=void 0,t&&(t.url||t.playlist)){e.next=3;break}throw Z_(J_.INVALID_PARAMETER,new dD);case 3:return o=new dD({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=yh(yh({},t),{},{plugins:M_(r=[]).call(r,R_(gD),R_(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,hD.create(yh(yh(yh({},vD),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:Ek(e)}},preparePlugins:function(e){return Om(dm().mark((function t(){var r,n,o,s,l,c,u,f,p,h,d,v,g,y,m;return dm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A_.all([Sw(yh(yh({},a),{},{url:e}),i),jk(yh(yh({},a),{},{url:e}),i),uD(yh(yh({},a),{},{url:e}))]);case 2:return n=t.sent,o=$f(n,3),s=o[0],l=o[1],c=o[2],f=(u=null!=s?s:{}).options,p=u.plugins,d=(h=null!=l?l:{}).options,v=h.plugins,y=(g=null!=c?c:{}).options,m=g.plugins,t.abrupt("return",{options:X_({},f,d,y),plugins:M_(r=[]).call(r,R_(null!=p?p:[]),R_(null!=v?v:[]),R_(null!=m?m:[]))});case 11:case"end":return t.stop()}}),t)})))()}}),mD);case 7:return(i=e.sent)&&(l=null===(s=i)||void 0===s||null===(s=s._player)||void 0===s||null===(s=s.config)||void 0===s?void 0:s._RTMdegrade)&&i.emit("degrade",{originRtmUrl:l._originRtmUrl,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:l._isRTMSupported,isRTMSupportCodec:l._isRTMSupportCodec}),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var bD=Object.freeze({__proto__:null,ErrorCode:J_,Events:Mb}),SD=window.VePlayer.setModuleSystem,ED=window.VePlayer.Codec,TD=window.VePlayer.DecodeType,PD=window.VePlayer.Degradation,RD=window.VePlayer.POSITIONS,kD=window.VePlayer.register,OD=window.VePlayer.registerPlugin,xD=window.VePlayer.EN,ID=window.VePlayer.ZH_CN,MD=window.VePlayer.Plugin,AD=window.VePlayer.Sniffer,CD=window.VePlayer.DynamicModule,DD=window.VePlayer.util,LD=window.VePlayer.load,jD=window.VePlayer.ListType;SD("umd");var ND=DD.isMseSupported,UD=DD.isSoftDecodeSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(CD.BizLive,{createLivePlayer:_D}):OD(CD.BizLive,{createLivePlayer:_D}),e.Codec=ED,e.DecodeType=TD,e.Degradation=PD,e.DynamicModule=CD,e.EN=xD,e.ListType=jD,e.POSITIONS=RD,e.Plugin=MD,e.RTMCodec=yD,e.Sniffer=AD,e.ZH_CN=ID,e.createLivePlayer=_D,e.isMseSupported=ND,e.isRTMSupportCodec=iw,e.isRTMSupported=rw,e.isSoftDecodeSupported=UD,e.live=bD,e.load=LD,e.register=kD,e.registerPlugin=OD,e.util=DD}));