UNPKG

@hoanpx2201/vue-plyr

Version:

A vue component for the plyr video & audio player.

3 lines 216 kB
var e=function(e){try{return!!e()}catch(e){return!0}},t=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t,n){return e(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)}},n.exports),n.exports}var i=function(e){return e&&e.Math==Math&&e},o=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n&&n)||Function("return this")(),a=function(e){return"object"==typeof e?null!==e:"function"==typeof e},s=o.document,l=a(s)&&a(s.createElement),c=function(e){return l?s.createElement(e):{}},u=!t&&!e((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})),f=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e},d=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},h=Object.defineProperty,p={f:t?h:function(e,t,n){if(f(e),t=d(t,!0),f(n),u)try{return h(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},g=p.f,m=Function.prototype,v=m.toString,y=/^\s*function ([^ (]*)/;t&&!("name"in m)&&g(m,"name",{configurable:!0,get:function(){try{return v.call(this).match(y)[1]}catch(e){return""}}});var b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,S={f:w&&!b.call({1:2},1)?function(e){var t=w(this,e);return!!t&&t.enumerable}:b},k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T={}.toString,A=function(e){return T.call(e).slice(8,-1)},E="".split,O=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==A(e)?E.call(e,""):Object(e)}:Object,P=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},x=function(e){return O(P(e))},C={}.hasOwnProperty,I=function(e,t){return C.call(e,t)},j=Object.getOwnPropertyDescriptor,L={f:t?j:function(e,t){if(e=x(e),t=d(t,!0),u)try{return j(e,t)}catch(e){}if(I(e,t))return k(!S.f.call(e,t),e[t])}},M=t?function(e,t,n){return p.f(e,t,k(1,n))}:function(e,t,n){return e[t]=n,e},N=function(e,t){try{M(o,e,t)}catch(n){o[e]=t}return t},R=o["__core-js_shared__"]||N("__core-js_shared__",{}),_=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(e){return _.call(e)});var D,F,U,q=R.inspectSource,H=o.WeakMap,B="function"==typeof H&&/native code/.test(q(H)),V=r((function(e){(e.exports=function(e,t){return R[e]||(R[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),z=0,W=Math.random(),$=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++z+W).toString(36)},G=V("keys"),Y=function(e){return G[e]||(G[e]=$(e))},K={},X=o.WeakMap;if(B){var Q=new X,J=Q.get,Z=Q.has,ee=Q.set;D=function(e,t){return ee.call(Q,e,t),t},F=function(e){return J.call(Q,e)||{}},U=function(e){return Z.call(Q,e)}}else{var te=Y("state");K[te]=!0,D=function(e,t){return M(e,te,t),t},F=function(e){return I(e,te)?e[te]:{}},U=function(e){return I(e,te)}}var ne,re={set:D,get:F,has:U,enforce:function(e){return U(e)?F(e):D(e,{})},getterFor:function(e){return function(t){var n;if(!a(t)||(n=F(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ie=r((function(e){var t=re.get,n=re.enforce,r=String(String).split("String");(e.exports=function(e,t,i,a){var s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||I(i,"name")||M(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==o?(s?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=i:M(e,t,i)):l?e[t]=i:N(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||q(this)}))})),oe=o,ae=function(e){return"function"==typeof e?e:void 0},se=function(e,t){return arguments.length<2?ae(oe[e])||ae(o[e]):oe[e]&&oe[e][t]||o[e]&&o[e][t]},le=Math.ceil,ce=Math.floor,ue=function(e){return isNaN(e=+e)?0:(e>0?ce:le)(e)},fe=Math.min,de=function(e){return e>0?fe(ue(e),9007199254740991):0},he=Math.max,pe=Math.min,ge=function(e,t){var n=ue(e);return n<0?he(n+t,0):pe(n,t)},me=function(e){return function(t,n,r){var i,o=x(t),a=de(o.length),s=ge(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ve={includes:me(!0),indexOf:me(!1)},ye=ve.indexOf,be=function(e,t){var n,r=x(e),i=0,o=[];for(n in r)!I(K,n)&&I(r,n)&&o.push(n);for(;t.length>i;)I(r,n=t[i++])&&(~ye(o,n)||o.push(n));return o},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=we.concat("length","prototype"),ke={f:Object.getOwnPropertyNames||function(e){return be(e,Se)}},Te={f:Object.getOwnPropertySymbols},Ae=se("Reflect","ownKeys")||function(e){var t=ke.f(f(e)),n=Te.f;return n?t.concat(n(e)):t},Ee=function(e,t){for(var n=Ae(t),r=p.f,i=L.f,o=0;o<n.length;o++){var a=n[o];I(e,a)||r(e,a,i(t,a))}},Oe=/#|\.prototype\./,Pe=function(t,n){var r=Ce[xe(t)];return r==je||r!=Ie&&("function"==typeof n?e(n):!!n)},xe=Pe.normalize=function(e){return String(e).replace(Oe,".").toLowerCase()},Ce=Pe.data={},Ie=Pe.NATIVE="N",je=Pe.POLYFILL="P",Le=Pe,Me=L.f,Ne=function(e,t){var n,r,i,a,s,l=e.target,c=e.global,u=e.stat;if(n=c?o:u?o[l]||N(l,{}):(o[l]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(s=Me(n,r))&&s.value:n[r],!Le(c?r:l+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ee(a,i)}(e.sham||i&&i.sham)&&M(a,"sham",!0),ie(n,r,a,e)}},Re=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())})),_e=Re&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,De=Array.isArray||function(e){return"Array"==A(e)},Fe=function(e){return Object(P(e))},Ue=Object.keys||function(e){return be(e,we)},qe=t?Object.defineProperties:function(e,t){f(e);for(var n,r=Ue(t),i=r.length,o=0;i>o;)p.f(e,n=r[o++],t[n]);return e},He=se("document","documentElement"),Be=Y("IE_PROTO"),Ve=function(){},ze=function(e){return"<script>"+e+"<\/script>"},We=function(){try{ne=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;We=ne?function(e){e.write(ze("")),e.close();var t=e.parentWindow.Object;return e=null,t}(ne):((t=c("iframe")).style.display="none",He.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ze("document.F=Object")),e.close(),e.F);for(var n=we.length;n--;)delete We.prototype[we[n]];return We()};K[Be]=!0;var $e=Object.create||function(e,t){var n;return null!==e?(Ve.prototype=f(e),n=new Ve,Ve.prototype=null,n[Be]=e):n=We(),void 0===t?n:qe(n,t)},Ge=ke.f,Ye={}.toString,Ke="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xe={f:function(e){return Ke&&"[object Window]"==Ye.call(e)?function(e){try{return Ge(e)}catch(e){return Ke.slice()}}(e):Ge(x(e))}},Qe=V("wks"),Je=o.Symbol,Ze=_e?Je:Je&&Je.withoutSetter||$,et=function(e){return I(Qe,e)||(Re&&I(Je,e)?Qe[e]=Je[e]:Qe[e]=Ze("Symbol."+e)),Qe[e]},tt={f:et},nt=p.f,rt=function(e){var t=oe.Symbol||(oe.Symbol={});I(t,e)||nt(t,e,{value:tt.f(e)})},it=p.f,ot=et("toStringTag"),at=function(e,t,n){e&&!I(e=n?e:e.prototype,ot)&&it(e,ot,{configurable:!0,value:t})},st=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},lt=et("species"),ct=function(e,t){var n;return De(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!De(n.prototype)?a(n)&&null===(n=n[lt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ut=[].push,ft=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,l,c,u){for(var f,d,h=Fe(s),p=O(h),g=st(l,c,3),m=de(p.length),v=0,y=u||ct,b=t?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(d=g(f=p[v],v,h),e))if(t)b[v]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:ut.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},dt={forEach:ft(0),map:ft(1),filter:ft(2),some:ft(3),every:ft(4),find:ft(5),findIndex:ft(6)},ht=dt.forEach,pt=Y("hidden"),gt=et("toPrimitive"),mt=re.set,vt=re.getterFor("Symbol"),yt=Object.prototype,bt=o.Symbol,wt=se("JSON","stringify"),St=L.f,kt=p.f,Tt=Xe.f,At=S.f,Et=V("symbols"),Ot=V("op-symbols"),Pt=V("string-to-symbol-registry"),xt=V("symbol-to-string-registry"),Ct=V("wks"),It=o.QObject,jt=!It||!It.prototype||!It.prototype.findChild,Lt=t&&e((function(){return 7!=$e(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=St(yt,t);r&&delete yt[t],kt(e,t,n),r&&e!==yt&&kt(yt,t,r)}:kt,Mt=function(e,n){var r=Et[e]=$e(bt.prototype);return mt(r,{type:"Symbol",tag:e,description:n}),t||(r.description=n),r},Nt=_e?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof bt},Rt=function(e,t,n){e===yt&&Rt(Ot,t,n),f(e);var r=d(t,!0);return f(n),I(Et,r)?(n.enumerable?(I(e,pt)&&e[pt][r]&&(e[pt][r]=!1),n=$e(n,{enumerable:k(0,!1)})):(I(e,pt)||kt(e,pt,k(1,{})),e[pt][r]=!0),Lt(e,r,n)):kt(e,r,n)},_t=function(e,n){f(e);var r=x(n),i=Ue(r).concat(qt(r));return ht(i,(function(n){t&&!Dt.call(r,n)||Rt(e,n,r[n])})),e},Dt=function(e){var t=d(e,!0),n=At.call(this,t);return!(this===yt&&I(Et,t)&&!I(Ot,t))&&(!(n||!I(this,t)||!I(Et,t)||I(this,pt)&&this[pt][t])||n)},Ft=function(e,t){var n=x(e),r=d(t,!0);if(n!==yt||!I(Et,r)||I(Ot,r)){var i=St(n,r);return!i||!I(Et,r)||I(n,pt)&&n[pt][r]||(i.enumerable=!0),i}},Ut=function(e){var t=Tt(x(e)),n=[];return ht(t,(function(e){I(Et,e)||I(K,e)||n.push(e)})),n},qt=function(e){var t=e===yt,n=Tt(t?Ot:x(e)),r=[];return ht(n,(function(e){!I(Et,e)||t&&!I(yt,e)||r.push(Et[e])})),r};if(Re||(ie((bt=function(){if(this instanceof bt)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,n=$(e),r=function(e){this===yt&&r.call(Ot,e),I(this,pt)&&I(this[pt],n)&&(this[pt][n]=!1),Lt(this,n,k(1,e))};return t&&jt&&Lt(yt,n,{configurable:!0,set:r}),Mt(n,e)}).prototype,"toString",(function(){return vt(this).tag})),ie(bt,"withoutSetter",(function(e){return Mt($(e),e)})),S.f=Dt,p.f=Rt,L.f=Ft,ke.f=Xe.f=Ut,Te.f=qt,tt.f=function(e){return Mt(et(e),e)},t&&(kt(bt.prototype,"description",{configurable:!0,get:function(){return vt(this).description}}),ie(yt,"propertyIsEnumerable",Dt,{unsafe:!0}))),Ne({global:!0,wrap:!0,forced:!Re,sham:!Re},{Symbol:bt}),ht(Ue(Ct),(function(e){rt(e)})),Ne({target:"Symbol",stat:!0,forced:!Re},{for:function(e){var t=String(e);if(I(Pt,t))return Pt[t];var n=bt(t);return Pt[t]=n,xt[n]=t,n},keyFor:function(e){if(!Nt(e))throw TypeError(e+" is not a symbol");if(I(xt,e))return xt[e]},useSetter:function(){jt=!0},useSimple:function(){jt=!1}}),Ne({target:"Object",stat:!0,forced:!Re,sham:!t},{create:function(e,t){return void 0===t?$e(e):_t($e(e),t)},defineProperty:Rt,defineProperties:_t,getOwnPropertyDescriptor:Ft}),Ne({target:"Object",stat:!0,forced:!Re},{getOwnPropertyNames:Ut,getOwnPropertySymbols:qt}),Ne({target:"Object",stat:!0,forced:e((function(){Te.f(1)}))},{getOwnPropertySymbols:function(e){return Te.f(Fe(e))}}),wt){var Ht=!Re||e((function(){var e=bt();return"[null]"!=wt([e])||"{}"!=wt({a:e})||"{}"!=wt(Object(e))}));Ne({target:"JSON",stat:!0,forced:Ht},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(a(t)||void 0!==e)&&!Nt(e))return De(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Nt(t))return t}),i[1]=t,wt.apply(null,i)}})}bt.prototype[gt]||M(bt.prototype,gt,bt.prototype.valueOf),at(bt,"Symbol"),K[pt]=!0;var Bt,Vt,zt=se("navigator","userAgent")||"",Wt=o.process,$t=Wt&&Wt.versions,Gt=$t&&$t.v8;Gt?Vt=(Bt=Gt.split("."))[0]+Bt[1]:zt&&(!(Bt=zt.match(/Edge\/(\d+)/))||Bt[1]>=74)&&(Bt=zt.match(/Chrome\/(\d+)/))&&(Vt=Bt[1]);var Yt=Vt&&+Vt,Kt=et("species"),Xt=function(t){return Yt>=51||!e((function(){var e=[];return(e.constructor={})[Kt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Qt=Object.defineProperty,Jt={},Zt=function(e){throw e},en=function(n,r){if(I(Jt,n))return Jt[n];r||(r={});var i=[][n],o=!!I(r,"ACCESSORS")&&r.ACCESSORS,a=I(r,0)?r[0]:Zt,s=I(r,1)?r[1]:void 0;return Jt[n]=!!i&&!e((function(){if(o&&!t)return!0;var e={length:-1};o?Qt(e,1,{enumerable:!0,get:Zt}):e[1]=1,i.call(e,a,s)}))},tn=dt.filter,nn=Xt("filter"),rn=en("filter");Ne({target:"Array",proto:!0,forced:!nn||!rn},{filter:function(e){return tn(this,e,arguments.length>1?arguments[1]:void 0)}});var on=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){throw 1},1)}))},an=dt.forEach,sn=on("forEach"),ln=en("forEach"),cn=sn&&ln?[].forEach:function(e){return an(this,e,arguments.length>1?arguments[1]:void 0)};Ne({target:"Array",proto:!0,forced:[].forEach!=cn},{forEach:cn});var un=L.f,fn=e((function(){un(1)}));Ne({target:"Object",stat:!0,forced:!t||fn,sham:!t},{getOwnPropertyDescriptor:function(e,t){return un(x(e),t)}});var dn=function(e,t,n){var r=d(t);r in e?p.f(e,r,k(0,n)):e[r]=n};Ne({target:"Object",stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){for(var t,n,r=x(e),i=L.f,o=Ae(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&dn(a,t,n);return a}});var hn=e((function(){Ue(1)}));Ne({target:"Object",stat:!0,forced:hn},{keys:function(e){return Ue(Fe(e))}});var pn={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};for(var gn in pn){var mn=o[gn],vn=mn&&mn.prototype;if(vn&&vn.forEach!==cn)try{M(vn,"forEach",cn)}catch(e){vn.forEach=cn}}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach((function(t){yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sn,kn,Tn=function(e){return e&&e.Math===Math&&e},An=Tn("object"==typeof globalThis&&globalThis)||Tn("object"==typeof window&&window)||Tn("object"==typeof self&&self)||Tn("object"==typeof n&&n)||Tn("object"==typeof n&&n)||function(){return this}()||Function("return this")(),En=function(e){try{return!!e()}catch(e){return!0}},On=!En((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pn=!En((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),xn=Function.prototype.call,Cn=Pn?xn.bind(xn):function(){return xn.apply(xn,arguments)},In={}.propertyIsEnumerable,jn=Object.getOwnPropertyDescriptor,Ln={f:jn&&!In.call({1:2},1)?function(e){var t=jn(this,e);return!!t&&t.enumerable}:In},Mn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Nn=Function.prototype,Rn=Nn.call,_n=Pn&&Nn.bind.bind(Rn,Rn),Dn=Pn?_n:function(e){return function(){return Rn.apply(e,arguments)}},Fn=Dn({}.toString),Un=Dn("".slice),qn=function(e){return Un(Fn(e),8,-1)},Hn=Object,Bn=Dn("".split),Vn=En((function(){return!Hn("z").propertyIsEnumerable(0)}))?function(e){return"String"===qn(e)?Bn(e,""):Hn(e)}:Hn,zn=function(e){return null==e},Wn=TypeError,$n=function(e){if(zn(e))throw new Wn("Can't call method on "+e);return e},Gn=function(e){return Vn($n(e))},Yn="object"==typeof document&&document.all,Kn=void 0===Yn&&void 0!==Yn?function(e){return"function"==typeof e||e===Yn}:function(e){return"function"==typeof e},Xn=function(e){return"object"==typeof e?null!==e:Kn(e)},Qn=function(e){return Kn(e)?e:void 0},Jn=function(e,t){return arguments.length<2?Qn(An[e]):An[e]&&An[e][t]},Zn=Dn({}.isPrototypeOf),er=An.navigator,tr=er&&er.userAgent,nr=tr?String(tr):"",rr=An.process,ir=An.Deno,or=rr&&rr.versions||ir&&ir.version,ar=or&&or.v8;ar&&(kn=(Sn=ar.split("."))[0]>0&&Sn[0]<4?1:+(Sn[0]+Sn[1])),!kn&&nr&&(!(Sn=nr.match(/Edge\/(\d+)/))||Sn[1]>=74)&&(Sn=nr.match(/Chrome\/(\d+)/))&&(kn=+Sn[1]);var sr=kn,lr=An.String,cr=!!Object.getOwnPropertySymbols&&!En((function(){var e=Symbol("symbol detection");return!lr(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sr&&sr<41})),ur=cr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fr=Object,dr=ur?function(e){return"symbol"==typeof e}:function(e){var t=Jn("Symbol");return Kn(t)&&Zn(t.prototype,fr(e))},hr=String,pr=function(e){try{return hr(e)}catch(e){return"Object"}},gr=TypeError,mr=function(e){if(Kn(e))return e;throw new gr(pr(e)+" is not a function")},vr=function(e,t){var n=e[t];return zn(n)?void 0:mr(n)},yr=TypeError,br=function(e,t){var n,r;if("string"===t&&Kn(n=e.toString)&&!Xn(r=Cn(n,e)))return r;if(Kn(n=e.valueOf)&&!Xn(r=Cn(n,e)))return r;if("string"!==t&&Kn(n=e.toString)&&!Xn(r=Cn(n,e)))return r;throw new yr("Can't convert object to primitive value")},wr=Object.defineProperty,Sr=function(e,t){try{wr(An,e,{value:t,configurable:!0,writable:!0})}catch(n){An[e]=t}return t},kr=r((function(e){var t="__core-js_shared__",n=e.exports=An[t]||Sr(t,{});(n.versions||(n.versions=[])).push({version:"3.41.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),Tr=function(e,t){return kr[e]||(kr[e]=t||{})},Ar=Object,Er=function(e){return Ar($n(e))},Or=Dn({}.hasOwnProperty),Pr=Object.hasOwn||function(e,t){return Or(Er(e),t)},xr=0,Cr=Math.random(),Ir=Dn(1..toString),jr=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ir(++xr+Cr,36)},Lr=An.Symbol,Mr=Tr("wks"),Nr=ur?Lr.for||Lr:Lr&&Lr.withoutSetter||jr,Rr=function(e){return Pr(Mr,e)||(Mr[e]=cr&&Pr(Lr,e)?Lr[e]:Nr("Symbol."+e)),Mr[e]},_r=TypeError,Dr=Rr("toPrimitive"),Fr=function(e,t){if(!Xn(e)||dr(e))return e;var n,r=vr(e,Dr);if(r){if(void 0===t&&(t="default"),n=Cn(r,e,t),!Xn(n)||dr(n))return n;throw new _r("Can't convert object to primitive value")}return void 0===t&&(t="number"),br(e,t)},Ur=function(e){var t=Fr(e,"string");return dr(t)?t:t+""},qr=An.document,Hr=Xn(qr)&&Xn(qr.createElement),Br=function(e){return Hr?qr.createElement(e):{}},Vr=!On&&!En((function(){return 7!==Object.defineProperty(Br("div"),"a",{get:function(){return 7}}).a})),zr=Object.getOwnPropertyDescriptor,Wr={f:On?zr:function(e,t){if(e=Gn(e),t=Ur(t),Vr)try{return zr(e,t)}catch(e){}if(Pr(e,t))return Mn(!Cn(Ln.f,e,t),e[t])}},$r=On&&En((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Gr=String,Yr=TypeError,Kr=function(e){if(Xn(e))return e;throw new Yr(Gr(e)+" is not an object")},Xr=TypeError,Qr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Zr={f:On?$r?function(e,t,n){if(Kr(e),t=Ur(t),Kr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=Jr(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Qr(e,t,n)}:Qr:function(e,t,n){if(Kr(e),t=Ur(t),Kr(n),Vr)try{return Qr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Xr("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ei=On?function(e,t,n){return Zr.f(e,t,Mn(1,n))}:function(e,t,n){return e[t]=n,e},ti=Function.prototype,ni=On&&Object.getOwnPropertyDescriptor,ri=Pr(ti,"name"),ii={EXISTS:ri,PROPER:ri&&"something"===function(){}.name,CONFIGURABLE:ri&&(!On||On&&ni(ti,"name").configurable)},oi=Dn(Function.toString);Kn(kr.inspectSource)||(kr.inspectSource=function(e){return oi(e)});var ai,si,li,ci=kr.inspectSource,ui=An.WeakMap,fi=Kn(ui)&&/native code/.test(String(ui)),di=Tr("keys"),hi=function(e){return di[e]||(di[e]=jr(e))},pi={},gi=An.TypeError,mi=An.WeakMap;if(fi||kr.state){var vi=kr.state||(kr.state=new mi);vi.get=vi.get,vi.has=vi.has,vi.set=vi.set,ai=function(e,t){if(vi.has(e))throw new gi("Object already initialized");return t.facade=e,vi.set(e,t),t},si=function(e){return vi.get(e)||{}},li=function(e){return vi.has(e)}}else{var yi=hi("state");pi[yi]=!0,ai=function(e,t){if(Pr(e,yi))throw new gi("Object already initialized");return t.facade=e,ei(e,yi,t),t},si=function(e){return Pr(e,yi)?e[yi]:{}},li=function(e){return Pr(e,yi)}}var bi={set:ai,get:si,has:li,enforce:function(e){return li(e)?si(e):ai(e,{})},getterFor:function(e){return function(t){var n;if(!Xn(t)||(n=si(t)).type!==e)throw new gi("Incompatible receiver, "+e+" required");return n}}},wi=r((function(e){var t=ii.CONFIGURABLE,n=bi.enforce,r=bi.get,i=String,o=Object.defineProperty,a=Dn("".slice),s=Dn("".replace),l=Dn([].join),c=On&&!En((function(){return 8!==o((function(){}),"length",{value:8}).length})),u=String(String).split("String"),f=e.exports=function(e,r,f){"Symbol("===a(i(r),0,7)&&(r="["+s(i(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(r="get "+r),f&&f.setter&&(r="set "+r),(!Pr(e,"name")||t&&e.name!==r)&&(On?o(e,"name",{value:r,configurable:!0}):e.name=r),c&&f&&Pr(f,"arity")&&e.length!==f.arity&&o(e,"length",{value:f.arity});try{f&&Pr(f,"constructor")&&f.constructor?On&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var d=n(e);return Pr(d,"source")||(d.source=l(u,"string"==typeof r?r:"")),e};Function.prototype.toString=f((function(){return Kn(this)&&r(this).source||ci(this)}),"toString")})),Si=function(e,t,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:t;if(Kn(n)&&wi(n,o,r),r.global)i?e[t]=n:Sr(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:Zr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},ki=Math.ceil,Ti=Math.floor,Ai=Math.trunc||function(e){var t=+e;return(t>0?Ti:ki)(t)},Ei=function(e){var t=+e;return t!=t||0===t?0:Ai(t)},Oi=Math.max,Pi=Math.min,xi=function(e,t){var n=Ei(e);return n<0?Oi(n+t,0):Pi(n,t)},Ci=Math.min,Ii=function(e){var t=Ei(e);return t>0?Ci(t,9007199254740991):0},ji=function(e){return Ii(e.length)},Li=function(e){return function(t,n,r){var i=Gn(t),o=ji(i);if(0===o)return!e&&-1;var a,s=xi(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Mi={includes:Li(!0),indexOf:Li(!1)},Ni=Mi.indexOf,Ri=Dn([].push),_i=function(e,t){var n,r=Gn(e),i=0,o=[];for(n in r)!Pr(pi,n)&&Pr(r,n)&&Ri(o,n);for(;t.length>i;)Pr(r,n=t[i++])&&(~Ni(o,n)||Ri(o,n));return o},Di=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fi=Di.concat("length","prototype"),Ui={f:Object.getOwnPropertyNames||function(e){return _i(e,Fi)}},qi={f:Object.getOwnPropertySymbols},Hi=Dn([].concat),Bi=Jn("Reflect","ownKeys")||function(e){var t=Ui.f(Kr(e)),n=qi.f;return n?Hi(t,n(e)):t},Vi=function(e,t,n){for(var r=Bi(t),i=Zr.f,o=Wr.f,a=0;a<r.length;a++){var s=r[a];Pr(e,s)||n&&Pr(n,s)||i(e,s,o(t,s))}},zi=/#|\.prototype\./,Wi=function(e,t){var n=Gi[$i(e)];return n===Ki||n!==Yi&&(Kn(t)?En(t):!!t)},$i=Wi.normalize=function(e){return String(e).replace(zi,".").toLowerCase()},Gi=Wi.data={},Yi=Wi.NATIVE="N",Ki=Wi.POLYFILL="P",Xi=Wi,Qi=Wr.f,Ji=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,c=e.stat;if(n=l?An:c?An[s]||Sr(s,{}):An[s]&&An[s].prototype)for(r in t){if(o=t[r],i=e.dontCallGetSet?(a=Qi(n,r))&&a.value:n[r],!Xi(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Vi(o,i)}(e.sham||i&&i.sham)&&ei(o,"sham",!0),Si(n,r,o,e)}},Zi={};Zi[Rr("toStringTag")]="z";var eo,to="[object z]"===String(Zi),no=Rr("toStringTag"),ro=Object,io="Arguments"===qn(function(){return arguments}()),oo=to?qn:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ro(e),no))?n:io?qn(t):"Object"===(r=qn(t))&&Kn(t.callee)?"Arguments":r},ao=String,so=function(e){if("Symbol"===oo(e))throw new TypeError("Cannot convert a Symbol value to a string");return ao(e)},lo=Object.keys||function(e){return _i(e,Di)},co={f:On&&!$r?Object.defineProperties:function(e,t){Kr(e);for(var n,r=Gn(t),i=lo(t),o=i.length,a=0;o>a;)Zr.f(e,n=i[a++],r[n]);return e}},uo=Jn("document","documentElement"),fo=hi("IE_PROTO"),ho=function(){},po=function(e){return"<script>"+e+"<\/script>"},go=function(e){e.write(po("")),e.close();var t=e.parentWindow.Object;return e=null,t},mo=function(){try{eo=new ActiveXObject("htmlfile")}catch(e){}var e,t;mo="undefined"!=typeof document?document.domain&&eo?go(eo):((t=Br("iframe")).style.display="none",uo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(po("document.F=Object")),e.close(),e.F):go(eo);for(var n=Di.length;n--;)delete mo.prototype[Di[n]];return mo()};pi[fo]=!0;var vo=Object.create||function(e,t){var n;return null!==e?(ho.prototype=Kr(e),n=new ho,ho.prototype=null,n[fo]=e):n=mo(),void 0===t?n:co.f(n,t)},yo=Dn([].slice),bo=Ui.f,wo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],So={f:function(e){return wo&&"Window"===qn(e)?function(e){try{return bo(e)}catch(e){return yo(wo)}}(e):bo(Gn(e))}},ko=function(e,t,n){return n.get&&wi(n.get,t,{getter:!0}),n.set&&wi(n.set,t,{setter:!0}),Zr.f(e,t,n)},To={f:Rr},Ao=An,Eo=Zr.f,Oo=function(e){var t=Ao.Symbol||(Ao.Symbol={});Pr(t,e)||Eo(t,e,{value:To.f(e)})},Po=function(){var e=Jn("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Rr("toPrimitive");t&&!t[r]&&Si(t,r,(function(e){return Cn(n,this)}),{arity:1})},xo=Zr.f,Co=Rr("toStringTag"),Io=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Pr(e,Co)&&xo(e,Co,{configurable:!0,value:t})},jo=function(e){if("Function"===qn(e))return Dn(e)},Lo=jo(jo.bind),Mo=function(e,t){return mr(e),void 0===t?e:Pn?Lo(e,t):function(){return e.apply(t,arguments)}},No=Array.isArray||function(e){return"Array"===qn(e)},Ro=function(){},_o=Jn("Reflect","construct"),Do=/^\s*(?:class|function)\b/,Fo=Dn(Do.exec),Uo=!Do.test(Ro),qo=function(e){if(!Kn(e))return!1;try{return _o(Ro,[],e),!0}catch(e){return!1}},Ho=function(e){if(!Kn(e))return!1;switch(oo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Uo||!!Fo(Do,ci(e))}catch(e){return!0}};Ho.sham=!0;var Bo=!_o||En((function(){var e;return qo(qo.call)||!qo(Object)||!qo((function(){e=!0}))||e}))?Ho:qo,Vo=Rr("species"),zo=Array,Wo=function(e,t){return new(function(e){var t;return No(e)&&(t=e.constructor,(Bo(t)&&(t===zo||No(t.prototype))||Xn(t)&&null===(t=t[Vo]))&&(t=void 0)),void 0===t?zo:t}(e))(0===t?0:t)},$o=Dn([].push),Go=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(l,c,u,f){for(var d,h,p=Er(l),g=Vn(p),m=ji(g),v=Mo(c,u),y=0,b=f||Wo,w=t?b(l,m):n||a?b(l,0):void 0;m>y;y++)if((s||y in g)&&(h=v(d=g[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:$o(w,d)}else switch(e){case 4:return!1;case 7:$o(w,d)}return o?-1:r||i?i:w}},Yo={forEach:Go(0),map:Go(1),filter:Go(2),some:Go(3),every:Go(4),find:Go(5),findIndex:Go(6),filterReject:Go(7)},Ko=Yo.forEach,Xo=hi("hidden"),Qo=bi.set,Jo=bi.getterFor("Symbol"),Zo=Object.prototype,ea=An.Symbol,ta=ea&&ea.prototype,na=An.RangeError,ra=An.TypeError,ia=An.QObject,oa=Wr.f,aa=Zr.f,sa=So.f,la=Ln.f,ca=Dn([].push),ua=Tr("symbols"),fa=Tr("op-symbols"),da=Tr("wks"),ha=!ia||!ia.prototype||!ia.prototype.findChild,pa=function(e,t,n){var r=oa(Zo,t);r&&delete Zo[t],aa(e,t,n),r&&e!==Zo&&aa(Zo,t,r)},ga=On&&En((function(){return 7!==vo(aa({},"a",{get:function(){return aa(this,"a",{value:7}).a}})).a}))?pa:aa,ma=function(e,t){var n=ua[e]=vo(ta);return Qo(n,{type:"Symbol",tag:e,description:t}),On||(n.description=t),n},va=function(e,t,n){e===Zo&&va(fa,t,n),Kr(e);var r=Ur(t);return Kr(n),Pr(ua,r)?(n.enumerable?(Pr(e,Xo)&&e[Xo][r]&&(e[Xo][r]=!1),n=vo(n,{enumerable:Mn(0,!1)})):(Pr(e,Xo)||aa(e,Xo,Mn(1,vo(null))),e[Xo][r]=!0),ga(e,r,n)):aa(e,r,n)},ya=function(e,t){Kr(e);var n=Gn(t),r=lo(n).concat(ka(n));return Ko(r,(function(t){On&&!Cn(ba,n,t)||va(e,t,n[t])})),e},ba=function(e){var t=Ur(e),n=Cn(la,this,t);return!(this===Zo&&Pr(ua,t)&&!Pr(fa,t))&&(!(n||!Pr(this,t)||!Pr(ua,t)||Pr(this,Xo)&&this[Xo][t])||n)},wa=function(e,t){var n=Gn(e),r=Ur(t);if(n!==Zo||!Pr(ua,r)||Pr(fa,r)){var i=oa(n,r);return!i||!Pr(ua,r)||Pr(n,Xo)&&n[Xo][r]||(i.enumerable=!0),i}},Sa=function(e){var t=sa(Gn(e)),n=[];return Ko(t,(function(e){Pr(ua,e)||Pr(pi,e)||ca(n,e)})),n},ka=function(e){var t=e===Zo,n=sa(t?fa:Gn(e)),r=[];return Ko(n,(function(e){!Pr(ua,e)||t&&!Pr(Zo,e)||ca(r,ua[e])})),r};cr||(ta=(ea=function(){if(Zn(ta,this))throw new ra("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?so(arguments[0]):void 0,t=jr(e),n=function(e){var r=void 0===this?An:this;r===Zo&&Cn(n,fa,e),Pr(r,Xo)&&Pr(r[Xo],t)&&(r[Xo][t]=!1);var i=Mn(1,e);try{ga(r,t,i)}catch(e){if(!(e instanceof na))throw e;pa(r,t,i)}};return On&&ha&&ga(Zo,t,{configurable:!0,set:n}),ma(t,e)}).prototype,Si(ta,"toString",(function(){return Jo(this).tag})),Si(ea,"withoutSetter",(function(e){return ma(jr(e),e)})),Ln.f=ba,Zr.f=va,co.f=ya,Wr.f=wa,Ui.f=So.f=Sa,qi.f=ka,To.f=function(e){return ma(Rr(e),e)},On&&(ko(ta,"description",{configurable:!0,get:function(){return Jo(this).description}}),Si(Zo,"propertyIsEnumerable",ba,{unsafe:!0}))),Ji({global:!0,constructor:!0,wrap:!0,forced:!cr,sham:!cr},{Symbol:ea}),Ko(lo(da),(function(e){Oo(e)})),Ji({target:"Symbol",stat:!0,forced:!cr},{useSetter:function(){ha=!0},useSimple:function(){ha=!1}}),Ji({target:"Object",stat:!0,forced:!cr,sham:!On},{create:function(e,t){return void 0===t?vo(e):ya(vo(e),t)},defineProperty:va,defineProperties:ya,getOwnPropertyDescriptor:wa}),Ji({target:"Object",stat:!0,forced:!cr},{getOwnPropertyNames:Sa}),Po(),Io(ea,"Symbol"),pi[Xo]=!0;var Ta=cr&&!!Symbol.for&&!!Symbol.keyFor,Aa=Tr("string-to-symbol-registry"),Ea=Tr("symbol-to-string-registry");Ji({target:"Symbol",stat:!0,forced:!Ta},{for:function(e){var t=so(e);if(Pr(Aa,t))return Aa[t];var n=Jn("Symbol")(t);return Aa[t]=n,Ea[n]=t,n}});var Oa=Tr("symbol-to-string-registry");Ji({target:"Symbol",stat:!0,forced:!Ta},{keyFor:function(e){if(!dr(e))throw new TypeError(pr(e)+" is not a symbol");if(Pr(Oa,e))return Oa[e]}});var Pa=Function.prototype,xa=Pa.apply,Ca=Pa.call,Ia="object"==typeof Reflect&&Reflect.apply||(Pn?Ca.bind(xa):function(){return Ca.apply(xa,arguments)}),ja=Dn([].push),La=function(e){if(Kn(e))return e;if(No(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?ja(n,i):"number"!=typeof i&&"Number"!==qn(i)&&"String"!==qn(i)||ja(n,so(i))}var o=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(No(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}},Ma=String,Na=Jn("JSON","stringify"),Ra=Dn(/./.exec),_a=Dn("".charAt),Da=Dn("".charCodeAt),Fa=Dn("".replace),Ua=Dn(1..toString),qa=/[\uD800-\uDFFF]/g,Ha=/^[\uD800-\uDBFF]$/,Ba=/^[\uDC00-\uDFFF]$/,Va=!cr||En((function(){var e=Jn("Symbol")("stringify detection");return"[null]"!==Na([e])||"{}"!==Na({a:e})||"{}"!==Na(Object(e))})),za=En((function(){return'"\\udf06\\ud834"'!==Na("\udf06\ud834")||'"\\udead"'!==Na("\udead")})),Wa=function(e,t){var n=yo(arguments),r=La(t);if(Kn(r)||void 0!==e&&!dr(e))return n[1]=function(e,t){if(Kn(r)&&(t=Cn(r,this,Ma(e),t)),!dr(t))return t},Ia(Na,null,n)},$a=function(e,t,n){var r=_a(n,t-1),i=_a(n,t+1);return Ra(Ha,e)&&!Ra(Ba,i)||Ra(Ba,e)&&!Ra(Ha,r)?"\\u"+Ua(Da(e,0),16):e};Na&&Ji({target:"JSON",stat:!0,arity:3,forced:Va||za},{stringify:function(e,t,n){var r=yo(arguments),i=Ia(Va?Wa:Na,null,r);return za&&"string"==typeof i?Fa(i,qa,$a):i}});var Ga=!cr||En((function(){qi.f(1)}));Ji({target:"Object",stat:!0,forced:Ga},{getOwnPropertySymbols:function(e){var t=qi.f;return t?t(Er(e)):[]}});var Ya=An.Symbol,Ka=Ya&&Ya.prototype;if(On&&Kn(Ya)&&(!("description"in Ka)||void 0!==Ya().description)){var Xa={},Qa=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:so(arguments[0]),t=Zn(Ka,this)?new Ya(e):void 0===e?Ya():Ya(e);return""===e&&(Xa[t]=!0),t};Vi(Qa,Ya),Qa.prototype=Ka,Ka.constructor=Qa;var Ja="Symbol(description detection)"===String(Ya("description detection")),Za=Dn(Ka.valueOf),es=Dn(Ka.toString),ts=/^Symbol\((.*)\)[^)]+$/,ns=Dn("".replace),rs=Dn("".slice);ko(Ka,"description",{configurable:!0,get:function(){var e=Za(this);if(Pr(Xa,e))return"";var t=es(e),n=Ja?rs(t,7,-1):ns(t,ts,"$1");return""===n?void 0:n}}),Ji({global:!0,constructor:!0,forced:!0},{Symbol:Qa})}Oo("toPrimitive"),Po();var is=TypeError,os=function(e){if(e>9007199254740991)throw is("Maximum allowed index exceeded");return e},as=function(e,t,n){On?Zr.f(e,t,Mn(0,n)):e[t]=n},ss=Rr("species"),ls=function(e){return sr>=51||!En((function(){var t=[];return(t.constructor={})[ss]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},cs=Rr("isConcatSpreadable"),us=sr>=51||!En((function(){var e=[];return e[cs]=!1,e.concat()[0]!==e})),fs=function(e){if(!Xn(e))return!1;var t=e[cs];return void 0!==t?!!t:No(e)},ds=!us||!ls("concat");Ji({target:"Array",proto:!0,arity:1,forced:ds},{concat:function(e){var t,n,r,i,o,a=Er(this),s=Wo(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(fs(o=-1===t?a:arguments[t]))for(i=ji(o),os(l+i),n=0;n<i;n++,l++)n in o&&as(s,l,o[n]);else os(l+1),as(s,l++,o);return s.length=l,s}});var hs=function(e,t){var n=[][e];return!!n&&En((function(){n.call(null,t||function(){return 1},1)}))},ps=Yo.every,gs=hs("every");Ji({target:"Array",proto:!0,forced:!gs},{every:function(e){return ps(this,e,arguments.length>1?arguments[1]:void 0)}});var ms=Yo.filter,vs=ls("filter");Ji({target:"Array",proto:!0,forced:!vs},{filter:function(e){return ms(this,e,arguments.length>1?arguments[1]:void 0)}});var ys=Zr.f,bs=Rr("unscopables"),ws=Array.prototype;void 0===ws[bs]&&ys(ws,bs,{configurable:!0,value:vo(null)});var Ss=function(e){ws[bs][e]=!0},ks=Yo.find,Ts=!0;"find"in[]&&Array(1).find((function(){Ts=!1})),Ji({target:"Array",proto:!0,forced:Ts},{find:function(e){return ks(this,e,arguments.length>1?arguments[1]:void 0)}}),Ss("find");var As=Yo.findIndex,Es=!0;"findIndex"in[]&&Array(1).findIndex((function(){Es=!1})),Ji({target:"Array",proto:!0,forced:Es},{findIndex:function(e){return As(this,e,arguments.length>1?arguments[1]:void 0)}}),Ss("findIndex");var Os=Yo.forEach,Ps=hs("forEach")?[].forEach:function(e){return Os(this,e,arguments.length>1?arguments[1]:void 0)};Ji({target:"Array",proto:!0,forced:[].forEach!==Ps},{forEach:Ps});var xs=function(e,t,n){var r,i;Kr(e);try{if(!(r=vr(e,"return"))){if("throw"===t)throw n;return n}r=Cn(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Kr(r),n},Cs=function(e,t,n,r){try{return r?t(Kr(n)[0],n[1]):t(n)}catch(t){xs(e,"throw",t)}},Is={},js=Rr("iterator"),Ls=Array.prototype,Ms=function(e){return void 0!==e&&(Is.Array===e||Ls[js]===e)},Ns=Rr("iterator"),Rs=function(e){if(!zn(e))return vr(e,Ns)||vr(e,"@@iterator")||Is[oo(e)]},_s=TypeError,Ds=function(e,t){var n=arguments.length<2?Rs(e):t;if(mr(n))return Kr(Cn(n,e));throw new _s(pr(e)+" is not iterable")},Fs=Array,Us=function(e){var t=Er(e),n=Bo(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Mo(i,r>2?arguments[2]:void 0));var a,s,l,c,u,f,d=Rs(t),h=0;if(!d||this===Fs&&Ms(d))for(a=ji(t),s=n?new this(a):Fs(a);a>h;h++)f=o?i(t[h],h):t[h],as(s,h,f);else for(s=n?new this:[],u=(c=Ds(t,d)).next;!(l=Cn(u,c)).done;h++)f=o?Cs(c,i,[l.value,h],!0):l.value,as(s,h,f);return s.length=h,s},qs=Rr("iterator"),Hs=!1;try{var Bs=0,Vs={next:function(){return{done:!!Bs++}},return:function(){Hs=!0}};Vs[qs]=function(){return this},Array.from(Vs,(function(){throw 2}))}catch(e){}var zs=function(e,t){try{if(!t&&!Hs)return!1}catch(e){return!1}var n=!1;try{var r={};r[qs]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ws=!zs((function(e){Array.from(e)}));Ji({target:"Array",stat:!0,forced:Ws},{from:Us});var $s=Mi.includes,Gs=En((function(){return!Array(1).includes()}));Ji({target:"Array",proto:!0,forced:Gs},{includes:function(e){return $s(this,e,arguments.length>1?arguments[1]:void 0)}}),Ss("includes");var Ys=Mi.indexOf,Ks=jo([].indexOf),Xs=!!Ks&&1/Ks([1],1,-0)<0,Qs=Xs||!hs("indexOf");Ji({target:"Array",proto:!0,forced:Qs},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Xs?Ks(this,e,t)||0:Ys(this,e,t)}});var Js=Dn([].join),Zs=Vn!==Object||!hs("join",",");Ji({target:"Array",proto:!0,forced:Zs},{join:function(e){return Js(Gn(this),void 0===e?",":e)}});var el=Math.min,tl=[].lastIndexOf,nl=!!tl&&1/[1].lastIndexOf(1,-0)<0,rl=hs("lastIndexOf"),il=nl||!rl?function(e){if(nl)return Ia(tl,this,arguments)||0;var t=Gn(this),n=ji(t);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=el(r,Ei(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:tl;Ji({target:"Array",proto:!0,forced:il!==[].lastIndexOf},{lastIndexOf:il});var ol=Yo.map,al=ls("map");Ji({target:"Array",proto:!0,forced:!al},{map:function(e){return ol(this,e,arguments.length>1?arguments[1]:void 0)}});var sl=TypeError,ll="Reduce of empty array with no initial value",cl=function(e){return function(t,n,r,i){var o=Er(t),a=Vn(o),s=ji(o);if(mr(n),0===s&&r<2)throw new sl(ll);var l=e?s-1:0,c=e?-1:1;if(r<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw new sl(ll)}for(;e?l>=0:s>l;l+=c)l in a&&(i=n(i,a[l],l,o));return i}},ul={left:cl(!1),right:cl(!0)},fl=function(e){return nr.slice(0,e.length)===e},dl=fl("Bun/")?"BUN":fl("Cloudflare-Workers")?"CLOUDFLARE":fl("Deno/")?"DENO":fl("Node.js/")?"NODE":An.Bun&&"string"==typeof Bun.version?"BUN":An.Deno&&"object"==typeof Deno.version?"DENO":"process"===qn(An.process)?"NODE":An.window&&An.document?"BROWSER":"REST",hl=ul.left,pl=!("NODE"===dl)&&sr>79&&sr<83||!hs("reduce");Ji({target:"Array",proto:!0,forced:pl},{reduce:function(e){var t=arguments.length;return hl(this,e,t,t>1?arguments[1]:void 0)}});var gl=ls("slice"),ml=Rr("species"),vl=Array,yl=Math.max;Ji({target:"Array",proto:!0,forced:!gl},{slice:function(e,t){var n,r,i,o=Gn(this),a=ji(o),s=xi(e,a),l=xi(void 0===t?a:t,a);if(No(o)&&(n=o.constructor,(Bo(n)&&(n===vl||No(n.prototype))||Xn(n)&&null===(n=n[ml]))&&(n=void 0),n===vl||void 0===n))return yo(o,s,l);for(r=new(void 0===n?vl:n)(yl(l-s,0)),i=0;s<l;s++,i++)s in o&&as(r,i,o[s]);return r.length=i,r}});var bl=Yo.some,wl=hs("some");Ji({target:"Array",proto:!0,forced:!wl},{some:function(e){return bl(this,e,arguments.length>1?arguments[1]:void 0)}});var Sl=TypeError,kl=Object.getOwnPropertyDescriptor,Tl=On&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(No(e)&&!kl(e,"length").writable)throw new Sl("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Al=TypeError,El=function(e,t){if(!delete e[t])throw new Al("Cannot delete property "+pr(t)+" of "+pr(e))},Ol=ls("splice"),Pl=Math.max,xl=Math.min;Ji({target:"Array",proto:!0,forced:!Ol},{splice:function(e,t){var n,r,i,o,a,s,l=Er(this),c=ji(l),u=xi(e,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-u):(n=f-2,r=xl(Pl(Ei(t),0),c-u)),os(c+n-r),i=Wo(l,r),o=0;o<r;o++)(a=u+o)in l&&as(i,o,l[a]);if(i.length=r,n<r){for(o=u;o<c-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:El(l,s);for(o=c;o>c-r+n;o--)El(l,o-1)}else if(n>r)for(o=c-r;o>u;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:El(l,s);for(o=0;o<n;o++)l[o+u]=arguments[o+2];return Tl(l,c-r+n),i}});var Cl=TypeError,Il=Rr("toPrimitive"),jl=Date.prototype;Pr(jl,Il)||Si(jl,Il,(function(e){if(Kr(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new Cl("Incorrect hint");return br(this,e)})),Ji({global:!0,forced:An.globalThis!==An},{globalThis:An});var Ll=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1};Ji({target:"Math",stat:!0},{sign:Ll}),Ji({target:"Math",stat:!0},{trunc:Ai});var Ml=String,Nl=TypeError,Rl=function(e){if(function(e){return Xn(e)||null===e}(e))return e;throw new Nl("Can't set "+Ml(e)+" as a prototype")},_l=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(e,t,n){try{return Dn(mr(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return $n(n),Rl(r),Xn(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),Dl=function(e,t,n){var r,i;return _l&&Kn(r=t.constructor)&&r!==n&&Xn(i=r.prototype)&&i!==n.prototype&&_l(e,i),e},Fl=Dn(1..valueOf),Ul="\t\n\v\f\r                 \u2028\u2029\ufeff",ql=Dn("".replace),Hl=RegExp("^["+Ul+"]+"),Bl=RegExp("(^|[^"+Ul+"])["+Ul+"]+$"),Vl=function(e){return function(t){var n=so($n(t));return 1&e&&(n=ql(n,Hl,"")),2&e&&(n=ql(n,Bl,"$1")),n}},zl={start:Vl(1),end:Vl(2),trim:Vl(3)},Wl=Ui.f,$l=Wr.f,Gl=Zr.f,Yl=zl.trim,Kl=An.Number,Xl=(Ao.Number,Kl.prototype),Ql=An.TypeError,Jl=Dn("".slice),Zl=Dn("".charCodeAt),ec=function(e){var t=Fr(e,"number");return"bigint"==typeof t?t:tc(t)},tc=function(e){var t,n,r,i,o,a,s,l,c=Fr(e,"number");if(dr(c))throw new Ql("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=Yl(c),43===(t=Zl(c,0))||45===t){if(88===(n=Zl(c,2))||120===n)return NaN}else if(48===t){switch(Zl(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=Jl(c,2)).length,s=0;s<a;s++)if((l=Zl(o,s))<48||l>i)return NaN;return parseInt(o,r)}return+c},nc=Xi("Number",!Kl(" 0o1")||!Kl("0b1")||Kl("+0x1")),rc=function(e){return Zn(Xl,e)&&En((function(){Fl(e)}))},ic=function(e){var t=arguments.length<1?0:Kl(ec(e));return rc(this)?Dl(Object(t),this,ic):t};ic.prototype=Xl,nc&&(Xl.constructor=ic),Ji({global:!0,constructor:!0,wrap:!0,forced:nc},{Number:ic});nc&&function(e,t){for(var n,r=On?Wl(t):"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(","),i=0;r.length>i;i++)Pr(t,n=r[i])&&!Pr(e,n)&&Gl(e,n,$l(t,n))}(Ao.Number,Kl),Ji({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var oc=RangeError,ac=RangeError,sc=String,lc=Math.floor,cc=Dn((function(e){var t=so($n(this)),n="",r=Ei(e);if(r<0||r===1/0)throw new oc("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),uc=Dn("".slice),fc=Dn(1..toFixed),dc=function(e,t,n){return 0===t?n:t%2==1?dc(e,t-1,n*e):dc(e*e,t/2,n)},hc=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=lc(i/1e7)},pc=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=lc(r/t),r=r%t*1e7},gc=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=sc(e[t]);n=""===n?r:n+cc("0",7-r.length)+r}return n},mc=En((function(){return"0.000"!==fc(8e-5,3)||"1"!==fc(.9,0)||"1.25"!==fc(1.255,2)||"1000000000000000128"!==fc(0xde0b6b3a7640080,0)}))||!En((function(){fc({})}));Ji({target:"Number",proto:!0,forced:mc},{toFixed:function(e){var t,n,r,i,o=Fl(this),a=Ei(e),s=[0,0,0,0,0,0],l="",c="0";if(a<0||a>20)throw new ac("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return sc(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*dc(2,69,1))-69)<0?o*dc(2,-t,1):o/dc(2,t,1),n*=4503599627370496,(t=52-t)>0){for(hc(s,0,n),r=a;r>=7;)hc(s,1e7,0),r-=7;for(hc(s,dc(10,r,1),0),r=t-1;r>=23;)pc(s,1<<23),r-=23;pc(s,1<<r),hc(s,1,1),pc(s,2),c=gc(s)}else hc(s,0,n),hc(s,1<<-t,0),c=gc(s)+cc("0",a);return c=a>0?l+((i=c.length)<=a?"0."+cc("0",a-i)+c:uc(c,0,i-a)+"."+uc(c,i-a)):l+c}});var vc=!En((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yc=hi("IE_PROTO"),bc=Object,wc=bc.prototype,Sc=vc?bc.getPrototypeOf:function(e){var t=Er(e);if(Pr(t,yc))return t[yc];var n=t.constructor;return Kn(n)&&t instanceof n?n.prototype:t instanceof bc?wc:null},kc=Ln.f,Tc=Dn(kc),Ac=Dn([].push),Ec=On&&En((function(){var e=Object.create(null);return e[2]=2,!Tc(e,2)})),Oc=function(e){return function(t){for(var n,r=Gn(t),i=lo(r),o=Ec&&null===Sc(r),a=i.length,s=0,l=[];a>s;)n=i[s++],On&&!(o?n in r:Tc(r,n))||Ac(l,e?[n,r[n]]:r[n]);return l}},Pc={entries:Oc(!0),values:Oc(!1)},xc=Pc.entries;Ji({target:"Object",stat:!0},{entries:function(e){return xc(e)}});var Cc=Wr.f,Ic=!On||En((function(){Cc(1)}));Ji({target:"Object",stat:!0,forced:Ic,sham:!On},{getOwnPropertyDescriptor:function(e,t){return Cc(Gn(e),t)}}),Ji({target:"Object",stat:!0,sham:!On},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Gn(e),i=Wr.f,o=Bi(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&as(a,t,n);return a}});var jc=En((function(){lo(1)}));Ji({target:"Object",stat:!0,forced:jc},{keys:function(e){return lo(Er(e))}});var Lc=to?{}.toString:function(){return"[object "+oo(this)+"]"};to||Si(Object.prototype,"toString",Lc,{unsafe:!0});var Mc=Pc.values;Ji({target:"Object",stat:!0},{values:function(e){return Mc(e)}});var Nc,Rc=Rr("match"),_c=function(e){var t;return Xn(e)&&(void 0!==(t=e[Rc])?!!t:"RegExp"===qn(e))},Dc=function(){var e=Kr(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.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Fc=RegExp.prototype,Uc=function(e){var t=e.flags;return void 0!==t||"flags"in Fc||Pr(e,"flags")||!Zn(Fc,e)?t:Cn(Dc,e)},qc=An.RegExp,Hc=En((function(){var e=qc("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Bc=Hc||En((function(){return!qc("a","y").sticky})),Vc={BROKEN_CARET:Hc||En((function(){var e=qc("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),MISSED_STICKY:Bc,UNSUPPORTED_Y:Hc},zc=Zr.f,Wc=function(e,t,n){n in e||zc(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},$c=Rr("species"),Gc=An.RegExp,Yc=En((function(){var e=Gc(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Kc=An.RegExp,Xc=En((function(){var e=Kc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qc=Ui.f,Jc=bi.enforce,Zc=Rr("match"),eu=An.RegExp,tu=eu.prototype,nu=An.SyntaxError,ru=Dn(tu.exec),iu=Dn("".charAt),ou=Dn("".replace),au=Dn("".indexOf),su=Dn("".slice),lu=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,cu=/a/g,uu=/a/g,fu=new eu(cu)!==cu,du=Vc.MISSED_STICKY,hu=Vc.UNSUPPORTED_Y,pu=On&&(!fu||du||Yc||Xc||En((function(){return uu[Zc]=!1,eu(cu)!==cu||eu(uu)===uu||"/a/i"!==String(eu(cu,"i"))})));if(Xi("RegExp",pu)){for(var gu=function(e,t){var n,r,i,o,a,s,l=Zn(tu,this),c=_c(e),u=void 0===t,f=[],d=e;if(!l&&c&&u&&e.constructor===gu)return e;if((c||Zn(tu,e))&&(e=e.source,u&&(t=Uc(d))),e=void 0===e?"":so(e),t=void 0===t?"":so(t),d=e,Yc&&"dotAll"in cu&&(r=!!t&&au(t,"s")>-1)&&(t=ou(t,/s/g,"")),n=t,du&&"sticky"in cu&&(i=!!t&&au(t,"y")>-1)&&hu&&(t=ou(t,/y/g,"")),Xc&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a=vo(null),s=!1,l=!1,c=0,u="";r<=n;r++){if("\\"===(t=iu(e,r)))t+=iu(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:if(i+=t,"?:"===su(e,r+1,r+3))continue;ru(lu,su(e,r+1))&&(r+=2,l=!0),c++;continue;case">"===t&&l:if(""===u||Pr(a,u))throw new nu("Invalid capture group name");a[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:i+=t}return[i,o]}(e))[0],f=o[1]),a=Dl(eu(e,t),l?this:tu,gu),(r||i||f.length)&&(s=Jc(a),r&&(s.dotAll=!0,s.raw=gu(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=iu(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+iu(e,++r);return i}(e),n)),i&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{ei(a,"source",""===d?"(?:)":d)}catch(e){}return a},mu=Qc(eu),vu=0;mu.length>vu;)Wc(gu,eu,mu[vu++]);tu.constructor=gu,gu.prototype=tu,Si(An,"RegExp",gu,{constructor:!0})}Nc=Jn("RegExp"),On&&Nc&&!Nc[$c]&&ko(Nc,$c,{configurable:!0,get:function(){return this}});var yu=bi.get,bu=Tr("native-string-replace",String.prototype.replace),wu=RegExp.prototype.exec,Su=wu,ku=Dn("".charAt),Tu=Dn("".indexOf),Au=Dn("".replace),Eu=Dn("".slice),Ou=function(){var e=/a/,t=/b*/g;return Cn(wu,e,"a"),Cn(wu,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Pu=Vc.BROKEN_CARET,xu=void 0!==/()??/.exec("")[1];(Ou||xu||Pu||Yc||Xc)&&(Su=function(e){var t,n,r,i,o,a,s,l=this,c=yu(l),u=so(e),f=c.raw;if(f)return f.lastIndex=l.lastIndex,t=Cn(Su,f,u),l.lastIndex=f.lastIndex,t;var d=c.groups,h=Pu&&l.sticky,p=Cn(Dc,l),g=l.source,m=0,v=u;if(h&&(p=Au(p,"y",""),-1===Tu(p,"g")&&(p+="g"),v=Eu(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==ku(u,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),xu&&(n=new RegExp("^"+g+"$(?!\\s)",p)),Ou&&(r=l.lastIndex),i=Cn(wu,h?n:l,v),h?i?(i.input=Eu(i.input,m),i[0]=Eu(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Ou&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),xu&&i&&i.length>1&&Cn(bu,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=vo(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var Cu=Su;Ji({target:"RegExp",proto:!0,forced:/./.exec!==Cu},{exec:Cu});var Iu=ii.PROPER,ju=RegExp.prototype,Lu=ju.toString,Mu=En((function(){return"/a/b"!==Lu.call({source:"a",flags:"b"})})),Nu=Iu&&"toString"!==Lu.name;(Mu||Nu)&&Si(ju,"toString",(function(){var e=Kr(this);return"/"+so(e.source)+"/"+so(Uc(e))}),{unsafe:!0});var Ru=TypeError,_u=function(e){if(_c(e))throw new Ru("The method doesn't accept regular expressions");return e},Du=Rr("match"),Fu=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Du]=!1,"/./"[e](t)}catch(e){}}return!1},Uu=Dn("".indexOf);Ji({target:"String",proto:!0,forced:!Fu("includes")},{includes:function(e){return!!~Uu(so($n(this)),so(_u(e)),arguments.length>1?arguments[1]:void 0)}});var qu,Hu,Bu,Vu=Dn("".charAt),zu=Dn("".charCodeAt),Wu=Dn("".slice),$u=function(e){return function(t,n){var r,i,o=so($n(t)),a=Ei(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=zu(o,a))<55296||r>56319||a+1===s||(i=zu(o,a+1))<56320||i>57343?e?Vu(o,a):r:e?Wu(o,a,a+2):i-56320+(r-55296<<10)+65536}},Gu={codeAt:$u(!1),charAt:$u(!0)},Yu=Rr("iterator"),Ku=!1;[].keys&&("next"in(Bu=[].keys())?(Hu=Sc(Sc(Bu)))!==Object.prototype&&(qu=Hu):Ku=!0),(!Xn(qu)||En((function(){var e={};return qu[Yu].call(e)!==e})))&&(qu={}),Kn(qu[Yu])||Si(qu,Yu,(function(){return this}));var Xu={IteratorPrototype:qu,BUGGY_SAFARI_ITERATORS:Ku},Qu=Xu.IteratorPrototype,Ju=function(){return this},Zu=function(e,t,n,r){var i=t+" Iterator";return e.prototype=vo(Qu,{next:Mn(+!r,n)}),Io(e,i,!1),Is[i]=Ju,e},ef=ii.PROPER,tf=ii.CONFIGURABLE,nf=Xu.IteratorPrototype,rf=Xu.BUGGY_SAFARI_ITERATORS,of=Rr("iterator"),af=function(){return this},sf=function(e,t,n,r,i,o,a){Zu(n,t,r);var s,l,c,u=function(e){if(e===i&&g)return g;if(!rf&&e&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[of]||h["@@iterator"]||i&&h[i],g=!rf&&p||u(i),m="Array"===t&&h.entries||p;if(m&&(s=Sc(m.call(new e)))!==Object.prototype&&s.next&&(Sc(s)!==nf&&(_l?_l(s,nf):Kn(s[of])||Si(s,of,af)),Io(s,f,!0)),ef&&"values"===i&&p&&"values"!==p.name&&(tf?ei(h,"name","values"):(d=!0,g=function(){return Cn(p,this)})),i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)(rf||d||!(c in h))&&Si(h,c,l[c]);else Ji({target:t,proto:!0,forced:rf||d},l);return h[of]!==g&&Si(h,of,g,{name:i}),Is[t]=g,l},lf=function(e,t){return{value:e,done:t}},cf=Gu.charAt,uf=bi.set,ff=bi.getterFor("String Iterator");sf(String,"String",(function(e){uf(this,{type:"String Iterator",string:so(e),index:0})}),(function(){var e,t=ff(this),n=t.string,r=t.index;return r>=n.length?lf(void 0,!0):(e=cf(n,r),t.index+=e.length,lf(e,!1))}));var df=Rr("species"),hf=RegExp.prototype,pf=function(e,t,n,r){var i=Rr(e),o=!En((function(){var t={};return t[i]=function(){return 7},7!==""[e](t)})),a=o&&!En((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[df]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=/./[i],l=t(i,""[e],(function(e,t,n,r,i){var a=t.exec;return a===Cu||a===hf.exec?o&&!i?{done:!0,value:Cn(s,t,n,r)}:{done:!0,value:Cn(e,n,t,r)}:{done:!1}}));Si(String.prototype,e,l[0]),Si(hf,i,l[1])}r&&ei(hf[i],"sham",!0)},gf=Gu.charAt,mf=function(e,t,n){return t+(n?gf(e,t).length:1)},vf=TypeError,yf=function(e,t){var n=e.exec;if(Kn(n)){var r=Cn(n,e,t);return null!==r&&Kr(r),r}if("RegExp"===qn(e))return Cn(Cu,e,t);throw new vf("RegExp#exec called on incompatible receiver")};pf("match",(function(e,t,n){return[function(t){var n=$n(this),r=zn(t)?void 0:vr(t,e);return r?Cn(r,t,n):new RegExp(t)[e](so(n))},function(e){var r=Kr(this),i=so(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return yf(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=yf(r,i));){var u=so(s[0]);l[c]=u,""===u&&(r.lastIndex=mf(i,Ii(r.lastIndex),a)),c++}return 0===c?null:l}]}));var bf=Math.floor,wf=Dn("".charAt),Sf=Dn("".replace),kf=Dn("".slice),Tf=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Af=/\$([$&'`]|\d{1,2})/g,Ef=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Af;return void 0!==i&&(i=Er(i),l=Tf),Sf(o,l,(function(o,l){var c;switch(wf(l,0)){case"$":return"$";case"&":return e;case"`":return kf(t,0,n);case"'":return kf(t,a);case"<":c=i[kf(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>s){var f=bf(u/10);return 0===f?o:f<=s?void 0===r[f-1]?wf(l,1):r[f-1]+wf(l,1):o}c=r[u-1]}return void 0===c?"":c}))},Of=Rr("replace"),Pf=Math.max,xf=Math.min,Cf=Dn([].concat),If=Dn([].push),jf=Dn("".indexOf),Lf=Dn("".slice),Mf="$0"==="a".replace(/./,"$0"),Nf=!!/./[Of]&&""===/./[Of]("a","$0");pf("replace",(function(e,t,n){var r=Nf?"$":"$0";return[function(e,n){var r=$n(this),i=zn(e)?void 0:vr(e,Of);return i?Cn(i,e,r,n):Cn(t,so(r),e,n)},function(e,i){var o=Kr(this),a=so(e);if("string"==typeof i&&-1===jf(i,r)&&-1===jf(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=Kn(i);l||(i=so(i));var c,u=o.global;u&&(c=o.unicode,o.lastIndex=0);for(var f,d=[];null!==(f=yf(o,a))&&(If(d,f),u);){""===so(f[0])&&(o.lastIndex=mf(a,Ii(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<d.length;m++){for(var v,y=so((f=d[m])[0]),b=Pf(xf(Ei(f.index),a.length),0),w=[],S=1;S<f.length;S++)If(w,void 0===(h=f[S])?h:String(h));var k=f.groups;if(l){var T=Cf([y],w,b,a);void 0!==k&&If(T,k),v=so(Ia(i,void 0,T))}else v=Ef(y,a,b,w,k,i);b>=g&&(p+=Lf(a,g,b)+v,g=b+y.length)}return p+Lf(a,g)}]}),!!En((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Mf||Nf);var Rf=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};pf("search",(function(e,t,n){return[function(t){var n=$n(this),r=zn(t)?void 0:vr(t,e);return r?Cn(r,t,n):new RegExp(t)[e](so(n))},function(e){var r=Kr(this),i=so(e),o=n(t,r,i);if(o.done)return o.value;var a=r.lastIndex;Rf(a,0)||(r.lastIndex=0);var s=yf(r,i);return Rf(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]}));var _f=TypeError,Df=Rr("species"),Ff=function(e,t){var n,r=Kr(e).constructor;return void 0===r||zn(n=Kr(r)[Df])?t:function(e){if(Bo(e))return e;throw new _f(pr(e)+" is not a constructor")}(n)},Uf=Vc.UNSUPPORTED_Y,qf=Math.min,Hf=Dn([].push),Bf=Dn("".slice),Vf=!En((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]})),zf="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;pf("split",(function(e,t,n){var r="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Cn(t,this,e,n)}:t;return[function(t,n){var i=$n(this),o=zn(t)?void 0:vr(t,e);return o?Cn(o,t,i,n):Cn(r,so(i),t,n)},function(e,i){var o=Kr(this),a=so(e);if(!zf){var s=n(r,o,a,i,r!==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":"")+(Uf?"g":"y"),f=new l(Uf?"^(?:"+o.source+")":o,u),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===yf(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=Uf?0:p;var m,v=yf(f,Uf?Bf(a,p):a);if(null===v||(m=qf(Ii(f.lastIndex+(Uf?p:0)),a.length))===h)p=mf(a,p,c);else{if(Hf(g,Bf(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(Hf(g,v[y]),g.length===d)return g;p=h=m}}return Hf(g,Bf(a,h)),g}]}),zf||!Vf,Uf);var Wf,$f=Wr.f,Gf=jo("".slice),Yf=Math.min,Kf=Fu("startsWith"),Xf=!(Kf||(Wf=$f(String.prototype,"startsWith"),!Wf||Wf.writable));Ji({target:"String",proto:!0,forced:!Xf&&!Kf},{startsWith:function(e){var t=so($n(this));_u(e);var n=Ii(Yf(arguments.length>1?arguments[1]:void 0,t.length)),r=so(e);return Gf(t,n,n+r.length)===r}});var Qf=ii.PROPER,Jf=zl.trim;Ji({target:"String",proto:!0,forced:function(e){return En((function(){return!!Ul[e]()||"​…᠎"!=="​…᠎"[e]()||Qf&&Ul[e].name!==e}))}("trim")},{trim:function(){return Jf(this)}});var Zf=!En((function(){return Object.isExtensible(Object.preventExtensions({}))})),ed=function(e,t,n){for(var r in t)Si(e,r,t[r],n);return e},td=En((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),nd=Object.isExtensible,rd=En((function(){nd(1)}))||td?function(e){return!!Xn(e)&&((!td||"ArrayBuffer"!==qn(e))&&(!nd||nd(e)))}:nd,id=r((function(e){var t=Zr.f,n=!1,r=jr("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Ui.f,t=Dn([].splice),i={};i[r]=1,e(i).length&&(Ui.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t(i,o,1);break}return i},Ji({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:So.f}))},fastKey:function(e,t){if(!Xn(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Pr(e,r)){if(!rd(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!Pr(e,r)){if(!rd(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return Zf&&n&&rd(e)&&!Pr(e,r)&&o(e),e}};pi[r]=!0})),od=TypeError,ad=function(e,t){this.stopped=e,this.result=t},sd=ad.prototype,ld=function(e,t,n){var r,i,o,a,s,l,c,u=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Mo(t,u),m=function(e){return r&&xs(r,"normal",e),new ad(!0,e)},v=function(e){return f?(Kr(e),p?g(e[0],e[1],m):g(e[0],e[1])):p?g(e,m):g(e)};if(d)r=e.iterator;else if(h)r=e;else{if(!(i=Rs(e)))throw new od(pr(e)+" is not iterable");if(Ms(i)){for(o=0,a=ji(e);a>o;o++)if((s=v(e[o]))&&Zn(sd,s))return s;return new ad(!1)}r=Ds(e,i)}for(l=d?e.next:r.next;!(c=Cn(l,r)).done;){try{s=v(c.value)}catch(e){xs(r,"throw",e)}if("object"==typeof s&&s&&Zn(sd,s))return s}return new ad(!1)},cd=TypeError,ud=function(e,t){if(Zn(t,e))return e;throw new cd("Incorrect invocation")},fd=id.getWeakData,dd=bi.set,hd=bi.getterFor,pd=Yo.find,gd=Yo.findIndex,md=Dn([].splice),vd=0,yd=function(e){return e.frozen||(e.frozen=new bd)},bd=function(){this.entries=[]},wd=function(e,t){return pd(e.entries,(function(e){return e[0]===t}))};bd.prototype={get:function(e){var t=wd(this,e);if(t)return t[1]},has:function(e){return!!wd(this,e)},set:function(e,t){var n=wd(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gd(this.entries,(function(t){return t[0]===e}));return~t&&md(this.entries,t,1),!!~t}};var Sd,kd={getConstructor:function(e,t,n,r){var i=e((function(e,i){ud(e,o),dd(e,{type:t,id:vd++,frozen:null}),zn(i)||ld(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=hd(t),s=function(e,t,n){var r=a(e),i=fd(Kr(t),!0);return!0===i?yd(r).set(t,n):i[r.id]=n,e};return ed(o,{delete:function(e){var t=a(this);if(!Xn(e))return!1;var n=fd(e);return!0===n?yd(t).delete(e):n&&Pr(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Xn(e))return!1;var n=fd(e);return!0===n?yd(t).has(e):n&&Pr(n,t.id)}}),ed(o,n?{get:function(e){var t=a(this);if(Xn(e)){var n=fd(e);if(!0===n)return yd(t).get(e);if(n)return n[t.id]}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},Td=bi.enforce,Ad=Object,Ed=Array.isArray,Od=Ad.isExtensible,Pd=Ad.isFrozen,xd=Ad.isSealed,Cd=Ad.freeze,Id=Ad.seal,jd=!An.ActiveXObject&&"ActiveXObject"in An,Ld=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Md=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=An[e],s=a&&a.prototype,l=a,c={},u=function(e){var t=Dn(s[e]);Si(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(i&&!Xn(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return i&&!Xn(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(i&&!Xn(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Xi(e,!Kn(a)||!(i||s.forEach&&!En((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,o),id.enable();else if(Xi(e,!0)){var f=new l,d=f[o](i?{}:-0,1)!==f,h=En((function(){f.has(1)})),p=zs((function(e){new a(e)})),g=!i&&En((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((l=t((function(e,t){ud(e,s);var n=Dl(new a,e,l);return zn(t)||ld(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||g)&&(u("delete"),u("has"),r&&u("get")),(g||d)&&u(o),i&&s.clear&&delete s.clear}return c[e]=l,Ji({global:!0,constructor:!0,forced:l!==a},c),Io(l,e),i||n.setStrong(l,e,r),l}("WeakMap",Ld,kd),Nd=Md.prototype,Rd=Dn(Nd.set);if(fi)if(jd){Sd=kd.getConstructor(Ld,"WeakMap",!0),id.enable();var _d=Dn(Nd.delete),Dd=Dn(Nd.has),Fd=Dn(Nd.get);ed(Nd,{delete:function(e){if(Xn(e)&&!Od(e)){var t=Td(this);return t.frozen||(t.frozen=new Sd),_d(this,e)||t.frozen.delete(e)}return _d(this,e)},has:function(e){if(Xn(e)&&!Od(e)){var t=Td(this);return t.frozen||(t.frozen=new Sd),Dd(this,e)||t.frozen.has(e)}return Dd(this,e)},get:function(e){if(Xn(e)&&!Od(e)){var t=Td(this);return t.frozen||(t.frozen=new Sd),Dd(this,e)?Fd(this,e):t.frozen.get(e)}return Fd(this,e)},set:function(e,t){if(Xn(e)&&!Od(e)){var n=Td(this);n.frozen||(n.frozen=new Sd),Dd(this,e)?Rd(this,e,t):n.frozen.set(e,t)}else Rd(this,e,t);return this}})}else Zf&&En((function(){var e=Cd([]);return Rd(new Md,e,1),!Pd(e)}))&&ed(Nd,{set:function(e,t){var n;return Ed(e)&&(Pd(e)?n=Cd:xd(e)&&(n=Id)),Rd(this,e,t),n&&n(e),this}});var Ud={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},qd=Br("span").classList,Hd=qd&&qd.constructor&&qd.constructor.prototype,Bd=Hd===Object.prototype?void 0:Hd,Vd=function(e){if(e&&e.forEach!==Ps)try{ei(e,"forEach",Ps)}catch(t){e.forEach=Ps}};for(var zd in Ud)Ud[zd]&&Vd(An[zd]&&An[zd].prototype);Vd(Bd);var Wd=Zr.f,$d=bi.set,Gd=bi.getterFor("Array Iterator"),Yd=sf(Array,"Array",(function(e,t){$d(this,{type:"Array Iterator",target:Gn(e),index:0,kind:t})}),(function(){var e=Gd(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,lf(void 0,!0);switch(e.kind){case"keys":return lf(n,!1);case"values":return lf(t[n],!1)}return lf([n,t[n]],!1)}),"values"),Kd=Is.Arguments=Is.Array;if(Ss("keys"),Ss("values"),Ss("entries"),On&&"values"!==Kd.name)try{Wd(Kd,"name",{value:"values"})}catch(e){}var Xd=Rr("iterator"),Qd=Yd.values,Jd=function(e,t){if(e){if(e[Xd]!==Qd)try{ei(e,Xd,Qd)}catch(t){e[Xd]=Qd}if(Io(e,t,!0),Ud[t])for(var n in Yd)if(e[n]!==Yd[n])try{ei(e,n,Yd[n])}catch(t){e[n]=Yd[n]}}};for(var Zd in Ud)Jd(An[Zd]&&An[Zd].prototype,Zd);Jd(Bd,"DOMTokenList");var eh=Rr("iterator"),th=!En((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),!t.size&&!On||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[eh]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host})),nh=Object.assign,rh=Object.defineProperty,ih=Dn([].concat),oh=!nh||En((function(){if(On&&1!==nh({b:1},nh(rh({},"a",{enumerable:!0,get:function(){rh(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==nh({},e)[n]||lo(nh({},t)).join("")!==r}))?function(e,t){for(var n=Er(e),r=arguments.length,i=1,o=qi.f,a=Ln.f;r>i;)for(var s,l=Vn(arguments[i++]),c=o?ih(lo(l),o(l)):lo(l),u=c.length,f=0;u>f;)s=c[f++],On&&!Cn(a,l,s)||(n[s]=l[s]);return n}:nh,ah=/[^\0-\u007E]/,sh=/[.\u3002\uFF0E\uFF61]/g,lh="Overflow: input needs wider integers to process",ch=RangeError,uh=Dn(sh.exec),fh=Math.floor,dh=String.fromCharCode,hh=Dn("".charCodeAt),ph=Dn([].join),gh=Dn([].push),mh=Dn("".replace),vh=Dn("".split),yh=Dn("".toLowerCase),bh=function(e){return e+22+75*(e<26)},wh=function(e,t,n){var r=0;for(e=n?fh(e/700):e>>1,e+=fh(e/t);e>455;)e=fh(e/35),r+=36;return fh(r+36*e/(e+38))},Sh=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=hh(e,n++);if(i>=55296&&i<=56319&&n<r){var o=hh(e,n++);56320==(64512&o)?gh(t,((1023&i)<<10)+(1023&o)+65536):(gh(t,i),n--)}else gh(t,i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&gh(r,dh(n));var l=r.length,c=l;for(l&&gh(r,"-");c<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=c+1;if(u-o>fh((2147483647-a)/f))throw new ch(lh);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw new ch(lh);if(n===o){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var g=d-p,m=36-p;gh(r,dh(bh(p+g%m))),d=fh(g/m),h+=36}gh(r,dh(bh(d))),s=wh(a,f,c===l),a=0,c++}}a++,o++}return ph(r,"")},kh=TypeError,Th=function(e,t){if(e<t)throw new kh("Not enough arguments");return e},Ah=RangeError,Eh=String.fromCharCode,Oh=String.fromCodePoint,Ph=Dn([].join),xh=!!Oh&&1!==Oh.length;Ji({target:"String",stat:!0,arity:1,forced:xh},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],xi(t,1114111)!==t)throw new Ah(t+" is not a valid code point");n[i]=t<65536?Eh(t):Eh(55296+((t-=65536)>>10),t%1024+56320)}return Ph(n,"")}});var Ch=Object.getOwnPropertyDescriptor,Ih=function(e){if(!On)return An[e];var t=Ch(An,e);return t&&t.value},jh=Math.floor,Lh=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(i=o,r=e[o];i&&t(e[i-1],r)>0;)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=jh(n/2),s=Lh(yo(e,0,a),t),l=Lh(yo(e,a),t),c=s.length,u=l.length,f=0,d=0;f<c||d<u;)e[f+d]=f<c&&d<u?t(s[f],l[d])<=0?s[f++]:l[d++]:f<c?s[f++]:l[d++];return e},Mh=Lh,Nh=Rr("iterator"),Rh=bi.set,_h=bi.getterFor("URLSearchParams"),Dh=bi.getterFor("URLSearchParamsIterator"),Fh=Ih("fetch"),Uh=Ih("Request"),qh=Ih("Headers"),Hh=Uh&&Uh.prototype,Bh=qh&&qh.prototype,Vh=An.TypeError,zh=An.encodeURIComponent,Wh=String.fromCharCode,$h=Jn("String","fromCodePoint"),Gh=parseInt,Yh=Dn("".charAt),Kh=Dn([].join),Xh=Dn([].push),Qh=Dn("".replace),Jh=Dn([].shift),Zh=Dn([].splice),ep=Dn("".split),tp=Dn("".slice),np=Dn(/./.exec),rp=/\+/g,ip=/^[0-9a-f]+$/i,op=function(e,t){var n=tp(e,t,t+2);return np(ip,n)?Gh(n,16):NaN},ap=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},sp=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},lp=function(e){for(var t=(e=Qh(e,rp," ")).length,n="",r=0;r<t;){var i=Yh(e,r);if("%"===i){if("%"===Yh(e,r+1)||r+3>t){n+="%",r++;continue}var o=op(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=ap(o);if(0===a)i=Wh(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],l=1;l<a&&!(++r+3>t||"%"!==Yh(e,r));){var c=op(e,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;Xh(s,c),r+=2,l++}if(s.length!==a){n+="�";continue}var u=sp(s);null===u?n+="�":i=$h(u)}}n+=i,r++}return n},cp=/[!'()~]|%20/g,up={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},fp=function(e){return up[e]},dp=function(e){return Qh(zh(e),cp,fp)},hp=Zu((function(e,t){Rh(this,{type:"URLSearchParamsIterator",target:_h(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=Dh(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,lf(void 0,!0);var r=t[n];switch(e.kind){case"keys":return lf(r.key,!1);case"values":return lf(r.value,!1)}return lf([r.key,r.value],!1)}),!0),pp=function(e){this.entries=[],this.url=null,void 0!==e&&(Xn(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Yh(e,0)?tp(e,1):e:so(e)))};pp.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s,l=this.entries,c=Rs(e);if(c)for(n=(t=Ds(e,c)).next;!(r=Cn(n,t)).done;){if(o=(i=Ds(Kr(r.value))).next,(a=Cn(o,i)).done||(s=Cn(o,i)).done||!Cn(o,i).done)throw new Vh("Expected sequence with length 2");Xh(l,{key:so(a.value),value:so(s.value)})}else for(var u in e)Pr(e,u)&&Xh(l,{key:u,value:so(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=ep(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=ep(t,"="),Xh(r,{key:lp(Jh(n)),value:lp(Kh(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Xh(n,dp(e.key)+"="+dp(e.value));return Kh(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gp=function(){ud(this,mp);var e=arguments.length>0?arguments[0]:void 0,t=Rh(this,new pp(e));On||(this.size=t.entries.length)},mp=gp.prototype;if(ed(mp,{append:function(e,t){var n=_h(this);Th(arguments.length,2),Xh(n.entries,{key:so(e),value:so(t)}),On||this.length++,n.updateURL()},delete:function(e){for(var t=_h(this),n=Th(arguments.length,1),r=t.entries,i=so(e),o=n<2?void 0:arguments[1],a=void 0===o?o:so(o),s=0;s<r.length;){var l=r[s];if(l.key!==i||void 0!==a&&l.value!==a)s++;else if(Zh(r,s,1),void 0!==a)break}On||(this.size=r.length),t.updateURL()},get:function(e){var t=_h(this).entries;Th(arguments.length,1);for(var n=so(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=_h(this).entries;Th(arguments.length,1);for(var n=so(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Xh(r,t[i].value);return r},has:function(e){for(var t=_h(this).entries,n=Th(arguments.length,1),r=so(e),i=n<2?void 0:arguments[1],o=void 0===i?i:so(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=_h(this);Th(arguments.length,1);for(var r,i=n.entries,o=!1,a=so(e),s=so(t),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?Zh(i,l--,1):(o=!0,r.value=s));o||Xh(i,{key:a,value:s}),On||(this.size=i.length),n.updateURL()},sort:function(){var e=_h(this);Mh(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=_h(this).entries,r=Mo(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new hp(this,"keys")},values:function(){return new hp(this,"values")},entries:function(){return new hp(this,"entries")}},{enumerable:!0}),Si(mp,Nh,mp.entries,{name:"entries"}),Si(mp,"toString",(function(){return _h(this).serialize()}),{enumerable:!0}),On&&ko(mp,"size",{get:function(){return _h(this).entries.length},configurable:!0,enumerable:!0}),Io(gp,"URLSearchParams"),Ji({global:!0,constructor:!0,forced:!th},{URLSearchParams:gp}),!th&&Kn(qh)){var vp=Dn(Bh.has),yp=Dn(Bh.set),bp=function(e){if(Xn(e)){var t,n=e.body;if("URLSearchParams"===oo(n))return t=e.headers?new qh(e.headers):new qh,vp(t,"content-type")||yp(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),vo(e,{body:Mn(0,so(n)),headers:Mn(0,t)})}return e};if(Kn(Fh)&&Ji({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Fh(e,arguments.length>1?bp(arguments[1]):{})}}),Kn(Uh)){var wp=function(e){return ud(this,Hh),new Uh(e,arguments.length>1?bp(arguments[1]):{})};Hh.constructor=wp,wp.prototype=Hh,Ji({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wp})}}var Sp,kp={URLSearchParams:gp,getState:_h},Tp=Gu.codeAt,Ap=bi.set,Ep=bi.getterFor("URL"),Op=kp.URLSearchParams,Pp=kp.getState,xp=An.URL,Cp=An.TypeError,Ip=An.parseInt,jp=Math.floor,Lp=Math.pow,Mp=Dn("".charAt),Np=Dn(/./.exec),Rp=Dn([].join),_p=Dn(1..toString),Dp=Dn([].pop),Fp=Dn([].push),Up=Dn("".replace),qp=Dn([].shift),Hp=Dn("".split),Bp=Dn("".slice),Vp=Dn("".toLowerCase),zp=Dn([].unshift),Wp=/[a-z]/i,$p=/[\d+-.a-z]/i,Gp=/\d/,Yp=/^0x/i,Kp=/^[0-7]+$/,Xp=/^\d+$/,Qp=/^[\da-f]+$/i,Jp=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Zp=/[\0\t\n\r #/:<>?@[\\\]^|]/,eg=/^[\u0000-\u0020]+/,tg=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ng=/[\t\n\r]/g,rg=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)zp(t,e%256),e=jp(e/256);return Rp(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=_p(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ig={},og=oh({},ig,{" ":1,'"':1,"<":1,">":1,"`":1}),ag=oh({},og,{"#":1,"?":1,"{":1,"}":1}),sg=oh({},ag,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lg=function(e,t){var n=Tp(e,0);return n>32&&n<127&&!Pr(t,e)?e:encodeURIComponent(e)},cg={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ug=function(e,t){var n;return 2===e.length&&Np(Wp,Mp(e,0))&&(":"===(n=Mp(e,1))||!t&&"|"===n)},fg=function(e){var t;return e.length>1&&ug(Bp(e,0,2))&&(2===e.length||"/"===(t=Mp(e,2))||"\\"===t||"?"===t||"#"===t)},dg=function(e){return"."===e||"%2e"===Vp(e)},hg={},pg={},gg={},mg={},vg={},yg={},bg={},wg={},Sg={},kg={},Tg={},Ag={},Eg={},Og={},Pg={},xg={},Cg={},Ig={},jg={},Lg={},Mg={},Ng=function(e,t,n){var r,i,o,a=so(e);if(t){if(i=this.parse(a))throw new Cp(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ng(n,!0)),i=this.parse(a,null,r))throw new Cp(i);(o=Pp(new Op)).bindURL(this),this.searchParams=o}};Ng.prototype={type:"URL",parse:function(e,t,n){var r,i,o,a,s,l=this,c=t||hg,u=0,f="",d=!1,h=!1,p=!1;for(e=so(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=Up(e,eg,""),e=Up(e,tg,"$1")),e=Up(e,ng,""),r=Us(e);u<=r.length;){switch(i=r[u],c){case hg:if(!i||!Np(Wp,i)){if(t)return"Invalid scheme";c=gg;continue}f+=Vp(i),c=pg;break;case pg:if(i&&(Np($p,i)||"+"===i||"-"===i||"."===i))f+=Vp(i);else{if(":"!==i){if(t)return"Invalid scheme";f="",c=gg,u=0;continue}if(t&&(l.isSpecial()!==Pr(cg,f)||"file"===f&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=f,t)return void(l.isSpecial()&&cg[l.scheme]===l.port&&(l.port=null));f="","file"===l.scheme?c=Og:l.isSpecial()&&n&&n.scheme===l.scheme?c=mg:l.isSpecial()?c=wg:"/"===r[u+1]?(c=vg,u++):(l.cannotBeABaseURL=!0,Fp(l.path,""),c=jg)}break;case gg:if(!n||n.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===i){l.scheme=n.scheme,l.path=yo(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=Mg;break}c="file"===n.scheme?Og:yg;continue;case mg:if("/"!==i||"/"!==r[u+1]){c=yg;continue}c=Sg,u++;break;case vg:if("/"===i){c=kg;break}c=Ig;continue;case yg:if(l.scheme=n.scheme,i===Sp)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=yo(n.path),l.query=n.query;else if("/"===i||"\\"===i&&l.isSpecial())c=bg;else if("?"===i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=yo(n.path),l.query="",c=Lg;else{if("#"!==i){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=yo(n.path),l.path.length--,c=Ig;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=yo(n.path),l.query=n.query,l.fragment="",c=Mg}break;case bg:if(!l.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Ig;continue}c=kg}else c=Sg;break;case wg:if(c=Sg,"/"!==i||"/"!==Mp(f,u+1))continue;u++;break;case Sg:if("/"!==i&&"\\"!==i){c=kg;continue}break;case kg:if("@"===i){d&&(f="%40"+f),d=!0,o=Us(f);for(var g=0;g<o.length;g++){var m=o[g];if(":"!==m||p){var v=lg(m,sg);p?l.password+=v:l.username+=v}else p=!0}f=""}else if(i===Sp||"/"===i||"?"===i||"#"===i||"\\"===i&&l.isSpecial()){if(d&&""===f)return"Invalid authority";u-=Us(f).length+1,f="",c=Tg}else f+=i;break;case Tg:case Ag:if(t&&"file"===l.scheme){c=xg;continue}if(":"!==i||h){if(i===Sp||"/"===i||"?"===i||"#"===i||"\\"===i&&l.isSpecial()){if(l.isSpecial()&&""===f)return"Invalid host";if(t&&""===f&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(f))return a;if(f="",c=Cg,t)return;continue}"["===i?h=!0:"]"===i&&(h=!1),f+=i}else{if(""===f)return"Invalid host";if(a=l.parseHost(f))return a;if(f="",c=Eg,t===Ag)return}break;case Eg:if(!Np(Gp,i)){if(i===Sp||"/"===i||"?"===i||"#"===i||"\\"===i&&l.isSpecial()||t){if(""!==f){var y=Ip(f,10);if(y>65535)return"Invalid port";l.port=l.isSpecial()&&y===cg[l.scheme]?null:y,f=""}if(t)return;c=Cg;continue}return"Invalid port"}f+=i;break;case Og:if(l.scheme="file","/"===i||"\\"===i)c=Pg;else{if(!n||"file"!==n.scheme){c=Ig;continue}switch(i){case Sp:l.host=n.host,l.path=yo(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=yo(n.path),l.query="",c=Lg;break;case"#":l.host=n.host,l.path=yo(n.path),l.query=n.query,l.fragment="",c=Mg;break;default:fg(Rp(yo(r,u),""))||(l.host=n.host,l.path=yo(n.path),l.shortenPath()),c=Ig;continue}}break;case Pg:if("/"===i||"\\"===i){c=xg;break}n&&"file"===n.scheme&&!fg(Rp(yo(r,u),""))&&(ug(n.path[0],!0)?Fp(l.path,n.path[0]):l.host=n.host),c=Ig;continue;case xg:if(i===Sp||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&ug(f))c=Ig;else if(""===f){if(l.host="",t)return;c=Cg}else{if(a=l.parseHost(f))return a;if("localhost"===l.host&&(l.host=""),t)return;f="",c=Cg}continue}f+=i;break;case Cg:if(l.isSpecial()){if(c=Ig,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==Sp&&(c=Ig,"/"!==i))continue}else l.fragment="",c=Mg;else l.query="",c=Lg;break;case Ig:if(i===Sp||"/"===i||"\\"===i&&l.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=Vp(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"===i||"\\"===i&&l.isSpecial()||Fp(l.path,"")):dg(f)?"/"===i||"\\"===i&&l.isSpecial()||Fp(l.path,""):("file"===l.scheme&&!l.path.length&&ug(f)&&(l.host&&(l.host=""),f=Mp(f,0)+":"),Fp(l.path,f)),f="","file"===l.scheme&&(i===Sp||"?"===i||"#"===i))for(;l.path.length>1&&""===l.path[0];)qp(l.path);"?"===i?(l.query="",c=Lg):"#"===i&&(l.fragment="",c=Mg)}else f+=lg(i,ag);break;case jg:"?"===i?(l.query="",c=Lg):"#"===i?(l.fragment="",c=Mg):i!==Sp&&(l.path[0]+=lg(i,ig));break;case Lg:t||"#"!==i?i!==Sp&&("'"===i&&l.isSpecial()?l.query+="%27":l.query+="#"===i?"%23":lg(i,ig)):(l.fragment="",c=Mg);break;case Mg:i!==Sp&&(l.fragment+=lg(i,og))}u++}},parseHost:function(e){var t,n,r;if("["===Mp(e,0)){if("]"!==Mp(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,f=0,d=function(){return Mp(e,f)};if(":"===d()){if(":"!==Mp(e,1))return;f+=2,u=++c}for(;d();){if(8===c)return;if(":"!==d()){for(t=n=0;n<4&&Np(Qp,d());)t=16*t+Ip(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,c>6)return;for(r=0;d();){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!Np(Gp,d()))return;for(;Np(Gp,d());){if(o=Ip(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}l[c]=256*l[c]+i,2!=++r&&4!==r||c++}if(4!==r)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}(Bp(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,r=[],i=vh(mh(yh(e),sh,"."),".");for(t=0;t<i.length;t++)n=i[t],gh(r,uh(ah,n)?"xn--"+Sh(n):n);return ph(r,".")}(e),Np(Jp,e))return"Invalid host";if(null===(t=function(e){var t,n,r,i,o,a,s,l=Hp(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===Mp(i,0)&&(o=Np(Yp,i)?16:8,i=Bp(i,8===o?1:2)),""===i)a=0;else{if(!Np(10===o?Xp:8===o?Kp:Qp,i))return e;a=Ip(i,o)}Fp(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=Lp(256,5-t))return null}else if(a>255)return null;for(s=Dp(n),r=0;r<n.length;r++)s+=n[r]*Lp(256,3-r);return s}(e)))return"Invalid host";this.host=t}else{if(Np(Zp,e))return"Invalid host";for(t="",n=Us(e),r=0;r<n.length;r++)t+=lg(n[r],ig);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return Pr(cg,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ug(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=rg(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+Rp(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new Cp(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Rg(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+rg(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(so(e)+":",hg)},getUsername:function(){return this.username},setUsername:function(e){var t=Us(so(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=lg(t[n],sg)}},getPassword:function(){return this.password},setPassword:function(e){var t=Us(so(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=lg(t[n],sg)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?rg(e):rg(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Tg)},getHostname:function(){var e=this.host;return null===e?"":rg(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ag)},getPort:function(){var e=this.port;return null===e?"":so(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=so(e))?this.port=null:this.parse(e,Eg))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Rp(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Cg))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=so(e))?this.query=null:("?"===Mp(e,0)&&(e=Bp(e,1)),this.query="",this.parse(e,Lg)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=so(e))?("#"===Mp(e,0)&&(e=Bp(e,1)),this.fragment="",this.parse(e,Mg)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Rg=function(e){var t=ud(this,_g),n=Th(arguments.length,1)>1?arguments[1]:void 0,r=Ap(t,new Ng(e,!1,n));On||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},_g=Rg.prototype,Dg=function(e,t){return{get:function(){return Ep(this)[e]()},set:t&&function(e){return Ep(this)[t](e)},configurable:!0,enumerable:!0}};if(On&&(ko(_g,"href",Dg("serialize","setHref")),ko(_g,"origin",Dg("getOrigin")),ko(_g,"protocol",Dg("getProtocol","setProtocol")),ko(_g,"username",Dg("getUsername","setUsername")),ko(_g,"password",Dg("getPassword","setPassword")),ko(_g,"host",Dg("getHost","setHost")),ko(_g,"hostname",Dg("getHostname","setHostname")),ko(_g,"port",Dg("getPort","setPort")),ko(_g,"pathname",Dg("getPathname","setPathname")),ko(_g,"search",Dg("getSearch","setSearch")),ko(_g,"searchParams",Dg("getSearchParams")),ko(_g,"hash",Dg("getHash","setHash"))),Si(_g,"toJSON",(function(){return Ep(this).serialize()}),{enumerable:!0}),Si(_g,"toString",(function(){return Ep(this).serialize()}),{enumerable:!0}),xp){var Fg=xp.createObjectURL,Ug=xp.revokeObjectURL;Fg&&Si(Rg,"createObjectURL",Mo(Fg,xp)),Ug&&Si(Rg,"revokeObjectURL",Mo(Ug,xp))}Io(Rg,"URL"),Ji({global:!0,constructor:!0,forced:!th,sham:!On},{URL:Rg});var qg=ve.indexOf,Hg=[].indexOf,Bg=!!Hg&&1/[1].indexOf(1,-0)<0,Vg=on("indexOf"),zg=en("indexOf",{ACCESSORS:!0,1:0});function Wg(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ne({target:"Array",proto:!0,forced:Bg||!Vg||!zg},{indexOf:function(e){return Bg?Hg.apply(this,arguments)||0:qg(this,e,arguments.length>1?arguments[1]:void 0)}});var Gg=p.f,Yg=o.Symbol;if(t&&"function"==typeof Yg&&(!("description"in Yg.prototype)||void 0!==Yg().description)){var Kg={},Xg=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Xg?new Yg(e):void 0===e?Yg():Yg(e);return""===e&&(Kg[t]=!0),t};Ee(Xg,Yg);var Qg=Xg.prototype=Yg.prototype;Qg.constructor=Xg;var Jg=Qg.toString,Zg="Symbol(test)"==String(Yg("test")),em=/^Symbol\((.*)\)[^)]+$/;Gg(Qg,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=Jg.call(e);if(I(Kg,e))return"";var n=Zg?t.slice(7,-1):t.replace(em,"$1");return""===n?void 0:n}}),Ne({global:!0,forced:!0},{Symbol:Xg})}rt("iterator");var tm=function(e,t,n,r){try{return r?t(f(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&f(i.call(e)),t}},nm={},rm=et("iterator"),im=Array.prototype,om=function(e){return void 0!==e&&(nm.Array===e||im[rm]===e)},am={};am[et("toStringTag")]="z";var sm="[object z]"===String(am),lm=et("toStringTag"),cm="Arguments"==A(function(){return arguments}()),um=sm?A:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),lm))?n:cm?A(t):"Object"==(r=A(t))&&"function"==typeof t.callee?"Arguments":r},fm=et("iterator"),dm=function(e){if(null!=e)return e[fm]||e["@@iterator"]||nm[um(e)]},hm=et("iterator"),pm=!1;try{var gm=0,mm={next:function(){return{done:!!gm++}},return:function(){pm=!0}};mm[hm]=function(){return this},Array.from(mm,(function(){throw 2}))}catch(e){}var vm=!function(e,t){if(!t&&!pm)return!1;var n=!1;try{var r={};r[hm]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Array.from(e)}));Ne({target:"Array",stat:!0,forced:vm},{from:function(e){var t,n,r,i,o,a,s=Fe(e),l="function"==typeof this?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=void 0!==u,d=dm(s),h=0;if(f&&(u=st(u,c>2?arguments[2]:void 0,2)),null==d||l==Array&&om(d))for(n=new l(t=de(s.length));t>h;h++)a=f?u(s[h],h):s[h],dn(n,h,a);else for(o=(i=d.call(s)).next,n=new l;!(r=o.call(i)).done;h++)a=f?tm(i,u,[r.value,h],!0):r.value,dn(n,h,a);return n.length=h,n}});var ym=sm?{}.toString:function(){return"[object "+um(this)+"]"};sm||ie(Object.prototype,"toString",ym,{unsafe:!0});var bm,wm,Sm,km=function(e){return function(t,n){var r,i,o=String(P(t)),a=ue(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Tm={codeAt:km(!1),charAt:km(!0)},Am=!e((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Em=Y("IE_PROTO"),Om=Object.prototype,Pm=Am?Object.getPrototypeOf:function(e){return e=Fe(e),I(e,Em)?e[Em]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Om:null},xm=et("iterator"),Cm=!1;[].keys&&("next"in(Sm=[].keys())?(wm=Pm(Pm(Sm)))!==Object.prototype&&(bm=wm):Cm=!0),null==bm&&(bm={}),I(bm,xm)||M(bm,xm,(function(){return this}));var Im={IteratorPrototype:bm,BUGGY_SAFARI_ITERATORS:Cm},jm=Im.IteratorPrototype,Lm=function(){return this},Mm=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return f(n),function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Nm=Im.IteratorPrototype,Rm=Im.BUGGY_SAFARI_ITERATORS,_m=et("iterator"),Dm=function(){return this},Fm=function(e,t,n,r,i,o,a){!function(e,t,n){var r=t+" Iterator";e.prototype=$e(jm,{next:k(1,n)}),at(e,r,!1),nm[r]=Lm}(n,t,r);var s,l,c,u=function(e){if(e===i&&g)return g;if(!Rm&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[_m]||h["@@iterator"]||i&&h[i],g=!Rm&&p||u(i),m="Array"==t&&h.entries||p;if(m&&(s=Pm(m.call(new e)),Nm!==Object.prototype&&s.next&&(Pm(s)!==Nm&&(Mm?Mm(s,Nm):"function"!=typeof s[_m]&&M(s,_m,Dm)),at(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(d=!0,g=function(){return p.call(this)}),h[_m]!==g&&M(h,_m,g),nm[t]=g,i)if(l={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(c in l)(Rm||d||!(c in h))&&ie(h,c,l[c]);else Ne({target:t,proto:!0,forced:Rm||d},l);return l},Um=Tm.charAt,qm=re.set,Hm=re.getterFor("String Iterator");Fm(String,"String",(function(e){qm(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Hm(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Um(n,r),t.index+=e.length,{value:e,done:!1})}));var Bm=et("unscopables"),Vm=Array.prototype;null==Vm[Bm]&&p.f(Vm,Bm,{configurable:!0,value:$e(null)});var zm=function(e){Vm[Bm][e]=!0},Wm=re.set,$m=re.getterFor("Array Iterator"),Gm=Fm(Array,"Array",(function(e,t){Wm(this,{type:"Array Iterator",target:x(e),index:0,kind:t})}),(function(){var e=$m(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");nm.Arguments=nm.Array,zm("keys"),zm("values"),zm("entries");var Ym=et("iterator"),Km=et("toStringTag"),Xm=Gm.values;for(var Qm in pn){var Jm=o[Qm],Zm=Jm&&Jm.prototype;if(Zm){if(Zm[Ym]!==Xm)try{M(Zm,Ym,Xm)}catch(e){Zm[Ym]=Xm}if(Zm[Km]||M(Zm,Km,Qm),pn[Qm])for(var ev in Gm)if(Zm[ev]!==Gm[ev])try{M(Zm,ev,Gm[ev])}catch(e){Zm[ev]=Gm[ev]}}}var tv=Xt("slice"),nv=en("slice",{ACCESSORS:!0,0:0,1:2}),rv=et("species"),iv=[].slice,ov=Math.max;Ne({target:"Array",proto:!0,forced:!tv||!nv},{slice:function(e,t){var n,r,i,o=x(this),s=de(o.length),l=ge(e,s),c=ge(void 0===t?s:t,s);if(De(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!De(n.prototype)?a(n)&&null===(n=n[rv])&&(n=void 0):n=void 0,n===Array||void 0===n))return iv.call(o,l,c);for(r=new(void 0===n?Array:n)(ov(c-l,0)),i=0;l<c;l++,i++)l in o&&dn(r,i,o[l]);return r.length=i,r}});var av=function(){var e=f(this),t="";return 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},sv=RegExp.prototype,lv=sv.toString,cv=e((function(){return"/a/b"!=lv.call({source:"a",flags:"b"})})),uv="toString"!=lv.name;function fv(e,t){if(e){if("string"==typeof e)return $g(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)?$g(e,t):void 0}}function dv(e){return function(e){if(Array.isArray(e))return $g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||fv(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 hv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gv(e,t,n){return t&&pv(e.prototype,t),n&&pv(e,n),e}function mv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||fv(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 vv(e){return(vv="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})(e)}function yv(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=vv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vv(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(n),!0).forEach((function(t){wv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(cv||uv)&&ie(RegExp.prototype,"toString",(function(){var e=f(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in sv)?av.call(e):n)}),{unsafe:!0});var Tv={addCSS:!0,thumbWidth:15,watch:!0};function Av(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var Ev=function(e){return null!=e?e.constructor:null},Ov=function(e,t){return!!(e&&t&&e instanceof t)},Pv=function(e){return null==e},xv=function(e){return Ev(e)===Object},Cv=function(e){return Ev(e)===String},Iv=function(e){return Array.isArray(e)},jv=function(e){return Ov(e,NodeList)},Lv=Cv,Mv=Iv,Nv=jv,Rv=function(e){return Ov(e,Element)},_v=function(e){return Ov(e,Event)},Dv=function(e){return Pv(e)||(Cv(e)||Iv(e)||jv(e))&&!e.length||xv(e)&&!Object.keys(e).length};function Fv(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 Uv,qv,Hv,Bv=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Rv(t)?this.element=t:Lv(t)&&(this.element=document.querySelector(t)),Rv(this.element)&&Dv(this.element.rangeTouch)&&(this.config=kv({},Tv,{},n),this.init())}return function(e,t,n){t&&bv(e.prototype,t),n&&bv(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||!_v(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(i.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),o+Fv(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&_v(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]:{},r=null;if(Dv(t)||Lv(t)?r=Array.from(document.querySelectorAll(Lv(t)?t:'input[type="range"]')):Rv(t)?r=[t]:Nv(t)?r=Array.from(t):Mv(t)&&(r=t.filter(Rv)),Dv(r))return null;var i=kv({},Tv,{},n);if(Lv(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Rv(n)&&Av(n,t)&&new e(n,i)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),Vv=function(e){return null!=e?e.constructor:null},zv=function(e,t){return Boolean(e&&t&&e instanceof t)},Wv=function(e){return null==e},$v=function(e){return Vv(e)===Object},Gv=function(e){return Vv(e)===String},Yv=function(e){return"function"==typeof e},Kv=function(e){return Array.isArray(e)},Xv=function(e){return zv(e,NodeList)},Qv=function(e){return Wv(e)||(Gv(e)||Kv(e)||Xv(e))&&!e.length||$v(e)&&!Object.keys(e).length},Jv=Wv,Zv=$v,ey=function(e){return Vv(e)===Number&&!Number.isNaN(e)},ty=Gv,ny=function(e){return Vv(e)===Boolean},ry=Yv,iy=Kv,oy=Xv,ay=function(e){return null!==e&&"object"==vv(e)&&1===e.nodeType&&"object"==vv(e.style)&&"object"==vv(e.ownerDocument)},sy=function(e){return zv(e,Event)},ly=function(e){return zv(e,KeyboardEvent)},cy=function(e){return zv(e,TextTrack)||!Wv(e)&&Gv(e.kind)},uy=function(e){return zv(e,Promise)&&Yv(e.then)},fy=function(e){if(zv(e,window.URL))return!0;if(!Gv(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Qv(new URL(t).hostname)}catch(e){return!1}},dy=Qv,hy=(Uv=document.createElement("span"),qv={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Hv=Object.keys(qv).find((function(e){return void 0!==Uv.style[e]})),!!ty(Hv)&&qv[Hv]);function py(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var gy={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function my(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function vy(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return Zv(i)?(Object.keys(i).forEach((function(t){Zv(i[t])?(Object.keys(e).includes(t)||Object.assign(e,yn({},t,{})),vy(e[t],i[t])):Object.assign(e,yn({},t,i[t]))})),vy.apply(void 0,[e].concat(n))):e}function yy(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function by(e,t){ay(e)&&!dy(t)&&Object.entries(t).filter((function(e){var t=mv(e,2)[1];return!Jv(t)})).forEach((function(t){var n=mv(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function wy(e,t,n){var r=document.createElement(e);return Zv(t)&&by(r,t),ty(n)&&(r.innerText=n),r}function Sy(e,t,n,r){ay(t)&&t.appendChild(wy(e,n,r))}function ky(e){oy(e)||iy(e)?Array.from(e).forEach(ky):ay(e)&&ay(e.parentNode)&&e.parentNode.removeChild(e)}function Ty(e){if(ay(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function Ay(e,t){return ay(t)&&ay(t.parentNode)&&ay(e)?(t.parentNode.replaceChild(e,t),e):null}function Ey(e,t){if(!ty(e)||dy(e))return{};var n={},r=vy({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=mv(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":ty(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),vy(r,n)}function Oy(e,t){if(ay(e)){var n=t;ny(n)||(n=!e.hidden),e.hidden=n}}function Py(e,t,n){if(oy(e))return Array.from(e).map((function(e){return Py(e,t,n)}));if(ay(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function xy(e,t){return ay(e)&&e.classList.contains(t)}function Cy(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 Iy(e){return this.elements.container.querySelectorAll(e)}function jy(e){return this.elements.container.querySelector(e)}function Ly(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ay(e)&&e.focus({preventScroll:!0,focusVisible:t})}var My={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Ny={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t){var n=Ny[e]||"html5"!==t;return{api:n,ui:n&&Ny.rangeInput}},pip:!(gy.isIPhone||!ry(wy("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||wy("video").disablePictureInPicture)),airplay:ry(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(dy(e))return!1;var t=mv(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(My).includes(n)&&(n+='; codecs="'.concat(My[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!==hy,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Ry=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 _y(e,t,n){var r=this,i=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&&!dy(t)&&ry(n)){var s=t.split(" "),l=a;Ry&&(l={passive:o,capture:a}),s.forEach((function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:l}),e[i?"addEventListener":"removeEventListener"](t,n,l)}))}}function Dy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_y.call(this,e,t,n,!0,r,i)}function Fy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_y.call(this,e,t,n,!1,r,i)}function Uy(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=!(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];Fy(e,n,a,i,o),r.apply(t,l)};_y.call(this,e,n,a,!0,i,o)}function qy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(ay(e)&&!dy(t)){var i=new CustomEvent(t,{bubbles:n,detail:wn(wn({},r),{},{plyr:this})});e.dispatchEvent(i)}}function Hy(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i)})),this.eventListeners=[])}function By(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):Dy.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Vy(e){uy(e)&&e.then(null,(function(){}))}function zy(e){return iy(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}function Wy(e,t){return iy(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}function $y(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}var Gy=[[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=mv(t,2),r=n[0],i=n[1];return wn(wn({},e),{},yn({},r/i,[r,i]))}),{});function Yy(e){return!!(iy(e)||ty(e)&&e.includes(":"))&&(iy(e)?e:e.split(":")).map(Number).every(ey)}function Ky(e){if(!iy(e)||!e.every(ey))return null;var t=mv(e,2),n=t[0],r=t[1],i=function e(t,n){return 0===n?t:e(n,t%n)}(n,r);return[n/i,r/i]}function Xy(e){var t=function(e){return Yy(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!dy(this.embed)&&iy(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=[r.videoWidth,r.videoHeight]}return Ky(n)}function Qy(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=Xy.call(this,e);if(!iy(n))return{};var r=mv(Ky(n),2),i=r[0],o=r[1],a=100/i*o;if($y("aspect-ratio: ".concat(i,"/").concat(o))?t.style.aspectRatio="".concat(i,"/").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 Jy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.05,r=e/t,i=Wy(Object.keys(Gy),r);return Math.abs(i-r)<=n?Gy[i]:[e,t]}var Zy={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!dy(n)||Ny.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Zy.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,dy(this.config.ratio)||Qy.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=Zy.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&&ry(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=Zy.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,s=r.readyState,l=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=i,o||Vy(e.play())})),e.media.load())}qy.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(ky(Zy.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function eb(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function tb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return dy(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}var nb=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())},rb=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 ib(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=nb(t,"-"," "),t=nb(t,"_"," "),t=rb(t),nb(t," ","")}function ob(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var ab={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},sb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(dy(e)||dy(t))return"";var n=my(t.i18n,e);if(dy(n))return Object.keys(ab).includes(e)?ab[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=mv(e,2),r=t[0],i=t[1];n=nb(n,r,i)})),n},lb=function(){function e(t){var n=this;hv(this,e),yv(this,"get",(function(t){if(!e.supported||!n.enabled)return null;var r=window.localStorage.getItem(n.key);if(dy(r))return null;var i=JSON.parse(r);return ty(t)&&t.length?i[t]:i})),yv(this,"set",(function(t){if(e.supported&&n.enabled&&Zv(t)){var r=n.get();dy(r)&&(r={}),vy(r,t);try{window.localStorage.setItem(n.key,JSON.stringify(r))}catch(t){}}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return gv(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 cb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(function(){throw new Error(i.status)})),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){r(e)}}))}function ub(e,t){if(ty(e)){var n="cache",r=ty(t),i=function(){return null!==document.getElementById(t)},o=function(e,t){e.innerHTML=t,r&&i()||document.body.insertAdjacentElement("afterbegin",e)};if(!r||!i()){var a=lb.supported,s=document.createElement("div");if(s.setAttribute("hidden",""),r&&s.setAttribute("id",t),a){var l=window.localStorage.getItem("".concat(n,"-").concat(t));if(null!==l){var c=JSON.parse(l);o(s,c.content)}}cb(e).then((function(e){if(!dy(e)){if(a)try{window.localStorage.setItem("".concat(n,"-").concat(t),JSON.stringify({content:e}))}catch(e){}o(s,e)}})).catch((function(){}))}}}var fb=function(e){return Math.trunc(e/60/60%60,10)},db=function(e){return Math.trunc(e/60%60,10)},hb=function(e){return Math.trunc(e%60,10)};function pb(){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(!ey(e))return pb(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=fb(e),o=db(e),a=hb(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var gb={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||gy.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements:function(){try{return this.elements.controls=jy.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Iy.call(this,this.config.selectors.buttons.play),pause:jy.call(this,this.config.selectors.buttons.pause),restart:jy.call(this,this.config.selectors.buttons.restart),rewind:jy.call(this,this.config.selectors.buttons.rewind),fastForward:jy.call(this,this.config.selectors.buttons.fastForward),mute:jy.call(this,this.config.selectors.buttons.mute),pip:jy.call(this,this.config.selectors.buttons.pip),airplay:jy.call(this,this.config.selectors.buttons.airplay),settings:jy.call(this,this.config.selectors.buttons.settings),captions:jy.call(this,this.config.selectors.buttons.captions),fullscreen:jy.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=jy.call(this,this.config.selectors.progress),this.elements.inputs={seek:jy.call(this,this.config.selectors.inputs.seek),volume:jy.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:jy.call(this,this.config.selectors.display.buffer),currentTime:jy.call(this,this.config.selectors.display.currentTime),duration:jy.call(this,this.config.selectors.display.duration)},ay(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",r=gb.getIconUrl.call(this),i="".concat(r.cors?"":r.url,"#").concat(this.config.iconPrefix),o=document.createElementNS(n,"svg");by(o,vy(t,{"aria-hidden":"true",focusable:"false"}));var a=document.createElementNS(n,"use"),s="".concat(i,"-").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=sb(e,this.config);return wy("span",wn(wn({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(e){if(dy(e))return null;var t=wy("span",{class:this.config.classNames.menu.value});return t.appendChild(wy("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=vy({},t),i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=ib(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(r).includes(e)&&(o[e]=r[e],delete r[e])})),"button"!==o.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(e){return e===n.config.classNames.control}))||vy(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.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":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),i="play",o.label="play",o.icon="play";break;default:dy(o.label)&&(o.label=i),dy(o.icon)&&(o.icon=e)}var a=wy(o.element);return o.toggle?(a.appendChild(gb.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(gb.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(gb.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(gb.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(gb.createIcon.call(this,o.icon)),a.appendChild(gb.createLabel.call(this,o.label))),vy(r,Ey(this.config.selectors.buttons[i],r)),by(a,r),"play"===i?(iy(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(a)):this.elements.buttons[i]=a,a},createRange:function(e,t){var n=wy("input",vy(Ey(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":sb(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,gb.updateRangeFill.call(this,n),Bv.setup(n),n},createProgress:function(e,t){var n=wy("progress",vy(Ey(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(wy("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?sb(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=Ey(this.config.selectors.display[e],t),r=wy("div",vy(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":sb(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;Dy.call(this,e,"keydown keyup",(function(r){if([" ","ArrowUp","ArrowDown","ArrowRight"].includes(r.key)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=Cy(e,'[role="menuitemradio"]');if(!o&&[" ","ArrowRight"].includes(r.key))gb.showMenuPanel.call(n,t,!0);else" "!==r.key&&("ArrowDown"===r.key||o&&"ArrowRight"===r.key?(i=e.nextElementSibling,ay(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,ay(i)||(i=e.parentNode.lastElementChild)),Ly.call(n,i,!0))}}),!1),Dy.call(this,e,"keyup",(function(e){"Return"===e.key&&gb.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,r=e.list,i=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,l=e.checked,c=void 0!==l&&l,u=Ey(this.config.selectors.inputs[i]),f=wy("button",vy(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":c,value:n})),d=wy("span");d.innerHTML=o,ay(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 Cy(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(!ly(e)||" "===e.key){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,i){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}gb.showMenuPanel.call(t,"home",ly(e))}}),i,!1),gb.bindMenuItemShortcuts.call(this,f,i),r.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 ey(e)?pb(e,fb(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];ay(e)&&ey(t)&&(e.innerText=gb.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(ay(this.elements.inputs.volume)&&gb.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),ay(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;ay(e)&&(e.value=t,gb.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&sy(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&&gb.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=ey(n)?n:0,i=ay(e)?e:t.elements.display.buffer;if(ay(i)){i.value=r;var o=i.getElementsByTagName("span")[0];ay(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=sy(e)?e.target:e;if(ay(t)&&"range"===t.getAttribute("type")){if(Cy(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=gb.formatTime(this.currentTime),r=gb.formatTime(this.duration),i=sb("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(Cy(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);(gy.isWebKit||gy.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t,n;if(this.config.tooltips.seek&&ay(this.elements.inputs.seek)&&ay(this.elements.display.seekTooltip)&&0!==this.duration){var r=this.elements.display.seekTooltip,i="".concat(this.config.classNames.tooltip,"--visible"),o=function(e){return Py(r,i,e)};if(this.touch)o(!1);else{var a=0,s=this.elements.progress.getBoundingClientRect();if(sy(e))a=100/s.width*(e.pageX-s.left);else{if(!xy(r,i))return;a=parseFloat(r.style.left,10)}a<0?a=0:a>100&&(a=100);var l=this.duration/100*a;r.innerText=gb.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&&r.insertAdjacentHTML("afterbegin","".concat(c.label,"<br>")),r.style.left="".concat(a,"%"),sy(e)&&["mouseenter","mouseleave"].includes(e.type)&&o("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!ay(this.elements.display.duration)&&this.config.invertTime;gb.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||gb.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return Oy(this.elements.display.currentTime,!0),void Oy(this.elements.progress,!0);ay(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=ay(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&gb.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&gb.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&gb.setMarkers.call(this),gb.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){Oy(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var r=this.elements.settings.panels[e],i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=dy(n)?this[e]:n,dy(i)&&(i=this.config[e].default),!dy(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn("Unsupported value of '".concat(i,"' for ").concat(e));if(!this.config[e].options.includes(i))return void this.debug.warn("Disabled value of '".concat(i,"' for ").concat(e))}if(ay(o)||(o=r&&r.querySelector('[role="menu"]')),ay(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=gb.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));ay(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?sb("normal",this.config):"".concat(t,"&times;");case"quality":if(ey(t)){var n=sb("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return rb(t);case"captions":return yb.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(ay(this.elements.settings.panels.quality)){var n="quality",r=this.elements.settings.panels.quality.querySelector('[role="menu"]');iy(e)&&(this.options.quality=zy(e).filter((function(e){return t.config.quality.options.includes(e)})));var i=!dy(this.options.quality)&&this.options.quality.length>1;if(gb.toggleMenuButton.call(this,n,i),Ty(r),gb.checkMenu.call(this),i){var o=function(e){var n=sb("qualityBadge.".concat(e),t.config);return n.length?gb.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(n)?1:-1})).forEach((function(e){gb.createMenuItem.call(t,{value:e,list:r,type:n,title:gb.getLabel.call(t,"quality",e),badge:o(e)})})),gb.updateSetting.call(this,n,r)}}},setCaptionsMenu:function(){var e=this;if(ay(this.elements.settings.panels.captions)){var t="captions",n=this.elements.settings.panels.captions.querySelector('[role="menu"]'),r=yb.getTracks.call(this),i=Boolean(r.length);if(gb.toggleMenuButton.call(this,t,i),Ty(n),gb.checkMenu.call(this),i){var o=r.map((function(t,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:yb.getLabel.call(e,t),badge:t.language&&gb.createBadge.call(e,t.language.toUpperCase()),list:n,type:"language"}}));o.unshift({value:-1,checked:!this.captions.toggled,title:sb("disabled",this.config),list:n,type:"language"}),o.forEach(gb.createMenuItem.bind(this)),gb.updateSetting.call(this,t,n)}}},setSpeedMenu:function(){var e=this;if(ay(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 r=!dy(this.options.speed)&&this.options.speed.length>1;gb.toggleMenuButton.call(this,t,r),Ty(n),gb.checkMenu.call(this),r&&(this.options.speed.forEach((function(r){gb.createMenuItem.call(e,{value:r,list:n,type:t,title:gb.getLabel.call(e,"speed",r)})})),gb.updateSetting.call(this,t,n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!dy(e)&&Object.values(e).some((function(e){return!e.hidden}));Oy(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;ay(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');Ly.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(ay(t)&&ay(n)){var r=t.hidden,i=r;if(ny(e))i=e;else if(ly(e)&&"Escape"===e.key)i=!1;else if(sy(e)){var o=ry(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),Oy(t,!i),Py(this.elements.container,this.config.classNames.menu.open,i),i&&ly(e)?gb.focusFirstMenuItem.call(this,null,!0):i||r||Ly.call(this,n,ly(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,r=t.scrollHeight;return ky(t),{width:n,height:r}},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],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(ay(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(Ny.transitions&&!Ny.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=gb.getMenuSize.call(this,r),s=function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",Fy.call(e,i,hy,t))};Dy.call(this,i,hy,s),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}Oy(o,!0),Oy(r,!1),gb.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;ay(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=gb.bindMenuItemShortcuts,r=gb.createButton,i=gb.createProgress,o=gb.createRange,a=gb.createTime,s=gb.setQualityMenu,l=gb.setSpeedMenu,c=gb.showMenuPanel;this.elements.controls=null,iy(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=wy("div",Ey(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return zy(iy(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&u.appendChild(r.call(t,"restart",f)),"rewind"===s&&u.appendChild(r.call(t,"rewind",f)),"play"===s&&u.appendChild(r.call(t,"play",f)),"fast-forward"===s&&u.appendChild(r.call(t,"fast-forward",f)),"progress"===s){var l=wy("div",{class:"".concat(f.class," plyr__progress__container")}),d=wy("div",Ey(t.config.selectors.progress));if(d.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),d.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var h=wy("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(ay(p)&&u.contains(p)||(p=wy("div",vy({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(r.call(t,"mute")),"volume"===s&&!gy.isIos&&!gy.isIPadOS){var g={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",vy(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(r.call(t,"captions",f)),"settings"===s&&!dy(t.config.settings)){var m=wy("div",vy({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));m.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=wy("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=wy("div"),b=wy("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=wy("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var i=wy("button",vy(Ey(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,i,r),Dy.call(t,i,"click",(function(){c.call(t,r,!1)}));var o=wy("span",null,sb(r,t.config)),a=wy("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=wy("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),l=wy("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(wy("span",{"aria-hidden":!0},sb(r,t.config))),l.appendChild(wy("span",{class:t.config.classNames.hidden},sb("menuBack",t.config))),Dy.call(t,s,"keydown",(function(e){"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),Dy.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(wy("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[r]=i,t.elements.settings.panels[r]=s})),v.appendChild(y),m.appendChild(v),u.appendChild(m),t.elements.settings.popup=v,t.elements.settings.menu=m}if("pip"===s&&Ny.pip&&u.appendChild(r.call(t,"pip",f)),"airplay"===s&&Ny.airplay&&u.appendChild(r.call(t,"airplay",f)),"download"===s){var S=vy({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(S.download="");var k=t.config.urls.download;!fy(k)&&t.isEmbed&&vy(S,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",S))}"fullscreen"===s&&u.appendChild(r.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,Zy.getQualityOptions.call(this)),l.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=gb.getIconUrl.call(this);t.cors&&ub(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r,i={id:this.id,seektime:this.config.seekTime,title:this.config.title},o=!0;if(ry(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),ay(this.config.controls)||ty(this.config.controls)?n=this.config.controls:(n=gb.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:yb.getLabel.call(this)}),o=!1),o&&ty(this.config.controls)&&(n=function(e){var t=e;return Object.entries(i).forEach((function(e){var n=mv(e,2),r=n[0],i=n[1];t=nb(t,"{".concat(r,"}"),i)})),t}(n)),ty(this.config.selectors.controls.container)&&(r=document.querySelector(this.config.selectors.controls.container)),ay(r)||(r=this.elements.container),r[ay(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),ay(this.elements.controls)||gb.findElements.call(this),!dy(this.elements.buttons)){var a=function(t){var n=e.config.classNames.controlPressed;t.setAttribute("aria-pressed","false"),Object.defineProperty(t,"pressed",{configurable:!0,enumerable:!0,get:function(){return xy(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Py(t,n,e),t.setAttribute("aria-pressed",e?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){iy(e)||oy(e)?Array.from(e).filter(Boolean).forEach(a):a(e)}))}if(gy.isEdge&&py(r),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=Iy.call(this,u);Array.from(f).forEach((function(t){Py(t,e.config.classNames.hidden,!1),Py(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 r=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!=r&&r.length){var i=document.createDocumentFragment(),o=document.createDocumentFragment(),a=null,s="".concat(this.config.classNames.tooltip,"--visible"),l=function(e){return Py(a,s,e)};r.forEach((function(e){var t=wy("span",{class:n.config.classNames.marker},""),r=e.time/n.duration*100+"%";a&&(t.addEventListener("mouseenter",(function(){e.label||(a.style.left=r,a.innerHTML=e.label,l(!0))})),t.addEventListener("mouseleave",(function(){l(!1)}))),t.addEventListener("click",(function(){n.currentTime=e.time})),t.style.left=r,o.appendChild(t)})),i.appendChild(o),this.config.tooltips.seek||(a=wy("span",{class:this.config.classNames.tooltip},""),i.appendChild(a)),this.elements.markers={points:o,tip:a},this.elements.progress.appendChild(i)}}}};function mb(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch(e){return null}}function vb(e){var t=new URLSearchParams;return Zv(e)&&Object.entries(e).forEach((function(e){var n=mv(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var yb={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Ny.textTracks)iy(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&gb.setCaptionsMenu.call(this);else{if(ay(this.elements.captions)||(this.elements.captions=wy("div",Ey(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),function(e,t){ay(e)&&ay(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),gy.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=mb(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&cb(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){ky(e)}))}))}var t=zy((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=mv(t,1)[0]);var r=this.storage.get("captions");if(ny(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){var i=this.config.captions.update?"addtrack removetrack":"removetrack";Dy.call(this,this.media.textTracks,i,yb.update.bind(this))}setTimeout(yb.update.bind(this),0)}},update:function(){var e=this,t=yb.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===i})));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"),Dy.call(e,t,"cuechange",(function(){return yb.updateCues.call(e)}))})),(s&&this.language!==i||!t.includes(a))&&(yb.setLanguage.call(this,i),yb.toggle.call(this,r&&s)),this.elements&&Py(this.elements.container,this.config.classNames.captions.enabled,!dy(t)),iy(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&gb.setCaptionsMenu.call(this)},toggle:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var r=this.captions.toggled,i=this.config.classNames.captions.active,o=Jv(e)?!r:e;if(o!==r){if(n||(this.captions.active=o,this.storage.set({captions:o})),!this.language&&o&&!n){var a=yb.getTracks.call(this),s=yb.findTrack.call(this,[this.captions.language].concat(dv(this.captions.languages)),!0);return this.captions.language=s.language,void yb.set.call(this,a.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=o),Py(this.elements.container,i,o),this.captions.toggled=o,gb.updateSetting.call(this,"captions"),qy.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=yb.getTracks.call(this);if(-1!==e)if(ey(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=r||{},o=i.language;this.captions.currentTrackNode=r,gb.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),qy.call(this,this.media,"languagechange")}yb.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&yb.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else yb.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(ty(e)){var n=e.toLowerCase();this.captions.language=n;var r=yb.getTracks.call(this),i=yb.findTrack.call(this,[n]);yb.set.call(this,r.indexOf(i),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,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=yb.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(i).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||(r?a[0]:void 0)},getCurrentTrack:function(){return yb.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!cy(t)&&Ny.textTracks&&this.captions.toggled&&(t=yb.getCurrentTrack.call(this)),cy(t)?dy(t.label)?dy(t.language)?sb("enabled",this.config):e.language.toUpperCase():t.label:sb("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(ay(this.elements.captions))if(Jv(e)||Array.isArray(e)){var t=e;if(!t){var n=yb.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(ob)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){Ty(this.elements.captions);var i=wy("span",Ey(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),qy.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},bb={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.8/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",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"},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:[]}},wb="picture-in-picture",Sb="inline",kb={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Tb="audio",Ab="video";var Eb=function(){},Ob=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hv(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return gv(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Eb}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Eb}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Eb}}]),e}(),Pb=function(){function e(t){var n=this;hv(this,e),yv(this,"onChange",(function(){if(n.supported){var e=n.player.elements.buttons.fullscreen;ay(e)&&(e.pressed=n.active);var t=n.target===n.player.media?n.target:n.player.elements.container;qy.call(n.player,t,n.active?"enterfullscreen":"exitfullscreen",!0)}})),yv(this,"toggleFallback",(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r?n.scrollPosition={x:null!==(e=window.scrollX)&&void 0!==e?e:0,y:null!==(t=window.scrollY)&&void 0!==t?t:0}:window.scrollTo(n.scrollPosition.x,n.scrollPosition.y),document.body.style.overflow=r?"hidden":"",Py(n.target,n.player.config.classNames.fullscreen.fallback,r),gy.isIos){var i=document.head.querySelector('meta[name="viewport"]'),o="viewport-fit=cover";i||(i=document.createElement("meta")).setAttribute("name","viewport");var a=ty(i.content)&&i.content.includes(o);r?(n.cleanupViewport=!a,a||(i.content+=",".concat(o))):n.cleanupViewport&&(i.content=i.content.split(",").filter((function(e){return e.trim()!==o})).join(","))}n.onChange()})),yv(this,"trapFocus",(function(e){if(!gy.isIos&&!gy.isIPadOS&&n.active&&"Tab"===e.key){var t=document.activeElement,r=Iy.call(n.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),i=mv(r,1)[0],o=r[r.length-1];t!==o||e.shiftKey?t===i&&e.shiftKey&&(o.focus(),e.preventDefault()):(i.focus(),e.preventDefault())}})),yv(this,"update",(function(){var t;n.supported?(t=n.forceFallback?"Fallback (forced)":e.nativeSupported?"Native":"Fallback",n.player.debug.log("".concat(t," fullscreen enabled"))):n.player.debug.log("Fullscreen not supported and fallback disabled");Py(n.player.elements.container,n.player.config.classNames.fullscreen.enabled,n.supported)})),yv(this,"enter",(function(){n.supported&&(gy.isIos&&n.player.config.fullscreen.iosNative?n.player.isVimeo?n.player.embed.requestFullscreen():n.target.webkitEnterFullscreen():!e.nativeSupported||n.forceFallback?n.toggleFallback(!0):n.prefix?dy(n.prefix)||n.target["".concat(n.prefix,"Request").concat(n.property)]():n.target.requestFullscreen({navigationUI:"hide"}))})),yv(this,"exit",(function(){if(n.supported)if(gy.isIos&&n.player.config.fullscreen.iosNative)n.player.isVimeo?n.player.embed.exitFullscreen():n.target.webkitEnterFullscreen(),Vy(n.player.play());else if(!e.nativeSupported||n.forceFallback)n.toggleFallback(!1);else if(n.prefix){if(!dy(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)})),yv(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(Cy.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),Dy.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),Dy.call(this.player,this.player.elements.container,"dblclick",(function(e){ay(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.player.listeners.proxy(e,n.toggle,"fullscreen")})),Dy.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return gv(e,[{key:"useNative",get:function(){return e.nativeSupported&&!this.forceFallback}},{key:"supported",get:function(){return[this.player.config.fullscreen.enabled,this.player.isVideo,e.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||e.nativeSupported||!gy.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}},{key:"active",get:function(){if(!this.supported)return!1;if(!e.nativeSupported||this.forceFallback)return xy(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(){var e;return gy.isIos&&this.player.config.fullscreen.iosNative?this.player.media:null!==(e=this.player.elements.fullscreen)&&void 0!==e?e:this.player.elements.container}}],[{key:"nativeSupported",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(ry(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!ry(document["".concat(t,"ExitFullscreen")])&&!ry(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function xb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,r){var i=new Image,o=function(){delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})}))}var Cb={addStyleHook:function(){Py(this.elements.container,this.config.selectors.container.replace(".",""),!0),Py(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 Cb.toggleNativeControls.call(this,!0);ay(this.elements.controls)||(gb.inject.call(this),this.listeners.controls()),Cb.toggleNativeControls.call(this),this.isHTML5&&yb.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,gb.updateVolume.call(this),gb.timeUpdate.call(this),gb.durationUpdate.call(this),Cb.checkPlaying.call(this),Py(this.elements.container,this.config.classNames.pip.supported,Ny.pip&&this.isHTML5&&this.isVideo),Py(this.elements.container,this.config.classNames.airplay.supported,Ny.airplay&&this.isHTML5),Py(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){qy.call(e,e.media,"ready")}),0),Cb.setTitle.call(this),this.poster&&Cb.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&gb.durationUpdate.call(this),this.config.mediaMetadata&&gb.setMediaMetadata.call(this)},setTitle:function(){var e=sb("play",this.config);if(ty(this.config.title)&&!dy(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=jy.call(this,"iframe");if(!ay(t))return;var n=dy(this.config.title)?"video":this.config.title,r=sb("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){Py(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"),By.call(this).then((function(){return xb(e)})).catch((function(n){throw e===t.poster&&Cb.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:""}),Cb.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;Py(this.elements.container,this.config.classNames.playing,this.playing),Py(this.elements.container,this.config.classNames.paused,this.paused),Py(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",sb(t.playing?"pause":"play",t.config))})),sy(e)&&"timeupdate"===e.type||Cb.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(){Py(t.elements.container,t.config.classNames.loading,t.loading),Cb.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(wn({},this.media.style)).filter((function(e){return!dy(e)&&ty(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),dy(this.media.style)&&this.media.removeAttribute("style")}},Ib=function(){function e(t){var n=this;hv(this,e),yv(this,"firstTouch",(function(){var e=n.player,t=e.elements;e.touch=!0,Py(t.container,e.config.classNames.isTouch,!0)})),yv(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.player;t.config.keyboard.global&&_y.call(t,window,"keydown keyup",n.handleKey,e,!1),_y.call(t,document.body,"click",n.toggleMenu,e),Uy.call(t,document.body,"touchstart",n.firstTouch)})),yv(this,"container",(function(){var e=n.player,t=e.config,r=e.elements,i=e.timers;!t.keyboard.global&&t.keyboard.focused&&Dy.call(e,r.container,"keydown keyup",n.handleKey,!1),Dy.call(e,r.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var n=r.controls;n&&"enterfullscreen"===t.type&&(n.pressed=!1,n.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(Cb.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout((function(){return Cb.toggleControls.call(e,!1)}),o)}));var o=function(){if(e.isVimeo&&!e.config.vimeo.premium){var t=r.wrapper,n=e.fullscreen.active,i=mv(Xy.call(e),2),o=i[0],a=i[1],s=$y("aspect-ratio: ".concat(o," / ").concat(a));if(n){var l=mv([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(i.resized),i.resized=setTimeout(o,50)};Dy.call(e,r.container,"enterfullscreen exitfullscreen",(function(t){e.fullscreen.target===r.container&&(!e.isEmbed&&dy(e.config.ratio)||(o(),("enterfullscreen"===t.type?Dy:Fy).call(e,window,"resize",a)))}))})),yv(this,"media",(function(){var e=n.player,t=e.elements;if(Dy.call(e,e.media,"timeupdate seeking seeked",(function(t){return gb.timeUpdate.call(e,t)})),Dy.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return gb.durationUpdate.call(e,t)})),Dy.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),Dy.call(e,e.media,"progress playing seeking seeked",(function(t){return gb.updateProgress.call(e,t)})),Dy.call(e,e.media,"volumechange",(function(t){return gb.updateVolume.call(e,t)})),Dy.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return Cb.checkPlaying.call(e,t)})),Dy.call(e,e.media,"waiting canplay seeked playing",(function(t){return Cb.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var r=jy.call(e,".".concat(e.config.classNames.video));if(!ay(r))return;Dy.call(e,t.container,"click",(function(i){([t.container,r].includes(i.target)||r.contains(i.target))&&(e.touch&&e.config.hideControls||(e.ended?(n.proxy(i,e.restart,"restart"),n.proxy(i,(function(){Vy(e.play())}),"play")):n.proxy(i,(function(){Vy(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&Dy.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),Dy.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),Dy.call(e,e.media,"ratechange",(function(){gb.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),Dy.call(e,e.media,"qualitychange",(function(t){gb.updateSetting.call(e,"quality",null,t.detail.quality)})),Dy.call(e,e.media,"ready qualitychange",(function(){gb.setDownloadUrl.call(e)}));var i=e.config.events.concat(["keyup","keydown"]).join(" ");Dy.call(e,e.media,i,(function(n){var r=n.detail,i=void 0===r?{}:r;"error"===n.type&&(i=e.media.error),qy.call(e,t.container,n.type,!0,i)}))})),yv(this,"proxy",(function(e,t,r){var i=n.player,o=i.config.listeners[r],a=!0;ry(o)&&(a=o.call(i,e)),!1!==a&&ry(t)&&t.call(i,e)})),yv(this,"bind",(function(e,t,r,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=n.player,s=a.config.listeners[i],l=ry(s);Dy.call(a,e,t,(function(e){return n.proxy(e,r,i)}),o&&!l)})),yv(this,"controls",(function(){var e=n.player,t=e.elements,r=gy.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){n.bind(t,"click",(function(){Vy(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(){qy.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(),gb.toggleMenu.call(e,t)}),null,!1),n.bind(t.buttons.settings,"keyup",(function(t){[" ","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),gb.toggleMenu.call(e,t)):gb.focusFirstMenuItem.call(e,null,!0))}),null,!1),n.bind(t.settings.menu,"keydown",(function(t){"Escape"===t.key&&gb.toggleMenu.call(e,t)})),n.bind(t.inputs.seek,"mousedown mousemove",(function(e){var n=t.progress.getBoundingClientRect(),r=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",r)})),n.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var n=t.currentTarget,r="play-on-seeked";if(!ly(t)||["ArrowLeft","ArrowRight"].includes(t.key)){e.lastSeekTime=Date.now();var i=n.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);i&&o?(n.removeAttribute(r),Vy(e.play())):!o&&e.playing&&(n.setAttribute(r,""),e.pause())}})),gy.isIos){var i=Iy.call(e,'input[type="range"]');Array.from(i).forEach((function(e){return n.bind(e,r,(function(e){return py(e.target)}))}))}n.bind(t.inputs.seek,r,(function(t){var n=t.currentTarget,r=n.getAttribute("seek-value");dy(r)&&(r=n.value),n.removeAttribute("seek-value"),e.currentTime=r/n.max*e.duration}),"seek"),n.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return gb.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)})),gy.isWebKit&&Array.from(Iy.call(e,'input[type="range"]')).forEach((function(t){n.bind(t,"input",(function(t){return gb.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!ay(t.display.duration)&&n.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,gb.timeUpdate.call(e))})),n.bind(t.inputs.volume,r,(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(r){n.bind(r,"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 r=e.config,i=e.timers;Py(t.controls,r.classNames.noTransition,!0),Cb.toggleControls.call(e,!0),setTimeout((function(){Py(t.controls,r.classNames.noTransition,!1)}),0);var o=n.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return Cb.toggleControls.call(e,!1)}),o)})),n.bind(t.inputs.volume,"wheel",(function(t){var n=t.webkitDirectionInvertedFromDevice,r=mv([t.deltaX,-t.deltaY].map((function(e){return n?-e:e})),2),i=r[0],o=r[1],a=Math.sign(Math.abs(i)>Math.abs(o)?i:o);e.increaseVolume(a/50);var s=e.media.volume;(1===a&&s<1||-1===a&&s>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.firstTouch=this.firstTouch.bind(this)}return gv(e,[{key:"handleKey",value:function(e){var t,n=this.player,r=n.elements,i=e.key,o=e.type,a=e.altKey,s=e.ctrlKey,l=e.metaKey,c=e.shiftKey,u="keydown"===o,f=u&&i===this.lastKey;if(!(a||s||l||c)&&i)if(u){var d=document.activeElement;if(ay(d)){var h=n.config.selectors.editable;if(d!==r.inputs.seek&&Cy(d,h))return;if(" "===e.key&&Cy(d,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(t=parseInt(i,10),n.currentTime=n.duration/10*t);break;case" ":case"k":f||Vy(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"===i&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}},{key:"toggleMenu",value:function(e){gb.toggleMenu.call(this.player,e)}}]),e}();var jb=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.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,r,i){var o,s,l,c=document,u=r.async,f=(r.numRetries||0)+1,d=r.before||e,h=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img|module|nomodule)!/,"");if(i=i||0,/(^css!|\.css$)/.test(h))(l=c.createElement("link")).rel="stylesheet",l.href=p,(o="hideFocus"in l)&&l.relList&&(o=0,l.rel="preload",l.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h))(l=c.createElement("img")).src=p;else if((l=c.createElement("script")).src=p,l.async=void 0===u||u,s="noModule"in l,/^module!/.test(h)){if(!s)return n(t,"l");l.type="module"}else if(/^nomodule!/.test(h)&&s)return n(t,"l");l.onload=l.onerror=l.onbeforeload=function(e){var s=e.type[0];if(o)try{l.sheet.cssText.length||(s="e")}catch(e){18!=e.code&&(s="e")}if("e"==s){if((i+=1)<f)return a(t,n,r,i)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";n(t,s,e.defaultPrevented)},!1!==d(t,l)&&c.head.appendChild(l)}function s(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,l=[];for(r=function(e,n,r){if("e"==n&&l.push(e),"b"==n){if(!r)return;l.push(e)}--o||t(l)},i=0;i<s;i++)a(e[i],r,n)}function l(e,n,r){var a,l;if(n&&n.trim&&(a=n),l=(a?r: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),i(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 i,o,a,s=[],l=e.length,c=l;for(i=function(e,n){n.length&&s.push(e),--c||t(s)};l--;)o=e[l],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),l},l.done=function(e){i(e,[])},l.reset=function(){t={},n={},r={}},l.isDefined=function(e){return e in t},l}()}));function Lb(e){return new Promise((function(t,n){jb(e,{success:t,error:n})}))}function Mb(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,qy.call(this,this.media,e?"play":"pause"))}var Nb={setup:function(){var e=this;Py(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Qy.call(e),Zv(window.Vimeo)?Nb.ready.call(e):Lb(e.config.urls.vimeo.sdk).then((function(){Nb.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,r=n.premium,i=n.referrerPolicy,o=Wg(n,["premium","referrerPolicy"]),a=t.media.getAttribute("src"),s="";dy(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}:{};r&&Object.assign(o,{controls:!1,sidedock:!1});var c=vb(wn(wn({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:t.config.playsinline},l),o)),u=function(e){return dy(e)?null:ey(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(a),f=wy("iframe"),d=tb(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("; ")),dy(i)||f.setAttribute("referrerPolicy",i),r||!n.customControls)f.setAttribute("data-poster",t.poster),t.media=Ay(f,t.media);else{var h=wy("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});h.appendChild(f),t.media=Ay(h,t.media)}n.customControls||cb(tb(t.config.urls.vimeo.api,d)).then((function(e){!dy(e)&&e.thumbnail_url&&Cb.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 Mb.call(t,!0),t.embed.play()},t.media.pause=function(){return Mb.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,r=t.media,i=t.paused,o=t.volume,a=i&&!n.hasPlayed;r.seeking=!0,qy.call(t,r,"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 g=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return g},set:function(e){t.embed.setPlaybackRate(e).then((function(){g=e,qy.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var m=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return m},set:function(e){t.embed.setVolume(e).then((function(){m=e,qy.call(t,t.media,"volumechange")}))}});var v=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return v},set:function(e){var n=!!ny(e)&&e;t.embed.setMuted(!!n||t.config.muted).then((function(){v=n,qy.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=ny(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){b=n}))}}),t.embed.getVideoUrl().then((function(e){y=e,gb.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 r=mv(n,2),i=r[0],o=r[1];t.embed.ratio=Jy(i,o),Qy.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,Cb.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){p=e,qy.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,qy.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,yb.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,r=(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)}));yb.updateCues.call(t,r)})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){Mb.call(t,!e),e||qy.call(t,t.media,"playing")})),ay(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){qy.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){qy.call(t,t.media,"playing")})),t.embed.on("play",(function(){Mb.call(t,!0),qy.call(t,t.media,"playing")})),t.embed.on("pause",(function(){Mb.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,p=e.seconds,qy.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,qy.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&qy.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,qy.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,qy.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,qy.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,qy.call(t,t.media,"error")})),n.customControls&&setTimeout((function(){return Cb.build.call(t)}),0)}};function Rb(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,qy.call(this,this.media,e?"play":"pause"))}function _b(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var Db={setup:function(){var e=this;if(Py(this.elements.wrapper,this.config.classNames.embed,!0),Zv(window.YT)&&ry(window.YT.Player))Db.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){ry(t)&&t(),Db.ready.call(e)},Lb(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;cb(tb(this.config.urls.youtube.api,e)).then((function(e){if(Zv(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,Cb.setTitle.call(t),t.embed.ratio=Jy(i,r)}Qy.call(t)})).catch((function(){Qy.call(t)}))},ready:function(){var e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(dy(n)||!n.startsWith("youtube-")){console.log("currentId",n);var r=document.getElementById(n);console.log("iframe",r),r&&r.contentWindow.postMessage(JSON.stringify({event:"command",func:"hello",args:[]}),"*");var i=e.media.getAttribute("src");dy(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));var o=function(e){return dy(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(i),a=wy("div",{id:eb(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=Ay(a,e.media),t.customControls){var s=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};xb(s("maxres"),121).catch((function(){return xb(s("sd"),121)})).catch((function(){return xb(s("hq"))})).then((function(t){return Cb.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:o,host:_b(t),playerVars:vy({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,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,r={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 occurred";e.media.error={code:n,message:r},qy.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),qy.call(e,e.media,"ratechange")},onReady:function(n){if(!ry(e.media.play)){var r=n.target;Db.getTitle.call(e,o),e.media.play=function(){Rb.call(e,!0),r.playVideo()},e.media.pause=function(){Rb.call(e,!1),r.pauseVideo()},e.media.stop=function(){r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(r.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,qy.call(e,e.media,"seeking"),r.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return r.getPlaybackRate()},set:function(e){r.setPlaybackRate(e)}});var i=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return i},set:function(t){i=t,r.setVolume(100*i),qy.call(e,e.media,"volumechange")}});var a=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return a},set:function(t){var n=ny(t)?t:a;a=n,r[n?"mute":"unMute"](),r.setVolume(100*i),qy.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return r.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=r.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),qy.call(e,e.media,"timeupdate"),qy.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=r.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&qy.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),qy.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return Cb.build.call(e)}),50)}},onStateChange:function(n){var r=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,qy.call(e,e.media,"seeked")),n.data){case-1:qy.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),qy.call(e,e.media,"progress");break;case 0:Rb.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):qy.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Rb.call(e,!0),qy.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){qy.call(e,e.media,"timeupdate")}),50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),qy.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Rb.call(e,!1);break;case 3:qy.call(e,e.media,"waiting")}qy.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}}},Fb={setup:function(){this.media?(Py(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Py(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Py(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=wy("div",{class:this.config.classNames.video}),yy(this.media,this.elements.wrapper),this.elements.poster=wy("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Zy.setup.call(this):this.isYouTube?Db.setup.call(this):this.isVimeo&&Nb.setup.call(this)):this.debug.warn("No media element found!")}},Ub=function(){function e(t){var n=this;hv(this,e),yv(this,"load",(function(){n.enabled&&(Zv(window.google)&&Zv(window.google.ima)?n.ready():Lb(n.player.config.urls.googleIMA.sdk).then((function(){n.ready()})).catch((function(){n.trigger("error",new Error("Google IMA SDK failed to load"))})))})),yv(this,"ready",(function(){n.enabled||function(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}(n),n.startSafetyTimer(12e3,"ready()"),n.managerPromise.then((function(){n.clearSafetyTimer("onAdsManagerLoaded()")})),n.listeners(),n.setupIMA()})),yv(this,"setupIMA",(function(){n.elements.container=wy("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()})),yv(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)}})),yv(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=pb(Math.max(n.manager.getRemainingTime(),0)),t="".concat(sb("advertisement",n.player.config)," - ").concat(e);n.elements.container.setAttribute("data-badge-text",t)}),100)})),yv(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")}})),yv(this,"addCuePoints",(function(){dy(n.cuePoints)||n.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<n.player.duration){var t=n.player.elements.progress;if(ay(t)){var r=100/n.player.duration*e,i=wy("span",{class:n.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),t.appendChild(i)}}}))})),yv(this,"onAdEvent",(function(e){var t=n.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){qy.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),r.isLinear()||(r.width=t.offsetWidth,r.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:i.adError&&n.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}})),yv(this,"onAdError",(function(e){n.cancel(),n.player.debug.warn("Ads error",e)})),yv(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;dy(n.cuePoints)||n.cuePoints.forEach((function(r,i){e<r&&r<t&&(n.manager.discardAdBreak(),n.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(function(){n.manager&&n.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),yv(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(){}))})),yv(this,"resumeContent",(function(){n.elements.container.style.zIndex="",n.playing=!1,Vy(n.player.media.play())})),yv(this,"pauseContent",(function(){n.elements.container.style.zIndex=3,n.playing=!0,n.player.media.pause()})),yv(this,"cancel",(function(){n.initialized&&n.resumeContent(),n.trigger("error"),n.loadAds()})),yv(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(){}))})),yv(this,"trigger",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var o=n.events[e];iy(o)&&o.forEach((function(e){ry(e)&&e.apply(n,r)}))})),yv(this,"on",(function(e,t){return iy(n.events[e])||(n.events[e]=[]),n.events[e].push(t),n})),yv(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)})),yv(this,"clearSafetyTimer",(function(e){Jv(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 gv(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!dy(e.publisherId)||fy(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return fy(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(vb({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 qb(){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 Hb=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(ey(n.startTime)){if(!dy(e.trim())&&dy(n.text)){var t,r,i=e.trim().split("#xywh=");t=mv(i,1),n.text=t[0],i[1]&&(r=mv(i[1].split(","),4),n.x=r[0],n.y=r[1],n.w=r[2],n.h=r[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},Bb=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},Vb=function(){function e(t){var n=this;hv(this,e),yv(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.listeners(),n.loaded=!0)}))})),yv(this,"getThumbnails",(function(){return new Promise((function(e){var t=n.player.config.previewThumbnails.src;if(dy(t))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){n.thumbnails.sort((function(e,t){return e.height-t.height})),n.player.debug.log("Preview thumbnails",n.thumbnails),e()};if(ry(t))t((function(e){n.thumbnails=e,r()}));else{var i=(ty(t)?[t]:t).map((function(e){return n.getThumbnail(e)}));Promise.all(i).then(r)}}))})),yv(this,"getThumbnail",(function(e){return new Promise((function(t){cb(e).then((function(r){var i={frames:Hb(r),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var o=new Image;o.onload=function(){i.height=o.naturalHeight,i.width=o.naturalWidth,n.thumbnails.push(i),t()},o.src=i.urlPrefix+i.frames[0].text}))}))})),yv(this,"startMove",(function(e){if(n.loaded&&sy(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,r,i=n.player.elements.progress.getBoundingClientRect(),o=100/i.width*(e.pageX-i.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=pb(n.seekTime);var a=null===(t=n.player.config.markers)||void 0===t||null===(r=t.points)||void 0===r?void 0:r.find((function(e){return e.time===Math.round(n.seekTime)}));a&&n.elements.thumb.time.insertAdjacentHTML("afterbegin","".concat(a.label,"<br>"))}n.showImageAtCurrentTime()}})),yv(this,"endMove",(function(){n.toggleThumbContainer(!1,!0)})),yv(this,"startScrubbing",(function(e){(Jv(e.button)||!1===e.button||0===e.button)&&(n.mouseDown=!0,n.player.media.duration&&(n.toggleScrubbingContainer(!0),n.toggleThumbContainer(!1,!0),n.showImageAtCurrentTime()))})),yv(this,"endScrubbing",(function(){n.mouseDown=!1,Math.ceil(n.lastTime)===Math.ceil(n.player.media.currentTime)?n.toggleScrubbingContainer(!1):Uy.call(n.player,n.player.media,"timeupdate",(function(){n.mouseDown||n.toggleScrubbingContainer(!1)}))})),yv(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}))})),yv(this,"render",(function(){n.elements.thumb.container=wy("div",{class:n.player.config.classNames.previewThumbnails.thumbContainer}),n.elements.thumb.imageContainer=wy("div",{class:n.player.config.classNames.previewThumbnails.imageContainer}),n.elements.thumb.container.appendChild(n.elements.thumb.imageContainer);var e=wy("div",{class:n.player.config.classNames.previewThumbnails.timeContainer});n.elements.thumb.time=wy("span",{},"00:00"),e.appendChild(n.elements.thumb.time),n.elements.thumb.imageContainer.appendChild(e),ay(n.player.elements.progress)&&n.player.elements.progress.appendChild(n.elements.thumb.container),n.elements.scrubbing.container=wy("div",{class:n.player.config.classNames.previewThumbnails.scrubbingContainer}),n.player.elements.wrapper.appendChild(n.elements.scrubbing.container)})),yv(this,"destroy",(function(){n.elements.thumb.container&&n.elements.thumb.container.remove(),n.elements.scrubbing.container&&n.elements.scrubbing.container.remove()})),yv(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,r=0;n.mouseDown||n.toggleThumbContainer(t),t&&(n.thumbnails.forEach((function(t,i){n.loadedImages.includes(t.frames[e].text)&&(r=i)})),e!==n.showingThumb&&(n.showingThumb=e,n.loadImage(r)))})),yv(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=n.showingThumb,r=n.thumbnails[e],i=r.urlPrefix,o=r.frames[t],a=r.frames[t].text,s=i+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)}})),yv(this,"showImage",(function(e,t,r,i,o){var a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];n.player.debug.log("Showing thumb: ".concat(o,". num: ").concat(i,". qual: ").concat(r,". 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(i,!0).then(n.preloadNearby(i,!1)).then(n.getHigherQuality(r,e,t,o))})),yv(this,"removeOldImages",(function(e){Array.from(n.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var r=n.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var i=n.currentImageContainer;setTimeout((function(){i.removeChild(t),n.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),r)}}}))})),yv(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var i=n.thumbnails[0].frames[e].text;if(n.showingThumbFilename===i){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!==i&&!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),r()}}})),a||r()}}),300)}))})),yv(this,"getHigherQuality",(function(e,t,r,i){if(e<n.thumbnails.length-1){var o=t.naturalHeight;n.usingSprites&&(o=r.h),o<n.thumbContainerHeight&&setTimeout((function(){n.showingThumbFilename===i&&(n.player.debug.log("Showing higher quality thumb for: ".concat(i)),n.loadImage(e+1))}),300)}})),yv(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.player.config.classNames.previewThumbnails.thumbContainerShown;n.elements.thumb.container.classList.toggle(r,e),!e&&t&&(n.showingThumb=null,n.showingThumbFilename=null)})),yv(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)})),yv(this,"determineContainerAutoSizing",(function(){(n.elements.thumb.imageContainer.clientHeight>20||n.elements.thumb.imageContainer.clientWidth>20)&&(n.sizeSpecifiedInCSS=!0)})),yv(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 r=Math.floor(e.clientWidth/n.thumbAspectRatio);e.style.height="".concat(r,"px")}}else{var i=Math.floor(n.thumbContainerHeight*n.thumbAspectRatio);e.style.height="".concat(n.thumbContainerHeight,"px"),e.style.width="".concat(i,"px")}n.setThumbContainerPos()})),yv(this,"setThumbContainerPos",(function(){var e=n.player.elements.progress.getBoundingClientRect(),t=n.player.elements.container.getBoundingClientRect(),r=n.elements.thumb.container,i=t.left-e.left+10,o=t.right-e.left-r.clientWidth-10,a=n.mousePosX-e.left-r.clientWidth/2,s=qb(a,i,o);r.style.left="".concat(s,"px"),r.style.setProperty("--preview-arrow-offset",a-s+"px")})),yv(this,"setScrubbingContainerSize",(function(){var e=Bb(n.thumbAspectRatio,{width:n.player.media.clientWidth,height:n.player.media.clientHeight}),t=e.width,r=e.height;n.elements.scrubbing.container.style.width="".concat(t,"px"),n.elements.scrubbing.container.style.height="".concat(r,"px")})),yv(this,"setImageSizeAndOffset",(function(e,t){if(n.usingSprites){var r=n.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*r+"px",e.style.width=e.naturalWidth*r+"px",e.style.left="-".concat(t.x*r,"px"),e.style.top="-".concat(t.y*r,"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 gv(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?Bb(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}(),zb={insertElements:function(e,t){var n=this;ty(t)?Sy(e,this.media,{src:t}):iy(t)&&t.forEach((function(t){Sy(e,n.media,t)}))},change:function(e){var t=this;my(e,"sources.length")?(Zy.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],ky(t.media),t.media=null,ay(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=mv(n,1)[0],o=i.provider,a=void 0===o?kb.html5:o,s=i.src,l="html5"===a?r:"div",c="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:Ny.check(r,a,t.config.playsinline),media:wy(l,c)}),t.elements.container.appendChild(t.media),ny(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),dy(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","")),Cb.addStyleHook.call(t),t.isHTML5&&zb.insertElements.call(t,"source",n),t.config.title=e.title,Fb.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&zb.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&Cb.build.call(t),t.isHTML5&&t.media.load(),dy(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 Vb(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}},Wb=function(){function e(t,n){var r=this;if(hv(this,e),yv(this,"play",(function(){return ry(r.media.play)?(r.ads&&r.ads.enabled&&r.ads.managerPromise.then((function(){return r.ads.play()})).catch((function(){return Vy(r.media.play())})),r.media.play()):null})),yv(this,"pause",(function(){return r.playing&&ry(r.media.pause)?r.media.pause():null})),yv(this,"togglePlay",(function(e){return(ny(e)?e:!r.playing)?r.play():r.pause()})),yv(this,"stop",(function(){r.isHTML5?(r.pause(),r.restart()):ry(r.media.stop)&&r.media.stop()})),yv(this,"restart",(function(){r.currentTime=0})),yv(this,"rewind",(function(e){r.currentTime-=ey(e)?e:r.config.seekTime})),yv(this,"forward",(function(e){r.currentTime+=ey(e)?e:r.config.seekTime})),yv(this,"increaseVolume",(function(e){var t=r.media.muted?0:r.volume;r.volume=t+(ey(e)?e:0)})),yv(this,"decreaseVolume",(function(e){r.increaseVolume(-e)})),yv(this,"airplay",(function(){Ny.airplay&&r.media.webkitShowPlaybackTargetPicker()})),yv(this,"toggleControls",(function(e){if(r.supported.ui&&!r.isAudio){var t=xy(r.elements.container,r.config.classNames.hideControls),n=void 0===e?void 0:!e,i=Py(r.elements.container,r.config.classNames.hideControls,n);if(i&&iy(r.config.controls)&&r.config.controls.includes("settings")&&!dy(r.config.settings)&&gb.toggleMenu.call(r,!1),i!==t){var o=i?"controlshidden":"controlsshown";qy.call(r,r.media,o)}return!i}return!1})),yv(this,"on",(function(e,t){Dy.call(r,r.elements.container,e,t)})),yv(this,"once",(function(e,t){Uy.call(r,r.elements.container,e,t)})),yv(this,"off",(function(e,t){Fy(r.elements.container,e,t)})),yv(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r.ready){var n=function(){document.body.style.overflow="",r.embed=null,t?(Object.keys(r.elements).length&&(ky(r.elements.buttons.play),ky(r.elements.captions),ky(r.elements.controls),ky(r.elements.wrapper),r.elements.buttons.play=null,r.elements.captions=null,r.elements.controls=null,r.elements.wrapper=null),ry(e)&&e()):(Hy.call(r),Zy.cancelRequests.call(r),Ay(r.elements.original,r.elements.container),qy.call(r,r.elements.original,"destroyed",!0),ry(e)&&e.call(r.elements.original),r.ready=!1,setTimeout((function(){r.elements=null,r.media=null}),200))};r.stop(),clearTimeout(r.timers.loading),clearTimeout(r.timers.controls),clearTimeout(r.timers.resized),r.isHTML5?(Cb.toggleNativeControls.call(r,!0),n()):r.isYouTube?(clearInterval(r.timers.buffering),clearInterval(r.timers.playing),null!==r.embed&&ry(r.embed.destroy)&&r.embed.destroy(),n()):r.isVimeo&&(null!==r.embed&&r.embed.unload().then(n),setTimeout(n,200))}})),yv(this,"supports",(function(e){return Ny.mime.call(r,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Ny.touch,this.media=t,ty(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||oy(this.media)||iy(this.media))&&(this.media=this.media[0]),this.config=vy({},bb,e.defaults,n||{},function(){try{return JSON.parse(r.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 Ob(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Ny),!Jv(this.media)&&ay(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Ny.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),ay(a)){if(s=mb(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?kb.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?kb.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(dy(this.provider)||!Object.values(kb).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Ab;break;case"video":case"audio":this.type=o,this.provider=kb.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=Ny.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Ib(this),this.storage=new lb(this),this.media.plyr=this,ay(this.elements.container)||(this.elements.container=wy("div"),yy(this.media,this.elements.container)),Cb.migrateStyles.call(this),Cb.addStyleHook.call(this),Fb.setup.call(this),this.config.debug&&Dy.call(this,this.elements.container,this.config.events.join(" "),(function(e){r.debug.log("event: ".concat(e.type))})),this.fullscreen=new Pb(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Cb.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ub(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Vy(r.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Vb(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 gv(e,[{key:"toggleCaptions",value:function(e){yb.toggle.call(this,e,!1)}},{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 Vb(this))}},{key:"isHTML5",get:function(){return this.provider===kb.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===kb.youtube}},{key:"isVimeo",get:function(){return this.provider===kb.vimeo}},{key:"isVideo",get:function(){return this.type===Ab}},{key:"isAudio",get:function(){return this.type===Tb}},{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",set:function(e){if(this.duration){var t=ey(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return ey(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=ey(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;ty(t)&&(t=Number(t)),ey(t)||(t=this.storage.get("volume")),ey(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!dy(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;ny(t)||(t=this.storage.get("muted")),ny(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{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",set:function(e){var t=this,n=null;ey(e)&&(n=e),ey(n)||(n=this.storage.get("speed")),ey(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=qb(n,r,i),this.config.speed.selected=n,setTimeout((function(){t.media&&(t.media.playbackRate=n)}),0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,dv(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,dv(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var r=[!dy(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(ey),i=!0;if(!n.includes(r)){var o=Wy(n,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=ny(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){zb.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return fy(e)?e:this.source},set:function(e){fy(e)&&(this.config.urls.download=e,gb.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?Cb.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=Ky(Xy.call(this));return iy(e)?e.join(":"):e},set:function(e){this.isVideo?ty(e)&&Yy(e)?(this.config.ratio=Ky(e),Qy.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){this.config.autoplay=ny(e)?e:this.config.autoplay},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){yb.set.call(this,e,!1),yb.setup.call(this)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){yb.setLanguage.call(this,e,!1)},get:function(){return(yb.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(Ny.pip){var t=ny(e)?e:!this.pip;ry(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?wb:Sb),ry(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return Ny.pip?dy(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===wb:null}}],[{key:"supported",value:function(e,t){return Ny.check(e,t)}},{key:"loadSprite",value:function(e,t){return ub(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return ty(t)?r=Array.from(document.querySelectorAll(t)):oy(t)?r=Array.from(t):iy(t)&&(r=t.filter(ay)),dy(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();Wb.defaults=function(e){return JSON.parse(JSON.stringify(e))}(bb);var $b={name:"VuePlyr",props:{options:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{player:{}}},computed:{opts:function(){var e=this.options;return Object.prototype.hasOwnProperty.call(this.options,"hideYouTubeDOMError")||(e.hideYouTubeDOMError=!0),e}},mounted:function(){console.log("Plyr:mounted"),this.player=new Wb(this.$el,this.opts)},beforeUnmount:function(){try{this.player.destroy()}catch(e){this.opts.hideYouTubeDOMError&&"The YouTube player is not attached to the DOM."===e.message||console.error(e)}},render:function(){var e=this.$slots.default;return"function"==typeof e?e()[0]:e},__file:"src/vue-plyr.vue",install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plyr&&($b.props.options.default=function(){return wn({},t.plyr)}),e.component($b.name,$b)}};export default $b;
//# sourceMappingURL=vue-plyr.esm.js.map