plyr/demo/dist/demo.min.js
2020-03-27 23:50:40 +11:00

5 lines
304 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"object"==typeof navigator&&function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n,r,i,o="object",a=function(e){return e&&e.Math==Math&&e},s=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof e==o&&e)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!u.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:u},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,g=function(e){return p.call(e).slice(8,-1)},m="".split,v=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==g(e)?m.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return v(y(e))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},k=function(e,t){if(!w(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!w(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},S={}.hasOwnProperty,E=function(e,t){return S.call(e,t)},_=s.document,T=w(_)&&w(_.createElement),x=function(e){return T?_.createElement(e):{}},A=!l&&!c((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,P={f:l?O:function(e,t){if(e=b(e),t=k(t,!0),A)try{return O(e,t)}catch(e){}if(E(e,t))return d(!h.f.call(e,t),e[t])}},C=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},I=Object.defineProperty,j={f:l?I:function(e,t,n){if(C(e),t=k(t,!0),C(n),A)try{return I(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}},R=l?function(e,t,n){return j.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},L=function(e,t){try{R(s,e,t)}catch(n){s[e]=t}return t},N=t((function(e){var t=s["__core-js_shared__"]||L("__core-js_shared__",{});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),M=N("native-function-to-string",Function.toString),U=s.WeakMap,F="function"==typeof U&&/native code/.test(M.call(U)),D=0,B=Math.random(),q=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++D+B).toString(36))},H=N("keys"),V=function(e){return H[e]||(H[e]=q(e))},z={},W=s.WeakMap;if(F){var $=new W,K=$.get,Y=$.has,G=$.set;n=function(e,t){return G.call($,e,t),t},r=function(e){return K.call($,e)||{}},i=function(e){return Y.call($,e)}}else{var X=V("state");z[X]=!0,n=function(e,t){return R(e,X,t),t},r=function(e){return E(e,X)?e[X]:{}},i=function(e){return E(e,X)}}var J={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!w(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Q=t((function(e){var t=J.get,n=J.enforce,r=String(M).split("toString");N("inspectSource",(function(e){return M.call(e)})),(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||E(i,"name")||R(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==s?(a?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=i:R(e,t,i)):c?e[t]=i:L(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||M.call(this)}))})),Z=Math.ceil,ee=Math.floor,te=function(e){return isNaN(e=+e)?0:(e>0?ee:Z)(e)},ne=Math.min,re=function(e){return e>0?ne(te(e),9007199254740991):0},ie=Math.max,oe=Math.min,ae=function(e,t){var n=te(e);return n<0?ie(n+t,0):oe(n,t)},se=function(e){return function(t,n,r){var i,o=b(t),a=re(o.length),s=ae(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}},ce=se(!1),le=function(e,t){var n,r=b(e),i=0,o=[];for(n in r)!E(z,n)&&E(r,n)&&o.push(n);for(;t.length>i;)E(r,n=t[i++])&&(~ce(o,n)||o.push(n));return o},ue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fe=ue.concat("length","prototype"),he={f:Object.getOwnPropertyNames||function(e){return le(e,fe)}},de={f:Object.getOwnPropertySymbols},pe=s.Reflect,ge=pe&&pe.ownKeys||function(e){var t=he.f(C(e)),n=de.f;return n?t.concat(n(e)):t},me=function(e,t){for(var n=ge(t),r=j.f,i=P.f,o=0;o<n.length;o++){var a=n[o];E(e,a)||r(e,a,i(t,a))}},ve=/#|\.prototype\./,ye=function(e,t){var n=we[be(e)];return n==Se||n!=ke&&("function"==typeof t?c(t):!!t)},be=ye.normalize=function(e){return String(e).replace(ve,".").toLowerCase()},we=ye.data={},ke=ye.NATIVE="N",Se=ye.POLYFILL="P",Ee=ye,_e=P.f,Te=function(e,t){var n,r,i,o,a,c=e.target,l=e.global,u=e.stat;if(n=l?s:u?s[c]||L(c,{}):(s[c]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=_e(n,r))&&a.value:n[r],!Ee(l?r:c+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;me(o,i)}(e.sham||i&&i.sham)&&R(o,"sham",!0),Q(n,r,o,e)}},xe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ae=function(e,t,n){if(xe(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)}},Oe=function(e){return Object(y(e))},Pe=Array.isArray||function(e){return"Array"==g(e)},Ce=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Ie=s.Symbol,je=N("wks"),Re=function(e){return je[e]||(je[e]=Ce&&Ie[e]||(Ce?Ie:q)("Symbol."+e))},Le=Re("species"),Ne=function(e,t){var n;return Pe(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Pe(n.prototype)?w(n)&&null===(n=n[Le])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Me=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,c=t||Ne;return function(t,l,u){for(var f,h,d=Oe(t),p=v(d),g=Ae(l,u,3),m=re(p.length),y=0,b=n?c(t,m):r?c(t,0):void 0;m>y;y++)if((s||y in p)&&(h=g(f=p[y],y,d),e))if(n)b[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:b.push(f)}else if(o)return!1;return a?-1:i||o?o:b}},Ue=function(e,t){var n=[][e];return!n||!c((function(){n.call(null,t||function(){throw 1},1)}))},Fe=Me(0),De=Ue("forEach")?function(e){return Fe(this,e,arguments[1])}:[].forEach;Te({target:"Array",proto:!0,forced:[].forEach!=De},{forEach:De});var Be=function(e,t,n,r){try{return r?t(C(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&C(i.call(e)),t}},qe={},He=Re("iterator"),Ve=Array.prototype,ze=function(e){return void 0!==e&&(qe.Array===e||Ve[He]===e)},We=function(e,t,n){var r=k(t);r in e?j.f(e,r,d(0,n)):e[r]=n},$e=Re("toStringTag"),Ke="Arguments"==g(function(){return arguments}()),Ye=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),$e))?n:Ke?g(t):"Object"==(r=g(t))&&"function"==typeof t.callee?"Arguments":r},Ge=Re("iterator"),Xe=function(e){if(null!=e)return e[Ge]||e["@@iterator"]||qe[Ye(e)]},Je=function(e){var t,n,r,i,o=Oe(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,f=Xe(o);if(l&&(c=Ae(c,s>2?arguments[2]:void 0,2)),null==f||a==Array&&ze(f))for(n=new a(t=re(o.length));t>u;u++)We(n,u,l?c(o[u],u):o[u]);else for(i=f.call(o),n=new a;!(r=i.next()).done;u++)We(n,u,l?Be(i,c,[r.value,u],!0):r.value);return n.length=u,n},Qe=Re("iterator"),Ze=!1;try{var et=0,tt={next:function(){return{done:!!et++}},return:function(){Ze=!0}};tt[Qe]=function(){return this},Array.from(tt,(function(){throw 2}))}catch(e){}var nt=function(e,t){if(!t&&!Ze)return!1;var n=!1;try{var r={};r[Qe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},rt=!nt((function(e){Array.from(e)}));Te({target:"Array",stat:!0,forced:rt},{from:Je});var it=Object.keys||function(e){return le(e,ue)},ot=l?Object.defineProperties:function(e,t){C(e);for(var n,r=it(t),i=r.length,o=0;i>o;)j.f(e,n=r[o++],t[n]);return e},at=s.document,st=at&&at.documentElement,ct=V("IE_PROTO"),lt=function(){},ut=function(){var e,t=x("iframe"),n=ue.length;for(t.style.display="none",st.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),ut=e.F;n--;)delete ut.prototype[ue[n]];return ut()},ft=Object.create||function(e,t){var n;return null!==e?(lt.prototype=C(e),n=new lt,lt.prototype=null,n[ct]=e):n=ut(),void 0===t?n:ot(n,t)};z[ct]=!0;var ht=Re("unscopables"),dt=Array.prototype;null==dt[ht]&&R(dt,ht,ft(null));var pt=function(e){dt[ht][e]=!0},gt=se(!0);Te({target:"Array",proto:!0},{includes:function(e){return gt(this,e,arguments.length>1?arguments[1]:void 0)}}),pt("includes");var mt=c((function(){it(1)}));Te({target:"Object",stat:!0,forced:mt},{keys:function(e){return it(Oe(e))}});var vt=Re("match"),yt=function(e){var t;return w(e)&&(void 0!==(t=e[vt])?!!t:"RegExp"==g(e))},bt=function(e,t,n){if(yt(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(y(e))},wt=Re("match");Te({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[wt]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~bt(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}});var kt,St,Et,_t=function(e,t,n){var r,i,o=String(y(e)),a=te(t),s=o.length;return a<0||a>=s?n?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?n?o.charAt(a):r:n?o.slice(a,a+2):i-56320+(r-55296<<10)+65536},Tt=!c((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xt=V("IE_PROTO"),At=Object.prototype,Ot=Tt?Object.getPrototypeOf:function(e){return e=Oe(e),E(e,xt)?e[xt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?At:null},Pt=Re("iterator"),Ct=!1;[].keys&&("next"in(Et=[].keys())?(St=Ot(Ot(Et)))!==Object.prototype&&(kt=St):Ct=!0),null==kt&&(kt={}),E(kt,Pt)||R(kt,Pt,(function(){return this}));var It={IteratorPrototype:kt,BUGGY_SAFARI_ITERATORS:Ct},jt=j.f,Rt=Re("toStringTag"),Lt=function(e,t,n){e&&!E(e=n?e:e.prototype,Rt)&&jt(e,Rt,{configurable:!0,value:t})},Nt=It.IteratorPrototype,Mt=function(){return this},Ut=function(e,t,n){var r=t+" Iterator";return e.prototype=ft(Nt,{next:d(1,n)}),Lt(e,r,!1),qe[r]=Mt,e},Ft=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 function(e,t){if(C(e),!w(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n,r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Dt=It.IteratorPrototype,Bt=It.BUGGY_SAFARI_ITERATORS,qt=Re("iterator"),Ht=function(){return this},Vt=function(e,t,n,r,i,o,a){Ut(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Bt&&e in d)return d[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",h=!1,d=e.prototype,p=d[qt]||d["@@iterator"]||i&&d[i],g=!Bt&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=Ot(m.call(new e)),Dt!==Object.prototype&&s.next&&(Ot(s)!==Dt&&(Ft?Ft(s,Dt):"function"!=typeof s[qt]&&R(s,qt,Ht)),Lt(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[qt]!==g&&R(d,qt,g),qe[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)(Bt||h||!(l in d))&&Q(d,l,c[l]);else Te({target:t,proto:!0,forced:Bt||h},c);return c},zt=J.set,Wt=J.getterFor("String Iterator");Vt(String,"String",(function(e){zt(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Wt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_t(n,r,!0),t.index+=e.length,{value:e,done:!1})}));var $t={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 Kt in $t){var Yt=s[Kt],Gt=Yt&&Yt.prototype;if(Gt&&Gt.forEach!==De)try{R(Gt,"forEach",De)}catch(e){Gt.forEach=De}}var Xt=document.getElementById("container");document.addEventListener("focusout",(function(e){e.target.classList&&!Xt.contains(e.target)&&e.target.classList.remove("tab-focus")})),document.addEventListener("keydown",(function(e){9===e.keyCode&&setTimeout((function(){var e=document.activeElement;e&&e.classList&&!Xt.contains(e)&&e.classList.add("tab-focus")}),10)})),function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var Jt={f:Re},Qt=s,Zt=j.f,en=function(e){var t=Qt.Symbol||(Qt.Symbol={});E(t,e)||Zt(t,e,{value:Jt.f(e)})},tn=he.f,nn={}.toString,rn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],on={f:function(e){return rn&&"[object Window]"==nn.call(e)?function(e){try{return tn(e)}catch(e){return rn.slice()}}(e):tn(b(e))}},an=V("hidden"),sn=J.set,cn=J.getterFor("Symbol"),ln=P.f,un=j.f,fn=on.f,hn=s.Symbol,dn=s.JSON,pn=dn&&dn.stringify,gn=Re("toPrimitive"),mn=h.f,vn=N("symbol-registry"),yn=N("symbols"),bn=N("op-symbols"),wn=N("wks"),kn=Object.prototype,Sn=s.QObject,En=!Sn||!Sn.prototype||!Sn.prototype.findChild,_n=l&&c((function(){return 7!=ft(un({},"a",{get:function(){return un(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ln(kn,t);r&&delete kn[t],un(e,t,n),r&&e!==kn&&un(kn,t,r)}:un,Tn=function(e,t){var n=yn[e]=ft(hn.prototype);return sn(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},xn=Ce&&"symbol"==typeof hn.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof hn},An=function(e,t,n){return e===kn&&An(bn,t,n),C(e),t=k(t,!0),C(n),E(yn,t)?(n.enumerable?(E(e,an)&&e[an][t]&&(e[an][t]=!1),n=ft(n,{enumerable:d(0,!1)})):(E(e,an)||un(e,an,d(1,{})),e[an][t]=!0),_n(e,t,n)):un(e,t,n)},On=function(e,t){C(e);for(var n,r=function(e){var t=it(e),n=de.f;if(n)for(var r,i=n(e),o=h.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}(t=b(t)),i=0,o=r.length;o>i;)An(e,n=r[i++],t[n]);return e},Pn=function(e){var t=mn.call(this,e=k(e,!0));return!(this===kn&&E(yn,e)&&!E(bn,e))&&(!(t||!E(this,e)||!E(yn,e)||E(this,an)&&this[an][e])||t)},Cn=function(e,t){if(e=b(e),t=k(t,!0),e!==kn||!E(yn,t)||E(bn,t)){var n=ln(e,t);return!n||!E(yn,t)||E(e,an)&&e[an][t]||(n.enumerable=!0),n}},In=function(e){for(var t,n=fn(b(e)),r=[],i=0;n.length>i;)E(yn,t=n[i++])||E(z,t)||r.push(t);return r},jn=function(e){for(var t,n=e===kn,r=fn(n?bn:b(e)),i=[],o=0;r.length>o;)!E(yn,t=r[o++])||n&&!E(kn,t)||i.push(yn[t]);return i};Ce||(Q((hn=function(){if(this instanceof hn)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=q(e),n=function(e){this===kn&&n.call(bn,e),E(this,an)&&E(this[an],t)&&(this[an][t]=!1),_n(this,t,d(1,e))};return l&&En&&_n(kn,t,{configurable:!0,set:n}),Tn(t,e)}).prototype,"toString",(function(){return cn(this).tag})),h.f=Pn,j.f=An,P.f=Cn,he.f=on.f=In,de.f=jn,l&&(un(hn.prototype,"description",{configurable:!0,get:function(){return cn(this).description}}),Q(kn,"propertyIsEnumerable",Pn,{unsafe:!0})),Jt.f=function(e){return Tn(Re(e),e)}),Te({global:!0,wrap:!0,forced:!Ce,sham:!Ce},{Symbol:hn});for(var Rn=it(wn),Ln=0;Rn.length>Ln;)en(Rn[Ln++]);Te({target:"Symbol",stat:!0,forced:!Ce},{for:function(e){return E(vn,e+="")?vn[e]:vn[e]=hn(e)},keyFor:function(e){if(!xn(e))throw TypeError(e+" is not a symbol");for(var t in vn)if(vn[t]===e)return t},useSetter:function(){En=!0},useSimple:function(){En=!1}}),Te({target:"Object",stat:!0,forced:!Ce,sham:!l},{create:function(e,t){return void 0===t?ft(e):On(ft(e),t)},defineProperty:An,defineProperties:On,getOwnPropertyDescriptor:Cn}),Te({target:"Object",stat:!0,forced:!Ce},{getOwnPropertyNames:In,getOwnPropertySymbols:jn}),Te({target:"Object",stat:!0,forced:c((function(){de.f(1)}))},{getOwnPropertySymbols:function(e){return de.f(Oe(e))}}),dn&&Te({target:"JSON",stat:!0,forced:!Ce||c((function(){var e=hn();return"[null]"!=pn([e])||"{}"!=pn({a:e})||"{}"!=pn(Object(e))}))},{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(w(t)||void 0!==e)&&!xn(e))return Pe(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!xn(t))return t}),r[1]=t,pn.apply(dn,r)}}),hn.prototype[gn]||R(hn.prototype,gn,hn.prototype.valueOf),Lt(hn,"Symbol"),z[an]=!0;var Nn=j.f,Mn=s.Symbol;if(l&&"function"==typeof Mn&&(!("description"in Mn.prototype)||void 0!==Mn().description)){var Un={},Fn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Fn?new Mn(e):void 0===e?Mn():Mn(e);return""===e&&(Un[t]=!0),t};me(Fn,Mn);var Dn=Fn.prototype=Mn.prototype;Dn.constructor=Fn;var Bn=Dn.toString,qn="Symbol(test)"==String(Mn("test")),Hn=/^Symbol\((.*)\)[^)]+$/;Nn(Dn,"description",{configurable:!0,get:function(){var e=w(this)?this.valueOf():this,t=Bn.call(e);if(E(Un,e))return"";var n=qn?t.slice(7,-1):t.replace(Hn,"$1");return""===n?void 0:n}}),Te({global:!0,forced:!0},{Symbol:Fn})}en("iterator");var Vn=se(!1),zn=[].indexOf,Wn=!!zn&&1/[1].indexOf(1,-0)<0,$n=Ue("indexOf");Te({target:"Array",proto:!0,forced:Wn||$n},{indexOf:function(e){return Wn?zn.apply(this,arguments)||0:Vn(this,e,arguments[1])}});var Kn=J.set,Yn=J.getterFor("Array Iterator"),Gn=Vt(Array,"Array",(function(e,t){Kn(this,{type:"Array Iterator",target:b(e),index:0,kind:t})}),(function(){var e=Yn(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");qe.Arguments=qe.Array,pt("keys"),pt("values"),pt("entries");var Xn=[].join,Jn=v!=Object,Qn=Ue("join",",");Te({target:"Array",proto:!0,forced:Jn||Qn},{join:function(e){return Xn.call(b(this),void 0===e?",":e)}});var Zn=Re("species"),er=function(e){return!c((function(){var t=[];return(t.constructor={})[Zn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},tr=Re("species"),nr=[].slice,rr=Math.max,ir=er("slice");Te({target:"Array",proto:!0,forced:!ir},{slice:function(e,t){var n,r,i,o=b(this),a=re(o.length),s=ae(e,a),c=ae(void 0===t?a:t,a);if(Pe(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Pe(n.prototype)?w(n)&&null===(n=n[tr])&&(n=void 0):n=void 0,n===Array||void 0===n))return nr.call(o,s,c);for(r=new(void 0===n?Array:n)(rr(c-s,0)),i=0;s<c;s++,i++)s in o&&We(r,i,o[s]);return r.length=i,r}});var or={};or[Re("toStringTag")]="z";var ar="[object z]"!==String(or)?function(){return"[object "+Ye(this)+"]"}:or.toString,sr=Object.prototype;ar!==sr.toString&&Q(sr,"toString",ar,{unsafe:!0});var cr=function(){var e=C(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},lr=RegExp.prototype.exec,ur=String.prototype.replace,fr=lr,hr=function(){var e=/a/,t=/b*/g;return lr.call(e,"a"),lr.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),dr=void 0!==/()??/.exec("")[1];(hr||dr)&&(fr=function(e){var t,n,r,i,o=this;return dr&&(n=new RegExp("^"+o.source+"$(?!\\s)",cr.call(o))),hr&&(t=o.lastIndex),r=lr.call(o,e),hr&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),dr&&r&&r.length>1&&ur.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var pr=fr;Te({target:"RegExp",proto:!0,forced:/./.exec!==pr},{exec:pr});var gr=/./.toString,mr=RegExp.prototype,vr=c((function(){return"/a/b"!=gr.call({source:"a",flags:"b"})})),yr="toString"!=gr.name;(vr||yr)&&Q(RegExp.prototype,"toString",(function(){var e=C(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in mr)?cr.call(e):n)}),{unsafe:!0});var br=Re("species"),wr=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),kr=!c((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]})),Sr=function(e,t,n,r){var i=Re(e),o=!c((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!c((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[br]=function(){return n}),n[i](""),!t}));if(!o||!a||"replace"===e&&!wr||"split"===e&&!kr){var s=/./[i],l=n(i,""[e],(function(e,t,n,r,i){return t.exec===pr?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),u=l[0],f=l[1];Q(String.prototype,e,u),Q(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}),r&&R(RegExp.prototype[i],"sham",!0)}},Er=function(e,t,n){return t+(n?_t(e,t,!0).length:1)},_r=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==g(e))throw TypeError("RegExp#exec called on incompatible receiver");return pr.call(e,t)},Tr=Math.max,xr=Math.min,Ar=Math.floor,Or=/\$([$&'`]|\d\d?|<[^>]*>)/g,Pr=/\$([$&'`]|\d\d?)/g;Sr("replace",2,(function(e,t,n){return[function(n,r){var i=y(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var o=n(t,e,this,i);if(o.done)return o.value;var a=C(e),s=String(this),c="function"==typeof i;c||(i=String(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var f=[];;){var h=_r(a,s);if(null===h)break;if(f.push(h),!l)break;""===String(h[0])&&(a.lastIndex=Er(s,re(a.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){h=f[m];for(var v=String(h[0]),y=Tr(xr(te(h.index),s.length),0),b=[],w=1;w<h.length;w++)b.push(void 0===(d=h[w])?d:String(d));var k=h.groups;if(c){var S=[v].concat(b,y,s);void 0!==k&&S.push(k);var E=String(i.apply(void 0,S))}else E=r(v,s,y,b,k,i);y>=g&&(p+=s.slice(g,y)+E,g=y+v.length)}return p+s.slice(g)}];function r(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=Pr;return void 0!==o&&(o=Oe(o),l=Or),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=Ar(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l}))}}));var Cr=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Sr("search",1,(function(e,t,n){return[function(t){var n=y(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=C(e),o=String(this),a=i.lastIndex;Cr(a,0)||(i.lastIndex=0);var s=_r(i,o);return Cr(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var Ir=Re("species"),jr=function(e,t){var n,r=C(e).constructor;return void 0===r||null==(n=C(r)[Ir])?t:xe(n)},Rr=[].push,Lr=Math.min,Nr=!c((function(){return!RegExp(4294967295,"y")}));Sr("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(y(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!yt(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=pr.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&Rr.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=y(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=C(e),s=String(this),c=jr(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Nr?"y":"g"),f=new c(Nr?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===_r(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=Nr?p:0;var m,v=_r(f,Nr?s:s.slice(p));if(null===v||(m=Lr(re(f.lastIndex+(Nr?0:p)),s.length))===d)p=Er(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]}),!Nr);var Mr=Re("iterator"),Ur=Re("toStringTag"),Fr=Gn.values;for(var Dr in $t){var Br=s[Dr],qr=Br&&Br.prototype;if(qr){if(qr[Mr]!==Fr)try{R(qr,Mr,Fr)}catch(e){qr[Mr]=Fr}if(qr[Ur]||R(qr,Ur,Dr),$t[Dr])for(var Hr in Gn)if(qr[Hr]!==Gn[Hr])try{R(qr,Hr,Gn[Hr])}catch(e){qr[Hr]=Gn[Hr]}}}var Vr=Re("iterator"),zr=!c((function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Vr]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})),Wr=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},$r=Object.assign,Kr=!$r||c((function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=$r({},e)[n]||"abcdefghijklmnopqrst"!=it($r({},t)).join("")}))?function(e,t){for(var n=Oe(e),r=arguments.length,i=1,o=de.f,a=h.f;r>i;)for(var s,c=v(arguments[i++]),u=o?it(c).concat(o(c)):it(c),f=u.length,d=0;f>d;)s=u[d++],l&&!a.call(c,s)||(n[s]=c[s]);return n}:$r,Yr=/[^\0-\u007E]/,Gr=/[.\u3002\uFF0E\uFF61]/g,Xr="Overflow: input needs wider integers to process",Jr=Math.floor,Qr=String.fromCharCode,Zr=function(e){return e+22+75*(e<26)},ei=function(e,t,n){var r=0;for(e=n?Jr(e/700):e>>1,e+=Jr(e/t);e>455;r+=36)e=Jr(e/35);return Jr(r+36*e/(e+38))},ti=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Qr(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>Jr((2147483647-a)/f))throw RangeError(Xr);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(Xr);if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push(Qr(Zr(p+g%m))),h=Jr(g/m)}r.push(Qr(Zr(h))),s=ei(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},ni=function(e,t,n){for(var r in t)Q(e,r,t[r],n);return e},ri=function(e){var t=Xe(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return C(t.call(e))},ii=Re("iterator"),oi=J.set,ai=J.getterFor("URLSearchParams"),si=J.getterFor("URLSearchParamsIterator"),ci=/\+/g,li=Array(4),ui=function(e){return li[e-1]||(li[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},fi=function(e){try{return decodeURIComponent(e)}catch(t){return e}},hi=function(e){var t=e.replace(ci," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(ui(n--),fi);return t}},di=/[!'()~]|%20/g,pi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},gi=function(e){return pi[e]},mi=function(e){return encodeURIComponent(e).replace(di,gi)},vi=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:hi(r.shift()),value:hi(r.join("="))}));return e},yi=function(e){this.entries.length=0,vi(this.entries,e)},bi=function(e,t){if(e<t)throw TypeError("Not enough arguments")},wi=Ut((function(e,t){oi(this,{type:"URLSearchParamsIterator",iterator:ri(ai(e).entries),kind:t})}),"Iterator",(function(){var e=si(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),ki=function(){Wr(this,ki,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,c=this,l=[];if(oi(c,{type:"URLSearchParams",entries:l,updateURL:null,updateSearchParams:yi}),void 0!==s)if(w(s))if("function"==typeof(e=Xe(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=ri(C(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");l.push({key:i.value+"",value:o.value+""})}else for(a in s)E(s,a)&&l.push({key:a,value:s[a]+""});else vi(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},Si=ki.prototype;ni(Si,{append:function(e,t){bi(arguments.length,2);var n=ai(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){bi(arguments.length,1);for(var t=ai(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL&&t.updateURL()},get:function(e){bi(arguments.length,1);for(var t=ai(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){bi(arguments.length,1);for(var t=ai(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){bi(arguments.length,1);for(var t=ai(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){bi(arguments.length,1);for(var n,r=ai(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=ai(this),i=r.entries,o=i.slice();for(i.length=0,t=0;t<o.length;t++){for(e=o[t],n=0;n<t;n++)if(i[n].key>e.key){i.splice(n,0,e);break}n===t&&i.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=ai(this).entries,r=Ae(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new wi(this,"keys")},values:function(){return new wi(this,"values")},entries:function(){return new wi(this,"entries")}},{enumerable:!0}),Q(Si,ii,Si.entries),Q(Si,"toString",(function(){for(var e,t=ai(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(mi(e.key)+"="+mi(e.value));return n.join("&")}),{enumerable:!0}),Lt(ki,"URLSearchParams"),Te({global:!0,forced:!zr},{URLSearchParams:ki});var Ei,_i={URLSearchParams:ki,getState:ai},Ti=s.URL,xi=_i.URLSearchParams,Ai=_i.getState,Oi=J.set,Pi=J.getterFor("URL"),Ci=Math.pow,Ii=/[A-Za-z]/,ji=/[\d+\-.A-Za-z]/,Ri=/\d/,Li=/^(0x|0X)/,Ni=/^[0-7]+$/,Mi=/^\d+$/,Ui=/^[\dA-Fa-f]+$/,Fi=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Di=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Bi=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,qi=/[\u0009\u000A\u000D]/g,Hi=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=zi(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Qi(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(Gr,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Yr.test(n)?"xn--"+ti(n):n);return r.join(".")}(t),Fi.test(t))return"Invalid host";if(null===(n=Vi(t)))return"Invalid host";e.host=n}else{if(Di.test(t))return"Invalid host";for(n="",r=Je(t),i=0;i<r.length;i++)n+=Xi(r[i],$i);e.host=n}},Vi=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(""==c[c.length-1]&&c.length&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=Li.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?Mi:8==o?Ni:Ui).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=Ci(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*Ci(256,3-r);return s},zi=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&Ui.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!Ri.test(h()))return;for(;Ri.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},Wi=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}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&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},$i={},Ki=Kr({},$i,{" ":1,'"':1,"<":1,">":1,"`":1}),Yi=Kr({},Ki,{"#":1,"?":1,"{":1,"}":1}),Gi=Kr({},Yi,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Xi=function(e,t){var n=_t(e,0);return n>32&&n<127&&!E(t,e)?e:encodeURIComponent(e)},Ji={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},Qi=function(e){return E(Ji,e.scheme)},Zi=function(e){return""!=e.username||""!=e.password},eo=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},to=function(e,t){var n;return 2==e.length&&Ii.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},no=function(e){var t;return e.length>1&&to(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ro=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&to(t[0],!0)||t.pop()},io=function(e){return"."===e||"%2e"===e.toLowerCase()},oo={},ao={},so={},co={},lo={},uo={},fo={},ho={},po={},go={},mo={},vo={},yo={},bo={},wo={},ko={},So={},Eo={},_o={},To={},xo={},Ao=function(e,t,n,r){var i,o,a,s,c,l=n||oo,u=0,f="",h=!1,d=!1,p=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Bi,"")),t=t.replace(qi,""),i=Je(t);u<=i.length;){switch(o=i[u],l){case oo:if(!o||!Ii.test(o)){if(n)return"Invalid scheme";l=so;continue}f+=o.toLowerCase(),l=ao;break;case ao:if(o&&(ji.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=so,u=0;continue}if(n&&(Qi(e)!=E(Ji,f)||"file"==f&&(Zi(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(Qi(e)&&Ji[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=bo:Qi(e)&&r&&r.scheme==e.scheme?l=co:Qi(e)?l=ho:"/"==i[u+1]?(l=lo,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=_o)}break;case so:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=xo;break}l="file"==r.scheme?bo:uo;continue;case co:if("/"!=o||"/"!=i[u+1]){l=uo;continue}l=po,u++;break;case lo:if("/"==o){l=go;break}l=Eo;continue;case uo:if(e.scheme=r.scheme,o==Ei)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&Qi(e))l=fo;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=To;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=Eo;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=xo}break;case fo:if(!Qi(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=Eo;continue}l=go}else l=po;break;case ho:if(l=po,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case po:if("/"!=o&&"\\"!=o){l=go;continue}break;case go:if("@"==o){h&&(f="%40"+f),h=!0,a=Je(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=Xi(m,Gi);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(o==Ei||"/"==o||"?"==o||"#"==o||"\\"==o&&Qi(e)){if(h&&""==f)return"Invalid authority";u-=Je(f).length+1,f="",l=mo}else f+=o;break;case mo:case vo:if(n&&"file"==e.scheme){l=ko;continue}if(":"!=o||d){if(o==Ei||"/"==o||"?"==o||"#"==o||"\\"==o&&Qi(e)){if(Qi(e)&&""==f)return"Invalid host";if(n&&""==f&&(Zi(e)||null!==e.port))return;if(s=Hi(e,f))return s;if(f="",l=So,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=Hi(e,f))return s;if(f="",l=yo,n==vo)return}break;case yo:if(!Ri.test(o)){if(o==Ei||"/"==o||"?"==o||"#"==o||"\\"==o&&Qi(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=Qi(e)&&y===Ji[e.scheme]?null:y,f=""}if(n)return;l=So;continue}return"Invalid port"}f+=o;break;case bo:if(e.scheme="file","/"==o||"\\"==o)l=wo;else{if(!r||"file"!=r.scheme){l=Eo;continue}if(o==Ei)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",l=To;else{if("#"!=o){no(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ro(e)),l=Eo;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=xo}}break;case wo:if("/"==o||"\\"==o){l=ko;break}r&&"file"==r.scheme&&!no(i.slice(u).join(""))&&(to(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=Eo;continue;case ko:if(o==Ei||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&to(f))l=Eo;else if(""==f){if(e.host="",n)return;l=So}else{if(s=Hi(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=So}continue}f+=o;break;case So:if(Qi(e)){if(l=Eo,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=Ei&&(l=Eo,"/"!=o))continue}else e.fragment="",l=xo;else e.query="",l=To;break;case Eo:if(o==Ei||"/"==o||"\\"==o&&Qi(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(ro(e),"/"==o||"\\"==o&&Qi(e)||e.path.push("")):io(f)?"/"==o||"\\"==o&&Qi(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&to(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==Ei||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=To):"#"==o&&(e.fragment="",l=xo)}else f+=Xi(o,Yi);break;case _o:"?"==o?(e.query="",l=To):"#"==o?(e.fragment="",l=xo):o!=Ei&&(e.path[0]+=Xi(o,$i));break;case To:n||"#"!=o?o!=Ei&&("'"==o&&Qi(e)?e.query+="%27":e.query+="#"==o?"%23":Xi(o,$i)):(e.fragment="",l=xo);break;case xo:o!=Ei&&(e.fragment+=Xi(o,Ki))}u++}},Oo=function(e){var t,n,r=Wr(this,Oo,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Oi(r,{type:"URL"});if(void 0!==i)if(i instanceof Oo)t=Pi(i);else if(n=Ao(t={},String(i)))throw TypeError(n);if(n=Ao(a,o,null,t))throw TypeError(n);var s=a.searchParams=new xi,c=Ai(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},l||(r.href=Co.call(r),r.origin=Io.call(r),r.protocol=jo.call(r),r.username=Ro.call(r),r.password=Lo.call(r),r.host=No.call(r),r.hostname=Mo.call(r),r.port=Uo.call(r),r.pathname=Fo.call(r),r.search=Do.call(r),r.searchParams=Bo.call(r),r.hash=qo.call(r))},Po=Oo.prototype,Co=function(){var e=Pi(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Zi(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Wi(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Io=function(){var e=Pi(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Qi(e)?t+"://"+Wi(e.host)+(null!==n?":"+n:""):"null"},jo=function(){return Pi(this).scheme+":"},Ro=function(){return Pi(this).username},Lo=function(){return Pi(this).password},No=function(){var e=Pi(this),t=e.host,n=e.port;return null===t?"":null===n?Wi(t):Wi(t)+":"+n},Mo=function(){var e=Pi(this).host;return null===e?"":Wi(e)},Uo=function(){var e=Pi(this).port;return null===e?"":String(e)},Fo=function(){var e=Pi(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Do=function(){var e=Pi(this).query;return e?"?"+e:""},Bo=function(){return Pi(this).searchParams},qo=function(){var e=Pi(this).fragment;return e?"#"+e:""},Ho=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(l&&ot(Po,{href:Ho(Co,(function(e){var t=Pi(this),n=String(e),r=Ao(t,n);if(r)throw TypeError(r);Ai(t.searchParams).updateSearchParams(t.query)})),origin:Ho(Io),protocol:Ho(jo,(function(e){var t=Pi(this);Ao(t,String(e)+":",oo)})),username:Ho(Ro,(function(e){var t=Pi(this),n=Je(String(e));if(!eo(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Xi(n[r],Gi)}})),password:Ho(Lo,(function(e){var t=Pi(this),n=Je(String(e));if(!eo(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Xi(n[r],Gi)}})),host:Ho(No,(function(e){var t=Pi(this);t.cannotBeABaseURL||Ao(t,String(e),mo)})),hostname:Ho(Mo,(function(e){var t=Pi(this);t.cannotBeABaseURL||Ao(t,String(e),vo)})),port:Ho(Uo,(function(e){var t=Pi(this);eo(t)||(""==(e=String(e))?t.port=null:Ao(t,e,yo))})),pathname:Ho(Fo,(function(e){var t=Pi(this);t.cannotBeABaseURL||(t.path=[],Ao(t,e+"",So))})),search:Ho(Do,(function(e){var t=Pi(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ao(t,e,To)),Ai(t.searchParams).updateSearchParams(t.query)})),searchParams:Ho(Bo),hash:Ho(qo,(function(e){var t=Pi(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ao(t,e,xo)):t.fragment=null}))}),Q(Po,"toJSON",(function(){return Co.call(this)}),{enumerable:!0}),Q(Po,"toString",(function(){return Co.call(this)}),{enumerable:!0}),Ti){var Vo=Ti.createObjectURL,zo=Ti.revokeObjectURL;Vo&&Q(Oo,"createObjectURL",(function(e){return Vo.apply(Ti,arguments)})),zo&&Q(Oo,"revokeObjectURL",(function(e){return zo.apply(Ti,arguments)}))}function Wo(e){return(Wo="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 $o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ko(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 Yo(e,t,n){return t&&Ko(e.prototype,t),n&&Ko(e,n),e}function Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xo(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;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)||ea(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 Zo(e){return function(e){if(Array.isArray(e))return ta(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ea(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 ea(e,t){if(e){if("string"==typeof e)return ta(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ta(e,t):void 0}}function ta(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}Lt(Oo,"URL"),Te({global:!0,forced:!zr,sham:!l},{URL:Oo}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};"URLSearchParams"in e&&"a=1"===new e.URLSearchParams("?a=1").toString()||function(){var i=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=Wo(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach((function(e,t){r.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var i=0;i<t.length;i++){var o=t[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search),s=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(c=!1,l.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,c&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var na=Re("isConcatSpreadable"),ra=!c((function(){var e=[];return e[na]=!1,e.concat()[0]!==e})),ia=er("concat"),oa=function(e){if(!w(e))return!1;var t=e[na];return void 0!==t?!!t:Pe(e)};Te({target:"Array",proto:!0,forced:!ra||!ia},{concat:function(e){var t,n,r,i,o,a=Oe(this),s=Ne(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],oa(o)){if(c+(i=re(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&We(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");We(s,c++,o)}return s.length=c,s}});var aa=function(e){for(var t=Oe(this),n=re(t.length),r=arguments.length,i=ae(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:ae(o,n);a>i;)t[i++]=e;return t};Te({target:"Array",proto:!0},{fill:aa}),pt("fill");var sa=[].lastIndexOf,ca=!!sa&&1/[1].lastIndexOf(1,-0)<0,la=Ue("lastIndexOf"),ua=ca||la?function(e){if(ca)return sa.apply(this,arguments)||0;var t=b(this),n=re(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,te(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:sa;Te({target:"Array",proto:!0,forced:ua!==[].lastIndexOf},{lastIndexOf:ua});var fa=j.f,ha=Function.prototype,da=ha.toString,pa=/^\s*function ([^ (]*)/;l&&!("name"in ha)&&fa(ha,"name",{configurable:!0,get:function(){try{return da.call(this).match(pa)[1]}catch(e){return""}}});var ga,ma,va,ya=function(e){return"function"==typeof e?e:void 0},ba=Re("species"),wa=function(e){var t=function(e,t){return arguments.length<2?ya(Qt[e])||ya(s[e]):Qt[e]&&Qt[e][t]||s[e]&&s[e][t]}(e),n=j.f;l&&t&&!t[ba]&&n(t,ba,{configurable:!0,get:function(){return this}})},ka=t((function(e){var t={};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f=Ae(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=Xe(e)))throw TypeError("Target is not iterable");if(ze(s)){for(c=0,l=re(e.length);l>c;c++)if((i?f(C(u=e[c])[0],u[1]):f(e[c]))===t)return t;return}a=s.call(e)}for(;!(u=a.next()).done;)if(Be(a,f,u.value,i)===t)return t}).BREAK=t})),Sa=s.location,Ea=s.setImmediate,_a=s.clearImmediate,Ta=s.process,xa=s.MessageChannel,Aa=s.Dispatch,Oa=0,Pa={},Ca=function(e){if(Pa.hasOwnProperty(e)){var t=Pa[e];delete Pa[e],t()}},Ia=function(e){return function(){Ca(e)}},ja=function(e){Ca(e.data)},Ra=function(e){s.postMessage(e+"",Sa.protocol+"//"+Sa.host)};Ea&&_a||(Ea=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Pa[++Oa]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ga(Oa),Oa},_a=function(e){delete Pa[e]},"process"==g(Ta)?ga=function(e){Ta.nextTick(Ia(e))}:Aa&&Aa.now?ga=function(e){Aa.now(Ia(e))}:xa?(va=(ma=new xa).port2,ma.port1.onmessage=ja,ga=Ae(va.postMessage,va,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||c(Ra)?ga="onreadystatechange"in x("script")?function(e){st.appendChild(x("script")).onreadystatechange=function(){st.removeChild(this),Ca(e)}}:function(e){setTimeout(Ia(e),0)}:(ga=Ra,s.addEventListener("message",ja,!1)));var La,Na,Ma,Ua,Fa,Da,Ba,qa={set:Ea,clear:_a},Ha=s.navigator,Va=Ha&&Ha.userAgent||"",za=P.f,Wa=qa.set,$a=s.MutationObserver||s.WebKitMutationObserver,Ka=s.process,Ya=s.Promise,Ga="process"==g(Ka),Xa=za(s,"queueMicrotask"),Ja=Xa&&Xa.value;Ja||(La=function(){var e,t;for(Ga&&(e=Ka.domain)&&e.exit();Na;){t=Na.fn,Na=Na.next;try{t()}catch(e){throw Na?Ua():Ma=void 0,e}}Ma=void 0,e&&e.enter()},Ga?Ua=function(){Ka.nextTick(La)}:$a&&!/(iphone|ipod|ipad).*applewebkit/i.test(Va)?(Fa=!0,Da=document.createTextNode(""),new $a(La).observe(Da,{characterData:!0}),Ua=function(){Da.data=Fa=!Fa}):Ya&&Ya.resolve?(Ba=Ya.resolve(void 0),Ua=function(){Ba.then(La)}):Ua=function(){Wa.call(s,La)});var Qa,Za,es,ts=Ja||function(e){var t={fn:e,next:void 0};Ma&&(Ma.next=t),Na||(Na=t,Ua()),Ma=t},ns=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=xe(t),this.reject=xe(n)},rs={f:function(e){return new ns(e)}},is=function(e,t){if(C(e),w(t)&&t.constructor===e)return t;var n=rs.f(e);return(0,n.resolve)(t),n.promise},os=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},as=qa.set,ss=Re("species"),cs="Promise",ls=J.get,us=J.set,fs=J.getterFor(cs),hs=s[cs],ds=s.TypeError,ps=s.document,gs=s.process,ms=s.fetch,vs=gs&&gs.versions,ys=vs&&vs.v8||"",bs=rs.f,ws=bs,ks="process"==g(gs),Ss=!!(ps&&ps.createEvent&&s.dispatchEvent),Es=Ee(cs,(function(){var e=hs.resolve(1),t=function(){},n=(e.constructor={})[ss]=function(e){e(t,t)};return!((ks||"function"==typeof PromiseRejectionEvent)&&e.then(t)instanceof n&&0!==ys.indexOf("6.6")&&-1===Va.indexOf("Chrome/66"))})),_s=Es||!nt((function(e){hs.all(e).catch((function(){}))})),Ts=function(e){var t;return!(!w(e)||"function"!=typeof(t=e.then))&&t},xs=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;ts((function(){for(var i=t.value,o=1==t.state,a=0,s=function(n){var r,a,s,c=o?n.ok:n.fail,l=n.resolve,u=n.reject,f=n.domain;try{c?(o||(2===t.rejection&&Cs(e,t),t.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),s=!0)),r===n.promise?u(ds("Promise-chain cycle")):(a=Ts(r))?a.call(r,l,u):l(r)):u(i)}catch(e){f&&!s&&f.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&Os(e,t)}))}},As=function(e,t,n){var r,i;Ss?((r=ps.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},(i=s["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=s.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Os=function(e,t){as.call(s,(function(){var n,r=t.value;if(Ps(t)&&(n=os((function(){ks?gs.emit("unhandledRejection",r,e):As("unhandledrejection",e,r)})),t.rejection=ks||Ps(t)?2:1,n.error))throw n.value}))},Ps=function(e){return 1!==e.rejection&&!e.parent},Cs=function(e,t){as.call(s,(function(){ks?gs.emit("rejectionHandled",e):As("rejectionhandled",e,t.value)}))},Is=function(e,t,n,r){return function(i){e(t,n,i,r)}},js=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,xs(e,t,!0))},Rs=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw ds("Promise can't be resolved itself");var i=Ts(n);i?ts((function(){var r={done:!1};try{i.call(n,Is(Rs,e,r,t),Is(js,e,r,t))}catch(n){js(e,r,n,t)}})):(t.value=n,t.state=1,xs(e,t,!1))}catch(n){js(e,{done:!1},n,t)}}};Es&&(hs=function(e){Wr(this,hs,cs),xe(e),Qa.call(this);var t=ls(this);try{e(Is(Rs,this,t),Is(js,this,t))}catch(e){js(this,t,e)}},(Qa=function(e){us(this,{type:cs,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ni(hs.prototype,{then:function(e,t){var n=fs(this),r=bs(jr(this,hs));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=ks?gs.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&xs(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Za=function(){var e=new Qa,t=ls(e);this.promise=e,this.resolve=Is(Rs,e,t),this.reject=Is(js,e,t)},rs.f=bs=function(e){return e===hs||e===es?new Za(e):ws(e)},"function"==typeof ms&&Te({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return is(hs,ms.apply(s,arguments))}})),Te({global:!0,wrap:!0,forced:Es},{Promise:hs}),Lt(hs,cs,!1),wa(cs),es=Qt[cs],Te({target:cs,stat:!0,forced:Es},{reject:function(e){var t=bs(this);return t.reject.call(void 0,e),t.promise}}),Te({target:cs,stat:!0,forced:Es},{resolve:function(e){return is(this,e)}}),Te({target:cs,stat:!0,forced:_s},{all:function(e){var t=this,n=bs(t),r=n.resolve,i=n.reject,o=os((function(){var n=xe(t.resolve),o=[],a=0,s=1;ka(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=bs(t),r=n.reject,i=os((function(){var i=xe(t.resolve);ka(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Ls=Math.max,Ns=Math.min,Ms=er("splice");Te({target:"Array",proto:!0,forced:!Ms},{splice:function(e,t){var n,r,i,o,a,s,c=Oe(this),l=re(c.length),u=ae(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=Ns(Ls(te(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Ne(c,r),o=0;o<r;o++)(a=u+o)in c&&We(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}}),Sr("match",1,(function(e,t,n){return[function(t){var n=y(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=C(e),o=String(this);if(!i.global)return _r(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=_r(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=Er(o,re(i.lastIndex),a)),l++}return 0===l?null:c}]}));var Us=Me(2),Fs=er("filter");Te({target:"Array",proto:!0,forced:!Fs},{filter:function(e){return Us(this,e,arguments[1])}});var Ds=Me(1),Bs=er("map");Te({target:"Array",proto:!0,forced:!Bs},{map:function(e){return Ds(this,e,arguments[1])}});var qs=function(e,t,n,r,i){xe(t);var o=Oe(e),a=v(o),s=re(o.length),c=i?s-1:0,l=i?-1:1;if(n<2)for(;;){if(c in a){r=a[c],c+=l;break}if(c+=l,i?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;i?c>=0:s>c;c+=l)c in a&&(r=t(r,a[c],c,o));return r},Hs=Ue("reduce");Te({target:"Array",proto:!0,forced:Hs},{reduce:function(e){return qs(this,e,arguments.length,arguments[1],!1)}});var Vs=Object.isFrozen,zs=c((function(){Vs(1)}));Te({target:"Object",stat:!0,forced:zs},{isFrozen:function(e){return!w(e)||!!Vs&&Vs(e)}});var Ws=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&w(r)&&Ft&&Ft(e,r),e},$s=j.f,Ks=he.f,Ys=Re("match"),Gs=s.RegExp,Xs=Gs.prototype,Js=/a/g,Qs=/a/g,Zs=new Gs(Js)!==Js;if(Ee("RegExp",l&&(!Zs||c((function(){return Qs[Ys]=!1,Gs(Js)!=Js||Gs(Qs)==Qs||"/a/i"!=Gs(Js,"i")}))))){for(var ec=function(e,t){var n=this instanceof ec,r=yt(e),i=void 0===t;return!n&&r&&e.constructor===ec&&i?e:Ws(Zs?new Gs(r&&!i?e.source:e,t):Gs((r=e instanceof ec)?e.source:e,r&&i?cr.call(e):t),n?this:Xs,ec)},tc=function(e){e in ec||$s(ec,e,{configurable:!0,get:function(){return Gs[e]},set:function(t){Gs[e]=t}})},nc=Ks(Gs),rc=0;rc<nc.length;)tc(nc[rc++]);Xs.constructor=ec,ec.prototype=Xs,Q(s,"RegExp",ec)}wa("RegExp");var ic,oc=j.f,ac=s.DataView,sc=ac&&ac.prototype,cc=s.Int8Array,lc=cc&&cc.prototype,uc=s.Uint8ClampedArray,fc=uc&&uc.prototype,hc=cc&&Ot(cc),dc=lc&&Ot(lc),pc=Object.prototype,gc=pc.isPrototypeOf,mc=Re("toStringTag"),vc=q("TYPED_ARRAY_TAG"),yc=!(!s.ArrayBuffer||!s.DataView),bc=yc&&!!Ft,wc=!1,kc={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Sc=function(e){return w(e)&&E(kc,Ye(e))};for(ic in kc)s[ic]||(bc=!1);if((!bc||"function"!=typeof hc||hc===Function.prototype)&&(hc=function(){throw TypeError("Incorrect invocation")},bc))for(ic in kc)s[ic]&&Ft(s[ic],hc);if((!bc||!dc||dc===pc)&&(dc=hc.prototype,bc))for(ic in kc)s[ic]&&Ft(s[ic].prototype,dc);if(bc&&Ot(fc)!==dc&&Ft(fc,dc),l&&!E(dc,mc))for(ic in wc=!0,oc(dc,mc,{get:function(){return w(this)?this[vc]:void 0}}),kc)s[ic]&&R(s[ic],vc,ic);yc&&Ft&&Ot(sc)!==pc&&Ft(sc,pc);var Ec={NATIVE_ARRAY_BUFFER:yc,NATIVE_ARRAY_BUFFER_VIEWS:bc,TYPED_ARRAY_TAG:wc&&vc,aTypedArray:function(e){if(Sc(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Ft){if(gc.call(hc,e))return e}else for(var t in kc)if(E(kc,ic)){var n=s[t];if(n&&(e===n||gc.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(l){if(n)for(var r in kc){var i=s[r];i&&E(i.prototype,e)&&delete i.prototype[e]}dc[e]&&!n||Q(dc,e,n?t:bc&&lc[e]||t)}},exportStatic:function(e,t,n){var r,i;if(l){if(Ft){if(n)for(r in kc)(i=s[r])&&E(i,e)&&delete i[e];if(hc[e]&&!n)return;try{return Q(hc,e,n?t:bc&&cc[e]||t)}catch(e){}}for(r in kc)!(i=s[r])||i[e]&&!n||Q(i,e,t)}},isView:function(e){var t=Ye(e);return"DataView"===t||E(kc,t)},isTypedArray:Sc,TypedArray:hc,TypedArrayPrototype:dc},_c=Ec.NATIVE_ARRAY_BUFFER_VIEWS,Tc=s.ArrayBuffer,xc=s.Int8Array,Ac=!_c||!c((function(){xc(1)}))||!c((function(){new xc(-1)}))||!nt((function(e){new xc,new xc(null),new xc(1.5),new xc(e)}),!0)||c((function(){return 1!==new xc(new Tc(2),1,void 0).length})),Oc=function(e){if(void 0===e)return 0;var t=te(e),n=re(t);if(t!==n)throw RangeError("Wrong length or index");return n},Pc=t((function(e,t){var n=Ec.NATIVE_ARRAY_BUFFER,r=he.f,i=j.f,o=J.get,a=J.set,u=s.ArrayBuffer,f=u,h=s.DataView,d=s.Math,p=s.RangeError,g=d.abs,m=d.pow,v=d.floor,y=d.log,b=d.LN2,w=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?m(2,-24)-m(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=g(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=v(y(e)/b),e*(o=m(2,-r))<1&&(r--,o*=2),(e+=r+l>=1?u/o:u*m(2,1-l))*o>=2&&(r++,o/=2),r+l>=c?(i=0,r=c):r+l>=1?(i=(e*o-1)*m(2,t),r+=l):(i=e*m(2,l-1)*m(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a},k=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===u)u=1-a;else{if(u===o)return n?NaN:l?-1/0:1/0;n+=m(2,t),u-=a}return(l?-1:1)*n*m(2,u-t)},S=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},E=function(e){return[255&e]},_=function(e){return[255&e,e>>8&255]},T=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},x=function(e){return w(e,23,4)},A=function(e){return w(e,52,8)},O=function(e,t){i(e.prototype,t,{get:function(){return o(this)[t]}})},P=function(e,t,n,r){var i=Oc(+n),a=o(e);if(i+t>a.byteLength)throw p("Wrong index");var s=o(a.buffer).bytes,c=i+a.byteOffset,l=s.slice(c,c+t);return r?l:l.reverse()},C=function(e,t,n,r,i,a){var s=Oc(+n),c=o(e);if(s+t>c.byteLength)throw p("Wrong index");for(var l=o(c.buffer).bytes,u=s+c.byteOffset,f=r(+i),h=0;h<t;h++)l[u+h]=f[a?h:t-h-1]};if(n){if(!c((function(){u(1)}))||!c((function(){new u(-1)}))||c((function(){return new u,new u(1.5),new u(NaN),"ArrayBuffer"!=u.name}))){for(var I,L=(f=function(e){return Wr(this,f),new u(Oc(e))}).prototype=u.prototype,N=r(u),M=0;N.length>M;)(I=N[M++])in f||R(f,I,u[I]);L.constructor=f}var U=new h(new f(2)),F=h.prototype.setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||ni(h.prototype,{setInt8:function(e,t){F.call(this,e,t<<24>>24)},setUint8:function(e,t){F.call(this,e,t<<24>>24)}},{unsafe:!0})}else f=function(e){Wr(this,f,"ArrayBuffer");var t=Oc(e);a(this,{bytes:aa.call(new Array(t),0),byteLength:t}),l||(this.byteLength=t)},h=function(e,t,n){Wr(this,h,"DataView"),Wr(e,f,"DataView");var r=o(e).byteLength,i=te(t);if(i<0||i>r)throw p("Wrong offset");if(i+(n=void 0===n?r-i:re(n))>r)throw p("Wrong length");a(this,{buffer:e,byteLength:n,byteOffset:i}),l||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},l&&(O(f,"byteLength"),O(h,"buffer"),O(h,"byteLength"),O(h,"byteOffset")),ni(h.prototype,{getInt8:function(e){return P(this,1,e)[0]<<24>>24},getUint8:function(e){return P(this,1,e)[0]},getInt16:function(e){var t=P(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=P(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return S(P(this,4,e,arguments[1]))},getUint32:function(e){return S(P(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return k(P(this,4,e,arguments[1]),23)},getFloat64:function(e){return k(P(this,8,e,arguments[1]),52)},setInt8:function(e,t){C(this,1,e,E,t)},setUint8:function(e,t){C(this,1,e,E,t)},setInt16:function(e,t){C(this,2,e,_,t,arguments[2])},setUint16:function(e,t){C(this,2,e,_,t,arguments[2])},setInt32:function(e,t){C(this,4,e,T,t,arguments[2])},setUint32:function(e,t){C(this,4,e,T,t,arguments[2])},setFloat32:function(e,t){C(this,4,e,x,t,arguments[2])},setFloat64:function(e,t){C(this,8,e,A,t,arguments[2])}});Lt(f,"ArrayBuffer"),Lt(h,"DataView"),t.ArrayBuffer=f,t.DataView=h})),Cc=function(e,t){var n=te(e);if(n<0||n%t)throw RangeError("Wrong offset");return n},Ic=Ec.aTypedArrayConstructor,jc=function(e){var t,n,r,i,o,a=Oe(e),s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=Xe(a);if(null!=u&&!ze(u))for(o=u.call(a),a=[];!(i=o.next()).done;)a.push(i.value);for(l&&s>2&&(c=Ae(c,arguments[2],2)),n=re(a.length),r=new(Ic(this))(n),t=0;n>t;t++)r[t]=l?c(a[t],t):a[t];return r};t((function(e){var t=he.f,n=J.get,r=J.set,i=j.f,o=P.f,a=Me(0),c=s.RangeError,u=Pc.ArrayBuffer,f=Pc.DataView,h=Ec.NATIVE_ARRAY_BUFFER_VIEWS,p=Ec.TYPED_ARRAY_TAG,g=Ec.TypedArray,m=Ec.TypedArrayPrototype,v=Ec.aTypedArrayConstructor,y=Ec.isTypedArray,b=function(e,t){for(var n=0,r=t.length,i=new(v(e))(r);r>n;)i[n]=t[n++];return i},S=function(e,t){i(e,t,{get:function(){return n(this)[t]}})},_=function(e){var t;return e instanceof u||"ArrayBuffer"==(t=Ye(e))||"SharedArrayBuffer"==t},T=function(e,t){return y(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},x=function(e,t){return T(e,t=k(t,!0))?d(2,e[t]):o(e,t)},A=function(e,t,n){return!(T(e,t=k(t,!0))&&w(n)&&E(n,"value"))||E(n,"get")||E(n,"set")||n.configurable||E(n,"writable")&&!n.writable||E(n,"enumerable")&&!n.enumerable?i(e,t,n):(e[t]=n.value,e)};l?(h||(P.f=x,j.f=A,S(m,"buffer"),S(m,"byteOffset"),S(m,"byteLength"),S(m,"length")),Te({target:"Object",stat:!0,forced:!h},{getOwnPropertyDescriptor:x,defineProperty:A}),e.exports=function(e,o,l,d){var v=e+(d?"Clamped":"")+"Array",k="get"+e,S="set"+e,E=s[v],T=E,x=T&&T.prototype,A={},O=function(e,t){i(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[k](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=n(e);d&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.view[S](t*o+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};h?Ac&&(T=l((function(e,t,n,r){return Wr(e,T,v),w(t)?_(t)?void 0!==r?new E(t,Cc(n,o),r):void 0!==n?new E(t,Cc(n,o)):new E(t):y(t)?b(T,t):jc.call(T,t):new E(Oc(t))})),Ft&&Ft(T,g),a(t(E),(function(e){e in T||R(T,e,E[e])})),T.prototype=x):(T=l((function(e,t,n,i){Wr(e,T,v);var a,s,l,h=0,d=0;if(w(t)){if(!_(t))return y(t)?b(T,t):jc.call(T,t);a=t,d=Cc(n,o);var p=t.byteLength;if(void 0===i){if(p%o)throw c("Wrong length");if((s=p-d)<0)throw c("Wrong length")}else if((s=re(i)*o)+d>p)throw c("Wrong length");l=s/o}else l=Oc(t),a=new u(s=l*o);for(r(e,{buffer:a,byteOffset:d,byteLength:s,length:l,view:new f(a)});h<l;)O(e,h++)})),Ft&&Ft(T,g),x=T.prototype=ft(m)),x.constructor!==T&&R(x,"constructor",T),p&&R(x,p,v),A[v]=T,Te({global:!0,forced:T!=E,sham:!h},A),"BYTES_PER_ELEMENT"in T||R(T,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in x||R(x,"BYTES_PER_ELEMENT",o),wa(v)}):e.exports=function(){}}))("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}));var Rc=[].copyWithin||function(e,t){var n=Oe(this),r=re(n.length),i=ae(e,r),o=ae(t,r),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?r:ae(a,r))-o,r-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},Lc=Ec.aTypedArray;Ec.exportProto("copyWithin",(function(e,t){return Rc.call(Lc(this),e,t,arguments.length>2?arguments[2]:void 0)}));var Nc=Me(4),Mc=Ec.aTypedArray;Ec.exportProto("every",(function(e){return Nc(Mc(this),e,arguments.length>1?arguments[1]:void 0)}));var Uc=Ec.aTypedArray;Ec.exportProto("fill",(function(e){return aa.apply(Uc(this),arguments)}));var Fc=Me(2),Dc=Ec.aTypedArray,Bc=Ec.aTypedArrayConstructor;Ec.exportProto("filter",(function(e){for(var t=Fc(Dc(this),e,arguments.length>1?arguments[1]:void 0),n=jr(this,this.constructor),r=0,i=t.length,o=new(Bc(n))(i);i>r;)o[r]=t[r++];return o}));var qc=Me(5),Hc=Ec.aTypedArray;Ec.exportProto("find",(function(e){return qc(Hc(this),e,arguments.length>1?arguments[1]:void 0)}));var Vc=Me(6),zc=Ec.aTypedArray;Ec.exportProto("findIndex",(function(e){return Vc(zc(this),e,arguments.length>1?arguments[1]:void 0)}));var Wc=Me(0),$c=Ec.aTypedArray;Ec.exportProto("forEach",(function(e){Wc($c(this),e,arguments.length>1?arguments[1]:void 0)}));var Kc=Ec.aTypedArray,Yc=se(!0);Ec.exportProto("includes",(function(e){return Yc(Kc(this),e,arguments.length>1?arguments[1]:void 0)}));var Gc=Ec.aTypedArray,Xc=se(!1);Ec.exportProto("indexOf",(function(e){return Xc(Gc(this),e,arguments.length>1?arguments[1]:void 0)}));var Jc=Re("iterator"),Qc=s.Uint8Array,Zc=Gn.values,el=Gn.keys,tl=Gn.entries,nl=Ec.aTypedArray,rl=Ec.exportProto,il=Qc&&Qc.prototype[Jc],ol=!!il&&("values"==il.name||null==il.name),al=function(){return Zc.call(nl(this))};rl("entries",(function(){return tl.call(nl(this))})),rl("keys",(function(){return el.call(nl(this))})),rl("values",al,!ol),rl(Jc,al,!ol);var sl=Ec.aTypedArray,cl=[].join;Ec.exportProto("join",(function(e){return cl.apply(sl(this),arguments)}));var ll=Ec.aTypedArray;Ec.exportProto("lastIndexOf",(function(e){return ua.apply(ll(this),arguments)}));var ul=Ec.aTypedArray,fl=Ec.aTypedArrayConstructor,hl=Me(1,(function(e,t){return new(fl(jr(e,e.constructor)))(t)}));Ec.exportProto("map",(function(e){return hl(ul(this),e,arguments.length>1?arguments[1]:void 0)}));var dl=Ec.aTypedArray;Ec.exportProto("reduce",(function(e){return qs(dl(this),e,arguments.length,arguments[1],!1)}));var pl=Ec.aTypedArray;Ec.exportProto("reduceRight",(function(e){return qs(pl(this),e,arguments.length,arguments[1],!0)}));var gl=Ec.aTypedArray;Ec.exportProto("reverse",(function(){for(var e,t=gl(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var ml=Ec.aTypedArray,vl=c((function(){new Int8Array(1).set({})}));Ec.exportProto("set",(function(e){ml(this);var t=Cc(arguments[1],1),n=this.length,r=Oe(e),i=re(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]}),vl);var yl=Ec.aTypedArray,bl=Ec.aTypedArrayConstructor,wl=[].slice,kl=c((function(){new Int8Array(1).slice()}));Ec.exportProto("slice",(function(e,t){for(var n=wl.call(yl(this),e,t),r=jr(this,this.constructor),i=0,o=n.length,a=new(bl(r))(o);o>i;)a[i]=n[i++];return a}),kl);var Sl=Me(3),El=Ec.aTypedArray;Ec.exportProto("some",(function(e){return Sl(El(this),e,arguments.length>1?arguments[1]:void 0)}));var _l=Ec.aTypedArray,Tl=[].sort;Ec.exportProto("sort",(function(e){return Tl.call(_l(this),e)}));var xl=Ec.aTypedArray;Ec.exportProto("subarray",(function(e,t){var n=xl(this),r=n.length,i=ae(e,r);return new(jr(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,re((void 0===t?r:ae(t,r))-i))}));var Al=s.Int8Array,Ol=Ec.aTypedArray,Pl=[].toLocaleString,Cl=[].slice,Il=!!Al&&c((function(){Pl.call(new Al(1))})),jl=c((function(){return[1,2].toLocaleString()!=new Al([1,2]).toLocaleString()}))||!c((function(){Al.prototype.toLocaleString.call([1,2])}));Ec.exportProto("toLocaleString",(function(){return Pl.apply(Il?Cl.call(Ol(this)):Ol(this),arguments)}),jl);var Rl=s.Uint8Array,Ll=Rl&&Rl.prototype,Nl=[].toString,Ml=[].join;c((function(){Nl.call({})}))&&(Nl=function(){return Ml.call(this)}),Ec.exportProto("toString",Nl,(Ll||{}).toString!=Nl);var Ul=t((function(e,t){function n(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}function r(e,t){var r=[],i=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n(r,t)).join(".")+"]"}),function(o,a){if(r.length>0){var s=n(r,this);~s?r.splice(s+1):r.push(this),~s?i.splice(s,1/0,o):i.push(o),~n(r,a)&&(a=t.call(this,o,a))}else r.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r})),Fl=(Ul.getSerialize,"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{});function Dl(e){return void 0===e}function Bl(e){return"[object Object]"===Object.prototype.toString.call(e)}function ql(e){return"[object String]"===Object.prototype.toString.call(e)}function Hl(e){return"[object Array]"===Object.prototype.toString.call(e)}function Vl(){if(!("fetch"in Fl))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function zl(e,t){var n,r;if(Dl(e.length))for(n in e)$l(e,n)&&t.call(null,n,e[n]);else if(r=e.length)for(n=0;n<r;n++)t.call(null,n,e[n])}function Wl(e,t){if("number"!=typeof t)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"…"}function $l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Kl(e){for(var t,n=[],r=0,i=e.length;r<i;r++)ql(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function Yl(e){var t,n,r,i,o,a=[];if(!e||!e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),(t=e.className)&&ql(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)r=s[o],(i=e.getAttribute(r))&&a.push("["+r+'="'+i+'"]');return a.join("")}function Gl(e,t){return!!(!!e^!!t)}function Xl(e,t){if(Gl(e,t))return!1;var n,r,i=e.frames,o=t.frames;if(void 0===i||void 0===o)return!1;if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(n=i[a],r=o[a],n.filename!==r.filename||n.lineno!==r.lineno||n.colno!==r.colno||n.function!==r.function)return!1;return!0}function Jl(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Ql(e){if("string"==typeof e){return Wl(e,40)}if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;var t=Object.prototype.toString.call(e);return"[object Object]"===t?"[Object]":"[object Array]"===t?"[Array]":"[object Function]"===t?e.name?"[Function: "+e.name+"]":"[Function]":e}var Zl={isObject:function(e){return"object"===Wo(e)&&null!==e},isError:function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},isDOMError:function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},isDOMException:function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},isUndefined:Dl,isFunction:function(e){return"function"==typeof e},isPlainObject:Bl,isString:ql,isArray:Hl,isEmptyObject:function(e){if(!Bl(e))return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(e){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(e){return!1}},supportsFetch:Vl,supportsReferrerPolicy:function(){if(!Vl())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(e){return function(t,n){var r=e(t)||t;return n&&n(r)||r}},each:zl,objectMerge:function(e,t){return t?(zl(t,(function(t,n){e[t]=n})),e):e},truncate:Wl,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:$l,joinRegExp:Kl,urlencode:function(e){var t=[];return zl(e,(function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})),t.join("&")},uuid4:function(){var e=Fl.crypto||Fl.msCrypto;if(!Dl(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},htmlTreeAsString:function(e){for(var t,n=[],r=0,i=0,o=" > ".length;e&&r++<5&&!("html"===(t=Yl(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:Yl,isSameException:function(e,t){return!Gl(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!Dl(n)||!Dl(r))&&Xl(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:Xl,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var i=e[t];e[t]=n(i),e[t].__raven__=!0,e[t].__orig__=i,r&&r.push([e,t,i])}},safeJoin:function(e,t){if(!Hl(e))return"";for(var n=[],r=0;r<e.length;r++)try{n.push(String(e[r]))}catch(e){n.push("[value cannot be serialized]")}return n.join(t)},serializeException:function e(t,n,r){if(!Bl(t))return t;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var i=function e(t,n){return 0===n?Ql(t):Bl(t)?Object.keys(t).reduce((function(r,i){return r[i]=e(t[i],n-1),r}),{}):Array.isArray(t)?t.map((function(t){return e(t,n-1)})):Ql(t)}(t,n);return Jl(Ul(i))>r?e(t,n-1):i},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter((function(e){return"string"==typeof e}))).length)return"[object has no keys]";if(t="number"!=typeof t?40:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},sanitize:function(e,t){if(!Hl(t)||Hl(t)&&0===t.length)return e;var n,r=Kl(t);try{n=JSON.parse(Ul(e))}catch(t){return e}return function e(t){return Hl(t)?t.map((function(t){return e(t)})):Bl(t)?Object.keys(t).reduce((function(n,i){return r.test(i)?n[i]="********":n[i]=e(t[i]),n}),{}):t}(n)}},eu={collectWindowErrors:!0,debug:!1},tu="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},nu=[].slice,ru=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function iu(){return"undefined"==typeof document||null==document.location?"":document.location.href}eu.report=function(){var e,t,n=[],r=null,i=null,o=null;function a(e,t){var r=null;if(!t||eu.collectWindowErrors){for(var i in n)if(n.hasOwnProperty(i))try{n[i].apply(null,[e].concat(nu.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function s(t,n,r,i,s){var l=Zl.isErrorEvent(s)?s.error:s,u=Zl.isErrorEvent(t)?t.message:t;if(o)eu.computeStackTrace.augmentStackTraceWithInitialElement(o,n,r,u),c();else if(l&&Zl.isError(l))a(eu.computeStackTrace(l),!0);else{var f,h={url:n,line:r,column:i},d=void 0;if("[object String]"==={}.toString.call(u))(f=u.match(ru))&&(d=f[1],u=f[2]);h.func="?",a({name:d,message:u,url:iu(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function c(){var e=o,t=r;r=null,o=null,i=null,a.apply(null,[e,!1].concat(t))}function l(e,t){var n=nu.call(arguments,1);if(o){if(i===e)return;c()}var a=eu.computeStackTrace(e);if(o=a,i=e,r=n,setTimeout((function(){i===e&&c()}),a.incomplete?2e3:0),!1!==t)throw e}return l.subscribe=function(r){!function(){if(t)return;e=tu.onerror,tu.onerror=s,t=!0}(),n.push(r)},l.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},l.uninstall=function(){!function(){if(!t)return;tu.onerror=e,t=!1,e=void 0}(),n=[]},l}(),eu.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=e.stack.split("\n"),u=[],f=(/^(.*) is undefined$/.exec(e.message),0),h=l.length;f<h;++f){if(n=i.exec(l[f])){var d=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=c.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:d?null:n[2],func:n[1]||"?",args:d?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(l[f]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(l[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=s.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==f||n[5]||void 0===e.columnNumber||(u[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!r.func&&r.line&&(r.func="?"),r.url&&"blob:"===r.url.substr(0,5)){var p=new XMLHttpRequest;if(p.open("GET",r.url,!1),p.send(null),200===p.status){var g=p.responseText||"",m=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(m){var v=m[1];"~"===v.charAt(0)&&(v=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+v.slice(1)),r.url=v.slice(0,-4)}}}u.push(r)}return u.length?{name:e.name,message:e.message,url:iu(),stack:u}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func="?"),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,i){for(var o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},u=!1,f=n.caller;f&&!u;f=f.caller)if(f!==r&&f!==eu.report){if(a={url:null,func:"?",line:null,column:null},f.name?a.func=f.name:(o=s.exec(f.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}l[""+f]?u=!0:l[""+f]=!0,c.push(a)}i&&c.splice(0,i);var h={name:e.name,message:e.message,url:iu(),stack:c};return t(h,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),h}function r(t,r){var i=null;r=null==r?0:+r;try{if(i=e(t))return i}catch(e){if(eu.debug)throw e}try{if(i=n(t,r+1))return i}catch(e){if(eu.debug)throw e}return{name:t.name,message:t.message,url:iu()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}();var ou=eu;function au(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function su(e,t,n,r,i,o){return au((a=au(au(t,e),au(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function cu(e,t,n,r,i,o,a){return su(t&n|~t&r,e,t,i,o,a)}function lu(e,t,n,r,i,o,a){return su(t&r|n&~r,e,t,i,o,a)}function uu(e,t,n,r,i,o,a){return su(t^n^r,e,t,i,o,a)}function fu(e,t,n,r,i,o,a){return su(n^(t|~r),e,t,i,o,a)}function hu(e,t){var n,r,i,o,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(n=0;n<e.length;n+=16)r=s,i=c,o=l,a=u,s=cu(s,c,l,u,e[n],7,-680876936),u=cu(u,s,c,l,e[n+1],12,-389564586),l=cu(l,u,s,c,e[n+2],17,606105819),c=cu(c,l,u,s,e[n+3],22,-1044525330),s=cu(s,c,l,u,e[n+4],7,-176418897),u=cu(u,s,c,l,e[n+5],12,1200080426),l=cu(l,u,s,c,e[n+6],17,-1473231341),c=cu(c,l,u,s,e[n+7],22,-45705983),s=cu(s,c,l,u,e[n+8],7,1770035416),u=cu(u,s,c,l,e[n+9],12,-1958414417),l=cu(l,u,s,c,e[n+10],17,-42063),c=cu(c,l,u,s,e[n+11],22,-1990404162),s=cu(s,c,l,u,e[n+12],7,1804603682),u=cu(u,s,c,l,e[n+13],12,-40341101),l=cu(l,u,s,c,e[n+14],17,-1502002290),s=lu(s,c=cu(c,l,u,s,e[n+15],22,1236535329),l,u,e[n+1],5,-165796510),u=lu(u,s,c,l,e[n+6],9,-1069501632),l=lu(l,u,s,c,e[n+11],14,643717713),c=lu(c,l,u,s,e[n],20,-373897302),s=lu(s,c,l,u,e[n+5],5,-701558691),u=lu(u,s,c,l,e[n+10],9,38016083),l=lu(l,u,s,c,e[n+15],14,-660478335),c=lu(c,l,u,s,e[n+4],20,-405537848),s=lu(s,c,l,u,e[n+9],5,568446438),u=lu(u,s,c,l,e[n+14],9,-1019803690),l=lu(l,u,s,c,e[n+3],14,-187363961),c=lu(c,l,u,s,e[n+8],20,1163531501),s=lu(s,c,l,u,e[n+13],5,-1444681467),u=lu(u,s,c,l,e[n+2],9,-51403784),l=lu(l,u,s,c,e[n+7],14,1735328473),s=uu(s,c=lu(c,l,u,s,e[n+12],20,-1926607734),l,u,e[n+5],4,-378558),u=uu(u,s,c,l,e[n+8],11,-2022574463),l=uu(l,u,s,c,e[n+11],16,1839030562),c=uu(c,l,u,s,e[n+14],23,-35309556),s=uu(s,c,l,u,e[n+1],4,-1530992060),u=uu(u,s,c,l,e[n+4],11,1272893353),l=uu(l,u,s,c,e[n+7],16,-155497632),c=uu(c,l,u,s,e[n+10],23,-1094730640),s=uu(s,c,l,u,e[n+13],4,681279174),u=uu(u,s,c,l,e[n],11,-358537222),l=uu(l,u,s,c,e[n+3],16,-722521979),c=uu(c,l,u,s,e[n+6],23,76029189),s=uu(s,c,l,u,e[n+9],4,-640364487),u=uu(u,s,c,l,e[n+12],11,-421815835),l=uu(l,u,s,c,e[n+15],16,530742520),s=fu(s,c=uu(c,l,u,s,e[n+2],23,-995338651),l,u,e[n],6,-198630844),u=fu(u,s,c,l,e[n+7],10,1126891415),l=fu(l,u,s,c,e[n+14],15,-1416354905),c=fu(c,l,u,s,e[n+5],21,-57434055),s=fu(s,c,l,u,e[n+12],6,1700485571),u=fu(u,s,c,l,e[n+3],10,-1894986606),l=fu(l,u,s,c,e[n+10],15,-1051523),c=fu(c,l,u,s,e[n+1],21,-2054922799),s=fu(s,c,l,u,e[n+8],6,1873313359),u=fu(u,s,c,l,e[n+15],10,-30611744),l=fu(l,u,s,c,e[n+6],15,-1560198380),c=fu(c,l,u,s,e[n+13],21,1309151649),s=fu(s,c,l,u,e[n+4],6,-145523070),u=fu(u,s,c,l,e[n+11],10,-1120210379),l=fu(l,u,s,c,e[n+2],15,718787259),c=fu(c,l,u,s,e[n+9],21,-343485551),s=au(s,r),c=au(c,i),l=au(l,o),u=au(u,a);return[s,c,l,u]}function du(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function pu(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function gu(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function mu(e){return unescape(encodeURIComponent(e))}function vu(e){return function(e){return du(hu(pu(e),8*e.length))}(mu(e))}function yu(e,t){return function(e,t){var n,r,i=pu(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=hu(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=hu(o.concat(pu(t)),512+8*t.length),du(hu(a.concat(r),640))}(mu(e),mu(t))}var bu=function(e,t,n){return t?n?yu(t,e):function(e,t){return gu(yu(e,t))}(t,e):n?vu(e):gu(vu(e))};function wu(e){this.name="RavenConfigError",this.message=e}wu.prototype=new Error,wu.prototype.constructor=wu;var ku=wu,Su=function(e,t,n){var r=e[t],i=e;if(t in e){var o="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),a=Zl.safeJoin(e," "),s={level:o,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(a="Assertion failed: "+(Zl.safeJoin(e.slice(1)," ")||"console.assert"),s.extra.arguments=e.slice(1),n&&n(a,s)):n&&n(a,s),r&&Function.prototype.apply.call(r,i,e)}}},Eu=Zl.isErrorEvent,_u=Zl.isDOMError,Tu=Zl.isDOMException,xu=Zl.isError,Au=Zl.isObject,Ou=Zl.isPlainObject,Pu=Zl.isUndefined,Cu=Zl.isFunction,Iu=Zl.isString,ju=Zl.isArray,Ru=Zl.isEmptyObject,Lu=Zl.each,Nu=Zl.objectMerge,Mu=Zl.truncate,Uu=Zl.objectFrozen,Fu=Zl.hasKey,Du=Zl.joinRegExp,Bu=Zl.urlencode,qu=Zl.uuid4,Hu=Zl.htmlTreeAsString,Vu=Zl.isSameException,zu=Zl.isSameStacktrace,Wu=Zl.parseUrl,$u=Zl.fill,Ku=Zl.supportsFetch,Yu=Zl.supportsReferrerPolicy,Gu=Zl.serializeKeysForMessage,Xu=Zl.serializeException,Ju=Zl.sanitize,Qu=Su,Zu="source protocol user pass host port path".split(" "),ef=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function tf(){return+new Date}var nf="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},rf=nf.document,of=nf.navigator;function af(e,t){return Cu(t)?function(n){return t(n,e)}:t}function sf(){for(var e in this._hasJSON=!("object"!==("undefined"==typeof JSON?"undefined":Wo(JSON))||!JSON.stringify),this._hasDocument=!Pu(rf),this._hasNavigator=!Pu(of),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:nf.SENTRY_RELEASE&&nf.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:Yu()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=nf.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=tf(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=nf.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}sf.prototype={VERSION:"3.27.1",debug:!1,TraceKit:ou,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var r=n._globalOptions;t&&Lu(t,(function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:r[e]=t})),n.setDSN(e),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=Du(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&Du(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&Du(r.whitelistUrls),r.includePaths=Du(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=Nu(i,o):!1!==o&&(o=i),r.autoBreadcrumbs=o;var a={tryCatch:!0},s=r.instrument;return"[object Object]"==={}.toString.call(s)?s=Nu(a,s):!1!==s&&(s=a),r.instrument=s,ou.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(ou.report.subscribe((function(){e._handleOnErrorStackInfo.apply(e,arguments)})),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),n=t.path.lastIndexOf("/"),r=t.path.substr(1,n);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(n+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+r+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,n){return Cu(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(Pu(t)&&!Cu(e))return e;if(Cu(e)&&(t=e,e=void 0),!Cu(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(n&&Cu(n)&&n.apply(this,arguments);o--;)i[o]=a?r.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw r._ignoreNextOnError(),r.captureException(t,e),t}}for(var o in t)Fu(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return ou.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),nf.addEventListener&&nf.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return nf.removeEventListener&&nf.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=Nu({trimHeadFrames:0},t||{}),Eu(e)&&e.error)e=e.error;else{if(_u(e)||Tu(e)){var n=e.name||(_u(e)?"DOMError":"DOMException"),r=e.message?n+": "+e.message:n;return this.captureMessage(r,Nu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(xu(e))e=e;else{if(!Ou(e))return this.captureMessage(e,Nu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var i=ou.computeStackTrace(e);this._handleStackInfo(i,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var n=Object.keys(t).sort(),r=Nu(e,{message:"Non-Error exception captured with keys: "+Gu(n),fingerprint:[bu(n)],extra:e.extra||{}});return r.extra.__serialized__=Xu(t),r},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,r=Nu({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var i=ou.computeStackTrace(n),o=ju(i.stack)&&i.stack[1];o&&"Raven.captureException"===o.func&&(o=i.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||t.stacktrace||""===r.message){r.fingerprint=null==r.fingerprint?e:r.fingerprint,(t=Nu({trimHeadFrames:0},t)).trimHeadFrames+=1;var s=this._prepareFrames(i,t);r.stacktrace={frames:s.reverse()}}return r.fingerprint&&(r.fingerprint=ju(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(e){var t=Nu({timestamp:tf()/1e3},e);if(Cu(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(Au(n)&&!Ru(n))t=n;else if(!1===n)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(Ul(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=af(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=af(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=af(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=nf.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(rf){if(!(e=Nu({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},e)).eventId)throw new ku("Missing eventId");if(!e.dsn)throw new ku("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var i=e.user;i.name&&n.push("name="+t(i.name)),i.email&&n.push("email="+t(i.email))}else n.push(t(r)+"="+t(e[r]));var o=this._getGlobalServer(this._parseDSN(e.dsn)),a=rf.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),(rf.head||rf.body).appendChild(a)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),rf.createEvent?(n=rf.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=rf.createEventObject()).eventType=e,t)Fu(t,r)&&(n[r]=t[r]);if(rf.createEvent)rf.dispatchEvent(n);else try{rf.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){var r;t._lastCapturedEvent=n;try{r=Hu(n.target)}catch(e){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(e,t){var n=Wu(this._location.href),r=Wu(t),i=Wu(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return Cu(a)&&(i[0]=e.wrap({mechanism:{type:"instrument",data:{function:t.name||"<anonymous>"}}},a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var r=this._globalOptions.autoBreadcrumbs;function i(n){var i=nf[n]&&nf[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&($u(i,"addEventListener",(function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:o&&o.name||"<anonymous>"}}},o.handleEvent))}catch(e){}var c,l,u;return r&&r.dom&&("EventTarget"===n||"Node"===n)&&(l=e._breadcrumbEventHandler("click"),u=e._keypressEventHandler(),c=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?l(e):"keypress"===t?u(e):void 0}}),t.call(this,i,e.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:o&&o.name||"<anonymous>"}}},o,c),a,s)}}),t),$u(i,"removeEventListener",(function(e){return function(t,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return e.call(this,t,n,r,i)}}),t))}$u(nf,"setTimeout",n,t),$u(nf,"setInterval",n,t),nf.requestAnimationFrame&&$u(nf,"requestAnimationFrame",(function(t){return function(n){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||"<anonymous>"}}},n))}}),t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)i(o[a])},_instrumentBreadcrumbs:function(){var e=this,t=this._globalOptions.autoBreadcrumbs,n=e._wrappedBuiltIns;function r(t,n){t in n&&Cu(n[t])&&$u(n,t,(function(n){return e.wrap({mechanism:{type:"instrument",data:{function:t,handler:n&&n.name||"<anonymous>"}}},n)}))}if(t.xhr&&"XMLHttpRequest"in nf){var i=nf.XMLHttpRequest&&nf.XMLHttpRequest.prototype;$u(i,"open",(function(t){return function(n,r){return Iu(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}}),n),$u(i,"send",(function(t){return function(){var n=this;function i(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a<o.length;a++)r(o[a],n);return"onreadystatechange"in n&&Cu(n.onreadystatechange)?$u(n,"onreadystatechange",(function(t){return e.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"}}},t,i)})):n.onreadystatechange=i,t.apply(this,arguments)}}),n)}t.xhr&&Ku()&&$u(nf,"fetch",(function(t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,o=n[0],a="GET";if("string"==typeof o?i=o:"Request"in nf&&o instanceof nf.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,-1!==i.indexOf(e._globalKey))return t.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:i,status_code:null};return t.apply(this,n).then((function(t){return s.status_code=t.status,e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t})).catch((function(t){throw e.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),t}))}}),n),t.dom&&this._hasDocument&&(rf.addEventListener?(rf.addEventListener("click",e._breadcrumbEventHandler("click"),!1),rf.addEventListener("keypress",e._keypressEventHandler(),!1)):rf.attachEvent&&(rf.attachEvent("onclick",e._breadcrumbEventHandler("click")),rf.attachEvent("onkeypress",e._keypressEventHandler())));var o=nf.chrome,a=!(o&&o.app&&o.app.runtime)&&nf.history&&nf.history.pushState&&nf.history.replaceState;if(t.location&&a){var s=nf.onpopstate;nf.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),s)return s.apply(this,arguments)};var c=function(t){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};$u(nf.history,"pushState",c,n),$u(nf.history,"replaceState",c,n)}if(t.console&&"console"in nf&&console.log){var l=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};Lu(["debug","info","warn","error","log"],(function(e,t){Qu(console,t,l)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;Lu(this._plugins,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=ef.exec(e),n={},r=7;try{for(;r--;)n[Zu[r]]=t[r]||""}catch(t){throw new ku("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new ku("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(Lu(e.stack,(function(t,i){var o=n._normalizeFrame(i,e.url);o&&r.push(o)})),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e,t){var n={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(n.filename=t),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(e,t,n,r,i,o){var a,s=(e?e+": ":"")+(t||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(s))&&(i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var c=Nu({exception:{values:[{type:e,value:t,stacktrace:a}]},transaction:n},o),l=c.exception.values[0];null==l.type&&""===l.value&&(l.value="Unrecoverable error caught"),!c.exception.mechanism&&c.mechanism&&(c.exception.mechanism=c.mechanism,delete c.mechanism),c.exception.mechanism=Nu({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=Mu(e.message,t)),e.exception){var n=e.exception.values[0];n.value=Mu(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=Mu(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=Mu(r.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var t,n,r,i=["to","from","url"],o=0;o<e.values.length;++o)if((n=e.values[o]).hasOwnProperty("data")&&Au(n.data)&&!Uu(n.data)){r=Nu({},n.data);for(var a=0;a<i.length;++a)t=i[a],r.hasOwnProperty(t)&&r[t]&&(r[t]=Mu(r[t],this._globalOptions.maxUrlLength));e.values[o].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&of.userAgent&&(e.headers={"User-Agent":of.userAgent}),nf.location&&nf.location.href&&(e.url=nf.location.href),this._hasDocument&&rf.referrer&&(e.headers||(e.headers={}),e.headers.Referer=rf.referrer),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&tf()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;return!(!t||e.message!==t.message||e.transaction!==t.transaction)&&(e.stacktrace||t.stacktrace?zu(e.stacktrace,t.stacktrace):e.exception||t.exception?Vu(e.exception,t.exception):!e.fingerprint&&!t.fingerprint||Boolean(e.fingerprint&&t.fingerprint)&&JSON.stringify(e.fingerprint)===JSON.stringify(t.fingerprint))},_setBackoffState:function(e){if(!this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var n;try{n=Ku()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(e){}this._backoffDuration=n||(2*this._backoffDuration||1e3),this._backoffStart=tf()}}},_send:function(e){var t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"javascript"},r=this._getHttpData();r&&(n.request=r),e.trimHeadFrames&&delete e.trimHeadFrames,(e=Nu(n,e)).tags=Nu(Nu({},this._globalContext.tags),e.tags),e.extra=Nu(Nu({},this._globalContext.extra),e.extra),e.extra["session:duration"]=tf()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach((function(t){(null==e[t]||""===e[t]||Ru(e[t]))&&delete e[t]})),Cu(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!Ru(e)&&(Cu(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayload(e)))},_sanitizeData:function(e){return Ju(e,this._globalOptions.sanitizeKeys)},_getUuid:function(){return qu()},_sendProcessedPayload:function(e,t){var n=this,r=this._globalOptions;if(this.isSetup())if(e=this._trimPacket(e),this._globalOptions.allowDuplicates||!this._isRepeatData(e)){this._lastEventId=e.event_id||(e.event_id=this._getUuid()),this._lastData=e,this._logDebug("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:r,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:e,src:a}),t&&t()},onError:function(r){n._logDebug("error","Raven transport failed to send: ",r),r.request&&n._setBackoffState(r.request),n._triggerEvent("failure",{data:e,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}else this._logDebug("warn","Raven dropped repeat event: ",e)},_makeRequest:function(e){var t=e.url+"?"+Bu(e.auth),n=null,r={};if(e.options.headers&&(n=this._evaluateHash(e.options.headers)),e.options.fetchParameters&&(r=this._evaluateHash(e.options.fetchParameters)),Ku()){r.body=Ul(e.data);var i=Nu({},this._fetchDefaults),o=Nu(i,r);return n&&(o.headers=n),nf.fetch(t,o).then((function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var n=new Error("Sentry error code: "+t.status);n.request=t,e.onError&&e.onError(n)}})).catch((function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))}))}var a=nf.XMLHttpRequest&&new nf.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+a.status);t.request=a,e.onError(t)}}:(a=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(a.onload=e.onSuccess),e.onError&&(a.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=a,e.onError(t)})),a.open("POST",t),n&&Lu(n,(function(e,t){a.setRequestHeader(e,t)})),a.send(Ul(e.data))))},_evaluateHash:function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]="function"==typeof r?r():r}return t},_logDebug:function(e){this._originalConsoleMethods[e]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){Pu(t)?delete this._globalContext[e]:this._globalContext[e]=Nu(this._globalContext[e]||{},t)}},sf.prototype.setUser=sf.prototype.setUserContext,sf.prototype.setReleaseContext=sf.prototype.setRelease;var cf=sf,lf="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},uf=lf.Raven,ff=new cf;ff.noConflict=function(){return lf.Raven=uf,ff},ff.afterLoad();var hf=ff,df=cf;hf.Client=df;var pf=Me(5),gf=!0;"find"in[]&&Array(1).find((function(){gf=!1})),Te({target:"Array",proto:!0,forced:gf},{find:function(e){return pf(this,e,arguments.length>1?arguments[1]:void 0)}}),pt("find");var mf="[\t\n\v\f\r    \u2028\u2029\ufeff]",vf=RegExp("^"+mf+mf+"*"),yf=RegExp(mf+mf+"*$"),bf=he.f,wf=P.f,kf=j.f,Sf=s.Number,Ef=Sf.prototype,_f="Number"==g(ft(Ef)),Tf="trim"in String.prototype,xf=function(e){var t,n,r,i,o,a,s,c,l,u,f=k(e,!1);if("string"==typeof f&&f.length>2)if(43===(t=(f=Tf?f.trim():(l=f,u=3,l=String(y(l)),1&u&&(l=l.replace(vf,"")),2&u&&(l=l.replace(yf,"")),l)).charCodeAt(0))||45===t){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+f}for(a=(o=f.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+f};if(Ee("Number",!Sf(" 0o1")||!Sf("0b1")||Sf("+0x1"))){for(var Af,Of=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Of&&(_f?c((function(){Ef.valueOf.call(n)})):"Number"!=g(n))?Ws(new Sf(xf(t)),n,Of):xf(t)},Pf=l?bf(Sf):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Cf=0;Pf.length>Cf;Cf++)E(Sf,Af=Pf[Cf])&&!E(Of,Af)&&kf(Of,Af,wf(Sf,Af));Of.prototype=Ef,Ef.constructor=Of,Q(s,"Number",Of)}Te({target:"Number",stat:!0},{isNaN:function(e){return e!=e}}),Te({target:"Object",stat:!0,forced:Object.assign!==Kr},{assign:Kr});var If=h.f;function jf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rf(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 Lf(e,t,n){return t&&Rf(e.prototype,t),n&&Rf(e,n),e}function Nf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){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)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Te({target:"Object",stat:!0},{entries:function(e){return function(e,t){for(var n,r=b(e),i=it(r),o=i.length,a=0,s=[];o>a;)n=i[a++],l&&!If.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}(e,!0)}});var Uf=function(e){return null!=e?e.constructor:null},Ff=function(e,t){return!!(e&&t&&e instanceof t)},Df=function(e){return null==e},Bf=function(e){return Uf(e)===Object},qf=function(e){return Uf(e)===String},Hf=function(e){return Array.isArray(e)},Vf=function(e){return Ff(e,NodeList)},zf=Df,Wf=Bf,$f=function(e){return Uf(e)===Number&&!Number.isNaN(e)},Kf=qf,Yf=function(e){return Uf(e)===Boolean},Gf=Hf,Xf=Vf,Jf=function(e){return Ff(e,Element)},Qf=function(e){return Ff(e,Event)},Zf=function(e){return Df(e)||(qf(e)||Hf(e)||Vf(e))&&!e.length||Bf(e)&&!Object.keys(e).length},eh={facebook:{domain:"facebook.com",url:function(e){return"https://graph.facebook.com/?id=".concat(e,"&fields=og_object{engagement}")},shareCount:function(e){return e.og_object.engagement.count},popup:{width:640,height:360}},twitter:{domain:"twitter.com",url:function(){return null},shareCount:function(){return null},popup:{width:640,height:240}},pinterest:{domain:"pinterest.com",url:function(e){return"https://widgets.pinterest.com/v1/urls/count.json?url=".concat(e)},shareCount:function(e){return e.count},popup:{width:830,height:700}},github:{domain:"github.com",url:function(e,t){return"https://api.github.com/repos/".concat(e).concat(Kf(t)?"?access_token=".concat(t):"")},shareCount:function(e){return e.data.stargazers_count}},youtube:{domain:"youtube.com",url:function(e,t){return"https://www.googleapis.com/youtube/v3/channels?part=statistics&id=".concat(e,"&key=").concat(t)},shareCount:function(e){if(!Zf(e.error))return null;var t=Mf(e.items,1)[0];return Zf(t)?null:t.statistics.subscriberCount}}},th={debug:!1,wrapper:{className:"shr"},count:{className:"shr__count",displayZero:!1,format:!0,position:"after",increment:!0},tokens:{github:"",youtube:""},storage:{enabled:!0,key:"shr",ttl:3e5}};function nh(e){return new Promise((function(t,n){var r="jsonp_callback_".concat(Math.round(1e5*Math.random())),i=document.createElement("script");i.addEventListener("error",(function(e){return n(e)})),window[r]=function(e){delete window[r],document.body.removeChild(i),t(e)};var o=new URL(e);o.searchParams.set("callback",r),i.setAttribute("src",o.toString()),document.body.appendChild(i)}))}var rh=function(){},ih=function(){function e(){var t=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0];jf(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Lf(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):rh}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):rh}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):rh}}]),e}();function oh(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function ah(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=0<n?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function sh(e,t,n){var r=document.createElement(e);return Wf(t)&&function(e,t){!Jf(e)||Zf(t)||Object.entries(t).filter((function(e){var t=Mf(e,2)[1];return!zf(t)})).forEach((function(t){var n=Mf(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}(r,t),Kf(n)&&(r.innerText=n),r}function ch(e){var t=/\./.test(1.1.toLocaleString())?".":",",n=new RegExp("\\".concat(t,"\\d+$"));return Math.round(e).toLocaleString().replace(n,"")}function lh(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return Wf(i)?(Object.keys(i).forEach((function(t){Wf(i[t])?(!Object.keys(e).includes(t)&&Object.assign(e,Nf({},t,{})),lh(e[t],i[t])):Object.assign(e,Nf({},t,i[t]))})),lh.apply(void 0,[e].concat(n))):e}var uh=function(){function e(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];jf(this,e),this.enabled=r&&e.supported,this.key=t,this.ttl=n}return Lf(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(Zf(n))return null;var r=window.localStorage.getItem("".concat(this.key,"_ttl"));if(Zf(r)||r<Date.now())return null;var i=JSON.parse(n);return Kf(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&Wf(t)){var n=this.get();Zf(n)&&(n={}),lh(n,t),window.localStorage.setItem(this.key,JSON.stringify(n)),window.localStorage.setItem("".concat(this.key,"_ttl"),Date.now()+this.ttl)}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(e){return!1}}}]),e}();var fh=function(){function e(t,n){var r=this;jf(this,e),this.elements={count:null,trigger:null,popup:null},Jf(t)?this.elements.trigger=t:Kf(t)&&(this.elements.trigger=document.querySelector(t)),Jf(this.elements.trigger)&&Zf(this.elements.trigger.shr)&&(this.config=lh({},th,n,{networks:eh}),this.console=new ih(this.config.debug),this.storage=new uh(this.config.storage.key,this.config.storage.ttl,this.config.storage.enabled),this.getCount().then((function(e){return r.updateDisplay(e)})).catch((function(){})),this.listeners(!0),this.elements.trigger.shr=this)}return Lf(e,[{key:"destroy",value:function(){this.listeners(!1)}},{key:"listeners",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener";this.elements.trigger[t]("click",(function(t){return e.share(t)}),!1)}},{key:"share",value:function(e){var t=this;this.openPopup(e);var n=this.config.count.increment;this.getCount().then((function(e){return t.updateDisplay(e,n)})).catch((function(){}))}},{key:"openPopup",value:function(e){if(!Zf(this.network)&&this.networkConfig.popup){Qf(e)&&e.preventDefault();var t=this.networkConfig.popup,n=t.width,r=t.height,i="shr-popup--".concat(this.network);if(this.popup&&!this.popup.closed)this.popup.focus(),this.console.log("Popup re-focused.");else{var o=void 0===window.screenLeft?window.screen.left:window.screenLeft,a=void 0===window.screenTop?window.screen.top:window.screenTop,s=window.screen.width/2-n/2+o,c=window.screen.height/2-r/2+a;this.popup=window.open(this.href,i,"top=".concat(c,",left=").concat(s,",width=").concat(n,",height=").concat(r)),this.popup&&!this.popup.closed&&Yf(this.popup.closed)?(this.popup.focus(),this.console.log("Popup opened.")):this.console.error("Popup blocked.")}}}},{key:"getCount",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){var i=e.apiUrl;if(Zf(i))r(new Error("No URL available for ".concat(e.network,".")));else{if(t){var o=e.storage.get(e.target);if(!Zf(o)&&Object.keys(o).includes(e.network)){var a=o[e.network];return n($f(a)?a:0),void e.console.log("getCount for '".concat(e.target,"' for '").concat(e.network,"' resolved from cache."))}}nh(i).then((function(t){var r=0,i=e.elements.trigger.getAttribute("data-shr-display");r=Zf(i)?e.networkConfig.shareCount(t):t[i],Zf(r)?r=0:(r=parseInt(r,10),!$f(r)&&(r=0)),e.storage.set(Nf({},e.target,Nf({},e.network,r))),n(r)})).catch(r)}}))}},{key:"updateDisplay",value:function(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],n=this.config,r=n.count,i=n.wrapper,o=t?e+1:e,a=r.position.toLowerCase();if(0<o||r.displayZero){var s=function(e){return Math.round(o/e*10)/10},c=ch(o);r.format&&(1e6<o?c="".concat(s(1e6),"M"):1e3<o&&(c="".concat(s(1e3),"K"))),Jf(this.elements.count)?this.elements.count.textContent=c:(ah(this.elements.trigger,sh("span",{class:i.className})),this.elements.count=sh("span",{class:"".concat(r.className," ").concat(r.className,"--").concat(a)},c),this.elements.trigger.insertAdjacentElement("after"===a?"afterend":"beforebegin",this.elements.count))}}},{key:"href",get:function(){return Jf(this.elements.trigger)?this.elements.trigger.href:null}},{key:"network",get:function(){var e=this;if(!Jf(this.elements.trigger))return null;var t=this.config.networks;return Object.keys(t).find((function(n){return function(e){var t=new URL(e).hostname,n=t.split("."),r=n.length;return 2<r&&(t="".concat(n[r-2],".").concat(n[r-1]),2===n[r-2].length&&2===n[r-1].length&&(t="".concat(n[r-3],".").concat(t))),t}(e.href)===t[n].domain}))}},{key:"networkConfig",get:function(){return Zf(this.network)?null:this.config.networks[this.network]}},{key:"target",get:function(){if(Zf(this.network))return null;var e=new URL(this.href);switch(this.network){case"facebook":return e.searchParams.get("u");case"github":return e.pathname.substring(1);case"youtube":return e.pathname.split("/").pop();default:return e.searchParams.get("url")}}},{key:"apiUrl",get:function(){if(Zf(this.network))return null;var e=this.config.tokens;switch(this.network){case"github":return this.networkConfig.url(this.target,e.github);case"youtube":return this.networkConfig.url(this.target,e.youtube);default:return this.networkConfig.url(encodeURIComponent(this.target))}}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(Kf(t)?r=Array.from(document.querySelectorAll(t)):Jf(t)?r=[t]:Xf(t)?r=Array.from(t):Gf(t)&&(r=t.filter(Jf)),Zf(r))return null;var i=Object.assign({},th,n);return Kf(t)&&i.watch&&new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Jf(n)&&oh(n,t)&&new e(n,i)}))}))})).observe(document.body,{childList:!0,subtree:!0}),r.map((function(t){return new e(t,n)}))}}]),e}(),hh=function(e){return e&&e.Math==Math&&e},dh=hh("object"==typeof globalThis&&globalThis)||hh("object"==typeof window&&window)||hh("object"==typeof self&&self)||hh("object"==typeof e&&e)||Function("return this")(),ph=function(e){try{return!!e()}catch(e){return!0}},gh=!ph((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mh={}.propertyIsEnumerable,vh=Object.getOwnPropertyDescriptor,yh={f:vh&&!mh.call({1:2},1)?function(e){var t=vh(this,e);return!!t&&t.enumerable}:mh},bh=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wh={}.toString,kh=function(e){return wh.call(e).slice(8,-1)},Sh="".split,Eh=ph((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==kh(e)?Sh.call(e,""):Object(e)}:Object,_h=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Th=function(e){return Eh(_h(e))},xh=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Ah=function(e,t){if(!xh(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!xh(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!xh(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!xh(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Oh={}.hasOwnProperty,Ph=function(e,t){return Oh.call(e,t)},Ch=dh.document,Ih=xh(Ch)&&xh(Ch.createElement),jh=function(e){return Ih?Ch.createElement(e):{}},Rh=!gh&&!ph((function(){return 7!=Object.defineProperty(jh("div"),"a",{get:function(){return 7}}).a})),Lh=Object.getOwnPropertyDescriptor,Nh={f:gh?Lh:function(e,t){if(e=Th(e),t=Ah(t,!0),Rh)try{return Lh(e,t)}catch(e){}if(Ph(e,t))return bh(!yh.f.call(e,t),e[t])}},Mh=function(e){if(!xh(e))throw TypeError(String(e)+" is not an object");return e},Uh=Object.defineProperty,Fh={f:gh?Uh:function(e,t,n){if(Mh(e),t=Ah(t,!0),Mh(n),Rh)try{return Uh(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}},Dh=gh?function(e,t,n){return Fh.f(e,t,bh(1,n))}:function(e,t,n){return e[t]=n,e},Bh=function(e,t){try{Dh(dh,e,t)}catch(n){dh[e]=t}return t},qh=dh["__core-js_shared__"]||Bh("__core-js_shared__",{}),Hh=Function.toString;"function"!=typeof qh.inspectSource&&(qh.inspectSource=function(e){return Hh.call(e)});var Vh,zh,Wh,$h=qh.inspectSource,Kh=dh.WeakMap,Yh="function"==typeof Kh&&/native code/.test($h(Kh)),Gh=t((function(e){(e.exports=function(e,t){return qh[e]||(qh[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Xh=0,Jh=Math.random(),Qh=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Xh+Jh).toString(36)},Zh=Gh("keys"),ed=function(e){return Zh[e]||(Zh[e]=Qh(e))},td={},nd=dh.WeakMap;if(Yh){var rd=new nd,id=rd.get,od=rd.has,ad=rd.set;Vh=function(e,t){return ad.call(rd,e,t),t},zh=function(e){return id.call(rd,e)||{}},Wh=function(e){return od.call(rd,e)}}else{var sd=ed("state");td[sd]=!0,Vh=function(e,t){return Dh(e,sd,t),t},zh=function(e){return Ph(e,sd)?e[sd]:{}},Wh=function(e){return Ph(e,sd)}}var cd,ld,ud={set:Vh,get:zh,has:Wh,enforce:function(e){return Wh(e)?zh(e):Vh(e,{})},getterFor:function(e){return function(t){var n;if(!xh(t)||(n=zh(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},fd=t((function(e){var t=ud.get,n=ud.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||Ph(i,"name")||Dh(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==dh?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:Dh(e,t,i)):s?e[t]=i:Bh(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||$h(this)}))})),hd=dh,dd=function(e){return"function"==typeof e?e:void 0},pd=function(e,t){return arguments.length<2?dd(hd[e])||dd(dh[e]):hd[e]&&hd[e][t]||dh[e]&&dh[e][t]},gd=Math.ceil,md=Math.floor,vd=function(e){return isNaN(e=+e)?0:(e>0?md:gd)(e)},yd=Math.min,bd=function(e){return e>0?yd(vd(e),9007199254740991):0},wd=Math.max,kd=Math.min,Sd=function(e,t){var n=vd(e);return n<0?wd(n+t,0):kd(n,t)},Ed=function(e){return function(t,n,r){var i,o=Th(t),a=bd(o.length),s=Sd(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}},_d={includes:Ed(!0),indexOf:Ed(!1)},Td=_d.indexOf,xd=function(e,t){var n,r=Th(e),i=0,o=[];for(n in r)!Ph(td,n)&&Ph(r,n)&&o.push(n);for(;t.length>i;)Ph(r,n=t[i++])&&(~Td(o,n)||o.push(n));return o},Ad=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Od=Ad.concat("length","prototype"),Pd={f:Object.getOwnPropertyNames||function(e){return xd(e,Od)}},Cd={f:Object.getOwnPropertySymbols},Id=pd("Reflect","ownKeys")||function(e){var t=Pd.f(Mh(e)),n=Cd.f;return n?t.concat(n(e)):t},jd=function(e,t){for(var n=Id(t),r=Fh.f,i=Nh.f,o=0;o<n.length;o++){var a=n[o];Ph(e,a)||r(e,a,i(t,a))}},Rd=/#|\.prototype\./,Ld=function(e,t){var n=Md[Nd(e)];return n==Fd||n!=Ud&&("function"==typeof t?ph(t):!!t)},Nd=Ld.normalize=function(e){return String(e).replace(Rd,".").toLowerCase()},Md=Ld.data={},Ud=Ld.NATIVE="N",Fd=Ld.POLYFILL="P",Dd=Ld,Bd=Nh.f,qd=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,l=e.stat;if(n=c?dh:l?dh[s]||Bh(s,{}):(dh[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Bd(n,r))&&a.value:n[r],!Dd(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;jd(o,i)}(e.sham||i&&i.sham)&&Dh(o,"sham",!0),fd(n,r,o,e)}},Hd=Array.isArray||function(e){return"Array"==kh(e)},Vd=function(e){return Object(_h(e))},zd=function(e,t,n){var r=Ah(t);r in e?Fh.f(e,r,bh(0,n)):e[r]=n},Wd=!!Object.getOwnPropertySymbols&&!ph((function(){return!String(Symbol())})),$d=Wd&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kd=Gh("wks"),Yd=dh.Symbol,Gd=$d?Yd:Yd&&Yd.withoutSetter||Qh,Xd=function(e){return Ph(Kd,e)||(Wd&&Ph(Yd,e)?Kd[e]=Yd[e]:Kd[e]=Gd("Symbol."+e)),Kd[e]},Jd=Xd("species"),Qd=function(e,t){var n;return Hd(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Hd(n.prototype)?xh(n)&&null===(n=n[Jd])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Zd=pd("navigator","userAgent")||"",ep=dh.process,tp=ep&&ep.versions,np=tp&&tp.v8;np?ld=(cd=np.split("."))[0]+cd[1]:Zd&&(!(cd=Zd.match(/Edge\/(\d+)/))||cd[1]>=74)&&(cd=Zd.match(/Chrome\/(\d+)/))&&(ld=cd[1]);var rp=ld&&+ld,ip=Xd("species"),op=function(e){return rp>=51||!ph((function(){var t=[];return(t.constructor={})[ip]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ap=Xd("isConcatSpreadable"),sp=rp>=51||!ph((function(){var e=[];return e[ap]=!1,e.concat()[0]!==e})),cp=op("concat"),lp=function(e){if(!xh(e))return!1;var t=e[ap];return void 0!==t?!!t:Hd(e)};qd({target:"Array",proto:!0,forced:!sp||!cp},{concat:function(e){var t,n,r,i,o,a=Vd(this),s=Qd(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],lp(o)){if(c+(i=bd(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&zd(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");zd(s,c++,o)}return s.length=c,s}});var up=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},fp=function(e,t,n){if(up(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)}},hp=[].push,dp=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,c,l,u){for(var f,h,d=Vd(s),p=Eh(d),g=fp(c,l,3),m=bd(p.length),v=0,y=u||Qd,b=t?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=g(f=p[v],v,d),e))if(t)b[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:hp.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},pp={forEach:dp(0),map:dp(1),filter:dp(2),some:dp(3),every:dp(4),find:dp(5),findIndex:dp(6)},gp=Object.defineProperty,mp={},vp=function(e){throw e},yp=function(e,t){if(Ph(mp,e))return mp[e];t||(t={});var n=[][e],r=!!Ph(t,"ACCESSORS")&&t.ACCESSORS,i=Ph(t,0)?t[0]:vp,o=Ph(t,1)?t[1]:void 0;return mp[e]=!!n&&!ph((function(){if(r&&!gh)return!0;var e={length:-1};r?gp(e,1,{enumerable:!0,get:vp}):e[1]=1,n.call(e,i,o)}))},bp=pp.filter,wp=op("filter"),kp=yp("filter");qd({target:"Array",proto:!0,forced:!wp||!kp},{filter:function(e){return bp(this,e,arguments.length>1?arguments[1]:void 0)}});var Sp,Ep=Object.keys||function(e){return xd(e,Ad)},_p=gh?Object.defineProperties:function(e,t){Mh(e);for(var n,r=Ep(t),i=r.length,o=0;i>o;)Fh.f(e,n=r[o++],t[n]);return e},Tp=pd("document","documentElement"),xp=ed("IE_PROTO"),Ap=function(){},Op=function(e){return"<script>"+e+"<\/script>"},Pp=function(){try{Sp=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Pp=Sp?function(e){e.write(Op("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Sp):((t=jh("iframe")).style.display="none",Tp.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Op("document.F=Object")),e.close(),e.F);for(var n=Ad.length;n--;)delete Pp.prototype[Ad[n]];return Pp()};td[xp]=!0;var Cp=Object.create||function(e,t){var n;return null!==e?(Ap.prototype=Mh(e),n=new Ap,Ap.prototype=null,n[xp]=e):n=Pp(),void 0===t?n:_p(n,t)},Ip=Xd("unscopables"),jp=Array.prototype;null==jp[Ip]&&Fh.f(jp,Ip,{configurable:!0,value:Cp(null)});var Rp=function(e){jp[Ip][e]=!0},Lp=pp.find,Np=!0,Mp=yp("find");"find"in[]&&Array(1).find((function(){Np=!1})),qd({target:"Array",proto:!0,forced:Np||!Mp},{find:function(e){return Lp(this,e,arguments.length>1?arguments[1]:void 0)}}),Rp("find");var Up=function(e,t,n,r){try{return r?t(Mh(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&Mh(i.call(e)),t}},Fp={},Dp=Xd("iterator"),Bp=Array.prototype,qp=function(e){return void 0!==e&&(Fp.Array===e||Bp[Dp]===e)},Hp={};Hp[Xd("toStringTag")]="z";var Vp="[object z]"===String(Hp),zp=Xd("toStringTag"),Wp="Arguments"==kh(function(){return arguments}()),$p=Vp?kh: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),zp))?n:Wp?kh(t):"Object"==(r=kh(t))&&"function"==typeof t.callee?"Arguments":r},Kp=Xd("iterator"),Yp=function(e){if(null!=e)return e[Kp]||e["@@iterator"]||Fp[$p(e)]},Gp=function(e){var t,n,r,i,o,a,s=Vd(e),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,h=Yp(s),d=0;if(f&&(u=fp(u,l>2?arguments[2]:void 0,2)),null==h||c==Array&&qp(h))for(n=new c(t=bd(s.length));t>d;d++)a=f?u(s[d],d):s[d],zd(n,d,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;d++)a=f?Up(i,u,[r.value,d],!0):r.value,zd(n,d,a);return n.length=d,n},Xp=Xd("iterator"),Jp=!1;try{var Qp=0,Zp={next:function(){return{done:!!Qp++}},return:function(){Jp=!0}};Zp[Xp]=function(){return this},Array.from(Zp,(function(){throw 2}))}catch(e){}var eg=function(e,t){if(!t&&!Jp)return!1;var n=!1;try{var r={};r[Xp]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},tg=!eg((function(e){Array.from(e)}));qd({target:"Array",stat:!0,forced:tg},{from:Gp});var ng=_d.includes,rg=yp("indexOf",{ACCESSORS:!0,1:0});qd({target:"Array",proto:!0,forced:!rg},{includes:function(e){return ng(this,e,arguments.length>1?arguments[1]:void 0)}}),Rp("includes");var ig,og,ag,sg=!ph((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cg=ed("IE_PROTO"),lg=Object.prototype,ug=sg?Object.getPrototypeOf:function(e){return e=Vd(e),Ph(e,cg)?e[cg]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?lg:null},fg=Xd("iterator"),hg=!1;[].keys&&("next"in(ag=[].keys())?(og=ug(ug(ag)))!==Object.prototype&&(ig=og):hg=!0),null==ig&&(ig={}),Ph(ig,fg)||Dh(ig,fg,(function(){return this}));var dg={IteratorPrototype:ig,BUGGY_SAFARI_ITERATORS:hg},pg=Fh.f,gg=Xd("toStringTag"),mg=function(e,t,n){e&&!Ph(e=n?e:e.prototype,gg)&&pg(e,gg,{configurable:!0,value:t})},vg=dg.IteratorPrototype,yg=function(){return this},bg=function(e,t,n){var r=t+" Iterator";return e.prototype=Cp(vg,{next:bh(1,n)}),mg(e,r,!1),Fp[r]=yg,e},wg=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 Mh(n),function(e){if(!xh(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),kg=dg.IteratorPrototype,Sg=dg.BUGGY_SAFARI_ITERATORS,Eg=Xd("iterator"),_g=function(){return this},Tg=function(e,t,n,r,i,o,a){bg(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Sg&&e in d)return d[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",h=!1,d=e.prototype,p=d[Eg]||d["@@iterator"]||i&&d[i],g=!Sg&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=ug(m.call(new e)),kg!==Object.prototype&&s.next&&(ug(s)!==kg&&(wg?wg(s,kg):"function"!=typeof s[Eg]&&Dh(s,Eg,_g)),mg(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[Eg]!==g&&Dh(d,Eg,g),Fp[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)(Sg||h||!(l in d))&&fd(d,l,c[l]);else qd({target:t,proto:!0,forced:Sg||h},c);return c},xg=ud.set,Ag=ud.getterFor("Array Iterator"),Og=Tg(Array,"Array",(function(e,t){xg(this,{type:"Array Iterator",target:Th(e),index:0,kind:t})}),(function(){var e=Ag(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");Fp.Arguments=Fp.Array,Rp("keys"),Rp("values"),Rp("entries");var Pg=function(e,t){var n=[][e];return!!n&&ph((function(){n.call(null,t||function(){throw 1},1)}))},Cg=[].join,Ig=Eh!=Object,jg=Pg("join",",");qd({target:"Array",proto:!0,forced:Ig||!jg},{join:function(e){return Cg.call(Th(this),void 0===e?",":e)}});var Rg=pp.map,Lg=op("map"),Ng=yp("map");qd({target:"Array",proto:!0,forced:!Lg||!Ng},{map:function(e){return Rg(this,e,arguments.length>1?arguments[1]:void 0)}});var Mg=function(e,t,n){var r,i;return wg&&"function"==typeof(r=t.constructor)&&r!==n&&xh(i=r.prototype)&&i!==n.prototype&&wg(e,i),e},Ug="[\t\n\v\f\r    \u2028\u2029\ufeff]",Fg=RegExp("^"+Ug+Ug+"*"),Dg=RegExp(Ug+Ug+"*$"),Bg=function(e){return function(t){var n=String(_h(t));return 1&e&&(n=n.replace(Fg,"")),2&e&&(n=n.replace(Dg,"")),n}},qg={start:Bg(1),end:Bg(2),trim:Bg(3)},Hg=Pd.f,Vg=Nh.f,zg=Fh.f,Wg=qg.trim,$g=dh.Number,Kg=$g.prototype,Yg="Number"==kh(Cp(Kg)),Gg=function(e){var t,n,r,i,o,a,s,c,l=Ah(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=Wg(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(Dd("Number",!$g(" 0o1")||!$g("0b1")||$g("+0x1"))){for(var Xg,Jg=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Jg&&(Yg?ph((function(){Kg.valueOf.call(n)})):"Number"!=kh(n))?Mg(new $g(Gg(t)),n,Jg):Gg(t)},Qg=gh?Hg($g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Zg=0;Qg.length>Zg;Zg++)Ph($g,Xg=Qg[Zg])&&!Ph(Jg,Xg)&&zg(Jg,Xg,Vg($g,Xg));Jg.prototype=Kg,Kg.constructor=Jg,fd(dh,"Number",Jg)}var em=ph((function(){Ep(1)}));qd({target:"Object",stat:!0,forced:em},{keys:function(e){return Ep(Vd(e))}});var tm=Vp?{}.toString:function(){return"[object "+$p(this)+"]"};Vp||fd(Object.prototype,"toString",tm,{unsafe:!0});var nm=function(){var e=Mh(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};function rm(e,t){return RegExp(e,t)}var im={UNSUPPORTED_Y:ph((function(){var e=rm("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:ph((function(){var e=rm("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},om=RegExp.prototype.exec,am=String.prototype.replace,sm=om,cm=function(){var e=/a/,t=/b*/g;return om.call(e,"a"),om.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),lm=im.UNSUPPORTED_Y||im.BROKEN_CARET,um=void 0!==/()??/.exec("")[1];(cm||um||lm)&&(sm=function(e){var t,n,r,i,o=this,a=lm&&o.sticky,s=nm.call(o),c=o.source,l=0,u=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),um&&(n=new RegExp("^"+c+"$(?!\\s)",s)),cm&&(t=o.lastIndex),r=om.call(a?n:o,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:cm&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),um&&r&&r.length>1&&am.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var fm=sm;qd({target:"RegExp",proto:!0,forced:/./.exec!==fm},{exec:fm});var hm=RegExp.prototype,dm=hm.toString,pm=ph((function(){return"/a/b"!=dm.call({source:"a",flags:"b"})})),gm="toString"!=dm.name;(pm||gm)&&fd(RegExp.prototype,"toString",(function(){var e=Mh(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in hm)?nm.call(e):n)}),{unsafe:!0});var mm=Xd("match"),vm=function(e){var t;return xh(e)&&(void 0!==(t=e[mm])?!!t:"RegExp"==kh(e))},ym=function(e){if(vm(e))throw TypeError("The method doesn't accept regular expressions");return e},bm=Xd("match"),wm=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[bm]=!1,"/./"[e](t)}catch(e){}}return!1};qd({target:"String",proto:!0,forced:!wm("includes")},{includes:function(e){return!!~String(_h(this)).indexOf(ym(e),arguments.length>1?arguments[1]:void 0)}});var km=function(e){return function(t,n){var r,i,o=String(_h(t)),a=vd(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}},Sm={codeAt:km(!1),charAt:km(!0)},Em=Sm.charAt,_m=ud.set,Tm=ud.getterFor("String Iterator");Tg(String,"String",(function(e){_m(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Tm(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Em(n,r),t.index+=e.length,{value:e,done:!1})}));var xm=Xd("species"),Am=!ph((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Om="$0"==="a".replace(/./,"$0"),Pm=Xd("replace"),Cm=!!/./[Pm]&&""===/./[Pm]("a","$0"),Im=!ph((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]})),jm=function(e,t,n,r){var i=Xd(e),o=!ph((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!ph((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[xm]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||"replace"===e&&(!Am||!Om||Cm)||"split"===e&&!Im){var s=/./[i],c=n(i,""[e],(function(e,t,n,r,i){return t.exec===fm?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Om,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Cm}),l=c[0],u=c[1];fd(String.prototype,e,l),fd(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&Dh(RegExp.prototype[i],"sham",!0)},Rm=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Lm=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==kh(e))throw TypeError("RegExp#exec called on incompatible receiver");return fm.call(e,t)};jm("search",1,(function(e,t,n){return[function(t){var n=_h(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=Mh(e),o=String(this),a=i.lastIndex;Rm(a,0)||(i.lastIndex=0);var s=Lm(i,o);return Rm(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var Nm=function(e,t,n){for(var r in t)fd(e,r,t[r],n);return e},Mm=!ph((function(){return Object.isExtensible(Object.preventExtensions({}))})),Um=t((function(e){var t=Fh.f,n=Qh("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!xh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ph(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!Ph(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return Mm&&a.REQUIRED&&i(e)&&!Ph(e,n)&&o(e),e}};td[n]=!0})),Fm=(Um.REQUIRED,Um.fastKey,Um.getWeakData,Um.onFreeze,t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f,h,d=fp(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=Yp(e)))throw TypeError("Target is not iterable");if(qp(s)){for(c=0,l=bd(e.length);l>c;c++)if((u=i?d(Mh(h=e[c])[0],h[1]):d(e[c]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(u=Up(a,d,h.value,i))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}}))),Dm=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Bm=Um.getWeakData,qm=ud.set,Hm=ud.getterFor,Vm=pp.find,zm=pp.findIndex,Wm=0,$m=function(e){return e.frozen||(e.frozen=new Km)},Km=function(){this.entries=[]},Ym=function(e,t){return Vm(e.entries,(function(e){return e[0]===t}))};Km.prototype={get:function(e){var t=Ym(this,e);if(t)return t[1]},has:function(e){return!!Ym(this,e)},set:function(e,t){var n=Ym(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zm(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var Gm={getConstructor:function(e,t,n,r){var i=e((function(e,o){Dm(e,i,t),qm(e,{type:t,id:Wm++,frozen:void 0}),null!=o&&Fm(o,e[r],e,n)})),o=Hm(t),a=function(e,t,n){var r=o(e),i=Bm(Mh(t),!0);return!0===i?$m(r).set(t,n):i[r.id]=n,e};return Nm(i.prototype,{delete:function(e){var t=o(this);if(!xh(e))return!1;var n=Bm(e);return!0===n?$m(t).delete(e):n&&Ph(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!xh(e))return!1;var n=Bm(e);return!0===n?$m(t).has(e):n&&Ph(n,t.id)}}),Nm(i.prototype,n?{get:function(e){var t=o(this);if(xh(e)){var n=Bm(e);return!0===n?$m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),i}},Xm=(t((function(e){var t,n=ud.enforce,r=!dh.ActiveXObject&&"ActiveXObject"in dh,i=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=dh[e],s=a&&a.prototype,c=a,l={},u=function(e){var t=s[e];fd(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!xh(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!xh(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!xh(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Dd(e,"function"!=typeof a||!(i||s.forEach&&!ph((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),Um.REQUIRED=!0;else if(Dd(e,!0)){var f=new c,h=f[o](i?{}:-0,1)!=f,d=ph((function(){f.has(1)})),p=eg((function(e){new a(e)})),g=!i&&ph((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((c=t((function(t,n){Dm(t,c,e);var i=Mg(new a,t,c);return null!=n&&Fm(n,i[o],i,r),i}))).prototype=s,s.constructor=c),(d||g)&&(u("delete"),u("has"),r&&u("get")),(g||h)&&u(o),i&&s.clear&&delete s.clear}return l[e]=c,qd({global:!0,forced:c!=a},l),mg(c,e),i||n.setStrong(c,e,r),c}("WeakMap",o,Gm);if(Yh&&r){t=Gm.getConstructor(o,"WeakMap",!0),Um.REQUIRED=!0;var s=a.prototype,c=s.delete,l=s.has,u=s.get,f=s.set;Nm(s,{delete:function(e){if(xh(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),c.call(this,e)||r.frozen.delete(e)}return c.call(this,e)},has:function(e){if(xh(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)||r.frozen.has(e)}return l.call(this,e)},get:function(e){if(xh(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)?u.call(this,e):r.frozen.get(e)}return u.call(this,e)},set:function(e,r){if(xh(e)&&!i(e)){var o=n(this);o.frozen||(o.frozen=new t),l.call(this,e)?f.call(this,e,r):o.frozen.set(e,r)}else f.call(this,e,r);return this}})}})),{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}),Jm=Xd("iterator"),Qm=Xd("toStringTag"),Zm=Og.values;for(var ev in Xm){var tv=dh[ev],nv=tv&&tv.prototype;if(nv){if(nv[Jm]!==Zm)try{Dh(nv,Jm,Zm)}catch(e){nv[Jm]=Zm}if(nv[Qm]||Dh(nv,Qm,ev),Xm[ev])for(var rv in Og)if(nv[rv]!==Og[rv])try{Dh(nv,rv,Og[rv])}catch(e){nv[rv]=Og[rv]}}}var iv=pp.every,ov=Pg("every"),av=yp("every");qd({target:"Array",proto:!0,forced:!ov||!av},{every:function(e){return iv(this,e,arguments.length>1?arguments[1]:void 0)}});var sv=pp.forEach,cv=Pg("forEach"),lv=yp("forEach"),uv=cv&&lv?[].forEach:function(e){return sv(this,e,arguments.length>1?arguments[1]:void 0)};qd({target:"Array",proto:!0,forced:[].forEach!=uv},{forEach:uv});var fv=_d.indexOf,hv=[].indexOf,dv=!!hv&&1/[1].indexOf(1,-0)<0,pv=Pg("indexOf"),gv=yp("indexOf",{ACCESSORS:!0,1:0});qd({target:"Array",proto:!0,forced:dv||!pv||!gv},{indexOf:function(e){return dv?hv.apply(this,arguments)||0:fv(this,e,arguments.length>1?arguments[1]:void 0)}});var mv=Object.assign,vv=Object.defineProperty,yv=!mv||ph((function(){if(gh&&1!==mv({b:1},mv(vv({},"a",{enumerable:!0,get:function(){vv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=mv({},e)[n]||"abcdefghijklmnopqrst"!=Ep(mv({},t)).join("")}))?function(e,t){for(var n=Vd(e),r=arguments.length,i=1,o=Cd.f,a=yh.f;r>i;)for(var s,c=Eh(arguments[i++]),l=o?Ep(c).concat(o(c)):Ep(c),u=l.length,f=0;u>f;)s=l[f++],gh&&!a.call(c,s)||(n[s]=c[s]);return n}:mv;qd({target:"Object",stat:!0,forced:Object.assign!==yv},{assign:yv});var bv=Xd("species"),wv=function(e,t){var n,r=Mh(e).constructor;return void 0===r||null==(n=Mh(r)[bv])?t:up(n)},kv=Sm.charAt,Sv=function(e,t,n){return t+(n?kv(e,t).length:1)},Ev=[].push,_v=Math.min,Tv=!ph((function(){return!RegExp(4294967295,"y")}));jm("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(_h(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!vm(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=fm.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&Ev.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=_h(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=Mh(e),s=String(this),c=wv(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Tv?"y":"g"),f=new c(Tv?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Lm(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=Tv?p:0;var m,v=Lm(f,Tv?s:s.slice(p));if(null===v||(m=_v(bd(f.lastIndex+(Tv?0:p)),s.length))===d)p=Sv(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]}),!Tv);var xv=qg.trim;for(var Av in qd({target:"String",proto:!0,forced:function(e){return ph((function(){return!!"\t\n\v\f\r    \u2028\u2029\ufeff"[e]()||"…"!="…"[e]()||"\t\n\v\f\r    \u2028\u2029\ufeff"[e].name!==e}))}("trim")},{trim:function(){return xv(this)}}),Xm){var Ov=dh[Av],Pv=Ov&&Ov.prototype;if(Pv&&Pv.forEach!==uv)try{Dh(Pv,"forEach",uv)}catch(e){Pv.forEach=uv}}var Cv=Xd("iterator"),Iv=!ph((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Cv]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),jv=/[^\0-\u007E]/,Rv=/[.\u3002\uFF0E\uFF61]/g,Lv=Math.floor,Nv=String.fromCharCode,Mv=function(e){return e+22+75*(e<26)},Uv=function(e,t,n){var r=0;for(e=n?Lv(e/700):e>>1,e+=Lv(e/t);e>455;r+=36)e=Lv(e/35);return Lv(r+36*e/(e+38))},Fv=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Nv(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>Lv((2147483647-a)/f))throw RangeError("Overflow: input needs wider integers to process");for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError("Overflow: input needs wider integers to process");if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push(Nv(Mv(p+g%m))),h=Lv(g/m)}r.push(Nv(Mv(h))),s=Uv(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},Dv=function(e){var t=Yp(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return Mh(t.call(e))},Bv=pd("fetch"),qv=pd("Headers"),Hv=Xd("iterator"),Vv=ud.set,zv=ud.getterFor("URLSearchParams"),Wv=ud.getterFor("URLSearchParamsIterator"),$v=/\+/g,Kv=Array(4),Yv=function(e){return Kv[e-1]||(Kv[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Gv=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Xv=function(e){var t=e.replace($v," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(Yv(n--),Gv);return t}},Jv=/[!'()~]|%20/g,Qv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Zv=function(e){return Qv[e]},ey=function(e){return encodeURIComponent(e).replace(Jv,Zv)},ty=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:Xv(r.shift()),value:Xv(r.join("="))}))},ny=function(e){this.entries.length=0,ty(this.entries,e)},ry=function(e,t){if(e<t)throw TypeError("Not enough arguments")},iy=bg((function(e,t){Vv(this,{type:"URLSearchParamsIterator",iterator:Dv(zv(e).entries),kind:t})}),"Iterator",(function(){var e=Wv(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),oy=function(){Dm(this,oy,"URLSearchParams");var e,t,n,r,i,o,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(Vv(u,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:ny}),void 0!==l)if(xh(l))if("function"==typeof(e=Yp(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(o=(i=Dv(Mh(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in l)Ph(l,c)&&f.push({key:c,value:l[c]+""});else ty(f,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},ay=oy.prototype;Nm(ay,{append:function(e,t){ry(arguments.length,2);var n=zv(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){ry(arguments.length,1);for(var t=zv(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){ry(arguments.length,1);for(var t=zv(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){ry(arguments.length,1);for(var t=zv(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){ry(arguments.length,1);for(var t=zv(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){ry(arguments.length,1);for(var n,r=zv(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=zv(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=zv(this).entries,r=fp(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new iy(this,"keys")},values:function(){return new iy(this,"values")},entries:function(){return new iy(this,"entries")}},{enumerable:!0}),fd(ay,Hv,ay.entries),fd(ay,"toString",(function(){for(var e,t=zv(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(ey(e.key)+"="+ey(e.value));return n.join("&")}),{enumerable:!0}),mg(oy,"URLSearchParams"),qd({global:!0,forced:!Iv},{URLSearchParams:oy}),Iv||"function"!=typeof Bv||"function"!=typeof qv||qd({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],xh(t)&&(n=t.body,"URLSearchParams"===$p(n)&&((r=t.headers?new qv(t.headers):new qv).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Cp(t,{body:bh(0,String(n)),headers:bh(0,r)}))),i.push(t)),Bv.apply(this,i)}});var sy={URLSearchParams:oy,getState:zv},cy=Sm.codeAt,ly=dh.URL,uy=sy.URLSearchParams,fy=sy.getState,hy=ud.set,dy=ud.getterFor("URL"),py=Math.floor,gy=Math.pow,my=/[A-Za-z]/,vy=/[\d+\-.A-Za-z]/,yy=/\d/,by=/^(0x|0X)/,wy=/^[0-7]+$/,ky=/^\d+$/,Sy=/^[\dA-Fa-f]+$/,Ey=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,_y=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ty=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,xy=/[\u0009\u000A\u000D]/g,Ay=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Py(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Uy(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(Rv,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(jv.test(n)?"xn--"+Fv(n):n);return r.join(".")}(t),Ey.test(t))return"Invalid host";if(null===(n=Oy(t)))return"Invalid host";e.host=n}else{if(_y.test(t))return"Invalid host";for(n="",r=Gp(t),i=0;i<r.length;i++)n+=Ny(r[i],Iy);e.host=n}},Oy=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=by.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?ky:8==o?wy:Sy).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=gy(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*gy(256,3-r);return s},Py=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&Sy.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!yy.test(h()))return;for(;yy.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},Cy=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=py(e/256);return t.join(".")}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&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Iy={},jy=yv({},Iy,{" ":1,'"':1,"<":1,">":1,"`":1}),Ry=yv({},jy,{"#":1,"?":1,"{":1,"}":1}),Ly=yv({},Ry,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ny=function(e,t){var n=cy(e,0);return n>32&&n<127&&!Ph(t,e)?e:encodeURIComponent(e)},My={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Uy=function(e){return Ph(My,e.scheme)},Fy=function(e){return""!=e.username||""!=e.password},Dy=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},By=function(e,t){var n;return 2==e.length&&my.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},qy=function(e){var t;return e.length>1&&By(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Hy=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&By(t[0],!0)||t.pop()},Vy=function(e){return"."===e||"%2e"===e.toLowerCase()},zy={},Wy={},$y={},Ky={},Yy={},Gy={},Xy={},Jy={},Qy={},Zy={},eb={},tb={},nb={},rb={},ib={},ob={},ab={},sb={},cb={},lb={},ub={},fb=function(e,t,n,r){var i,o,a,s,c,l=n||zy,u=0,f="",h=!1,d=!1,p=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Ty,"")),t=t.replace(xy,""),i=Gp(t);u<=i.length;){switch(o=i[u],l){case zy:if(!o||!my.test(o)){if(n)return"Invalid scheme";l=$y;continue}f+=o.toLowerCase(),l=Wy;break;case Wy:if(o&&(vy.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=$y,u=0;continue}if(n&&(Uy(e)!=Ph(My,f)||"file"==f&&(Fy(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(Uy(e)&&My[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=rb:Uy(e)&&r&&r.scheme==e.scheme?l=Ky:Uy(e)?l=Jy:"/"==i[u+1]?(l=Yy,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=cb)}break;case $y:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=ub;break}l="file"==r.scheme?rb:Gy;continue;case Ky:if("/"!=o||"/"!=i[u+1]){l=Gy;continue}l=Qy,u++;break;case Yy:if("/"==o){l=Zy;break}l=sb;continue;case Gy:if(e.scheme=r.scheme,null==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&Uy(e))l=Xy;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=lb;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=sb;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=ub}break;case Xy:if(!Uy(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=sb;continue}l=Zy}else l=Qy;break;case Jy:if(l=Qy,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case Qy:if("/"!=o&&"\\"!=o){l=Zy;continue}break;case Zy:if("@"==o){h&&(f="%40"+f),h=!0,a=Gp(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=Ny(m,Ly);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Uy(e)){if(h&&""==f)return"Invalid authority";u-=Gp(f).length+1,f="",l=eb}else f+=o;break;case eb:case tb:if(n&&"file"==e.scheme){l=ob;continue}if(":"!=o||d){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Uy(e)){if(Uy(e)&&""==f)return"Invalid host";if(n&&""==f&&(Fy(e)||null!==e.port))return;if(s=Ay(e,f))return s;if(f="",l=ab,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=Ay(e,f))return s;if(f="",l=nb,n==tb)return}break;case nb:if(!yy.test(o)){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Uy(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=Uy(e)&&y===My[e.scheme]?null:y,f=""}if(n)return;l=ab;continue}return"Invalid port"}f+=o;break;case rb:if(e.scheme="file","/"==o||"\\"==o)l=ib;else{if(!r||"file"!=r.scheme){l=sb;continue}if(null==o)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",l=lb;else{if("#"!=o){qy(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Hy(e)),l=sb;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=ub}}break;case ib:if("/"==o||"\\"==o){l=ob;break}r&&"file"==r.scheme&&!qy(i.slice(u).join(""))&&(By(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=sb;continue;case ob:if(null==o||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&By(f))l=sb;else if(""==f){if(e.host="",n)return;l=ab}else{if(s=Ay(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=ab}continue}f+=o;break;case ab:if(Uy(e)){if(l=sb,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(null!=o&&(l=sb,"/"!=o))continue}else e.fragment="",l=ub;else e.query="",l=lb;break;case sb:if(null==o||"/"==o||"\\"==o&&Uy(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Hy(e),"/"==o||"\\"==o&&Uy(e)||e.path.push("")):Vy(f)?"/"==o||"\\"==o&&Uy(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&By(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(null==o||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=lb):"#"==o&&(e.fragment="",l=ub)}else f+=Ny(o,Ry);break;case cb:"?"==o?(e.query="",l=lb):"#"==o?(e.fragment="",l=ub):null!=o&&(e.path[0]+=Ny(o,Iy));break;case lb:n||"#"!=o?null!=o&&("'"==o&&Uy(e)?e.query+="%27":e.query+="#"==o?"%23":Ny(o,Iy)):(e.fragment="",l=ub);break;case ub:null!=o&&(e.fragment+=Ny(o,jy))}u++}},hb=function(e){var t,n,r=Dm(this,hb,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=hy(r,{type:"URL"});if(void 0!==i)if(i instanceof hb)t=dy(i);else if(n=fb(t={},String(i)))throw TypeError(n);if(n=fb(a,o,null,t))throw TypeError(n);var s=a.searchParams=new uy,c=fy(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},gh||(r.href=pb.call(r),r.origin=gb.call(r),r.protocol=mb.call(r),r.username=vb.call(r),r.password=yb.call(r),r.host=bb.call(r),r.hostname=wb.call(r),r.port=kb.call(r),r.pathname=Sb.call(r),r.search=Eb.call(r),r.searchParams=_b.call(r),r.hash=Tb.call(r))},db=hb.prototype,pb=function(){var e=dy(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Fy(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Cy(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},gb=function(){var e=dy(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Uy(e)?t+"://"+Cy(e.host)+(null!==n?":"+n:""):"null"},mb=function(){return dy(this).scheme+":"},vb=function(){return dy(this).username},yb=function(){return dy(this).password},bb=function(){var e=dy(this),t=e.host,n=e.port;return null===t?"":null===n?Cy(t):Cy(t)+":"+n},wb=function(){var e=dy(this).host;return null===e?"":Cy(e)},kb=function(){var e=dy(this).port;return null===e?"":String(e)},Sb=function(){var e=dy(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Eb=function(){var e=dy(this).query;return e?"?"+e:""},_b=function(){return dy(this).searchParams},Tb=function(){var e=dy(this).fragment;return e?"#"+e:""},xb=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(gh&&_p(db,{href:xb(pb,(function(e){var t=dy(this),n=String(e),r=fb(t,n);if(r)throw TypeError(r);fy(t.searchParams).updateSearchParams(t.query)})),origin:xb(gb),protocol:xb(mb,(function(e){var t=dy(this);fb(t,String(e)+":",zy)})),username:xb(vb,(function(e){var t=dy(this),n=Gp(String(e));if(!Dy(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Ny(n[r],Ly)}})),password:xb(yb,(function(e){var t=dy(this),n=Gp(String(e));if(!Dy(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Ny(n[r],Ly)}})),host:xb(bb,(function(e){var t=dy(this);t.cannotBeABaseURL||fb(t,String(e),eb)})),hostname:xb(wb,(function(e){var t=dy(this);t.cannotBeABaseURL||fb(t,String(e),tb)})),port:xb(kb,(function(e){var t=dy(this);Dy(t)||(""==(e=String(e))?t.port=null:fb(t,e,nb))})),pathname:xb(Sb,(function(e){var t=dy(this);t.cannotBeABaseURL||(t.path=[],fb(t,e+"",ab))})),search:xb(Eb,(function(e){var t=dy(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",fb(t,e,lb)),fy(t.searchParams).updateSearchParams(t.query)})),searchParams:xb(_b),hash:xb(Tb,(function(e){var t=dy(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",fb(t,e,ub)):t.fragment=null}))}),fd(db,"toJSON",(function(){return pb.call(this)}),{enumerable:!0}),fd(db,"toString",(function(){return pb.call(this)}),{enumerable:!0}),ly){var Ab=ly.createObjectURL,Ob=ly.revokeObjectURL;Ab&&fd(hb,"createObjectURL",(function(e){return Ab.apply(ly,arguments)})),Ob&&fd(hb,"revokeObjectURL",(function(e){return Ob.apply(ly,arguments)}))}mg(hb,"URL"),qd({global:!0,forced:!Iv,sham:!gh},{URL:hb});var Pb=pp.some,Cb=Pg("some"),Ib=yp("some");qd({target:"Array",proto:!0,forced:!Cb||!Ib},{some:function(e){return Pb(this,e,arguments.length>1?arguments[1]:void 0)}});var jb="".repeat||function(e){var t=String(_h(this)),n="",r=vd(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Rb=1..toFixed,Lb=Math.floor,Nb=function(e,t,n){return 0===t?n:t%2==1?Nb(e,t-1,n*e):Nb(e*e,t/2,n)},Mb=Rb&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!ph((function(){Rb.call({})}));qd({target:"Number",proto:!0,forced:Mb},{toFixed:function(e){var t,n,r,i,o=function(e){if("number"!=typeof e&&"Number"!=kh(e))throw TypeError("Incorrect invocation");return+e}(this),a=vd(e),s=[0,0,0,0,0,0],c="",l="0",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=Lb(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=Lb(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+jb.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(c="-",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*Nb(2,69,1))-69)<0?o*Nb(2,-t,1):o/Nb(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=a;r>=7;)u(1e7,0),r-=7;for(u(Nb(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),u(1,1),f(2),l=h()}else u(0,n),u(1<<-t,0),l=h()+jb.call("0",a);return l=a>0?c+((i=l.length)<=a?"0."+jb.call("0",a-i)+l:l.slice(0,i-a)+"."+l.slice(i-a)):c+l}});var Ub=yh.f,Fb=function(e){return function(t){for(var n,r=Th(t),i=Ep(r),o=i.length,a=0,s=[];o>a;)n=i[a++],gh&&!Ub.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},Db={entries:Fb(!0),values:Fb(!1)},Bb=Db.entries;qd({target:"Object",stat:!0},{entries:function(e){return Bb(e)}});var qb=Db.values;qd({target:"Object",stat:!0},{values:function(e){return qb(e)}});var Hb=Math.max,Vb=Math.min,zb=Math.floor,Wb=/\$([$&'`]|\d\d?|<[^>]*>)/g,$b=/\$([$&'`]|\d\d?)/g;jm("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=_h(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var l=Mh(e),u=String(this),f="function"==typeof r;f||(r=String(r));var h=l.global;if(h){var d=l.unicode;l.lastIndex=0}for(var p=[];;){var g=Lm(l,u);if(null===g)break;if(p.push(g),!h)break;""===String(g[0])&&(l.lastIndex=Sv(u,bd(l.lastIndex),d))}for(var m,v="",y=0,b=0;b<p.length;b++){g=p[b];for(var w=String(g[0]),k=Hb(Vb(vd(g.index),u.length),0),S=[],E=1;E<g.length;E++)S.push(void 0===(m=g[E])?m:String(m));var _=g.groups;if(f){var T=[w].concat(S,k,u);void 0!==_&&T.push(_);var x=String(r.apply(void 0,T))}else x=s(w,u,k,S,_,r);k>=y&&(v+=u.slice(y,k)+x,y=k+w.length)}return v+u.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=$b;return void 0!==o&&(o=Vd(o),l=Wb),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=zb(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l}))}}));var Kb=Pd.f,Yb={}.toString,Gb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xb={f:function(e){return Gb&&"[object Window]"==Yb.call(e)?function(e){try{return Kb(e)}catch(e){return Gb.slice()}}(e):Kb(Th(e))}},Jb={f:Xd},Qb=Fh.f,Zb=pp.forEach,ew=ed("hidden"),tw=Xd("toPrimitive"),nw=ud.set,rw=ud.getterFor("Symbol"),iw=Object.prototype,ow=dh.Symbol,aw=pd("JSON","stringify"),sw=Nh.f,cw=Fh.f,lw=Xb.f,uw=yh.f,fw=Gh("symbols"),hw=Gh("op-symbols"),dw=Gh("string-to-symbol-registry"),pw=Gh("symbol-to-string-registry"),gw=Gh("wks"),mw=dh.QObject,vw=!mw||!mw.prototype||!mw.prototype.findChild,yw=gh&&ph((function(){return 7!=Cp(cw({},"a",{get:function(){return cw(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=sw(iw,t);r&&delete iw[t],cw(e,t,n),r&&e!==iw&&cw(iw,t,r)}:cw,bw=function(e,t){var n=fw[e]=Cp(ow.prototype);return nw(n,{type:"Symbol",tag:e,description:t}),gh||(n.description=t),n},ww=$d?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof ow},kw=function(e,t,n){e===iw&&kw(hw,t,n),Mh(e);var r=Ah(t,!0);return Mh(n),Ph(fw,r)?(n.enumerable?(Ph(e,ew)&&e[ew][r]&&(e[ew][r]=!1),n=Cp(n,{enumerable:bh(0,!1)})):(Ph(e,ew)||cw(e,ew,bh(1,{})),e[ew][r]=!0),yw(e,r,n)):cw(e,r,n)},Sw=function(e,t){Mh(e);var n=Th(t),r=Ep(n).concat(xw(n));return Zb(r,(function(t){gh&&!Ew.call(n,t)||kw(e,t,n[t])})),e},Ew=function(e){var t=Ah(e,!0),n=uw.call(this,t);return!(this===iw&&Ph(fw,t)&&!Ph(hw,t))&&(!(n||!Ph(this,t)||!Ph(fw,t)||Ph(this,ew)&&this[ew][t])||n)},_w=function(e,t){var n=Th(e),r=Ah(t,!0);if(n!==iw||!Ph(fw,r)||Ph(hw,r)){var i=sw(n,r);return!i||!Ph(fw,r)||Ph(n,ew)&&n[ew][r]||(i.enumerable=!0),i}},Tw=function(e){var t=lw(Th(e)),n=[];return Zb(t,(function(e){Ph(fw,e)||Ph(td,e)||n.push(e)})),n},xw=function(e){var t=e===iw,n=lw(t?hw:Th(e)),r=[];return Zb(n,(function(e){!Ph(fw,e)||t&&!Ph(iw,e)||r.push(fw[e])})),r};if(Wd||(fd((ow=function(){if(this instanceof ow)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=Qh(e),n=function(e){this===iw&&n.call(hw,e),Ph(this,ew)&&Ph(this[ew],t)&&(this[ew][t]=!1),yw(this,t,bh(1,e))};return gh&&vw&&yw(iw,t,{configurable:!0,set:n}),bw(t,e)}).prototype,"toString",(function(){return rw(this).tag})),fd(ow,"withoutSetter",(function(e){return bw(Qh(e),e)})),yh.f=Ew,Fh.f=kw,Nh.f=_w,Pd.f=Xb.f=Tw,Cd.f=xw,Jb.f=function(e){return bw(Xd(e),e)},gh&&(cw(ow.prototype,"description",{configurable:!0,get:function(){return rw(this).description}}),fd(iw,"propertyIsEnumerable",Ew,{unsafe:!0}))),qd({global:!0,wrap:!0,forced:!Wd,sham:!Wd},{Symbol:ow}),Zb(Ep(gw),(function(e){!function(e){var t=hd.Symbol||(hd.Symbol={});Ph(t,e)||Qb(t,e,{value:Jb.f(e)})}(e)})),qd({target:"Symbol",stat:!0,forced:!Wd},{for:function(e){var t=String(e);if(Ph(dw,t))return dw[t];var n=ow(t);return dw[t]=n,pw[n]=t,n},keyFor:function(e){if(!ww(e))throw TypeError(e+" is not a symbol");if(Ph(pw,e))return pw[e]},useSetter:function(){vw=!0},useSimple:function(){vw=!1}}),qd({target:"Object",stat:!0,forced:!Wd,sham:!gh},{create:function(e,t){return void 0===t?Cp(e):Sw(Cp(e),t)},defineProperty:kw,defineProperties:Sw,getOwnPropertyDescriptor:_w}),qd({target:"Object",stat:!0,forced:!Wd},{getOwnPropertyNames:Tw,getOwnPropertySymbols:xw}),qd({target:"Object",stat:!0,forced:ph((function(){Cd.f(1)}))},{getOwnPropertySymbols:function(e){return Cd.f(Vd(e))}}),aw){var Aw=!Wd||ph((function(){var e=ow();return"[null]"!=aw([e])||"{}"!=aw({a:e})||"{}"!=aw(Object(e))}));qd({target:"JSON",stat:!0,forced:Aw},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(xh(t)||void 0!==e)&&!ww(e))return Hd(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ww(t))return t}),i[1]=t,aw.apply(null,i)}})}ow.prototype[tw]||Dh(ow.prototype,tw,ow.prototype.valueOf),mg(ow,"Symbol"),td[ew]=!0,qd({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Ow=Nh.f,Pw=ph((function(){Ow(1)}));function Cw(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 Iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jw(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 Rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jw(Object(n),!0).forEach((function(t){Iw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}qd({target:"Object",stat:!0,forced:!gh||Pw,sham:!gh},{getOwnPropertyDescriptor:function(e,t){return Ow(Th(e),t)}}),qd({target:"Object",stat:!0,sham:!gh},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Th(e),i=Nh.f,o=Id(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&zd(a,t,n);return a}}),jm("match",1,(function(e,t,n){return[function(t){var n=_h(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=Mh(e),o=String(this);if(!i.global)return Lm(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=Lm(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=Sv(o,bd(i.lastIndex),a)),l++}return 0===l?null:c}]}));var Lw={addCSS:!0,thumbWidth:15,watch:!0};function Nw(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var Mw=function(e){return null!=e?e.constructor:null},Uw=function(e,t){return!!(e&&t&&e instanceof t)},Fw=function(e){return null==e},Dw=function(e){return Mw(e)===Object},Bw=function(e){return Mw(e)===String},qw=function(e){return Array.isArray(e)},Hw=function(e){return Uw(e,NodeList)},Vw=Bw,zw=qw,Ww=Hw,$w=function(e){return Uw(e,Element)},Kw=function(e){return Uw(e,Event)},Yw=function(e){return Fw(e)||(Bw(e)||qw(e)||Hw(e))&&!e.length||Dw(e)&&!Object.keys(e).length};function Gw(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 Xw,Jw,Qw,Zw=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),$w(t)?this.element=t:Vw(t)&&(this.element=document.querySelector(t)),$w(this.element)&&Yw(this.element.rangeTouch)&&(this.config=Rw({},Lw,{},n),this.init())}return function(e,t,n){t&&Cw(e.prototype,t),n&&Cw(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||!Kw(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,c=r.getBoundingClientRect(),l=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*l:50<n&&(n+=2*(n-50)*l),o+Gw(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&Kw(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(Yw(t)||Vw(t)?r=Array.from(document.querySelectorAll(Vw(t)?t:'input[type="range"]')):$w(t)?r=[t]:Ww(t)?r=Array.from(t):zw(t)&&(r=t.filter($w)),Yw(r))return null;var i=Rw({},Lw,{},n);if(Vw(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){$w(n)&&Nw(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}(),ek=dh.Promise,tk=Xd("species"),nk=function(e){var t=pd(e),n=Fh.f;gh&&t&&!t[tk]&&n(t,tk,{configurable:!0,get:function(){return this}})},rk=/(iphone|ipod|ipad).*applewebkit/i.test(Zd),ik=dh.location,ok=dh.setImmediate,ak=dh.clearImmediate,sk=dh.process,ck=dh.MessageChannel,lk=dh.Dispatch,uk=0,fk={},hk=function(e){if(fk.hasOwnProperty(e)){var t=fk[e];delete fk[e],t()}},dk=function(e){return function(){hk(e)}},pk=function(e){hk(e.data)},gk=function(e){dh.postMessage(e+"",ik.protocol+"//"+ik.host)};ok&&ak||(ok=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return fk[++uk]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Xw(uk),uk},ak=function(e){delete fk[e]},"process"==kh(sk)?Xw=function(e){sk.nextTick(dk(e))}:lk&&lk.now?Xw=function(e){lk.now(dk(e))}:ck&&!rk?(Qw=(Jw=new ck).port2,Jw.port1.onmessage=pk,Xw=fp(Qw.postMessage,Qw,1)):!dh.addEventListener||"function"!=typeof postMessage||dh.importScripts||ph(gk)?Xw="onreadystatechange"in jh("script")?function(e){Tp.appendChild(jh("script")).onreadystatechange=function(){Tp.removeChild(this),hk(e)}}:function(e){setTimeout(dk(e),0)}:(Xw=gk,dh.addEventListener("message",pk,!1)));var mk,vk,yk,bk,wk,kk,Sk,Ek,_k={set:ok,clear:ak},Tk=Nh.f,xk=_k.set,Ak=dh.MutationObserver||dh.WebKitMutationObserver,Ok=dh.process,Pk=dh.Promise,Ck="process"==kh(Ok),Ik=Tk(dh,"queueMicrotask"),jk=Ik&&Ik.value;jk||(mk=function(){var e,t;for(Ck&&(e=Ok.domain)&&e.exit();vk;){t=vk.fn,vk=vk.next;try{t()}catch(e){throw vk?bk():yk=void 0,e}}yk=void 0,e&&e.enter()},Ck?bk=function(){Ok.nextTick(mk)}:Ak&&!rk?(wk=!0,kk=document.createTextNode(""),new Ak(mk).observe(kk,{characterData:!0}),bk=function(){kk.data=wk=!wk}):Pk&&Pk.resolve?(Sk=Pk.resolve(void 0),Ek=Sk.then,bk=function(){Ek.call(Sk,mk)}):bk=function(){xk.call(dh,mk)});var Rk,Lk,Nk,Mk,Uk=jk||function(e){var t={fn:e,next:void 0};yk&&(yk.next=t),vk||(vk=t,bk()),yk=t},Fk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=up(t),this.reject=up(n)},Dk={f:function(e){return new Fk(e)}},Bk=function(e,t){if(Mh(e),xh(t)&&t.constructor===e)return t;var n=Dk.f(e);return(0,n.resolve)(t),n.promise},qk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Hk=_k.set,Vk=Xd("species"),zk=ud.get,Wk=ud.set,$k=ud.getterFor("Promise"),Kk=ek,Yk=dh.TypeError,Gk=dh.document,Xk=dh.process,Jk=pd("fetch"),Qk=Dk.f,Zk=Qk,eS="process"==kh(Xk),tS=!!(Gk&&Gk.createEvent&&dh.dispatchEvent),nS=Dd("Promise",(function(){if(!($h(Kk)!==String(Kk))){if(66===rp)return!0;if(!eS&&"function"!=typeof PromiseRejectionEvent)return!0}if(rp>=51&&/native code/.test(Kk))return!1;var e=Kk.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Vk]=t,!(e.then((function(){}))instanceof t)})),rS=nS||!eg((function(e){Kk.all(e).catch((function(){}))})),iS=function(e){var t;return!(!xh(e)||"function"!=typeof(t=e.then))&&t},oS=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Uk((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,h=u.resolve,d=u.reject,p=u.domain;try{f?(o||(2===t.rejection&&lS(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===u.promise?d(Yk("Promise-chain cycle")):(c=iS(s))?c.call(s,h,d):h(s)):d(i)}catch(e){p&&!l&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&sS(e,t)}))}},aS=function(e,t,n){var r,i;tS?((r=Gk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),dh.dispatchEvent(r)):r={promise:t,reason:n},(i=dh["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=dh.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},sS=function(e,t){Hk.call(dh,(function(){var n,r=t.value;if(cS(t)&&(n=qk((function(){eS?Xk.emit("unhandledRejection",r,e):aS("unhandledrejection",e,r)})),t.rejection=eS||cS(t)?2:1,n.error))throw n.value}))},cS=function(e){return 1!==e.rejection&&!e.parent},lS=function(e,t){Hk.call(dh,(function(){eS?Xk.emit("rejectionHandled",e):aS("rejectionhandled",e,t.value)}))},uS=function(e,t,n,r){return function(i){e(t,n,i,r)}},fS=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,oS(e,t,!0))},hS=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Yk("Promise can't be resolved itself");var i=iS(n);i?Uk((function(){var r={done:!1};try{i.call(n,uS(hS,e,r,t),uS(fS,e,r,t))}catch(n){fS(e,r,n,t)}})):(t.value=n,t.state=1,oS(e,t,!1))}catch(n){fS(e,{done:!1},n,t)}}};nS&&(Kk=function(e){Dm(this,Kk,"Promise"),up(e),Rk.call(this);var t=zk(this);try{e(uS(hS,this,t),uS(fS,this,t))}catch(e){fS(this,t,e)}},(Rk=function(e){Wk(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nm(Kk.prototype,{then:function(e,t){var n=$k(this),r=Qk(wv(this,Kk));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=eS?Xk.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&oS(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Lk=function(){var e=new Rk,t=zk(e);this.promise=e,this.resolve=uS(hS,e,t),this.reject=uS(fS,e,t)},Dk.f=Qk=function(e){return e===Kk||e===Nk?new Lk(e):Zk(e)},"function"==typeof ek&&(Mk=ek.prototype.then,fd(ek.prototype,"then",(function(e,t){var n=this;return new Kk((function(e,t){Mk.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Jk&&qd({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Bk(Kk,Jk.apply(dh,arguments))}}))),qd({global:!0,wrap:!0,forced:nS},{Promise:Kk}),mg(Kk,"Promise",!1),nk("Promise"),Nk=pd("Promise"),qd({target:"Promise",stat:!0,forced:nS},{reject:function(e){var t=Qk(this);return t.reject.call(void 0,e),t.promise}}),qd({target:"Promise",stat:!0,forced:nS},{resolve:function(e){return Bk(this,e)}}),qd({target:"Promise",stat:!0,forced:rS},{all:function(e){var t=this,n=Qk(t),r=n.resolve,i=n.reject,o=qk((function(){var n=up(t.resolve),o=[],a=0,s=1;Fm(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Qk(t),r=n.reject,i=qk((function(){var i=up(t.resolve);Fm(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var dS,pS=Nh.f,gS="".startsWith,mS=Math.min,vS=wm("startsWith"),yS=!(vS||(dS=pS(String.prototype,"startsWith"),!dS||dS.writable));qd({target:"String",proto:!0,forced:!yS&&!vS},{startsWith:function(e){var t=String(_h(this));ym(e);var n=bd(mS(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return gS?gS.call(t,r,n):t.slice(n,n+r.length)===r}});var bS,wS,kS,SS=function(e){return null!=e?e.constructor:null},ES=function(e,t){return Boolean(e&&t&&e instanceof t)},_S=function(e){return null==e},TS=function(e){return SS(e)===Object},xS=function(e){return SS(e)===String},AS=function(e){return Array.isArray(e)},OS=function(e){return ES(e,NodeList)},PS=function(e){return _S(e)||(xS(e)||AS(e)||OS(e))&&!e.length||TS(e)&&!Object.keys(e).length},CS=_S,IS=TS,jS=function(e){return SS(e)===Number&&!Number.isNaN(e)},RS=xS,LS=function(e){return SS(e)===Boolean},NS=function(e){return SS(e)===Function},MS=AS,US=OS,FS=function(e){return ES(e,Element)},DS=function(e){return ES(e,Event)},BS=function(e){return ES(e,KeyboardEvent)},qS=function(e){return ES(e,TextTrack)||!_S(e)&&xS(e.kind)},HS=function(e){if(ES(e,window.URL))return!0;if(!xS(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!PS(new URL(t).hostname)}catch(e){return!1}},VS=PS,zS=(bS=document.createElement("span"),wS={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},kS=Object.keys(wS).find((function(e){return void 0!==bS.style[e]})),!!RS(kS)&&wS[kS]);function WS(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var $S={isIE:
/* @cc_on!@ */
!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},KS=function(e){return function(t,n,r,i){up(n);var o=Vd(t),a=Eh(o),s=bd(o.length),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(i=n(i,a[c],c,o));return i}},YS={left:KS(!1),right:KS(!0)}.left,GS=Pg("reduce"),XS=yp("reduce",{1:0});function JS(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function QS(){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 IS(i)?(Object.keys(i).forEach((function(t){IS(i[t])?(Object.keys(e).includes(t)||Object.assign(e,Go({},t,{})),QS(e[t],i[t])):Object.assign(e,Go({},t,i[t]))})),QS.apply(void 0,[e].concat(n))):e}function ZS(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 eE(e,t){FS(e)&&!VS(t)&&Object.entries(t).filter((function(e){var t=Qo(e,2)[1];return!CS(t)})).forEach((function(t){var n=Qo(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function tE(e,t,n){var r=document.createElement(e);return IS(t)&&eE(r,t),RS(n)&&(r.innerText=n),r}function nE(e,t,n,r){FS(t)&&t.appendChild(tE(e,n,r))}function rE(e){US(e)||MS(e)?Array.from(e).forEach(rE):FS(e)&&FS(e.parentNode)&&e.parentNode.removeChild(e)}function iE(e){if(FS(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function oE(e,t){return FS(t)&&FS(t.parentNode)&&FS(e)?(t.parentNode.replaceChild(e,t),e):null}function aE(e,t){if(!RS(e)||VS(e))return{};var n={},r=QS({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=Qo(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":RS(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),QS(r,n)}function sE(e,t){if(FS(e)){var n=t;LS(n)||(n=!e.hidden),e.hidden=n}}function cE(e,t,n){if(US(e))return Array.from(e).map((function(e){return cE(e,t,n)}));if(FS(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function lE(e,t){return FS(e)&&e.classList.contains(t)}function uE(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function fE(e){return this.elements.container.querySelectorAll(e)}function hE(e){return this.elements.container.querySelector(e)}function dE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];FS(e)&&(e.focus({preventScroll:!0}),t&&cE(e,this.config.classNames.tabFocus))}qd({target:"Array",proto:!0,forced:!GS||!XS},{reduce:function(e){return YS(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var pE,gE={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},mE={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var r=$S.isIPhone&&n&&mE.playsinline,i=mE[e]||"html5"!==t;return{api:i,ui:i&&mE.rangeInput&&("video"!==e||!$S.isIPhone||r)}},pip:!($S.isIPhone||!NS(tE("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||tE("video").disablePictureInPicture)),airplay:NS(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(VS(e))return!1;var t=Qo(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(gE).includes(n)&&(n+='; codecs="'.concat(gE[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(pE=document.createElement("input"),pE.type="range","range"===pE.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==zS,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},vE=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 yE(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&&!VS(t)&&NS(n)){var s=t.split(" "),c=a;vE&&(c={passive:o,capture:a}),s.forEach((function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:c}),e[i?"addEventListener":"removeEventListener"](t,n,c)}))}}function bE(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];yE.call(this,e,t,n,!0,r,i)}function wE(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];yE.call(this,e,t,n,!1,r,i)}function kE(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(){wE(e,n,a,i,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];r.apply(t,c)};yE.call(this,e,n,a,!0,i,o)}function SE(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(FS(e)&&!VS(t)){var i=new CustomEvent(t,{bubbles:n,detail:Jo({},r,{plyr:this})});e.dispatchEvent(i)}}function EE(){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 _E(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):bE.call(e,e.elements.container,"ready",t)})).then((function(){}))}function TE(e){return!!(MS(e)||RS(e)&&e.includes(":"))&&(MS(e)?e:e.split(":")).map(Number).every(jS)}function xE(e){if(!MS(e)||!e.every(jS))return null;var t=Qo(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 AE(e){var t=function(e){return TE(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!VS(this.embed)&&MS(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=xE([r.videoWidth,r.videoHeight])}return n}function OE(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=AE.call(this,e),r=Qo(MS(n)?n:[0,0],2),i=100/r[0]*r[1];if(t.style.paddingBottom="".concat(i,"%"),this.isVimeo&&this.supported.ui){var o=(240-i)/4.8;this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:i,ratio:n}}var PE={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!VS(n)||mE.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:PE.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,VS(this.config.ratio)||OE.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=PE.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&&NS(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=PE.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,c=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=c,e.currentTime=i,o||e.play()})),e.media.load())}SE.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(rE(PE.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function CE(e){return MS(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}var IE=op("slice"),jE=yp("slice",{ACCESSORS:!0,0:0,1:2}),RE=Xd("species"),LE=[].slice,NE=Math.max;qd({target:"Array",proto:!0,forced:!IE||!jE},{slice:function(e,t){var n,r,i,o=Th(this),a=bd(o.length),s=Sd(e,a),c=Sd(void 0===t?a:t,a);if(Hd(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Hd(n.prototype)?xh(n)&&null===(n=n[RE])&&(n=void 0):n=void 0,n===Array||void 0===n))return LE.call(o,s,c);for(r=new(void 0===n?Array:n)(NE(c-s,0)),i=0;s<c;s++,i++)s in o&&zd(r,i,o[s]);return r.length=i,r}});var ME=Fh.f,UE=Pd.f,FE=ud.set,DE=Xd("match"),BE=dh.RegExp,qE=BE.prototype,HE=/a/g,VE=/a/g,zE=new BE(HE)!==HE,WE=im.UNSUPPORTED_Y;if(gh&&Dd("RegExp",!zE||WE||ph((function(){return VE[DE]=!1,BE(HE)!=HE||BE(VE)==VE||"/a/i"!=BE(HE,"i")})))){for(var $E=function(e,t){var n,r=this instanceof $E,i=vm(e),o=void 0===t;if(!r&&i&&e.constructor===$E&&o)return e;zE?i&&!o&&(e=e.source):e instanceof $E&&(o&&(t=nm.call(e)),e=e.source),WE&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=Mg(zE?new BE(e,t):BE(e,t),r?this:qE,$E);return WE&&n&&FE(a,{sticky:n}),a},KE=function(e){e in $E||ME($E,e,{configurable:!0,get:function(){return BE[e]},set:function(t){BE[e]=t}})},YE=UE(BE),GE=0;YE.length>GE;)KE(YE[GE++]);qE.constructor=$E,$E.prototype=qE,fd(dh,"RegExp",$E)}function XE(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 VS(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}function JE(){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())}function QE(){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.substr(1).toLowerCase()}))}function ZE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=JE(t,"-"," "),t=JE(t,"_"," "),JE(t=QE(t)," ","")}function e_(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}nk("RegExp");var t_={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},n_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(VS(e)||VS(t))return"";var n=JS(t.i18n,e);if(VS(n))return Object.keys(t_).includes(e)?t_[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=Qo(e,2),r=t[0],i=t[1];n=JE(n,r,i)})),n},r_=function(){function e(t){$o(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Yo(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(VS(n))return null;var r=JSON.parse(n);return RS(t)&&t.length?r[t]:r}},{key:"set",value:function(t){if(e.supported&&this.enabled&&IS(t)){var n=this.get();VS(n)&&(n={}),QS(n,t),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;return window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0}catch(e){return!1}}}]),e}();function i_(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 o_(e,t){if(RS(e)){var n=RS(t),r=function(){return null!==document.getElementById(t)},i=function(e,t){e.innerHTML=t,n&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!r()){var o=r_.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("".concat("cache","-").concat(t));if(null!==s){var c=JSON.parse(s);i(a,c.content)}}i_(e).then((function(e){VS(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),i(a,e))})).catch((function(){}))}}}var a_=Math.ceil,s_=Math.floor;qd({target:"Math",stat:!0},{trunc:function(e){return(e>0?s_:a_)(e)}});var c_=function(e){return Math.trunc(e/60/60%60,10)},l_=function(e){return Math.trunc(e/60%60,10)},u_=function(e){return Math.trunc(e%60,10)};function f_(){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(!jS(e))return f_(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=c_(e),o=l_(e),a=u_(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var h_={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||$S.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=hE.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:fE.call(this,this.config.selectors.buttons.play),pause:hE.call(this,this.config.selectors.buttons.pause),restart:hE.call(this,this.config.selectors.buttons.restart),rewind:hE.call(this,this.config.selectors.buttons.rewind),fastForward:hE.call(this,this.config.selectors.buttons.fastForward),mute:hE.call(this,this.config.selectors.buttons.mute),pip:hE.call(this,this.config.selectors.buttons.pip),airplay:hE.call(this,this.config.selectors.buttons.airplay),settings:hE.call(this,this.config.selectors.buttons.settings),captions:hE.call(this,this.config.selectors.buttons.captions),fullscreen:hE.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=hE.call(this,this.config.selectors.progress),this.elements.inputs={seek:hE.call(this,this.config.selectors.inputs.seek),volume:hE.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:hE.call(this,this.config.selectors.display.buffer),currentTime:hE.call(this,this.config.selectors.display.currentTime),duration:hE.call(this,this.config.selectors.display.duration)},FS(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=h_.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),i=document.createElementNS("http://www.w3.org/2000/svg","svg");eE(i,QS(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS("http://www.w3.org/2000/svg","use"),a="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.appendChild(o),i},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=n_(e,this.config),r=Jo({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return tE("span",r,n)},createBadge:function(e){if(VS(e))return null;var t=tE("span",{class:this.config.classNames.menu.value});return t.appendChild(tE("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=QS({},t),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=ZE(t)).charAt(0).toLowerCase()+t.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}))||QS(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:VS(o.label)&&(o.label=i),VS(o.icon)&&(o.icon=e)}var a=tE(o.element);return o.toggle?(a.appendChild(h_.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(h_.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(h_.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(h_.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(h_.createIcon.call(this,o.icon)),a.appendChild(h_.createLabel.call(this,o.label))),QS(r,aE(this.config.selectors.buttons[i],r)),eE(a,r),"play"===i?(MS(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=tE("input",QS(aE(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":n_(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,h_.updateRangeFill.call(this,n),Zw.setup(n),n},createProgress:function(e,t){var n=tE("progress",QS(aE(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(tE("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?n_(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=aE(this.config.selectors.display[e],t),r=tE("div",QS(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":n_(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;bE.call(this,e,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=uE(e,'[role="menuitemradio"]');if(!o&&[32,39].includes(r.which))h_.showMenuPanel.call(n,t,!0);else 32!==r.which&&(40===r.which||o&&39===r.which?(i=e.nextElementSibling,FS(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,FS(i)||(i=e.parentNode.lastElementChild)),dE.call(n,i,!0))}}),!1),bE.call(this,e,"keyup",(function(e){13===e.which&&h_.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,c=e.checked,l=void 0!==c&&c,u=aE(this.config.selectors.inputs[i]),f=tE("button",QS(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":l,value:n})),h=tE("span");h.innerHTML=o,FS(s)&&h.appendChild(s),f.appendChild(h),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 uE(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(!BS(e)||32===e.which){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)}h_.showMenuPanel.call(t,"home",BS(e))}}),i,!1),h_.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];if(!jS(e))return e;var n=c_(this.duration)>0;return f_(e,n,t)},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];FS(e)&&jS(t)&&(e.innerText=h_.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(FS(this.elements.inputs.volume)&&h_.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),FS(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;FS(e)&&(e.value=t,h_.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&DS(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&&h_.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=jS(n)?n:0,i=FS(e)?e:t.elements.display.buffer;if(FS(i)){i.value=r;var o=i.getElementsByTagName("span")[0];FS(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=DS(e)?e.target:e;if(FS(t)&&"range"===t.getAttribute("type")){if(uE(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=h_.formatTime(this.currentTime),r=h_.formatTime(this.duration),i=n_("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(uE(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);$S.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&FS(this.elements.inputs.seek)&&FS(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){return cE(t.elements.display.seekTooltip,n,e)};if(this.touch)r(!1);else{var i=0,o=this.elements.progress.getBoundingClientRect();if(DS(e))i=100/o.width*(e.pageX-o.left);else{if(!lE(this.elements.display.seekTooltip,n))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),h_.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),DS(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!FS(this.elements.display.duration)&&this.config.invertTime;h_.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||h_.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return sE(this.elements.display.currentTime,!0),void sE(this.elements.progress,!0);FS(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=FS(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&h_.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&h_.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),h_.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){sE(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=VS(n)?this[e]:n,VS(i)&&(i=this.config[e].default),!VS(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(FS(o)||(o=r&&r.querySelector('[role="menu"]')),FS(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=h_.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));FS(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?n_("normal",this.config):"".concat(t,"&times;");case"quality":if(jS(t)){var n=n_("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return QE(t);case"captions":return g_.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(FS(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');MS(e)&&(this.options.quality=CE(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!VS(this.options.quality)&&this.options.quality.length>1;if(h_.toggleMenuButton.call(this,"quality",r),iE(n),h_.checkMenu.call(this),r){var i=function(e){var n=n_("qualityBadge.".concat(e),t.config);return n.length?h_.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){h_.createMenuItem.call(t,{value:e,list:n,type:"quality",title:h_.getLabel.call(t,"quality",e),badge:i(e)})})),h_.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var e=this;if(FS(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=g_.getTracks.call(this),r=Boolean(n.length);if(h_.toggleMenuButton.call(this,"captions",r),iE(t),h_.checkMenu.call(this),r){var i=n.map((function(n,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:g_.getLabel.call(e,n),badge:n.language&&h_.createBadge.call(e,n.language.toUpperCase()),list:t,type:"language"}}));i.unshift({value:-1,checked:!this.captions.toggled,title:n_("disabled",this.config),list:t,type:"language"}),i.forEach(h_.createMenuItem.bind(this)),h_.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(){var e=this;if(FS(this.elements.settings.panels.speed)){var t=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 n=!VS(this.options.speed)&&this.options.speed.length>1;h_.toggleMenuButton.call(this,"speed",n),iE(t),h_.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){h_.createMenuItem.call(e,{value:n,list:t,type:"speed",title:h_.getLabel.call(e,"speed",n)})})),h_.updateSetting.call(this,"speed",t))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!VS(e)&&Object.values(e).some((function(e){return!e.hidden}));sE(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;FS(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');dE.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(FS(t)&&FS(n)){var r=t.hidden,i=r;if(LS(e))i=e;else if(BS(e)&&27===e.which)i=!1;else if(DS(e)){var o=NS(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),sE(t,!i),cE(this.elements.container,this.config.classNames.menu.open,i),i&&BS(e)?h_.focusFirstMenuItem.call(this,null,!0):i||r||dE.call(this,n,BS(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 rE(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(FS(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(mE.transitions&&!mE.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=h_.getMenuSize.call(this,r),s=function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",wE.call(e,i,zS,t))};bE.call(this,i,zS,s),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}sE(o,!0),sE(r,!1),h_.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;FS(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=h_.bindMenuItemShortcuts,r=h_.createButton,i=h_.createProgress,o=h_.createRange,a=h_.createTime,s=h_.setQualityMenu,c=h_.setSpeedMenu,l=h_.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=tE("div",aE(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return CE(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 c=tE("div",{class:"".concat(f.class," plyr__progress__container")}),h=tE("div",aE(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var d=tE("span",{class:t.config.classNames.tooltip},"00:00");h.appendChild(d),t.elements.display.seekTooltip=d}t.elements.progress=h,c.appendChild(t.elements.progress),u.appendChild(c)}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(FS(p)&&u.contains(p)||(p=tE("div",QS({},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&&!$S.isIos){var g={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",QS(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(r.call(t,"captions",f)),"settings"===s&&!VS(t.config.settings)){var m=tE("div",QS({},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=tE("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=tE("div"),b=tE("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=tE("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var i=tE("button",QS(aE(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),bE.call(t,i,"click",(function(){l.call(t,r,!1)}));var o=tE("span",null,n_(r,t.config)),a=tE("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=tE("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),c=tE("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});c.appendChild(tE("span",{"aria-hidden":!0},n_(r,t.config))),c.appendChild(tE("span",{class:t.config.classNames.hidden},n_("menuBack",t.config))),bE.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),l.call(t,"home",!0))}),!1),bE.call(t,c,"click",(function(){l.call(t,"home",!1)})),s.appendChild(c),s.appendChild(tE("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&&mE.pip&&u.appendChild(r.call(t,"pip",f)),"airplay"===s&&mE.airplay&&u.appendChild(r.call(t,"airplay",f)),"download"===s){var k=QS({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var S=t.config.urls.download;!HS(S)&&t.isEmbed&&QS(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",k))}"fullscreen"===s&&u.appendChild(r.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,PE.getQualityOptions.call(this)),c.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=h_.getIconUrl.call(this);t.cors&&o_(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;NS(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),FS(this.config.controls)||RS(this.config.controls)?n=this.config.controls:(n=h_.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:g_.getLabel.call(this)}),i=!1);var o,a=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=Qo(e,2),r=n[0],i=n[1];t=JE(t,"{".concat(r,"}"),i)})),t};if(i&&(RS(this.config.controls)?n=a(n):FS(n)&&(n.innerHTML=a(n.innerHTML))),RS(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),FS(o)||(o=this.elements.container),o[FS(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),FS(this.elements.controls)||h_.findElements.call(this),!VS(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return lE(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];cE(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){MS(e)||US(e)?Array.from(e).filter(Boolean).forEach(s):s(e)}))}if($S.isEdge&&WS(o),this.config.tooltips.controls){var c=this.config,l=c.classNames,u=c.selectors,f="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(l.hidden),h=fE.call(this,f);Array.from(h).forEach((function(t){cE(t,e.config.classNames.hidden,!1),cE(t,e.config.classNames.tooltip,!0)}))}}};function d_(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 p_(e){var t=new URLSearchParams;return IS(e)&&Object.entries(e).forEach((function(e){var n=Qo(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var g_={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!mE.textTracks)MS(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h_.setCaptionsMenu.call(this);else{if(FS(this.elements.captions)||(this.elements.captions=tE("div",aE(this.config.selectors.captions)),function(e,t){FS(e)&&FS(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),$S.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=d_(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&i_(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){rE(e)}))}))}var t=CE((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();if("auto"===n)n=Qo(t,1)[0];var r=this.storage.get("captions");if(LS(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";bE.call(this,this.media.textTracks,i,g_.update.bind(this))}setTimeout(g_.update.bind(this),0)}},update:function(){var e=this,t=g_.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}),t.mode="hidden",bE.call(e,t,"cuechange",(function(){return g_.updateCues.call(e)}))})),(s&&this.language!==i||!t.includes(a))&&(g_.setLanguage.call(this,i),g_.toggle.call(this,r&&s)),cE(this.elements.container,this.config.classNames.captions.enabled,!VS(t)),MS(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h_.setCaptionsMenu.call(this)},toggle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,i=CS(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){var o=g_.getTracks.call(this),a=g_.findTrack.call(this,[this.captions.language].concat(Zo(this.captions.languages)),!0);return this.captions.language=a.language,void g_.set.call(this,o.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),cE(this.elements.container,r,i),this.captions.toggled=i,h_.updateSetting.call(this,"captions"),SE.call(this,this.media,i?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=g_.getTracks.call(this);if(-1!==e)if(jS(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,h_.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),SE.call(this,this.media,"languagechange")}g_.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&g_.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else g_.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(RS(e)){var n=e.toLowerCase();this.captions.language=n;var r=g_.getTracks.call(this),i=g_.findTrack.call(this,[n]);g_.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],n=Array.from((this.media||{}).textTracks||[]);return n.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=g_.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 g_.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!qS(t)&&mE.textTracks&&this.captions.toggled&&(t=g_.getCurrentTrack.call(this)),qS(t)?VS(t.label)?VS(t.language)?n_("enabled",this.config):e.language.toUpperCase():t.label:n_("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(FS(this.elements.captions))if(CS(e)||Array.isArray(e)){var t=e;if(!t){var n=g_.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(e_)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){iE(this.elements.captions);var i=tE("span",aE(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),SE.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},m_={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.5.10/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/v2/video/{0}.json"},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",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,sidedock:!1,controls:!1,referrerPolicy:null},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},v_="picture-in-picture",y_="inline",b_={html5:"html5",youtube:"youtube",vimeo:"vimeo"},w_="audio",k_="video";var S_=function(){},E_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];$o(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Yo(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):S_}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):S_}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):S_}}]),e}(),__=function(){function e(t){var n=this;$o(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,bE.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),bE.call(this.player,this.player.elements.container,"dblclick",(function(e){FS(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()})),bE.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return Yo(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;FS(e)&&(e.pressed=this.active),SE.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",cE(this.target,this.player.config.classNames.fullscreen.fallback,e),$S.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=RS(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=",".concat(n))):this.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!$S.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=fE.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=Qo(n,1)[0],i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}}},{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");cE(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&($S.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?this.toggleFallback(!0):this.prefix?VS(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if($S.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!e.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!VS(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(!e.native||this.forceFallback?lE(this.target,this.player.config.classNames.fullscreen.fallback):(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target)}},{key:"target",get:function(){return $S.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(NS(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!NS(document["".concat(t,"ExitFullscreen")])&&!NS(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),T_=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function x_(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})}))}qd({target:"Math",stat:!0},{sign:T_});var A_={addStyleHook:function(){cE(this.elements.container,this.config.selectors.container.replace(".",""),!0),cE(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 A_.toggleNativeControls.call(this,!0);FS(this.elements.controls)||(h_.inject.call(this),this.listeners.controls()),A_.toggleNativeControls.call(this),this.isHTML5&&g_.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,h_.updateVolume.call(this),h_.timeUpdate.call(this),A_.checkPlaying.call(this),cE(this.elements.container,this.config.classNames.pip.supported,mE.pip&&this.isHTML5&&this.isVideo),cE(this.elements.container,this.config.classNames.airplay.supported,mE.airplay&&this.isHTML5),cE(this.elements.container,this.config.classNames.isIos,$S.isIos),cE(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){SE.call(e,e.media,"ready")}),0),A_.setTitle.call(this),this.poster&&A_.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&h_.durationUpdate.call(this)},setTitle:function(){var e=n_("play",this.config);if(RS(this.config.title)&&!VS(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=hE.call(this,"iframe");if(!FS(t))return;var n=VS(this.config.title)?"video":this.config.title,r=n_("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){cE(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("poster",e),this.isHTML5?Promise.resolve(e):_E.call(this).then((function(){return x_(e)})).catch((function(n){throw e===t.poster&&A_.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:""}),A_.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;cE(this.elements.container,this.config.classNames.playing,this.playing),cE(this.elements.container,this.config.classNames.paused,this.paused),cE(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",n_(t.playing?"pause":"play",t.config))})),DS(e)&&"timeupdate"===e.type||A_.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(){cE(t.elements.container,t.config.classNames.loading,t.loading),A_.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))}}},O_=function(){function e(t){$o(this,e),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Yo(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,r=e.keyCode?e.keyCode:e.which,i="keydown"===e.type,o=i&&r===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&jS(r)){if(i){var a=document.activeElement;if(FS(a)){var s=t.config.selectors.editable;if(a!==n.inputs.seek&&uE(a,s))return;if(32===e.which&&uE(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(r-48));break;case 32:case 75:o||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}}},{key:"toggleMenu",value:function(e){h_.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,cE(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var r,i=e.timeStamp-this.lastKeyDown<=20;if("focus"!==e.type||i)r=t.config.classNames.tabFocus,cE(fE.call(t,".".concat(r)),r,!1),this.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&cE(document.activeElement,t.config.classNames.tabFocus,!0)}),10)}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&yE.call(t,window,"keydown keyup",this.handleKey,e,!1),yE.call(t,document.body,"click",this.toggleMenu,e),kE.call(t,document.body,"touchstart",this.firstTouch),yE.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&bE.call(e,n.container,"keydown keyup",this.handleKey,!1),bE.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(A_.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return A_.toggleControls.call(e,!1)}),o)}));var i=function(t){if(!t)return OE.call(e);var r=n.container.getBoundingClientRect(),i=r.width,o=r.height;return OE.call(e,"".concat(i,":").concat(o))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(i,50)};bE.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var r=e.fullscreen,a=r.target,s=r.usingNative;if(a===n.container&&(e.isEmbed||!VS(e.config.ratio))){var c="enterfullscreen"===t.type,l=i(c);l.padding;!function(t,n,r){if(e.isVimeo){var i=e.elements.wrapper.firstChild,o=Qo(t,2)[1],a=Qo(AE.call(e),2),s=a[0],c=a[1];i.style.maxWidth=r?"".concat(o/c*s,"px"):null,i.style.margin=r?"0 auto":null}}(l.ratio,0,c),s||(c?bE.call(e,window,"resize",o):wE.call(e,window,"resize",o))}}))}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(bE.call(t,t.media,"timeupdate seeking seeked",(function(e){return h_.timeUpdate.call(t,e)})),bE.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return h_.durationUpdate.call(t,e)})),bE.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),bE.call(t,t.media,"progress playing seeking seeked",(function(e){return h_.updateProgress.call(t,e)})),bE.call(t,t.media,"volumechange",(function(e){return h_.updateVolume.call(t,e)})),bE.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return A_.checkPlaying.call(t,e)})),bE.call(t,t.media,"waiting canplay seeked playing",(function(e){return A_.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=hE.call(t,".".concat(t.config.classNames.video));if(!FS(r))return;bE.call(t,n.container,"click",(function(i){([n.container,r].includes(i.target)||r.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(i,t.restart,"restart"),e.proxy(i,t.play,"play")):e.proxy(i,t.togglePlay,"play")))}))}t.supported.ui&&t.config.disableContextMenu&&bE.call(t,n.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),bE.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),bE.call(t,t.media,"ratechange",(function(){h_.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),bE.call(t,t.media,"qualitychange",(function(e){h_.updateSetting.call(t,"quality",null,e.detail.quality)})),bE.call(t,t.media,"ready qualitychange",(function(){h_.setDownloadUrl.call(t)}));var i=t.config.events.concat(["keyup","keydown"]).join(" ");bE.call(t,t.media,i,(function(e){var r=e.detail,i=void 0===r?{}:r;"error"===e.type&&(i=t.media.error),SE.call(t,n.container,e.type,!0,i)}))}},{key:"proxy",value:function(e,t,n){var r=this.player,i=r.config.listeners[n],o=!0;NS(i)&&(o=i.call(r,e)),!1!==o&&NS(t)&&t.call(r,e)}},{key:"bind",value:function(e,t,n,r){var i=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,s=a.config.listeners[r],c=NS(s);bE.call(a,e,t,(function(e){return i.proxy(e,n,r)}),o&&!c)}},{key:"controls",value:function(){var e=this,t=this.player,n=t.elements,r=$S.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach((function(n){e.bind(n,"click",t.togglePlay,"play")})),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",t.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(n.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),this.bind(n.buttons.captions,"click",(function(){return t.toggleCaptions()})),this.bind(n.buttons.download,"click",(function(){SE.call(t,t.media,"download")}),"download"),this.bind(n.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),this.bind(n.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),h_.toggleMenu.call(t,e)}),null,!1),this.bind(n.buttons.settings,"keyup",(function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),h_.toggleMenu.call(t,e)):h_.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(n.settings.menu,"keydown",(function(e){27===e.which&&h_.toggleMenu.call(t,e)})),this.bind(n.inputs.seek,"mousedown mousemove",(function(e){var t=n.progress.getBoundingClientRect(),r=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",r)})),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var n=e.currentTarget,r=e.keyCode?e.keyCode:e.which;if(!BS(e)||39===r||37===r){t.lastSeekTime=Date.now();var i=n.hasAttribute("play-on-seeked"),o=["mouseup","touchend","keyup"].includes(e.type);i&&o?(n.removeAttribute("play-on-seeked"),t.play()):!o&&t.playing&&(n.setAttribute("play-on-seeked",""),t.pause())}})),$S.isIos){var i=fE.call(t,'input[type="range"]');Array.from(i).forEach((function(t){return e.bind(t,r,(function(e){return WS(e.target)}))}))}this.bind(n.inputs.seek,r,(function(e){var n=e.currentTarget,r=n.getAttribute("seek-value");VS(r)&&(r=n.value),n.removeAttribute("seek-value"),t.currentTime=r/n.max*t.duration}),"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",(function(e){return h_.updateSeekTooltip.call(t,e)})),this.bind(n.progress,"mousemove touchmove",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startMove(e)})),this.bind(n.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(n.progress,"mousedown touchstart",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startScrubbing(e)})),this.bind(n.progress,"mouseup touchend",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.endScrubbing(e)})),$S.isWebkit&&Array.from(fE.call(t,'input[type="range"]')).forEach((function(n){e.bind(n,"input",(function(e){return h_.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!FS(n.display.duration)&&this.bind(n.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,h_.timeUpdate.call(t))})),this.bind(n.inputs.volume,r,(function(e){t.volume=e.target.value}),"volume"),this.bind(n.controls,"mouseenter mouseleave",(function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type})),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(n.controls,"focusin",(function(){var r=t.config,i=t.timers;cE(n.controls,r.classNames.noTransition,!0),A_.toggleControls.call(t,!0),setTimeout((function(){cE(n.controls,r.classNames.noTransition,!1)}),0);var o=e.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return A_.toggleControls.call(t,!1)}),o)})),this.bind(n.inputs.volume,"wheel",(function(e){var n=e.webkitDirectionInvertedFromDevice,r=Qo([e.deltaX,-e.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);t.increaseVolume(a/50);var s=t.media.volume;(1===a&&s<1||-1===a&&s>0)&&e.preventDefault()}),"volume",!1)}}]),e}(),P_=op("splice"),C_=yp("splice",{ACCESSORS:!0,0:0,1:2}),I_=Math.max,j_=Math.min;qd({target:"Array",proto:!0,forced:!P_||!C_},{splice:function(e,t){var n,r,i,o,a,s,c=Vd(this),l=bd(c.length),u=Sd(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=j_(I_(vd(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Qd(c,r),o=0;o<r;o++)(a=u+o)in c&&zd(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});var R_=t((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,c=document,l=r.async,u=(r.numRetries||0)+1,f=r.before||e,h=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(h)?((s=c.createElement("link")).rel="stylesheet",s.href=d,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=c.createElement("img")).src=d:((s=c.createElement("script")).src=t,s.async=void 0===l||l),s.onload=s.onerror=s.onbeforeload=function(e){var c=e.type[0];if(o)try{s.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((i+=1)<u)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,c,e.defaultPrevented)},!1!==f(t,s)&&c.head.appendChild(s)}function s(e,n,r){var s,c;if(n&&n.trim&&(s=n),c=(s?r:n)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function l(t,n){!function(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,c=[];for(r=function(e,n,r){if("e"==n&&c.push(e),"b"==n){if(!r)return;c.push(e)}--o||t(c)},i=0;i<s;i++)a(e[i],r,n)}(e,(function(e){o(c,e),t&&o({success:t,error:n},e),i(s,e)}),c)}if(c.returnPromise)return new Promise(l);l()}return s.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,s=[],c=e.length,l=c;for(i=function(e,n){n.length&&s.push(e),--l||t(s)};c--;)o=e[c],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),s},s.done=function(e){i(e,[])},s.reset=function(){t={},n={},r={}},s.isDefined=function(e){return e in t},s}()}));function L_(e){return new Promise((function(t,n){R_(e,{success:t,error:n})}))}function N_(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,SE.call(this,this.media,e?"play":"pause"))}var M_={setup:function(){var e=this;cE(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,OE.call(e),IS(window.Vimeo)?M_.ready.call(e):L_(e.config.urls.vimeo.sdk).then((function(){M_.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=p_(QS({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),i=t.media.getAttribute("src");VS(i)&&(i=t.media.getAttribute(t.config.attributes.embed.id));var o,a=VS(o=i)?null:jS(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o,s=tE("iframe"),c=XE(t.config.urls.vimeo.iframe,a,r);s.setAttribute("src",c),s.setAttribute("allowfullscreen",""),s.setAttribute("allowtransparency",""),s.setAttribute("allow","autoplay"),VS(n.referrerPolicy)||s.setAttribute("referrerPolicy",n.referrerPolicy);var l=tE("div",{poster:t.poster,class:t.config.classNames.embedContainer});l.appendChild(s),t.media=oE(l,t.media),i_(XE(t.config.urls.vimeo.api,a),"json").then((function(e){if(!VS(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),A_.setPoster.call(t,n.href).catch((function(){}))}})),t.embed=new window.Vimeo.Player(s,{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 N_.call(t,!0),t.embed.play()},t.media.pause=function(){return N_.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var n=t.embed,r=t.media,i=t.paused,o=t.volume,a=i&&!n.hasPlayed;r.seeking=!0,SE.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 f=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return f},set:function(e){t.embed.setPlaybackRate(e).then((function(){f=e,SE.call(t,t.media,"ratechange")}))}});var h=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return h},set:function(e){t.embed.setVolume(e).then((function(){h=e,SE.call(t,t.media,"volumechange")}))}});var d=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return d},set:function(e){var n=!!LS(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){d=n,SE.call(t,t.media,"volumechange")}))}});var p,g=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return g},set:function(e){var n=LS(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){g=n}))}}),t.embed.getVideoUrl().then((function(e){p=e,h_.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return p}}),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=Qo(n,2),i=r[0],o=r[1];t.embed.ratio=[i,o],OE.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,A_.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){u=e,SE.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,SE.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,g_.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)}));g_.updateCues.call(t,r)})),t.embed.on("loaded",(function(){(t.embed.getPaused().then((function(e){N_.call(t,!e),e||SE.call(t,t.media,"playing")})),FS(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){SE.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){SE.call(t,t.media,"playing")})),t.embed.on("play",(function(){N_.call(t,!0),SE.call(t,t.media,"playing")})),t.embed.on("pause",(function(){N_.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,u=e.seconds,SE.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,SE.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&SE.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,SE.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,SE.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,SE.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,SE.call(t,t.media,"error")})),setTimeout((function(){return A_.build.call(t)}),0)}};function U_(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,SE.call(this,this.media,e?"play":"pause"))}function F_(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var D_={setup:function(){var e=this;if(cE(this.elements.wrapper,this.config.classNames.embed,!0),IS(window.YT)&&NS(window.YT.Player))D_.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){NS(t)&&t(),D_.ready.call(e)},L_(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;i_(XE(this.config.urls.youtube.api,e)).then((function(e){if(IS(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,A_.setTitle.call(t),t.embed.ratio=[i,r]}OE.call(t)})).catch((function(){OE.call(t)}))},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(VS(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");VS(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r,i,o=VS(r=n)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r,a=(i=e.provider,"".concat(i,"-").concat(Math.floor(1e4*Math.random()))),s=tE("div",{id:a,poster:e.poster});e.media=oE(s,e.media);var c=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};x_(c("maxres"),121).catch((function(){return x_(c("sd"),121)})).catch((function(){return x_(c("hq"))})).then((function(t){return A_.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}));var l=e.config.youtube;e.embed=new window.YT.Player(a,{videoId:o,host:F_(l),playerVars:QS({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},l),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 occured";e.media.error={code:n,message:r},SE.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),SE.call(e,e.media,"ratechange")},onReady:function(t){if(!NS(e.media.play)){var n=t.target;D_.getTitle.call(e,o),e.media.play=function(){U_.call(e,!0),n.playVideo()},e.media.pause=function(){U_.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,SE.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var r=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return r},set:function(t){r=t,n.setVolume(100*r),SE.call(e,e.media,"volumechange")}});var i=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return i},set:function(t){var r=LS(t)?t:i;i=r,n[r?"mute":"unMute"](),SE.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var a=n.getAvailablePlaybackRates();e.options.speed=a.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&e.media.setAttribute("tabindex",-1),SE.call(e,e.media,"timeupdate"),SE.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&SE.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),SE.call(e,e.media,"canplaythrough"))}),200),setTimeout((function(){return A_.build.call(e)}),50)}},onStateChange:function(t){var n=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,SE.call(e,e.media,"seeked")),t.data){case-1:SE.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),SE.call(e,e.media,"progress");break;case 0:U_.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):SE.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(U_.call(e,!0),SE.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){SE.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),SE.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),U_.call(e,!1);break;case 3:SE.call(e,e.media,"waiting")}SE.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},B_={setup:function(){this.media?(cE(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),cE(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&cE(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=tE("div",{class:this.config.classNames.video}),ZS(this.media,this.elements.wrapper),this.isEmbed&&(this.elements.poster=tE("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster))),this.isHTML5?PE.setup.call(this):this.isYouTube?D_.setup.call(this):this.isVimeo&&M_.setup.call(this)):this.debug.warn("No media element found!")}},q_=function(){function e(t){var n=this;$o(this,e),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 Yo(e,[{key:"load",value:function(){var e=this;this.enabled&&(IS(window.google)&&IS(window.google.ima)?this.ready():L_(this.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((function(){t.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=tE("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.requestAds()}},{key:"requestAds",value:function(){var e=this,t=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1);var n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");var n=function(){var t=f_(Math.max(e.manager.getRemainingTime(),0)),n="".concat(n_("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(n,100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=e.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return t.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return t.onAdEvent(e)}))})),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;VS(this.cuePoints)||this.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(FS(n)){var r=100/e.player.duration*t,i=tE("span",{class:e.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),n.appendChild(i)}}}))}},{key:"onAdEvent",value:function(e){var t=this,n=this.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){SE.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),r.isLinear()||(r.width=n.offsetWidth,r.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,n=this.player.elements.container;this.player.on("canplay",(function(){t.addCuePoints()})),this.player.on("ended",(function(){t.loader.contentComplete()})),this.player.on("timeupdate",(function(){e=t.player.currentTime})),this.player.on("seeked",(function(){var n=t.player.currentTime;VS(t.cuePoints)||t.cuePoints.forEach((function(r,i){e<r&&r<n&&(t.manager.discardAdBreak(),t.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(function(){t.manager&&t.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)}))}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.media.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var e=this;this.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.requestAds()})).catch((function(){}))}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];MS(o)&&o.forEach((function(e){NS(e)&&e.apply(t,r)}))}},{key:"on",value:function(e,t){return MS(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)}},{key:"clearSafetyTimer",value:function(e){CS(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!VS(e.publisherId)||HS(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(HS(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(p_(t))}}]),e}(),H_=pp.findIndex,V_=!0,z_=yp("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){V_=!1})),qd({target:"Array",proto:!0,forced:V_||!z_},{findIndex:function(e){return H_(this,e,arguments.length>1?arguments[1]:void 0)}}),Rp("findIndex");var W_=Math.min,$_=[].lastIndexOf,K_=!!$_&&1/[1].lastIndexOf(1,-0)<0,Y_=Pg("lastIndexOf"),G_=yp("indexOf",{ACCESSORS:!0,1:0}),X_=K_||!Y_||!G_?function(e){if(K_)return $_.apply(this,arguments)||0;var t=Th(this),n=bd(t.length),r=n-1;for(arguments.length>1&&(r=W_(r,vd(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:$_;qd({target:"Array",proto:!0,forced:X_!==[].lastIndexOf},{lastIndexOf:X_});var J_=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},Q_=function(){function e(t){$o(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Yo(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))}},{key:"getThumbnails",value:function(){var e=this;return new Promise((function(t){var n=e.player.config.previewThumbnails.src;if(VS(n))throw new Error("Missing previewThumbnails.src config attribute");var r=(RS(n)?[n]:n).map((function(t){return e.getThumbnail(t)}));Promise.all(r).then((function(){e.thumbnails.sort((function(e,t){return e.height-t.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()}))}))}},{key:"getThumbnail",value:function(e){var t=this;return new Promise((function(n){i_(e).then((function(r){var i,o,a={frames:(i=r,o=[],i.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var t={};e.split(/\r\n|\n|\r/).forEach((function(e){if(jS(t.startTime)){if(!VS(e.trim())&&VS(t.text)){var n=e.trim().split("#xywh="),r=Qo(n,1);if(t.text=r[0],n[1]){var i=Qo(n[1].split(","),4);t.x=i[0],t.y=i[1],t.w=i[2],t.h=i[3]}}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),t.text&&o.push(t)})),o),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var s=new Image;s.onload=function(){a.height=s.naturalHeight,a.width=s.naturalWidth,t.thumbnails.push(a),n()},s.src=a.urlPrefix+a.frames[0].text}))}))}},{key:"startMove",value:function(e){if(this.loaded&&DS(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=f_(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(CS(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):kE.call(this.player,this.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))}},{key:"listeners",value:function(){var e=this;this.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),this.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))}},{key:"render",value:function(){this.elements.thumb.container=tE("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=tE("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=tE("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=tE("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),FS(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=tE("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),n=t>=0,r=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((function(n,i){e.loadedImages.includes(n.frames[t].text)&&(r=i)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(r)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,r=this.thumbnails[t],i=r.urlPrefix,o=r.frames[n],a=r.frames[n].text,s=i+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,o,t,n,a,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var c=new Image;c.src=s,c.dataset.index=n,c.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log("Loading image: ".concat(s)),c.onload=function(){return e.showImage(c,o,t,n,a,!0)},this.loadingImage=c,this.removeOldImages(c)}}},{key:"showImage",value:function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(i,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach((function(n){if("img"===n.tagName.toLowerCase()){var r=t.usingSprites?500:1e3;if(n.dataset.index!==e.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var i=t.currentImageContainer;setTimeout((function(){i.removeChild(n),t.player.debug.log("Removing thumb: ".concat(n.dataset.filename))}),r)}}}))}},{key:"preloadNearby",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var i=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===i){var o;o=n?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var n=e.text;if(n!==i&&!t.loadedImages.includes(n)){a=!0,t.player.debug.log("Preloading thumb filename: ".concat(n));var o=t.thumbnails[0].urlPrefix+n,s=new Image;s.src=o,s.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(n)),t.loadedImages.includes(n)||t.loadedImages.push(n),r()}}})),a||r()}}),300)}))}},{key:"getHigherQuality",value:function(e,t,n,r){var i=this;if(e<this.thumbnails.length-1){var o=t.naturalHeight;this.usingSprites&&(o=n.h),o<this.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))}),300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>i&&(o=i),n.style.left="".concat(o,"px")}},{key:"setScrubbingContainerSize",value:function(){var e=J_(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),t=e.width,n=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(e.naturalWidth*n,"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}},{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?J_(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}(),Z_={insertElements:function(e,t){var n=this;RS(t)?nE(e,this.media,{src:t}):MS(t)&&t.forEach((function(t){nE(e,n.media,t)}))},change:function(e){var t=this;JS(e,"sources.length")?(PE.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],rE(t.media),t.media=null,FS(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=Qo(n,1)[0],o=i.provider,a=void 0===o?b_.html5:o,s=i.src,c="html5"===a?r:"div",l="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:mE.check(r,a,t.config.playsinline),media:tE(c,l)}),t.elements.container.appendChild(t.media),LS(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),VS(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","")),A_.addStyleHook.call(t),t.isHTML5&&Z_.insertElements.call(t,"source",n),t.config.title=e.title,B_.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&Z_.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&A_.build.call(t),t.isHTML5&&t.media.load(),VS(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 Q_(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var eT,tT=function(){function e(t,n){var r=this;if($o(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=mE.touch,this.media=t,RS(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||US(this.media)||MS(this.media))&&(this.media=this.media[0]),this.config=QS({},m_,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container: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 E_(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",mE),!CS(this.media)&&FS(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(mE.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"),FS(a)){if(s=d_(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?b_.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?b_.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var c=["1","true"];c.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.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(VS(this.provider)||!Object.keys(b_).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=k_;break;case"video":case"audio":this.type=o,this.provider=b_.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=mE.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new O_(this),this.storage=new r_(this),this.media.plyr=this,FS(this.elements.container)||(this.elements.container=tE("div",{tabindex:0}),ZS(this.media,this.elements.container)),A_.addStyleHook.call(this),B_.setup.call(this),this.config.debug&&bE.call(this,this.elements.container,this.config.events.join(" "),(function(e){r.debug.log("event: ".concat(e.type))})),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&A_.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new __(this),this.config.ads.enabled&&(this.ads=new q_(this)),this.isHTML5&&this.config.autoplay&&setTimeout((function(){return r.play()}),10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Q_(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 Yo(e,[{key:"play",value:function(){var e=this;return NS(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((function(){return e.ads.play()})).catch((function(){return e.media.play()})),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&NS(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(LS(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):NS(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=jS(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=jS(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(jS(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){g_.toggle.call(this,e,!1)}},{key:"airplay",value:function(){mE.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=lE(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=cE(this.elements.container,this.config.classNames.hideControls,n);if(r&&this.config.controls.includes("settings")&&!VS(this.config.settings)&&h_.toggleMenu.call(this,!1),r!==t){var i=r?"controlshidden":"controlsshown";SE.call(this,this.media,i)}return!r}return!1}},{key:"on",value:function(e,t){bE.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){kE.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){wE(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var r=function(){document.body.style.overflow="",t.embed=null,n?(Object.keys(t.elements).length&&(rE(t.elements.buttons.play),rE(t.elements.captions),rE(t.elements.controls),rE(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),NS(e)&&e()):(EE.call(t),oE(t.elements.original,t.elements.container),SE.call(t,t.elements.original,"destroyed",!0),NS(e)&&e.call(t.elements.original),t.ready=!1,setTimeout((function(){t.elements=null,t.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(A_.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&NS(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200))}}},{key:"supports",value:function(e){return mE.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===b_.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===b_.youtube}},{key:"isVimeo",get:function(){return this.provider===b_.vimeo}},{key:"isVideo",get:function(){return this.type===k_}},{key:"isAudio",get:function(){return this.type===w_}},{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=jS(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 jS(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=jS(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;RS(t)&&(t=Number(t)),jS(t)||(t=this.storage.get("volume")),jS(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!VS(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;LS(t)||(t=this.storage.get("muted")),LS(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;jS(e)&&(n=e),jS(n)||(n=this.storage.get("speed")),jS(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=function(){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)}(n,r,i),this.config.speed.selected=n,setTimeout((function(){t.media.playbackRate=n}),0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Zo(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Zo(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=[!VS(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(jS),i=!0;if(!n.includes(r)){var o=function(e,t){return MS(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}(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=LS(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){Z_.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return HS(e)?e:this.source},set:function(e){HS(e)&&(this.config.urls.download=e,h_.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?A_.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"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=xE(AE.call(this));return MS(e)?e.join(":"):e},set:function(e){this.isVideo?RS(e)&&TE(e)?(this.config.ratio=e,OE.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){var t=LS(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){g_.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){g_.setLanguage.call(this,e,!1)},get:function(){return(g_.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(mE.pip){var t=LS(e)?e:!this.pip;NS(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?v_:y_),NS(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return mE.pip?VS(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===v_:null}}],[{key:"supported",value:function(e,t,n){return mE.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return o_(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return RS(t)?r=Array.from(document.querySelectorAll(t)):US(t)?r=Array.from(t):MS(t)&&(r=t.filter(FS)),VS(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();tT.defaults=(eT=m_,JSON.parse(JSON.stringify(eT)));var nT,rT,iT={video:{type:"video",title:"View From A Blue Moon",sources:[{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",type:"video/mp4",size:576},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4",type:"video/mp4",size:720},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4",type:"video/mp4",size:1080},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1440p.mp4",type:"video/mp4",size:1440}],poster:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt",default:!0},{kind:"captions",label:"French",srclang:"fr",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"}]},audio:{type:"audio",title:"Kishi Bashi &ndash; &ldquo;It All Began With A Burst&rdquo;",sources:[{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3",type:"audio/mp3"},{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg",type:"audio/ogg"}]},youtube:{type:"video",sources:[{src:"https://youtube.com/watch?v=bTqVqk7FSmY",provider:"youtube"}]},vimeo:{type:"video",sources:[{src:"https://vimeo.com/40648169",provider:"vimeo"}]}},oT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.classList[n?"add":"remove"](t)};nT=window.location.host,rT={prod:"plyr.io"===nT,dev:"dev.plyr.io"===nT},document.addEventListener("DOMContentLoaded",(function(){hf.context((function(){fh.setup(".js-shr",{count:{className:"button__count"},wrapper:{className:"button--with-count"}});var e=new tT("#player",{debug:!0,title:"View From A Blue Moon",iconUrl:"dist/demo.svg",keyboard:{global:!0},tooltips:{controls:!0},captions:{active:!0},ads:{enabled:rT.prod||rT.dev,publisherId:"918848828995742"},previewThumbnails:{enabled:!0,src:["https://cdn.plyr.io/static/demo/thumbs/100p.vtt","https://cdn.plyr.io/static/demo/thumbs/240p.vtt"]},vimeo:{referrerPolicy:"no-referrer"}});window.player=e;var t=document.querySelectorAll("[data-source]"),n=Object.keys(iT),r=Boolean(window.history&&window.history.pushState),i=window.location.hash.substring(1),o=!i.length;function a(e){Array.from(t).forEach((function(e){return oT(e.parentElement,"active",!1)})),oT(document.querySelector('[data-source="'.concat(e,'"]')),"active",!0),Array.from(document.querySelectorAll(".plyr__cite")).forEach((function(e){e.hidden=!0})),document.querySelector(".plyr__cite--".concat(e)).hidden=!1}function s(t,r){!n.includes(t)||!r&&t===i||!i.length&&"video"===t||(e.source=iT[t],i=t,a(t))}Array.from(t).forEach((function(e){e.addEventListener("click",(function(){var t=e.getAttribute("data-source");s(t),r&&window.history.pushState({type:t},"","#".concat(t))}))})),window.addEventListener("popstate",(function(e){e.state&&Object.keys(e.state).includes("type")&&s(e.state.type)})),o&&(i="video"),r&&n.includes(i)&&window.history.replaceState({type:i},"",o?"":"#".concat(i)),"video"!==i&&s(i,!0),a(i)}))})),rT.prod&&hf.config("https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555").install()}();
//# sourceMappingURL=demo.min.js.map