function f_apiCountUp(){var e=$('a[href^="{countup:"]');e.each(function(){if(f_isElementInViewport($(this))){var e=$(this).attr("href"),t=e.split("}")[0].split(":"),n=parseInt(t[1]),r=parseInt(t[2]),i=parseInt(t[3]),s=$("",{html:0});$(this).replaceWith(s);setTimeout(function(){$({countNum:s.text()}).animate({countNum:n},{duration:r,easing:"linear",step:function(){s.text(Math.floor(this.countNum).toLocaleString());},complete:function(){s.text(this.countNum.toLocaleString());}});},i)}});}function f_apiProgress(){var e=$('a[href^="{progress:"]');e.each(function(){if(f_isElementInViewport($(this))){var e=$(this).attr("href"),t=e.split("}")[0].split(":"),n=t[1],r=parseInt(t[2]),i=getComputedStyle(this.parentNode,null)["color"],s="rgba(",o="rgba(",u="";if(i.startsWith("rgba")){u=i.replace("rgba(","rgb(").replace(i.substring(i.lastIndexOf(","),i.length),"")+")"}else if(i.startsWith("rgb")){u=i}else if(i.startsWith("#")){u=hexToRgb(i)}else{u="rgb(0, 0, 0)"}u=u.slice(0,-1).split("(")[1];s+=u+", 0.8)";o+=u+", 0.2)";var a=_STDO.create("div",{"class":"ed-progress-bar"});if(n!=""){a._el_appnd(_STDO.create("div",{html:""+n+""+r.toString()+"%"}))}var f=_STDO.create("div",{style:"background-color:"+s});var l=_STDO.create("div",{style:"background-color:"+o})._el_appnd(f);a._el_appnd(l);$(this).replaceWith(a);setTimeout(function(){f.style.width=r+"%";},1e3)}});}function hexToRgb(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,r){return t+t+n+n+r+r;});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null;}function f_apiRatingLoader(){var e="commentGetRating";var t=$('a[href^="{rating:"]');t.each(function(){var t=$(this);var n=t.attr("href").split(":")[1].replace(/\}$/,"");var r={id:n};$.post({api:e,data:r,dataType:"json",noLoading:true}).done(function(e){t.replaceWith(e);});});}function f_apiTooltip(){var e=$('a[href^="{tooltip:"]');e.each(function(){var e=$(this).attr("href"),t=e.split("}")[0].split(":"),n=$(this).html();placement=t[1],title=t[2];$(this).replaceWith($("",{"class":"sogtt",html:n,title:title,placement:placement}));});$("span.sogtt").each(function(){$(this).tooltip({placement:function(){return this.$element.attr("placement");},container:"body"}).data("bs.tooltip").tip().addClass("sogtt-tip");});}function f_calcFotoblok(){var e=_STDO.get(".fotoblokContainer[data-calc-height=true]");_STDO.loop(e,function(e,t){var n=t.getBoundingClientRect();t.style.height=n.width/2+"px";});}function f_calcImage(e,t){var n=JSON.parse(t._attr_get("data-clip"));if(n&&Object.keys(n).length>0){var r=t.offsetWidth;var i=r/n.width;var s=n.x*i;var o=n.y*i;var u=n.height*i+o;var a=+t._attr_get("data-width")*i;var f=+t._attr_get("data-height")*i;t.style.position="relative";t.style.height=u-o+"px";e.style.position="absolute";e.style.top=-o+"px";e.style.left=-s+"px";e.style.width=a+"px";e.style.height=f+"px";e.style.transformOrigin=s+r/2+"px "+(o+(u-o)/2+"px")}}function f_calcImages(){var e=_STDO.get(".fotoFadeIn[data-clip]");_STDO.loop(e,function(e,t){f_calcImage(_STDO.get("img",t)[0],t);});}function f_checkForms(e){var t=e.attr("data-invalid-check")==="1";var n=e.find(".requiredField:not([data-mailCheck])");var r=true;var i=e.find(".requiredField[data-mailCheck=first]");var s=e.find(".requiredField[data-mailCheck=second]");var o=i.val();var u=s.val();if(i.length>0){if(o.toLowerCase()!==u.toLowerCase()||o.toLowerCase()==""||u.toLowerCase()==""){i.removeClass("greenBorder").addClass("redBorder");s.removeClass("greenBorder").addClass("redBorder");r=false}else{i.removeClass("redBorder").addClass("greenBorder");s.removeClass("redBorder").addClass("greenBorder");r=true}}e.find(".form-control").removeClass("redBorder greenBorder");if(t){e.find(".invalid-message").remove()}$(n).each(function(e,n){var i=this;var s=i.value?i.value.trim():i.value;var o=s=="";var u=i._attr_get("data-type");var a={zip:/^[0-9]{4,}[\s]?[a-z]*$/i,mail:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/};if(a.hasOwnProperty(u)){var f=a[u].test(i.value);if(o||!f){i._clss_remove("greenBorder")._clss_add("redBorder");if(t){i.parentNode._el_appnd(_STDO.create("span",{"class":"invalid-message",html:_STDO.lng.get("invalid-message-"+(o?"empty":u),true)}))}r=r?false:r}else{i._clss_remove("redBorder")._clss_add("greenBorder")}}else if(u=="checkbox_radio"){var l=_STDO.get("input",i);var c=false;_STDO.loop(l,function(e,t){if(t.checked){c=true;return false}});if(c){i._clss_remove("redBorder")._clss_add("greenBorder")}else{i._clss_remove("greenBorder")._clss_add("redBorder");if(t){i.parentNode._el_appnd(_STDO.create("span",{"class":"invalid-message",html:_STDO.lng.get("invalid-message-empty",true)}))}r=r?false:r}}else if(u=="selectbox"){var h=i.options[i.selectedIndex];if(h.value=="~selectFalse~"){i._clss_remove("greenBorder")._clss_add("redBorder");if(t){i.parentNode._el_appnd(_STDO.create("span",{"class":"invalid-message",html:_STDO.lng.get("invalid-message-empty",true)}))}r=r?false:r}else{i._clss_remove("redBorder")._clss_add("greenBorder")}}else if(u=="file"){var n=i.files;var p=_STDO.get(".form-control",i.closest(".file_input"))[0];if(n.length===0){p._clss_remove("greenBorder")._clss_add("redBorder");if(t){p.parentNode._el_appnd(_STDO.create("span",{"class":"invalid-message",html:_STDO.lng.get("invalid-message-empty",true)}))}r=r?false:r}else{p._clss_remove("redBorder")._clss_add("greenBorder")}}else{if(o||s<"0"){i._clss_remove("greenBorder")._clss_add("redBorder");if(t){i.parentNode._el_appnd(_STDO.create("span",{"class":"invalid-message",html:_STDO.lng.get("invalid-message-empty",true)}))}r=r?false:r}else{i._clss_remove("redBorder")._clss_add("greenBorder")}}});return r;}function f_commentSubmit(e){var t="commentSubmit";var n=e.attr("data-obj_id");var r=e.find("div[data-to]").attr("data-to");var i=e.find(".comment-rating").attr("value");var s=e.serializeArray();if(r!="")s.push({name:"to",value:r});else s.push({name:"comment_rating",value:i});s.push({name:"obj_id",value:n});$.post({api:t,data:s,dataType:"json",noLoading:true}).done(function(t){e[0].reset();e.find("[name=comment_email]").removeClass("requiredField");e.find(".greenBorder").removeClass("greenBorder");e.find(".redBorder").removeClass("redBorder");e.find(".on").removeClass("on");if(r!=""){e.find("div[data-to]").html("").attr("data-to","");if($('.comment-control[data-id="'+r+'"]').parent().nextAll(".reply").last().length>0)$('.comment-control[data-id="'+r+'"]').parent().nextAll(".reply").last().after(t.comment);else $('.comment-control[data-id="'+r+'"]').parent().after(t.comment)}else{e.closest("[object-parent]").find(".comments-container").prepend(t.comment)}e.find(".disabled").removeClass("disabled").removeAttr("disabled");$(document).trigger("comment_submitted",[s]);});}function f_cookies(){var e={create:function(){_STDO.ajx("cookieGet",false,function(t){if(t){var n=_STDO.create("div",{id:"cookies","class":"cookies"});var r=_STDO.create("div",{"class":"cookies-message"});r._el_appnd(_STDO.create("strong",{html:"Deze website gebruikt cookies"}));r._el_appnd(_STDO.create("p",{html:t.ckie_message}));$decline=_STDO.create("button",{"class":"sitebtn decline",html:"Afwijzen"});$accept=_STDO.create("button",{"class":"sitebtn accept",html:t.ckie_button});r._el_appnd(_STDO.create("div")._el_appnd($decline)._el_appnd($accept));n._el_appnd(r);document.body._el_appnd(n);n._el_fade("in",200);$decline.addEventListener("click",function(){n._el_fade("out",200,function(){_STDO.remove(n);});e.decline();});$accept.addEventListener("click",function(){n._el_fade("out",200,function(){_STDO.remove(n);});if(typeof gtag==="function"){gtag("consent","update",{ad_storage:"granted",analytics_storage:"granted"})}e.set("ckie-acc","true");})}},true);},set:function(e,t){_STDO.cookie.set(e,t,90);},decline:function(){sessionStorage.setItem("ckie-acc","false");},get:function(e){return _STDO.cookie.get(e);},remove:function(e){_STDO.cookie.remove(e);}};var t=e.get("ckie-acc");var n=sessionStorage.getItem("ckie-acc")==="false";if(t&&t==="true"){_STDO.ajx("cookieGet",false,function(t){if(t){e.remove("ckie-acc");if(typeof gtag==="function"){gtag("consent","update",{ad_storage:"granted",analytics_storage:"granted"})}e.set("ckie-acc","true")}},true)}else if(!t&&!n){e.create()}}function f_datePicker(e,t){e=e||".datumpicker";t=t||{};var n=$(e);var r=$.extend({},{dateFormat:"dd-mm-yy",defaultDate:null,yearRange:"c-100:c+100",showMonthAfterYear:true,changeMonth:true,changeYear:true,showOtherMonths:true,showWeek:true,showButtonPanel:false,currentText:_STDO.lng.get("Vandaag",true),closeText:_STDO.lng.get("Gereed",true),minDate:null,maxDate:null,weekHeader:""},t);n.datepicker(r);n.datepicker("show");}function f_fadeImageInViewport(){if($(".fotoFadeIn>img:not(.viewport)").length>0){$(".fotoFadeIn>img:not(.viewport)").each(function(){if(this.complete&&f_isElementInViewport($(this))){$(this).f_fadeIn()}})}}function f_formSubmit(e){var t="formSubmit";var n=e.closest("[obj-id]").attr("obj-id");var r=e.attr("data-objc_id");var i=e.find(".sitebtn[type=submit]");var s=e.serializeArray();var o=0;_STDO.loop(s,function(e,t){if(t.name.indexOf("|")>-1&&t.value.length>0)o++;});if(o===0)return false;i.addClass("disabled").attr("disabled",true);var u=new FormData(e[0]);u.set("obj_id",n);u.set("objc_id",r);var a=function(){$.post({api:t,data:u,processData:false,contentType:false,noLoading:true}).done(function(t){var n=e.closest("form");var r=n.height()+"px";var i=$("
",{"class":"formComplete",height:r,width:"100%"}).append($("
",{"class":"",html:'
'+JSON.parse(t)+"
"}));n.find(".row").remove();n.append(i);$(document).trigger("form_submitted",[s]);});};var f=f_sttngs();if(f["recaptcha-client-key"]!="false"){grecaptcha.ready(function(){grecaptcha.execute(f["recaptcha-client-key"],{action:"submit"}).then(function(e){$.post({api:"siteverify",data:{token:e},dataType:"json",noLoading:true}).success(function(e){var t=JSON.parse(e);if(t.success){a()}else{alert("Something went wrong, please try again later")}});});})}else{a()}}function _f_fotoFadeIn(e,t){e=e||"body";t=t||"fotoFadeIn";$(e).find("."+t).each(function(){var e=$(this).data("src");$(this).data("src","");var t=$(this).data("classes");var n=$(this).data("alt");var r=$(this).data("error");var i=$(this).attr("pageload")!=undefined;if(e&&e!="undefined"){var s=new Image;s.style.opacity="0";s.className=t;s._attr_set("alt",n);s.onload=function(){if(i||f_isElementInViewport($(this)))$(this).f_fadeIn();};$(this).prepend(s);s.src=e}});}function f_fadeImageAlmostInViewport(){var e=_STDO.get(".fotoFadeIn:not(.loaded)>img");if(e.length>0){_STDO.loop(e,function(e,t){if(f_isElementAlmostInViewport(t)){var n=t.parentElement;n._clss_add("loaded");var r=n._attr_get("data-src");t.src=r}})}}function f_isElementAlmostInViewport(e){if(typeof jQuery==="function"&&e instanceof jQuery){e=e[0]}var t=300;var n=e.getBoundingClientRect();var r=n.top+t;var i=n.bottom-t;return r>=0&&n.left>=0&&i<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth);}function f_initImages(e,t){e=e||"body";t=t||"fotoFadeIn";var n=_STDO.get("."+t,_STDO.get(e)[0]);_STDO.loop(n,function(e,t){var n=t._attr_get("data-src");var r=t._attr_get("data-classes");var i=t._attr_get("data-alt");var s=t._attr_get("pageload")!=undefined;if(n&&n!=="undefined"){var o=new Image;o.style.opacity="0";o.className=r;o._attr_set("alt",i);o.onload=function(){this._el_fade("in",200);};t._el_appnd(o);if(s){t._clss_add("loaded");o.src=n}}});f_fadeImageAlmostInViewport();}function f_getSearchResults(e){if(!searchResult){window.gettingSearchResults=true;$.post({api:"getSearchJson",dataType:"json",noLoading:true}).done(function(t){window.gettingSearchResults=false;searchResult=t;e(t);})}else{e(searchResult)}}function f_init(){f_removeUnneededUrlParams();f_scrollReveal();f_initImages();f_initParallax();f_calcImages();f_calcFotoblok();f_siemaSlider();f_apiRatingLoader();f_instagramFeed();f_apiTooltip();f_cookies();f_floatingObjects();var e=window.location.hash;if(e!=""){var t=e.indexOf("_target")!==-1;if(t)e=e.substring(0,e.length-7);f_scrollLink(e,true)}if($(".galleryContainer").parent().length>0)$(".galleryContainer").parent().each(function(){f_showSlide($(this),0);});if(f_sttngs("root-preloading")){setTimeout(function(){_STDO.remove(_STDO.get("#root"));_STDO.remove(_STDO.get("#s_root"));},100)}}function f_initMap(){var e=$(".googleMap");e.each(function(){var e=JSON.parse($(this).attr("data-options"));f_getLatLng(e,function(t){if(t){f_setMaps(t.lat,t.lng,e)}});});}function f_initParallax(){var e=_STDO.get(".parallax-window");_STDO.loop(e,function(e,t){var n=t._attr_get("direction")=="down";$(t).parallax({bleed:0,speed:n?-.2:.2});});}function f_getLatLng(e,t){$.ajax({dataType:"json",url:"https://maps.googleapis.com/maps/api/geocode/json?address="+e.address+"%20"+e.number+",%20"+e.place+"&key=AIzaSyAt_AH20xgM1kEbhEzxOp4uo6z3LrPBLoU",noLoading:true}).done(function(e){if(e.results.length>0&&typeof t==="function"){t({lat:e.results[0].geometry.location.lat,lng:e.results[0].geometry.location.lng})}else{t(false)}});}function f_floatingObjects(){var e=_STDO.get(".fo-bottomright, .fo-topleft, .fo-topright, .fo-bottomleft");_STDO.loop(e,function(e,t){var n=t._attr_get("obj-id");var r=window.localStorage.getItem("fo-"+n);if(!r){t.style.display="block"}});}function f_initVideo(){var e=_STDO.get("section[class*=custom_video2_]:not(.loaded)");_STDO.loop(e,function(e,t){var n=_STDO.get("[data-plyr-config]",t)[0];if(f_isElementInViewport(t)){t._clss_add("loaded");var r=_STDO.create("div",{style:"position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;"});t._el_appnd(r);var i=n._attr_get("data-src");var s=n._attr_get("data-type");var o=n._attr_get("data-poster");var u=new Plyr(n,{fullscreen:{enabled:true,fallback:true,iosNative:true,container:null}});u.toggleControls(false);r.addEventListener("click",function(e){u.source={type:"video",sources:[{src:i,type:s}],poster:o};r.removeEventListener("click",this);_STDO.remove(r);u.play();})}});}function f_instagramFeed(){var e=_STDO.get(".instagram-feed");_STDO.loop(e,function(e,t){var n=t.closest("[obj-id]")._attr_get("obj-id");var r=t._attr_get("amount");var i="instagram";var s={objid:n};setTimeout(function(){$.post({api:i,noLoading:true,data:s,dataType:"json"}).done(function(e){var n=e.length>+r?+r:e.length;for(var i=0;i'+e[i].likes+''+e[i].comments}));t._el_appnd(_STDO.create("div")._el_appnd(s._el_appnd(_STDO.create("img",{src:e[i].image}))));if(e[i].type==="video"){s._el_appnd(_STDO.create("i",{"class":"fa fa-play"}))}s._el_appnd(o)}});},1e3);});}function f_isElementInViewport(e){if(typeof jQuery==="function"&&e instanceof jQuery){e=e[0]}var t=e.getBoundingClientRect();var n=t.top+t.height/1.5;var r=t.bottom-t.height/1.5;return n>=0&&t.left>=0&&r<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth);}function f_menusearchResult(e,t){var n=[];if(t.length>0)e._html_set("");_STDO.loop(t,function(t,r){if(!n.includes(r.item.page)){n.push(r.item.page);var i=r.item.page.charAt(0).toUpperCase()+r.item.page.slice(1).replace(/(-|_)/g," ");var s=_STDO.create("a",{"class":"search-result",href:"/"+r.item.page})._el_appnd(_STDO.create("span",{html:i}));if(r.item.meta.length>0){var o="",u="";_STDO.loop(r.item.meta,function(e,t){if(t.value!==""){if(t.key==="METADATA1"){o=t.value}else if(t.key==="METADATA2"){u=t.value}}});var a=o===""?u:o;s._el_appnd(_STDO.create("span",{html:a}))}e._el_appnd(s)}});}function f_removeUnneededUrlParams(){_STDO.url.remove("language");_STDO.url.remove("_ref");}function f_scrollColor(){var e=$(".scrollColor");e.each(function(){var e=$(this).attr("data-kick");if(e>0){if($(document).scrollTop()>e){$(this).addClass("scrolled")}else{$(this).removeClass("scrolled")}}});}function f_scrollLink(e,t){setTimeout(function(){if(e==undefined||e=="")return;t=t||false;var n=t?1:800;var r=$(e);if(r.length>0){$("html, body").animate({scrollTop:r.offset().top-150},n,function(){})}},0);}function f_scrollReveal(){if(typeof ScrollReveal!="undefined"){window.sr=ScrollReveal({reset:f_sttngs("reset"),mobile:f_sttngs("mobile")});$(".scrollReveal").each(function(){var e=$(this).data("sr-props");sr.reveal($(this),e);})}}function f_searchJson(e,t,n){var e=e;var r={pages:["meta.value","page"],fulltext:["fields.value"]};var i={shouldSort:true,threshold:.1,distance:1e3,tokenize:true,includeMatches:true,maxPatternLength:32,minMatchCharLength:3,findAllMatches:true,keys:r[t]||r.pages};var s=new Fuse(n.objects,i);return s.search(e);}function f_setMaps(e,t,n){if(n.id){var r=n.extra&&n.extra!=""?n.extra:n.address+" "+n.number+"
"+n.place;var i={lat:e,lng:t};var s=new google.maps.Map(document.getElementById(n.id),{center:i,zoom:14,scrollwheel:false,mapTypeId:google.maps.MapTypeId.ROADMAP,styles:[{stylers:[{saturation:-+n.gray}]}]});var o=new google.maps.Marker({position:i,map:s});var u=new google.maps.InfoWindow({content:r,maxWidth:150});u.open(s,o);google.maps.event.addDomListener(window,"resize",function(){var e=s.getCenter();google.maps.event.trigger(s,"resize");s.setCenter(e);})}}function f_setSiteLanguage(e){var t="set_session";var n=e.attr("data-lang");var r={MODE:"LANGUAGE",TAAL:n};$.post({api:t,data:r,dataType:"json",noLoading:true}).done(function(e){if(e.succes){var t=window.location;if(t.search.indexOf("a_")>-1||t.search.indexOf("p_")>-1){window.location=window.location.origin+window.location.pathname}else{window.location.reload()}}});}function f_showSlide(e,t){var n=e.find(".gallerySlide");var r=e.find(".galleryPreviewSlide");if(t>n.length-1){t=0}if(t<0){t=n.length-1}n.hide();n.eq(t).fadeIn(400);r.eq(t).addClass("active").siblings().removeClass("active");var i=r.parent().width();var s=r.eq(t).position();var o=s?s.left:0;var u=o+r.eq(t).outerWidth();if(u>i)r.parent().scrollLeft(r.parent().scrollLeft()+u-i);if(o<0)r.parent().scrollLeft(r.parent().scrollLeft()+o);}function f_siemaSlider(){var e=_STDO.get(".horizontal[container-parent]");var t={},n={},r={},i=7e3,s={};var o=function(e){if(r[e]&&!r[e]._clss_has("manual")){t[e]=setTimeout(function(){var t=n[e].innerElements.length==n[e].currentSlide+1?0:n[e].currentSlide+1;n[e].goTo(t);},i)}};_STDO.loop(e,function(e,i){s[e]=false;r[e]=i;n[e]=new Siema({selector:i,duration:400,easing:"ease-out",multipleDrag:false,loop:false,onChange:function(){var r=_STDO.get("span",_STDO.get(".cont-indicators",i.parentNode)[0]);_STDO.loop(r,function(t,r){if(t==n[e].currentSlide)r._clss_add("active");else r._clss_remove("active");});if(!s[e]){clearTimeout(t[e]);o(e)}$(i).trigger("Slider.OnChange",n[e].currentSlide);}});o(e);i.addEventListener("mouseenter",function(){s[e]=true;clearTimeout(t[e]);});i.addEventListener("mouseleave",function(){s[e]=false;o(e);});var u=_STDO.create("div",{"class":"cont-indicators"})._data_set("slider",n[e]);for(var a=0;a-1?window.Settings[e].split("|")[t]:""}else{return""}}function f_toTopBtn(){if($(document).scrollTop()>500){$(".toTopBtn").fadeIn()}else{$(".toTopBtn").fadeOut()}}if(!Element.prototype._clss_has)Element.prototype._clss_has=function(e){return(new RegExp("(\\s|^)"+e+"(\\s|$)")).test(this.className);};if(!Element.prototype._clss_add)Element.prototype._clss_add=function(e){if(!this._clss_has(e))this.className+=" "+e;this.className=this.className.trim();return this;};if(!Element.prototype._clss_remove)Element.prototype._clss_remove=function(e){var t=this.className.split(" ");this.className="";if(e)for(var n=0;n0){window.requestAnimationFrame&&requestAnimationFrame(f)||setTimeout(f,16)}else{s.style.opacity=o?1:0;if(typeof n==="function")n(s)}};f();return s;};if(!Element.prototype._el_shw)Element.prototype._el_shw=function(){this.style.display="";return this;};if(!Element.prototype._el_hde)Element.prototype._el_hde=function(){this.style.display="none";return this;};var _STDO=function(){var e=function(e,t){e=e||"div";t=t||{};var n=document.createElement(e);for(var r in t)if(r==="data"||r==="className")n[r]=t[r];else if(r==="html")n.innerHTML=t[r];else n.setAttribute(r,t[r]);return n;};var t=function(e,t){if(e.startsWith("#"))return document.getElementById(e.substring(1));t=t||document;var n=t.querySelectorAll(e);return n.length<1?false:n;};var n=function(e){if(!NodeList.prototype.isPrototypeOf(e))e.parentElement.removeChild(e);else for(var t=0;t0){if(!e){r=""}else{for(var i=0;i=200&&this.status<400)n(this.responseText);else console.log("AjxPostError")}};i.send(t);};var g=function(e,t,n){n=n||false;var r=new XMLHttpRequest;r.open("GET",e,true);r.onreadystatechange=function(){if(this.readyState===4){if(this.status>=200&&this.status<400)t(this.responseText);else console.log("AjxGetError")}};r.send();r=null;};var y=function(e,t){if(Array.isArray(e)||NodeList.prototype.isPrototypeOf(e)){for(var n=0;n0)_STDO.loop(n,function(t,n){if(_STDO.is.visible(n)){document.activeElement.blur();e.preventDefault();n.click()}})}});!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Siema",[],t):"object"==typeof exports?exports.Siema=t():e.Siema=t();}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var s=n[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,t),s.l=!0,s.exports;}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r});},t.n=function(e){var n=e&&e.__esModule?function(){return e.default;}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},t.p="",t(t.s=0);}([function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;},s=function(){function e(e,t){for(var n=0;n=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,i=this.perPage,s=r+i,o=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),u=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(o+u)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);n!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,i=this.perPage,s=r+i,o=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),u=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(o+u)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);n!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing;}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var n=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),n!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,n=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*n*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)";});}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)";}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),n=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-n<0,i=e<0&&this.currentSlide+n>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(n):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(n),this.slideToCurrent(r||i);}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame();}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick};}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY);}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag();}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var n=ethis.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),n&&n.call(this);}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this);}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this);}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var n=document.createDocumentFragment(),r=0;r0||o>0)&&2>=i&&2>=o&&300>=t.timeStamp-r.timeStamp&&(mouse=!0,n)){var u=$(e.target).closest("a");u.is("a")&&$.each(menuTrees,function(){return $.contains(this.$root[0],u[0])?(this.itemEnter({currentTarget:u[0]}),!1):void 0;}),n=!1}}r=t;}};i[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(e){isTouchEvent(e.originalEvent)&&(mouse=!1);},$(document).on(getEventsNS(i,t)),mouseDetectionEnabled=!0}}function isTouchEvent(e){return!/^(4|mouse)$/.test(e.pointerType);}function getEventsNS(e,t){t||(t="");var n={};for(var r in e)n[r.split(" ").join(t+" ")+t]=e[r];return n;}var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60);},cancelAnimationFrame=window.cancelAnimationFrame||function(e){clearTimeout(e);},canAnimate=!!$.fn.animate;return $.SmartMenus=function(e,t){this.$root=$(e),this.opts=t,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in e.style||"webkitPerspective"in e.style,this.wasCollapsible=!1,this.init();},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll();});},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0);},prototype:{init:function(e){var t=this;if(!e){menuTrees.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var n=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},n)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},n),"a"),n+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},n)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},n)),this.opts.subIndicators&&(this.$subArrow=$("").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()}if(this.$firstSub=this.$root.find("ul").each(function(){t.menuInit($(this));}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var r=/(index|default)\.[^#\?\/]*/i,i=/#.*/,s=window.location.href.replace(r,""),o=s.replace(i,"");this.$root.find("a").each(function(){var e=this.href.replace(r,""),n=$(this);(e==s||e==o)&&(n.addClass("current"),t.opts.markCurrentTree&&n.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current");}));})}this.wasCollapsible=this.isCollapsible();},destroy:function(e){if(!e){var t=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(t),t+=this.rootId,$(document).off(t),$(window).off(t),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var n=this;this.$root.find("ul").each(function(){var e=$(this);e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.dataSM("shown-before")&&((n.opts.subMenusMinWidth||n.opts.subMenusMaxWidth)&&e.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),e.dataSM("scroll-arrows")&&e.dataSM("scroll-arrows").remove(),e.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(e.attr("id")||"").indexOf(n.accessIdPrefix)&&e.removeAttr("id");}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var e=$(this);0==e.attr("id").indexOf(n.accessIdPrefix)&&e.removeAttr("id");}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),e||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1));},disable:function(e){if(!this.disabled){if(this.menuHideAll(),!e&&!this.opts.isPopup&&this.$root.is(":visible")){var t=this.$root.offset();this.$disableOverlay=$('
').css({position:"absolute",top:t.top,left:t.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(e){return this.$touchScrollingSub?(this.$touchScrollingSub=null,void 0):((this.visibleSubMenus.length&&!$.contains(this.$root[0],e.target)||$(e.target).closest("a").length)&&this.menuHideAll(),void 0);},docTouchEnd:function(){if(this.lastTouch){if(!(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&$.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll();},350)}this.lastTouch=null}},docTouchMove:function(e){if(this.lastTouch){var t=e.originalEvent.touches[0];this.lastTouch.x2=t.pageX,this.lastTouch.y2=t.pageY}},docTouchStart:function(e){var t=e.originalEvent.touches[0];this.lastTouch={x1:t.pageX,y1:t.pageY,target:t.target};},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1);},getClosestMenu:function(e){for(var t=$(e).closest("ul");t.dataSM("in-mega");)t=t.parent().closest("ul");return t[0]||null;},getHeight:function(e){return this.getOffset(e,!0);},getOffset:function(e,t){var n;"none"==e.css("display")&&(n={position:e[0].style.position,visibility:e[0].style.visibility},e.css({position:"absolute",visibility:"hidden"}).show());var r=e[0].getBoundingClientRect&&e[0].getBoundingClientRect(),i=r&&(t?r.height||r.bottom-r.top:r.width||r.right-r.left);return i||0===i||(i=t?e[0].offsetHeight:e[0].offsetWidth),n&&e.hide().css(n),i;},getStartZIndex:function(e){var t=parseInt(this[e?"$root":"$firstSub"].css("z-index"));return!e&&isNaN(t)&&(t=parseInt(this.$root.css("z-index"))),isNaN(t)?1:t;},getTouchPoint:function(e){return e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e;},getViewport:function(e){var t=e?"Height":"Width",n=document.documentElement["client"+t],r=window["inner"+t];return r&&(n=Math.min(n,r)),n;},getViewportHeight:function(){return this.getViewport(!0);},getViewportWidth:function(){return this.getViewport();},getWidth:function(e){return this.getOffset(e);},handleEvents:function(){return!this.disabled&&this.isCSSOn();},handleItemEvents:function(e){return this.handleEvents()&&!this.isLinkInMegaMenu(e);},isCollapsible:function(){return"static"==this.$firstSub.css("position");},isCSSOn:function(){return"inline"!=this.$firstLink.css("display");},isFixed:function(){var e="fixed"==this.$root.css("position");return e||this.$root.parentsUntil("body").each(function(){return"fixed"==$(this).css("position")?(e=!0,!1):void 0;}),e;},isLinkInMegaMenu:function(e){return $(this.getClosestMenu(e[0])).hasClass("mega-menu");},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible();},itemActivate:function(e,t){var n=e.closest("ul"),r=n.dataSM("level");if(r>1&&(!this.activatedItems[r-2]||this.activatedItems[r-2][0]!=n.dataSM("parent-a")[0])){var i=this;$(n.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(n).each(function(){i.itemActivate($(this).dataSM("parent-a"));})}if((!this.isCollapsible()||t)&&this.menuHideSubMenus(this.activatedItems[r-1]&&this.activatedItems[r-1][0]==e[0]?r:r-1),this.activatedItems[r-1]=e,this.$root.triggerHandler("activate.smapi",e[0])!==!1){var s=e.dataSM("sub");s&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(s)}},itemBlur:function(e){var t=$(e.currentTarget);this.handleItemEvents(t)&&this.$root.triggerHandler("blur.smapi",t[0]);},itemClick:function(e){var t=$(e.currentTarget);if(this.handleItemEvents(t)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==t.closest("ul")[0])return this.$touchScrollingSub=null,e.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",t[0])===!1)return!1;var n=$(e.target).is(".sub-arrow"),r=t.dataSM("sub"),i=r?2==r.dataSM("level"):!1,s=this.isCollapsible(),o=/toggle$/.test(this.opts.collapsibleBehavior),u=/link$/.test(this.opts.collapsibleBehavior),a=/^accordion/.test(this.opts.collapsibleBehavior);if(r&&!r.is(":visible")){if((!u||!s||n)&&(this.opts.showOnClick&&i&&(this.clickActivated=!0),this.itemActivate(t,a),r.is(":visible")))return this.focusActivated=!0,!1}else if(s&&(o||n))return this.itemActivate(t,a),this.menuHide(r),o&&(this.focusActivated=!1),!1;return this.opts.showOnClick&&i||t.hasClass("disabled")||this.$root.triggerHandler("select.smapi",t[0])===!1?!1:void 0}},itemDown:function(e){var t=$(e.currentTarget);this.handleItemEvents(t)&&t.dataSM("mousedown",!0);},itemEnter:function(e){var t=$(e.currentTarget);if(this.handleItemEvents(t)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var n=this;this.showTimeout=setTimeout(function(){n.itemActivate(t);},this.opts.showOnClick&&1==t.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",t[0])}},itemFocus:function(e){var t=$(e.currentTarget);this.handleItemEvents(t)&&(!this.focusActivated||this.isTouchMode()&&t.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==t[0]||this.itemActivate(t,!0),this.$root.triggerHandler("focus.smapi",t[0]));},itemLeave:function(e){var t=$(e.currentTarget);this.handleItemEvents(t)&&(this.isTouchMode()||(t[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),t.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",t[0]));},menuHide:function(e){if(this.$root.triggerHandler("beforehide.smapi",e[0])!==!1&&(canAnimate&&e.stop(!0,!0),"none"!=e.css("display"))){var t=function(){e.css("z-index","");};this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,e,t):e.hide(this.opts.collapsibleHideDuration,t):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,e,t):e.hide(this.opts.hideDuration,t),e.dataSM("scroll")&&(this.menuScrollStop(e),e.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),e.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),e.attr({"aria-expanded":"false","aria-hidden":"true"});var n=e.dataSM("level");this.activatedItems.splice(n-1,1),this.visibleSubMenus.splice($.inArray(e,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",e[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var e=this.opts.isPopup?1:0,t=this.visibleSubMenus.length-1;t>=e;t--)this.menuHide(this.visibleSubMenus[t]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi");},menuHideSubMenus:function(e){for(var t=this.activatedItems.length-1;t>=e;t--){var n=this.activatedItems[t].dataSM("sub");n&&this.menuHide(n)}},menuInit:function(e){if(!e.dataSM("in-mega")){e.hasClass("mega-menu")&&e.find("ul").dataSM("in-mega",!0);for(var t=2,n=e[0];(n=n.parentNode.parentNode)!=this.$root[0];)t++;var r=e.prevAll("a").eq(-1);r.length||(r=e.prevAll().find("a").eq(-1)),r.addClass("has-submenu").dataSM("sub",e),e.dataSM("parent-a",r).dataSM("level",t).parent().dataSM("sub",e);var i=r.attr("id")||this.accessIdPrefix+ ++this.idInc,s=e.attr("id")||this.accessIdPrefix+ ++this.idInc;r.attr({id:i,"aria-haspopup":"true","aria-controls":s,"aria-expanded":"false"}),e.attr({id:s,role:"group","aria-hidden":"true","aria-labelledby":i,"aria-expanded":"false"}),this.opts.subIndicators&&r[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(e){var t,n,r=e.dataSM("parent-a"),i=r.closest("li"),s=i.parent(),o=e.dataSM("level"),u=this.getWidth(e),a=this.getHeight(e),f=r.offset(),l=f.left,c=f.top,h=this.getWidth(r),p=this.getHeight(r),d=$(window),v=d.scrollLeft(),m=d.scrollTop(),g=this.getViewportWidth(),y=this.getViewportHeight(),b=s.parent().is("[data-sm-horizontal-sub]")||2==o&&!s.hasClass("sm-vertical"),w=this.opts.rightToLeftSubMenus&&!i.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&i.is("[data-sm-reverse]"),E=2==o?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,S=2==o?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(b?(t=w?h-u-E:E,n=this.opts.bottomToTopSubMenus?-a-S:p+S):(t=w?E-u:h-E,n=this.opts.bottomToTopSubMenus?p-S-a:S),this.opts.keepInViewport){var x=l+t,T=c+n;if(w&&v>x?t=b?v-x+t:h-E:!w&&x+u>v+g&&(t=b?v+g-u-x+t:E-u),b||(y>a&&T+a>m+y?n+=m+y-a-T:(a>=y||m>T)&&(n+=m-T)),b&&(T+a>m+y+.49||m>T)||!b&&a>y+.49){var N=this;e.dataSM("scroll-arrows")||e.dataSM("scroll-arrows",$([$('')[0],$('')[0]]).on({mouseenter:function(){e.dataSM("scroll").up=$(this).hasClass("scroll-up"),N.menuScroll(e);},mouseleave:function(t){N.menuScrollStop(e),N.menuScrollOut(e,t);},"mousewheel DOMMouseScroll":function(e){e.preventDefault();}}).insertAfter(e));var C=".smartmenus_scroll";if(e.dataSM("scroll",{y:this.cssTransforms3d?0:n-p,step:1,itemH:p,subH:a,arrowDownH:this.getHeight(e.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(t){N.menuScrollOver(e,t);},mouseout:function(t){N.menuScrollOut(e,t);},"mousewheel DOMMouseScroll":function(t){N.menuScrollMousewheel(e,t);}},C)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:t+(parseInt(e.css("border-left-width"))||0),width:u-(parseInt(e.css("border-left-width"))||0)-(parseInt(e.css("border-right-width"))||0),zIndex:e.css("z-index")}).eq(b&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var k={};k[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(t){N.menuScrollTouch(e,t);},e.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(k,C))}}}e.css({top:"auto",left:"0",marginLeft:t,marginTop:n-p});},menuScroll:function(e,t,n){var r,i=e.dataSM("scroll"),s=e.dataSM("scroll-arrows"),o=i.up?i.upEnd:i.downEnd;if(!t&&i.momentum){if(i.momentum*=.92,r=i.momentum,.5>r)return this.menuScrollStop(e),void 0}else r=n||(t||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(i.step));var u=e.dataSM("level");if(this.activatedItems[u-1]&&this.activatedItems[u-1].dataSM("sub")&&this.activatedItems[u-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(u-1),i.y=i.up&&i.y>=o||!i.up&&o>=i.y?i.y:Math.abs(o-i.y)>r?i.y+(i.up?r:-r):o,e.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+i.y+"px, 0)",transform:"translate3d(0, "+i.y+"px, 0)"}:{marginTop:i.y}),mouse&&(i.up&&i.y>i.downEnd||!i.up&&i.y0;e.dataSM("scroll-arrows").eq(n?0:1).is(":visible")&&(e.dataSM("scroll").up=n,this.menuScroll(e,!0))}t.preventDefault();},menuScrollOut:function(e,t){mouse&&(/^scroll-(up|down)/.test((t.relatedTarget||"").className)||(e[0]==t.relatedTarget||$.contains(e[0],t.relatedTarget))&&this.getClosestMenu(t.relatedTarget)==e[0]||e.dataSM("scroll-arrows").css("visibility","hidden"));},menuScrollOver:function(e,t){if(mouse&&!/^scroll-(up|down)/.test(t.target.className)&&this.getClosestMenu(t.target)==e[0]){this.menuScrollRefreshData(e);var n=e.dataSM("scroll"),r=$(window).scrollTop()-e.dataSM("parent-a").offset().top-n.itemH;e.dataSM("scroll-arrows").eq(0).css("margin-top",r).end().eq(1).css("margin-top",r+this.getViewportHeight()-n.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(e){var t=e.dataSM("scroll"),n=$(window).scrollTop()-e.dataSM("parent-a").offset().top-t.itemH;this.cssTransforms3d&&(n=-(parseFloat(e.css("margin-top"))-n)),$.extend(t,{upEnd:n,downEnd:n+this.getViewportHeight()-t.subH});},menuScrollStop:function(e){return this.scrollTimeout?(cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,e.dataSM("scroll").step=1,!0):void 0;},menuScrollTouch:function(e,t){if(t=t.originalEvent,isTouchEvent(t)){var n=this.getTouchPoint(t);if(this.getClosestMenu(n.target)==e[0]){var r=e.dataSM("scroll");if(/(start|down)$/i.test(t.type))this.menuScrollStop(e)?(t.preventDefault(),this.$touchScrollingSub=e):this.$touchScrollingSub=null,this.menuScrollRefreshData(e),$.extend(r,{touchStartY:n.pageY,touchStartTime:t.timeStamp});else if(/move$/i.test(t.type)){var i=void 0!==r.touchY?r.touchY:r.touchStartY;if(void 0!==i&&i!=n.pageY){this.$touchScrollingSub=e;var s=n.pageY>i;void 0!==r.up&&r.up!=s&&$.extend(r,{touchStartY:n.pageY,touchStartTime:t.timeStamp}),$.extend(r,{up:s,touchY:n.pageY}),this.menuScroll(e,!0,Math.abs(n.pageY-i))}t.preventDefault()}else void 0!==r.touchY&&((r.momentum=15*Math.pow(Math.abs(n.pageY-r.touchStartY)/(t.timeStamp-r.touchStartTime),2))&&(this.menuScrollStop(e),this.menuScroll(e),t.preventDefault()),delete r.touchY)}}},menuShow:function(e){if((e.dataSM("beforefirstshowfired")||(e.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",e[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",e[0])!==!1&&(e.dataSM("shown-before",!0),canAnimate&&e.stop(!0,!0),!e.is(":visible"))){var t=e.dataSM("parent-a"),n=this.isCollapsible();if((this.opts.keepHighlighted||n)&&t.addClass("highlighted"),n)e.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(e.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(e.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&e.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var r=this.getWidth(e);e.css("max-width",this.opts.subMenusMaxWidth),r>this.getWidth(e)&&e.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(e)}var i=function(){e.css("overflow","");};n?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,e,i):e.show(this.opts.collapsibleShowDuration,i):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,e,i):e.show(this.opts.showDuration,i),t.attr("aria-expanded","true"),e.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(e),this.$root.triggerHandler("show.smapi",e[0])}},popupHide:function(e){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll();},e?1:this.opts.hideTimeout);},popupShow:function(e,t){if(!this.opts.isPopup)return alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'),void 0;if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:e,top:t});var n=this,r=function(){n.$root.css("overflow","");};canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,r):this.$root.show(this.opts.showDuration,r),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0);},rootKeyDown:function(e){if(this.handleEvents())switch(e.keyCode){case 27:var t=this.activatedItems[0];if(t){this.menuHideAll(),t[0].focus();var n=t.dataSM("sub");n&&this.menuHide(n)}break;case 32:var r=$(e.target);if(r.is("a")&&this.handleItemEvents(r)){var n=r.dataSM("sub");n&&!n.is(":visible")&&(this.itemClick({currentTarget:e.target}),e.preventDefault())}}},rootOut:function(e){if(this.handleEvents()&&!this.isTouchMode()&&e.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll();},this.opts.hideTimeout)}},rootOver:function(e){this.handleEvents()&&!this.isTouchMode()&&e.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);},winResize:function(e){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==e.type){var t=this.isCollapsible();this.wasCollapsible&&t||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=t}}else if(this.$disableOverlay){var n=this.$root.offset();this.$disableOverlay.css({top:n.top,left:n.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),$.fn.dataSM=function(e,t){return t?this.data(e+"_smartmenus",t):this.data(e+"_smartmenus");},$.fn.removeDataSM=function(e){return this.removeData(e+"_smartmenus");},$.fn.smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return Array.prototype.shift.call(args),this.each(function(){var e=$(this).data("smartmenus");e&&e[method]&&e[method].apply(e,args);})}return this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts));});},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(e,t){e.fadeOut(200,t);},collapsibleShowDuration:0,collapsibleShowFunction:function(e,t){e.slideDown(200,t);},collapsibleHideDuration:0,collapsibleHideFunction:function(e,t){e.slideUp(200,t);},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$;});(function(e){"function"==typeof define&&define.amd?define(["jquery","smartmenus"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery);})(function(e){return e.extend(e.SmartMenus.Bootstrap={},{keydownFix:!1,init:function(){var n=e("ul.navbar-nav:not([data-sm-skip])");n.each(function(){function n(){s.find("a.current").parent().addClass("active"),s.find("a.has-submenu").each(function(){var n=e(this);n.is('[data-toggle="dropdown"]')&&n.dataSM("bs-data-toggle-dropdown",!0).removeAttr("data-toggle"),n.is('[role="button"]')&&n.dataSM("bs-role-button",!0).removeAttr("role");});}function r(){s.find("a.current").parent().removeClass("active"),s.find("a.has-submenu").each(function(){var n=e(this);n.dataSM("bs-data-toggle-dropdown")&&n.attr("data-toggle","dropdown").removeDataSM("bs-data-toggle-dropdown"),n.dataSM("bs-role-button")&&n.attr("role","button").removeDataSM("bs-role-button");});}function i(e){var t=o.getViewportWidth();if(t!=u||e){var n=s.find(".caret");o.isCollapsible()?(s.addClass("sm-collapsible"),s.is("[data-sm-skip-collapsible-behavior]")||n.addClass("navbar-toggle sub-arrow")):(s.removeClass("sm-collapsible"),s.is("[data-sm-skip-collapsible-behavior]")||n.removeClass("navbar-toggle sub-arrow")),u=t}}var s=e(this),o=s.data("smartmenus");if(!o){s.smartmenus({subMenusSubOffsetX:2,subMenusSubOffsetY:-6,subIndicators:!1,collapsibleShowFunction:null,collapsibleHideFunction:null,rightToLeftSubMenus:s.hasClass("navbar-right"),bottomToTopSubMenus:s.closest(".navbar").hasClass("navbar-fixed-bottom")}).on({"show.smapi":function(n,r){var i=e(r),s=i.dataSM("scroll-arrows");s&&s.css("background-color",e(document.body).css("background-color")),i.parent().addClass("open");},"hide.smapi":function(n,r){e(r).parent().removeClass("open");}}),n(),o=s.data("smartmenus"),o.isCollapsible=function(){return!/^(left|right)$/.test(this.$firstLink.parent().css("float"))&&"block"==this.$root.css("display");},o.refresh=function(){e.SmartMenus.prototype.refresh.call(this),n(),i(!0);},o.destroy=function(n){r(),e.SmartMenus.prototype.destroy.call(this,n);},s.is("[data-sm-skip-collapsible-behavior]")&&(o.opts.collapsibleBehavior="toggle");var u;i(),e(window).on("resize.smartmenus"+o.rootId,i)}}),n.length&&!e.SmartMenus.Bootstrap.keydownFix&&(e(document).off("keydown.bs.dropdown.data-api",".dropdown-menu"),e.fn.dropdown&&e.fn.dropdown.Constructor&&e(document).on("keydown.bs.dropdown.data-api",'.dropdown-menu:not([id^="sm-"])',e.fn.dropdown.Constructor.prototype.keydown),e.SmartMenus.Bootstrap.keydownFix=!0);}}),e(e.SmartMenus.Bootstrap.init),e;});!function(e){function t(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(r)}}if(e.support.touch="ontouchend"in document,e.support.touch){var n,r=e.ui.mouse.prototype,i=r._mouseInit,s=r._mouseDestroy;r._touchStart=function(e){var r=this;!n&&r._mouseCapture(e.originalEvent.changedTouches[0])&&(n=!0,r._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"));},r._touchMove=function(e){n&&(this._touchMoved=!0,t(e,"mousemove"));},r._touchEnd=function(e){n&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),n=!1);},r._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),i.call(t);},r._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),s.call(t);}}}(jQuery);(function(t,n){if(typeof exports==="object"&&typeof module==="object")module.exports=n();else if(typeof define==="function"&&define.amd)define("Fuse",[],n);else if(typeof exports==="object")exports["Fuse"]=n();else t["Fuse"]=n();})(this,function(){return function(e){function n(r){if(t[r]){return t[r].exports}var i=t[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,n);i.l=true;return i.exports;}var t={};n.m=e;n.c=t;n.i=function(e){return e;};n.d=function(e,t,r){if(!n.o(e,t)){Object.defineProperty(e,t,{configurable:false,enumerable:true,get:r})}};n.n=function(e){var t=e&&e.__esModule?function(){return e["default"];}:function(){return e;};n.d(t,"a",t);return t;};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);};n.p="";return n(n.s=8);}([function(e,t,n){"use strict";e.exports=function(e){return!Array.isArray?Object.prototype.toString.call(e)==="[object Array]":Array.isArray(e);};},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=function(){function e(e,t){for(var n=0;nr){return s(t,this.pattern,i)}var u=this.options,a=u.location,f=u.distance,l=u.threshold,c=u.findAllMatches,h=u.minMatchCharLength;return o(t,this.pattern,this.patternAlphabet,{location:a,distance:f,threshold:l,findAllMatches:c,minMatchCharLength:h});}}]);return e;}();e.exports=a;},function(e,t,n){"use strict";var r=n(0);var i=function s(e,t,n){if(!t){n.push(e)}else{var i=t.indexOf(".");var o=t;var u=null;if(i!==-1){o=t.slice(0,i);u=t.slice(i+1)}var a=e[o];if(a!==null&&a!==undefined){if(!u&&(typeof a==="string"||typeof a==="number")){n.push(a.toString())}else if(r(a)){for(var f=0,l=a.length;f0&&arguments[0]!==undefined?arguments[0]:[];var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=[];var r=-1;var i=-1;var s=0;for(var o=e.length;s=t){n.push([r,i])}r=-1}}if(e[s-1]&&s-r>=t){n.push([r,s-1])}return n;};},function(e,t,n){"use strict";e.exports=function(e){var t={};var n=e.length;for(var r=0;r2&&arguments[2]!==undefined?arguments[2]:/ +/g;var i=new RegExp(t.replace(r,"\\$&").replace(n,"|"));var s=e.match(i);var o=!!s;var u=[];if(o){for(var a=0,f=s.length;a=D;B-=1){var j=B-1;var F=n[e.charAt(j)];if(F){E[j]=1}H[B]=(H[B+1]<<1|1)&F;if(A!==0){H[B]|=(N[B+1]|N[B])<<1|1|N[B+1]}if(H[B]&L){C=r(t,{errors:A,currentLocation:j,expectedLocation:m,distance:f});if(C<=y){y=C;b=j;if(b<=m){break}D=Math.max(1,2*m-b)}}}var I=r(t,{errors:A+1,currentLocation:m,expectedLocation:m,distance:f});if(I>y){break}N=H}return{isMatch:b>=0,score:C===0?.001:C,matchedIndices:i(E,v)};};},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=function(){function e(e,t){for(var n=0;n0&&arguments[0]!==undefined?arguments[0]:"";var n=[];if(this.options.tokenize){var r=t.split(this.options.tokenSeparator);for(var i=0,o=r.length;i0&&arguments[0]!==undefined?arguments[0]:[];var n=arguments[1];var r=this.list;var i={};var s=[];if(typeof r[0]==="string"){for(var o=0,u=r.length;o1){throw new Error("Key weight has to be > 0 and <= 1")}d=d.name}else{a[d]={weight:1}}this._analyze({key:d,value:this.options.getFn(c,d),record:c,index:f},{resultMap:i,results:s,tokenSearchers:t,fullSearcher:n})}}return{weights:a,results:s};}},{key:"_analyze",value:function(t,n){var r=t.key,i=t.arrayIndex,s=i===undefined?-1:i,o=t.value,a=t.record,f=t.index;var l=n.tokenSearchers,c=l===undefined?[]:l,h=n.fullSearcher,p=h===undefined?[]:h,d=n.resultMap,v=d===undefined?{}:d,m=n.results,g=m===undefined?[]:m;if(o===undefined||o===null){return}var y=false;var b=-1;var w=0;if(typeof o==="string"){this._log("\nKey: "+(r===""?"-":r));var E=p.search(o);this._log('Full text: "'+o+'", score: '+E.score);if(this.options.tokenize){var S=o.split(this.options.tokenSeparator);var x=[];for(var T=0;T-1){D=(D+b)/2}this._log("Score average:",D);var P=this.options.tokenize&&this.options.matchAllTokens?w>=c.length:true;this._log("\nCheck Matches: "+P);if((y||E.isMatch)&&P){var H=v[f];if(H){H.output.push({key:r,arrayIndex:s,value:o,score:D,matchedIndices:E.matchedIndices})}else{v[f]={item:a,output:[{key:r,arrayIndex:s,value:o,score:D,matchedIndices:E.matchedIndices}]};g.push(v[f])}}}else if(u(o)){for(var B=0,j=o.length;B-1){o.arrayIndex=s.arrayIndex}t.matches.push(o)}})}if(this.options.includeScore){r.push(function(e,t){t.score=e.score;})}for(var i=0,s=t.length;i=0)continue;n[i]=e[i]}return n;}function Oa(e,t){if(e==null)return{};var n=Aa(e,t);var r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n;}function Ma(e,t){return Pa(e)||Ba(e,t)||ja(e,t)||qa();}function _a(e){return Da(e)||Ha(e)||ja(e)||Ia();}function Da(e){if(Array.isArray(e))return Fa(e);}function Pa(e){if(Array.isArray(e))return e;}function Ha(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e);}function Ba(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var r=true;var i=false;var s=undefined;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done);r=true){n.push(u.value);if(t&&n.length===t)break}}catch(a){i=true;s=a}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw s}}return n;}function ja(e,t){if(!e)return;if(typeof e==="string")return Fa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fa(e,t);}function Fa(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);nt){var n=Kl(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t;}function Yh(e,t){setTimeout(function(){try{e.hidden=true;e.offsetHeight;e.hidden=false}catch(t){}},t);}function sp(e){return JSON.parse(JSON.stringify(e));}function op(e,t){return t.split(".").reduce(function(e,t){return e&&e[t];},e);}function up(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?t.cloneNode(true):t;var i=e.parentNode;var s=e.nextSibling;r.appendChild(e);if(s){i.insertBefore(r,s)}else{i.appendChild(r)}});}function fp(e,t){if(!Qh.element(e)||Qh.empty(t)){return}Object.entries(t).filter(function(e){var t=Ma(e,2),n=t[1];return!Qh.nullOrUndefined(n);}).forEach(function(t){var n=Ma(t,2),r=n[0],i=n[1];return e.setAttribute(r,i);});}function lp(e,t,n){var r=document.createElement(e);if(Qh.object(t)){fp(r,t)}if(Qh.string(n)){r.innerText=n}return r;}function cp(e,t){if(!Qh.element(e)||!Qh.element(t)){return}t.parentNode.insertBefore(e,t.nextSibling);}function hp(e,t,n,r){if(!Qh.element(t)){return}t.appendChild(lp(e,n,r));}function pp(e){if(Qh.nodeList(e)||Qh.array(e)){Array.from(e).forEach(pp);return}if(!Qh.element(e)||!Qh.element(e.parentNode)){return}e.parentNode.removeChild(e);}function dp(e){if(!Qh.element(e)){return}var t=e.childNodes.length;while(t>0){e.removeChild(e.lastChild);t-=1}}function vp(e,t){if(!Qh.element(t)||!Qh.element(t.parentNode)||!Qh.element(e)){return null}t.parentNode.replaceChild(e,t);return e;}function mp(e,t){if(!Qh.string(e)||Qh.empty(e)){return{}}var n={};var r=up({},t);e.split(",").forEach(function(e){var t=e.trim();var i=t.replace(".","");var s=t.replace(/[[\]]/g,"");var o=s.split("=");var u=Ma(o,1),a=u[0];var f=o.length>1?o[1].replace(/["']/g,""):"";var l=t.charAt(0);switch(l){case".":if(Qh.string(r.class)){n.class="".concat(r.class," ").concat(i)}else{n.class=i}break;case"#":n.id=t.replace("#","");break;case"[":n[a]=f;break}});return up(r,n);}function gp(e,t){if(!Qh.element(e)){return}var n=t;if(!Qh.boolean(n)){n=!e.hidden}e.hidden=n;}function yp(e,t,n){if(Qh.nodeList(e)){return Array.from(e).map(function(e){return yp(e,t,n);})}if(Qh.element(e)){var r="toggle";if(typeof n!=="undefined"){r=n?"add":"remove"}e.classList[r](t);return e.classList.contains(t)}return false;}function bp(e,t){return Qh.element(e)&&e.classList.contains(t);}function wp(e,t){function i(){return Array.from(document.querySelectorAll(t)).includes(this);}var n=Element,r=n.prototype;var s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||i;return s.call(e,t);}function Ep(e,t){function i(){var e=this;do{if(wp.matches(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null;}var n=Element,r=n.prototype;var s=r.closest||i;return s.call(e,t);}function Sp(e){return this.elements.container.querySelectorAll(e);}function xp(e){return this.elements.container.querySelector(e);}function Tp(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!Qh.element(e)){return}e.focus({preventScroll:true});if(t){yp(e,this.config.classNames.tabFocus)}}function Lp(e,t,n){var r=this;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;var s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:false;if(!e||!("addEventListener"in e)||Qh.empty(t)||!Qh.function(n)){return}var u=t.split(" ");var a=o;if(kp){a={passive:s,capture:o}}u.forEach(function(t){if(r&&r.eventListeners&&i){r.eventListeners.push({element:e,type:t,callback:n,options:a})}e[i?"addEventListener":"removeEventListener"](t,n,a);});}function Ap(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2?arguments[2]:undefined;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;Lp.call(this,e,t,n,true,r,i);}function Op(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2?arguments[2]:undefined;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;Lp.call(this,e,t,n,false,r,i);}function Mp(e){var t=this;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var r=arguments.length>2?arguments[2]:undefined;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:true;var s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var o=function u(){Op(e,n,u,i,s);for(var o=arguments.length,a=new Array(o),f=0;f1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!Qh.element(e)||Qh.empty(t)){return}var i=new CustomEvent(t,{bubbles:n,detail:La(La({},r),{},{plyr:this})});e.dispatchEvent(i);}function Dp(){if(this&&this.eventListeners){this.eventListeners.forEach(function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i);});this.eventListeners=[]}}function Pp(){var e=this;return(new Promise(function(t){return e.ready?setTimeout(t,0):Ap.call(e,e.elements.container,"ready",t);})).then(function(){});}function Hp(e){if(Qh.promise(e)){e.then(null,function(){})}}function Bp(e){if(!Qh.array(e)&&(!Qh.string(e)||!e.includes(":"))){return false}var t=Qh.array(e)?e:e.split(":");return t.map(Number).every(Qh.number);}function jp(e){if(!Qh.array(e)||!e.every(Qh.number)){return null}var t=Ma(e,2),n=t[0],r=t[1];var i=function o(e,t){return t===0?e:o(t,e%t);};var s=i(n,r);return[n/s,r/s];}function Fp(e){var t=function(t){return Bp(t)?t.split(":").map(Number):null;};var n=t(e);if(n===null){n=t(this.config.ratio)}if(n===null&&!Qh.empty(this.embed)&&Qh.array(this.embed.ratio)){n=this.embed.ratio}if(n===null&&this.isHTML5){var r=this.media,i=r.videoWidth,s=r.videoHeight;n=jp([i,s])}return n;}function Ip(e){if(!this.isVideo){return{}}var t=this.elements.wrapper;var n=Fp.call(this,e);var r=Qh.array(n)?n:[0,0],i=Ma(r,2),s=i[0],o=i[1];var u=100/s*o;t.style.paddingBottom="".concat(u,"%");if(this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10);var f=(a-u)/(a/50);this.media.style.transform="translateY(-".concat(f,"%)")}else if(this.isHTML5){t.classList.toggle(this.config.classNames.videoFixedRatio,n!==null)}return{padding:u,ratio:n};}function Rp(e){if(!Qh.array(e)){return e}return e.filter(function(t,n){return e.indexOf(t)===n;});}function Up(e,t){if(!Qh.array(e)||!e.length){return null}return e.reduce(function(e,n){return Math.abs(n-t)1?t-1:0),r=1;r0&&arguments[0]!==undefined?arguments[0]:"";var t=e.toString();t=ud(t,"-"," ");t=ud(t,"_"," ");t=ad(t);return ud(t," ","");}function ld(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var t=e.toString();t=fd(t);return t.charAt(0).toLowerCase()+t.slice(1);}function cd(e){var t=document.createDocumentFragment();var n=document.createElement("div");t.appendChild(n);n.innerHTML=e;return t.firstChild.innerText;}function hd(e){var t=document.createElement("div");t.appendChild(e);return t.innerHTML;}function md(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"text";return new Promise(function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i)){return}i.addEventListener("load",function(){if(t==="text"){try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}}else{n(i.response)}});i.addEventListener("error",function(){throw new Error(i.status);});i.open("GET",e,true);i.responseType=t;i.send()}catch(s){r(s)}});}function gd(e,t){if(!Qh.string(e)){return}var n="cache";var r=Qh.string(t);var i=false;var s=function(){return document.getElementById(t)!==null;};var o=function(t,n){t.innerHTML=n;if(r&&s()){return}document.body.insertAdjacentElement("afterbegin",t);};if(!r||!s()){var u=vd.supported;var a=document.createElement("div");a.setAttribute("hidden","");if(r){a.setAttribute("id",t)}if(u){var f=window.localStorage.getItem("".concat(n,"-").concat(t));i=f!==null;if(i){var l=JSON.parse(f);o(a,l.content)}}md(e).then(function(e){if(Qh.empty(e)){return}if(u){window.localStorage.setItem("".concat(n,"-").concat(t),JSON.stringify({content:e}))}o(a,e);}).catch(function(){})}}function xd(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(!Qh.number(e)){return xd(undefined,t,n)}var r=function(t){return"0".concat(t).slice(-2);};var i=wd(e);var s=Ed(e);var o=Sd(e);if(t||i>0){i="".concat(i,":")}else{i=""}return"".concat(n&&e>0?"-":"").concat(i).concat(r(s),":").concat(r(o));}function Nd(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var n=e;if(t){var r=document.createElement("a");r.href=n;n=r.href}try{return new URL(n)}catch(i){return null}}function Cd(e){var t=new URLSearchParams;if(Qh.object(e)){Object.entries(e).forEach(function(e){var n=Ma(e,2),r=n[0],i=n[1];t.set(r,i);})}return t;}function _d(e){if(/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)){return Od.youtube}if(/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)){return Od.vimeo}return null;}function jd(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return new Promise(function(n,r){var i=new Image;var s=function(){delete i.onload;delete i.onerror;(i.naturalWidth>=t?n:r)(i);};Object.assign(i,{onload:s,onerror:s,src:e});});}function $d(e){return new Promise(function(t,n){Vd(e,{success:t,error:n});});}function Jd(e){if(Qh.empty(e)){return null}if(Qh.number(Number(e))){return e}var t=/^.*(vimeo.com\/|video\/)(\d+).*/;return e.match(t)?RegExp.$2:e;}function Kd(e){if(e&&!this.embed.hasPlayed){this.embed.hasPlayed=true}if(this.media.paused===e){this.media.paused=!e;_p.call(this,this.media,e?"play":"pause")}}function Gd(e){if(Qh.empty(e)){return null}var t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/;return e.match(t)?RegExp.$2:e;}function Yd(e){if(e&&!this.embed.hasPlayed){this.embed.hasPlayed=true}if(this.media.paused===e){this.media.paused=!e;_p.call(this,this.media,e?"play":"pause")}}function Zd(e){if(e.noCookie){return"https://www.youtube-nocookie.com"}if(window.location.protocol==="http:"){return"http://www.youtube.com"}return undefined;}function bv(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:255;return Math.min(Math.max(e,t),n);}(function(){if(typeof window==="undefined"){return}try{var e=new window.CustomEvent("test",{cancelable:true});e.preventDefault();if(e.defaultPrevented!==true){throw new Error("Could not prevent default")}}catch(t){var n=function(t,n){var r,i;n=n||{};n.bubbles=!!n.bubbles;n.cancelable=!!n.cancelable;r=document.createEvent("CustomEvent");r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail);i=r.preventDefault;r.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return true;}})}catch(e){this.defaultPrevented=true}};return r;};n.prototype=window.Event.prototype;window.CustomEvent=n}})();var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var n=function(e){return e&&e.Math==Math&&e;};var r=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof e=="object"&&e)||Function("return this")();var i=function(e){try{return!!e()}catch(t){return true}};var s=!i(function(){return Object.defineProperty({},1,{get:function(){return 7;}})[1]!=7;});var o={}.propertyIsEnumerable;var u=Object.getOwnPropertyDescriptor;var a=u&&!o.call({1:2},1);var f=a?function(t){var n=u(this,t);return!!n&&n.enumerable;}:o;var l={f:f};var c=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t};};var h={}.toString;var p=function(e){return h.call(e).slice(8,-1);};var d="".split;var v=i(function(){return!Object("z").propertyIsEnumerable(0);})?function(e){return p(e)=="String"?d.call(e,""):Object(e);}:Object;var m=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e;};var g=function(e){return v(m(e));};var y=function(e){return typeof e==="object"?e!==null:typeof e==="function";};var b=function(e,t){if(!y(e))return e;var n,r;if(t&&typeof (n=e.toString)=="function"&&!y(r=n.call(e)))return r;if(typeof (n=e.valueOf)=="function"&&!y(r=n.call(e)))return r;if(!t&&typeof (n=e.toString)=="function"&&!y(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value");};var w={}.hasOwnProperty;var E=function(e,t){return w.call(e,t);};var S=r.document;var x=y(S)&&y(S.createElement);var T=function(e){return x?S.createElement(e):{};};var N=!s&&!i(function(){return Object.defineProperty(T("div"),"a",{get:function(){return 7;}}).a!=7;});var C=Object.getOwnPropertyDescriptor;var k=s?C:function(t,n){t=g(t);n=b(n,true);if(N)try{return C(t,n)}catch(r){}if(E(t,n))return c(!l.f.call(t,n),t[n]);};var L={f:k};var A=function(e){if(!y(e)){throw TypeError(String(e)+" is not an object")}return e;};var O=Object.defineProperty;var M=s?O:function(t,n,r){A(t);n=b(n,true);A(r);if(N)try{return O(t,n,r)}catch(i){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");if("value"in r)t[n]=r.value;return t;};var _={f:M};var D=s?function(e,t,n){return _.f(e,t,c(1,n));}:function(e,t,n){e[t]=n;return e;};var P=function(e,t){try{D(r,e,t)}catch(n){r[e]=t}return t;};var H="__core-js_shared__";var B=r[H]||P(H,{});var j=B;var F=Function.toString;if(typeof j.inspectSource!="function"){j.inspectSource=function(e){return F.call(e);}}var I=j.inspectSource;var q=r.WeakMap;var R=typeof q==="function"&&/native code/.test(I(q));var U=false;var z=t(function(e){(e.exports=function(e,t){return j[e]||(j[e]=t!==undefined?t:{});})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});});var W=0;var X=Math.random();var V=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++W+X).toString(36);};var $=z("keys");var J=function(e){return $[e]||($[e]=V(e));};var K={};var Q=r.WeakMap;var G,Y,Z;var et=function(e){return Z(e)?Y(e):G(e,{});};var tt=function(e){return function(t){var n;if(!y(t)||(n=Y(t)).type!==e){throw TypeError("Incompatible receiver, "+e+" required")}return n;};};if(R){var nt=new Q;var rt=nt.get;var it=nt.has;var st=nt.set;G=function(e,t){st.call(nt,e,t);return t;};Y=function(e){return rt.call(nt,e)||{};};Z=function(e){return it.call(nt,e);}}else{var ot=J("state");K[ot]=true;G=function(e,t){D(e,ot,t);return t;};Y=function(e){return E(e,ot)?e[ot]:{};};Z=function(e){return E(e,ot);}}var ut={set:G,get:Y,has:Z,enforce:et,getterFor:tt};var at=t(function(e){var t=ut.get;var n=ut.enforce;var i=String(String).split("String");(e.exports=function(e,t,s,o){var u=o?!!o.unsafe:false;var a=o?!!o.enumerable:false;var f=o?!!o.noTargetGet:false;if(typeof s=="function"){if(typeof t=="string"&&!E(s,"name"))D(s,"name",t);n(s).source=i.join(typeof t=="string"?t:"")}if(e===r){if(a)e[t]=s;else P(t,s);return}else if(!u){delete e[t]}else if(!f&&e[t]){a=true}if(a)e[t]=s;else D(e,t,s);})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||I(this);});});var ft=r;var lt=function(e){return typeof e=="function"?e:undefined;};var ct=function(e,t){return arguments.length<2?lt(ft[e])||lt(r[e]):ft[e]&&ft[e][t]||r[e]&&r[e][t];};var ht=Math.ceil;var pt=Math.floor;var dt=function(e){return isNaN(e=+e)?0:(e>0?pt:ht)(e);};var vt=Math.min;var mt=function(e){return e>0?vt(dt(e),9007199254740991):0;};var gt=Math.max;var yt=Math.min;var bt=function(e,t){var n=dt(e);return n<0?gt(n+t,0):yt(n,t);};var wt=function(e){return function(t,n,r){var i=g(t);var s=mt(i.length);var o=bt(r,s);var u;if(e&&n!=n)while(s>o){u=i[o++];if(u!=u)return true}else for(;s>o;o++){if((e||o in i)&&i[o]===n)return e||o||0}return!e&&-1;};};var Et={includes:wt(true),indexOf:wt(false)};var St=Et.indexOf;var xt=function(e,t){var n=g(e);var r=0;var i=[];var s;for(s in n)!E(K,s)&&E(n,s)&&i.push(s);while(t.length>r)if(E(n,s=t[r++])){~St(i,s)||i.push(s)}return i;};var Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Nt=Tt.concat("length","prototype");var Ct=Object.getOwnPropertyNames||function(t){return xt(t,Nt);};var kt={f:Ct};var Lt=Object.getOwnPropertySymbols;var At={f:Lt};var Ot=ct("Reflect","ownKeys")||function(t){var n=kt.f(A(t));var r=At.f;return r?n.concat(r(t)):n;};var Mt=function(e,t){var n=Ot(t);var r=_.f;var i=L.f;for(var s=0;ss)_.f(t,o=r[s++],n[o]);return t;};var $t=ct("document","documentElement");var Jt=">";var Kt="<";var Qt="prototype";var Gt="script";var Yt=J("IE_PROTO");var Zt=function(){};var en=function(e){return Kt+Gt+Jt+e+Kt+"/"+Gt+Jt;};var tn=function(e){e.write(en(""));e.close();var t=e.parentWindow.Object;e=null;return t;};var nn=function(){var e=T("iframe");var t="java"+Gt+":";var n;e.style.display="none";$t.appendChild(e);e.src=String(t);n=e.contentWindow.document;n.open();n.write(en("document.F=Object"));n.close();return n.F;};var rn;var sn=function(){try{rn=document.domain&&new ActiveXObject("htmlfile")}catch(e){}sn=rn?tn(rn):nn();var t=Tt.length;while(t--)delete sn[Qt][Tt[t]];return sn();};K[Yt]=true;var on=Object.create||function(t,n){var r;if(t!==null){Zt[Qt]=A(t);r=new Zt;Zt[Qt]=null;r[Yt]=t}else r=sn();return n===undefined?r:Vt(r,n);};var un=kt.f;var an={}.toString;var fn=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var ln=function(e){try{return un(e)}catch(t){return fn.slice()}};var cn=function(t){return fn&&an.call(t)=="[object Window]"?ln(t):un(g(t));};var hn={f:cn};var pn=z("wks");var dn=r.Symbol;var vn=Ut?dn:dn&&dn.withoutSetter||V;var mn=function(e){if(!E(pn,e)){if(Rt&&E(dn,e))pn[e]=dn[e];else pn[e]=vn("Symbol."+e)}return pn[e];};var gn=mn;var yn={f:gn};var bn=_.f;var wn=function(e){var t=ft.Symbol||(ft.Symbol={});if(!E(t,e))bn(t,e,{value:yn.f(e)});};var En=_.f;var Sn=mn("toStringTag");var xn=function(e,t,n){if(e&&!E(e=n?e:e.prototype,Sn)){En(e,Sn,{configurable:true,value:t})}};var Tn=function(e){if(typeof e!="function"){throw TypeError(String(e)+" is not a function")}return e;};var Nn=function(e,t,n){Tn(e);if(t===undefined)return e;switch(n){case 0:return function(){return e.call(t);};case 1:return function(n){return e.call(t,n);};case 2:return function(n,r){return e.call(t,n,r);};case 3:return function(n,r,i){return e.call(t,n,r,i);}}return function(){return e.apply(t,arguments);};};var Cn=mn("species");var kn=function(e,t){var n;if(zt(e)){n=e.constructor;if(typeof n=="function"&&(n===Array||zt(n.prototype)))n=undefined;else if(y(n)){n=n[Cn];if(n===null)n=undefined}}return new(n===undefined?Array:n)(t===0?0:t);};var Ln=[].push;var An=function(e){var t=e==1;var n=e==2;var r=e==3;var i=e==4;var s=e==6;var o=e==5||s;return function(u,a,f,l){var c=Wt(u);var h=v(c);var p=Nn(a,f,3);var d=mt(h.length);var m=0;var g=l||kn;var y=t?g(u,d):n?g(u,0):undefined;var b,w;for(;d>m;m++)if(o||m in h){b=h[m];w=p(b,m,c);if(e){if(t)y[m]=w;else if(w)switch(e){case 3:return true;case 5:return b;case 6:return m;case 2:Ln.call(y,b)}else if(i)return false}}return s?-1:r||i?i:y;};};var On={forEach:An(0),map:An(1),filter:An(2),some:An(3),every:An(4),find:An(5),findIndex:An(6)};var Mn=On.forEach;var _n=J("hidden");var Dn="Symbol";var Pn="prototype";var Hn=mn("toPrimitive");var Bn=ut.set;var jn=ut.getterFor(Dn);var Fn=Object[Pn];var In=r.Symbol;var qn=ct("JSON","stringify");var Rn=L.f;var Un=_.f;var zn=hn.f;var Wn=l.f;var Xn=z("symbols");var Vn=z("op-symbols");var $n=z("string-to-symbol-registry");var Jn=z("symbol-to-string-registry");var Kn=z("wks");var Qn=r.QObject;var Gn=!Qn||!Qn[Pn]||!Qn[Pn].findChild;var Yn=s&&i(function(){return on(Un({},"a",{get:function(){return Un(this,"a",{value:7}).a;}})).a!=7;})?function(e,t,n){var r=Rn(Fn,t);if(r)delete Fn[t];Un(e,t,n);if(r&&e!==Fn){Un(Fn,t,r)}}:Un;var Zn=function(e,t){var n=Xn[e]=on(In[Pn]);Bn(n,{type:Dn,tag:e,description:t});if(!s)n.description=t;return n;};var er=Ut?function(e){return typeof e=="symbol";}:function(e){return Object(e)instanceof In;};var tr=function(t,n,r){if(t===Fn)tr(Vn,n,r);A(t);var i=b(n,true);A(r);if(E(Xn,i)){if(!r.enumerable){if(!E(t,_n))Un(t,_n,c(1,{}));t[_n][i]=true}else{if(E(t,_n)&&t[_n][i])t[_n][i]=false;r=on(r,{enumerable:c(0,false)})}return Yn(t,i,r)}return Un(t,i,r);};var nr=function(t,n){A(t);var r=g(n);var i=Xt(r).concat(ur(r));Mn(i,function(e){if(!s||ir.call(r,e))tr(t,e,r[e]);});return t;};var rr=function(t,n){return n===undefined?on(t):nr(on(t),n);};var ir=function(t){var n=b(t,true);var r=Wn.call(this,n);if(this===Fn&&E(Xn,n)&&!E(Vn,n))return false;return r||!E(this,n)||!E(Xn,n)||E(this,_n)&&this[_n][n]?r:true;};var sr=function(t,n){var r=g(t);var i=b(n,true);if(r===Fn&&E(Xn,i)&&!E(Vn,i))return;var s=Rn(r,i);if(s&&E(Xn,i)&&!(E(r,_n)&&r[_n][i])){s.enumerable=true}return s;};var or=function(t){var n=zn(g(t));var r=[];Mn(n,function(e){if(!E(Xn,e)&&!E(K,e))r.push(e);});return r;};var ur=function(t){var n=t===Fn;var r=zn(n?Vn:g(t));var i=[];Mn(r,function(e){if(E(Xn,e)&&(!n||E(Fn,e))){i.push(Xn[e])}});return i;};if(!Rt){In=function(){if(this instanceof In)throw TypeError("Symbol is not a constructor");var t=!arguments.length||arguments[0]===undefined?undefined:String(arguments[0]);var n=V(t);var r=function(e){if(this===Fn)r.call(Vn,e);if(E(this,_n)&&E(this[_n],n))this[_n][n]=false;Yn(this,n,c(1,e));};if(s&&Gn)Yn(Fn,n,{configurable:true,set:r});return Zn(n,t);};at(In[Pn],"toString",function(){return jn(this).tag;});at(In,"withoutSetter",function(e){return Zn(V(e),e);});l.f=ir;_.f=tr;L.f=sr;kt.f=hn.f=or;At.f=ur;yn.f=function(e){return Zn(mn(e),e);};if(s){Un(In[Pn],"description",{configurable:true,get:function(){return jn(this).description;}});{at(Fn,"propertyIsEnumerable",ir,{unsafe:true})}}}qt({global:true,wrap:true,forced:!Rt,sham:!Rt},{Symbol:In});Mn(Xt(Kn),function(e){wn(e);});qt({target:Dn,stat:true,forced:!Rt},{"for":function(e){var t=String(e);if(E($n,t))return $n[t];var n=In(t);$n[t]=n;Jn[n]=t;return n;},keyFor:function(t){if(!er(t))throw TypeError(t+" is not a symbol");if(E(Jn,t))return Jn[t];},useSetter:function(){Gn=true;},useSimple:function(){Gn=false;}});qt({target:"Object",stat:true,forced:!Rt,sham:!s},{create:rr,defineProperty:tr,defineProperties:nr,getOwnPropertyDescriptor:sr});qt({target:"Object",stat:true,forced:!Rt},{getOwnPropertyNames:or,getOwnPropertySymbols:ur});qt({target:"Object",stat:true,forced:i(function(){At.f(1);})},{getOwnPropertySymbols:function(t){return At.f(Wt(t));}});if(qn){var ar=!Rt||i(function(){var e=In();return qn([e])!="[null]"||qn({a:e})!="{}"||qn(Object(e))!="{}";});qt({target:"JSON",stat:true,forced:ar},{stringify:function(t,n,r){var i=[t];var s=1;var o;while(arguments.length>s)i.push(arguments[s++]);o=n;if(!y(n)&&t===undefined||er(t))return;if(!zt(n))n=function(e,t){if(typeof o=="function")t=o.call(this,e,t);if(!er(t))return t;};i[1]=n;return qn.apply(null,i);}})}if(!In[Pn][Hn]){D(In[Pn],Hn,In[Pn].valueOf)}xn(In,Dn);K[_n]=true;var fr=_.f;var lr=r.Symbol;if(s&&typeof lr=="function"&&(!("description"in lr.prototype)||lr().description!==undefined)){var cr={};var hr=function(){var t=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]);var n=this instanceof hr?new lr(t):t===undefined?lr():lr(t);if(t==="")cr[n]=true;return n;};Mt(hr,lr);var pr=hr.prototype=lr.prototype;pr.constructor=hr;var dr=pr.toString;var vr=String(lr("test"))=="Symbol(test)";var mr=/^Symbol\((.*)\)[^)]+$/;fr(pr,"description",{configurable:true,get:function(){var t=y(this)?this.valueOf():this;var n=dr.call(t);if(E(cr,t))return"";var r=vr?n.slice(7,-1):n.replace(mr,"$1");return r===""?undefined:r;}});qt({global:true,forced:true},{Symbol:hr})}wn("iterator");var gr=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1;},1);});};var yr=Object.defineProperty;var br={};var wr=function(e){throw e;};var Er=function(e,t){if(E(br,e))return br[e];if(!t)t={};var n=[][e];var r=E(t,"ACCESSORS")?t.ACCESSORS:false;var o=E(t,0)?t[0]:wr;var u=E(t,1)?t[1]:undefined;return br[e]=!!n&&!i(function(){if(r&&!s)return true;var e={length:-1};if(r)yr(e,1,{enumerable:true,get:wr});else e[1]=1;n.call(e,o,u);});};var Sr=On.forEach;var xr=gr("forEach");var Tr=Er("forEach");var Nr=!xr||!Tr?function(t){return Sr(this,t,arguments.length>1?arguments[1]:undefined);}:[].forEach;qt({target:"Array",proto:true,forced:[].forEach!=Nr},{forEach:Nr});var Cr=Et.indexOf;var kr=[].indexOf;var Lr=!!kr&&1/[1].indexOf(1,-0)<0;var Ar=gr("indexOf");var Or=Er("indexOf",{ACCESSORS:true,1:0});qt({target:"Array",proto:true,forced:Lr||!Ar||!Or},{indexOf:function(t){return Lr?kr.apply(this,arguments)||0:Cr(this,t,arguments.length>1?arguments[1]:undefined);}});var Mr=mn("unscopables");var _r=Array.prototype;if(_r[Mr]==undefined){_.f(_r,Mr,{configurable:true,value:on(null)})}var Dr=function(e){_r[Mr][e]=true;};var Pr={};var Hr=!i(function(){function e(){}e.prototype.constructor=null;return Object.getPrototypeOf(new e)!==e.prototype;});var Br=J("IE_PROTO");var jr=Object.prototype;var Fr=Hr?Object.getPrototypeOf:function(e){e=Wt(e);if(E(e,Br))return e[Br];if(typeof e.constructor=="function"&&e instanceof e.constructor){return e.constructor.prototype}return e instanceof Object?jr:null;};var Ir=mn("iterator");var qr=false;var Rr=function(){return this;};var Ur,zr,Wr;if([].keys){Wr=[].keys();if(!("next"in Wr))qr=true;else{zr=Fr(Fr(Wr));if(zr!==Object.prototype)Ur=zr}}if(Ur==undefined)Ur={};if(!E(Ur,Ir)){D(Ur,Ir,Rr)}var Xr={IteratorPrototype:Ur,BUGGY_SAFARI_ITERATORS:qr};var Vr=Xr.IteratorPrototype;var $r=function(){return this;};var Jr=function(e,t,n){var r=t+" Iterator";e.prototype=on(Vr,{next:c(1,n)});xn(e,r,false);Pr[r]=$r;return e;};var Kr=function(e){if(!y(e)&&e!==null){throw TypeError("Can't set "+String(e)+" as a prototype")}return e;};var Qr=Object.setPrototypeOf||("__proto__"in{}?function(){var e=false;var t={};var n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;n.call(t,[]);e=t instanceof Array}catch(r){}return function(r,i){A(r);Kr(i);if(e)n.call(r,i);else r.__proto__=i;return r;};}():undefined);var Gr=Xr.IteratorPrototype;var Yr=Xr.BUGGY_SAFARI_ITERATORS;var Zr=mn("iterator");var ei="keys";var ti="values";var ni="entries";var ri=function(){return this;};var ii=function(e,t,n,r,i,s,o){Jr(n,t,r);var u=function(e){if(e===i&&h)return h;if(!Yr&&e in l)return l[e];switch(e){case ei:return function(){return new n(this,e);};case ti:return function(){return new n(this,e);};case ni:return function(){return new n(this,e);}}return function(){return new n(this);};};var a=t+" Iterator";var f=false;var l=e.prototype;var c=l[Zr]||l["@@iterator"]||i&&l[i];var h=!Yr&&c||u(i);var p=t=="Array"?l.entries||c:c;var d,v,m;if(p){d=Fr(p.call(new e));if(Gr!==Object.prototype&&d.next){if(Fr(d)!==Gr){if(Qr){Qr(d,Gr)}else if(typeof d[Zr]!="function"){D(d,Zr,ri)}}xn(d,a,true)}}if(i==ti&&c&&c.name!==ti){f=true;h=function(){return c.call(this);}}if(l[Zr]!==h){D(l,Zr,h)}Pr[t]=h;if(i){v={values:u(ti),keys:s?h:u(ei),entries:u(ni)};if(o)for(m in v){if(Yr||f||!(m in l)){at(l,m,v[m])}}else qt({target:t,proto:true,forced:Yr||f},v)}return v;};var si="Array Iterator";var oi=ut.set;var ui=ut.getterFor(si);var ai=ii(Array,"Array",function(e,t){oi(this,{type:si,target:g(e),index:0,kind:t});},function(){var e=ui(this);var t=e.target;var n=e.kind;var r=e.index++;if(!t||r>=t.length){e.target=undefined;return{value:undefined,done:true}}if(n=="keys")return{value:r,done:false};if(n=="values")return{value:t[r],done:false};return{value:[r,t[r]],done:false};},"values");Pr.Arguments=Pr.Array;Dr("keys");Dr("values");Dr("entries");var fi=[].join;var li=v!=Object;var ci=gr("join",",");qt({target:"Array",proto:true,forced:li||!ci},{join:function(t){return fi.call(g(this),t===undefined?",":t);}});var hi=function(e,t,n){var r=b(t);if(r in e)_.f(e,r,c(0,n));else e[r]=n;};var pi=ct("navigator","userAgent")||"";var di=r.process;var vi=di&&di.versions;var mi=vi&&vi.v8;var gi,yi;if(mi){gi=mi.split(".");yi=gi[0]+gi[1]}else if(pi){gi=pi.match(/Edge\/(\d+)/);if(!gi||gi[1]>=74){gi=pi.match(/Chrome\/(\d+)/);if(gi)yi=gi[1]}}var bi=yi&&+yi;var wi=mn("species");var Ei=function(e){return bi>=51||!i(function(){var t=[];var n=t.constructor={};n[wi]=function(){return{foo:1};};return t[e](Boolean).foo!==1;});};var Si=Ei("slice");var xi=Er("slice",{ACCESSORS:true,0:0,1:2});var Ti=mn("species");var Ni=[].slice;var Ci=Math.max;qt({target:"Array",proto:true,forced:!Si||!xi},{slice:function(t,n){var r=g(this);var i=mt(r.length);var s=bt(t,i);var o=bt(n===undefined?i:n,i);var u,a,f;if(zt(r)){u=r.constructor;if(typeof u=="function"&&(u===Array||zt(u.prototype))){u=undefined}else if(y(u)){u=u[Ti];if(u===null)u=undefined}if(u===Array||u===undefined){return Ni.call(r,s,o)}}a=new(u===undefined?Array:u)(Ci(o-s,0));for(f=0;s0&&(!n.multiline||n.multiline&&t[n.lastIndex-1]!=="\n")){f="(?: "+f+")";c=" "+c;l++}i=new RegExp("^(?:"+f+")",a)}if(Xi){i=new RegExp("^"+f+"$(?!\\s)",a)}if(zi)r=n.lastIndex;s=qi.call(u?i:n,c);if(u){if(s){s.input=s.input.slice(l);s[0]=s[0].slice(l);s.index=n.lastIndex;n.lastIndex+=s[0].length}else n.lastIndex=0}else if(zi&&s){n.lastIndex=n.global?s.index+s[0].length:r}if(Xi&&s&&s.length>1){Ri.call(s[0],i,function(){for(o=1;o=s)return e?"":undefined;o=r.charCodeAt(i);return o<55296||o>56319||i+1===s||(u=r.charCodeAt(i+1))<56320||u>57343?e?r.charAt(i):o:e?r.slice(i,i+2):(o-55296<<10)+(u-56320)+65536;};};var es={codeAt:Zi(false),charAt:Zi(true)};var ts=es.charAt;var ns="String Iterator";var rs=ut.set;var is=ut.getterFor(ns);ii(String,"String",function(e){rs(this,{type:ns,string:String(e),index:0});},function(){var t=is(this);var n=t.string;var r=t.index;var i;if(r>=n.length)return{value:undefined,done:true};i=ts(n,r);t.index+=i.length;return{value:i,done:false};});var ss=mn("species");var os=!i(function(){var e=/./;e.exec=function(){var e=[];e.groups={a:"7"};return e;};return"".replace(e,"$")!=="7";});var us=function(){return"a".replace(/./,"$0")==="$0";}();var as=mn("replace");var fs=function(){if(/./[as]){return/./[as]("a","$0")===""}return false;}();var ls=!i(function(){var e=/(?:)/;var t=e.exec;e.exec=function(){return t.apply(this,arguments);};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b";});var cs=function(e,t,n,r){var s=mn(e);var o=!i(function(){var t={};t[s]=function(){return 7;};return""[e](t)!=7;});var u=o&&!i(function(){var t=false;var n=/a/;if(e==="split"){n={};n.constructor={};n.constructor[ss]=function(){return n;};n.flags="";n[s]=/./[s]}n.exec=function(){t=true;return null;};n[s]("");return!t;});if(!o||!u||e==="replace"&&!(os&&us&&!fs)||e==="split"&&!ls){var a=/./[s];var f=n(s,""[e],function(e,t,n,r,i){if(t.exec===$i){if(o&&!i){return{done:true,value:a.call(t,n,r)}}return{done:true,value:e.call(n,t,r)}}return{done:false};},{REPLACE_KEEPS_$0:us,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:fs});var l=f[0];var c=f[1];at(String.prototype,e,l);at(RegExp.prototype,s,t==2?function(e,t){return c.call(e,this,t);}:function(e){return c.call(e,this);})}if(r)D(RegExp.prototype[s],"sham",true);};var hs=es.charAt;var ps=function(e,t,n){return t+(n?hs(e,t).length:1);};var ds=function(e,t){var n=e.exec;if(typeof n==="function"){var r=n.call(e,t);if(typeof r!=="object"){throw TypeError("RegExp exec method returned something other than an Object or null")}return r}if(p(e)!=="RegExp"){throw TypeError("RegExp#exec called on incompatible receiver")}return $i.call(e,t);};var vs=Math.max;var ms=Math.min;var gs=Math.floor;var ys=/\$([$&'`]|\d\d?|<[^>]*>)/g;var bs=/\$([$&'`]|\d\d?)/g;var ws=function(e){return e===undefined?e:String(e);};cs("replace",2,function(e,t,n,r){function u(e,n,r,i,s,o){var u=r+e.length;var a=i.length;var f=bs;if(s!==undefined){s=Wt(s);f=ys}return t.call(o,f,function(t,o){var f;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":f=s[o.slice(1,-1)];break;default:var l=+o;if(l===0)return t;if(l>a){var c=gs(l/10);if(c===0)return t;if(c<=a)return i[c-1]===undefined?o.charAt(1):i[c-1]+o.charAt(1);return t}f=i[l-1]}return f===undefined?"":f;});}var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;var s=r.REPLACE_KEEPS_$0;var o=i?"$":"$0";return[function(r,i){var s=m(this);var o=r==undefined?undefined:r[e];return o!==undefined?o.call(r,s,i):t.call(String(s),r,i);},function(e,r){if(!i&&s||typeof r==="string"&&r.indexOf(o)===-1){var a=n(t,e,this,r);if(a.done)return a.value}var f=A(e);var l=String(this);var c=typeof r==="function";if(!c)r=String(r);var h=f.global;if(h){var p=f.unicode;f.lastIndex=0}var d=[];while(true){var v=ds(f,l);if(v===null)break;d.push(v);if(!h)break;var m=String(v[0]);if(m==="")f.lastIndex=ps(l,mt(f.lastIndex),p)}var g="";var y=0;for(var b=0;b=y){g+=l.slice(y,E)+C;y=E+w.length}}return g+l.slice(y);}];});var Es=Object.is||function(t,n){return t===n?t!==0||1/t===1/n:t!=t&&n!=n;};cs("search",1,function(e,t,n){return[function(n){var r=m(this);var i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r):(new RegExp(n))[e](String(r));},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=A(e);var s=String(this);var o=i.lastIndex;if(!Es(o,0))i.lastIndex=0;var u=ds(i,s);if(!Es(i.lastIndex,o))i.lastIndex=o;return u===null?-1:u.index;}];});var Ss=mn("match");var xs=function(e){var t;return y(e)&&((t=e[Ss])!==undefined?!!t:p(e)=="RegExp");};var Ts=mn("species");var Ns=function(e,t){var n=A(e).constructor;var r;return n===undefined||(r=A(n)[Ts])==undefined?t:Tn(r);};var Cs=[].push;var ks=Math.min;var Ls=4294967295;var As=!i(function(){return!RegExp(Ls,"y");});cs("split",2,function(e,t,n){var r;if("abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length){r=function(e,n){var r=String(m(this));var i=n===undefined?Ls:n>>>0;if(i===0)return[];if(e===undefined)return[r];if(!xs(e)){return t.call(r,e,i)}var s=[];var o=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":"");var u=0;var a=new RegExp(e.source,o+"g");var f,l,c;while(f=$i.call(a,r)){l=a.lastIndex;if(l>u){s.push(r.slice(u,f.index));if(f.length>1&&f.index=i)break}if(a.lastIndex===f.index)a.lastIndex++}if(u===r.length){if(c||!a.test(""))s.push("")}else s.push(r.slice(u));return s.length>i?s.slice(0,i):s;}}else if("0".split(undefined,0).length){r=function(e,n){return e===undefined&&n===0?[]:t.call(this,e,n);}}else r=t;return[function(n,i){var s=m(this);var o=n==undefined?undefined:n[e];return o!==undefined?o.call(n,s,i):r.call(String(s),n,i);},function(e,i){var s=n(r,e,this,i,r!==t);if(s.done)return s.value;var o=A(e);var u=String(this);var a=Ns(o,RegExp);var f=o.unicode;var l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(As?"y":"g");var c=new a(As?o:"^(?:"+o.source+")",l);var h=i===undefined?Ls:i>>>0;if(h===0)return[];if(u.length===0)return ds(c,u)===null?[u]:[];var p=0;var d=0;var v=[];while(do){var f=v(arguments[o++]);var c=u?Xt(f).concat(u(f)):Xt(f);var h=c.length;var p=0;var d;while(h>p){d=c[p++];if(!s||a.call(f,d))r[d]=f[d]}}return r;}:Xs;var Js=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(i){var s=e["return"];if(s!==undefined)A(s.call(e));throw i}};var Ks=mn("iterator");var Qs=Array.prototype;var Gs=function(e){return e!==undefined&&(Pr.Array===e||Qs[Ks]===e);};var Ys=mn("iterator");var Zs=function(e){if(e!=undefined)return e[Ys]||e["@@iterator"]||Pr[Di(e)];};var eo=function(t){var n=Wt(t);var r=typeof this=="function"?this:Array;var i=arguments.length;var s=i>1?arguments[1]:undefined;var o=s!==undefined;var u=Zs(n);var a=0;var f,l,c,h,p,d;if(o)s=Nn(s,i>2?arguments[2]:undefined,2);if(u!=undefined&&!(r==Array&&Gs(u))){h=u.call(n);p=h.next;l=new r;for(;!(c=p.call(h)).done;a++){d=o?Js(h,s,[c.value,a],true):c.value;hi(l,a,d)}}else{f=mt(n.length);l=new r(f);for(;f>a;a++){d=o?s(n[a],a):n[a];hi(l,a,d)}}l.length=a;return l;};var to=2147483647;var no=36;var ro=1;var io=26;var so=38;var oo=700;var uo=72;var ao=128;var fo="-";var lo=/[^\0-\u007E]/;var co=/[.\u3002\uFF0E\uFF61]/g;var ho="Overflow: input needs wider integers to process";var po=no-ro;var vo=Math.floor;var mo=String.fromCharCode;var go=function(e){var t=[];var n=0;var r=e.length;while(n=55296&&i<=56319&&n>1;e+=vo(e/t);for(;e>po*io>>1;r+=no){e=vo(e/po)}return vo(r+(po+1)*e/(e+so));};var wo=function(e){var t=[];e=go(e);var n=e.length;var r=ao;var i=0;var s=uo;var o,u;for(o=0;o=r&&uvo((to-i)/c)){throw RangeError(ho)}i+=(l-r)*c;r=l;for(o=0;oto){throw RangeError(ho)}if(u==r){var h=i;for(var p=no;;p+=no){var d=p<=s?ro:p>=s+io?io:p-s;if(h0?arguments[0]:undefined;var n=this;var r=[];var i,s,o,u,a,f,l,c,h;Ao(n,{type:ko,entries:r,updateURL:function(){},updateSearchParams:Uo});if(t!==undefined){if(y(t)){i=Zs(t);if(typeof i==="function"){s=i.call(t);o=s.next;while(!(u=o.call(s)).done){a=xo(A(u.value));f=a.next;if((l=f.call(a)).done||(c=f.call(a)).done||!f.call(a).done)throw TypeError("Expected sequence with length 2");r.push({key:l.value+"",value:c.value+""})}}else for(h in t)if(E(t,h))r.push({key:h,value:t[h]+""})}else{Ro(r,typeof t==="string"?t.charAt(0)==="?"?t.slice(1):t:t+"")}}};var Vo=Xo.prototype;So(Vo,{append:function(t,n){zo(arguments.length,2);var r=Oo(this);r.entries.push({key:t+"",value:n+""});r.updateURL();},"delete":function(e){zo(arguments.length,1);var t=Oo(this);var n=t.entries;var r=e+"";var i=0;while(ii.key){n.splice(s,0,i);break}}if(s===o)n.push(i)}t.updateURL();},forEach:function(t){var n=Oo(this).entries;var r=Nn(t,arguments.length>1?arguments[1]:undefined,3);var i=0;var s;while(i1){r=arguments[1];if(y(r)){i=r.body;if(Di(i)===ko){s=r.headers?new No(r.headers):new No;if(!s.has("content-type")){s.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}r=on(r,{body:c(0,String(i)),headers:c(0,s)})}}n.push(r)}return To.apply(this,n);}})}var $o={URLSearchParams:Xo,getState:Oo};var Jo=es.codeAt;var Ko=r.URL;var Qo=$o.URLSearchParams;var Go=$o.getState;var Yo=ut.set;var Zo=ut.getterFor("URL");var eu=Math.floor;var tu=Math.pow;var nu="Invalid authority";var ru="Invalid scheme";var iu="Invalid host";var su="Invalid port";var ou=/[A-Za-z]/;var uu=/[\d+-.A-Za-z]/;var au=/\d/;var fu=/^(0x|0X)/;var lu=/^[0-7]+$/;var cu=/^\d+$/;var hu=/^[\dA-Fa-f]+$/;var pu=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/;var du=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/;var vu=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g;var mu=/[\u0009\u000A\u000D]/g;var gu;var yu=function(e,t){var n,r,i;if(t.charAt(0)=="["){if(t.charAt(t.length-1)!="]")return iu;n=wu(t.slice(1,-1));if(!n)return iu;e.host=n}else if(!Au(e)){if(du.test(t))return iu;n="";r=eo(t);for(i=0;i4)return e;r=[];for(i=0;i1&&s.charAt(0)=="0"){o=fu.test(s)?16:8;s=s.slice(o==8?1:2)}if(s===""){u=0}else{if(!(o==10?cu:o==8?lu:hu).test(s))return e;u=parseInt(s,o)}r.push(u)}for(i=0;i=tu(256,5-n))return null}else if(u>255)return null}a=r.pop();for(i=0;i6)return;u=0;while(h()){a=null;if(u>0){if(h()=="."&&u<4)i++;else return}if(!au.test(h()))return;while(au.test(h())){f=parseInt(h(),10);if(a===null)a=f;else if(a==0)return;else a=a*10+f;if(a>255)return;i++}t[n]=t[n]*256+a;u++;if(u==2||u==4)n++}if(u!=4)return;break}else if(h()==":"){i++;if(!h())return}else if(h())return;t[n++]=s}if(r!==null){l=n-r;n=7;while(n!=0&&l>0){c=t[n];t[n--]=t[r+l-1];t[r+ --l]=c}}else if(n!=8)return;return t;};var Eu=function(e){var t=null;var n=1;var r=null;var i=0;var s=0;for(;s<8;s++){if(e[s]!==0){if(i>n){t=r;n=i}r=null;i=0}else{if(r===null)r=s;++i}}if(i>n){t=r;n=i}return t;};var Su=function(e){var t,n,r,i;if(typeof e=="number"){t=[];for(n=0;n<4;n++){t.unshift(e%256);e=eu(e/256)}return t.join(".")}else if(typeof e=="object"){t="";r=Eu(e);for(n=0;n<8;n++){if(i&&e[n]===0)continue;if(i)i=false;if(r===n){t+=n?":":"::";i=true}else{t+=e[n].toString(16);if(n<7)t+=":"}}return"["+t+"]"}return e;};var xu={};var Tu=$s({},xu,{" ":1,'"':1,"<":1,">":1,"`":1});var Nu=$s({},Tu,{"#":1,"?":1,"{":1,"}":1});var Cu=$s({},Nu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1});var ku=function(e,t){var n=Jo(e,0);return n>32&&n<127&&!E(t,e)?e:encodeURIComponent(e);};var Lu={ftp:21,file:null,http:80,https:443,ws:80,wss:443};var Au=function(e){return E(Lu,e.scheme);};var Ou=function(e){return e.username!=""||e.password!="";};var Mu=function(e){return!e.host||e.cannotBeABaseURL||e.scheme=="file";};var _u=function(e,t){var n;return e.length==2&&ou.test(e.charAt(0))&&((n=e.charAt(1))==":"||!t&&n=="|");};var Du=function(e){var t;return e.length>1&&_u(e.slice(0,2))&&(e.length==2||(t=e.charAt(2))==="/"||t==="\\"||t==="?"||t==="#");};var Pu=function(e){var t=e.path;var n=t.length;if(n&&(e.scheme!="file"||n!=1||!_u(t[0],true))){t.pop()}};var Hu=function(e){return e==="."||e.toLowerCase()==="%2e";};var Bu=function(e){e=e.toLowerCase();return e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e";};var ju={};var Fu={};var Iu={};var qu={};var Ru={};var Uu={};var zu={};var Wu={};var Xu={};var Vu={};var $u={};var Ju={};var Ku={};var Qu={};var Gu={};var Yu={};var Zu={};var ea={};var ta={};var na={};var ra={};var ia=function(e,t,n,r){var i=n||ju;var s=0;var o="";var u=false;var a=false;var f=false;var l,c,h,p;if(!n){e.scheme="";e.username="";e.password="";e.host=null;e.port=null;e.path=[];e.query=null;e.fragment=null;e.cannotBeABaseURL=false;t=t.replace(vu,"")}t=t.replace(mu,"");l=eo(t);while(s<=l.length){c=l[s];switch(i){case ju:if(c&&ou.test(c)){o+=c.toLowerCase();i=Fu}else if(!n){i=Iu;continue}else return ru;break;case Fu:if(c&&(uu.test(c)||c=="+"||c=="-"||c==".")){o+=c.toLowerCase()}else if(c==":"){if(n&&(Au(e)!=E(Lu,o)||o=="file"&&(Ou(e)||e.port!==null)||e.scheme=="file"&&!e.host))return;e.scheme=o;if(n){if(Au(e)&&Lu[e.scheme]==e.port)e.port=null;return}o="";if(e.scheme=="file"){i=Qu}else if(Au(e)&&r&&r.scheme==e.scheme){i=qu}else if(Au(e)){i=Wu}else if(l[s+1]=="/"){i=Ru;s++}else{e.cannotBeABaseURL=true;e.path.push("");i=ta}}else if(!n){o="";i=Iu;s=0;continue}else return ru;break;case Iu:if(!r||r.cannotBeABaseURL&&c!="#")return ru;if(r.cannotBeABaseURL&&c=="#"){e.scheme=r.scheme;e.path=r.path.slice();e.query=r.query;e.fragment="";e.cannotBeABaseURL=true;i=ra;break}i=r.scheme=="file"?Qu:Uu;continue;case qu:if(c=="/"&&l[s+1]=="/"){i=Xu;s++}else{i=Uu;continue}break;case Ru:if(c=="/"){i=Vu;break}else{i=ea;continue};case Uu:e.scheme=r.scheme;if(c==gu){e.username=r.username;e.password=r.password;e.host=r.host;e.port=r.port;e.path=r.path.slice();e.query=r.query}else if(c=="/"||c=="\\"&&Au(e)){i=zu}else if(c=="?"){e.username=r.username;e.password=r.password;e.host=r.host;e.port=r.port;e.path=r.path.slice();e.query="";i=na}else if(c=="#"){e.username=r.username;e.password=r.password;e.host=r.host;e.port=r.port;e.path=r.path.slice();e.query=r.query;e.fragment="";i=ra}else{e.username=r.username;e.password=r.password;e.host=r.host;e.port=r.port;e.path=r.path.slice();e.path.pop();i=ea;continue}break;case zu:if(Au(e)&&(c=="/"||c=="\\")){i=Xu}else if(c=="/"){i=Vu}else{e.username=r.username;e.password=r.password;e.host=r.host;e.port=r.port;i=ea;continue}break;case Wu:i=Xu;if(c!="/"||o.charAt(s+1)!="/")continue;s++;break;case Xu:if(c!="/"&&c!="\\"){i=Vu;continue}break;case Vu:if(c=="@"){if(u)o="%40"+o;u=true;h=eo(o);for(var d=0;d65535)return su;e.port=Au(e)&&g===Lu[e.scheme]?null:g;o=""}if(n)return;i=Zu;continue}else return su;break;case Qu:e.scheme="file";if(c=="/"||c=="\\")i=Gu;else if(r&&r.scheme=="file"){if(c==gu){e.host=r.host;e.path=r.path.slice();e.query=r.query}else if(c=="?"){e.host=r.host;e.path=r.path.slice();e.query="";i=na}else if(c=="#"){e.host=r.host;e.path=r.path.slice();e.query=r.query;e.fragment="";i=ra}else{if(!Du(l.slice(s).join(""))){e.host=r.host;e.path=r.path.slice();Pu(e)}i=ea;continue}}else{i=ea;continue}break;case Gu:if(c=="/"||c=="\\"){i=Yu;break}if(r&&r.scheme=="file"&&!Du(l.slice(s).join(""))){if(_u(r.path[0],true))e.path.push(r.path[0]);else e.host=r.host}i=ea;continue;case Yu:if(c==gu||c=="/"||c=="\\"||c=="?"||c=="#"){if(!n&&_u(o)){i=ea}else if(o==""){e.host="";if(n)return;i=Zu}else{p=yu(e,o);if(p)return p;if(e.host=="localhost")e.host="";if(n)return;o="";i=Zu}continue}else o+=c;break;case Zu:if(Au(e)){i=ea;if(c!="/"&&c!="\\")continue}else if(!n&&c=="?"){e.query="";i=na}else if(!n&&c=="#"){e.fragment="";i=ra}else if(c!=gu){i=ea;if(c!="/")continue}break;case ea:if(c==gu||c=="/"||c=="\\"&&Au(e)||!n&&(c=="?"||c=="#")){if(Bu(o)){Pu(e);if(c!="/"&&!(c=="\\"&&Au(e))){e.path.push("")}}else if(Hu(o)){if(c!="/"&&!(c=="\\"&&Au(e))){e.path.push("")}}else{if(e.scheme=="file"&&!e.path.length&&_u(o)){if(e.host)e.host="";o=o.charAt(0)+":"}e.path.push(o)}o="";if(e.scheme=="file"&&(c==gu||c=="?"||c=="#")){while(e.path.length>1&&e.path[0]===""){e.path.shift()}}if(c=="?"){e.query="";i=na}else if(c=="#"){e.fragment="";i=ra}}else{o+=ku(c,Nu)}break;case ta:if(c=="?"){e.query="";i=na}else if(c=="#"){e.fragment="";i=ra}else if(c!=gu){e.path[0]+=ku(c,xu)}break;case na:if(!n&&c=="#"){e.fragment="";i=ra}else if(c!=gu){if(c=="'"&&Au(e))e.query+="%27";else if(c=="#")e.query+="%23";else e.query+=ku(c,xu)}break;case ra:if(c!=gu)e.fragment+=ku(c,Tu);break}s++}};var sa=function(t){var n=Ws(this,sa,"URL");var r=arguments.length>1?arguments[1]:undefined;var i=String(t);var o=Yo(n,{type:"URL"});var u,a;if(r!==undefined){if(r instanceof sa)u=Zo(r);else{a=ia(u={},String(r));if(a)throw TypeError(a)}}a=ia(o,i,null,u);if(a)throw TypeError(a);var f=o.searchParams=new Qo;var l=Go(f);l.updateSearchParams(o.query);l.updateURL=function(){o.query=String(f)||null;};if(!s){n.href=ua.call(n);n.origin=aa.call(n);n.protocol=fa.call(n);n.username=la.call(n);n.password=ca.call(n);n.host=ha.call(n);n.hostname=pa.call(n);n.port=da.call(n);n.pathname=va.call(n);n.search=ma.call(n);n.searchParams=ga.call(n);n.hash=ya.call(n)}};var oa=sa.prototype;var ua=function(){var e=Zo(this);var t=e.scheme;var n=e.username;var r=e.password;var i=e.host;var s=e.port;var o=e.path;var u=e.query;var a=e.fragment;var f=t+":";if(i!==null){f+="//";if(Ou(e)){f+=n+(r?":"+r:"")+"@"}f+=Su(i);if(s!==null)f+=":"+s}else if(t=="file")f+="//";f+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"";if(u!==null)f+="?"+u;if(a!==null)f+="#"+a;return f;};var aa=function(){var e=Zo(this);var t=e.scheme;var n=e.port;if(t=="blob")try{return(new URL(t.path[0])).origin}catch(r){return"null"}if(t=="file"||!Au(e))return"null";return t+"://"+Su(e.host)+(n!==null?":"+n:"");};var fa=function(){return Zo(this).scheme+":";};var la=function(){return Zo(this).username;};var ca=function(){return Zo(this).password;};var ha=function(){var e=Zo(this);var t=e.host;var n=e.port;return t===null?"":n===null?Su(t):Su(t)+":"+n;};var pa=function(){var e=Zo(this).host;return e===null?"":Su(e);};var da=function(){var e=Zo(this).port;return e===null?"":String(e);};var va=function(){var e=Zo(this);var t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):"";};var ma=function(){var e=Zo(this).query;return e?"?"+e:"";};var ga=function(){return Zo(this).searchParams;};var ya=function(){var e=Zo(this).fragment;return e?"#"+e:"";};var ba=function(e,t){return{get:e,set:t,configurable:true,enumerable:true};};if(s){Vt(oa,{href:ba(ua,function(e){var t=Zo(this);var n=String(e);var r=ia(t,n);if(r)throw TypeError(r);Go(t.searchParams).updateSearchParams(t.query);}),origin:ba(aa),protocol:ba(fa,function(e){var t=Zo(this);ia(t,String(e)+":",ju);}),username:ba(la,function(e){var t=Zo(this);var n=eo(String(e));if(Mu(t))return;t.username="";for(var r=0;rt[0]){return+1}else{return 0}});if(e._entries){e._entries={}}for(var n=0;n1?s(o[1]):"")}}})}})(typeof e!=="undefined"?e:typeof window!=="undefined"?window:typeof self!=="undefined"?self:e);(function(e){var t=function(){try{var n=new e.URL("b","http://a");n.pathname="c d";return n.href==="http://a/c%20d"&&n.searchParams}catch(r){return false}};var n=function(){var n=e.URL;var r=function(n,r){if(typeof n!=="string")n=String(n);var i=document,s;if(r&&(e.location===void 0||r!==e.location.href)){i=document.implementation.createHTMLDocument("");s=i.createElement("base");s.href=r;i.head.appendChild(s);try{if(s.href.indexOf(r)!==0)throw new Error(s.href)}catch(o){throw new Error("URL unable to set base "+r+" due to "+o)}}var u=i.createElement("a");u.href=n;if(s){i.body.appendChild(u);u.href=u.href}if(u.protocol===":"||!/:/.test(u.href)){throw new TypeError("Invalid URL")}Object.defineProperty(this,"_anchorElement",{value:u});var a=new e.URLSearchParams(this.search);var f=true;var l=true;var c=this;["append","delete","set"].forEach(function(e){var t=a[e];a[e]=function(){t.apply(a,arguments);if(f){l=false;c.search=a.toString();l=true}};});Object.defineProperty(this,"searchParams",{value:a,enumerable:true});var h=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:false,configurable:false,writable:false,value:function(){if(this.search!==h){h=this.search;if(l){f=false;this.searchParams._fromString(this.search);f=true}}}});};var i=r.prototype;var s=function(t){Object.defineProperty(i,t,{get:function(){return this._anchorElement[t];},set:function(n){this._anchorElement[t]=n;},enumerable:true});};["hash","host","hostname","port","protocol"].forEach(function(e){s(e);});Object.defineProperty(i,"search",{get:function(){return this._anchorElement["search"];},set:function(t){this._anchorElement["search"]=t;this._updateSearchParams();},enumerable:true});Object.defineProperties(i,{toString:{get:function(){var t=this;return function(){return t.href;};}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"");},set:function(t){this._anchorElement.href=t;this._updateSearchParams();},enumerable:true},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/");},set:function(t){this._anchorElement.pathname=t;},enumerable:true},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol];var n=this._anchorElement.port!=t&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(n?":"+this._anchorElement.port:"");},enumerable:true},password:{get:function(){return"";},set:function(t){},enumerable:true},username:{get:function(){return"";},set:function(t){},enumerable:true}});r.createObjectURL=function(e){return n.createObjectURL.apply(n,arguments);};r.revokeObjectURL=function(e){return n.revokeObjectURL.apply(n,arguments);};e.URL=r;};if(!t()){n()}if(e.location!==void 0&&!("origin"in e.location)){var r=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"");};try{Object.defineProperty(e.location,"origin",{get:r,enumerable:true})}catch(i){setInterval(function(){e.location.origin=r();},100)}}})(typeof e!=="undefined"?e:typeof window!=="undefined"?window:typeof self!=="undefined"?self:e);var Ra=mn("isConcatSpreadable");var Ua=9007199254740991;var za="Maximum allowed index exceeded";var Wa=bi>=51||!i(function(){var e=[];e[Ra]=false;return e.concat()[0]!==e;});var Xa=Ei("concat");var Va=function(e){if(!y(e))return false;var t=e[Ra];return t!==undefined?!!t:zt(e);};var $a=!Wa||!Xa;qt({target:"Array",proto:true,forced:$a},{concat:function(t){var n=Wt(this);var r=kn(n,0);var i=0;var s,o,u,a,f;for(s=-1,u=arguments.length;sUa)throw TypeError(za);for(o=0;o=Ua)throw TypeError(za);hi(r,i++,f)}}r.length=i;return r;}});var Ja=On.filter;var Ka=Ei("filter");var Qa=Er("filter");qt({target:"Array",proto:true,forced:!Ka||!Qa},{filter:function(t){return Ja(this,t,arguments.length>1?arguments[1]:undefined);}});var Ga=On.find;var Ya="find";var Za=true;var ef=Er(Ya);if(Ya in[])Array(1)[Ya](function(){Za=false;});qt({target:"Array",proto:true,forced:Za||!ef},{find:function(t){return Ga(this,t,arguments.length>1?arguments[1]:undefined);}});Dr(Ya);var tf=mn("iterator");var nf=false;try{var rf=0;var sf={next:function(){return{done:!!(rf++)};},"return":function(){nf=true;}};sf[tf]=function(){return this;};Array.from(sf,function(){throw 2;})}catch(Ps){}var of=function(e,t){if(!t&&!nf)return false;var n=false;try{var r={};r[tf]=function(){return{next:function(){return{done:n=true};}};};e(r)}catch(i){}return n;};var uf=!of(function(e){Array.from(e);});qt({target:"Array",stat:true,forced:uf},{from:eo});var af=Et.includes;var ff=Er("indexOf",{ACCESSORS:true,1:0});qt({target:"Array",proto:true,forced:!ff},{includes:function(t){return af(this,t,arguments.length>1?arguments[1]:undefined);}});Dr("includes");var lf=On.map;var cf=Ei("map");var hf=Er("map");qt({target:"Array",proto:true,forced:!cf||!hf},{map:function(t){return lf(this,t,arguments.length>1?arguments[1]:undefined);}});var pf=function(e,t,n){var r,i;if(Qr&&typeof (r=t.constructor)=="function"&&r!==n&&y(i=r.prototype)&&i!==n.prototype)Qr(e,i);return e;};var df=" \n \f\r                 \u2028\u2029";var vf="["+df+"]";var mf=RegExp("^"+vf+vf+"*");var gf=RegExp(vf+vf+"*$");var yf=function(e){return function(t){var n=String(m(t));if(e&1)n=n.replace(mf,"");if(e&2)n=n.replace(gf,"");return n;};};var bf={start:yf(1),end:yf(2),trim:yf(3)};var wf=kt.f;var Ef=L.f;var Sf=_.f;var xf=bf.trim;var Tf="Number";var Nf=r[Tf];var Cf=Nf.prototype;var kf=p(on(Cf))==Tf;var Lf=function(e){var t=b(e,false);var n,r,i,s,o,u,a,f;if(typeof t=="string"&&t.length>2){t=xf(t);n=t.charCodeAt(0);if(n===43||n===45){r=t.charCodeAt(2);if(r===88||r===120)return NaN}else if(n===48){switch(t.charCodeAt(1)){case 66:case 98:i=2;s=49;break;case 79:case 111:i=8;s=55;break;default:return+t}o=t.slice(2);u=o.length;for(a=0;as)return NaN}return parseInt(o,i)}}return+t;};if(Ft(Tf,!Nf(" 0o1")||!Nf("0b1")||Nf("+0x1"))){var Af=function(t){var n=arguments.length<1?0:t;var r=this;return r instanceof Af&&(kf?i(function(){Cf.valueOf.call(r);}):p(r)!=Tf)?pf(new Nf(Lf(n)),r,Af):Lf(n);};for(var Of=s?wf(Nf):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),Mf=0,_f;Of.length>Mf;Mf++){if(E(Nf,_f=Of[Mf])&&!E(Af,_f)){Sf(Af,_f,Ef(Nf,_f))}}Af.prototype=Cf;Cf.constructor=Af;at(r,Tf,Af)}var Df=i(function(){Xt(1);});qt({target:"Object",stat:true,forced:Df},{keys:function(t){return Xt(Wt(t));}});var Pf=function(e){if(xs(e)){throw TypeError("The method doesn't accept regular expressions")}return e;};var Hf=mn("match");var Bf=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{t[Hf]=false;return"/./"[e](t)}catch(r){}}return false;};qt({target:"String",proto:true,forced:!Bf("includes")},{includes:function(t){return!!~String(m(this)).indexOf(Pf(t),arguments.length>1?arguments[1]:undefined);}});var jf=!i(function(){return Object.isExtensible(Object.preventExtensions({}));});var Ff=t(function(e){var t=_.f;var n=V("meta");var r=0;var i=Object.isExtensible||function(){return true;};var s=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}});};var o=function(e,t){if(!y(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!E(e,n)){if(!i(e))return"F";if(!t)return"E";s(e)}return e[n].objectID;};var u=function(e,t){if(!E(e,n)){if(!i(e))return true;if(!t)return false;s(e)}return e[n].weakData;};var a=function(e){if(jf&&f.REQUIRED&&i(e)&&!E(e,n))s(e);return e;};var f=e.exports={REQUIRED:false,fastKey:o,getWeakData:u,onFreeze:a};K[n]=true;});var If=Ff.REQUIRED;var qf=Ff.fastKey;var Rf=Ff.getWeakData;var Uf=Ff.onFreeze;var zf=t(function(e){var t=function(e,t){this.stopped=e;this.result=t;};var n=e.exports=function(e,n,r,i,s){var o=Nn(n,r,i?2:1);var u,a,f,l,c,h,p;if(s){u=e}else{a=Zs(e);if(typeof a!="function")throw TypeError("Target is not iterable");if(Gs(a)){for(f=0,l=mt(e.length);l>f;f++){c=i?o(A(p=e[f])[0],p[1]):o(e[f]);if(c&&c instanceof t)return c}return new t(false)}u=a.call(e)}h=u.next;while(!(p=h.call(u)).done){c=Js(u,o,p.value,i);if(typeof c=="object"&&c&&c instanceof t)return c}return new t(false);};n.stop=function(e){return new t(true,e);};});var Wf=function(e,t,n){var s=e.indexOf("Map")!==-1;var o=e.indexOf("Weak")!==-1;var u=s?"set":"add";var a=r[e];var f=a&&a.prototype;var l=a;var c={};var h=function(e){var t=f[e];at(f,e,e=="add"?function(n){t.call(this,n===0?0:n);return this;}:e=="delete"?function(e){return o&&!y(e)?false:t.call(this,e===0?0:e);}:e=="get"?function(n){return o&&!y(n)?undefined:t.call(this,n===0?0:n);}:e=="has"?function(n){return o&&!y(n)?false:t.call(this,n===0?0:n);}:function(n,r){t.call(this,n===0?0:n,r);return this;});};if(Ft(e,typeof a!="function"||!(o||f.forEach&&!i(function(){(new a).entries().next();})))){l=n.getConstructor(t,e,s,u);Ff.REQUIRED=true}else if(Ft(e,true)){var p=new l;var d=p[u](o?{}:-0,1)!=p;var v=i(function(){p.has(1);});var m=of(function(e){new a(e);});var g=!o&&i(function(){var e=new a;var t=5;while(t--)e[u](t,t);return!e.has(-0);});if(!m){l=t(function(t,n){Ws(t,l,e);var r=pf(new a,t,l);if(n!=undefined)zf(n,r[u],r,s);return r;});l.prototype=f;f.constructor=l}if(v||g){h("delete");h("has");s&&h("get")}if(g||d)h(u);if(o&&f.clear)delete f.clear}c[e]=l;qt({global:true,forced:l!=a},c);xn(l,e);if(!o)n.setStrong(l,e,s);return l;};var Xf=Ff.getWeakData;var Vf=ut.set;var $f=ut.getterFor;var Jf=On.find;var Kf=On.findIndex;var Qf=0;var Gf=function(e){return e.frozen||(e.frozen=new Yf);};var Yf=function(){this.entries=[];};var Zf=function(e,t){return Jf(e.entries,function(e){return e[0]===t;});};Yf.prototype={get:function(e){var t=Zf(this,e);if(t)return t[1];},has:function(e){return!!Zf(this,e);},set:function(e,t){var n=Zf(this,e);if(n)n[1]=t;else this.entries.push([e,t]);},"delete":function(e){var t=Kf(this.entries,function(t){return t[0]===e;});if(~t)this.entries.splice(t,1);return!!~t;}};var el={getConstructor:function(e,t,n,r){var i=e(function(e,s){Ws(e,i,t);Vf(e,{type:t,id:Qf++,frozen:undefined});if(s!=undefined)zf(s,e[r],e,n);});var s=$f(t);var o=function(e,t,n){var r=s(e);var i=Xf(A(t),true);if(i===true)Gf(r).set(t,n);else i[r.id]=n;return e;};So(i.prototype,{"delete":function(e){var t=s(this);if(!y(e))return false;var n=Xf(e);if(n===true)return Gf(t)["delete"](e);return n&&E(n,t.id)&&delete n[t.id];},has:function(t){var n=s(this);if(!y(t))return false;var r=Xf(t);if(r===true)return Gf(n).has(t);return r&&E(r,n.id);}});So(i.prototype,n?{get:function(t){var n=s(this);if(y(t)){var r=Xf(t);if(r===true)return Gf(n).get(t);return r?r[n.id]:undefined}},set:function(t,n){return o(this,t,n);}}:{add:function(t){return o(this,t,true);}});return i;}};var tl=t(function(e){var t=ut.enforce;var n=!r.ActiveXObject&&"ActiveXObject"in r;var i=Object.isExtensible;var s;var o=function(e){return function(){return e(this,arguments.length?arguments[0]:undefined);};};var u=e.exports=Wf("WeakMap",o,el);if(R&&n){s=el.getConstructor(o,"WeakMap",true);Ff.REQUIRED=true;var a=u.prototype;var f=a["delete"];var l=a.has;var c=a.get;var h=a.set;So(a,{"delete":function(e){if(y(e)&&!i(e)){var n=t(this);if(!n.frozen)n.frozen=new s;return f.call(this,e)||n.frozen["delete"](e)}return f.call(this,e);},has:function(n){if(y(n)&&!i(n)){var r=t(this);if(!r.frozen)r.frozen=new s;return l.call(this,n)||r.frozen.has(n)}return l.call(this,n);},get:function(n){if(y(n)&&!i(n)){var r=t(this);if(!r.frozen)r.frozen=new s;return l.call(this,n)?c.call(this,n):r.frozen.get(n)}return c.call(this,n);},set:function(n,r){if(y(n)&&!i(n)){var o=t(this);if(!o.frozen)o.frozen=new s;l.call(this,n)?h.call(this,n,r):o.frozen.set(n,r)}else h.call(this,n,r);return this;}})}});var nl=On.every;var rl=gr("every");var il=Er("every");qt({target:"Array",proto:true,forced:!rl||!il},{every:function(t){return nl(this,t,arguments.length>1?arguments[1]:undefined);}});qt({target:"Object",stat:true,forced:Object.assign!==$s},{assign:$s});var sl="​…᠎";var ol=function(e){return i(function(){return!!df[e]()||sl[e]()!=sl||df[e].name!==e;});};var ul=bf.trim;qt({target:"String",proto:true,forced:ol("trim")},{trim:function(){return ul(this);}});var al=On.some;var fl=gr("some");var ll=Er("some");qt({target:"Array",proto:true,forced:!fl||!ll},{some:function(t){return al(this,t,arguments.length>1?arguments[1]:undefined);}});var cl=function(e){if(typeof e!="number"&&p(e)!="Number"){throw TypeError("Incorrect invocation")}return+e;};var hl="".repeat||function(t){var n=String(m(this));var r="";var i=dt(t);if(i<0||i==Infinity)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(n+=n))if(i&1)r+=n;return r;};var pl=1..toFixed;var dl=Math.floor;var vl=function(e,t,n){return t===0?n:t%2===1?vl(e,t-1,n*e):vl(e*e,t/2,n);};var ml=function(e){var t=0;var n=e;while(n>=4096){t+=12;n/=4096}while(n>=2){t+=1;n/=2}return t;};var gl=pl&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!i(function(){pl.call({});});qt({target:"Number",proto:true,forced:gl},{toFixed:function(t){var n=cl(this);var r=dt(t);var i=[0,0,0,0,0,0];var s="";var o="0";var u,a,f,l;var c=function(e,t){var n=-1;var r=t;while(++n<6){r+=e*i[n];i[n]=r%1e7;r=dl(r/1e7)}};var h=function(e){var t=6;var n=0;while(--t>=0){n+=i[t];i[t]=dl(n/e);n=n%e*1e7}};var p=function(){var e=6;var t="";while(--e>=0){if(t!==""||e===0||i[e]!==0){var n=String(i[e]);t=t===""?n:t+hl.call("0",7-n.length)+n}}return t;};if(r<0||r>20)throw RangeError("Incorrect fraction digits");if(n!=n)return"NaN";if(n<=-1e21||n>=1e21)return String(n);if(n<0){s="-";n=-n}if(n>1e-21){u=ml(n*vl(2,69,1))-69;a=u<0?n*vl(2,-u,1):n/vl(2,u,1);a*=4503599627370496;u=52-u;if(u>0){c(0,a);f=r;while(f>=7){c(1e7,0);f-=7}c(vl(10,f,1),0);f=u-1;while(f>=23){h(1<<23);f-=23}h(1<0){l=o.length;o=s+(l<=r?"0."+hl.call("0",r-l)+o:o.slice(0,l-r)+"."+o.slice(l-r))}else{o=s+o}return o;}});var yl=l.f;var bl=function(e){return function(t){var n=g(t);var r=Xt(n);var i=r.length;var o=0;var u=[];var a;while(i>o){a=r[o++];if(!s||yl.call(n,a)){u.push(e?[a,n[a]]:n[a])}}return u;};};var wl={entries:bl(true),values:bl(false)};var El=wl.entries;qt({target:"Object",stat:true},{entries:function(t){return El(t);}});var Sl=wl.values;qt({target:"Object",stat:true},{values:function(t){return Sl(t);}});qt({target:"Number",stat:true},{isNaN:function(t){return t!=t;}});var xl=L.f;var Tl=i(function(){xl(1);});var Nl=!s||Tl;qt({target:"Object",stat:true,forced:Nl,sham:!s},{getOwnPropertyDescriptor:function(t,n){return xl(g(t),n);}});qt({target:"Object",stat:true,sham:!s},{getOwnPropertyDescriptors:function(t){var n=g(t);var r=L.f;var i=Ot(n);var s={};var o=0;var u,a;while(i.length>o){a=r(n,u=i[o++]);if(a!==undefined)hi(s,u,a)}return s;}});cs("match",1,function(e,t,n){return[function(n){var r=m(this);var i=n==undefined?undefined:n[e];return i!==undefined?i.call(n,r):(new RegExp(n))[e](String(r));},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=A(e);var s=String(this);if(!i.global)return ds(i,s);var o=i.unicode;i.lastIndex=0;var u=[];var a=0;var f;while((f=ds(i,s))!==null){var l=String(f[0]);u[a]=l;if(l==="")i.lastIndex=ps(s,mt(i.lastIndex),o);a++}return a===0?null:u;}];});var _l={addCSS:!0,thumbWidth:15,watch:!0};var Hl=function(t){return null!=t?t.constructor:null;},Bl=function(t,n){return!!(t&&n&&t instanceof n);},jl=function(t){return null==t;},Fl=function(t){return Hl(t)===Object;},Il=function(t){return Hl(t)===Number&&!Number.isNaN(t);},ql=function(t){return Hl(t)===String;},Rl=function(t){return Hl(t)===Boolean;},Ul=function(t){return Hl(t)===Function;},zl=function(t){return Array.isArray(t);},Wl=function(t){return Bl(t,NodeList);},Xl=function(t){return Bl(t,Element);},Vl=function(t){return Bl(t,Event);},$l=function(t){return jl(t)||(ql(t)||zl(t)||Wl(t))&&!t.length||Fl(t)&&!Object.keys(t).length;},Jl={nullOrUndefined:jl,object:Fl,number:Il,string:ql,"boolean":Rl,"function":Ul,array:zl,nodeList:Wl,element:Xl,event:Vl,empty:$l};var Gl=function(){function e(t,n){Cl(this,e),Jl.element(t)?this.element=t:Jl.string(t)&&(this.element=document.querySelector(t)),Jl.element(this.element)&&Jl.empty(this.element.rangeTouch)&&(this.config=Ml({},_l,{},n),this.init());}return Ll(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this);}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null);}},{key:"listeners",value:function(t){var n=this,r=t?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){n.element[r](e,function(e){return n.set(e);},!1);});}},{key:"get",value:function(n){if(!e.enabled||!Jl.event(n))return null;var r,i=n.target,s=n.changedTouches[0],o=parseFloat(i.getAttribute("min"))||0,u=parseFloat(i.getAttribute("max"))||100,a=parseFloat(i.getAttribute("step"))||1,f=i.getBoundingClientRect(),l=100/f.width*(this.config.thumbWidth/2)/100;return 0>(r=100/f.width*(s.clientX-f.left))?r=0:100r?r-=(100-2*r)*l:50r)n.push(arguments[r++]);fc[++ac]=function(){(typeof t=="function"?t:Function(t)).apply(undefined,n);};cc(ac);return ac;};ic=function(t){delete fc[t];};if(p(sc)=="process"){cc=function(e){sc.nextTick(vc(e));}}else if(uc&&uc.now){cc=function(e){uc.now(vc(e));}}else if(oc&&!tc){hc=new oc;pc=hc.port2;hc.port1.onmessage=mc;cc=Nn(pc.postMessage,pc,1)}else if(r.addEventListener&&typeof postMessage=="function"&&!r.importScripts&&!i(gc)&&nc.protocol!=="file:"){cc=gc;r.addEventListener("message",mc,false)}else if(lc in T("script")){cc=function(e){$t.appendChild(T("script"))[lc]=function(){$t.removeChild(this);dc(e);};}}else{cc=function(e){setTimeout(vc(e),0);}}}var yc={set:rc,clear:ic};var bc=L.f;var wc=yc.set;var Ec=r.MutationObserver||r.WebKitMutationObserver;var Sc=r.process;var xc=r.Promise;var Tc=p(Sc)=="process";var Nc=bc(r,"queueMicrotask");var Cc=Nc&&Nc.value;var kc,Lc,Ac,Oc,Mc,_c,Dc,Pc;if(!Cc){kc=function(){var e,t;if(Tc&&(e=Sc.domain))e.exit();while(Lc){t=Lc.fn;Lc=Lc.next;try{t()}catch(n){if(Lc)Oc();else Ac=undefined;throw n}}Ac=undefined;if(e)e.enter();};if(Tc){Oc=function(){Sc.nextTick(kc);}}else if(Ec&&!tc){Mc=true;_c=document.createTextNode("");(new Ec(kc)).observe(_c,{characterData:true});Oc=function(){_c.data=Mc=!Mc;}}else if(xc&&xc.resolve){Dc=xc.resolve(undefined);Pc=Dc.then;Oc=function(){Pc.call(Dc,kc);}}else{Oc=function(){wc.call(r,kc);}}}var Hc=Cc||function(e){var t={fn:e,next:undefined};if(Ac)Ac.next=t;if(!Lc){Lc=t;Oc()}Ac=t;};var Bc=function(e){var t,n;this.promise=new e(function(e,r){if(t!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");t=e;n=r;});this.resolve=Tn(t);this.reject=Tn(n);};var jc=function(e){return new Bc(e);};var Fc={f:jc};var Ic=function(e,t){A(e);if(y(t)&&t.constructor===e)return t;var n=Fc.f(e);var r=n.resolve;r(t);return n.promise;};var qc=function(e,t){var n=r.console;if(n&&n.error){arguments.length===1?n.error(e):n.error(e,t)}};var Rc=function(e){try{return{error:false,value:e()}}catch(t){return{error:true,value:t}}};var Uc=yc.set;var zc=mn("species");var Wc="Promise";var Xc=ut.get;var Vc=ut.set;var $c=ut.getterFor(Wc);var Jc=Yl;var Kc=r.TypeError;var Qc=r.document;var Gc=r.process;var Yc=ct("fetch");var Zc=Fc.f;var eh=Zc;var th=p(Gc)=="process";var nh=!!(Qc&&Qc.createEvent&&r.dispatchEvent);var rh="unhandledrejection";var ih="rejectionhandled";var sh=0;var oh=1;var uh=2;var ah=1;var fh=2;var lh,ch,hh,ph;var dh=Ft(Wc,function(){var e=I(Jc)!==String(Jc);if(!e){if(bi===66)return true;if(!th&&typeof PromiseRejectionEvent!="function")return true}if(bi>=51&&/native code/.test(Jc))return false;var t=Jc.resolve(1);var n=function(e){e(function(){},function(){});};var r=t.constructor={};r[zc]=n;return!(t.then(function(){})instanceof n);});var vh=dh||!of(function(e){Jc.all(e)["catch"](function(){});});var mh=function(e){var t;return y(e)&&typeof (t=e.then)=="function"?t:false;};var gh=function(e,t,n){if(t.notified)return;t.notified=true;var r=t.reactions;Hc(function(){var i=t.value;var s=t.state==oh;var o=0;while(r.length>o){var u=r[o++];var a=s?u.ok:u.fail;var f=u.resolve;var l=u.reject;var c=u.domain;var h,p,d;try{if(a){if(!s){if(t.rejection===fh)Eh(e,t);t.rejection=ah}if(a===true)h=i;else{if(c)c.enter();h=a(i);if(c){c.exit();d=true}}if(h===u.promise){l(Kc("Promise-chain cycle"))}else if(p=mh(h)){p.call(h,f,l)}else f(h)}else l(i)}catch(v){if(c&&!d)c.exit();l(v)}}t.reactions=[];t.notified=false;if(n&&!t.rejection)bh(e,t);});};var yh=function(e,t,n){var i,s;if(nh){i=Qc.createEvent("Event");i.promise=t;i.reason=n;i.initEvent(e,false,true);r.dispatchEvent(i)}else i={promise:t,reason:n};if(s=r["on"+e])s(i);else if(e===rh)qc("Unhandled promise rejection",n);};var bh=function(e,t){Uc.call(r,function(){var n=t.value;var r=wh(t);var i;if(r){i=Rc(function(){if(th){Gc.emit("unhandledRejection",n,e)}else yh(rh,e,n);});t.rejection=th||wh(t)?fh:ah;if(i.error)throw i.value}});};var wh=function(e){return e.rejection!==ah&&!e.parent;};var Eh=function(e,t){Uc.call(r,function(){if(th){Gc.emit("rejectionHandled",e)}else yh(ih,e,t.value);});};var Sh=function(e,t,n,r){return function(i){e(t,n,i,r);};};var xh=function(e,t,n,r){if(t.done)return;t.done=true;if(r)t=r;t.value=n;t.state=uh;gh(e,t,true);};var Th=function(e,t,n,r){if(t.done)return;t.done=true;if(r)t=r;try{if(e===n)throw Kc("Promise can't be resolved itself");var i=mh(n);if(i){Hc(function(){var r={done:false};try{i.call(n,Sh(Th,e,r,t),Sh(xh,e,r,t))}catch(s){xh(e,r,s,t)}})}else{t.value=n;t.state=oh;gh(e,t,false)}}catch(s){xh(e,{done:false},s,t)}};if(dh){Jc=function(t){Ws(this,Jc,Wc);Tn(t);lh.call(this);var n=Xc(this);try{t(Sh(Th,this,n),Sh(xh,this,n))}catch(r){xh(this,n,r)}};lh=function(t){Vc(this,{type:Wc,done:false,notified:false,parent:false,reactions:[],rejection:false,state:sh,value:undefined});};lh.prototype=So(Jc.prototype,{then:function(t,n){var r=$c(this);var i=Zc(Ns(this,Jc));i.ok=typeof t=="function"?t:true;i.fail=typeof n=="function"&&n;i.domain=th?Gc.domain:undefined;r.parent=true;r.reactions.push(i);if(r.state!=sh)gh(this,r,false);return i.promise;},"catch":function(e){return this.then(undefined,e);}});ch=function(){var e=new lh;var t=Xc(e);this.promise=e;this.resolve=Sh(Th,e,t);this.reject=Sh(xh,e,t);};Fc.f=Zc=function(e){return e===Jc||e===hh?new ch(e):eh(e);};if(typeof Yl=="function"){ph=Yl.prototype.then;at(Yl.prototype,"then",function(t,n){var r=this;return(new Jc(function(e,t){ph.call(r,e,t);})).then(t,n);},{unsafe:true});if(typeof Yc=="function")qt({global:true,enumerable:true,forced:true},{fetch:function(t){return Ic(Jc,Yc.apply(r,arguments));}})}}qt({global:true,wrap:true,forced:dh},{Promise:Jc});xn(Jc,Wc,false);ec(Wc);hh=ct(Wc);qt({target:Wc,stat:true,forced:dh},{reject:function(t){var n=Zc(this);n.reject.call(undefined,t);return n.promise;}});qt({target:Wc,stat:true,forced:dh},{resolve:function(t){return Ic(this,t);}});qt({target:Wc,stat:true,forced:vh},{all:function(t){var n=this;var r=Zc(n);var i=r.resolve;var s=r.reject;var o=Rc(function(){var e=Tn(n.resolve);var r=[];var o=0;var u=1;zf(t,function(t){var a=o++;var f=false;r.push(undefined);u++;e.call(n,t).then(function(e){if(f)return;f=true;r[a]=e;--u||i(r);},s);});--u||i(r);});if(o.error)s(o.value);return r.promise;},race:function(t){var n=this;var r=Zc(n);var i=r.reject;var s=Rc(function(){var e=Tn(n.resolve);zf(t,function(t){e.call(n,t).then(r.resolve,i);});});if(s.error)i(s.value);return r.promise;}});var Nh=L.f;var Ch="".startsWith;var kh=Math.min;var Lh=Bf("startsWith");var Ah=!Lh&&!!function(){var e=Nh(String.prototype,"startsWith");return e&&!e.writable;}();qt({target:"String",proto:true,forced:!Ah&&!Lh},{startsWith:function(t){var n=String(m(this));Pf(t);var r=mt(kh(arguments.length>1?arguments[1]:undefined,n.length));var i=String(t);return Ch?Ch.call(n,i,r):n.slice(r,r+i.length)===i;}});var Oh=function(t){return t!==null&&typeof t!=="undefined"?t.constructor:null;};var Mh=function(t,n){return Boolean(t&&n&&t instanceof n);};var _h=function(t){return t===null||typeof t==="undefined";};var Dh=function(t){return Oh(t)===Object;};var Ph=function(t){return Oh(t)===Number&&!Number.isNaN(t);};var Hh=function(t){return Oh(t)===String;};var Bh=function(t){return Oh(t)===Boolean;};var jh=function(t){return Oh(t)===Function;};var Fh=function(t){return Array.isArray(t);};var Ih=function(t){return Mh(t,WeakMap);};var qh=function(t){return Mh(t,NodeList);};var Rh=function(t){return Mh(t,Element);};var Uh=function(t){return Oh(t)===Text;};var zh=function(t){return Mh(t,Event);};var Wh=function(t){return Mh(t,KeyboardEvent);};var Xh=function(t){return Mh(t,window.TextTrackCue)||Mh(t,window.VTTCue);};var Vh=function(t){return Mh(t,TextTrack)||!_h(t)&&Hh(t.kind);};var $h=function(t){return Mh(t,Promise)&&jh(t.then);};var Jh=function(t){return _h(t)||(Hh(t)||Fh(t)||qh(t))&&!t.length||Dh(t)&&!Object.keys(t).length;};var Kh=function(t){if(Mh(t,window.URL)){return true}if(!Hh(t)){return false}var n=t;if(!t.startsWith("http://")||!t.startsWith("https://")){n="http://".concat(t)}try{return!Jh((new URL(n)).hostname)}catch(r){return false}};var Qh={nullOrUndefined:_h,object:Dh,number:Ph,string:Hh,"boolean":Bh,"function":jh,array:Fh,weakMap:Ih,nodeList:qh,element:Rh,textNode:Uh,event:zh,keyboardEvent:Wh,cue:Xh,track:Vh,promise:$h,url:Kh,empty:Jh};var Gh=function(){var e=document.createElement("span");var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};var n=Object.keys(t).find(function(t){return e.style[t]!==undefined;});return Qh.string(n)?t[n]:false;}();var Zh={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};var ep=function(e){return function(t,n,r,i){Tn(n);var s=Wt(t);var o=v(s);var u=mt(s.length);var a=e?u-1:0;var f=e?-1:1;if(r<2)while(true){if(a in o){i=o[a];a+=f;break}a+=f;if(e?a<0:u<=a){throw TypeError("Reduce of empty array with no initial value")}}for(;e?a>=0:u>a;a+=f)if(a in o){i=n(i,o[a],a,s)}return i;};};var tp={left:ep(false),right:ep(true)};var np=tp.left;var rp=gr("reduce");var ip=Er("reduce",{1:0});qt({target:"Array",proto:true,forced:!rp||!ip},{reduce:function(t){return np(this,t,arguments.length,arguments.length>1?arguments[1]:undefined);}});var Np={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"};var Cp={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(t,n,r){var i=Zh.isIPhone&&r&&Cp.playsinline;var s=Cp[t]||n!=="html5";var o=s&&Cp.rangeInput&&(t!=="video"||!Zh.isIPhone||i);return{api:s,ui:o};},pip:function(){if(Zh.isIPhone){return false}if(Qh.function(lp("video").webkitSetPresentationMode)){return true}if(document.pictureInPictureEnabled&&!lp("video").disablePictureInPicture){return true}return false;}(),airplay:Qh.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(t){if(Qh.empty(t)){return false}var n=t.split("/"),r=Ma(n,1),i=r[0];var s=t;if(!this.isHTML5||i!==this.type){return false}if(Object.keys(Np).includes(s)){s+='; codecs="'.concat(Np[t],'"')}try{return Boolean(s&&this.media.canPlayType(s).replace(/no/,""))}catch(o){return false}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");e.type="range";return e.type==="range";}(),touch:"ontouchstart"in document.documentElement,transitions:Gh!==false,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches};var kp=function(){var e=false;try{var t=Object.defineProperty({},"passive",{get:function(){e=true;return null;}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(n){}return e;}();var qp={getSources:function(){var t=this;if(!this.isHTML5){return[]}var n=Array.from(this.media.querySelectorAll("source"));return n.filter(function(e){var n=e.getAttribute("type");if(Qh.empty(n)){return true}return Cp.mime.call(t,n);});},getQualityOptions:function(){if(this.config.quality.forced){return this.config.quality.options}return qp.getSources.call(this).map(function(e){return Number(e.getAttribute("size"));}).filter(Boolean);},setup:function(){if(!this.isHTML5){return}var t=this;t.options.speed=t.config.speed.options;if(!Qh.empty(this.config.ratio)){Ip.call(t)}Object.defineProperty(t.media,"quality",{get:function(){var n=qp.getSources.call(t);var r=n.find(function(e){return e.getAttribute("src")===t.source;});return r&&Number(r.getAttribute("size"));},set:function(n){if(t.quality===n){return}if(t.config.quality.forced&&Qh.function(t.config.quality.onChange)){t.config.quality.onChange(n)}else{var r=qp.getSources.call(t);var i=r.find(function(e){return Number(e.getAttribute("size"))===n;});if(!i){return}var s=t.media,o=s.currentTime,u=s.paused,a=s.preload,f=s.readyState,l=s.playbackRate;t.media.src=i.getAttribute("src");if(a!=="none"||f){t.once("loadedmetadata",function(){t.speed=l;t.currentTime=o;if(!u){Hp(t.play())}});t.media.load()}}_p.call(t,t.media,"qualitychange",false,{quality:n});}});},cancelRequests:function(){if(!this.isHTML5){return}pp(qp.getSources.call(this));this.media.setAttribute("src",this.config.blankVideo);this.media.load();this.debug.log("Cancelled network requests");}};var zp=_.f;var Wp=kt.f;var Xp=ut.set;var Vp=mn("match");var $p=r.RegExp;var Jp=$p.prototype;var Kp=/a/g;var Qp=/a/g;var Gp=new $p(Kp)!==Kp;var Yp=Ii.UNSUPPORTED_Y;var Zp=s&&Ft("RegExp",!Gp||Yp||i(function(){Qp[Vp]=false;return $p(Kp)!=Kp||$p(Qp)==Qp||$p(Kp,"i")!="/a/i";}));if(Zp){var ed=function(t,n){var r=this instanceof ed;var i=xs(t);var s=n===undefined;var o;if(!r&&i&&t.constructor===ed&&s){return t}if(Gp){if(i&&!s)t=t.source}else if(t instanceof ed){if(s)n=Hi.call(t);t=t.source}if(Yp){o=!!n&&n.indexOf("y")>-1;if(o)n=n.replace(/y/g,"")}var u=pf(Gp?new $p(t,n):$p(t,n),r?this:Jp,ed);if(Yp&&o)Xp(u,{sticky:o});return u;};var td=function(e){e in ed||zp(ed,e,{configurable:true,get:function(){return $p[e];},set:function(t){$p[e]=t;}});};var nd=Wp($p);var rd=0;while(nd.length>rd)td(nd[rd++]);Jp.constructor=ed;ed.prototype=Jp;at(r,"RegExp",ed)}ec("RegExp");var ud=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t.replace(new RegExp(n.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),r.toString());};var ad=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";return t.toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();});};var pd={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"};var dd={get:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(Qh.empty(t)||Qh.empty(n)){return""}var r=op(n.i18n,t);if(Qh.empty(r)){if(Object.keys(pd).includes(t)){return pd[t]}return""}var i={"{seektime}":n.seekTime,"{title}":n.title};Object.entries(i).forEach(function(e){var t=Ma(e,2),n=t[0],i=t[1];r=ud(r,n,i);});return r;}};var vd=function(){function e(t){xa(this,e);this.enabled=t.config.storage.enabled;this.key=t.config.storage.key;}Na(e,[{key:"get",value:function(n){if(!e.supported||!this.enabled){return null}var r=window.localStorage.getItem(this.key);if(Qh.empty(r)){return null}var i=JSON.parse(r);return Qh.string(n)&&n.length?i[n]:i;}},{key:"set",value:function(n){if(!e.supported||!this.enabled){return}if(!Qh.object(n)){return}var r=this.get();if(Qh.empty(r)){r={}}up(r,n);window.localStorage.setItem(this.key,JSON.stringify(r));}}],[{key:"supported",get:function(){try{if(!("localStorage"in window)){return false}var t="___test";window.localStorage.setItem(t,t);window.localStorage.removeItem(t);return true}catch(n){return false}}}]);return e;}();var yd=Math.ceil;var bd=Math.floor;qt({target:"Math",stat:true},{trunc:function(t){return(t>0?bd:yd)(t);}});var wd=function(t){return Math.trunc(t/60/60%60,10);};var Ed=function(t){return Math.trunc(t/60%60,10);};var Sd=function(t){return Math.trunc(t%60,10);};var Td={getIconUrl:function(){var t=new URL(this.config.iconUrl,window.location);var n=t.host!==window.location.host||Zh.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n};},findElements:function(){try{this.elements.controls=xp.call(this,this.config.selectors.controls.wrapper);this.elements.buttons={play:Sp.call(this,this.config.selectors.buttons.play),pause:xp.call(this,this.config.selectors.buttons.pause),restart:xp.call(this,this.config.selectors.buttons.restart),rewind:xp.call(this,this.config.selectors.buttons.rewind),fastForward:xp.call(this,this.config.selectors.buttons.fastForward),mute:xp.call(this,this.config.selectors.buttons.mute),pip:xp.call(this,this.config.selectors.buttons.pip),airplay:xp.call(this,this.config.selectors.buttons.airplay),settings:xp.call(this,this.config.selectors.buttons.settings),captions:xp.call(this,this.config.selectors.buttons.captions),fullscreen:xp.call(this,this.config.selectors.buttons.fullscreen)};this.elements.progress=xp.call(this,this.config.selectors.progress);this.elements.inputs={seek:xp.call(this,this.config.selectors.inputs.seek),volume:xp.call(this,this.config.selectors.inputs.volume)};this.elements.display={buffer:xp.call(this,this.config.selectors.display.buffer),currentTime:xp.call(this,this.config.selectors.display.currentTime),duration:xp.call(this,this.config.selectors.display.duration)};if(Qh.element(this.elements.progress)){this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))}return true}catch(t){this.debug.warn("It looks like there is a problem with your custom controls HTML",t);this.toggleNativeControls(true);return false}},createIcon:function(t,n){var r="http://www.w3.org/2000/svg";var i=Td.getIconUrl.call(this);var s="".concat(!i.cors?i.url:"","#").concat(this.config.iconPrefix);var o=document.createElementNS(r,"svg");fp(o,up(n,{"aria-hidden":"true",focusable:"false"}));var u=document.createElementNS(r,"use");var a="".concat(s,"-").concat(t);if("href"in u){u.setAttributeNS("http://www.w3.org/1999/xlink","href",a)}u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);o.appendChild(u);return o;},createLabel:function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=dd.get(t,this.config);var i=La(La({},n),{},{"class":[n.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return lp("span",i,r);},createBadge:function(t){if(Qh.empty(t)){return null}var n=lp("span",{"class":this.config.classNames.menu.value});n.appendChild(lp("span",{"class":this.config.classNames.menu.badge},t));return n;},createButton:function(t,n){var r=this;var i=up({},n);var s=ld(t);var o={element:"button",toggle:false,label:null,icon:null,labelPressed:null,iconPressed:null};["element","icon","label"].forEach(function(e){if(Object.keys(i).includes(e)){o[e]=i[e];delete i[e]}});if(o.element==="button"&&!Object.keys(i).includes("type")){i.type="button"}if(Object.keys(i).includes("class")){if(!i.class.split(" ").some(function(e){return e===r.config.classNames.control;})){up(i,{"class":"".concat(i.class," ").concat(this.config.classNames.control)})}}else{i.class=this.config.classNames.control}switch(t){case"play":o.toggle=true;o.label="play";o.labelPressed="pause";o.icon="play";o.iconPressed="pause";break;case"mute":o.toggle=true;o.label="mute";o.labelPressed="unmute";o.icon="volume";o.iconPressed="muted";break;case"captions":o.toggle=true;o.label="enableCaptions";o.labelPressed="disableCaptions";o.icon="captions-off";o.iconPressed="captions-on";break;case"fullscreen":o.toggle=true;o.label="enterFullscreen";o.labelPressed="exitFullscreen";o.icon="enter-fullscreen";o.iconPressed="exit-fullscreen";break;case"play-large":i.class+=" ".concat(this.config.classNames.control,"--overlaid");s="play";o.label="play";o.icon="play";break;default:if(Qh.empty(o.label)){o.label=s}if(Qh.empty(o.icon)){o.icon=t}}var u=lp(o.element);if(o.toggle){u.appendChild(Td.createIcon.call(this,o.iconPressed,{"class":"icon--pressed"}));u.appendChild(Td.createIcon.call(this,o.icon,{"class":"icon--not-pressed"}));u.appendChild(Td.createLabel.call(this,o.labelPressed,{"class":"label--pressed"}));u.appendChild(Td.createLabel.call(this,o.label,{"class":"label--not-pressed"}))}else{u.appendChild(Td.createIcon.call(this,o.icon));u.appendChild(Td.createLabel.call(this,o.label))}up(i,mp(this.config.selectors.buttons[s],i));fp(u,i);if(s==="play"){if(!Qh.array(this.elements.buttons[s])){this.elements.buttons[s]=[]}this.elements.buttons[s].push(u)}else{this.elements.buttons[s]=u}return u;},createRange:function(t,n){var r=lp("input",up(mp(this.config.selectors.inputs[t]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":dd.get(t,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},n));this.elements.inputs[t]=r;Td.updateRangeFill.call(this,r);Gl.setup(r);return r;},createProgress:function(t,n){var r=lp("progress",up(mp(this.config.selectors.display[t]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":true},n));if(t!=="volume"){r.appendChild(lp("span",null,"0"));var i={played:"played",buffer:"buffered"}[t];var s=i?dd.get(i,this.config):"";r.innerText="% ".concat(s.toLowerCase())}this.elements.display[t]=r;return r;},createTime:function(t,n){var r=mp(this.config.selectors.display[t],n);var i=lp("div",up(r,{"class":"".concat(r.class?r.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":dd.get(t,this.config)}),"00:00");this.elements.display[t]=i;return i;},bindMenuItemShortcuts:function(t,n){var r=this;Ap.call(this,t,"keydown keyup",function(e){if(![32,38,39,40].includes(e.which)){return}e.preventDefault();e.stopPropagation();if(e.type==="keydown"){return}var i=wp(t,'[role="menuitemradio"]');if(!i&&[32,39].includes(e.which)){Td.showMenuPanel.call(r,n,true)}else{var s;if(e.which!==32){if(e.which===40||i&&e.which===39){s=t.nextElementSibling;if(!Qh.element(s)){s=t.parentNode.firstElementChild}}else{s=t.previousElementSibling;if(!Qh.element(s)){s=t.parentNode.lastElementChild}}Tp.call(r,s,true)}}},false);Ap.call(this,t,"keyup",function(e){if(e.which!==13){return}Td.focusFirstMenuItem.call(r,null,true);});},createMenuItem:function(t){var n=this;var r=t.value,i=t.list,s=t.type,o=t.title,u=t.badge,a=u===void 0?null:u,f=t.checked,l=f===void 0?false:f;var c=mp(this.config.selectors.inputs[s]);var h=lp("button",up(c,{type:"button",role:"menuitemradio","class":"".concat(this.config.classNames.control," ").concat(c.class?c.class:"").trim(),"aria-checked":l,value:r}));var p=lp("span");p.innerHTML=o;if(Qh.element(a)){p.appendChild(a)}h.appendChild(p);Object.defineProperty(h,"checked",{enumerable:true,get:function(){return h.getAttribute("aria-checked")==="true";},set:function(t){if(t){Array.from(h.parentNode.children).filter(function(e){return wp(e,'[role="menuitemradio"]');}).forEach(function(e){return e.setAttribute("aria-checked","false");})}h.setAttribute("aria-checked",t?"true":"false");}});this.listeners.bind(h,"click keyup",function(e){if(Qh.keyboardEvent(e)&&e.which!==32){return}e.preventDefault();e.stopPropagation();h.checked=true;switch(s){case"language":n.currentTrack=Number(r);break;case"quality":n.quality=r;break;case"speed":n.speed=parseFloat(r);break}Td.showMenuPanel.call(n,"home",Qh.keyboardEvent(e));},s,false);Td.bindMenuItemShortcuts.call(this,h,s);i.appendChild(h);},formatTime:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!Qh.number(t)){return t}var r=wd(this.duration)>0;return xd(t,r,n);},updateTimeDisplay:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(!Qh.element(t)||!Qh.number(n)){return}t.innerText=Td.formatTime(n,r);},updateVolume:function(){if(!this.supported.ui){return}if(Qh.element(this.elements.inputs.volume)){Td.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume)}if(Qh.element(this.elements.buttons.mute)){this.elements.buttons.mute.pressed=this.muted||this.volume===0}},setRange:function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(!Qh.element(t)){return}t.value=n;Td.updateRangeFill.call(this,t);},updateProgress:function(t){var n=this;if(!this.supported.ui||!Qh.event(t)){return}var r=0;var i=function(t,r){var i=Qh.number(r)?r:0;var s=Qh.element(t)?t:n.elements.display.buffer;if(Qh.element(s)){s.value=i;var o=s.getElementsByTagName("span")[0];if(Qh.element(o)){o.childNodes[0].nodeValue=i}}};if(t){switch(t.type){case"timeupdate":case"seeking":case"seeked":r=od(this.currentTime,this.duration);if(t.type==="timeupdate"){Td.setRange.call(this,this.elements.inputs.seek,r)}break;case"playing":case"progress":i(this.elements.display.buffer,this.buffered*100);break}}},updateRangeFill:function(t){var n=Qh.event(t)?t.target:t;if(!Qh.element(n)||n.getAttribute("type")!=="range"){return}if(wp(n,this.config.selectors.inputs.seek)){n.setAttribute("aria-valuenow",this.currentTime);var r=Td.formatTime(this.currentTime);var i=Td.formatTime(this.duration);var s=dd.get("seekLabel",this.config);n.setAttribute("aria-valuetext",s.replace("{currentTime}",r).replace("{duration}",i))}else if(wp(n,this.config.selectors.inputs.volume)){var o=n.value*100;n.setAttribute("aria-valuenow",o);n.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else{n.setAttribute("aria-valuenow",n.value)}if(!Zh.isWebkit){return}n.style.setProperty("--value","".concat(n.value/n.max*100,"%"));},updateSeekTooltip:function(t){var n=this;if(!this.config.tooltips.seek||!Qh.element(this.elements.inputs.seek)||!Qh.element(this.elements.display.seekTooltip)||this.duration===0){return}var r="".concat(this.config.classNames.tooltip,"--visible");var i=function(t){return yp(n.elements.display.seekTooltip,r,t);};if(this.touch){i(false);return}var s=0;var o=this.elements.progress.getBoundingClientRect();if(Qh.event(t)){s=100/o.width*(t.pageX-o.left)}else if(bp(this.elements.display.seekTooltip,r)){s=parseFloat(this.elements.display.seekTooltip.style.left,10)}else{return}if(s<0){s=0}else if(s>100){s=100}Td.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s);this.elements.display.seekTooltip.style.left="".concat(s,"%");if(Qh.event(t)&&["mouseenter","mouseleave"].includes(t.type)){i(t.type==="mouseenter")}},timeUpdate:function(t){var n=!Qh.element(this.elements.display.duration)&&this.config.invertTime;Td.updateTimeDisplay.call(this,this.elements.display.currentTime,n?this.duration-this.currentTime:this.currentTime,n);if(t&&t.type==="timeupdate"&&this.media.seeking){return}Td.updateProgress.call(this,t);},durationUpdate:function(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime){return}if(this.duration>=Math.pow(2,32)){gp(this.elements.display.currentTime,true);gp(this.elements.progress,true);return}if(Qh.element(this.elements.inputs.seek)){this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration)}var t=Qh.element(this.elements.display.duration);if(!t&&this.config.displayDuration&&this.paused){Td.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration)}if(t){Td.updateTimeDisplay.call(this,this.elements.display.duration,this.duration)}Td.updateSeekTooltip.call(this);},toggleMenuButton:function(t,n){gp(this.elements.settings.buttons[t],!n);},updateSetting:function(t,n,r){var i=this.elements.settings.panels[t];var s=null;var o=n;if(t==="captions"){s=this.currentTrack}else{s=!Qh.empty(r)?r:this[t];if(Qh.empty(s)){s=this.config[t].default}if(!Qh.empty(this.options[t])&&!this.options[t].includes(s)){this.debug.warn("Unsupported value of '".concat(s,"' for ").concat(t));return}if(!this.config[t].options.includes(s)){this.debug.warn("Disabled value of '".concat(s,"' for ").concat(t));return}}if(!Qh.element(o)){o=i&&i.querySelector('[role="menu"]')}if(!Qh.element(o)){return}var u=this.elements.settings.buttons[t].querySelector(".".concat(this.config.classNames.menu.value));u.innerHTML=Td.getLabel.call(this,t,s);var a=o&&o.querySelector('[value="'.concat(s,'"]'));if(Qh.element(a)){a.checked=true}},getLabel:function(t,n){switch(t){case"speed":return n===1?dd.get("normal",this.config):"".concat(n,"×");case"quality":if(Qh.number(n)){var r=dd.get("qualityLabel.".concat(n),this.config);if(!r.length){return"".concat(n,"p")}return r}return ad(n);case"captions":return kd.getLabel.call(this);default:return null}},setQualityMenu:function(t){var n=this;if(!Qh.element(this.elements.settings.panels.quality)){return}var r="quality";var i=this.elements.settings.panels.quality.querySelector('[role="menu"]');if(Qh.array(t)){this.options.quality=Rp(t).filter(function(e){return n.config.quality.options.includes(e);})}var s=!Qh.empty(this.options.quality)&&this.options.quality.length>1;Td.toggleMenuButton.call(this,r,s);dp(i);Td.checkMenu.call(this);if(!s){return}var o=function(t){var r=dd.get("qualityBadge.".concat(t),n.config);if(!r.length){return null}return Td.createBadge.call(n,r);};this.options.quality.sort(function(e,t){var r=n.config.quality.options;return r.indexOf(e)>r.indexOf(t)?1:-1;}).forEach(function(e){Td.createMenuItem.call(n,{value:e,list:i,type:r,title:Td.getLabel.call(n,"quality",e),badge:o(e)});});Td.updateSetting.call(this,r,i);},setCaptionsMenu:function(){var t=this;if(!Qh.element(this.elements.settings.panels.captions)){return}var n="captions";var r=this.elements.settings.panels.captions.querySelector('[role="menu"]');var i=kd.getTracks.call(this);var s=Boolean(i.length);Td.toggleMenuButton.call(this,n,s);dp(r);Td.checkMenu.call(this);if(!s){return}var o=i.map(function(e,n){return{value:n,checked:t.captions.toggled&&t.currentTrack===n,title:kd.getLabel.call(t,e),badge:e.language&&Td.createBadge.call(t,e.language.toUpperCase()),list:r,type:"language"};});o.unshift({value:-1,checked:!this.captions.toggled,title:dd.get("disabled",this.config),list:r,type:"language"});o.forEach(Td.createMenuItem.bind(this));Td.updateSetting.call(this,n,r);},setSpeedMenu:function(){var t=this;if(!Qh.element(this.elements.settings.panels.speed)){return}var n="speed";var r=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(function(e){return e>=t.minimumSpeed&&e<=t.maximumSpeed;});var i=!Qh.empty(this.options.speed)&&this.options.speed.length>1;Td.toggleMenuButton.call(this,n,i);dp(r);Td.checkMenu.call(this);if(!i){return}this.options.speed.forEach(function(e){Td.createMenuItem.call(t,{value:e,list:r,type:n,title:Td.getLabel.call(t,"speed",e)});});Td.updateSetting.call(this,n,r);},checkMenu:function(){var t=this.elements.settings.buttons;var n=!Qh.empty(t)&&Object.values(t).some(function(e){return!e.hidden;});gp(this.elements.settings.menu,!n);},focusFirstMenuItem:function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.elements.settings.popup.hidden){return}var r=t;if(!Qh.element(r)){r=Object.values(this.elements.settings.panels).find(function(e){return!e.hidden;})}var i=r.querySelector('[role^="menuitem"]');Tp.call(this,i,n);},toggleMenu:function(t){var n=this.elements.settings.popup;var r=this.elements.buttons.settings;if(!Qh.element(n)||!Qh.element(r)){return}var i=n.hidden;var s=i;if(Qh.boolean(t)){s=t}else if(Qh.keyboardEvent(t)&&t.which===27){s=false}else if(Qh.event(t)){var o=Qh.function(t.composedPath)?t.composedPath()[0]:t.target;var u=n.contains(o);if(u||!u&&t.target!==r&&s){return}}r.setAttribute("aria-expanded",s);gp(n,!s);yp(this.elements.container,this.config.classNames.menu.open,s);if(s&&Qh.keyboardEvent(t)){Td.focusFirstMenuItem.call(this,null,true)}else if(!s&&!i){Tp.call(this,r,Qh.keyboardEvent(t))}},getMenuSize:function(t){var n=t.cloneNode(true);n.style.position="absolute";n.style.opacity=0;n.removeAttribute("hidden");t.parentNode.appendChild(n);var r=n.scrollWidth;var i=n.scrollHeight;pp(n);return{width:r,height:i};},showMenuPanel:function(){var t=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(n));if(!Qh.element(i)){return}var s=i.parentNode;var o=Array.from(s.children).find(function(e){return!e.hidden;});if(Cp.transitions&&!Cp.reducedMotion){s.style.width="".concat(o.scrollWidth,"px");s.style.height="".concat(o.scrollHeight,"px");var u=Td.getMenuSize.call(this,i);var a=function f(e){if(e.target!==s||!["width","height"].includes(e.propertyName)){return}s.style.width="";s.style.height="";Op.call(t,s,Gh,f);};Ap.call(this,s,Gh,a);s.style.width="".concat(u.width,"px");s.style.height="".concat(u.height,"px")}gp(o,true);gp(i,false);Td.focusFirstMenuItem.call(this,i,r);},setDownloadUrl:function(){var t=this.elements.buttons.download;if(!Qh.element(t)){return}t.setAttribute("href",this.download);},create:function(t){var n=this;var r=Td.bindMenuItemShortcuts,i=Td.createButton,s=Td.createProgress,o=Td.createRange,u=Td.createTime,a=Td.setQualityMenu,f=Td.setSpeedMenu,l=Td.showMenuPanel;this.elements.controls=null;if(Qh.array(this.config.controls)&&this.config.controls.includes("play-large")){this.elements.container.appendChild(i.call(this,"play-large"))}var c=lp("div",mp(this.config.selectors.controls.wrapper));this.elements.controls=c;var h={"class":"plyr__controls__item"};Rp(Qh.array(this.config.controls)?this.config.controls:[]).forEach(function(e){if(e==="restart"){c.appendChild(i.call(n,"restart",h))}if(e==="rewind"){c.appendChild(i.call(n,"rewind",h))}if(e==="play"){c.appendChild(i.call(n,"play",h))}if(e==="fast-forward"){c.appendChild(i.call(n,"fast-forward",h))}if(e==="progress"){var a=lp("div",{"class":"".concat(h.class," plyr__progress__container")});var f=lp("div",mp(n.config.selectors.progress));f.appendChild(o.call(n,"seek",{id:"plyr-seek-".concat(t.id)}));f.appendChild(s.call(n,"buffer"));if(n.config.tooltips.seek){var p=lp("span",{"class":n.config.classNames.tooltip},"00:00");f.appendChild(p);n.elements.display.seekTooltip=p}n.elements.progress=f;a.appendChild(n.elements.progress);c.appendChild(a)}if(e==="current-time"){c.appendChild(u.call(n,"currentTime",h))}if(e==="duration"){c.appendChild(u.call(n,"duration",h))}if(e==="mute"||e==="volume"){var d=n.elements.volume;if(!Qh.element(d)||!c.contains(d)){d=lp("div",up({},h,{"class":"".concat(h.class," plyr__volume").trim()}));n.elements.volume=d;c.appendChild(d)}if(e==="mute"){d.appendChild(i.call(n,"mute"))}if(e==="volume"&&!Zh.isIos){var v={max:1,step:.05,value:n.config.volume};d.appendChild(o.call(n,"volume",up(v,{id:"plyr-volume-".concat(t.id)})))}}if(e==="captions"){c.appendChild(i.call(n,"captions",h))}if(e==="settings"&&!Qh.empty(n.config.settings)){var m=lp("div",up({},h,{"class":"".concat(h.class," plyr__menu").trim(),hidden:""}));m.appendChild(i.call(n,"settings",{"aria-haspopup":true,"aria-controls":"plyr-settings-".concat(t.id),"aria-expanded":false}));var g=lp("div",{"class":"plyr__menu__container",id:"plyr-settings-".concat(t.id),hidden:""});var y=lp("div");var b=lp("div",{id:"plyr-settings-".concat(t.id,"-home")});var w=lp("div",{role:"menu"});b.appendChild(w);y.appendChild(b);n.elements.settings.panels.home=b;n.config.settings.forEach(function(e){var i=lp("button",up(mp(n.config.selectors.buttons.settings),{type:"button","class":"".concat(n.config.classNames.control," ").concat(n.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":true,hidden:""}));r.call(n,i,e);Ap.call(n,i,"click",function(){l.call(n,e,false);});var s=lp("span",null,dd.get(e,n.config));var o=lp("span",{"class":n.config.classNames.menu.value});o.innerHTML=t[e];s.appendChild(o);i.appendChild(s);w.appendChild(i);var u=lp("div",{id:"plyr-settings-".concat(t.id,"-").concat(e),hidden:""});var a=lp("button",{type:"button","class":"".concat(n.config.classNames.control," ").concat(n.config.classNames.control,"--back")});a.appendChild(lp("span",{"aria-hidden":true},dd.get(e,n.config)));a.appendChild(lp("span",{"class":n.config.classNames.hidden},dd.get("menuBack",n.config)));Ap.call(n,u,"keydown",function(e){if(e.which!==37){return}e.preventDefault();e.stopPropagation();l.call(n,"home",true);},false);Ap.call(n,a,"click",function(){l.call(n,"home",false);});u.appendChild(a);u.appendChild(lp("div",{role:"menu"}));y.appendChild(u);n.elements.settings.buttons[e]=i;n.elements.settings.panels[e]=u;});g.appendChild(y);m.appendChild(g);c.appendChild(m);n.elements.settings.popup=g;n.elements.settings.menu=m}if(e==="pip"&&Cp.pip){c.appendChild(i.call(n,"pip",h))}if(e==="airplay"&&Cp.airplay){c.appendChild(i.call(n,"airplay",h))}if(e==="download"){var E=up({},h,{element:"a",href:n.download,target:"_blank"});if(n.isHTML5){E.download=""}var S=n.config.urls.download;if(!Qh.url(S)&&n.isEmbed){up(E,{icon:"logo-".concat(n.provider),label:n.provider})}c.appendChild(i.call(n,"download",E))}if(e==="fullscreen"){c.appendChild(i.call(n,"fullscreen",h))}});if(this.isHTML5){a.call(this,qp.getQualityOptions.call(this))}f.call(this);return c;},inject:function(){var t=this;if(this.config.loadSprite){var n=Td.getIconUrl.call(this);if(n.cors){gd(n.url,"sprite-plyr")}}this.id=Math.floor(Math.random()*1e4);var r=null;this.elements.controls=null;var i={id:this.id,seektime:this.config.seekTime,title:this.config.title};var s=true;if(Qh.function(this.config.controls)){this.config.controls=this.config.controls.call(this,i)}if(!this.config.controls){this.config.controls=[]}if(Qh.element(this.config.controls)||Qh.string(this.config.controls)){r=this.config.controls}else{r=Td.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:kd.getLabel.call(this)});s=false}var o=function(t){var n=t;Object.entries(i).forEach(function(e){var t=Ma(e,2),r=t[0],i=t[1];n=ud(n,"{".concat(r,"}"),i);});return n;};if(s){if(Qh.string(this.config.controls)){r=o(r)}}var u;if(Qh.string(this.config.selectors.controls.container)){u=document.querySelector(this.config.selectors.controls.container)}if(!Qh.element(u)){u=this.elements.container}var a=Qh.element(r)?"insertAdjacentElement":"insertAdjacentHTML";u[a]("afterbegin",r);if(!Qh.element(this.elements.controls)){Td.findElements.call(this)}if(!Qh.empty(this.elements.buttons)){var f=function(n){var r=t.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:true,get:function(){return bp(n,r);},set:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;yp(n,r,t);}});};Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){if(Qh.array(e)||Qh.nodeList(e)){Array.from(e).filter(Boolean).forEach(f)}else{f(e)}})}if(Zh.isEdge){Yh(u)}if(this.config.tooltips.controls){var l=this.config,c=l.classNames,h=l.selectors;var p="".concat(h.controls.wrapper," ").concat(h.labels," .").concat(c.hidden);var d=Sp.call(this,p);Array.from(d).forEach(function(e){yp(e,t.config.classNames.hidden,false);yp(e,t.config.classNames.tooltip,true);})}}};var kd={setup:function(){if(!this.supported.ui){return}if(!this.isVideo||this.isYouTube||this.isHTML5&&!Cp.textTracks){if(Qh.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")){Td.setCaptionsMenu.call(this)}return}if(!Qh.element(this.elements.captions)){this.elements.captions=lp("div",mp(this.config.selectors.captions));cp(this.elements.captions,this.elements.wrapper)}if(Zh.isIE&&window.URL){var t=this.media.querySelectorAll("track");Array.from(t).forEach(function(e){var t=e.getAttribute("src");var n=Nd(t);if(n!==null&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)){md(t,"blob").then(function(t){e.setAttribute("src",window.URL.createObjectURL(t));}).catch(function(){pp(e);})}})}var n=navigator.languages||[navigator.language||navigator.userLanguage||"en"];var r=Rp(n.map(function(e){return e.split("-")[0];}));var i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();if(i==="auto"){var s=Ma(r,1);i=s[0]}var o=this.storage.get("captions");if(!Qh.boolean(o)){o=this.config.captions.active}Object.assign(this.captions,{toggled:false,active:o,language:i,languages:r});if(this.isHTML5){var u=this.config.captions.update?"addtrack removetrack":"removetrack";Ap.call(this,this.media.textTracks,u,kd.update.bind(this))}setTimeout(kd.update.bind(this),0);},update:function(){var t=this;var n=kd.getTracks.call(this,true);var r=this.captions,i=r.active,s=r.language,o=r.meta,u=r.currentTrackNode;var a=Boolean(n.find(function(e){return e.language===s;}));if(this.isHTML5&&this.isVideo){n.filter(function(e){return!o.get(e);}).forEach(function(e){t.debug.log("Track added",e);o.set(e,{"default":e.mode==="showing"});if(e.mode==="showing"){e.mode="hidden"}Ap.call(t,e,"cuechange",function(){return kd.updateCues.call(t);});})}if(a&&this.language!==s||!n.includes(u)){kd.setLanguage.call(this,s);kd.toggle.call(this,i&&a)}yp(this.elements.container,this.config.classNames.captions.enabled,!Qh.empty(n));if(Qh.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")){Td.setCaptionsMenu.call(this)}},toggle:function(t){var n=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!this.supported.ui){return}var i=this.captions.toggled;var s=this.config.classNames.captions.active;var o=Qh.nullOrUndefined(t)?!i:t;if(o!==i){if(!r){this.captions.active=o;this.storage.set({captions:o})}if(!this.language&&o&&!r){var u=kd.getTracks.call(this);var a=kd.findTrack.call(this,[this.captions.language].concat(_a(this.captions.languages)),true);this.captions.language=a.language;kd.set.call(this,u.indexOf(a));return}if(this.elements.buttons.captions){this.elements.buttons.captions.pressed=o}yp(this.elements.container,s,o);this.captions.toggled=o;Td.updateSetting.call(this,"captions");_p.call(this,this.media,o?"captionsenabled":"captionsdisabled")}setTimeout(function(){if(o&&n.captions.toggled){n.captions.currentTrackNode.mode="hidden"}});},set:function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var r=kd.getTracks.call(this);if(t===-1){kd.toggle.call(this,false,n);return}if(!Qh.number(t)){this.debug.warn("Invalid caption argument",t);return}if(!(t in r)){this.debug.warn("Track not found",t);return}if(this.captions.currentTrack!==t){this.captions.currentTrack=t;var i=r[t];var s=i||{},o=s.language;this.captions.currentTrackNode=i;Td.updateSetting.call(this,"captions");if(!n){this.captions.language=o;this.storage.set({language:o})}if(this.isVimeo){this.embed.enableTextTrack(o)}_p.call(this,this.media,"languagechange")}kd.toggle.call(this,true,n);if(this.isHTML5&&this.isVideo){kd.updateCues.call(this)}},setLanguage:function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(!Qh.string(t)){this.debug.warn("Invalid language argument",t);return}var r=t.toLowerCase();this.captions.language=r;var i=kd.getTracks.call(this);var s=kd.findTrack.call(this,[r]);kd.set.call(this,i.indexOf(s),n);},getTracks:function(){var t=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var r=Array.from((this.media||{}).textTracks||[]);return r.filter(function(e){return!t.isHTML5||n||t.captions.meta.has(e);}).filter(function(e){return["captions","subtitles"].includes(e.kind);});},findTrack:function(t){var n=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=kd.getTracks.call(this);var s=function(t){return Number((n.captions.meta.get(t)||{}).default);};var o=Array.from(i).sort(function(e,t){return s(t)-s(e);});var u;t.every(function(e){u=o.find(function(t){return t.language===e;});return!u;});return u||(r?o[0]:undefined);},getCurrentTrack:function(){return kd.getTracks.call(this)[this.currentTrack];},getLabel:function(t){var n=t;if(!Qh.track(n)&&Cp.textTracks&&this.captions.toggled){n=kd.getCurrentTrack.call(this)}if(Qh.track(n)){if(!Qh.empty(n.label)){return n.label}if(!Qh.empty(n.language)){return t.language.toUpperCase()}return dd.get("enabled",this.config)}return dd.get("disabled",this.config);},updateCues:function(t){if(!this.supported.ui){return}if(!Qh.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!Qh.nullOrUndefined(t)&&!Array.isArray(t)){this.debug.warn("updateCues: Invalid input",t);return}var n=t;if(!n){var r=kd.getCurrentTrack.call(this);n=Array.from((r||{}).activeCues||[]).map(function(e){return e.getCueAsHTML();}).map(hd)}var i=n.map(function(e){return e.trim();}).join("\n");var s=i!==this.elements.captions.innerHTML;if(s){dp(this.elements.captions);var o=lp("span",mp(this.config.selectors.caption));o.innerHTML=i;this.elements.captions.appendChild(o);_p.call(this,this.media,"cuechange")}}};var Ld={enabled:true,title:"",debug:false,autoplay:false,autopause:true,playsinline:true,seekTime:10,volume:1,muted:false,duration:null,displayDuration:true,invertTime:true,toggleInvert:true,ratio:null,clickToPlay:true,hideControls:true,resetOnEnd:false,disableContextMenu:true,loadSprite:true,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{"default":576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:false,onChange:null},loop:{active:false},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:true,global:false},tooltips:{controls:false,seek:true},captions:{active:false,language:"auto",update:false},fullscreen:{enabled:true,fallback:true,iosNative:false},storage:{enabled:true,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:false,publisherId:"",tagUrl:""},previewThumbnails:{enabled:false,src:""},vimeo:{byline:false,portrait:false,title:false,speed:true,transparent:false,premium:false,referrerPolicy:null},youtube:{noCookie:true,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}};var Ad={active:"picture-in-picture",inactive:"inline"};var Od={html5:"html5",youtube:"youtube",vimeo:"vimeo"};var Md={audio:"audio",video:"video"};var Dd=function(){};var Pd=function(){function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;xa(this,e);this.enabled=window.console&&t;if(this.enabled){this.log("Debugging enabled")}}Na(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Dd;}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Dd;}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Dd;}}]);return e;}();var Hd=function(){function e(t){var n=this;xa(this,e);this.player=t;this.prefix=e.prefix;this.property=e.property;this.scrollPosition={x:0,y:0};this.forceFallback=t.config.fullscreen.fallback==="force";this.player.elements.fullscreen=t.config.fullscreen.container&&Ep(this.player.elements.container,t.config.fullscreen.container);Ap.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){n.onChange();});Ap.call(this.player,this.player.elements.container,"dblclick",function(e){if(Qh.element(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)){return}n.toggle();});Ap.call(this,this.player.elements.container,"keydown",function(e){return n.trapFocus(e);});this.update();}Na(e,[{key:"onChange",value:function(){if(!this.enabled){return}var t=this.player.elements.buttons.fullscreen;if(Qh.element(t)){t.pressed=this.active}_p.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",true);}},{key:"toggleFallback",value:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t){this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}}else{window.scrollTo(this.scrollPosition.x,this.scrollPosition.y)}document.body.style.overflow=t?"hidden":"";yp(this.target,this.player.config.classNames.fullscreen.fallback,t);if(Zh.isIos){var n=document.head.querySelector('meta[name="viewport"]');var r="viewport-fit=cover";if(!n){n=document.createElement("meta");n.setAttribute("name","viewport")}var i=Qh.string(n.content)&&n.content.includes(r);if(t){this.cleanupViewport=!i;if(!i){n.content+=",".concat(r)}}else if(this.cleanupViewport){n.content=n.content.split(",").filter(function(e){return e.trim()!==r;}).join(",")}}this.onChange();}},{key:"trapFocus",value:function(t){if(Zh.isIos||!this.active||t.key!=="Tab"||t.keyCode!==9){return}var n=document.activeElement;var r=Sp.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]");var i=Ma(r,1),s=i[0];var o=r[r.length-1];if(n===o&&!t.shiftKey){s.focus();t.preventDefault()}else if(n===s&&t.shiftKey){o.focus();t.preventDefault()}}},{key:"update",value:function(){if(this.enabled){var n;if(this.forceFallback){n="Fallback (forced)"}else if(e.native){n="Native"}else{n="Fallback"}this.player.debug.log("".concat(n," fullscreen enabled"))}else{this.player.debug.log("Fullscreen not supported and fallback disabled")}yp(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled);}},{key:"enter",value:function(){if(!this.enabled){return}if(Zh.isIos&&this.player.config.fullscreen.iosNative){this.target.webkitEnterFullscreen()}else if(!e.native||this.forceFallback){this.toggleFallback(true)}else if(!this.prefix){this.target.requestFullscreen({navigationUI:"hide"})}else if(!Qh.empty(this.prefix)){this.target["".concat(this.prefix,"Request").concat(this.property)]()}}},{key:"exit",value:function(){if(!this.enabled){return}if(Zh.isIos&&this.player.config.fullscreen.iosNative){this.target.webkitExitFullscreen();Hp(this.player.play())}else if(!e.native||this.forceFallback){this.toggleFallback(false)}else if(!this.prefix){(document.cancelFullScreen||document.exitFullscreen).call(document)}else if(!Qh.empty(this.prefix)){var n=this.prefix==="moz"?"Cancel":"Exit";document["".concat(this.prefix).concat(n).concat(this.property)]()}}},{key:"toggle",value:function(){if(!this.active){this.enter()}else{this.exit()}}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback;}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo;}},{key:"active",get:function(){if(!this.enabled){return false}if(!e.native||this.forceFallback){return bp(this.target,this.player.config.classNames.fullscreen.fallback)}var n=!this.prefix?document.fullscreenElement:document["".concat(this.prefix).concat(this.property,"Element")];return n&&n.shadowRoot?n===this.target.getRootNode().host:n===this.target;}},{key:"target",get:function(){return Zh.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(Qh.function(document.exitFullscreen)){return""}var t="";var n=["webkit","moz","ms"];n.some(function(e){if(Qh.function(document["".concat(e,"ExitFullscreen")])||Qh.function(document["".concat(e,"CancelFullScreen")])){t=e;return true}return false;});return t;}},{key:"property",get:function(){return this.prefix==="moz"?"FullScreen":"Fullscreen";}}]);return e;}();var Bd=Math.sign||function(t){return(t=+t)==0||t!=t?t:t<0?-1:1;};qt({target:"Math",stat:true},{sign:Bd});var Fd={addStyleHook:function(){yp(this.elements.container,this.config.selectors.container.replace(".",""),true);yp(this.elements.container,this.config.classNames.uiSupported,this.supported.ui);},toggleNativeControls:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t&&this.isHTML5){this.media.setAttribute("controls","")}else{this.media.removeAttribute("controls")}},build:function(){var t=this;this.listeners.media();if(!this.supported.ui){this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type));Fd.toggleNativeControls.call(this,true);return}if(!Qh.element(this.elements.controls)){Td.inject.call(this);this.listeners.controls()}Fd.toggleNativeControls.call(this);if(this.isHTML5){kd.setup.call(this)}this.volume=null;this.muted=null;this.loop=null;this.quality=null;this.speed=null;Td.updateVolume.call(this);Td.timeUpdate.call(this);Fd.checkPlaying.call(this);yp(this.elements.container,this.config.classNames.pip.supported,Cp.pip&&this.isHTML5&&this.isVideo);yp(this.elements.container,this.config.classNames.airplay.supported,Cp.airplay&&this.isHTML5);yp(this.elements.container,this.config.classNames.isIos,Zh.isIos);yp(this.elements.container,this.config.classNames.isTouch,this.touch);this.ready=true;setTimeout(function(){_p.call(t,t.media,"ready");},0);Fd.setTitle.call(this);if(this.poster){Fd.setPoster.call(this,this.poster,false).catch(function(){})}if(this.config.duration){Td.durationUpdate.call(this)}},setTitle:function(){var t=dd.get("play",this.config);if(Qh.string(this.config.title)&&!Qh.empty(this.config.title)){t+=", ".concat(this.config.title)}Array.from(this.elements.buttons.play||[]).forEach(function(e){e.setAttribute("aria-label",t);});if(this.isEmbed){var n=xp.call(this,"iframe");if(!Qh.element(n)){return}var r=!Qh.empty(this.config.title)?this.config.title:"video";var i=dd.get("frameTitle",this.config);n.setAttribute("title",i.replace("{title}",r))}},togglePoster:function(t){yp(this.elements.container,this.config.classNames.posterEnabled,t);},setPoster:function(t){var n=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(r&&this.poster){return Promise.reject(new Error("Poster already set"))}this.media.setAttribute("data-poster",t);return Pp.call(this).then(function(){return jd(t);}).catch(function(e){if(t===n.poster){Fd.togglePoster.call(n,false)}throw e;}).then(function(){if(t!==n.poster){throw new Error("setPoster cancelled by later call to setPoster")}}).then(function(){Object.assign(n.elements.poster.style,{backgroundImage:"url('".concat(t,"')"),backgroundSize:""});Fd.togglePoster.call(n,true);return t;});},checkPlaying:function(t){var n=this;yp(this.elements.container,this.config.classNames.playing,this.playing);yp(this.elements.container,this.config.classNames.paused,this.paused);yp(this.elements.container,this.config.classNames.stopped,this.stopped);Array.from(this.elements.buttons.play||[]).forEach(function(e){Object.assign(e,{pressed:n.playing});e.setAttribute("aria-label",dd.get(n.playing?"pause":"play",n.config));});if(Qh.event(t)&&t.type==="timeupdate"){return}Fd.toggleControls.call(this);},checkLoading:function(t){var n=this;this.loading=["stalled","waiting"].includes(t.type);clearTimeout(this.timers.loading);this.timers.loading=setTimeout(function(){yp(n.elements.container,n.config.classNames.loading,n.loading);Fd.toggleControls.call(n);},this.loading?250:0);},toggleControls:function(t){var n=this.elements.controls;if(n&&this.config.hideControls){var r=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(t||this.loading||this.paused||n.pressed||n.hover||r))}},migrateStyles:function(){var t=this;Object.values(La({},this.media.style)).filter(function(e){return!Qh.empty(e)&&e.startsWith("--plyr");}).forEach(function(e){t.elements.container.style.setProperty(e,t.media.style.getPropertyValue(e));t.media.style.removeProperty(e);});if(Qh.empty(this.media.style)){this.media.removeAttribute("style")}}};var Id=function(){function e(t){xa(this,e);this.player=t;this.lastKey=null;this.focusTimer=null;this.lastKeyDown=null;this.handleKey=this.handleKey.bind(this);this.toggleMenu=this.toggleMenu.bind(this);this.setTabFocus=this.setTabFocus.bind(this);this.firstTouch=this.firstTouch.bind(this);}Na(e,[{key:"handleKey",value:function(t){var n=this.player;var r=n.elements;var i=t.keyCode?t.keyCode:t.which;var s=t.type==="keydown";var o=s&&i===this.lastKey;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey){return}if(!Qh.number(i)){return}var u=function(){n.currentTime=n.duration/10*(i-48);};if(s){var a=document.activeElement;if(Qh.element(a)){var f=n.config.selectors.editable;var l=r.inputs.seek;if(a!==l&&wp(a,f)){return}if(t.which===32&&wp(a,'button, [role^="menuitem"]')){return}}var c=[32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79];if(c.includes(i)){t.preventDefault();t.stopPropagation()}switch(i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:if(!o){u()}break;case 32:case 75:if(!o){Hp(n.togglePlay())}break;case 38:n.increaseVolume(.1);break;case 40:n.decreaseVolume(.1);break;case 77:if(!o){n.muted=!n.muted}break;case 39:n.forward();break;case 37:n.rewind();break;case 70:n.fullscreen.toggle();break;case 67:if(!o){n.toggleCaptions()}break;case 76:n.loop=!n.loop;break}if(i===27&&!n.fullscreen.usingNative&&n.fullscreen.active){n.fullscreen.toggle()}this.lastKey=i}else{this.lastKey=null}}},{key:"toggleMenu",value:function(t){Td.toggleMenu.call(this.player,t);}},{key:"firstTouch",value:function(){var t=this.player;var n=t.elements;t.touch=true;yp(n.container,t.config.classNames.isTouch,true);}},{key:"setTabFocus",value:function(t){var n=this.player;var r=n.elements;clearTimeout(this.focusTimer);if(t.type==="keydown"&&t.which!==9){return}if(t.type==="keydown"){this.lastKeyDown=t.timeStamp}var i=function(){var t=n.config.classNames.tabFocus;var r=Sp.call(n,".".concat(t));yp(r,t,false);};var s=t.timeStamp-this.lastKeyDown<=20;if(t.type==="focus"&&!s){return}i();if(t.type!=="focusout"){this.focusTimer=setTimeout(function(){var e=document.activeElement;if(!r.container.contains(e)){return}yp(document.activeElement,n.config.classNames.tabFocus,true);},10)}}},{key:"global",value:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var n=this.player;if(n.config.keyboard.global){Lp.call(n,window,"keydown keyup",this.handleKey,t,false)}Lp.call(n,document.body,"click",this.toggleMenu,t);Mp.call(n,document.body,"touchstart",this.firstTouch);Lp.call(n,document.body,"keydown focus blur focusout",this.setTabFocus,t,false,true);}},{key:"container",value:function(){var t=this.player;var n=t.config,r=t.elements,i=t.timers;if(!n.keyboard.global&&n.keyboard.focused){Ap.call(t,r.container,"keydown keyup",this.handleKey,false)}Ap.call(t,r.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(e){var n=r.controls;if(n&&e.type==="enterfullscreen"){n.pressed=false;n.hover=false}var s=["touchstart","touchmove","mousemove"].includes(e.type);var o=0;if(s){Fd.toggleControls.call(t,true);o=t.touch?3e3:2e3}clearTimeout(i.controls);i.controls=setTimeout(function(){return Fd.toggleControls.call(t,false);},o);});var s=function(n,r,i){if(!t.isVimeo||t.config.vimeo.premium){return}var s=t.elements.wrapper.firstChild;var o=Ma(n,2),u=o[1];var a=Fp.call(t),f=Ma(a,2),l=f[0],c=f[1];s.style.maxWidth=i?"".concat(u/c*l,"px"):null;s.style.margin=i?"0 auto":null;};var o=function(n){if(!n){return Ip.call(t)}var i=r.container.getBoundingClientRect();var s=i.width,o=i.height;return Ip.call(t,"".concat(s,":").concat(o));};var u=function(){clearTimeout(i.resized);i.resized=setTimeout(o,50);};Ap.call(t,r.container,"enterfullscreen exitfullscreen",function(e){var n=t.fullscreen,i=n.target,a=n.usingNative;if(i!==r.container){return}if(!t.isEmbed&&Qh.empty(t.config.ratio)){return}var f=e.type==="enterfullscreen";var l=o(f),c=l.padding,h=l.ratio;s(h,c,f);if(!a){if(f){Ap.call(t,window,"resize",u)}else{Op.call(t,window,"resize",u)}}});}},{key:"media",value:function(){var t=this;var n=this.player;var r=n.elements;Ap.call(n,n.media,"timeupdate seeking seeked",function(e){return Td.timeUpdate.call(n,e);});Ap.call(n,n.media,"durationchange loadeddata loadedmetadata",function(e){return Td.durationUpdate.call(n,e);});Ap.call(n,n.media,"ended",function(){if(n.isHTML5&&n.isVideo&&n.config.resetOnEnd){n.restart();n.pause()}});Ap.call(n,n.media,"progress playing seeking seeked",function(e){return Td.updateProgress.call(n,e);});Ap.call(n,n.media,"volumechange",function(e){return Td.updateVolume.call(n,e);});Ap.call(n,n.media,"playing play pause ended emptied timeupdate",function(e){return Fd.checkPlaying.call(n,e);});Ap.call(n,n.media,"waiting canplay seeked playing",function(e){return Fd.checkLoading.call(n,e);});if(n.supported.ui&&n.config.clickToPlay&&!n.isAudio){var i=xp.call(n,".".concat(n.config.classNames.video));if(!Qh.element(i)){return}Ap.call(n,r.container,"click",function(e){var s=[r.container,i];if(!s.includes(e.target)&&!i.contains(e.target)){return}if(n.touch&&n.config.hideControls){return}if(n.ended){t.proxy(e,n.restart,"restart");t.proxy(e,function(){Hp(n.play());},"play")}else{t.proxy(e,function(){Hp(n.togglePlay());},"play")}})}if(n.supported.ui&&n.config.disableContextMenu){Ap.call(n,r.wrapper,"contextmenu",function(e){e.preventDefault();},false)}Ap.call(n,n.media,"volumechange",function(){n.storage.set({volume:n.volume,muted:n.muted});});Ap.call(n,n.media,"ratechange",function(){Td.updateSetting.call(n,"speed");n.storage.set({speed:n.speed});});Ap.call(n,n.media,"qualitychange",function(e){Td.updateSetting.call(n,"quality",null,e.detail.quality);});Ap.call(n,n.media,"ready qualitychange",function(){Td.setDownloadUrl.call(n);});var s=n.config.events.concat(["keyup","keydown"]).join(" ");Ap.call(n,n.media,s,function(e){var t=e.detail,i=t===void 0?{}:t;if(e.type==="error"){i=n.media.error}_p.call(n,r.container,e.type,true,i);});}},{key:"proxy",value:function(t,n,r){var i=this.player;var s=i.config.listeners[r];var o=Qh.function(s);var u=true;if(o){u=s.call(i,t)}if(u!==false&&Qh.function(n)){n.call(i,t)}}},{key:"bind",value:function(t,n,r,i){var s=this;var o=arguments.length>4&&arguments[4]!==undefined?arguments[4]:true;var u=this.player;var a=u.config.listeners[i];var f=Qh.function(a);Ap.call(u,t,n,function(e){return s.proxy(e,r,i);},o&&!f);}},{key:"controls",value:function(){var t=this;var n=this.player;var r=n.elements;var i=Zh.isIE?"change":"input";if(r.buttons.play){Array.from(r.buttons.play).forEach(function(e){t.bind(e,"click",function(){Hp(n.togglePlay());},"play");})}this.bind(r.buttons.restart,"click",n.restart,"restart");this.bind(r.buttons.rewind,"click",n.rewind,"rewind");this.bind(r.buttons.fastForward,"click",n.forward,"fastForward");this.bind(r.buttons.mute,"click",function(){n.muted=!n.muted;},"mute");this.bind(r.buttons.captions,"click",function(){return n.toggleCaptions();});this.bind(r.buttons.download,"click",function(){_p.call(n,n.media,"download");},"download");this.bind(r.buttons.fullscreen,"click",function(){n.fullscreen.toggle();},"fullscreen");this.bind(r.buttons.pip,"click",function(){n.pip="toggle";},"pip");this.bind(r.buttons.airplay,"click",n.airplay,"airplay");this.bind(r.buttons.settings,"click",function(e){e.stopPropagation();e.preventDefault();Td.toggleMenu.call(n,e);},null,false);this.bind(r.buttons.settings,"keyup",function(e){var t=e.which;if(![13,32].includes(t)){return}if(t===13){Td.focusFirstMenuItem.call(n,null,true);return}e.preventDefault();e.stopPropagation();Td.toggleMenu.call(n,e);},null,false);this.bind(r.settings.menu,"keydown",function(e){if(e.which===27){Td.toggleMenu.call(n,e)}});this.bind(r.inputs.seek,"mousedown mousemove",function(e){var t=r.progress.getBoundingClientRect();var n=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",n);});this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var t=e.currentTarget;var r=e.keyCode?e.keyCode:e.which;var i="play-on-seeked";if(Qh.keyboardEvent(e)&&r!==39&&r!==37){return}n.lastSeekTime=Date.now();var s=t.hasAttribute(i);var o=["mouseup","touchend","keyup"].includes(e.type);if(s&&o){t.removeAttribute(i);Hp(n.play())}else if(!o&&n.playing){t.setAttribute(i,"");n.pause()}});if(Zh.isIos){var s=Sp.call(n,'input[type="range"]');Array.from(s).forEach(function(e){return t.bind(e,i,function(e){return Yh(e.target);});})}this.bind(r.inputs.seek,i,function(e){var t=e.currentTarget;var r=t.getAttribute("seek-value");if(Qh.empty(r)){r=t.value}t.removeAttribute("seek-value");n.currentTime=r/t.max*n.duration;},"seek");this.bind(r.progress,"mouseenter mouseleave mousemove",function(e){return Td.updateSeekTooltip.call(n,e);});this.bind(r.progress,"mousemove touchmove",function(e){var t=n.previewThumbnails;if(t&&t.loaded){t.startMove(e)}});this.bind(r.progress,"mouseleave touchend click",function(){var e=n.previewThumbnails;if(e&&e.loaded){e.endMove(false,true)}});this.bind(r.progress,"mousedown touchstart",function(e){var t=n.previewThumbnails;if(t&&t.loaded){t.startScrubbing(e)}});this.bind(r.progress,"mouseup touchend",function(e){var t=n.previewThumbnails;if(t&&t.loaded){t.endScrubbing(e)}});if(Zh.isWebkit){Array.from(Sp.call(n,'input[type="range"]')).forEach(function(e){t.bind(e,"input",function(e){return Td.updateRangeFill.call(n,e.target);});})}if(n.config.toggleInvert&&!Qh.element(r.display.duration)){this.bind(r.display.currentTime,"click",function(){if(n.currentTime===0){return}n.config.invertTime=!n.config.invertTime;Td.timeUpdate.call(n);})}this.bind(r.inputs.volume,i,function(e){n.volume=e.target.value;},"volume");this.bind(r.controls,"mouseenter mouseleave",function(e){r.controls.hover=!n.touch&&e.type==="mouseenter";});if(r.fullscreen){Array.from(r.fullscreen.children).filter(function(e){return!e.contains(r.container);}).forEach(function(e){t.bind(e,"mouseenter mouseleave",function(e){r.controls.hover=!n.touch&&e.type==="mouseenter";});})}this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){r.controls.pressed=["mousedown","touchstart"].includes(e.type);});this.bind(r.controls,"focusin",function(){var e=n.config,i=n.timers;yp(r.controls,e.classNames.noTransition,true);Fd.toggleControls.call(n,true);setTimeout(function(){yp(r.controls,e.classNames.noTransition,false);},0);var s=t.touch?3e3:4e3;clearTimeout(i.controls);i.controls=setTimeout(function(){return Fd.toggleControls.call(n,false);},s);});this.bind(r.inputs.volume,"wheel",function(e){var t=e.webkitDirectionInvertedFromDevice;var r=[e.deltaX,-e.deltaY].map(function(e){return t?-e:e;}),i=Ma(r,2),s=i[0],o=i[1];var u=Math.sign(Math.abs(s)>Math.abs(o)?s:o);n.increaseVolume(u/50);var a=n.media.volume;if(u===1&&a<1||u===-1&&a>0){e.preventDefault()}},"volume",false);}}]);return e;}();var qd=Ei("splice");var Rd=Er("splice",{ACCESSORS:true,0:0,1:2});var Ud=Math.max;var zd=Math.min;var Wd=9007199254740991;var Xd="Maximum allowed length exceeded";qt({target:"Array",proto:true,forced:!qd||!Rd},{splice:function(t,n){var r=Wt(this);var i=mt(r.length);var s=bt(t,i);var o=arguments.length;var u,a,f,l,c,h;if(o===0){u=a=0}else if(o===1){u=0;a=i-s}else{u=o-2;a=zd(Ud(dt(n),0),i-s)}if(i+u-a>Wd){throw TypeError(Xd)}f=kn(r,a);for(l=0;li-a+u;l--)delete r[l-1]}else if(u>a){for(l=i-a;l>s;l--){c=l+a-1;h=l+u-1;if(c in r)r[h]=r[c];else delete r[h]}}for(l=0;l0&&arguments[0]!==undefined?arguments[0]:false;if(!n){clearInterval(this.countdownTimer);this.elements.container.removeAttribute("data-badge-text");return}var r=function(){var n=xd(Math.max(t.manager.getRemainingTime(),0));var r="".concat(dd.get("advertisement",t.player.config)," - ").concat(n);t.elements.container.setAttribute("data-badge-text",r);};this.countdownTimer=setInterval(r,100);}},{key:"onAdsManagerLoaded",value:function(t){var n=this;if(!this.enabled){return}var r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=true;r.enablePreloading=true;this.manager=t.getAdsManager(this.player,r);this.cuePoints=this.manager.getCuePoints();this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return n.onAdError(e);});Object.keys(google.ima.AdEvent.Type).forEach(function(e){n.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return n.onAdEvent(e);});});this.trigger("loaded");}},{key:"addCuePoints",value:function(){var t=this;if(!Qh.empty(this.cuePoints)){this.cuePoints.forEach(function(e){if(e!==0&&e!==-1&&e1?r-1:0),s=1;s1?arguments[1]:undefined);}});Dr(sv);var av=Math.min;var fv=[].lastIndexOf;var lv=!!fv&&1/[1].lastIndexOf(1,-0)<0;var cv=gr("lastIndexOf");var hv=Er("indexOf",{ACCESSORS:true,1:0});var pv=lv||!cv||!hv;var dv=pv?function(t){if(lv)return fv.apply(this,arguments)||0;var n=g(this);var r=mt(n.length);var i=r-1;if(arguments.length>1)i=av(i,dt(arguments[1]));if(i<0)i=r+i;for(;i>=0;i--)if(i in n&&n[i]===t)return i||0;return-1;}:fv;qt({target:"Array",proto:true,forced:dv!==[].lastIndexOf},{lastIndexOf:dv});var vv=function(t){var n=[];var r=t.split(/\r\n\r\n|\n\n|\r\r/);r.forEach(function(e){var t={};var r=e.split(/\r\n|\n|\r/);r.forEach(function(e){if(!Qh.number(t.startTime)){var n=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);if(n){t.startTime=Number(n[1]||0)*60*60+Number(n[2])*60+Number(n[3])+Number("0.".concat(n[4]));t.endTime=Number(n[6]||0)*60*60+Number(n[7])*60+Number(n[8])+Number("0.".concat(n[9]))}}else if(!Qh.empty(e.trim())&&Qh.empty(t.text)){var r=e.trim().split("#xywh=");var i=Ma(r,1);t.text=i[0];if(r[1]){var s=r[1].split(",");var o=Ma(s,4);t.x=o[0];t.y=o[1];t.w=o[2];t.h=o[3]}}});if(t.text){n.push(t)}});return n;};var mv=function(t,n){var r=n.width/n.height;var i={};if(t>r){i.width=n.width;i.height=1/t*n.width}else{i.height=n.height;i.width=t*n.height}return i;};var gv=function(){function e(t){xa(this,e);this.player=t;this.thumbnails=[];this.loaded=false;this.lastMouseMoveTime=Date.now();this.mouseDown=false;this.loadedImages=[];this.elements={thumb:{},scrubbing:{}};this.load();}Na(e,[{key:"load",value:function(){var t=this;if(this.player.elements.display.seekTooltip){this.player.elements.display.seekTooltip.hidden=this.enabled}if(!this.enabled){return}this.getThumbnails().then(function(){if(!t.enabled){return}t.render();t.determineContainerAutoSizing();t.loaded=true;});}},{key:"getThumbnails",value:function(){var t=this;return new Promise(function(e){var n=t.player.config.previewThumbnails.src;if(Qh.empty(n)){throw new Error("Missing previewThumbnails.src config attribute")}var r=function(){t.thumbnails.sort(function(e,t){return e.height-t.height;});t.player.debug.log("Preview thumbnails",t.thumbnails);e();};if(Qh.function(n)){n(function(e){t.thumbnails=e;r();})}else{var i=Qh.string(n)?[n]:n;var s=i.map(function(e){return t.getThumbnail(e);});Promise.all(s).then(r)}});}},{key:"getThumbnail",value:function(t){var n=this;return new Promise(function(e){md(t).then(function(r){var i={frames:vv(r),height:null,urlPrefix:""};if(!i.frames[0].text.startsWith("/")&&!i.frames[0].text.startsWith("http://")&&!i.frames[0].text.startsWith("https://")){i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1)}var s=new Image;s.onload=function(){i.height=s.naturalHeight;i.width=s.naturalWidth;n.thumbnails.push(i);e();};s.src=i.urlPrefix+i.frames[0].text;});});}},{key:"startMove",value:function(t){if(!this.loaded){return}if(!Qh.event(t)||!["touchmove","mousemove"].includes(t.type)){return}if(!this.player.media.duration){return}if(t.type==="touchmove"){this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100)}else{var n=this.player.elements.progress.getBoundingClientRect();var r=100/n.width*(t.pageX-n.left);this.seekTime=this.player.media.duration*(r/100);if(this.seekTime<0){this.seekTime=0}if(this.seekTime>this.player.media.duration-1){this.seekTime=this.player.media.duration-1}this.mousePosX=t.pageX;this.elements.thumb.time.innerText=xd(this.seekTime)}this.showImageAtCurrentTime();}},{key:"endMove",value:function(){this.toggleThumbContainer(false,true);}},{key:"startScrubbing",value:function(t){if(Qh.nullOrUndefined(t.button)||t.button===false||t.button===0){this.mouseDown=true;if(this.player.media.duration){this.toggleScrubbingContainer(true);this.toggleThumbContainer(false,true);this.showImageAtCurrentTime()}}}},{key:"endScrubbing",value:function(){var t=this;this.mouseDown=false;if(Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)){this.toggleScrubbingContainer(false)}else{Mp.call(this.player,this.player.media,"timeupdate",function(){if(!t.mouseDown){t.toggleScrubbingContainer(false)}})}}},{key:"listeners",value:function(){var t=this;this.player.on("play",function(){t.toggleThumbContainer(false,true);});this.player.on("seeked",function(){t.toggleThumbContainer(false);});this.player.on("timeupdate",function(){t.lastTime=t.player.media.currentTime;});}},{key:"render",value:function(){this.elements.thumb.container=lp("div",{"class":this.player.config.classNames.previewThumbnails.thumbContainer});this.elements.thumb.imageContainer=lp("div",{"class":this.player.config.classNames.previewThumbnails.imageContainer});this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var t=lp("div",{"class":this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=lp("span",{},"00:00");t.appendChild(this.elements.thumb.time);this.elements.thumb.container.appendChild(t);if(Qh.element(this.player.elements.progress)){this.player.elements.progress.appendChild(this.elements.thumb.container)}this.elements.scrubbing.container=lp("div",{"class":this.player.config.classNames.previewThumbnails.scrubbingContainer});this.player.elements.wrapper.appendChild(this.elements.scrubbing.container);}},{key:"destroy",value:function(){if(this.elements.thumb.container){this.elements.thumb.container.remove()}if(this.elements.scrubbing.container){this.elements.scrubbing.container.remove()}}},{key:"showImageAtCurrentTime",value:function(){var t=this;if(this.mouseDown){this.setScrubbingContainerSize()}else{this.setThumbContainerSizeAndPos()}var n=this.thumbnails[0].frames.findIndex(function(e){return t.seekTime>=e.startTime&&t.seekTime<=e.endTime;});var r=n>=0;var i=0;if(!this.mouseDown){this.toggleThumbContainer(r)}if(!r){return}this.thumbnails.forEach(function(e,r){if(t.loadedImages.includes(e.frames[n].text)){i=r}});if(n!==this.showingThumb){this.showingThumb=n;this.loadImage(i)}}},{key:"loadImage",value:function(){var t=this;var n=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var r=this.showingThumb;var i=this.thumbnails[n];var s=i.urlPrefix;var o=i.frames[r];var u=i.frames[r].text;var a=s+u;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==u){if(this.loadingImage&&this.usingSprites){this.loadingImage.onload=null}var f=new Image;f.src=a;f.dataset.index=r;f.dataset.filename=u;this.showingThumbFilename=u;this.player.debug.log("Loading image: ".concat(a));f.onload=function(){return t.showImage(f,o,n,r,u,true);};this.loadingImage=f;this.removeOldImages(f)}else{this.showImage(this.currentImageElement,o,n,r,u,false);this.currentImageElement.dataset.index=r;this.removeOldImages(this.currentImageElement)}}},{key:"showImage",value:function(t,n,r,i,s){var o=arguments.length>5&&arguments[5]!==undefined?arguments[5]:true;this.player.debug.log("Showing thumb: ".concat(s,". num: ").concat(i,". qual: ").concat(r,". newimg: ").concat(o));this.setImageSizeAndOffset(t,n);if(o){this.currentImageContainer.appendChild(t);this.currentImageElement=t;if(!this.loadedImages.includes(s)){this.loadedImages.push(s)}}this.preloadNearby(i,true).then(this.preloadNearby(i,false)).then(this.getHigherQuality(r,t,n,s));}},{key:"removeOldImages",value:function(t){var n=this;Array.from(this.currentImageContainer.children).forEach(function(e){if(e.tagName.toLowerCase()!=="img"){return}var r=n.usingSprites?500:1e3;if(e.dataset.index!==t.dataset.index&&!e.dataset.deleting){e.dataset.deleting=true;var i=n.currentImageContainer;setTimeout(function(){i.removeChild(e);n.player.debug.log("Removing thumb: ".concat(e.dataset.filename));},r)}});}},{key:"preloadNearby",value:function(t){var n=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return new Promise(function(e){setTimeout(function(){var i=n.thumbnails[0].frames[t].text;if(n.showingThumbFilename===i){var s;if(r){s=n.thumbnails[0].frames.slice(t)}else{s=n.thumbnails[0].frames.slice(0,t).reverse()}var o=false;s.forEach(function(t){var r=t.text;if(r!==i){if(!n.loadedImages.includes(r)){o=true;n.player.debug.log("Preloading thumb filename: ".concat(r));var s=n.thumbnails[0].urlPrefix;var u=s+r;var a=new Image;a.src=u;a.onload=function(){n.player.debug.log("Preloaded thumb filename: ".concat(r));if(!n.loadedImages.includes(r))n.loadedImages.push(r);e();}}}});if(!o){e()}}},300);});}},{key:"getHigherQuality",value:function(t,n,r,i){var s=this;if(t0&&arguments[0]!==undefined?arguments[0]:false;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(r,t);if(!t&&n){this.showingThumb=null;this.showingThumbFilename=null}}},{key:"toggleScrubbingContainer",value:function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var n=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(n,t);if(!t){this.showingThumb=null;this.showingThumbFilename=null}}},{key:"determineContainerAutoSizing",value:function(){if(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20){this.sizeSpecifiedInCSS=true}}},{key:"setThumbContainerSizeAndPos",value:function(){if(!this.sizeSpecifiedInCSS){var t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px");this.elements.thumb.imageContainer.style.width="".concat(t,"px")}else if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var n=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(n,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var r=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(r,"px")}this.setThumbContainerPos();}},{key:"setThumbContainerPos",value:function(){var t=this.player.elements.progress.getBoundingClientRect();var n=this.player.elements.container.getBoundingClientRect();var r=this.elements.thumb.container;var i=n.left-t.left+10;var s=n.right-t.left-r.clientWidth-10;var o=this.mousePosX-t.left-r.clientWidth/2;if(os){o=s}r.style.left="".concat(o,"px");}},{key:"setScrubbingContainerSize",value:function(){var t=mv(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),n=t.width,r=t.height;this.elements.scrubbing.container.style.width="".concat(n,"px");this.elements.scrubbing.container.style.height="".concat(r,"px");}},{key:"setImageSizeAndOffset",value:function(t,n){if(!this.usingSprites){return}var r=this.thumbContainerHeight/n.h;t.style.height="".concat(t.naturalHeight*r,"px");t.style.width="".concat(t.naturalWidth*r,"px");t.style.left="-".concat(n.x*r,"px");t.style.top="-".concat(n.y*r,"px");}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled;}},{key:"currentImageContainer",get:function(){if(this.mouseDown){return this.elements.scrubbing.container}return this.elements.thumb.imageContainer;}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w");}},{key:"thumbAspectRatio",get:function(){if(this.usingSprites){return this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h}return this.thumbnails[0].width/this.thumbnails[0].height;}},{key:"thumbContainerHeight",get:function(){if(this.mouseDown){var t=mv(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),n=t.height;return n}if(this.sizeSpecifiedInCSS){return this.elements.thumb.imageContainer.clientHeight}return Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4);}},{key:"currentImageElement",get:function(){if(this.mouseDown){return this.currentScrubbingImageElement}return this.currentThumbnailImageElement;},set:function(t){if(this.mouseDown){this.currentScrubbingImageElement=t}else{this.currentThumbnailImageElement=t}}}]);return e;}();var yv={insertElements:function(t,n){var r=this;if(Qh.string(n)){hp(t,this.media,{src:n})}else if(Qh.array(n)){n.forEach(function(e){hp(t,r.media,e);})}},change:function(t){var n=this;if(!op(t,"sources.length")){this.debug.warn("Invalid source format");return}qp.cancelRequests.call(this);this.destroy.call(this,function(){n.options.quality=[];pp(n.media);n.media=null;if(Qh.element(n.elements.container)){n.elements.container.removeAttribute("class")}var e=t.sources,r=t.type;var i=Ma(e,1),s=i[0],o=s.provider,u=o===void 0?Od.html5:o,a=s.src;var f=u==="html5"?r:"div";var l=u==="html5"?{}:{src:a};Object.assign(n,{provider:u,type:r,supported:Cp.check(r,u,n.config.playsinline),media:lp(f,l)});n.elements.container.appendChild(n.media);if(Qh.boolean(t.autoplay)){n.config.autoplay=t.autoplay}if(n.isHTML5){if(n.config.crossorigin){n.media.setAttribute("crossorigin","")}if(n.config.autoplay){n.media.setAttribute("autoplay","")}if(!Qh.empty(t.poster)){n.poster=t.poster}if(n.config.loop.active){n.media.setAttribute("loop","")}if(n.config.muted){n.media.setAttribute("muted","")}if(n.config.playsinline){n.media.setAttribute("playsinline","")}}Fd.addStyleHook.call(n);if(n.isHTML5){yv.insertElements.call(n,"source",e)}n.config.title=t.title;tv.setup.call(n);if(n.isHTML5){if(Object.keys(t).includes("tracks")){yv.insertElements.call(n,"track",t.tracks)}}if(n.isHTML5||n.isEmbed&&!n.supported.ui){Fd.build.call(n)}if(n.isHTML5){n.media.load()}if(!Qh.empty(t.previewThumbnails)){Object.assign(n.config.previewThumbnails,t.previewThumbnails);if(n.previewThumbnails&&n.previewThumbnails.loaded){n.previewThumbnails.destroy();n.previewThumbnails=null}if(n.config.previewThumbnails.enabled){n.previewThumbnails=new gv(n)}}n.fullscreen.update();},true);}};var wv=function(){function e(t,n){var r=this;xa(this,e);this.timers={};this.ready=false;this.loading=false;this.failed=false;this.touch=Cp.touch;this.media=t;if(Qh.string(this.media)){this.media=document.querySelectorAll(this.media)}if(window.jQuery&&this.media instanceof jQuery||Qh.nodeList(this.media)||Qh.array(this.media)){this.media=this.media[0]}this.config=up({},Ld,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(e){return{}}}());this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}};this.captions={active:null,currentTrack:-1,meta:new WeakMap};this.fullscreen={active:false};this.options={speed:[],quality:[]};this.debug=new Pd(this.config.debug);this.debug.log("Config",this.config);this.debug.log("Support",Cp);if(Qh.nullOrUndefined(this.media)||!Qh.element(this.media)){this.debug.error("Setup failed: no suitable element passed");return}if(this.media.plyr){this.debug.warn("Target already setup");return}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return}if(!Cp.check().api){this.debug.error("Setup failed: no support");return}var i=this.media.cloneNode(true);i.autoplay=false;this.elements.original=i;var s=this.media.tagName.toLowerCase();var o=null;var u=null;switch(s){case"div":o=this.media.querySelector("iframe");if(Qh.element(o)){u=Nd(o.getAttribute("src"));this.provider=_d(u.toString());this.elements.container=this.media;this.media=o;this.elements.container.className="";if(u.search.length){var a=["1","true"];if(a.includes(u.searchParams.get("autoplay"))){this.config.autoplay=true}if(a.includes(u.searchParams.get("loop"))){this.config.loop.active=true}if(this.isYouTube){this.config.playsinline=a.includes(u.searchParams.get("playsinline"));this.config.youtube.hl=u.searchParams.get("hl")}else{this.config.playsinline=true}}}else{this.provider=this.media.getAttribute(this.config.attributes.embed.provider);this.media.removeAttribute(this.config.attributes.embed.provider)}if(Qh.empty(this.provider)||!Object.keys(Od).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return}this.type=Md.video;break;case"video":case"audio":this.type=s;this.provider=Od.html5;if(this.media.hasAttribute("crossorigin")){this.config.crossorigin=true}if(this.media.hasAttribute("autoplay")){this.config.autoplay=true}if(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline")){this.config.playsinline=true}if(this.media.hasAttribute("muted")){this.config.muted=true}if(this.media.hasAttribute("loop")){this.config.loop.active=true}break;default:this.debug.error("Setup failed: unsupported type");return}this.supported=Cp.check(this.type,this.provider,this.config.playsinline);if(!this.supported.api){this.debug.error("Setup failed: no support");return}this.eventListeners=[];this.listeners=new Id(this);this.storage=new vd(this);this.media.plyr=this;if(!Qh.element(this.elements.container)){this.elements.container=lp("div",{tabindex:0});ap(this.media,this.elements.container)}Fd.migrateStyles.call(this);Fd.addStyleHook.call(this);tv.setup.call(this);if(this.config.debug){Ap.call(this,this.elements.container,this.config.events.join(" "),function(e){r.debug.log("event: ".concat(e.type));})}this.fullscreen=new Hd(this);if(this.isHTML5||this.isEmbed&&!this.supported.ui){Fd.build.call(this)}this.listeners.container();this.listeners.global();if(this.config.ads.enabled){this.ads=new rv(this)}if(this.isHTML5&&this.config.autoplay){setTimeout(function(){return Hp(r.play());},10)}this.lastSeekTime=0;if(this.config.previewThumbnails.enabled){this.previewThumbnails=new gv(this)}}Na(e,[{key:"play",value:function(){var t=this;if(!Qh.function(this.media.play)){return null}if(this.ads&&this.ads.enabled){this.ads.managerPromise.then(function(){return t.ads.play();}).catch(function(){return Hp(t.media.play());})}return this.media.play();}},{key:"pause",value:function(){if(!this.playing||!Qh.function(this.media.pause)){return null}return this.media.pause();}},{key:"togglePlay",value:function(t){var n=Qh.boolean(t)?t:!this.playing;if(n){return this.play()}return this.pause();}},{key:"stop",value:function(){if(this.isHTML5){this.pause();this.restart()}else if(Qh.function(this.media.stop)){this.media.stop()}}},{key:"restart",value:function(){this.currentTime=0;}},{key:"rewind",value:function(t){this.currentTime-=Qh.number(t)?t:this.config.seekTime;}},{key:"forward",value:function(t){this.currentTime+=Qh.number(t)?t:this.config.seekTime;}},{key:"increaseVolume",value:function(t){var n=this.media.muted?0:this.volume;this.volume=n+(Qh.number(t)?t:0);}},{key:"decreaseVolume",value:function(t){this.increaseVolume(-t);}},{key:"toggleCaptions",value:function(t){kd.toggle.call(this,t,false);}},{key:"airplay",value:function(){if(Cp.airplay){this.media.webkitShowPlaybackTargetPicker()}}},{key:"toggleControls",value:function(t){if(this.supported.ui&&!this.isAudio){var n=bp(this.elements.container,this.config.classNames.hideControls);var r=typeof t==="undefined"?undefined:!t;var i=yp(this.elements.container,this.config.classNames.hideControls,r);if(i&&Qh.array(this.config.controls)&&this.config.controls.includes("settings")&&!Qh.empty(this.config.settings)){Td.toggleMenu.call(this,false)}if(i!==n){var s=i?"controlshidden":"controlsshown";_p.call(this,this.media,s)}return!i}return false;}},{key:"on",value:function(t,n){Ap.call(this,this.elements.container,t,n);}},{key:"once",value:function(t,n){Mp.call(this,this.elements.container,t,n);}},{key:"off",value:function(t,n){Op(this.elements.container,t,n);}},{key:"destroy",value:function(t){var n=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!this.ready){return}var i=function(){document.body.style.overflow="";n.embed=null;if(r){if(Object.keys(n.elements).length){pp(n.elements.buttons.play);pp(n.elements.captions);pp(n.elements.controls);pp(n.elements.wrapper);n.elements.buttons.play=null;n.elements.captions=null;n.elements.controls=null;n.elements.wrapper=null}if(Qh.function(t)){t()}}else{Dp.call(n);vp(n.elements.original,n.elements.container);_p.call(n,n.elements.original,"destroyed",true);if(Qh.function(t)){t.call(n.elements.original)}n.ready=false;setTimeout(function(){n.elements=null;n.media=null;},200)}};this.stop();clearTimeout(this.timers.loading);clearTimeout(this.timers.controls);clearTimeout(this.timers.resized);if(this.isHTML5){Fd.toggleNativeControls.call(this,true);i()}else if(this.isYouTube){clearInterval(this.timers.buffering);clearInterval(this.timers.playing);if(this.embed!==null&&Qh.function(this.embed.destroy)){this.embed.destroy()}i()}else if(this.isVimeo){if(this.embed!==null){this.embed.unload().then(i)}setTimeout(i,200)}}},{key:"supports",value:function(t){return Cp.mime.call(this,t);}},{key:"isHTML5",get:function(){return this.provider===Od.html5;}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo;}},{key:"isYouTube",get:function(){return this.provider===Od.youtube;}},{key:"isVimeo",get:function(){return this.provider===Od.vimeo;}},{key:"isVideo",get:function(){return this.type===Md.video;}},{key:"isAudio",get:function(){return this.type===Md.audio;}},{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&&this.currentTime===0);}},{key:"ended",get:function(){return Boolean(this.media.ended);}},{key:"currentTime",set:function(t){if(!this.duration){return}var n=Qh.number(t)&&t>0;this.media.currentTime=n?Math.min(t,this.duration):0;this.debug.log("Seeking to ".concat(this.currentTime," seconds"));},get:function(){return Number(this.media.currentTime);}},{key:"buffered",get:function(){var t=this.media.buffered;if(Qh.number(t)){return t}if(t&&t.length&&this.duration>0){return t.end(0)/this.duration}return 0;}},{key:"seeking",get:function(){return Boolean(this.media.seeking);}},{key:"duration",get:function(){var t=parseFloat(this.config.duration);var n=(this.media||{}).duration;var r=!Qh.number(n)||n===Infinity?0:n;return t||r;}},{key:"volume",set:function(t){var n=t;var r=1;var i=0;if(Qh.string(n)){n=Number(n)}if(!Qh.number(n)){n=this.storage.get("volume")}if(!Qh.number(n)){n=this.config.volume}if(n>r){n=r}if(n0){this.muted=false}},get:function(){return Number(this.media.volume);}},{key:"muted",set:function(t){var n=t;if(!Qh.boolean(n)){n=this.storage.get("muted")}if(!Qh.boolean(n)){n=this.config.muted}this.config.muted=n;this.media.muted=n;},get:function(){return Boolean(this.media.muted);}},{key:"hasAudio",get:function(){if(!this.isHTML5){return true}if(this.isAudio){return true}return Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length);}},{key:"speed",set:function(t){var n=this;var r=null;if(Qh.number(t)){r=t}if(!Qh.number(r)){r=this.storage.get("speed")}if(!Qh.number(r)){r=this.config.speed.selected}var i=this.minimumSpeed,s=this.maximumSpeed;r=bv(r,i,s);this.config.speed.selected=r;setTimeout(function(){n.media.playbackRate=r;},0);},get:function(){return Number(this.media.playbackRate);}},{key:"minimumSpeed",get:function(){if(this.isYouTube){return Math.min.apply(Math,_a(this.options.speed))}if(this.isVimeo){return.5}return.0625;}},{key:"maximumSpeed",get:function(){if(this.isYouTube){return Math.max.apply(Math,_a(this.options.speed))}if(this.isVimeo){return 2}return 16;}},{key:"quality",set:function(t){var n=this.config.quality;var r=this.options.quality;if(!r.length){return}var i=[!Qh.empty(t)&&Number(t),this.storage.get("quality"),n.selected,n.default].find(Qh.number);var s=true;if(!r.includes(i)){var o=Up(r,i);this.debug.warn("Unsupported quality option: ".concat(i,", using ").concat(o," instead"));i=o;s=false}n.selected=i;this.media.quality=i;if(s){this.storage.set({quality:i})}},get:function(){return this.media.quality;}},{key:"loop",set:function(t){var n=Qh.boolean(t)?t:this.config.loop.active;this.config.loop.active=n;this.media.loop=n;},get:function(){return Boolean(this.media.loop);}},{key:"source",set:function(t){yv.change.call(this,t);},get:function(){return this.media.currentSrc;}},{key:"download",get:function(){var t=this.config.urls.download;return Qh.url(t)?t:this.source;},set:function(t){if(!Qh.url(t)){return}this.config.urls.download=t;Td.setDownloadUrl.call(this);}},{key:"poster",set:function(t){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return}Fd.setPoster.call(this,t,false).catch(function(){});},get:function(){if(!this.isVideo){return null}return this.media.getAttribute("poster")||this.media.getAttribute("data-poster");}},{key:"ratio",get:function(){if(!this.isVideo){return null}var t=jp(Fp.call(this));return Qh.array(t)?t.join(":"):t;},set:function(t){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return}if(!Qh.string(t)||!Bp(t)){this.debug.error("Invalid aspect ratio specified (".concat(t,")"));return}this.config.ratio=t;Ip.call(this);}},{key:"autoplay",set:function(t){var n=Qh.boolean(t)?t:this.config.autoplay;this.config.autoplay=n;},get:function(){return Boolean(this.config.autoplay);}},{key:"currentTrack",set:function(t){kd.set.call(this,t,false);},get:function(){var t=this.captions,n=t.toggled,r=t.currentTrack;return n?r:-1;}},{key:"language",set:function(t){kd.setLanguage.call(this,t,false);},get:function(){return(kd.getCurrentTrack.call(this)||{}).language;}},{key:"pip",set:function(t){if(!Cp.pip){return}var n=Qh.boolean(t)?t:!this.pip;if(Qh.function(this.media.webkitSetPresentationMode)){this.media.webkitSetPresentationMode(n?Ad.active:Ad.inactive)}if(Qh.function(this.media.requestPictureInPicture)){if(!this.pip&&n){this.media.requestPictureInPicture()}else if(this.pip&&!n){document.exitPictureInPicture()}}},get:function(){if(!Cp.pip){return null}if(!Qh.empty(this.media.webkitPresentationMode)){return this.media.webkitPresentationMode===Ad.active}return this.media===document.pictureInPictureElement;}}],[{key:"supported",value:function(t,n,r){return Cp.check(t,n,r);}},{key:"loadSprite",value:function(t,n){return gd(t,n);}},{key:"setup",value:function(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=null;if(Qh.string(n)){i=Array.from(document.querySelectorAll(n))}else if(Qh.nodeList(n)){i=Array.from(n)}else if(Qh.array(n)){i=n.filter(Qh.element)}if(Qh.empty(i)){return null}return i.map(function(t){return new e(t,r);});}}]);return e;}();wv.defaults=sp(Ld);return wv;});!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports;}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r});},t.n=function(e){var n=e&&e.__esModule?function(){return e.default;}:function(){return e;};return t.d(n,"a",n),n;},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t);},t.p="",t(t.s=1);}([function(e,t){e.exports=jQuery;},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e};}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}var s=function(){function e(e,t){for(var n=0;n").addClass("parallax-mirror").css({visibility:"hidden",zIndex:n.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}).prependTo((0,u.default)(n.mirrorSelector)),a=s.find(n.sliderSelector);0===a.length?a=(0,u.default)("").attr("src",n.src):(n.formerParent=a.parent(),n.formerStyles=a.prop("style")),a.addClass("parallax-slider").prependTo(o),a.children("img").add(a).on("load",function(){e.update(!0);}),this.$s=a,this.$m=o}this.$w=s,this.o=n,"function"==typeof n.afterSetup&&n.afterSetup(this);}return s(e,[{key:"refresh",value:function(){var t=this.$w,n=this.o;n.dH=e.dH,n.dW=e.dW;var r=n.scrollingElement;if(r&&r!==document&&(n.dH=r.scrollHeight,n.dW=r.scrollWidth),n){n.aspectRatio||function(e,t){var n=0,r=0,i=0,s=0;if(0===e.children().each(function(){var e=(0,u.default)(this),t=e.offset(),o=t.top+e.outerHeight(),a=t.left+e.outerWidth();n=t.topr?o:r,s=a>s?a:s;}).length)t.aspectRatio=e[0].naturalWidth/(e[0].naturalHeight||1);else{var o=e.offset(),a=r-Math.max(n,o.top),f=s-Math.max(i,o.left);t.aspectRatio=f/(a||1)}}(this.$s,n);var i=n.aspectRatio||1;n.boxWidth=t.outerWidth(),n.boxHeight=t.outerHeight()+2*n.bleed,n.boxOffsetTop=t.offset().top-n.bleed,n.boxOffsetLeft=t.offset().left,n.boxOffsetBottom=n.boxOffsetTop+n.boxHeight;var s=e.wH,o=e.dH,a=Math.min(n.boxOffsetTop,o-s),f=Math.max(n.boxOffsetTop+n.boxHeight-s,0),l=n.boxHeight+(a-f)*(1-n.speed)|0,c=(n.boxOffsetTop-a)*(1-n.speed)|0,h=void 0;n.boxWidthn&&t.boxOffsetTop<=s?(t.visibility="visible",t.mirrorTop=t.boxOffsetTop-n,t.mirrorLeft=t.boxOffsetLeft-r,t.offsetTop=t.offsetBaseTop-t.mirrorTop*(1-t.speed)):t.visibility="hidden",this.$m.css({transform:"translate3d("+t.mirrorLeft+"px, "+(t.mirrorTop-i)+"px, 0px)",visibility:t.visibility,height:t.boxHeight,width:t.boxWidth}),this.$s.css({transform:"translate3d("+t.offsetLeft+"px, "+t.offsetTop+"px, 0px)",position:"absolute",height:t.imageHeight,width:t.imageWidth,maxWidth:"none"}),"function"==typeof t.afterRender&&t.afterRender(this);}},{key:"destroy",value:function(){if(this.$m&&this.$m.remove(),this.$s){for(var t=0;t0&&void 0!==arguments[0]&&arguments[0]&&u.default.each(e.iList,function(){this.refresh();}),u.default.each(e.iList,function(){this.render();});}}]),e;}();l.DEFAULTS={src:null,speed:.2,bleed:0,zIndex:-100,posX:"center",posY:"center",overScrollFix:!1,excludeAgents:/(iPod|iPhone|iPad|Android)/,aspectRatio:null,sliderSelector:">.parallax-slider",mirrorSelector:"body",scrollingSelector:null,afterRefresh:null,afterRender:null,afterSetup:null,afterDestroy:null},l.AUTOINIT=!0,l.sT=0,l.sL=0,l.wH=0,l.wW=0,l.dH=1<<30,l.dW=1<<30,l.iList=[],l.isSet=!1,(0,u.default)(function(){l.AUTOINIT&&(0,u.default)("[data-parallax]").parallax();}),(0,f.default)("parallax",l);},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="__"+e,s=o.default.fn[e];o.default.fn[e]=function(e){return this.each(function(){var n=(0,o.default)(this),s=n.data(r);if(s||"destroy"===e)"function"==typeof s.configure&&s.configure(options);else{var u=o.default.extend({},t.DEFAULTS,n.data(),"object"===(void 0===e?"undefined":i(e))&&e);n.data(r,s=new t(this,u))}"string"==typeof e&&("destroy"===e?(s.destroy(),n.data(r,!1)):s[e]());});},n&&(o.default[e]=function(t){return(0,o.default)({})[e](t);}),o.default.fn[e].noConflict=function(){return o.default.fn[e]=s;};}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e;}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e;};t.default=r;var s=n(0),o=function(e){return e&&e.__esModule?e:{"default":e};}(s);}]);var ajaxLoader=_STDO.get(".ajaxLoading")[0];var ajaxCount=0;var is_cms=document.body._attr_get("data-cms")=="true";$.ajaxSetup({noLoading:false,url:"",api:"",beforeSend:function(e,t){if(t.api&&t.api!=""){t.url="/api/"+encodeURIComponent(t.api)}},complete:function(e,t){if(is_cms&&t==="error"&&e.status==401&&!window.unauthorized){window.unauthorized=true;var n=confirm(_STDO.lng.get("no_session_text",true));document.body.style.display="none";if(n==true)window.location.href=window.location.origin+"/cms";else window.location.reload()}}});var toggleLoader=function(e){if(ajaxLoader){if(e){ajaxLoader._clss_add("visible");ajaxLoader._el_fade("in",200);if(!$(".modal-buttons").is("[invisible]")){$(".modal-buttons").hide();$(".modal-loader").show()}else{$(".shop-buttons .btns").hide();$(".shop-buttons .fa-spinner").show()}}else{ajaxLoader._clss_remove("visible");ajaxLoader._el_fade("out",200,function(){ajaxLoader.style.display="none";});if(!$(".modal-buttons").is("[invisible]")){$(".modal-loader").hide();$(".modal-buttons").show()}else{$(".shop-buttons .fa-spinner").hide();$(".shop-buttons .btns").show()}}}};$(document).ajaxSend(function(e,t,n){n.noLoading=n.noLoading||false;if(n.noLoading){return}ajaxCount++;toggleLoader(true);});$(document).ajaxComplete(function(e,t,n){n.noLoading=n.noLoading||false;if(n.noLoading){return}ajaxCount--;if(ajaxCount<=0){toggleLoader(false)}});var cms=$("body").attr("data-cms")==="true";var isDevelopment=window.Config.environment==="ONTW";var isAcceptance=window.Config.environment==="ACC";var cleanUrls=true;var settings=window.Settings;var searchResult=false;var currentLng=document.documentElement._attr_get("lang");$(document).ready(function(){f_init();});$(window).on("resize scroll",function(){f_fadeImageAlmostInViewport();});$(window).on("DOMContentLoaded load resize scroll",function(){f_scrollColor();f_toTopBtn();f_apiCountUp();f_apiProgress();f_initVideo();});$(window).on("resize",function(){f_calcImages();f_calcFotoblok();});$(document).on("click",".sitebtn[data-href]",function(e){e.preventDefault();var t=$(this).attr("data-href");if(t.indexOf("www.")>-1||t.indexOf("http")>-1)window.open(t,"_blank");else window.open(t,"_self");});$(document).on("click",".dropdown-menu[data-keep-open]",function(e){e.stopPropagation();});$(document).on("click",".navbar-collapse.in",function(e){if(f_sttngs("menuAutoCloseMobile")&&$(e.target).is("a:not(.dropdown-toggle)")){$(this).collapse("hide")}});$(document).on("click touchend",".toTopBtn",function(e){e.preventDefault();$("html, body").animate({scrollTop:0},500,"swing");});$(document).on("click",".toHome",function(e){e.preventDefault();window.location.href=window.location.origin;});$(document).on("click",".fo-close",function(e){e.preventDefault();var t=e.target.parentNode;var n=t._attr_get("obj-id");t.style.transition="none";t._el_fade("out","200",function(){_STDO.remove(t);window.localStorage.setItem("fo-"+n,true);});});$(document).on("swipeleft",".gallerySlide",function(e){var t=$(this).closest("[object-parent]").find(".galleryPreviewSlide.active").index()+1;f_showSlide($(this).closest("[object-parent]"),t);});$(document).on("swiperight",".gallerySlide",function(e){var t=$(this).closest("[object-parent]").find(".galleryPreviewSlide.active").index()-1;f_showSlide($(this).closest("[object-parent]"),t);});$(document).on("click",".galleryPrev, .galleryNext",function(e){e.preventDefault();var t=$(this).hasClass("galleryPrev")?-1:1;var n=$(this).closest("[object-parent]").find(".galleryPreviewSlide.active").index()+t;f_showSlide($(this).closest("[object-parent]"),n);});$(document).on("click",".galleryPreviewSlide",function(e){e.preventDefault();var t=$(this).index();f_showSlide($(this).closest("[object-parent]"),t);});$(document).on("click",".moreResults>a, .agendaCollapse>a",function(e){e.preventDefault();var t=$(this).find("i");if(t.hasClass("fa-caret-down")){t.removeClass("fa-caret-down");t.addClass("fa-caret-up")}else{t.removeClass("fa-caret-up");t.addClass("fa-caret-down")}});$(document).on("click",".moreResults>a, .sogtempCollapse>a",function(e){e.preventDefault();var t=$(this).find("i");if(t.hasClass("fa-caret-down")){t.removeClass("fa-caret-down");t.addClass("fa-caret-up")}else{t.removeClass("fa-caret-up");t.addClass("fa-caret-down")}});$(document).on("click",".scrollLink:not(.objectlink):not(objectlink), a[data-mce-href]",function(e){var t=$(this).attr("href");if(!t.startsWith("javascript")){e.preventDefault();var n=cleanUrls?"/":"";if(t.charAt(0)=="?"||t.charAt(0)=="/"){var r=t.split("#");if(r.length==2){var i=r[0].split("=")[1]||r[0].split("/")[1];t=(i.normalize("NFD").replace(/[\u0300-\u036f]/g,"")==$("body").attr("data-pag_code")?"":r[0].charAt(0)=="/"?r[0]:n+r[0])+"#"+r[1].split("_target")[0]}else{t=r[0].charAt(0)=="/"?r[0]:n+r[0]}if(t.charAt(0)=="#")f_scrollLink(t);else window.open(t,"_self")}else{if(t.startsWith("tel:")||t.startsWith("mailto:"))window.open(t,"_self");else window.open(t,"_blank")}}});$(document).on("click","objectlink",function(e){var t=e.target.tagName;var n=$(this).attr("href");var r=$(this).attr("target");var i=n.indexOf("_target")!==-1;if(i)n=n.substring(0,n.length-7);if(t!=="A"&&t!=="INPUT"&&t!=="BUTTON"&&!$(e.target.parentElement).is("[data-featherlight]")){if(n.charAt(0)=="#")f_scrollLink(n);else window.open(n,r)}});$(document).on("click",".menuLink",function(e){e.preventDefault();var t=$(this).attr("href");var n=$(this).attr("target");var r=t.indexOf("_target")!==-1;if(r)t=t.substring(0,t.length-7);if(t.charAt(0)=="#")f_scrollLink(t);else window.open(t,n);});$(document).on("click",".sog_langButton",function(e){e.preventDefault();f_setSiteLanguage($(this));});$(document).on("change",".timetable-header-select>select",function(e){var t=$(this).val();var n=$(this).closest(".timetable");var r=$(this).attr("data-tab");if(t=="-1"){n.find(".timetable-row-"+r).removeClass("hidden");n.find(".timetable-stage>h3").css("display","inline-block")}else{n.find(".timetable-row-"+r).addClass("hidden");n.find("#"+t+" .timetable-row-"+r).removeClass("hidden");n.find(".timetable-stage>h3").css("display","none");n.find("#"+t+">h3").css("display","inline-block")}});$(document).on("keyup",".sog_formInput[data-mailCheck], input[name=comment_email]",function(e){var t=$(this).val().trim();lng=t.length;if(lng>5){var n=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var r=n.test(t);if(!r)$(this).removeClass("greenBorder").addClass("redBorder");else $(this).removeClass("redBorder").addClass("greenBorder")}else{$(this).removeClass("redBorder greenBorder")}});$(document).on("submit dblclick",".sitesearch form:not(.obj-search)",function(e){e.preventDefault();e.stopPropagation();});$(document).on("input",".sitesearch input",function(){this.value=this.value.replace(/\s\s+/g," ").replace(/--/g,"-");});$(document).on("input",".sitesearch input[id^=search_][matcher]",function(e){e.preventDefault();if(window.searchTimeout!==null){clearTimeout(window.searchTimeout)}window.searchTimeout=setTimeout(function(){var t=_STDO.get(".results",e.target.closest(".sitesearch"))[0];var n=e.target.value;var r='
'+_STDO.lng.get("start-typing-menusearch",true)+"
";if(window.gettingSearchResults||n.length<3){t._html_set(r);return false}var i=[];t._html_set('
'+_STDO.lng.get("searching",true)+"
");f_getSearchResults(function(s){if(s.hasOwnProperty("stopwords")&&s.stopwords.length>0){var o=n.split(" ");var u=[];_STDO.loop(o,function(e,t){if(!s.stopwords.includes(t)){u.push(t)}});n=u.join(" ")}if(n.length<3){t._html_set(r);return false}i=f_searchJson(n,e.target._attr_get("matcher"),s);if(i&&i.length===0){t._html_set(r)}f_menusearchResult(t,i);});},500);});$(document).on("click",".datumpicker",function(e){e.preventDefault();f_datePicker($(this));});$(document).on("change",'.file_input input[type="file"]',function(e){var t=e.target.files||e.dataTransfer.files;if(t.length>0){var n=t[0].name;_STDO.get(".form-control",this.closest(".file_input"))[0].value=n}});$(document).on("submit",".sog_submitForm",function(e){e.preventDefault();var t=f_checkForms($(this));if(t){f_formSubmit($(this))}});$(document).on("submit",".sog_submitComment",function(e){e.preventDefault();var t=f_checkForms($(this));if(t){$(this).find("input[type=submit]").addClass("disabled");f_commentSubmit($(this))}});$(document).on("click","input[name=comment_react]",function(e){var t=$(this).closest("form").find("[name=comment_email]");var n=t.attr("placeholder");if(e.target.checked){t.addClass("requiredField");t.attr("placeholder",n+" *")}else{t.removeClass("requiredField");t.attr("placeholder",n.replace(" *",""))}});$(document).on("click",":not(.comment)>.comment-rating:not(.rating) > span",function(e){e.preventDefault();var t=5-$(this).index();$(this).addClass("on").siblings().removeClass("on");$(this).parent().attr("value",t);});$(document).on("click",".toggleHistory",function(e){e.preventDefault();var t=$(this).attr("data-agenda");if(t==="history"){$(this).html(_STDO.lng.get("agendaFuture",true));$(this).attr("data-agenda","future")}else{$(this).html(_STDO.lng.get("agendaHistory",true));$(this).attr("data-agenda","history")}$(this).parent().find(".history, .future").toggle();});$(document).on("click",".cont-indicators>span",function(){this.parentElement._data_get()["slider"].goTo(this._data_get()["to"]);});$(document).on("submit",".obj-search",function(e){e.preventDefault();var t=_STDO.get("input",this)[0].value.replace(/\s/g,"--");if(t!=""){var n=this._attr_get("action");var r=n.replace("{input}",t);window.location=r}});jQuery.fn.f_fadeIn=function(){this.addClass("viewport").animate({opacity:1},500);};$(function(){var e=$(".noCopyPaste");e.bind("paste",function(){return false;});e.bind("drop",function(){return false;});e.bind("cut",function(){return false;});e.bind("copy",function(){return false;});})