Privacy Policy

Welcome to our Privacy Policy
— Your privacy is critically important to us.
Color Intelligence llc is located at:
Color Intelligence llc

12655 W Jefferson Blvd Suite 400 CA, United States 3102207509

It is Color Intelligence llc policy to respect your privacy regarding any information we may collect while operating our website. This Privacy Policy applies to www.Colour.Training (hereinafter, “us”, “we”, or “www.Colour.Training”). We respect your privacy and are committed to protecting personally identifiable information you may provide us through the Website. We have adopted this privacy policy (“Privacy Policy”) to explain what information may be collected on our Website, how we use this information, and under what circumstances we may disclose the information to third parties. This Privacy Policy applies only to information we collect through the Website and does not apply to our collection of information from other sources.
This Privacy Policy, together with the Terms and conditions posted on our Website, set forth the general rules and policies governing your use of our Website. Depending on your activities when visiting our Website, you may be required to agree to additional terms and conditions.

– Website Visitors
Like most website operators, Color Intelligence llc collects non-personally-identifying information of the sort that web browsers and servers typically make available, such as the browser type, language preference, referring site, and the date and time of each visitor request. Color Intelligence llc purpose in collecting non-personally identifying information is to better understand how Color Intelligence llc visitors use its website. From time to time, Color Intelligence llc may release non-personally-identifying information in the aggregate, e.g., by publishing a report on trends in the usage of its website.
Color Intelligence llc also collects potentially personally-identifying information like Internet Protocol (IP) addresses for logged in users and for users leaving comments on http://www.Colour.Training blog posts.Color Intelligence llc only discloses logged in user and commenter IP addresses under the same circumstances that it uses and discloses personally-identifying information as described below.
– Gathering of Personally-Identifying Information
Certain visitors to Color Intelligence llc websites choose to interact with Color Intelligence llc in ways that require Color Intelligence llc to gather personally-identifying information. The amount and type of information that Color Intelligence llc gathers depends on the nature of the interaction. For example, we ask visitors who sign up for a blog at http://www.Colour.Training to provide a username and email address
– Security
The security of your Personal Information is important to us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While we strive to use commercially acceptable means to protect your Personal Information, we cannot guarantee its absolute security.
– Advertisements Ads appearing on our website may be delivered to users by advertising partners, who may set cookies. These cookies allow the ad server to recognize your computer each time they send you an online advertisement to compile information about you or others who use your computer. This information allows ad networks to, among other things, deliver targeted advertisements that they believe will be of most interest to you. This Privacy Policy covers the use of cookies by Color Intelligence llc and does not cover the use of cookies by any advertisers.
– Links To External Sites Our Service may contain links to external sites that are not operated by us. If you click on a third party link, you will be directed to that third party’s site. We strongly advise you to review the Privacy Policy and terms and conditions of every site you visit. We have no control over, and assume no responsibility for the content, privacy policies or practices of any third party sites, products or services.
– Protection of Certain Personally-Identifying Information Color Intelligence llc discloses potentially personally-identifying and personally-identifying information only to those of its employees, contractors and affiliated organizations that
(i) need to know that information in order to process it on Color Intelligence llc’s behalf or to provide services available at Color Intelligence llc’s website, and
(ii) that have agreed not to disclose it to others. Some of those employees, contractors and affiliated organizations may be located outside of your home country; by using Color Intelligence llc’s website, you consent to the transfer of such information to them. Color Intelligence llc will not rent or sell potentially personally-identifying and personally-identifying information to anyone. Other than to its employees, contractors and affiliated organizations, as described above, Color Intelligence llc discloses potentially personally-identifying and personally-identifying information only in response to a subpoena, court order or other governmental request, or when Color Intelligence llc believes in good faith that disclosure is reasonably necessary to protect the property or rights of Color Intelligence llc, third parties or the public at large.
If you are a registered user of http://www.Colour.Training and have supplied your email address, Color Intelligence llc may occasionally send you an email to tell you about new features, solicit your feedback, or just keep you up to date with what’s going on with Color Intelligence llc and our products. We primarily use our blog to communicate this type of information, so we expect to keep this type of email to a minimum. If you send us a request (for example via a support email or via one of our feedback mechanisms), we reserve the right to publish it in order to help us clarify or respond to your request or to help us support other users. Color Intelligence llc takes all measures reasonably necessary to protect against the unauthorized access, use, alteration or destruction of potentially personally-identifying and personally-identifying information.
– Aggregated Statistics Color Intelligence llc may collect statistics about the behavior of visitors to its website. Color Intelligence llc may display this information publicly or provide it to others. However, Color Intelligence llc does not disclose your personally-identifying information.
– Cookies To enrich and perfect your online experience, Color Intelligence llc uses “Cookies”, similar technologies and services provided by others to display personalized content, appropriate advertising and store your preferences on your computer.
A cookie is a string of information that a website stores on a visitor’s computer, and that the visitor’s browser provides to the website each time the visitor returns. Color Intelligence llc uses cookies to help Color Intelligence llc identify and track visitors, their usage of http://www.Colour.Training, and their website access preferences. Color Intelligence llc visitors who do not wish to have cookies placed on their computers should set their browsers to refuse cookies before using Color Intelligence llc’s websites, with the drawback that certain features of Color Intelligence llc’s websites may not function properly without the aid of cookies. By continuing to navigate our website without changing your cookie settings, you hereby acknowledge and agree to Color Intelligence llc’s use of cookies.
– E-commerce Those who engage in transactions with Color Intelligence llc – by purchasing Color Intelligence llc’s services or products, are asked to provide additional information, including as necessary the personal and financial information required to process those transactions. In each case, Color Intelligence llc collects such information only insofar as is necessary or appropriate to fulfill the purpose of the visitor’s interaction with Color Intelligence llc. Color Intelligence llc does not disclose personally-identifying information other than as described below. And visitors can always refuse to supply personally-identifying information, with the caveat that it may prevent them from engaging in certain website-related activities.
– Credit & Contact Information This privacy policy was created at http://termsandconditionstemplate.com/privacy-policy-generator/. If you have any questions about this Privacy Policy, please contact us via or phone.
"}var d,i=a(7),h=a(124),g=a(42),j=a(39),k=a(69),l=a(35),e=a(38)("IE_PROTO"),b=function(){var a,c,e;try{d=document.domain&&new ActiveXObject("htmlfile")}catch(a){}b=d?function(a){a.write(f("")),a.close();var b=a.parentWindow.Object;return a=null,b}(d):((c=l("iframe")).style.display="none",k.appendChild(c),c.src=String("javascript:"),(a=c.contentWindow.document).open(),a.write(f("document.F=Object")),a.close(),a.F);for(e=g.length;e--;)delete b.prototype[g[e]];return b()};j[e]=!0,m.exports=Object.create||function(d,f){var a;return null!==d?(c.prototype=i(d),a=new c,c.prototype=null,a[e]=d):a=b(),void 0===f?a:h(a,f)}},function(a,d,b){var c=b(16);a.exports=c("document","documentElement")},function(c,g,b){var d=b(45),a=b(13),e=b(2)("toStringTag"),f="Arguments"==a(function(){return arguments}());c.exports=d?a:function(c){var b,d,g;return void 0===c?"Undefined":null===c?"Null":"string"==typeof(d=function(a,b){try{return a[b]}catch(a){}}(b=Object(c),e))?d:f?a(b):"Object"==(g=a(b))&&"function"==typeof b.callee?"Arguments":g}},function(q,r,a){"use strict";function j(){return this}var p=a(11),o=a(133),g=a(73),h=a(135),n=a(46),k=a(12),m=a(15),l=a(2),d=a(17),i=a(19),f=a(72),e=f.IteratorPrototype,c=f.BUGGY_SAFARI_ITERATORS,b=l("iterator");q.exports=function(y,r,x,D,q,C,A){o(x,r,D);function u(b){if(b===q&&l)return l;if(!c&&b in a)return a[b];switch(b){case"keys":case"values":case"entries":return function(){return new x(this,b)}}return function(){return new x(this)}}var f,t,v,z=r+" Iterator",w=!1,a=y.prototype,s=a[b]||a["@@iterator"]||q&&a[q],l=!c&&s||u(q),B="Array"==r&&a.entries||s;if(B&&(f=g(B.call(new y)),e!==Object.prototype&&f.next&&(d||g(f)===e||(h?h(f,e):"function"!=typeof f[b]&&k(f,b,j)),n(f,z,!0,!0),d&&(i[z]=j))),"values"==q&&s&&"values"!==s.name&&(w=!0,l=function(){return s.call(this)}),d&&!A||a[b]===l||k(a,b,l),i[r]=l,q)if(t={values:u("values"),keys:C?l:u("keys"),entries:u("entries")},A)for(v in t)!c&&!w&&v in a||m(a,v,t[v]);else p({target:r,proto:!0,forced:c||w},t);return t}},function(l,m,b){"use strict";var a,e,f,c=b(73),h=b(12),i=b(5),j=b(2),k=b(17),d=j("iterator"),g=!1;[].keys&&("next"in(f=[].keys())?(e=c(c(f)))!==Object.prototype&&(a=e):g=!0),null==a&&(a={}),k||i(a,d)||h(a,d,function(){return this}),l.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:g}},function(c,i,a){var d=a(5),e=a(43),f=a(38),g=a(134),b=f("IE_PROTO"),h=Object.prototype;c.exports=g?Object.getPrototypeOf:function(a){return a=e(a),d(a,b)?a[b]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?h:null}},function(a,d,b){var c=b(1);a.exports=c.Promise},function(c,j,a){function b(a,b){this.stopped=a,this.result=b}var e=a(7),f=a(144),g=a(40),d=a(44),h=a(145),i=a(146);(c.exports=function(c,t,s,m,r){var k,n,j,p,a,q,l,o=d(t,s,m?2:1);if(r)k=c;else{if("function"!=typeof(n=h(c)))throw TypeError("Target is not iterable");if(f(n)){for(j=0,p=g(c.length);j',b)}return d.defaults={},n(d.prototype,{spin:function(h){this.stop();var k,i,n,j,g,l,m,d=this,b=d.opts,f=d.el=c(null,{className:b.className});return a(f,{position:b.position,width:0,zIndex:b.zIndex,left:b.left,top:b.top}),h&&h.insertBefore(f,h.firstChild||null),f.setAttribute("role","progressbar"),d.lines(f,d.opts),e||(i=0,n=(b.lines-1)*(1-b.direction)/2,j=b.fps,g=j/b.speed,l=(1-b.opacity)/(g*b.trail/100),m=g/b.lines,function c(){i++;for(var a=0;a>1)+"px"})}for(;h>1,filter:g}),h("fill",{color:k(c.color,d),opacity:c.opacity}),h("stroke",{opacity:0}))))}if(c.shadow)for(d=1;d<=c.lines;d++)l(d,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(d=1;d<=c.lines;d++)l(d);return b(m,j)},d.prototype.opacity=function(d,c,e,b){var a=d.firstChild;b=b.shadow&&b.lines||0,a&&c+b=c.length?{value:void 0,done:!0}:(a=e(c,f),b.index+=a.length,{value:a,done:!1})})},function(c,f,a){function b(a){return function(j,i){var f,g,c=String(e(j)),b=d(i),h=c.length;return b<0||h<=b?a?"":void 0:(f=c.charCodeAt(b))<55296||56319=c.length?{value:b.target=void 0,done:!0}:"keys"==d?{value:a,done:!1}:"values"==d?{value:c[a],done:!1}:{value:[a,c[a]],done:!1}},"values"),d.Arguments=d.Array,b("keys"),b("values"),b("entries")},function(ad,ae,a){"use strict";function w(a){var b;return!(!K(a)||"function"!=typeof(b=a.then))&&b}function t(c,a,d){var b;a.notified||(a.notified=!0,b=a.reactions,E(function(){for(var j=a.value,m=1==a.state,k=0,f,o,l,e,i,n,h,g;b.length>k;){e=b[k++],i=m?e.ok:e.fail,n=e.resolve,h=e.reject,g=e.domain;try{i?(m||(2===a.rejection&&$(c,a),a.rejection=1),!0===i?f=j:(g&&g.enter(),f=i(j),g&&(g.exit(),l=!0)),f===e.promise?h(x("Promise-chain cycle")):(o=w(f))?o.call(f,n,h):n(f)):h(j)}catch(a){g&&!l&&g.exit(),h(a)}}a.reactions=[],a.notified=!1,d&&!a.rejection&&ab(c,a)}))}function I(b,e,c){var a,f;U?((a=r.createEvent("Event")).promise=e,a.reason=c,a.initEvent(b,!1,!0),d.dispatchEvent(a)):a={promise:e,reason:c},(f=d["on"+b])?f(a):"unhandledrejection"===b&&ac("Unhandled promise rejection",c)}function e(a,b,c,d){return function(e){a(b,c,e,d)}}function g(c,a,d,b){a.done||(a.done=!0,b&&(a=b),a.value=d,a.state=2,t(c,a,!0))}var o,D,u,G,h=a(11),l=a(17),d=a(1),y=a(16),m=a(74),_=a(15),Z=a(141),X=a(46),W=a(142),K=a(6),s=a(18),T=a(143),S=a(13),P=a(37),A=a(75),M=a(147),O=a(76),J=a(77).set,E=a(148),F=a(80),ac=a(149),H=a(47),p=a(81),n=a(24),V=a(64),L=a(2),B=a(150),N=L("species"),c="Promise",z=n.get,Q=n.set,R=n.getterFor(c),b=m,x=d.TypeError,r=d.document,k=d.process,v=y("fetch"),f=H.f,Y=f,j="process"==S(k),U=!!(r&&r.createEvent&&d.dispatchEvent),i=V(c,function(){if(P(b)===String(b)){if(66===B)return!0;if(!j&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!b.prototype.finally)return!0;if(51<=B&&/native code/.test(b))return!1;function a(a){a(function(){},function(){})}var c=b.resolve(1);return(c.constructor={})[N]=a,!(c.then(function(){})instanceof a)}),aa=i||!M(function(a){b.all(a).catch(function(){})}),ab=function(b,a){J.call(d,function(){var c,d=a.value;if(C(a)&&(c=p(function(){j?k.emit("unhandledRejection",d,b):I("unhandledrejection",b,d)}),a.rejection=j||C(a)?2:1,c.error))throw c.value})},C=function(a){return 1!==a.rejection&&!a.parent},$=function(a,b){J.call(d,function(){j?k.emit("rejectionHandled",a):I("rejectionhandled",a,b.value)})},q=function(b,a,c,d){if(!a.done){a.done=!0,d&&(a=d);try{if(b===c)throw x("Promise can't be resolved itself");var f=w(c);f?E(function(){var d={done:!1};try{f.call(c,e(q,b,d,a),e(g,b,d,a))}catch(c){g(b,d,c,a)}}):(a.value=c,a.state=1,t(b,a,!1))}catch(c){g(b,{done:!1},c,a)}}};i&&(b=function(d){T(this,b,c),s(d),o.call(this);var a=z(this);try{d(e(q,this,a),e(g,this,a))}catch(b){g(this,a,b)}},(o=function(a){Q(this,{type:c,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Z(b.prototype,{then:function(d,e){var c=R(this),a=f(O(this,b));return a.ok="function"!=typeof d||d,a.fail="function"==typeof e&&e,a.domain=j?k.domain:void 0,c.parent=!0,c.reactions.push(a),0!=c.state&&t(this,c,!1),a.promise},catch:function(a){return this.then(void 0,a)}}),D=function(){var a=new o,b=z(a);this.promise=a,this.resolve=e(q,a,b),this.reject=e(g,a,b)},H.f=f=function(a){return a===b||a===u?new D:Y(a)},l||"function"!=typeof m||(G=m.prototype.then,_(m.prototype,"then",function(a,c){var d=this;return new b(function(a,b){G.call(d,a,b)}).then(a,c)},{unsafe:!0}),"function"==typeof v&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(a){return F(b,v.apply(d,arguments))}}))),h({global:!0,wrap:!0,forced:i},{Promise:b}),X(b,c,!1,!0),W(c),u=y(c),h({target:c,stat:!0,forced:i},{reject:function(b){var a=f(this);return a.reject.call(void 0,b),a.promise}}),h({target:c,stat:!0,forced:l||i},{resolve:function(a){return F(l&&this===u?b:this,a)}}),h({target:c,stat:!0,forced:aa},{all:function(g){var a=this,b=f(a),c=b.resolve,d=b.reject,e=p(function(){var f=s(a.resolve),b=[],h=0,e=1;A(g,function(i){var j=h++,g=!1;b.push(void 0),e++,f.call(a,i).then(function(a){g||(g=!0,b[j]=a,--e||c(b))},d)}),--e||c(b)});return e.error&&d(e.value),b.promise},race:function(e){var a=this,b=f(a),c=b.reject,d=p(function(){var d=s(a.resolve);A(e,function(e){d.call(a,e).then(b.resolve,c)})});return d.error&&c(d.value),b.promise}})},function(a,d,b){var c=b(15);a.exports=function(a,b,e){for(var d in b)c(a,d,b[d],e);return a}},function(c,h,a){"use strict";var d=a(16),e=a(14),f=a(2),g=a(8),b=f("species");c.exports=function(c){var a=d(c),f=e.f;g&&a&&!a[b]&&f(a,b,{configurable:!0,get:function(){return this}})}},function(a,b){a.exports=function(a,c,b){if(!(a instanceof c))throw TypeError("Incorrect "+(b?b+" ":"")+"invocation");return a}},function(b,g,a){var c=a(2),d=a(19),e=c("iterator"),f=Array.prototype;b.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)}},function(b,f,a){var c=a(70),d=a(19),e=a(2)("iterator");b.exports=function(a){if(null!=a)return a[e]||a["@@iterator"]||d[c(a)]}},function(b,d,c){var a=c(7);b.exports=function(c,d,b,f){try{return f?d(a(b)[0],b[1]):d(b)}catch(b){var e=c.return;throw void 0!==e&&a(e.call(c)),b}}},function(f,g,d){var b=d(2)("iterator"),c=!1,e,a;try{e=0,a={next:function(){return{done:!!e++}},return:function(){c=!0}},a[b]=function(){return this},Array.from(a,function(){throw 2})}catch(a){}f.exports=function(e,f){var a,d;if(!f&&!c)return!1;a=!1;try{d={},d[b]=function(){return{next:function(){return{done:a=!0}}}},e(d)}catch(a){}return a}},function(u,v,d){var e,a,c,g,h,i,j,l,b=d(1),t=d(31).f,s=d(13),r=d(77).set,q=d(78),o=b.MutationObserver||b.WebKitMutationObserver,f=b.process,k=b.Promise,m="process"==s(f),n=t(b,"queueMicrotask"),p=n&&n.value;p||(e=function(){var b,d;for(m&&(b=f.domain)&&b.exit();a;){d=a.fn,a=a.next;try{d()}catch(b){throw a?g():c=void 0,b}}c=void 0,b&&b.enter()},g=m?function(){f.nextTick(e)}:o&&!q?(h=!0,i=document.createTextNode(""),new o(e).observe(i,{characterData:!0}),function(){i.data=h=!h}):k&&k.resolve?(j=k.resolve(void 0),l=j.then,function(){l.call(j,e)}):function(){r.call(b,e)}),u.exports=p||function(d){var b={fn:d,next:void 0};c&&(c.next=b),a||(a=b,g()),c=b}},function(a,d,b){var c=b(1);a.exports=function(b,d){var a=c.console;a&&a.error&&(1===arguments.length?a.error(b):a.error(b,d))}},function(i,j,e){var a,b,h=e(1),c=e(79),d=h.process,f=d&&d.versions,g=f&&f.v8;g?b=(a=g.split("."))[0]+a[1]:c&&(!(a=c.match(/Edge\/(\d+)/))||74<=a[1])&&(a=c.match(/Chrome\/(\d+)/))&&(b=a[1]),i.exports=b&&+b},function(g,h,a){"use strict";var d=a(11),e=a(18),f=a(47),b=a(81),c=a(75);d({target:"Promise",stat:!0},{allSettled:function(i){var a=this,d=f.f(a),g=d.resolve,j=d.reject,h=b(function(){var f=e(a.resolve),b=[],h=0,d=1;c(i,function(i){var e=h++,c=!1;b.push(void 0),d++,f.call(a,i).then(function(a){c||(c=!0,b[e]={status:"fulfilled",value:a},--d||g(b))},function(a){c||(c=!0,b[e]={status:"rejected",reason:a},--d||g(b))})}),--d||g(b)});return h.error&&j(h.value),d.promise}})},function(j,k,a){"use strict";var h=a(11),f=a(17),b=a(74),e=a(4),c=a(16),g=a(76),d=a(80),i=a(15);h({target:"Promise",proto:!0,real:!0,forced:!!b&&e(function(){b.prototype.finally.call({then:function(){}},function(){})})},{finally:function(a){var b=g(this,c("Promise")),e="function"==typeof a;return this.then(e?function(c){return d(b,a()).then(function(){return c})}:a,e?function(c){return d(b,a()).then(function(){throw c})}:a)}}),f||"function"!=typeof b||b.prototype.finally||i(b.prototype,"finally",c("Promise").prototype.finally)},function(b,a,c){"use strict",Object.defineProperty(a,"__esModule",{value:!0}),a.getDataset=function(b){var a={};return[].forEach.call(b.attributes,function(b){var c;/^data-/.test(b.name)&&(c=b.name.substr(5).replace(/-(.)/g,function(b,a){return a.toUpperCase()}),a[c]=b.value)}),a},a.sanitizePopupAttributes=function(a){var c,d,b={},e;return a.mode&&(b.mode=(c=a.mode,(d=[{id:"1",mode:"popup"},{id:"2",mode:"drawer_left"},{id:"3",mode:"drawer_right"}].find(function(a){return a.id===c}))?d.mode:c)),e=parseInt(a.submitCloseDelay,10),a.submitCloseDelay&&0<=e&&(b.autoClose=e),""!==a.autoOpen&&"true"!==a.autoOpen||(b.autoOpen=!0),""!==a.hideHeaders&&"true"!==a.hideHeaders||(b.hideHeaders=!0),""!==a.hideFooter&&"true"!==a.hideFooter||(b.hideFooter=!0),""!==a.hideScrollbars&&"true"!==a.hideScrollbars||(b.hideScrollbars=!0),b},a.sanitizeWidgetAttributes=function(a){var b={},c;return""!==a.hideHeaders&&"true"!==a.hideHeaders||(b.hideHeaders=!0),""!==a.hideFooter&&"true"!==a.hideFooter||(b.hideFooter=!0),""!==a.hideScrollbars&&"true"!==a.hideScrollbars||(b.hideScrollbars=!0),c=parseInt(a.transparency,10),a.transparency&&0<=c&&c<=100&&(b.opacity=100-c),a.buttonText&&(b.buttonText=a.buttonText),b}},function(s,q,c){"use strict";var o,n,j,h,i,e,k,l,m,d,b,a,p;c.r(q);function r(v){function t(c,b,h){var f=b.trim().split(D),g=(b=f).length,e=c.length,a,i,d;switch(e){case 0:case 1:a=0;for(c=0===e?"":c[0]+" ";a css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"),k.call(this,void 0===this?b():b(this.mergedProps,this.context),g);if(c=b.toString(),"NO_COMPONENT_SELECTOR"===c)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");return c;case"object":return function(b){if(l.has(b))return l.get(b);var c="";return Array.isArray(b)?b.forEach(function(a){c+=k.call(this,a,!1)},this):Object.keys(b).forEach(function(f){if("object"!=typeof b[f])void 0!==a.registered[b[f]]?c+=f+"{"+a.registered[b[f]]+"}":c+=e(f)+":"+d(f,b[f])+";";else{if("NO_COMPONENT_SELECTOR"===f)throw new Error("Component selectors can only be used in conjunction with babel-plugin-emotion.");Array.isArray(b[f])&&"string"==typeof b[f][0]&&void 0===a.registered[b[f][0]]?b[f].forEach(function(a){c+=e(f)+":"+d(f,a)+";"}):c+=f+"{"+k.call(this,b[f],!1)+"}"}},this),l.set(b,c),c}.call(this,b);default:return f=a.registered[b],!1===g&&void 0!==f?f:b}}function q(b){var e=!0,a="",f="",d,g,c;null==b||void 0===b.raw?(e=!1,a+=k.call(this,b,!1)):a+=b[0];for(d=arguments.length,g=new Array(1>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(d=1540483477*(65535&(d^=d>>>24))+((1540483477*(d>>>16)&65535)<<16)),e-=4,++c;switch(e){case 3:a^=(255&b.charCodeAt(c+2))<<16;case 2:a^=(255&b.charCodeAt(c+1))<<8;case 1:a=1540483477*(65535&(a^=255&b.charCodeAt(c)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(b+a)+a},x=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g,o=function(a,b){return y(a.replace(x,function(a){return n=a,""}),b)},z=j;function v(b,c){void 0===a.inserted[i]&&(m="",j(b,c),a.inserted[i]=m)}j=function(a,b){z(a,b),n=""};function B(){var c=q.apply(this,arguments),b=g+"-"+i;return void 0===a.registered[b]&&(a.registered[b]=t),v("."+b,c),b}function D(c,d){var b="";return d.split(" ").forEach(function(d){void 0!==a.registered[d]?c.push(d):b+=d+" "}),b}function E(b,c){var a=[],d=D(a,b);return a.length<2?b:d+B(a,c)}function F(b){a.inserted[b]=!0}return b&&(s=document.querySelectorAll("[data-emotion-"+g+"]"),Array.prototype.forEach.call(s,function(a){f.tags[0].parentNode.insertBefore(a,f.tags[0]),a.getAttribute("data-emotion-"+g).split(" ").forEach(F)})),G={flush:function(){b&&(f.flush(),f.inject()),a.inserted={},a.registered={}},hydrate:function(a){a.forEach(F)},cx:function(){for(var b=arguments.length,c=new Array(b),a=0;a=0||(d[a]=c[a]);return d}(b,f),Object.getOwnPropertySymbols){e=Object.getOwnPropertySymbols(b);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(b,a)&&(d[a]=b[a])}return d}function s(a,b){return function(a){if(Array.isArray(a))return a}(a)||function(g,h){var b,c,e,f,d,a;if("undefined"==typeof Symbol||!(Symbol.iterator in Object(g)))return;b=[],c=!0,e=!1,f=void 0;try{for(d,a=g[Symbol.iterator]();!(c=(d=a.next()).done)&&(b.push(d.value),!h||b.length!==h);c=!0);}catch(a){e=!0,f=a}finally{try{c||null==a.return||a.return()}finally{if(e)throw f}}return b}(a,b)||ba(a,b)||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 aN(a){return function(a){if(Array.isArray(a))return aK(a)}(a)||function(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}(a)||ba(a)||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 ba(a,c){if(a){if("string"==typeof a)return aK(a,c);var b=Object.prototype.toString.call(a).slice(8,-1);return"Object"===b&&a.constructor&&(b=a.constructor.name),"Map"===b||"Set"===b?Array.from(b):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?aK(a,c):void 0}}function aK(c,a){(null==a||a>c.length)&&(a=c.length);for(var b=0,d=new Array(a);ba){var c=function(b){var a="".concat(b).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0}(a);return parseFloat(b.toFixed(c))}return Math.round(b/a)*a}bn=function(){function a(b,c){(function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")})(this,a),P(b)?this.element=b:V(b)&&(this.element=document.querySelector(b)),P(this.element)&&_(this.element.rangeTouch)&&(this.config=bx({},aG,{},c),this.init())}return function(a,b,c){b&&aW(a.prototype,b),c&&aW(a,c)}(a,[{key:"init",value:function(){a.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(){a.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(b){var a=this,c=b?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(b){a.element[c](b,function(b){return a.set(b)},!1)})}},{key:"get",value:function(d){if(!a.enabled||!ax(d))return null;var b,c=d.target,h=d.changedTouches[0],f=parseFloat(c.getAttribute("min"))||0,i=parseFloat(c.getAttribute("max"))||100,j=parseFloat(c.getAttribute("step"))||1,e=c.getBoundingClientRect(),g=100/e.width*(this.config.thumbWidth/2)/100;return 0>(b=100/e.width*(h.clientX-e.left))?b=0:100b?b-=(100-2*b)*g:500&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,c=new Array(e>1?e-1:0),d=1,b;d0?b.cloneNode(!0):b,d=a.parentNode,e=a.nextSibling;c.appendChild(a),e?d.insertBefore(c,e):d.appendChild(c)})}function al(a,d){b(a)&&!c(d)&&Object.entries(d).filter(function(a){var b=s(a,2)[1];return!F(b)}).forEach(function(c){var b=s(c,2),d=b[0],e=b[1];return a.setAttribute(d,e)})}function e(d,b,c){var a=document.createElement(d);return u(b)&&al(a,b),n(c)&&(a.innerText=c),a}function be(c,a,d,f){b(a)&&a.appendChild(e(c,d,f))}function x(a){J(a)||o(a)?Array.from(a).forEach(x):b(a)&&b(a.parentNode)&&a.parentNode.removeChild(a)}function ah(a){if(b(a))for(var c=a.childNodes.length;c>0;)a.removeChild(a.lastChild),c-=1}function ak(c,a){return b(a)&&b(a.parentNode)&&b(c)?(a.parentNode.replaceChild(c,a),c):null}function v(b,e){if(!n(b)||c(b))return{};var a={},d=m({},e);return b.split(",").forEach(function(f){var b=f.trim(),e=b.replace(".",""),c=b.replace(/[[\]]/g,"").split("="),g=s(c,1)[0],h=c.length>1?c[1].replace(/["']/g,""):"";switch(b.charAt(0)){case".":n(d.class)?a.class="".concat(d.class," ").concat(e):a.class=e;break;case"#":a.id=b.replace("#","");break;case"[":a[g]=h}}),m(d,a)}function G(a,d){if(b(a)){var c=d;t(c)||(c=!a.hidden),a.hidden=c}}function f(a,c,d){if(J(a))return Array.from(a).map(function(a){return f(a,c,d)});if(b(a)){var e="toggle";return void 0!==d&&(e=d?"add":"remove"),a.classList[e](c),a.classList.contains(c)}return!1}function X(a,c){return b(a)&&a.classList.contains(c)}function H(c,b){var a=Element.prototype;return(a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(){return Array.from(document.querySelectorAll(b)).includes(this)}).call(c,b)}function K(a){return this.elements.container.querySelectorAll(a)}function p(a){return this.elements.container.querySelector(a)}function az(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(a)&&(a.focus({preventScroll:!0}),c&&f(a,this.config.classNames.tabFocus))}aB={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},l={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(a,c,d){var e=r.isIPhone&&d&&l.playsinline,b=l[a]||"html5"!==c;return{api:b,ui:b&&l.rangeInput&&("video"!==a||!r.isIPhone||e)}},pip:!(r.isIPhone||!j(e("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||e("video").disablePictureInPicture)),airplay:j(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(a){if(c(a))return!1;var d=s(a.split("/"),1)[0],b=a;if(!this.isHTML5||d!==this.type)return!1;Object.keys(aB).includes(b)&&(b+='; codecs="'.concat(aB[a],'"'));try{return Boolean(b&&this.media.canPlayType(b).replace(/no/,""))}catch(a){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(aj=document.createElement("input"),aj.type="range","range"===aj.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==af,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},bd=function(){var a=!1,b;try{b=Object.defineProperty({},"passive",{get:function(){return a=!0,null}}),window.addEventListener("test",null,b),window.removeEventListener("test",null,b)}catch(a){}return a}();function L(a,f,b){var d=this,g=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],h=arguments.length>5&&void 0!==arguments[5]&&arguments[5],k,e;a&&"addEventListener"in a&&!c(f)&&j(b)&&(k=f.split(" "),e=h,bd&&(e={passive:i,capture:h}),k.forEach(function(c){d&&d.eventListeners&&g&&d.eventListeners.push({element:a,type:c,callback:b,options:e}),a[g?"addEventListener":"removeEventListener"](c,b,e)}))}function g(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,d=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=arguments.length>4&&void 0!==arguments[4]&&arguments[4];L.call(this,a,b,c,!0,d,e)}function ag(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,d=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],e=arguments.length>4&&void 0!==arguments[4]&&arguments[4];L.call(this,a,b,c,!1,d,e)}function aH(a){var e=this,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",f=arguments.length>2?arguments[2]:void 0,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],d=arguments.length>4&&void 0!==arguments[4]&&arguments[4],g=function j(){ag(a,b,j,c,d);for(var h=arguments.length,i=new Array(h),g=0;g1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},g;b(a)&&!c(d)&&(g=new CustomEvent(d,{bubbles:e,detail:W({},f,{plyr:this})}),a.dispatchEvent(g))}function bD(){this&&this.eventListeners&&(this.eventListeners.forEach(function(a){var b=a.element,c=a.type,d=a.callback,e=a.options;b.removeEventListener(c,d,e)}),this.eventListeners=[])}function bF(){var a=this;return new Promise(function(b){return a.ready?setTimeout(b,0):g.call(a,a.elements.container,"ready",b)}).then(function(){})}function w(a){bl(a)&&a.then(null,function(){})}function aZ(a){return!!(o(a)||n(a)&&a.includes(":"))&&(o(a)?a:a.split(":")).map(Number).every(k)}function aY(a){if(!o(a)||!a.every(k))return null;var b=s(a,2),c=b[0],d=b[1],e=function c(b,a){return 0===a?b:c(a,b%a)}(c,d);return[c/e,d/e]}function aO(e){var b=function(a){return aZ(a)?a.split(":").map(Number):null},a=b(e),d;return null===a&&(a=b(this.config.ratio)),null===a&&!c(this.embed)&&o(this.embed.ratio)&&(a=this.embed.ratio),null===a&&this.isHTML5&&(d=this.media,a=aY([d.videoWidth,d.videoHeight])),a}function C(g){var c,a,d,b,e,f;return this.isVideo?(c=this.elements.wrapper,a=aO.call(this,g),d=s(o(a)?a:[0,0],2),b=100/d[0]*d[1],(c.style.paddingBottom="".concat(b,"%"),this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui)?(e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),f=(e-b)/(e/50),this.media.style.transform="translateY(-".concat(f,"%)")):this.isHTML5&&c.classList.toggle(this.config.classNames.videoFixedRatio,null!==a),{padding:b,ratio:a}):{}}z={getSources:function(){var a=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(d){var b=d.getAttribute("type");return!!c(b)||l.mime.call(a,b)}):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:z.getSources.call(this).map(function(a){return Number(a.getAttribute("size"))}).filter(Boolean)},setup:function(){if(this.isHTML5){var a=this;a.options.speed=a.config.speed.options,c(this.config.ratio)||C.call(a),Object.defineProperty(a.media,"quality",{get:function(){var b=z.getSources.call(a).find(function(b){return b.getAttribute("src")===a.source});return b&&Number(b.getAttribute("size"))},set:function(c){var e,b,f,g,h,i,k;if(a.quality!==c){if(a.config.quality.forced&&j(a.config.quality.onChange))a.config.quality.onChange(c);else{if(e=z.getSources.call(a).find(function(a){return Number(a.getAttribute("size"))===c}),!e)return;b=a.media,f=b.currentTime,g=b.paused,h=b.preload,i=b.readyState,k=b.playbackRate,a.media.src=e.getAttribute("src"),("none"!==h||i)&&(a.once("loadedmetadata",function(){a.speed=k,a.currentTime=f,g||w(a.play())}),a.media.load())}d.call(a,a.media,"qualitychange",!1,{quality:c})}}})}},cancelRequests:function(){this.isHTML5&&(x(z.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function aR(a){return o(a)?a.filter(function(b,c){return a.indexOf(b)===c}):a}function aS(b){for(var d=arguments.length,e=new Array(d>1?d-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a.replace(new RegExp(b.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),c.toString())},aw=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.toString().replace(/\w\S*/g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()})};function bG(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=b.toString();return a=N(a,"-"," "),a=N(a,"_"," "),a=aw(a),N(a," ","")}function bH(b){var a=document.createElement("div");return a.appendChild(b),a.innerHTML}aA={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},q=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d,e;return c(a)||c(b)?"":(d=bi(b.i18n,a),c(d))?Object.keys(aA).includes(a)?aA[a]:"":(e={"{seektime}":b.seekTime,"{title}":b.title},Object.entries(e).forEach(function(b){var a=s(b,2),c=a[0],e=a[1];d=N(d,c,e)}),d)},aM=function(){function a(b){D(this,a),this.enabled=b.config.storage.enabled,this.key=b.config.storage.key}return I(a,[{key:"get",value:function(b){var d,e;return!a.supported||!this.enabled?null:(d=window.localStorage.getItem(this.key),c(d))?null:(e=JSON.parse(d),n(b)&&b.length?e[b]:e)}},{key:"set",value:function(d){if(a.supported&&this.enabled&&u(d)){var b=this.get();c(b)&&(b={}),m(b,d),window.localStorage.setItem(this.key,JSON.stringify(b))}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(a){return!1}}}]),a}();function S(b){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(d,e){try{var c=new XMLHttpRequest;if(!("withCredentials"in c))return;c.addEventListener("load",function(){if("text"===a)try{d(JSON.parse(c.responseText))}catch(a){d(c.responseText)}else d(c.response)}),c.addEventListener("error",function(){throw new Error(c.status)}),c.open("GET",b,!0),c.responseType=a,c.send()}catch(a){e(a)}})}function a$(i,b){var d,e,f,g,a,h,j;n(i)&&(d=n(b),e=function(){return null!==document.getElementById(b)},f=function(a,b){a.innerHTML=b,d&&e()||document.body.insertAdjacentElement("afterbegin",a)},(!d||!e())&&(g=aM.supported,a=document.createElement("div"),(a.setAttribute("hidden",""),d&&a.setAttribute("id",b),g)&&(h=window.localStorage.getItem("".concat("cache","-").concat(b)),null!==h&&(j=JSON.parse(h),f(a,j.content))),S(i).then(function(d){c(d)||(g&&window.localStorage.setItem("".concat("cache","-").concat(b),JSON.stringify({content:d})),f(a,d))}).catch(function(){})))}aJ=function(a){return Math.trunc(a/60/60%60,10)},bb=function(a){return Math.trunc(a/60%60,10)},bc=function(a){return Math.trunc(a%60,10)};function aa(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e,b,f,g;return k(a)?(e=function(a){return"0".concat(a).slice(-2)},b=aJ(a),f=bb(a),g=bc(a),b=c||b>0?"".concat(b,":"):"","".concat(d&&a>0?"-":"").concat(b).concat(e(f),":").concat(e(g))):aa(void 0,c,d)}a={getIconUrl:function(){var a=new URL(this.config.iconUrl,window.location).host!==window.location.host||r.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:a}},findElements:function(){try{return this.elements.controls=p.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:K.call(this,this.config.selectors.buttons.play),pause:p.call(this,this.config.selectors.buttons.pause),restart:p.call(this,this.config.selectors.buttons.restart),rewind:p.call(this,this.config.selectors.buttons.rewind),fastForward:p.call(this,this.config.selectors.buttons.fastForward),mute:p.call(this,this.config.selectors.buttons.mute),pip:p.call(this,this.config.selectors.buttons.pip),airplay:p.call(this,this.config.selectors.buttons.airplay),settings:p.call(this,this.config.selectors.buttons.settings),captions:p.call(this,this.config.selectors.buttons.captions),fullscreen:p.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=p.call(this,this.config.selectors.progress),this.elements.inputs={seek:p.call(this,this.config.selectors.inputs.seek),volume:p.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:p.call(this,this.config.selectors.display.buffer),currentTime:p.call(this,this.config.selectors.display.currentTime),duration:p.call(this,this.config.selectors.display.duration)},b(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(a){return this.debug.warn("It looks like there is a problem with your custom controls HTML",a),this.toggleNativeControls(!0),!1}},createIcon:function(h,f){var e=a.getIconUrl.call(this),g="".concat(e.cors?"":e.url,"#").concat(this.config.iconPrefix),c=document.createElementNS("http://www.w3.org/2000/svg","svg"),b,d;return al(c,m(f,{"aria-hidden":"true",focusable:"false"})),b=document.createElementNS("http://www.w3.org/2000/svg","use"),d="".concat(g,"-").concat(h),"href"in b&&b.setAttributeNS("http://www.w3.org/1999/xlink","href",d),b.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d),c.appendChild(b),c},createLabel:function(b){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=q(b,this.config),d=W({},a,{class:[a.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return e("span",d,c)},createBadge:function(a){if(c(a))return null;var b=e("span",{class:this.config.classNames.menu.value});return b.appendChild(e("span",{class:this.config.classNames.menu.badge},a)),b},createButton:function(h,i){var j=this,d=m({},i),g=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=b.toString();return(a=bG(a)).charAt(0).toLowerCase()+a.slice(1)}(h),b={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null},f;switch(["element","icon","label"].forEach(function(a){Object.keys(d).includes(a)&&(b[a]=d[a],delete d[a])}),"button"!==b.element||Object.keys(d).includes("type")||(d.type="button"),Object.keys(d).includes("class")?d.class.split(" ").some(function(a){return a===j.config.classNames.control})||m(d,{class:"".concat(d.class," ").concat(this.config.classNames.control)}):d.class=this.config.classNames.control,h){case"play":b.toggle=!0,b.label="play",b.labelPressed="pause",b.icon="play",b.iconPressed="pause";break;case"mute":b.toggle=!0,b.label="mute",b.labelPressed="unmute",b.icon="volume",b.iconPressed="muted";break;case"captions":b.toggle=!0,b.label="enableCaptions",b.labelPressed="disableCaptions",b.icon="captions-off",b.iconPressed="captions-on";break;case"fullscreen":b.toggle=!0,b.label="enterFullscreen",b.labelPressed="exitFullscreen",b.icon="enter-fullscreen",b.iconPressed="exit-fullscreen";break;case"play-large":d.class+=" ".concat(this.config.classNames.control,"--overlaid"),g="play",b.label="play",b.icon="play";break;default:c(b.label)&&(b.label=g),c(b.icon)&&(b.icon=h)}return f=e(b.element),b.toggle?(f.appendChild(a.createIcon.call(this,b.iconPressed,{class:"icon--pressed"})),f.appendChild(a.createIcon.call(this,b.icon,{class:"icon--not-pressed"})),f.appendChild(a.createLabel.call(this,b.labelPressed,{class:"label--pressed"})),f.appendChild(a.createLabel.call(this,b.label,{class:"label--not-pressed"}))):(f.appendChild(a.createIcon.call(this,b.icon)),f.appendChild(a.createLabel.call(this,b.label))),m(d,v(this.config.selectors.buttons[g],d)),al(f,d),"play"===g?(o(this.elements.buttons[g])||(this.elements.buttons[g]=[]),this.elements.buttons[g].push(f)):this.elements.buttons[g]=f,f},createRange:function(c,d){var b=e("input",m(v(this.config.selectors.inputs[c]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":q(c,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},d));return this.elements.inputs[c]=b,a.updateRangeFill.call(this,b),bn.setup(b),b},createProgress:function(a,d){var b=e("progress",m(v(this.config.selectors.display[a]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},d)),c,f;return"volume"!==a&&(b.appendChild(e("span",null,"0")),c={played:"played",buffer:"buffered"}[a],f=c?q(c,this.config):"",b.innerText="% ".concat(f.toLowerCase())),this.elements.display[a]=b,b},createTime:function(a,d){var b=v(this.config.selectors.display[a],d),c=e("div",m(b,{class:"".concat(b.class?b.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":q(a,this.config)}),"00:00");return this.elements.display[a]=c,c},bindMenuItemShortcuts:function(c,e){var d=this;g.call(this,c,"keydown keyup",function(f){if([32,38,39,40].includes(f.which)&&(f.preventDefault(),f.stopPropagation(),"keydown"!==f.type)){var g,h=H(c,'[role="menuitemradio"]');!h&&[32,39].includes(f.which)?a.showMenuPanel.call(d,e,!0):32!==f.which&&(40===f.which||h&&39===f.which?(g=c.nextElementSibling,b(g)||(g=c.parentNode.firstElementChild)):(g=c.previousElementSibling,b(g)||(g=c.parentNode.lastElementChild)),az.call(d,g,!0))}},!1),g.call(this,c,"keyup",function(b){13===b.which&&a.focusFirstMenuItem.call(d,null,!0)})},createMenuItem:function(d){var f=this,g=d.value,q=d.list,h=d.type,p=d.title,n=d.badge,k=void 0===n?null:n,l=d.checked,o=void 0!==l&&l,i=v(this.config.selectors.inputs[h]),c=e("button",m(i,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(i.class?i.class:"").trim(),"aria-checked":o,value:g})),j=e("span");j.innerHTML=p,b(k)&&j.appendChild(k),c.appendChild(j),Object.defineProperty(c,"checked",{enumerable:!0,get:function(){return"true"===c.getAttribute("aria-checked")},set:function(a){a&&Array.from(c.parentNode.children).filter(function(a){return H(a,'[role="menuitemradio"]')}).forEach(function(a){return a.setAttribute("aria-checked","false")}),c.setAttribute("aria-checked",a?"true":"false")}}),this.listeners.bind(c,"click keyup",function(b){if(!E(b)||32===b.which){switch(b.preventDefault(),b.stopPropagation(),c.checked=!0,h){case"language":f.currentTrack=Number(g);break;case"quality":f.quality=g;break;case"speed":f.speed=parseFloat(g)}a.showMenuPanel.call(f,"home",E(b))}},h,!1),a.bindMenuItemShortcuts.call(this,c,h),q.appendChild(c)},formatTime:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c;return k(a)?(c=aJ(this.duration)>0,aa(a,c,b)):a},updateTimeDisplay:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];b(c)&&k(d)&&(c.innerText=a.formatTime(d,e))},updateVolume:function(){this.supported.ui&&(b(this.elements.inputs.volume)&&a.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),b(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;b(c)&&(c.value=d,a.updateRangeFill.call(this,c))},updateProgress:function(c){var g=this,d,e,f;if(this.supported.ui&&A(c)){if(f=0,c)switch(c.type){case"timeupdate":case"seeking":case"seeked":d=this.currentTime,e=this.duration,f=0===d||0===e||Number.isNaN(d)||Number.isNaN(e)?0:(d/e*100).toFixed(2),"timeupdate"===c.type&&a.setRange.call(this,this.elements.inputs.seek,f);break;case"playing":case"progress":!function(c,d){var e=k(d)?d:0,a=b(c)?c:g.elements.display.buffer,f;b(a)&&(a.value=e,f=a.getElementsByTagName("span")[0],b(f)&&(f.childNodes[0].nodeValue=e))}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(d){var c=A(d)?d.target:d,f,g,h,e;b(c)&&"range"===c.getAttribute("type")&&(H(c,this.config.selectors.inputs.seek)?(c.setAttribute("aria-valuenow",this.currentTime),f=a.formatTime(this.currentTime),g=a.formatTime(this.duration),h=q("seekLabel",this.config),c.setAttribute("aria-valuetext",h.replace("{currentTime}",f).replace("{duration}",g))):H(c,this.config.selectors.inputs.volume)?(e=100*c.value,c.setAttribute("aria-valuenow",e),c.setAttribute("aria-valuetext","".concat(e.toFixed(1),"%"))):c.setAttribute("aria-valuenow",c.value),r.isWebkit&&c.style.setProperty("--value","".concat(c.value/c.max*100,"%")))},updateSeekTooltip:function(d){var i=this,e,g,c,h;if(this.config.tooltips.seek&&b(this.elements.inputs.seek)&&b(this.elements.display.seekTooltip)&&0!==this.duration)if(e="".concat(this.config.classNames.tooltip,"--visible"),g=function(a){return f(i.elements.display.seekTooltip,e,a)},this.touch)g(!1);else{if(c=0,h=this.elements.progress.getBoundingClientRect(),A(d))c=100/h.width*(d.pageX-h.left);else{if(!X(this.elements.display.seekTooltip,e))return;c=parseFloat(this.elements.display.seekTooltip.style.left,10)}c<0?c=0:c>100&&(c=100),a.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*c),this.elements.display.seekTooltip.style.left="".concat(c,"%"),A(d)&&["mouseenter","mouseleave"].includes(d.type)&&g("mouseenter"===d.type)}},timeUpdate:function(c){var d=!b(this.elements.display.duration)&&this.config.invertTime;a.updateTimeDisplay.call(this,this.elements.display.currentTime,d?this.duration-this.currentTime:this.currentTime,d),c&&"timeupdate"===c.type&&this.media.seeking||a.updateProgress.call(this,c)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return G(this.elements.display.currentTime,!0),void G(this.elements.progress,!0);b(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var c=b(this.elements.display.duration);!c&&this.config.displayDuration&&this.paused&&a.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),c&&a.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),a.updateSeekTooltip.call(this)}},toggleMenuButton:function(a,b){G(this.elements.settings.buttons[a],!b)},updateSetting:function(d,j,g){var h=this.elements.settings.panels[d],e=null,f=j,i;if("captions"===d)e=this.currentTrack;else{if(e=c(g)?this[d]:g,c(e)&&(e=this.config[d].default),!c(this.options[d])&&!this.options[d].includes(e))return void this.debug.warn("Unsupported value of '".concat(e,"' for ").concat(d));if(!this.config[d].options.includes(e))return void this.debug.warn("Disabled value of '".concat(e,"' for ").concat(d))}b(f)||(f=h&&h.querySelector('[role="menu"]')),b(f)&&(this.elements.settings.buttons[d].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=a.getLabel.call(this,d,e),i=f&&f.querySelector('[value="'.concat(e,'"]')),b(i)&&(i.checked=!0))},getLabel:function(c,a){switch(c){case"speed":return 1===a?q("normal",this.config):"".concat(a,"×");case"quality":if(k(a)){var b=q("qualityLabel.".concat(a),this.config);return b.length?b:"".concat(a,"p")}return aw(a);case"captions":return h.getLabel.call(this);default:return null}},setQualityMenu:function(f){var d=this,e,g,h;b(this.elements.settings.panels.quality)&&(e=this.elements.settings.panels.quality.querySelector('[role="menu"]'),o(f)&&(this.options.quality=aR(f).filter(function(a){return d.config.quality.options.includes(a)})),g=!c(this.options.quality)&&this.options.quality.length>1,(a.toggleMenuButton.call(this,"quality",g),ah(e),a.checkMenu.call(this),g)&&(h=function(c){var b=q("qualityBadge.".concat(c),d.config);return b.length?a.createBadge.call(d,b):null},this.options.quality.sort(function(b,c){var a=d.config.quality.options;return a.indexOf(b)>a.indexOf(c)?1:-1}).forEach(function(b){a.createMenuItem.call(d,{value:b,list:e,type:"quality",title:a.getLabel.call(d,"quality",b),badge:h(b)})}),a.updateSetting.call(this,"quality",e)))},setCaptionsMenu:function(){var c=this,d,e,f,g;b(this.elements.settings.panels.captions)&&(d=this.elements.settings.panels.captions.querySelector('[role="menu"]'),e=h.getTracks.call(this),f=Boolean(e.length),(a.toggleMenuButton.call(this,"captions",f),ah(d),a.checkMenu.call(this),f)&&(g=e.map(function(b,e){return{value:e,checked:c.captions.toggled&&c.currentTrack===e,title:h.getLabel.call(c,b),badge:b.language&&a.createBadge.call(c,b.language.toUpperCase()),list:d,type:"language"}}),g.unshift({value:-1,checked:!this.captions.toggled,title:q("disabled",this.config),list:d,type:"language"}),g.forEach(a.createMenuItem.bind(this)),a.updateSetting.call(this,"captions",d)))},setSpeedMenu:function(){var d=this,e,f;b(this.elements.settings.panels.speed)&&(e=this.elements.settings.panels.speed.querySelector('[role="menu"]'),this.options.speed=this.options.speed.filter(function(a){return a>=d.minimumSpeed&&a<=d.maximumSpeed}),f=!c(this.options.speed)&&this.options.speed.length>1,a.toggleMenuButton.call(this,"speed",f),ah(e),a.checkMenu.call(this),f&&(this.options.speed.forEach(function(b){a.createMenuItem.call(d,{value:b,list:e,type:"speed",title:a.getLabel.call(d,"speed",b)})}),a.updateSetting.call(this,"speed",e)))},checkMenu:function(){var a=this.elements.settings.buttons,b=!c(a)&&Object.values(a).some(function(a){return!a.hidden});G(this.elements.settings.menu,!b)},focusFirstMenuItem:function(c){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a,e;this.elements.settings.popup.hidden||(a=c,b(a)||(a=Object.values(this.elements.settings.panels).find(function(a){return!a.hidden})),e=a.querySelector('[role^="menuitem"]'),az.call(this,e,d))},toggleMenu:function(c){var e=this.elements.settings.popup,g=this.elements.buttons.settings,h,d,k,i;if(b(e)&&b(g)){if(h=e.hidden,d=h,t(c))d=c;else if(E(c)&&27===c.which)d=!1;else if(A(c)){if(k=j(c.composedPath)?c.composedPath()[0]:c.target,i=e.contains(k),i||!i&&c.target!==g&&d)return}g.setAttribute("aria-expanded",d),G(e,!d),f(this.elements.container,this.config.classNames.menu.open,d),d&&E(c)?a.focusFirstMenuItem.call(this,null,!0):d||h||az.call(this,g,E(c))}},getMenuSize:function(b){var a=b.cloneNode(!0),c,d;return a.style.position="absolute",a.style.opacity=0,a.removeAttribute("hidden"),b.parentNode.appendChild(a),c=a.scrollWidth,d=a.scrollHeight,x(a),{width:c,height:d}},showMenuPanel:function(){var j=this,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(h)),c,e,f,k;b(d)&&(c=d.parentNode,e=Array.from(c.children).find(function(a){return!a.hidden}),l.transitions&&!l.reducedMotion&&(c.style.width="".concat(e.scrollWidth,"px"),c.style.height="".concat(e.scrollHeight,"px"),f=a.getMenuSize.call(this,d),k=function b(a){a.target===c&&["width","height"].includes(a.propertyName)&&(c.style.width="",c.style.height="",ag.call(j,c,af,b))},g.call(this,c,af,k),c.style.width="".concat(f.width,"px"),c.style.height="".concat(f.height,"px")),G(e,!0),G(d,!1),a.focusFirstMenuItem.call(this,d,i))},setDownloadUrl:function(){var a=this.elements.buttons.download;b(a)&&a.setAttribute("href",this.download)},create:function(j){var d=this,p=a.bindMenuItemShortcuts,i=a.createButton,u=a.createProgress,o=a.createRange,n=a.createTime,s=a.setQualityMenu,t=a.setSpeedMenu,k=a.showMenuPanel,f,h;return this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large")),f=e("div",v(this.config.selectors.controls.wrapper)),this.elements.controls=f,h={class:"plyr__controls__item"},aR(this.config.controls).forEach(function(a){var C,t,B,s,E,w,y,z,A,D,x,F;"restart"===a&&f.appendChild(i.call(d,"restart",h)),"rewind"===a&&f.appendChild(i.call(d,"rewind",h)),"play"===a&&f.appendChild(i.call(d,"play",h)),"fast-forward"===a&&f.appendChild(i.call(d,"fast-forward",h)),"progress"===a&&(C=e("div",{class:"".concat(h.class," plyr__progress__container")}),t=e("div",v(d.config.selectors.progress)),(t.appendChild(o.call(d,"seek",{id:"plyr-seek-".concat(j.id)})),t.appendChild(u.call(d,"buffer")),d.config.tooltips.seek)&&(B=e("span",{class:d.config.classNames.tooltip},"00:00"),t.appendChild(B),d.elements.display.seekTooltip=B),d.elements.progress=t,C.appendChild(d.elements.progress),f.appendChild(C)),("current-time"===a&&f.appendChild(n.call(d,"currentTime",h)),"duration"===a&&f.appendChild(n.call(d,"duration",h)),"mute"===a||"volume"===a)&&(s=d.elements.volume,(b(s)&&f.contains(s)||(s=e("div",m({},h,{class:"".concat(h.class," plyr__volume").trim()})),d.elements.volume=s,f.appendChild(s)),"mute"===a&&s.appendChild(i.call(d,"mute")),"volume"===a&&!r.isIos)&&(E={max:1,step:.05,value:d.config.volume},s.appendChild(o.call(d,"volume",m(E,{id:"plyr-volume-".concat(j.id)}))))),("captions"===a&&f.appendChild(i.call(d,"captions",h)),"settings"===a&&!c(d.config.settings))&&(w=e("div",m({},h,{class:"".concat(h.class," plyr__menu").trim(),hidden:""})),w.appendChild(i.call(d,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(j.id),"aria-expanded":!1})),y=e("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(j.id),hidden:""}),z=e("div"),A=e("div",{id:"plyr-settings-".concat(j.id,"-home")}),D=e("div",{role:"menu"}),A.appendChild(D),z.appendChild(A),d.elements.settings.panels.home=A,d.config.settings.forEach(function(a){var b=e("button",m(v(d.config.selectors.buttons.settings),{type:"button",class:"".concat(d.config.classNames.control," ").concat(d.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""})),h,i,c,f;p.call(d,b,a),g.call(d,b,"click",function(){k.call(d,a,!1)}),h=e("span",null,q(a,d.config)),i=e("span",{class:d.config.classNames.menu.value}),i.innerHTML=j[a],h.appendChild(i),b.appendChild(h),D.appendChild(b),c=e("div",{id:"plyr-settings-".concat(j.id,"-").concat(a),hidden:""}),f=e("button",{type:"button",class:"".concat(d.config.classNames.control," ").concat(d.config.classNames.control,"--back")}),f.appendChild(e("span",{"aria-hidden":!0},q(a,d.config))),f.appendChild(e("span",{class:d.config.classNames.hidden},q("menuBack",d.config))),g.call(d,c,"keydown",function(a){37===a.which&&(a.preventDefault(),a.stopPropagation(),k.call(d,"home",!0))},!1),g.call(d,f,"click",function(){k.call(d,"home",!1)}),c.appendChild(f),c.appendChild(e("div",{role:"menu"})),z.appendChild(c),d.elements.settings.buttons[a]=b,d.elements.settings.panels[a]=c}),y.appendChild(z),w.appendChild(y),f.appendChild(w),d.elements.settings.popup=y,d.elements.settings.menu=w),("pip"===a&&l.pip&&f.appendChild(i.call(d,"pip",h)),"airplay"===a&&l.airplay&&f.appendChild(i.call(d,"airplay",h)),"download"===a)&&(x=m({},h,{element:"a",href:d.download,target:"_blank"}),d.isHTML5&&(x.download=""),F=d.config.urls.download,!M(F)&&d.isEmbed&&m(x,{icon:"logo-".concat(d.provider),label:d.provider}),f.appendChild(i.call(d,"download",x))),"fullscreen"===a&&f.appendChild(i.call(d,"fullscreen",h))}),this.isHTML5&&s.call(this,z.getQualityOptions.call(this)),t.call(this),f},inject:function(){var g=this,m,d,l,k,e,i,p,q,u,t,v,w;this.config.loadSprite&&(m=a.getIconUrl.call(this),m.cors&&a$(m.url,"sprite-plyr")),this.id=Math.floor(1e4*Math.random()),d=null,this.elements.controls=null,l={id:this.id,seektime:this.config.seekTime,title:this.config.title},k=!0,j(this.config.controls)&&(this.config.controls=this.config.controls.call(this,l)),this.config.controls||(this.config.controls=[]),b(this.config.controls)||n(this.config.controls)?d=this.config.controls:(d=a.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:h.getLabel.call(this)}),k=!1),i=function(b){var a=b;return Object.entries(l).forEach(function(c){var b=s(c,2),d=b[0],e=b[1];a=N(a,"{".concat(d,"}"),e)}),a},(k&&(n(this.config.controls)?d=i(d):b(d)&&(d.innerHTML=i(d.innerHTML))),n(this.config.selectors.controls.container)&&(e=document.querySelector(this.config.selectors.controls.container)),b(e)||(e=this.elements.container),e[b(d)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",d),b(this.elements.controls)||a.findElements.call(this),!c(this.elements.buttons))&&(p=function(a){var b=g.config.classNames.controlPressed;Object.defineProperty(a,"pressed",{enumerable:!0,get:function(){return X(a,b)},set:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f(a,b,c)}})},Object.values(this.elements.buttons).filter(Boolean).forEach(function(a){o(a)||J(a)?Array.from(a).filter(Boolean).forEach(p):p(a)})),(r.isEdge&&bj(e),this.config.tooltips.controls)&&(q=this.config,u=q.classNames,t=q.selectors,v="".concat(t.controls.wrapper," ").concat(t.labels," .").concat(u.hidden),w=K.call(this,v),Array.from(w).forEach(function(a){f(a,g.config.classNames.hidden,!1),f(a,g.config.classNames.tooltip,!0)}))}};function bf(c){var d=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=c,b;d&&(b=document.createElement("a"),b.href=a,a=b.href);try{return new URL(a)}catch(a){return null}}function bg(a){var b=new URLSearchParams;return u(a)&&Object.entries(a).forEach(function(c){var a=s(c,2),d=a[0],e=a[1];b.set(d,e)}),b}h={setup:function(){var i,f,c,d,j;this.supported.ui&&(!this.isVideo||this.isYouTube||this.isHTML5&&!l.textTracks?o(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&a.setCaptionsMenu.call(this):(b(this.elements.captions)||(this.elements.captions=e("div",v(this.config.selectors.captions)),function(c,a){b(c)&&b(a)&&a.parentNode.insertBefore(c,a.nextSibling)}(this.elements.captions,this.elements.wrapper)),r.isIE&&window.URL&&(i=this.media.querySelectorAll("track"),Array.from(i).forEach(function(a){var c=a.getAttribute("src"),b=bf(c);null!==b&&b.hostname!==window.location.href.hostname&&["http:","https:"].includes(b.protocol)&&S(c,"blob").then(function(b){a.setAttribute("src",window.URL.createObjectURL(b))}).catch(function(){x(a)})})),f=aR((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(a){return a.split("-")[0]})),c=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase(),"auto"===c&&(c=s(f,1)[0]),d=this.storage.get("captions"),(t(d)||(d=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:d,language:c,languages:f}),this.isHTML5)&&(j=this.config.captions.update?"addtrack removetrack":"removetrack",g.call(this,this.media.textTracks,j,h.update.bind(this))),setTimeout(h.update.bind(this),0)))},update:function(){var e=this,b=h.getTracks.call(this,!0),d=this.captions,l=d.active,i=d.language,j=d.meta,m=d.currentTrackNode,k=Boolean(b.find(function(a){return a.language===i}));this.isHTML5&&this.isVideo&&b.filter(function(a){return!j.get(a)}).forEach(function(a){e.debug.log("Track added",a),j.set(a,{default:"showing"===a.mode}),"showing"===a.mode&&(a.mode="hidden"),g.call(e,a,"cuechange",function(){return h.updateCues.call(e)})}),(k&&this.language!==i||!b.includes(m))&&(h.setLanguage.call(this,i),h.toggle.call(this,l&&k)),f(this.elements.container,this.config.classNames.captions.enabled,!c(b)),o(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&a.setCaptionsMenu.call(this)},toggle:function(c){var e=this,g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i,k,b,l,j;if(this.supported.ui){if(i=this.captions.toggled,k=this.config.classNames.captions.active,b=F(c)?!i:c,b!==i){if(g||(this.captions.active=b,this.storage.set({captions:b})),!this.language&&b&&!g)return l=h.getTracks.call(this),j=h.findTrack.call(this,[this.captions.language].concat(aN(this.captions.languages)),!0),this.captions.language=j.language,void h.set.call(this,l.indexOf(j));this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=b),f(this.elements.container,k,b),this.captions.toggled=b,a.updateSetting.call(this,"captions"),d.call(this,this.media,b?"captionsenabled":"captionsdisabled")}setTimeout(function(){b&&e.captions.toggled&&(e.captions.currentTrackNode.mode="hidden")})}},set:function(b){var c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=h.getTracks.call(this),g,i,e;-1!==b?k(b)?b in f?(this.captions.currentTrack!==b&&(this.captions.currentTrack=b,g=f[b],i=g||{},e=i.language,this.captions.currentTrackNode=g,a.updateSetting.call(this,"captions"),c||(this.captions.language=e,this.storage.set({language:e})),this.isVimeo&&this.embed.enableTextTrack(e),d.call(this,this.media,"languagechange")),h.toggle.call(this,!0,c),this.isHTML5&&this.isVideo&&h.updateCues.call(this)):this.debug.warn("Track not found",b):this.debug.warn("Invalid caption argument",b):h.toggle.call(this,!1,c)},setLanguage:function(a){var c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b,d,e;n(a)?(b=a.toLowerCase(),this.captions.language=b,d=h.getTracks.call(this),e=h.findTrack.call(this,[b]),h.set.call(this,d.indexOf(e),c)):this.debug.warn("Invalid language argument",a)},getTracks:function(){var a=this,b=arguments.length>0&&void 0!==arguments[0]&&arguments[0],c=Array.from((this.media||{}).textTracks||[]);return c.filter(function(c){return!a.isHTML5||b||a.captions.meta.has(c)}).filter(function(a){return["captions","subtitles"].includes(a.kind)})},findTrack:function(g){var b,d=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=h.getTracks.call(this),c=function(a){return Number((d.captions.meta.get(a)||{}).default)},a=Array.from(f).sort(function(a,b){return c(b)-c(a)});return g.every(function(c){return!(b=a.find(function(a){return a.language===c}))}),b||(e?a[0]:void 0)},getCurrentTrack:function(){return h.getTracks.call(this)[this.currentTrack]},getLabel:function(b){var a=b;return!ao(a)&&l.textTracks&&this.captions.toggled&&(a=h.getCurrentTrack.call(this)),ao(a)?c(a.label)?c(a.language)?q("enabled",this.config):b.language.toUpperCase():a.label:q("disabled",this.config)},updateCues:function(a){var c,i,f,g;this.supported.ui&&(b(this.elements.captions)?F(a)||Array.isArray(a)?(c=a,c||(i=h.getCurrentTrack.call(this),c=Array.from((i||{}).activeCues||[]).map(function(a){return a.getCueAsHTML()}).map(bH)),f=c.map(function(a){return a.trim()}).join("\n"),f!==this.elements.captions.innerHTML&&(ah(this.elements.captions),g=e("span",v(this.config.selectors.caption)),g.innerHTML=f,this.elements.captions.appendChild(g),d.call(this,this.media,"cuechange"))):this.debug.warn("updateCues: Invalid input",a):this.debug.warn("No captions element to render to"))}},am={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.6.1/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,premium:!1,referrerPolicy:null},youtube:{noCookie:!0,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},an="picture-in-picture",bk="inline",y={html5:"html5",youtube:"youtube",vimeo:"vimeo"},bm="audio",au="video",Z=function(){},bp=function(){function a(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];D(this,a),this.enabled=window.console&&b,this.enabled&&this.log("Debugging enabled")}return I(a,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Z}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Z}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Z}}]),a}(),bo=function(){function a(d){var c=this;D(this,a),this.player=d,this.prefix=a.prefix,this.property=a.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===d.config.fullscreen.fallback,this.player.elements.fullscreen=d.config.fullscreen.container&&function(b,a){return(Element.prototype.closest||function(){var b=this;do{if(H.matches(b,a))return b;b=b.parentElement||b.parentNode}while(null!==b&&1===b.nodeType)return null}).call(b,a)}(this.player.elements.container,d.config.fullscreen.container),g.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){c.onChange()}),g.call(this.player,this.player.elements.container,"dblclick",function(a){b(c.player.elements.controls)&&c.player.elements.controls.contains(a.target)||c.toggle()}),g.call(this,this.player.elements.container,"keydown",function(a){return c.trapFocus(a)}),this.update()}return I(a,[{key:"onChange",value:function(){if(this.enabled){var a=this.player.elements.buttons.fullscreen;b(a)&&(a.pressed=this.active),d.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var b=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a,c,d;b?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=b?"hidden":"",f(this.target,this.player.config.classNames.fullscreen.fallback,b),r.isIos&&(a=document.head.querySelector('meta[name="viewport"]'),c="viewport-fit=cover",a||(a=document.createElement("meta")).setAttribute("name","viewport"),d=n(a.content)&&a.content.includes(c),b?(this.cleanupViewport=!d,d||(a.content+=",".concat(c))):this.cleanupViewport&&(a.content=a.content.split(",").filter(function(a){return a.trim()!==c}).join(","))),this.onChange()}},{key:"trapFocus",value:function(a){if(!r.isIos&&this.active&&"Tab"===a.key&&9===a.keyCode){var c=document.activeElement,b=K.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),d=s(b,1)[0],e=b[b.length-1];c!==e||a.shiftKey?c===d&&a.shiftKey&&(e.focus(),a.preventDefault()):(d.focus(),a.preventDefault())}}},{key:"update",value:function(){var b;this.enabled?(b=this.forceFallback?"Fallback (forced)":a.native?"Native":"Fallback",this.player.debug.log("".concat(b," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled"),f(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(r.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!a.native||this.forceFallback?this.toggleFallback(!0):this.prefix?c(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(r.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),w(this.player.play());else if(!a.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!c(this.prefix)){var b="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(b).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 a.native&&!this.forceFallback}},{key:"enabled",get:function(){return(a.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!a.native||this.forceFallback)return X(this.target,this.player.config.classNames.fullscreen.fallback);var b=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return b&&b.shadowRoot?b===this.target.getRootNode().host:b===this.target}},{key:"target",get:function(){return r.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(j(document.exitFullscreen))return"";var a="";return["webkit","moz","ms"].some(function(b){return!(!j(document["".concat(b,"ExitFullscreen")])&&!j(document["".concat(b,"CancelFullScreen")]))&&(a=b,!0)}),a}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),a}();function ad(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(e,f){var c=new Image,d=function(){delete c.onload,delete c.onerror,(c.naturalWidth>=b?e:f)(c)};Object.assign(c,{onload:d,onerror:d,src:a})})}i={addStyleHook:function(){f(this.elements.container,this.config.selectors.container.replace(".",""),!0),f(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var c=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void i.toggleNativeControls.call(this,!0);b(this.elements.controls)||(a.inject.call(this),this.listeners.controls()),i.toggleNativeControls.call(this),this.isHTML5&&h.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,a.updateVolume.call(this),a.timeUpdate.call(this),i.checkPlaying.call(this),f(this.elements.container,this.config.classNames.pip.supported,l.pip&&this.isHTML5&&this.isVideo),f(this.elements.container,this.config.classNames.airplay.supported,l.airplay&&this.isHTML5),f(this.elements.container,this.config.classNames.isIos,r.isIos),f(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){d.call(c,c.media,"ready")},0),i.setTitle.call(this),this.poster&&i.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&a.durationUpdate.call(this)},setTitle:function(){var a=q("play",this.config),d,e,f;if(n(this.config.title)&&!c(this.config.title)&&(a+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(b){b.setAttribute("aria-label",a)}),this.isEmbed){if(d=p.call(this,"iframe"),!b(d))return;e=c(this.config.title)?"video":this.config.title,f=q("frameTitle",this.config),d.setAttribute("title",f.replace("{title}",e))}},togglePoster:function(a){f(this.elements.container,this.config.classNames.posterEnabled,a)},setPoster:function(a){var b=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return c&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",a),bF.call(this).then(function(){return ad(a)}).catch(function(c){throw a===b.poster&&i.togglePoster.call(b,!1),c}).then(function(){if(a!==b.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(b.elements.poster.style,{backgroundImage:"url('".concat(a,"')"),backgroundSize:""}),i.togglePoster.call(b,!0),a}))},checkPlaying:function(b){var a=this;f(this.elements.container,this.config.classNames.playing,this.playing),f(this.elements.container,this.config.classNames.paused,this.paused),f(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(b){Object.assign(b,{pressed:a.playing}),b.setAttribute("aria-label",q(a.playing?"pause":"play",a.config))}),A(b)&&"timeupdate"===b.type||i.toggleControls.call(this)},checkLoading:function(b){var a=this;this.loading=["stalled","waiting"].includes(b.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){f(a.elements.container,a.config.classNames.loading,a.loading),i.toggleControls.call(a)},this.loading?250:0)},toggleControls:function(b){var a=this.elements.controls,c;a&&this.config.hideControls&&(c=this.touch&&this.lastSeekTime+2e3>Date.now(),this.toggleControls(Boolean(b||this.loading||this.paused||a.pressed||a.hover||c)))},migrateStyles:function(){var a=this;Object.values(W({},this.media.style)).filter(function(a){return!c(a)&&a.startsWith("--plyr")}).forEach(function(b){a.elements.container.style.setProperty(b,a.media.style.getPropertyValue(b)),a.media.style.removeProperty(b)}),c(this.media.style)&&this.media.removeAttribute("style")}},bt=function(){function e(a){D(this,e),this.player=a,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 I(e,[{key:"handleKey",value:function(c){var a=this.player,h=a.elements,d=c.keyCode?c.keyCode:c.which,g="keydown"===c.type,e=g&&d===this.lastKey,f,i;if(!(c.altKey||c.ctrlKey||c.metaKey||c.shiftKey)&&k(d))if(g){if(f=document.activeElement,b(f)){if(i=a.config.selectors.editable,f!==h.inputs.seek&&H(f,i))return;if(32===c.which&&H(f,'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(d)&&(c.preventDefault(),c.stopPropagation()),d){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:e||(a.currentTime=a.duration/10*(d-48));break;case 32:case 75:e||w(a.togglePlay());break;case 38:a.increaseVolume(.1);break;case 40:a.decreaseVolume(.1);break;case 77:e||(a.muted=!a.muted);break;case 39:a.forward();break;case 37:a.rewind();break;case 70:a.fullscreen.toggle();break;case 67:e||a.toggleCaptions();break;case 76:a.loop=!a.loop}27===d&&!a.fullscreen.usingNative&&a.fullscreen.active&&a.fullscreen.toggle(),this.lastKey=d}else this.lastKey=null}},{key:"toggleMenu",value:function(b){a.toggleMenu.call(this.player,b)}},{key:"firstTouch",value:function(){var a=this.player,b=a.elements;a.touch=!0,f(b.container,a.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(a){var b=this.player,d=b.elements,c,e;(clearTimeout(this.focusTimer),"keydown"!==a.type||9===a.which)&&("keydown"===a.type&&(this.lastKeyDown=a.timeStamp),e=a.timeStamp-this.lastKeyDown<=20,("focus"!==a.type||e)&&(c=b.config.classNames.tabFocus,f(K.call(b,".".concat(c)),c,!1),"focusout"!==a.type&&(this.focusTimer=setTimeout(function(){var a=document.activeElement;d.container.contains(a)&&f(document.activeElement,b.config.classNames.tabFocus,!0)},10))))}},{key:"global",value:function(){var b=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=this.player;a.config.keyboard.global&&L.call(a,window,"keydown keyup",this.handleKey,b,!1),L.call(a,document.body,"click",this.toggleMenu,b),aH.call(a,document.body,"touchstart",this.firstTouch),L.call(a,document.body,"keydown focus blur focusout",this.setTabFocus,b,!1,!0)}},{key:"container",value:function(){var a=this.player,e=a.config,b=a.elements,d=a.timers,f,h;!e.keyboard.global&&e.keyboard.focused&&g.call(a,b.container,"keydown keyup",this.handleKey,!1),g.call(a,b.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var c=b.controls,f;c&&"enterfullscreen"===e.type&&(c.pressed=!1,c.hover=!1),f=0,["touchstart","touchmove","mousemove"].includes(e.type)&&(i.toggleControls.call(a,!0),f=a.touch?3e3:2e3),clearTimeout(d.controls),d.controls=setTimeout(function(){return i.toggleControls.call(a,!1)},f)}),f=function(d){if(!d)return C.call(a);var c=b.container.getBoundingClientRect(),e=c.width,f=c.height;return C.call(a,"".concat(e,":").concat(f))},h=function(){clearTimeout(d.resized),d.resized=setTimeout(f,50)},g.call(a,b.container,"enterfullscreen exitfullscreen",function(j){var e=a.fullscreen,k=e.target,l=e.usingNative,d,i;k===b.container&&(a.isEmbed||!c(a.config.ratio))&&(d="enterfullscreen"===j.type,i=f(d),i.padding,!function(e,i,b){if(a.isVimeo&&!a.config.vimeo.premium){var c=a.elements.wrapper.firstChild,g=s(e,2)[1],d=s(aO.call(a),2),h=d[0],f=d[1];c.style.maxWidth=b?"".concat(g/f*h,"px"):null,c.style.margin=b?"0 auto":null}}(i.ratio,0,d),l||(d?g.call(a,window,"resize",h):ag.call(a,window,"resize",h)))})}},{key:"media",value:function(){var f=this,c=this.player,e=c.elements,h,j;if(g.call(c,c.media,"timeupdate seeking seeked",function(b){return a.timeUpdate.call(c,b)}),g.call(c,c.media,"durationchange loadeddata loadedmetadata",function(b){return a.durationUpdate.call(c,b)}),g.call(c,c.media,"ended",function(){c.isHTML5&&c.isVideo&&c.config.resetOnEnd&&(c.restart(),c.pause())}),g.call(c,c.media,"progress playing seeking seeked",function(b){return a.updateProgress.call(c,b)}),g.call(c,c.media,"volumechange",function(b){return a.updateVolume.call(c,b)}),g.call(c,c.media,"playing play pause ended emptied timeupdate",function(a){return i.checkPlaying.call(c,a)}),g.call(c,c.media,"waiting canplay seeked playing",function(a){return i.checkLoading.call(c,a)}),c.supported.ui&&c.config.clickToPlay&&!c.isAudio){if(h=p.call(c,".".concat(c.config.classNames.video)),!b(h))return;g.call(c,e.container,"click",function(a){([e.container,h].includes(a.target)||h.contains(a.target))&&(c.touch&&c.config.hideControls||(c.ended?(f.proxy(a,c.restart,"restart"),f.proxy(a,function(){w(c.play())},"play")):f.proxy(a,function(){w(c.togglePlay())},"play")))})}c.supported.ui&&c.config.disableContextMenu&&g.call(c,e.wrapper,"contextmenu",function(a){a.preventDefault()},!1),g.call(c,c.media,"volumechange",function(){c.storage.set({volume:c.volume,muted:c.muted})}),g.call(c,c.media,"ratechange",function(){a.updateSetting.call(c,"speed"),c.storage.set({speed:c.speed})}),g.call(c,c.media,"qualitychange",function(b){a.updateSetting.call(c,"quality",null,b.detail.quality)}),g.call(c,c.media,"ready qualitychange",function(){a.setDownloadUrl.call(c)}),j=c.config.events.concat(["keyup","keydown"]).join(" "),g.call(c,c.media,j,function(a){var b=a.detail,f=void 0===b?{}:b;"error"===a.type&&(f=c.media.error),d.call(c,e.container,a.type,!0,f)})}},{key:"proxy",value:function(b,c,f){var a=this.player,d=a.config.listeners[f],e=!0;j(d)&&(e=d.call(a,b)),!1!==e&&j(c)&&c.call(a,b)}},{key:"bind",value:function(h,c,d,b){var e=this,f=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,i=a.config.listeners[b],k=j(i);g.call(a,h,c,function(a){return e.proxy(a,d,b)},f&&!k)}},{key:"controls",value:function(){var h=this,e=this.player,g=e.elements,j=r.isIE?"change":"input",k;g.buttons.play&&Array.from(g.buttons.play).forEach(function(a){h.bind(a,"click",function(){w(e.togglePlay())},"play")}),this.bind(g.buttons.restart,"click",e.restart,"restart"),this.bind(g.buttons.rewind,"click",e.rewind,"rewind"),this.bind(g.buttons.fastForward,"click",e.forward,"fastForward"),this.bind(g.buttons.mute,"click",function(){e.muted=!e.muted},"mute"),this.bind(g.buttons.captions,"click",function(){return e.toggleCaptions()}),this.bind(g.buttons.download,"click",function(){d.call(e,e.media,"download")},"download"),this.bind(g.buttons.fullscreen,"click",function(){e.fullscreen.toggle()},"fullscreen"),this.bind(g.buttons.pip,"click",function(){e.pip="toggle"},"pip"),this.bind(g.buttons.airplay,"click",e.airplay,"airplay"),this.bind(g.buttons.settings,"click",function(b){b.stopPropagation(),b.preventDefault(),a.toggleMenu.call(e,b)},null,!1),this.bind(g.buttons.settings,"keyup",function(b){var c=b.which;[13,32].includes(c)&&(13!==c?(b.preventDefault(),b.stopPropagation(),a.toggleMenu.call(e,b)):a.focusFirstMenuItem.call(e,null,!0))},null,!1),this.bind(g.settings.menu,"keydown",function(b){27===b.which&&a.toggleMenu.call(e,b)}),this.bind(g.inputs.seek,"mousedown mousemove",function(a){var b=g.progress.getBoundingClientRect(),c=100/b.width*(a.pageX-b.left);a.currentTarget.setAttribute("seek-value",c)}),this.bind(g.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(a){var b=a.currentTarget,c=a.keyCode?a.keyCode:a.which,f,d;(!E(a)||39===c||37===c)&&(e.lastSeekTime=Date.now(),f=b.hasAttribute("play-on-seeked"),d=["mouseup","touchend","keyup"].includes(a.type),f&&d?(b.removeAttribute("play-on-seeked"),w(e.play())):!d&&e.playing&&(b.setAttribute("play-on-seeked",""),e.pause()))}),r.isIos&&(k=K.call(e,'input[type="range"]'),Array.from(k).forEach(function(a){return h.bind(a,j,function(a){return bj(a.target)})})),this.bind(g.inputs.seek,j,function(d){var a=d.currentTarget,b=a.getAttribute("seek-value");c(b)&&(b=a.value),a.removeAttribute("seek-value"),e.currentTime=b/a.max*e.duration},"seek"),this.bind(g.progress,"mouseenter mouseleave mousemove",function(b){return a.updateSeekTooltip.call(e,b)}),this.bind(g.progress,"mousemove touchmove",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.startMove(b)}),this.bind(g.progress,"mouseleave touchend click",function(){var a=e.previewThumbnails;a&&a.loaded&&a.endMove(!1,!0)}),this.bind(g.progress,"mousedown touchstart",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.startScrubbing(b)}),this.bind(g.progress,"mouseup touchend",function(b){var a=e.previewThumbnails;a&&a.loaded&&a.endScrubbing(b)}),r.isWebkit&&Array.from(K.call(e,'input[type="range"]')).forEach(function(b){h.bind(b,"input",function(b){return a.updateRangeFill.call(e,b.target)})}),e.config.toggleInvert&&!b(g.display.duration)&&this.bind(g.display.currentTime,"click",function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,a.timeUpdate.call(e))}),this.bind(g.inputs.volume,j,function(a){e.volume=a.target.value},"volume"),this.bind(g.controls,"mouseenter mouseleave",function(a){g.controls.hover=!e.touch&&"mouseenter"===a.type}),g.fullscreen&&Array.from(g.fullscreen.children).filter(function(a){return!a.contains(g.container)}).forEach(function(a){h.bind(a,"mouseenter mouseleave",function(a){g.controls.hover=!e.touch&&"mouseenter"===a.type})}),this.bind(g.controls,"mousedown mouseup touchstart touchend touchcancel",function(a){g.controls.pressed=["mousedown","touchstart"].includes(a.type)}),this.bind(g.controls,"focusin",function(){var a=e.config,b=e.timers,c;f(g.controls,a.classNames.noTransition,!0),i.toggleControls.call(e,!0),setTimeout(function(){f(g.controls,a.classNames.noTransition,!1)},0),c=h.touch?3e3:4e3,clearTimeout(b.controls),b.controls=setTimeout(function(){return i.toggleControls.call(e,!1)},c)}),this.bind(g.inputs.volume,"wheel",function(a){var h=a.webkitDirectionInvertedFromDevice,c=s([a.deltaX,-a.deltaY].map(function(a){return h?-a:a}),2),d=c[0],f=c[1],b=Math.sign(Math.abs(d)>Math.abs(f)?d:f),g;e.increaseVolume(b/50),g=e.media.volume,(1===b&&g<1||-1===b&&g>0)&&a.preventDefault()},"volume",!1)}}]),e}(),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,bu=function(b,a){return b(a={exports:{}},a.exports),a.exports}(function(a,b){a.exports=function(){var d=function(){},c={},e={},b={};function g(a,d){if(a){var c=b[a];if(e[a]=d,c)for(;c.length;)c[0](a,d),c.splice(0,1)}}function f(a,b){a.call&&(a={success:a}),b.length?(a.error||d)(b):(a.success||d)(a)}function h(b,i,c,e){var g,a,f=document,j=c.async,m=(c.numRetries||0)+1,n=c.before||d,k=b.replace(/[\?|#].*$/,""),l=b.replace(/^(css|img)!/,"");e=e||0,/(^css!|\.css$)/.test(k)?((a=f.createElement("link")).rel="stylesheet",a.href=l,(g="hideFocus"in a)&&a.relList&&(g=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(k)?(a=f.createElement("img")).src=l:((a=f.createElement("script")).src=b,a.async=void 0===j||j),a.onload=a.onerror=a.onbeforeload=function(f){var d=f.type[0];if(g)try{a.sheet.cssText.length||(d="e")}catch(a){18!=a.code&&(d="e")}if("e"==d){if((e+=1)0&&void 0!==arguments[0]&&arguments[0],c;if(!b)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");c=function(){var b=aa(Math.max(a.manager.getRemainingTime(),0)),c="".concat(q("advertisement",a.player.config)," - ").concat(b);a.elements.container.setAttribute("data-badge-text",c)},this.countdownTimer=setInterval(c,100)}},{key:"onAdsManagerLoaded",value:function(c){var a=this,b;this.enabled&&(b=new google.ima.AdsRenderingSettings,b.restoreCustomPlaybackStateOnAdBreakComplete=!0,b.enablePreloading=!0,this.manager=c.getAdsManager(this.player,b),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(b){return a.onAdError(b)}),Object.keys(google.ima.AdEvent.Type).forEach(function(b){a.manager.addEventListener(google.ima.AdEvent.Type[b],function(b){return a.onAdEvent(b)})}),this.trigger("loaded"))}},{key:"addCuePoints",value:function(){var a=this;c(this.cuePoints)||this.cuePoints.forEach(function(c){var d,g,f;0!==c&&-1!==c&&c1?b-1:0),a=1,d;aa.width/a.height?(b.width=a.width,b.height=1/c*a.width):(b.height=a.height,b.width=c*a.height),b},aP=function(){function a(b){D(this,a),this.player=b,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return I(a,[{key:"load",value:function(){var a=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(function(){a.enabled&&(a.render(),a.determineContainerAutoSizing(),a.loaded=!0)})}},{key:"getThumbnails",value:function(){var a=this;return new Promise(function(e){var b=a.player.config.previewThumbnails.src,d,f;if(c(b))throw new Error("Missing previewThumbnails.src config attribute");d=function(){a.thumbnails.sort(function(a,b){return a.height-b.height}),a.player.debug.log("Preview thumbnails",a.thumbnails),e()},j(b)?b(function(b){a.thumbnails=b,d()}):(f=(n(b)?[b]:b).map(function(b){return a.getThumbnail(b)}),Promise.all(f).then(d))})}},{key:"getThumbnail",value:function(a){var b=this;return new Promise(function(d){S(a).then(function(i){var h,g,e={frames:(h=i,g=[],h.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(b){var a={};b.split(/\r\n|\n|\r/).forEach(function(f){var e,g,d,b;k(a.startTime)?!c(f.trim())&&c(a.text)&&(e=f.trim().split("#xywh="),g=s(e,1),(a.text=g[0],e[1])&&(d=s(e[1].split(","),4),a.x=d[0],a.y=d[1],a.w=d[2],a.h=d[3])):(b=f.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})/),b&&(a.startTime=60*Number(b[1]||0)*60+60*Number(b[2])+Number(b[3])+Number("0.".concat(b[4])),a.endTime=60*Number(b[6]||0)*60+60*Number(b[7])+Number(b[8])+Number("0.".concat(b[9]))))}),a.text&&g.push(a)}),g),height:null,urlPrefix:""},f;e.frames[0].text.startsWith("/")||e.frames[0].text.startsWith("http://")||e.frames[0].text.startsWith("https://")||(e.urlPrefix=a.substring(0,a.lastIndexOf("/")+1)),f=new Image,f.onload=function(){e.height=f.naturalHeight,e.width=f.naturalWidth,b.thumbnails.push(e),d()},f.src=e.urlPrefix+e.frames[0].text})})}},{key:"startMove",value:function(a){if(this.loaded&&A(a)&&["touchmove","mousemove"].includes(a.type)&&this.player.media.duration){if("touchmove"===a.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var b=this.player.elements.progress.getBoundingClientRect(),c=100/b.width*(a.pageX-b.left);this.seekTime=this.player.media.duration*(c/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=a.pageX,this.elements.thumb.time.innerText=aa(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(a){(F(a.button)||!1===a.button||0===a.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var a=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):aH.call(this.player,this.player.media,"timeupdate",function(){a.mouseDown||a.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var a=this;this.player.on("play",function(){a.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){a.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){a.lastTime=a.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=e("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=e("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var a=e("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=e("span",{},"00:00"),a.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(a),b(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=e("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 b=this,a,c,d;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos(),a=this.thumbnails[0].frames.findIndex(function(a){return b.seekTime>=a.startTime&&b.seekTime<=a.endTime}),c=a>=0,d=0,this.mouseDown||this.toggleThumbContainer(c),c&&(this.thumbnails.forEach(function(c,e){b.loadedImages.includes(c.frames[a].text)&&(d=e)}),a!==this.showingThumb&&(this.showingThumb=a,this.loadImage(d)))}},{key:"loadImage",value:function(){var i=this,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=this.showingThumb,e=this.thumbnails[d],h=e.urlPrefix,f=e.frames[c],b=e.frames[c].text,g=h+b,a;this.currentImageElement&&this.currentImageElement.dataset.filename===b?(this.showImage(this.currentImageElement,f,d,c,b,!1),this.currentImageElement.dataset.index=c,this.removeOldImages(this.currentImageElement)):(this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null),a=new Image,a.src=g,a.dataset.index=c,a.dataset.filename=b,this.showingThumbFilename=b,this.player.debug.log("Loading image: ".concat(g)),a.onload=function(){return i.showImage(a,f,d,c,b,!0)},this.loadingImage=a,this.removeOldImages(a))}},{key:"showImage",value:function(a,d,e,c,b){var f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(b,". num: ").concat(c,". qual: ").concat(e,". newimg: ").concat(f)),this.setImageSizeAndOffset(a,d),f&&(this.currentImageContainer.appendChild(a),this.currentImageElement=a,this.loadedImages.includes(b)||this.loadedImages.push(b)),this.preloadNearby(c,!0).then(this.preloadNearby(c,!1)).then(this.getHigherQuality(e,a,d,b))}},{key:"removeOldImages",value:function(b){var a=this;Array.from(this.currentImageContainer.children).forEach(function(c){var d,e;"img"===c.tagName.toLowerCase()&&(d=a.usingSprites?500:1e3,c.dataset.index!==b.dataset.index&&!c.dataset.deleting&&(c.dataset.deleting=!0,e=a.currentImageContainer,setTimeout(function(){e.removeChild(c),a.player.debug.log("Removing thumb: ".concat(c.dataset.filename))},d)))})}},{key:"preloadNearby",value:function(b){var a=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(d){setTimeout(function(){var e=a.thumbnails[0].frames[b].text,f,g;a.showingThumbFilename===e&&(f=c?a.thumbnails[0].frames.slice(b):a.thumbnails[0].frames.slice(0,b).reverse(),g=!1,f.forEach(function(f){var b=f.text,h,c;b!==e&&!a.loadedImages.includes(b)&&(g=!0,a.player.debug.log("Preloading thumb filename: ".concat(b)),h=a.thumbnails[0].urlPrefix+b,c=new Image,c.src=h,c.onload=function(){a.player.debug.log("Preloaded thumb filename: ".concat(b)),a.loadedImages.includes(b)||a.loadedImages.push(b),d()})}),g||d())},300)})}},{key:"getHigherQuality",value:function(b,e,f,c){var a=this,d;b0&&void 0!==arguments[0]&&arguments[0],b=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(c,a),!a&&b&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],b=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(b,a),a||(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(){var a,b,c;this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20?(a=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio),this.elements.thumb.imageContainer.style.width="".concat(a,"px")):this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20&&(b=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio),this.elements.thumb.imageContainer.style.height="".concat(b,"px")):(c=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio),this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(c,"px")),this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var b=this.player.elements.progress.getBoundingClientRect(),d=this.player.elements.container.getBoundingClientRect(),c=this.elements.thumb.container,e=d.left-b.left+10,f=d.right-b.left-c.clientWidth-10,a=this.mousePosX-b.left-c.clientWidth/2;af&&(a=f),c.style.left="".concat(a,"px")}},{key:"setScrubbingContainerSize",value:function(){var a=aL(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),b=a.width,c=a.height;this.elements.scrubbing.container.style.width="".concat(b,"px"),this.elements.scrubbing.container.style.height="".concat(c,"px")}},{key:"setImageSizeAndOffset",value:function(a,c){if(this.usingSprites){var b=this.thumbContainerHeight/c.h;a.style.height="".concat(a.naturalHeight*b,"px"),a.style.width="".concat(a.naturalWidth*b,"px"),a.style.left="-".concat(c.x*b,"px"),a.style.top="-".concat(c.y*b,"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?aL(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(a){this.mouseDown?this.currentScrubbingImageElement=a:this.currentThumbnailImageElement=a}}]),a}(),ab={insertElements:function(b,a){var c=this;n(a)?be(b,this.media,{src:a}):o(a)&&a.forEach(function(a){be(b,c.media,a)})},change:function(d){var a=this;bi(d,"sources.length")?(z.cancelRequests.call(this),this.destroy.call(this,function(){a.options.quality=[],x(a.media),a.media=null,b(a.elements.container)&&a.elements.container.removeAttribute("class");var h=d.sources,g=d.type,j=s(h,1)[0],k=j.provider,f=void 0===k?y.html5:k,m=j.src,n="html5"===f?g:"div",o="html5"===f?{}:{src:m};Object.assign(a,{provider:f,type:g,supported:l.check(g,f,a.config.playsinline),media:e(n,o)}),a.elements.container.appendChild(a.media),t(d.autoplay)&&(a.config.autoplay=d.autoplay),a.isHTML5&&(a.config.crossorigin&&a.media.setAttribute("crossorigin",""),a.config.autoplay&&a.media.setAttribute("autoplay",""),c(d.poster)||(a.poster=d.poster),a.config.loop.active&&a.media.setAttribute("loop",""),a.config.muted&&a.media.setAttribute("muted",""),a.config.playsinline&&a.media.setAttribute("playsinline","")),i.addStyleHook.call(a),a.isHTML5&&ab.insertElements.call(a,"source",h),a.config.title=d.title,aI.setup.call(a),a.isHTML5&&Object.keys(d).includes("tracks")&&ab.insertElements.call(a,"track",d.tracks),(a.isHTML5||a.isEmbed&&!a.supported.ui)&&i.build.call(a),a.isHTML5&&a.media.load(),c(d.previewThumbnails)||(Object.assign(a.config.previewThumbnails,d.previewThumbnails),a.previewThumbnails&&a.previewThumbnails.loaded&&(a.previewThumbnails.destroy(),a.previewThumbnails=null),a.config.previewThumbnails.enabled&&(a.previewThumbnails=new aP(a))),a.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}},ay=function(){function p(q,r){var h=this,j,k,d,a,f;if(D(this,p),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=l.touch,this.media=q,n(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||J(this.media)||o(this.media))&&(this.media=this.media[0]),this.config=m({},am,p.defaults,r||{},function(){try{return JSON.parse(h.media.getAttribute("data-plyr-config"))}catch(a){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new bp(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",l),!F(this.media)&&b(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(l.check().api){switch(j=this.media.cloneNode(!0),j.autoplay=!1,this.elements.original=j,k=this.media.tagName.toLowerCase(),d=null,a=null,k){case"div":if((d=this.media.querySelector("iframe"),b(d))?(a=bf(d.getAttribute("src")),this.provider=function(a){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(a)?y.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(a)?y.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=d,this.elements.container.className="",a.search.length)&&(f=["1","true"],f.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),f.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=f.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0):(this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider)),c(this.provider)||!Object.keys(y).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=au;break;case"video":case"audio":this.type=k,this.provider=y.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=l.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new bt(this),this.storage=new aM(this),this.media.plyr=this,b(this.elements.container)||(this.elements.container=e("div",{tabindex:0}),bh(this.media,this.elements.container)),i.migrateStyles.call(this),i.addStyleHook.call(this),aI.setup.call(this),this.config.debug&&g.call(this,this.elements.container,this.config.events.join(" "),function(a){h.debug.log("event: ".concat(a.type))}),this.fullscreen=new bo(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&i.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new bw(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return w(h.play())},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new aP(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 I(p,[{key:"play",value:function(){var a=this;return j(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return a.ads.play()}).catch(function(){return w(a.media.play())}),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&j(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(a){return(t(a)?a:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):j(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(a){this.currentTime-=k(a)?a:this.config.seekTime}},{key:"forward",value:function(a){this.currentTime+=k(a)?a:this.config.seekTime}},{key:"increaseVolume",value:function(a){var b=this.media.muted?0:this.volume;this.volume=b+(k(a)?a:0)}},{key:"decreaseVolume",value:function(a){this.increaseVolume(-a)}},{key:"toggleCaptions",value:function(a){h.toggle.call(this,a,!1)}},{key:"airplay",value:function(){l.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){var g,h,b,i;return!!(this.supported.ui&&!this.isAudio)&&(g=X(this.elements.container,this.config.classNames.hideControls),h=void 0===e?void 0:!e,b=f(this.elements.container,this.config.classNames.hideControls,h),(b&&this.config.controls.includes("settings")&&!c(this.config.settings)&&a.toggleMenu.call(this,!1),b!==g)&&(i=b?"controlshidden":"controlsshown",d.call(this,this.media,i)),!b)}},{key:"on",value:function(a,b){g.call(this,this.elements.container,a,b)}},{key:"once",value:function(a,b){aH.call(this,this.elements.container,a,b)}},{key:"off",value:function(a,b){ag(this.elements.container,a,b)}},{key:"destroy",value:function(b){var a=this,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c;this.ready&&(c=function(){document.body.style.overflow="",a.embed=null,e?(Object.keys(a.elements).length&&(x(a.elements.buttons.play),x(a.elements.captions),x(a.elements.controls),x(a.elements.wrapper),a.elements.buttons.play=null,a.elements.captions=null,a.elements.controls=null,a.elements.wrapper=null),j(b)&&b()):(bD.call(a),ak(a.elements.original,a.elements.container),d.call(a,a.elements.original,"destroyed",!0),j(b)&&b.call(a.elements.original),a.ready=!1,setTimeout(function(){a.elements=null,a.media=null},200))},this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(i.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&j(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(c),setTimeout(c,200)))}},{key:"supports",value:function(a){return l.mime.call(this,a)}},{key:"isHTML5",get:function(){return this.provider===y.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===y.youtube}},{key:"isVimeo",get:function(){return this.provider===y.vimeo}},{key:"isVideo",get:function(){return this.type===au}},{key:"isAudio",get:function(){return this.type===bm}},{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(a){if(this.duration){var b=k(a)&&a>0;this.media.currentTime=b?Math.min(a,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var a=this.media.buffered;return k(a)?a:a&&a.length&&this.duration>0?a.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var b=parseFloat(this.config.duration),a=(this.media||{}).duration,c=k(a)&&a!==1/0?a:0;return b||c}},{key:"volume",set:function(b){var a=b;n(a)&&(a=Number(a)),k(a)||(a=this.storage.get("volume")),k(a)||(a=this.config.volume),a>1&&(a=1),a<0&&(a=0),this.config.volume=a,this.media.volume=a,!c(b)&&this.muted&&a>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(b){var a=b;t(a)||(a=this.storage.get("muted")),t(a)||(a=this.config.muted),this.config.muted=a,this.media.muted=a},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(b){var c=this,a=null,d,e;k(b)&&(a=b),k(a)||(a=this.storage.get("speed")),k(a)||(a=this.config.speed.selected),d=this.minimumSpeed,e=this.maximumSpeed,a=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(a,b),c)}(a,d,e),this.config.speed.selected=a,setTimeout(function(){c.media.playbackRate=a},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,aN(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,aN(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var b=this.config.quality,d=this.options.quality,a,f,g;d.length&&(a=[!c(e)&&Number(e),this.storage.get("quality"),b.selected,b.default].find(k),f=!0,d.includes(a)||(g=function(a,b){return o(a)&&a.length?a.reduce(function(a,c){return Math.abs(c-b)1&&void 0!==arguments[1]?arguments[1]:{},d=null;return n(a)?d=Array.from(document.querySelectorAll(a)):J(a)?d=Array.from(a):o(a)&&(d=a.filter(b)),c(d)?null:d.map(function(a){return new p(a,e)})}}]),p}(),ay.defaults=(aT=am,JSON.parse(JSON.stringify(aT))),ay}),!function(b,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):(b=b||self).FullCalendarLocalesAll=a()}(this,function(){return"use strict",[{code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayHtml:"Heeldag",eventLimitText:"Addisionele",noEventsMessage:"Daar is geen gebeurtenisse nie"},{code:"ar-dz",week:{dow:0,doy:4},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-kw",week:{dow:0,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-ly",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-ma",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-sa",week:{dow:0,doy:6},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar-tn",week:{dow:1,doy:4},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"ar",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekLabel:"أسبوع",allDayText:"اليوم كله",eventLimitText:"أخرى",noEventsMessage:"أي أحداث لعرض"},{code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekLabel:"Həftə",allDayText:"Bütün Gün",eventLimitText:function(a){return"+ daha çox "+a},noEventsMessage:"Göstərmək üçün hadisə yoxdur"},{code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",eventLimitText:function(a){return"+още "+a},noEventsMessage:"Няма събития за показване"},{code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekLabel:"Sed",allDayText:"Cijeli dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nema događaja za prikazivanje"},{code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekLabel:"Set",allDayText:"Tot el dia",eventLimitText:"més",noEventsMessage:"No hi ha esdeveniments per mostrar"},{code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekLabel:"Týd",allDayText:"Celý den",eventLimitText:function(a){return"+další: "+a},noEventsMessage:"Žádné akce k zobrazení"},{code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekLabel:"Uge",allDayText:"Hele dagen",eventLimitText:"flere",noEventsMessage:"Ingen arrangementer at vise"},{code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekLabel:"KW",allDayText:"Ganztägig",eventLimitText:function(a){return"+ weitere "+a},noEventsMessage:"Keine Ereignisse anzuzeigen"},{code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekLabel:"Εβδ",allDayText:"Ολοήμερο",eventLimitText:"περισσότερα",noEventsMessage:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},{code:"en-au",week:{dow:1,doy:4}},{code:"en-gb",week:{dow:1,doy:4}},{code:"en-nz",week:{dow:1,doy:4}},{code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo
el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"},{code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Todo
el día",eventLimitText:"más",noEventsMessage:"No hay eventos para mostrar"},{code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekLabel:"näd",allDayText:"Kogu päev",eventLimitText:function(a){return"+ veel "+a},noEventsMessage:"Kuvamiseks puuduvad sündmused"},{code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekLabel:"As",allDayHtml:"Egun
osoa",eventLimitText:"gehiago",noEventsMessage:"Ez dago ekitaldirik erakusteko"},{code:"fa",week:{dow:6,doy:12},dir:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekLabel:"هف",allDayText:"تمام روز",eventLimitText:function(a){return"بیش از "+a},noEventsMessage:"هیچ رویدادی به نمایش"},{code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekLabel:"Vk",allDayText:"Koko päivä",eventLimitText:"lisää",noEventsMessage:"Ei näytettäviä tapahtumia"},{code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sem.",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekLabel:"Sm",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekLabel:"Sem.",allDayHtml:"Toute la
journée",eventLimitText:"en plus",noEventsMessage:"Aucun événement à afficher"},{code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},weekLabel:"Sm",allDayHtml:"Todo
o día",eventLimitText:"máis",noEventsMessage:"Non hai eventos para amosar"},{code:"he",dir:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",eventLimitText:"אחר",noEventsMessage:"אין אירועים להצגה",weekLabel:"שבוע"},{code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekLabel:"हफ्ता",allDayText:"सभी दिन",eventLimitText:function(a){return"+अधिक "+a},noEventsMessage:"कोई घटनाओं को प्रदर्शित करने के लिए"},{code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekLabel:"Tje",allDayText:"Cijeli dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nema događaja za prikaz"},{code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",month:"Hónap",week:"Hét",day:"Nap",list:"Napló"},weekLabel:"Hét",allDayText:"Egész nap",eventLimitText:"további",noEventsMessage:"Nincs megjeleníthető esemény"},{code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayHtml:"Sehari
penuh",eventLimitText:"lebih",noEventsMessage:"Tidak ada acara untuk ditampilkan"},{code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekLabel:"Vika",allDayHtml:"Allan
daginn",eventLimitText:"meira",noEventsMessage:"Engir viðburðir til að sýna"},{code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekLabel:"Sm",allDayHtml:"Tutto il
giorno",eventLimitText:function(a){return"+altri "+a},noEventsMessage:"Non ci sono eventi da visualizzare"},{code:"ja",buttonText:{prev:"前",next:"次",today:"今日",month:"月",week:"週",day:"日",list:"予定リスト"},weekLabel:"週",allDayText:"終日",eventLimitText:function(a){return"他 "+a+" 件"},noEventsMessage:"表示する予定はありません"},{code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekLabel:"კვ",allDayText:"მთელი დღე",eventLimitText:function(a){return"+ კიდევ "+a},noEventsMessage:"ღონისძიებები არ არის"},{code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekLabel:"Не",allDayText:"Күні бойы",eventLimitText:function(a){return"+ тағы "+a},noEventsMessage:"Көрсету үшін оқиғалар жоқ"},{code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",month:"월",week:"주",day:"일",list:"일정목록"},weekLabel:"주",allDayText:"종일",eventLimitText:"개",noEventsMessage:"일정이 없습니다"},{code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekLabel:"W",allDayText:"Ganzen Dag",eventLimitText:"méi",noEventsMessage:"Nee Evenementer ze affichéieren"},{code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekLabel:"SAV",allDayText:"Visą dieną",eventLimitText:"daugiau",noEventsMessage:"Nėra įvykių rodyti"},{code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekLabel:"Ned.",allDayText:"Visu dienu",eventLimitText:function(a){return"+vēl "+a},noEventsMessage:"Nav notikumu"},{code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekLabel:"Сед",allDayText:"Цел ден",eventLimitText:function(a){return"+повеќе "+a},noEventsMessage:"Нема настани за прикажување"},{code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekLabel:"Mg",allDayText:"Sepanjang hari",eventLimitText:function(a){return"masih ada "+a+" acara"},noEventsMessage:"Tiada peristiwa untuk dipaparkan"},{code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekLabel:"Uke",allDayText:"Hele dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"},{code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Voorgaand",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",eventLimitText:"extra",noEventsMessage:"Geen evenementen om te laten zien"},{code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekLabel:"Veke",allDayText:"Heile dagen",eventLimitText:"til",noEventsMessage:"Ingen hendelser å vise"},{code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekLabel:"Tydz",allDayText:"Cały dzień",eventLimitText:"więcej",noEventsMessage:"Brak wydarzeń do wyświetlenia"},{code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},weekLabel:"Sm",allDayText:"dia inteiro",eventLimitText:function(a){return"mais +"+a},noEventsMessage:"Não há eventos para mostrar"},{code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekLabel:"Sem",allDayText:"Todo o dia",eventLimitText:"mais",noEventsMessage:"Não há eventos para mostrar"},{code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekLabel:"Săpt",allDayText:"Toată ziua",eventLimitText:function(a){return"+alte "+a},noEventsMessage:"Nu există evenimente de afișat"},{code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekLabel:"Нед",allDayText:"Весь день",eventLimitText:function(a){return"+ ещё "+a},noEventsMessage:"Нет событий для отображения"},{code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekLabel:"Ty",allDayText:"Celý deň",eventLimitText:function(a){return"+ďalšie: "+a},noEventsMessage:"Žiadne akcie na zobrazenie"},{code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekLabel:"Teden",allDayText:"Ves dan",eventLimitText:"več",noEventsMessage:"Ni dogodkov za prikaz"},{code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"sot",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekLabel:"Ja",allDayHtml:"Gjithë
ditën",eventLimitText:function(a){return"+më tepër "+a},noEventsMessage:"Nuk ka evente për të shfaqur"},{code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekLabel:"Сед",allDayText:"Цео дан",eventLimitText:function(a){return"+ још "+a},noEventsMessage:"Нема догађаја за приказ"},{code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekLabel:"Sed",allDayText:"Cеo dan",eventLimitText:function(a){return"+ još "+a},noEventsMessage:"Nеma događaja za prikaz"},{code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},weekLabel:"v.",allDayText:"Heldag",eventLimitText:"till",noEventsMessage:"Inga händelser att visa"},{code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekLabel:"สัปดาห์",allDayText:"ตลอดวัน",eventLimitText:"เพิ่มเติม",noEventsMessage:"ไม่มีกิจกรรมที่จะแสดง"},{code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekLabel:"Hf",allDayText:"Tüm gün",eventLimitText:"daha fazla",noEventsMessage:"Gösterilecek etkinlik yok"},{code:"ug",buttonText:{month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},{code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekLabel:"Тиж",allDayText:"Увесь день",eventLimitText:function(a){return"+ще "+a+"..."},noEventsMessage:"Немає подій для відображення"},{code:"uz",buttonText:{month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",eventLimitText:function(a){return"+ yana "+a},noEventsMessage:"Ko'rsatish uchun voqealar yo'q"},{code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekLabel:"Tu",allDayText:"Cả ngày",eventLimitText:function(a){return"+ thêm "+a},noEventsMessage:"Không có sự kiện để hiển thị"},{code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"周",day:"日",list:"日程"},weekLabel:"周",allDayText:"全天",eventLimitText:function(a){return"另外 "+a+" 个"},noEventsMessage:"没有事件显示"},{code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",month:"月",week:"週",day:"天",list:"活動列表"},weekLabel:"周",allDayText:"整天",eventLimitText:"顯示更多",noEventsMessage:"没有任何活動"}]}),!function(b,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):b.moment=a()}(this,function(){"use strict";var dV,dT,cc,bY,dN,dM,bE,bl,cr,az,aV,dI,ba,dC,t,dB,ca,bd,l,dA,dx,bh,bv,bm,aC,bo,fN,bi,aX,cn,n,p,ac,V,o,P,ag,aq,fL,fK,fJ,du,dt,fI,fH,dk,fG,dh,fF,fO,fB,fA,fz,aQ,dc,m,aT,fv,fu,ft,br,bw,fs,fr,fq,fo,fm,aP,fj,fi,fg,ff,fe,cE,cz,ct,eZ,an,cs,eX,b,i,aa,eV,eU,eT,eS,eR,eQ,eP,eO,eN,eL,eK,eJ,eI,eB,eA,ez,Z,aE,by,g,ex,de,ev,eq,dj,ep,en,em,el,ek,ds,ci,ei,ef,ed,eb,ea,d$,bV,dD,dE,dZ,dY,bI,dJ,dP,dQ,dR,fC,cp,dU,dv,dX,cm,dH,dG,d_,cd,dz,dy,ec,ce,dW,eg,eh,bs,ej,dq,bJ,dl,eo,er,es,et,eu,ew,bM,eC,eD,eE,eF,eG,eH,cS,bN,eM,cJ,W,ee,eY,e_,e$,fa,fb,cG,fd,b_,cK,cP,fh,bS,cR,fk,fl,cV,fn,bF,bx,c$,bz,fw,fx,X,R,fD,fE,bX,b$,cg,cl,dw,bK;function a(){return dV.apply(null,arguments)}function M(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function at(a){return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function co(a){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(a).length;for(var b in a)if(h(a,b))return;return 1}function s(a){return void 0===a}function ab(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function aY(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function dS(b,d){for(var c=[],a=0;a>>0,a=0;aaU(a)?(c=a+1,b-aU(a)):(c=a,b);return{year:c,dayOfYear:h}}function aR(a,c,d){var e,f,g=bf(a.year(),c,d),b=Math.floor((a.dayOfYear()-g-1)/7)+1;return b<1?e=b+$(f=a.year()-1,c,d):b>$(a.year(),c,d)?(e=b-$(a.year(),c,d),f=a.year()+1):(f=a.year(),e=b),{week:e,year:f}}function $(a,b,c){var d=bf(a,b,c),e=bf(a+1,b,c);return(aU(a)-d+e)/7}d("w",["ww",2],"wo","week"),d("W",["WW",2],"Wo","isoWeek"),r("week","w"),r("isoWeek","W"),q("week",5),q("isoWeek",5),c("w",l),c("ww",l,t),c("W",l),c("WW",l,t),aW(["w","ww","W","WW"],function(a,b,d,c){b[c.substr(0,1)]=f(a)});function cb(a,b){return a.slice(b,7).concat(a.slice(0,b))}d("d",0,"do","day"),d("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),d("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),d("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),d("e",0,0,"weekday"),d("E",0,0,"isoWeekday"),r("day","d"),r("weekday","e"),r("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),c("d",l),c("e",l),c("E",l),c("dd",function(a,b){return b.weekdaysMinRegex(a)}),c("ddd",function(a,b){return b.weekdaysShortRegex(a)}),c("dddd",function(a,b){return b.weekdaysRegex(a)}),aW(["dd","ddd","dddd"],function(b,d,a,f){var c=a._locale.weekdaysParse(b,f,a._strict);null!=c?d.d=c:e(a).invalidWeekday=b}),aW(["d","e","E"],function(a,b,d,c){b[c]=f(a)}),fG="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),fF="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),fO=aX,fB=aX,fA=aX;function bT(){function b(a,b){return b.length-a.length}for(var c,i,d,e,f=[],g=[],h=[],a=[],j=0;j<7;j++)c=T([2e3,1]).day(j),i=u(this.weekdaysMin(c,"")),d=u(this.weekdaysShort(c,"")),e=u(this.weekdays(c,"")),f.push(i),g.push(d),h.push(e),a.push(i),a.push(d),a.push(e);f.sort(b),g.sort(b),h.sort(b),a.sort(b),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function bR(){return this.hours()%12||12}function dg(a,b){d(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function dd(b,a){return a._meridiemParse}d("H",["HH",2],0,"hour"),d("h",["hh",2],0,bR),d("k",["kk",2],0,function(){return this.hours()||24}),d("hmm",0,0,function(){return""+bR.apply(this)+U(this.minutes(),2)}),d("hmmss",0,0,function(){return""+bR.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),d("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),d("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),dg("a",!0),dg("A",!1),r("hour","h"),q("hour",13),c("a",dd),c("A",dd),c("H",l),c("h",l),c("k",l),c("HH",l,t),c("hh",l,t),c("kk",l,t),c("hmm",dA),c("hmmss",dx),c("Hmm",dA),c("Hmmss",dx),j(["H","HH"],o),j(["k","kk"],function(b,c,d){var a=f(b);c[o]=24===a?0:a}),j(["a","A"],function(b,c,a){a._isPm=a._locale.isPM(b),a._meridiem=b}),j(["h","hh"],function(a,b,c){b[o]=f(a),e(c).bigHour=!0}),j("hmm",function(a,b,d){var c=a.length-2;b[o]=f(a.substr(0,c)),b[P]=f(a.substr(c)),e(d).bigHour=!0}),j("hmmss",function(a,b,d){var c=a.length-4,g=a.length-2;b[o]=f(a.substr(0,c)),b[P]=f(a.substr(c,2)),b[ag]=f(a.substr(g)),e(d).bigHour=!0}),j("Hmm",function(a,b,d){var c=a.length-2;b[o]=f(a.substr(0,c)),b[P]=f(a.substr(c))}),j("Hmmss",function(a,b,e){var c=a.length-4,d=a.length-2;b[o]=f(a.substr(0,c)),b[P]=f(a.substr(c,2)),b[ag]=f(a.substr(d))}),fz=ay("Hours",!0),dc={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:fJ,monthsShort:du,week:{dow:0,doy:6},weekdays:fG,weekdaysMin:fF,weekdaysShort:dh,meridiemParse:/[ap]\.?m?\.?/i},m={},aT={};function da(a){return a&&a.toLowerCase().replace("_","-")}function fy(d){for(var a,b,f,e,c=0;c=a&&function(b,c){for(var d=Math.min(b.length,c.length),a=0;a=a-1)break;a--}c++}return aQ}function bj(a){var b;if(void 0===m[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=aQ._abbr,require("./locale/"+a),ah(b)}catch(b){m[a]=null}return m[a]}function ah(a,b){var c;return a&&((c=s(b)?af(a):bD(a,b))?aQ=c:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),aQ._abbr}function bD(b,a){if(null===a)return delete m[b],null;var d,c=dc;if(a.abbr=b,null!=m[b])dL("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=m[b]._config;else if(null!=a.parentLocale)if(null!=m[a.parentLocale])c=m[a.parentLocale]._config;else{if(null==(d=bj(a.parentLocale)))return aT[a.parentLocale]||(aT[a.parentLocale]=[]),aT[a.parentLocale].push({name:b,config:a}),null;c=d._config}return m[b]=new bH(bU(c,a)),aT[b]&&aT[b].forEach(function(a){bD(a.name,a.config)}),ah(b),m[b]}function af(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return aQ;if(!M(a)){if(b=bj(a))return b;a=[a]}return fy(a)}function bC(c){var b,a=c._a;return a&&-2===e(c).overflow&&(b=a[ac]<0||11bu(a[p],a[ac])?V:a[o]<0||24$(h,d,g)?e(b)._overflowWeeks=!0:null!=i?e(b)._overflowWeekday=!0:(j=di(h,f,c,d,g),b._a[p]=j.year,b._dayOfYear=j.dayOfYear)}(b),null!=b._dayOfYear&&(h=aB(b._a[p],g[p]),(b._dayOfYear>aU(h)||0===b._dayOfYear)&&(e(b)._overflowDayOfYear=!0),f=aO(h,0,b._dayOfYear),b._a[ac]=f.getUTCMonth(),b._a[V]=f.getUTCDate()),c=0;c<3&&null==b._a[c];++c)b._a[c]=i[c]=g[c];for(;c<7;c++)b._a[c]=i[c]=null==b._a[c]?2===c?1:0:b._a[c];24===b._a[o]&&0===b._a[P]&&0===b._a[ag]&&0===b._a[aq]&&(b._nextDay=!0,b._a[o]=0),b._d=(b._useUTC?aO:function(a,h,c,d,e,f,g){var b;return a<100&&0<=a?(b=new Date(a+400,h,c,d,e,f,g),isFinite(b.getFullYear())&&b.setFullYear(a)):b=new Date(a,h,c,d,e,f,g),b}).apply(null,i),j=b._useUTC?b._d.getUTCDay():b._d.getDay(),null!=b._tzm&&b._d.setUTCMinutes(b._d.getUTCMinutes()-b._tzm),b._nextDay&&(b._a[o]=24),b._w&&void 0!==b._w.d&&b._w.d!==j&&(e(b).weekdayMismatch=!0)}}function bB(b){if(b._f!==a.ISO_8601)if(b._f!==a.RFC_2822){b._a=[],e(b).empty=!0;for(var d,f,l,k,g,q,i,c=""+b._i,r=c.length,m=0,n=dK(b._f,b._locale).match(bE)||[],j=0;jc.valueOf():c.valueOf()"}),b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},b.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},b.eraName=function(){for(var c,b=this.localeData().eras(),a=0,d=b.length;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},b.isLocal=function(){return!!this.isValid()&&!this._isUTC},b.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},b.isUtc=cQ,b.isUTC=cQ,b.zoneAbbr=function(){return this._isUTC?"UTC":""},b.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},b.dates=w("dates accessor is deprecated. Use date instead.",ct),b.months=w("months accessor is deprecated. Use month instead",dp),b.years=w("years accessor is deprecated. Use year instead",dk),b.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}),b.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var b,a={};return bW(a,this),(a=cX(a))._a?(b=(a._isUTC?T:k)(a._a),this._isDSTShifted=this.isValid()&&0