function getTime(){var n=new Date,t=n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate(),i=n.getHours()+":"+n.getMinutes()+":"+n.getSeconds();return t+" "+i}function detectWebcam(n){let t=navigator.mediaDevices;if(!t||!t.enumerateDevices)return n(!1);t.enumerateDevices().then(function(t){n(t.some(function(n){return"videoinput"===n.kind}))})}function addBodyDimm(n){var i=document.getElementById("body_overlay"),t=document.getElementById("kt_content");$(n).is(":checked")===!0?(i.style.display="inline",t.style.webkitFilter="blur(2px)",t.style.filter="blur(2px)"):(i.style.display="none",t.style.webkitFilter="none",t.style.filter="none")}function delay(n,t){var i=0;return function(){var r=this,u=arguments;clearTimeout(i);i=setTimeout(function(){n.apply(r,u)},t||0)}}function toggle(n){for(var i=document.getElementsByClassName("submenu"),t=0;t<i.length;t++)i[t].style.display=t===n-1&&i[t].style.display!=="block"?"block":"none"}function toggleElem(n){$(n).toggleClass("AxHidden")}function openModal(n,t){t=t||!1;t&&$("#"+n).modal({backdrop:"static"});$("#"+n).modal("show")}function showGoToChartModal(){Swal.fire({title:"TITLE",text:"TEXT",icon:"success",confirmButtonText:"<span><i class='la la-cart-arrow-down'><\/i><span>Add more tickets<\/span><\/span>",confirmButtonClass:"btn btn-primary",showCancelButton:!0,cancelButtonText:"<span><i class='la la-shopping-cart'><\/i><span>Go to cart<\/span><\/span>",cancelButtonClass:"btn btn-secondary",width:"500px"}).then(function(n){n.value===!0?window.location.href=confirmationReservationURL+"?reservationId="+result.ReservationId:location.reload()})}function block(n){KTApp.block(n,{overlayColor:"#000000",type:"spinner",state:"success",message:localisation.pleaseWait})}function unblock(n){KTApp.unblock(n)}function loadShoppingCart(){AxessViewer.loadPartialView("/ShoppingCart/ShoppingCartJson",{},function(n){n.success==!0&&updateShoppingCart(n.shoppingCart)},{silent:!0,skipShoppingCartReload:!0})}function updateShoppingCart(n){var t,i;if(n!=null){if(t=0,n.positions.length>0)for($(".shopping-cart-icon").addClass("kt-pulse"),i=0;i<n.positions.length;i++)t+=tmpEntry.Quantity;else $(".shopping-cart-icon").removeClass("kt-pulse");t>0?$(".shopping-cart-icon i.las.la-shopping-bag").attr("data-cnt",t):$(".shopping-cart-icon i.las.la-shopping-bag").removeAttr("data-cnt")}}function togglePassword(n){var t=$(n).next("input");t.attr("type")=="password"?t.attr("type","text"):t.attr("type","password")}function acceptCookie(){const n=new Date;n.setTime(n.getTime()+31536e6);const t=`; expires=${n.toUTCString()}`;document.cookie=`ax_cookie_policy=1${t}; path=/`;$(".ax-container").removeClass("cookie-check");$(".cookie__dialog, .cookie__bar").slideUp("slow")}function setCookie(n,t,i){var u=new Date,r=new Date;r.setTime(u.getTime()+864e5*i);document.cookie=n+"="+encodeURI(t)+";expires="+r.toGMTString()+"; path=/";isLocalHost()||(document.cookie+=";SameSite=None;Secure=true;")}function removeCookie(n){document.cookie=n+"=;expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function getCookie(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function isLocalHost(){return location.hostname=="localhost"||location.hostname==="127.0.0.1"}function LockButton(n){n.attr("disabled","disabled").addClass("loading")}function UnlockButton(n){n.removeAttr("disabled").removeClass("loading")}function DisableButton(n){n.attr("disabled","disabled")}function EnableButton(n){n.removeAttr("disabled")}function calcCurrencyString(n){return $.number(n,CulturInfo.currencyDecimalDigits,CulturInfo.currencyDecimalSeparator,CulturInfo.currencyGroupSeparator)}function createCountDown(n,t,i){var r=setInterval(function(){var h=i||(new Date).getTime(),u=n-h,e=Math.floor(u/864e5),o=Math.floor(u%864e5/36e5),s=Math.floor(u%36e5/6e4),c=Math.floor(u%6e4/1e3);let f="";e>0&&(f+=e+"d ");o>0&&(f+=o+"h ");s>0&&(f+=s+"m ");f+=c+"s ";$(t).html(f);u<0&&(clearInterval(r),$(t).html("Reservation expired"));i+=1e3},1e3)}function MatchWtpNumber(n){var t=n.match(/[GHJKLMNP]{1}[0-9ACDEFGHJKLMNPQRSTUWXYZ]{7}\-[0-9ACDEFGHJKLMNPQRSTUWXYZ]{3}\-[0-9ACDEFGHJKLMNPQRSTUWXYZ]{3}/);return t!=null&&t.length>0?{match:t,type:1,succ:!0}:(t=n.match(/Z[0-9ACDEFGHJKLMNPQRSTUWXYZ]{3}\-[0-9ACDEFGHJKLMNPQRSTUWXYZ]{4}\-[0-9ACDEFGHJKLMNPQRSTUWXYZ]{4}\-[0-9ACDEFGHJKLMNPQRSTUWXYZ]{4}/),t!=null&&t.length>0)?{match:t,type:3,succ:!0}:(t=n.match(/[0-9A-F]{8}\-[0-9A-F]{3}\-[0-9A-F]{3}/),t!=null&&t.length>0)?{match:t,type:2,succ:!0}:{match:t,type:0,succ:!1}}function checkWtpNumber(n,t,i,r){t=t||!1;i=i||"";r=r||!1;var u=$(n).val().trim(),f=MatchWtpNumber(u);return f.succ?($.ajax({url:"/en/ShoppingCart/CheckWtpNumber",data:{wtpNumber:u,positionId:$(n).attr("data-position-id"),rental:r},method:"POST",success:function(r){return($(n).nextAll("span").children("span").children("i").removeAttr("class"),r.valid===!0)?($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-valid"),$(""+i).removeAttr("disabled"),!0):($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-unvalid"),$(""+i).attr("disabled",!0),r.error!=null)?(t||swal.fire("Error",r.error),!1):void 0}}),!1):($(n).nextAll("span").children("span").children("i").removeAttr("class"),!1)}function checkOpenPassNumber(n,t){t=t||!1;var i=$(n).val().match(/([A-Z0-9]{4}\ [A-Z0-9]{4}\ [A-Z0-9]{4}\ [A-Z0-9]{4}\ [A-Z0-9]{4}\-[A-Z0-9]{3})/);return i!=null&&i.length>0?($.ajax({url:"/en/ShoppingCart/CheckOpenPassNumber",data:{openPassNumber:$(n).val(),positionId:$(n).attr("data-position-id")},method:"POST",success:function(i){return(i.personalized===!1?showPersonation(i.cartentryId):hidePersonation(i.cartentryId),$(n).nextAll("span").children("span").children("i").removeAttr("class"),i.valid===!0)?($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-valid"),!0):($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-unvalid"),i.valid===!1)?(t||i.error==null||swal.fire("Error",i.error),!1):void 0}}),!1):($(n).nextAll("span").children("span").children("i").removeAttr("class"),!1)}function checkDtaNumber(n,t){t=t||!1;var i=$(n).val().match(/(01)\-([0-9]{4}\ [0-9]{4}\ [0-9]{4}\ [0-9]{4}\ [0-9]{4}\-[0-9]{1})/);return i!=null&&i.length>0?($.ajax({url:"/en/ShoppingCart/CheckDtaNumber",data:{dtaNumber:$(n).val(),positionId:$(n).attr("data-position-id")},method:"POST",success:function(i){return(i.personalized===!1?showPersonation(i.cartentryId):hidePersonation(i.cartentryId),$(n).nextAll("span").children("span").children("i").removeAttr("class"),i.valid===!0)?($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-valid"),!0):($(n).nextAll("span").children("span").children("i").addClass("wtp-validation-unvalid"),i.valid===!1)?(t||i.error==null||swal.fire("Error",i.error),!1):void 0}}),!1):($(n).nextAll("span").children("span").children("i").removeAttr("class"),!1)}function checkProductGroupCalendar(n){let t=$(n).next(".gridder").find("input[name=hideDateSelection]").length!=0;t?$(".input-group-date-select").addClass("kt-hidden"):$(".input-group-date-select").removeClass("kt-hidden")}function formatDate(n){return n.toISOString().substring(0,10)}function addTooltip(n,t){$(n).tooltip({title:t,placement:"bottom"})}function showTooltip(n,t){addTooltip(n,t);$(n).tooltip("show")}function setDateInputMask(){$(".ciDatePattern").inputmask(ciDatePattern.replace(/[a-zA-Z]/g,"9"),{placeholder:ciDatePattern,removeMaskOnSubmit:!1})}function getTransform(n){var t=$(n).css("-webkit-transform").match(/matrix(?:(3d)\(\d+(?:, \d+)*(?:, (\d+))(?:, (\d+))(?:, (\d+)), \d+\)|\(\d+(?:, \d+)*(?:, (\d+))(?:, (\d+))\))/);return t?t[1]=="3d"?t.slice(2,5):(t.push(0),t.slice(5,8)):[0,0,0]}function checkProductSelectionAnchor(){var n=$(location).attr("hash");if(n!=""&&n.indexOf("#pg")===0){let t=n.substring(3);$("#ticketGroup_"+t).length>0&&$("#ticketGroup_"+t).collapse("show")}else n==""?$(".ticketgroup__categories button.productGroupAll").length>0?openAllProductCats():$("div.ticketGroupCollapse").length>0&&$($("div.ticketGroupCollapse")[0]).collapse("show"):n=="#all"&&openAllProductCats()}function openAllProductCats(){$("div.ticketGroupCollapse").removeData("bs.collapse").collapse({parent:"",toggle:!1}).collapse("show").removeData("bs.collapse").collapse({parent:"#tickets_holder",toggle:!1});$(".ticketgroup__categories button.ticketGroupButton.ticketGroupCollapse").addClass("collapsed");$(".ticketgroup__categories button.productGroupAll").removeClass("collapsed")}function showTargetLoader(n,t){var i=$.extend(!0,{opacity:.15,state:"brand",message:t},i);KTApp.block(n,i)}function hideTargetLoader(n){KTApp.unblock(n)}function loadIntoAlert(n,t){showTargetLoader("body");$.post("/"+cultureInfo+"/ShoppingCart/_SuggestedPersonTypes","suggestedPersons="+n+"&cartEntryID="+t,function(n){hideTargetLoader("body");Swal.fire({title:localisation.selectPersonType,icon:"info",html:n,showCloseButton:!0,showCancelButton:!1,showConfirmButton:!1,focusConfirm:!1,customClass:{title:"swal2-title-hidden"}})})}function loadIntoModal(n,t,i,r){$.post("/"+cultureInfo+n,i,function(n){$("#kt_modal_"+t+"_body").html(n.view);$("#kt_modal_"+t).modal({backdrop:"static",keyboard:!1});r!==undefined&&$("#kt_modal_"+t).css("z-index",r)})}function hideAllModals(){$("#kt_modal_sm").modal("hide");$("#kt_modal_md").modal("hide");$("#kt_modal_lg").modal("hide");$("#kt_modal_xl").modal("hide");$(".modal-body").html("")}function setModalFullHeight(n){$("#kt_modal_"+n+" > div").css("height","95%");$("#kt_modal_"+n+" > div > div").css("height","95%")}function changePersonType(n,t){showTargetLoader(".swal2-container");$.post("/"+cultureInfo+"/ShoppingCart/ChangeCartEntryPersonType","personTypeId="+n+"&cartEntryID="+t,function(){hideTargetLoader(".swal2-container");removeCartEntry(t);Swal.close()})}function removeCartEntry(n){showTargetLoader("body");AxessViewer.loadPartialView("/ShoppingCart/RemoveCartPosition",{targetPositionId:n},void 0,{reload:!0});AxLoad.LoadModule("AxGA4Module",{event:"Refresh ShoppingCart entries",caller:"Refresh ShoppingCart entries"})}function wizard2Next(n,t){t&&n.find("[data-wizard-state=current]").addClass("accepted");n.find("[data-wizard-state=current]").addClass("accepted").removeAttr("data-wizard-state").next().attr("data-wizard-state","current")}function addTooltip(n,t){$(n).tooltip({title:t,placement:"bottom"})}function showTooltip(n,t){addTooltip(n,t);$(n).tooltip("show")}function setDateInputMask(){$(".ciDatePattern").inputmask(ciDatePattern.replace(/[a-zA-Z]/g,"9"),{placeholder:ciDatePattern,removeMaskOnSubmit:!1})}function checkEmailConfirm(n){$(n+" input[name=Email]").val()==$(n+" input[name=EmailConfirm]").val()?($(n+" input[name=EmailConfirm]").tooltip("disable"),$(n+" input[name=EmailConfirm]").parent().removeClass("markerInvalid"),$(n+" input[name=EmailConfirm]").parent().addClass("markerValid")):($(n+" input[name=EmailConfirm]").parent().removeClass("markerValid"),$(n+" input[name=EmailConfirm]").parent().addClass("markerInvalid"))}function checkEmailConfirm(n){$(n+" input[type=email]").val()==$(n+" input[name=EmailConfirm]").val()?($(n+" input[name=EmailConfirm]").parent().removeClass("markerInvalid"),$(n+" input[name=EmailConfirm]").parent().addClass("markerValid")):($(n+" input[name=EmailConfirm]").parent().removeClass("markerValid"),$(n+" input[name=EmailConfirm]").parent().addClass("markerInvalid"))}function validateEmail(n){return/^(([^<>()[\]\\.,;:\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,}))$/.test(String(n).toLowerCase())}var ps,vh;$(document).ready(function(){$("input.big-datepicker + .input-group-append").click(function(){$(this).prev().focus()});$(".dropdown-hover").mouseenter(function(){$(this).dropdown("toggle")});$(".dropdown-hover").mouseleave(function(){$(this).dropdown("toggle")});$(".dropdown-hover").click(function(){window.open($(this).attr("data-link"),"_self")});$('a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(n){var t,i,r;location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname&&(n.preventDefault(),t=$(this.hash),t=t.length?t:$("[name="+this.hash.slice(1)+"]"),t.length&&(i=$(".ax-header--mobile").height()??0,i<0&&(i=$(".ax-header").height()??0),r=t.offset().top-i,$("html, body").animate({scrollTop:r},500,function(){var n=$(t);return n.focus(),!1})))});$("#ticketgroup__filter").on("hide.bs.collapse",function(){let n;n=$("button.productGroupAll").length==0||$("button.productGroupAll").hasClass("collapsed")?$(".ticketGroupButton[aria-expanded=true]").html():$("button.productGroupAll").html();$(".ticketgroup__filter__placeholder").html(n)});$("#ticketgroup__filter").on("show.bs.collapse",function(){$(".ticketgroup__filter__placeholder").html("")})});$(document).ready(function(){$(".kt-mycart__body").length&&(ps=new PerfectScrollbar(".kt-mycart__body",{wheelPropagation:!1}));$(".cookie__bar").length>0&&setTimeout(function(){$(".cookie__bar").slideDown("slow")},1e3)});$(".shoppingCart-widget-toggle").click(function(){setTimeout(function(){ps.update()},200)});$("#body_overlay").click(function(){$(".open-sidebar-menu").click()});$(".ticketGroupCollapse").on("show.bs.collapse",function(){checkProductGroupCalendar(this)});const scrollToTop=function(){const n=document.documentElement.scrollTop||document.body.scrollTop;n>0&&(window.requestAnimationFrame(scrollToTop),window.scrollTo(0,n-n/8))};$(document).ready(function(){setDateInputMask()});toastr.options={closeButton:!1,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-bottom-center",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"3000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var AxessAddedJS=[],AxessLoadJSDynamically=function(n,t){var i=function(n,t){var r=n.shift(),f=window.base_uri,u="Scripts/";r.indexOf("/")==0&&(u="");0==r.indexOf("EXT:")?(r=r.split(":").pop(),u="",f=""):0==r.indexOf("ASP:")?(r=r.split(":").pop(),u=""):0==r.indexOf("BUNDLE:")?(r=r.split(":").pop(),u=""):r+=".js";n.length==0?(AxessAddedJS.indexOf(r)==-1?$.getScript(f+u+r,function(){AxessCallCallback(t)}):AxessCallCallback(t),AxessAddedJS.push(r)):(AxessAddedJS.indexOf(r)==-1?$.getScript(f+u+r,function(){i(n,t)}):i(n,t),AxessAddedJS.push(r))};i(n.split(","),t)},AxessCallCallback=function(n){try{n()}catch(t){window.setTimeout(function(){},500)}};(function(n,t){var i=n(t);n.fn.lazyload=function(r){function e(){var t=0;f.each(function(){var i=n(this);if((!u.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,u)&&!n.leftofbegin(this,u))if(n.belowthefold(this,u)||n.rightoffold(this,u)){if(++t>u.failure_limit)return!1}else i.trigger("appear")})}var f=this,o,u={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return r&&(undefined!==r.failurelimit&&(r.failure_limit=r.failurelimit,delete r.failurelimit),undefined!==r.effectspeed&&(r.effect_speed=r.effectspeed,delete r.effectspeed),n.extend(u,r)),o=u.container===undefined||u.container===t?i:n(u.container),0===u.event.indexOf("scroll")&&o.bind(u.event,function(){return e()}),this.each(function(){var i=this,t=n(i);i.loaded=!1;t.one("appear",function(){var r,e;this.loaded||(u.appear&&(r=f.length,u.appear.call(i,r,u)),e=t.data("background")?t.data("background"):t.data(u.data_attribute),n("<img />").bind("load",function(){var r,e;t.hide();t.data("background")?t.css("backgroundImage","url('"+t.data("background")+"')"):t.attr("src",t.data(u.data_attribute));t[u.effect](u.effect_speed);i.loaded=!0;r=n.grep(f,function(n){return!n.loaded});f=n(r);u.load&&(e=f.length,u.load.call(i,e,u))}).attr("src",e))});0!==u.event.indexOf("scroll")&&t.bind(u.event,function(){i.loaded||t.trigger("appear")})}),i.bind("resize",function(){e()}),e(),this};n.belowthefold=function(r,u){var f;return f=u.container===undefined||u.container===t?i.height()+i.scrollTop():n(u.container).offset().top+n(u.container).height(),f<=n(r).offset().top-u.threshold};n.rightoffold=function(r,u){var f;return f=u.container===undefined||u.container===t?i.width()+i.scrollLeft():n(u.container).offset().left+n(u.container).width(),f<=n(r).offset().left-u.threshold};n.abovethetop=function(r,u){var f;return f=u.container===undefined||u.container===t?i.scrollTop():n(u.container).offset().top,f>=n(r).offset().top+u.threshold+n(r).height()};n.leftofbegin=function(r,u){var f;return f=u.container===undefined||u.container===t?i.scrollLeft():n(u.container).offset().left,f>=n(r).offset().left+u.threshold+n(r).width()};n.inviewport=function(t,i){return!n.rightofscreen(t,i)&&!n.leftofscreen(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return!n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})})(jQuery,window);vh=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${vh}px`);window.addEventListener("resize",()=>{var n=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${n}px`)});$(document).ready(function(){$("#infobtn").popover();$("#infobtnselection").popover();$("#infobtnpackage").popover()})