PageSourceSearch

https://data.manufaktura.cz/web/build/app.724392c9.js

js manufaktura.cz collected 2026-09-26 05:55:02 UTC 141,450 bytes, 2 lines download raw bytes

1/*! For license information please see app.724392c9.js.LICENSE.txt */
2(self.webpackChunkwpjshop=self.webpackChunkwpjshop||[]).push([[524],{2488:function(t,e,n){"use strict";n.r(e)},1236:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}!function(e){e.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var n=document.createElement("div"),o={};function i(t){if(t in n.style)return t;for(var e=["Moz","Webkit","O","ms"],o=t.charAt(0).toUpperCase()+t.substr(1),i=0;i<e.length;++i){var r=e[i]+o;if(r in n.style)return r}}function r(){return n.style[o.transform]="",n.style[o.transform]="rotateY(90deg)",""!==n.style[o.transform]}var a=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;o.transition=i("transition"),o.transitionDelay=i("transitionDelay"),o.transform=i("transform"),o.transformOrigin=i("transformOrigin"),o.filter=i("Filter"),o.transform3d=r();var s={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"},c=o.transitionEnd=s[o.transition]||null;for(var l in o)o.hasOwnProperty(l)&&void 0===e.support[l]&&(e.support[l]=o[l]);function u(t){return"string"==typeof t&&this.parse(t),this}function d(t,e,n){!0===e?t.queue(n):e?t.queue(e,n):t.each((function(){n.call(this)}))}function p(t){var n=[];return e.each(t,(function(t){t=e.camelCase(t),t=h(t=e.transit.propertyMap[t]||e.cssProps[t]||t),o[t]&&(t=h(o[t])),-1===e.inArray(t,n)&&n.push(t)})),n}function f(t,n,o,i){var r=p(t);e.cssEase[o]&&(o=e.cssEase[o]);var a=g(n)+" "+o;parseInt(i,10)>0&&(a+=" "+g(i));var s=[];
2return e.each(r,(function(t,e){s.push(e+" "+a)})),s.join(", ")}function m(t,n){n||(e.cssNumber[t]=!0),e.transit.propertyMap[t]=o.transform,e.cssHooks[t]={get:function(n){return e(n).css("transit:transform").get(t)},set:function(n,o){var i=e(n).css("transit:transform");i.setFromString(t,o),e(n).css({"transit:transform":i})}}}function h(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function v(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+e:t}function g(t){var n=t;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n=e.fx.speeds[n]||e.fx.speeds._default),v(n,"ms")}n=null,e.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},e.cssHooks["transit:transform"]={get:function(t){return e(t).data("transform")||new u},set:function(t,n){var i=n;i instanceof u||(i=new u(i)),"WebkitTransform"!==o.transform||a?t.style[o.transform]=i.toString():t.style[o.transform]=i.toString(!0),e(t).data("transform",i)}},e.cssHooks.transform={set:e.cssHooks["transit:transform"].set},e.cssHooks.filter={get:function(t){return t.style[o.filter]},set:function(t,e){t.style[o.filter]=e}},e.fn.jquery<"1.8"&&(e.cssHooks.transformOrigin={get:function(t){return t.style[o.transformOrigin]},set:function(t,e){t.style[o.transformOrigin]=e}},e.cssHooks.transition={get:function(t){return t.style[o.transition]},set:function(t,e){t.style[o.transition]=e}}),m("scale"),m("scaleX"),m("scaleY"),m("translate"),m("rotate"),m("rotateX"),m("rotateY"),m("rotate3d"),m("perspective"),m("skewX"),m("skewY"),m("x",!0),m("y",!0),u.prototype={setFromString:function(t,e){var n="string"==typeof e?e.split(","):e.constructor===Array?e:[e];n.unshift(t),u.prototype.set.apply(this,n)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);this.setter[t]?this.setter[t].apply(this,e):this[t]=e.join(",")},get:function(t){return this.getter[t]?this.getter[t].apply(this):this[t]||0},setter:{rotate:function(t){this.rotate=v(t,"deg")},rotateX:function(t){this.rotateX=v(t,"deg")},rotateY:function(t){this.rotateY=v(t,"deg")},scale:function(t,e){void 0===e&&(e=t),this.scale=t+","+e},skewX:function(t){this.skewX=v(t,"deg")},skewY:function(t){this.skewY=v(t,"deg")},perspective:function(t){this.perspective=v(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!=t&&(this._translateX=v(t,"px")),null!=e&&(this._translateY=v(e,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");return t[0]&&(t[0]=parseFloat(t[0])),t[1]&&(t[1]=parseFloat(t[1])),t[0]===t[1]?t[0]:t},rotate3d:function(){for(var t=(this.rotate3d||"0,0,0,0deg").split(","),e=0;e<=3;++e)t[e]&&(t[e]=parseFloat(t[e]));return t[3]&&(t[3]=v(t[3],"deg")),t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,(function(t,n,o){e.setFromString(n,o)}))},toString:function(t){var e=[];for(var n in this)if(this.hasOwnProperty(n)){if(!o.transform3d&&("rotateX"===n||"rotateY"===n||"perspective"===n||"transformOrigin"===n))continue;"_"!==n[0]&&(t&&"scale"===n?e.push(n+"3d("+this[n]+",1)"):t&&"translate"===n?e.push(n+"3d("+this[n]+",0)"):e.push(n+"("+this[n]+")"))}return e.join(" ")}},e.fn.transition=e.fn.transit=function(n,i,r,a){var s=this,l=0,u=!0,p=e.extend(!0,{},n);"function"==typeof i&&(a=i,i=void 0),"object"===t(i)&&(r=i.easing,l=i.delay||0,u=void 0===i.queue||i.queue,a=i.complete,i=i.duration),"function"==typeof r&&(a=r,r=void 0),void 0!==p.easing&&(r=p.easing,delete p.easing),void 0!==p.duration&&(i=p.duration,delete p.duration),void 0!==p.complete&&(a=p.complete,delete p.complete),void 0!==p.queue&&(u=p.queue,delete p.queue),void 0!==p.delay&&(l=p.delay,delete p.delay),void 0===i&&(i=e.fx.speeds._default),void 0===r&&(r=e.cssEase._default),i=g(i);var m=f(p,i,r,l),h=e.transit.enabled&&o.transition?parseInt(i,10)+parseInt(l,10):0;if(0===h){var v=function(t){s.css(p),a&&a.apply(s),t&&t()};return d(s,u,v),s}var y={},w=function(t){var n=!1,i=function e(){n&&s.unbind(c,e),h>0&&s.each((function(){this.style[o.transition]=y[this]||null})),"function"==typeof a&&a.apply(s),"function"==typeof t&&t()};h>0&&c&&e.transit.useTransitionEnd?(n=!0,s.bind(c,i)):window.setTimeout(i,h),s.each((function(){h>0&&(this.style[o.transition]=m),e(this).css(p)}))};return d(s,u,(function(t){this.offsetWidth,w(t)})),this},e.transit.getTransitionValue=f}(window.jQuery),function(t){function e(e,n,o,i,r){t.fx.off&&(n=0),this.css({display:"block"});var a=this.height(),s=this.width(),c=this.css("opacity");return this.stop(!0,!1).css({overflow:"hidden",height:/slideDown/.test(e)?0:a}).transit({height:/slideDown|show/.test(e)?a:0,width:r?"show"===e?s:0:"",opacity:r?"hide"===e?0:1:c},n,o,(function(){this.css({overflow:"",height:"",display:/slideUp|hide/.test(e)?"none":"",opacity:/slide(Down|Up)/.test(e)?"":"show"===e?1:0,width:/slide(Down|Up)/.test(e)?"":"show"===e?s:0}),i&&i.call(this)}))}t.each(["slideDown","slideUp","showTransit","hideTransit"],(function(n,o){t.fn[o]=function(t,n,i){return e.call(this,o,t,n,i,/show|hide/.test(o)),this}}))}(window.jQuery)},8444:function(t,e,n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";return function(t,e){var n,o,i,r,a,s,c,l,u,d,p,f,m,h,v,g,y,w,b=this,x=!1,k=!0,C=!0,S={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].innerHTML=t.title,!0):(e.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl
2:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return t.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return t.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},E=function(t){if(g)return!0;t=t||window.event,v.timeToIdle&&v.mouseUsed&&!u&&L();for(var n,o,i=(t.target||t.srcElement).getAttribute("class")||"",r=0;r<H.length;r++)(n=H[r]).onTap&&i.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){t.stopPropagation&&t.stopPropagation(),g=!0;var a=e.features.isOldAndroid?600:30;setTimeout((function(){g=!1}),a)}},_=function(){return!t.likelyTouchDevice||v.mouseUsed||screen.width>v.fitControlsWidth},I=function(t,n,o){e[(o?"add":"remove")+"Class"](t,"pswp__"+n)},j=function(){var t=1===v.getNumItemsFn();t!==h&&(I(o,"ui--one-slide",t),h=t)},T=function(){I(c,"share-modal--hidden",C)},A=function(){return(C=!C)?(e.removeClass(c,"pswp__share-modal--fade-in"),setTimeout((function(){C&&T()}),300)):(T(),setTimeout((function(){C||e.addClass(c,"pswp__share-modal--fade-in")}),30)),C||O(),!1},$=function(e){var n=(e=e||window.event).target||e.srcElement;return t.shout("shareLinkClick",e,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),C||A(),1))},O=function(){for(var t,e,n,o,i="",r=0;r<v.shareButtons.length;r++)t=v.shareButtons[r],e=v.getImageURLForShare(t),n=v.getPageURLForShare(t),o=v.getTextForShare(t),i+='<a href="'+t.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+t.id+'"'+(t.download?"download":"")+">"+t.label+"</a>",v.parseShareButtonOut&&(i=v.parseShareButtonOut(t,i));c.children[0].innerHTML=i,c.children[0].onclick=$},D=function(t){for(var n=0;n<v.closeElClasses.length;n++)if(e.hasClass(t,"pswp__"+v.closeElClasses[n]))return!0},P=0,L=function(){clearTimeout(w),P=0,u&&b.setIdle(!1)},F=function(t){var e=(t=t||window.event).relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||(clearTimeout(w),w=setTimeout((function(){b.setIdle(!0)}),v.timeToIdleOutside))},R=function(){v.fullscreenEl&&!e.features.isOldAndroid&&(n||(n=b.getFullscreenAPI()),n?(e.bind(document,n.eventK,b.updateFullscreen),b.updateFullscreen(),e.addClass(t.template,"pswp--supports-fs")):e.removeClass(t.template,"pswp--supports-fs"))},z=function(){v.preloaderEl&&(M(!0),d("beforeChange",(function(){clearTimeout(m),m=setTimeout((function(){t.currItem&&t.currItem.loading?(!t.allowProgressiveImg()||t.currItem.img&&!t.currItem.img.naturalWidth)&&M(!1):M(!0)}),v.loadingIndicatorDelay)})),d("imageLoadComplete",(function(e,n){t.currItem===n&&M(!0)})))},M=function(t){f!==t&&(I(p,"preloader--active",!t),f=t)},N=function(t){var n=t.vGap;if(_()){var a=v.barsSize;if(v.captionEl&&"auto"===a.bottom)if(r||((r=e.createEl("pswp__caption pswp__caption--fake")).appendChild(e.createEl("pswp__caption__center")),o.insertBefore(r,i),e.addClass(o,"pswp__ui--fit")),v.addCaptionHTMLFn(t,r,!0)){var s=r.clientHeight;n.bottom=parseInt(s,10)||44}else n.bottom=a.top;else n.bottom="auto"===a.bottom?0:a.bottom;n.top=a.top}else n.top=n.bottom=0},U=function(){v.timeToIdle&&d("mouseUsed",(function(){e.bind(document,"mousemove",L),e.bind(document,"mouseout",F),y=setInterval((function(){2==++P&&b.setIdle(!0)}),v.timeToIdle/2)}))},q=function(){var t;d("onVerticalDrag",(function(t){k&&t<.95?b.hideControls():!k&&t>=.95&&b.showControls()})),d("onPinchClose",(function(e){k&&e<.9?(b.hideControls(),t=!0):t&&!k&&e>.9&&b.showControls()})),d("zoomGestureEnded",(function(){(t=!1)&&!k&&b.showControls()}))},H=[{name:"caption",option:"captionEl",onInit:function(t){i=t}},{name:"share-modal",option:"shareEl",onInit:function(t){c=t},onTap:function(){A()}},{name:"button--share",option:"shareEl",onInit:function(t){s=t},onTap:function(){A()}}
2,{name:"button--zoom",option:"zoomEl",onTap:t.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(t){a=t}},{name:"button--close",option:"closeEl",onTap:t.close},{name:"button--arrow--left",option:"arrowEl",onTap:t.prev},{name:"button--arrow--right",option:"arrowEl",onTap:t.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(t){p=t}}],B=function(){var t,n,i,r=function(o){if(o)for(var r=o.length,a=0;a<r;a++){t=o[a],n=t.className;for(var s=0;s<H.length;s++)i=H[s],n.indexOf("pswp__"+i.name)>-1&&(v[i.option]?(e.removeClass(t,"pswp__element--disabled"),i.onInit&&i.onInit(t)):e.addClass(t,"pswp__element--disabled"))}};r(o.children);var a=e.getChildByClass(o,"pswp__top-bar");a&&r(a.children)};b.init=function(){e.extend(t.options,S,!0),v=t.options,o=e.getChildByClass(t.scrollWrap,"pswp__ui"),d=t.listen,q(),d("beforeChange",b.update),d("doubleTap",(function(e){var n=t.currItem.initialZoomLevel;t.getZoomLevel()!==n?t.zoomTo(n,e,333):t.zoomTo(v.getDoubleTapZoom(!1,t.currItem),e,333)})),d("preventDragEvent",(function(t,e,n){var o=t.target||t.srcElement;o&&o.getAttribute("class")&&t.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)})),d("bindEvents",(function(){e.bind(o,"pswpTap click",E),e.bind(t.scrollWrap,"pswpTap",b.onGlobalTap),t.likelyTouchDevice||e.bind(t.scrollWrap,"mouseover",b.onMouseOver)})),d("unbindEvents",(function(){C||A(),y&&clearInterval(y),e.unbind(document,"mouseout",F),e.unbind(document,"mousemove",L),e.unbind(o,"pswpTap click",E),e.unbind(t.scrollWrap,"pswpTap",b.onGlobalTap),e.unbind(t.scrollWrap,"mouseover",b.onMouseOver),n&&(e.unbind(document,n.eventK,b.updateFullscreen),n.isFullscreen()&&(v.hideAnimationDuration=0,n.exit()),n=null)})),d("destroy",(function(){v.captionEl&&(r&&o.removeChild(r),e.removeClass(i,"pswp__caption--empty")),c&&(c.children[0].onclick=null),e.removeClass(o,"pswp__ui--over-close"),e.addClass(o,"pswp__ui--hidden"),b.setIdle(!1)})),v.showAnimationDuration||e.removeClass(o,"pswp__ui--hidden"),d("initialZoomIn",(function(){v.showAnimationDuration&&e.removeClass(o,"pswp__ui--hidden")})),d("initialZoomOut",(function(){e.addClass(o,"pswp__ui--hidden")})),d("parseVerticalMargin",N),B(),v.shareEl&&s&&c&&(C=!0),j(),U(),R(),z()},b.setIdle=function(t){u=t,I(o,"ui--idle",t)},b.update=function(){k&&t.currItem?(b.updateIndexIndicator(),v.captionEl&&(v.addCaptionHTMLFn(t.currItem,i),I(i,"caption--empty",!t.currItem.title)),x=!0):x=!1,C||A(),j()},b.updateFullscreen=function(o){o&&setTimeout((function(){t.setScrollOffset(0,e.getScrollY())}),50),e[(n.isFullscreen()?"add":"remove")+"Class"](t.template,"pswp--fs")},b.updateIndexIndicator=function(){v.counterEl&&(a.innerHTML=t.getCurrentIndex()+1+v.indexIndicatorSep+v.getNumItemsFn())},b.onGlobalTap=function(n){var o=(n=n||window.event).target||n.srcElement;if(!g)if(n.detail&&"mouse"===n.detail.pointerType){if(D(o))return void t.close();e.hasClass(o,"pswp__img")&&(1===t.getZoomLevel()&&t.getZoomLevel()<=t.currItem.fitRatio?v.clickToCloseNonZoomable&&t.close():t.toggleDesktopZoom(n.detail.releasePoint))}else if(v.tapToToggleControls&&(k?b.hideControls():b.showControls()),v.tapToClose&&(e.hasClass(o,"pswp__img")||D(o)))return void t.close()},b.onMouseOver=function(t){var e=(t=t||window.event).target||t.srcElement;I(o,"ui--over-close",D(e))},b.hideControls=function(){e.addClass(o,"pswp__ui--hidden"),k=!1},b.showControls=function(){k=!0,x||b.update(),e.removeClass(o,"pswp__ui--hidden")},b.supportsFullscreen=function(){var t=document;return!!(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen)},b.getFullscreenAPI=function(){var e,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){if(l=v.closeOnScroll,v.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return t.template[this.enterK]();t.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return v.closeOnScroll=l,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}})?o.call(e,n,e,t):o)||(t.exports=i)},4040:function(t,e,n){var o,i;function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}o=function(){"use strict";var t=function(t,e,n,o){var i={features:null,bind:function(t,e,n,o){var i=(o?"remove":"add")+"EventListener";e=e.split(" ");for(var r=0;r<e.length;r++)e[r]&&t[i](e[r],n,!1)},isArray:function(t){return t instanceof Array},createEl:function(t,e){var n=document.createElement(e||"div");return t&&(n.className=t),n},getScrollY:function(){var t=window.pageYOffset;return void 0!==t?t:document.documentElement.scrollTop},unbind:function(t,e,n){i.bind(t,e,n,!0)},removeClass:function(t,e){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(t,e){i.hasClass(t,e)||(t.className+=(t.className?" ":"")+e)},hasClass:function(t,e){return t.className&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},getChildByClass:function(t,e){for(var n=t.firstChild;n;){if(i.hasClass(n,e))return n;n=n.nextSibling}},arraySearch:function(t,e,n){for(var o=t.length;o--;)if(t[o][n]===e)return o;return-1},extend:function(t,e,n){for(var o in e)if(e.hasOwnProperty(o)){if(n&&t.hasOwnProperty(o))continue;t[o]=e[o]}},easing:{sine:{out:function(t){return Math.sin(t*(Math.PI/2))},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},cubic:{out:function(t){return--t*t*t+1}}},detectFeatures:function(){if(i.features)return i.features;var t=i.createEl().style,e="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var o=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<8&&(n.isOldIOSPhone=!0)}var a=o.match(/Android\s([0-9\.]*)/),s=a?a[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(n.isOldAndroid=!0),n.androidVersion=s),n.isMobileOpera=/opera mini|o
2pera mobi/i.test(o)}for(var c,l,u=["transform","perspective","animationName"],d=["","webkit","Moz","ms","O"],p=0;p<4;p++){e=d[p];for(var f=0;f<3;f++)c=u[f],l=e+(e?c.charAt(0).toUpperCase()+c.slice(1):c),!n[c]&&l in t&&(n[c]=l);e&&!n.raf&&(e=e.toLowerCase(),n.raf=window[e+"RequestAnimationFrame"],n.raf&&(n.caf=window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"]))}if(!n.raf){var m=0;n.raf=function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-m)),o=window.setTimeout((function(){t(e+n)}),n);return m=e+n,o},n.caf=function(t){clearTimeout(t)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=n,n}};i.detectFeatures(),i.features.oldIE&&(i.bind=function(t,e,n,o){e=e.split(" ");for(var i,a=(o?"detach":"attach")+"Event",s=function(){n.handleEvent.call(n)},c=0;c<e.length;c++)if(i=e[c])if("object"===r(n)&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=s;t[a]("on"+i,n["oldIE"+i])}else t[a]("on"+i,n)});var a=this,s=25,c=3,l={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!1,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(t){return"A"===t.tagName},getDoubleTapZoom:function(t,e){return t||e.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(l,o);var u,d,p,f,m,h,v,g,y,w,b,x,k,C,S,E,_,I,j,T,A,$,O,D,P,L,F,R,z,M,N,U,q,H,B,Z,W,K,G,Y,X,V,Q,J,tt,et,nt,ot,it,rt,at,st,ct,lt,ut,dt,pt=function(){return{x:0,y:0}},ft=pt(),mt=pt(),ht=pt(),vt={},gt=0,yt={},wt=pt(),bt=0,xt=!0,kt=[],Ct={},St=!1,Et=function(t,e){i.extend(a,e.publicMethods),kt.push(t)},_t=function(t){var e=tn();return t>e-1?t-e:t<0?e+t:t},It={},jt=function(t,e){return It[t]||(It[t]=[]),It[t].push(e)},Tt=function(t){var e=It&&It[t];if(e){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<e.length;o++)e[o].apply(a,n)}},At=function(){return(new Date).getTime()},$t=function(t){lt=t,a.bg.style.opacity=t*l.bgOpacity},Ot=function(t,e,n,o,i){(!St||i&&i!==a.currItem)&&(o/=i?i.fitRatio:a.currItem.fitRatio),t[$]=x+e+"px, "+n+"px"+k+" scale("+o+")"},Dt=function(t){it&&(t&&(w>a.currItem.fitRatio?St||(pn(a.currItem,!1,!0),St=!0):St&&(pn(a.currItem),St=!1)),Ot(it,ht.x,ht.y,w))},Pt=function(t){t.container&&Ot(t.container.style,t.initialPosition.x,t.initialPosition.y,t.initialZoomLevel,t)},Lt=function(t,e){e[$]=x+t+"px, 0px"+k},Ft=function(t,e){if(!l.loop&&e){var n=f+(wt.x*gt-t)/wt.x,o=Math.round(t-we.x);(n<0&&o>0||n>=tn()-1&&o<0)&&(t=we.x+o*l.mainScrollEndFriction)}we.x=t,Lt(t,m)},Rt=function(t,e){var n=be[t]-yt[t];return mt[t]+ft[t]+n-n*(e/b)},zt=function(t,e){t.x=e.x,t.y=e.y,e.id&&(t.id=e.id)},Mt=function(t){t.x=Math.round(t.x),t.y=Math.round(t.y)},Nt=null,Ut=function e(){Nt&&(i.unbind(document,"mousemove",e),i.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,Tt("mouseUsed")),Nt=setTimeout((function(){Nt=null}),100)},qt=function(){i.bind(document,"keydown",a),N.transform&&i.bind(a.scrollWrap,"click",a),l.mouseUsed||i.bind(document,"mousemove",Ut),i.bind(window,"resize scroll orientationchange",a),Tt("bindEvents")},Ht=function(){i.unbind(window,"resize scroll orientationchange",a),i.unbind(window,"scroll",y.scroll),i.unbind(document,"keydown",a),i.unbind(document,"mousemove",Ut),N.transform&&i.unbind(a.scrollWrap,"click",a),G&&i.unbind(window,v,a),clearTimeout(U),Tt("unbindEvents")},Bt=function(t,e){var n=cn(a.currItem,vt,t);return e&&(ot=n),n},Zt=function(t){return t||(t=a.currItem),t.initialZoomLevel},Wt=function(t){return t||(t=a.currItem),t.w>0?l.maxSpreadZoom:1},Kt=function(t,e,n,o){return o===a.currItem.initialZoomLevel?(n[t]=a.currItem.initialPosition[t],!0):(n[t]=Rt(t,o),n[t]>e.min[t]?(n[t]=e.min[t],!0):n[t]<e.max[t]&&(n[t]=e.max[t],!0))},Gt=function(){if($){var e=N.perspective&&!D;return x="translate"+(e?"3d(":"("),void(k=N.perspective?", 0px)":")")}$="left",i.addClass(t,"pswp--ie"),Lt=function(t,e){e.left=t+"px"},Pt=function(t){var e=t.fitRatio>1?1:t.fitRatio,n=t.container.style,o=e*t.w,i=e*t.h;n.width=o+"px",n.height=i+"px",n.left=t.initialPosition.x+"px",n.top=t.initialPosition.y+"px"}
2,Dt=function(){if(it){var t=it,e=a.currItem,n=e.fitRatio>1?1:e.fitRatio,o=n*e.w,i=n*e.h;t.width=o+"px",t.height=i+"px",t.left=ht.x+"px",t.top=ht.y+"px"}}},Yt=function(t){var e="";l.escKey&&27===t.keyCode?e="close":l.arrowKeys&&(37===t.keyCode?e="prev":39===t.keyCode&&(e="next")),e&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey||(t.preventDefault?t.preventDefault():t.returnValue=!1,a[e]()))},Xt=function(t){t&&(V||X||rt||W)&&(t.preventDefault(),t.stopPropagation())},Vt=function(){a.setScrollOffset(0,i.getScrollY())},Qt={},Jt=0,te=function(t){Qt[t]&&(Qt[t].raf&&L(Qt[t].raf),Jt--,delete Qt[t])},ee=function(t){Qt[t]&&te(t),Qt[t]||(Jt++,Qt[t]={})},ne=function(){for(var t in Qt)Qt.hasOwnProperty(t)&&te(t)},oe=function(t,e,n,o,i,r,a){var s,c=At();ee(t),function l(){if(Qt[t]){if((s=At()-c)>=o)return te(t),r(n),void(a&&a());r((n-e)*i(s/o)+e),Qt[t].raf=P(l)}}()},ie={shout:Tt,listen:jt,viewportSize:vt,options:l,isMainScrollAnimating:function(){return rt},getZoomLevel:function(){return w},getCurrentIndex:function(){return f},isDragging:function(){return G},isZooming:function(){return et},setScrollOffset:function(t,e){yt.x=t,M=yt.y=e,Tt("updateScrollOffset",yt)},applyZoomPan:function(t,e,n,o){ht.x=e,ht.y=n,w=t,Dt(o)},init:function(){if(!u&&!d){var n;a.framework=i,a.template=t,a.bg=i.getChildByClass(t,"pswp__bg"),F=t.className,u=!0,N=i.detectFeatures(),P=N.raf,L=N.caf,$=N.transform,z=N.oldIE,a.scrollWrap=i.getChildByClass(t,"pswp__scroll-wrap"),a.container=i.getChildByClass(a.scrollWrap,"pswp__container"),m=a.container.style,a.itemHolders=E=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],E[0].el.style.display=E[2].el.style.display="none",Gt(),y={resize:a.updateSize,orientationchange:function(){clearTimeout(U),U=setTimeout((function(){vt.x!==a.scrollWrap.clientWidth&&a.updateSize()}),500)},scroll:Vt,keydown:Yt,click:Xt};var o=N.isOldIOSPhone||N.isOldAndroid||N.isMobileOpera;for(N.animationName&&N.transform&&!o||(l.showAnimationDuration=l.hideAnimationDuration=0),n=0;n<kt.length;n++)a["init"+kt[n]]();e&&(a.ui=new e(a,i)).init(),Tt("firstUpdate"),f=f||l.index||0,(isNaN(f)||f<0||f>=tn())&&(f=0),a.currItem=Je(f),(N.isOldIOSPhone||N.isOldAndroid)&&(xt=!1),t.setAttribute("aria-hidden","false"),l.modal&&(xt?t.style.position="fixed":(t.style.position="absolute",t.style.top=i.getScrollY()+"px")),void 0===M&&(Tt("initialLayout"),M=R=i.getScrollY());var r="pswp--open ";for(l.mainClass&&(r+=l.mainClass+" "),l.showHideOpacity&&(r+="pswp--animate_opacity "),r+=D?"pswp--touch":"pswp--notouch",r+=N.animationName?" pswp--css_animation":"",r+=N.svg?" pswp--svg":"",i.addClass(t,r),a.updateSize(),h=-1,bt=null,n=0;n<c;n++)Lt((n+h)*wt.x,E[n].el.style);z||i.bind(a.scrollWrap,g,a),jt("initialZoomInEnd",(function(){a.setContent(E[0],f-1),a.setContent(E[2],f+1),E[0].el.style.display=E[2].el.style.display="block",l.focus&&t.focus(),qt()})),a.setContent(E[1],f),a.updateCurrItem(),Tt("afterInit"),xt||(C=setInterval((function(){Jt||G||et||w!==a.currItem.initialZoomLevel||a.updateSize()}),1e3)),i.addClass(t,"pswp--visible")}},close:function(){u&&(u=!1,d=!0,Tt("close"),Ht(),en(a.currItem,null,!0,a.destroy))},destroy:function(){Tt("destroy"),Ye&&clearTimeout(Ye),t.setAttribute("aria-hidden","true"),t.className=F,C&&clearInterval(C),i.unbind(a.scrollWrap,g,a),i.unbind(window,"scroll",a),Ee(),ne(),It=null},panTo:function(t,e,n){n||(t>ot.min.x?t=ot.min.x:t<ot.max.x&&(t=ot.max.x),e>ot.min.y?e=ot.min.y:e<ot.max.y&&(e=ot.max.y)),ht.x=t,ht.y=e,Dt()},handleEvent:function(t){t=t||window.event,y[t.type]&&y[t.type](t)},goTo:function(t){var e=(t=_t(t))-f;bt=e,f=t,a.currItem=Je(f),gt-=e,Ft(wt.x*gt),ne(),rt=!1,a.updateCurrItem()},next:function(){a.goTo(f+1)},prev:function(){a.goTo(f-1)},updateCurrZoomItem:function(t){if(t&&Tt("beforeChange",0),E[1].el.children.length){var e=E[1].el.children[0];it=i.hasClass(e,"pswp__zoom-wrap")?e.style:null}else it=null;ot=a.currItem.bounds,b=w=a.currItem.initialZoomLevel,ht.x=ot.center.x,ht.y=ot.center.y,t&&Tt("afterChange")},invalidateCurrItems:function(){S=!0;for(var t=0;t<c;t++)E[t].item&&(E[t].item.needsUpdate=!0)},updateCurrItem:function(t){if(0!==bt){var e,n=Math.abs(bt);
2if(!(t&&n<2)){a.currItem=Je(f),St=!1,Tt("beforeChange",bt),n>=c&&(h+=bt+(bt>0?-c:c),n=c);for(var o=0;o<n;o++)bt>0?(e=E.shift(),E[c-1]=e,h++,Lt((h+2)*wt.x,e.el.style),a.setContent(e,f-n+o+1+1)):(e=E.pop(),E.unshift(e),h--,Lt(h*wt.x,e.el.style),a.setContent(e,f+n-o-1-1));if(it&&1===Math.abs(bt)){var i=Je(_);i.initialZoomLevel!==w&&(cn(i,vt),pn(i),Pt(i))}bt=0,a.updateCurrZoomItem(),_=f,Tt("afterChange")}}},updateSize:function(e){if(!xt&&l.modal){var n=i.getScrollY();if(M!==n&&(t.style.top=n+"px",M=n),!e&&Ct.x===window.innerWidth&&Ct.y===window.innerHeight)return;Ct.x=window.innerWidth,Ct.y=window.innerHeight,t.style.height=Ct.y+"px"}if(vt.x=a.scrollWrap.clientWidth,vt.y=a.scrollWrap.clientHeight,Vt(),wt.x=vt.x+Math.round(vt.x*l.spacing),wt.y=vt.y,Ft(wt.x*gt),Tt("beforeResize"),void 0!==h){for(var o,r,s,u=0;u<c;u++)o=E[u],Lt((u+h)*wt.x,o.el.style),s=f+u-1,l.loop&&tn()>2&&(s=_t(s)),(r=Je(s))&&(S||r.needsUpdate||!r.bounds)?(a.cleanSlide(r),a.setContent(o,s),1===u&&(a.currItem=r,a.updateCurrZoomItem(!0)),r.needsUpdate=!1):-1===o.index&&s>=0&&a.setContent(o,s),r&&r.container&&(cn(r,vt),pn(r),Pt(r));S=!1}b=w=a.currItem.initialZoomLevel,(ot=a.currItem.bounds)&&(ht.x=ot.center.x,ht.y=ot.center.y,Dt(!0)),Tt("resize")},zoomTo:function(t,e,n,o,r){e&&(b=w,be.x=Math.abs(e.x)-ht.x,be.y=Math.abs(e.y)-ht.y,zt(mt,ht));var a=Bt(t,!1),s={};Kt("x",a,s,t),Kt("y",a,s,t);var c=w,l={x:ht.x,y:ht.y};Mt(s);var u=function(e){1===e?(w=t,ht.x=s.x,ht.y=s.y):(w=(t-c)*e+c,ht.x=(s.x-l.x)*e+l.x,ht.y=(s.y-l.y)*e+l.y),r&&r(e),Dt(1===e)};n?oe("customZoomTo",0,1,n,o||i.easing.sine.inOut,u):u(1)}},re=30,ae=10,se={},ce={},le={},ue={},de={},pe=[],fe={},me=[],he={},ve=0,ge=pt(),ye=0,we=pt(),be=pt(),xe=pt(),ke=function(t,e){return t.x===e.x&&t.y===e.y},Ce=function(t,e){return Math.abs(t.x-e.x)<s&&Math.abs(t.y-e.y)<s},Se=function(t,e){return he.x=Math.abs(t.x-e.x),he.y=Math.abs(t.y-e.y),Math.sqrt(he.x*he.x+he.y*he.y)},Ee=function(){Q&&(L(Q),Q=null)},_e=function t(){G&&(Q=P(t),qe())},Ie=function(){return!("fit"===l.scaleMode&&w===a.currItem.initialZoomLevel)},je=function t(e,n){return!(!e||e===document)&&!(e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(n(e)?e:t(e.parentNode,n))},Te={},Ae=function(t,e){return Te.prevent=!je(t.target,l.isClickableElement),Tt("preventDragEvent",t,e,Te),Te.prevent},$e=function(t,e){return e.x=t.pageX,e.y=t.pageY,e.id=t.identifier,e},Oe=function(t,e,n){n.x=.5*(t.x+e.x),n.y=.5*(t.y+e.y)},De=function(t,e,n){if(t-H>50){var o=me.length>2?me.shift():{};o.x=e,o.y=n,me.push(o),H=t}},Pe=function(){var t=ht.y-a.currItem.initialPosition.y;return 1-Math.abs(t/(vt.y/2))},Le={},Fe={},Re=[],ze=function(t){for(;Re.length>0;)Re.pop();return O?(dt=0,pe.forEach((function(t){0===dt?Re[0]=t:1===dt&&(Re[1]=t),dt++}))):t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(Re[0]=$e(t.touches[0],Le),t.touches.length>1&&(Re[1]=$e(t.touches[1],Fe))):(Le.x=t.pageX,Le.y=t.pageY,Le.id="",Re[0]=Le),Re},Me=function(t,e){var n,o,i,r,s=ht[t]+e[t],c=e[t]>0,u=we.x+e.x,d=we.x-fe.x;
2if(n=s>ot.min[t]||s<ot.max[t]?l.panEndFriction:1,s=ht[t]+e[t]*n,(l.allowPanToNext||w===a.currItem.initialZoomLevel)&&(it?"h"!==at||"x"!==t||X||(c?(s>ot.min[t]&&(n=l.panEndFriction,ot.min[t],o=ot.min[t]-mt[t]),(o<=0||d<0)&&tn()>1?(r=u,d<0&&u>fe.x&&(r=fe.x)):ot.min.x!==ot.max.x&&(i=s)):(s<ot.max[t]&&(n=l.panEndFriction,ot.max[t],o=mt[t]-ot.max[t]),(o<=0||d>0)&&tn()>1?(r=u,d>0&&u<fe.x&&(r=fe.x)):ot.min.x!==ot.max.x&&(i=s))):r=u,"x"===t))return void 0!==r&&(Ft(r,!0),J=r!==fe.x),ot.min.x!==ot.max.x&&(void 0!==i?ht.x=i:J||(ht.x+=e.x*n)),void 0!==r;rt||J||w>a.currItem.fitRatio&&(ht[t]+=e[t]*n)},Ne=function(t){if(!("mousedown"===t.type&&t.button>0))if(Qe)t.preventDefault();else if(!K||"mousedown"!==t.type){if(Ae(t,!0)&&t.preventDefault(),Tt("pointerDown"),O){var e=i.arraySearch(pe,t.pointerId,"id");e<0&&(e=pe.length),pe[e]={x:t.pageX,y:t.pageY,id:t.pointerId}}var n=ze(t),o=n.length;tt=null,ne(),G&&1!==o||(G=st=!0,i.bind(window,v,a),Z=ut=ct=W=J=V=Y=X=!1,at=null,Tt("firstTouchStart",n),zt(mt,ht),ft.x=ft.y=0,zt(ue,n[0]),zt(de,ue),fe.x=wt.x*gt,me=[{x:ue.x,y:ue.y}],H=q=At(),Bt(w,!0),Ee(),_e()),!et&&o>1&&!rt&&!J&&(b=w,X=!1,et=Y=!0,ft.y=ft.x=0,zt(mt,ht),zt(se,n[0]),zt(ce,n[1]),Oe(se,ce,xe),be.x=Math.abs(xe.x)-ht.x,be.y=Math.abs(xe.y)-ht.y,nt=Se(se,ce))}},Ue=function(t){if(t.preventDefault(),O){var e=i.arraySearch(pe,t.pointerId,"id");if(e>-1){var n=pe[e];n.x=t.pageX,n.y=t.pageY}}if(G){var o=ze(t);if(at||V||et)tt=o;else if(we.x!==wt.x*gt)at="h";else{var r=Math.abs(o[0].x-ue.x)-Math.abs(o[0].y-ue.y);Math.abs(r)>=ae&&(at=r>0?"h":"v",tt=o)}}},qe=function(){if(tt){var t=tt.length;if(0!==t)if(zt(se,tt[0]),le.x=se.x-ue.x,le.y=se.y-ue.y,et&&t>1){if(ue.x=se.x,ue.y=se.y,!le.x&&!le.y&&ke(tt[1],ce))return;zt(ce,tt[1]),X||(X=!0,Tt("zoomGestureStarted"));var e=Se(se,ce),n=Ke(e);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(ut=!0);var o=1,i=Zt(),r=Wt();if(n<i)if(l.pinchToClose&&!ut&&b<=a.currItem.initialZoomLevel){var s=1-(i-n)/(i/1.2);$t(s),Tt("onPinchClose",s),ct=!0}else(o=(i-n)/i)>1&&(o=1),n=i-o*(i/3);else n>r&&((o=(n-r)/(6*i))>1&&(o=1),n=r+o*i);o<0&&(o=0),Oe(se,ce,ge),ft.x+=ge.x-xe.x,ft.y+=ge.y-xe.y,zt(xe,ge),ht.x=Rt("x",n),ht.y=Rt("y",n),Z=n>w,w=n,Dt()}else{if(!at)return;if(st&&(st=!1,Math.abs(le.x)>=ae&&(le.x-=tt[0].x-de.x),Math.abs(le.y)>=ae&&(le.y-=tt[0].y-de.y)),ue.x=se.x,ue.y=se.y,0===le.x&&0===le.y)return;if("v"===at&&l.closeOnVerticalDrag&&!Ie()){ft.y+=le.y,ht.y+=le.y;var c=Pe();return W=!0,Tt("onVerticalDrag",c),$t(c),void Dt()}De(At(),se.x,se.y),V=!0,ot=a.currItem.bounds,Me("x",le)||(Me("y",le),Mt(ht),Dt())}}},He=function(t){if(N.isOldAndroid){if(K&&"mouseup"===t.type)return;t.type.indexOf("touch")>-1&&(clearTimeout(K),K=setTimeout((function(){K=0}),600))}var e;if(Tt("pointerUp"),Ae(t,!1)&&t.preventDefault(),O){var n=i.arraySearch(pe,t.pointerId,"id");if(n>-1)if(e=pe.splice(n,1)[0],navigator.msPointerEnabled){var o={4:"mouse",2:"touch",3:"pen"};e.type=o[t.pointerType],e.type||(e.type=t.pointerType||"mouse")}else e.type=t.pointerType||"mouse"}var r,s=ze(t),c=s.length;if("mouseup"===t.type&&(c=0),2===c)return tt=null,!0;1===c&&zt(de,s[0]),0!==c||at||rt||(e||("mouseup"===t.type?e={x:t.pageX,y:t.pageY,type:"mouse"}:t.changedTouches&&t.changedTouches[0]&&(e={x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY,type:"touch"})),Tt("touchRelease",t,e));var u=-1;if(0===c&&(G=!1,i.unbind(window,v,a),Ee(),et?u=0:-1!==ye&&(u=At()-ye)),ye=1===c?At():-1,r=-1!==u&&u<150?"zoom":"swipe",et&&c<2&&(et=!1,1===c&&(r="zoomPointerUp"),Tt("zoomGestureEnded")),tt=null,V||X||rt||W)if(ne(),B||(B=Be()),B.calculateSwipeSpeed("x"),W)if(Pe()<l.verticalDragRange)a.close();else{var d=ht.y,p=lt;oe("verticalDrag",0,1,300,i.easing.cubic.out,(function(t){ht.y=(a.currItem.initialPosition.y-d)*t+d,$t((1-p)*t+p),Dt()})),Tt("onVerticalDrag",1)}else{if((J||rt)&&0===c){if(We(r,B))return;r="zoomPointerUp"}rt||("swipe"===r?!J&&w>a.currItem.fitRatio&&Ze(B):Ge())}},Be=function(){var t,e,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{}
2,backAnimStarted:{},calculateSwipeSpeed:function(o){me.length>1?(t=At()-H+50,e=me[me.length-2][o]):(t=At()-q,e=de[o]),n.lastFlickOffset[o]=ue[o]-e,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/t:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(t,e){n.backAnimStarted[t]||(ht[t]>ot.min[t]?n.backAnimDestination[t]=ot.min[t]:ht[t]<ot.max[t]&&(n.backAnimDestination[t]=ot.max[t]),void 0!==n.backAnimDestination[t]&&(n.slowDownRatio[t]=.7,n.slowDownRatioReverse[t]=1-n.slowDownRatio[t],n.speedDecelerationRatioAbs[t]<.05&&(n.lastFlickSpeed[t]=0,n.backAnimStarted[t]=!0,oe("bounceZoomPan"+t,ht[t],n.backAnimDestination[t],e||300,i.easing.sine.out,(function(e){ht[t]=e,Dt()})))))},calculateAnimOffset:function(t){n.backAnimStarted[t]||(n.speedDecelerationRatio[t]=n.speedDecelerationRatio[t]*(n.slowDownRatio[t]+n.slowDownRatioReverse[t]-n.slowDownRatioReverse[t]*n.timeDiff/10),n.speedDecelerationRatioAbs[t]=Math.abs(n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]),n.distanceOffset[t]=n.lastFlickSpeed[t]*n.speedDecelerationRatio[t]*n.timeDiff,ht[t]+=n.distanceOffset[t])},panAnimLoop:function(){if(Qt.zoomPan&&(Qt.zoomPan.raf=P(n.panAnimLoop),n.now=At(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Dt(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return ht.x=Math.round(ht.x),ht.y=Math.round(ht.y),Dt(),void te("zoomPan")}};return n},Ze=function(t){if(t.calculateSwipeSpeed("y"),ot=a.currItem.bounds,t.backAnimDestination={},t.backAnimStarted={},Math.abs(t.lastFlickSpeed.x)<=.05&&Math.abs(t.lastFlickSpeed.y)<=.05)return t.speedDecelerationRatioAbs.x=t.speedDecelerationRatioAbs.y=0,t.calculateOverBoundsAnimOffset("x"),t.calculateOverBoundsAnimOffset("y"),!0;ee("zoomPan"),t.lastNow=At(),t.panAnimLoop()},We=function(t,e){var n,o,r;if(rt||(ve=f),"swipe"===t){var s=ue.x-de.x,c=e.lastFlickDist.x<10;s>re&&(c||e.lastFlickOffset.x>20)?o=-1:s<-re&&(c||e.lastFlickOffset.x<-20)&&(o=1)}o&&((f+=o)<0?(f=l.loop?tn()-1:0,r=!0):f>=tn()&&(f=l.loop?0:tn()-1,r=!0),r&&!l.loop||(bt+=o,gt-=o,n=!0));var u,d=wt.x*gt,p=Math.abs(d-we.x);return n||d>we.x==e.lastFlickSpeed.x>0?(u=Math.abs(e.lastFlickSpeed.x)>0?p/Math.abs(e.lastFlickSpeed.x):333,u=Math.min(u,400),u=Math.max(u,250)):u=333,ve===f&&(n=!1),rt=!0,Tt("mainScrollAnimStart"),oe("mainScroll",we.x,d,u,i.easing.cubic.out,Ft,(function(){ne(),rt=!1,ve=-1,(n||ve!==f)&&a.updateCurrItem(),Tt("mainScrollAnimComplete")})),n&&a.updateCurrItem(!0),n},Ke=function(t){return 1/nt*t*b},Ge=function(){var t=w,e=Zt(),n=Wt();w<e?t=e:w>n&&(t=n);var o,r=1,s=lt;return ct&&!Z&&!ut&&w<e?(a.close(),!0):(ct&&(o=function(t){$t((r-s)*t+s)}),a.zoomTo(t,0,200,i.easing.cubic.out,o),!0)};Et("Gestures",{publicMethods:{initGestures:function(){var t=function(t,e,n,o,i){I=t+e,j=t+n,T=t+o,A=i?t+i:""};(O=N.pointerEvent)&&N.touch&&(N.touch=!1),O?navigator.msPointerEnabled?t("MSPointer","Down","Move","Up","Cancel"):t("pointer","down","move","up","cancel"):N.touch?(t("touch","start","move","end","cancel"),D=!0):t("mouse","down","move","up"),v=j+" "+T+" "+A,g=I,O&&!D&&(D=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=D,y[I]=Ne,y[j]=Ue,y[T]=He,A&&(y[A]=y[T]),N.touch&&(g+=" mousedown",v+=" mousemove mouseup",y.mousedown=y[I],y.mousemove=y[j],y.mouseup=y[T]),D||(l.allowPanToNext=!1)}}});var Ye,Xe,Ve,Qe,Je,tn,en=function(e,n,o,r){var s;Ye&&clearTimeout(Ye),Qe=!0,Ve=!0,e.initialLayout?(s=e.initialLayout,e.initialLayout=null):s=l.getThumbBoundsFn&&l.getThumbBoundsFn(f);var c,u,d=o?l.hideAnimationDuration:l.showAnimationDuration,m=function(){te("initialZoom"),o?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):($t(1),n&&(n.style.display="block"),i.addClass(t,"pswp--animated-in"),Tt("initialZoom"+(o?"OutEnd":"InEnd"))),r&&r(),Qe=!1};if(!d||!s||void 0===s.x)return Tt("initialZoom"+(o?"Out":"In")),w=e.initialZoomLevel,zt(ht,e.initialPosition),Dt(),t.style.opacity=o?0:1,$t(1),void(d?setTimeout((function(){m()}
2),d):m());c=p,u=!a.currItem.src||a.currItem.loadError||l.showHideOpacity,e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),o||(w=s.w/e.w,ht.x=s.x,ht.y=s.y-R,a[u?"template":"bg"].style.opacity=.001,Dt()),ee("initialZoom"),o&&!c&&i.removeClass(t,"pswp--animated-in"),u&&(o?i[(c?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout((function(){i.addClass(t,"pswp--animate_opacity")}),30)),Ye=setTimeout((function(){if(Tt("initialZoom"+(o?"Out":"In")),o){var n=s.w/e.w,r={x:ht.x,y:ht.y},a=w,l=lt,p=function(e){1===e?(w=n,ht.x=s.x,ht.y=s.y-M):(w=(n-a)*e+a,ht.x=(s.x-r.x)*e+r.x,ht.y=(s.y-M-r.y)*e+r.y),Dt(),u?t.style.opacity=1-e:$t(l-e*l)};c?oe("initialZoom",0,1,d,i.easing.cubic.out,p,m):(p(1),Ye=setTimeout(m,d+20))}else w=e.initialZoomLevel,zt(ht,e.initialPosition),Dt(),$t(1),u?t.style.opacity=1:$t(1),Ye=setTimeout(m,d+20)}),o?25:90)},nn={},on=[],rn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Xe.length}},an=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},sn=function(t,e,n){var o=t.bounds;o.center.x=Math.round((nn.x-e)/2),o.center.y=Math.round((nn.y-n)/2)+t.vGap.top,o.max.x=e>nn.x?Math.round(nn.x-e):o.center.x,o.max.y=n>nn.y?Math.round(nn.y-n)+t.vGap.top:o.center.y,o.min.x=e>nn.x?0:o.center.x,o.min.y=n>nn.y?t.vGap.top:o.center.y},cn=function(t,e,n){if(t.src&&!t.loadError){var o=!n;if(o&&(t.vGap||(t.vGap={top:0,bottom:0}),Tt("parseVerticalMargin",t)),nn.x=e.x,nn.y=e.y-t.vGap.top-t.vGap.bottom,o){var i=nn.x/t.w,r=nn.y/t.h;t.fitRatio=i<r?i:r;var a=l.scaleMode;"orig"===a?n=1:"fit"===a&&(n=t.fitRatio),n>1&&(n=1),t.initialZoomLevel=n,t.bounds||(t.bounds=an())}if(!n)return;return sn(t,t.w*n,t.h*n),o&&n===t.initialZoomLevel&&(t.initialPosition=t.bounds.center),t.bounds}return t.w=t.h=0,t.initialZoomLevel=t.fitRatio=1,t.bounds=an(),t.initialPosition=t.bounds.center,t.bounds},ln=function(t,e,n,o,i,r){e.loadError||o&&(e.imageAppended=!0,pn(e,o,e===a.currItem&&St),n.appendChild(o),r&&setTimeout((function(){e&&e.loaded&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null)}),500))},un=function(t){t.loading=!0,t.loaded=!1;var e=t.img=i.createEl("pswp__img","img"),n=function(){t.loading=!1,t.loaded=!0,t.loadComplete?t.loadComplete(t):t.img=null,e.onload=e.onerror=null,e=null};return e.onload=n,e.onerror=function(){t.loadError=!0,n()},e.src=t.src,e},dn=function(t,e){if(t.src&&t.loadError&&t.container)return e&&(t.container.innerHTML=""),t.container.innerHTML=l.errorMsg.replace("%url%",t.src),!0},pn=function(t,e,n){if(t.src&&t.container){e||(e=t.container.lastChild);var o=n?t.w:Math.round(t.w*t.fitRatio),i=n?t.h:Math.round(t.h*t.fitRatio);t.placeholder&&!t.loaded&&(t.placeholder.style.width=o+"px",t.placeholder.style.height=i+"px"),e.style.width=o+"px",e.style.height=i+"px"}},fn=function(){if(on.length){for(var t,e=0;e<on.length;e++)(t=on[e]).holder.index===t.index&&ln(t.index,t.item,t.baseDiv,t.img,!1,t.clearPlaceholder);on=[]}};Et("Controller",{publicMethods:{lazyLoadItem:function(t){t=_t(t);var e=Je(t);e&&(!e.loaded&&!e.loading||S)&&(Tt("gettingData",t,e),e.src&&un(e))},initController:function(){i.extend(l,rn,!0),a.items=Xe=n,Je=a.getItemAt,tn=l.getNumItemsFn,l.loop,tn()<3&&(l.loop=!1),jt("beforeChange",(function(t){var e,n=l.preload,o=null===t||t>=0,i=Math.min(n[0],tn()),r=Math.min(n[1],tn());for(e=1;e<=(o?r:i);e++)a.lazyLoadItem(f+e);for(e=1;e<=(o?i:r);e++)a.lazyLoadItem(f-e)})),jt("initialLayout",(function(){a.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(f)})),jt("mainScrollAnimComplete",fn),jt("initialZoomInEnd",fn),jt("destroy",(function(){for(var t,e=0;e<Xe.length;e++)(t=Xe[e]).container&&(t.container=null),t.placeholder&&(t.placeholder=null),t.img&&(t.img=null),t.preloader&&(t.preloader=null),t.loadError&&(t.loaded=t.loadError=!1);on=null}))},getItemAt:function(t){return t>=0&&void 0!==Xe[t]&&Xe[t]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!D||l.mouseUsed||screen.width>1200},setContent:function(t,e){l.loop&&(e=_t(e));var n=a.getItemAt(t.index);n&&(n.container=null);var o,r=a.getItemAt(e);if(r){Tt("gettingData",e,r),t.index=e,t.item=r;var s=r.container=i.createEl("pswp__zoom-wrap");if(!r.src&&r.html&&(r.html.tagName?s.appendChild(r.html):s.innerHTML=r.html),dn(r),cn(r,vt),!r.src||r.loadError||r.loaded)r.src&&!r.loadError&&((o=i.createEl("pswp__img","img")).style.opacity=1,o.src=r.src,pn(r,o),ln(e,r,s,o,!0));else{if(r.loadComplete=function(n){if(u){if(t&&t.index===e){if(dn(n,!0))return n.loadComplete=n.img=null,cn(n,vt),Pt(n),void(t.index===f&&a.updateCurrZoomItem());n.imageAppended?!Qe&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):N.transform&&(rt||Qe)?on.push({item:n,baseDiv:s,img:n.img,index:e,holder:t,clearPlaceholder:!0}):ln(e,n,s,n.img,rt||Qe,!0)}n.loadComplete=null,n.img=null,Tt("imageLoadComplete",e,n)}},i.features.transform){var c="pswp__img pswp__img--placeholder";c+=r.msrc?"":" pswp__img--placeholder--blank";var d=i.createEl(c,r.msrc?"img":"");
2r.msrc&&(d.src=r.msrc),pn(r,d),s.appendChild(d),r.placeholder=d}r.loading||un(r),a.allowProgressiveImg()&&(!Ve&&N.transform?on.push({item:r,baseDiv:s,img:r.img,index:e,holder:t}):ln(e,r,s,r.img,!0,!0))}Ve||e!==f?Pt(r):(it=s.style,en(r,o||r.img)),t.el.innerHTML="",t.el.appendChild(s)}else t.el.innerHTML=""},cleanSlide:function(t){t.img&&(t.img.onload=t.img.onerror=null),t.loaded=t.loading=t.img=t.imageAppended=!1}}});var mn,hn,vn={},gn=function(t,e,n){var o=document.createEvent("CustomEvent"),i={origEvent:t,target:t.target,releasePoint:e,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),"mouse"===n&&t.target.dispatchEvent(o)};Et("Tap",{publicMethods:{initTap:function(){jt("firstTouchStart",a.onTapStart),jt("touchRelease",a.onTapRelease),jt("destroy",(function(){vn={},mn=null}))},onTapStart:function(t){t.length>1&&(clearTimeout(mn),mn=null)},onTapRelease:function(t,e){if(e&&!V&&!Y&&!Jt){var n=e;if(mn&&(clearTimeout(mn),mn=null,Ce(n,vn)))return void Tt("doubleTap",n);if("mouse"===e.type)return void gn(t,e,"mouse");if("BUTTON"===t.target.tagName.toUpperCase()||i.hasClass(t.target,"pswp__single-tap"))return void gn(t,e);zt(vn,n),mn=setTimeout((function(){gn(t,e),mn=null}),300)}}}}),Et("DesktopZoom",{publicMethods:{initDesktopZoom:function(){z||(D?jt("mouseUsed",(function(){a.setupDesktopZoom()})):a.setupDesktopZoom(!0))},setupDesktopZoom:function(e){hn={};var n="wheel mousewheel DOMMouseScroll";jt("bindEvents",(function(){i.bind(t,n,a.handleMouseWheel)})),jt("unbindEvents",(function(){hn&&i.unbind(t,n,a.handleMouseWheel)})),a.mouseZoomedIn=!1;var o,r=function(){a.mouseZoomedIn&&(i.removeClass(t,"pswp--zoomed-in"),a.mouseZoomedIn=!1),w<1?i.addClass(t,"pswp--zoom-allowed"):i.removeClass(t,"pswp--zoom-allowed"),s()},s=function(){o&&(i.removeClass(t,"pswp--dragging"),o=!1)};jt("resize",r),jt("afterChange",r),jt("pointerDown",(function(){a.mouseZoomedIn&&(o=!0,i.addClass(t,"pswp--dragging"))})),jt("pointerUp",s),e||r()},handleMouseWheel:function(t){if(w<=a.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||Jt||G?t.preventDefault():$&&Math.abs(t.deltaY)>2&&(p=!0,a.close())),!0;if(t.stopPropagation(),hn.x=0,"deltaX"in t)1===t.deltaMode?(hn.x=18*t.deltaX,hn.y=18*t.deltaY):(hn.x=t.deltaX,hn.y=t.deltaY);else if("wheelDelta"in t)t.wheelDeltaX&&(hn.x=-.16*t.wheelDeltaX),t.wheelDeltaY?hn.y=-.16*t.wheelDeltaY:hn.y=-.16*t.wheelDelta;else{if(!("detail"in t))return;hn.y=t.detail}Bt(w,!0);var e=ht.x-hn.x,n=ht.y-hn.y;(l.modal||e<=ot.min.x&&e>=ot.max.x&&n<=ot.min.y&&n>=ot.max.y)&&t.preventDefault(),a.panTo(e,n)},toggleDesktopZoom:function(e){e=e||{x:vt.x/2+yt.x,y:vt.y/2+yt.y};var n=l.getDoubleTapZoom(!0,a.currItem),o=w===n;a.mouseZoomedIn=!o,a.zoomTo(o?a.currItem.initialZoomLevel:n,e,333),i[(o?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var yn,wn,bn,xn,kn,Cn,Sn,En,_n,In,jn,Tn,An={history:!0,galleryUID:1},$n=function(){return jn.hash.substring(1)},On=function(){yn&&clearTimeout(yn),bn&&clearTimeout(bn)},Dn=function(){var t=$n(),e={};if(t.length<5)return e;var n,o=t.split("&");for(n=0;n<o.length;n++)if(o[n]){var i=o[n].split("=");i.length<2||(e[i[0]]=i[1])}if(l.galleryPIDs){var r=e.pid;for(e.pid=0,n=0;n<Xe.length;n++)if(Xe[n].pid===r){e.pid=n;break}}else e.pid=parseInt(e.pid,10)-1;return e.pid<0&&(e.pid=0),e},Pn=function t(){if(bn&&clearTimeout(bn),Jt||G)bn=setTimeout(t,500);else{xn?clearTimeout(wn):xn=!0;var e=f+1,n=Je(f);n.hasOwnProperty("pid")&&(e=n.pid);var o=Sn+"&gid="+l.galleryUID+"&pid="+e;En||-1===jn.hash.indexOf(o)&&(In=!0);var i=jn.href.split("#")[0]+"#"+o;Tn?"#"+o!==window.location.hash&&history[En?"replaceState":"pushState"]("",document.title,i):En?jn.replace(i):jn.hash=o,En=!0,wn=setTimeout((function(){xn=!1}),60)}};Et("History",{publicMethods:{initHistory:function(){if(i.extend(l,An,!0),l.history){jn=window.location,In=!1,_n=!1,En=!1,Sn=$n(),Tn="pushState"in history,Sn.indexOf("gid=")>-1&&(Sn=(Sn=Sn.split("&gid=")[0]).split("?gid=")[0]),jt("afterChange",a.updateURL),jt("unbindEvents",(function(){i.unbind(window,"hashchange",a.onHashChange)}));var t=function(){Cn=!0,_n||(In?history.back():Sn?jn.hash=Sn:Tn?history.pushState("",document.title,jn.pathname+jn.search):jn.hash=""),On()};jt("unbindEvents",(function(){p&&t()})),jt("destroy",(function(){Cn||t()})),jt("firstUpdate",(function(){f=Dn().pid}));var e=Sn.indexOf("pid=");e>-1&&"&"===(Sn=Sn.substring(0,e)).slice(-1)&&(Sn=Sn.slice(0,-1)),setTimeout((function(){u&&i.bind(window,"hashchange",a.onHashChange)}),40)}},onHashChange:function(){if($n()===Sn)return _n=!0,void a.close();xn||(kn=!0,a.goTo(Dn().pid),kn=!1)},updateURL:function(){On(),kn||(En?yn=setTimeout(Pn,800):Pn())}}}),i.extend(a,ie)};return t},void 0===(i="function"==typeof o?o.call(e,n,e,t):o)||(t.exports=i)},3795:function(){!function(){function t(){}t.prototype.construct=function(){},"function"!=typeof Object.getPrototypeOf?t.prototype.getPrototypeOf="".__proto__===String.prototype?function(t){return t.__proto__}:function(t){return t.constructor.prototype}:t.prototype.getPrototypeOf=Object.getPrototypeOf,t.extend=function(e){var n=function(){arguments[0]!==t&&this.construct.apply(this,arguments)},o=new this(t);return o.applyMembers(e,this.prototype),n.prototype=o,n.extend=this.extend,n},t.prototype.applyMembers=function(t,e){for(var n in t){var o=t[n];o instanceof Function&&(o._super=e,o.function_name=n),this[n]=o}},t.prototype._super=function(t){var e=t.callee._super[t.callee.function_name];if(e)return e.apply(this,t)},wpj.Class=t}()},6872:function(){var t={initialized:!1,init:function(){if(!t.initialized){t.initialized=!0,this._create();var e=this;$("[data-cookie-bar=open]").click((function(){return e.getSimple().hide(),e.getAdvanced().show(),e._show(),!1}
2)),this.getSimple().find("[data-cookie-bar=details]").click((function(){return"y"===e.getCookieBar().data("cookiebar-preselect")&&e.preselectAll(),e.getSimple().hide(),e.getAdvanced().show(),!1})),this.getSimple().find("[data-cookie-bar=simpleAccept]").click((function(){return e.simpleAccept(),!1})),this.getSimple().find('[data-cookie-bar="reject"]').click((function(){return e.customAccept(!1),!1})),this.getAdvanced().find("[data-cookie-bar=advancedAccept]").click((function(){return e.advancedAccept(),!1})),this.getAdvanced().find('[data-cookie-bar="custom"]').click((function(){return e.customAccept("allow-all"===$(this).data("cookie-custom")),!1}))}},getCookieBar:function(){return $("#cookieBara")},getSimple:function(){return this.getCookieBar().find('[data-cookie-bar="simple"]')},getAdvanced:function(){return this.getCookieBar().find('[data-cookie-bar="advanced"]')},getAdvancedCheckbox:function(){return this.getAdvanced().find("input[name=social-media]")},_create:function(){var e=this._getCookies().getItem("cookie-bar");if(null===e)this.getAdvanced().hide(),this._show();else if(1==e)t.simpleAccept();else{var n=e.split(",");$('input[value="ad_storage"]').prop("checked",n.includes("ad_storage")),$('input[value="personalization_and_functionality_storage"]').prop("checked",n.includes("personalization_and_functionality_storage")),$('input[value="analytics_storage"]').prop("checked",n.includes("analytics_storage"))}},_getCookies:function(){return wpj.storage.cookies},_setCookieBar:function(t){var e=new Date;e.setMonth(e.getMonth()+(t?12:6)),this._getCookies().setItem("cookie-bar",t,e)},_isFocus:function(){return!!this.getCookieBar().closest(".focus.focus-cookiebara").length},_show:function(){if(this._isFocus()){var t=$(".focus.focus-cookiebara");t.focus({addBodyPadding:!0,closeOnBgClick:!1}),t.focus("show")}else this.getCookieBar().show()},_close:function(){this._isFocus()?$(".focus.focus-cookiebara.active").focus("hide"):this.getCookieBar().hide()},preselectAll:function(){this.getAdvanced().find("input:checkbox[name=social-media]").each((function(){$(this).prop("checked",!0)}))},simpleAccept:function(){var e=this;setTimeout((function(){e.preselectAll(),t.advancedAccept()}),100),this._close()},customAccept:function(e){this.getAdvanced().find("input:enabled").prop("checked",e),t.advancedAccept()},advancedAccept:function(){var t=[];if($("input:checkbox[name=social-media]:checked").each((function(){t.push($(this).val())})),window.wpj.cookie_bar_send){var e={ad_storage:t.includes("ad_storage")?"granted":"denied",ad_user_data:t.includes("ad_storage")?"granted":"denied",ad_personalization:t.includes("ad_storage")?"granted":"denied",personalization_storage:t.includes("personalization_and_functionality_storage")?"granted":"denied",functionality_storage:"granted",analytics_storage:t.includes("analytics_storage")?"granted":"denied"};gtag("consent","update",e),dataLayer.push({event:"kupshopConsentsChange",consents:e})}this._setCookieBar(t.length?t:0),document.dispatchEvent(new CustomEvent("consentsChange")),this._close()}};$(window).on("load",(function(){t.init()})),wpj.onReady.push((function(){t.init()}))},580:function(t,e){var n,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(n=function(){return function(){if("function"==typeof window.CustomEvent)return!1;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}window.CustomEvent=t}(),wpj.domUtils={crossFade:function(t,e,n){var o,i,r=this,a=300;if(t.length){if(o=t[0].getBoundingClientRect().width,i=t[0].getBoundingClientRect().height,o<=0)return t.before(e).hide(),void(n?n(t,e):t.remove());var s=parseInt(getComputedStyle(t[0]).marginBottom);if(t[0].lastElementChild){var c=parseInt(getComputedStyle(t[0].lastElementChild).marginBottom);c>s&&(s=c)}var l=t.wrap($('<div class="crossfade-wrapper">').width(o).height(i).css({marginBottom:s})).parent(),u=t.wrap('<div class="crossfade-position old">').parent(),d=e.wrap('<div class="crossfade-position new">').parent();d.css({opacity:0}
2),l.append(d),this.triggerNativeEvent(e,"crossFaded"),u.transition({opacity:0},a),d.transition({opacity:1},a,void 0,(function(){u.unwrap(),t.unwrap(),e.unwrap(),n?n(t,e):t.remove(),r.triggerNativeEvent(e,"crossFadedCompleted")}));var p=d.height();l.height()!==p&&l.transition({height:p},a)}},reloadParts:function(t,e,n){t.addClass("reload-loading").transition({opacity:.66},300),e.done((function(e){var o=wpj.domUtils.crossFadeParts(t,e);t.removeClass("reload-loading"),n&&n(o)}))},crossFadeParts:function(t,e,n){var o,i,r,a=[];return t.each((function(){if(o=$(this),r='[data-reload="'+o.data("reload")+'"]',i=e.find(r).addBack(r),$.merge(a,i),o.closest(".crossfade-wrapper").length||!document.documentElement.contains(this))return(o=$('[data-reload="'+o.data("reload")+'"]')).length>1&&(o=o.filter(".crossfade-position.new > [data-reload]")),o.html(i.html()),void wpj.domUtils.triggerNativeEvent(o,"crossFaded");i.length||(i=$("<div>").attr("data-reload",o.data("reload"))),wpj.domUtils.crossFade(o,i,n)})),a},reloadPartsFromUrl:function(t,e,n,o){var i=$.Deferred(),r=n?"post":"get";wpj.domUtils.reloadParts(e,i,o),$[r](t,n,(function(t){i.resolve(wpj.domUtils.parseHtml(t))}))},reloadPartsWithFileUpload:function(t,e,n){var o=$.Deferred();wpj.domUtils.reloadParts(e,o),$.ajax({type:"POST",url:t,data:n,contentType:!1,processData:!1,success:function(t){o.resolve(wpj.domUtils.parseHtml(t))}})},getHash:function(){return location.href.split("#")[1]||""},parseHtml:function(t,e){var n=$("<div>").append($.parseHTML(t,null,!0));return e?n.find(e):n.children()},scrollTo:function(t,e){if(t.length){var n=t.offset();void 0===e&&(e=1e3),n&&$("html, body").stop().animate({scrollTop:n.top-100},e)}},activeTimers:{},resetTimer:function(t,e,n){var o=wpj.domUtils.activeTimers,i=o[t];i&&clearTimeout(i),o[t]=setTimeout((function(){delete o[t],n()}),e)},initOpeners:function(t){if(t||(t=$("body")),t.prop("openerInitialized"))return!1;t.prop("openerInitialized",!0),$.fx.off=!0;var e="change";t.is("input")||(e="click"),t.on(e+" update","[data-opener]",(function(t){var e,n=$(t.currentTarget),o=$(n.data("opener"));return n.is("input")?e=n.is(":checked"):(e=n.is(".active"),"update"!==t.type&&(e=!e)),e?(o.slideDown().addClass("active").trigger("opened"),n.addClass("active")):(o.slideUp().removeClass("active").trigger("opened"),n.removeClass("active")),!n.is("a")})).find("[data-opener]").trigger("update"),$.fx.off=!1},isInView:function(t,e){if(!t.length)return!1;var n=$(window),o=n.scrollTop(),i=o+n.height(),r=t.offset().top,a=r+t.height();return e?r>=o&&r<i-40:a<=i&&r>=o},expandOpener:function(t){var e=$(t);e.addClass("active"),e.trigger("update")},getScrollbarWidth:function(){return window.innerWidth-document.documentElement.clientWidth},triggerNativeEvent:function(t,e){var n=new CustomEvent(e,{bubbles:!0});t.each((function(){this.dispatchEvent(n)}))}},wpj.domUtils})?n.apply(e,o):n)||(t.exports=i)},7248:function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}var n=function(t){$("main, header, footer, [data-aria-hide-on-modal]").attr("aria-hidden",t?"true":"false")};wpj.focus={focusName:"focus",create:function(t){var e="focus",n=wpj.focus.getFocuses(),o=$(wpj.focus.getFocusLoadingTemplate());n.append(o);var i=o[e](t);return i[e]("load"),i[e]("instance")},createDeduplicated:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=wpj.focus.getFocuses(),a="focus",s=r.find('.focus[data-focus-endpoint="'+t+'"]');s.length?s[a]("show"):(r.append(wpj.focus.getFocusLoadingTemplate(t,o)),r.find('.focus[data-focus-endpoint="'+t+'"]')[a]({opened:!0,onDemandEndpoint:t,ajaxSubmit:e,removeOnClose:n,focusCustomClass:o,focusTriggerEventName:i})[a]("load"))},getFocusLoadingTemplate:function(t){return t?'<div data-focus-endpoint="'+t+'" class="focus '+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)+'"><div class="focus-dialog"><div class="focus-content"><div class="focus-loading"></div></div></div></div>':'<div class="focus"><div class="focus-dialog"><div class="focus-content"><div class="focus-loading"></div></div></div></div>'},getFocuses:function(){var t=$("[data-wpj-focuses]");return t.length||($("body").append('<div data-wpj-focuses style="z-index: 999"></div>'),t=$("[data-wpj-focuses]")),t}},$.widget("wpj."+wpj.focus.focusName,{options:{opened:!1,closeOnBgClick:!0,addBodyPadding:!1,onDemandEndpoint:null,ajaxSubmit:!1,removeOnClose:!1,show:null,hide:null},_create:function(){var t=this;this.element.on("click","[data-focus=close]",(function(){return t.hide()})),this._super(),this.options.opened&&this.show(!0)},toggle:function(t){return void 0===t&&(t=!this.element.is(".active")),t?this.show():this.hide()},show:function(t){var e=this;this.element.addClass("active").attr("tabindex","-1").focus();this.element.find('a, button, input, select, textarea, [tabindex]:not
2([tabindex="-1"])');var o=this,i=$("body");return this.options.addBodyPadding&&wpj.domUtils.getScrollbarWidth()&&this.element.add("body").css("padding-right",wpj.domUtils.getScrollbarWidth()),i.on("mousedown.focus",(function(t){o.element.has(t.target).length||!o.options.closeOnBgClick||$(t.target).hasClass("pac-item")||$(t.target).hasClass("pac-item-query")||$(t.target).parents(".pac-item").length||o.hide()})).on("keydown.focus",(function(t){return"Escape"!==t.key||(o.hide(),!1)})).removeClass("focus-closed").addClass("focus-opened"),n(!0),function(t){var e=t.find('a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])').get(),n=e[0],o=e[e.length-1];t.on("keydown",(function(t){"Tab"===t.key&&(t.shiftKey?document.activeElement===n&&(t.preventDefault(),o.focus()):document.activeElement===o&&(t.preventDefault(),n.focus()))}))}(this.element),setTimeout((function(){var t=e.element.get(0);t&&"function"==typeof t.focus&&t.focus()}),50),t||i.addClass("focus-transition"),this.options.ajaxSubmit&&this.registerAjaxSubmit(),this._trigger("show"),!1},hide:function(){this.element.removeClass("active"),$("body").off("mousedown.focus").off("keydown.focus").removeClass("focus-opened").addClass("focus-closed"),this.options.addBodyPadding&&wpj.domUtils.getScrollbarWidth()&&this.element.add("body").css("padding-right",0),this.element.trigger("focusClosed"),n(!1);var t=this.element.data("last-focused");return t&&"function"==typeof t.focus?t.focus():document.body.focus(),this.options.ajaxSubmit&&this.element.off("submit","form"),this.options.removeOnClose&&this.element.remove(),this._trigger("hide"),!1},load:function(){if(this.options.onDemandEndpoint){var e=this;this.options.focusCustomClass&&e.element.addClass(this.options.focusCustomClass),"function"!=typeof this.options.onDemandEndpoint?"function"!=typeof window[this.options.onDemandEndpoint]?fetch(this.options.onDemandEndpoint).then((function(t){return t.text()})).then((function(n){var o=[].concat(t($(n).prop("classList")),["active"]);e.element.html($(n).html()),e.element.attr("class",o.join(" ")),e.options.focusTriggerEventName&&$("body").trigger(e.options.focusTriggerEventName,e)})):window[this.options.onDemandEndpoint](e.element.find(".focus-content")[0]):this.options.onDemandEndpoint(e.element.find(".focus-content")[0])}},registerAjaxSubmit:function(){var t=this;this.element.on("submit","form",(function(e){e.preventDefault();var n=$(e.target),o=n.serialize(),i=n.attr("action");wpj.domUtils.reloadPartsFromUrl(i,t.element.find("[data-reload]"),o)})),this.element.on("click","[data-ondemand]",(function(e){var n=$(e.target).attr("href");return wpj.domUtils.reloadPartsFromUrl(n,t.element.find("[data-reload]"),void 0,(function(){})),!1}))}}),$(document).on("click","[data-wpj-focus]",(function(){var t=$(this).data("wpj-focus"),e=$(this).data("wpj-focus-ajax"),n=$(this).data("wpj-focus-remove-on-close"),o=$(this).data("wpj-focus-custom-class"),i=$(this).data("wpj-focus-trigger-event-name");return t&&wpj.focus.createDeduplicated(t,!!e,n,o,i),!1}))},2924:function(){$.widget("wpj.login",$.wpj.focus,{options:{$link:"#login_link",disableScroll:!1,addBodyPadding:!1},_create:function(){var t=this,e=this.options.disableScroll;this.options.$link=$(this.options.$link),this.options.$link.on("click",(function(){return t.toggle()})),$("body").on("click",".cart-signin",(function(n){var o=$(n.target).closest("[data-signin-next]").data("signin-next");o&&t.setNextUrl(o);var i=t.toggle(!0);return e||wpj.domUtils.scrollTo(t.element),i})),this.element.on("click",'a[href^="/connect/"]',(function(e){var n=$(e.currentTarget).attr("href").match("([^?]+)")[1];e.target.href=n+"?next="+encodeURIComponent(t.element.find(":input[name=url]").val())})),this._super()},show:function(){return this.options.$link.addClass("opened"),this._super()},hide:function(){return this.options.$link.removeClass("opened"),this._super()},setEmail:function(t){var e=this;this.toggle(!0),this.element.find(":input[name=login]").val(t),setTimeout((function(){e.element.find(":input[name=password]").focus()}),100)},setNextUrl:function(t){this.element.find(":input[name=url]").val(t)}})},1952:function(){var t;wpj.onReady={callbacks:null!==(t=wpj.onReady)&&void 0!==t?t:[],processed:!1,push:function(t){wpj.onReady.callbacks.push(t),wpj.onReady.processed&&wpj.onReady.process()},processAll:function(){wpj.onReady.processed=!0,wpj.onReady.process()},process:function(){for(var t;t=wpj.onReady.callbacks.shift();)t()}}},2984:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,a,s=[],c=!0,l=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(e,n,o){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}$.widget("wpj.autocomplete",{options:{$menu:null,minLength:2,xhr:null,preload:null,preloadedContent:null,source:null,localePrefix:null,searchTimer:650,template:"{{~it.items :item :index}} {{#def.menuItem}} {{~}}",subtemplates:{menuItem:'<div data-autocomplete-item="{{? item.value }}{{=item.value}}{{??}}{{=item.label}}{{?}}">{{=item.label}}</div>'}},_create:function(){this._super();var t=this.options.source;this.options.localePrefix&&(t=this.options.localePrefix+this.options.source),this.options.source=wpj.template.compile(t);var e=this;this.element.on("input",(function(t){var n=e.element.val();n.length>=e.options.minLength?wpj.domUtils.resetTimer("autocomplete",e.options.searchTimer,(function(){e.search(n)})):(e.cancelSearch(),e.close(),e.options.preload&&0===n.length&&e.openPreloadMenu())})),this.element.on("focus",(function(t){var n=e.element.val();e.options.preload&&0===n.length?e.openPreloadMenu():0===e.options.minLength&&wpj.domUtils.resetTimer("autocomplete",300,(function(){e.search("")}))}))},search:function(t){this.options.xhr&&this.options.xhr.abort(),t=encodeURIComponent(t);var e=this,n=this.options.source({value:t});this.options.xhr=$.getJSON(n,(function(n){e.open(),e.render(i(i({},{searchTerm:t}),e.prepareData(n)))}))},cancelSearch:function(){if(!this.options.xhr)return!1;this.options.xhr.abort(),this.options.xhr=null},prepareData:function(t){return{items:t}},select:function(t,e){var n=$(t.target).closest("a[href]");if(n.attr("href"))return!0;if(0===e.length)return!1;if((n=e.find("a")).attr("href"))return $(location).attr("href",n.attr("href")),!0;var o=e.data("autocomplete-item");return this.element.val(o),!1},onKeyPress:function(t){switch(t.key){case"ArrowDown":isNaN(this.selectPosition)&&(this.selectPosition=-1),this.selectPosition++,this.focusItem(this.selectPosition);break;case"ArrowUp":!isNaN(this.selectPosition)&&this.selectPosition>0&&this.selectPosition--,this.focusItem(this.selectPosition);break;case"Enter":var e=$(this.options.$menu[0]).find('[data-autocomplete-position="'+this.selectPosition+'"]');this.select(t,e),this.close();break;default:return!0}return!1},focusItem:function(t){var e=$(this.options.$menu[0]).find('[data-autocomplete-position="'+t+'"]');return e.length&&e.get(0).focus(),!0},openPreloadMenu:function(){if(this.options.preloadedContent)return this.open(),void this.options.$menu.html(this.options.preloadedContent);var t=this;fetch(this.options.preload).then((function(t){return t.json()})).then((function(e){t.options.preloadedContent=e.html,t.open(),t.options.$menu.html(e.html)}))},open:function(){if(this.element.is(".opened"))return!1;var t=this;this.options.$menu||(this.options.$menu=$('<div class="autocomplete"></div>').insertAfter(this.element)),this.element.addClass("opened"),this.options.$menu.addClass("opened"),this.options.$menu.on("click","[data-autocomplete-item]",(function(e){return t.close(),t.select(e,$(e.currentTarget))})),$("body").on("click.productSearch",(function(e){$(e.target).is(t.element)||t.element.has(e.target).length||$(e.target).closest(".autocomplete.opened").length||t.close()})).on("keypress.productSearch",(function(e){return"Escape"!=e.key?t.onKeyPress(e):(t.hide(),!1)}))},close:function(){if(!this.element.is(".opened"))return!1;this.element.removeClass("opened"),this.options.$menu.removeClass("opened"),$("body").off("keydown.hereAddressAutocomplete").off("click.productSearch").off("keypress.productSearch")},render:function(t){var e=this.getTemplate()(t);this.options.$menu.html(e)},getTemplate:function(){return wpj.template.compile(this.options.template,this.options.subtemplates)}}),$.widget("wpj.productSearch",$.wpj.autocomplete,{options:{source:"/autocomplete/?type=product-categories&term={{=it.value}}",template:"#productSearch"},search:function(t){this.options.xhr&&this.options.xhr.abort(),t=encodeURIComponent(t);var e=this,n=this.options.source({value:t});this.options.xhr=$.getJSON(n,(function(n){e.open();var o=i(i({},{searchTerm:t}),e.prepareData(n)),r=function(t,e){var n,i=null==o||null===(n=o.items[t])||void 0===n?void 0:n.items,r=null;return void 0!==i&&void 0!==i&&(r=$.map(i,(function(n){return"Produkty"===t&&void 0===n.price_array?null:e(n)}))),(!i||r&&0===r.length)&&(r=null),r},a={event:"whisperSearch",search:{searchTerm:t,results:{products:r("Produkty",(function(t){var e,n,o,i;return{id:null!==(e=t.id)&&void 0!==e?e:null,name:null!==(n=t.label)&&void 0!==n?n:null,price:null!==(o=t.price_array.price_without_vat)&&void 0!==o?o:null,brand:null!==(i=t.producer.name)&&void 0!==i?i:null}})),articles:r("Clanky",(function(t){var e,n,o;return{id:null!==(e=t.id)&&void 0!==e?e:null,label:null!==(n=t.label)&&void 0!==n?n:null,image:null!==(o=t.photo)&&void 0!==o?o:null}})),categories:r("Kategorie",(function(t){var e,n,o,i,r;return{id:null!==(e=t.id)&&void 0!==e?e:null,name:null!==(n=t.name)&&void 0!==n?n:null,path:null!==(o=t.path)&&void 0!==o?o:null,label:null!==(i=t.label)&&void 0!==i?i:null,imageUrl:null!==(r=t.photo_src)&&void 0!==r?r:null}})),producers:r("Vyrobci",(function(t){return t})),pages:r("Stranky",(function(t){return t}))}}};window.dataLayer&&window.dataLayer.push(a),e.render(o)}))},select:function(t,e){return!("show-all"==e.data("autocomplete-item")||!this._super(t,e))||($(this.element[0].form).find("[type=submit]").click(),!1)}}),$.widget("wpj.deliveryAutocomplete",$.wpj.autocomplete,{options:{inputId:null},_create:function(){this._super();var t=this.element,e=this.options.inputId,n=t.closest("[data-delivery-class]").find(".delete-zip"),o=this;t.on("change",(function(){n.addClass("active")})),t.val()&&n.addClass("active"),n.click((function(){t.val(""),o.options.inputId&&e.val("").trigger("change"),n.removeClass("active")}))},select:function(t,e){this.options.inputId&&this.options.inputId.val(e.data("autocomplete-value")),this.element.val(e.data("autocomplete-name")),this.element.change()}}),$.widget("wpj.hereAddressAutocomplete",$.wpj.autocomplete,{options:{input:null,type:null,searchTimer:300,countryCode:"CZE",resultsType:null,subtemplates:{menuItem:'<div tabindex="-1" data-autocomplete-position="{{=index}}" data-autocomplete-item="{{? item.id }}{{=item.id}}{{??}}{{=item.address.label}}{{?}}" data-autocomplete-item-street="{{? item.address.street}}{{=item.address.street}} {{?}}{{? item.address.houseNumber}}{{=item.address.houseNumber}}{{?}}" data-autocomplete-item-city="{{=item.address.city}}" data-autocomplete-item-zip="{{=item.address.postalCode}}" data-autocomplete-item-countycode="{{? item.address.countyCode}}{{=item.address.countyCode}}{{??}}{{? item.address.county}}{{=item.address.county}}{{?}}{{?}}">{{=item.address.label}}</div>'}},search:function(t){if(this.options.xhr&&this.options.xhr.abort(),$.inArray(this.options.countryCode,["CZE","SVK"])>=0&&"undefined"!=typeof smartform&&smartform.isAddressServiceEnabled())return!1;t=encodeURIComponent(t),this.options.source="https://autocomplete.search.hereapi.com/v1/autocomplete?apiKey=ocu3EtHk1cEZxNKt68Cb_LuJv3GH776B3nrcevQnCAA&in=countryCode:".concat(this.options.countryCode).concat(this.options.resultsType?"&types=".concat(this.options.resultsType):"","&q=");var e=this,n=this.options.source+t;this.options.xhr=$.getJSON(n,(function(t){e.open(),e.render(t)}))},select:function(t,n){if(n[0])for(var o=0,i=Object.entries(n[0].dataset);o<i.length;o++){var r=e(i[o],2),a=r[0],s=r[1],c=a.replace("autocompleteItem","").toLowerCase(),l=$
2("[data-field-".concat(this.options.type,"-").concat(c,"]"));s&&s.indexOf("undefined")<0&&l.val(s).change()}},open:function(){this._super();var t=this;this.selectPosition=NaN,t.element.off("keydown.hereAddressAutocomplete").on("keydown.hereAddressAutocomplete",(function(e){return"Escape"!=e.key?t.onKeyPress(e):(t.close(),!1)})),t.options.$menu.off("keydown.hereAddressAutocomplete").on("keydown.hereAddressAutocomplete",(function(e){return"Escape"!=e.key?t.onKeyPress(e):(t.close(),!1)}))},close:function(){this._super(),this.element.off("keydown.hereAddressAutocomplete"),this.options.$menu&&this.options.$menu.off("keydown.hereAddressAutocomplete")}})},7040:function(){window.loadInvisibleRecaptchaScript=function(){$.getScript("https://www.google.com/recaptcha/api.js?render=explicit&onload=onInvisibleRecaptchaLoad")},window.onInvisibleRecaptchaLoad=function(){"undefined"!=typeof grecaptcha&&$('[data-recaptcha="btn"]').each((function(){var t=$(this).closest("form"),e=$(this).data("sitekey"),n=grecaptcha;n.render(this,{sitekey:e,callback:function(e){t.find(".g-recaptcha-response").val(e),t.submit(),n.reset()}})}))},$("body").one("input","form[data-recaptcha-lazy] input",(function(){"undefined"==typeof grecaptcha?window.loadInvisibleRecaptchaScript():window.onInvisibleRecaptchaLoad()})),window.wpjCaptchaLoaded=function(){wpj.onReady.push((function(){setTimeout((function(){window.wpj.captcha.onWpjCaptchaLoad()}),1e3)}))},window.wpj.captcha={_isFormSubmitting:!1,_formRef:null,onWpjCaptchaLoad:function(){"undefined"!=typeof turnstile&&$(".wpj-captcha").each((function(t,e){$(this).is(":empty")&&turnstile.render(e,{"response-field-name":"wpj-captcha-response",callback:function(t){console.log("Challenge Success",t)}})}))},onWpjLazyCaptchaLoad:function(t){if("undefined"!=typeof turnstile){var e=t.data("wpj-captcha-lazy")||"form",n=t.find('[data-wpj-captcha="btn"]'),o=t.find('[type="submit"]');if(n.length||(n=$('<div data-wpj-captcha="btn"></div>'),t.append(n)),n.is(":empty")){wpj.captcha._formRef=t;var i=turnstile.render(n[0],{action:e,sitekey:window.wpj.data.captcha.sitekey,"response-field-name":"wpj-captcha-invisible-response",callback:function(t){console.log("Challenge Success",t),wpj.captcha._isFormSubmitting&&(wpj.captcha._isFormSubmitting=!1,wpj.captcha._formRef.submit(),turnstile.reset(n[0]),turnstile.execute(n[0]))}});t.on("submit",(function(t){Array.from(o).forEach((function(t){return $(t).prop("disabled",!0)})),turnstile.getResponse(i)||(t.preventDefault(),wpj.captcha._isFormSubmitting=!0,turnstile.reset(i),turnstile.execute(i))}))}}},retrySubmit:function(t,e){"undefined"!=typeof turnstile&&setTimeout((function(){turnstile.getResponse(e)?$(t).submit():wpj.captcha.retrySubmit()}),1e3)},loadCaptchaScript:function(t){$.getScript("https://challenges.cloudflare.com/turnstile/v0/api.js?onload=wpjCaptchaLoaded",t)},initializeCaptcha:function(t){"undefined"==typeof turnstile?wpj.captcha.loadCaptchaScript((function(){return wpj.captcha.onWpjLazyCaptchaLoad(t)})):wpj.captcha.onWpjLazyCaptchaLoad(t)}},$("body").one("input","form[data-wpj-captcha-lazy] input",(function(t){var e=$(this).closest("form");wpj.captcha.initializeCaptcha(e)}))},1036:function(){wpj.storage={getValue:function(t){try{return localStorage.getItem(t)}catch(t){return null}},setValue:function(t,e){try{return localStorage.setItem(t,e)}catch(t){return!1}},cookies:{getItem:function(t){return t&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(t,e,n,o,i){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var r="";if(n)switch(n.constructor){case Number:r=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:r="; expires="+n;break;case Date:r="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+r+(i?"; domain="+i:"")+"; path="+(o||"/")+"; secure; samesite=lax",!0},removeItem:function(t,e,n){return!!this.hasItem(t)&&(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(e?"; path="+e:""),!0)},hasItem:function(t){return!!t&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=t.length,n=0;n<e;n++)t[n]=decodeURIComponent(t[n]);return t}},consents:{consents:{},getConsent:function(t){return t?(this.getConsents(),!!this.consents[t]&&this.consents[t]):null},getConsents:function(){var t=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent("cookie-bar").replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")).split(",");return t instanceof Array||(t=[]),this.consents={ad_storage:t.includes("ad_storage")?"granted":"denied",personalization_storage:t.includes("personalization_and_functionality_storage")?"granted":"denied",functionality_storage:"granted",analytics_storage:t.includes("analytics_storage")?"granted":"denied"}},isEnabled:function(t){return!window.wpj.cookie_bar_send||"granted"===this.getConsent(t)}}}},3352:function(t,e,n){var o;wpj.template={render:function(t,e){return wpj.template.compile(t)(e)}
2,compile:function(t,e){return t?(wpj.template.init(),"#"==t[0]&&(t=wpj.template.loadFromScript(t)),wpj.template.engine.template(t,null,e)):function(t){return JSON.stringify(t)}},engine:null,init:function(){wpj.template.engine||(!function(){function i(t,e,n){return("string"==typeof e?e:e.toString()).replace(t.define||u,(function(e,o,i,r){return 0===o.indexOf("def.")&&(o=o.substring(4)),o in n||(":"===i?(t.defineParams&&r.replace(t.defineParams,(function(t,e,i){n[o]={arg:e,text:i}})),o in n||(n[o]=r)):new Function("def","def['"+o+"']="+r)(n)),""})).replace(t.use||u,(function(e,o){t.useParams&&(o=o.replace(t.useParams,(function(t,e,o,i){if(n[o]&&n[o].arg&&i)return t=(o+":"+i).replace(/'|\\/g,"_"),n.__exp=n.__exp||{},n.__exp[t]=n[o].text.replace(new RegExp("(^|[^\\w$])"+n[o].arg+"([^\\w$])","g"),"$1"+i+"$2"),e+"def.__exp['"+t+"']"})));var r=new Function("def","return "+o)(n);return r?i(t,r,n):r}))}function r(t){return t.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var a,s={version:"1.0.3",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0};s.encodeHTMLSource=function(t){var e={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=t?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(t){return t?t.toString().replace(n,(function(t){return e[t]||t})):""}},a=function(){return this||(0,eval)("this")}(),t.exports?t.exports=s:void 0===(o=function(){return s}.call(e,n,e,t))||(t.exports=o);var c={start:"'+(",end:")+'",startencode:"'+encodeHTML("},l={start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("},u=/$^/;s.template=function(t,e,n){var o,d,p=(e=e||s.templateSettings).append?c:l,f=0;t=e.use||e.define?i(e,t,n||{}):t,t=("var out='"+(e.strip?t.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):t).replace(/'|\\/g,"\\$&").replace(e.interpolate||u,(function(t,e){return p.start+r(e)+p.end})).replace(e.encode||u,(function(t,e){return o=!0,p.startencode+r(e)+p.end})).replace(e.conditional||u,(function(t,e,n){return e?n?"';}else if("+r(n)+"){out+='":"';}else{out+='":n?"';if("+r(n)+"){out+='":"';}out+='"})).replace(e.iterate||u,(function(t,e,n,o){return e?(f+=1,d=o||"i"+f,e=r(e),"';var arr"+f+"="+e+";if(arr"+f+"){var "+n+","+d+"=-1,l"+f+"=arr"+f+".length-1;while("+d+"<l"+f+"){"+n+"=arr"+f+"["+d+"+=1];out+='"):"';} } out+='"})).replace(e.evaluate||u,(function(t,e){return"';"+r(e)+"out+='"}))+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|\}|^|\{)out\+='';/g,"$1").replace(/\+''/g,""),o&&(e.selfcontained||!a||a._encodeHTML||(a._encodeHTML=s.encodeHTMLSource(e.doNotSkipEncoded)),t="var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : ("+s.encodeHTMLSource.toString()+"("+(e.doNotSkipEncoded||"")+"));"+t);try{return new Function(e.varname,t)}catch(e){throw"undefined"!=typeof console&&console.log("Could not create a template function: "+t),e}},s.compile=function(t,e){return s.template(t,null,e)}}(),t.exports?wpj.template.engine=t.exports:wpj.template.engine=window.doT)},loadFromScript:function(t){return $(t)[0].text}}},4504:function(){var t,e,n;t=jQuery,e=0,n=Array.prototype.slice,t.cleanData=function(e){return function(n){var o,i,r;for(r=0;null!=(i=n[r]);r++)try{(o=t._data(i,"events"))&&o.remove&&t(i).triggerHandler("remove")}catch(t){}e(n)}}(t.cleanData),t.widget=function(e,n,o){var i,r,a,s,c={},l=e.split(".")[0];return e=e.split(".")[1],i=l+"-"+e,o||(o=n,n=t.Widget),t.expr[":"][i.toLowerCase()]=function(e){return!!t.data(e,i)},t[l]=t[l]||{},r=t[l][e],a=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,r,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),(s=new n).options=t.widget.extend({},s.options),t.each(o,(function(e,o){return t.isFunction(o)?void(c[e]=function(){var t=function(){return n.prototype[e].apply(this,arguments)},i=function(t){return n.prototype[e].apply(this,t)};return function(){var e,n=this._super,r=this._superApply;return this._super=t,this._superApply=i,e=o.apply(this,arguments),this._super=n,this._superApply=r,e}}()):void(c[e]=o)})),a.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},c,{constructor:a,namespace:l,widgetName:e,widgetFullName:i}),r?(t.each(r._childConstructors,(function(e,n){var o=n.prototype;t.widget(o.namespace+"."+o.widgetName,a,n._proto)})),delete r._childConstructors):n._childConstructors.push(a),t.widget.bridge(e,a),a}
vendor: 3,648 bytes, line 2
2,t.widget.extend=function(e){for(var o,i,r=n.call(arguments,1),a=0,s=r.length;s>a;a++)for(o in r[a])i=r[a][o],r[a].hasOwnProperty(o)&&void 0!==i&&(e[o]=t.isPlainObject(i)?t.isPlainObject(e[o])?t.widget.extend({},e[o],i):t.widget.extend({},i):i);return e},t.widget.bridge=function(e,o){var i=o.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,s=n.call(arguments,1),c=this;return a?this.each((function(){var n,o=t.data(this,i);return"instance"===r?(c=o,!1):o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,s))!==o&&void 0!==n?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")})):(s.length&&(r=t.widget.extend.apply(null,[r].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(r||{}),e._init&&e._init()):t.data(this,i,new o(r,this))}))),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(n,o){o=t(o||this.defaultElement||this)[0],this.element=t(o),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),o!==this&&(t.data(o,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===o&&this.destroy()}}),this.document=t(o.style?o.ownerDocument:o.document||o),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var o,i,r,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},o=e.split("."),e=o.shift(),o.length){for(i=a[e]=t.widget.extend({},this.options[e]),r=0;o.length-1>r;r++)i[o[r]]=i[o[r]]||{},i=i[o[r]];if(e=o.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,n,o){var i,r=this;"boolean"!=typeof e&&(o=n,n=e,e=!1),o?(n=i=t(n),this.bindings=this.bindings.add(n)):(o=n,n=this.element,i=this.widget()),t.each(o,(function(o,a){function s(){return e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?r[a]:a).apply(r,arguments):void 0}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var c=o.match(/^([\w:-]*)\s*(.*)$/),l=c[1]+r.eventNamespace,u=c[2];u?i.delegate(u,l,s):n.bind(l,s)}))}
2,_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(n).undelegate(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?o[t]:t).apply(o,arguments)}var o=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,n,o){var i,r,a=this.options[e];if(o=o||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(i in r)i in n||(n[i]=r[i]);return this.element.trigger(n,o),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(o))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(o,i,r){"string"==typeof i&&(i={effect:i});var a,s=i?!0===i||"number"==typeof i?n:i.effect||n:e;"number"==typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=r,i.delay&&o.delay(i.delay),a&&t.effects&&t.effects.effect[s]?o[e](i):s!==e&&o[s]?o[s](i.duration,i.easing,r):o.queue((function(n){t(this)[e](),r&&r.call(o[0]),n()}))}})),t.widget},9312:function(t,e,n){n(5112),n(6244),n(7552),n(7056),n(6960),n(9347),window.wpj.bust=1},7552:function(t,e,n){n(2488),$=n(4524),n.g.$=n.g.jQuery=$,window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),n(1236),n(6024),n(1952),n(4504),n(1036),n(2984),n(7248),n(2924),n(3795),n(580),n(3352),n(6843),n(6872),n(7996),n(7040),n(3564)},6976:function(){$(".main-delivery").on("change","[data-delivery-seller-input]",(function(t){$('[data-opener="[data-ordering-sellers]"]').click()})),$("body").on("click update","[data-custom-opener]",(function(t){var e=$(t.currentTarget),n=$(e.data("custom-opener")),o=e.is(".active");return"update"!=t.type&&(o=!o),n[o?"slideDown":"slideUp"]()[o?"addClass":"removeClass"]("active").trigger("opened"),e[o?"addClass":"removeClass"]("active"),!e.is("a")})).find("[data-custom-opener]").trigger("update"),jQuery.expr[":"].icontains=function(t,e,n){return jQuery(t).text().toLowerCase().indexOf(n[3].toLowerCase())>=0};var t=function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()};$("body").on("keyup change","[data-seller-search-input]",(function(e){var n=$(this).data("seller-search-input"),o=$('[data-seller-list="'+n+'"]'),i=$('[data-seller-not-found="'+n+'"]'),r=t($(this).val());wpj.domUtils.resetTimer("sellers-search",200,(function(){r?(o.addClass("searching"),o.find(".seller-row").hide().filter((function(){return t($(this).text()).includes(r)})).css("display","flex"),o.find(".seller-row:visible").length?i.hide():i.show()):(o.removeClass("searching"),o.find(".seller-row").css("display","flex"),i.hide())}))}))},1120:function(){$("body").on("click","[data-focus-opener]",(function(){var t=$(this).data("focus-opener"),e=$(".focus.".concat(t)),n=e.find("a[data-ondemand]"),o=e.find("a[data-ondemand-content]");if(e.focus({addBodyPadding:!0}),e.data("last-focused",document.activeElement),e.focus("show"),n&&n.attr("href")){var i=n.attr("href");n.remove(),wpj.domUtils.reloadPartsFromUrl(i,e.find("[data-reload]"),void 0,(function(){var e=$
2('[data-form="'.concat(t,'"]'));e.hasClass("bv-form")||e.bootstrapValidator({feedbackIcons:{valid:"fc fc-check",invalid:"fc fc-remove",validating:"fc fc-refresh"}}).on("success.form.bv",(function(t){t.preventDefault();var e=$(t.target),n=e.serialize(),o=e.attr("action");wpj.domUtils.reloadPartsFromUrl(o,e.closest("[data-reload]"),n)}))}))}if(o&&o.attr("href")){var r=o.attr("href");o.remove(),wpj.domUtils.reloadPartsFromUrl(r,e.find("[data-reload]"),void 0,(function(){}))}return!1}))},7996:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,n(i.key),i)}}function n(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(new(function(){"use strict";function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.formSelector="[data-form]",this.submitButtonSelector="[data-form-submit]"}var n,o,i;return n=t,(o=[{key:"init",value:function(){var t=this,e=this;document.querySelectorAll(this.formSelector).forEach((function(n){var o=n.querySelector(t.submitButtonSelector);o&&e.registerSubmitButton(n,o)}))}},{key:"registerSubmitButton",value:function(t,e){var n=this,o=this;e.addEventListener("click",(function(){var e=t.dataset.form,i=o.collectFormData(t);return o.sendForm(e,i).then((function(e){e.text().then((function(e){t.innerHTML=e,"function"==typeof recaptchaCallback&&recaptchaCallback();var i=t.querySelector(n.submitButtonSelector);i&&o.registerSubmitButton(t,i)}))})),!1}))}},{key:"sendForm",value:function(t,e){return fetch("/formulare/"+t+"/",{method:"POST",redirect:"follow",body:e})}},{key:"collectFormData",value:function(t){var e=new FormData;return t.querySelectorAll("[name]").forEach((function(t){e.append(t.getAttribute("name"),t.value)})),e}}])&&e(n.prototype,o),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}())).init()},9347:function(){$("[data-infopanel]").on("click","[data-infopanel-close]",(function(){var t,e=$(this).parent(),n=e.data("version");e.remove();var o=JSON.parse(null!==(t=window.localStorage.getItem("info_panels"))&&void 0!==t?t:"{}");o["info-panel-".concat(e.attr("data-infopanel"))]={version:n,interval:"Infinity"},window.localStorage.setItem("info_panels",JSON.stringify(o))}))},3564:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,n(i.key),i)}}function n(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}var o=function(){"use strict";function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var n,o,i;return n=t,(o=[{key:"initLazy",value:function(){var t=this,e=new IntersectionObserver((function(n){n.forEach((function(n){n.isIntersecting&&(t.loadProducts(n.target),e.unobserve(n.target))}))}),{rootMargin:"300px 0px 300px 0px"});document.querySelectorAll("[data-recommender]").forEach((function(t){e.observe(t)}))}},{key:"loadProducts",value:function(t){t&&wpj.jsShop.events.push((function(){window.wpj.jsShop.loadRecommendersProducts(t)}))}}])&&e(n.prototype,o),i&&e(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();wpj.recommenders=new o,wpj.recommenders.initLazy()},6960:function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};
2n%2?e(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}new(function(){"use strict";function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.wpj.tracking=this,this.setDefaults(),this.clearState(),this.setListeners()}var e,o,r;return e=t,o=[{key:"setDefaults",value:function(){this.defaultState={event:void 0,action:void 0,data:{target:void 0,event:void 0,action:void 0,idincart:void 0,id:void 0,sku:void 0,active:void 0,value:void 0,once:!1}},this.state=void 0}},{key:"setListeners",value:function(){$("body").click((function(t){$(t.target).data("tracking-filter")?window.wpj.tracking.handleFilter(t,"click",!1):window.wpj.tracking.handleEvent(t,"click")})),$("body").on("beforeAddToCart",(function(t,e){window.wpj.tracking.handleAddToCart(e,"click")})),$("body").on("change",'select[data-filter-input][name="order"]',(function(t){var e=$(t.target).find("option:selected");e.length&&(t.target=e[0],window.wpj.tracking.handleFilter(t,"click",!1))})),$(document).on("change",'.filter-param-float [name^="dynamic_filter"], .filter-price [name^="dynamic_filter"]',(function(t){var e=$(t.target);null!=e&&e.data("tracking-filter")&&(t.target=e[0],window.wpj.tracking.handleFilter(t,"click",!0))})),$(document).on("mousedown",(function(t){2===t.which&&$(document).one("mouseup",(function(e){if(t.target===e.target){var n=$.event.fix(e);n.type="middleclick",$(e.target).trigger(n)}}))})),$(document).on("middleclick",(function(t){window.wpj.tracking.handleEvent(t,"click")})),window.wpj.tracking.handleDeliveryTypeChange("cartdeliverychange","deliveryChange"),window.wpj.tracking.handleDeliveryTypeChange("cartpaymentchange","paymentChange"),window.wpj.tracking.handleImpressions()}},{key:"clearState",value:function(){this.state=this.defaultState}},{key:"handleEvent",value:function(t,e){this.clearState();var n=t.target,o=this.findUrl(n);this.state.event=t,this.state.action=e,this.state.data=this.findData(n),this.isEmpty(this.state.data.target)&&(this.state.data.target=o),this.isEmpty(this.state.data.event)&&(this.state.data.event="default"),this.isEmpty(this.state.data.action)&&(this.state.data.action=e),this.callEvents()}},{key:"handleAddToCart",value:function(t,e){this.clearState();var n=t.target.get(0);this.state.event=t,this.state.action=e,this.state.data=this.findAttribute(n,"data-tracking-clickAddToCart",!0),this.handleDefault()}},{key:"handleFilter",value:function(t,e,n){this.clearState();var o=t.target,i=this.findUrl(o);this.state.event=t,this.state.action=e,this.state.data=this.findAttribute(o,"data-tracking-filter",!0),this.isEmpty(this.state.data.target)&&(this.state.data.target=i),this.isEmpty(this.state.data.event)&&(this.state.data.event="default"),this.isEmpty(this.state.data.action)&&(this.state.data.action=e),this.state.data.filtrValue||(this.state.data.filtrValue={}),n?this.state.data.filtrValue.value=o.value:this.state.data.filtrValue.active=o.checked,this.callPush(this.state.data)}},{key:"callEvents",value:function(){switch(this.state.action){case"click":case"cancel":this.state.data.event,this.handleDefault();break;case"cartQty":this.handleCartQty()}}},{key:"handleDefault",value:function(){"default"!==this.state.data.event&&this.callPush(this.state.data)}},{key:"handleCartQty",value:function(){var t=this.state.data.idincart,e=parseInt($(".order-products-cart").find('input[name="products['+t+'][pieces]"]input[data-cart="pieces"]').val()),n={sku:this.state.data.sku,qty:e+1,old_qty:e};"-1"===this.state.data.target&&(n.qty=e-1),this.callPush({event:"changeInCart",behavior:n})}},{key:"callPush",value:function(t){var e=t.once;if(delete t.once,e&&t.hasOwnProperty("event")){var n,o=i(window.dataLayer);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.hasOwnProperty("event")&&r.event===t.event)return}}catch(t){o.e(t)}finally{o.f()}}var a=wpj.storage.cookies.getItem("gtm_event_uid")||1;t.eventId=++a,wpj.storage.cookies.setItem("gtm_event_uid",a,2592e3,"/"),dataLayer.push(t)}},{key:"findData",value:function(t){return this.findAttribute(t,"data-tracking-click",!0)}},{key:"findUrl",value:function(t){return this.findAttribute(t,"href",!1)}},{key:"findAttribute",value:function(t,e,o){var i=this.event,r=!1;
2if(t||(t=i.target),o){if(r={},t.hasAttribute(e)&&(r=JSON.parse(t.getAttribute(e)),t.parentElement)){var a,s,c=null===(a=t.parentElement.querySelector('[name="No"]'))||void 0===a?void 0:a.value;c&&null!==(s=r)&&void 0!==s&&null!==(s=s.add)&&void 0!==s&&s.products[0]&&(r.add.products[0].quantity=parseFloat(c))}t.parentElement&&(r=n(n({},this.findAttribute(t.parentElement,e,o)),r))}else t.hasAttribute(e)?r=t.getAttribute(e):t.parentElement&&(r=this.findAttribute(t.parentElement,e,o));return r}},{key:"isEmpty",value:function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}},{key:"handleImpressions",value:function(){var t=document.querySelectorAll("[data-tracking-view]"),e=new IntersectionObserver((function(t){t.forEach((function(t){t.intersectionRatio>0&&t.target.getAttribute("data-tracking-view")&&(window.wpj.tracking.callPush(window.wpj.tracking.findAttribute(t.target,"data-tracking-view",!0)),t.target.removeAttribute("data-tracking-view"))}))}),{rootMargin:"0px 0px 0px 0px",threshold:.01});t.forEach((function(t){e.observe(t)}))}},{key:"handleDeliveryTypeChange",value:function(t,e){$("#cart").on(t,(function(t){clearTimeout(window.wpj.tracking[e]),window.wpj.tracking[e]=setTimeout((function(){t.originalEvent&&window.wpj.tracking.callPush(window.wpj.tracking.findAttribute(t.originalEvent.target,"data-tracking-click-delivery-type",!0))}),100)}))}}],o&&a(e.prototype,o),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}())},9076:function(t,e,n){n(9312),n(1120),n(1980)},2080:function(){$("html:not(.has-touch)").on({mouseenter:function(){var t=$(this).find("[data-rotator]");t.attr("src",t.data("rotator"))},mouseleave:function(){var t=$(this).find("[data-rotator]");t.attr("src",t.data("src"))}},"[data-catalog-rotator]")},2896:function(){var t=$("body");function e(t){9===t.keyCode&&(document.documentElement.classList.add("tab-key"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",n))}function n(){document.documentElement.classList.remove("tab-key"),window.removeEventListener("mousedown",n),window.addEventListener("keydown",e)}$("html").removeClass("no-js").addClass("has-js"),t.one("touchstart",(function(){$("html").addClass("has-touch"),window.removeEventListener("keydown",e)})),window.addEventListener("keydown",e),$("#login").login({addBodyPadding:!0,disableScroll:!0}),$('[data-toggle="search"]').on("click",(function(){var t=$("[data-search-form]");t.toggleClass("active");var e=$("input[name=search]").get(0);return e&&t.hasClass("active")&&e.focus(),!1}));var o="[data-search-clear]",i="[data-search-input-resp]";t.on("keyup change",i,(function(){var t=$(this).val();wpj.domUtils.resetTimer("main-search",200,(function(){$(o).toggleClass("visible",t.length>0)}))})).on("click",o,(function(){return $(i).val("").change().get(0).focus(),!1})),$('[data-toggle="burger"]').on("click",(function(){return $('.header [data-toggle="burger"]').toggleClass("active"),$("[data-sections-responsive]").toggleClass("active"),$("body").toggleClass("scroll-disable"),!1})),$("[data-scrollto]").on("click",(function(t){t.preventDefault();var e=$($(this).attr("href"));return wpj.domUtils.scrollTo(e),!1})),$("[data-toggle-password]").on("click",(function(){var t=$(this);if(""!==t.data("toggle-password")){var e=$(t.data("toggle-password"));if(e.length){var n,o;if("password"===e.attr("type"))e.attr("type","text"),t.text(null!==(n=t.data("trans-hide"))&&void 0!==n?n:"Skrýt");else e.attr("type","password"),t.text(null!==(o=t.data("show"))&&void 0!==o?o:"Zobrazit");return!1}}})),$('[data-sections="header"] .has-submenu').on({mouseenter:function(){var t=this;setTimeout((function(){$(t).is(":hover")&&($(t).find("img").filter((function(){return!$(this).attr("src")})).each((function(t){$(this).attr("src",$(this).data("src"))})),$(t).addClass("hover"))}),200)},mouseleave:function(){var t=this;setTimeout((function(){$(t).is(":hover")||$(t).removeClass("hover")}),200)}})},1980:function(){var t;(t=$("[data-sections-responsive]")).on("click",".toggle-sub",(function(){t.addClass("has-child-selection"),$(this).closest(".
2nav-item.active").removeClass("active").addClass("active-parent"),$(this).closest(".nav-item").addClass("active")})),t.on("click",".toggle-back",(function(){$(this).closest(".nav-item").removeClass("active"),$(this).closest(".active-parent").removeClass("active-parent").addClass("active"),$(this).closest(".nav-item").closest(".sub-nav").length||t.removeClass("has-child-selection")}))},7056:function(t,e,n){"use strict";n.r(e);var o=n(7600),i=n(5832);n(2896),n(2080),n(6976),n(7816),(0,i.eI)(!1,null);var r=$("body");r.on("click",'[data-cookie-bar="reject"]',(function(t){t.preventDefault(),$('[data-cookie-bar="advanced"] [data-cookie-bar="custom"]:not([data-cookie-custom="allow-all"])').click()}));var a=$('[data-toggle="search"]'),s=$("[data-search-form]"),c=s.find("[data-search-clear], [data-search-input]");if(r.on("click",(function(t){s.hasClass("active")&&!$(t.target).closest(".header-search-outer").length&&(s.removeClass("active"),$("[data-search-clear]").click())})),a.on("click",(function(t){$("[data-search-clear]").click(),c.attr("tabindex",s.hasClass("active")?"0":"-1")})),r.on("click","[data-view-password]",(function(){var t=$(this),e=t.next("input");if(e.length)return"password"===e.attr("type")?(e.attr("type","text"),t.removeClass("icons_view").addClass("icons_no_view")):(e.attr("type","password"),t.removeClass("icons_no_view").addClass("icons_view")),!1})),r.on("sellersFocusLoaded",(function(t){new(n(6756))('[data-tabs="sellers-tabs"]')})),$(".home-slider-collections-tns").length)(0,o.tns)({container:".home-slider-collections-tns",items:1.2,slideBy:1,gutter:10,nav:!1,controls:!0,controlsText:["",""],responsive:{544:{items:2,gutter:15},850:{items:3,gutter:15},1200:{items:4,gutter:15}}});if($("#home-reviews").length)(0,o.tns)({container:".home-reviews-carousel",items:4,slideBy:1,gutter:15,nav:!1,controls:!0,controlsText:['<i class="fc lightbox_left"></i>','<i class="fc lightbox_right"></i>'],responsive:{290:{items:1.2},580:{items:2},700:{items:2.5},900:{items:3},1300:{items:4}}});r.on("click","[data-change-seller-trigger]",(function(t){var e=$(this),n=e.data("seller-focus-url");return $.ajax({type:"POST",url:e.attr("href"),success:function(t){wpj.domUtils.reloadPartsFromUrl(n,$('[data-reload="seller-switcher-header"]')),wpj.domUtils.reloadPartsFromUrl(e.attr("href"),$('[data-reload="header-seller-name"]'));var o=$('[data-reload="product-price-availability"]');o&&wpj.domUtils.reloadPartsFromUrl(window.location.pathname,o),$(".focus-seller-picker").animate({scrollTop:0})}}),!1})),$('[data-toggle="search"]').click((function(){$("body").toggleClass("scroll-disable")})),$(document).on("click",(function(t){var e;e=t.target,$(e).closest(".header-search").length||function(t){return $(t).closest(".jsmenu").length||$(t).closest(".header-burger").length}(t.target)||$("body").removeClass("scroll-disable")})),$(document).ready((function(){$("textarea.no-emoji").on("input",(function(){var t=$(this).val().replace(/[\uD800-\uDFFF\uDC00-\uFFFF]|[\uD83C\uD83D\uD83E][\uDC00-\uDFFF]|[\uD83C\uD83D\uD83E][\uD83C-\uDFFF]|[\uD83E]\uDC00[\uD83C-\uD83F]/g,"");$(this).val(t)}))})),$(document).ready((function(){"0 Kč"===$(".price-box-row-cart-price").text().trim()&&$(".price-box-row-cart-price").text("zdarma")})),$(document).on("click",'[data-toggle="dropdown"]',(function(){$(this).closest(".dropdown").toggleClass("open"),setTimeout((function(){$("body").addClass("dropdown-active")}))})),$(document).on("click",".dropdown-active",(function(t){$(t.target).closest(".dropdown").length||($("body").removeClass("dropdown-active"),$(".dropdown.open").removeClass("open"))}))},6024:function(t,e,n){"use strict";n.r(e);var o,i=n(4040),r=n.n(i),a=n(8444),s=n.n(a);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t){function e(t,n){return t&&(n(t)?t:e(t.parentNode,n))}(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;var n=e(t.target||t.srcElement,(function(t){return 1===t.nodeType?t.matches('[data-rel="gallery"]'):null}));if(n){var o=e(n,(function(t){return 1===t.nodeType?t.matches("[data-gallery-wrapper]"):null}));o||(o=n.parentNode);for(var i,a=o.querySelectorAll('[data-rel="gallery"]'),c=0,l=0;l<a.length;l++)if(1===a[l].nodeType){if(a[l]===n){i=c;break}c++}return i>=0&&function(t,e){var n,o=document.querySelectorAll(".pswp")[0],i=function(t){for(var e=t.querySelectorAll('[data-rel="gallery"]'),n=[],o=0;o<e.length;o++){var i=e[o];if(1===i.nodeType){var r=i.querySelectorAll("img"),a=i.getAttribute("data-size"),s=void 0;"video"===i.getAttribute("data-type")?(s={html:'<div class="video-wrapper"><div class="video"><iframe class="pswp__video" width="437" height="861" src="'+i.getAttribute("href")+'" frameborder="0" allowfullscreen></iframe></div></div>'}).o={html:s.html}:(s={src:i.getAttribute("href"),w:a?a.split("x")[0]:0,h:a?a.split("x")[1]:0,el:i,title:r.length?r[0].title||r[0].alt:0}).o={src:s.src,w:s.w,h:s.h},n.push(s)}}return n}(e),a={barsSize:{top:0,bottom:0},fullscreenEl:!1,shareEl:!1,bgOpacity:1,showHideOpacity:!0,tapToToggleControls:!1,index:parseInt(t),clickToCloseNonZoomable:!1,showAnimationDuration:0,hideAnimationDuration:0,history:!1};if(isNaN(a.index))return;var c,l,u=new(r())(o,s(),i,a),d=!1,p=!0;u.listen("beforeResize",(function(){var t=window.devicePixelRatio?window.devicePixelRatio:1;t=Math.min(t,2.5),(c=u.viewportSize.x*t)>=1200||!u.likelyTouchDevice&&c>800||screen.width>
21200?d||(d=!0,l=!0):d&&(d=!1,l=!0),l&&!p&&u.invalidateCurrItems(),p&&(p=!1),l=!1})),u.listen("gettingData",(function(t,e){if(e.w<=1||e.h<1){var n=new Image;n.onload=function(){e.w=this.width,e.h=this.height,e.needsUpdate=!0,u.updateSize(!0)},e.src&&(n.src=e.src)}})),u.init(),$("body").addClass("focus-opened"),null===(n=$(".product-tabs video")[0])||void 0===n||n.pause(),u.listen("close",(function(){var t;$("iframe").each((function(t){var e=$("<iframe></iframe>"),n=$(this).prop("attributes");$.each(n,(function(){e.attr(this.name,this.value)})),$(this).replaceWith(e)})),$("body").removeClass("focus-opened"),null===(t=$(".product-tabs video")[0])||void 0===t||t.play()}))}(i,o),!1}}o='[data-rel="gallery"]',document.addEventListener("click",(function(t){for(var e=window.innerWidth,n=t.target;n&&n!=this;n=n.parentNode)if("object"===c(n)&&"function"==typeof n.matches&&n.matches(o)){if(e<=768)return void t.preventDefault();l.call(n,t);break}}),!1)},7816:function(){var t,e,n,o,i;n=$("[data-tooltip-wrapper], .order-container"),o=!1,i=!1,n.on("mouseenter","[data-tooltip]",(function(){if(o=$(this),t=o.data("tooltip"),e=o.data("flag"),i=$('<div class="wpj-tooltip"></div>'),!t||""===t)return!1;o.removeAttr("title"),i.css("opacity",0).addClass(e).html(t).appendTo("body");var n=function(){$(window).width()<1.5*i.outerWidth()?i.css("max-width",$(window).width()/2):i.css("max-width",340);var t=o.offset().left+o.outerWidth()/2-i.outerWidth()/2,e=o.offset().top-i.outerHeight()-20;t<0?(t=o.offset().left+o.outerWidth()/2-20,i.addClass("left")):i.removeClass("left"),t+i.outerWidth()>$(window).width()?(t=o.offset().left-i.outerWidth()+o.outerWidth()/2+20,i.addClass("right")):i.removeClass("right"),e<0?(e=o.offset().top+o.outerHeight(),i.addClass("top")):i.removeClass("top"),i.css({left:t,top:e}).animate({top:"+=10",opacity:1},50)};n(),$(window).resize(n);var r=function(){i.animate({top:"-=10",opacity:0}
vendor: 4,662 bytes, line 2
2,50,(function(){$(this).remove()})),o.attr("title",t)};o.one("mouseleave",r),i.one("click",r)}))},6843:function(t,e,n){"use strict";n.r(e);var o=n(3096),i=n(6956);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(){var t=p(),e=t.m(a),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function o(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var i={throw:1,return:2,break:3,continue:3};function r(t){var e,n;return function(o){e||(e={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(t,e){return n(o.a,i[t],e)},delegateYield:function(t,i,r){return e.resultName=i,n(o.d,s(t),r)},finish:function(t){return n(o.f,t)}},n=function(t,n,i){o.p=e.prev,o.n=e.next;try{return t(n,i)}finally{e.next=o.n}}),e.resultName&&(e[e.resultName]=o.v,e.resultName=void 0),e.sent=o.v,e.next=o.n;try{return t.call(this,e)}finally{o.p=e.prev,o.n=e.next}}}return(a=function(){return{wrap:function(e,n,o,i){return t.w(r(e),n,o,i&&i.reverse())},isGeneratorFunction:o,mark:t.m,awrap:function(t,e){return new m(t,e)},AsyncIterator:d,async:function(t,e,n,i,a){return(o(e)?u:l)(r(t),e,n,i,a)},keys:c,values:s}})()}function s(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")}function c(t){var e=Object(t),n=[];for(var o in e)n.unshift(o);return function t(){for(;n.length;)if((o=n.pop())in e)return t.value=o,t.done=!1,t;return t.done=!0,t}}function l(t,e,n,o,i){var r=u(t,e,n,o,i);return r.next().then((function(t){return t.done?t.value:r.next()}))}function u(t,e,n,o,i){return new d(p().w(t,e,n,o),i||Promise)}function d(t,e){function n(o,i,r,a){try{var s=t[o](i),c=s.value;return c instanceof m?e.resolve(c.v).then((function(t){n("next",t,r,a)}),(function(t){n("throw",t,r,a)})):e.resolve(c).then((function(t){s.value=t,r(s)}),(function(t){return n("throw",t,r,a)}))}catch(t){a(t)}}var o;this.next||(f(d.prototype),f(d.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),f(this,"_invoke",(function(t,i,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}),!0)}function p(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,o,i,r){var c=o&&o.prototype instanceof s?o:s,l=Object.create(c.prototype);return f(l,"_invoke",function(n,o,i){var r,s,c,l=0,u=i||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,c=t,p.n=n,a}};function f(n,o){for(s=n,c=o,e=0;!d&&l&&!i&&e<u.length;e++){var i,r=u[e],f=p.p,m=r[2];n>3?(i=m===o)&&(c=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((i=n<2&&f<r[1])?(s=0,p.v=o,p.n=r[1]):f<m&&(i=n<3||r[0]>o||o>m)&&(r[4]=n,r[5]=o,p.n=m,s=0))}if(i||n>1)return a;throw d=!0,o}return function(i,u,m){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),s=u,c=m;(e=s<2?t:c)||!d;){r||(s?s<3?(s>1&&(p.n=-1),f(s,c)):p.n=c:p.v=c);try{if(l=2,r){if(s||(i="next"),e=r[i]){if(!(e=e.call(r,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);r=t}else if((e=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(e){r=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,i,r),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][o]?e(e([][o]())):(f(e={},o,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,f(d,"constructor",l),f(l,"constructor",c),c.displayName="GeneratorFunction",f(l,i,"GeneratorFunction"),f(d),f(d,i,"Generator"),f(d,o,(function(){return this})),f(d,"toString",(function(){return"[object Generator]"})),(p=function(){return{w:r,m:m}})()}function f(t,e,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}f=function(t,e,n,o){function r(e,n){f(t,e,(function(t){return this._invoke(e,n,t)}))}e?i?i(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},f(t,e,n,o)}function m(t,e){this.v=t,this.k=e}
2var h=function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},v=null,g=function(){return h(void 0,void 0,void 0,a().mark((function t(){var e;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!v){t.next=2;break}return t.abrupt("return",v);case 2:return t.prev=2,t.next=5,n.e(316,"low").then(n.bind(n,6392));case 5:return e=t.sent,v=e.default,t.abrupt("return",v);case 10:return t.prev=10,t.t0=t.catch(2),console.error("Failed to load hls.js:",t.t0),t.abrupt("return",null);case 14:case"end":return t.stop()}}),t,null,[[2,10]])})))};function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function w(){var t=E(),e=t.m(w),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function o(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var i={throw:1,return:2,break:3,continue:3};function r(t){var e,n;return function(o){e||(e={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(t,e){return n(o.a,i[t],e)},delegateYield:function(t,i,r){return e.resultName=i,n(o.d,b(t),r)},finish:function(t){return n(o.f,t)}},n=function(t,n,i){o.p=e.prev,o.n=e.next;try{return t(n,i)}finally{e.next=o.n}}),e.resultName&&(e[e.resultName]=o.v,e.resultName=void 0),e.sent=o.v,e.next=o.n;try{return t.call(this,e)}finally{o.p=e.prev,o.n=e.next}}}return(w=function(){return{wrap:function(e,n,o,i){return t.w(r(e),n,o,i&&i.reverse())},isGeneratorFunction:o,mark:t.m,awrap:function(t,e){return new I(t,e)},AsyncIterator:S,async:function(t,e,n,i,a){return(o(e)?C:k)(r(t),e,n,i,a)},keys:x,values:b}})()}function b(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(y(t)+" is not iterable")}function x(t){var e=Object(t),n=[];for(var o in e)n.unshift(o);return function t(){for(;n.length;)if((o=n.pop())in e)return t.value=o,t.done=!1,t;return t.done=!0,t}}function k(t,e,n,o,i){var r=C(t,e,n,o,i);return r.next().then((function(t){return t.done?t.value:r.next()}))}function C(t,e,n,o,i){return new S(E().w(t,e,n,o),i||Promise)}function S(t,e){function n(o,i,r,a){try{var s=t[o](i),c=s.value;return c instanceof I?e.resolve(c.v).then((function(t){n("next",t,r,a)}),(function(t){n("throw",t,r,a)})):e.resolve(c).then((function(t){s.value=t,r(s)}),(function(t){return n("throw",t,r,a)}))}catch(t){a(t)}}var o;this.next||(_(S.prototype),_(S.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),_(this,"_invoke",(function(t,i,r){function a(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(a,a):a()}),!0)}function E(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,o,i,r){var c=o&&o.prototype instanceof s?o:s,l=Object.create(c.prototype);return _(l,"_invoke",function(n,o,i){var r,s,c,l=0,u=i||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,c=t,p.n=n,a}};function f(n,o){for(s=n,c=o,e=0;!d&&l&&!i&&e<u.length;e++){var i,r=u[e],f=p.p,m=r[2];n>3?(i=m===o)&&(c=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((i=n<2&&f<r[1])?(s=0,p.v=o,p.n=r[1]):f<m&&(i=n<3||r[0]>o||o>m)&&(r[4]=n,r[5]=o,p.n=m,s=0))}if(i||n>1)return a;throw d=!0,o}return function(i,u,m){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),s=u,c=m;(e=s<2?t:c)||!d;){r||(s?s<3?(s>1&&(p.n=-1),f(s,c)):p.n=c:p.v=c);try{if(l=2,r){if(s||(i="next"),e=r[i]){if(!(e=e.call(r,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),s=1);r=t}else if((e=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(e){r=t,s=1,c=e}finally{l=1}}return{value:e,done:d}}}(n,i,r),!0),l}var a={};function s(){}function c(){}function l(){}e=Object.getPrototypeOf;var u=[][o]?e(e([][o]())):(_(e={},o,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,_(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=l,_(d,"constructor",l),_(l,"constructor",c),c.displayName="GeneratorFunction",_(l,i,"GeneratorFunction"),_(d),_(d,i,"Generator"),_(d,o,(function(){return this})),_(d,"toString",(function(){return"[object Generator]"})),(E=function(){return{w:r,m:p}})()}function _(t,e,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}_=function(t,e,n,o){function r(e,n){_(t,e,(function(t){return this._invoke(e,n,t)}))}e?i?i(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},_(t,e,n,o)}function I(t,e){this.v=t,this.k=e}function j(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return T(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}
2var A,$=function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((o=o.apply(t,e||[])).next())}))},O=new WeakMap;!function(t){t.DEFAULT="default",t.MD="mqdefault",t.HD="hqdefault",t.SD="sddefault",t.MAX="maxresdefault"}(A||(A={}));var D,P={config:{},onReady:function(){document.addEventListener("content:updated",(function(){wpj.blocekRuntime.initContent()})),wpj.blocekRuntime.initContent()},initContent:function(){wpj.blocekRuntime.initProductsLazyload(),wpj.blocekRuntime.initComponentLazyload(),wpj.blocekRuntime.initializeSliders(),wpj.blocekRuntime.initializeAccordionClickAction(),wpj.blocekRuntime.initTabs(),wpj.blocekRuntime.initImap(),wpj.blocekRuntime.initFaq(),wpj.blocekRuntime.initVideoLazy()},insertProducts:function(t,e){fetch("/_blocek/ProductsBlock/",{method:"POST",headers:{"Content-Type":"application/json"},redirect:"follow",body:t}).then((function(t){t.json().then((function(t){e(t),F(),wpj.blocekRuntime.initializeSliders()}))}))},insertComponent:function(t,e){},loadComponent:function(t){},initializeSliders:function(t){var e=t||document;Array.from(e.querySelectorAll("[data-slide-settings]")).forEach((function(t){var e,n,o=JSON.parse(z(null!==(e=t.getAttribute("data-slide-settings"))&&void 0!==e?e:"{}")),i=o.speed>0,r=t.querySelectorAll("[data-blocek-col]").length;if("true"===t.dataset.wpjSliderIsInitialized){var a=parseInt(t.dataset.wpjSliderElementsCount||"0",10);if(!i||r===a)return}if(t.dataset.wpjSliderElementsCount=r.toString(),null!==t.offsetParent){var s=M("initializeSliders",t),c=t.querySelector("[data-slide-init='true']"),l=c.querySelector("[data-slide-container]");l&&(c=l);if(o.buttons){var u=t.querySelector("[data-slide-controls='prev']"),d=t.querySelector("[data-slide-controls='next']"),p=o.speed>0;p||null==u||u.classList.add("disabled");var f=Array.from(c.querySelectorAll(":scope > [data-blocek-col]"));if(f.length<=0&&(f=Array.from(t.querySelectorAll("[data-blocek-col]"))),f.length<=0&&t.querySelector(".catalog-row")&&(f=Array.prototype.slice.call(t.querySelector(".catalog-row").children)),f.length<=0&&(f=Array.from(t.querySelectorAll('[class^="wpj-col-"]')).filter((function(t){return!(null!==t.querySelector('[class^="wpj-col-"]'))}))),f.length<=0)return;var m=0,h=[0],v=c.getBoundingClientRect().right;function R(t){m+=t,p?(m<0?m=h.length-1:m>=h.length&&(m=0),null==u||u.classList.remove("disabled"),null==d||d.classList.remove("disabled")):(m<0?m=0:m>=h.length&&(m=h.length-1),0==m?null==u||u.classList.add("disabled"):null==u||u.classList.remove("disabled"),m>=h.length-1?d&&d.classList.add("disabled"):d&&d.classList.remove("disabled"));var e=0;m>0&&(e=h[m]),"none"===c.style.transition&&(c.style.transition="transform .3s ease-in-out",c.offsetWidth),c.style.transform="translateX(".concat(-1*e,"px)")}f.forEach((function(t){var e=t.getBoundingClientRect().right;if(e>=v){var n=e-v;n>=1&&h.push(Math.round(n))}})),(h=j(new Set(h))).length<=1?(null==d||d.classList.add("disabled"),null==u||u.classList.add("disabled")):(null==d||d.classList.remove("disabled"),p&&(null==u||u.classList.remove("disabled"))),null==u||u.addEventListener("click",(function(){R(-1)}),{signal:s.signal}),null==d||d.addEventListener("click",(function(){R(1)}),{signal:s.signal});var g=0,y=0,w=!1;if(c.addEventListener("touchstart",(function(t){g=t.changedTouches[0].clientX,c.style.transition="none"}),{signal:s.signal,passive:!0}),c.addEventListener("touchmove",(function(t){var e,n=t.changedTouches[0].clientX;g>n?e=g-n+h[m]:g<n&&(e=h[m]-(n-g)),void 0!==e&&(w||(w=!0,y=window.requestAnimationFrame((function(){c.style.transform="translateX(-".concat(e,"px)"),w=!1}))))}),{signal:s.signal,passive:!0}),c.addEventListener("touchend",(function(t){window.cancelAnimationFrame(y),w=!1;var e=g-t.changedTouches[0].clientX,n=0;e>20?n=1:e<-20&&(n=-1),R(n)}),{signal:s.signal}),o.speed>0){t.dataset.wpjIntervalId&&window.clearInterval(parseInt(t.dataset.wpjIntervalId,10));var b=(68-5*(o.speed>10?10:o.speed))/9*1e3,x=window.setInterval((function(){c.isConnected?R(1):window.clearInterval(x)}),b);t.dataset.wpjIntervalId=x.toString()}t.dataset.wpjSliderIsInitialized="true"}else if(o.speed>0){t.dataset.wpjIntervalId&&window.clearInterval(parseInt(t.dataset.wpjIntervalId,10)),c.style.width=2*t.getBoundingClientRect().width+"px",c.style.transition="unset";var k=Array.from(t.querySelectorAll("[data-blocek-col]"));if(k.length<=0&&t.querySelector(".catalog-row")&&(k=Array.prototype.slice.call(t.querySelector(".catalog-row").children)),k.length<=0)return;if(null===(n=k[0])||void 0===n?void 0:n.parentNode)for(var C=k[0].parentNode,S=k.length;C.children.length>S;)C.removeChild(C.lastChild);
2k.forEach((function(t){var e,n;null===(n=null===(e=k[0])||void 0===e?void 0:e.parentNode)||void 0===n||n.appendChild(t.cloneNode(!0))}));var E=Array.from(c.children),_=0;if(E.length>k.length){var I=E[k.length],T=E[0];I&&T&&(_=I.getBoundingClientRect().left-T.getBoundingClientRect().left)}if((!_||_<=0)&&(k.forEach((function(t){_+=t.getBoundingClientRect().width})),k.length>1)){var A=k[0],$=k[1];if(A&&$){var O=$.getBoundingClientRect().left-A.getBoundingClientRect().right;O>0&&(_+=O*k.length)}}var D,P=t.closest("[data-blocek-v]"),L=P?parseInt(P.getAttribute("data-blocek-v")||"1",10):1;D=L>=2?window.setInterval(N,20-o.speed):window.setInterval(N,50-o.speed),t.dataset.wpjIntervalId=D.toString();var F=0;function N(){c.isConnected?F>=_?F=0:(F++,c.style.transform="translateX(".concat(-F,"px)")):window.clearInterval(D)}t.dataset.wpjSliderIsInitialized="true",t.dataset.wpjSliderElementsCount=t.querySelectorAll("[data-blocek-col]").length.toString()}}}))},initializeAccordionClickAction:function(){var t=M("initializeAccordionClickAction");function e(t){var e=t.scrollHeight;return t.querySelectorAll("[data-accordion-body]").forEach((function(t){e+=t.scrollHeight})),e}document.addEventListener("click",(function(t){var n,o=t.target.closest("[data-accordion-click]");if(o&&"disabled"!==o.getAttribute("data-accordion-click")){var i=null===(n=o.parentElement)||void 0===n?void 0:n.querySelector("[data-accordion-body]");if(i){var r,a,s=o.querySelector("[data-accordion-open-icon]");if(i.style.maxHeight&&"0px"!==i.style.maxHeight||!i.style.maxHeight&&i.classList.contains("active"))null==s||s.classList.remove("wpj-icon-active"),i.style.maxHeight=e(i)+"px",i.offsetHeight,i.style.maxHeight="0px";else{null==s||s.classList.add("wpj-icon-active"),i.style.maxHeight=e(i)+"px";var c=(r=i.querySelectorAll("[data-accordion-body]"),a=Array.from(r).filter((function(t){return!t.style.maxHeight||"0px"===t.style.maxHeight})),a.length?.3*a.length:.3);i.style.transition="max-height ".concat(c,"s ease")}i.addEventListener("transitionend",(function t(){"0px"!==i.style.maxHeight&&(i.style.maxHeight="none",i.style.transition="max-height .3s ease"),i.removeEventListener("transitionend",t)}))}}}),{signal:t.signal})},initComponentLazyload:function(){},loadProducts:function(t){if(t){var e=z(t.getAttribute("data-products-filter"));try{for(var n=t;n.parentElement;)if((n=n.parentElement).hasAttribute("data-products-listType")){var o=JSON.parse(e);o.listType=n.getAttribute("data-products-listType"),o.listId=n.getAttribute("data-products-listId"),e=JSON.stringify(o);break}}catch(t){}window.wpj.blocekRuntime.insertProducts(e,(function(e){t.innerHTML=e.html,t.dispatchEvent(new CustomEvent("imagesLoaded",{bubbles:!0})),void 0!==window.wpj&&void 0!==window.wpj.tracking&&window.wpj.tracking.handleImpressions()}))}},initProductsLazyload:function(){var t=R((function(t){wpj.blocekRuntime.loadProducts(t)}));document.querySelectorAll("[data-products-filter]").forEach((function(e){t.observe(e)}))},initImap:function(){var t=M("initImap");document.addEventListener("click",(function(t){var e,n=t.target.closest('[data-imap="points-wrapper"] [data-imap="icon"]');if(n){var r=n.closest('[data-imap="point"]');if(r.classList.toggle("active"),r.classList.contains("active")){var a=r.querySelector(".w-imap-content");(0,o.kN)(r,a,(function(){(0,o.Ml)(r,a,{strategy:"absolute",middleware:[(0,o.EX)({crossAxis:!0,allowedPlacements:["bottom-start","bottom-end","top-end","top-start","bottom","top"]}),(0,i.E3)({mainAxis:15,alignmentAxis:15})]}).then((function(t){var e=t.x,n=t.y;Object.assign(a.style,{left:"".concat(e,"px"),top:"".concat(n,"px"),height:"fit-content"})}))}),{ancestorScroll:!1,layoutShift:!1})}null===(e=j(r.parentNode.querySelectorAll(".active")).filter((function(t){return t!==r}))[0])||void 0===e||e.classList.remove("active")}}),{signal:t.signal}),document.addEventListener("click",(function(t){var e,n=t.target.closest("a.imap-close-button");if(n){var o=n.closest('[data-imap="point"]');o.classList.toggle("active"),null===(e=j(o.parentNode.querySelectorAll(".active")).filter((function(t){return t!==o}))[0])||void 0===e||e.classList.remove("active")}}),{signal:t.signal})},initFaq:function(){var t=M("initFaq");document.addEventListener("click",(function(t){var e=t.target.closest(".wpj-faq-wrapper h4");e&&(e.classList.contains("active")?(e.classList.remove("active"),e.closest(".wpj-faq-wrapper").classList.remove("opened")):(e.classList.add("active"),e.closest(".wpj-faq-wrapper").classList.add("opened")))}),{signal:t.signal})},initTabs:function(){var t=M("initTabs");document.addEventListener("click",(function(t){var e=t.target.closest("[data-tabs-open]");if(e){var n=e.getAttribute("data-tabs-open"),o=document.querySelector('[data-tabs-content="'.concat(n,'"]')),i=e.closest(".wpj-tabs");if(!o||!i)return;var r=i.querySelectorAll("[data-tabs-open]"),a=i.querySelectorAll("[data-tabs-content]");r.forEach((function(t){return t.classList.remove("active")})),a.forEach((function(t){return t.classList.remove("active")})),e.classList.add("active"),o.classList.add("active"),o.querySelector("[data-sli
2de-init]")&&wpj.blocekRuntime.initializeSliders(o)}}),{signal:t.signal})},setYoutubeImages:function(t,e,n){var o=function(t){return"https://i.ytimg.com/vi/".concat(e,"/").concat(t,".jpg")},i=n.clientWidth||window.innerWidth,r=i>900?A.MAX:i>480?A.SD:A.HD,a=new Image;a.onload=function(){return n.setAttribute("src",o(a.naturalWidth>120?r:A.HD))},a.onerror=function(){return n.setAttribute("src",o(A.HD))},a.src=o(r)},getVimeoImages:function(t,e){return $(this,void 0,void 0,w().mark((function n(){var o,i,r,a;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o="https://i.ytimg.com/vi/".concat(t,"/sddefault.jpg"),n.prev=1,n.next=4,fetch("https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/".concat(t,"&width=1280&height=720"));case 4:if((i=n.sent).ok){n.next=8;break}return e.setAttribute("src",o),n.abrupt("return");case 8:return n.next=10,i.json();case 10:r=n.sent,a=r?r.thumbnail_url:o,e.setAttribute("src",a),n.next=18;break;case 15:n.prev=15,n.t0=n.catch(1),e.setAttribute("src",o);case 18:case"end":return n.stop()}}),n,null,[[1,15]])})))},getImages:function(t,e,n,o){switch(n){case"youtube":return t=t.replace("embed/","watch?v=").replace("?autoplay=1&mute=0",""),void this.setYoutubeImages(t,e,o);case"vimeo":return void this.getVimeoImages(e,o)}},initVideoLazy:function(){var t=this,e=M("initVideoLazy");document.addEventListener("click",(function(t){var e=t.target.closest(".w-lazy-play-btn");if(e){if(t.preventDefault(),e.style.display="none",e.hasAttribute("data-i-frame-loaded"))return!1;var n=e.closest(".w-lazy-video-wrapper"),o=n.getAttribute("data-url");if("cdn"===n.getAttribute("data-mode"))L(n,"true"===n.getAttribute("data-autoplay"));else{var i=document.createElement("iframe");i.src=o,i.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",i.frameBorder="0",i.allowFullscreen=!0,n.append(i)}e.setAttribute("data-i-frame-loaded",!0)}}),{signal:e.signal}),document.querySelectorAll(".w-lazy-video-wrapper").forEach((function(e){var n=e.querySelector(".w-lazy-video-poster-img"),o=null==n?void 0:n.getAttribute("src"),i=e.getAttribute("data-url"),r=e.getAttribute("data-mode");"cdn"!==r||"true"!==e.getAttribute("data-autoplay")?(R((function(){if(!o||n.naturalWidth<=120&&n.naturalHeight<=90){var a=e.getAttribute("data-code");t.getImages(i,a,r,n)}})).observe(n),e.addEventListener("mouseenter",(function(t){var e=t.target;if(e){var n,o=e.getAttribute("data-mode"),i=e.getAttribute("data-url");if(e.getAttribute("data-warm")||!o)return!1;e.setAttribute("data-warm",!0),"youtube"===o?n='<link rel="preconnect" href="'+i+'"/>\n                <link rel="preconnect" href="https://www.google.com"/>\n                <link rel="preconnect" href="https://static.doubleclick.net"/>\n                <link rel="preconnect" href="https://googleads.g.doubleclick.net"/>':"vimeo"===o?n='<link rel="preconnect" href="https://player.vimeo.com"/>\n                <link rel="preconnect" href="https://i.vimeocdn.com"/>\n                <link rel="preconnect" href="https://f.vimeocdn.com"/>\n                <link rel="preconnect" href="https://fresnel.vimeocdn.com"/>':"cdn"==o&&g(),n&&e.insertAdjacentHTML("beforeend",n)}}))):R((function(){L(e,!0)})).observe(e.querySelector(".w-lazy-video-poster-img"))}))}},L=function(t,e){var n=t.getAttribute("data-mobile-url"),o=document.createElement("video");o.loop=e,o.autoplay=!0,o.playsInline=e,o.preload="auto",o.muted=e,o.defaultMuted=e,o.controls=!e,o.className="video",o.style.zIndex="1",o.className="w-lazy-video-poster-img",t.append(o);var i,r,s,c,l=n&&function(t,e){return h(void 0,void 0,void 0,a().mark((function n(){var o,i,r,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,g();case 2:if(o=n.sent,i=t.hasAttribute("autoplay"),!o||!o.isSupported()){n.next=13;break}return(r=new o({lowLatencyMode:!1,startLevel:-1,capLevelToPlayerSize:!0})).loadSource(e),r.attachMedia(t),r.on(o.Events.ERROR,(function(t,e){if(e.fatal)switch(e.type){case o.ErrorTypes.NETWORK_ERROR:r.startLoad();break;case o.ErrorTypes.MEDIA_ERROR:r.recoverMediaError();break;default:r.destroy()}})),s=function(){i&&t.paused&&t.play().catch((function(){}))},t.addEventListener("loadedmetadata",s),r.on(o.Events.DESTROYING,(function(){t.removeEventListener("loadedmetadata",s)})),n.abrupt("return",{hls:r});case 13:return console.warn("HLS is not supported in this browser."),n.abrupt("return",null);case 15:case"end":return n.stop()}}),n)})))}(o,n),u=t.getAttribute("data-url");!l&&u&&(i=o,r=u,s="video/mp4",(c=document.createElement("source")).src=r,c.type=s,i.appendChild(c))};window.addEventListener("resize",(function(){window.clearTimeout(D),D=window.setTimeout((function(){document.querySelectorAll("[data-sli
2de-settings]").forEach((function(t){t.removeAttribute("data-wpj-slider-is-initialized")})),wpj.blocekRuntime.initializeSliders()}),150)}));var F=function(){var t=new CustomEvent("wpj-products-loaded",{detail:{type:"blocek"}});document.dispatchEvent(t)},R=function(t,e){e=null!=e?e:{rootMargin:"300px 0px 300px 0px"};return new IntersectionObserver((function(e,n){e.forEach((function(e){!e.isIntersecting||e.target.children.length&&"Načítám"!==e.target.children[0].textContent||(t(e.target),n.unobserve(e.target))}))}),e)},z=function(t){if(!t)return t;var e=document.createElement("textarea");return e.innerHTML=t,e.value},M=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;O.has(n)||O.set(n,{});var o=O.get(n);null===(e=o[t])||void 0===e||e.abort();var i=new AbortController;return o[t]=i,i};wpj.blocekRuntime=P,wpj.onReady.push(wpj.blocekRuntime.onReady)},5112:function(t,e,n){"use strict";n.r(e)},6244:function(t,e,n){"use strict";n.r(e)}},function(t){t.O(0,[600,96,516,160],(function(){return e=9076,t(t.s=e);var e}));t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.