UNPKG

@do4mother/vue-plyr

Version:

A vue component for the plyr video & audio player.

2 lines 192 kB
var VuePlyr=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}var n,i,r=function(e){return e&&e.Math==Math&&e},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a=function(e){try{return!!e()}catch(e){return!0}},s=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!a((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),c=Function.prototype.call,u=l?c.bind(c):function(){return c.apply(c,arguments)},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,h=d&&!f.call({1:2},1)?function(e){var t=d(this,e);return!!t&&t.enumerable}:f,p={f:h},m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},g=Function.prototype,v=g.bind,y=g.call,b=l&&v.bind(y,y),w=l?function(e){return e&&b(e)}:function(e){return e&&function(){return y.apply(e,arguments)}},k=w({}.toString),T=w("".slice),S=function(e){return T(k(e),8,-1)},E=o.Object,A=w("".split),P=a((function(){return!E("z").propertyIsEnumerable(0)}))?function(e){return"String"==S(e)?A(e,""):E(e)}:E,x=o.TypeError,C=function(e){if(null==e)throw x("Can't call method on "+e);return e},O=function(e){return P(C(e))},I=function(e){return"function"==typeof e},M=function(e){return"object"==typeof e?null!==e:I(e)},L=function(e){return I(e)?e:void 0},N=function(e,t){return arguments.length<2?L(o[e]):o[e]&&o[e][t]},j=w({}.isPrototypeOf),R=N("navigator","userAgent")||"",_=o.process,F=o.Deno,D=_&&_.versions||F&&F.version,q=D&&D.v8;q&&(i=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&R&&(!(n=R.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=R.match(/Chrome\/(\d+)/))&&(i=+n[1]);var H=i,U=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&H&&H<41})),B=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=o.Object,z=B?function(e){return"symbol"==typeof e}:function(e){var t=N("Symbol");return I(t)&&j(t.prototype,V(e))},W=o.String,$=function(e){try{return W(e)}catch(e){return"Object"}},K=o.TypeError,Y=function(e){if(I(e))return e;throw K($(e)+" is not a function")},G=function(e,t){var n=e[t];return null==n?void 0:Y(n)},X=o.TypeError,Q=Object.defineProperty,J=function(e,t){try{Q(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t},Z="__core-js_shared__",ee=o[Z]||J(Z,{}),te=t((function(e){(e.exports=function(e,t){return ee[e]||(ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ne=o.Object,ie=function(e){return ne(C(e))},re=w({}.hasOwnProperty),oe=Object.hasOwn||function(e,t){return re(ie(e),t)},ae=0,se=Math.random(),le=w(1..toString),ce=function(e){return"Symbol("+(void 0===e?"":e)+")_"+le(++ae+se,36)},ue=te("wks"),fe=o.Symbol,de=fe&&fe.for,he=B?fe:fe&&fe.withoutSetter||ce,pe=function(e){if(!oe(ue,e)||!U&&"string"!=typeof ue[e]){var t="Symbol."+e;U&&oe(fe,e)?ue[e]=fe[e]:ue[e]=B&&de?de(t):he(t)}return ue[e]},me=o.TypeError,ge=pe("toPrimitive"),ve=function(e,t){if(!M(e)||z(e))return e;var n,i=G(e,ge);if(i){if(void 0===t&&(t="default"),n=u(i,e,t),!M(n)||z(n))return n;throw me("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,i;if("string"===t&&I(n=e.toString)&&!M(i=u(n,e)))return i;if(I(n=e.valueOf)&&!M(i=u(n,e)))return i;if("string"!==t&&I(n=e.toString)&&!M(i=u(n,e)))return i;throw X("Can't convert object to primitive value")}(e,t)},ye=function(e){var t=ve(e,"string");return z(t)?t:t+""},be=o.document,we=M(be)&&M(be.createElement),ke=function(e){return we?be.createElement(e):{}},Te=!s&&!a((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Se=Object.getOwnPropertyDescriptor,Ee={f:s?Se:function(e,t){if(e=O(e),t=ye(t),Te)try{return Se(e,t)}catch(e){}if(oe(e,t))return m(!u(p.f,e,t),e[t])}},Ae=s&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pe=o.String,xe=o.TypeError,Ce=function(e){if(M(e))return e;throw xe(Pe(e)+" is not an object")},Oe=o.TypeError,Ie=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,Le="enumerable",Ne="configurable",je="writable",Re={f:s?Ae?function(e,t,n){if(Ce(e),t=ye(t),Ce(n),"function"==typeof e&&"prototype"===t&&"value"in n&&je in n&&!n.writable){var i=Me(e,t);i&&i.writable&&(e[t]=n.value,n={configurable:Ne in n?n.configurable:i.configurable,enumerable:Le in n?n.enumerable:i.enumerable,writable:!1})}return Ie(e,t,n)}:Ie:function(e,t,n){if(Ce(e),t=ye(t),Ce(n),Te)try{return Ie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Oe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_e=s?function(e,t,n){return Re.f(e,t,m(1,n))}:function(e,t,n){return e[t]=n,e},Fe=w(Function.toString);I(ee.inspectSource)||(ee.inspectSource=function(e){return Fe(e)});var De,qe,He,Ue=ee.inspectSource,Be=o.WeakMap,Ve=I(Be)&&/native code/.test(Ue(Be)),ze=te("keys"),We=function(e){return ze[e]||(ze[e]=ce(e))},$e={},Ke="Object already initialized",Ye=o.TypeError,Ge=o.WeakMap;if(Ve||ee.state){var Xe=ee.state||(ee.state=new Ge),Qe=w(Xe.get),Je=w(Xe.has),Ze=w(Xe.set);De=function(e,t){if(Je(Xe,e))throw new Ye(Ke);return t.facade=e,Ze(Xe,e,t),t},qe=function(e){return Qe(Xe,e)||{}},He=function(e){return Je(Xe,e)}}else{var et=We("state");$e[et]=!0,De=function(e,t){if(oe(e,et))throw new Ye(Ke);return t.facade=e,_e(e,et,t),t},qe=function(e){return oe(e,et)?e[et]:{}},He=function(e){return oe(e,et)}}var tt={set:De,get:qe,has:He,enforce:function(e){return He(e)?qe(e):De(e,{})},getterFor:function(e){return function(t){var n;if(!M(t)||(n=qe(t)).type!==e)throw Ye("Incompatible receiver, "+e+" required");return n}}},nt=Function.prototype,it=s&&Object.getOwnPropertyDescriptor,rt=oe(nt,"name"),ot={EXISTS:rt,PROPER:rt&&"something"===function(){}.name,CONFIGURABLE:rt&&(!s||s&&it(nt,"name").configurable)},at=t((function(e){var t=ot.CONFIGURABLE,n=tt.get,i=tt.enforce,r=String(String).split("String");(e.exports=function(e,n,a,s){var l,c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet,d=s&&void 0!==s.name?s.name:n;I(a)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oe(a,"name")||t&&a.name!==d)&&_e(a,"name",d),(l=i(a)).source||(l.source=r.join("string"==typeof d?d:""))),e!==o?(c?!f&&e[n]&&(u=!0):delete e[n],u?e[n]=a:_e(e,n,a)):u?e[n]=a:J(n,a)})(Function.prototype,"toString",(function(){return I(this)&&n(this).source||Ue(this)}))})),st=Math.ceil,lt=Math.floor,ct=function(e){var t=+e;return t!=t||0===t?0:(t>0?lt:st)(t)},ut=Math.max,ft=Math.min,dt=function(e,t){var n=ct(e);return n<0?ut(n+t,0):ft(n,t)},ht=Math.min,pt=function(e){return e>0?ht(ct(e),9007199254740991):0},mt=function(e){return pt(e.length)},gt=function(e){return function(t,n,i){var r,o=O(t),a=mt(o),s=dt(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},vt={includes:gt(!0),indexOf:gt(!1)},yt=vt.indexOf,bt=w([].push),wt=function(e,t){var n,i=O(e),r=0,o=[];for(n in i)!oe($e,n)&&oe(i,n)&&bt(o,n);for(;t.length>r;)oe(i,n=t[r++])&&(~yt(o,n)||bt(o,n));return o},kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=kt.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(e){return wt(e,Tt)}},Et={f:Object.getOwnPropertySymbols},At=w([].concat),Pt=N("Reflect","ownKeys")||function(e){var t=St.f(Ce(e)),n=Et.f;return n?At(t,n(e)):t},xt=function(e,t,n){for(var i=Pt(t),r=Re.f,o=Ee.f,a=0;a<i.length;a++){var s=i[a];oe(e,s)||n&&oe(n,s)||r(e,s,o(t,s))}},Ct=/#|\.prototype\./,Ot=function(e,t){var n=Mt[It(e)];return n==Nt||n!=Lt&&(I(t)?a(t):!!t)},It=Ot.normalize=function(e){return String(e).replace(Ct,".").toLowerCase()},Mt=Ot.data={},Lt=Ot.NATIVE="N",Nt=Ot.POLYFILL="P",jt=Ot,Rt=Ee.f,_t=function(e,t){var n,i,r,a,s,l=e.target,c=e.global,u=e.stat;if(n=c?o:u?o[l]||J(l,{}):(o[l]||{}).prototype)for(i in t){if(a=t[i],r=e.noTargetGet?(s=Rt(n,i))&&s.value:n[i],!jt(c?i:l+(u?".":"#")+i,e.forced)&&void 0!==r){if(typeof a==typeof r)continue;xt(a,r)}(e.sham||r&&r.sham)&&_e(a,"sham",!0),at(n,i,a,e)}},Ft=Object.keys||function(e){return wt(e,kt)},Dt=a((function(){Ft(1)}));_t({target:"Object",stat:!0,forced:Dt},{keys:function(e){return Ft(ie(e))}});var qt={};qt[pe("toStringTag")]="z";var Ht,Ut="[object z]"===String(qt),Bt=pe("toStringTag"),Vt=o.Object,zt="Arguments"==S(function(){return arguments}()),Wt=Ut?S:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Vt(e),Bt))?n:zt?S(t):"Object"==(i=S(t))&&I(t.callee)?"Arguments":i},$t=o.String,Kt=function(e){if("Symbol"===Wt(e))throw TypeError("Cannot convert a Symbol value to a string");return $t(e)},Yt=s&&!Ae?Object.defineProperties:function(e,t){Ce(e);for(var n,i=O(t),r=Ft(t),o=r.length,a=0;o>a;)Re.f(e,n=r[a++],i[n]);return e},Gt={f:Yt},Xt=N("document","documentElement"),Qt=We("IE_PROTO"),Jt=function(){},Zt=function(e){return"<script>"+e+"</"+"script>"},en=function(e){e.write(Zt("")),e.close();var t=e.parentWindow.Object;return e=null,t},tn=function(){try{Ht=new ActiveXObject("htmlfile")}catch(e){}var e,t;tn="undefined"!=typeof document?document.domain&&Ht?en(Ht):((t=ke("iframe")).style.display="none",Xt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Zt("document.F=Object")),e.close(),e.F):en(Ht);for(var n=kt.length;n--;)delete tn.prototype[kt[n]];return tn()};$e[Qt]=!0;var nn=Object.create||function(e,t){var n;return null!==e?(Jt.prototype=Ce(e),n=new Jt,Jt.prototype=null,n[Qt]=e):n=tn(),void 0===t?n:Gt.f(n,t)},rn=function(e,t,n){var i=ye(t);i in e?Re.f(e,i,m(0,n)):e[i]=n},on=o.Array,an=Math.max,sn=function(e,t,n){for(var i=mt(e),r=dt(t,i),o=dt(void 0===n?i:n,i),a=on(an(o-r,0)),s=0;r<o;r++,s++)rn(a,s,e[r]);return a.length=s,a},ln=St.f,cn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],un={f:function(e){return cn&&"Window"==S(e)?function(e){try{return ln(e)}catch(e){return sn(cn)}}(e):ln(O(e))}},fn={f:pe},dn=o,hn=Re.f,pn=function(e){var t=dn.Symbol||(dn.Symbol={});oe(t,e)||hn(t,e,{value:fn.f(e)})},mn=Re.f,gn=pe("toStringTag"),vn=function(e,t,n){e&&!n&&(e=e.prototype),e&&!oe(e,gn)&&mn(e,gn,{configurable:!0,value:t})},yn=w(w.bind),bn=function(e,t){return Y(e),void 0===t?e:l?yn(e,t):function(){return e.apply(t,arguments)}},wn=Array.isArray||function(e){return"Array"==S(e)},kn=function(){},Tn=[],Sn=N("Reflect","construct"),En=/^\s*(?:class|function)\b/,An=w(En.exec),Pn=!En.exec(kn),xn=function(e){if(!I(e))return!1;try{return Sn(kn,Tn,e),!0}catch(e){return!1}},Cn=function(e){if(!I(e))return!1;switch(Wt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pn||!!An(En,Ue(e))}catch(e){return!0}};Cn.sham=!0;var On=!Sn||a((function(){var e;return xn(xn.call)||!xn(Object)||!xn((function(){e=!0}))||e}))?Cn:xn,In=pe("species"),Mn=o.Array,Ln=function(e,t){return new(function(e){var t;return wn(e)&&(t=e.constructor,(On(t)&&(t===Mn||wn(t.prototype))||M(t)&&null===(t=t[In]))&&(t=void 0)),void 0===t?Mn:t}(e))(0===t?0:t)},Nn=w([].push),jn=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,c,u,f){for(var d,h,p=ie(l),m=P(p),g=bn(c,u),v=mt(m),y=0,b=f||Ln,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(h=g(d=m[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Nn(w,d)}else switch(e){case 4:return!1;case 7:Nn(w,d)}return o?-1:i||r?r:w}},Rn={forEach:jn(0),map:jn(1),filter:jn(2),some:jn(3),every:jn(4),find:jn(5),findIndex:jn(6),filterReject:jn(7)},_n=Rn.forEach,Fn=We("hidden"),Dn="Symbol",qn=tt.set,Hn=tt.getterFor(Dn),Un=Object.prototype,Bn=o.Symbol,Vn=Bn&&Bn.prototype,zn=o.TypeError,Wn=o.QObject,$n=Ee.f,Kn=Re.f,Yn=un.f,Gn=p.f,Xn=w([].push),Qn=te("symbols"),Jn=te("op-symbols"),Zn=te("wks"),ei=!Wn||!Wn.prototype||!Wn.prototype.findChild,ti=s&&a((function(){return 7!=nn(Kn({},"a",{get:function(){return Kn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=$n(Un,t);i&&delete Un[t],Kn(e,t,n),i&&e!==Un&&Kn(Un,t,i)}:Kn,ni=function(e,t){var n=Qn[e]=nn(Vn);return qn(n,{type:Dn,tag:e,description:t}),s||(n.description=t),n},ii=function(e,t,n){e===Un&&ii(Jn,t,n),Ce(e);var i=ye(t);return Ce(n),oe(Qn,i)?(n.enumerable?(oe(e,Fn)&&e[Fn][i]&&(e[Fn][i]=!1),n=nn(n,{enumerable:m(0,!1)})):(oe(e,Fn)||Kn(e,Fn,m(1,{})),e[Fn][i]=!0),ti(e,i,n)):Kn(e,i,n)},ri=function(e,t){Ce(e);var n=O(t),i=Ft(n).concat(li(n));return _n(i,(function(t){s&&!u(oi,n,t)||ii(e,t,n[t])})),e},oi=function(e){var t=ye(e),n=u(Gn,this,t);return!(this===Un&&oe(Qn,t)&&!oe(Jn,t))&&(!(n||!oe(this,t)||!oe(Qn,t)||oe(this,Fn)&&this[Fn][t])||n)},ai=function(e,t){var n=O(e),i=ye(t);if(n!==Un||!oe(Qn,i)||oe(Jn,i)){var r=$n(n,i);return!r||!oe(Qn,i)||oe(n,Fn)&&n[Fn][i]||(r.enumerable=!0),r}},si=function(e){var t=Yn(O(e)),n=[];return _n(t,(function(e){oe(Qn,e)||oe($e,e)||Xn(n,e)})),n},li=function(e){var t=e===Un,n=Yn(t?Jn:O(e)),i=[];return _n(n,(function(e){!oe(Qn,e)||t&&!oe(Un,e)||Xn(i,Qn[e])})),i};U||(Bn=function(){if(j(Vn,this))throw zn("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Kt(arguments[0]):void 0,t=ce(e),n=function(e){this===Un&&u(n,Jn,e),oe(this,Fn)&&oe(this[Fn],t)&&(this[Fn][t]=!1),ti(this,t,m(1,e))};return s&&ei&&ti(Un,t,{configurable:!0,set:n}),ni(t,e)},Vn=Bn.prototype,at(Vn,"toString",(function(){return Hn(this).tag})),at(Bn,"withoutSetter",(function(e){return ni(ce(e),e)})),p.f=oi,Re.f=ii,Gt.f=ri,Ee.f=ai,St.f=un.f=si,Et.f=li,fn.f=function(e){return ni(pe(e),e)},s&&(Kn(Vn,"description",{configurable:!0,get:function(){return Hn(this).description}}),at(Un,"propertyIsEnumerable",oi,{unsafe:!0}))),_t({global:!0,wrap:!0,forced:!U,sham:!U},{Symbol:Bn}),_n(Ft(Zn),(function(e){pn(e)})),_t({target:Dn,stat:!0,forced:!U},{useSetter:function(){ei=!0},useSimple:function(){ei=!1}}),_t({target:"Object",stat:!0,forced:!U,sham:!s},{create:function(e,t){return void 0===t?nn(e):ri(nn(e),t)},defineProperty:ii,defineProperties:ri,getOwnPropertyDescriptor:ai}),_t({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:si}),function(){var e=N("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,i=pe("toPrimitive");t&&!t[i]&&at(t,i,(function(e){return u(n,this)}))}(),vn(Bn,Dn),$e[Fn]=!0;var ci=U&&!!Symbol.for&&!!Symbol.keyFor,ui=te("string-to-symbol-registry"),fi=te("symbol-to-string-registry");_t({target:"Symbol",stat:!0,forced:!ci},{for:function(e){var t=Kt(e);if(oe(ui,t))return ui[t];var n=N("Symbol")(t);return ui[t]=n,fi[n]=t,n}});var di=te("symbol-to-string-registry");_t({target:"Symbol",stat:!0,forced:!ci},{keyFor:function(e){if(!z(e))throw TypeError($(e)+" is not a symbol");if(oe(di,e))return di[e]}});var hi=Function.prototype,pi=hi.apply,mi=hi.call,gi="object"==typeof Reflect&&Reflect.apply||(l?mi.bind(pi):function(){return mi.apply(pi,arguments)}),vi=w([].slice),yi=N("JSON","stringify"),bi=w(/./.exec),wi=w("".charAt),ki=w("".charCodeAt),Ti=w("".replace),Si=w(1..toString),Ei=/[\uD800-\uDFFF]/g,Ai=/^[\uD800-\uDBFF]$/,Pi=/^[\uDC00-\uDFFF]$/,xi=!U||a((function(){var e=N("Symbol")();return"[null]"!=yi([e])||"{}"!=yi({a:e})||"{}"!=yi(Object(e))})),Ci=a((function(){return'"\\udf06\\ud834"'!==yi("\udf06\ud834")||'"\\udead"'!==yi("\udead")})),Oi=function(e,t){var n=vi(arguments),i=t;if((M(t)||void 0!==e)&&!z(e))return wn(t)||(t=function(e,t){if(I(i)&&(t=u(i,this,e,t)),!z(t))return t}),n[1]=t,gi(yi,null,n)},Ii=function(e,t,n){var i=wi(n,t-1),r=wi(n,t+1);return bi(Ai,e)&&!bi(Pi,r)||bi(Pi,e)&&!bi(Ai,i)?"\\u"+Si(ki(e,0),16):e};yi&&_t({target:"JSON",stat:!0,forced:xi||Ci},{stringify:function(e,t,n){var i=vi(arguments),r=gi(xi?Oi:yi,null,i);return Ci&&"string"==typeof r?Ti(r,Ei,Ii):r}});var Mi=!U||a((function(){Et.f(1)}));_t({target:"Object",stat:!0,forced:Mi},{getOwnPropertySymbols:function(e){var t=Et.f;return t?t(ie(e)):[]}});var Li=pe("species"),Ni=function(e){return H>=51||!a((function(){var t=[];return(t.constructor={})[Li]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ji=Rn.filter,Ri=Ni("filter");_t({target:"Array",proto:!0,forced:!Ri},{filter:function(e){return ji(this,e,arguments.length>1?arguments[1]:void 0)}});var _i=Ut?{}.toString:function(){return"[object "+Wt(this)+"]"};Ut||at(Object.prototype,"toString",_i,{unsafe:!0});var Fi=Ee.f,Di=a((function(){Fi(1)}));_t({target:"Object",stat:!0,forced:!s||Di,sham:!s},{getOwnPropertyDescriptor:function(e,t){return Fi(O(e),t)}});var qi={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},Hi=ke("span").classList,Ui=Hi&&Hi.constructor&&Hi.constructor.prototype,Bi=Ui===Object.prototype?void 0:Ui,Vi=function(e,t){var n=[][e];return!!n&&a((function(){n.call(null,t||function(){return 1},1)}))},zi=Rn.forEach,Wi=Vi("forEach")?[].forEach:function(e){return zi(this,e,arguments.length>1?arguments[1]:void 0)},$i=function(e){if(e&&e.forEach!==Wi)try{_e(e,"forEach",Wi)}catch(t){e.forEach=Wi}};for(var Ki in qi)qi[Ki]&&$i(o[Ki]&&o[Ki].prototype);function Yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){Yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}$i(Bi),_t({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(e){for(var t,n,i=O(e),r=Ee.f,o=Pt(i),a={},s=0;o.length>s;)void 0!==(n=r(i,t=o[s++]))&&rn(a,t,n);return a}});var Qi=ot.EXISTS,Ji=Re.f,Zi=Function.prototype,er=w(Zi.toString),tr=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,nr=w(tr.exec);function ir(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}s&&!Qi&&Ji(Zi,"name",{configurable:!0,get:function(){try{return nr(tr,er(this))[1]}catch(e){return""}}});var or=Re.f,ar=o.Symbol,sr=ar&&ar.prototype;if(s&&I(ar)&&(!("description"in sr)||void 0!==ar().description)){var lr={},cr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Kt(arguments[0]),t=j(sr,this)?new ar(e):void 0===e?ar():ar(e);return""===e&&(lr[t]=!0),t};xt(cr,ar),cr.prototype=sr,sr.constructor=cr;var ur="Symbol(test)"==String(ar("test")),fr=w(sr.toString),dr=w(sr.valueOf),hr=/^Symbol\((.*)\)[^)]+$/,pr=w("".replace),mr=w("".slice);or(sr,"description",{configurable:!0,get:function(){var e=dr(this),t=fr(e);if(oe(lr,e))return"";var n=ur?mr(t,7,-1):pr(t,hr,"$1");return""===n?void 0:n}}),_t({global:!0,forced:!0},{Symbol:cr})}pn("iterator");var gr,vr,yr,br=w("".charAt),wr=w("".charCodeAt),kr=w("".slice),Tr=function(e){return function(t,n){var i,r,o=Kt(C(t)),a=ct(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=wr(o,a))<55296||i>56319||a+1===s||(r=wr(o,a+1))<56320||r>57343?e?br(o,a):i:e?kr(o,a,a+2):r-56320+(i-55296<<10)+65536}},Sr={codeAt:Tr(!1),charAt:Tr(!0)},Er=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ar=We("IE_PROTO"),Pr=o.Object,xr=Pr.prototype,Cr=Er?Pr.getPrototypeOf:function(e){var t=ie(e);if(oe(t,Ar))return t[Ar];var n=t.constructor;return I(n)&&t instanceof n?n.prototype:t instanceof Pr?xr:null},Or=pe("iterator"),Ir=!1;[].keys&&("next"in(yr=[].keys())?(vr=Cr(Cr(yr)))!==Object.prototype&&(gr=vr):Ir=!0);var Mr=null==gr||a((function(){var e={};return gr[Or].call(e)!==e}));Mr&&(gr={}),I(gr[Or])||at(gr,Or,(function(){return this}));var Lr={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Ir},Nr={},jr=Lr.IteratorPrototype,Rr=function(){return this},_r=function(e,t,n,i){var r=t+" Iterator";return e.prototype=nn(jr,{next:m(+!i,n)}),vn(e,r,!1),Nr[r]=Rr,e},Fr=o.String,Dr=o.TypeError,qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return Ce(n),function(e){if("object"==typeof e||I(e))return e;throw Dr("Can't set "+Fr(e)+" as a prototype")}(i),t?e(n,i):n.__proto__=i,n}}():void 0),Hr=ot.PROPER,Ur=ot.CONFIGURABLE,Br=Lr.IteratorPrototype,Vr=Lr.BUGGY_SAFARI_ITERATORS,zr=pe("iterator"),Wr="keys",$r="values",Kr="entries",Yr=function(){return this},Gr=function(e,t,n,i,r,o,a){_r(n,t,i);var s,l,c,f=function(e){if(e===r&&g)return g;if(!Vr&&e in p)return p[e];switch(e){case Wr:case $r:case Kr:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,m=p[zr]||p["@@iterator"]||r&&p[r],g=!Vr&&m||f(r),v="Array"==t&&p.entries||m;if(v&&(s=Cr(v.call(new e)))!==Object.prototype&&s.next&&(Cr(s)!==Br&&(qr?qr(s,Br):I(s[zr])||at(s,zr,Yr)),vn(s,d,!0)),Hr&&r==$r&&m&&m.name!==$r&&(Ur?_e(p,"name",$r):(h=!0,g=function(){return u(m,this)})),r)if(l={values:f($r),keys:o?g:f(Wr),entries:f(Kr)},a)for(c in l)(Vr||h||!(c in p))&&at(p,c,l[c]);else _t({target:t,proto:!0,forced:Vr||h},l);return p[zr]!==g&&at(p,zr,g,{name:r}),Nr[t]=g,l},Xr=Sr.charAt,Qr="String Iterator",Jr=tt.set,Zr=tt.getterFor(Qr);Gr(String,"String",(function(e){Jr(this,{type:Qr,string:Kt(e),index:0})}),(function(){var e,t=Zr(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=Xr(n,i),t.index+=e.length,{value:e,done:!1})}));var eo=pe("unscopables"),to=Array.prototype;null==to[eo]&&Re.f(to,eo,{configurable:!0,value:nn(null)});var no=function(e){to[eo][e]=!0},io=Re.f,ro="Array Iterator",oo=tt.set,ao=tt.getterFor(ro),so=Gr(Array,"Array",(function(e,t){oo(this,{type:ro,target:O(e),index:0,kind:t})}),(function(){var e=ao(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),lo=Nr.Arguments=Nr.Array;if(no("keys"),no("values"),no("entries"),s&&"values"!==lo.name)try{io(lo,"name",{value:"values"})}catch(e){}var co=pe("iterator"),uo=pe("toStringTag"),fo=so.values,ho=function(e,t){if(e){if(e[co]!==fo)try{_e(e,co,fo)}catch(t){e[co]=fo}if(e[uo]||_e(e,uo,t),qi[t])for(var n in so)if(e[n]!==so[n])try{_e(e,n,so[n])}catch(t){e[n]=so[n]}}};for(var po in qi)ho(o[po]&&o[po].prototype,po);ho(Bi,"DOMTokenList");var mo=function(e,t,n){var i,r;Ce(e);try{if(!(i=G(e,"return"))){if("throw"===t)throw n;return n}i=u(i,e)}catch(e){r=!0,i=e}if("throw"===t)throw n;if(r)throw i;return Ce(i),n},go=function(e,t,n,i){try{return i?t(Ce(n)[0],n[1]):t(n)}catch(t){mo(e,"throw",t)}},vo=pe("iterator"),yo=Array.prototype,bo=function(e){return void 0!==e&&(Nr.Array===e||yo[vo]===e)},wo=pe("iterator"),ko=function(e){if(null!=e)return G(e,wo)||G(e,"@@iterator")||Nr[Wt(e)]},To=o.TypeError,So=function(e,t){var n=arguments.length<2?ko(e):t;if(Y(n))return Ce(u(n,e));throw To($(e)+" is not iterable")},Eo=o.Array,Ao=function(e){var t=ie(e),n=On(this),i=arguments.length,r=i>1?arguments[1]:void 0,o=void 0!==r;o&&(r=bn(r,i>2?arguments[2]:void 0));var a,s,l,c,f,d,h=ko(t),p=0;if(!h||this==Eo&&bo(h))for(a=mt(t),s=n?new this(a):Eo(a);a>p;p++)d=o?r(t[p],p):t[p],rn(s,p,d);else for(f=(c=So(t,h)).next,s=n?new this:[];!(l=u(f,c)).done;p++)d=o?go(c,r,[l.value,p],!0):l.value,rn(s,p,d);return s.length=p,s},Po=pe("iterator"),xo=!1;try{var Co=0,Oo={next:function(){return{done:!!Co++}},return:function(){xo=!0}};Oo[Po]=function(){return this},Array.from(Oo,(function(){throw 2}))}catch(e){}var Io=function(e,t){if(!t&&!xo)return!1;var n=!1;try{var i={};i[Po]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},Mo=!Io((function(e){Array.from(e)}));_t({target:"Array",stat:!0,forced:Mo},{from:Ao});var Lo=Ni("slice"),No=pe("species"),jo=o.Array,Ro=Math.max;_t({target:"Array",proto:!0,forced:!Lo},{slice:function(e,t){var n,i,r,o=O(this),a=mt(o),s=dt(e,a),l=dt(void 0===t?a:t,a);if(wn(o)&&(n=o.constructor,(On(n)&&(n===jo||wn(n.prototype))||M(n)&&null===(n=n[No]))&&(n=void 0),n===jo||void 0===n))return vi(o,s,l);for(i=new(void 0===n?jo:n)(Ro(l-s,0)),r=0;s<l;s++,r++)s in o&&rn(i,r,o[s]);return i.length=r,i}});var _o=function(){var e=Ce(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Fo=o.RegExp,Do=a((function(){var e=Fo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qo=Do||a((function(){return!Fo("a","y").sticky})),Ho=Do||a((function(){var e=Fo("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Uo={BROKEN_CARET:Ho,MISSED_STICKY:qo,UNSUPPORTED_Y:Do},Bo=o.RegExp,Vo=a((function(){var e=Bo(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),zo=o.RegExp,Wo=a((function(){var e=zo("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$o=tt.get,Ko=te("native-string-replace",String.prototype.replace),Yo=RegExp.prototype.exec,Go=Yo,Xo=w("".charAt),Qo=w("".indexOf),Jo=w("".replace),Zo=w("".slice),ea=function(){var e=/a/,t=/b*/g;return u(Yo,e,"a"),u(Yo,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),ta=Uo.BROKEN_CARET,na=void 0!==/()??/.exec("")[1];(ea||na||ta||Vo||Wo)&&(Go=function(e){var t,n,i,r,o,a,s,l=this,c=$o(l),f=Kt(e),d=c.raw;if(d)return d.lastIndex=l.lastIndex,t=u(Go,d,f),l.lastIndex=d.lastIndex,t;var h=c.groups,p=ta&&l.sticky,m=u(_o,l),g=l.source,v=0,y=f;if(p&&(m=Jo(m,"y",""),-1===Qo(m,"g")&&(m+="g"),y=Zo(f,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Xo(f,l.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",m)),na&&(n=new RegExp("^"+g+"$(?!\\s)",m)),ea&&(i=l.lastIndex),r=u(Yo,p?n:l,y),p?r?(r.input=Zo(r.input,v),r[0]=Zo(r[0],v),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:ea&&r&&(l.lastIndex=l.global?r.index+r[0].length:i),na&&r&&r.length>1&&u(Ko,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&h)for(r.groups=a=nn(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=r[s[1]];return r});var ia=Go;_t({target:"RegExp",proto:!0,forced:/./.exec!==ia},{exec:ia});var ra,oa,aa=(ra=!1,(oa=/[ac]/).exec=function(){return ra=!0,/./.exec.apply(this,arguments)},!0===oa.test("abc")&&ra),sa=o.Error,la=w(/./.test);function ca(e,t){if(e){if("string"==typeof e)return rr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}}_t({target:"RegExp",proto:!0,forced:!aa},{test:function(e){var t=this.exec;if(!I(t))return la(this,e);var n=u(t,this,e);if(null!==n&&!M(n))throw new sa("RegExp exec method returned something other than an Object or null");return!!n}});var ua=Re.f,fa=function(e,t,n){n in e||ua(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},da=function(e,t,n){var i,r;return qr&&I(i=t.constructor)&&i!==n&&M(r=i.prototype)&&r!==n.prototype&&qr(e,r),e},ha=function(e,t){return void 0===e?arguments.length<2?"":t:Kt(e)},pa=function(e,t){M(t)&&"cause"in t&&_e(e,"cause",t.cause)},ma=Error,ga=w("".replace),va=String(ma("zxcasd").stack),ya=/\n\s*at [^:]*:[^\n]*/,ba=ya.test(va),wa=function(e,t){if(ba&&"string"==typeof e&&!ma.prepareStackTrace)for(;t--;)e=ga(e,ya,"");return e},ka=!a((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",m(1,7)),7!==e.stack)})),Ta=function(e,t,n,i){var r="stackTraceLimit",o=i?2:1,a=e.split("."),l=a[a.length-1],c=N.apply(null,a);if(c){var u=c.prototype;if(oe(u,"cause")&&delete u.cause,!n)return c;var f=N("Error"),d=t((function(e,t){var n=ha(i?t:e,void 0),r=i?new c(e):new c;return void 0!==n&&_e(r,"message",n),ka&&_e(r,"stack",wa(r.stack,2)),this&&j(u,this)&&da(r,this,d),arguments.length>o&&pa(r,arguments[o]),r}));d.prototype=u,"Error"!==l?qr?qr(d,f):xt(d,f,{name:!0}):s&&r in c&&(fa(d,c,r),fa(d,c,"prepareStackTrace")),xt(d,c);try{u.name!==l&&_e(u,"name",l),u.constructor=d}catch(e){}return d}},Sa="WebAssembly",Ea=o.WebAssembly,Aa=7!==Error("e",{cause:7}).cause,Pa=function(e,t){var n={};n[e]=Ta(e,t,Aa),_t({global:!0,forced:Aa},n)},xa=function(e,t){if(Ea&&Ea[e]){var n={};n[e]=Ta("WebAssembly."+e,t,Aa),_t({target:Sa,stat:!0,forced:Aa},n)}};function Ca(e){return function(e){if(Array.isArray(e))return rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ca(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 Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ia(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ma(e,t,n){return t&&Ia(e.prototype,t),n&&Ia(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function La(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||ca(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.")}()}function Na(e){return Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Na(e)}Pa("Error",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("EvalError",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("RangeError",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("ReferenceError",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("SyntaxError",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("TypeError",(function(e){return function(t){return gi(e,this,arguments)}})),Pa("URIError",(function(e){return function(t){return gi(e,this,arguments)}})),xa("CompileError",(function(e){return function(t){return gi(e,this,arguments)}})),xa("LinkError",(function(e){return function(t){return gi(e,this,arguments)}})),xa("RuntimeError",(function(e){return function(t){return gi(e,this,arguments)}}));var ja=vt.includes;_t({target:"Array",proto:!0},{includes:function(e){return ja(this,e,arguments.length>1?arguments[1]:void 0)}}),no("includes");var Ra=pe("match"),_a=function(e){var t;return M(e)&&(void 0!==(t=e[Ra])?!!t:"RegExp"==S(e))},Fa=o.TypeError,Da=function(e){if(_a(e))throw Fa("The method doesn't accept regular expressions");return e},qa=pe("match"),Ha=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qa]=!1,"/./"[e](t)}catch(e){}}return!1},Ua=w("".indexOf);_t({target:"String",proto:!0,forced:!Ha("includes")},{includes:function(e){return!!~Ua(Kt(C(this)),Kt(Da(e)),arguments.length>1?arguments[1]:void 0)}});var Ba=w(1..valueOf),Va="\t\n\v\f\r                 \u2028\u2029\ufeff",za=w("".replace),Wa="["+Va+"]",$a=RegExp("^"+Wa+Wa+"*"),Ka=RegExp(Wa+Wa+"*$"),Ya=function(e){return function(t){var n=Kt(C(t));return 1&e&&(n=za(n,$a,"")),2&e&&(n=za(n,Ka,"")),n}},Ga={start:Ya(1),end:Ya(2),trim:Ya(3)},Xa=St.f,Qa=Ee.f,Ja=Re.f,Za=Ga.trim,es="Number",ts=o.Number,ns=ts.prototype,is=o.TypeError,rs=w("".slice),os=w("".charCodeAt),as=function(e){var t=ve(e,"number");return"bigint"==typeof t?t:ss(t)},ss=function(e){var t,n,i,r,o,a,s,l,c=ve(e,"number");if(z(c))throw is("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Za(c),43===(t=os(c,0))||45===t){if(88===(n=os(c,2))||120===n)return NaN}else if(48===t){switch(os(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=rs(c,2)).length,s=0;s<a;s++)if((l=os(o,s))<48||l>r)return NaN;return parseInt(o,i)}return+c};if(jt(es,!ts(" 0o1")||!ts("0b1")||ts("+0x1"))){for(var ls,cs=function(e){var t=arguments.length<1?0:ts(as(e)),n=this;return j(ns,n)&&a((function(){Ba(n)}))?da(Object(t),n,cs):t},us=s?Xa(ts):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),fs=0;us.length>fs;fs++)oe(ts,ls=us[fs])&&!oe(cs,ls)&&Ja(cs,ls,Qa(ts,ls));cs.prototype=ns,ns.constructor=cs,at(o,es,cs)}_t({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var ds=pe("species"),hs=RegExp.prototype,ps=function(e,t,n,i){var r=pe(e),o=!a((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),s=o&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ds]=function(){return n},n.flags="",n[r]=/./[r]),n.exec=function(){return t=!0,null},n[r](""),!t}));if(!o||!s||n){var l=w(/./[r]),c=t(r,""[e],(function(e,t,n,i,r){var a=w(e),s=t.exec;return s===ia||s===hs.exec?o&&!r?{done:!0,value:l(t,n,i)}:{done:!0,value:a(n,t,i)}:{done:!1}}));at(String.prototype,e,c[0]),at(hs,r,c[1])}i&&_e(hs[r],"sham",!0)},ms=Sr.charAt,gs=function(e,t,n){return t+(n?ms(e,t).length:1)},vs=o.TypeError,ys=function(e,t){var n=e.exec;if(I(n)){var i=u(n,e,t);return null!==i&&Ce(i),i}if("RegExp"===S(e))return u(ia,e,t);throw vs("RegExp#exec called on incompatible receiver")};ps("match",(function(e,t,n){return[function(t){var n=C(this),i=null==t?void 0:G(t,e);return i?u(i,t,n):new RegExp(t)[e](Kt(n))},function(e){var i=Ce(this),r=Kt(e),o=n(t,i,r);if(o.done)return o.value;if(!i.global)return ys(i,r);var a=i.unicode;i.lastIndex=0;for(var s,l=[],c=0;null!==(s=ys(i,r));){var u=Kt(s[0]);l[c]=u,""===u&&(i.lastIndex=gs(r,pt(i.lastIndex),a)),c++}return 0===c?null:l}]}));var bs=o.RangeError,ws=o.RangeError,ks=o.String,Ts=Math.floor,Ss=w((function(e){var t=Kt(C(this)),n="",i=ct(e);if(i<0||i==1/0)throw bs("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n})),Es=w("".slice),As=w(1..toFixed),Ps=function(e,t,n){return 0===t?n:t%2==1?Ps(e,t-1,n*e):Ps(e*e,t/2,n)},xs=function(e,t,n){for(var i=-1,r=n;++i<6;)r+=t*e[i],e[i]=r%1e7,r=Ts(r/1e7)},Cs=function(e,t){for(var n=6,i=0;--n>=0;)i+=e[n],e[n]=Ts(i/t),i=i%t*1e7},Os=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var i=ks(e[t]);n=""===n?i:n+Ss("0",7-i.length)+i}return n},Is=a((function(){return"0.000"!==As(8e-5,3)||"1"!==As(.9,0)||"1.25"!==As(1.255,2)||"1000000000000000128"!==As(0xde0b6b3a7640080,0)}))||!a((function(){As({})}));_t({target:"Number",proto:!0,forced:Is},{toFixed:function(e){var t,n,i,r,o=Ba(this),a=ct(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw ws("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return ks(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*Ps(2,69,1))-69)<0?o*Ps(2,-t,1):o/Ps(2,t,1),n*=4503599627370496,(t=52-t)>0){for(xs(s,0,n),i=a;i>=7;)xs(s,1e7,0),i-=7;for(xs(s,Ps(10,i,1),0),i=t-1;i>=23;)Cs(s,1<<23),i-=23;Cs(s,1<<i),xs(s,1,1),Cs(s,2),c=Os(s)}else xs(s,0,n),xs(s,1<<-t,0),c=Os(s)+Ss("0",a);return c=a>0?l+((r=c.length)<=a?"0."+Ss("0",a-r)+c:Es(c,0,r-a)+"."+Es(c,r-a)):l+c}});var Ms=Rn.map,Ls=Ni("map");_t({target:"Array",proto:!0,forced:!Ls},{map:function(e){return Ms(this,e,arguments.length>1?arguments[1]:void 0)}});var Ns=function(e,t,n){for(var i in t)at(e,i,t[i],n);return e},js=a((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Rs=Object.isExtensible,_s=a((function(){Rs(1)}))||js?function(e){return!!M(e)&&((!js||"ArrayBuffer"!=S(e))&&(!Rs||Rs(e)))}:Rs,Fs=!a((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ds=t((function(e){var t=Re.f,n=!1,i=ce("meta"),r=0,o=function(e){t(e,i,{value:{objectID:"O"+r++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=St.f,t=w([].splice),r={};r[i]=1,e(r).length&&(St.f=function(n){for(var r=e(n),o=0,a=r.length;o<a;o++)if(r[o]===i){t(r,o,1);break}return r},_t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:un.f}))},fastKey:function(e,t){if(!M(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!oe(e,i)){if(!_s(e))return"F";if(!t)return"E";o(e)}return e[i].objectID},getWeakData:function(e,t){if(!oe(e,i)){if(!_s(e))return!0;if(!t)return!1;o(e)}return e[i].weakData},onFreeze:function(e){return Fs&&n&&_s(e)&&!oe(e,i)&&o(e),e}};$e[i]=!0})),qs=o.TypeError,Hs=function(e,t){this.stopped=e,this.result=t},Us=Hs.prototype,Bs=function(e,t,n){var i,r,o,a,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=bn(t,f),g=function(e){return i&&mo(i,"normal",e),new Hs(!0,e)},v=function(e){return d?(Ce(e),p?m(e[0],e[1],g):m(e[0],e[1])):p?m(e,g):m(e)};if(h)i=e;else{if(!(r=ko(e)))throw qs($(e)+" is not iterable");if(bo(r)){for(o=0,a=mt(e);a>o;o++)if((s=v(e[o]))&&j(Us,s))return s;return new Hs(!1)}i=So(e,r)}for(l=i.next;!(c=u(l,i)).done;){try{s=v(c.value)}catch(e){mo(i,"throw",e)}if("object"==typeof s&&s&&j(Us,s))return s}return new Hs(!1)},Vs=o.TypeError,zs=function(e,t){if(j(t,e))return e;throw Vs("Incorrect invocation")},Ws=Ds.getWeakData,$s=tt.set,Ks=tt.getterFor,Ys=Rn.find,Gs=Rn.findIndex,Xs=w([].splice),Qs=0,Js=function(e){return e.frozen||(e.frozen=new Zs)},Zs=function(){this.entries=[]},el=function(e,t){return Ys(e.entries,(function(e){return e[0]===t}))};Zs.prototype={get:function(e){var t=el(this,e);if(t)return t[1]},has:function(e){return!!el(this,e)},set:function(e,t){var n=el(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gs(this.entries,(function(t){return t[0]===e}));return~t&&Xs(this.entries,t,1),!!~t}};var tl,nl={getConstructor:function(e,t,n,i){var r=e((function(e,r){zs(e,o),$s(e,{type:t,id:Qs++,frozen:void 0}),null!=r&&Bs(r,e[i],{that:e,AS_ENTRIES:n})})),o=r.prototype,a=Ks(t),s=function(e,t,n){var i=a(e),r=Ws(Ce(t),!0);return!0===r?Js(i).set(t,n):r[i.id]=n,e};return Ns(o,{delete:function(e){var t=a(this);if(!M(e))return!1;var n=Ws(e);return!0===n?Js(t).delete(e):n&&oe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!M(e))return!1;var n=Ws(e);return!0===n?Js(t).has(e):n&&oe(n,t.id)}}),Ns(o,n?{get:function(e){var t=a(this);if(M(e)){var n=Ws(e);return!0===n?Js(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),r}},il=tt.enforce,rl=!o.ActiveXObject&&"ActiveXObject"in o,ol=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},al=function(e,t,n){var i=-1!==e.indexOf("Map"),r=-1!==e.indexOf("Weak"),s=i?"set":"add",l=o[e],c=l&&l.prototype,u=l,f={},d=function(e){var t=w(c[e]);at(c,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!M(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return r&&!M(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!M(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(jt(e,!I(l)||!(r||c.forEach&&!a((function(){(new l).entries().next()})))))u=n.getConstructor(t,e,i,s),Ds.enable();else if(jt(e,!0)){var h=new u,p=h[s](r?{}:-0,1)!=h,m=a((function(){h.has(1)})),g=Io((function(e){new l(e)})),v=!r&&a((function(){for(var e=new l,t=5;t--;)e[s](t,t);return!e.has(-0)}));g||((u=t((function(e,t){zs(e,c);var n=da(new l,e,u);return null!=t&&Bs(t,n[s],{that:n,AS_ENTRIES:i}),n}))).prototype=c,c.constructor=u),(m||v)&&(d("delete"),d("has"),i&&d("get")),(v||p)&&d(s),r&&c.clear&&delete c.clear}return f[e]=u,_t({global:!0,forced:u!=l},f),vn(u,e),r||n.setStrong(u,e,i),u}("WeakMap",ol,nl);if(Ve&&rl){tl=nl.getConstructor(ol,"WeakMap",!0),Ds.enable();var sl=al.prototype,ll=w(sl.delete),cl=w(sl.has),ul=w(sl.get),fl=w(sl.set);Ns(sl,{delete:function(e){if(M(e)&&!_s(e)){var t=il(this);return t.frozen||(t.frozen=new tl),ll(this,e)||t.frozen.delete(e)}return ll(this,e)},has:function(e){if(M(e)&&!_s(e)){var t=il(this);return t.frozen||(t.frozen=new tl),cl(this,e)||t.frozen.has(e)}return cl(this,e)},get:function(e){if(M(e)&&!_s(e)){var t=il(this);return t.frozen||(t.frozen=new tl),cl(this,e)?ul(this,e):t.frozen.get(e)}return ul(this,e)},set:function(e,t){if(M(e)&&!_s(e)){var n=il(this);n.frozen||(n.frozen=new tl),cl(this,e)?fl(this,e,t):n.frozen.set(e,t)}else fl(this,e,t);return this}})}var dl=pe("iterator"),hl=!a((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[dl]||"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"!==n||"x"!==new URL("http://x",void 0).host})),pl=Object.assign,ml=Object.defineProperty,gl=w([].concat),vl=!pl||a((function(){if(s&&1!==pl({b:1},pl(ml({},"a",{enumerable:!0,get:function(){ml(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=pl({},e)[n]||Ft(pl({},t)).join("")!=i}))?function(e,t){for(var n=ie(e),i=arguments.length,r=1,o=Et.f,a=p.f;i>r;)for(var l,c=P(arguments[r++]),f=o?gl(Ft(c),o(c)):Ft(c),d=f.length,h=0;d>h;)l=f[h++],s&&!u(a,c,l)||(n[l]=c[l]);return n}:pl,yl=2147483647,bl=/[^\0-\u007E]/,wl=/[.\u3002\uFF0E\uFF61]/g,kl="Overflow: input needs wider integers to process",Tl=o.RangeError,Sl=w(wl.exec),El=Math.floor,Al=String.fromCharCode,Pl=w("".charCodeAt),xl=w([].join),Cl=w([].push),Ol=w("".replace),Il=w("".split),Ml=w("".toLowerCase),Ll=function(e){return e+22+75*(e<26)},Nl=function(e,t,n){var i=0;for(e=n?El(e/700):e>>1,e+=El(e/t);e>455;)e=El(e/35),i+=36;return El(i+36*e/(e+38))},jl=function(e){var t=[];e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=Pl(e,n++);if(r>=55296&&r<=56319&&n<i){var o=Pl(e,n++);56320==(64512&o)?Cl(t,((1023&r)<<10)+(1023&o)+65536):(Cl(t,r),n--)}else Cl(t,r)}return t}(e);var n,i,r=e.length,o=128,a=0,s=72;for(n=0;n<e.length;n++)(i=e[n])<128&&Cl(t,Al(i));var l=t.length,c=l;for(l&&Cl(t,"-");c<r;){var u=yl;for(n=0;n<e.length;n++)(i=e[n])>=o&&i<u&&(u=i);var f=c+1;if(u-o>El((yl-a)/f))throw Tl(kl);for(a+=(u-o)*f,o=u,n=0;n<e.length;n++){if((i=e[n])<o&&++a>yl)throw Tl(kl);if(i==o){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var m=d-p,g=36-p;Cl(t,Al(Ll(p+m%g))),d=El(m/g),h+=36}Cl(t,Al(Ll(d))),s=Nl(a,f,c==l),a=0,c++}}a++,o++}return xl(t,"")},Rl=o.TypeError,_l=function(e,t){if(e<t)throw Rl("Not enough arguments");return e},Fl=Math.floor,Dl=function(e,t){var n=e.length,i=Fl(n/2);return n<8?ql(e,t):Hl(e,Dl(sn(e,0,i),t),Dl(sn(e,i),t),t)},ql=function(e,t){for(var n,i,r=e.length,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},Hl=function(e,t,n,i){for(var r=t.length,o=n.length,a=0,s=0;a<r||s<o;)e[a+s]=a<r&&s<o?i(t[a],n[s])<=0?t[a++]:n[s++]:a<r?t[a++]:n[s++];return e},Ul=Dl,Bl=pe("iterator"),Vl="URLSearchParams",zl="URLSearchParamsIterator",Wl=tt.set,$l=tt.getterFor(Vl),Kl=tt.getterFor(zl),Yl=Object.getOwnPropertyDescriptor,Gl=function(e){if(!s)return o[e];var t=Yl(o,e);return t&&t.value},Xl=Gl("fetch"),Ql=Gl("Request"),Jl=Gl("Headers"),Zl=Ql&&Ql.prototype,ec=Jl&&Jl.prototype,tc=o.RegExp,nc=o.TypeError,ic=o.decodeURIComponent,rc=o.encodeURIComponent,oc=w("".charAt),ac=w([].join),sc=w([].push),lc=w("".replace),cc=w([].shift),uc=w([].splice),fc=w("".split),dc=w("".slice),hc=/\+/g,pc=Array(4),mc=function(e){return pc[e-1]||(pc[e-1]=tc("((?:%[\\da-f]{2}){"+e+"})","gi"))},gc=function(e){try{return ic(e)}catch(t){return e}},vc=function(e){var t=lc(e,hc," "),n=4;try{return ic(t)}catch(e){for(;n;)t=lc(t,mc(n--),gc);return t}},yc=/[!'()~]|%20/g,bc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},wc=function(e){return bc[e]},kc=function(e){return lc(rc(e),yc,wc)},Tc=_r((function(e,t){Wl(this,{type:zl,iterator:So($l(e).entries),kind:t})}),"Iterator",(function(){var e=Kl(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),Sc=function(e){this.entries=[],this.url=null,void 0!==e&&(M(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===oc(e,0)?dc(e,1):e:Kt(e)))};Sc.prototype={type:Vl,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,o,a,s,l=ko(e);if(l)for(n=(t=So(e,l)).next;!(i=u(n,t)).done;){if(o=(r=So(Ce(i.value))).next,(a=u(o,r)).done||(s=u(o,r)).done||!u(o,r).done)throw nc("Expected sequence with length 2");sc(this.entries,{key:Kt(a.value),value:Kt(s.value)})}else for(var c in e)oe(e,c)&&sc(this.entries,{key:c,value:Kt(e[c])})},parseQuery:function(e){if(e)for(var t,n,i=fc(e,"&"),r=0;r<i.length;)(t=i[r++]).length&&(n=fc(t,"="),sc(this.entries,{key:vc(cc(n)),value:vc(ac(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],i=0;i<t.length;)e=t[i++],sc(n,kc(e.key)+"="+kc(e.value));return ac(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ec=function(){zs(this,Ac);var e=arguments.length>0?arguments[0]:void 0;Wl(this,new Sc(e))},Ac=Ec.prototype;if(Ns(Ac,{append:function(e,t){_l(arguments.length,2);var n=$l(this);sc(n.entries,{key:Kt(e),value:Kt(t)}),n.updateURL()},delete:function(e){_l(arguments.length,1);for(var t=$l(this),n=t.entries,i=Kt(e),r=0;r<n.length;)n[r].key===i?uc(n,r,1):r++;t.updateURL()},get:function(e){_l(arguments.length,1);for(var t=$l(this).entries,n=Kt(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){_l(arguments.length,1);for(var t=$l(this).entries,n=Kt(e),i=[],r=0;r<t.length;r++)t[r].key===n&&sc(i,t[r].value);return i},has:function(e){_l(arguments.length,1);for(var t=$l(this).entries,n=Kt(e),i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){_l(arguments.length,1);for(var n,i=$l(this),r=i.entries,o=!1,a=Kt(e),s=Kt(t),l=0;l<r.length;l++)(n=r[l]).key===a&&(o?uc(r,l--,1):(o=!0,n.value=s));o||sc(r,{key:a,value:s}),i.updateURL()},sort:function(){var e=$l(this);Ul(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=$l(this).entries,i=bn(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new Tc(this,"keys")},values:function(){return new Tc(this,"values")},entries:function(){return new Tc(this,"entries")}},{enumerable:!0}),at(Ac,Bl,Ac.entries,{name:"entries"}),at(Ac,"toString",(function(){return $l(this).serialize()}),{enumerable:!0}),vn(Ec,Vl),_t({global:!0,forced:!hl},{URLSearchParams:Ec}),!hl&&I(Jl)){var Pc=w(ec.has),xc=w(ec.set),Cc=function(e){if(M(e)){var t,n=e.body;if(Wt(n)===Vl)return t=e.headers?new Jl(e.headers):new Jl,Pc(t,"content-type")||xc(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),nn(e,{body:m(0,Kt(n)),headers:m(0,t)})}return e};if(I(Xl)&&_t({global:!0,enumerable:!0,noTargetGet:!0,forced:!0},{fetch:function(e){return Xl(e,arguments.length>1?Cc(arguments[1]):{})}}),I(Ql)){var Oc=function(e){return zs(this,Zl),new Ql(e,arguments.length>1?Cc(arguments[1]):{})};Zl.constructor=Oc,Oc.prototype=Zl,_t({global:!0,forced:!0,noTargetGet:!0},{Request:Oc})}}var Ic,Mc={URLSearchParams:Ec,getState:$l},Lc=Gt.f,Nc=Sr.codeAt,jc=tt.set,Rc=tt.getterFor("URL"),_c=Mc.URLSearchParams,Fc=Mc.getState,Dc=o.URL,qc=o.TypeError,Hc=o.parseInt,Uc=Math.floor,Bc=Math.pow,Vc=w("".charAt),zc=w(/./.exec),Wc=w([].join),$c=w(1..toString),Kc=w([].pop),Yc=w([].push),Gc=w("".replace),Xc=w([].shift),Qc=w("".split),Jc=w("".slice),Zc=w("".toLowerCase),eu=w([].unshift),tu="Invalid scheme",nu="Invalid host",iu="Invalid port",ru=/[a-z]/i,ou=/[\d+-.a-z]/i,au=/\d/,su=/^0x/i,lu=/^[0-7]+$/,cu=/^\d+$/,uu=/^[\da-f]+$/i,fu=/[\0\t\n\r #%/:<>?@[\\\]^|]/,du=/[\0\t\n\r #/:<>?@[\\\]^|]/,hu=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,pu=/[\t\n\r]/g,mu=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)eu(t,e%256),e=Uc(e/256);return Wc(t,".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=$c(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},gu={},vu=vl({},gu,{" ":1,'"':1,"<":1,">":1,"`":1}),yu=vl({},vu,{"#":1,"?":1,"{":1,"}":1}),bu=vl({},yu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),wu=function(e,t){var n=Nc(e,0);return n>32&&n<127&&!oe(t,e)?e:encodeURIComponent(e)},ku={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Tu=function(e,t){var n;return 2==e.length&&zc(ru,Vc(e,0))&&(":"==(n=Vc(e,1))||!t&&"|"==n)},Su=function(e){var t;return e.length>1&&Tu(Jc(e,0,2))&&(2==e.length||"/"===(t=Vc(e,2))||"\\"===t||"?"===t||"#"===t)},Eu=function(e){return"."===e||"%2e"===Zc(e)},Au={},Pu={},xu={},Cu={},Ou={},Iu={},Mu={},Lu={},Nu={},ju={},Ru={},_u={},Fu={},Du={},qu={},Hu={},Uu={},Bu={},Vu={},zu={},Wu={},$u=function(e,t,n){var i,r,o,a=Kt(e);if(t){if(r=this.parse(a))throw qc(r);this.searchParams=null}else{if(void 0!==n&&(i=new $u(n,!0)),r=this.parse(a,null,i))throw qc(r);(o=Fc(new _c)).bindURL(this),this.searchParams=o}};$u.prototype={type:"URL",parse:function(e,t,n){var i,r,o,a,s,l=this,c=t||Au,u=0,f="",d=!1,h=!1,p=!1;for(e=Kt(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=Gc(e,hu,"")),e=Gc(e,pu,""),i=Ao(e);u<=i.length;){switch(r=i[u],c){case Au:if(!r||!zc(ru,r)){if(t)return tu;c=xu;continue}f+=Zc(r),c=Pu;break;case Pu:if(r&&(zc(ou,r)||"+"==r||"-"==r||"."==r))f+=Zc(r);else{if(":"!=r){if(t)return tu;f="",c=xu,u=0;continue}if(t&&(l.isSpecial()!=oe(ku,f)||"file"==f&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&ku[l.scheme]==l.port&&(l.port=null));f="","file"==l.scheme?c=Du:l.isSpecial()&&n&&n.scheme==l.scheme?c=Cu:l.isSpecial()?c=Lu:"/"==i[u+1]?(c=Ou,u++):(l.cannotBeABaseURL=!0,Yc(l.path,""),c=Vu)}break;case xu:if(!n||n.cannotBeABaseURL&&"#"!=r)return tu;if(n.cannotBeABaseURL&&"#"==r){l.scheme=n.scheme,l.path=sn(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=Wu;break}c="file"==n.scheme?Du:Iu;continue;case Cu:if("/"!=r||"/"!=i[u+1]){c=Iu;continue}c=Nu,u++;break;case Ou:if("/"==r){c=ju;break}c=Bu;continue;case Iu:if(l.scheme=n.scheme,r==Ic)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=sn(n.path),l.query=n.query;else if("/"==r||"\\"==r&&l.isSpecial())c=Mu;else if("?"==r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=sn(n.path),l.query="",c=zu;else{if("#"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=sn(n.path),l.path.length--,c=Bu;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=sn(n.path),l.query=n.query,l.fragment="",c=Wu}break;case Mu:if(!l.isSpecial()||"/"!=r&&"\\"!=r){if("/"!=r){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Bu;continue}c=ju}else c=Nu;break;case Lu:if(c=Nu,"/"!=r||"/"!=Vc(f,u+1))continue;u++;break;case Nu:if("/"!=r&&"\\"!=r){c=ju;continue}break;case ju:if("@"==r){d&&(f="%40"+f),d=!0,o=Ao(f);for(var m=0;m<o.length;m++){var g=o[m];if(":"!=g||p){var v=wu(g,bu);p?l.password+=v:l.username+=v}else p=!0}f=""}else if(r==Ic||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(d&&""==f)return"Invalid authority";u-=Ao(f).length+1,f="",c=Ru}else f+=r;break;case Ru:case _u:if(t&&"file"==l.scheme){c=Hu;continue}if(":"!=r||h){if(r==Ic||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()){if(l.isSpecial()&&""==f)return nu;if(t&&""==f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=Uu,t)return;continue}"["==r?h=!0:"]"==r&&(h=!1),f+=r}else{if(""==f)return nu;if(a=l.parseHost(f))return a;if(f="",c=Fu,t==_u)return}break;case Fu:if(!zc(au,r)){if(r==Ic||"/"==r||"?"==r||"#"==r||"\\"==r&&l.isSpecial()||t){if(""!=f){var y=Hc(f,10);if(y>65535)return iu;l.port=l.isSpecial()&&y===ku[l.scheme]?null:y,f=""}if(t)return;c=Uu;continue}return iu}f+=r;break;case Du:if(l.scheme="file","/"==r||"\\"==r)c=qu;else{if(!n||"file"!=n.scheme){c=Bu;continue}if(r==Ic)l.host=n.host,l.path=sn(n.path),l.query=n.query;else if("?"==r)l.host=n.host,l.path=sn(n.path),l.query="",c=zu;else{if("#"!=r){Su(Wc(sn(i,u),""))||(l.host=n.host,l.path=sn(n.path),l.shortenPath()),c=Bu;continue}l.host=n.host,l.path=sn(n.path),l.query=n.query,l.fragment="",c=Wu}}break;case qu:if("/"==r||"\\"==r){c=Hu;break}n&&"file"==n.scheme&&!Su(Wc(sn(i,u),""))&&(Tu(n.path[0],!0)?Yc(l.path,n.path[0]):l.host=n.host),c=Bu;continue;case Hu:if(r==Ic||"/"==r||"\\"==r||"?"==r||"#"==r){if(!t&&Tu(f))c=Bu;else if(""==f){if(l.host="",t)return;c=Uu}else{if(a=l.parseHost(f))return a;if("localhost"==l.host&&(l.host=""),t)return;f="",c=Uu}continue}f+=r;break;case Uu:if(l.isSpecial()){if(c=Bu,"/"!=r&&"\\"!=r)continue}else if(t||"?"!=r)if(t||"#"!=r){if(r!=Ic&&(c=Bu,"/"!=r))continue}else l.fragment="",c=Wu;else l.query="",c=zu;break;case Bu:if(r==Ic||"/"==r||"\\"==r&&l.isSpecial()||!t&&("?"==r||"#"==r)){if(".."===(s=Zc(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"==r||"\\"==r&&l.isSpecial()||Yc(l.path,"")):Eu(f)?"/"==r||"\\"==r&&l.isSpecial()||Yc(l.path,""):("file"==l.scheme&&!l.path.length&&Tu(f)&&(l.host&&(l.host=""),f=Vc(f,0)+":"),Yc(l.path,f)),f="","file"==l.scheme&&(r==Ic||"?"==r||"#"==r))for(;l.path.length>1&&""===l.path[0];)Xc(l.path);"?"==r?(l.query="",c=zu):"#"==r&&(l.fragment="",c=Wu)}else f+=wu(r,yu);break;case Vu:"?"==r?(l.query="",c=zu):"#"==r?(l.fragment="",c=Wu):r!=Ic&&(l.path[0]+=wu(r,gu));break;case zu:t||"#"!=r?r!=Ic&&("'"==r&&l.isSpecial()?l.query+="%27":l.query+="#"==r?"%23":wu(r,gu)):(l.fragment="",c=Wu);break;case Wu:r!=Ic&&(l.fragment+=wu(r,vu))}u++}},parseHost:function(e){var t,n,i;if("["==Vc(e,0)){if("]"!=Vc(e,e.length-1))return nu;if(t=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return Vc(e,f)};if(":"==d()){if(":"!=Vc(e,1))return;f+=2,u=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=n=0;n<4&&zc(uu,d());)t=16*t+Hc(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,c>6)return;for(i=0;d();){if(r=null,i>0){if(!("."==d()&&i<4))return;f++}if(!zc(au,d()))return;for(;zc(au,d());){if(o=Hc(d(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;f++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==d()){if(f++,!d())return}else if(d())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}(Jc(e,1,-1)),!t)return nu;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,i=[],r=Il(Ol(Ml(e),wl,"."),".");for(t=0;t<r.length;t++)n=r[t],Cl(i,Sl(bl,n)?"xn--"+jl(n):n);return xl(i,".")}(e),zc(fu,e))return nu;if(t=function(e){var t,n,i,r,o,a,s,l=Qc(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(o=10,r.length>1&&"0"==Vc(r,0)&&(o=zc(su,r)?16:8,r=Jc(r,8==o?1:2)),""===r)a=0;else{if(!zc(10==o?cu:8==o?lu:uu,r))return e;a=Hc(r,o)}Yc(n,a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=Bc(256,5-t))return null}else if(a>255)return null;for(s=Kc(n),i=0;i<n.length;i++)s+=n[i]*Bc(256,3-i);return s}(e),null===t)return nu;this.host=t}else{if(zc(du,e))return nu;for(t="",n=Ao(e),i=0;i<n.length;i++)t+=wu(n[i],gu);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return oe(ku,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Tu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",e.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=mu(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+Wc(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw qc(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Ku(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+mu(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Kt(e)+":",Au)},getUsername:function(){return this.username},setUsername:function(e){var t=Ao(Kt(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=wu(t[n],bu)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ao(Kt(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=wu(t[n],bu)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?mu(e):mu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ru)},getHostname:function(){var e=this.host;return null===e?"":mu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,_u)},getPort:function(){var e=this.port;return null===e?"":Kt(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Kt(e))?this.port=null:this.parse(e,Fu))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Wc(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Uu))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Kt(e))?this.query=null:("?"==Vc(e,0)&&(e=Jc(e,1)),this.query="",this.parse(e,zu)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Kt(e))?("#"==Vc(e,0)&&(e=Jc(e,1)),this.fragment="",this.parse(e,Wu)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ku=function(e){var t=zs(this,Yu),n=_l(arguments.length,1)>1?arguments[1]:void 0,i=jc(t,new $u(e,!1,n));s||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Yu=Ku.prototype,Gu=function(e,t){return{get:function(){return Rc(this)[e]()},set:t&&function(e){return Rc(this)[t](e)},configurable:!0,enumerable:!0}};if(s&&Lc(Yu,{href:Gu("serialize","setHref"),origin:Gu("getOrigin"),protocol:Gu("getProtocol","setProtocol"),username:Gu("getUsername","setUsername"),password:Gu("getPassword","setPassword"),host:Gu("getHost","setHost"),hostname:Gu("getHostname","setHostname"),port:Gu("getPort","setPort"),pathname:Gu("getPathname","setPathname"),search:Gu("getSearch","setSearch"),searchParams:Gu("getSearchParams"),hash:Gu("getHash","setHash")}),at(Yu,"toJSON",(function(){return Rc(this).serialize()}),{enumerable:!0}),at(Yu,"toString",(function(){return Rc(this).serialize()}),{enumerable:!0}),Dc){var Xu=Dc.createObjectURL,Qu=Dc.revokeObjectURL;Xu&&at(Ku,"createObjectURL",bn(Xu,Dc)),Qu&&at(Ku,"revokeObjectURL",bn(Qu,Dc))}vn(Ku,"URL"),_t({global:!0,forced:!hl,sham:!s},{URL:Ku});var Ju,Zu=Ee.f,ef=w("".startsWith),tf=w("".slice),nf=Math.min,rf=Ha("startsWith"),of=!(rf||(Ju=Zu(String.prototype,"startsWith"),!Ju||Ju.writable));_t({target:"String",proto:!0,forced:!of&&!rf},{startsWith:function(e){var t=Kt(C(this));Da(e);var n=pt(nf(arguments.length>1?arguments[1]:void 0,t.length)),i=Kt(e);return ef?ef(t,i,n):tf(t,n,n+i.length)===i}});var af=Rn.find,sf="find",lf=!0;sf in[]&&Array(1).find((function(){lf=!1})),_t({target:"Array",proto:!0,forced:lf},{find:function(e){return af(this,e,arguments.length>1?arguments[1]:void 0)}}),no(sf);var cf=o.TypeError,uf=pe("species"),ff=function(e,t){var n,i=Ce(e).constructor;return void 0===i||null==(n=Ce(i)[uf])?t:function(e){if(On(e))return e;throw cf($(e)+" is not a constructor")}(n)},df=Uo.UNSUPPORTED_Y,hf=4294967295,pf=Math.min,mf=[].push,gf=w(/./.exec),vf=w(mf),yf=w("".slice),bf=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));ps("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=Kt(C(this)),r=void 0===n?hf:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!_a(e))return u(t,i,e,r);for(var o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=new RegExp(e.source,c+"g");(o=u(ia,d,i))&&!((a=d.lastIndex)>f&&(vf(l,yf(i,f,o.index)),o.length>1&&o.index<i.length&&gi(mf,l,sn(o,1)),s=o[0].length,f=a,l.length>=r));)d.lastIndex===o.index&&d.lastIndex++;return f===i.length?!s&&gf(d,"")||vf(l,""):vf(l,yf(i,f)),l.length>r?sn(l,0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:u(t,this,e,n)}:t,[function(t,n){var r=C(this),o=null==t?void 0:G(t,e);return o?u(o,t,r,n):u(i,Kt(r),t,n)},function(e,r){var o=Ce(this),a=Kt(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var l=ff(o,RegExp),c=o.unicode,u=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(df?"g":"y"),f=new l(df?"^(?:"+o.source+")":o,u),d=void 0===r?hf:r>>>0;if(0===d)return[];if(0===a.length)return null===ys(f,a)?[a]:[];for(var h=0,p=0,m=[];p<a.length;){f.lastIndex=df?0:p;var g,v=ys(f,df?yf(a,p):a);if(null===v||(g=pf(pt(f.lastIndex+(df?p:0)),a.length))===h)p=gs(a,p,c);else{if(vf(m,yf(a,h,p)),m.length===d)return m;for(var y=1;y<=v.length-1;y++)if(vf(m,v[y]),m.length===d)return m;p=h=g}}return vf(m,yf(a,h)),m}]}),!bf,df);var wf=pe("isConcatSpreadable"),kf=9007199254740991,Tf="Maximum allowed index exceeded",Sf=o.TypeError,Ef=H>=51||!a((function(){var e=[];return e[wf]=!1,e.concat()[0]!==e})),Af=Ni("concat"),Pf=function(e){if(!M(e))return!1;var t=e[wf];return void 0!==t?!!t:wn(e)};_t({target:"Array",proto:!0,forced:!Ef||!Af},{concat:function(e){var t,n,i,r,o,a=ie(this),s=Ln(a,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(Pf(o=-1===t?a:arguments[t])){if(l+(r=mt(o))>kf)throw Sf(Tf);for(n=0;n<r;n++,l++)n in o&&rn(s,l,o[n])}else{if(l>=kf)throw Sf(Tf);rn(s,l++,o)}return s.length=l,s}});var xf=p.f,Cf=w(xf),Of=w([].push),If=function(e){return function(t){for(var n,i=O(t),r=Ft(i),o=r.length,a=0,l=[];o>a;)n=r[a++],s&&!Cf(i,n)||Of(l,e?[n,i[n]]:i[n]);return l}},Mf={entries:If(!0),values:If(!1)},Lf=Mf.entries;_t({target:"Object",stat:!0},{entries:function(e){return Lf(e)}});var Nf,jf=ot.PROPER,Rf=Ga.trim;_t({target:"String",proto:!0,forced:(Nf="trim",a((function(){return!!Va[Nf]()||"​…᠎"!=="​…᠎"[Nf]()||jf&&Va[Nf].name!==Nf})))},{trim:function(){return Rf(this)}});var _f=Math.floor,Ff=w("".charAt),Df=w("".replace),qf=w("".slice),Hf=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Uf=/\$([$&'`]|\d{1,2})/g,Bf=function(e,t,n,i,r,o){var a=n+e.length,s=i.length,l=Uf;return void 0!==r&&(r=ie(r),l=Hf),Df(o,l,(function(o,l){var c;switch(Ff(l,0)){case"$":return"$";case"&":return e;case"`":return qf(t,0,n);case"'":return qf(t,a);case"<":c=r[qf(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var f=_f(u/10);return 0===f?o:f<=s?void 0===i[f-1]?Ff(l,1):i[f-1]+Ff(l,1):o}c=i[u-1]}return void 0===c?"":c}))},Vf=pe("replace"),zf=Math.max,Wf=Math.min,$f=w([].concat),Kf=w([].push),Yf=w("".indexOf),Gf=w("".slice),Xf="$0"==="a".replace(/./,"$0"),Qf=!!/./[Vf]&&""===/./[Vf]("a","$0"),Jf=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));ps("replace",(function(e,t,n){var i=Qf?"$":"$0";return[function(e,n){var i=C(this),r=null==e?void 0:G(e,Vf);return r?u(r,e,i,n):u(t,Kt(i),e,n)},function(e,r){var o=Ce(this),a=Kt(e);if("string"==typeof r&&-1===Yf(r,i)&&-1===Yf(r,"$<")){var s=n(t,o,a,r);if(s.done)return s.value}var l=I(r);l||(r=Kt(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var f=[];;){var d=ys(o,a);if(null===d)break;if(Kf(f,d),!c)break;""===Kt(d[0])&&(o.lastIndex=gs(a,pt(o.lastIndex),u))}for(var h,p="",m=0,g=0;g<f.length;g++){for(var v=Kt((d=f[g])[0]),y=zf(Wf(ct(d.index),a.length),0),b=[],w=1;w<d.length;w++)Kf(b,void 0===(h=d[w])?h:String(h));var k=d.groups;if(l){var T=$f([v],b,y,a);void 0!==k&&Kf(T,k);var S=Kt(gi(r,void 0,T))}else S=Bf(v,a,y,b,k,r);y>=m&&(p+=Gf(a,m,y)+S,m=y+v.length)}return p+Gf(a,m)}]}),!Jf||!Xf||Qf);var Zf=RegExp.prototype,ed=function(e){var t=e.flags;return void 0!==t||"flags"in Zf||oe(e,"flags")||!j(Zf,e)?t:u(_o,e)},td=ot.PROPER,nd="toString",id=RegExp.prototype.toString,rd=a((function(){return"/a/b"!=id.call({source:"a",flags:"b"})})),od=td&&id.name!=nd;(rd||od)&&at(RegExp.prototype,nd,(function(){var e=Ce(this);return"/"+Kt(e.source)+"/"+Kt(ed(e))}),{unsafe:!0});var ad=pe("species"),sd=St.f,ld=tt.enforce,cd=pe("match"),ud=o.RegExp,fd=ud.prototype,dd=o.SyntaxError,hd=w(fd.exec),pd=w("".charAt),md=w("".replace),gd=w("".indexOf),vd=w("".slice),yd=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,bd=/a/g,wd=/a/g,kd=new ud(bd)!==bd,Td=Uo.MISSED_STICKY,Sd=Uo.UNSUPPORTED_Y,Ed=s&&(!kd||Td||Vo||Wo||a((function(){return wd[cd]=!1,ud(bd)!=bd||ud(wd)==wd||"/a/i"!=ud(bd,"i")})));if(jt("RegExp",Ed)){for(var Ad=function(e,t){var n,i,r,o,a,s,l=j(fd,this),c=_a(e),u=void 0===t,f=[],d=e;if(!l&&c&&u&&e.constructor===Ad)return e;if((c||j(fd,e))&&(e=e.source,u&&(t=ed(d))),e=void 0===e?"":Kt(e),t=void 0===t?"":Kt(t),d=e,Vo&&"dotAll"in bd&&(i=!!t&&gd(t,"s")>-1)&&(t=md(t,/s/g,"")),n=t,Td&&"sticky"in bd&&(r=!!t&&gd(t,"y")>-1)&&Sd&&(t=md(t,/y/g,"")),Wo&&(o=function(e){for(var t,n=e.length,i=0,r="",o=[],a={},s=!1,l=!1,c=0,u="";i<=n;i++){if("\\"===(t=pd(e,i)))t+=pd(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:hd(yd,vd(e,i+1))&&(i+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||oe(a,u))throw new dd("Invalid capture group name");a[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:r+=t}return[r,o]}(e),e=o[0],f=o[1]),a=da(ud(e,t),l?this:fd,Ad),(i||r||f.length)&&(s=ld(a),i&&(s.dotAll=!0,s.raw=Ad(function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(t=pd(e,i))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+pd(e,++i);return r}(e),n)),r&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{_e(a,"source",""===d?"(?:)":d)}catch(e){}return a},Pd=sd(ud),xd=0;Pd.length>xd;)fa(Ad,ud,Pd[xd++]);fd.constructor=Ad,Ad.prototype=fd,at(o,"RegExp",Ad)}!function(e){var t=N(e),n=Re.f;s&&t&&!t[ad]&&n(t,ad,{configurable:!0,get:function(){return this}})}("RegExp");var Cd=Re.f,Od=tt.get,Id=RegExp.prototype,Md=o.TypeError;s&&Vo&&Cd(Id,"dotAll",{configurable:!0,get:function(){if(this!==Id){if("RegExp"===S(this))return!!Od(this).dotAll;throw Md("Incompatible receiver, RegExp required")}}});var Ld=Uo.MISSED_STICKY,Nd=Re.f,jd=tt.get,Rd=RegExp.prototype,_d=o.TypeError;s&&Ld&&Nd(Rd,"sticky",{configurable:!0,get:function(){if(this!==Rd){if("RegExp"===S(this))return!!jd(this).sticky;throw _d("Incompatible receiver, RegExp required")}}});var Fd=Math.ceil,Dd=Math.floor;_t({target:"Math",stat:!0},{trunc:function(e){return(e>0?Dd:Fd)(e)}});var qd=w([].join),Hd=P!=Object,Ud=Vi("join",",");_t({target:"Array",proto:!0,forced:Hd||!Ud},{join:function(e){return qd(O(this),void 0===e?",":e)}});var Bd=R.match(/firefox\/(\d+)/i),Vd=!!Bd&&+Bd[1],zd=/MSIE|Trident/.test(R),Wd=R.match(/AppleWebKit\/(\d+)\./),$d=!!Wd&&+Wd[1],Kd=[],Yd=w(Kd.sort),Gd=w(Kd.push),Xd=a((function(){Kd.sort(void 0)})),Qd=a((function(){Kd.sort(null)})),Jd=Vi("sort"),Zd=!a((function(){if(H)return H<70;if(!(Vd&&Vd>3)){if(zd)return!0;if($d)return $d<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)Kd.push({k:t+i,v:n})}for(Kd.sort((function(e,t){return t.v-e.v})),i=0;i<Kd.length;i++)t=Kd[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));_t({target:"Array",proto:!0,forced:Xd||!Qd||!Jd||!Zd},{sort:function(e){void 0!==e&&Y(e);var t=ie(this);if(Zd)return void 0===e?Yd(t):Yd(t,e);var n,i,r=[],o=mt(t);for(i=0;i<o;i++)i in t&&Gd(r,t[i]);for(Ul(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Kt(t)>Kt(n)?1:-1}}(e)),n=r.length,i=0;i<n;)t[i]=r[i++];for(;i<o;)delete t[i++];return t}});var eh=Mf.values;_t({target:"Object",stat:!0},{values:function(e){return eh(e)}});var th=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};_t({target:"Math",stat:!0},{sign:th}),_t({global:!0},{globalThis:o});var nh=Ni("splice"),ih=o.TypeError,rh=Math.max,oh=Math.min,ah=9007199254740991,sh="Maximum allowed length exceeded";_t({target:"Array",proto:!0,forced:!nh},{splice:function(e,t){var n,i,r,o,a,s,l=ie(this),c=mt(l),u=dt(e,c),f=arguments.length;if(0===f?n=i=0:1===f?(n=0,i=c-u):(n=f-2,i=oh(rh(ct(t),0),c-u)),c+n-i>ah)throw ih(sh);for(r=Ln(l,i),o=0;o<i;o++)(a=u+o)in l&&rn(r,o,l[a]);if(r.length=i,n<i){for(o=u;o<c-i;o++)s=o+n,(a=o+i)in l?l[s]=l[a]:delete l[s];for(o=c;o>c-i+n;o--)delete l[o-1]}else if(n>i)for(o=c-i;o>u;o--)s=o+n-1,(a=o+i-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+u]=arguments[o+2];return l.length=c-i+n,r}});var lh=Rn.findIndex,ch="findIndex",uh=!0;ch in[]&&Array(1).findIndex((function(){uh=!1})),_t({target:"Array",proto:!0,forced:uh},{findIndex:function(e){return lh(this,e,arguments.length>1?arguments[1]:void 0)}}),no(ch);var fh=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};ps("search",(function(e,t,n){return[function(t){var n=C(this),i=null==t?void 0:G(t,e);return i?u(i,t,n):new RegExp(t)[e](Kt(n))},function(e){var i=Ce(this),r=Kt(e),o=n(t,i,r);if(o.done)return o.value;var a=i.lastIndex;fh(a,0)||(i.lastIndex=0);var s=ys(i,r);return fh(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var dh=["premium","referrerPolicy"];function hh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ph(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(n),!0).forEach((function(t){mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yh={addCSS:!0,thumbWidth:15,watch:!0};function bh(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var wh=function(e){return null!=e?e.constructor:null},kh=function(e,t){return!!(e&&t&&e instanceof t)},Th=function(e){return null==e},Sh=function(e){return wh(e)===Object},Eh=function(e){return wh(e)===String},Ah=function(e){return Array.isArray(e)},Ph=function(e){return kh(e,NodeList)},xh=Eh,Ch=Ah,Oh=Ph,Ih=function(e){return kh(e,Element)},Mh=function(e){return kh(e,Event)},Lh=function(e){return Th(e)||(Eh(e)||Ah(e)||Ph(e))&&!e.length||Sh(e)&&!Object.keys(e).length};function Nh(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var jh,Rh,_h,Fh=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Ih(t)?this.element=t:xh(t)&&(this.element=document.querySelector(t)),Ih(this.element)&&Lh(this.element.rangeTouch)&&(this.config=vh({},yh,{},n),this.init())}return function(e,t,n){t&&ph(e.prototype,t),n&&ph(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!Mh(t))return null;var n,i=t.target,r=t.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,a=parseFloat(i.getAttribute("max"))||100,s=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(r.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+Nh(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&Mh(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(Lh(t)||xh(t)?i=Array.from(document.querySelectorAll(xh(t)?t:'input[type="range"]')):Ih(t)?i=[t]:Oh(t)?i=Array.from(t):Ch(t)&&(i=t.filter(Ih)),Lh(i))return null;var r=vh({},yh,{},n);if(xh(t)&&r.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Ih(n)&&bh(n,t)&&new e(n,r)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),Dh=function(e){return null!=e?e.constructor:null},qh=function(e,t){return Boolean(e&&t&&e instanceof t)},Hh=function(e){return null==e},Uh=function(e){return Dh(e)===Object},Bh=function(e){return Dh(e)===String},Vh=function(e){return Dh(e)===Function},zh=function(e){return Array.isArray(e)},Wh=function(e){return qh(e,NodeList)},$h=function(e){return Hh(e)||(Bh(e)||zh(e)||Wh(e))&&!e.length||Uh(e)&&!Object.keys(e).length},Kh=Hh,Yh=Uh,Gh=function(e){return Dh(e)===Number&&!Number.isNaN(e)},Xh=Bh,Qh=function(e){return Dh(e)===Boolean},Jh=Vh,Zh=zh,ep=Wh,tp=function(e){return null!==e&&"object"==Na(e)&&1===e.nodeType&&"object"==Na(e.style)&&"object"==Na(e.ownerDocument)},np=function(e){return qh(e,Event)},ip=function(e){return qh(e,KeyboardEvent)},rp=function(e){return qh(e,TextTrack)||!Hh(e)&&Bh(e.kind)},op=function(e){return qh(e,Promise)&&Vh(e.then)},ap=function(e){if(qh(e,window.URL))return!0;if(!Bh(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!$h(new URL(t).hostname)}catch(e){return!1}},sp=$h,lp=(jh=document.createElement("span"),Rh={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},_h=Object.keys(Rh).find((function(e){return void 0!==jh.style[e]})),!!Xh(_h)&&Rh[_h]);function cp(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var up={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function fp(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function dp(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(!n.length)return e;var r=n.shift();return Yh(r)?(Object.keys(r).forEach((function(t){Yh(r[t])?(Object.keys(e).includes(t)||Object.assign(e,Yi({},t,{})),dp(e[t],r[t])):Object.assign(e,Yi({},t,r[t]))})),dp.apply(void 0,[e].concat(n))):e}function hp(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var i=n>0?t.cloneNode(!0):t,r=e.parentNode,o=e.nextSibling;i.appendChild(e),o?r.insertBefore(i,o):r.appendChild(i)}))}function pp(e,t){tp(e)&&!sp(t)&&Object.entries(t).filter((function(e){var t=La(e,2)[1];return!Kh(t)})).forEach((function(t){var n=La(t,2),i=n[0],r=n[1];return e.setAttribute(i,r)}))}function mp(e,t,n){var i=document.createElement(e);return Yh(t)&&pp(i,t),Xh(n)&&(i.innerText=n),i}function gp(e,t,n,i){tp(t)&&t.appendChild(mp(e,n,i))}function vp(e){ep(e)||Zh(e)?Array.from(e).forEach(vp):tp(e)&&tp(e.parentNode)&&e.parentNode.removeChild(e)}function yp(e){if(tp(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function bp(e,t){return tp(t)&&tp(t.parentNode)&&tp(e)?(t.parentNode.replaceChild(e,t),e):null}function wp(e,t){if(!Xh(e)||sp(e))return{};var n={},i=dp({},t);return e.split(",").forEach((function(e){var t=e.trim(),r=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=La(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Xh(i.class)?n.class="".concat(i.class," ").concat(r):n.class=r;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),dp(i,n)}function kp(e,t){if(tp(e)){var n=t;Qh(n)||(n=!e.hidden),e.hidden=n}}function Tp(e,t,n){if(ep(e))return Array.from(e).map((function(e){return Tp(e,t,n)}));if(tp(e)){var i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function Sp(e,t){return tp(e)&&e.classList.contains(t)}function Ep(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function Ap(e){return this.elements.container.querySelectorAll(e)}function Pp(e){return this.elements.container.querySelector(e)}function xp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];tp(e)&&(e.focus({preventScroll:!0}),t&&Tp(e,this.config.classNames.tabFocus))}var Cp={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Op={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var i=up.isIPhone&&n&&Op.playsinline,r=Op[e]||"html5"!==t;return{api:r,ui:r&&Op.rangeInput&&("video"!==e||!up.isIPhone||i)}},pip:!(up.isIPhone||!Jh(mp("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||mp("video").disablePictureInPicture)),airplay:Jh(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(sp(e))return!1;var t=La(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(Cp).includes(n)&&(n+='; codecs="'.concat(Cp[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==lp,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ip=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function Mp(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!sp(t)&&Jh(n)){var s=t.split(" "),l=a;Ip&&(l={passive:o,capture:a}),s.forEach((function(t){i&&i.eventListeners&&r&&i.eventListeners.push({element:e,type:t,callback:n,options:l}),e[r?"addEventListener":"removeEventListener"](t,n,l)}))}}function Lp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Mp.call(this,e,t,n,!0,i,r)}function Np(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Mp.call(this,e,t,n,!1,i,r)}function jp(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];Np(e,n,a,r,o),i.apply(t,l)};Mp.call(this,e,n,a,!0,r,o)}function Rp(e){var t=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]:{};if(tp(e)&&!sp(t)){var r=new CustomEvent(t,{bubbles:n,detail:Xi(Xi({},i),{},{plyr:this})});e.dispatchEvent(r)}}function _p(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,i=e.callback,r=e.options;t.removeEventListener(n,i,r)})),this.eventListeners=[])}function Fp(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):Lp.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Dp(e){op(e)&&e.then(null,(function(){}))}function qp(e){return Zh(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}function Hp(e,t){return Zh(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}function Up(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}var Bp=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((function(e,t){var n=La(t,2),i=n[0],r=n[1];return Xi(Xi({},e),{},Yi({},i/r,[i,r]))}),{});function Vp(e){return!!(Zh(e)||Xh(e)&&e.includes(":"))&&(Zh(e)?e:e.split(":")).map(Number).every(Gh)}function zp(e){if(!Zh(e)||!e.every(Gh))return null;var t=La(e,2),n=t[0],i=t[1],r=function e(t,n){return 0===n?t:e(n,t%n)}(n,i);return[n/r,i/r]}function Wp(e){var t=function(e){return Vp(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!sp(this.embed)&&Zh(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var i=this.media;n=[i.videoWidth,i.videoHeight]}return zp(n)}function $p(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=Wp.call(this,e);if(!Zh(n))return{};var i=La(zp(n),2),r=i[0],o=i[1],a=100/r*o;if(Up("aspect-ratio: ".concat(r,"/").concat(o))?t.style.aspectRatio="".concat(r,"/").concat(o):t.style.paddingBottom="".concat(a,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var s=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(s-a)/(s/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(l,"%)")}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:n}}function Kp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,i=e/t,r=Hp(Object.keys(Bp),i);return Math.abs(r-i)<=n?Bp[r]:[e,t]}var Yp={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!sp(n)||Op.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Yp.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,sp(this.config.ratio)||$p.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=Yp.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Jh(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=Yp.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var i=e.media,r=i.currentTime,o=i.paused,a=i.preload,s=i.readyState,l=i.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=r,o||Dp(e.play())})),e.media.load())}Rp.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(vp(Yp.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Gp(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function Xp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return sp(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}var Qp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())},Jp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))};function Zp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=Qp(t,"-"," "),t=Qp(t,"_"," "),t=Jp(t),Qp(t," ","")}function em(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var tm={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},nm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(sp(e)||sp(t))return"";var n=fp(t.i18n,e);if(sp(n))return Object.keys(tm).includes(e)?tm[e]:"";var i={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(i).forEach((function(e){var t=La(e,2),i=t[0],r=t[1];n=Qp(n,i,r)})),n},im=function(){function e(t){var n=this;Oa(this,e),hh(this,"get",(function(t){if(!e.supported||!n.enabled)return null;var i=window.localStorage.getItem(n.key);if(sp(i))return null;var r=JSON.parse(i);return Xh(t)&&t.length?r[t]:r})),hh(this,"set",(function(t){if(e.supported&&n.enabled&&Yh(t)){var i=n.get();sp(i)&&(i={}),dp(i,t);try{window.localStorage.setItem(n.key,JSON.stringify(i))}catch(t){}}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Ma(e,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}();function rm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,i){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(r.responseText))}catch(e){n(r.responseText)}else n(r.response)})),r.addEventListener("error",(function(){throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){i(e)}}))}function om(e,t){if(Xh(e)){var n=Xh(t),i=function(){return null!==document.getElementById(t)},r=function(e,t){e.innerHTML=t,n&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!i()){var o=im.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("cache-".concat(t));if(null!==s){var l=JSON.parse(s);r(a,l.content)}}rm(e).then((function(e){if(!sp(e)){if(o)try{window.localStorage.setItem("cache-".concat(t),JSON.stringify({content:e}))}catch(e){}r(a,e)}})).catch((function(){}))}}}var am=function(e){return Math.trunc(e/60/60%60,10)},sm=function(e){return Math.trunc(e%60,10)};function lm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Gh(e))return lm(void 0,t,n);var i,r=function(e){return"0".concat(e).slice(-2)},o=am(e),a=(i=e,Math.trunc(i/60%60,10)),s=sm(e);return o=t||o>0?"".concat(o,":"):"","".concat(n&&e>0?"-":"").concat(o).concat(r(a),":").concat(r(s))}var cm={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,n=e.host!==t||up.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=Pp.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Ap.call(this,this.config.selectors.buttons.play),pause:Pp.call(this,this.config.selectors.buttons.pause),restart:Pp.call(this,this.config.selectors.buttons.restart),rewind:Pp.call(this,this.config.selectors.buttons.rewind),fastForward:Pp.call(this,this.config.selectors.buttons.fastForward),mute:Pp.call(this,this.config.selectors.buttons.mute),pip:Pp.call(this,this.config.selectors.buttons.pip),airplay:Pp.call(this,this.config.selectors.buttons.airplay),settings:Pp.call(this,this.config.selectors.buttons.settings),captions:Pp.call(this,this.config.selectors.buttons.captions),fullscreen:Pp.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Pp.call(this,this.config.selectors.progress),this.elements.inputs={seek:Pp.call(this,this.config.selectors.inputs.seek),volume:Pp.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Pp.call(this,this.config.selectors.display.buffer),currentTime:Pp.call(this,this.config.selectors.display.currentTime),duration:Pp.call(this,this.config.selectors.display.duration)},tp(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n="http://www.w3.org/2000/svg",i=cm.getIconUrl.call(this),r="".concat(i.cors?"":i.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(n,"svg");pp(o,dp(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(n,"use"),s="".concat(r,"-").concat(e);return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",s),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),o.appendChild(a),o},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=nm(e,this.config);return mp("span",Xi(Xi({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(e){if(sp(e))return null;var t=mp("span",{class:this.config.classNames.menu.value});return t.appendChild(mp("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,i=dp({},t),r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=Zp(e)).charAt(0).toLowerCase()+e.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(i).includes(e)&&(o[e]=i[e],delete i[e])})),"button"!==o.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((function(e){return e===n.config.classNames.control}))||dp(i,{class:"".concat(i.class," ").concat(this.config.classNames.control)}):i.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",o.label="play",o.icon="play";break;default:sp(o.label)&&(o.label=r),sp(o.icon)&&(o.icon=e)}var a=mp(o.element);return o.toggle?(a.appendChild(cm.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(cm.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(cm.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(cm.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(cm.createIcon.call(this,o.icon)),a.appendChild(cm.createLabel.call(this,o.label))),dp(i,wp(this.config.selectors.buttons[r],i)),pp(a,i),"play"===r?(Zh(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(a)):this.elements.buttons[r]=a,a},createRange:function(e,t){var n=mp("input",dp(wp(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":nm(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,cm.updateRangeFill.call(this,n),Fh.setup(n),n},createProgress:function(e,t){var n=mp("progress",dp(wp(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(mp("span",null,"0"));var i={played:"played",buffer:"buffered"}[e],r=i?nm(i,this.config):"";n.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=wp(this.config.selectors.display[e],t),i=mp("div",dp(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":nm(e,this.config)}),"00:00");return this.elements.display[e]=i,i},bindMenuItemShortcuts:function(e,t){var n=this;Lp.call(this,e,"keydown keyup",(function(i){if(["Space","ArrowUp","ArrowDown","ArrowRight"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),"keydown"!==i.type)){var r,o=Ep(e,'[role="menuitemradio"]');if(!o&&["Space","ArrowRight"].includes(i.key))cm.showMenuPanel.call(n,t,!0);else"Space"!==i.key&&("ArrowDown"===i.key||o&&"ArrowRight"===i.key?(r=e.nextElementSibling,tp(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,tp(r)||(r=e.parentNode.lastElementChild)),xp.call(n,r,!0))}}),!1),Lp.call(this,e,"keyup",(function(e){"Return"===e.key&&cm.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,i=e.list,r=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,l=e.checked,c=void 0!==l&&l,u=wp(this.config.selectors.inputs[r]),f=mp("button",dp(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),d=mp("span");d.innerHTML=o,tp(s)&&d.appendChild(s),f.appendChild(d),Object.defineProperty(f,"checked",{enumerable:!0,get:function(){return"true"===f.getAttribute("aria-checked")},set:function(e){e&&Array.from(f.parentNode.children).filter((function(e){return Ep(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),f.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(f,"click keyup",(function(e){if(!ip(e)||"Space"===e.key){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,r){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}cm.showMenuPanel.call(t,"home",ip(e))}}),r,!1),cm.bindMenuItemShortcuts.call(this,f,r),i.appendChild(f)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Gh(e)?lm(e,am(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];tp(e)&&Gh(t)&&(e.innerText=cm.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(tp(this.elements.inputs.volume)&&cm.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),tp(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tp(e)&&(e.value=t,cm.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&np(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&cm.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var i=Gh(n)?n:0,r=tp(e)?e:t.elements.display.buffer;if(tp(r)){r.value=i;var o=r.getElementsByTagName("span")[0];tp(o)&&(o.childNodes[0].nodeValue=i)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=np(e)?e.target:e;if(tp(t)&&"range"===t.getAttribute("type")){if(Ep(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=cm.formatTime(this.currentTime),i=cm.formatTime(this.duration),r=nm("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",n).replace("{duration}",i))}else if(Ep(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);up.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t,n;if(this.config.tooltips.seek&&tp(this.elements.inputs.seek)&&tp(this.elements.display.seekTooltip)&&0!==this.duration){var i=this.elements.display.seekTooltip,r="".concat(this.config.classNames.tooltip,"--visible"),o=function(e){return Tp(i,r,e)};if(this.touch)o(!1);else{var a=0,s=this.elements.progress.getBoundingClientRect();if(np(e))a=100/s.width*(e.pageX-s.left);else{if(!Sp(i,r))return;a=parseFloat(i.style.left,10)}a<0?a=0:a>100&&(a=100);var l=this.duration/100*a;i.innerText=cm.formatTime(l);var c=null===(t=this.config.markers)||void 0===t||null===(n=t.points)||void 0===n?void 0:n.find((function(e){return e.time===Math.round(l)}));c&&i.insertAdjacentHTML("afterbegin","".concat(c.label,"<br>")),i.style.left="".concat(a,"%"),np(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!tp(this.elements.display.duration)&&this.config.invertTime;cm.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||cm.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return kp(this.elements.display.currentTime,!0),void kp(this.elements.progress,!0);tp(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=tp(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&cm.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&cm.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&cm.setMarkers.call(this),cm.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){kp(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var i=this.elements.settings.panels[e],r=null,o=t;if("captions"===e)r=this.currentTrack;else{if(r=sp(n)?this[e]:n,sp(r)&&(r=this.config[e].default),!sp(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(tp(o)||(o=i&&i.querySelector('[role="menu"]')),tp(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=cm.getLabel.call(this,e,r);var a=o&&o.querySelector('[value="'.concat(r,'"]'));tp(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?nm("normal",this.config):"".concat(t,"&times;");case"quality":if(Gh(t)){var n=nm("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return Jp(t);case"captions":return dm.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(tp(this.elements.settings.panels.quality)){var n="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');Zh(e)&&(this.options.quality=qp(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!sp(this.options.quality)&&this.options.quality.length>1;if(cm.toggleMenuButton.call(this,n,r),yp(i),cm.checkMenu.call(this),r){var o=function(e){var n=nm("qualityBadge.".concat(e),t.config);return n.length?cm.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var i=t.config.quality.options;return i.indexOf(e)>i.indexOf(n)?1:-1})).forEach((function(e){cm.createMenuItem.call(t,{value:e,list:i,type:n,title:cm.getLabel.call(t,"quality",e),badge:o(e)})})),cm.updateSetting.call(this,n,i)}}},setCaptionsMenu:function(){var e=this;if(tp(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=dm.getTracks.call(this),r=Boolean(i.length);if(cm.toggleMenuButton.call(this,t,r),yp(n),cm.checkMenu.call(this),r){var o=i.map((function(t,i){return{value:i,checked:e.captions.toggled&&e.currentTrack===i,title:dm.getLabel.call(e,t),badge:t.language&&cm.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:nm("disabled",this.config),list:n,type:"language"}),o.forEach(cm.createMenuItem.bind(this)),cm.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(tp(this.elements.settings.panels.speed)){var t="speed",n=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var i=!sp(this.options.speed)&&this.options.speed.length>1;cm.toggleMenuButton.call(this,t,i),yp(n),cm.checkMenu.call(this),i&&(this.options.speed.forEach((function(i){cm.createMenuItem.call(e,{value:i,list:n,type:t,title:cm.getLabel.call(e,"speed",i)})})),cm.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!sp(e)&&Object.values(e).some((function(e){return!e.hidden}));kp(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;tp(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var i=n.querySelector('[role^="menuitem"]');xp.call(this,i,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(tp(t)&&tp(n)){var i=t.hidden,r=i;if(Qh(e))r=e;else if(ip(e)&&"Escape"===e.key)r=!1;else if(np(e)){var o=Jh(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&r)return}n.setAttribute("aria-expanded",r),kp(t,!r),Tp(this.elements.container,this.config.classNames.menu.open,r),r&&ip(e)?cm.focusFirstMenuItem.call(this,null,!0):r||i||xp.call(this,n,ip(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,i=t.scrollHeight;return vp(t),{width:n,height:i}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(tp(i)){var r=i.parentNode,o=Array.from(r.children).find((function(e){return!e.hidden}));if(Op.transitions&&!Op.reducedMotion){r.style.width="".concat(o.scrollWidth,"px"),r.style.height="".concat(o.scrollHeight,"px");var a=cm.getMenuSize.call(this,i),s=function t(n){n.target===r&&["width","height"].includes(n.propertyName)&&(r.style.width="",r.style.height="",Np.call(e,r,lp,t))};Lp.call(this,r,lp,s),r.style.width="".concat(a.width,"px"),r.style.height="".concat(a.height,"px")}kp(o,!0),kp(i,!1),cm.focusFirstMenuItem.call(this,i,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;tp(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=cm.bindMenuItemShortcuts,i=cm.createButton,r=cm.createProgress,o=cm.createRange,a=cm.createTime,s=cm.setQualityMenu,l=cm.setSpeedMenu,c=cm.showMenuPanel;this.elements.controls=null,Zh(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));var u=mp("div",wp(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return qp(Zh(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(i.call(t,"restart",f)),"rewind"===s&&u.appendChild(i.call(t,"rewind",f)),"play"===s&&u.appendChild(i.call(t,"play",f)),"fast-forward"===s&&u.appendChild(i.call(t,"fast-forward",f)),"progress"===s){var l=mp("div",{class:"".concat(f.class," plyr__progress__container")}),d=mp("div",wp(t.config.selectors.progress));if(d.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),d.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var h=mp("span",{class:t.config.classNames.tooltip},"00:00");d.appendChild(h),t.elements.display.seekTooltip=h}t.elements.progress=d,l.appendChild(t.elements.progress),u.appendChild(l)}if("current-time"===s&&u.appendChild(a.call(t,"currentTime",f)),"duration"===s&&u.appendChild(a.call(t,"duration",f)),"mute"===s||"volume"===s){var p=t.elements.volume;if(tp(p)&&u.contains(p)||(p=mp("div",dp({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(i.call(t,"mute")),"volume"===s&&!up.isIos){var m={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",dp(m,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(i.call(t,"captions",f)),"settings"===s&&!sp(t.config.settings)){var g=mp("div",dp({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));g.appendChild(i.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=mp("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=mp("div"),b=mp("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=mp("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(i){var r=mp("button",dp(wp(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,r,i),Lp.call(t,r,"click",(function(){c.call(t,i,!1)}));var o=mp("span",null,nm(i,t.config)),a=mp("span",{class:t.config.classNames.menu.value});a.innerHTML=e[i],o.appendChild(a),r.appendChild(o),w.appendChild(r);var s=mp("div",{id:"plyr-settings-".concat(e.id,"-").concat(i),hidden:""}),l=mp("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(mp("span",{"aria-hidden":!0},nm(i,t.config))),l.appendChild(mp("span",{class:t.config.classNames.hidden},nm("menuBack",t.config))),Lp.call(t,s,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),Lp.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(mp("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[i]=r,t.elements.settings.panels[i]=s})),v.appendChild(y),g.appendChild(v),u.appendChild(g),t.elements.settings.popup=v,t.elements.settings.menu=g}if("pip"===s&&Op.pip&&u.appendChild(i.call(t,"pip",f)),"airplay"===s&&Op.airplay&&u.appendChild(i.call(t,"airplay",f)),"download"===s){var k=dp({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var T=t.config.urls.download;!ap(T)&&t.isEmbed&&dp(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(i.call(t,"download",k))}"fullscreen"===s&&u.appendChild(i.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,Yp.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=cm.getIconUrl.call(this);t.cors&&om(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var i,r={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;if(Jh(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),tp(this.config.controls)||Xh(this.config.controls)?n=this.config.controls:(n=cm.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:dm.getLabel.call(this)}),o=!1),o&&Xh(this.config.controls)&&(n=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=La(e,2),i=n[0],r=n[1];t=Qp(t,"{".concat(i,"}"),r)})),t}(n)),Xh(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),tp(i)||(i=this.elements.container),i[tp(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),tp(this.elements.controls)||cm.findElements.call(this),!sp(this.elements.buttons)){var a=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return Sp(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Tp(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){Zh(e)||ep(e)?Array.from(e).filter(Boolean).forEach(a):a(e)}))}if(up.isEdge&&cp(i),this.config.tooltips.controls){var s=this.config,l=s.classNames,c=s.selectors,u="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(l.hidden),f=Ap.call(this,u);Array.from(f).forEach((function(t){Tp(t,e.config.classNames.hidden,!1),Tp(t,e.config.classNames.tooltip,!0)}))}},setMediaMetadata:function(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers:function(){var e,t,n=this;if(this.duration&&!this.elements.markers){var i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter((function(e){var t=e.time;return t>0&&t<n.duration}));if(null!=i&&i.length){var r=document.createDocumentFragment(),o=document.createDocumentFragment(),a=null,s="".concat(this.config.classNames.tooltip,"--visible"),l=function(e){return Tp(a,s,e)};i.forEach((function(e){var t=mp("span",{class:n.config.classNames.marker},""),i=e.time/n.duration*100+"%";a&&(t.addEventListener("mouseenter",(function(){e.label||(a.style.left=i,a.innerHTML=e.label,l(!0))})),t.addEventListener("mouseleave",(function(){l(!1)}))),t.addEventListener("click",(function(){n.currentTime=e.time})),t.style.left=i,o.appendChild(t)})),r.appendChild(o),this.config.tooltips.seek||(a=mp("span",{class:this.config.classNames.tooltip},""),r.appendChild(a)),this.elements.markers={points:o,tip:a},this.elements.progress.appendChild(r)}}}};function um(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var i=document.createElement("a");i.href=n,n=i.href}try{return new URL(n)}catch(e){return null}}function fm(e){var t=new URLSearchParams;return Yh(e)&&Object.entries(e).forEach((function(e){var n=La(e,2),i=n[0],r=n[1];t.set(i,r)})),t}var dm={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Op.textTracks)Zh(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&cm.setCaptionsMenu.call(this);else{if(tp(this.elements.captions)||(this.elements.captions=mp("div",wp(this.config.selectors.captions)),function(e,t){tp(e)&&tp(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),up.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=um(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&rm(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){vp(e)}))}))}var t=qp((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===n&&(n=La(t,1)[0]);var i=this.storage.get("captions");if(Qh(i)||(i=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:i,language:n,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";Lp.call(this,this.media.textTracks,r,dm.update.bind(this))}setTimeout(dm.update.bind(this),0)}},update:function(){var e=this,t=dm.getTracks.call(this,!0),n=this.captions,i=n.active,r=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!o.get(e)})).forEach((function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),Lp.call(e,t,"cuechange",(function(){return dm.updateCues.call(e)}))})),(s&&this.language!==r||!t.includes(a))&&(dm.setLanguage.call(this,r),dm.toggle.call(this,i&&s)),this.elements&&Tp(this.elements.container,this.config.classNames.captions.enabled,!sp(t)),Zh(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&cm.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var i=this.captions.toggled,r=this.config.classNames.captions.active,o=Kh(e)?!i:e;if(o!==i){if(n||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!n){var a=dm.getTracks.call(this),s=dm.findTrack.call(this,[this.captions.language].concat(Ca(this.captions.languages)),!0);return this.captions.language=s.language,void dm.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),Tp(this.elements.container,r,o),this.captions.toggled=o,cm.updateSetting.call(this,"captions"),Rp.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout((function(){o&&t.captions.toggled&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=dm.getTracks.call(this);if(-1!==e)if(Gh(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var i=n[e],r=i||{},o=r.language;this.captions.currentTrackNode=i,cm.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),Rp.call(this,this.media,"languagechange")}dm.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&dm.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else dm.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Xh(e)){var n=e.toLowerCase();this.captions.language=n;var i=dm.getTracks.call(this),r=dm.findTrack.call(this,[n]);dm.set.call(this,i.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(n){return!e.isHTML5||t||e.captions.meta.has(n)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=dm.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(r).sort((function(e,t){return o(t)-o(e)}));return e.every((function(e){return t=a.find((function(t){return t.language===e})),!t})),t||(i?a[0]:void 0)},getCurrentTrack:function(){return dm.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!rp(t)&&Op.textTracks&&this.captions.toggled&&(t=dm.getCurrentTrack.call(this)),rp(t)?sp(t.label)?sp(t.language)?nm("enabled",this.config):e.language.toUpperCase():t.label:nm("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(tp(this.elements.captions))if(Kh(e)||Array.isArray(e)){var t=e;if(!t){var n=dm.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(em)}var i=t.map((function(e){return e.trim()})).join("\n");if(i!==this.elements.captions.innerHTML){yp(this.elements.captions);var r=mp("span",wp(this.config.selectors.caption));r.innerHTML=i,this.elements.captions.appendChild(r),Rp.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},hm={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},pm="picture-in-picture",mm="inline",gm={html5:"html5",youtube:"youtube",vimeo:"vimeo"},vm="audio",ym="video";var bm=function(){},wm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Oa(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Ma(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):bm}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):bm}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):bm}}]),e}(),km=function(){function e(t){var n=this;Oa(this,e),hh(this,"onChange",(function(){if(n.enabled){var e=n.player.elements.buttons.fullscreen;tp(e)&&(e.pressed=n.active);var t=n.target===n.player.media?n.target:n.player.elements.container;Rp.call(n.player,t,n.active?"enterfullscreen":"exitfullscreen",!0)}})),hh(this,"toggleFallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?n.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=e?"hidden":"",Tp(n.target,n.player.config.classNames.fullscreen.fallback,e),up.isIos){var t=document.head.querySelector('meta[name="viewport"]'),i="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=Xh(t.content)&&t.content.includes(i);e?(n.cleanupViewport=!r,r||(t.content+=",".concat(i))):n.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==i})).join(","))}n.onChange()})),hh(this,"trapFocus",(function(e){if(!up.isIos&&n.active&&"Tab"===e.key){var t=document.activeElement,i=Ap.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=La(i,1)[0],o=i[i.length-1];t!==o||e.shiftKey?t===r&&e.shiftKey&&(o.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}})),hh(this,"update",(function(){var t;n.enabled?(t=n.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",n.player.debug.log("".concat(t," fullscreen enabled"))):n.player.debug.log("Fullscreen not supported and fallback disabled");Tp(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.enabled)})),hh(this,"enter",(function(){n.enabled&&(up.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!e.native||n.forceFallback?n.toggleFallback(!0):n.prefix?sp(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),hh(this,"exit",(function(){if(n.enabled)if(up.isIos&&n.player.config.fullscreen.iosNative)n.target.webkitExitFullscreen(),Dp(n.player.play());else if(!e.native||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!sp(n.prefix)){var t="moz"===n.prefix?"Cancel":"Exit";document["".concat(n.prefix).concat(t).concat(n.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),hh(this,"toggle",(function(){n.active?n.exit():n.enter()})),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(Ep.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),Lp.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),Lp.call(this.player,this.player.elements.container,"dblclick",(function(e){tp(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.player.listeners.proxy(e,n.toggle,"fullscreen")})),Lp.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return Ma(e,[{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return Sp(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?this.target.getRootNode()["".concat(this.prefix).concat(this.property,"Element")]:this.target.getRootNode().fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return up.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Jh(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!Jh(document["".concat(t,"ExitFullscreen")])&&!Jh(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function Tm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,i){var r=new Image,o=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?n:i)(r)};Object.assign(r,{onload:o,onerror:o,src:e})}))}var Sm={addStyleHook:function(){Tp(this.elements.container,this.config.selectors.container.replace(".",""),!0),Tp(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Sm.toggleNativeControls.call(this,!0);tp(this.elements.controls)||(cm.inject.call(this),this.listeners.controls()),Sm.toggleNativeControls.call(this),this.isHTML5&&dm.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,cm.updateVolume.call(this),cm.timeUpdate.call(this),cm.durationUpdate.call(this),Sm.checkPlaying.call(this),Tp(this.elements.container,this.config.classNames.pip.supported,Op.pip&&this.isHTML5&&this.isVideo),Tp(this.elements.container,this.config.classNames.airplay.supported,Op.airplay&&this.isHTML5),Tp(this.elements.container,this.config.classNames.isIos,up.isIos),Tp(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){Rp.call(e,e.media,"ready")}),0),Sm.setTitle.call(this),this.poster&&Sm.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&cm.durationUpdate.call(this),this.config.mediaMetadata&&cm.setMediaMetadata.call(this)},setTitle:function(){var e=nm("play",this.config);if(Xh(this.config.title)&&!sp(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=Pp.call(this,"iframe");if(!tp(t))return;var n=sp(this.config.title)?"video":this.config.title,i=nm("frameTitle",this.config);t.setAttribute("title",i.replace("{title}",n))}},togglePoster:function(e){Tp(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Fp.call(this).then((function(){return Tm(e)})).catch((function(n){throw e===t.poster&&Sm.togglePoster.call(t,!1),n})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),Sm.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;Tp(this.elements.container,this.config.classNames.playing,this.playing),Tp(this.elements.container,this.config.classNames.paused,this.paused),Tp(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",nm(t.playing?"pause":"play",t.config))})),np(e)&&"timeupdate"===e.type||Sm.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){Tp(t.elements.container,t.config.classNames.loading,t.loading),Sm.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles:function(){var e=this;Object.values(Xi({},this.media.style)).filter((function(e){return!sp(e)&&Xh(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),sp(this.media.style)&&this.media.removeAttribute("style")}},Em=function(){function e(t){var n=this;Oa(this,e),hh(this,"firstTouch",(function(){var e=n.player,t=e.elements;e.touch=!0,Tp(t.container,e.config.classNames.isTouch,!0)})),hh(this,"setTabFocus",(function(e){var t=n.player,i=t.elements,r=e.key,o=e.type,a=e.timeStamp;if(clearTimeout(n.focusTimer),"keydown"!==o||"Tab"===r){"keydown"===o&&(n.lastKeyDown=a);var s=a-n.lastKeyDown<=20;("focus"!==o||s)&&(function(){var e=t.config.classNames.tabFocus;Tp(Ap.call(t,".".concat(e)),e,!1)}(),"focusout"!==o&&(n.focusTimer=setTimeout((function(){var e=document.activeElement;i.container.contains(e)&&Tp(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))}})),hh(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.player;t.config.keyboard.global&&Mp.call(t,window,"keydown keyup",n.handleKey,e,!1),Mp.call(t,document.body,"click",n.toggleMenu,e),jp.call(t,document.body,"touchstart",n.firstTouch),Mp.call(t,document.body,"keydown focus blur focusout",n.setTabFocus,e,!1,!0)})),hh(this,"container",(function(){var e=n.player,t=e.config,i=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&Lp.call(e,i.container,"keydown keyup",n.handleKey,!1),Lp.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var n=i.controls;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(Sm.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return Sm.toggleControls.call(e,!1)}),o)}));var o=function(){if(e.isVimeo&&!e.config.vimeo.premium){var t=i.wrapper,n=e.fullscreen.active,r=La(Wp.call(e),2),o=r[0],a=r[1],s=Up("aspect-ratio: ".concat(o," / ").concat(a));if(n){var l=La([Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],2),c=l[0],u=l[1],f=c/u>o/a;s?(t.style.width=f?"auto":"100%",t.style.height=f?"100%":"auto"):(t.style.maxWidth=f?u/a*o+"px":null,t.style.margin=f?"0 auto":null)}else s?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null)}},a=function(){clearTimeout(r.resized),r.resized=setTimeout(o,50)};Lp.call(e,i.container,"enterfullscreen exitfullscreen",(function(t){e.fullscreen.target===i.container&&(!e.isEmbed&&sp(e.config.ratio)||(o(),("enterfullscreen"===t.type?Lp:Np).call(e,window,"resize",a)))}))})),hh(this,"media",(function(){var e=n.player,t=e.elements;if(Lp.call(e,e.media,"timeupdate seeking seeked",(function(t){return cm.timeUpdate.call(e,t)})),Lp.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return cm.durationUpdate.call(e,t)})),Lp.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),Lp.call(e,e.media,"progress playing seeking seeked",(function(t){return cm.updateProgress.call(e,t)})),Lp.call(e,e.media,"volumechange",(function(t){return cm.updateVolume.call(e,t)})),Lp.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return Sm.checkPlaying.call(e,t)})),Lp.call(e,e.media,"waiting canplay seeked playing",(function(t){return Sm.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var i=Pp.call(e,".".concat(e.config.classNames.video));if(!tp(i))return;Lp.call(e,t.container,"click",(function(r){([t.container,i].includes(r.target)||i.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(n.proxy(r,e.restart,"restart"),n.proxy(r,(function(){Dp(e.play())}),"play")):n.proxy(r,(function(){Dp(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&Lp.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),Lp.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),Lp.call(e,e.media,"ratechange",(function(){cm.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),Lp.call(e,e.media,"qualitychange",(function(t){cm.updateSetting.call(e,"quality",null,t.detail.quality)})),Lp.call(e,e.media,"ready qualitychange",(function(){cm.setDownloadUrl.call(e)}));var r=e.config.events.concat(["keyup","keydown"]).join(" ");Lp.call(e,e.media,r,(function(n){var i=n.detail,r=void 0===i?{}:i;"error"===n.type&&(r=e.media.error),Rp.call(e,t.container,n.type,!0,r)}))})),hh(this,"proxy",(function(e,t,i){var r=n.player,o=r.config.listeners[i],a=!0;Jh(o)&&(a=o.call(r,e)),!1!==a&&Jh(t)&&t.call(r,e)})),hh(this,"bind",(function(e,t,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=n.player,s=a.config.listeners[r],l=Jh(s);Lp.call(a,e,t,(function(e){return n.proxy(e,i,r)}),o&&!l)})),hh(this,"controls",(function(){var e=n.player,t=e.elements,i=up.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){n.bind(t,"click",(function(){Dp(e.togglePlay())}),"play")})),n.bind(t.buttons.restart,"click",e.restart,"restart"),n.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),n.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),n.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),n.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),n.bind(t.buttons.download,"click",(function(){Rp.call(e,e.media,"download")}),"download"),n.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),n.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),n.bind(t.buttons.airplay,"click",e.airplay,"airplay"),n.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),cm.toggleMenu.call(e,t)}),null,!1),n.bind(t.buttons.settings,"keyup",(function(t){["Space","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),cm.toggleMenu.call(e,t)):cm.focusFirstMenuItem.call(e,null,!0))}),null,!1),n.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&cm.toggleMenu.call(e,t)})),n.bind(t.inputs.seek,"mousedown mousemove",(function(e){var n=t.progress.getBoundingClientRect(),i=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",i)})),n.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var n=t.currentTarget,i="play-on-seeked";if(!ip(t)||["ArrowLeft","ArrowRight"].includes(t.key)){e.lastSeekTime=Date.now();var r=n.hasAttribute(i),o=["mouseup","touchend","keyup"].includes(t.type);r&&o?(n.removeAttribute(i),Dp(e.play())):!o&&e.playing&&(n.setAttribute(i,""),e.pause())}})),up.isIos){var r=Ap.call(e,'input[type="range"]');Array.from(r).forEach((function(e){return n.bind(e,i,(function(e){return cp(e.target)}))}))}n.bind(t.inputs.seek,i,(function(t){var n=t.currentTarget,i=n.getAttribute("seek-value");sp(i)&&(i=n.value),n.removeAttribute("seek-value"),e.currentTime=i/n.max*e.duration}),"seek"),n.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return cm.updateSeekTooltip.call(e,t)})),n.bind(t.progress,"mousemove touchmove",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startMove(t)})),n.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),n.bind(t.progress,"mousedown touchstart",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.startScrubbing(t)})),n.bind(t.progress,"mouseup touchend",(function(t){var n=e.previewThumbnails;n&&n.loaded&&n.endScrubbing(t)})),up.isWebkit&&Array.from(Ap.call(e,'input[type="range"]')).forEach((function(t){n.bind(t,"input",(function(t){return cm.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!tp(t.display.duration)&&n.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,cm.timeUpdate.call(e))})),n.bind(t.inputs.volume,i,(function(t){e.volume=t.target.value}),"volume"),n.bind(t.controls,"mouseenter mouseleave",(function(n){t.controls.hover=!e.touch&&"mouseenter"===n.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(i){n.bind(i,"mouseenter mouseleave",(function(n){t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===n.type)}))})),n.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),n.bind(t.controls,"focusin",(function(){var i=e.config,r=e.timers;Tp(t.controls,i.classNames.noTransition,!0),Sm.toggleControls.call(e,!0),setTimeout((function(){Tp(t.controls,i.classNames.noTransition,!1)}),0);var o=n.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((function(){return Sm.toggleControls.call(e,!1)}),o)})),n.bind(t.inputs.volume,"wheel",(function(t){var n=t.webkitDirectionInvertedFromDevice,i=[t.deltaX,-t.deltaY].map((function(e){return n?-e:e})),r=La(i,2),o=r[0],a=r[1],s=Math.sign(Math.abs(o)>Math.abs(a)?o:a);e.increaseVolume(s/50);var l=e.media.volume;(1===s&&l<1||-1===s&&l>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Ma(e,[{key:"handleKey",value:function(e){var t,n=this.player,i=n.elements,r=e.key,o=e.type,a=e.altKey,s=e.ctrlKey,l=e.metaKey,c=e.shiftKey,u="keydown"===o,f=u&&r===this.lastKey;if(!(a||s||l||c)&&r)if(u){var d=document.activeElement;if(tp(d)){var h=n.config.selectors.editable;if(d!==i.inputs.seek&&Ep(d,h))return;if("Space"===e.key&&Ep(d,'button, [role^="menuitem"]'))return}switch(["Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(t=parseInt(r,10),n.currentTime=n.duration/10*t);break;case"Space":case"k":f||Dp(n.togglePlay());break;case"ArrowUp":n.increaseVolume(.1);break;case"ArrowDown":n.decreaseVolume(.1);break;case"m":f||(n.muted=!n.muted);break;case"ArrowRight":n.forward();break;case"ArrowLeft":n.rewind();break;case"f":n.fullscreen.toggle();break;case"c":f||n.toggleCaptions();break;case"l":n.loop=!n.loop}"Escape"===r&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}},{key:"toggleMenu",value:function(e){cm.toggleMenu.call(this.player,e)}}]),e}();var Am=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},i={};function r(e,t){if(e){var r=i[e];if(n[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,i,r){var o,s,l=document,c=i.async,u=(i.numRetries||0)+1,f=i.before||e,d=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(d)?((s=l.createElement("link")).rel="stylesheet",s.href=h,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(s=l.createElement("img")).src=h:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(o)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<u)return a(t,n,i,r)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==f(t,s)&&l.head.appendChild(s)}function s(e,t,n){var i,r,o=(e=e.push?e:[e]).length,s=o,l=[];for(i=function(e,n,i){if("e"==n&&l.push(e),"b"==n){if(!i)return;l.push(e)}--o||t(l)},r=0;r<s;r++)a(e[r],i,n)}function l(e,n,i){var a,l;if(n&&n.trim&&(a=n),l=(a?i:n)||{},a){if(a in t)throw"LoadJS";t[a]=!0}function c(t,n){s(e,(function(e){o(l,e),t&&o({success:t,error:n},e),r(a,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var r,o,a,s=[],l=e.length,c=l;for(r=function(e,n){n.length&&s.push(e),--c||t(s)};l--;)o=e[l],(a=n[o])?r(o,a):(i[o]=i[o]||[]).push(r)}(e,(function(e){o(t,e)})),l},l.done=function(e){r(e,[])},l.reset=function(){t={},n={},i={}},l.isDefined=function(e){return e in t},l}()}));function Pm(e){return new Promise((function(t,n){Am(e,{success:t,error:n})}))}function xm(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Rp.call(this,this.media,e?"play":"pause"))}var Cm={setup:function(){var e=this;Tp(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,$p.call(e),Yh(window.Vimeo)?Cm.ready.call(e):Pm(e.config.urls.vimeo.sdk).then((function(){Cm.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,n=t.config.vimeo,i=n.premium,r=n.referrerPolicy,o=ir(n,dh),a=t.media.getAttribute("src"),s="";sp(a)?(a=t.media.getAttribute(t.config.attributes.embed.id),s=t.media.getAttribute(t.config.attributes.embed.hash)):s=function(e){var t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(a);var l=s?{h:s}:{};i&&Object.assign(o,{controls:!1,sidedock:!1});var c=fm(Xi(Xi({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},l),o)),u=function(e){return sp(e)?null:Gh(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(a),f=mp("iframe"),d=Xp(t.config.urls.vimeo.iframe,u,c);if(f.setAttribute("src",d),f.setAttribute("allowfullscreen",""),f.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),sp(r)||f.setAttribute("referrerPolicy",r),i||!n.customControls)f.setAttribute("data-poster",t.poster),t.media=bp(f,t.media);else{var h=mp("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});h.appendChild(f),t.media=bp(h,t.media)}n.customControls||rm(Xp(t.config.urls.vimeo.api,d)).then((function(e){!sp(e)&&e.thumbnail_url&&Sm.setPoster.call(t,e.thumbnail_url).catch((function(){}))})),t.embed=new window.Vimeo.Player(f,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return xm.call(t,!0),t.embed.play()},t.media.pause=function(){return xm.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var p=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return p},set:function(e){var n=t.embed,i=t.media,r=t.paused,o=t.volume,a=r&&!n.hasPlayed;i.seeking=!0,Rp.call(t,i,"seeking"),Promise.resolve(a&&n.setVolume(0)).then((function(){return n.setCurrentTime(e)})).then((function(){return a&&n.pause()})).then((function(){return a&&n.setVolume(o)})).catch((function(){}))}});var m=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return m},set:function(e){t.embed.setPlaybackRate(e).then((function(){m=e,Rp.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var g=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return g},set:function(e){t.embed.setVolume(e).then((function(){g=e,Rp.call(t,t.media,"volumechange")}))}});var v=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return v},set:function(e){var n=!!Qh(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){v=n,Rp.call(t,t.media,"volumechange")}))}});var y,b=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return b},set:function(e){var n=Qh(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){b=n}))}}),t.embed.getVideoUrl().then((function(e){y=e,cm.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return y}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(n){var i=La(n,2),r=i[0],o=i[1];t.embed.ratio=Kp(r,o),$p.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(n){t.config.title=n,Sm.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){p=e,Rp.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,Rp.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,dm.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,i=(void 0===n?[]:n).map((function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)}));dm.updateCues.call(t,i)})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){xm.call(t,!e),e||Rp.call(t,t.media,"playing")})),tp(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){Rp.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){Rp.call(t,t.media,"playing")})),t.embed.on("play",(function(){xm.call(t,!0),Rp.call(t,t.media,"playing")})),t.embed.on("pause",(function(){xm.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,p=e.seconds,Rp.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,Rp.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&Rp.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,Rp.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,Rp.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,Rp.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,Rp.call(t,t.media,"error")})),n.customControls&&setTimeout((function(){return Sm.build.call(t)}),0)}};function Om(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Rp.call(this,this.media,e?"play":"pause"))}function Im(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Mm={setup:function(){var e=this;if(Tp(this.elements.wrapper,this.config.classNames.embed,!0),Yh(window.YT)&&Jh(window.YT.Player))Mm.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Jh(t)&&t(),Mm.ready.call(e)},Pm(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;rm(Xp(this.config.urls.youtube.api,e)).then((function(e){if(Yh(e)){var n=e.title,i=e.height,r=e.width;t.config.title=n,Sm.setTitle.call(t),t.embed.ratio=Kp(r,i)}$p.call(t)})).catch((function(){$p.call(t)}))},ready:function(){var e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(sp(n)||!n.startsWith("youtube-")){var i=e.media.getAttribute("src");sp(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));var r=function(e){return sp(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(i),o=mp("div",{id:Gp(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=bp(o,e.media),t.customControls){var a=function(e){return"https://i.ytimg.com/vi/".concat(r,"/").concat(e,"default.jpg")};Tm(a("maxres"),121).catch((function(){return Tm(a("sd"),121)})).catch((function(){return Tm(a("hq"))})).then((function(t){return Sm.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}e.embed=new window.YT.Player(e.media,{videoId:r,host:Im(t),playerVars:dp({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var n=t.data,i={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:i},Rp.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),Rp.call(e,e.media,"ratechange")},onReady:function(n){if(!Jh(e.media.play)){var i=n.target;Mm.getTitle.call(e,r),e.media.play=function(){Om.call(e,!0),i.playVideo()},e.media.pause=function(){Om.call(e,!1),i.pauseVideo()},e.media.stop=function(){i.stopVideo()},e.media.duration=i.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(i.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,Rp.call(e,e.media,"seeking"),i.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return i.getPlaybackRate()},set:function(e){i.setPlaybackRate(e)}});var o=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return o},set:function(t){o=t,i.setVolume(100*o),Rp.call(e,e.media,"volumechange")}});var a=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return a},set:function(t){var n=Qh(t)?t:a;a=n,i[n?"mute":"unMute"](),i.setVolume(100*o),Rp.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return i.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=i.getAvailablePlaybackRates();e.options.speed=s.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),Rp.call(e,e.media,"timeupdate"),Rp.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=i.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&Rp.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Rp.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return Sm.build.call(e)}),50)}},onStateChange:function(n){var i=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,Rp.call(e,e.media,"seeked")),n.data){case-1:Rp.call(e,e.media,"timeupdate"),e.media.buffered=i.getVideoLoadedFraction(),Rp.call(e,e.media,"progress");break;case 0:Om.call(e,!1),e.media.loop?(i.stopVideo(),i.playVideo()):Rp.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Om.call(e,!0),Rp.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){Rp.call(e,e.media,"timeupdate")}),50),e.media.duration!==i.getDuration()&&(e.media.duration=i.getDuration(),Rp.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Om.call(e,!1);break;case 3:Rp.call(e,e.media,"waiting")}Rp.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}}},Lm={setup:function(){this.media?(Tp(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Tp(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Tp(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=mp("div",{class:this.config.classNames.video}),hp(this.media,this.elements.wrapper),this.elements.poster=mp("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Yp.setup.call(this):this.isYouTube?Mm.setup.call(this):this.isVimeo&&Cm.setup.call(this)):this.debug.warn("No media element found!")}},Nm=function(){function e(t){var n=this;Oa(this,e),hh(this,"load",(function(){n.enabled&&(Yh(window.google)&&Yh(window.google.ima)?n.ready():Pm(n.player.config.urls.googleIMA.sdk).then((function(){n.ready()})).catch((function(){n.trigger("error",new Error("Google IMA SDK failed to load"))})))})),hh(this,"ready",(function(){var e;n.enabled||((e=n).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),n.startSafetyTimer(12e3,"ready()"),n.managerPromise.then((function(){n.clearSafetyTimer("onAdsManagerLoaded()")})),n.listeners(),n.setupIMA()})),hh(this,"setupIMA",(function(){n.elements.container=mp("div",{class:n.player.config.classNames.ads}),n.player.elements.container.appendChild(n.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(n.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(n.player.config.playsinline),n.elements.displayContainer=new google.ima.AdDisplayContainer(n.elements.container,n.player.media),n.loader=new google.ima.AdsLoader(n.elements.displayContainer),n.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return n.onAdsManagerLoaded(e)}),!1),n.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)}),!1),n.requestAds()})),hh(this,"requestAds",(function(){var e=n.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=n.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!n.player.muted),n.loader.requestAds(t)}catch(e){n.onAdError(e)}})),hh(this,"pollCountdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return clearInterval(n.countdownTimer),void n.elements.container.removeAttribute("data-badge-text");n.countdownTimer=setInterval((function(){var e=lm(Math.max(n.manager.getRemainingTime(),0)),t="".concat(nm("advertisement",n.player.config)," - ").concat(e);n.elements.container.setAttribute("data-badge-text",t)}),100)})),hh(this,"onAdsManagerLoaded",(function(e){if(n.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,n.manager=e.getAdsManager(n.player,t),n.cuePoints=n.manager.getCuePoints(),n.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return n.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return n.onAdEvent(e)}))})),n.trigger("loaded")}})),hh(this,"addCuePoints",(function(){sp(n.cuePoints)||n.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<n.player.duration){var t=n.player.elements.progress;if(tp(t)){var i=100/n.player.duration*e,r=mp("span",{class:n.player.config.classNames.cues});r.style.left="".concat(i.toString(),"%"),t.appendChild(r)}}}))})),hh(this,"onAdEvent",(function(e){var t=n.player.elements.container,i=e.getAd(),r=e.getAdData();switch(function(e){Rp.call(n.player,n.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:n.trigger("loaded"),n.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:n.manager.setVolume(n.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:n.player.ended?n.loadAds():n.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:n.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:n.pollCountdown(),n.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&n.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}})),hh(this,"onAdError",(function(e){n.cancel(),n.player.debug.warn("Ads error",e)})),hh(this,"listeners",(function(){var e,t=n.player.elements.container;n.player.on("canplay",(function(){n.addCuePoints()})),n.player.on("ended",(function(){n.loader.contentComplete()})),n.player.on("timeupdate",(function(){e=n.player.currentTime})),n.player.on("seeked",(function(){var t=n.player.currentTime;sp(n.cuePoints)||n.cuePoints.forEach((function(i,r){e<i&&i<t&&(n.manager.discardAdBreak(),n.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(function(){n.manager&&n.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),hh(this,"play",(function(){var e=n.player.elements.container;n.managerPromise||n.resumeContent(),n.managerPromise.then((function(){n.manager.setVolume(n.player.volume),n.elements.displayContainer.initialize();try{n.initialized||(n.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),n.manager.start()),n.initialized=!0}catch(e){n.onAdError(e)}})).catch((function(){}))})),hh(this,"resumeContent",(function(){n.elements.container.style.zIndex="",n.playing=!1,Dp(n.player.media.play())})),hh(this,"pauseContent",(function(){n.elements.container.style.zIndex=3,n.playing=!0,n.player.media.pause()})),hh(this,"cancel",(function(){n.initialized&&n.resumeContent(),n.trigger("error"),n.loadAds()})),hh(this,"loadAds",(function(){n.managerPromise.then((function(){n.manager&&n.manager.destroy(),n.managerPromise=new Promise((function(e){n.on("loaded",e),n.player.debug.log(n.manager)})),n.initialized=!1,n.requestAds()})).catch((function(){}))})),hh(this,"trigger",(function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];var o=n.events[e];Zh(o)&&o.forEach((function(e){Jh(e)&&e.apply(n,i)}))})),hh(this,"on",(function(e,t){return Zh(n.events[e])||(n.events[e]=[]),n.events[e].push(t),n})),hh(this,"startSafetyTimer",(function(e,t){n.player.debug.log("Safety timer invoked from: ".concat(t)),n.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)})),hh(this,"clearSafetyTimer",(function(e){Kh(n.safetyTimer)||(n.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(n.safetyTimer),n.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){n.on("loaded",e),n.on("error",t)})),this.load()}return Ma(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!sp(e.publisherId)||ap(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return ap(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(fm({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId}))}}]),e}();function jm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}var Rm=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var n={};e.split(/\r\n|\n|\r/).forEach((function(e){if(Gh(n.startTime)){if(!sp(e.trim())&&sp(n.text)){var t,i,r=e.trim().split("#xywh=");t=La(r,1),n.text=t[0],r[1]&&(i=La(r[1].split(","),4),n.x=i[0],n.y=i[1],n.w=i[2],n.h=i[3])}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(n.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),n.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),n.text&&t.push(n)})),t},_m=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},Fm=function(){function e(t){var n=this;Oa(this,e),hh(this,"load",(function(){n.player.elements.display.seekTooltip&&(n.player.elements.display.seekTooltip.hidden=n.enabled),n.enabled&&n.getThumbnails().then((function(){n.enabled&&(n.render(),n.determineContainerAutoSizing(),n.loaded=!0)}))})),hh(this,"getThumbnails",(function(){return new Promise((function(e){var t=n.player.config.previewThumbnails.src;if(sp(t))throw new Error("Missing previewThumbnails.src config attribute");var i=function(){n.thumbnails.sort((function(e,t){return e.height-t.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),e()};if(Jh(t))t((function(e){n.thumbnails=e,i()}));else{var r=(Xh(t)?[t]:t).map((function(e){return n.getThumbnail(e)}));Promise.all(r).then(i)}}))})),hh(this,"getThumbnail",(function(e){return new Promise((function(t){rm(e).then((function(i){var r={frames:Rm(i),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var o=new Image;o.onload=function(){r.height=o.naturalHeight,r.width=o.naturalWidth,n.thumbnails.push(r),t()},o.src=r.urlPrefix+r.frames[0].text}))}))})),hh(this,"startMove",(function(e){if(n.loaded&&np(e)&&["touchmove","mousemove"].includes(e.type)&&n.player.media.duration){if("touchmove"===e.type)n.seekTime=n.player.media.duration*(n.player.elements.inputs.seek.value/100);else{var t,i,r=n.player.elements.progress.getBoundingClientRect(),o=100/r.width*(e.pageX-r.left);n.seekTime=n.player.media.duration*(o/100),n.seekTime<0&&(n.seekTime=0),n.seekTime>n.player.media.duration-1&&(n.seekTime=n.player.media.duration-1),n.mousePosX=e.pageX,n.elements.thumb.time.innerText=lm(n.seekTime);var a=null===(t=n.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((function(e){return e.time===Math.round(n.seekTime)}));a&&n.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(a.label,"<br>"))}n.showImageAtCurrentTime()}})),hh(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),hh(this,"startScrubbing",(function(e){(Kh(e.button)||!1===e.button||0===e.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),hh(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):jp.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),hh(this,"listeners",(function(){n.player.on("play",(function(){n.toggleThumbContainer(!1,!0)})),n.player.on("seeked",(function(){n.toggleThumbContainer(!1)})),n.player.on("timeupdate",(function(){n.lastTime=n.player.media.currentTime}))})),hh(this,"render",(function(){n.elements.thumb.container=mp("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=mp("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var e=mp("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=mp("span",{},"00:00"),e.appendChild(n.elements.thumb.time),n.elements.thumb.imageContainer.appendChild(e),tp(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=mp("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),hh(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),hh(this,"showImageAtCurrentTime",(function(){n.mouseDown?n.setScrubbingContainerSize():n.setThumbContainerSizeAndPos();var e=n.thumbnails[0].frames.findIndex((function(e){return n.seekTime>=e.startTime&&n.seekTime<=e.endTime})),t=e>=0,i=0;n.mouseDown||n.toggleThumbContainer(t),t&&(n.thumbnails.forEach((function(t,r){n.loadedImages.includes(t.frames[e].text)&&(i=r)})),e!==n.showingThumb&&(n.showingThumb=e,n.loadImage(i)))})),hh(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=n.showingThumb,i=n.thumbnails[e],r=i.urlPrefix,o=i.frames[t],a=i.frames[t].text,s=r+a;if(n.currentImageElement&&n.currentImageElement.dataset.filename===a)n.showImage(n.currentImageElement,o,e,t,a,!1),n.currentImageElement.dataset.index=t,n.removeOldImages(n.currentImageElement);else{n.loadingImage&&n.usingSprites&&(n.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=t,l.dataset.filename=a,n.showingThumbFilename=a,n.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return n.showImage(l,o,e,t,a,!0)},n.loadingImage=l,n.removeOldImages(l)}})),hh(this,"showImage",(function(e,t,i,r,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];n.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(r,". qual: ").concat(i,". newimg: ").concat(a)),n.setImageSizeAndOffset(e,t),a&&(n.currentImageContainer.appendChild(e),n.currentImageElement=e,n.loadedImages.includes(o)||n.loadedImages.push(o)),n.preloadNearby(r,!0).then(n.preloadNearby(r,!1)).then(n.getHigherQuality(i,e,t,o))})),hh(this,"removeOldImages",(function(e){Array.from(n.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var i=n.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var r=n.currentImageContainer;setTimeout((function(){r.removeChild(t),n.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),i)}}}))})),hh(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(i){setTimeout((function(){var r=n.thumbnails[0].frames[e].text;if(n.showingThumbFilename===r){var o;o=t?n.thumbnails[0].frames.slice(e):n.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var t=e.text;if(t!==r&&!n.loadedImages.includes(t)){a=!0,n.player.debug.log("Preloading thumb filename: ".concat(t));var o=n.thumbnails[0].urlPrefix+t,s=new Image;s.src=o,s.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(t)),n.loadedImages.includes(t)||n.loadedImages.push(t),i()}}})),a||i()}}),300)}))})),hh(this,"getHigherQuality",(function(e,t,i,r){if(e<n.thumbnails.length-1){var o=t.naturalHeight;n.usingSprites&&(o=i.h),o<n.thumbContainerHeight&&setTimeout((function(){n.showingThumbFilename===r&&(n.player.debug.log("Showing higher quality thumb for: ".concat(r)),n.loadImage(e+1))}),300)}})),hh(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(i,e),!e&&t&&(n.showingThumb=null,n.showingThumbFilename=null)})),hh(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=n.player.config.classNames.previewThumbnails.scrubbingContainerShown;n.elements.scrubbing.container.classList.toggle(t,e),e||(n.showingThumb=null,n.showingThumbFilename=null)})),hh(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),hh(this,"setThumbContainerSizeAndPos",(function(){var e=n.elements.thumb.imageContainer;if(n.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){var t=Math.floor(e.clientHeight*n.thumbAspectRatio);e.style.width="".concat(t,"px")}else if(e.clientHeight<20&&e.clientWidth>20){var i=Math.floor(e.clientWidth/n.thumbAspectRatio);e.style.height="".concat(i,"px")}}else{var r=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);e.style.height="".concat(n.thumbContainerHeight,"px"),e.style.width="".concat(r,"px")}n.setThumbContainerPos()})),hh(this,"setThumbContainerPos",(function(){var e=n.player.elements.progress.getBoundingClientRect(),t=n.player.elements.container.getBoundingClientRect(),i=n.elements.thumb.container,r=t.left-e.left+10,o=t.right-e.left-i.clientWidth-10,a=n.mousePosX-e.left-i.clientWidth/2,s=jm(a,r,o);i.style.left="".concat(s,"px"),i.style.setProperty("--preview-arrow-offset",a-s+"px")})),hh(this,"setScrubbingContainerSize",(function(){var e=_m(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),t=e.width,i=e.height;n.elements.scrubbing.container.style.width="".concat(t,"px"),n.elements.scrubbing.container.style.height="".concat(i,"px")})),hh(this,"setImageSizeAndOffset",(function(e,t){if(n.usingSprites){var i=n.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left="-".concat(t.x*i,"px"),e.style.top="-".concat(t.y*i,"px")}})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Ma(e,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?_m(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),Dm={insertElements:function(e,t){var n=this;Xh(t)?gp(e,this.media,{src:t}):Zh(t)&&t.forEach((function(t){gp(e,n.media,t)}))},change:function(e){var t=this;fp(e,"sources.length")?(Yp.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],vp(t.media),t.media=null,tp(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,i=e.type,r=La(n,1)[0],o=r.provider,a=void 0===o?gm.html5:o,s=r.src,l="html5"===a?i:"div",c="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:i,supported:Op.check(i,a,t.config.playsinline),media:mp(l,c)}),t.elements.container.appendChild(t.media),Qh(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),sp(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),Sm.addStyleHook.call(t),t.isHTML5&&Dm.insertElements.call(t,"source",n),t.config.title=e.title,Lm.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&Dm.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&Sm.build.call(t),t.isHTML5&&t.media.load(),sp(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new Fm(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},qm=function(){function e(t,n){var i=this;if(Oa(this,e),hh(this,"play",(function(){return Jh(i.media.play)?(i.ads&&i.ads.enabled&&i.ads.managerPromise.then((function(){return i.ads.play()})).catch((function(){return Dp(i.media.play())})),i.media.play()):null})),hh(this,"pause",(function(){return i.playing&&Jh(i.media.pause)?i.media.pause():null})),hh(this,"togglePlay",(function(e){return(Qh(e)?e:!i.playing)?i.play():i.pause()})),hh(this,"stop",(function(){i.isHTML5?(i.pause(),i.restart()):Jh(i.media.stop)&&i.media.stop()})),hh(this,"restart",(function(){i.currentTime=0})),hh(this,"rewind",(function(e){i.currentTime-=Gh(e)?e:i.config.seekTime})),hh(this,"forward",(function(e){i.currentTime+=Gh(e)?e:i.config.seekTime})),hh(this,"increaseVolume",(function(e){var t=i.media.muted?0:i.volume;i.volume=t+(Gh(e)?e:0)})),hh(this,"decreaseVolume",(function(e){i.increaseVolume(-e)})),hh(this,"airplay",(function(){Op.airplay&&i.media.webkitShowPlaybackTargetPicker()})),hh(this,"toggleControls",(function(e){if(i.supported.ui&&!i.isAudio){var t=Sp(i.elements.container,i.config.classNames.hideControls),n=void 0===e?void 0:!e,r=Tp(i.elements.container,i.config.classNames.hideControls,n);if(r&&Zh(i.config.controls)&&i.config.controls.includes("settings")&&!sp(i.config.settings)&&cm.toggleMenu.call(i,!1),r!==t){var o=r?"controlshidden":"controlsshown";Rp.call(i,i.media,o)}return!r}return!1})),hh(this,"on",(function(e,t){Lp.call(i,i.elements.container,e,t)})),hh(this,"once",(function(e,t){jp.call(i,i.elements.container,e,t)})),hh(this,"off",(function(e,t){Np(i.elements.container,e,t)})),hh(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.ready){var n=function(){document.body.style.overflow="",i.embed=null,t?(Object.keys(i.elements).length&&(vp(i.elements.buttons.play),vp(i.elements.captions),vp(i.elements.controls),vp(i.elements.wrapper),i.elements.buttons.play=null,i.elements.captions=null,i.elements.controls=null,i.elements.wrapper=null),Jh(e)&&e()):(_p.call(i),Yp.cancelRequests.call(i),bp(i.elements.original,i.elements.container),Rp.call(i,i.elements.original,"destroyed",!0),Jh(e)&&e.call(i.elements.original),i.ready=!1,setTimeout((function(){i.elements=null,i.media=null}),200))};i.stop(),clearTimeout(i.timers.loading),clearTimeout(i.timers.controls),clearTimeout(i.timers.resized),i.isHTML5?(Sm.toggleNativeControls.call(i,!0),n()):i.isYouTube?(clearInterval(i.timers.buffering),clearInterval(i.timers.playing),null!==i.embed&&Jh(i.embed.destroy)&&i.embed.destroy(),n()):i.isVimeo&&(null!==i.embed&&i.embed.unload().then(n),setTimeout(n,200))}})),hh(this,"supports",(function(e){return Op.mime.call(i,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Op.touch,this.media=t,Xh(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||ep(this.media)||Zh(this.media))&&(this.media=this.media[0]),this.config=dp({},hm,e.defaults,n||{},function(){try{return JSON.parse(i.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new wm(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Op),!Kh(this.media)&&tp(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Op.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),tp(a)){if(s=um(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?gm.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?gm.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(sp(this.provider)||!Object.values(gm).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ym;break;case"video":case"audio":this.type=o,this.provider=gm.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Op.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Em(this),this.storage=new im(this),this.media.plyr=this,tp(this.elements.container)||(this.elements.container=mp("div",{tabindex:0}),hp(this.media,this.elements.container)),Sm.migrateStyles.call(this),Sm.addStyleHook.call(this),Lm.setup.call(this),this.config.debug&&Lp.call(this,this.elements.container,this.config.events.join(" "),(function(e){i.debug.log("event: ".concat(e.type))})),this.fullscreen=new km(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Sm.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Nm(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Dp(i.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Fm(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Ma(e,[{key:"isHTML5",get:function(){return this.provider===gm.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===gm.youtube}},{key:"isVimeo",get:function(){return this.provider===gm.vimeo}},{key:"isVideo",get:function(){return this.type===ym}},{key:"isAudio",get:function(){return this.type===vm}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(e){if(this.duration){var t=Gh(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var e=this.media.buffered;return Gh(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=Gh(t)&&t!==1/0?t:0;return e||n}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;Xh(t)&&(t=Number(t)),Gh(t)||(t=this.storage.get("volume")),Gh(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!sp(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;Qh(t)||(t=this.storage.get("muted")),Qh(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(e){var t=this,n=null;Gh(e)&&(n=e),Gh(n)||(n=this.storage.get("speed")),Gh(n)||(n=this.config.speed.selected);var i=this.minimumSpeed,r=this.maximumSpeed;n=jm(n,i,r),this.config.speed.selected=n,setTimeout((function(){t.media&&(t.media.playbackRate=n)}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Ca(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Ca(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var i=[!sp(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Gh),r=!0;if(!n.includes(i)){var o=Hp(n,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead")),i=o,r=!1}t.selected=i,this.media.quality=i,r&&this.storage.set({quality:i})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=Qh(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}},{key:"source",get:function(){return this.media.currentSrc},set:function(e){Dm.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return ap(e)?e:this.source},set:function(e){ap(e)&&(this.config.urls.download=e,cm.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(e){this.isVideo?Sm.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=zp(Wp.call(this));return Zh(e)?e.join(":"):e},set:function(e){this.isVideo?Xh(e)&&Vp(e)?(this.config.ratio=zp(e),$p.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(e){this.config.autoplay=Qh(e)?e:this.config.autoplay}},{key:"toggleCaptions",value:function(e){dm.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1},set:function(e){dm.set.call(this,e,!1),dm.setup.call(this)}},{key:"language",get:function(){return(dm.getCurrentTrack.call(this)||{}).language},set:function(e){dm.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return Op.pip?sp(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===pm:null},set:function(e){if(Op.pip){var t=Qh(e)?e:!this.pip;Jh(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?pm:mm),Jh(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}}},{key:"setPreviewThumbnails",value:function(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Fm(this))}}],[{key:"supported",value:function(e,t,n){return Op.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return om(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;return Xh(t)?i=Array.from(document.querySelectorAll(t)):ep(t)?i=Array.from(t):Zh(t)&&(i=t.filter(tp)),sp(i)?null:i.map((function(t){return new e(t,n)}))}}]),e}();qm.defaults=function(e){return JSON.parse(JSON.stringify(e))}(hm);var Hm={name:"VuePlyr",props:{options:{type:Object,required:!1,default:()=>({})}},data:()=>({player:{}}),computed:{opts(){const e=this.options;return Object.prototype.hasOwnProperty.call(this.options,"hideYouTubeDOMError")||(e.hideYouTubeDOMError=!0),e}},mounted(){this.player=new qm(this.$el,this.opts)},beforeUnmount(){try{this.player.destroy()}catch(e){this.opts.hideYouTubeDOMError&&"The YouTube player is not attached to the DOM."===e.message||console.error(e)}},render(){const e=this.$slots.default;return"function"==typeof e?e()[0]:e},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plyr&&(Hm.props.options.default=function(){return Xi({},t.plyr)}),e.component(Hm.name,Hm)}};return Hm}();//# sourceMappingURL=vue-plyr.min.js.map