@volcengine/veplayer 2.4.2-rc.3 → 2.4.2-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_BIZ_LIVE__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,l=Function.prototype,c=l.apply,u=l.call,f="object"==typeof Reflect&&Reflect.apply||(s?u.bind(c):function(){return u.apply(c,arguments)}),p=a,h=Function.prototype,d=h.call,v=p&&h.bind.bind(d,d),g=p?v:function(e){return function(){return d.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,S=g,E=function(e){if("Function"===w(e))return S(e)},T="object"==typeof document&&document.all,P={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},R=P.all,k=P.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},O={},x=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),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=b,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})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=k,Ee=se,Te=Object,Pe=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&Ee(t.prototype,Te(e))},Re=String,ke=function(e){try{return Re(e)}catch(t){return"Object"}},Oe=k,xe=ke,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=be,ct=i.Symbol,ut=it("wks"),ft=lt?ct.for||ct:ct&&ct.withoutSetter||at,pt=function(e){return ot(ut,e)||(ut[e]=st&&ot(ct,e)?ct[e]:ft("Symbol."+e)),ut[e]},ht=A,dt=ee,vt=Pe,gt=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"),bt=function(e,t){if(!dt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!dt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Pe,St=function(e){var t=bt(e,"string");return wt(t)?t:t+""},Et=ee,Tt=i.document,Pt=Et(Tt)&&Et(Tt.createElement),Rt=function(e){return Pt?Tt.createElement(e):{}},kt=Rt,Ot=!x&&!o((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),xt=x,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,br=k,wr=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=wr(v,o))&&u.value:v[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?Tr(a,yr):e.wrap&&n?kr(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Pr(c,"sham",!0),Pr(g,o,c),d&&(Rr(Er,i=f+"Prototype")||Pr(Er,i,{}),Pr(Er[i],o,a),e.real&&y&&(r||!y[o])&&Pr(y,o,a)))},xr=b,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=b,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}},bn=function(e){if(!un(e))return!1;switch(fn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!yn(gn,pn(e))}catch(t){return!0}};bn.sham=!0;var wn=!vn||cn((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?bn:_n,Sn=Ir,En=wn,Tn=ee,Pn=pt("species"),Rn=Array,kn=function(e){var t;return Sn(e)&&(t=e.constructor,(En(t)&&(t===Rn||Sn(t.prototype))||Tn(t)&&null===(t=t[Pn]))&&(t=void 0)),void 0===t?Rn:t},On=function(e,t){return new(kn(e))(0===t?0:t)},xn=o,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,bi=rr,wi=J,Si=gi;Qn.f=yi&&!mi?Object.defineProperties:function(e,t){bi(e);for(var r,n=wi(t),i=Si(t),o=i.length,a=0;o>a;)_i.f(e,r=i[a++],n[r]);return e};var Ei,Ti=ae("document","documentElement"),Pi=nt,Ri=qe("keys"),ki=function(e){return Ri[e]||(Ri[e]=Pi(e))},Oi=rr,xi=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=b,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,bo=ae,wo=pt,So=oo,Eo=function(){var e=bo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wo("toPrimitive");t&&!t[n]&&So(t,n,(function(e){return _o(r,this)}),{arity:1})},To=rn,Po=Yr?{}.toString:function(){return"[object "+To(this)+"]"},Ro=Yr,ko=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,b=t?_(l,y):r||a?_(l,0):void 0;y>m;m++)if((s||m in v)&&(h=g(p=v[m],m,d),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:ea(b,p)}else switch(e){case 4:return!1;case 7:ea(b,p)}return o?-1:n||i?i:b}},ra={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},na=Or,ia=i,oa=A,aa=g,sa=x,la=_e,ca=o,ua=$e,fa=se,pa=rr,ha=J,da=St,va=Yn,ga=F,ya=Bi,ma=gi,_a=Vi,ba=Hi,wa=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=ba.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=ba.f=cs,wa.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 bs=Or,ws=$e,Ss=Pe,Es=ke,Ts=fs,Ps=qe("symbol-to-string-registry");bs({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(e){if(!Ss(e))throw TypeError(Es(e)+" is not a symbol");if(ws(Ps,e))return Ps[e]}});var Rs=g([].slice),ks=Ir,Os=k,xs=b,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})),bl=$e,wl=k,Sl=Ye,El=_l,Tl=ki("IE_PROTO"),Pl=Object,Rl=Pl.prototype,kl=El?Pl.getPrototypeOf:function(e){var t=Sl(e);if(bl(t,Tl))return t[Tl];var r=t.constructor;return wl(r)&&t instanceof r?r.prototype:t instanceof Pl?Rl:null},Ol=o,xl=k,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,bc=Go;Jt.f;var wc=gc,Sc=yc,Ec="Array Iterator",Tc=bc.set,Pc=bc.getterFor(Ec);wc(Array,"Array",(function(e,t){Tc(this,{type:Ec,target:mc(e),index:0,kind:t})}),(function(){var e=Pc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Sc(void 0,!0)):Sc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),_c.Arguments=_c.Array;var Rc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kc=i,Oc=rn,xc=gr,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(xD){}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(xD){}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",bu=gu.set,wu=gu.getterFor(_u);yu(String,"String",(function(e){bu(this,{type:_u,string:vu(e),index:0})}),(function(){var e,t=wu(this),r=t.string,n=t.index;return n>=r.length?mu(void 0,!0):(e=du(r,n),t.index+=e.length,mu(e,!1))}));var Su=rn,Eu=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(xD){return xD 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(xD){return xD 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=wn,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(xD){i=!0,n=xD}if("throw"===t)throw r;if(i)throw n;return df(n),r},yf=rr,mf=gf,_f=pl,bf=pt("iterator"),wf=Array.prototype,Sf=function(e){return void 0!==e&&(_f.Array===e||wf[bf]===e)},Ef=A,Tf=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(xD){mf(e,"throw",xD)}},Df=Sf,Lf=wn,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(xD){}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(xD){}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 bp=pp.exports,wp=r(bp),Sp=o,Ep=function(e,t){var r=[][e];return!!r&&Sp((function(){r.call(null,t||function(){return 1},1)}))},Tp=ra.forEach,Pp=Ep("forEach")?[].forEach:function(e){return Tp(this,e,arguments.length>1?arguments[1]:void 0)};Or({target:"Array",proto:!0,forced:[].forEach!=Pp},{forEach:Pp});var Rp=zu("Array").forEach,kp=rn,Op=$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 wp(e,t).enumerable}))),Hu(r).apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?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,wp(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)},bh=r(_h),wh=Ye,Sh=kl,Eh=_l;Or({target:"Object",stat:!0,forced:o((function(){Sh(1)})),sham:!Eh},{getPrototypeOf:function(e){return Sh(wh(e))}});var Th=r(te.Object.getPrototypeOf);Or({target:"Object",stat:!0},{setPrototypeOf:Zl});var Ph=r(te.Object.setPrototypeOf),Rh=$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(xD){$h(n,"throw",xD)}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(bd,this);sd?r=sd(yd(),n?ad(this):bd):(r=n?this:cd(bd),ud(r,gd,"Error")),void 0!==t&&ud(r,"message",vd(t)),hd(r,_d,r.stack,1),arguments.length>2&&pd(r,arguments[2]);var i=[];return dd(e,md,{that:i}),ud(r,"errors",i),r};sd?sd(_d,yd):ld(_d,yd,{name:!0});var bd=_d.prototype=cd(yd.prototype,{constructor:fd(1,_d),message:fd(1,""),name:fd(1,"AggregateError")});id({global:!0,constructor:!0,arity:2},{AggregateError:_d});var wd,Sd,Ed,Td,Pd="undefined"!=typeof process&&"process"==b(process),Rd=ae,kd=so,Od=x,xd=pt("species"),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=wn,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(){wd=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),wd.protocol+"//"+wd.host)};iv&&ov||(iv=function(e){tv(arguments.length,1);var t=Yd(e)?e:lv(e),r=Zd(arguments,1);return pv[++fv]=function(){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&&wd&&"file:"!==wd.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 bv,wv,Sv,Ev,Tv,Pv=_v,Rv=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,kv=/web0s(?!.*chrome)/i.test(le),Ov=i,xv=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(xD){throw Wv.head&&bv(),xD}e&&e.enter()};Cv||jv||Lv||!Nv||!Uv?!Dv&&zv&&zv.resolve?((Ev=zv.resolve(void 0)).constructor=zv,Tv=xv(Ev.then,Ev),bv=function(){Tv(Kv)}):jv?bv=function(){Fv.nextTick(Kv)}:(Mv=xv(Mv,Ov),bv=function(){Mv(Kv)}):(wv=!0,Sv=Uv.createTextNode(""),new Nv(Kv).observe(Sv,{characterData:!0}),bv=function(){Sv.data=wv=!wv}),Vv=function(e){Wv.head||bv(),Wv.add(e)}}var Hv=Vv,qv=function(e){try{return{error:!1,value:e()}}catch(xD){return{error:!0,value:xD}}},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,bg=oo,wg=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(xD){}},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(xD){u&&!i&&u.exit(),c(xD)}},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(xD){ay(r,xD,e)}})):(e.value=t,e.state=1,ey(e,!1))}catch(xD){ay({done:!1},xD,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(xD){ay(t,xD)}}).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=bg(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}),wg(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,by=qv,wy=rd;Or({target:"Promise",stat:!0,forced:cy},{race:function(e){var t=this,r=_y.f(t),n=r.reject,i=by((function(){var i=my(t.resolve);wy(e,(function(e){yy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Sy=A,Ey=ug;Or({target:"Promise",stat:!0,forced:cg.CONSTRUCTOR},{reject:function(e){var t=Ey.f(this);return Sy(t.reject,void 0,e),t.promise}});var Ty=rr,Py=ee,Ry=ug,ky=function(e,t){if(Ty(e),Py(t)&&t.constructor===e)return t;var r=Ry.f(e);return(0,r.resolve)(t),r.promise},Oy=Or,xy=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=bh(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var f={};function p(){}function h(){}function d(){}var v={};l(v,o,(function(){return this}));var g=Th&&Th(Th(P([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=d.prototype=p.prototype=bh(v);function m(e){var t;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 b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),Hu(t=this.tryEntries).call(t,r)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],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=bh(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=im);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),l(y,s,"Generator"),l(y,o,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)Hu(r).call(r,n);return 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}function vm(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(xD){return void r(xD)}s.done?t(l):im.resolve(l).then(n,i)}function gm(e){return function(){var t=this,r=arguments;return new im((function(n,i){var o=e.apply(t,r);function a(e){vm(o,n,i,a,s,"next",e)}function s(e){vm(o,n,i,a,s,"throw",e)}a(void 0)}))}}function ym(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mm(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 _m(e,t,r){return t&&mm(e.prototype,t),r&&mm(e,r),lh(e,"prototype",{writable:!1}),e}var bm=g,wm=Me,Sm=ee,Em=$e,Tm=Rs,Pm=a,Rm=Function,km=bm([].concat),Om=bm([].join),xm={},Im=Pm?Rm.bind:function(e){var t=wm(this),r=t.prototype,n=Tm(arguments,1),i=function(){var r=km(n,Tm(arguments));return this instanceof i?function(e,t,r){if(!Em(xm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";xm[t]=Rm("C,a","return new C("+Om(n,",")+")")}return xm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Sm(r)&&(i.prototype=r),i},Mm=Im;Or({target:"Function",proto:!0,forced:Function.bind!==Mm},{bind:Mm});var Am=zu("Function").bind,Cm=se,Dm=Am,Lm=Function.prototype,jm=function(e){var t=e.bind;return e===Lm||Cm(Lm,e)&&t===Lm.bind?Dm:t},Nm=r(jm);function Um(e,t){var r;return(Um=Ph?Nm(r=Ph).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function Fm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=bh(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lh(e,"prototype",{writable:!1}),t&&Um(e,t)}var zm=Or,Bm=f,Vm=Im,Wm=Nd,Km=rr,Hm=ee,qm=Bi,Xm=o,Gm=ae("Reflect","construct"),Ym=Object.prototype,Qm=[].push,Jm=Xm((function(){function e(){}return!(Gm((function(){}),[],e)instanceof e)})),$m=!Xm((function(){Gm((function(){}))})),Zm=Jm||$m;zm({target:"Reflect",stat:!0,forced:Zm,sham:Zm},{construct:function(e,t){Wm(e),Km(t);var r=arguments.length<3?e:Wm(arguments[2]);if($m&&!Jm)return Gm(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Bm(Qm,n,t),new(Bm(Vm,e,n))}var i=r.prototype,o=qm(Hm(i)?i:Ym),a=Bm(e,o,t);return Hm(a)?a:o}});var e_=r(te.Reflect.construct);function t_(e){var t;return(t_=Ph?Nm(t=Th).call(t):function(e){return e.__proto__||Th(e)})(e)}function r_(){if("undefined"==typeof Reflect||!e_)return!1;if(e_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(e_(Boolean,[],(function(){}))),!0}catch(kR){return!1}}function n_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i_(e){var t=r_();return function(){var r,n=t_(e);if(t){var i=t_(this).constructor;r=e_(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 n_(e)}(this,r)}}function o_(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 a_=zu("Array").concat,s_=se,l_=a_,c_=Array.prototype,u_=r((function(e){var t=e.concat;return e===c_||s_(c_,e)&&t===c_.concat?l_:t})),f_=r(nm),p_=x,h_=g,d_=A,v_=o,g_=gi,y_=no,m_=C,__=Ye,b_=K,w_=Object.assign,S_=Object.defineProperty,E_=h_([].concat),T_=!w_||v_((function(){if(p_&&1!==w_({b:1},w_(S_({},"a",{enumerable:!0,get:function(){S_(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!=w_({},e)[r]||g_(w_({},t)).join("")!=n}))?function(e,t){for(var r=__(e),n=arguments.length,i=1,o=y_.f,a=m_.f;n>i;)for(var s,l=b_(arguments[i++]),c=o?E_(g_(l),o(l)):g_(l),u=c.length,f=0;u>f;)s=c[f++],p_&&!d_(a,l,s)||(r[s]=l[s]);return r}:w_,P_=T_;Or({target:"Object",stat:!0,arity:2,forced:Object.assign!==P_},{assign:P_});var R_=r(te.Object.assign),k_=window.VePlayer.error,O_=k_.VeError,x_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(x_||{});k_.Level;var I_=yh(yh({},x_),k_.ErrorCode),M_=yh(yh({},k_.ERROR_INFO),{},vh({},210,{messageTextKey:"INVALID_PARAMETER",level:k_.Level.Fatal}));function A_(e,t){return new O_(M_[e],t)}var C_=Or,D_=oi.indexOf,L_=Ep,j_=E([].indexOf),N_=!!j_&&1/j_([1],1,-0)<0;C_({target:"Array",proto:!0,forced:N_||!L_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return N_?j_(this,e,t)||0:D_(this,e,t)}});var U_=zu("Array").indexOf,F_=se,z_=U_,B_=Array.prototype,V_=function(e){var t=e.indexOf;return e===B_||F_(B_,e)&&t===B_.indexOf?z_:t},W_=r(V_);function K_(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],W_(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],W_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var H_=window.VePlayer.DynamicModule,q_=window.VePlayer.load;function X_(){return G_.apply(this,arguments)}function G_(){return(G_=gm(dm().mark((function e(){var t,r;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q_(H_.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 Y_(){return Q_.apply(this,arguments)}function Q_(){return Q_=gm(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]:sD.H264,e.next=3,q_(H_.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==sD.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)}))),Q_.apply(this,arguments)}var J_=["fallbackUrl","enableFallback","enableRTMAutoTranscode"],$_=window.VePlayer.strategy,Z_=window.VePlayer.util,eb=window.VePlayer.DynamicModule,tb=window.VePlayer.load,rb=window.VePlayer.Codec,nb=window.VePlayer.Sniffer,ib={options:{},module:eb.PluginRtm},ob=function(e){return"pc"===nb.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},ab=function(){var e=gm(dm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,p,h,d,v,g,y,m,_,b,w,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=K_(s,J_),h=u?!l&&a?ob(a):l:"","flv"===(d=h&&Z_.getStreamType(h))&&Z_.isMseSupported(rb.H264)?o=$_.createFlvMseStrategy(t):"hls"===d&&("mobile"!==nb.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&Z_.isMseSupported(rb.H264)&&(o=$_.createHlsMseStrategy(t)),e.next=7,f_.all([tb(ib.module).then((function(e){return e.RtmPlugin})).catch((function(){})),o&&tb(o.module).then((function(e){var t,r;return(null===(t=o)||void 0===t?void 0:t.module)===eb.PluginFlv?e.FlvPlugin:(null===(r=o)||void 0===r?void 0:r.module)===eb.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,f_.all([X_(),Y_()]);case 13:if(_=e.sent,b=$f(_,2),w=b[0],S=b[1],w&&S){e.next=20;break}return r&&r.emit("degrade",{url:h,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:w,isRTMSupportCodec:S}),e.abrupt("return",{options:yh(yh({},(null===(E=o)||void 0===E?void 0:E.options)||{}),{},{url:h,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:w,_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?Z_.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)}}(),sb=window.VePlayer.Sniffer,lb=function(e){return e.Fairplay="fairplay",e}(lb||{});function cb(e){if(null!=e&&e.fairplay&&("safari"===sb.browser||sb.os.isIos))return"fairplay"}function ub(e){var t=e.drm,r=e.streamType,n=cb(t);return!n||("fairplay"!==n||"hls"!==r)}var fb=window.VePlayer.util,pb=window.VePlayer.strategy,hb=function(){var e=gm(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?fb.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,ab(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,pb.getFlvStrategy(t);case 11:if("hls"!==n){e.next=17;break}if(ub({drm:t.drm,streamType:n})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,pb.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)}}(),db=r(jm),vb="\t\n\v\f\r                 \u2028\u2029\ufeff",gb=G,yb=Yn,mb=vb,_b=g("".replace),bb=RegExp("^["+mb+"]+"),wb=RegExp("(^|[^"+mb+"])["+mb+"]+$"),Sb=function(e){return function(t){var r=yb(gb(t));return 1&e&&(r=_b(r,bb,"")),2&e&&(r=_b(r,wb,"$1")),r}},Eb={start:Sb(1),end:Sb(2),trim:Sb(3)},Tb=i,Pb=o,Rb=g,kb=Yn,Ob=Eb.trim,xb=vb,Ib=Tb.parseInt,Mb=Tb.Symbol,Ab=Mb&&Mb.iterator,Cb=/^[+-]?0x/i,Db=Rb(Cb.exec),Lb=8!==Ib(xb+"08")||22!==Ib(xb+"0x16")||Ab&&!Pb((function(){Ib(Object(Ab))}))?function(e,t){var r=Ob(kb(e));return Ib(r,t>>>0||(Db(Cb,r)?16:10))}:Ib;Or({global:!0,forced:parseInt!=Lb},{parseInt:Lb});var jb,Nb=r(te.parseInt),Ub="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Fb=i,zb=f,Bb=k,Vb=Ub,Wb=le,Kb=Rs,Hb=Kd,qb=Fb.Function,Xb=/MSIE .\./.test(Wb)||Vb&&((jb=Fb.Bun.version.split(".")).length<3||0==jb[0]&&(jb[1]<3||3==jb[1]&&0==jb[2])),Gb=function(e,t){var r=t?2:1;return Xb?function(n,i){var o=Hb(arguments.length,1)>r,a=Bb(n)?n:qb(n),s=o?Kb(arguments,r):[],l=o?function(){zb(a,this,s)}:a;return t?e(l,i):e(l)}:e},Yb=Or,Qb=i,Jb=Gb(Qb.setInterval,!0);Yb({global:!0,bind:!0,forced:Qb.setInterval!==Jb},{setInterval:Jb});var $b=Or,Zb=i,ew=Gb(Zb.setTimeout,!0);$b({global:!0,bind:!0,forced:Zb.setTimeout!==ew},{setTimeout:ew});var tw=r(te.setTimeout),rw=r(ff),nw=NaN,iw="[object Symbol]",ow=/^\s+|\s+$/g,aw=/^[-+]0x[0-9a-f]+$/i,sw=/^0b[01]+$/i,lw=/^0o[0-7]+$/i,cw=Nb,uw="object"==fh(t)&&t&&t.Object===Object&&t,fw="object"==("undefined"==typeof self?"undefined":fh(self))&&self&&self.Object===Object&&self,pw=uw||fw||Function("return this")(),hw=Object.prototype.toString,dw=Math.max,vw=Math.min,gw=function(){return pw.Date.now()};function yw(e){var t=fh(e);return!!e&&("object"==t||"function"==t)}function mw(e){return"symbol"==fh(e)||function(e){return!!e&&"object"==fh(e)}(e)&&hw.call(e)==iw}function _w(e){if("number"==typeof e)return e;if(mw(e))return nw;if(yw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=yw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ow,"");var r=sw.test(e);return r||lw.test(e)?cw(rw(e).call(e,2),r?2:8):aw.test(e)?nw:+e}var bw=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=gw();if(d(e))return g(e);s=tw(v,function(e){var r=t-(e-l);return f?vw(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=gw(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=tw(v,t),u?h(e):a}(l);if(f)return s=tw(v,t),h(l)}return void 0===s&&(s=tw(v,t)),a}return t=_w(t)||0,yw(r)&&(u=!!r.leading,o=(f="maxWait"in r)?dw(_w(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(gw())},y},ww=r(bw),Sw=yh(yh({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function Ew(){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 Tw=window.VePlayer.Plugin,Pw=window.VePlayer.Sniffer,Rw=window.VePlayer.XGEvents,kw=Tw.POSITIONS,Ow=function(e){Fm(r,e);var t=i_(r);function r(){return ym(this,r),t.apply(this,arguments)}return _m(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Ew,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(Sw.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(Rw.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=ww(db(e=this._handleRefresh).call(e,this),200);var t="mobile"===Pw.device?"touchend":"click";db(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:kw.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(Tw),xw=r(sh),Iw=r(tp),Mw=r(np),Aw=r(up),Cw=r(bp),Dw=r(Cp),Lw=r(Hp),jw=r(Zp),Nw=r(V_),Uw=Or,Fw=Date,zw=g(Fw.prototype.getTime);Uw({target:"Date",stat:!0},{now:function(){return zw(new Fw)}});var Bw=r(te.Date.now),Vw=o,Ww=pt("iterator"),Kw=!Vw((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[Ww]||"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})),Hw=oo,qw=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Hw(e,n,t[n],r);return e},Xw=Ji,Gw=Math.floor,Yw=function(e,t){var r=e.length,n=Gw(r/2);return r<8?Qw(e,t):Jw(e,Yw(Xw(e,0,n),t),Yw(Xw(e,n),t),t)},Qw=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},Jw=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},$w=Yw,Zw=Or,eS=i,tS=A,rS=g,nS=x,iS=Kw,oS=oo,aS=so,sS=qw,lS=Ao,cS=Kl,uS=Go,fS=Cd,pS=k,hS=$e,dS=Qt,vS=rn,gS=rr,yS=ee,mS=Yn,_S=Bi,bS=F,wS=xf,SS=ku,ES=Kd,TS=$w,PS=pt("iterator"),RS="URLSearchParams",kS=RS+"Iterator",OS=uS.set,xS=uS.getterFor(RS),IS=uS.getterFor(kS),MS=Object.getOwnPropertyDescriptor,AS=function(e){if(!nS)return eS[e];var t=MS(eS,e);return t&&t.value},CS=AS("fetch"),DS=AS("Request"),LS=AS("Headers"),jS=DS&&DS.prototype,NS=LS&&LS.prototype,US=eS.RegExp,FS=eS.TypeError,zS=eS.decodeURIComponent,BS=eS.encodeURIComponent,VS=rS("".charAt),WS=rS([].join),KS=rS([].push),HS=rS("".replace),qS=rS([].shift),XS=rS([].splice),GS=rS("".split),YS=rS("".slice),QS=/\+/g,JS=Array(4),$S=function(e){return JS[e-1]||(JS[e-1]=US("((?:%[\\da-f]{2}){"+e+"})","gi"))},ZS=function(e){try{return zS(e)}catch(xD){return e}},eE=function(e){var t=HS(e,QS," "),r=4;try{return zS(t)}catch(xD){for(;r;)t=HS(t,$S(r--),ZS);return t}},tE=/[!'()~]|%20/g,rE={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},nE=function(e){return rE[e]},iE=function(e){return HS(BS(e),tE,nE)},oE=cS((function(e,t){OS(this,{type:kS,iterator:wS(xS(e).entries),kind:t})}),"Iterator",(function(){var e=IS(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),aE=function(e){this.entries=[],this.url=null,void 0!==e&&(yS(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===VS(e,0)?YS(e,1):e:mS(e)))};aE.prototype={type:RS,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=SS(e);if(l)for(r=(t=wS(e,l)).next;!(n=tS(r,t)).done;){if(o=(i=wS(gS(n.value))).next,(a=tS(o,i)).done||(s=tS(o,i)).done||!tS(o,i).done)throw FS("Expected sequence with length 2");KS(this.entries,{key:mS(a.value),value:mS(s.value)})}else for(var c in e)hS(e,c)&&KS(this.entries,{key:c,value:mS(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=GS(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=GS(t,"="),KS(this.entries,{key:eE(qS(r)),value:eE(WS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],KS(r,iE(e.key)+"="+iE(e.value));return WS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var sE=function(){fS(this,lE);var e=OS(this,new aE(arguments.length>0?arguments[0]:void 0));nS||(this.length=e.entries.length)},lE=sE.prototype;if(sS(lE,{append:function(e,t){ES(arguments.length,2);var r=xS(this);KS(r.entries,{key:mS(e),value:mS(t)}),nS||this.length++,r.updateURL()},delete:function(e){ES(arguments.length,1);for(var t=xS(this),r=t.entries,n=mS(e),i=0;i<r.length;)r[i].key===n?XS(r,i,1):i++;nS||(this.length=r.length),t.updateURL()},get:function(e){ES(arguments.length,1);for(var t=xS(this).entries,r=mS(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){ES(arguments.length,1);for(var t=xS(this).entries,r=mS(e),n=[],i=0;i<t.length;i++)t[i].key===r&&KS(n,t[i].value);return n},has:function(e){ES(arguments.length,1);for(var t=xS(this).entries,r=mS(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){ES(arguments.length,1);for(var r,n=xS(this),i=n.entries,o=!1,a=mS(e),s=mS(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?XS(i,l--,1):(o=!0,r.value=s));o||KS(i,{key:a,value:s}),nS||(this.length=i.length),n.updateURL()},sort:function(){var e=xS(this);TS(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=xS(this).entries,n=dS(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 oE(this,"keys")},values:function(){return new oE(this,"values")},entries:function(){return new oE(this,"entries")}},{enumerable:!0}),oS(lE,PS,lE.entries,{name:"entries"}),oS(lE,"toString",(function(){return xS(this).serialize()}),{enumerable:!0}),nS&&aS(lE,"size",{get:function(){return xS(this).entries.length},configurable:!0,enumerable:!0}),lS(sE,RS),Zw({global:!0,constructor:!0,forced:!iS},{URLSearchParams:sE}),!iS&&pS(LS)){var cE=rS(NS.has),uE=rS(NS.set),fE=function(e){if(yS(e)){var t,r=e.body;if(vS(r)===RS)return t=e.headers?new LS(e.headers):new LS,cE(t,"content-type")||uE(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_S(e,{body:bS(0,mS(r)),headers:bS(0,t)})}return e};if(pS(CS)&&Zw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return CS(e,arguments.length>1?fE(arguments[1]):{})}}),pS(DS)){var pE=function(e){return fS(this,jS),new DS(e,arguments.length>1?fE(arguments[1]):{})};jS.constructor=pE,pE.prototype=jS,Zw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pE})}}var hE={URLSearchParams:sE,getState:xS},dE=r(te.URLSearchParams),vE=ee,gE=b,yE=pt("match"),mE=function(e){var t;return vE(e)&&(void 0!==(t=e[yE])?!!t:"RegExp"==gE(e))},_E=TypeError,bE=function(e){if(mE(e))throw _E("The method doesn't accept regular expressions");return e},wE=pt("match"),SE=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[wE]=!1,"/./"[e](t)}catch(xD){}}return!1},EE=Or,TE=E,PE=Fr,RE=Yn,kE=bE,OE=G,xE=SE,IE=TE("".startsWith),ME=TE("".slice),AE=Math.min;EE({target:"String",proto:!0,forced:!xE("startsWith")},{startsWith:function(e){var t=RE(OE(this));kE(e);var r=PE(AE(arguments.length>1?arguments[1]:void 0,t.length)),n=RE(e);return IE?IE(t,n,r):ME(t,r,r+n.length)===n}});var CE=zu("String").startsWith,DE=se,LE=CE,jE=String.prototype,NE=r((function(e){var t=e.startsWith;return"string"==typeof e||e===jE||DE(jE,e)&&t===jE.startsWith?LE:t})),UE=Lb;Or({target:"Number",stat:!0,forced:Number.parseInt!=UE},{parseInt:UE});var FE=r(te.Number.parseInt),zE=oi.includes;Or({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return zE(this,e,arguments.length>1?arguments[1]:void 0)}});var BE=zu("Array").includes,VE=Or,WE=bE,KE=G,HE=Yn,qE=SE,XE=g("".indexOf);VE({target:"String",proto:!0,forced:!qE("includes")},{includes:function(e){return!!~XE(HE(KE(this)),HE(WE(e)),arguments.length>1?arguments[1]:void 0)}});var GE=zu("String").includes,YE=se,QE=BE,JE=GE,$E=Array.prototype,ZE=String.prototype,eT=r((function(e){var t=e.includes;return e===$E||YE($E,e)&&t===$E.includes?QE:"string"==typeof e||e===ZE||YE(ZE,e)&&t===ZE.includes?JE:t})),tT=te,rT=f;tT.JSON||(tT.JSON={stringify:JSON.stringify});var nT=function(e,t,r){return rT(tT.JSON.stringify,null,arguments)},iT=r(nT),oT=f,aT=J,sT=jr,lT=Br,cT=Ep,uT=Math.min,fT=[].lastIndexOf,pT=!!fT&&1/[1].lastIndexOf(1,-0)<0,hT=cT("lastIndexOf"),dT=pT||!hT?function(e){if(pT)return oT(fT,this,arguments)||0;var t=aT(this),r=lT(t),n=r-1;for(arguments.length>1&&(n=uT(n,sT(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:fT;Or({target:"Array",proto:!0,forced:dT!==[].lastIndexOf},{lastIndexOf:dT});var vT=zu("Array").lastIndexOf,gT=se,yT=vT,mT=Array.prototype,_T=r((function(e){var t=e.lastIndexOf;return e===mT||gT(mT,e)&&t===mT.lastIndexOf?yT:t})),bT=i,wT=o,ST=Yn,ET=Eb.trim,TT=vb,PT=g("".charAt),RT=bT.parseFloat,kT=bT.Symbol,OT=kT&&kT.iterator,xT=1/RT(TT+"-0")!=-1/0||OT&&!wT((function(){RT(Object(OT))}))?function(e){var t=ET(ST(e)),r=RT(t);return 0===r&&"-"==PT(t,0)?-0:r}:RT,IT=xT;Or({target:"Number",stat:!0,forced:Number.parseFloat!=IT},{parseFloat:IT});var MT=r(te.Number.parseFloat),AT=r(te.setInterval);function CT(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),xw(e,n.key,n)}}function DT(e,t,r){return t&&CT(e.prototype,t),r&&CT(e,r),e}function LT(e,t,r){return t in e?xw(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jT(e,t){var r=Iw(e);if(Mw){var n=Mw(e);t&&(n=Aw(n).call(n,(function(t){return Cw(e,t).enumerable}))),r.push.apply(r,n)}return r}function NT(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)Dw(r=jT(Object(n),!0)).call(r,(function(t){LT(e,t,n[t])}));else if(Lw)jw(e,Lw(n));else{var i;Dw(i=jT(Object(n))).call(i,(function(t){xw(e,t,Cw(n,t))}))}}return e}var UT="xgplayer_device_id",FT="xgplayer_user_id",zT=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(Nw(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},BT=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},VT=function(){var e=zT(UT);if(e)return e;var t=BT(11);return document.cookie=UT+"="+t+";max-age=31536000;path=/",t},WT=function(){var e=zT(FT);if(e)return e;var t=BT(12);return document.cookie=FT+"="+t+";max-age=31536000;path=/",t};var KT={get device(){return KT.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:Nw(e).call(e,"chrome")>-1&&Nw(e).call(e,"safari")>-1,Firefox:Nw(e).call(e,"firefox")>-1,Opera:Nw(e).call(e,"opera")>-1,Safari:Nw(e).call(e,"safari")>-1&&-1==Nw(e).call(e,"chrome"),Edge:Nw(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=Nb(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 HT(){return Bw()}function qT(e){var t="unknown";return"string"!=typeof e?t:Nw(e).call(e,".flv")>-1?"flv":Nw(e).call(e,".m3u8")>-1?"m3u8":Nw(e).call(e,".mp4")>-1?"mp4":Nw(e).call(e,".sdp")>-1?"rts":t}function XT(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 GT={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},YT=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=db(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}DT(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&&NE(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new dE(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=qT(e.cdn_play_url),e.timestamp=HT();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(xD){}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,R_(e,NT({},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,NT({},e)))},e}(),QT=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||KT.device:"none":"unknown";var e},JT=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],$T=function(){function e(e){var t,r;this.options=e,this.logger=new ZT(e),this.restart=db(t=this.restart).call(t,this),this.bindUrlChange(),eT(r=KT.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new ZT(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=R_(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}(),ZT=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=R_({},e,function(e){return{device_id:e.device_id||VT(),user_id:e.user_id||WT(),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?Bw()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new YT(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}DT(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 Bw()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=Bw()-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=db(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=db(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=db(r=this.destroyFunc).call(r,this),this.handleUserLeave=db(n=this.handleUserLeave).call(n,this),this.handlePlayerError=db(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=db(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=db(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=db(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=db(l=this.handlePlayerPause).call(l,this),this.handleTTFB=db(c=this.handleTTFB).call(c,this),this.handleUrlChange=db(u=this.handleUrlChange).call(u,this),this.handleKeyframe=db(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=db(p=this.handleSourceOpen).call(p,this),this.handleBufferAppend=db(h=this.handleBufferAppend).call(h,this),this.handleCoreEvent=db(d=this.handleCoreEvent).call(d,this),this.handleDegrade=db(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=NT({os:KT.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return NT({project_key:e.project_key,live_sdk_version:XT(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.10",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:BT(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+"-"+Bw(),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:KT.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:Bw(),play_current_time:0,cdn_play_url:r.config.url&&NE(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:qT(r.config.url),codec_support:-1},e.ext)}(t)),this.log=R_({},{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){xw(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&&xw(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?rw(e).call(e,0,25e4):""}return""},enumerable:!0}),xw(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),xw(this.log[o],"access",{get:function(){return QT()},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=XT(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=HT(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===KT.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===KT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;Dw(JT).call(JT,(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&&(R_(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=HT(),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(R_({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,rw(Array.prototype).call(e,0))}catch(kR){}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(R_(this.log.play_url_change,{url:e,timestamp:HT()}))},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=HT(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=HT(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=HT(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;R_(this.log.play_error,NT({timestamp:HT(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:iT(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(R_(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=HT()),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=HT(),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=HT(),R_(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=rw(i).call(i,Nw(i).call(i,"{"),_T(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(kR){}}},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=HT(),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){R_(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=HT(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(R_({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=XT(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=FE(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(kR){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=MT(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=MT(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?f_.resolve(i.getStats()).then((function(t){return Dw(t).call(t,(function(t){var n=t.type,i=t.mediaType,a=t.bytesReceived,s=t.packetsReceived,l=t.audioLevel,c=t.concealmentEvents,u=t.remoteTimestamp,f=t.timestamp,p=t.framesDropped,h=t.keyFramesDecoded,d=t.totalDecodeTime,v=t.framesDecoded,g=t.frameHeight,y=t.frameWidth,m=t.framesReceived,_=t.jitterBufferDelay,b=t.jitterBufferEmittedCount,w=t.jitter,S=t.nackCount,E=t.packetsLost,T=t.pliCount,P=t.totalSamplesReceived,R=t.concealedSamples,k=t.currentRoundTripTime,O=t.decoderImplementation,x=t.mimeType,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=_/b*1e3,o.video_jitter=1e3*w,o.video_nack_count=S,o.video_packets_lost=E-(r.cacheRtcStats.videoPacketsLost||0),o.video_packets_received=s-(r.cacheRtcStats.videoPacketsReceived||0),o.video_fraction_lost=o.video_packets_lost/o.video_packets_received,r.cacheRtcStats.videoPacketsLost=E,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=T,o.decoder_name=O);break;case"remote-outbound-rtp":o.e2e_delay_ms=f-u;break;case"track":void 0!==y&&(o.video_frame_width=y,o.video_frame_height=g);break;case"candidate-pair":o.rtt=1e3*k;break;case"codec":eT(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)})),R_(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})):f_.resolve(o)}catch(kR){return f_.reject(kR)}},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<HT()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,HT()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=HT(),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)),R_(t.log.playing,NT({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)),f_.resolve(t.getRtcStats(o,e)).then((function(r){var n={};if(t.core){if(t.core.getStats){var i=t.core.getStats()||{},a=i.bitrate,s=i.avgSpeed;R_(n,{bitrate:a,avg_speed:s,rate:s/a})}if(t.core.getNetWorkInfo){var l,c=(t.core.getNetWorkInfo()||{}).lostRate,u=((null===(l=t.core.core)||void 0===l?void 0:l._opts)||{}).networkEvaluateInterval;R_(n,{lostRate:c,networkEvaluateInterval:u})}}t.logmanager.push(R_({},t.log.playing,NT(NT({play_time:e?0:o},r),n)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(kR){return f_.reject(kR)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return f_.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 f_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=AT((function(){try{var r=function(){if(Math.abs(Bw()-e.log.playing.timestamp-t)<100||Bw()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return f_.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 f_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(kR){return f_.reject(kR)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(kR){return f_.reject(kR)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=HT(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=HT(),this.playResultTimer=tw((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=HT(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=HT(),this.log.stall_start.stall_start_time=HT(),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(),R_(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=tw((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=HT();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=HT();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=HT(),this.log.playing.stall_count++,R_(this.log.stall,NT({},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(),R_(this.log.playing,NT({timestamp:HT(),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;R_(this.log.play_error,NT(NT({timestamp:HT()},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=GT[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=HT()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=GT[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"===KT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&window.removeEventListener("pagehide",this.handleUserLeave),Dw(JT).call(JT,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this._player=null),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer))},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?f_.resolve():(e.destroyed=!0,f_.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(kR){return f_.reject(kR)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(xD){}},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(xD){}},t.reportPlayStop=function(){this.player&&(this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered()),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=HT();R_(this.log.first_frame,NT({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){R_(o,NT({timestamp:i,stop_time:i,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(o.play_time_on_no_frame=o.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=Aw(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:FE(n.domainLookupEnd-n.domainLookupStart),redirect:FE(n.redirectEnd-n.redirectStart),ttfb:FE(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),i=HT();r.playedTime=i-r.log.start_play.start_play_time;var o=r.log.play_stop;if(R_(o,NT({},0===o.stall_count&&{stall_time:0})),r.inWaitingStart&&i-r.inWaitingStart>200&&(o.stall_time+=i-r.inWaitingStart),r.inWaitingStart=0,R_(o,NT({stall_time_per_100sec:o.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*o.stall_count/r.playedTime*100},n)),0===r.log.play_stop.stall_count_per_100sec&&(r.log.play_stop.stall_time_per_100sec=0),r.log.play_stop.stall_time_per_100sec>100||r.log.play_stop.stall_time_per_100sec<0)return f_.resolve();if(r.log.playing.index?(R_(r.log.playing,NT({timestamp:HT(),is_last:1},r.videoSize)),r.logmanager.push(r.log.playing,!0)):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),i=HT(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;R_(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var c=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return f_.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;R_(o,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return f_.resolve(c&&c.then?c.then(t):t())}catch(kR){return f_.reject(kR)}},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}(),eP=r(nu),tP=r(Ou),rP=ke,nP=TypeError,iP=function(e,t){if(!delete e[t])throw nP("Cannot delete property "+rP(t)+" of "+rP(e))},oP=Or,aP=Ye,sP=ei,lP=jr,cP=Br,uP=Du,fP=Wr,pP=On,hP=Xr,dP=iP,vP=An("splice"),gP=Math.max,yP=Math.min;oP({target:"Array",proto:!0,forced:!vP},{splice:function(e,t){var r,n,i,o,a,s,l=aP(this),c=cP(l),u=sP(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=yP(gP(lP(t),0),c-u)),fP(c+r-n),i=pP(l,n),o=0;o<n;o++)(a=u+o)in l&&hP(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]:dP(l,s);for(o=c;o>c-n+r;o--)dP(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]:dP(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return uP(l,c-n+r),i}});var mP=zu("Array").splice,_P=se,bP=mP,wP=Array.prototype,SP=r((function(e){var t=e.splice;return e===wP||_P(wP,e)&&t===wP.splice?bP:t}));Or({global:!0,forced:parseFloat!=xT},{parseFloat:xT});var EP=r(te.parseFloat),TP=ml.PROPER,PP=o,RP=vb,kP=Eb.trim;Or({target:"String",proto:!0,forced:function(e){return PP((function(){return!!RP[e]()||"​…᠎"!=="​…᠎"[e]()||TP&&RP[e].name!==e}))}("trim")},{trim:function(){return kP(this)}});var OP=zu("String").trim,xP=se,IP=OP,MP=String.prototype,AP=r((function(e){var t=e.trim;return"string"==typeof e||e===MP||xP(MP,e)&&t===MP.trim?IP:t})),CP=r(_h),DP=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),LP={exports:{}},jP=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),NP=o,UP=ee,FP=b,zP=jP,BP=Object.isExtensible,VP=NP((function(){BP(1)}))||zP?function(e){return!!UP(e)&&((!zP||"ArrayBuffer"!=FP(e))&&(!BP||BP(e)))}:BP,WP=Or,KP=g,HP=ai,qP=ee,XP=$e,GP=Jt.f,YP=Vi,QP=Hi,JP=VP,$P=DP,ZP=!1,eR=nt("meta"),tR=0,rR=function(e){GP(e,eR,{value:{objectID:"O"+tR++,weakData:{}}})},nR=LP.exports={enable:function(){nR.enable=function(){},ZP=!0;var e=YP.f,t=KP([].splice),r={};r[eR]=1,e(r).length&&(YP.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===eR){t(n,i,1);break}return n},WP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:QP.f}))},fastKey:function(e,t){if(!qP(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!XP(e,eR)){if(!JP(e))return"F";if(!t)return"E";rR(e)}return e[eR].objectID},getWeakData:function(e,t){if(!XP(e,eR)){if(!JP(e))return!0;if(!t)return!1;rR(e)}return e[eR].weakData},onFreeze:function(e){return $P&&ZP&&JP(e)&&!XP(e,eR)&&rR(e),e}};HP[eR]=!0;var iR=LP.exports,oR=Or,aR=DP,sR=o,lR=ee,cR=iR.onFreeze,uR=Object.freeze;oR({target:"Object",stat:!0,forced:sR((function(){uR(1)})),sham:!aR},{freeze:function(e){return uR&&lR(e)?uR(cR(e)):e}});var fR=r(te.Object.freeze),pR=ra.map;Or({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return pR(this,e,arguments.length>1?arguments[1]:void 0)}});var hR,dR=zu("Array").map,vR=se,gR=dR,yR=Array.prototype,mR=r((function(e){var t=e.map;return e===yR||vR(yR,e)&&t===yR.map?gR:t})),_R=r(Mr),bR=function(){return bR=R_||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},bR.apply(this,arguments)};function wR(e,t){var r="function"==typeof eP&&tP(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 SR(){for(var e=[],t=0;t<arguments.length;t++)e=u_(e).call(e,wR(arguments[t]));return e}var ER,TR,PR,RR,kR,OR=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=Nw(r=this._hooks[e]).call(r,t);-1!==i&&SP(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!==Nw(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&&Dw(r=SR(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===Nw(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),xR=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},IR=(ER=+Bw()+Number(rw(hR=""+Math.random()).call(hR,2,8)),function(){return ER+=1}),MR=function(e){var t=document.createElement("a");return t.href=e,t},AR=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?MR(r).hostname:"";!function(e){var t={};try{var r,n=MR(e).search;Dw(r=(n=rw(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=""+EP(this.appVersion),i=this.userAgent;return-1!==Nw(i).call(i,"Edge")||-1!==Nw(i).call(i,"Edg")?(r="Microsoft Edge",-1!==Nw(i).call(i,"Edge")?(e=Nw(i).call(i,"Edge"),n=i.substring(e+5)):(e=Nw(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=Nw(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=Nw(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=Nw(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==Nw(i).call(i,"MQQBrowser")||-1!==Nw(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==Nw(i).call(i,"MQQBrowser")?(e=Nw(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==Nw(i).call(i,"QQBrowser")&&(e=Nw(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==Nw(i).call(i,"Chrome")?-1!==(e=Nw(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Nw(i).call(i,"360"))?(r="360browser",n=i.substring(Nw(i).call(i,"Chrome")+7)):-1!==Nw(i).call(i,"baidubrowser")||-1!==Nw(i).call(i,"BIDUBrowser")?(-1!==Nw(i).call(i,"baidubrowser")?(e=Nw(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==Nw(i).call(i,"BIDUBrowser")&&(e=Nw(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=Nw(i).call(i,"xiaomi"))?-1!==Nw(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=Nw(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=Nw(i).call(i,"Chrome"))||-1!==(e=Nw(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==Nw(i).call(i,"Safari")?-1!==(e=Nw(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=Nw(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=Nw(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=Nw(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=Nw(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Nw(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=Nw(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=Nw(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=Nw(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=Nw(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=Nw(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?rw(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)Dw(r=navigator.userAgent.split(";")).call(r,(function(e){Nw(e).call(e,"Build/")>-1&&(t=rw(e).call(e,0,Nw(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=Nw(n).call(n,";");t=rw(n).call(n,0,i)}}catch(o){return AP(t).call(t)}return AP(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),CR=(TR=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(Bw()+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 CP({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=rw(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:fR(n)},converter:{value:fR(r)}})}({read:function(e){return'"'===e[0]&&(e=rw(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:"/"})}()},TR(PR={exports:{}}),PR.exports),DR=CR,LR=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}(),jR={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:iT(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return DR.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;DR.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(kR){return!1}}()},NR={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:iT(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(kR){return!1}}()},UR=function(){function e(e,t){this._storage=t&&"session"===t?NR:!e&&jR.isSupportLS?jR:new LR}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}(),FR={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},zR=void 0,BR=(new Date).getTimezoneOffset(),VR=Nb(""+-BR/60,10),WR=60*BR,KR=function(){function e(e,t){this.is_first_time=!0,this.initConfig=t,this.collect=e;var r=new AR(t.app_id).init(),n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new UR(!1,"session"),this.localStorage=new UR(!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:zR,user_type:zR,user_id:zR,user_is_auth:zR,user_is_login:zR,device_id:zR,web_id:zR,user_unique_id_type:zR},header:{app_id:zR,app_name:zR,app_install_id:zR,install_id:zR,app_package:zR,app_channel:zR,app_version:zR,ab_version:zR,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:zR,traffic_type:zR,client_ip:zR,device_brand:zR,os_api:zR,access:zR,language:r.language,region:zR,app_language:zR,app_region:zR,creative_id:zR,ad_id:zR,campaign_id:zR,log_type:zR,rnd:zR,platform:r.platform,sdk_version:"0.0.3-lite",sdk_lib:"js",province:zR,city:zR,timezone:VR,tz_offset:WR,tz_name:zR,sim_region:zR,carrier:zR,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:zR,utm_content:zR,utm_source:zR,utm_medium:zR,utm_campaign:zR,custom:{},wechat_unionid:zR,wechat_openid:zR}},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=Nb(n[a],r);s=1*s^64;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,0,25)}(FR[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;Dw(t=Iw(e)).call(t,(function(t){var n;"evtParams"===t?r.evtParams=bR({},r.evtParams||{},e.evtParams||{}):"_staging_flag"===t?r.evtParams=bR({},r.evtParams||{},{_staging_flag:e._staging_flag}):"reportErrorCallback"===t&&"function"==typeof e[t]?r.reportErrorCallback=e[t]:Object.hasOwnProperty.call(r.envInfo.user,t)?Nw(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(iT(this.envInfo[e])):JSON.parse(iT(this.envInfo))}catch(t){console.log("get config stringify error ")}},e}();(kR=RR||(RR={})).Init="init",kR.Config="config",kR.Start="start",kR.Ready="ready",kR.TokenComplete="token-complete",kR.TokenStorage="token-storage",kR.TokenFetch="token-fetch",kR.TokenError="token-error",kR.ConfigUuid="config-uuid",kR.TokenChange="token-change",kR.TokenReset="token-reset",kR.SessionReset="session-reset",kR.SessionResetTime="session-reset-time",kR.Event="event",kR.Events="events",kR.EventNow="event-now",kR.CleanEvents="clean-events",kR.BeconEvent="becon-event";var HR=RR;function qR(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(iT(t))}catch(f){}}var XR,GR=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 UR(!0),this.localStorage=new UR(!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(HR.Ready,(function(){r.reportAll(!1)})),this.collect.on(HR.Event,(function(e){r.event(e)})),this.collect.on(HR.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=SR(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=tw((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){}},e.prototype.beconEvent=function(e){var t=SR(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=rw(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=iT(n.custom);var o=this.configManager.get("evtParams"),a=mR(e).call(e,(function(e){try{return Iw(o).length&&(e.params=bR({},o,e.params)),e.session_id=t.collect.sessionManager.getSessionId(),e.params=iT(e.params),e}catch(kR){return e}})),s=[];if(!Iw(i).length)return console.warn("user info error,cant report"),s;var l=JSON.parse(iT({events:a,user:i,header:n}));return l.local_time=Math.floor(Bw()/1e3),l.verbose=1,s.push(l),s},e.prototype.split=function(e){return mR(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&Dw(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,iT(i))||s(n,i):qR(n,i,o,0,a,s,0,"",false)}catch(l){console.warn("something error, "+iT(l.stack))}var n,i,o,a,s}))},e}(),YR=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},QR=function(){var e;return rw(e=YR().replace(/-/g,"")).call(e,0,19)},JR=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 UR(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.collect.on(HR.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=QR();qR(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=Bw(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(HR.TokenComplete)):console.warn("token error")},e.prototype.setUuid=function(e){var t;if(e&&-1===Nw(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=Bw(),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=Bw(),this.setStorage(this.cacheToken)),this.collect.emit(HR.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}(),$R=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)}))},ZR=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new UR(!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(HR.SessionReset,(function(){r.resetSessionId()})),this.collect.on(HR.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Bw()-t>this.expireTime?e={sessionId:$R(),timestamp:Bw()}:e.timestamp=Bw(),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=Bw():t={sessionId:$R(),timestamp:Bw()},this.storage.setItem(this.sessionKey,t),this.sessionExp=AT((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=AT((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:$R(),timestamp:Bw()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&Bw()-e.timestamp+30>=this.expireTime&&(e={sessionId:$R(),timestamp:Bw()},this.storage.setItem(this.sessionKey,e))},e}(),ek=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 OR,this.Types=HR,this.adapters.fetch=qR,this.adapters.storage=UR}return e.prototype.init=function(e){var t,r,n=this;this.inited?console.log("init can be call only one time"):e&&xR(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!==Nw(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 KR(this,e),this.initConfig=e,e.disable_auto_pv&&(this.disableAutoPageView=!0),this.configManager.set({app_id:e.app_id}),this.eventManager=new GR,this.tokenManager=new JR,this.sessionManager=new ZR,f_.all([new f_((function(e){n.once(HR.TokenComplete,(function(){e(!0)}))})),new f_((function(e){n.once(HR.Start,(function(){e(!0)}))}))]).then((function(){n.sdkReady=!0,n.emit(HR.Ready),console.info("appid: "+e.app_id+", userInfo:"+iT(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(HR.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&&xR(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=bR({},e);t.user_unique_id;var r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&Nw(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Mw){var i=0;for(n=Mw(e);i<n.length;i++)Nw(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(HR.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(HR.Start))},e.prototype.event=function(e,t){var r=this;try{var n=[];_R(e)?Dw(e).call(e,(function(e){n.push(r.processEvent(e[0],e[1]||{}))})):n.push(this.processEvent(e,t)),n.length&&(this.emit(HR.Event,n),this.emit(HR.SessionResetTime))}catch(i){console.warn("something error, please check")}},e.prototype.beconEvent=function(e,t){if(_R(e))console.warn("beconEvent not support batch report, please check");else{var r=[];r.push(this.processEvent(e,t||{})),r.length&&(this.emit(HR.BeconEvent,r),this.emit(HR.SessionResetTime))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{var r=e;/^event\./.test(e)&&(r=rw(e).call(e,6));var n=t;"object"!=fh(n)&&(n={}),n.event_index=IR();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:Bw(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time)},r=bR({},t,e);this.event("predefine_pageview",r)},e}(),tk=new ek("default"),rk=new Uint8Array(16);function nk(){var e;if(!XR&&!(XR="undefined"!=typeof crypto&&crypto.getRandomValues&&db(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return XR(rk)}for(var ik,ok=[],ak=0;ak<256;++ak){var sk;ok.push(rw(sk=(ak+256).toString(16)).call(sk,1))}var lk={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&db(ik=crypto.randomUUID).call(ik,crypto)};function ck(e,t,r){if(lk.randomUUID&&!t&&!e)return lk.randomUUID();var n=(e=e||{}).random||(e.rng||nk)();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 ok[e[t+0]]+ok[e[t+1]]+ok[e[t+2]]+ok[e[t+3]]+"-"+ok[e[t+4]]+ok[e[t+5]]+"-"+ok[e[t+6]]+ok[e[t+7]]+"-"+ok[e[t+8]]+ok[e[t+9]]+"-"+ok[e[t+10]]+ok[e[t+11]]+ok[e[t+12]]+ok[e[t+13]]+ok[e[t+14]]+ok[e[t+15]]}(n)}var uk=window.VePlayer.util,fk="veplayer_live_device_id",pk="veplayer_live_user_id",hk=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},dk=function(e){var t=uk.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:uk.appendSearchParams(e,{_session_id:vk()}):null!=e?e:""},vk=function(){return ck().replace(/-/g,"")+"."+Bw()+"."+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}(ck().replace(/-/g,""))},gk=function(e){Fm(r,e);var t=i_(r);function r(){var e,n;ym(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(n_(n=t.call.apply(t,u_(e=[this]).call(e,o))),"_userId",void 0),vh(n_(n),"_deviceId",void 0),vh(n_(n),"_liveLogger",void 0),n}return _m(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(pk))||(r=hk(12),localStorage.setItem(pk,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(fk))||(n=hk(11),localStorage.setItem(fk,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==tk?void 0:tk.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){tk.init({app_id:468759,channel:"cn"}),tk.start(),tk.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new $T({Tea:tk,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.1",flv_version:"3.0.19-rc.0",hls_version:"3.0.19-rc.0",rts_version:"0.2.1-alpha.6"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function yk(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var mk=window.VePlayer.util,_k=window.VePlayer.Plugin,bk=window.VePlayer.XGUtil,wk=function(e){Fm(r,e);var t=i_(r);function r(){var e,n;ym(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return vh(n_(n=t.call.apply(t,u_(e=[this]).call(e,o))),"_pollTimer",void 0),vh(n_(n),"_visible",void 0),vh(n_(n),"_playPlugin",void 0),n}return _m(r,[{key:"_streamType",get:function(){return mk.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Sw.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Sw.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(eT(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(Sw.LOADED_DATA,(function(){return e.open()})),this.player.off(Sw.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=tw((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:yk(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:yk(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:yk(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:u_(r="".concat(yk(e.height)," * ")).call(r,yk(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:yk(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:yk(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:yk(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:yk(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="",Dw(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)}Dw(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=bk.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=bk.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=bk.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=bk.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=bk.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}(_k),Sk=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"}),Ek=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:"刷新"}),Tk=["getDrmConfig"],Pk=window.VePlayer.DynamicModule,Rk=window.VePlayer.load,kk=function(){var e=gm(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=cb(t.drm),!t.url||n!==lb.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=K_(a,Tk),e.next=6,f_.all([Rk(Pk.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=R_({},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)}}(),Ok={"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]"},xk=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}(xk||{}),Ik=function(){function e(t){var r=this;ym(this,e),vh(this,"modules",{}),vh(this,"mountPromiseMap",{}),vh(this,"_baseUrl",void 0),vh(this,"_moduleSystem",void 0),vh(this,"load",function(){var e=gm(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(Ok[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,Ok[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 mR(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return _m(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 f_((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}(),Mk=r(ch),Ak=r(Gf),Ck=r(ph);function Dk(e){return(Dk="function"==typeof eP&&"symbol"==typeof Mk?function(e){return typeof e}:function(e){return e&&"function"==typeof eP&&e.constructor===eP&&e!==eP.prototype?"symbol":typeof e})(e)}function Lk(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),xw(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==fh(e)||null===e)return e;var r=e[Ck];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 jk(e){return function(e){if(_R(e))return Nk(e)}(e)||function(e){if(void 0!==eP&&null!=tP(e)||null!=e["@@iterator"])return Ak(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return Nk(e,t);var n=rw(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Ak(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nk(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 Nk(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 Uk=ra.some;Or({target:"Array",proto:!0,forced:!Ep("some")},{some:function(e){return Uk(this,e,arguments.length>1?arguments[1]:void 0)}});var Fk=zu("Array").some,zk=se,Bk=Fk,Vk=Array.prototype,Wk=r((function(e){var t=e.some;return e===Vk||zk(Vk,e)&&t===Vk.some?Bk:t})),Kk=jr,Hk=Yn,qk=G,Xk=RangeError,Gk=g,Yk=Fr,Qk=Yn,Jk=G,$k=Gk((function(e){var t=Hk(qk(this)),r="",n=Kk(e);if(n<0||n==1/0)throw Xk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Zk=Gk("".slice),eO=Math.ceil,tO=function(e){return function(t,r,n){var i,o,a=Qk(Jk(t)),s=Yk(r),l=a.length,c=void 0===n?" ":Qk(n);return s<=l||""==c?a:((o=$k(c,eO((i=s-l)/c.length))).length>i&&(o=Zk(o,0,i)),e?a+o:o+a)}},rO={start:tO(!1),end:tO(!0)},nO=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),iO=rO.start;Or({target:"String",proto:!0,forced:nO},{padStart:function(e){return iO(this,e,arguments.length>1?arguments[1]:void 0)}});var oO=zu("String").padStart,aO=se,sO=oO,lO=String.prototype,cO=r((function(e){var t=e.padStart;return"string"==typeof e||e===lO||aO(lO,e)&&t===lO.padStart?sO:t})),uO=ra.every;Or({target:"Array",proto:!0,forced:!Ep("every")},{every:function(e){return uO(this,e,arguments.length>1?arguments[1]:void 0)}});var fO=zu("Array").every,pO=se,hO=fO,dO=Array.prototype,vO=r((function(e){var t=e.every;return e===dO||pO(dO,e)&&t===dO.every?hO:t})),gO=le.match(/firefox\/(\d+)/i),yO=!!gO&&+gO[1],mO=/MSIE|Trident/.test(le),_O=le.match(/AppleWebKit\/(\d+)\./),bO=!!_O&&+_O[1],wO=Or,SO=g,EO=Me,TO=Ye,PO=Br,RO=iP,kO=Yn,OO=o,xO=$w,IO=Ep,MO=yO,AO=mO,CO=ve,DO=bO,LO=[],jO=SO(LO.sort),NO=SO(LO.push),UO=OO((function(){LO.sort(void 0)})),FO=OO((function(){LO.sort(null)})),zO=IO("sort"),BO=!OO((function(){if(CO)return CO<70;if(!(MO&&MO>3)){if(AO)return!0;if(DO)return DO<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++)LO.push({k:t+n,v:r})}for(LO.sort((function(e,t){return t.v-e.v})),n=0;n<LO.length;n++)t=LO[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));wO({target:"Array",proto:!0,forced:UO||!FO||!zO||!BO},{sort:function(e){void 0!==e&&EO(e);var t=TO(this);if(BO)return void 0===e?jO(t):jO(t,e);var r,n,i=[],o=PO(t);for(n=0;n<o;n++)n in t&&NO(i,t[n]);for(xO(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:kO(t)>kO(r)?1:-1}}(e)),r=PO(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)RO(t,n++);return t}});var VO,WO=zu("Array").sort,KO=se,HO=WO,qO=Array.prototype,XO=r((function(e){var t=e.sort;return e===qO||KO(qO,e)&&t===qO.sort?HO:t})),GO="undefined"!=typeof window&&window.location&&Nw(VO=window.location.href).call(VO,"xgplayerdebugger=1")>-1,YO="color: #525252; background-color: #90ee90;",QO="color: #525252; background-color: red;",JO="color: #525252; background-color: yellow; ",$O="%c[xgplayer]",ZO={config:{debug:GO?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,u_(t=[$O,YO,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,u_(t=[$O,JO,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,u_(t=[$O,QO,e]).call(t,o))}}},ex=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}}])&&Lk(t.prototype,r),n&&Lk(t,n),xw(t,"prototype",{writable:!1}),e}(),tx={};tx.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,Dw(e=Iw(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},tx.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&&tx.addClass(i,r),t)Dw(o=Iw(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return ZO.logError("util.createDomFromHtml",a),null}},tx.hasClass=function(e,t){if(!e||!t)return!1;try{return Wk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(kR){var r=e.className&&"object"===Dk(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},tx.addClass=function(e,t){if(e&&t)try{var r;Dw(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(kR){tx.hasClass(e,t)||(e.className&&"object"===Dk(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},tx.removeClass=function(e,t){if(e&&t)try{var r;Dw(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(kR){var n;if(tx.hasClass(e,t))Dw(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===Dk(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},tx.toggleClass=function(e,t){var r;e&&Dw(r=t.split(/\s+/g)).call(r,(function(t){tx.hasClass(e,t)?tx.removeClass(e,t):tx.addClass(e,t)}))},tx.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===tx.typeOf(e[r]))t.push(e[r]);else if("Object"===tx.typeOf(e[r])){var n;mR(n=Iw(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},tx.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(kR){ZO.logError("util.findDom",kR),0===Nw(r).call(r,"#")&&(e=t.getElementById(rw(r).call(r,1)))}return e},tx.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},tx.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},tx.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=cO(tx).call(tx,Math.floor(e/3600),2,0),r=cO(tx).call(tx,Math.floor((e-3600*t)/60),2,0),n=cO(tx).call(tx,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},tx.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},tx.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},tx.deepCopy=function(e,t){var r;if("Object"===tx.typeOf(t)&&"Object"===tx.typeOf(e))return Dw(r=Iw(t)).call(r,(function(r){if("Object"!==tx.typeOf(t[r])||t[r]instanceof Node)if("Array"===tx.typeOf(t[r])){var n;e[r]="Array"===tx.typeOf(e[r])?u_(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]:tx.deepCopy(e[r],t[r])})),e},tx.deepMerge=function(e,t){var r;return mR(r=Iw(t)).call(r,(function(r){var n;"Array"===tx.typeOf(t[r])&&"Array"===tx.typeOf(e[r])?"Array"===tx.typeOf(e[r])&&(n=e[r]).push.apply(n,jk(t[r])):tx.typeOf(e[r])!==tx.typeOf(t[r])||null===e[r]||"Object"!==tx.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):tx.deepMerge(e[r],t[r])})),e},tx.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},tx.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Dw(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},tx.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=AT(db(r).call(r,e),n))},tx.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},tx.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=tw((function(){t(),tx.clearTimeout(e,n)}),r);return e._timers.push(n),n},tx.clearTimeout=function(e,t){var r=e._timers;if("Array"===tx.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){SP(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},tx.clearAllTimers=function(e){var t=e._timers;"Array"===tx.typeOf(t)&&(mR(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},tx.createImgBtn=function(e,t,r,n){var i,o,a,s,l,c,u,f,p,h,d,v,g=tx.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(vO(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(Nw(r).call(r,e)>-1&&Nw(n).call(n,e)>-1)||(u=EP(AP(t=rw(r).call(r,0,Nw(r).call(r,e))).call(t)),f=EP(AP(i=rw(n).call(n,0,Nw(n).call(n,e))).call(i)),p=e,!1)})),g.style.width=u_(o="".concat(u)).call(o,p),g.style.height=u_(a="".concat(f)).call(a,p),g.style.backgroundSize=u_(s=u_(l=u_(c="".concat(u)).call(c,p," ")).call(l,f)).call(s,p),g.style.margin="start"===e?u_(h=u_(d=u_(v="-".concat(f/2)).call(v,p," auto auto -")).call(d,u/2)).call(h,p):"auto 5px auto 5px");return g},tx.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(Nb(e,16))})),u_(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},tx.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},tx.checkIsFunction=function(e){return e&&"function"==typeof e},tx.checkIsObject=function(e){return null!==e&&"object"===Dk(e)},tx.hide=function(e){e.style.display="none"},tx.show=function(e,t){e.style.display=t||"block"},tx.isUndefined=function(e){if(null==e)return!0},tx.isNotNull=function(e){return!(null==e)},tx.setStyleFromCsstext=function(e,t){if(t)if("String"===tx.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");mR(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;mR(n=Iw(t)).call(n,(function(r){e.style[r]=t[r]}))}},tx.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 mR(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(Nw(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",""),mR(t=Iw(a)).call(t,(function(t){e.style[t]=a[t]})),o},tx.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return mR(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},tx.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}},tx.stopPropagation=function(e){e&&e.stopPropagation()},tx.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},tx.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},tx.checkTouchSupport=function(){return"ontouchstart"in window},tx.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)});XO(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 ex(i)},tx.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}},tx.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},tx.getHostFromUrl=function(e){if("String"!==tx.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},tx.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},tx.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},tx.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},tx.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Nb(e)}catch(kR){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Nb(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)}))},tx.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},tx.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},tx.createPositionBar=function(e,t){var r=tx.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},tx.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:u_(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Iw(n);return Dw(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=u_(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},tx.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},tx.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},tx.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:tx.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},tx.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 rx,nx=/(Android)\s([\d.]+)/,ix=/(Version)\/([\d.]+)/,ox=["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"],ax={get device(){return ax.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 u_(e=[]).call(e,Aw(t=Iw(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)?ix:nx)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?Nb(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&&mR(ox).call(ox,(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(xD){return this._logger.error(e,xD),!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 f_.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 f_.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(kR){return f_.resolve(t)}}},sx=g,lx=2147483647,cx=/[^\0-\u007E]/,ux=/[.\u3002\uFF0E\uFF61]/g,fx="Overflow: input needs wider integers to process",px=RangeError,hx=sx(ux.exec),dx=Math.floor,vx=String.fromCharCode,gx=sx("".charCodeAt),yx=sx([].join),mx=sx([].push),_x=sx("".replace),bx=sx("".split),wx=sx("".toLowerCase),Sx=function(e){return e+22+75*(e<26)},Ex=function(e,t,r){var n=0;for(e=r?dx(e/700):e>>1,e+=dx(e/t);e>455;)e=dx(e/35),n+=36;return dx(n+36*e/(e+38))},Tx=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=gx(e,r++);if(i>=55296&&i<=56319&&r<n){var o=gx(e,r++);56320==(64512&o)?mx(t,((1023&i)<<10)+(1023&o)+65536):(mx(t,i),r--)}else mx(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&&mx(t,vx(n));var l=t.length,c=l;for(l&&mx(t,"-");c<i;){var u=lx;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>dx((lx-a)/f))throw px(fx);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>lx)throw px(fx);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;mx(t,vx(Sx(d+v%g))),p=dx(v/g),h+=36}mx(t,vx(Sx(p))),s=Ex(a,f,c==l),a=0,c++}}a++,o++}return yx(t,"")},Px=Or,Rx=x,kx=Kw,Ox=i,xx=Qt,Ix=g,Mx=oo,Ax=so,Cx=Cd,Dx=$e,Lx=T_,jx=Bf,Nx=Ji,Ux=hu.codeAt,Fx=function(e){var t,r,n=[],i=bx(_x(wx(e),ux,"."),".");for(t=0;t<i.length;t++)r=i[t],mx(n,hx(cx,r)?"xn--"+Tx(r):r);return yx(n,".")},zx=Yn,Bx=Ao,Vx=Kd,Wx=hE,Kx=Go,Hx=Kx.set,qx=Kx.getterFor("URL"),Xx=Wx.URLSearchParams,Gx=Wx.getState,Yx=Ox.URL,Qx=Ox.TypeError,Jx=Ox.parseInt,$x=Math.floor,Zx=Math.pow,eI=Ix("".charAt),tI=Ix(/./.exec),rI=Ix([].join),nI=Ix(1..toString),iI=Ix([].pop),oI=Ix([].push),aI=Ix("".replace),sI=Ix([].shift),lI=Ix("".split),cI=Ix("".slice),uI=Ix("".toLowerCase),fI=Ix([].unshift),pI="Invalid scheme",hI="Invalid host",dI="Invalid port",vI=/[a-z]/i,gI=/[\d+-.a-z]/i,yI=/\d/,mI=/^0x/i,_I=/^[0-7]+$/,bI=/^\d+$/,wI=/^[\da-f]+$/i,SI=/[\0\t\n\r #%/:<>?@[\\\]^|]/,EI=/[\0\t\n\r #/:<>?@[\\\]^|]/,TI=/^[\u0000-\u0020]+/,PI=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,RI=/[\t\n\r]/g,kI=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)fI(t,e%256),e=$x(e/256);return rI(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+=nI(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},OI={},xI=Lx({},OI,{" ":1,'"':1,"<":1,">":1,"`":1}),II=Lx({},xI,{"#":1,"?":1,"{":1,"}":1}),MI=Lx({},II,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),AI=function(e,t){var r=Ux(e,0);return r>32&&r<127&&!Dx(t,e)?e:encodeURIComponent(e)},CI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},DI=function(e,t){var r;return 2==e.length&&tI(vI,eI(e,0))&&(":"==(r=eI(e,1))||!t&&"|"==r)},LI=function(e){var t;return e.length>1&&DI(cI(e,0,2))&&(2==e.length||"/"===(t=eI(e,2))||"\\"===t||"?"===t||"#"===t)},jI=function(e){return"."===e||"%2e"===uI(e)},NI={},UI={},FI={},zI={},BI={},VI={},WI={},KI={},HI={},qI={},XI={},GI={},YI={},QI={},JI={},$I={},ZI={},eM={},tM={},rM={},nM={},iM=function(e,t,r){var n,i,o,a=zx(e);if(t){if(i=this.parse(a))throw Qx(i);this.searchParams=null}else{if(void 0!==r&&(n=new iM(r,!0)),i=this.parse(a,null,n))throw Qx(i);(o=Gx(new Xx)).bindURL(this),this.searchParams=o}};iM.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||NI,u=0,f="",p=!1,h=!1,d=!1;for(e=zx(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=aI(e,TI,""),e=aI(e,PI,"$1")),e=aI(e,RI,""),n=jx(e);u<=n.length;){switch(i=n[u],c){case NI:if(!i||!tI(vI,i)){if(t)return pI;c=FI;continue}f+=uI(i),c=UI;break;case UI:if(i&&(tI(gI,i)||"+"==i||"-"==i||"."==i))f+=uI(i);else{if(":"!=i){if(t)return pI;f="",c=FI,u=0;continue}if(t&&(l.isSpecial()!=Dx(CI,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&CI[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=QI:l.isSpecial()&&r&&r.scheme==l.scheme?c=zI:l.isSpecial()?c=KI:"/"==n[u+1]?(c=BI,u++):(l.cannotBeABaseURL=!0,oI(l.path,""),c=tM)}break;case FI:if(!r||r.cannotBeABaseURL&&"#"!=i)return pI;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=Nx(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=nM;break}c="file"==r.scheme?QI:VI;continue;case zI:if("/"!=i||"/"!=n[u+1]){c=VI;continue}c=HI,u++;break;case BI:if("/"==i){c=qI;break}c=eM;continue;case VI:if(l.scheme=r.scheme,i==rx)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=Nx(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=WI;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=Nx(r.path),l.query="",c=rM;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=Nx(r.path),l.path.length--,c=eM;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=Nx(r.path),l.query=r.query,l.fragment="",c=nM}break;case WI:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=eM;continue}c=qI}else c=HI;break;case KI:if(c=HI,"/"!=i||"/"!=eI(f,u+1))continue;u++;break;case HI:if("/"!=i&&"\\"!=i){c=qI;continue}break;case qI:if("@"==i){p&&(f="%40"+f),p=!0,o=jx(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||d){var y=AI(g,MI);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==rx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(p&&""==f)return"Invalid authority";u-=jx(f).length+1,f="",c=XI}else f+=i;break;case XI:case GI:if(t&&"file"==l.scheme){c=$I;continue}if(":"!=i||h){if(i==rx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return hI;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=ZI,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return hI;if(a=l.parseHost(f))return a;if(f="",c=YI,t==GI)return}break;case YI:if(!tI(yI,i)){if(i==rx||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=Jx(f,10);if(m>65535)return dI;l.port=l.isSpecial()&&m===CI[l.scheme]?null:m,f=""}if(t)return;c=ZI;continue}return dI}f+=i;break;case QI:if(l.scheme="file","/"==i||"\\"==i)c=JI;else{if(!r||"file"!=r.scheme){c=eM;continue}if(i==rx)l.host=r.host,l.path=Nx(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=Nx(r.path),l.query="",c=rM;else{if("#"!=i){LI(rI(Nx(n,u),""))||(l.host=r.host,l.path=Nx(r.path),l.shortenPath()),c=eM;continue}l.host=r.host,l.path=Nx(r.path),l.query=r.query,l.fragment="",c=nM}}break;case JI:if("/"==i||"\\"==i){c=$I;break}r&&"file"==r.scheme&&!LI(rI(Nx(n,u),""))&&(DI(r.path[0],!0)?oI(l.path,r.path[0]):l.host=r.host),c=eM;continue;case $I:if(i==rx||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&DI(f))c=eM;else if(""==f){if(l.host="",t)return;c=ZI}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=ZI}continue}f+=i;break;case ZI:if(l.isSpecial()){if(c=eM,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=rx&&(c=eM,"/"!=i))continue}else l.fragment="",c=nM;else l.query="",c=rM;break;case eM:if(i==rx||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=uI(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||oI(l.path,"")):jI(f)?"/"==i||"\\"==i&&l.isSpecial()||oI(l.path,""):("file"==l.scheme&&!l.path.length&&DI(f)&&(l.host&&(l.host=""),f=eI(f,0)+":"),oI(l.path,f)),f="","file"==l.scheme&&(i==rx||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)sI(l.path);"?"==i?(l.query="",c=rM):"#"==i&&(l.fragment="",c=nM)}else f+=AI(i,II);break;case tM:"?"==i?(l.query="",c=rM):"#"==i?(l.fragment="",c=nM):i!=rx&&(l.path[0]+=AI(i,OI));break;case rM:t||"#"!=i?i!=rx&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":AI(i,OI)):(l.fragment="",c=nM);break;case nM:i!=rx&&(l.fragment+=AI(i,xI))}u++}},parseHost:function(e){var t,r,n;if("["==eI(e,0)){if("]"!=eI(e,e.length-1))return hI;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 eI(e,f)};if(":"==p()){if(":"!=eI(e,1))return;f+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&tI(wI,p());)t=16*t+Jx(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(!tI(yI,p()))return;for(;tI(yI,p());){if(o=Jx(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}(cI(e,1,-1)),!t)return hI;this.host=t}else if(this.isSpecial()){if(e=Fx(e),tI(SI,e))return hI;if(t=function(e){var t,r,n,i,o,a,s,l=lI(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"==eI(i,0)&&(o=tI(mI,i)?16:8,i=cI(i,8==o?1:2)),""===i)a=0;else{if(!tI(10==o?bI:8==o?_I:wI,i))return e;a=Jx(i,o)}oI(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=Zx(256,5-t))return null}else if(a>255)return null;for(s=iI(r),n=0;n<r.length;n++)s+=r[n]*Zx(256,3-n);return s}(e),null===t)return hI;this.host=t}else{if(tI(EI,e))return hI;for(t="",r=jx(e),n=0;n<r.length;n++)t+=AI(r[n],OI);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Dx(CI,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&DI(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+=kI(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+rI(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw Qx(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new oM(e.path[0]).origin}catch(xD){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+kI(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(zx(e)+":",NI)},getUsername:function(){return this.username},setUsername:function(e){var t=jx(zx(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=AI(t[r],MI)}},getPassword:function(){return this.password},setPassword:function(e){var t=jx(zx(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=AI(t[r],MI)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?kI(e):kI(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,XI)},getHostname:function(){var e=this.host;return null===e?"":kI(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,GI)},getPort:function(){var e=this.port;return null===e?"":zx(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=zx(e))?this.port=null:this.parse(e,YI))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+rI(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ZI))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=zx(e))?this.query=null:("?"==eI(e,0)&&(e=cI(e,1)),this.query="",this.parse(e,rM)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=zx(e))?("#"==eI(e,0)&&(e=cI(e,1)),this.fragment="",this.parse(e,nM)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var oM=function(e){var t=Cx(this,aM),r=Vx(arguments.length,1)>1?arguments[1]:void 0,n=Hx(t,new iM(e,!1,r));Rx||(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())},aM=oM.prototype,sM=function(e,t){return{get:function(){return qx(this)[e]()},set:t&&function(e){return qx(this)[t](e)},configurable:!0,enumerable:!0}};if(Rx&&(Ax(aM,"href",sM("serialize","setHref")),Ax(aM,"origin",sM("getOrigin")),Ax(aM,"protocol",sM("getProtocol","setProtocol")),Ax(aM,"username",sM("getUsername","setUsername")),Ax(aM,"password",sM("getPassword","setPassword")),Ax(aM,"host",sM("getHost","setHost")),Ax(aM,"hostname",sM("getHostname","setHostname")),Ax(aM,"port",sM("getPort","setPort")),Ax(aM,"pathname",sM("getPathname","setPathname")),Ax(aM,"search",sM("getSearch","setSearch")),Ax(aM,"searchParams",sM("getSearchParams")),Ax(aM,"hash",sM("getHash","setHash"))),Mx(aM,"toJSON",(function(){return qx(this).serialize()}),{enumerable:!0}),Mx(aM,"toString",(function(){return qx(this).serialize()}),{enumerable:!0}),Yx){var lM=Yx.createObjectURL,cM=Yx.revokeObjectURL;lM&&Mx(oM,"createObjectURL",xx(lM,Yx)),cM&&Mx(oM,"revokeObjectURL",xx(cM,Yx))}Bx(oM,"URL"),Px({global:!0,constructor:!0,forced:!kx,sham:!Rx},{URL:oM});var uM=Or,fM=o,pM=Kd,hM=Yn,dM=Kw,vM=ae("URL");uM({target:"URL",stat:!0,forced:!(dM&&fM((function(){vM.canParse()})))},{canParse:function(e){var t=pM(arguments.length,1),r=hM(e),n=t<2||void 0===arguments[1]?void 0:hM(arguments[1]);try{return!!new vM(r,n)}catch(xD){return!1}}});var gM=r(te.URL),yM=Or,mM=i,_M=iR,bM=o,wM=gr,SM=rd,EM=Cd,TM=k,PM=ee,RM=Ao,kM=Jt.f,OM=ra.forEach,xM=x,IM=Go.set,MM=Go.getterFor,AM=Bi,CM=so,DM=qw,LM=Qt,jM=Cd,NM=H,UM=rd,FM=gc,zM=yc,BM=Id,VM=x,WM=iR.fastKey,KM=Go.set,HM=Go.getterFor,qM={getConstructor:function(e,t,r,n){var i=e((function(e,i){jM(e,o),KM(e,{type:t,index:AM(null),first:void 0,last:void 0,size:0}),VM||(e.size=0),NM(i)||UM(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=HM(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=WM(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),VM?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var r,n=a(e),i=WM(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return DM(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,VM?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),VM?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=LM(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)}}),DM(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)}}),VM&&CM(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=HM(t),o=HM(n);FM(e,t,(function(e,t){KM(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)?zM("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,zM(void 0,!0))}),r?"entries":"values",!r,!0),BM(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=mM[e],l=s&&s.prototype,c={};if(xM&&TM(s)&&(o||l.forEach&&!bM((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){IM(EM(t,u),{type:e,collection:new s}),null!=r&&SM(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=MM(e);OM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||wM(u,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!PM(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||kM(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),_M.enable();RM(n,e,!1,!0),c[e]=n,yM({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)}}),qM);var XM=te.Map,GM=Qt,YM=A,QM=Me,JM=Nd,$M=H,ZM=rd,eA=[].push,tA=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return JM(this),(t=void 0!==a)&&QM(a),$M(e)?new this:(r=[],t?(n=0,i=GM(a,o>2?arguments[2]:void 0),ZM(e,(function(e){YM(eA,r,i(e,n++))}))):ZM(e,eA,{that:r}),new this(r))};Or({target:"Map",stat:!0,forced:!0},{from:tA});var rA=Rs,nA=function(){return new this(rA(arguments))};Or({target:"Map",stat:!0,forced:!0},{of:nA});var iA=ke,oA=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(iA(e)+" is not a map")},aA=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},sA=ae("Map"),lA={Map:sA,set:aA("set",2),get:aA("get",1),has:aA("has",1),remove:aA("delete",1),proto:sA.prototype},cA=oA,uA=lA.remove;Or({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=cA(this),r=!0,n=0,i=arguments.length;n<i;n++)e=uA(t,arguments[n]),r=r&&e;return!!r}});var fA=oA,pA=lA.get,hA=lA.has,dA=lA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=fA(this);return hA(i,e)?(r=pA(i,e),"update"in t&&(r=t.update(r,e,i),dA(i,e,r)),r):(n=t.insert(e,i),dA(i,e,n),n)}});var vA=A,gA=function(e,t,r){for(var n,i,o=r||e.next;!(n=vA(o,e)).done;)if(void 0!==(i=t(n.value)))return i},yA=function(e,t,r){return r?gA(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},mA=Qt,_A=oA,bA=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=_A(this),r=mA(e,arguments.length>1?arguments[1]:void 0);return!1!==bA(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var wA=Qt,SA=oA,EA=yA,TA=lA.Map,PA=lA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=SA(this),r=wA(e,arguments.length>1?arguments[1]:void 0),n=new TA;return EA(t,(function(e,i){r(e,i,t)&&PA(n,i,e)})),n}});var RA=Qt,kA=oA,OA=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=kA(this),r=RA(e,arguments.length>1?arguments[1]:void 0),n=OA(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var xA=Qt,IA=oA,MA=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=IA(this),r=xA(e,arguments.length>1?arguments[1]:void 0),n=MA(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var AA=Or,CA=A,DA=k,LA=Me,jA=rd,NA=lA.Map,UA=g([].push);AA({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(DA(this)?this:NA);LA(t);var n=LA(r.has),i=LA(r.get),o=LA(r.set);return jA(e,(function(e){var a=t(e);CA(n,r,a)?UA(CA(i,r,a),e):CA(o,r,a,[e])})),r}});var FA=function(e,t){return e===t||e!=e&&t!=t},zA=oA,BA=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===BA(zA(this),(function(t){if(FA(t,e))return!0}),!0)}});var VA=A,WA=rd,KA=k,HA=Me,qA=lA.Map;Or({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(KA(this)?this:qA);HA(t);var n=HA(r.set);return WA(e,(function(e){VA(n,r,t(e),e)})),r}});var XA=oA,GA=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=GA(XA(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var YA=Qt,QA=oA,JA=yA,$A=lA.Map,ZA=lA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=QA(this),r=YA(e,arguments.length>1?arguments[1]:void 0),n=new $A;return JA(t,(function(e,i){ZA(n,r(e,i,t),e)})),n}});var eC=Qt,tC=oA,rC=yA,nC=lA.Map,iC=lA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=tC(this),r=eC(e,arguments.length>1?arguments[1]:void 0),n=new nC;return rC(t,(function(e,i){iC(n,i,r(e,i,t))})),n}});var oC=oA,aC=rd,sC=lA.set;Or({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=oC(this),r=arguments.length,n=0;n<r;)aC(arguments[n++],(function(e,r){sC(t,e,r)}),{AS_ENTRIES:!0});return t}});var lC=Me,cC=oA,uC=yA,fC=TypeError;Or({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=cC(this),r=arguments.length<2,n=r?void 0:arguments[1];if(lC(e),uC(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw fC("Reduce of empty map with no initial value");return n}});var pC=Qt,hC=oA,dC=yA;Or({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=hC(this),r=pC(e,arguments.length>1?arguments[1]:void 0);return!0===dC(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var vC=Me,gC=oA,yC=TypeError,mC=lA.get,_C=lA.has,bC=lA.set;Or({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=gC(this),n=arguments.length;vC(t);var i=_C(r,e);if(!i&&n<3)throw yC("Updating absent value");var o=i?mC(r,e):vC(n>2?arguments[2]:void 0)(e,r);return bC(r,e,t(o,e,r)),r}});var wC=A,SC=Me,EC=k,TC=rr,PC=TypeError,RC=function(e,t){var r,n=TC(this),i=SC(n.get),o=SC(n.has),a=SC(n.set),s=arguments.length>2?arguments[2]:void 0;if(!EC(t)&&!EC(s))throw PC("At least one callback required");return wC(o,n,e)?(r=wC(i,n,e),EC(t)&&(r=t(r),wC(a,n,e,r))):EC(s)&&(r=s(),wC(a,n,e,r)),r};Or({target:"Map",proto:!0,real:!0,forced:!0},{upsert:RC}),Or({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:RC});var kC,OC,xC=r(XM);function IC(e,t,r){var n;r_()?IC=Nm(n=e_).call(n):IC=function(e,t,r){var n=[null];Hu(n).apply(n,t);var i=new(Nm(Function).apply(e,n));return r&&Um(i,r.prototype),i};return IC.apply(null,arguments)}function MC(e){var t="function"==typeof xC?new xC:void 0;return MC=function(e){if(null===e||(r=e,-1===W_(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 IC(e,arguments,t_(this).constructor)}return i.prototype=bh(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Um(i,e)},MC(e)}var AC=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}(AC||{}),CC=(vh(kC={},2100,{messageTextKey:"NETWORK",level:"Error"}),vh(kC,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),vh(kC,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),vh(kC,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),vh(kC,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),vh(kC,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),vh(kC,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),vh(kC,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),vh(kC,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),vh(kC,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),vh(kC,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),vh(kC,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),kC);vh(OC={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),vh(OC,"network",{messageTextKey:"NETWORK",level:"Error"}),vh(OC,"demux",{messageTextKey:"DEMUX",level:"Error"}),vh(OC,"remux",{messageTextKey:"REMUX",level:"Error"}),vh(OC,"media",{messageTextKey:"MEDIA",level:"Error"}),vh(OC,"drm",{messageTextKey:"DRM",level:"Error"}),vh(OC,"other",{messageTextKey:"OTHER",level:"Error"}),vh(OC,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var DC,LC,jC=function(e){Fm(r,e);var t=i_(r);function r(e,n){var i,o,a,s,l,c,u;ym(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(n_(u=t.call(this,p)),"errorCode",void 0),vh(n_(u),"level",void 0),vh(n_(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 _m(r)}(MC(Error));function NC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new jC(yh(yh({errorCode:e},CC[e]),t),r)}var UC=null!==(DC=null===(LC=document.currentScript)||void 0===LC?void 0:LC.src)&&void 0!==DC?DC:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.1-rc.1","/object/umd/"),FC=new Ik({baseUrl:rw(UC).call(UC,0,_T(UC).call(UC,"/"))});function zC(e,t){return BC.apply(this,arguments)}function BC(){return(BC=gm(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,FC.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),NC(AC.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)}FC.registerPlugin,FC.register;var VC=function(e){return e.H265="h265",e.H264="h264",e}(VC||{}),WC=function(e){if(e){NE(e).call(e,"//")&&(e=location.protocol+e);try{return new gM(e)}catch(xD){return}}};function KC(e){return function(t){var r;return null==t?void 0:eT(r=t.split("?")[0].toLowerCase()).call(r,e)}}var HC=KC(".m3u8"),qC=KC(".mp4"),XC=KC(".flv"),GC=KC(".sdp"),YC=KC(".mpd");function QC(e){return HC(e)?"hls":XC(e)?"flv":GC(e)?"rtm":qC(e)?"mp4":YC(e)?"dash":"unknown"}function JC(){return(JC=gm(dm().mark((function e(){var t,r;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zC(xk.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({},tx),{},{getStreamType:QC,isMseSupported:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:VC.H264)===VC.H265?ax.isHevcSupported():ax.isMSESupport()},isSoftDecodeSupported:function(){return JC.apply(this,arguments)},appendSearchParams:function(e,t){var r,n=WC(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var i,o=NE(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:WC});var $C,ZC=window.VePlayer.DynamicModule,eD=window.VePlayer.load,tD=function(){var e=gm(dm().mark((function e(t){var r,n,i,o,a,s;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("rtm"!==(o=t.url&&QC(t.url))){e.next=3;break}return e.abrupt("return",{});case 3:if(a="flv"===o?null==t||null===(r=t.flv)||void 0===r?void 0:r.abr:null==t||null===(n=t.hls)||void 0===n?void 0:n.abr){e.next=6;break}return e.abrupt("return",{});case 6:return e.next=8,eD(ZC.PluginAbr).catch((function(){}));case 8:return s=e.sent,e.abrupt("return",{options:vh({},"flv"===o?"abr":"hlsabr",yh(yh({},a),{},{open:null===(i=a.enable)||void 0===i||i})),plugins:["flv"===o?null==s?void 0:s.AbrPlugin:null==s?void 0:s.HlsAbrPlugin]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rD=window.VePlayer.DEFAULT_PLUGINS,nD=window.VePlayer.VePlayerBase,iD=window.VePlayer.VeI18n;iD.extend([{LANG:"zh-cn",TEXT:Ek},{LANG:"en",TEXT:Sk}]);var oD={autoplay:{muted:!0}},aD=u_($C=[]).call($C,o_(rD),[Ow,gk,wk]),sD=function(e){return e.H264="h264",e}(sD||{}),lD=function(e){Fm(n,e);var t,r=i_(n);function n(e){return ym(this,n),r.call(this,e)}return _m(n,[{key:"playTime",get:function(){var e;if(null===(e=this._player)||void 0===e||null===(e=e.played)||void 0===e||!e.length)return 0;for(var t=this._player.played.length,r=0,n=0;n<t;n++){var i,o,a=null===(i=this._player)||void 0===i?void 0:i.played.start(n);r+=(null===(o=this._player)||void 0===o?void 0:o.played.end(n))-a}return r}},{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}},{key:"openAbr",value:function(){var e,t,r=this.url&&QC(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!0)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!0)}},{key:"closeAbr",value:function(){var e,t,r=this.url&&QC(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!1)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!1)}},{key:"updateDrmConfig",value:function(e){var t;null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.drm)||void 0===t||t.updateDrmConfig(e)}},{key:"switchAbr",value:function(e){var t;if(null!==(t=this._player.plugins)&&void 0!==t&&t.abr){if(void 0!==(null==e?void 0:e.bitrate)){var r=this._player.plugins.abr.config.urls[e.bitrate];if(!r)return;this.switch(r,{seamless:!0}),this._player.plugins.abr.bitrate=e.bitrate}var n;if(void 0!==(null==e?void 0:e.enable))null===(n=this._player.plugins)||void 0===n||n.abr.switchAbr(e.enable)}}},{key:"getRTMNetWorkInfo",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.rts)||void 0===e?void 0:e.getNetWorkInfo()}},{key:"getRTMStats",value:(t=gm(dm().mark((function e(){var t;return dm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.rts)||void 0===t?void 0:t.getStatsSnapshoot());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getFLVStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.flv)||void 0===e?void 0:e.getStats()}}]),n}(nD);function cD(e){return uD.apply(this,arguments)}function uD(){return(uD=gm(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 A_(I_.INVALID_PARAMETER,new iD);case 3:return o=new iD({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=yh(yh({},t),{},{plugins:u_(r=[]).call(r,o_(aD),o_(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,nD.create(yh(yh(yh({},oD),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:dk(e)}},preparePlugins:function(e){return gm(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,f_.all([hb(yh(yh({},a),{},{url:e}),i),kk(yh(yh({},a),{},{url:e}),i),tD(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:R_({},f,d,y),plugins:u_(r=[]).call(r,o_(null!=p?p:[]),o_(null!=v?v:[]),o_(null!=m?m:[]))});case 11:case"end":return t.stop()}}),t)})))()}}),lD);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 fD=Object.freeze({__proto__:null,ErrorCode:I_,Events:Sw}),pD=window.VePlayer.setModuleSystem,hD=window.VePlayer.Codec,dD=window.VePlayer.DecodeType,vD=window.VePlayer.Degradation,gD=window.VePlayer.POSITIONS,yD=window.VePlayer.register,mD=window.VePlayer.registerPlugin,_D=window.VePlayer.EN,bD=window.VePlayer.ZH_CN,wD=window.VePlayer.Plugin,SD=window.VePlayer.Sniffer,ED=window.VePlayer.DynamicModule,TD=window.VePlayer.util,PD=window.VePlayer.load,RD=window.VePlayer.ListType;pD("umd");var kD=TD.isMseSupported,OD=TD.isSoftDecodeSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(ED.BizLive,{createLivePlayer:cD}):mD(ED.BizLive,{createLivePlayer:cD}),e.Codec=hD,e.DecodeType=dD,e.Degradation=vD,e.DynamicModule=ED,e.EN=_D,e.ListType=RD,e.POSITIONS=gD,e.Plugin=wD,e.RTMCodec=sD,e.Sniffer=SD,e.ZH_CN=bD,e.createLivePlayer=cD,e.isMseSupported=kD,e.isRTMSupportCodec=Y_,e.isRTMSupported=X_,e.isSoftDecodeSupported=OD,e.live=fD,e.load=PD,e.register=yD,e.registerPlugin=mD,e.util=TD}));
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),b=function(e){return _(m(e),8,-1)},w=b,E=v,S=function(e){if("Function"===w(e))return E(e)},T="object"==typeof document&&document.all,k={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},R=k.all,A=k.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},P={},I=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=a,O=Function.prototype.call,D=x?O.bind(O):function(){return O.apply(O,arguments)},M={},C={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,F=B&&!C.call({1:2},1);M.f=F?function(e){var t=B(this,e);return!!t&&t.enumerable}:C;var L,U,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},j=o,G=b,V=Object,q=v("".split),z=j((function(){return!V("z").propertyIsEnumerable(0)}))?function(e){return"String"==G(e)?q(e,""):V(e)}:V,K=function(e){return null==e},H=K,W=TypeError,X=function(e){if(H(e))throw W("Can't call method on "+e);return e},$=z,Y=X,J=function(e){return $(Y(e))},Z=A,Q=k.all,ee=k.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Z(e)||e===Q}:function(e){return"object"==typeof e?null!==e:Z(e)},te={},re=te,ne=i,ie=A,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&&(U=(L=de.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!U&&ue&&(!(L=ue.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=ue.match(/Chrome\/(\d+)/))&&(U=+L[1]);var ge=U,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})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Ee=A,Se=se,Te=Object,ke=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Ee(t)&&Se(t.prototype,Te(e))},Re=String,Ae=function(e){try{return Re(e)}catch(t){return"Object"}},Pe=A,Ie=Ae,xe=TypeError,Oe=function(e){if(Pe(e))return e;throw xe(Ie(e)+" is not a function")},De=Oe,Me=K,Ce=function(e,t){var r=e[t];return Me(r)?void 0:De(r)},Be=D,Fe=A,Le=ee,Ue=TypeError,Ne={exports:{}},je=i,Ge=Object.defineProperty,Ve=function(e,t){try{Ge(je,e,{value:t,configurable:!0,writable:!0})}catch(r){je[e]=t}return t},qe="__core-js_shared__",ze=i[qe]||Ve(qe,{}),Ke=ze;(Ne.exports=function(e,t){return Ke[e]||(Ke[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 He=Ne.exports,We=X,Xe=Object,$e=function(e){return Xe(We(e))},Ye=$e,Je=v({}.hasOwnProperty),Ze=Object.hasOwn||function(e,t){return Je(Ye(e),t)},Qe=v,et=0,tt=Math.random(),rt=Qe(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=He,ot=Ze,at=nt,st=_e,lt=be,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=D,dt=ee,gt=ke,vt=Ce,yt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!Le(n=Be(r,e)))return n;if(Fe(r=e.valueOf)&&!Le(n=Be(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!Le(n=Be(r,e)))return n;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=ht("toPrimitive"),bt=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)},wt=ke,Et=function(e){var t=bt(e,"string");return wt(t)?t:t+""},St=ee,Tt=i.document,kt=St(Tt)&&St(Tt.createElement),Rt=function(e){return kt?Tt.createElement(e):{}},At=Rt,Pt=!I&&!o((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),It=I,xt=D,Ot=M,Dt=N,Mt=J,Ct=Et,Bt=Ze,Ft=Pt,Lt=Object.getOwnPropertyDescriptor;P.f=It?Lt:function(e,t){if(e=Mt(e),t=Ct(t),Ft)try{return Lt(e,t)}catch(r){}if(Bt(e,t))return Dt(!xt(Ot.f,e,t),e[t])};var Ut=o,Nt=A,jt=/#|\.prototype\./,Gt=function(e,t){var r=qt[Vt(e)];return r==Kt||r!=zt&&(Nt(t)?Ut(t):!!t)},Vt=Gt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},qt=Gt.data={},zt=Gt.NATIVE="N",Kt=Gt.POLYFILL="P",Ht=Gt,Wt=Oe,Xt=a,$t=S(S.bind),Yt=function(e,t){return Wt(e),void 0===t?e:Xt?$t(e,t):function(){return e.apply(t,arguments)}},Jt={},Zt=I&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=ee,er=String,tr=TypeError,rr=function(e){if(Qt(e))return e;throw tr(er(e)+" is not an object")},nr=I,ir=Pt,or=Zt,ar=rr,sr=Et,lr=TypeError,cr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",pr="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&&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=Jt,gr=N,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=S,br=A,wr=P.f,Er=Ht,Sr=te,Tr=Yt,kr=vr,Rr=Ze,Ar=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},Pr=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?Sr:Sr[f]||kr(Sr,f,{})[f],y=v.prototype;for(o in t)n=!(r=Er(h?o:f+(p?".":"#")+o,e.forced))&&g&&Rr(g,o),s=v[o],n&&(l=e.dontCallGetSet?(u=wr(g,o))&&u.value:g[o]),a=n&&l?l:t[o],n&&typeof s==typeof a||(c=e.bind&&n?Tr(a,yr):e.wrap&&n?Ar(a):d&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&kr(c,"sham",!0),kr(v,o,c),d&&(Rr(Sr,i=f+"Prototype")||kr(Sr,i,{}),kr(Sr[i],o,a),e.real&&y&&(r||!y[o])&&kr(y,o,a)))},Ir=b,xr=Array.isArray||function(e){return"Array"==Ir(e)};Pr({target:"Array",stat:!0},{isArray:xr});var Or=te.Array.isArray,Dr=r(Or);var Mr=Math.ceil,Cr=Math.floor,Br=Math.trunc||function(e){var t=+e;return(t>0?Cr:Mr)(t)},Fr=function(e){var t=+e;return t!=t||0===t?0:Br(t)},Lr=Fr,Ur=Math.min,Nr=function(e){return e>0?Ur(Lr(e),9007199254740991):0},jr=Nr,Gr=function(e){return jr(e.length)},Vr=TypeError,qr=function(e){if(e>9007199254740991)throw Vr("Maximum allowed index exceeded");return e},zr=Et,Kr=Jt,Hr=N,Wr=function(e,t,r){var n=zr(t);n in e?Kr.f(e,n,Hr(0,r)):e[n]=r},Xr={};Xr[ht("toStringTag")]="z";var $r="[object z]"===String(Xr),Yr=$r,Jr=A,Zr=b,Qr=ht("toStringTag"),en=Object,tn="Arguments"==Zr(function(){return arguments}()),rn=Yr?Zr: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),Qr))?r:tn?Zr(t):"Object"==(n=Zr(t))&&Jr(t.callee)?"Arguments":n},nn=A,on=ze,an=v(Function.toString);nn(on.inspectSource)||(on.inspectSource=function(e){return an(e)});var sn=on.inspectSource,ln=v,cn=o,un=A,fn=rn,hn=sn,pn=function(){},dn=[],gn=ae("Reflect","construct"),vn=/^\s*(?:class|function)\b/,yn=ln(vn.exec),mn=!vn.exec(pn),_n=function(e){if(!un(e))return!1;try{return gn(pn,dn,e),!0}catch(t){return!1}},bn=function(e){if(!un(e))return!1;switch(fn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mn||!!yn(vn,hn(e))}catch(t){return!0}};bn.sham=!0;var wn=!gn||cn((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?bn:_n,En=xr,Sn=wn,Tn=ee,kn=ht("species"),Rn=Array,An=function(e){var t;return En(e)&&(t=e.constructor,(Sn(t)&&(t===Rn||En(t.prototype))||Tn(t)&&null===(t=t[kn]))&&(t=void 0)),void 0===t?Rn:t},Pn=function(e,t){return new(An(e))(0===t?0:t)},In=o,xn=ge,On=ht("species"),Dn=function(e){return xn>=51||!In((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Mn=Pr,Cn=o,Bn=xr,Fn=ee,Ln=$e,Un=Gr,Nn=qr,jn=Wr,Gn=Pn,Vn=Dn,qn=ge,zn=ht("isConcatSpreadable"),Kn=qn>=51||!Cn((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Hn=function(e){if(!Fn(e))return!1;var t=e[zn];return void 0!==t?!!t:Bn(e)};Mn({target:"Array",proto:!0,arity:1,forced:!Kn||!Vn("concat")},{concat:function(e){var t,r,n,i,o,a=Ln(this),s=Gn(a,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(Hn(o=-1===t?a:arguments[t]))for(i=Un(o),Nn(l+i),r=0;r<i;r++,l++)r in o&&jn(s,l,o[r]);else Nn(l+1),jn(s,l++,o);return s.length=l,s}});var Wn=rn,Xn=String,$n=function(e){if("Symbol"===Wn(e))throw TypeError("Cannot convert a Symbol value to a string");return Xn(e)},Yn={},Jn=Fr,Zn=Math.max,Qn=Math.min,ei=function(e,t){var r=Jn(e);return r<0?Zn(r+t,0):Qn(r,t)},ti=J,ri=ei,ni=Gr,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=Ze,li=J,ci=oi.indexOf,ui=ai,fi=v([].push),hi=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},pi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=hi,gi=pi,vi=Object.keys||function(e){return di(e,gi)},yi=I,mi=Zt,_i=Jt,bi=rr,wi=J,Ei=vi;Yn.f=yi&&!mi?Object.defineProperties:function(e,t){bi(e);for(var r,n=wi(t),i=Ei(t),o=i.length,a=0;o>a;)_i.f(e,r=i[a++],n[r]);return e};var Si,Ti=ae("document","documentElement"),ki=nt,Ri=He("keys"),Ai=function(e){return Ri[e]||(Ri[e]=ki(e))},Pi=rr,Ii=Yn,xi=pi,Oi=ai,Di=Ti,Mi=Rt,Ci="prototype",Bi="script",Fi=Ai("IE_PROTO"),Li=function(){},Ui=function(e){return"<"+Bi+">"+e+"</"+Bi+">"},Ni=function(e){e.write(Ui("")),e.close();var t=e.parentWindow.Object;return e=null,t},ji=function(){try{Si=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;ji="undefined"!=typeof document?document.domain&&Si?Ni(Si):(t=Mi("iframe"),r="java"+Bi+":",t.style.display="none",Di.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Ui("document.F=Object")),e.close(),e.F):Ni(Si);for(var n=xi.length;n--;)delete ji[Ci][xi[n]];return ji()};Oi[Fi]=!0;var Gi=Object.create||function(e,t){var r;return null!==e?(Li[Ci]=Pi(e),r=new Li,Li[Ci]=null,r[Fi]=e):r=ji(),void 0===t?r:Ii.f(r,t)},Vi={},qi=hi,zi=pi.concat("length","prototype");Vi.f=Object.getOwnPropertyNames||function(e){return qi(e,zi)};var Ki={},Hi=ei,Wi=Gr,Xi=Wr,$i=Array,Yi=Math.max,Ji=function(e,t,r){for(var n=Wi(e),i=Hi(t,n),o=Hi(void 0===r?n:r,n),a=$i(Yi(o-i,0)),s=0;i<o;i++,s++)Xi(a,s,e[i]);return a.length=s,a},Zi=b,Qi=J,eo=Vi.f,to=Ji,ro="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ki.f=function(e){return ro&&"Window"==Zi(e)?function(e){try{return eo(e)}catch(t){return to(ro)}}(e):eo(Qi(e))};var no={};no.f=Object.getOwnPropertySymbols;var io=vr,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=ht;lo.f=co;var uo,fo,ho,po=te,go=Ze,vo=lo,yo=Jt.f,mo=function(e){var t=po.Symbol||(po.Symbol={});go(t,e)||yo(t,e,{value:vo.f(e)})},_o=D,bo=ae,wo=ht,Eo=oo,So=function(){var e=bo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=wo("toPrimitive");t&&!t[n]&&Eo(t,n,(function(e){return _o(r,this)}),{arity:1})},To=rn,ko=$r?{}.toString:function(){return"[object "+To(this)+"]"},Ro=$r,Ao=Jt.f,Po=vr,Io=Ze,xo=ko,Oo=ht("toStringTag"),Do=function(e,t,r,n){if(e){var i=r?e:e.prototype;Io(i,Oo)||Ao(i,Oo,{configurable:!0,value:t}),n&&!Ro&&Po(i,"toString",xo)}},Mo=A,Co=i.WeakMap,Bo=Mo(Co)&&/native code/.test(String(Co)),Fo=i,Lo=ee,Uo=vr,No=Ze,jo=ze,Go=Ai,Vo=ai,qo="Object already initialized",zo=Fo.TypeError,Ko=Fo.WeakMap;if(Bo||jo.state){var Ho=jo.state||(jo.state=new Ko);Ho.get=Ho.get,Ho.has=Ho.has,Ho.set=Ho.set,uo=function(e,t){if(Ho.has(e))throw zo(qo);return t.facade=e,Ho.set(e,t),t},fo=function(e){return Ho.get(e)||{}},ho=function(e){return Ho.has(e)}}else{var Wo=Go("state");Vo[Wo]=!0,uo=function(e,t){if(No(e,Wo))throw zo(qo);return t.facade=e,Uo(e,Wo,t),t},fo=function(e){return No(e,Wo)?e[Wo]:{}},ho=function(e){return No(e,Wo)}}var Xo={set:uo,get:fo,has:ho,enforce:function(e){return ho(e)?fo(e):uo(e,{})},getterFor:function(e){return function(t){var r;if(!Lo(t)||(r=fo(t)).type!==e)throw zo("Incompatible receiver, "+e+" required");return r}}},$o=Yt,Yo=z,Jo=$e,Zo=Gr,Qo=Pn,ea=v([].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 h,p,d=Jo(l),g=Yo(d),v=$o(c,u),y=Zo(g),m=0,_=f||Qo,b=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)b[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:ea(b,h)}else switch(e){case 4:return!1;case 7:ea(b,h)}return o?-1:n||i?i:b}},ra={forEach:ta(0),map:ta(1),filter:ta(2),some:ta(3),every:ta(4),find:ta(5),findIndex:ta(6),filterReject:ta(7)},na=Pr,ia=i,oa=D,aa=v,sa=I,la=_e,ca=o,ua=Ze,fa=se,ha=rr,pa=J,da=Et,ga=$n,va=N,ya=Gi,ma=vi,_a=Vi,ba=Ki,wa=no,Ea=P,Sa=Jt,Ta=Yn,ka=M,Ra=oo,Aa=so,Pa=He,Ia=ai,xa=nt,Oa=ht,Da=lo,Ma=mo,Ca=So,Ba=Do,Fa=Xo,La=ra.forEach,Ua=Ai("hidden"),Na="Symbol",ja="prototype",Ga=Fa.set,Va=Fa.getterFor(Na),qa=Object[ja],za=ia.Symbol,Ka=za&&za[ja],Ha=ia.TypeError,Wa=ia.QObject,Xa=Ea.f,$a=Sa.f,Ya=ba.f,Ja=ka.f,Za=aa([].push),Qa=Pa("symbols"),es=Pa("op-symbols"),ts=Pa("wks"),rs=!Wa||!Wa[ja]||!Wa[ja].findChild,ns=sa&&ca((function(){return 7!=ya($a({},"a",{get:function(){return $a(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Xa(qa,t);n&&delete qa[t],$a(e,t,r),n&&e!==qa&&$a(qa,t,n)}:$a,is=function(e,t){var r=Qa[e]=ya(Ka);return Ga(r,{type:Na,tag:e,description:t}),sa||(r.description=t),r},os=function(e,t,r){e===qa&&os(es,t,r),ha(e);var n=da(t);return ha(r),ua(Qa,n)?(r.enumerable?(ua(e,Ua)&&e[Ua][n]&&(e[Ua][n]=!1),r=ya(r,{enumerable:va(0,!1)})):(ua(e,Ua)||$a(e,Ua,va(1,{})),e[Ua][n]=!0),ns(e,n,r)):$a(e,n,r)},as=function(e,t){ha(e);var r=pa(t),n=ma(r).concat(us(r));return La(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===qa&&ua(Qa,t)&&!ua(es,t))&&(!(r||!ua(this,t)||!ua(Qa,t)||ua(this,Ua)&&this[Ua][t])||r)},ls=function(e,t){var r=pa(e),n=da(t);if(r!==qa||!ua(Qa,n)||ua(es,n)){var i=Xa(r,n);return!i||!ua(Qa,n)||ua(r,Ua)&&r[Ua][n]||(i.enumerable=!0),i}},cs=function(e){var t=Ya(pa(e)),r=[];return La(t,(function(e){ua(Qa,e)||ua(Ia,e)||Za(r,e)})),r},us=function(e){var t=e===qa,r=Ya(t?es:pa(e)),n=[];return La(r,(function(e){!ua(Qa,e)||t&&!ua(qa,e)||Za(n,Qa[e])})),n};la||(za=function(){if(fa(Ka,this))throw Ha("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ga(arguments[0]):void 0,t=xa(e),r=function(e){this===qa&&oa(r,es,e),ua(this,Ua)&&ua(this[Ua],t)&&(this[Ua][t]=!1),ns(this,t,va(1,e))};return sa&&rs&&ns(qa,t,{configurable:!0,set:r}),is(t,e)},Ra(Ka=za[ja],"toString",(function(){return Va(this).tag})),Ra(za,"withoutSetter",(function(e){return is(xa(e),e)})),ka.f=ss,Sa.f=os,Ta.f=as,Ea.f=ls,_a.f=ba.f=cs,wa.f=us,Da.f=function(e){return is(Oa(e),e)},sa&&Aa(Ka,"description",{configurable:!0,get:function(){return Va(this).description}})),na({global:!0,constructor:!0,wrap:!0,forced:!la,sham:!la},{Symbol:za}),La(ma(ts),(function(e){Ma(e)})),na({target:Na,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}),Ca(),Ba(za,Na),Ia[Ua]=!0;var fs=_e&&!!Symbol.for&&!!Symbol.keyFor,hs=Pr,ps=ae,ds=Ze,gs=$n,vs=He,ys=fs,ms=vs("string-to-symbol-registry"),_s=vs("symbol-to-string-registry");hs({target:"Symbol",stat:!0,forced:!ys},{for:function(e){var t=gs(e);if(ds(ms,t))return ms[t];var r=ps("Symbol")(t);return ms[t]=r,_s[r]=t,r}});var bs=Pr,ws=Ze,Es=ke,Ss=Ae,Ts=fs,ks=He("symbol-to-string-registry");bs({target:"Symbol",stat:!0,forced:!Ts},{keyFor:function(e){if(!Es(e))throw TypeError(Ss(e)+" is not a symbol");if(ws(ks,e))return ks[e]}});var Rs=v([].slice),As=xr,Ps=A,Is=b,xs=$n,Os=v([].push),Ds=Pr,Ms=ae,Cs=f,Bs=D,Fs=v,Ls=o,Us=A,Ns=ke,js=Rs,Gs=function(e){if(Ps(e))return e;if(As(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Os(r,i):"number"!=typeof i&&"Number"!=Is(i)&&"String"!=Is(i)||Os(r,xs(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(As(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Vs=_e,qs=String,zs=Ms("JSON","stringify"),Ks=Fs(/./.exec),Hs=Fs("".charAt),Ws=Fs("".charCodeAt),Xs=Fs("".replace),$s=Fs(1..toString),Ys=/[\uD800-\uDFFF]/g,Js=/^[\uD800-\uDBFF]$/,Zs=/^[\uDC00-\uDFFF]$/,Qs=!Vs||Ls((function(){var e=Ms("Symbol")();return"[null]"!=zs([e])||"{}"!=zs({a:e})||"{}"!=zs(Object(e))})),el=Ls((function(){return'"\\udf06\\ud834"'!==zs("\udf06\ud834")||'"\\udead"'!==zs("\udead")})),tl=function(e,t){var r=js(arguments),n=Gs(t);if(Us(n)||void 0!==e&&!Ns(e))return r[1]=function(e,t){if(Us(n)&&(t=Bs(n,this,qs(e),t)),!Ns(t))return t},Cs(zs,null,r)},rl=function(e,t,r){var n=Hs(r,t-1),i=Hs(r,t+1);return Ks(Js,e)&&!Ks(Zs,i)||Ks(Zs,e)&&!Ks(Js,n)?"\\u"+$s(Ws(e,0),16):e};zs&&Ds({target:"JSON",stat:!0,arity:3,forced:Qs||el},{stringify:function(e,t,r){var n=js(arguments),i=Cs(Qs?tl:zs,null,n);return el&&"string"==typeof i?Xs(i,Ys,rl):i}});var nl=no,il=$e;Pr({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=So;mo("toPrimitive"),ol();var al=ae,sl=Do;mo("toStringTag"),sl(al("Symbol"),"Symbol"),mo("unscopables"),Do(i.JSON,"JSON",!0);var ll,cl,ul,fl=te.Symbol,hl={},pl=I,dl=Ze,gl=Function.prototype,vl=pl&&Object.getOwnPropertyDescriptor,yl=dl(gl,"name"),ml={EXISTS:yl,PROPER:yl&&"something"===function(){}.name,CONFIGURABLE:yl&&(!pl||pl&&vl(gl,"name").configurable)},_l=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bl=Ze,wl=A,El=$e,Sl=_l,Tl=Ai("IE_PROTO"),kl=Object,Rl=kl.prototype,Al=Sl?kl.getPrototypeOf:function(e){var t=El(e);if(bl(t,Tl))return t[Tl];var r=t.constructor;return wl(r)&&t instanceof r?r.prototype:t instanceof kl?Rl:null},Pl=o,Il=A,xl=ee,Ol=Gi,Dl=Al,Ml=oo,Cl=ht("iterator"),Bl=!1;[].keys&&("next"in(ul=[].keys())?(cl=Dl(Dl(ul)))!==Object.prototype&&(ll=cl):Bl=!0);var Fl=!xl(ll)||Pl((function(){var e={};return ll[Cl].call(e)!==e}));Il((ll=Fl?{}:Ol(ll))[Cl])||Ml(ll,Cl,(function(){return this}));var Ll={IteratorPrototype:ll,BUGGY_SAFARI_ITERATORS:Bl},Ul=Ll.IteratorPrototype,Nl=Gi,jl=N,Gl=Do,Vl=hl,ql=function(){return this},zl=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Nl(Ul,{next:jl(+!n,r)}),Gl(e,i,!1,!0),Vl[i]=ql,e},Kl=v,Hl=Oe,Wl=A,Xl=String,$l=TypeError,Yl=function(e,t,r){try{return Kl(Hl(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Jl=rr,Zl=function(e){if("object"==typeof e||Wl(e))return e;throw $l("Can't set "+Xl(e)+" as a prototype")},Ql=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Yl(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Jl(r),Zl(n),t?e(r,n):r.__proto__=n,r}}():void 0),ec=Pr,tc=D,rc=ml,nc=zl,ic=Al,oc=Do,ac=oo,sc=hl,lc=Ll,cc=rc.PROPER,uc=lc.BUGGY_SAFARI_ITERATORS,fc=ht("iterator"),hc="keys",pc="values",dc="entries",gc=function(){return this},vc=function(e,t,r,n,i,o,a){nc(r,t,n);var s,l,c,u=function(e){if(e===i&&g)return g;if(!uc&&e in p)return p[e];switch(e){case hc:case pc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[fc]||p["@@iterator"]||i&&p[i],g=!uc&&d||u(i),v="Array"==t&&p.entries||d;if(v&&(s=ic(v.call(new e)))!==Object.prototype&&s.next&&(oc(s,f,!0,!0),sc[f]=gc),cc&&i==pc&&d&&d.name!==pc&&(h=!0,g=function(){return tc(d,this)}),i)if(l={values:u(pc),keys:o?g:u(hc),entries:u(dc)},a)for(c in l)(uc||h||!(c in p))&&ac(p,c,l[c]);else ec({target:t,proto:!0,forced:uc||h},l);return a&&p[fc]!==g&&ac(p,fc,g,{name:i}),sc[t]=g,l},yc=function(e,t){return{value:e,done:t}},mc=J,_c=hl,bc=Xo;Jt.f;var wc=vc,Ec=yc,Sc="Array Iterator",Tc=bc.set,kc=bc.getterFor(Sc);wc(Array,"Array",(function(e,t){Tc(this,{type:Sc,target:mc(e),index:0,kind:t})}),(function(){var e=kc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Ec(void 0,!0)):Ec("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},Ac=i,Pc=rn,Ic=vr,xc=hl,Oc=ht("toStringTag");for(var Dc in Rc){var Mc=Ac[Dc],Cc=Mc&&Mc.prototype;Cc&&Pc(Cc)!==Oc&&Ic(Cc,Oc,Dc),xc[Dc]=xc.Array}var Bc=fl;mo("dispose");var Fc=Bc;mo("asyncDispose");var Lc=Pr,Uc=v,Nc=ae("Symbol"),jc=Nc.keyFor,Gc=Uc(Nc.prototype.valueOf);Lc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==jc(Gc(e))}catch(t){return!1}}});for(var Vc=Pr,qc=He,zc=ae,Kc=v,Hc=ke,Wc=ht,Xc=zc("Symbol"),$c=Xc.isWellKnown,Yc=zc("Object","getOwnPropertyNames"),Jc=Kc(Xc.prototype.valueOf),Zc=qc("wks"),Qc=0,eu=Yc(Xc),tu=eu.length;Qc<tu;Qc++)try{var ru=eu[Qc];Hc(Xc[ru])&&Wc(ru)}catch(JF){}Vc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if($c&&$c(e))return!0;try{for(var t=Jc(e),r=0,n=Yc(Zc),i=n.length;r<i;r++)if(Zc[n[r]]==t)return!0}catch(JF){}return!1}}),mo("matcher"),mo("metadataKey"),mo("observable"),mo("metadata"),mo("patternMatch"),mo("replaceAll");var nu=Fc,iu=r(nu),ou=v,au=Fr,su=$n,lu=X,cu=ou("".charAt),uu=ou("".charCodeAt),fu=ou("".slice),hu=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}},pu={codeAt:hu(!1),charAt:hu(!0)},du=pu.charAt,gu=$n,vu=Xo,yu=vc,mu=yc,_u="String Iterator",bu=vu.set,wu=vu.getterFor(_u);yu(String,"String",(function(e){bu(this,{type:_u,string:gu(e),index:0})}),(function(){var e,t=wu(this),r=t.string,n=t.index;return n>=r.length?mu(void 0,!0):(e=du(r,n),t.index+=e.length,mu(e,!1))}));var Eu=rn,Su=Ce,Tu=K,ku=hl,Ru=ht("iterator"),Au=function(e){if(!Tu(e))return Su(e,Ru)||Su(e,"@@iterator")||ku[Eu(e)]},Pu=Au,Iu=r(Pu),xu=I,Ou=xr,Du=TypeError,Mu=Object.getOwnPropertyDescriptor,Cu=xu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(JF){return JF instanceof TypeError}}()?function(e,t){if(Ou(e)&&!Mu(e,"length").writable)throw Du("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Bu=$e,Fu=Gr,Lu=Cu,Uu=qr;Pr({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(JF){return JF instanceof TypeError}}()},{push:function(e){var t=Bu(this),r=Fu(t),n=arguments.length;Uu(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return Lu(t,r),r}});var Nu=te,ju=function(e){return Nu[e+"Prototype"]},Gu=ju("Array").push,Vu=se,qu=Gu,zu=Array.prototype,Ku=r((function(e){var t=e.push;return e===zu||Vu(zu,e)&&t===zu.push?qu:t}));var Hu=Pr,Wu=xr,Xu=wn,$u=ee,Yu=ei,Ju=Gr,Zu=J,Qu=Wr,ef=ht,tf=Rs,rf=Dn("slice"),nf=ef("species"),of=Array,af=Math.max;Hu({target:"Array",proto:!0,forced:!rf},{slice:function(e,t){var r,n,i,o=Zu(this),a=Ju(o),s=Yu(e,a),l=Yu(void 0===t?a:t,a);if(Wu(o)&&(r=o.constructor,(Xu(r)&&(r===of||Wu(r.prototype))||$u(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&&Qu(n,i,o[s]);return n.length=i,n}});var sf=ju("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},hf=r(ff),pf=D,df=rr,gf=Ce,vf=function(e,t,r){var n,i;df(e);try{if(!(n=gf(e,"return"))){if("throw"===t)throw r;return r}n=pf(n,e)}catch(JF){i=!0,n=JF}if("throw"===t)throw r;if(i)throw n;return df(n),r},yf=rr,mf=vf,_f=hl,bf=ht("iterator"),wf=Array.prototype,Ef=function(e){return void 0!==e&&(_f.Array===e||wf[bf]===e)},Sf=D,Tf=Oe,kf=rr,Rf=Ae,Af=Au,Pf=TypeError,If=function(e,t){var r=arguments.length<2?Af(e):t;if(Tf(r))return kf(Sf(r,e));throw Pf(Rf(e)+" is not iterable")},xf=Yt,Of=D,Df=$e,Mf=function(e,t,r,n){try{return n?t(yf(r)[0],r[1]):t(r)}catch(JF){mf(e,"throw",JF)}},Cf=Ef,Bf=wn,Ff=Gr,Lf=Wr,Uf=If,Nf=Au,jf=Array,Gf=function(e){var t=Df(e),r=Bf(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=xf(i,n>2?arguments[2]:void 0));var a,s,l,c,u,f,h=Nf(t),p=0;if(!h||this===jf&&Cf(h))for(a=Ff(t),s=r?new this(a):jf(a);a>p;p++)f=o?i(t[p],p):t[p],Lf(s,p,f);else for(u=(c=Uf(t,h)).next,s=r?new this:[];!(l=Of(u,c)).done;p++)f=o?Mf(c,i,[l.value,p],!0):l.value,Lf(s,p,f);return s.length=p,s},Vf=ht("iterator"),qf=!1;try{var zf=0,Kf={next:function(){return{done:!!zf++}},return:function(){qf=!0}};Kf[Vf]=function(){return this},Array.from(Kf,(function(){throw 2}))}catch(JF){}var Hf=function(e,t){if(!t&&!qf)return!1;var r=!1;try{var n={};n[Vf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(JF){}return r},Wf=Gf;Pr({target:"Array",stat:!0,forced:!Hf((function(e){Array.from(e)}))},{from:Wf});var Xf=te.Array.from,$f=r(Xf);function Yf(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 Yf(e,t);var n=hf(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?$f(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}function Zf(e,t){return function(e){if(Dr(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==iu&&Iu(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)&&(Ku(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 Qf=$e,eh=vi;Pr({target:"Object",stat:!0,forced:o((function(){eh(1)}))},{keys:function(e){return eh(Qf(e))}});var th=te.Object.keys,rh=r(th),nh=te.Object.getOwnPropertySymbols,ih=r(nh),oh=ra.filter;Pr({target:"Array",proto:!0,forced:!Dn("filter")},{filter:function(e){return oh(this,e,arguments.length>1?arguments[1]:void 0)}});var ah=ju("Array").filter,sh=se,lh=ah,ch=Array.prototype,uh=function(e){var t=e.filter;return e===ch||sh(ch,e)&&t===ch.filter?lh:t},fh=r(uh),hh={exports:{}},ph=Pr,dh=o,gh=J,vh=P.f,yh=I;ph({target:"Object",stat:!0,forced:!yh||dh((function(){vh(1)})),sham:!yh},{getOwnPropertyDescriptor:function(e,t){return vh(gh(e),t)}});var mh=te.Object,_h=hh.exports=function(e,t){return mh.getOwnPropertyDescriptor(e,t)};mh.getOwnPropertyDescriptor.sham&&(_h.sham=!0);var bh=hh.exports,wh=r(bh),Eh=o,Sh=function(e,t){var r=[][e];return!!r&&Eh((function(){r.call(null,t||function(){return 1},1)}))},Th=ra.forEach,kh=Sh("forEach")?[].forEach:function(e){return Th(this,e,arguments.length>1?arguments[1]:void 0)};Pr({target:"Array",proto:!0,forced:[].forEach!=kh},{forEach:kh});var Rh=ju("Array").forEach,Ah=rn,Ph=Ze,Ih=se,xh=Rh,Oh=Array.prototype,Dh={DOMTokenList:!0,NodeList:!0},Mh=function(e){var t=e.forEach;return e===Oh||Ih(Oh,e)&&t===Oh.forEach||Ph(Dh,Ah(e))?xh:t},Ch=r(Mh),Bh=ae,Fh=Vi,Lh=no,Uh=rr,Nh=v([].concat),jh=Bh("Reflect","ownKeys")||function(e){var t=Fh.f(Uh(e)),r=Lh.f;return r?Nh(t,r(e)):t},Gh=jh,Vh=J,qh=P,zh=Wr;Pr({target:"Object",stat:!0,sham:!I},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Vh(e),i=qh.f,o=Gh(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&zh(a,t,r);return a}});var Kh=te.Object.getOwnPropertyDescriptors,Hh=r(Kh),Wh={exports:{}},Xh=Pr,$h=I,Yh=Yn.f;Xh({target:"Object",stat:!0,forced:Object.defineProperties!==Yh,sham:!$h},{defineProperties:Yh});var Jh=te.Object,Zh=Wh.exports=function(e,t){return Jh.defineProperties(e,t)};Jh.defineProperties.sham&&(Zh.sham=!0);var Qh=Wh.exports,ep=r(Qh),tp={exports:{}},rp=Pr,np=I,ip=Jt.f;rp({target:"Object",stat:!0,forced:Object.defineProperty!==ip,sham:!np},{defineProperty:ip});var op=te.Object,ap=tp.exports=function(e,t,r){return op.defineProperty(e,t,r)};op.defineProperty.sham&&(ap.sham=!0);var sp=tp.exports,lp=r(sp),cp=lo.f("iterator"),up=r(cp);function fp(e){return(fp="function"==typeof iu&&"symbol"==typeof up?function(e){return typeof e}:function(e){return e&&"function"==typeof iu&&e.constructor===iu&&e!==iu.prototype?"symbol":typeof e})(e)}var hp=lo.f("toPrimitive"),pp=r(hp);function dp(e){var t=function(e,t){if("object"!==fp(e)||null===e)return e;var r=e[pp];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fp(t)?t:String(t)}function gp(e,t,r){return(t=dp(t))in e?lp(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vp(e,t){var r=rh(e);if(ih){var n=ih(e);t&&(n=fh(n).call(n,(function(t){return wh(e,t).enumerable}))),Ku(r).apply(r,n)}return r}function yp(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?Ch(r=vp(Object(i),!0)).call(r,(function(t){gp(e,t,i[t])})):Hh?ep(e,Hh(i)):Ch(n=vp(Object(i))).call(n,(function(t){lp(e,t,wh(i,t))}))}return e}Pr({target:"Object",stat:!0,sham:!I},{create:Gi});var mp=te.Object,_p=function(e,t){return mp.create(e,t)},bp=r(_p),wp=$e,Ep=Al,Sp=_l;Pr({target:"Object",stat:!0,forced:o((function(){Ep(1)})),sham:!Sp},{getPrototypeOf:function(e){return Ep(wp(e))}});var Tp=r(te.Object.getPrototypeOf);Pr({target:"Object",stat:!0},{setPrototypeOf:Ql});var kp=r(te.Object.setPrototypeOf),Rp=Ze,Ap=jh,Pp=P,Ip=Jt,xp=ee,Op=vr,Dp=Error,Mp=v("".replace),Cp=String(Dp("zxcasd").stack),Bp=/\n\s*at [^:]*:[^\n]*/,Fp=Bp.test(Cp),Lp=N,Up=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Lp(1,7)),7!==e.stack)})),Np=vr,jp=function(e,t){if(Fp&&"string"==typeof e&&!Dp.prepareStackTrace)for(;t--;)e=Mp(e,Bp,"");return e},Gp=Up,Vp=Error.captureStackTrace,qp=Yt,zp=D,Kp=rr,Hp=Ae,Wp=Ef,Xp=Gr,$p=se,Yp=If,Jp=Au,Zp=vf,Qp=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),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),g=qp(t,u),v=function(e){return n&&Zp(n,"normal",e),new ed(!0,e)},y=function(e){return f?(Kp(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=Jp(e)))throw Qp(Hp(e)+" is not iterable");if(Wp(i)){for(o=0,a=Xp(e);a>o;o++)if((s=y(e[o]))&&$p(td,s))return s;return new ed(!1)}n=Yp(e,i)}for(l=h?e.next:n.next;!(c=zp(l,n)).done;){try{s=y(c.value)}catch(JF){Zp(n,"throw",JF)}if("object"==typeof s&&s&&$p(td,s))return s}return new ed(!1)},nd=$n,id=Pr,od=se,ad=Al,sd=Ql,ld=function(e,t,r){for(var n=Ap(t),i=Ip.f,o=Pp.f,a=0;a<n.length;a++){var s=n[a];Rp(e,s)||r&&Rp(r,s)||i(e,s,o(t,s))}},cd=Gi,ud=vr,fd=N,hd=function(e,t){xp(t)&&"cause"in t&&Op(e,"cause",t.cause)},pd=function(e,t,r,n){Gp&&(Vp?Vp(e,t):Np(e,"stack",jp(r,n)))},dd=rd,gd=function(e,t){return void 0===e?arguments.length<2?"":t:nd(e)},vd=ht("toStringTag"),yd=Error,md=[].push,_d=function(e,t){var r,n=od(bd,this);sd?r=sd(yd(),n?ad(this):bd):(r=n?this:cd(bd),ud(r,vd,"Error")),void 0!==t&&ud(r,"message",gd(t)),pd(r,_d,r.stack,1),arguments.length>2&&hd(r,arguments[2]);var i=[];return dd(e,md,{that:i}),ud(r,"errors",i),r};sd?sd(_d,yd):ld(_d,yd,{name:!0});var bd=_d.prototype=cd(yd.prototype,{constructor:fd(1,_d),message:fd(1,""),name:fd(1,"AggregateError")});id({global:!0,constructor:!0,arity:2},{AggregateError:_d});var wd,Ed,Sd,Td,kd="undefined"!=typeof process&&"process"==b(process),Rd=ae,Ad=so,Pd=I,Id=ht("species"),xd=function(e){var t=Rd(e);Pd&&t&&!t[Id]&&Ad(t,Id,{configurable:!0,get:function(){return this}})},Od=se,Dd=TypeError,Md=function(e,t){if(Od(t,e))return e;throw Dd("Incorrect invocation")},Cd=wn,Bd=Ae,Fd=TypeError,Ld=function(e){if(Cd(e))return e;throw Fd(Bd(e)+" is not a constructor")},Ud=rr,Nd=Ld,jd=K,Gd=ht("species"),Vd=function(e,t){var r,n=Ud(e).constructor;return void 0===n||jd(r=Ud(n)[Gd])?t:Nd(r)},qd=TypeError,zd=function(e,t){if(e<t)throw qd("Not enough arguments");return e},Kd=/(?:ipad|iphone|ipod).*applewebkit/i.test(le),Hd=i,Wd=f,Xd=Yt,$d=A,Yd=Ze,Jd=o,Zd=Ti,Qd=Rs,eg=Rt,tg=zd,rg=Kd,ng=kd,ig=Hd.setImmediate,og=Hd.clearImmediate,ag=Hd.process,sg=Hd.Dispatch,lg=Hd.Function,cg=Hd.MessageChannel,ug=Hd.String,fg=0,hg={},pg="onreadystatechange";Jd((function(){wd=Hd.location}));var dg=function(e){if(Yd(hg,e)){var t=hg[e];delete hg[e],t()}},gg=function(e){return function(){dg(e)}},vg=function(e){dg(e.data)},yg=function(e){Hd.postMessage(ug(e),wd.protocol+"//"+wd.host)};ig&&og||(ig=function(e){tg(arguments.length,1);var t=$d(e)?e:lg(e),r=Qd(arguments,1);return hg[++fg]=function(){Wd(t,void 0,r)},Ed(fg),fg},og=function(e){delete hg[e]},ng?Ed=function(e){ag.nextTick(gg(e))}:sg&&sg.now?Ed=function(e){sg.now(gg(e))}:cg&&!rg?(Td=(Sd=new cg).port2,Sd.port1.onmessage=vg,Ed=Xd(Td.postMessage,Td)):Hd.addEventListener&&$d(Hd.postMessage)&&!Hd.importScripts&&wd&&"file:"!==wd.protocol&&!Jd(yg)?(Ed=yg,Hd.addEventListener("message",vg,!1)):Ed=pg in eg("script")?function(e){Zd.appendChild(eg("script"))[pg]=function(){Zd.removeChild(this),dg(e)}}:function(e){setTimeout(gg(e),0)});var mg={set:ig,clear:og},_g=function(){this.head=null,this.tail=null};_g.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 bg,wg,Eg,Sg,Tg,kg=_g,Rg=/ipad|iphone|ipod/i.test(le)&&"undefined"!=typeof Pebble,Ag=/web0s(?!.*chrome)/i.test(le),Pg=i,Ig=Yt,xg=P.f,Og=mg.set,Dg=kg,Mg=Kd,Cg=Rg,Bg=Ag,Fg=kd,Lg=Pg.MutationObserver||Pg.WebKitMutationObserver,Ug=Pg.document,Ng=Pg.process,jg=Pg.Promise,Gg=xg(Pg,"queueMicrotask"),Vg=Gg&&Gg.value;if(!Vg){var qg=new Dg,zg=function(){var e,t;for(Fg&&(e=Ng.domain)&&e.exit();t=qg.get();)try{t()}catch(JF){throw qg.head&&bg(),JF}e&&e.enter()};Mg||Fg||Bg||!Lg||!Ug?!Cg&&jg&&jg.resolve?((Sg=jg.resolve(void 0)).constructor=jg,Tg=Ig(Sg.then,Sg),bg=function(){Tg(zg)}):Fg?bg=function(){Ng.nextTick(zg)}:(Og=Ig(Og,Pg),bg=function(){Og(zg)}):(wg=!0,Eg=Ug.createTextNode(""),new Lg(zg).observe(Eg,{characterData:!0}),bg=function(){Eg.data=wg=!wg}),Vg=function(e){qg.head||bg(),qg.add(e)}}var Kg=Vg,Hg=function(e){try{return{error:!1,value:e()}}catch(JF){return{error:!0,value:JF}}},Wg=i.Promise,Xg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,$g=!Xg&&!kd&&"object"==typeof window&&"object"==typeof document,Yg=i,Jg=Wg,Zg=A,Qg=Ht,ev=sn,tv=ht,rv=$g,nv=Xg,iv=ge,ov=Jg&&Jg.prototype,av=tv("species"),sv=!1,lv=Zg(Yg.PromiseRejectionEvent),cv={CONSTRUCTOR:Qg("Promise",(function(){var e=ev(Jg),t=e!==String(Jg);if(!t&&66===iv)return!0;if(!ov.catch||!ov.finally)return!0;if(!iv||iv<51||!/native code/.test(e)){var r=new Jg((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[av]=n,!(sv=r.then((function(){}))instanceof n))return!0}return!t&&(rv||nv)&&!lv})),REJECTION_EVENT:lv,SUBCLASSING:sv},uv={},fv=Oe,hv=TypeError,pv=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw hv("Bad Promise constructor");t=e,r=n})),this.resolve=fv(t),this.reject=fv(r)};uv.f=function(e){return new pv(e)};var dv,gv,vv=Pr,yv=kd,mv=i,_v=D,bv=oo,wv=Do,Ev=xd,Sv=Oe,Tv=A,kv=ee,Rv=Md,Av=Vd,Pv=mg.set,Iv=Kg,xv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(JF){}},Ov=Hg,Dv=kg,Mv=Xo,Cv=Wg,Bv=cv,Fv=uv,Lv="Promise",Uv=Bv.CONSTRUCTOR,Nv=Bv.REJECTION_EVENT,jv=Mv.getterFor(Lv),Gv=Mv.set,Vv=Cv&&Cv.prototype,qv=Cv,zv=Vv,Kv=mv.TypeError,Hv=mv.document,Wv=mv.process,Xv=Fv.f,$v=Xv,Yv=!!(Hv&&Hv.createEvent&&mv.dispatchEvent),Jv="unhandledrejection",Zv=function(e){var t;return!(!kv(e)||!Tv(t=e.then))&&t},Qv=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(Kv("Promise-chain cycle")):(n=Zv(r))?_v(n,r,l,c):l(r)):c(o)}catch(JF){u&&!i&&u.exit(),c(JF)}},ey=function(e,t){e.notified||(e.notified=!0,Iv((function(){for(var r,n=e.reactions;r=n.get();)Qv(r,e);e.notified=!1,t&&!e.rejection&&ry(e)})))},ty=function(e,t,r){var n,i;Yv?((n=Hv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),mv.dispatchEvent(n)):n={promise:t,reason:r},!Nv&&(i=mv["on"+e])?i(n):e===Jv&&xv("Unhandled promise rejection",r)},ry=function(e){_v(Pv,mv,(function(){var t,r=e.facade,n=e.value;if(ny(e)&&(t=Ov((function(){yv?Wv.emit("unhandledRejection",n,r):ty(Jv,r,n)})),e.rejection=yv||ny(e)?2:1,t.error))throw t.value}))},ny=function(e){return 1!==e.rejection&&!e.parent},iy=function(e){_v(Pv,mv,(function(){var t=e.facade;yv?Wv.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 Kv("Promise can't be resolved itself");var n=Zv(t);n?Iv((function(){var r={done:!1};try{_v(n,t,oy(sy,r,e),oy(ay,r,e))}catch(JF){ay(r,JF,e)}})):(e.value=t,e.state=1,ey(e,!1))}catch(JF){ay({done:!1},JF,e)}}};Uv&&(zv=(qv=function(e){Rv(this,zv),Sv(e),_v(dv,this);var t=jv(this);try{e(oy(sy,t),oy(ay,t))}catch(JF){ay(t,JF)}}).prototype,(dv=function(e){Gv(this,{type:Lv,done:!1,notified:!1,parent:!1,reactions:new Dv,rejection:!1,state:0,value:void 0})}).prototype=bv(zv,"then",(function(e,t){var r=jv(this),n=Xv(Av(this,qv));return r.parent=!0,n.ok=!Tv(e)||e,n.fail=Tv(t)&&t,n.domain=yv?Wv.domain:void 0,0==r.state?r.reactions.add(n):Iv((function(){Qv(n,r)})),n.promise})),gv=function(){var e=new dv,t=jv(e);this.promise=e,this.resolve=oy(sy,t),this.reject=oy(ay,t)},Fv.f=Xv=function(e){return e===qv||undefined===e?new gv(e):$v(e)}),vv({global:!0,constructor:!0,wrap:!0,forced:Uv},{Promise:qv}),wv(qv,Lv,!1,!0),Ev(Lv);var ly=Wg,cy=cv.CONSTRUCTOR||!Hf((function(e){ly.all(e).then(void 0,(function(){}))})),uy=D,fy=Oe,hy=uv,py=Hg,dy=rd;Pr({target:"Promise",stat:!0,forced:cy},{all:function(e){var t=this,r=hy.f(t),n=r.resolve,i=r.reject,o=py((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 gy=Pr,vy=cv.CONSTRUCTOR;Wg&&Wg.prototype,gy({target:"Promise",proto:!0,forced:vy,real:!0},{catch:function(e){return this.then(void 0,e)}});var yy=D,my=Oe,_y=uv,by=Hg,wy=rd;Pr({target:"Promise",stat:!0,forced:cy},{race:function(e){var t=this,r=_y.f(t),n=r.reject,i=by((function(){var i=my(t.resolve);wy(e,(function(e){yy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Ey=D,Sy=uv;Pr({target:"Promise",stat:!0,forced:cv.CONSTRUCTOR},{reject:function(e){var t=Sy.f(this);return Ey(t.reject,void 0,e),t.promise}});var Ty=rr,ky=ee,Ry=uv,Ay=function(e,t){if(Ty(e),ky(t)&&t.constructor===e)return t;var r=Ry.f(e);return(0,r.resolve)(t),r.promise},Py=Pr,Iy=Wg,xy=cv.CONSTRUCTOR,Oy=Ay,Dy=ae("Promise"),My=!xy;Py({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Oy(My&&this===Dy?Iy:this,e)}});var Cy=D,By=Oe,Fy=uv,Ly=Hg,Uy=rd;Pr({target:"Promise",stat:!0,forced:cy},{allSettled:function(e){var t=this,r=Fy.f(t),n=r.resolve,i=r.reject,o=Ly((function(){var r=By(t.resolve),i=[],o=0,a=1;Uy(e,(function(e){var s=o++,l=!1;a++,Cy(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 Ny=D,jy=Oe,Gy=ae,Vy=uv,qy=Hg,zy=rd,Ky="No one promise resolved";Pr({target:"Promise",stat:!0,forced:cy},{any:function(e){var t=this,r=Gy("AggregateError"),n=Vy.f(t),i=n.resolve,o=n.reject,a=qy((function(){var n=jy(t.resolve),a=[],s=0,l=1,c=!1;zy(e,(function(e){var u=s++,f=!1;l++,Ny(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,Ky)))}))})),--l||o(new r(a,Ky))}));return a.error&&o(a.value),n.promise}});var Hy=Pr,Wy=Wg,Xy=o,$y=ae,Yy=A,Jy=Vd,Zy=Ay,Qy=Wy&&Wy.prototype;Hy({target:"Promise",proto:!0,real:!0,forced:!!Wy&&Xy((function(){Qy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Jy(this,$y("Promise")),r=Yy(e);return this.then(r?function(r){return Zy(t,e()).then((function(){return r}))}:e,r?function(r){return Zy(t,e()).then((function(){throw r}))}:e)}});var em=te.Promise,tm=uv,rm=Hg;Pr({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=Pr,am=xr,sm=v([].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=ju("Array").reverse,um=se,fm=cm,hm=Array.prototype,pm=function(e){var t=e.reverse;return e===hm||um(hm,e)&&t===hm.reverse?fm:t},dm=r(pm);function gm(){gm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=lp||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 lp(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(A){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=bp(o.prototype),s=new T(i||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var g={};l(g,o,(function(){return this}));var v=Tp&&Tp(Tp(k([])));v&&v!==t&&r.call(v,o)&&(g=v);var y=d.prototype=h.prototype=bp(g);function m(e){var t;Ch(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"==fp(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(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]),Ku(t=this.tryEntries).call(t,r)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],Ch(e).call(e,E,this),this.reset(!0)}function k(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 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 kp?kp(e,d):(e.__proto__=d,l(e,s,"GeneratorFunction")),e.prototype=bp(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)Ku(r).call(r,n);return dm(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=k,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,Ch(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hf(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),S(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;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function vm(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(JF){return void r(JF)}s.done?t(l):im.resolve(l).then(n,i)}function ym(e){return function(){var t=this,r=arguments;return new im((function(n,i){var o=e.apply(t,r);function a(e){vm(o,n,i,a,s,"next",e)}function s(e){vm(o,n,i,a,s,"throw",e)}a(void 0)}))}}function mm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),lp(e,dp(n.key),n)}}function bm(e,t,r){return t&&_m(e.prototype,t),r&&_m(e,r),lp(e,"prototype",{writable:!1}),e}var wm=v,Em=Oe,Sm=ee,Tm=Ze,km=Rs,Rm=a,Am=Function,Pm=wm([].concat),Im=wm([].join),xm={},Om=Rm?Am.bind:function(e){var t=Em(this),r=t.prototype,n=km(arguments,1),i=function(){var r=Pm(n,km(arguments));return this instanceof i?function(e,t,r){if(!Tm(xm,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";xm[t]=Am("C,a","return new C("+Im(n,",")+")")}return xm[t](e,r)}(t,r.length,r):t.apply(e,r)};return Sm(r)&&(i.prototype=r),i},Dm=Om;Pr({target:"Function",proto:!0,forced:Function.bind!==Dm},{bind:Dm});var Mm=ju("Function").bind,Cm=se,Bm=Mm,Fm=Function.prototype,Lm=function(e){var t=e.bind;return e===Fm||Cm(Fm,e)&&t===Fm.bind?Bm:t},Um=r(Lm);function Nm(e,t){var r;return(Nm=kp?Um(r=kp).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=bp(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),lp(e,"prototype",{writable:!1}),t&&Nm(e,t)}var Gm=Pr,Vm=f,qm=Om,zm=Ld,Km=rr,Hm=ee,Wm=Gi,Xm=o,$m=ae("Reflect","construct"),Ym=Object.prototype,Jm=[].push,Zm=Xm((function(){function e(){}return!($m((function(){}),[],e)instanceof e)})),Qm=!Xm((function(){$m((function(){}))})),e_=Zm||Qm;Gm({target:"Reflect",stat:!0,forced:e_,sham:e_},{construct:function(e,t){zm(e),Km(t);var r=arguments.length<3?e:zm(arguments[2]);if(Qm&&!Zm)return $m(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 Vm(Jm,n,t),new(Vm(qm,e,n))}var i=r.prototype,o=Wm(Hm(i)?i:Ym),a=Vm(e,o,t);return Hm(a)?a:o}});var t_=r(te.Reflect.construct);function r_(e){var t;return(r_=kp?Um(t=Tp).call(t):function(e){return e.__proto__||Tp(e)})(e)}function n_(){if("undefined"==typeof Reflect||!t_)return!1;if(t_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(t_(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o_(e){var t=n_();return function(){var r,n=r_(e);if(t){var i=r_(this).constructor;r=t_(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===fp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i_(e)}(this,r)}}function a_(e){return function(e){if(Dr(e))return Yf(e)}(e)||function(e){if(void 0!==iu&&null!=Iu(e)||null!=e["@@iterator"])return $f(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 s_=ju("Array").concat,l_=se,c_=s_,u_=Array.prototype,f_=r((function(e){var t=e.concat;return e===u_||l_(u_,e)&&t===u_.concat?c_:t})),h_=r(nm),p_=I,d_=v,g_=D,v_=o,y_=vi,m_=no,__=M,b_=$e,w_=z,E_=Object.assign,S_=Object.defineProperty,T_=d_([].concat),k_=!E_||v_((function(){if(p_&&1!==E_({b:1},E_(S_({},"a",{enumerable:!0,get:function(){S_(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!=E_({},e)[r]||y_(E_({},t)).join("")!=n}))?function(e,t){for(var r=b_(e),n=arguments.length,i=1,o=m_.f,a=__.f;n>i;)for(var s,l=w_(arguments[i++]),c=o?T_(y_(l),o(l)):y_(l),u=c.length,f=0;u>f;)s=c[f++],p_&&!g_(a,l,s)||(r[s]=l[s]);return r}:E_,R_=k_;Pr({target:"Object",stat:!0,arity:2,forced:Object.assign!==R_},{assign:R_});var A_=r(te.Object.assign),P_=window.VePlayer.error,I_=P_.VeError,x_=function(e){return e[e.INVALID_PARAMETER=210]="INVALID_PARAMETER",e}(x_||{});P_.Level;var O_=yp(yp({},x_),P_.ErrorCode),D_=yp(yp({},P_.ERROR_INFO),{},gp({},210,{messageTextKey:"INVALID_PARAMETER",level:P_.Level.Fatal}));function M_(e,t){return new I_(D_[e],t)}var C_=Pr,B_=oi.indexOf,F_=Sh,L_=S([].indexOf),U_=!!L_&&1/L_([1],1,-0)<0;C_({target:"Array",proto:!0,forced:U_||!F_("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return U_?L_(this,e,t)||0:B_(this,e,t)}});var N_=ju("Array").indexOf,j_=se,G_=N_,V_=Array.prototype,q_=function(e){var t=e.indexOf;return e===V_||j_(V_,e)&&t===V_.indexOf?G_:t},z_=r(q_);function K_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=rh(e);for(n=0;n<o.length;n++)r=o[n],z_(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(ih){var o=ih(e);for(n=0;n<o.length;n++)r=o[n],z_(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var H_=window.VePlayer.DynamicModule,W_=window.VePlayer.load;function X_(){return $_.apply(this,arguments)}function $_(){return($_=ym(gm().mark((function e(){var t,r;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W_(H_.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 Y_(){return J_.apply(this,arguments)}function J_(){return J_=ym(gm().mark((function e(){var t,r,n,i=arguments;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:IF.H264,e.next=3,W_(H_.PluginRtm);case 3:if(r=e.sent,n=r.RtmPlugin,t!==IF.H264){e.next=7;break}return e.abrupt("return",n.isSupportedH264());case 7:return e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e)}))),J_.apply(this,arguments)}var Z_=["fallbackUrl","enableFallback","enableRTMAutoTranscode"],Q_=window.VePlayer.strategy,eb=window.VePlayer.util,tb=window.VePlayer.DynamicModule,rb=window.VePlayer.load,nb=window.VePlayer.Codec,ib=window.VePlayer.Sniffer,ob={options:{},module:tb.PluginRtm},ab=function(e){return"pc"===ib.device?e.replace(".sdp",".flv"):e.replace(".sdp",".m3u8")},sb=function(){var e=ym(gm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p,d,g,v,y,m,_,b,w,E,S;return gm().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=K_(s,Z_),p=u?!l&&a?ab(a):l:"","flv"===(d=p&&eb.getStreamType(p))&&eb.isMseSupported(nb.H264)?o=Q_.createFlvMseStrategy(t):"hls"===d&&("mobile"!==ib.device||null!=t&&null!==(n=t.hls)&&void 0!==n&&n.enableMSE)&&eb.isMseSupported(nb.H264)&&(o=Q_.createHlsMseStrategy(t)),e.next=7,h_.all([rb(ob.module).then((function(e){return e.RtmPlugin})).catch((function(){})),o&&rb(o.module).then((function(e){var t,r;return(null===(t=o)||void 0===t?void 0:t.module)===tb.PluginFlv?e.FlvPlugin:(null===(r=o)||void 0===r?void 0:r.module)===tb.PluginHls?e.HlsPlugin:void 0})).catch((function(){}))]);case 7:return g=e.sent,v=Zf(g,2),y=v[0],m=v[1],e.next=13,h_.all([X_(),Y_()]);case 13:if(_=e.sent,b=Zf(_,2),w=b[0],E=b[1],w&&E){e.next=20;break}return r&&r.emit("degrade",{url:p,originRtmUrl:a,code:"NOT_SUPPORT",message:"not support rtm or h264",isRTMSupported:w,isRTMSupportCodec:E}),e.abrupt("return",{options:yp(yp({},(null===(S=o)||void 0===S?void 0:S.options)||{}),{},{url:p,_RTMdegrade:{_originRtmUrl:a,_isRTMSupported:w,_isRTMSupportCodec:E}}),plugins:m?[m]:[]});case 20:return e.abrupt("return",{options:yp(yp({},(null===(i=o)||void 0===i?void 0:i.options)||{}),{},{url:f?eb.appendSearchParams(a,{enableRTMAutoTranscode:"true"}):void 0,_RTMdegrade:void 0,rts:yp(yp({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)}}(),lb=window.VePlayer.Sniffer,cb=function(e){return e.Fairplay="fairplay",e}(cb||{});function ub(e){if(null!=e&&e.fairplay&&("safari"===lb.browser||lb.os.isIos))return"fairplay"}function fb(e){var t=e.drm,r=e.streamType,n=ub(t);return!n||("fairplay"!==n||"hls"!==r)}var hb=window.VePlayer.util,pb=window.VePlayer.strategy,db=function(){var e=ym(gm().mark((function e(t,r){var n;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.url?hb.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,sb(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,pb.getFlvStrategy(t);case 11:if("hls"!==n){e.next=17;break}if(fb({drm:t.drm,streamType:n})){e.next=14;break}return e.abrupt("return",{options:{},plugins:[]});case 14:return e.next=16,pb.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)}}(),gb=r(Lm),vb="\t\n\v\f\r                 \u2028\u2029\ufeff",yb=X,mb=$n,_b=vb,bb=v("".replace),wb=RegExp("^["+_b+"]+"),Eb=RegExp("(^|[^"+_b+"])["+_b+"]+$"),Sb=function(e){return function(t){var r=mb(yb(t));return 1&e&&(r=bb(r,wb,"")),2&e&&(r=bb(r,Eb,"$1")),r}},Tb={start:Sb(1),end:Sb(2),trim:Sb(3)},kb=i,Rb=o,Ab=v,Pb=$n,Ib=Tb.trim,xb=vb,Ob=kb.parseInt,Db=kb.Symbol,Mb=Db&&Db.iterator,Cb=/^[+-]?0x/i,Bb=Ab(Cb.exec),Fb=8!==Ob(xb+"08")||22!==Ob(xb+"0x16")||Mb&&!Rb((function(){Ob(Object(Mb))}))?function(e,t){var r=Ib(Pb(e));return Ob(r,t>>>0||(Bb(Cb,r)?16:10))}:Ob;Pr({global:!0,forced:parseInt!=Fb},{parseInt:Fb});var Lb,Ub=r(te.parseInt),Nb="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,jb=i,Gb=f,Vb=A,qb=Nb,zb=le,Kb=Rs,Hb=zd,Wb=jb.Function,Xb=/MSIE .\./.test(zb)||qb&&((Lb=jb.Bun.version.split(".")).length<3||0==Lb[0]&&(Lb[1]<3||3==Lb[1]&&0==Lb[2])),$b=function(e,t){var r=t?2:1;return Xb?function(n,i){var o=Hb(arguments.length,1)>r,a=Vb(n)?n:Wb(n),s=o?Kb(arguments,r):[],l=o?function(){Gb(a,this,s)}:a;return t?e(l,i):e(l)}:e},Yb=Pr,Jb=i,Zb=$b(Jb.setInterval,!0);Yb({global:!0,bind:!0,forced:Jb.setInterval!==Zb},{setInterval:Zb});var Qb=Pr,ew=i,tw=$b(ew.setTimeout,!0);Qb({global:!0,bind:!0,forced:ew.setTimeout!==tw},{setTimeout:tw});var rw=r(te.setTimeout),nw=r(ff),iw=NaN,ow="[object Symbol]",aw=/^\s+|\s+$/g,sw=/^[-+]0x[0-9a-f]+$/i,lw=/^0b[01]+$/i,cw=/^0o[0-7]+$/i,uw=Ub,fw="object"==fp(t)&&t&&t.Object===Object&&t,hw="object"==("undefined"==typeof self?"undefined":fp(self))&&self&&self.Object===Object&&self,pw=fw||hw||Function("return this")(),dw=Object.prototype.toString,gw=Math.max,vw=Math.min,yw=function(){return pw.Date.now()};function mw(e){var t=fp(e);return!!e&&("object"==t||"function"==t)}function _w(e){return"symbol"==fp(e)||function(e){return!!e&&"object"==fp(e)}(e)&&dw.call(e)==ow}function bw(e){if("number"==typeof e)return e;if(_w(e))return iw;if(mw(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=mw(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(aw,"");var r=lw.test(e);return r||cw.test(e)?uw(nw(e).call(e,2),r?2:8):sw.test(e)?iw:+e}var ww=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=yw();if(d(e))return v(e);s=rw(g,function(e){var r=t-(e-l);return f?vw(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=yw(),r=d(e);if(n=arguments,i=this,l=e,r){if(void 0===s)return function(e){return c=e,s=rw(g,t),u?p(e):a}(l);if(f)return s=rw(g,t),p(l)}return void 0===s&&(s=rw(g,t)),a}return t=bw(t)||0,mw(r)&&(u=!!r.leading,o=(f="maxWait"in r)?gw(bw(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(yw())},y},Ew=r(ww),Sw=yp(yp({},window.VePlayer.event.Events),{},{TIME_SHIFT_CHANGE:"timeShiftChange",REFRESH_CLICK:"refreshClick"});function Tw(){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 kw=window.VePlayer.Plugin,Rw=window.VePlayer.Sniffer,Aw=window.VePlayer.XGEvents,Pw=kw.POSITIONS,Iw=function(e){jm(r,e);var t=o_(r);function r(){return mm(this,r),t.apply(this,arguments)}return bm(r,[{key:"afterCreate",value:function(){this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.refresh),this._initEvents())}},{key:"registerIcons",value:function(){return{refresh:{icon:Tw,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(Sw.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(Aw.CANPLAY,(function(){t.removeClass("xgplayer-is-enter")}))}}},{key:"_initEvents",value:function(){var e;this._handleRefresh=Ew(gb(e=this._handleRefresh).call(e,this),200);var t="mobile"===Rw.device?"touchend":"click";gb(this).call(this,t,this._handleRefresh),this.show()}}],[{key:"pluginName",get:function(){return"refresh"}},{key:"defaultConfig",get:function(){return{position:Pw.CONTROLS_LEFT,index:1,disable:!1}}}]),r}(kw),xw=r(sp),Ow=r(th),Dw=r(nh),Mw=r(uh),Cw=r(bh),Bw=r(Mh),Fw=r(Kh),Lw=r(Qh),Uw=r(q_),Nw=Pr,jw=Date,Gw=v(jw.prototype.getTime);Nw({target:"Date",stat:!0},{now:function(){return Gw(new jw)}});var Vw=r(te.Date.now),qw=o,zw=ht("iterator"),Kw=!qw((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[zw]||"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})),Hw=oo,Ww=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:Hw(e,n,t[n],r);return e},Xw=Ji,$w=Math.floor,Yw=function(e,t){var r=e.length,n=$w(r/2);return r<8?Jw(e,t):Zw(e,Yw(Xw(e,0,n),t),Yw(Xw(e,n),t),t)},Jw=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},Zw=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},Qw=Yw,eE=Pr,tE=i,rE=D,nE=v,iE=I,oE=Kw,aE=oo,sE=so,lE=Ww,cE=Do,uE=zl,fE=Xo,hE=Md,pE=A,dE=Ze,gE=Yt,vE=rn,yE=rr,mE=ee,_E=$n,bE=Gi,wE=N,EE=If,SE=Au,TE=zd,kE=Qw,RE=ht("iterator"),AE="URLSearchParams",PE=AE+"Iterator",IE=fE.set,xE=fE.getterFor(AE),OE=fE.getterFor(PE),DE=Object.getOwnPropertyDescriptor,ME=function(e){if(!iE)return tE[e];var t=DE(tE,e);return t&&t.value},CE=ME("fetch"),BE=ME("Request"),FE=ME("Headers"),LE=BE&&BE.prototype,UE=FE&&FE.prototype,NE=tE.RegExp,jE=tE.TypeError,GE=tE.decodeURIComponent,VE=tE.encodeURIComponent,qE=nE("".charAt),zE=nE([].join),KE=nE([].push),HE=nE("".replace),WE=nE([].shift),XE=nE([].splice),$E=nE("".split),YE=nE("".slice),JE=/\+/g,ZE=Array(4),QE=function(e){return ZE[e-1]||(ZE[e-1]=NE("((?:%[\\da-f]{2}){"+e+"})","gi"))},eS=function(e){try{return GE(e)}catch(JF){return e}},tS=function(e){var t=HE(e,JE," "),r=4;try{return GE(t)}catch(JF){for(;r;)t=HE(t,QE(r--),eS);return t}},rS=/[!'()~]|%20/g,nS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},iS=function(e){return nS[e]},oS=function(e){return HE(VE(e),rS,iS)},aS=uE((function(e,t){IE(this,{type:PE,iterator:EE(xE(e).entries),kind:t})}),"Iterator",(function(){var e=OE(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),sS=function(e){this.entries=[],this.url=null,void 0!==e&&(mE(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===qE(e,0)?YE(e,1):e:_E(e)))};sS.prototype={type:AE,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,l=SE(e);if(l)for(r=(t=EE(e,l)).next;!(n=rE(r,t)).done;){if(o=(i=EE(yE(n.value))).next,(a=rE(o,i)).done||(s=rE(o,i)).done||!rE(o,i).done)throw jE("Expected sequence with length 2");KE(this.entries,{key:_E(a.value),value:_E(s.value)})}else for(var c in e)dE(e,c)&&KE(this.entries,{key:c,value:_E(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=$E(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=$E(t,"="),KE(this.entries,{key:tS(WE(r)),value:tS(zE(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],KE(r,oS(e.key)+"="+oS(e.value));return zE(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var lS=function(){hE(this,cS);var e=IE(this,new sS(arguments.length>0?arguments[0]:void 0));iE||(this.length=e.entries.length)},cS=lS.prototype;if(lE(cS,{append:function(e,t){TE(arguments.length,2);var r=xE(this);KE(r.entries,{key:_E(e),value:_E(t)}),iE||this.length++,r.updateURL()},delete:function(e){TE(arguments.length,1);for(var t=xE(this),r=t.entries,n=_E(e),i=0;i<r.length;)r[i].key===n?XE(r,i,1):i++;iE||(this.length=r.length),t.updateURL()},get:function(e){TE(arguments.length,1);for(var t=xE(this).entries,r=_E(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){TE(arguments.length,1);for(var t=xE(this).entries,r=_E(e),n=[],i=0;i<t.length;i++)t[i].key===r&&KE(n,t[i].value);return n},has:function(e){TE(arguments.length,1);for(var t=xE(this).entries,r=_E(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){TE(arguments.length,1);for(var r,n=xE(this),i=n.entries,o=!1,a=_E(e),s=_E(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?XE(i,l--,1):(o=!0,r.value=s));o||KE(i,{key:a,value:s}),iE||(this.length=i.length),n.updateURL()},sort:function(){var e=xE(this);kE(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=xE(this).entries,n=gE(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 aS(this,"keys")},values:function(){return new aS(this,"values")},entries:function(){return new aS(this,"entries")}},{enumerable:!0}),aE(cS,RE,cS.entries,{name:"entries"}),aE(cS,"toString",(function(){return xE(this).serialize()}),{enumerable:!0}),iE&&sE(cS,"size",{get:function(){return xE(this).entries.length},configurable:!0,enumerable:!0}),cE(lS,AE),eE({global:!0,constructor:!0,forced:!oE},{URLSearchParams:lS}),!oE&&pE(FE)){var uS=nE(UE.has),fS=nE(UE.set),hS=function(e){if(mE(e)){var t,r=e.body;if(vE(r)===AE)return t=e.headers?new FE(e.headers):new FE,uS(t,"content-type")||fS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),bE(e,{body:wE(0,_E(r)),headers:wE(0,t)})}return e};if(pE(CE)&&eE({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return CE(e,arguments.length>1?hS(arguments[1]):{})}}),pE(BE)){var pS=function(e){return hE(this,LE),new BE(e,arguments.length>1?hS(arguments[1]):{})};LE.constructor=pS,pS.prototype=LE,eE({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:pS})}}var dS={URLSearchParams:lS,getState:xE},gS=r(te.URLSearchParams),vS=ee,yS=b,mS=ht("match"),_S=function(e){var t;return vS(e)&&(void 0!==(t=e[mS])?!!t:"RegExp"==yS(e))},bS=TypeError,wS=function(e){if(_S(e))throw bS("The method doesn't accept regular expressions");return e},ES=ht("match"),SS=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[ES]=!1,"/./"[e](t)}catch(JF){}}return!1},TS=Pr,kS=S,RS=Nr,AS=$n,PS=wS,IS=X,xS=SS,OS=kS("".startsWith),DS=kS("".slice),MS=Math.min;TS({target:"String",proto:!0,forced:!xS("startsWith")},{startsWith:function(e){var t=AS(IS(this));PS(e);var r=RS(MS(arguments.length>1?arguments[1]:void 0,t.length)),n=AS(e);return OS?OS(t,n,r):DS(t,r,r+n.length)===n}});var CS=ju("String").startsWith,BS=se,FS=CS,LS=String.prototype,US=r((function(e){var t=e.startsWith;return"string"==typeof e||e===LS||BS(LS,e)&&t===LS.startsWith?FS:t})),NS=Fb;Pr({target:"Number",stat:!0,forced:Number.parseInt!=NS},{parseInt:NS});var jS=r(te.Number.parseInt),GS=oi.includes;Pr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return GS(this,e,arguments.length>1?arguments[1]:void 0)}});var VS=ju("Array").includes,qS=Pr,zS=wS,KS=X,HS=$n,WS=SS,XS=v("".indexOf);qS({target:"String",proto:!0,forced:!WS("includes")},{includes:function(e){return!!~XS(HS(KS(this)),HS(zS(e)),arguments.length>1?arguments[1]:void 0)}});var $S=ju("String").includes,YS=se,JS=VS,ZS=$S,QS=Array.prototype,eT=String.prototype,tT=r((function(e){var t=e.includes;return e===QS||YS(QS,e)&&t===QS.includes?JS:"string"==typeof e||e===eT||YS(eT,e)&&t===eT.includes?ZS:t})),rT=te,nT=f;rT.JSON||(rT.JSON={stringify:JSON.stringify});var iT=function(e,t,r){return nT(rT.JSON.stringify,null,arguments)},oT=r(iT),aT=f,sT=J,lT=Fr,cT=Gr,uT=Sh,fT=Math.min,hT=[].lastIndexOf,pT=!!hT&&1/[1].lastIndexOf(1,-0)<0,dT=uT("lastIndexOf"),gT=pT||!dT?function(e){if(pT)return aT(hT,this,arguments)||0;var t=sT(this),r=cT(t),n=r-1;for(arguments.length>1&&(n=fT(n,lT(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:hT;Pr({target:"Array",proto:!0,forced:gT!==[].lastIndexOf},{lastIndexOf:gT});var vT=ju("Array").lastIndexOf,yT=se,mT=vT,_T=Array.prototype,bT=r((function(e){var t=e.lastIndexOf;return e===_T||yT(_T,e)&&t===_T.lastIndexOf?mT:t})),wT=i,ET=o,ST=$n,TT=Tb.trim,kT=vb,RT=v("".charAt),AT=wT.parseFloat,PT=wT.Symbol,IT=PT&&PT.iterator,xT=1/AT(kT+"-0")!=-1/0||IT&&!ET((function(){AT(Object(IT))}))?function(e){var t=TT(ST(e)),r=AT(t);return 0===r&&"-"==RT(t,0)?-0:r}:AT,OT=xT;Pr({target:"Number",stat:!0,forced:Number.parseFloat!=OT},{parseFloat:OT});var DT=r(te.Number.parseFloat),MT=r(te.setInterval);function CT(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),xw(e,n.key,n)}}function BT(e,t,r){return t&&CT(e.prototype,t),r&&CT(e,r),e}function FT(e,t,r){return t in e?xw(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LT(e,t){var r=Ow(e);if(Dw){var n=Dw(e);t&&(n=Mw(n).call(n,(function(t){return Cw(e,t).enumerable}))),r.push.apply(r,n)}return r}function UT(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)Bw(r=LT(Object(n),!0)).call(r,(function(t){FT(e,t,n[t])}));else if(Fw)Lw(e,Fw(n));else{var i;Bw(i=LT(Object(n))).call(i,(function(t){xw(e,t,Cw(n,t))}))}}return e}var NT="xgplayer_device_id",jT="xgplayer_user_id",GT=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(Uw(i=t[r]).call(i,e)>=0)return o.split("=")[1]||null}},VT=function(e){return String(Math.floor(Math.random()*Math.pow(10,e)))},qT=function(){var e=GT(NT);if(e)return e;var t=VT(11);return document.cookie=NT+"="+t+";max-age=31536000;path=/",t},zT=function(){var e=GT(jT);if(e)return e;var t=VT(12);return document.cookie=jT+"="+t+";max-age=31536000;path=/",t};var KT={get device(){return KT.os.isPc?"pc":"mobile"},get browser(){var e=function(){var e=navigator.userAgent.toLowerCase(),t={},r={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:Uw(e).call(e,"chrome")>-1&&Uw(e).call(e,"safari")>-1,Firefox:Uw(e).call(e,"firefox")>-1,Opera:Uw(e).call(e,"opera")>-1,Safari:Uw(e).call(e,"safari")>-1&&-1==Uw(e).call(e,"chrome"),Edge:Uw(e).call(e,"edge")>-1,QQBrowser:/qqbrowser/.test(e),WeixinBrowser:/MicroMessenger/i.test(e)};for(var n in r)if(r[n]){var 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=Ub(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 HT(){return Vw()}function WT(e){var t="unknown";return"string"!=typeof e?t:Uw(e).call(e,".flv")>-1?"flv":Uw(e).call(e,".m3u8")>-1?"m3u8":Uw(e).call(e,".mp4")>-1?"mp4":Uw(e).call(e,".sdp")>-1?"rts":t}function XT(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 $T={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},YT=function(){function e(e){var t,r=e.Tea;if(!r)throw new Error("lack Tea option");r.event?this.Tea=gb(t=r.event).call(t,r):this.Tea=r;this.logOptions=e,this._player=e.player}BT(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&&US(t).call(t,"//")?window.location.protocol+t:t,e.live_stream_session_id=function(e,t,r){var n=new gS(e.split("?")[1]);return n.get(t)||n.get(r)}(e.cdn_play_url,"_session_id","session_id"),e.play_format=WT(e.cdn_play_url),e.timestamp=HT();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(JF){}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,A_(e,UT({},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,UT({},e)))},e}(),JT=function(){return void 0!==navigator.onLine?navigator.onLine?(e=navigator.connection)&&(e.effectiveType||e.type)||KT.device:"none":"unknown";var e},ZT=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","ratechange","volumechange","loadeddata"],QT=function(){function e(e){var t,r;this.options=e,this.logger=new ek(e),this.restart=gb(t=this.restart).call(t,this),this.bindUrlChange(),tT(r=KT.browser).call(r,"Chrome")}var t=e.prototype;return t.restart=function(e){this.destroy("string"!=typeof e&&Boolean(e)),this.logger=new ek(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=A_(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}(),ek=function(){function e(e){if(!e.player)throw new Error("option player is necessary");this.options=A_({},e,function(e){return{device_id:e.device_id||qT(),user_id:e.user_id||zT(),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?Vw()-this.options.ntp:0,this.inWaitingStart=0,this.errorNumber=0,this.tempDroppedFrameCount=0,this.tempTotalFrameCount=0,this._logmanager=new YT(this.options),this.init(),this.started=!1,this.destroyed=!1,this.completed=!1,this.firstFrameViewed=!1,this.cacheRtcStats={}}BT(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 Vw()-this.ntpDelta}}]);var t=e.prototype;return t.setNTP=function(e){this.options&&(this.options.ntp=e,this.ntpDelta=Vw()-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=gb(e=this.handlePlayerComlete).call(e,this),this.handlePlayerPlaying=gb(t=this.handlePlayerPlaying).call(t,this),this.destroyFunc=gb(r=this.destroyFunc).call(r,this),this.handleUserLeave=gb(n=this.handleUserLeave).call(n,this),this.handlePlayerError=gb(i=this.handlePlayerError).call(i,this),this.handlePlayerReady=gb(o=this.handlePlayerReady).call(o,this),this.handlePlayerWaiting=gb(a=this.handlePlayerWaiting).call(a,this),this.handleAVUnsync=gb(s=this.handleAVUnsync).call(s,this),this.handlePlayerPause=gb(l=this.handlePlayerPause).call(l,this),this.handleTTFB=gb(c=this.handleTTFB).call(c,this),this.handleUrlChange=gb(u=this.handleUrlChange).call(u,this),this.handleKeyframe=gb(f=this.handleKeyframe).call(f,this),this.handleSourceOpen=gb(h=this.handleSourceOpen).call(h,this),this.handleBufferAppend=gb(p=this.handleBufferAppend).call(p,this),this.handleCoreEvent=gb(d=this.handleCoreEvent).call(d,this),this.handleDegrade=gb(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=UT({os:KT.operation_os},function(e){var t,r=e.player,n=r.config.mediaType;return UT({project_key:e.project_key,live_sdk_version:XT(r)||r.hlsOps?"2":"-1",player_sdk_version:r.version,logger_version:"1.1.0-alpha.10",report_version:"5",product_line:e.product_line,user_id:e.user_id,device_id:e.device_id,logger_id:VT(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+"-"+Vw(),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:KT.browser,ua:navigator.userAgent,href:window.location.href,timestamp:0,fps:-1,logger_init_time:Vw(),play_current_time:0,cdn_play_url:r.config.url&&US(t=r.config.url).call(t,"//")?window.location.protocol+r.config.url:r.config.url,play_format:WT(r.config.url),codec_support:-1},e.ext)}(t)),this.log=A_({},{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){xw(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&&xw(this.log[o],"m3u8",{get:function(){if(r.__core__){var e=r.__core__.m3u8Text;return e?nw(e).call(e,0,25e4):""}return""},enumerable:!0}),xw(this.log[o],"volume",{get:function(){if(r&&r.video)return r.volume||0},enumerable:!0}),xw(this.log[o],"access",{get:function(){return JT()},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=XT(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=HT(),this.logmanager.push(this.log.start_play,!0))},t.initWindowListener=function(){"pc"===KT.device?window.addEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&(window.addEventListener("beforeunload",this.handleUserLeave),window.addEventListener("pagehide",this.handleUserLeave))},t.removeWindowListener=function(){"pc"===KT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&(window.removeEventListener("beforeunload",this.handleUserLeave),window.removeEventListener("pagehide",this.handleUserLeave))},t.initEvt=function(){var e=this,t=this.player;Bw(ZT).call(ZT,(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&&(A_(this.log.play_low_decode,e||{}),this.log.play_low_decode.decode_fps=s,this.log.play_low_decode.timestamp=HT(),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(A_({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,nw(Array.prototype).call(e,0))}catch(n){}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(A_(this.log.play_url_change,{url:e,timestamp:HT()}))},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=HT(),this.logmanager.push(this.log.source_opened)},t.handleBufferAppend=function(){this.log.source_updateend.timestamp=HT(),this.logmanager.push(this.log.source_updateend)},t.handlePlayerPause=function(){this.log.pause.timestamp=HT(),this.logmanager.push(this.log.pause,!0),this.stallEnd()},t.handlePlayerError=function(e){this.errorNumber=1;var t=e.errorType,r=e.errorCode;A_(this.log.play_error,UT({timestamp:HT(),code:e.httpCode||r||("parse"===t?31:21),info:e.message,detail:oT(e)},this.videoSize)),this.logmanager.push(this.log.play_error,!0),this.destroyed||(0===this.log.first_frame.first_frame_view&&(A_(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=HT()),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=HT(),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=HT(),A_(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=nw(i).call(i,Uw(i).call(i,"{"),bT(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(s){}}},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=HT(),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){A_(this.log.play_av_unsync,e||{}),this.log.play_av_unsync.timestamp=HT(),this.logmanager.push(this.log.play_av_unsync,!1)},t.handleStreamException=function(e){this.logmanager.push(A_({},this.log.stream_exception,e))},t.handlePlayerComlete=function(){this.completed||(this.completed=!0,this.core=XT(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=jS(1e3*(e.end(t)-this.player.video.currentTime));return this.log.playing.audio_buffer_time=this.log.playing.video_buffer_time=r,r}catch(n){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=DT(this.tempTotalFrameCount/t.totalVideoFrames).toFixed(1),this.log.play_stop.drop_percent=DT(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?h_.resolve(i.getStats()).then((function(t){return Bw(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,b=t.jitterBufferEmittedCount,w=t.jitter,E=t.nackCount,S=t.packetsLost,T=t.pliCount,k=t.totalSamplesReceived,R=t.concealedSamples,A=t.currentRoundTripTime,P=t.decoderImplementation,I=t.mimeType,x=t.freezeCount,O=t.totalFreezesDuration,D=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=S-(r.cacheRtcStats.audioPacketsLost||0),o.audio_packets_received=s-(r.cacheRtcStats.audioPacketsReceived||0),r.cacheRtcStats.audioPacketsLost=S,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=(k-r.cacheRtcStats.totalSamplesReceived)/e),r.cacheRtcStats.totalSamplesReceived=k,o.concealed_samples=R,o.total_samples_received=k):(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=x-r.cacheRtcStats.freezeCount,o.freeze_duration=O-r.cacheRtcStats.totalFreezesDuration),r.cacheRtcStats.freezeCount=x,r.cacheRtcStats.totalFreezesDuration=O,r.cacheRtcStats.framesReceived=m,o.total_pauses_duration=D,o.video_jb_delay=_/b*1e3,o.video_jitter=1e3*w,o.video_nack_count=E,o.video_packets_lost=S-(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=S,r.cacheRtcStats.videoPacketsReceived=s,o.video_pli_count=T,o.decoder_name=P);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*A;break;case"codec":tT(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)})),A_(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})):h_.resolve(o)}catch(a){return h_.reject(a)}},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<HT()&&(r=Math.min(t.options.playingInterval||t.log.playing.play_time,HT()-Math.max(t.inWaitingStart,n))),t.getPlayerQuality(),t.getPlayerBuffer(),t.options.downloadSpeedInterval||(t.log.playing.current_speed=t.getPlayerDownloadSpeed());var i=HT(),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)),A_(t.log.playing,UT({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)),h_.resolve(t.getRtcStats(o,e)).then((function(r){var n={};if(t.core){if(t.core.getStats){var i=t.core.getStats()||{},a=i.bitrate,s=i.avgSpeed;A_(n,{bitrate:a,avg_speed:s,rate:s/a})}if(t.core.getNetWorkInfo){var l,c=(t.core.getNetWorkInfo()||{}).lostRate,u=((null===(l=t.core.core)||void 0===l?void 0:l._opts)||{}).networkEvaluateInterval;A_(n,{lostRate:c,networkEvaluateInterval:u})}}t.logmanager.push(A_({},t.log.playing,UT(UT({play_time:e?0:o},r),n)),!0),t.log.playing.download_speed_array=[],t.log.playing.stall_time=0,t.log.playing.stall_count=0,t.options.aggregationDowngradeStallTime&&(t.log.playing.aggregation_downgrade_stall=0)}))}catch(l){return h_.reject(l)}},t.handlePlayerPlaying=function(){try{var e=this;if(e.player&&e.player.video.readyState<3)return h_.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 h_.resolve(e.reportPlaying(!0)).then((function(){e.clearPlayingInterval();var t=e.options.playingInterval||e.log.playing.play_time;e.intervalId=MT((function(){try{var r=function(){if(Math.abs(Vw()-e.log.playing.timestamp-t)<100||Vw()-e.log.playing.timestamp>=t){var r=function(){if(e.player&&e.player.video){var t=function(){if(!e.player.paused)return h_.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 h_.resolve(r&&r.then?r.then((function(){})):void 0)}catch(n){return h_.reject(n)}}),1e3),e.clearStallTimer(),e.handleVideoplaying(),e.started||e.reportStartPlay(),e.saveBuffered()}))}catch(r){return h_.reject(r)}},t.handlePlayerReady=function(){var e=this;this.log.start_play.start_play_time=HT(),this.player.config.autoplay&&this.reportStartPlay(),this.options.playResultThreshold&&(this.log.play_result.threshold=this.options.playResultThreshold),this.clearPlayResultTimer(),this.log.play_result.start=HT(),this.playResultTimer=rw((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=HT(),this.log.stall_start.ready_state=this.log.stall.ready_state=this.player.video.readyState,this.log.stall_start.timestamp=HT(),this.log.stall_start.stall_start_time=HT(),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(),A_(this.log.stall_start,this.videoSize),this.clearStallTimer(),this.stallStartTimer=rw((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=HT();this.reportStartPlay(),this.log.first_frame.start=e},t.stallEnd=function(){this.clearStallTimer();var e=HT();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=HT(),this.log.playing.stall_count++,A_(this.log.stall,UT({},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(),A_(this.log.playing,UT({timestamp:HT(),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;A_(this.log.play_error,UT(UT({timestamp:HT()},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=$T[t.code],void 0!==e.log.first_frame_failed.timestamp&&(e.log.first_frame_failed.timestamp=HT()),e.logmanager.push(e.log.first_frame_failed,!0),e.log.play_result.is_threshold||(e.log.play_result.reason=$T[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"===KT.device?window.removeEventListener("beforeunload",this.handleUserLeave):"mobile"===KT.device&&window.removeEventListener("pagehide",this.handleUserLeave),Bw(ZT).call(ZT,(function(e){t.removeVideoEvt(e,t["handleVideo"+e+"Evt"])})),this.player&&(this.player._start&&(this.player.start=this.player._start,delete this.player._start),this.player.off("destroy",this.destroyFunc),this.player.off("complete",this.handlePlayerComlete),this.player.off("playing",this.handlePlayerPlaying),this.player.off("timeupdate",this.handlePlayerPlaying),this.player.off("ready",this.handlePlayerReady),this.player.off("waiting",this.handlePlayerWaiting),this.player.off("largeavgap",this.handleAVUnsync),this.player.off("error",this.handlePlayerError),this.player.off("SEI_PARSED",this.handleSEIParsed),this.player.off("pause",this.handlePlayerPause),this.player.off("ttfb",this.handleTTFB),this.player.off("urlchange",this.handleUrlChange),this.player.off("isKeyframe",this.handleKeyframe),this.player.off("sourceopen",this.handleSourceOpen),this.player.off("bufferappend",this.handleBufferAppend),this.player.off("core_event",this.handleCoreEvent),this.player.off("degrade",this.handleDegrade),this._player=null),this.clearPlayingInterval(),this.clearStallTimer(),this.clearPlayResultTimer(),clearTimeout(this.collectDownloadSpeedTimer))},t.handleUserLeave=function(){try{var e=this;return e.destroyed||!e.started?h_.resolve():(e.destroyed=!0,h_.resolve(e.updatePlayStopParams()).then((function(){e.reportPlayStop(),e.clearPlayingInterval(),e.clearStallTimer(),clearTimeout(e.collectDownloadSpeedTimer),e.removeWindowListener()})))}catch(t){return h_.reject(t)}},t.saveBuffered=function(){try{var e=this.getBuffered();e&&e.length&&(this.log.play_stop.buffered=e)}catch(JF){}},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(JF){}},t.reportPlayStop=function(){this.player&&(this.log.play_stop.play_current_time=this.player.currentTime||this.log.playing.play_current_time,this.saveBuffered()),this.logmanager.push(this.log.play_stop,!0)},t.reportFirstframe=function(){if(!this.firstFrameViewed){if(this.core){var e=(this.core.getStats()||{}).fps;this.commonParams.fps=e}this.firstFrameViewed=!0;var t=HT();A_(this.log.first_frame,UT({first_frame_view:t-this.log.start_play.start_play_time||t,timestamp:t},this.videoSize)),this.log.first_frame.ttfb_end&&(this.log.first_frame.ttdb=t-this.log.first_frame.ttfb_end),this.logmanager.push(this.log.first_frame,!0),this.clearPlayResultTimer(),this.log.play_result.result=1,this.logmanager.push(this.log.play_result,!0),this.log.play_stop.is_stream_received=1}},t.updatePlayStopParams=function(){try{var e,t=function(){A_(o,UT({timestamp:i,stop_time:i,duration:r.playedTime/1e3,play_time:r.playedTime/1e3},r.videoSize)),0===r.errorNumber&&(o.play_time_on_no_frame=o.stop_time-r.log.start_play.start_play_time)},r=this,n=function(e){var t,r=Mw(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:jS(n.domainLookupEnd-n.domainLookupStart),redirect:jS(n.redirectEnd-n.redirectStart),ttfb:jS(i.responseStart-i.requestStart)}}return{dns_parse_time:-1,redirect:-1,ttfb:-1}}(r._url),i=HT();r.playedTime=i-r.log.start_play.start_play_time;var o=r.log.play_stop;if(A_(o,UT({},0===o.stall_count&&{stall_time:0})),r.inWaitingStart&&i-r.inWaitingStart>200&&(o.stall_time+=i-r.inWaitingStart),r.inWaitingStart=0,A_(o,UT({stall_time_per_100sec:o.stall_time/r.playedTime*100,stall_count_per_100sec:1e3*o.stall_count/r.playedTime*100},n)),0===r.log.play_stop.stall_count_per_100sec&&(r.log.play_stop.stall_time_per_100sec=0),r.log.play_stop.stall_time_per_100sec>100||r.log.play_stop.stall_time_per_100sec<0)return h_.resolve();if(r.log.playing.index?(A_(r.log.playing,UT({timestamp:HT(),is_last:1},r.videoSize)),r.logmanager.push(r.log.playing,!0)):(r.log.play_stop.error_code=r.log.play_error.code,r.log.play_stop.error_info=r.log.play_error.info),i=HT(),null===(e=r.core)||void 0===e?void 0:e.getStats){var a=r.core.getStats()||{},s=a.totalReceivedByte,l=a.totalReceivedCost;A_(r.log.play_stop,{totalReceivedByte:s,totalReceivedCost:l,totalAverageSpeed:8*s/(l/1e3)})}var c=function(){var e;if(null===(e=r.core)||void 0===e?void 0:e.getStatsSnapshoot)return h_.resolve(r.core.getStatsSnapshoot()).then((function(e){var t=e.video||{},r=t.packetsLost,n=t.packetsReceived;A_(o,{packetsLost:r,packetsReceived:n,totalLostRate:r/(r+n)})}))}();return h_.resolve(c&&c.then?c.then(t):t())}catch(u){return h_.reject(u)}},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}(),tk=r(nu),rk=r(Pu),nk=Ae,ik=TypeError,ok=function(e,t){if(!delete e[t])throw ik("Cannot delete property "+nk(t)+" of "+nk(e))},ak=Pr,sk=$e,lk=ei,ck=Fr,uk=Gr,fk=Cu,hk=qr,pk=Pn,dk=Wr,gk=ok,vk=Dn("splice"),yk=Math.max,mk=Math.min;ak({target:"Array",proto:!0,forced:!vk},{splice:function(e,t){var r,n,i,o,a,s,l=sk(this),c=uk(l),u=lk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-u):(r=f-2,n=mk(yk(ck(t),0),c-u)),hk(c+r-n),i=pk(l,n),o=0;o<n;o++)(a=u+o)in l&&dk(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]:gk(l,s);for(o=c;o>c-n+r;o--)gk(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]:gk(l,s);for(o=0;o<r;o++)l[o+u]=arguments[o+2];return fk(l,c-n+r),i}});var _k=ju("Array").splice,bk=se,wk=_k,Ek=Array.prototype,Sk=r((function(e){var t=e.splice;return e===Ek||bk(Ek,e)&&t===Ek.splice?wk:t})),Tk=r(Or),kk=i;Pr({global:!0,forced:kk.globalThis!==kk},{globalThis:kk});var Rk=r(i),Ak=r(_p),Pk=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ik={exports:{}},xk=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Ok=o,Dk=ee,Mk=b,Ck=xk,Bk=Object.isExtensible,Fk=Ok((function(){Bk(1)}))||Ck?function(e){return!!Dk(e)&&((!Ck||"ArrayBuffer"!=Mk(e))&&(!Bk||Bk(e)))}:Bk,Lk=Pr,Uk=v,Nk=ai,jk=ee,Gk=Ze,Vk=Jt.f,qk=Vi,zk=Ki,Kk=Fk,Hk=Pk,Wk=!1,Xk=nt("meta"),$k=0,Yk=function(e){Vk(e,Xk,{value:{objectID:"O"+$k++,weakData:{}}})},Jk=Ik.exports={enable:function(){Jk.enable=function(){},Wk=!0;var e=qk.f,t=Uk([].splice),r={};r[Xk]=1,e(r).length&&(qk.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===Xk){t(n,i,1);break}return n},Lk({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zk.f}))},fastKey:function(e,t){if(!jk(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Gk(e,Xk)){if(!Kk(e))return"F";if(!t)return"E";Yk(e)}return e[Xk].objectID},getWeakData:function(e,t){if(!Gk(e,Xk)){if(!Kk(e))return!0;if(!t)return!1;Yk(e)}return e[Xk].weakData},onFreeze:function(e){return Hk&&Wk&&Kk(e)&&!Gk(e,Xk)&&Yk(e),e}};Nk[Xk]=!0;var Zk=Ik.exports,Qk=Pr,eR=Pk,tR=o,rR=ee,nR=Zk.onFreeze,iR=Object.freeze;Qk({target:"Object",stat:!0,forced:tR((function(){iR(1)})),sham:!eR},{freeze:function(e){return iR&&rR(e)?iR(nR(e)):e}});var oR=r(te.Object.freeze);Pr({global:!0,forced:parseFloat!=xT},{parseFloat:xT});var aR=r(te.parseFloat),sR=ml.PROPER,lR=o,cR=vb,uR=Tb.trim;Pr({target:"String",proto:!0,forced:function(e){return lR((function(){return!!cR[e]()||"​…᠎"!=="​…᠎"[e]()||sR&&cR[e].name!==e}))}("trim")},{trim:function(){return uR(this)}});var fR=ju("String").trim,hR=se,pR=fR,dR=String.prototype,gR=r((function(e){var t=e.trim;return"string"==typeof e||e===dR||hR(dR,e)&&t===dR.trim?pR:t})),vR=r(pm),yR=ra.map;Pr({target:"Array",proto:!0,forced:!Dn("map")},{map:function(e){return yR(this,e,arguments.length>1?arguments[1]:void 0)}});var mR=ju("Array").map,_R=se,bR=mR,wR=Array.prototype,ER=r((function(e){var t=e.map;return e===wR||_R(wR,e)&&t===wR.map?bR:t})),SR=Oe,TR=$e,kR=z,RR=Gr,AR=TypeError,PR=function(e){return function(t,r,n,i){SR(r);var o=TR(t),a=kR(o),s=RR(o),l=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw AR("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=c)l in a&&(i=r(i,a[l],l,o));return i}},IR={left:PR(!1),right:PR(!0)}.left;Pr({target:"Array",proto:!0,forced:!kd&&ge>79&&ge<83||!Sh("reduce")},{reduce:function(e){var t=arguments.length;return IR(this,e,t,t>1?arguments[1]:void 0)}});var xR=ju("Array").reduce,OR=se,DR=xR,MR=Array.prototype,CR=r((function(e){var t=e.reduce;return e===MR||OR(MR,e)&&t===MR.reduce?DR:t})),BR=$e,FR=ei,LR=Gr,UR=function(e){for(var t=BR(this),r=LR(t),n=arguments.length,i=FR(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:FR(o,r);a>i;)t[i++]=e;return t};Pr({target:"Array",proto:!0},{fill:UR});var NR=ju("Array").fill,jR=se,GR=NR,VR=Array.prototype,qR=r((function(e){var t=e.fill;return e===VR||jR(VR,e)&&t===VR.fill?GR:t})),zR=pu.codeAt;Pr({target:"String",proto:!0},{codePointAt:function(e){return zR(this,e)}});var KR=ju("String").codePointAt,HR=se,WR=KR,XR=String.prototype,$R=r((function(e){var t=e.codePointAt;return"string"==typeof e||e===XR||HR(XR,e)&&t===XR.codePointAt?WR:t})),YR=Pr,JR=v,ZR=ei,QR=RangeError,eA=String.fromCharCode,tA=String.fromCodePoint,rA=JR([].join);YR({target:"String",stat:!0,arity:1,forced:!!tA&&1!=tA.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],ZR(t,1114111)!==t)throw QR(t+" is not a valid code point");r[i]=t<65536?eA(t):eA(55296+((t-=65536)>>10),t%1024+56320)}return rA(r,"")}});var nA=r(te.String.fromCodePoint),iA=Pr,oA=i,aA=Zk,sA=o,lA=vr,cA=rd,uA=Md,fA=A,hA=ee,pA=Do,dA=Jt.f,gA=ra.forEach,vA=I,yA=Xo.set,mA=Xo.getterFor,_A=Gi,bA=so,wA=Ww,EA=Yt,SA=Md,TA=K,kA=rd,RA=vc,AA=yc,PA=xd,IA=I,xA=Zk.fastKey,OA=Xo.set,DA=Xo.getterFor,MA={getConstructor:function(e,t,r,n){var i=e((function(e,i){SA(e,o),OA(e,{type:t,index:_A(null),first:void 0,last:void 0,size:0}),IA||(e.size=0),TA(i)||kA(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=DA(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=xA(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),IA?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var r,n=a(e),i=xA(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return wA(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,IA?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),IA?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=EA(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)}}),wA(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)}}),IA&&bA(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=DA(t),o=DA(n);RA(e,t,(function(e,t){OA(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)?AA("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,AA(void 0,!0))}),r?"entries":"values",!r,!0),PA(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=oA[e],l=s&&s.prototype,c={};if(vA&&fA(s)&&(o||l.forEach&&!sA((function(){(new s).entries().next()})))){var u=(n=t((function(t,r){yA(uA(t,u),{type:e,collection:new s}),null!=r&&cA(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=mA(e);gA(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||o&&"clear"==e||lA(u,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!hA(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||dA(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),aA.enable();pA(n,e,!1,!0),c[e]=n,iA({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)}}),MA);var CA=te.Map,BA=Yt,FA=D,LA=Oe,UA=Ld,NA=K,jA=rd,GA=[].push,VA=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return UA(this),(t=void 0!==a)&&LA(a),NA(e)?new this:(r=[],t?(n=0,i=BA(a,o>2?arguments[2]:void 0),jA(e,(function(e){FA(GA,r,i(e,n++))}))):jA(e,GA,{that:r}),new this(r))};Pr({target:"Map",stat:!0,forced:!0},{from:VA});var qA=Rs,zA=function(){return new this(qA(arguments))};Pr({target:"Map",stat:!0,forced:!0},{of:zA});var KA=Ae,HA=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(KA(e)+" is not a map")},WA=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},XA=ae("Map"),$A={Map:XA,set:WA("set",2),get:WA("get",1),has:WA("has",1),remove:WA("delete",1),proto:XA.prototype},YA=HA,JA=$A.remove;Pr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=YA(this),r=!0,n=0,i=arguments.length;n<i;n++)e=JA(t,arguments[n]),r=r&&e;return!!r}});var ZA=HA,QA=$A.get,eP=$A.has,tP=$A.set;Pr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=ZA(this);return eP(i,e)?(r=QA(i,e),"update"in t&&(r=t.update(r,e,i),tP(i,e,r)),r):(n=t.insert(e,i),tP(i,e,n),n)}});var rP=D,nP=function(e,t,r){for(var n,i,o=r||e.next;!(n=rP(o,e)).done;)if(void 0!==(i=t(n.value)))return i},iP=function(e,t,r){return r?nP(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},oP=Yt,aP=HA,sP=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=aP(this),r=oP(e,arguments.length>1?arguments[1]:void 0);return!1!==sP(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var lP=Yt,cP=HA,uP=iP,fP=$A.Map,hP=$A.set;Pr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=cP(this),r=lP(e,arguments.length>1?arguments[1]:void 0),n=new fP;return uP(t,(function(e,i){r(e,i,t)&&hP(n,i,e)})),n}});var pP=Yt,dP=HA,gP=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=dP(this),r=pP(e,arguments.length>1?arguments[1]:void 0),n=gP(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var vP=Yt,yP=HA,mP=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=yP(this),r=vP(e,arguments.length>1?arguments[1]:void 0),n=mP(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var _P=Pr,bP=D,wP=A,EP=Oe,SP=rd,TP=$A.Map,kP=v([].push);_P({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(wP(this)?this:TP);EP(t);var n=EP(r.has),i=EP(r.get),o=EP(r.set);return SP(e,(function(e){var a=t(e);bP(n,r,a)?kP(bP(i,r,a),e):bP(o,r,a,[e])})),r}});var RP=function(e,t){return e===t||e!=e&&t!=t},AP=HA,PP=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===PP(AP(this),(function(t){if(RP(t,e))return!0}),!0)}});var IP=D,xP=rd,OP=A,DP=Oe,MP=$A.Map;Pr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(OP(this)?this:MP);DP(t);var n=DP(r.set);return xP(e,(function(e){IP(n,r,t(e),e)})),r}});var CP=HA,BP=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=BP(CP(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var FP=Yt,LP=HA,UP=iP,NP=$A.Map,jP=$A.set;Pr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=LP(this),r=FP(e,arguments.length>1?arguments[1]:void 0),n=new NP;return UP(t,(function(e,i){jP(n,r(e,i,t),e)})),n}});var GP=Yt,VP=HA,qP=iP,zP=$A.Map,KP=$A.set;Pr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=VP(this),r=GP(e,arguments.length>1?arguments[1]:void 0),n=new zP;return qP(t,(function(e,i){KP(n,i,r(e,i,t))})),n}});var HP=HA,WP=rd,XP=$A.set;Pr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=HP(this),r=arguments.length,n=0;n<r;)WP(arguments[n++],(function(e,r){XP(t,e,r)}),{AS_ENTRIES:!0});return t}});var $P=Oe,YP=HA,JP=iP,ZP=TypeError;Pr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=YP(this),r=arguments.length<2,n=r?void 0:arguments[1];if($P(e),JP(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw ZP("Reduce of empty map with no initial value");return n}});var QP=Yt,eI=HA,tI=iP;Pr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=eI(this),r=QP(e,arguments.length>1?arguments[1]:void 0);return!0===tI(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var rI=Oe,nI=HA,iI=TypeError,oI=$A.get,aI=$A.has,sI=$A.set;Pr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=nI(this),n=arguments.length;rI(t);var i=aI(r,e);if(!i&&n<3)throw iI("Updating absent value");var o=i?oI(r,e):rI(n>2?arguments[2]:void 0)(e,r);return sI(r,e,t(o,e,r)),r}});var lI=D,cI=Oe,uI=A,fI=rr,hI=TypeError,pI=function(e,t){var r,n=fI(this),i=cI(n.get),o=cI(n.has),a=cI(n.set),s=arguments.length>2?arguments[2]:void 0;if(!uI(t)&&!uI(s))throw hI("At least one callback required");return lI(o,n,e)?(r=lI(i,n,e),uI(t)&&(r=t(r),lI(a,n,e,r))):uI(s)&&(r=s(),lI(a,n,e,r)),r};Pr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:pI}),Pr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:pI});var dI=CA,gI=r(dI),vI=r(dI),yI=function(){return yI=A_||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},yI.apply(this,arguments)};function mI(e,t){var r="function"==typeof tk&&rk(e);if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(JF){i={error:JF}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _I(){for(var e=[],t=0;t<arguments.length;t++)e=f_(e).call(e,mI(arguments[t]));return e}var bI,wI,EI=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;if(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=Uw(r=this._hooks[e]).call(r,t);if(-1!==i)Sk(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!==Uw(n=this._cache).call(n,r)?this._emit(e,t):(this._hooksCache.hasOwnProperty(r)||(this._hooksCache[r]={}),this._hooksCache[r].hasOwnProperty(e)||(this._hooksCache[r][e]=[]),this._hooksCache[r][e].push(t))}else this._emit(e,t)},e.prototype._emit=function(e,t){var r;e&&this._hooks[e]&&this._hooks[e].length&&Bw(r=_I(this._hooks[e])).call(r,(function(e){try{e(t)}catch(r){}}))},e.prototype.set=function(e){var t;e&&-1===Uw(t=this._cache).call(t,e)&&this._cache.push(e)},e}(),SI=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},TI=(wI=+Vw()+Number(nw(bI=""+Math.random()).call(bI,2,8)),function(){return wI+=1}),kI=function(e){return function(e,t,r){if("string"==typeof e&&"number"==typeof t&&"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=Ub(n[a],r);s=1*s^t;var l=String.fromCharCode(s);i.push(l)}return i.join("")}}(e,64,25)},RI=function(e){!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1)},AI=function(e){var t=document.createElement("a");return t.href=e,t},PI=function(e){var t={};try{var r,n=AI(e).search;n=nw(n).call(n,1),Bw(r=n.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){}return t},II=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};var xI=function(e){var t,r,n=[],i=e.length;i%2!=0&&(r=i+1,e=(t=e).length>=r?t:new Array(r-t.length+1).join("0")+t),i=e.length;for(var o=0;o<i;o+=2)n.push(Ub(e.substr(o,2),16));return n},OI=void 0!==Rk?Rk:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function DI(e,t){return e(t={exports:{}},t.exports),t.exports}var MI=DI((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}function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(Vw()+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}}function o(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=nw(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}}return Ak({set:i,get:o,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:oR(n)},converter:{value:oR(r)}})}return t({read:function(e){return'"'===e[0]&&(e=nw(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:"/"})}()})),CI=MI,BI=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}();var FI,LI,UI,NI,jI={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:oT(t);localStorage.setItem(e,r)}catch(n){}},removeItem:function(e){try{localStorage.removeItem(e)}catch(t){}},getCookie:function(e,t){try{return CI.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;CI.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(e){return!1}}()},GI={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:oT(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(e){return!1}}()},VI=function(){function e(e,t){this._storage=t&&"session"===t?GI:!e&&jI.isSupportLS?jI:new BI}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}(),qI=function(){function e(e,t,r){this.appid=e,this.domain=t,this.userAgent=window.navigator.userAgent,this.appVersion=window.navigator.appVersion,this.cookie_expire=r}return e.prototype.init=function(){var e=window.navigator.userAgent,t=window.navigator.language,r=document.referrer,n=r?AI(r).hostname:"",i=PI(window.location.href),o=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(this.appVersion)?"wap":"web";this.utm=function(e,t,r,n){var i=new VI(!1),o=new VI(!1,"session"),a=e?"_tea_utm_cache_"+e:"_tea_utm_cache",s=e?"_$utm_from_url_"+e:"_$utm_from_url",l={},c=["tr_shareuser","tr_admaster","tr_param1","tr_param2","tr_param3","tr_param4","$utm_from_url"],u={ad_id:Number(t.ad_id)||void 0,campaign_id:Number(t.campaign_id)||void 0,creative_id:Number(t.creative_id)||void 0,utm_source:t.utm_source,utm_medium:t.utm_medium,utm_campaign:t.utm_campaign,utm_term:t.utm_term,utm_content:t.utm_content,tr_shareuser:t.tr_shareuser,tr_admaster:t.tr_admaster,tr_param1:t.tr_param1,tr_param2:t.tr_param2,tr_param3:t.tr_param3,tr_param4:t.tr_param4};try{var f=!1;for(var h in u)u[h]&&(-1!==Uw(c).call(c,h)?(l.hasOwnProperty("tracer_data")||(l.tracer_data={}),l.tracer_data[h]=u[h]):l[h]=u[h],f=!0);if(f)o.setItem(s,"1"),i.setCookie(a,oT(l),n,r);else{var p=i.getCookie(a,r);p&&(l=JSON.parse(p))}o.getItem(s)&&(l.hasOwnProperty("tracer_data")||(l.tracer_data={}),l.tracer_data.$utm_from_url=1)}catch(d){return u}return l}(this.appid,i,this.domain,this.cookie_expire);var a=this.browser(),s=this.os();return{browser:a.browser,browser_version:a.browser_version,platform:o,os_name:s.os_name,os_version:s.os_version,userAgent:e,screen_width:window.screen&&window.screen.width,screen_height:window.screen&&window.screen.height,device_model:this.getDeviceModel(s.os_name),language:t,referrer:r,referrer_host:n,utm:this.utm,latest_data:this.last(r,n)}},e.prototype.last=function(e,t){var r="",n="",i="",o=location.hostname,a=!1;if(e&&t&&o!==t){r=e,n=t,a=!0;var s=PI(e);s.keyword&&(i=s.keyword)}return{$latest_referrer:r,$latest_referrer_host:n,$latest_search_keyword:i,isLast:a}},e.prototype.browser=function(){var e,t,r="",n=""+aR(this.appVersion),i=this.userAgent;return-1!==Uw(i).call(i,"Edge")||-1!==Uw(i).call(i,"Edg")?(r="Microsoft Edge",-1!==Uw(i).call(i,"Edge")?(e=Uw(i).call(i,"Edge"),n=i.substring(e+5)):(e=Uw(i).call(i,"Edg"),n=i.substring(e+4))):-1!==(e=Uw(i).call(i,"MSIE"))?(r="Microsoft Internet Explorer",n=i.substring(e+5)):-1!==(e=Uw(i).call(i,"Lark"))?(r="Lark",n=i.substring(e+5,e+11)):-1!==(e=Uw(i).call(i,"MetaSr"))?(r="sougoubrowser",n=i.substring(e+7,e+10)):-1!==Uw(i).call(i,"MQQBrowser")||-1!==Uw(i).call(i,"QQBrowser")?(r="qqbrowser",-1!==Uw(i).call(i,"MQQBrowser")?(e=Uw(i).call(i,"MQQBrowser"),n=i.substring(e+11,e+15)):-1!==Uw(i).call(i,"QQBrowser")&&(e=Uw(i).call(i,"QQBrowser"),n=i.substring(e+10,e+17))):-1!==Uw(i).call(i,"Chrome")?-1!==(e=Uw(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Uw(i).call(i,"360"))?(r="360browser",n=i.substring(Uw(i).call(i,"Chrome")+7)):-1!==Uw(i).call(i,"baidubrowser")||-1!==Uw(i).call(i,"BIDUBrowser")?(-1!==Uw(i).call(i,"baidubrowser")?(e=Uw(i).call(i,"baidubrowser"),n=i.substring(e+13,e+16)):-1!==Uw(i).call(i,"BIDUBrowser")&&(e=Uw(i).call(i,"BIDUBrowser"),n=i.substring(e+12,e+15)),r="baidubrowser"):-1!==(e=Uw(i).call(i,"xiaomi"))?-1!==Uw(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=Uw(i).call(i,"TTWebView"))?(r="TTWebView",n=i.substring(e+10,e+23)):(-1!==(e=Uw(i).call(i,"Chrome"))||-1!==(e=Uw(i).call(i,"Chrome")))&&(r="Chrome",n=i.substring(e+7)):-1!==Uw(i).call(i,"Safari")?-1!==(e=Uw(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+10,e+16)):-1!==(e=Uw(i).call(i,"Safari"))&&(r="Safari",n=i.substring(e+7),-1!==(e=Uw(i).call(i,"Version"))&&(n=i.substring(e+8))):-1!==(e=Uw(i).call(i,"Firefox"))?(r="Firefox",n=i.substring(e+8)):-1!==(e=Uw(i).call(i,"MicroMessenger"))?(r="weixin",n=i.substring(e+15,e+20)):-1!==(e=Uw(i).call(i,"QQ"))?(r="qqbrowser",n=i.substring(e+3,e+8)):-1!==(e=Uw(i).call(i,"Opera"))&&(r="Opera",n=i.substring(e+6),-1!==(e=Uw(i).call(i,"Version"))&&(n=i.substring(e+8))),-1!==(t=Uw(n).call(n,";"))&&(n=n.substring(0,t)),-1!==(t=Uw(n).call(n," "))&&(n=n.substring(0,t)),-1!==(t=Uw(n).call(n,")"))&&(n=n.substring(0,t)),{browser:r,browser_version:n}},e.prototype.os=function(){for(var e="",t="",r=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0|Windows NT 10.1)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],n=0;n<r.length;n++){var i=r[n];if(i.r.test(this.userAgent)){"Mac OS X"===(e=i.s)&&this.isNewIpad()&&(e="iOS");break}}var o=function(e,t){var r=e.exec(t);return r&&r[1]?r[1]:""},a=function(e,t){var r=RegExp("(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:"+e+")","i").exec(t);return r?nw(r).call(r,1)[0]:""};/Windows/.test(e)&&(t=o(/Windows (.*)/,e),e="windows");switch(e){case"Mac OS X":t=a("Mac[ +]OS[ +]X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",this.userAgent),e="mac";break;case"Android":t=function(e){var t=o(/Android ([\.\_\d]+)/,e);return t||(t=o(/Android\/([\.\_\d]+)/,e)),t}(this.userAgent),e="android";break;case"iOS":t=this.isNewIpad()?a("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{if("android"===e){var r=navigator.userAgent.split(";");Bw(r).call(r,(function(e){Uw(e).call(e,"Build/")>-1&&(t=nw(e).call(e,0,Uw(e).call(e,"Build/")))}))}else if("ios"===e||"mac"===e||"windows"===e)if(this.isNewIpad())t="iPad";else{var n=navigator.userAgent.replace("Mozilla/5.0 (",""),i=Uw(n).call(n,";");t=nw(n).call(n,0,i)}}catch(o){return gR(t).call(t)}return gR(t).call(t)},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&"MacIntel"===navigator.platform&&"number"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),zI={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az24z1mz1jz1az1cz18z1nz1nz1jz1mz1ez4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k"},KI="0.1.0",HI=function(){function e(e,t){this.collector=e,this.config=t,this.eventNameWhiteList=["__bav_page","__bav_beat","__bav_page_statistics","__bav_click","__bav_page_exposure","_be_active","$bav2b_slide"],this.paramsNameWhiteList=["$inactive","$inline","$target_uuid_list","$source_uuid","$is_spider","$source_id","$is_first_time","$user_unique_id_type","_staging_flag","$exposure_type","$direction","$offsetY","$offsetX"],this.regStr=new RegExp("^[a-zA-Z0-9][a-z0-9A-Z_.-]{1,255}$")}return e.prototype.checkVerify=function(e){var t=this;if(!e||!e.length)return!1;var r=e[0];if(!r)return!1;var n=r.events,i=r.header;if(!n||!n.length)return!1;var o=!0;return Bw(n).call(n,(function(e){t.checkEventName(e.event)||(o=!1,e.checkEvent="事件名不能以 $ or __开头"),t.checkEventParams(e.params)||(o=!1,e.checkParams="属性名不能以 $ or __开头")})),this.checkEventParams(i)||(o=!1),o},e.prototype.checkEventName=function(e){return!!e&&this.calculate(e,"event")},e.prototype.checkEventParams=function(e){var t=e;"string"==typeof e&&(t=JSON.parse(t));var r=!0;if(!Ow(t).length)return r;for(var n in t){if(!this.calculate(n,"params")){r=!1;break}if("string"==typeof t[n]&&t[n].length>1024){console.warn("params: "+n+" can not over 1024 byte, please check;"),r=!1;break}}return r},e.prototype.calculate=function(e,t){var r="event"===t?this.eventNameWhiteList:"params"===t?this.paramsNameWhiteList:[];return-1!==Uw(r).call(r,e)||(!new RegExp("^\\$").test(e)&&!new RegExp("^__").test(e)||(console.warn(t+" name: "+e+" can not start with $ or __, pleace check;"),!1))},e}();(LI=FI||(FI={})).Init="init",LI.Config="config",LI.Start="start",LI.Ready="ready",LI.TokenComplete="token-complete",LI.TokenStorage="token-storage",LI.TokenFetch="token-fetch",LI.TokenError="token-error",LI.ConfigUuid="config-uuid",LI.ConfigWebId="config-webid",LI.ConfigDomain="config-domain",LI.CustomWebId="custom-webid",LI.AnonymousId="anonymous-id",LI.TokenChange="token-change",LI.TokenReset="token-reset",LI.ConfigTransform="config-transform",LI.EnvTransform="env-transform",LI.SessionReset="session-reset",LI.SessionResetTime="session-reset-time",LI.Event="event",LI.Events="events",LI.EventNow="event-now",LI.CleanEvents="clean-events",LI.BeconEvent="becon-event",LI.SubmitBefore="submit-before",LI.SubmitScuess="submit-scuess",LI.SubmitAfter="submit-after",LI.SubmitError="submit-error",LI.SubmitVerifyH="submit-verify-h5",LI.Stay="stay",LI.ResetStay="reset-stay",LI.StayReady="stay-ready",LI.SetStay="set-stay",LI.RouteChange="route-change",LI.RouteReady="route-ready",LI.Ab="ab",LI.AbVar="ab-var",LI.AbAllVars="ab-all-vars",LI.AbConfig="ab-config",LI.AbExternalVersion="ab-external-version",LI.AbVersionChangeOn="ab-version-change-on",LI.AbVersionChangeOff="ab-version-change-off",LI.AbOpenLayer="ab-open-layer",LI.AbCloseLayer="ab-close-layer",LI.AbReady="ab-ready",LI.AbComplete="ab-complete",LI.AbTimeout="ab-timeout",LI.Profile="profile",LI.ProfileSet="profile-set",LI.ProfileSetOnce="profile-set-once",LI.ProfileUnset="profile-unset",LI.ProfileIncrement="profile-increment",LI.ProfileAppend="profile-append",LI.ProfileClear="profile-clear",LI.TrackDuration="track-duration",LI.TrackDurationStart="track-duration-start",LI.TrackDurationEnd="track-duration-end",LI.TrackDurationPause="track-duration-pause",LI.TrackDurationResume="tracl-duration-resume",LI.Autotrack="autotrack",LI.AutotrackReady="autotrack-ready",LI.CepReady="cep-ready",LI.TracerReady="tracer-ready",(NI=UI||(UI={})).DEBUGGER_MESSAGE="debugger-message",NI.DEBUGGER_MESSAGE_SDK="debugger-message-sdk",NI.DEBUGGER_MESSAGE_FETCH="debugger-message-fetch",NI.DEBUGGER_MESSAGE_FETCH_RESULT="debugger-message-fetch-result",NI.DEBUGGER_MESSAGE_EVENT="debugger-message-event",NI.DEVTOOL_WEB_READY="devtool-web-ready";var WI=FI,XI=void 0,$I=(new Date).getTimezoneOffset(),YI=Ub(""+-$I/60,10),JI=60*$I,ZI=function(){function e(e,t){this.is_first_time=!0,this.configPersist=!1,this.initConfig=t,this.collect=e;var r=new qI(t.app_id,t.cookie_domain||"",t.cookie_expire||7776e6).init();this.eventCheck=new HI(e,t);var n="__tea_cache_first_"+t.app_id;this.configKey="__tea_cache_config_"+t.app_id,this.sessionStorage=new VI(!1,"session"),this.localStorage=new VI(!1,"local"),t.configPersist&&(this.configPersist=!0,this.storage=1===t.configPersist?this.sessionStorage:this.localStorage);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:XI,user_type:XI,user_id:XI,user_is_auth:XI,user_is_login:XI,device_id:XI,web_id:XI,ip_addr_id:XI,user_unique_id_type:XI,anonymous_id:XI},header:{app_id:XI,app_name:XI,app_install_id:XI,install_id:XI,app_package:XI,app_channel:XI,app_version:XI,ab_version:XI,os_name:r.os_name,os_version:r.os_version,device_model:r.device_model,ab_client:XI,traffic_type:XI,client_ip:XI,device_brand:XI,os_api:XI,access:XI,language:r.language,region:XI,app_language:XI,app_region:XI,creative_id:r.utm.creative_id,ad_id:r.utm.ad_id,campaign_id:r.utm.campaign_id,log_type:XI,rnd:XI,platform:r.platform,sdk_version:KI,sdk_lib:"js",province:XI,city:XI,timezone:YI,tz_offset:JI,tz_name:XI,sim_region:XI,carrier:XI,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:r.utm.utm_term,utm_content:r.utm.utm_content,utm_source:r.utm.utm_source,utm_medium:r.utm.utm_medium,utm_campaign:r.utm.utm_campaign,tracer_data:oT(r.utm.tracer_data),custom:{},wechat_unionid:XI,wechat_openid:XI}},this.ab_version="",this.evtParams={},this.reportErrorCallback=function(){},this.isLast=!1,this.setCustom(r),this.initDomain(),this.initABData()}return e.prototype.initDomain=function(){var e=this.initConfig.channel_domain;if(e)this.domain=e;else{var t=this.initConfig.channel;this.domain=kI(zI[t])}},e.prototype.setDomain=function(e){this.domain=e},e.prototype.getDomain=function(){return this.domain},e.prototype.initABData=function(){var e="__tea_sdk_ab_version_"+this.initConfig.app_id,t=null;if(this.initConfig.ab_cross){var r=this.localStorage.getCookie(e,this.initConfig.ab_cookie_domain);t=r?JSON.parse(r):null}else t=this.localStorage.getItem(e);this.setAbCache(t)},e.prototype.setAbCache=function(e){this.ab_cache=e},e.prototype.getAbCache=function(){return this.ab_cache},e.prototype.clearAbCache=function(){this.ab_cache={},this.ab_version=""},e.prototype.setAbVersion=function(e){this.ab_version=e},e.prototype.getAbVersion=function(){return this.ab_version},e.prototype.getUrl=function(e){var t="";switch(e){case"event":t="/list";break;case"webid":t="/webid";break;case"tobid":t="/tobid";break;case"profile":t="/profile/list"}var r="";return this.initConfig.caller&&(r="?sdk_version=0.1.0&sdk_name=web&app_id="+this.initConfig.app_id+"&caller="+this.initConfig.caller),this.initConfig.enable_encryption&&"event"===e&&"sm"!==this.initConfig.encryption_type&&(r=this.initConfig.caller?r+"&encryption=1":r+"?encryption=1"),this.initConfig.report_url?""+this.initConfig.report_url+r:""+this.getDomain()+t+r},e.prototype.setCustom=function(e){if(e&&e.latest_data&&e.latest_data.isLast)for(var t in delete e.latest_data.isLast,this.isLast=!0,e.latest_data)this.envInfo.header.custom[t]=e.latest_data[t]},e.prototype.set=function(e){var t,r=this;Bw(t=Ow(e)).call(t,(function(t){void 0!==e[t]&&null!==e[t]||r.delete(t);try{r.eventCheck.calculate(t,"config")}catch(c){}if("traffic_type"===t&&r.isLast&&(r.envInfo.header.custom.$latest_traffic_source_type=e[t]),"evtParams"===t)r.evtParams=yI({},r.evtParams||{},e.evtParams||{});else if("_staging_flag"===t)r.evtParams=yI({},r.evtParams||{},{_staging_flag:e._staging_flag});else if("reportErrorCallback"===t&&"function"==typeof e[t])r.reportErrorCallback=e[t];else{var n="",i="";if(Uw(t).call(t,".")>-1){var o=t.split(".");n=o[0],i=o[1]}if(n)"user"===n||"header"===n?r.envInfo[n][i]=e[t]:r.envInfo.header.custom[i]=e[t];else if(Object.hasOwnProperty.call(r.envInfo.user,t)){var a,s,l;Uw(a=["user_type","ip_addr_id"]).call(a,t)>-1?r.envInfo.user[t]=e[t]?Number(e[t]):e[t]:Uw(s=["user_id","web_id","user_unique_id","user_unique_id_type","anonymous_id"]).call(s,t)>-1?r.envInfo.user[t]=e[t]?String(e[t]):e[t]:Uw(l=["user_is_auth","user_is_login"]).call(l,t)>-1?r.envInfo.user[t]=Boolean(e[t]):"device_id"===t&&(r.envInfo.user[t]=e[t])}else 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(oT(this.envInfo[e])):JSON.parse(oT(this.envInfo))}catch(t){console.log("get config stringify error "),this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:t.message})}},e.prototype.setStore=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};if(t&&Ow(e).length){var r=A_(e,t);this.storage.setItem(this.configKey,r)}}catch(n){console.log("setStore error"),this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:n.message})}},e.prototype.getStore=function(){try{if(!this.configPersist)return null;var e=this.storage.getItem(this.configKey)||{};return e&&Ow(e).length?e:null}catch(t){return this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:t.message}),null}},e.prototype.delete=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};t&&Object.hasOwnProperty.call(t,e)&&(delete t[e],this.storage.setItem(this.configKey,t))}catch(r){this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:r.message}),console.log("delete error")}},e}(),QI=function(){function e(e,t){this.isLog=t||!1,this.name=e||""}return e.prototype.info=function(e){this.isLog&&console.log("%c %s","color: yellow; background-color: black;","[instance: "+this.name+"] "+e)},e.prototype.warn=function(e){this.isLog&&console.warn("%c %s","color: yellow; background-color: black;","[instance: "+this.name+"] "+e)},e.prototype.error=function(e){this.isLog&&console.error("[instance: "+this.name+"] "+e)},e.prototype.throw=function(e){throw this.error(this.name),new Error(e)},e}(),ex=function(){function e(e,t){var r;this.native=e.enable_native||e[vR(r="evitaN".split("")).call(r).join("")],this.os=t.get("os_name")}var t=e.prototype;return t.bridgeInject=function(){try{return!!this.native&&(AppLogBridge?(console.log("AppLogBridge is injected"),!0):(console.log("AppLogBridge is not inject"),!1))}catch(e){return console.log("AppLogBridge is not inject"),!1}},t.bridgeReady=function(){var e=this;return new h_((function(t,r){try{e.bridgeInject()?AppLogBridge.hasStarted((function(e){console.log("AppLogBridge is started? : "+e),e?t(!0):r(!1)})):r(!1)}catch(n){console.log("AppLogBridge, error:"+oT(n.stack)),r(!1)}}))},t.setNativeAppId=function(e){try{AppLogBridge.setNativeAppId(oT(e)),console.log("change bridge appid, event report with appid: "+e)}catch(t){console.error("setNativeAppId error")}},t.setConfig=function(e){var t=this;try{var r;Bw(r=Ow(e)).call(r,(function(r){"user_unique_id"===r?t.setUserUniqueId(e[r]):e[r]?t.addHeaderInfo(r,e[r]):t.removeHeaderInfo(r)}))}catch(n){console.error("setConfig error")}},t.setUserUniqueId=function(e){try{AppLogBridge.setUserUniqueId(e)}catch(t){console.error("setUserUniqueId error")}},t.addHeaderInfo=function(e,t){try{AppLogBridge.addHeaderInfo(e,t)}catch(r){console.error("addHeaderInfo error")}},t.setHeaderInfo=function(e){try{AppLogBridge.setHeaderInfo(oT(e))}catch(t){console.error("setHeaderInfo error")}},t.removeHeaderInfo=function(e){try{AppLogBridge.removeHeaderInfo(e)}catch(t){console.error("removeHeaderInfo error")}},t.reportPv=function(e){this.onEventV3("predefine_pageview",e)},t.onEventV3=function(e,t){try{AppLogBridge.onEventV3(e,t)}catch(r){console.error("onEventV3 error")}},t.profileSet=function(e){try{AppLogBridge.profileSet(e)}catch(JF){console.error("profileSet error")}},t.profileSetOnce=function(e){try{AppLogBridge.profileSetOnce(e)}catch(JF){console.error("profileSetOnce error")}},t.profileIncrement=function(e){try{AppLogBridge.profileIncrement(e)}catch(JF){console.error("profileIncrement error")}},t.profileUnset=function(e){try{AppLogBridge.profileUnset(e)}catch(JF){console.error("profileUnset error")}},t.profileAppend=function(e){try{AppLogBridge.profileAppend(e)}catch(JF){console.error("profileAppend error")}},t.setExternalAbVersion=function(e){try{AppLogBridge.setExternalAbVersion(e)}catch(JF){console.error("setExternalAbVersion error")}},t.getVar=function(e,t,r){try{"android"===this.os?r(AppLogBridge.getABTestConfigValueForKey(e,t)):AppLogBridge.getABTestConfigValueForKey(e,t,(function(e){r(e)}))}catch(JF){console.error("getVar error"),r(t)}},t.getAllVars=function(e){try{"android"===this.os?e(AppLogBridge.getAllAbTestConfigs()):AppLogBridge.getAllAbTestConfigs((function(t){e(t)}))}catch(JF){console.error("getAllVars error"),e(null)}},t.getAbSdkVersion=function(e){try{"android"===this.os?e(AppLogBridge.getAbSdkVersion()):AppLogBridge.getAbSdkVersion((function(t){e(t)}))}catch(JF){console.error("getAbSdkVersion error"),e("")}},e}(),tx=500,rx=5005;function nx(e,t,r,n,i,o,a,s,l,c){try{var u=new XMLHttpRequest,f=s||"POST";u.open(f,""+e,!0),l&&c?u.setRequestHeader("Content-Type","application/octet-stream;tt-data="+c):u.setRequestHeader("Content-Type","application/json; charset=utf-8"),a&&u.setRequestHeader("X-MCS-AppKey",""+a),n&&(u.withCredentials=!0),r&&(u.timeout=r,u.ontimeout=function(){o&&o(t,rx)}),u.onload=function(){if(i){var e=null;if(u.responseText){try{e=JSON.parse(u.responseText)}catch(r){e={}}i(e,t)}}},u.onerror=function(){u.abort(),o&&o(t,tx)},l?u.send(t):u.send(oT(t))}catch(h){}}var ix=4001,ox=4e3,ax=4002,sx=4003,lx=function(e,t,r,n){try{var i=e.match(/\/v\d\//),o="";o=i?i[0]:-1!==Uw(e).call(e,"/v1/")?"/v1/":"/v2/";var a=e.split(o)[0];if(!a)return void n(e,t,ix);Bw(t).call(t,(function(i){var o=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&void 0!==e[r]&&(t+="&"+r+"="+encodeURIComponent(oT(e[r])));return"&"===t[0]?nw(t).call(t,1):t}(i),s=new Image(1,1);s.onload=function(){s=null,r&&r()},s.onerror=function(){s=null,n&&n(e,t,ox)},s.src=a+"/gif?"+o}))}catch(s){n&&n(e,t,ax,s.message)}},cx=function(e,t,r,n,i,o,a,s,l){var c=window.navigator.userAgent,u=window.navigator.appName;if(-1===Uw(u).call(u,"Microsoft Internet Explorer")||-1===Uw(c).call(c,"MSIE 8.0")&&-1===Uw(c).call(c,"MSIE 9.0")){if(a)return window.navigator&&window.navigator.sendBeacon?void(window.navigator.sendBeacon(e,oT(t))?i():o(e,t,sx)):void lx(e,t,i,o)}else lx(e,t,i,o);nx(e,t,r,n,i,o,"","",s,l)},ux=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 VI(!0),this.localStorage=new VI(!1),this.eventCheck=new HI(e,t),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.abKey="__tea_sdk_ab_version_"+this.configManager.get("app_id"),this.refer_key="__tea_cache_refer_"+this.configManager.get("app_id"),this.collect.on(WI.Ready,(function(){r.reportAll(!1)})),this.collect.on(WI.ConfigDomain,(function(){r.reportUrl=r.configManager.getUrl("event")})),this.collect.on(WI.Event,(function(e){r.event(e)})),this.collect.on(WI.BeconEvent,(function(e){r.beconEvent(e)})),this.collect.on(WI.CleanEvents,(function(){r.reportAll(!1)})),this.linster()},e.prototype.linster=function(){var e=this;window.addEventListener("unload",(function(){e.reportAll(!0)}),!1),RI((function(){e.reportAll(!0)})),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e.reportAll(!0)}),!1)},e.prototype.reportAll=function(e){this.report(e),this.reportBecon()},e.prototype.event=function(e){var t=this;try{var r=_I(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=rw((function(){t.report(!1),t.reportTimeout=null}),n)}}catch(i){this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:i.message})}},e.prototype.beconEvent=function(e){var t=_I(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=nw(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.handleRefer=function(){var e="";try{if(this.config.spa||this.config.autotrack){var t=this.localStorage.getItem(this.refer_key)||{};e=t.routeChange?t.refer_key:this.configManager.get("referrer")}else e=this.configManager.get("referrer")}catch(r){e=document.referrer}return e},e.prototype.merge=function(e,t){var r=this,n=this.configManager.get(),i=n.header,o=n.user;i.referrer=this.handleRefer(),i.custom=oT(i.custom);var a=this.configManager.get("evtParams"),s=this.configManager.get("user_unique_id_type"),l=ER(e).call(e,(function(e){try{if(Ow(a).length&&!t&&(e.params=yI({},e.params,a)),r.collect.dynamicParamsFilter){var n=r.collect.dynamicParamsFilter();Ow(n).length&&(e.params=yI({},e.params,n))}s&&(e.params.$user_unique_id_type=s);var i=r.configManager.getAbCache(),l=r.configManager.getAbVersion();return l&&i&&(r.config.disable_ab_reset||i.uuid===o.user_unique_id)&&(e.ab_sdk_version=l),e.session_id=r.collect.sessionManager.getSessionId(),e.params=oT(e.params),e}catch(c){return r.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:c.message}),e}})),c=[];if(!Ow(o).length)return console.warn("user info error,cant report"),c;this.config.enable_anonymousid&&delete o.web_id;var u=JSON.parse(oT({events:l,user:o,header:i}));return u.local_time=Math.floor(Vw()/1e3),u.verbose=1,u.user_unique_type=this.config.enable_ttwebid?this.config.user_unique_type:void 0,c.push(u),c},e.prototype.split=function(e){return e=ER(e).call(e,(function(e){var t=[];return t.push(e),t}))},e.prototype.send=function(e,t){var r=this;e.length&&Bw(e).call(e,(function(e){try{var n,i=JSON.parse(oT(e));if(Mw(r.config))(i=Mw(n=r.config).call(n,i))||console.warn("filter must return data !!");r.collect.eventFilter&&i&&((i=r.collect.eventFilter(i))||console.warn("filterEvent api must return data !!"));var o=i||e,a=JSON.parse(oT(o));if(r.eventCheck.checkVerify(a),!o.length)return;r.collect.emit(WI.SubmitBefore,o);var s=r.collect.cryptoData(o);cx(r.reportUrl,s,r.timeout,!1,(function(e,t){e&&0!==e.e?(r.collect.emit(WI.SubmitError,{type:"f_data",eventData:t,errorCode:e.e,response:e}),r.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_EVENT,info:"埋点上报失败",time:Vw(),data:a,code:e.e,failType:"数据异常",status:"fail"})):(r.collect.emit(WI.SubmitScuess,{eventData:t,res:e}),r.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_EVENT,info:"埋点上报成功",time:Vw(),data:a,code:200,status:"success"}))}),(function(e,t){r.configManager.get("reportErrorCallback")(e,t),r.collect.emit(WI.SubmitError,{type:"f_net",eventData:e,errorCode:t}),r.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_EVENT,info:"埋点上报网络异常",time:Vw(),data:a,code:t,failType:"网络异常",status:"fail"})}),t,r.config.enable_encryption,r.config.encryption_header),r.eventCheck.checkVerify(o),r.collect.emit(WI.SubmitVerifyH,o),r.collect.emit(WI.SubmitAfter,o)}catch(l){console.warn("something error, "+oT(l.stack)),r.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:l.message})}}))},e}(),fx=function e(t){return t?(t^16*Math.random()>>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},hx=function(){var e;return nw(e=fx().replace(/-/g,"")).call(e,0,19)},px=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)}))},dx=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.storage=new VI(!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(WI.SessionReset,(function(){r.resetSessionId()})),this.collect.on(WI.SessionResetTime,(function(){r.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Vw()-t>this.expireTime?e={sessionId:px(),timestamp:Vw()}:e.timestamp=Vw(),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=Vw():t={sessionId:px(),timestamp:Vw()},this.storage.setItem(this.sessionKey,t),this.sessionExp=MT((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=MT((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(){var e={sessionId:px(),timestamp:Vw()};this.storage.setItem(this.sessionKey,e)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&(Vw()-e.timestamp+30>=this.expireTime&&(e={sessionId:px(),timestamp:Vw()},this.storage.setItem(this.sessionKey,e)))},e}(),gx=function(){function e(){this.cacheToken={},this.enableCookie=!1,this.enableTTwebid=!1,this.enableCustomWebid=!1,this.enableAnonymousid=!1}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new VI(!1),this.tokenKey="__tea_cache_tokens_"+t.app_id,this.enableAnonymousid=t.enable_anonymousid,this.enableTTwebid=t.enable_ttwebid,this.enableCustomWebid=t.enable_custom_webid,this.collect.on(WI.AnonymousId,(function(e){r.setAnonymousId(e)})),this.collect.on(WI.ConfigUuid,(function(e){r.setUuid(e)})),this.collect.on(WI.ConfigWebId,(function(e){r.setWebId(e)})),this.enableCookie=t.cross_subdomain,this.expiresTime=t.cookie_expire||6048e5,this.cookieDomain=t.cookie_domain||"",this.checkStorage()},e.prototype.checkStorage=function(){var e=this;if(this.enableCookie){var t=this.storage.getCookie(this.tokenKey,this.cookieDomain);this.cacheToken=t&&"string"==typeof t?JSON.parse(t):{}}else this.cacheToken=this.storage.getItem(this.tokenKey)||{};this.tokenType=this.cacheToken&&this.cacheToken._type_?this.cacheToken._type_:"default","custom"!==this.tokenType||this.enableCustomWebid||this.enableAnonymousid?this.enableAnonymousid?this.completeAnonymous(this.cacheToken):this.enableCustomWebid?this.collect.on(WI.CustomWebId,(function(){e.tokenReady=!0,e.collect.emit(WI.TokenComplete)})):this.checkEnv()||(this.enableTTwebid?this.completeTtWid(this.cacheToken):this.check()):this.remoteWebid()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.config.disable_webid?this.complete({web_id:hx(),user_unique_id:this.configManager.get("user_unique_id")||hx()}):this.remoteWebid()},e.prototype.checkEnv=function(){var e=window.navigator.userAgent;if(-1!==Uw(e).call(e,"miniProgram")||-1!==Uw(e).call(e,"MiniProgram")){var t=PI(window.location.href);return!(!t||!t.Web_ID)&&(this.complete({web_id:""+t.Web_ID,user_unique_id:this.configManager.get("user_unique_id")||""+t.Web_ID}),!0)}return!1},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:""};this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 发起WEBID请求",logType:"fetch",level:"info",time:Vw(),data:r});var n=hx();nx(t,this.collect.cryptoData(r),3e5,!1,(function(t){var r;t&&0===t.e?(r=t.web_id,e.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"WEBID请求成功",logType:"fetch",level:"info",time:Vw(),data:t})):(r=n,e.collect.configManager.set({localWebId:n}),e.collect.emit(WI.TokenError),e.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"WEBID请求返回值异常",logType:"fetch",level:"warn",time:Vw(),data:t}),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.emit(WI.TokenError),e.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"WEBID请求网络异常",logType:"fetch",level:"error",time:Vw(),data:null}),e.collect.logger.warn("appid: "+e.config.app_id+", get webid error, use local webid~")}),"","",this.config.enable_encryption,this.config.encryption_header)},e.prototype.complete=function(e){var t=e.web_id,r=e.user_unique_id;if(!t&&!r)return this.collect.emit(WI.TokenError),void console.warn("token error");e.timestamp=Vw(),this.collect.configManager.set({web_id:t,user_unique_id:r}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(WI.TokenComplete)},e.prototype.completeAnonymous=function(e){var t=e.anonymous_id||px(),r=e.user_unique_id||this.configManager.get("user_unique_id");this.collect.configManager.set({anonymous_id:t,user_unique_id:r||t}),e.anonymous_id=t,e.user_unique_id=r||t,this.setStorage(e),this.tokenReady=!0,this.collect.emit(WI.TokenComplete)},e.prototype.completeTtWid=function(e){var t=e.user_unique_id||"",r=this.configManager.get("user_unique_id");this.configManager.set({user_unique_id:r||t}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(WI.TokenComplete)},e.prototype.setUuid=function(e){var t;if(e&&-1===Uw(t=["null","undefined","Null","None"]).call(t,e)){var r=String(e),n=this.configManager.get("user_unique_id"),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=Vw(),this.setStorage(this.cacheToken),this.collect.emit(WI.TokenChange,{type:"uuid",id:e}),this.collect.emit(WI.SessionReset)}else this.clearUuid()},e.prototype.clearUuid=function(){if(!this.config.enable_ttwebid){var e=this.enableAnonymousid?this.configManager.get("anonymous_id"):this.configManager.get("web_id");this.configManager.get("user_unique_id")!==e&&(this.configManager.set({user_unique_id:e}),this.cacheToken.user_unique_id=e,this.cacheToken.timestamp=Vw(),this.setStorage(this.cacheToken),this.collect.emit(WI.TokenReset))}},e.prototype.setAnonymousId=function(e){if(e&&this.enableAnonymousid){var t=this.configManager.get("anonymous_id"),r=this.configManager.get("user_unique_id");t!==e&&(t!==r&&r||(this.configManager.set({user_unique_id:e}),this.cacheToken.user_unique_id=e,this.collect.emit(WI.TokenChange,{type:"uuid",id:e})),this.configManager.set({anonymous_id:e}),this.cacheToken.anonymous_id=e,this.collect.emit(WI.TokenChange,{type:"anonymous_id",id:e}),this.setStorage(this.cacheToken))}},e.prototype.setWebId=function(e){if(e&&!this.config.enable_ttwebid&&!this.enableAnonymousid){var t=this.configManager.get("web_id"),r=this.configManager.get("user_unique_id");r&&r!==t||(this.configManager.set({user_unique_id:e}),this.cacheToken.user_unique_id=e,this.collect.emit(WI.TokenChange,{type:"uuid",id:e})),t!==e&&(this.configManager.set({web_id:e}),this.cacheToken.web_id=e,this.collect.emit(WI.TokenChange,{type:"webid",id:e})),this.cacheToken.timestamp=Vw(),this.setStorage(this.cacheToken)}},e.prototype.setStorage=function(e){var t;e._type_=this.enableCustomWebid?"custom":"default",delete e[vR(t="diss".split("")).call(t).join("")],this.enableCookie||this.enableTTwebid?this.storage.setCookie(this.tokenKey,e,this.expiresTime,this.cookieDomain):this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e.prototype.getTobId=function(){var e=this,t=this.configManager.getUrl("tobid"),r={app_id:this.config.app_id,user_unique_id:this.configManager.get("user_unique_id"),user_unique_id_type:this.configManager.get("user_unique_id_type")};this.enableAnonymousid?r.anonymous_id=this.configManager.get("anonymous_id"):r.web_id=this.configManager.get("web_id");var n=this.collect.cryptoData(r);return new h_((function(r){nx(t,n,3e4,e.enableTTwebid,(function(e){e&&0===e.e?r(e.tobid):r("")}),(function(){r("")}),"","",e.config.enable_encryption,e.config.encryption_header)}))},e}(),vx=DI((function(e,t){(function(){var t;function r(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+r[n]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),r[n++]=1073741823&l}return i},t=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},t=26):(r.prototype.am=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+r[n]+i)>>28)+(u>>14)+s*c,r[n++]=268435455&l}return i},t=28),r.prototype.DB=t,r.prototype.DM=(1<<t)-1,r.prototype.DV=1<<t;r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-t,r.prototype.F2=2*t-52;var o,a,s="0123456789abcdefghijklmnopqrstuvwxyz",l=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)l[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)l[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)l[o++]=a;function c(e){return s.charAt(e)}function u(e,t){var r=l[e.charCodeAt(t)];return null==r?-1:r}function f(e){var t=n();return t.fromInt(e),t}function h(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function p(e){this.m=e}function d(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function g(e,t){return e&t}function v(e,t){return e|t}function y(e,t){return e^t}function m(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function w(){}function E(e){return e}function S(e){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}p.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},p.prototype.revert=function(e){return e},p.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),CR(this).call(this,r)},p.prototype.sqrTo=function(e,t){e.squareTo(t),CR(this).call(this,t)},d.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},d.prototype.revert=function(e){var t=n();return e.copyTo(t),CR(this).call(this,t),t},d.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},d.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),CR(this).call(this,r)},d.prototype.sqrTo=function(e,t){e.squareTo(t),CR(this).call(this,t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,o=!1,a=0;--i>=0;){var s=8==n?255&e[i]:u(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=n)>=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<i,t[a-r]=this[a]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}},r.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var s=n(),l=this.s,c=e.s,u=this.DB-h(o[o.t-1]);u>0?(o.lShiftTo(u,s),a.lShiftTo(u,i)):(o.copyTo(s),a.copyTo(i));var f=s.t,p=s[f-1];if(0!=p){var d=p*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/d,v=(1<<this.F1)/d,y=1<<this.F2,m=i.t,_=m-f,b=null==t?n():t;for(s.dlShiftTo(_,b),i.compareTo(b)>=0&&(i[i.t++]=1,i.subTo(b,i)),r.ONE.dlShiftTo(f,b),b.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--_>=0;){var w=i[--m]==p?this.DM:Math.floor(i[m]*g+(i[m-1]+y)*v);if((i[m]+=s.am(0,w,i,_,0,f))<w)for(s.dlShiftTo(_,b),i.subTo(b,i);i[m]<--w;)i.subTo(b,i)}null!=t&&(i.drShiftTo(f,t),l!=c&&r.ZERO.subTo(t,t)),i.t=f,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var i=n(),o=n(),a=t.convert(this),s=h(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<<s)>0)t.mulTo(o,a,i);else{var l=i;i=o,o=l}return t.revert(i)},r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(i=!0,o=c(r));a>=0;)s<t?(r=(this[a]&(1<<s)-1)<<t-s,r|=this[--a]>>(s+=this.DB-t)):(r=this[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=c(r));return i?o:"0"},r.prototype.negate=function(){var e=n();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(e){var t=n();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t},r.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new p(t):new d(t),this.exp(e,r)},r.ZERO=f(0),r.ONE=f(1),w.prototype.convert=E,w.prototype.revert=E,w.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},w.prototype.sqrTo=function(e,t){e.squareTo(t)},S.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=n();return e.copyTo(t),CR(this).call(this,t),t},S.prototype.revert=function(e){return e},S.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},S.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),CR(this).call(this,r)},S.prototype.sqrTo=function(e,t){e.squareTo(t),CR(this).call(this,t)};var T,k,R,A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],P=(1<<26)/A[A.length-1];function I(){var e;e=(new Date).getTime(),k[R++]^=255&e,k[R++]^=e>>8&255,k[R++]^=e>>16&255,k[R++]^=e>>24&255,R>=F&&(R-=F)}if(r.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},r.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=f(r),o=n(),a=n(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},r.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),o=!1,a=0,s=0,l=0;l<e.length;++l){var c=u(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=t*s+c,++a>=n&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(r.ONE.shiftLeft(e-1),this);else{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;n<o;++n)r[n]=t(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)r[n]=t(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)r[n]=t(i,e[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},r.prototype.changeBit=function(e,t){var n=r.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},r.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},r.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},r.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(n=Math.min(e.t,t);i<n;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},r.prototype.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r[this.t+n-t]=this.am(t-n,e[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r},r.prototype.millerRabin=function(e){var t=this.subtract(r.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>A.length&&(e=A.length);for(var a=n(),s=0;s<e;++s){a.fromInt(A[Math.floor(Math.random()*A.length)]);var l=a.modPow(o,this);if(0!=l.compareTo(r.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<i&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},r.prototype.clone=function(){var e=n();return this.copyTo(e),e},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var r,n=this.DB-e*this.DB%8,i=0;if(e-- >0)for(n<this.DB&&(r=this[e]>>n)!=(this.s&this.DM)>>n&&(t[i++]=r|this.s<<this.DB-n);e>=0;)n<8?(r=(this[e]&(1<<n)-1)<<8-n,r|=this[--e]>>(n+=this.DB-8)):(r=this[e]>>(n-=8)&255,n<=0&&(n+=this.DB,--e)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(t[i++]=r);return t},r.prototype.equals=function(e){return 0==this.compareTo(e)},r.prototype.min=function(e){return this.compareTo(e)<0?this:e},r.prototype.max=function(e){return this.compareTo(e)>0?this:e},r.prototype.and=function(e){var t=n();return this.bitwiseTo(e,g,t),t},r.prototype.or=function(e){var t=n();return this.bitwiseTo(e,v,t),t},r.prototype.xor=function(e){var t=n();return this.bitwiseTo(e,y,t),t},r.prototype.andNot=function(e){var t=n();return this.bitwiseTo(e,m,t),t},r.prototype.not=function(){for(var e=n(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},r.prototype.shiftLeft=function(e){var t=n();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},r.prototype.shiftRight=function(e){var t=n();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},r.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+_(this[e]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=b(this[r]^t);return e},r.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},r.prototype.setBit=function(e){return this.changeBit(e,v)},r.prototype.clearBit=function(e){return this.changeBit(e,m)},r.prototype.flipBit=function(e){return this.changeBit(e,y)},r.prototype.add=function(e){var t=n();return this.addTo(e,t),t},r.prototype.subtract=function(e){var t=n();return this.subTo(e,t),t},r.prototype.multiply=function(e){var t=n();return this.multiplyTo(e,t),t},r.prototype.divide=function(e){var t=n();return this.divRemTo(e,t,null),t},r.prototype.remainder=function(e){var t=n();return this.divRemTo(e,null,t),t},r.prototype.divideAndRemainder=function(e){var t=n(),r=n();return this.divRemTo(e,t,r),new Array(t,r)},r.prototype.modPow=function(e,t){var r,i,o=e.bitLength(),a=f(1);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new p(t):t.isEven()?new S(t):new d(t);var s=new Array,l=3,c=r-1,u=(1<<r)-1;if(s[1]=i.convert(this),r>1){var g=n();for(i.sqrTo(s[1],g);l<=u;)s[l]=n(),i.mulTo(g,s[l-2],s[l]),l+=2}var v,y,m=e.t-1,_=!0,b=n();for(o=h(e[m])-1;m>=0;){for(o>=c?v=e[m]>>o-c&u:(v=(e[m]&(1<<o+1)-1)<<c-o,m>0&&(v|=e[m-1]>>this.DB+o-c)),l=r;0==(1&v);)v>>=1,--l;if((o-=l)<0&&(o+=this.DB,--m),_)s[v].copyTo(a),_=!1;else{for(;l>1;)i.sqrTo(a,b),i.sqrTo(b,a),l-=2;l>0?i.sqrTo(a,b):(y=a,a=b,b=y),i.mulTo(b,s[v],a)}for(;m>=0&&0==(e[m]&1<<o);)i.sqrTo(a,b),y=a,a=b,b=y,--o<0&&(o=this.DB-1,--m)}return i.revert(a)},r.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return r.ZERO;for(var n=e.clone(),i=this.clone(),o=f(1),a=f(0),s=f(0),l=f(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);n.compareTo(i)>=0?(n.subTo(i,n),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(n,i),t&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(r.ONE)?r.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},r.prototype.pow=function(e){return this.exp(e,new w)},r.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(t=0;t<A.length;++t)if(r[0]==A[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<A.length;){for(var n=A[t],i=t+1;i<A.length&&n<P;)n*=A[i++];for(n=r.modInt(n);t<i;)if(n%A[t++]==0)return!1}return r.millerRabin(e)},r.prototype.square=function(){var e=n();return this.squareTo(e),e},r.prototype.Barrett=S,null==k){var x;if(k=new Array,R=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var O=new Uint8Array(32);for(window.crypto.getRandomValues(O),x=0;x<32;++x)k[R++]=O[x]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var D=window.crypto.random(32);for(x=0;x<D.length;++x)k[R++]=255&D.charCodeAt(x)}for(;R<F;)x=Math.floor(65536*Math.random()),k[R++]=x>>>8,k[R++]=255&x;R=0,I()}function M(){if(null==T){for(I(),(T=new B).init(k),R=0;R<k.length;++R)k[R]=0;R=0}return T.next()}function C(){}function B(){this.i=0,this.j=0,this.S=new Array}C.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=M()},B.prototype.init=function(e){var t,r,n;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,n=this.S[t],this.S[t]=this.S[r],this.S[r]=n;this.i=0,this.j=0},B.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var F=256;e.exports={default:r,BigInteger:r,SecureRandom:C}}).call(OI)}));vx.BigInteger,vx.SecureRandom;var yx=vx.BigInteger;var mx=function(){function e(){mm(this,e),this.tlv=null,this.t="00",this.l="00",this.v=""}return bm(e,[{key:"getEncodedHex",value:function(){return this.tlv||(this.v=this.getValue(),this.l=this.getLength(),this.tlv=this.t+this.l+this.v),this.tlv}},{key:"getLength",value:function(){var e=this.v.length/2,t=e.toString(16);return t.length%2==1&&(t="0"+t),e<128?t:(128+t.length/2).toString(16)+t}},{key:"getValue",value:function(){return""}}]),e}(),_x=function(e){jm(r,e);var t=o_(r);function r(e){var n;return mm(this,r),(n=t.call(this)).t="02",e&&(n.v=function(e){var t=e.toString(16);if("-"!==t[0])t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=(t=t.substr(1)).length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";t=(t=(n=new yx(n,16)).xor(e).add(yx.ONE)).toString(16).replace(/^-/,"")}return t}(e)),n}return bm(r,[{key:"getValue",value:function(){return this.v}}]),r}(mx),bx=function(e){jm(r,e);var t=o_(r);function r(e){var n;return mm(this,r),(n=t.call(this)).t="30",n.asn1Array=e,n}return bm(r,[{key:"getValue",value:function(){var e;return this.v=ER(e=this.asn1Array).call(e,(function(e){return e.getEncodedHex()})).join(""),this.v}}]),r}(mx);function wx(e,t){return+e[t+2]<8?1:128&+e.substr(t+2,2)}function Ex(e,t){var r=wx(e,t),n=e.substr(t+2,2*r);return n?(+n[0]<8?new yx(n,16):new yx(n.substr(2),16)).intValue():-1}function Sx(e,t){return t+2*(wx(e,t)+1)}var Tx=function(e,t){var r=new _x(e),n=new _x(t);return new bx([r,n]).getEncodedHex()},kx=function(e){var t=Sx(e,0),r=Sx(e,t),n=Ex(e,t),i=e.substr(r,2*n),o=r+i.length,a=Sx(e,o),s=Ex(e,o),l=e.substr(a,2*s);return{r:new yx(i,16),s:new yx(l,16)}},Rx=vx.BigInteger,Ax=new Rx("2"),Px=new Rx("3"),Ix=function(){function e(t,r){mm(this,e),this.x=r,this.q=t}return bm(e,[{key:"equals",value:function(e){return e===this||this.q.equals(e.q)&&this.x.equals(e.x)}},{key:"toBigInteger",value:function(){return this.x}},{key:"negate",value:function(){return new e(this.q,this.x.negate().mod(this.q))}},{key:"add",value:function(t){return new e(this.q,this.x.add(t.toBigInteger()).mod(this.q))}},{key:"subtract",value:function(t){return new e(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))}},{key:"multiply",value:function(t){return new e(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))}},{key:"divide",value:function(t){return new e(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))}},{key:"square",value:function(){return new e(this.q,this.x.square().mod(this.q))}}]),e}(),xx=function(){function e(t,r,n,i){mm(this,e),this.curve=t,this.x=r,this.y=n,this.z=null==i?Rx.ONE:i,this.zinv=null}return bm(e,[{key:"getX",value:function(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"getY",value:function(){return null===this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}},{key:"equals",value:function(e){return e===this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Rx.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(Rx.ZERO))}},{key:"isInfinity",value:function(){return null===this.x&&null===this.y||this.z.equals(Rx.ZERO)&&!this.y.toBigInteger().equals(Rx.ZERO)}},{key:"negate",value:function(){return new e(this.curve,this.x,this.y.negate(),this.z)}},{key:"add",value:function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=this.x.toBigInteger(),n=this.y.toBigInteger(),i=this.z,o=t.x.toBigInteger(),a=t.y.toBigInteger(),s=t.z,l=this.curve.q,c=r.multiply(s).mod(l),u=o.multiply(i).mod(l),f=c.subtract(u),h=n.multiply(s).mod(l),p=a.multiply(i).mod(l),d=h.subtract(p);if(Rx.ZERO.equals(f))return Rx.ZERO.equals(d)?this.twice():this.curve.infinity;var g=c.add(u),v=i.multiply(s).mod(l),y=f.square().mod(l),m=f.multiply(y).mod(l),_=v.multiply(d.square()).subtract(g.multiply(y)).mod(l),b=f.multiply(_).mod(l),w=d.multiply(y.multiply(c).subtract(_)).subtract(h.multiply(m)).mod(l),E=m.multiply(v).mod(l);return new e(this.curve,this.curve.fromBigInteger(b),this.curve.fromBigInteger(w),E)}},{key:"twice",value:function(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;var t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=this.z,i=this.curve.q,o=this.curve.a.toBigInteger(),a=t.square().multiply(Px).add(o.multiply(n.square())).mod(i),s=r.shiftLeft(1).multiply(n).mod(i),l=r.square().mod(i),c=l.multiply(t).multiply(n).mod(i),u=s.square().mod(i),f=a.square().subtract(c.shiftLeft(3)).mod(i),h=s.multiply(f).mod(i),p=a.multiply(c.shiftLeft(2).subtract(f)).subtract(u.shiftLeft(1).multiply(l)).mod(i),d=s.multiply(u).mod(i);return new e(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(p),d)}},{key:"multiply",value:function(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;for(var t=e.multiply(Px),r=this.negate(),n=this,i=t.bitLength()-2;i>0;i--){n=n.twice();var o=t.testBit(i);o!==e.testBit(i)&&(n=n.add(o?this:r))}return n}}]),e}(),Ox=function(){function e(t,r,n){mm(this,e),this.q=t,this.a=this.fromBigInteger(r),this.b=this.fromBigInteger(n),this.infinity=new xx(this,null,null)}return bm(e,[{key:"equals",value:function(e){return e===this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}},{key:"fromBigInteger",value:function(e){return new Ix(this.q,e)}},{key:"decodePointHex",value:function(e){switch(Ub(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=this.fromBigInteger(new Rx(e.substr(2),16)),r=this.fromBigInteger(t.multiply(t.square()).add(t.multiply(this.a)).add(this.b).toBigInteger().modPow(this.q.divide(new Rx("4")).add(Rx.ONE),this.q));return r.toBigInteger().mod(Ax).equals(new Rx(e.substr(0,2),16).subtract(Ax))||(r=r.negate()),new xx(this,t,r);case 4:case 6:case 7:var n=(e.length-2)/2,i=e.substr(2,n),o=e.substr(n+2,n);return new xx(this,this.fromBigInteger(new Rx(i,16)),this.fromBigInteger(new Rx(o,16)));default:return null}}}]),e}(),Dx={ECPointFp:xx,ECCurveFp:Ox},Mx=vx.BigInteger,Cx=vx.SecureRandom,Bx=Dx.ECCurveFp,Fx=new Cx,Lx=Gx(),Ux=Lx.curve,Nx=Lx.G,jx=Lx.n;function Gx(){var e=new Mx("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new Mx("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),r=new Mx("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),n=new Bx(e,t,r),i=n.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:n,G:i,n:new Mx("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function Vx(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}var qx={getGlobalCurve:function(){return Ux},generateEcparam:Gx,generateKeyPairHex:function(e,t,r){var n=(e?new Mx(e,t,r):new Mx(jx.bitLength(),Fx)).mod(jx.subtract(Mx.ONE)).add(Mx.ONE),i=Vx(n.toString(16),64),o=Nx.multiply(n);return{privateKey:i,publicKey:"04"+Vx(o.getX().toBigInteger().toString(16),64)+Vx(o.getY().toBigInteger().toString(16),64)}},compressPublicKeyHex:function(e){if(130!==e.length)throw new Error("Invalid public key to compress");var t=(e.length-2)/2,r=e.substr(2,t),n="03";return new Mx(e.substr(t+2,t),16).mod(new Mx("2")).equals(Mx.ZERO)&&(n="02"),n+r},utf8ToHex:function(e){for(var t=(e=unescape(encodeURIComponent(e))).length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;for(var i=[],o=0;o<t;o++){var a=r[o>>>2]>>>24-o%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},leftPad:Vx,arrayToHex:function(e){return ER(e).call(e,(function(e){return 1===(e=e.toString(16)).length?"0"+e:e})).join("")},arrayToUtf8:function(e){for(var t=[],r=0,n=0;n<2*e.length;n+=2)t[n>>>3]|=Ub(e[r],10)<<24-n%8*4,r++;try{for(var i=[],o=0;o<e.length;o++){var a=t[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(a))}return decodeURIComponent(escape(i.join("")))}catch(s){throw new Error("Malformed UTF-8 data")}},hexToArray:function(e){var t=[],r=e.length;r%2!=0&&(e=Vx(e,r+1)),r=e.length;for(var n=0;n<r;n+=2)t.push(Ub(e.substr(n,2),16));return t},verifyPublicKey:function(e){var t=Ux.decodePointHex(e);if(!t)return!1;var r=t.getX();return t.getY().square().equals(r.multiply(r.square()).add(r.multiply(Ux.a)).add(Ux.b))},comparePublicKeyHex:function(e,t){var r=Ux.decodePointHex(e);if(!r)return!1;var n=Ux.decodePointHex(t);return!!n&&r.equals(n)}},zx=new Uint32Array(68),Kx=new Uint32Array(64);function Hx(e,t){var r=31&t;return e<<r|e>>>32-r}function Wx(e,t){for(var r=[],n=e.length-1;n>=0;n--)r[n]=255&(e[n]^t[n]);return r}function Xx(e){return e^Hx(e,9)^Hx(e,17)}function $x(e){var t,r=8*e.length,n=r%512;n=n>=448?512-n%448-1:448-n-1;for(var i=new Array((n-7)/8),o=new Array(8),a=0,s=i.length;a<s;a++)i[a]=0;for(var l=0,c=o.length;l<c;l++)o[l]=0;r=r.toString(2);for(var u=7;u>=0;u--)if(r.length>8){var f=r.length-8;o[u]=Ub(r.substr(f),2),r=r.substr(0,f)}else r.length>0&&(o[u]=Ub(r,2),r="");for(var h,p=new Uint8Array(f_(t=[]).call(t,a_(e),[128],i,o)),d=new DataView(p.buffer,0),g=p.length/64,v=new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214]),y=0;y<g;y++){qR(zx).call(zx,0),qR(Kx).call(Kx,0);for(var m=16*y,_=0;_<16;_++)zx[_]=d.getUint32(4*(m+_),!1);for(var b=16;b<68;b++)zx[b]=(h=zx[b-16]^zx[b-9]^Hx(zx[b-3],15))^Hx(h,15)^Hx(h,23)^Hx(zx[b-13],7)^zx[b-6];for(var w=0;w<64;w++)Kx[w]=zx[w]^zx[w+4];for(var E=v[0],S=v[1],T=v[2],k=v[3],R=v[4],A=v[5],P=v[6],I=v[7],x=void 0,O=void 0,D=void 0,M=void 0,C=0;C<64;C++)M=C>=0&&C<=15?2043430169:2055708042,O=(C>=0&&C<=15?E^S^T:E&S|E&T|S&T)+k+((x=Hx(Hx(E,12)+R+Hx(M,C),7))^Hx(E,12))+Kx[C],D=(C>=0&&C<=15?R^A^P:R&A|~R&P)+I+x+zx[C],k=T,T=Hx(S,9),S=E,E=O,I=P,P=Hx(A,19),A=R,R=Xx(D);v[0]^=E,v[1]^=S,v[2]^=T,v[3]^=k,v[4]^=R,v[5]^=A,v[6]^=P,v[7]^=I}for(var B=[],F=0,L=v.length;F<L;F++){var U=v[F];B.push((4278190080&U)>>>24,(16711680&U)>>>16,(65280&U)>>>8,255&U)}return B}for(var Yx=new Uint8Array(64),Jx=new Uint8Array(64),Zx=0;Zx<64;Zx++)Yx[Zx]=54,Jx[Zx]=92;var Qx=$x,eO=function(e,t){var r,n;for(t.length>64&&(t=$x(t));t.length<64;)t.push(0);var i=Wx(t,Yx),o=Wx(t,Jx),a=$x(f_(r=[]).call(r,a_(i),a_(e)));return $x(f_(n=[]).call(n,a_(o),a_(a)))},tO=vx.BigInteger,rO=Tx,nO=kx,iO=Qx,oO=qx.generateEcparam(),aO=oO.G,sO=oO.curve,lO=oO.n;function cO(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1234567812345678";r=qx.utf8ToHex(r);var n,i,o=qx.leftPad(aO.curve.a.toBigInteger().toRadix(16),64),a=qx.leftPad(aO.curve.b.toBigInteger().toRadix(16),64),s=qx.leftPad(aO.getX().toBigInteger().toRadix(16),64),l=qx.leftPad(aO.getY().toBigInteger().toRadix(16),64);if(128===t.length)n=t.substr(0,64),i=t.substr(64,64);else{var c=aO.curve.decodePointHex(t);n=qx.leftPad(c.getX().toBigInteger().toRadix(16),64),i=qx.leftPad(c.getY().toBigInteger().toRadix(16),64)}var u=qx.hexToArray(r+o+a+s+l+n+i),f=4*r.length;u.unshift(255&f),u.unshift(f>>8&255);var h=iO(u);return qx.arrayToHex(iO(f_(h).call(h,qx.hexToArray(e))))}function uO(){var e=qx.generateKeyPairHex(),t=sO.decodePointHex(e.publicKey);return e.k=new tO(e.privateKey,16),e.x1=t.getX().toBigInteger(),e}var fO={generateKeyPairHex:qx.generateKeyPairHex,compressPublicKeyHex:qx.compressPublicKeyHex,comparePublicKeyHex:qx.comparePublicKeyHex,doEncrypt:function(e,t){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e="string"==typeof e?qx.hexToArray(qx.utf8ToHex(e)):nw(Array.prototype).call(e),t=qx.getGlobalCurve().decodePointHex(t);var o=qx.generateKeyPairHex(),a=new tO(o.privateKey,16),s=o.publicKey;s.length>128&&(s=s.substr(s.length-128));var l=t.multiply(a),c=qx.hexToArray(qx.leftPad(l.getX().toBigInteger().toRadix(16),64)),u=qx.hexToArray(qx.leftPad(l.getY().toBigInteger().toRadix(16),64)),f=qx.arrayToHex(iO(f_(r=[]).call(r,c,e,u))),h=1,p=0,d=[],g=f_(n=[]).call(n,c,u),v=function(){var e;d=iO(f_(e=[]).call(e,a_(g),[h>>24&255,h>>16&255,h>>8&255,255&h])),h++,p=0};v();for(var y=0,m=e.length;y<m;y++)p===d.length&&v(),e[y]^=255&d[p++];var _=qx.arrayToHex(e);return 0===i?s+_+f:s+f+_},doDecrypt:function(e,t){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).output,a=void 0===o?"string":o;t=new tO(t,16);var s=e.substr(128,64),l=e.substr(192);0===i&&(s=e.substr(e.length-64),l=e.substr(128,e.length-128-64));var c=qx.hexToArray(l),u=qx.getGlobalCurve().decodePointHex("04"+e.substr(0,128)).multiply(t),f=qx.hexToArray(qx.leftPad(u.getX().toBigInteger().toRadix(16),64)),h=qx.hexToArray(qx.leftPad(u.getY().toBigInteger().toRadix(16),64)),p=1,d=0,g=[],v=f_(r=[]).call(r,f,h),y=function(){var e;g=iO(f_(e=[]).call(e,a_(v),[p>>24&255,p>>16&255,p>>8&255,255&p])),p++,d=0};y();for(var m=0,_=c.length;m<_;m++)d===g.length&&y(),c[m]^=255&g[d++];return qx.arrayToHex(iO(f_(n=[]).call(n,f,c,h)))===s.toLowerCase()?"array"===a?c:qx.arrayToUtf8(c):"array"===a?[]:""},doSignature:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.pointPool,i=r.der,o=r.hash,a=r.publicKey,s=r.userId,l="string"==typeof e?qx.utf8ToHex(e):qx.arrayToHex(e);o&&(a=a||function(e){var t=aO.multiply(new tO(e,16)),r=qx.leftPad(t.getX().toBigInteger().toString(16),64),n=qx.leftPad(t.getY().toBigInteger().toString(16),64);return"04"+r+n}(t),l=cO(l,a,s));var c=new tO(t,16),u=new tO(l,16),f=null,h=null,p=null;do{do{var d=void 0;f=(d=n&&n.length?n.pop():uO()).k,h=u.add(d.x1).mod(lO)}while(h.equals(tO.ZERO)||h.add(f).equals(lO));p=c.add(tO.ONE).modInverse(lO).multiply(f.subtract(h.multiply(c))).mod(lO)}while(p.equals(tO.ZERO));return i?rO(h,p):qx.leftPad(h.toString(16),64)+qx.leftPad(p.toString(16),64)},doVerifySignature:function(e,t,r){var n,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.der,s=o.hash,l=o.userId,c="string"==typeof e?qx.utf8ToHex(e):qx.arrayToHex(e);if(s&&(c=cO(c,r,l)),a){var u=nO(t);n=u.r,i=u.s}else n=new tO(t.substring(0,64),16),i=new tO(t.substring(64),16);var f=sO.decodePointHex(r),h=new tO(c,16),p=n.add(i).mod(lO);if(p.equals(tO.ZERO))return!1;var d=aO.multiply(i).add(f.multiply(p)),g=h.add(d.getX().toBigInteger()).mod(lO);return n.equals(g)},getPoint:uO,verifyPublicKey:qx.verifyPublicKey},hO=Qx,pO=eO;function dO(e){return ER(e).call(e,(function(e){return 1===(e=e.toString(16)).length?"0"+e:e})).join("")}function gO(e){var t,r,n=[],i=e.length;i%2!=0&&(r=i+1,e=(t=e).length>=r?t:new Array(r-t.length+1).join("0")+t),i=e.length;for(var o=0;o<i;o+=2)n.push(Ub(e.substr(o,2),16));return n}var vO=0,yO=16,mO=[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5,43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153,156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98,228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166,71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168,104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53,30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135,212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158,234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161,224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227,29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111,213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81,141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216,10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176,137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132,24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72],_O=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257];function bO(e){for(var t=[],r=0,n=e.length;r<n;r+=2)t.push(Ub(e.substr(r,2),16));return t}function wO(e,t){return e<<t|e>>>32-t}function EO(e){return(255&mO[e>>>24&255])<<24|(255&mO[e>>>16&255])<<16|(255&mO[e>>>8&255])<<8|255&mO[255&e]}function SO(e){return e^wO(e,2)^wO(e,10)^wO(e,18)^wO(e,24)}function TO(e){return e^wO(e,13)^wO(e,23)}function kO(e,t,r){for(var n=new Array(4),i=new Array(4),o=0;o<4;o++)i[0]=255&e[4*o],i[1]=255&e[4*o+1],i[2]=255&e[4*o+2],i[3]=255&e[4*o+3],n[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];for(var a,s=0;s<32;s+=4)a=n[1]^n[2]^n[3]^r[s+0],n[0]^=SO(EO(a)),a=n[2]^n[3]^n[0]^r[s+1],n[1]^=SO(EO(a)),a=n[3]^n[0]^n[1]^r[s+2],n[2]^=SO(EO(a)),a=n[0]^n[1]^n[2]^r[s+3],n[3]^=SO(EO(a));for(var l=0;l<16;l+=4)t[l]=n[3-l/4]>>>24&255,t[l+1]=n[3-l/4]>>>16&255,t[l+2]=n[3-l/4]>>>8&255,t[l+3]=255&n[3-l/4]}function RO(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.padding,o=void 0===i?"pkcs#7":i,a=n.mode,s=n.iv,l=void 0===s?[]:s,c=n.output,u=void 0===c?"string":c;if("cbc"===a&&("string"==typeof l&&(l=bO(l)),16!==l.length))throw new Error("iv is invalid");if("string"==typeof t&&(t=bO(t)),16!==t.length)throw new Error("key is invalid");if(e="string"==typeof e?r!==vO?function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=$R(e).call(e,r);if(i<=127)t.push(i);else if(i<=2047)t.push(192|i>>>6),t.push(128|63&i);else if(i<=55295||i>=57344&&i<=65535)t.push(224|i>>>12),t.push(128|i>>>6&63),t.push(128|63&i);else{if(!(i>=65536&&i<=1114111))throw t.push(i),new Error("input is not supported");r++,t.push(240|i>>>18&28),t.push(128|i>>>12&63),t.push(128|i>>>6&63),t.push(128|63&i)}}return t}(e):bO(e):a_(e),("pkcs#5"===o||"pkcs#7"===o)&&r!==vO)for(var f=yO-e.length%yO,h=0;h<f;h++)e.push(f);var p=new Array(32);!function(e,t,r){for(var n=new Array(4),i=new Array(4),o=0;o<4;o++)i[0]=255&e[0+4*o],i[1]=255&e[1+4*o],i[2]=255&e[2+4*o],i[3]=255&e[3+4*o],n[o]=i[0]<<24|i[1]<<16|i[2]<<8|i[3];n[0]^=2746333894,n[1]^=1453994832,n[2]^=1736282519,n[3]^=2993693404;for(var a,s=0;s<32;s+=4)a=n[1]^n[2]^n[3]^_O[s+0],t[s+0]=n[0]^=TO(EO(a)),a=n[2]^n[3]^n[0]^_O[s+1],t[s+1]=n[1]^=TO(EO(a)),a=n[3]^n[0]^n[1]^_O[s+2],t[s+2]=n[2]^=TO(EO(a)),a=n[0]^n[1]^n[2]^_O[s+3],t[s+3]=n[3]^=TO(EO(a));if(r===vO)for(var l,c=0;c<16;c++)l=t[c],t[c]=t[31-c],t[31-c]=l}(t,p,r);for(var d,g=[],v=l,y=e.length,m=0;y>=yO;){var _=nw(e).call(e,m,m+16),b=new Array(16);if("cbc"===a)for(var w=0;w<yO;w++)r!==vO&&(_[w]^=v[w]);kO(_,b,p);for(var E=0;E<yO;E++)"cbc"===a&&r===vO&&(b[E]^=v[E]),g[m+E]=b[E];"cbc"===a&&(v=r!==vO?b:_),y-=yO,m+=yO}if(("pkcs#5"===o||"pkcs#7"===o)&&r===vO){for(var S=g.length,T=g[S-1],k=1;k<=T;k++)if(g[S-k]!==T)throw new Error("padding is invalid");Sk(g).call(g,S-T,T)}return"array"!==u?r!==vO?ER(d=g).call(d,(function(e){return 1===(e=e.toString(16)).length?"0"+e:e})).join(""):function(e){for(var t=[],r=0,n=e.length;r<n;r++)e[r]>=240&&e[r]<=247?(t.push(nA(((7&e[r])<<18)+((63&e[r+1])<<12)+((63&e[r+2])<<6)+(63&e[r+3]))),r+=3):e[r]>=224&&e[r]<=239?(t.push(nA(((15&e[r])<<12)+((63&e[r+1])<<6)+(63&e[r+2]))),r+=2):e[r]>=192&&e[r]<=223?(t.push(nA(((31&e[r])<<6)+(63&e[r+1]))),r++):t.push(nA(e[r]));return t.join("")}(g):g}var AO={sm2:fO,sm3:function(e,t){if(e="string"==typeof e?function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=$R(e).call(e,r);if(i<=127)t.push(i);else if(i<=2047)t.push(192|i>>>6),t.push(128|63&i);else if(i<=55295||i>=57344&&i<=65535)t.push(224|i>>>12),t.push(128|i>>>6&63),t.push(128|63&i);else{if(!(i>=65536&&i<=1114111))throw t.push(i),new Error("input is not supported");r++,t.push(240|i>>>18&28),t.push(128|i>>>12&63),t.push(128|i>>>6&63),t.push(128|63&i)}}return t}(e):nw(Array.prototype).call(e),t){if("hmac"!==(t.mode||"hmac"))throw new Error("invalid mode");var r=t.key;if(!r)throw new Error("invalid key");return r="string"==typeof r?gO(r):nw(Array.prototype).call(r),dO(pO(e,r))}return dO(hO(e))},sm4:{encrypt:function(e,t,r){return RO(e,t,1,r)},decrypt:function(e,t,r){return RO(e,t,0,r)}}}.sm2;var PO=function(){function e(e){this.disableAutoPageView=!1,this.bridgeReport=!1,this.staging=!1,this.pluginInstances=[],this.sended=!1,this.started=!1,this.destroyInstance=!1,this.adapters={},this.sdkReady=!1,this.name=e,this.hook=new EI,this.logger=new QI(e),this.remotePlugin=new vI,this.Types=WI,this.adapters.fetch=nx,this.adapters.storage=VI}return e.usePlugin=function(t,r,n){if(r){for(var i=!1,o=0,a=e.plugins.length;o<a;o++){if(e.plugins[o].name===r){e.plugins[o].plugin=t,e.plugins[o].options=n||{},i=!0;break}}i||e.plugins.push({name:r,plugin:t,options:n})}else e.plugins.push({plugin:t})},e.prototype.init=function(t){var r,n,i=this;this.inited?console.log("init can be call only one time"):t&&SI(t)?t.app_id&&("number"==typeof(n=t.app_id)&&!isNaN(n))?!t.app_key||function(e){return"string"==typeof e}(t.app_key)?(t.channel_domain||-1!==Uw(r=["cn","sg","va"]).call(r,t.channel)||(console.warn("channel must be `cn`, `sg`,`va` !!!"),t.channel="cn"),this.logger=new QI(this.name,t.log),this.configManager=new ZI(this,t),this.appBridge=new ex(t,this.configManager),this.bridgeReport=this.appBridge.bridgeInject(),this.initConfig=t,this.env=t.channel_domain?"self":"public",this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行INIT",data:t,level:"info",time:Vw()}),t.disable_auto_pv&&(this.disableAutoPageView=!0),this.bridgeReport?(this.inited=!0,this.emit(WI.Init)):(t.enable_encryption&&"sm"===t.encryption_type&&this.initCrypto(),this.configManager.set({app_id:t.app_id}),this.eventManager=new ux,this.tokenManager=new gx,this.sessionManager=new dx,h_.all([new h_((function(e){i.once(WI.TokenComplete,(function(){e(!0)}))})),new h_((function(e){i.once(WI.Start,(function(){e(!0)}))}))]).then((function(){try{var r;CR(r=e.plugins).call(r,(function(e,t){var r=t.plugin,n=t.options,o=A_(i.initConfig,n),a=new r;return a.apply(i,o),e.push(a),e}),i.pluginInstances)}catch(n){console.log("load plugin error, "+n.message),i.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:n.message})}i.sdkReady=!0,i.emit(WI.Ready),i.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 初始化完成",time:Vw(),level:"info",data:i.configManager.get("user")}),i.logger.info("appid: "+t.app_id+", userInfo:"+oT(i.configManager.get("user"))),i.logger.info("appid: "+t.app_id+", sdk is ready, version is "+KI+", you can report now !!!");try{(window.opener||window.parent).postMessage("[tea-sdk]ready","*")}catch(n){i.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:n.message})}i.pageView(),i.on(WI.TokenChange,(function(e){"webid"!==e.type&&"anonymous_id"!==e.type||i.pageView(),i.logger.info("appid: "+t.app_id+" token change, new userInfo:"+oT(i.configManager.get("user"))),i.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 设置了用户信息",time:Vw(),secType:"USER",level:"info",data:i.configManager.get("user")})})),i.on(WI.TokenReset,(function(){i.logger.info("appid: "+t.app_id+" token reset, new userInfo:"+oT(i.configManager.get("user"))),i.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 重置了用户信息",time:Vw(),secType:"USER",level:"info",data:i.configManager.get("user")})})),i.on(WI.RouteChange,(function(e){e.init||t.disable_route_report||i.pageView()}))})),this.tokenManager.apply(this,t),this.eventManager.apply(this,t),this.sessionManager.apply(this,t),this.inited=!0,this.emit(WI.Init))):console.warn("app_key param is error, must be string, please check!"):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&&SI(e))if(this.bridgeReport)this.appBridge.setConfig(e);else{e._staging_flag&&1===e._staging_flag&&(this.staging=!0),e.disable_auto_pv&&(this.disableAutoPageView=!0,delete e.disable_auto_pv);var t=yI({},e);if(this.initConfig&&this.initConfig.configPersist){var r=this.configManager.getStore();r&&(t=A_(r,e)),this.configManager.setStore(e)}t.web_id,t.user_unique_id;var n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&Uw(t).call(t,n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Dw){var i=0;for(n=Dw(e);i<n.length;i++)Uw(t).call(t,n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(t,["web_id","user_unique_id"]);t.hasOwnProperty("web_id")&&this.emit(WI.ConfigWebId,t.web_id),t.hasOwnProperty("user_unique_id")&&this.emit(WI.ConfigUuid,t.user_unique_id),this.configManager.set(n),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行CONFIG",level:"info",time:Vw(),data:t})}else this.logger.warn("config params is error, please check");else this.logger.warn("config must be use after function init")},e.prototype.setDomain=function(e){this.configManager&&this.configManager.setDomain(e),this.emit(WI.ConfigDomain)},e.prototype.getConfig=function(e){return this.configManager.get(e)},e.prototype.send=function(){this.start()},e.prototype.start=function(){this.inited&&!this.sended&&(this.sended=!0,this.emit(WI.Start),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行START",level:"info",time:Vw()}),this.bridgeReport&&(this.pageView(),this.emit(WI.Ready)))},e.prototype.event=function(e,t){var r=this;try{if(this.initConfig&&this.initConfig.disable_track_event)return;var n=[];if(Tk(e))Bw(e).call(e,(function(e){var t=r.processEvent(e[0],e[1]||{});t&&n.push(t)}));else{var i=this.processEvent(e,t);if(!i)return;n.push(i)}this.bridgeReport?Bw(n).call(n,(function(e){var t=e.event,n=e.params;r.appBridge.onEventV3(t,oT(n))})):n.length&&(this.emit(WI.Event,n),this.emit(WI.SessionResetTime))}catch(o){this.logger.warn("something error, please check"),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:o.message})}},e.prototype.beconEvent=function(e,t){if(!this.initConfig||!this.initConfig.disable_track_event)if(Tk(e))console.warn("beconEvent not support batch report, please check");else{var r=[],n=this.processEvent(e,t||{});n&&(r.push(n),r.length&&(this.emit(WI.BeconEvent,r),this.emit(WI.SessionResetTime)))}},e.prototype.processEvent=function(e,t){void 0===t&&(t={});try{if(!e)return this.logger.warn("eventName is null, please check"),null;var r=e;/^event\./.test(e)&&(r=nw(e).call(e,6));var n=t;"object"!==fp(n)&&(n={}),n.profile?delete n.profile:n.event_index=TI();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,is_bav:this.initConfig&&this.initConfig.autotrack?1:0}}catch(o){return this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:o.message}),{event:e,params:t}}},e.prototype.dynamicParams=function(e){this.dynamicParamsFilter=e},e.prototype.filterEvent=function(e){this.eventFilter=e},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){if(void 0===e&&(e={}),this.inited){var t={title:document.title||location.pathname,url:location.href,url_path:location.pathname,time:Vw(),referrer:window.document.referrer,$is_first_time:""+(this.configManager&&this.configManager.is_first_time||!1)},r=yI({},t,e);this.event("predefine_pageview",r)}else console.warn("predefinePageView should call after init")},e.prototype.clearEventCache=function(){this.emit(WI.CleanEvents)},e.prototype.setWebIDviaUnionID=function(e){if(e){var t=II(e);this.config({web_id:""+t,wechat_unionid:e}),this.emit(WI.CustomWebId)}},e.prototype.setWebIDviaOpenID=function(e){if(e){var t=II(e);this.config({web_id:""+t,wechat_openid:e}),this.emit(WI.CustomWebId)}},e.prototype.setAnonymousId=function(e){this.emit(WI.AnonymousId,e)},e.prototype.setNativeAppId=function(e){this.bridgeReport&&this.appBridge.setNativeAppId(e)},e.prototype.resetStayDuration=function(e,t,r){void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=""),this.emit(WI.ResetStay,{url_path:e,title:t,url:r},WI.Stay)},e.prototype.resetStayParams=function(e,t,r){void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=""),this.emit(WI.SetStay,{url_path:e,title:t,url:r},WI.Stay)},e.prototype.getToken=function(e,t){var r=this;if(this.inited){var n=!1,i=function(t){if(!n){n=!0;var i,o=r.configManager.get().user;if(t)o.tobid=t,o[vR(i="diss".split("")).call(i).join("")]=t;return e(yI({},o))}},o=function(){r.tokenManager.getTobId().then((function(e){i(e)}))};this.sdkReady?o():(t&&rw((function(){i()}),t),this.on(WI.Ready,(function(){o()})))}else this.logger.warn("getToken must be use after function init")},e.prototype.startTrackEvent=function(e){e&&this.emit(WI.TrackDurationStart,e,WI.TrackDuration)},e.prototype.endTrackEvent=function(e,t){void 0===t&&(t={}),e&&this.emit(WI.TrackDurationEnd,{eventName:e,params:t},WI.TrackDuration)},e.prototype.pauseTrackEvent=function(e){e&&this.emit(WI.TrackDurationPause,e,WI.TrackDuration)},e.prototype.resumeTrackEvent=function(e){e&&this.emit(WI.TrackDurationResume,e,WI.TrackDuration)},e.prototype.profileSet=function(e){this.bridgeReport?this.appBridge.profileSet(oT(e)):this.emit(WI.ProfileSet,e,WI.Profile),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行profileSet",level:"info",time:Vw(),data:e})},e.prototype.profileSetOnce=function(e){this.bridgeReport?this.appBridge.profileSetOnce(oT(e)):this.emit(WI.ProfileSetOnce,e,WI.Profile),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行profileSetOnce",level:"info",time:Vw(),data:e})},e.prototype.profileIncrement=function(e){this.bridgeReport?this.appBridge.profileIncrement(oT(e)):this.emit(WI.ProfileIncrement,e,WI.Profile),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行profileIncrement",level:"info",time:Vw(),data:e})},e.prototype.profileUnset=function(e){this.bridgeReport?this.appBridge.profileUnset(e):this.emit(WI.ProfileUnset,e,WI.Profile),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行profileUnset",level:"info",time:Vw(),data:e})},e.prototype.profileAppend=function(e){this.bridgeReport?this.appBridge.profileAppend(oT(e)):this.emit(WI.ProfileAppend,e,WI.Profile),this.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"SDK 执行profileAppend",level:"info",time:Vw(),data:e})},e.prototype.setExternalAbVersion=function(e){var t;this.bridgeReport?this.appBridge.setExternalAbVersion(e):this.emit(WI.AbExternalVersion,"string"==typeof e&&e?gR(t=""+e).call(t):null,WI.Ab)},e.prototype.getVar=function(e,t,r){this.bridgeReport?this.appBridge.getVar(e,t,r):this.emit(WI.AbVar,{name:e,defaultValue:t,callback:r},WI.Ab)},e.prototype.getAllVars=function(e){this.bridgeReport?this.appBridge.getAllVars(e):this.emit(WI.AbAllVars,e,WI.Ab)},e.prototype.getABconfig=function(e,t){this.emit(WI.AbConfig,{params:e,callback:t},WI.Ab)},e.prototype.getAbSdkVersion=function(e){if(!this.bridgeReport||!e)return this.configManager.getAbVersion()||"";this.appBridge.getAbSdkVersion(e)},e.prototype.onAbSdkVersionChange=function(e){var t=this;return this.emit(WI.AbVersionChangeOn,e,WI.Ab),function(){t.emit(WI.AbVersionChangeOff,e,WI.Ab)}},e.prototype.offAbSdkVersionChange=function(e){this.emit(WI.AbVersionChangeOff,e,WI.Ab)},e.prototype.openOverlayer=function(){this.emit(WI.AbOpenLayer,"",WI.Ab)},e.prototype.closeOverlayer=function(){this.emit(WI.AbCloseLayer,"",WI.Ab)},e.prototype.initCrypto=function(){this.publicKey=this.initConfig.crypto_publicKey||"04BA9E229380DC0E41E10839B0C52A4763D3EDFE8903F3B8E81395523381E03AA995D295BD4A4088792E4785B224F7837EB4D2C7C05973C7AE8687A35ACAE470A0"},e.prototype.cryptoData=function(e){try{if(!this.initConfig.enable_encryption)return e;var t=void 0;if("sm"===this.initConfig.encryption_type){var r=(o=oT(e),a=this.publicKey,void 0===(s=1)&&(s=1),"04"+AO.doEncrypt(o,a,s)),n=xI(r);t=new Uint8Array(n)}else t="data="+(i=oT(e),window.btoa?window.btoa(encodeURIComponent(i)):encodeURIComponent(i));return t}catch(l){return e}var i,o,a,s},e.prototype.destoryInstace=function(){this.destroyInstance||(this.destroyInstance=!0,this.off(WI.TokenComplete))},e.plugins=[],e}(),IO=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;this.collect=e,this.config=t,this.duration=6e4,this.reportUrl=e.configManager.getDomain()+"/profile/list";var n=e.Types,i=e.adapters.fetch;this.eventCheck=new HI(e,t),this.fetch=i,this.cache={},this.collect.on(n.ProfileSet,(function(e){r.setProfile(e)})),this.collect.on(n.ProfileSetOnce,(function(e){r.setOnceProfile(e)})),this.collect.on(n.ProfileUnset,(function(e){r.unsetProfile(e)})),this.collect.on(n.ProfileIncrement,(function(e){r.incrementProfile(e)})),this.collect.on(n.ProfileAppend,(function(e){r.appendProfile(e)})),this.collect.on(n.ProfileClear,(function(){r.cache={}})),this.ready(n.Profile)},e.prototype.ready=function(e){var t=this;if(this.collect.set(e),this.collect.hook._hooksCache.hasOwnProperty(e)){var r=this.collect.hook._hooksCache[e];if(!Ow(r).length)return;var n=function(e){var n;r[e].length&&Bw(n=r[e]).call(n,(function(r){t.collect.hook.emit(e,r)}))};for(var i in r)n(i)}},e.prototype.report=function(e,t){void 0===t&&(t={});try{if(this.config.disable_track_event)return;var r=[];r.push(this.collect.processEvent(e,t));var n=this.collect.eventManager.merge(r,!0),i=this.collect.cryptoData(n),o=this.collect.configManager.getUrl("profile");this.fetch(o,i,1e5,!1,(function(){}),(function(){}),"","POST",this.config.enable_encryption,this.config.encryption_header),this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_EVENT,info:"埋点上报成功",time:Vw(),data:n,code:200,status:"success"})}catch(a){this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:a.message})}},e.prototype.setProfile=function(e){var t=this.formatParams(e);t&&Ow(t).length&&(this.pushCache(t),this.report("__profile_set",yI({},t,{profile:!0})))},e.prototype.setOnceProfile=function(e){var t=this.formatParams(e,!0);t&&Ow(t).length&&(this.pushCache(t),this.report("__profile_set_once",yI({},t,{profile:!0})))},e.prototype.incrementProfile=function(e){e?this.report("__profile_increment",yI({},e,{profile:!0})):console.warn("please check the params, must be object!!!")},e.prototype.unsetProfile=function(e){if(e){var t={};t[e]="1",this.report("__profile_unset",yI({},t,{profile:!0}))}else console.warn("please check the key, must be string!!!")},e.prototype.appendProfile=function(e){if(e){var t={};for(var r in e){var n;"string"==typeof e[r]||"Array"===nw(n=Object.prototype.toString.call(e[r])).call(n,8,-1)?t[r]=e[r]:console.warn("please check the value of param: "+r+", must be string or array !!!")}Ow(t).length&&this.report("__profile_append",yI({},t,{profile:!0}))}else console.warn("please check the params, must be object!!!")},e.prototype.pushCache=function(e){var t,r=this;Bw(t=Ow(e)).call(t,(function(t){r.cache[t]={val:r.clone(e[t]),timestamp:Vw()}}))},e.prototype.formatParams=function(e,t){var r=this;void 0===t&&(t=!1);try{var n;if(!e||"[object Object]"!==Object.prototype.toString.call(e))return void console.warn("please check the params type, must be object !!!");var i={};for(var o in e){var a;"string"==typeof e[o]||"number"==typeof e[o]||"Array"===nw(a=Object.prototype.toString.call(e[o])).call(a,8,-1)?i[o]=e[o]:console.warn("please check the value of params:"+o+", must be string,number,Array !!!")}var s=Ow(i);if(!s.length)return;var l=Vw();return CR(n=Mw(s).call(s,(function(n){var i=r.cache[n];return t?!i:!(i&&r.compare(i.val,e[n])&&l-i.timestamp<r.duration)}))).call(n,(function(e,t){return e[t]=i[t],e}),{})}catch(c){this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:c.message}),console.log("error")}},e.prototype.compare=function(e,t){try{return oT(e)===oT(t)}catch(r){return this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:r.message}),!1}},e.prototype.clone=function(e){try{return JSON.parse(oT(e))}catch(t){return this.collect.emit(UI.DEBUGGER_MESSAGE,{type:UI.DEBUGGER_MESSAGE_SDK,info:"发生了异常",level:"error",time:Vw(),data:t.message}),e}},e.prototype.unReady=function(){console.warn("sdk is not ready, please use this api after start")},e}(),xO=function(){function e(){var e=this;this.setInterval=function(){e.clearIntervalFunc=function(e,t){void 0===e&&(e=function(){}),void 0===t&&(t=1e3);var r,n=Vw()+t;return r=rw((function i(){var o=Vw()-n;e(),n+=t,r=rw(i,Math.max(0,t-o))}),t),function(){window.clearTimeout(r)}}((function(){e.isSessionhasEvent&&e.endCurrentSession()}),e.sessionInterval)},this.clearInterval=function(){e.clearIntervalFunc&&e.clearIntervalFunc()}}return e.prototype.apply=function(e,t){var r=this;if(this.collect=e,!t.disable_heartbeat){this.sessionInterval=6e4,this.startTime=0,this.lastTime=0,this.setInterval();var n=this.collect.Types;this.collect.on(n.SessionReset,(function(){r.process()}))}},e.prototype.endCurrentSession=function(){this.collect.event("_be_active",{start_time:this.startTime,end_time:this.lastTime,url:window.location.href,referrer:window.document.referrer,title:document.title||location.pathname}),this.isSessionhasEvent=!1,this.startTime=0},e.prototype.process=function(){this.isSessionhasEvent||(this.isSessionhasEvent=!0,this.startTime=+new Date);var e=this.lastTime||+new Date;this.lastTime=+new Date,this.lastTime-e>this.sessionInterval&&(this.clearInterval(),this.endCurrentSession(),this.setInterval())},e}(),OO=function(){function e(){}return e.prototype.apply=function(e,t){var r=this;if(this.collect=e,this.config=t,!this.config.channel_domain&&!this.config.disable_track_event&&!this.config.disable_sdk_monitor){var n=e.adapters.fetch;this.fetch=n,this.url=e.configManager.getUrl("event");var i=this.collect.Types;this.collect.on(i.Ready,(function(){r.sdkOnload()})),this.collect.on(i.SubmitError,(function(e){var t=e.type,n=e.eventData,i=e.errorCode;"f_data"===t&&r.sdkError(n,i)}))}},e.prototype.sdkOnload=function(){var e=this;try{var t=this.collect.configManager.get(),r=t.header,n=t.user,i=r.app_id,o=r.app_name,a=r.sdk_version,s=n.web_id,l={events:[{event:"onload",params:oT({app_id:i,app_name:o||"",sdk_version:a,sdk_type:"npm",sdk_config:this.config,sdk_desc:"TOB"}),local_time_ms:Vw()}],user:{user_unique_id:s},header:{}};rw((function(){e.fetch(e.url,[l],3e4,!1,(function(){}),(function(){}),"566f58151b0ed37e")}),16)}catch(c){}},e.prototype.sdkError=function(e,t){var r=this;try{var n=e[0],i=n.user,o=n.header,a=[];Bw(e).call(e,(function(e){var t;Bw(t=e.events).call(t,(function(e){a.push(e)}))}));var s={events:ER(a).call(a,(function(e){return{event:"on_error",params:oT({error_code:t,app_id:o.app_id,app_name:o.app_name||"",error_event:e.event,sdk_version:o.sdk_version,local_time_ms:e.local_time_ms,tea_event_index:Vw(),params:e.params,header:oT(o),user:oT(i)}),local_time_ms:Vw()}})),user:{user_unique_id:i.user_unique_id},header:{}};rw((function(){r.fetch(r.url,[s],3e4,!1,(function(){}),(function(){}),"566f58151b0ed37e")}),16)}catch(l){}},e}(),DO=function(){function e(){this.verifyReady=!1,this.cleanStatus=!1}return e.prototype.apply=function(e,t){var r=this;this.collector=e,this.config=t,this.eventStorage=[],this.collector.on("submit-verify-h5",(function(e){e&&e.length&&r.eventStore(e[0])})),this.checkUrl(),this.heartbeat()},e.prototype.checkUrl=function(){var e=window.location.href,t=PI(e);t._r_d_&&t._r_c_k_?(this.verifyReady=!0,this.domain=t._r_d_,this.key=t._r_c_k_,this.checkCache()):this.collector.off("submit-verify-h5")},e.prototype.checkCache=function(){this.eventStorage.length&&this.postVerify(this.eventStorage)},e.prototype.heartbeat=function(){var e=this;this.heart=MT((function(){var t={event:"simulator_test__",local_time_ms:Vw()},r=e.collector.configManager.get(),n=r.header,i={events:[t],user:r.user,header:n};e.eventStore(i)}),6e4)},e.prototype.eventStore=function(e){this.cleanStatus||(this.verifyReady?this.postVerify(e):this.eventStorage.push(e))},e.prototype.cleanVerify=function(){this.cleanStatus=!0,this.eventStorage=[],clearInterval(this.heart)},e.prototype.postVerify=function(e){var t=this;try{var r=JSON.parse(oT(e));Tk(e)?Bw(r).call(r,(function(e){t.fetchLog(e)})):this.fetchLog(r)}catch(n){console.log("web verify post error ~")}},e.prototype.fetchLog=function(e){nx(this.domain+"/simulator/h5/log?connection_key="+this.key,e,2e4,!1)},e.prototype.leave=function(){var e=this;document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e.cleanVerify()})),RI((function(){e.cleanVerify()}))},e}();PO.usePlugin(DO,"verifyH"),PO.usePlugin(IO,"profile"),PO.usePlugin(xO,"heartbeat"),PO.usePlugin(OO,"monitor");var MO,CO=new PO("default"),BO=new Uint8Array(16);function FO(){var e;if(!MO&&!(MO="undefined"!=typeof crypto&&crypto.getRandomValues&&gb(e=crypto.getRandomValues).call(e,crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return MO(BO)}for(var LO,UO=[],NO=0;NO<256;++NO){var jO;UO.push(nw(jO=(NO+256).toString(16)).call(jO,1))}var GO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&gb(LO=crypto.randomUUID).call(LO,crypto)};function VO(e,t,r){if(GO.randomUUID&&!t&&!e)return GO.randomUUID();var n=(e=e||{}).random||(e.rng||FO)();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 UO[e[t+0]]+UO[e[t+1]]+UO[e[t+2]]+UO[e[t+3]]+"-"+UO[e[t+4]]+UO[e[t+5]]+"-"+UO[e[t+6]]+UO[e[t+7]]+"-"+UO[e[t+8]]+UO[e[t+9]]+"-"+UO[e[t+10]]+UO[e[t+11]]+UO[e[t+12]]+UO[e[t+13]]+UO[e[t+14]]+UO[e[t+15]]}(n)}var qO=window.VePlayer.util,zO="veplayer_live_device_id",KO="veplayer_live_user_id",HO=function(e){return Math.floor((9*Math.random()+1)*Math.pow(10,e-1)).toString()},WO=function(e){var t=qO.getUrlObject(e);return t?null!=t&&t.searchParams.get("_session_id")?e:qO.appendSearchParams(e,{_session_id:XO()}):null!=e?e:""},XO=function(){return VO().replace(/-/g,"")+"."+Vw()+"."+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}(VO().replace(/-/g,""))},$O=function(e){jm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return gp(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_userId",void 0),gp(i_(n),"_deviceId",void 0),gp(i_(n),"_liveLogger",void 0),n}return bm(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(KO))||(r=HO(12),localStorage.setItem(KO,r),r)),this._deviceId=(null===(t=this.config)||void 0===t?void 0:t.deviceId)||((n=localStorage.getItem(zO))||(n=HO(11),localStorage.setItem(zO,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==CO?void 0:CO.getConfig("user_unique_id")}]))}},{key:"_createTea",value:function(){CO.init(yp(yp({},this.config),{},{app_id:468759,channel:"cn"})),CO.start(),CO.config({user_unique_id:this._userId,device_id:this._deviceId})}},{key:"_start",value:function(){this._createTea(),this._liveLogger=new QT({Tea:CO,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.1",flv_version:"3.0.19-rc.0",hls_version:"3.0.19-rc.0",rts_version:"0.2.1-alpha.8"}})}}],[{key:"pluginName",get:function(){return"logger"}},{key:"defaultConfig",get:function(){return{appId:"",enable:!0,showUserIdInErrorPanel:!0}}}]),r}(window.VePlayer.Plugin);function YO(e,t){return"number"!=typeof e?"-":t?t(e):e.toString()}var JO=window.VePlayer.util,ZO=window.VePlayer.Plugin,QO=window.VePlayer.XGUtil,eD=function(e){jm(r,e);var t=o_(r);function r(){var e,n;mm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return gp(i_(n=t.call.apply(t,f_(e=[this]).call(e,o))),"_pollTimer",void 0),gp(i_(n),"_visible",void 0),gp(i_(n),"_playPlugin",void 0),n}return bm(r,[{key:"_streamType",get:function(){return JO.getStreamType(this.player.config.url)}},{key:"afterCreate",value:function(){var e=this;this._playPlugin=this.player.plugins[this._streamType],this.player.on(Sw.ERROR,(function(){return e.close()})),this.config.visible&&this.player.once(Sw.LOADED_DATA,(function(){return e.open()}))}},{key:"open",value:function(){var e;this._visible||(tT(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(Sw.LOADED_DATA,(function(){return e.open()})),this.player.off(Sw.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=rw((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=yp(yp({},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:YO(e.fps,(function(e){return"".concat(e," fps")}))},{key:"bitrate",labelTextKey:"BITRATE",value:YO(e.bitrate,(function(e){return"".concat(e/1e3," kbps")}))},{key:"gop",labelTextKey:"GOP",value:YO(e.gop,(function(e){return"".concat(e," frames")}))},{key:"resolution",labelTextKey:"RESOLUTION",value:f_(r="".concat(YO(e.height)," * ")).call(r,YO(e.height))},{key:"encodeType",labelTextKey:"ENCODE_TYPE",value:null!==(n=e.encodeType)&&void 0!==n?n:"-"},{key:"bufferEnd",labelTextKey:"BUFFER_END",value:YO(e.bufferEnd)},{key:"currentTime",labelTextKey:"CURRENT_TIME",value:YO(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:YO(e.decodeFps,(function(e){return e+"frames/s"}))},{key:"decodeCost",labelTextKey:"DECODE_COST",value:YO(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="",Bw(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)}Bw(o).call(o,(function(t){var n=r._genRowDom(t);e.appendChild(n)}))}},{key:"_genTitleDom",value:function(e){var t=QO.createDom("xg-live-panel","",void 0,"veplayer-live-panel-row"),r=QO.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=QO.createDom("veplayer-live-panel-row","",void 0,"veplayer-live-panel-row"),n=QO.createDom("xg-live-panel",t.getText(e.labelTextKey),void 0,"veplayer-live-panel-row-label");r.appendChild(n);var i=QO.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}(ZO),tD=yp(yp({},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"}),rD=yp(yp({},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:"刷新"}),nD=["getDrmConfig"],iD=window.VePlayer.DynamicModule,oD=window.VePlayer.load,aD=function(){var e=ym(gm().mark((function e(t,r){var n,i,o,a,s,l,c,u,f,h,p;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ub(t.drm),!t.url||n!==cb.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=K_(a,nD),e.next=6,h_.all([oD(iD.PluginDrm).then((function(e){return e.DrmPlugin})).catch((function(){})),null==s?void 0:s({url:t.url})]);case 6:return c=e.sent,u=Zf(c,2),f=u[0],h=u[1],p=A_({},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)}}(),sD={"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]"},lD=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}(lD||{}),cD=function(){function e(t){var r=this;mm(this,e),gp(this,"modules",{}),gp(this,"mountPromiseMap",{}),gp(this,"_baseUrl",void 0),gp(this,"_moduleSystem",void 0),gp(this,"load",function(){var e=ym(gm().mark((function e(t,n){var i,o,a,s,l;return gm().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(sD[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,sD[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)}}()),gp(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)})),gp(this,"register",(function(e){return ER(e).call(e,(function(e){return r.registerPlugin(e.__PLUGIN_NAME__,e)}))})),this._baseUrl=t.baseUrl}return bm(e,[{key:"baseUrl",get:function(){return this._baseUrl}},{key:"moduleSystem",get:function(){return this._moduleSystem}},{key:"setModuleSystem",value:function(e){this._moduleSystem=e}},{key:"setBaseUrl",value:function(e){this._baseUrl=e}},{key:"_mount",value:function(e){var t=this.modules;return new h_((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}(),uD=r(cp),fD=r(Xf),hD=r(hp);function pD(e){return(pD="function"==typeof tk&&"symbol"==typeof uD?function(e){return typeof e}:function(e){return e&&"function"==typeof tk&&e.constructor===tk&&e!==tk.prototype?"symbol":typeof e})(e)}function dD(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),xw(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==fp(e)||null===e)return e;var r=e[hD];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===fp(o)?o:String(o)),n)}var i,o}function gD(e){return function(e){if(Tk(e))return vD(e)}(e)||function(e){if(void 0!==tk&&null!=rk(e)||null!=e["@@iterator"])return fD(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return vD(e,t);var n=nw(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return fD(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vD(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 vD(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 yD=ra.some;Pr({target:"Array",proto:!0,forced:!Sh("some")},{some:function(e){return yD(this,e,arguments.length>1?arguments[1]:void 0)}});var mD=ju("Array").some,_D=se,bD=mD,wD=Array.prototype,ED=r((function(e){var t=e.some;return e===wD||_D(wD,e)&&t===wD.some?bD:t})),SD=Fr,TD=$n,kD=X,RD=RangeError,AD=v,PD=Nr,ID=$n,xD=X,OD=AD((function(e){var t=TD(kD(this)),r="",n=SD(e);if(n<0||n==1/0)throw RD("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),DD=AD("".slice),MD=Math.ceil,CD=function(e){return function(t,r,n){var i,o,a=ID(xD(t)),s=PD(r),l=a.length,c=void 0===n?" ":ID(n);return s<=l||""==c?a:((o=OD(c,MD((i=s-l)/c.length))).length>i&&(o=DD(o,0,i)),e?a+o:o+a)}},BD={start:CD(!1),end:CD(!0)},FD=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(le),LD=BD.start;Pr({target:"String",proto:!0,forced:FD},{padStart:function(e){return LD(this,e,arguments.length>1?arguments[1]:void 0)}});var UD=ju("String").padStart,ND=se,jD=UD,GD=String.prototype,VD=r((function(e){var t=e.padStart;return"string"==typeof e||e===GD||ND(GD,e)&&t===GD.padStart?jD:t})),qD=ra.every;Pr({target:"Array",proto:!0,forced:!Sh("every")},{every:function(e){return qD(this,e,arguments.length>1?arguments[1]:void 0)}});var zD=ju("Array").every,KD=se,HD=zD,WD=Array.prototype,XD=r((function(e){var t=e.every;return e===WD||KD(WD,e)&&t===WD.every?HD:t})),$D=le.match(/firefox\/(\d+)/i),YD=!!$D&&+$D[1],JD=/MSIE|Trident/.test(le),ZD=le.match(/AppleWebKit\/(\d+)\./),QD=!!ZD&&+ZD[1],eM=Pr,tM=v,rM=Oe,nM=$e,iM=Gr,oM=ok,aM=$n,sM=o,lM=Qw,cM=Sh,uM=YD,fM=JD,hM=ge,pM=QD,dM=[],gM=tM(dM.sort),vM=tM(dM.push),yM=sM((function(){dM.sort(void 0)})),mM=sM((function(){dM.sort(null)})),_M=cM("sort"),bM=!sM((function(){if(hM)return hM<70;if(!(uM&&uM>3)){if(fM)return!0;if(pM)return pM<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++)dM.push({k:t+n,v:r})}for(dM.sort((function(e,t){return t.v-e.v})),n=0;n<dM.length;n++)t=dM[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));eM({target:"Array",proto:!0,forced:yM||!mM||!_M||!bM},{sort:function(e){void 0!==e&&rM(e);var t=nM(this);if(bM)return void 0===e?gM(t):gM(t,e);var r,n,i=[],o=iM(t);for(n=0;n<o;n++)n in t&&vM(i,t[n]);for(lM(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:aM(t)>aM(r)?1:-1}}(e)),r=iM(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)oM(t,n++);return t}});var wM,EM=ju("Array").sort,SM=se,TM=EM,kM=Array.prototype,RM=r((function(e){var t=e.sort;return e===kM||SM(kM,e)&&t===kM.sort?TM:t})),AM="undefined"!=typeof window&&window.location&&Uw(wM=window.location.href).call(wM,"xgplayerdebugger=1")>-1,PM="color: #525252; background-color: #90ee90;",IM="color: #525252; background-color: red;",xM="color: #525252; background-color: yellow; ",OM="%c[xgplayer]",DM={config:{debug:AM?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,f_(t=[OM,PM,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,f_(t=[OM,xM,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,f_(t=[OM,IM,e]).call(t,o))}}},MM=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}}])&&dD(t.prototype,r),n&&dD(t,n),xw(t,"prototype",{writable:!1}),e}(),CM={};CM.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,Bw(e=Ow(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},CM.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&&CM.addClass(i,r),t)Bw(o=Ow(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return DM.logError("util.createDomFromHtml",a),null}},CM.hasClass=function(e,t){if(!e||!t)return!1;try{return ED(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===pD(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},CM.addClass=function(e,t){if(e&&t)try{var r;Bw(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){CM.hasClass(e,t)||(e.className&&"object"===pD(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},CM.removeClass=function(e,t){if(e&&t)try{var r;Bw(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(CM.hasClass(e,t))Bw(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===pD(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},CM.toggleClass=function(e,t){var r;e&&Bw(r=t.split(/\s+/g)).call(r,(function(t){CM.hasClass(e,t)?CM.removeClass(e,t):CM.addClass(e,t)}))},CM.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===CM.typeOf(e[r]))t.push(e[r]);else if("Object"===CM.typeOf(e[r])){var n;ER(n=Ow(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},CM.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(n){DM.logError("util.findDom",n),0===Uw(r).call(r,"#")&&(e=t.getElementById(nw(r).call(r,1)))}return e},CM.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},CM.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},CM.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=VD(CM).call(CM,Math.floor(e/3600),2,0),r=VD(CM).call(CM,Math.floor((e-3600*t)/60),2,0),n=VD(CM).call(CM,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},CM.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},CM.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},CM.deepCopy=function(e,t){var r;if("Object"===CM.typeOf(t)&&"Object"===CM.typeOf(e))return Bw(r=Ow(t)).call(r,(function(r){if("Object"!==CM.typeOf(t[r])||t[r]instanceof Node)if("Array"===CM.typeOf(t[r])){var n;e[r]="Array"===CM.typeOf(e[r])?f_(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:CM.deepCopy(e[r],t[r])})),e},CM.deepMerge=function(e,t){var r;return ER(r=Ow(t)).call(r,(function(r){var n;"Array"===CM.typeOf(t[r])&&"Array"===CM.typeOf(e[r])?"Array"===CM.typeOf(e[r])&&(n=e[r]).push.apply(n,gD(t[r])):CM.typeOf(e[r])!==CM.typeOf(t[r])||null===e[r]||"Object"!==CM.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):CM.deepMerge(e[r],t[r])})),e},CM.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},CM.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Bw(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},CM.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=MT(gb(r).call(r,e),n))},CM.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},CM.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=rw((function(){t(),CM.clearTimeout(e,n)}),r);return e._timers.push(n),n},CM.clearTimeout=function(e,t){var r=e._timers;if("Array"===CM.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){Sk(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},CM.clearAllTimers=function(e){var t=e._timers;"Array"===CM.typeOf(t)&&(ER(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},CM.createImgBtn=function(e,t,r,n){var i,o,a,s,l,c,u,f,h,p,d,g,v=CM.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(v.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(XD(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(Uw(r).call(r,e)>-1&&Uw(n).call(n,e)>-1)||(u=aR(gR(t=nw(r).call(r,0,Uw(r).call(r,e))).call(t)),f=aR(gR(i=nw(n).call(n,0,Uw(n).call(n,e))).call(i)),h=e,!1)})),v.style.width=f_(o="".concat(u)).call(o,h),v.style.height=f_(a="".concat(f)).call(a,h),v.style.backgroundSize=f_(s=f_(l=f_(c="".concat(u)).call(c,h," ")).call(l,f)).call(s,h),v.style.margin="start"===e?f_(p=f_(d=f_(g="-".concat(f/2)).call(g,h," auto auto -")).call(d,u/2)).call(p,h):"auto 5px auto 5px");return v},CM.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(Ub(e,16))})),f_(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},CM.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},CM.checkIsFunction=function(e){return e&&"function"==typeof e},CM.checkIsObject=function(e){return null!==e&&"object"===pD(e)},CM.hide=function(e){e.style.display="none"},CM.show=function(e,t){e.style.display=t||"block"},CM.isUndefined=function(e){if(null==e)return!0},CM.isNotNull=function(e){return!(null==e)},CM.setStyleFromCsstext=function(e,t){if(t)if("String"===CM.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");ER(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;ER(n=Ow(t)).call(n,(function(r){e.style[r]=t[r]}))}},CM.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 ER(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(Uw(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",""),ER(t=Ow(a)).call(t,(function(t){e.style[t]=a[t]})),o},CM.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return ER(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},CM.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}},CM.stopPropagation=function(e){e&&e.stopPropagation()},CM.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},CM.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},CM.checkTouchSupport=function(){return"ontouchstart"in window},CM.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)});RM(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 MM(i)},CM.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}},CM.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},CM.getHostFromUrl=function(e){if("String"!==CM.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},CM.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},CM.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},CM.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},CM.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Ub(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Ub(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)}))},CM.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},CM.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},CM.createPositionBar=function(e,t){var r=CM.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},CM.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:f_(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Ow(n);return Bw(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=f_(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},CM.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},CM.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},CM.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:CM.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},CM.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 BM,FM=/(Android)\s([\d.]+)/,LM=/(Version)\/([\d.]+)/,UM=["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"],NM={get device(){return NM.os.isPc?"pc":"mobile"},get browser(){var e,t;if("undefined"==typeof navigator)return"";var r=navigator.userAgent.toLowerCase(),n={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return f_(e=[]).call(e,Mw(t=Ow(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)?LM:FM)?t.exec(e):[];if(r&&r.length>=3){var n=r[2].split(".");return n.length>0?Ub(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&&ER(UM).call(UM,(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(JF){return this._logger.error(e,JF),!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 h_.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 h_.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(a){return h_.resolve(t)}}},jM=v,GM=2147483647,VM=/[^\0-\u007E]/,qM=/[.\u3002\uFF0E\uFF61]/g,zM="Overflow: input needs wider integers to process",KM=RangeError,HM=jM(qM.exec),WM=Math.floor,XM=String.fromCharCode,$M=jM("".charCodeAt),YM=jM([].join),JM=jM([].push),ZM=jM("".replace),QM=jM("".split),eC=jM("".toLowerCase),tC=function(e){return e+22+75*(e<26)},rC=function(e,t,r){var n=0;for(e=r?WM(e/700):e>>1,e+=WM(e/t);e>455;)e=WM(e/35),n+=36;return WM(n+36*e/(e+38))},nC=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=$M(e,r++);if(i>=55296&&i<=56319&&r<n){var o=$M(e,r++);56320==(64512&o)?JM(t,((1023&i)<<10)+(1023&o)+65536):(JM(t,i),r--)}else JM(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&&JM(t,XM(n));var l=t.length,c=l;for(l&&JM(t,"-");c<i;){var u=GM;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<u&&(u=n);var f=c+1;if(u-o>WM((GM-a)/f))throw KM(zM);for(a+=(u-o)*f,o=u,r=0;r<e.length;r++){if((n=e[r])<o&&++a>GM)throw KM(zM);if(n==o){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,v=36-d;JM(t,XM(tC(d+g%v))),h=WM(g/v),p+=36}JM(t,XM(tC(h))),s=rC(a,f,c==l),a=0,c++}}a++,o++}return YM(t,"")},iC=Pr,oC=I,aC=Kw,sC=i,lC=Yt,cC=v,uC=oo,fC=so,hC=Md,pC=Ze,dC=k_,gC=Gf,vC=Ji,yC=pu.codeAt,mC=function(e){var t,r,n=[],i=QM(ZM(eC(e),qM,"."),".");for(t=0;t<i.length;t++)r=i[t],JM(n,HM(VM,r)?"xn--"+nC(r):r);return YM(n,".")},_C=$n,bC=Do,wC=zd,EC=dS,SC=Xo,TC=SC.set,kC=SC.getterFor("URL"),RC=EC.URLSearchParams,AC=EC.getState,PC=sC.URL,IC=sC.TypeError,xC=sC.parseInt,OC=Math.floor,DC=Math.pow,MC=cC("".charAt),CC=cC(/./.exec),BC=cC([].join),FC=cC(1..toString),LC=cC([].pop),UC=cC([].push),NC=cC("".replace),jC=cC([].shift),GC=cC("".split),VC=cC("".slice),qC=cC("".toLowerCase),zC=cC([].unshift),KC="Invalid scheme",HC="Invalid host",WC="Invalid port",XC=/[a-z]/i,$C=/[\d+-.a-z]/i,YC=/\d/,JC=/^0x/i,ZC=/^[0-7]+$/,QC=/^\d+$/,eB=/^[\da-f]+$/i,tB=/[\0\t\n\r #%/:<>?@[\\\]^|]/,rB=/[\0\t\n\r #/:<>?@[\\\]^|]/,nB=/^[\u0000-\u0020]+/,iB=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,oB=/[\t\n\r]/g,aB=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)zC(t,e%256),e=OC(e/256);return BC(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+=FC(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},sB={},lB=dC({},sB,{" ":1,'"':1,"<":1,">":1,"`":1}),cB=dC({},lB,{"#":1,"?":1,"{":1,"}":1}),uB=dC({},cB,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fB=function(e,t){var r=yC(e,0);return r>32&&r<127&&!pC(t,e)?e:encodeURIComponent(e)},hB={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pB=function(e,t){var r;return 2==e.length&&CC(XC,MC(e,0))&&(":"==(r=MC(e,1))||!t&&"|"==r)},dB=function(e){var t;return e.length>1&&pB(VC(e,0,2))&&(2==e.length||"/"===(t=MC(e,2))||"\\"===t||"?"===t||"#"===t)},gB=function(e){return"."===e||"%2e"===qC(e)},vB={},yB={},mB={},_B={},bB={},wB={},EB={},SB={},TB={},kB={},RB={},AB={},PB={},IB={},xB={},OB={},DB={},MB={},CB={},BB={},FB={},LB=function(e,t,r){var n,i,o,a=_C(e);if(t){if(i=this.parse(a))throw IC(i);this.searchParams=null}else{if(void 0!==r&&(n=new LB(r,!0)),i=this.parse(a,null,n))throw IC(i);(o=AC(new RC)).bindURL(this),this.searchParams=o}};LB.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,l=this,c=t||vB,u=0,f="",h=!1,p=!1,d=!1;for(e=_C(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=NC(e,nB,""),e=NC(e,iB,"$1")),e=NC(e,oB,""),n=gC(e);u<=n.length;){switch(i=n[u],c){case vB:if(!i||!CC(XC,i)){if(t)return KC;c=mB;continue}f+=qC(i),c=yB;break;case yB:if(i&&(CC($C,i)||"+"==i||"-"==i||"."==i))f+=qC(i);else{if(":"!=i){if(t)return KC;f="",c=mB,u=0;continue}if(t&&(l.isSpecial()!=pC(hB,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&hB[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=IB:l.isSpecial()&&r&&r.scheme==l.scheme?c=_B:l.isSpecial()?c=SB:"/"==n[u+1]?(c=bB,u++):(l.cannotBeABaseURL=!0,UC(l.path,""),c=CB)}break;case mB:if(!r||r.cannotBeABaseURL&&"#"!=i)return KC;if(r.cannotBeABaseURL&&"#"==i){l.scheme=r.scheme,l.path=vC(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=FB;break}c="file"==r.scheme?IB:wB;continue;case _B:if("/"!=i||"/"!=n[u+1]){c=wB;continue}c=TB,u++;break;case bB:if("/"==i){c=kB;break}c=MB;continue;case wB:if(l.scheme=r.scheme,i==BM)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=vC(r.path),l.query=r.query;else if("/"==i||"\\"==i&&l.isSpecial())c=EB;else if("?"==i)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=vC(r.path),l.query="",c=BB;else{if("#"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=vC(r.path),l.path.length--,c=MB;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=vC(r.path),l.query=r.query,l.fragment="",c=FB}break;case EB:if(!l.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=MB;continue}c=kB}else c=TB;break;case SB:if(c=TB,"/"!=i||"/"!=MC(f,u+1))continue;u++;break;case TB:if("/"!=i&&"\\"!=i){c=kB;continue}break;case kB:if("@"==i){h&&(f="%40"+f),h=!0,o=gC(f);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||d){var y=fB(v,uB);d?l.password+=y:l.username+=y}else d=!0}f=""}else if(i==BM||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(h&&""==f)return"Invalid authority";u-=gC(f).length+1,f="",c=RB}else f+=i;break;case RB:case AB:if(t&&"file"==l.scheme){c=OB;continue}if(":"!=i||p){if(i==BM||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()){if(l.isSpecial()&&""==f)return HC;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=DB,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return HC;if(a=l.parseHost(f))return a;if(f="",c=PB,t==AB)return}break;case PB:if(!CC(YC,i)){if(i==BM||"/"==i||"?"==i||"#"==i||"\\"==i&&l.isSpecial()||t){if(""!=f){var m=xC(f,10);if(m>65535)return WC;l.port=l.isSpecial()&&m===hB[l.scheme]?null:m,f=""}if(t)return;c=DB;continue}return WC}f+=i;break;case IB:if(l.scheme="file","/"==i||"\\"==i)c=xB;else{if(!r||"file"!=r.scheme){c=MB;continue}if(i==BM)l.host=r.host,l.path=vC(r.path),l.query=r.query;else if("?"==i)l.host=r.host,l.path=vC(r.path),l.query="",c=BB;else{if("#"!=i){dB(BC(vC(n,u),""))||(l.host=r.host,l.path=vC(r.path),l.shortenPath()),c=MB;continue}l.host=r.host,l.path=vC(r.path),l.query=r.query,l.fragment="",c=FB}}break;case xB:if("/"==i||"\\"==i){c=OB;break}r&&"file"==r.scheme&&!dB(BC(vC(n,u),""))&&(pB(r.path[0],!0)?UC(l.path,r.path[0]):l.host=r.host),c=MB;continue;case OB:if(i==BM||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pB(f))c=MB;else if(""==f){if(l.host="",t)return;c=DB}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=DB}continue}f+=i;break;case DB:if(l.isSpecial()){if(c=MB,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=BM&&(c=MB,"/"!=i))continue}else l.fragment="",c=FB;else l.query="",c=BB;break;case MB:if(i==BM||"/"==i||"\\"==i&&l.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=qC(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==i||"\\"==i&&l.isSpecial()||UC(l.path,"")):gB(f)?"/"==i||"\\"==i&&l.isSpecial()||UC(l.path,""):("file"==l.scheme&&!l.path.length&&pB(f)&&(l.host&&(l.host=""),f=MC(f,0)+":"),UC(l.path,f)),f="","file"==l.scheme&&(i==BM||"?"==i||"#"==i))for(;l.path.length>1&&""===l.path[0];)jC(l.path);"?"==i?(l.query="",c=BB):"#"==i&&(l.fragment="",c=FB)}else f+=fB(i,cB);break;case CB:"?"==i?(l.query="",c=BB):"#"==i?(l.fragment="",c=FB):i!=BM&&(l.path[0]+=fB(i,sB));break;case BB:t||"#"!=i?i!=BM&&("'"==i&&l.isSpecial()?l.query+="%27":l.query+="#"==i?"%23":fB(i,sB)):(l.fragment="",c=FB);break;case FB:i!=BM&&(l.fragment+=fB(i,lB))}u++}},parseHost:function(e){var t,r,n;if("["==MC(e,0)){if("]"!=MC(e,e.length-1))return HC;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,h=function(){return MC(e,f)};if(":"==h()){if(":"!=MC(e,1))return;f+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&CC(eB,h());)t=16*t+xC(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!CC(YC,h()))return;for(;CC(YC,h());){if(o=xC(h(),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(":"==h()){if(f++,!h())return}else if(h())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}(VC(e,1,-1)),!t)return HC;this.host=t}else if(this.isSpecial()){if(e=mC(e),CC(tB,e))return HC;if(t=function(e){var t,r,n,i,o,a,s,l=GC(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"==MC(i,0)&&(o=CC(JC,i)?16:8,i=VC(i,8==o?1:2)),""===i)a=0;else{if(!CC(10==o?QC:8==o?ZC:eB,i))return e;a=xC(i,o)}UC(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=DC(256,5-t))return null}else if(a>255)return null;for(s=LC(r),n=0;n<r.length;n++)s+=r[n]*DC(256,3-n);return s}(e),null===t)return HC;this.host=t}else{if(CC(rB,e))return HC;for(t="",r=gC(e),n=0;n<r.length;n++)t+=fB(r[n],sB);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return pC(hB,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pB(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+=aB(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+BC(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw IC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new UB(e.path[0]).origin}catch(JF){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+aB(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(_C(e)+":",vB)},getUsername:function(){return this.username},setUsername:function(e){var t=gC(_C(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=fB(t[r],uB)}},getPassword:function(){return this.password},setPassword:function(e){var t=gC(_C(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=fB(t[r],uB)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?aB(e):aB(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,RB)},getHostname:function(){var e=this.host;return null===e?"":aB(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,AB)},getPort:function(){var e=this.port;return null===e?"":_C(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=_C(e))?this.port=null:this.parse(e,PB))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+BC(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,DB))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=_C(e))?this.query=null:("?"==MC(e,0)&&(e=VC(e,1)),this.query="",this.parse(e,BB)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=_C(e))?("#"==MC(e,0)&&(e=VC(e,1)),this.fragment="",this.parse(e,FB)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var UB=function(e){var t=hC(this,NB),r=wC(arguments.length,1)>1?arguments[1]:void 0,n=TC(t,new LB(e,!1,r));oC||(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())},NB=UB.prototype,jB=function(e,t){return{get:function(){return kC(this)[e]()},set:t&&function(e){return kC(this)[t](e)},configurable:!0,enumerable:!0}};if(oC&&(fC(NB,"href",jB("serialize","setHref")),fC(NB,"origin",jB("getOrigin")),fC(NB,"protocol",jB("getProtocol","setProtocol")),fC(NB,"username",jB("getUsername","setUsername")),fC(NB,"password",jB("getPassword","setPassword")),fC(NB,"host",jB("getHost","setHost")),fC(NB,"hostname",jB("getHostname","setHostname")),fC(NB,"port",jB("getPort","setPort")),fC(NB,"pathname",jB("getPathname","setPathname")),fC(NB,"search",jB("getSearch","setSearch")),fC(NB,"searchParams",jB("getSearchParams")),fC(NB,"hash",jB("getHash","setHash"))),uC(NB,"toJSON",(function(){return kC(this).serialize()}),{enumerable:!0}),uC(NB,"toString",(function(){return kC(this).serialize()}),{enumerable:!0}),PC){var GB=PC.createObjectURL,VB=PC.revokeObjectURL;GB&&uC(UB,"createObjectURL",lC(GB,PC)),VB&&uC(UB,"revokeObjectURL",lC(VB,PC))}bC(UB,"URL"),iC({global:!0,constructor:!0,forced:!aC,sham:!oC},{URL:UB});var qB=Pr,zB=o,KB=zd,HB=$n,WB=Kw,XB=ae("URL");qB({target:"URL",stat:!0,forced:!(WB&&zB((function(){XB.canParse()})))},{canParse:function(e){var t=KB(arguments.length,1),r=HB(e),n=t<2||void 0===arguments[1]?void 0:HB(arguments[1]);try{return!!new XB(r,n)}catch(JF){return!1}}});var $B,YB,JB=r(te.URL);function ZB(e,t,r){var n;n_()?ZB=Um(n=t_).call(n):ZB=function(e,t,r){var n=[null];Ku(n).apply(n,t);var i=new(Um(Function).apply(e,n));return r&&Nm(i,r.prototype),i};return ZB.apply(null,arguments)}function QB(e){var t="function"==typeof gI?new gI:void 0;return QB=function(e){if(null===e||(r=e,-1===z_(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 ZB(e,arguments,r_(this).constructor)}return i.prototype=bp(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Nm(i,e)},QB(e)}var eF=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}(eF||{}),tF=(gp($B={},2100,{messageTextKey:"NETWORK",level:"Error"}),gp($B,2101,{messageTextKey:"NETWORK_TIMEOUT",level:"Error"}),gp($B,2103,{messageTextKey:"NETWORK_FORBIDDEN",level:"Error"}),gp($B,2104,{messageTextKey:"NETWORK_NOTFOUND",level:"Error"}),gp($B,5101,{messageTextKey:"MEDIA_ERR_ABORTED",level:"Error"}),gp($B,5102,{messageTextKey:"MEDIA_ERR_NETWORK",level:"Error"}),gp($B,5103,{messageTextKey:"MEDIA_ERR_DECODE",level:"Error"}),gp($B,5104,{messageTextKey:"MEDIA_ERR_SRC_NOT_SUPPORTED",level:"Error"}),gp($B,5105,{messageTextKey:"MEDIA_ERR_CODEC_NOT_SUPPORTED",level:"Error"}),gp($B,5106,{messageTextKey:"MEDIA_ERR_URL_EMPTY",level:"Error"}),gp($B,110,{messageTextKey:"MODULE_LOAD_ERROR",level:"Fatal"}),gp($B,7100,{messageTextKey:"DRM_LICENSE",level:"Fatal"}),$B);gp(YB={},"manifest",{messageTextKey:"MANIFEST",level:"Error"}),gp(YB,"network",{messageTextKey:"NETWORK",level:"Error"}),gp(YB,"demux",{messageTextKey:"DEMUX",level:"Error"}),gp(YB,"remux",{messageTextKey:"REMUX",level:"Error"}),gp(YB,"media",{messageTextKey:"MEDIA",level:"Error"}),gp(YB,"drm",{messageTextKey:"DRM",level:"Error"}),gp(YB,"other",{messageTextKey:"OTHER",level:"Error"}),gp(YB,"runtime",{messageTextKey:"RUNTIME",level:"Error"});var rF,nF,iF=function(e){jm(r,e);var t=o_(r);function r(e,n){var i,o,a,s,l,c,u;mm(this,r);var f="string"==typeof e?{message:e}:e,h=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 gp(i_(u=t.call(this,h)),"errorCode",void 0),gp(i_(u),"level",void 0),gp(i_(u),"ext",void 0),u.errorCode=null!==(l=null==f?void 0:f.errorCode)&&void 0!==l?l:"UNKNOWN",u.level=null!==(c=null==f?void 0:f.level)&&void 0!==c?c:"Error",u.ext=null==f?void 0:f.ext,u}return bm(r)}(QB(Error));function oF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new iF(yp(yp({errorCode:e},tF[e]),t),r)}var aF=null!==(rF=null===(nF=document.currentScript)||void 0===nF?void 0:nF.src)&&void 0!==rF?rF:"https://tosv.byted.org/obj/lux/sdk/@byted/veplayer/".concat("2.3.1-rc.1","/object/umd/"),sF=new cD({baseUrl:nw(aF).call(aF,0,bT(aF).call(aF,"/"))});function lF(e,t){return cF.apply(this,arguments)}function cF(){return(cF=ym(gm().mark((function e(t,r){var n;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,sF.load(t,r);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),oF(eF.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)}sF.registerPlugin,sF.register;var uF=function(e){return e.H265="h265",e.H264="h264",e}(uF||{}),fF=function(e){if(e){US(e).call(e,"//")&&(e=location.protocol+e);try{return new JB(e)}catch(JF){return}}};function hF(e){return function(t){var r;return null==t?void 0:tT(r=t.split("?")[0].toLowerCase()).call(r,e)}}var pF=hF(".m3u8"),dF=hF(".mp4"),gF=hF(".flv"),vF=hF(".sdp"),yF=hF(".mpd");function mF(e){return pF(e)?"hls":gF(e)?"flv":vF(e)?"rtm":dF(e)?"mp4":yF(e)?"dash":"unknown"}function _F(){return(_F=ym(gm().mark((function e(){var t,r;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lF(lD.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)}yp(yp({},CM),{},{getStreamType:mF,isMseSupported:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:uF.H264)===uF.H265?NM.isHevcSupported():NM.isMSESupport()},isSoftDecodeSupported:function(){return _F.apply(this,arguments)},appendSearchParams:function(e,t){var r,n=fF(e);if(!e||!n)return null!==(r=e)&&void 0!==r?r:"";var i,o=US(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:fF});var bF,wF=window.VePlayer.DynamicModule,EF=window.VePlayer.load,SF=function(){var e=ym(gm().mark((function e(t){var r,n,i,o,a,s;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("rtm"!==(o=t.url&&mF(t.url))){e.next=3;break}return e.abrupt("return",{});case 3:if(a="flv"===o?null==t||null===(r=t.flv)||void 0===r?void 0:r.abr:null==t||null===(n=t.hls)||void 0===n?void 0:n.abr){e.next=6;break}return e.abrupt("return",{});case 6:return e.next=8,EF(wF.PluginAbr).catch((function(){}));case 8:return s=e.sent,e.abrupt("return",{options:gp({},"flv"===o?"abr":"hlsabr",yp(yp({},a),{},{open:null===(i=a.enable)||void 0===i||i})),plugins:["flv"===o?null==s?void 0:s.AbrPlugin:null==s?void 0:s.HlsAbrPlugin]});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),TF=window.VePlayer.DEFAULT_PLUGINS,kF=window.VePlayer.VePlayerBase,RF=window.VePlayer.VeI18n;RF.extend([{LANG:"zh-cn",TEXT:rD},{LANG:"en",TEXT:tD}]);var AF={autoplay:{muted:!0}},PF=f_(bF=[]).call(bF,a_(TF),[Iw,$O,eD]),IF=function(e){return e.H264="h264",e}(IF||{}),xF=function(e){jm(n,e);var t,r=o_(n);function n(e){return mm(this,n),r.call(this,e)}return bm(n,[{key:"playTime",get:function(){var e;if(null===(e=this._player)||void 0===e||null===(e=e.played)||void 0===e||!e.length)return 0;for(var t=this._player.played.length,r=0,n=0;n<t;n++){var i,o,a=null===(i=this._player)||void 0===i?void 0:i.played.start(n);r+=(null===(o=this._player)||void 0===o?void 0:o.played.end(n))-a}return r}},{key:"openLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.open()}},{key:"closeLog",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.logger.close()}},{key:"openInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.open()}},{key:"closeInfoPanel",value:function(){var e;null===(e=this._player.plugins)||void 0===e||e.infopanel.close()}},{key:"openAbr",value:function(){var e,t,r=this.url&&mF(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!0)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!0)}},{key:"closeAbr",value:function(){var e,t,r=this.url&&mF(this.url);"flv"!==r?"hls"===r&&(null===(e=this._player.plugins)||void 0===e||null===(e=e.hlsabr)||void 0===e||e.switchAbr(!1)):null===(t=this._player.plugins)||void 0===t||null===(t=t.abr)||void 0===t||t.switchAbr(!1)}},{key:"updateDrmConfig",value:function(e){var t;null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.drm)||void 0===t||t.updateDrmConfig(e)}},{key:"switchAbr",value:function(e){var t;if(null!==(t=this._player.plugins)&&void 0!==t&&t.abr){if(void 0!==(null==e?void 0:e.bitrate)){var r=this._player.plugins.abr.config.urls[e.bitrate];if(!r)return;this.switch(r,{seamless:!0}),this._player.plugins.abr.bitrate=e.bitrate}var n;if(void 0!==(null==e?void 0:e.enable))null===(n=this._player.plugins)||void 0===n||n.abr.switchAbr(e.enable)}}},{key:"getRTMNetWorkInfo",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.rts)||void 0===e?void 0:e.getNetWorkInfo()}},{key:"getRTMStats",value:(t=ym(gm().mark((function e(){var t;return gm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null===(t=this._player)||void 0===t||null===(t=t.plugins)||void 0===t||null===(t=t.rts)||void 0===t?void 0:t.getStatsSnapshoot());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getFLVStats",value:function(){var e;return null===(e=this._player)||void 0===e||null===(e=e.plugins)||void 0===e||null===(e=e.flv)||void 0===e?void 0:e.getStats()}}]),n}(kF);function OF(e){return DF.apply(this,arguments)}function DF(){return DF=ym(gm().mark((function e(t){var r,n,i,o,a,s,l;return gm().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 M_(O_.INVALID_PARAMETER,new RF);case 3:return o=new RF({lang:null==t?void 0:t.lang,i18n:null==t?void 0:t.i18n}),a=yp(yp({},t),{},{plugins:f_(r=[]).call(r,a_(PF),a_(null!==(n=t.plugins)&&void 0!==n?n:[]))}),e.next=7,kF.create(yp(yp(yp({},AF),a),{},{isLive:!0,i18nManager:o,preProcessUrl:function(e){return{url:WO(e)}},preparePlugins:function(e){return ym(gm().mark((function t(){var r,n,o,s,l,c,u,f,h,p,d,g,v,y,m;return gm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h_.all([db(yp(yp({},a),{},{url:e}),i),aD(yp(yp({},a),{},{url:e}),i),SF(yp(yp({},a),{},{url:e}))]);case 2:return n=t.sent,o=Zf(n,3),s=o[0],l=o[1],c=o[2],f=(u=null!=s?s:{}).options,h=u.plugins,d=(p=null!=l?l:{}).options,g=p.plugins,y=(v=null!=c?c:{}).options,m=v.plugins,t.abrupt("return",{options:A_({},f,d,y),plugins:f_(r=[]).call(r,a_(null!=h?h:[]),a_(null!=g?g:[]),a_(null!=m?m:[]))});case 11:case"end":return t.stop()}}),t)})))()}}),xF);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)}))),DF.apply(this,arguments)}var MF=Object.freeze({__proto__:null,ErrorCode:O_,Events:Sw}),CF=window.VePlayer.setModuleSystem,BF=window.VePlayer.Codec,FF=window.VePlayer.DecodeType,LF=window.VePlayer.Degradation,UF=window.VePlayer.POSITIONS,NF=window.VePlayer.register,jF=window.VePlayer.registerPlugin,GF=window.VePlayer.EN,VF=window.VePlayer.ZH_CN,qF=window.VePlayer.Plugin,zF=window.VePlayer.Sniffer,KF=window.VePlayer.DynamicModule,HF=window.VePlayer.util,WF=window.VePlayer.load,XF=window.VePlayer.ListType;CF("umd");var $F=HF.isMseSupported,YF=HF.isSoftDecodeSupported;void 0!==VePlayer.registerPlugin?VePlayer.registerPlugin(KF.BizLive,{createLivePlayer:OF}):jF(KF.BizLive,{createLivePlayer:OF}),e.Codec=BF,e.DecodeType=FF,e.Degradation=LF,e.DynamicModule=KF,e.EN=GF,e.ListType=XF,e.POSITIONS=UF,e.Plugin=qF,e.RTMCodec=IF,e.Sniffer=zF,e.ZH_CN=VF,e.createLivePlayer=OF,e.isMseSupported=$F,e.isRTMSupportCodec=Y_,e.isRTMSupported=X_,e.isSoftDecodeSupported=YF,e.live=MF,e.load=WF,e.register=NF,e.registerPlugin=jF,e.util=HF}));