\").attr(\"id\",t).addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").data(\"ui-tabs-destroy\",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inArray(n,t)!==-1?e(r).addClass(\"ui-state-disabled\").attr(\"aria-disabled\",\"true\"):e(r).removeClass(\"ui-state-disabled\").removeAttr(\"aria-disabled\");this.options.disabled=t},_setupEvents:function(t){var n={click:function(e){e.preventDefault()}};t&&e.each(t.split(\" \"),function(e,t){n[t]=\"_eventHandler\"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:\"_tabKeydown\"}),this._on(this.panels,{keydown:\"_panelKeydown\"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,r,i=this.element.parent();t===\"fill\"?(e.support.minHeight||(r=i.css(\"overflow\"),i.css(\"overflow\",\"hidden\")),n=i.height(),this.element.siblings(\":visible\").each(function(){var t=e(this),r=t.css(\"position\");if(r===\"absolute\"||r===\"fixed\")return;n-=t.outerHeight(!0)}),r&&i.css(\"overflow\",r),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css(\"overflow\",\"auto\")):t===\"auto\"&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height(\"\").height())}).height(n))},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i.closest(\"li\"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getPanelForTab(s),f=r.length?this._getPanelForTab(r):e(),l={oldTab:r,oldPanel:f,newTab:u?e():s,newPanel:a};t.preventDefault();if(s.hasClass(\"ui-state-disabled\")||s.hasClass(\"ui-tabs-loading\")||this.running||o&&!n.collapsible||this._trigger(\"beforeActivate\",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error(\"jQuery UI Tabs: Mismatching fragment identifier.\"),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger(\"activate\",t,n)}function u(){n.newTab.closest(\"li\").addClass(\"ui-tabs-active ui-state-active\"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),u()}):(n.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),s.hide(),u()),s.attr({\"aria-expanded\":\"false\",\"aria-hidden\":\"true\"}),n.oldTab.attr(\"aria-selected\",\"false\"),i.length&&s.length?n.oldTab.attr(\"tabIndex\",-1):i.length&&this.tabs.filter(function(){return e(this).attr(\"tabIndex\")===0}).attr(\"tabIndex\",-1),i.attr({\"aria-expanded\":\"true\",\"aria-hidden\":\"false\"}),n.newTab.attr({\"aria-selected\":\"true\",tabIndex:0})},_activate:function(t){var n,r=this._findActive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(\".ui-tabs-anchor\")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return typeof e==\"string\"&&(e=this.anchors.index(this.anchors.filter(\"[href$='\"+e+\"']\"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass(\"ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible\"),this.tablist.removeClass(\"ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all\").removeAttr(\"role\"),this.anchors.removeClass(\"ui-tabs-anchor\").removeAttr(\"role\").removeAttr(\"tabIndex\").removeData(\"href.tabs\").removeData(\"load.tabs\").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,\"ui-tabs-destroy\")?e(this).remove():e(this).removeClass(\"ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel\").removeAttr(\"tabIndex\").removeAttr(\"aria-live\").removeAttr(\"aria-busy\").removeAttr(\"aria-selected\").removeAttr(\"aria-labelledby\").removeAttr(\"aria-hidden\").removeAttr(\"aria-expanded\").removeAttr(\"role\")}),this.tabs.each(function(){var t=e(this),n=t.data(\"ui-tabs-aria-controls\");n?t.attr(\"aria-controls\",n):t.removeAttr(\"aria-controls\")}),this.panels.show(),this.options.heightStyle!==\"content\"&&this.panels.css(\"height\",\"\")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getIndex(n),e.isArray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupDisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getIndex(n);if(e.inArray(n,r)!==-1)return;e.isArray(r)?r=e.merge([n],r).sort():r=[n]}this._setupDisabled(r)},load:function(t,n){t=this._getIndex(t);var r=this,i=this.tabs.eq(t),o=i.find(\".ui-tabs-anchor\"),u=this._getPanelForTab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxSettings(o,n,a)),this.xhr&&this.xhr.statusText!==\"canceled\"&&(i.addClass(\"ui-tabs-loading\"),u.attr(\"aria-busy\",\"true\"),this.xhr.success(function(e){setTimeout(function(){u.html(e),r._trigger(\"load\",n,a)},1)}).complete(function(e,t){setTimeout(function(){t===\"abort\"&&r.panels.stop(!1,!0),i.removeClass(\"ui-tabs-loading\"),u.removeAttr(\"aria-busy\"),e===r.xhr&&delete r.xhr},1)}))},_ajaxSettings:function(t,n,r){var i=this;return{url:t.attr(\"href\"),beforeSend:function(t,s){return i._trigger(\"beforeLoad\",n,e.extend({jqXHR:t,ajaxSettings:s},r))}}},_getPanelForTab:function(t){var n=e(t).attr(\"aria-controls\");return this.element.find(this._sanitizeSelector(\"#\"+n))}}),e.uiBackCompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget(\"ui.tabs\",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr(\"href\",t)}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(n,r){if(e.data(r.tab[0],\"cache.tabs\")){n.preventDefault();return}r.jqXHR.success(function(){t.options.cache&&e.data(r.tab[0],\"cache.tabs\",!0)})}})},_ajaxSettings:function(t,n,r){var i=this.options.ajaxOptions;return e.extend({},i,{error:function(e,t){try{i.error(e,t,r.tab.closest(\"li\").index(),r.tab[0])}catch(n){}}},this._superApply(arguments))},_setOption:function(e,t){e===\"cache\"&&t===!1&&this.anchors.removeData(\"cache.tabs\"),this._super(e,t)},_destroy:function(){this.anchors.removeData(\"cache.tabs\"),this._super()},url:function(e){this.anchors.eq(e).removeData(\"cache.tabs\"),this._superApply(arguments)}}),e.widget(\"ui.tabs\",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{spinner:\"
Loading…\"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target!==this.element[0]||!this.options.spinner)return;var n=t.tab.find(\"span\"),r=n.html();n.html(this.options.spinner),t.jqXHR.complete(function(){n.html(r)})}})}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var n=this.options,r;if(t&&n.disabled===!0||e.isArray(n.disabled)&&e.inArray(t,n.disabled)!==-1)r=!0;this._superApply(arguments),r&&this._trigger(\"enable\",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var n=this.options,r;if(t&&n.disabled===!1||e.isArray(n.disabled)&&e.inArray(t,n.disabled)===-1)r=!0;this._superApply(arguments),r&&this._trigger(\"disable\",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{add:null,remove:null,tabTemplate:\"
#{label}\"},add:function(n,r,i){i===t&&(i=this.anchors.length);var s,o,u=this.options,a=e(u.tabTemplate.replace(/#\\{href\\}/g,n).replace(/#\\{label\\}/g,r)),f=n.indexOf(\"#\")?this._tabId(a):n.replace(\"#\",\"\");return a.addClass(\"ui-state-default ui-corner-top\").data(\"ui-tabs-destroy\",!0),a.attr(\"aria-controls\",f),s=i>=this.tabs.length,o=this.element.find(\"#\"+f),o.length||(o=this._createPanel(f),s?i>0?o.insertAfter(this.panels.eq(-1)):o.appendTo(this.element):o.insertBefore(this.panels[i])),o.addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").hide(),s?a.appendTo(this.tablist):a.insertBefore(this.tabs[i]),u.disabled=e.map(u.disabled,function(e){return e>=i?++e:e}),this.refresh(),this.tabs.length===1&&u.active===!1&&this.option(\"active\",0),this._trigger(\"add\",null,this._ui(this.anchors[i],this.panels[i])),this},remove:function(t){t=this._getIndex(t);var n=this.options,r=this.tabs.eq(t).remove(),i=this._getPanelForTab(r).remove();return r.hasClass(\"ui-tabs-active\")&&this.anchors.length>2&&this._activate(t+(t+1
=t?--e:e}),this.refresh(),this._trigger(\"remove\",null,this._ui(r.find(\"a\")[0],i[0])),this}}),e.widget(\"ui.tabs\",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{idPrefix:\"ui-tabs-\"},_tabId:function(t){var n=t.is(\"li\")?t.find(\"a[href]\"):t;return n=n[0],e(n).closest(\"li\").attr(\"aria-controls\")||n.title&&n.title.replace(/\\s/g,\"_\").replace(/[^\\w\\u00c0-\\uFFFF\\-]/g,\"\")||this.options.idPrefix+i()}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{panelTemplate:\"\"},_createPanel:function(t){return e(this.options.panelTemplate).attr(\"id\",t).addClass(\"ui-tabs-panel ui-widget-content ui-corner-bottom\").data(\"ui-tabs-destroy\",!0)}}),e.widget(\"ui.tabs\",e.ui.tabs,{_create:function(){var e=this.options;e.active===null&&e.selected!==t&&(e.active=e.selected===-1?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setOption:function(e,t){if(e!==\"selected\")return this._super(e,t);var n=this.options;this._super(\"active\",t===-1?!1:t),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger(\"show\",null,this._ui(this.active.find(\".ui-tabs-anchor\")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(e,t,n){var r,i,s=this._superApply(arguments);return s?(e===\"beforeActivate\"?(r=n.newTab.length?n.newTab:n.oldTab,i=n.newPanel.length?n.newPanel:n.oldPanel,s=this._super(\"select\",t,{tab:r.find(\".ui-tabs-anchor\")[0],panel:i[0],index:r.closest(\"li\").index()})):e===\"activate\"&&n.newTab.length&&(s=this._super(\"show\",t,{tab:n.newTab.find(\".ui-tabs-anchor\")[0],panel:n.newPanel[0],index:n.newTab.closest(\"li\").index()})),s):!1}}),e.widget(\"ui.tabs\",e.ui.tabs,{select:function(e){e=this._getIndex(e);if(e===-1){if(!this.options.collapsible||this.options.selected===-1)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventNamespace)}}),function(){var t=0;e.widget(\"ui.tabs\",e.ui.tabs,{options:{cookie:null},_create:function(){var e=this.options,t;e.active==null&&e.cookie&&(t=parseInt(this._cookie(),10),t===-1&&(t=!1),e.active=t),this._super()},_cookie:function(n){var r=[this.cookie||(this.cookie=this.options.cookie.name||\"ui-tabs-\"+ ++t)];return arguments.length&&(r.push(n===!1?-1:n),r.push(this.options.cookie)),e.cookie.apply(null,r)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget(\"ui.tabs\",e.ui.tabs,{_trigger:function(t,n,r){var i=e.extend({},r);return t===\"load\"&&(i.panel=i.panel[0],i.tab=i.tab.find(\".ui-tabs-anchor\")[0]),this._super(t,n,i)}}),e.widget(\"ui.tabs\",e.ui.tabs,{options:{fx:null},_getFx:function(){var t,n,r=this.options.fx;return r&&(e.isArray(r)?(t=r[0],n=r[1]):t=n=r),r?{show:n,hide:t}:null},_toggle:function(e,t){function o(){n.running=!1,n._trigger(\"activate\",e,t)}function u(){t.newTab.closest(\"li\").addClass(\"ui-tabs-active ui-state-active\"),r.length&&s.show?r.animate(s.show,s.show.duration,function(){o()}):(r.show(),o())}var n=this,r=t.newPanel,i=t.oldPanel,s=this._getFx();if(!s)return this._super(e,t);n.running=!0,i.length&&s.hide?i.animate(s.hide,s.hide.duration,function(){t.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),u()}):(t.oldTab.closest(\"li\").removeClass(\"ui-tabs-active ui-state-active\"),i.hide(),u())}}))}(jQuery),function(e){function n(t,n){var r=(t.attr(\"aria-describedby\")||\"\").split(/\\s+/);r.push(n),t.data(\"ui-tooltip-id\",n).attr(\"aria-describedby\",e.trim(r.join(\" \")))}function r(t){var n=t.data(\"ui-tooltip-id\"),r=(t.attr(\"aria-describedby\")||\"\").split(/\\s+/),i=e.inArray(n,r);i!==-1&&r.splice(i,1),t.removeData(\"ui-tooltip-id\"),r=e.trim(r.join(\" \")),r?t.attr(\"aria-describedby\",r):t.removeAttr(\"aria-describedby\")}var t=0;e.widget(\"ui.tooltip\",{version:\"1.9.2\",options:{content:function(){return e(this).attr(\"title\")},hide:!0,items:\"[title]:not([disabled])\",position:{my:\"left top+15\",at:\"left bottom\",collision:\"flipfit flip\"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:\"open\",focusin:\"open\"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,n){var r=this;if(t===\"disabled\"){this[n?\"_disable\":\"_enable\"](),this.options[t]=n;return}this._super(t,n),t===\"content\"&&e.each(this.tooltips,function(e,t){r._updateContent(t)})},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event(\"blur\");i.target=i.currentTarget=r[0],t.close(i,!0)}),this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.is(\"[title]\")&&t.data(\"ui-tooltip-title\",t.attr(\"title\")).attr(\"title\",\"\")})},_enable:function(){this.element.find(this.options.items).andSelf().each(function(){var t=e(this);t.data(\"ui-tooltip-title\")&&t.attr(\"title\",t.data(\"ui-tooltip-title\"))})},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length||r.data(\"ui-tooltip-id\"))return;r.attr(\"title\")&&r.data(\"ui-tooltip-title\",r.attr(\"title\")),r.data(\"ui-tooltip-open\",!0),t&&t.type===\"mouseover\"&&r.parents().each(function(){var t=e(this),r;t.data(\"ui-tooltip-open\")&&(r=e.Event(\"blur\"),r.target=r.currentTarget=this,n.close(r,!0)),t.attr(\"title\")&&(t.uniqueId(),n.parents[this.id]={element:this,title:t.attr(\"title\")},t.attr(\"title\",\"\"))}),this._updateContent(r,t)},_updateContent:function(e,t){var n,r=this.options.content,i=this,s=t?t.type:null;if(typeof r==\"string\")return this._open(t,e,r);n=r.call(e[0],function(n){if(!e.data(\"ui-tooltip-open\"))return;i._delay(function(){t&&(t.type=s),this._open(t,e,n)})}),n&&this._open(t,e,n)},_open:function(t,r,i){function f(e){a.of=e;if(s.is(\":hidden\"))return;s.position(a)}var s,o,u,a=e.extend({},this.options.position);if(!i)return;s=this._find(r);if(s.length){s.find(\".ui-tooltip-content\").html(i);return}r.is(\"[title]\")&&(t&&t.type===\"mouseover\"?r.attr(\"title\",\"\"):r.removeAttr(\"title\")),s=this._tooltip(r),n(r,s.attr(\"id\")),s.find(\".ui-tooltip-content\").html(i),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:f}),f(t)):s.position(e.extend({of:r},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(u=setInterval(function(){s.is(\":visible\")&&(f(a.of),clearInterval(u))},e.fx.interval)),this._trigger(\"open\",t,{tooltip:s}),o={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=r[0],this.close(n,!0)}},remove:function(){this._removeTooltip(s)}};if(!t||t.type===\"mouseover\")o.mouseleave=\"close\";if(!t||t.type===\"focusin\")o.focusout=\"close\";this._on(!0,r,o)},close:function(t){var n=this,i=e(t?t.currentTarget:this.element),s=this._find(i);if(this.closing)return;i.data(\"ui-tooltip-title\")&&i.attr(\"title\",i.data(\"ui-tooltip-title\")),r(i),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(e(this))}),i.removeData(\"ui-tooltip-open\"),this._off(i,\"mouseleave focusout keyup\"),i[0]!==this.element[0]&&this._off(i,\"remove\"),this._off(this.document,\"mousemove\"),t&&t.type===\"mouseleave\"&&e.each(this.parents,function(t,r){e(r.element).attr(\"title\",r.title),delete n.parents[t]}),this.closing=!0,this._trigger(\"close\",t,{tooltip:s}),this.closing=!1},_tooltip:function(n){var r=\"ui-tooltip-\"+t++,i=e(\"\").attr({id:r,role:\"tooltip\"}).addClass(\"ui-tooltip ui-widget ui-corner-all ui-widget-content \"+(this.options.tooltipClass||\"\"));return e(\"
\").addClass(\"ui-tooltip-content\").appendTo(i),i.appendTo(this.document[0].body),e.fn.bgiframe&&i.bgiframe(),this.tooltips[r]=n,i},_find:function(t){var n=t.data(\"ui-tooltip-id\");return n?e(\"#\"+n):e()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr(\"id\")]},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event(\"blur\");i.target=i.currentTarget=r[0],t.close(i,!0),e(\"#\"+n).remove(),r.data(\"ui-tooltip-title\")&&(r.attr(\"title\",r.data(\"ui-tooltip-title\")),r.removeData(\"ui-tooltip-title\"))})}})}(jQuery);"},{"status":200,"content":"function GTMDataLayer(){let self=this;self.FOLLOW_URL_FALLBACK_TIMEOUT=100;self.DELAYED_PRODUCT_CLICK_KEY='gtm.delayed-product-click';self.DELAYED_PRODUCT_CLICK_TTL=1000*60*2;self.enabled=null;self.debug=false;self.pushedImpressionKeys=[];self.followUrlFallbackTimeoutHandle=null;self.checkoutProducts=[];}\nGTMDataLayer.prototype.logDebugMessage=function(message,data){if(this.debug){if(typeof data!=='undefined'){console.debug(message,data);}else{console.debug(message);}}}\nGTMDataLayer.prototype.setEnabled=function(enabled){let self=this;self.enabled=enabled;$(function(){self.setEvents();});}\nGTMDataLayer.prototype.isEnabled=function(){return this.enabled===true&&typeof(window.dataLayer)!=='undefined';}\nGTMDataLayer.prototype.setDebug=function(debug){this.debug=debug;}\nGTMDataLayer.prototype.isDebug=function(){return this.debug;}\nGTMDataLayer.prototype.followUrlFallback=function($el,gtmData,timeout){let self=this;timeout=typeof timeout==='undefined'?self.FOLLOW_URL_FALLBACK_TIMEOUT:timeout;clearTimeout(self.followUrlFallbackTimeoutHandle);self.followUrlFallbackTimeoutHandle=setTimeout(function(){self.logDebugMessage('GTMDataLayer::followUrlFallback timeout handler with timeout: '+timeout);if(isObject(gtmData)&>mData.url){self.logDebugMessage('GTMDataLayer::followUrlFallback, follow gtmData.url')\ndocument.location=gtmData.url;return;}\nlet url=$el[0].hasAttribute('href')?$el.attr('href'):null;if(url){self.logDebugMessage('GTMDataLayer::followUrlFallback, follow current element\\'s href')\ndocument.location=$el.attr('href');return;}\nlet $a=$el.find('a');url=$a.length&&$a[0].hasAttribute('href')?$a.attr('href'):null;if(url){self.logDebugMessage('GTMDataLayer::followUrlFallback, follow first child\\'s href')\ndocument.location=$el.attr('href');return;}\nself.logDebugMessage('GTMDataLayer::followUrlFallback, no url to follow');},timeout);}\nGTMDataLayer.prototype.setEvents=function(){let self=this;if(self.isEnabled()){self.pushNewImpressions();}\nlet $body=$('body');$body.on('mousedown','[data-gtm-product]',function(e){if($(e.target).hasClass('add-tocart')||$(e.target).parent().hasClass('add-tocart')){return;}\nself.logDebugMessage('GTMDataLayer::setEvents [data-gtm-product] on click [data-gtm-product], e.which='+e.which,{target:e.target});let followUrl=e.which===1||(e.which===2&&!$(e.target).is('a')&&!$(e.target).closest('a').length);e.preventDefault();let gtmData=$(this).data('gtmData');if(followUrl&&!self.isEnabled()){self.followUrlFallback($(this),gtmData,0);return;}\ntry{if(!isObject(gtmData)){console.warn('GTMDataLayer::setEvents [data-gtm-product] on click: `data-gtm-data` must be an object');if(followUrl){self.followUrlFallback($(this),gtmData,0);}\nreturn;}\ngtmData=jQuery.extend({},gtmData);let list=null;if(gtmData.hasOwnProperty('item_list_id')){list=gtmData.item_list_id;delete gtmData.item_list_id;}\nif(!followUrl){self.pushProductClick(gtmData,list);}else{self.setDelayedProductClick(gtmData,list);self.followUrlFallback($(this),gtmData,0);}}catch(e){console.error('GTMDataLayer::setEvents [data-gtm-product] error caught',e);if(followUrl){self.followUrlFallback($(this),gtmData,0);}}});if(self.isEnabled()){$body.on('change','[data-gtm-payment-info],[data-gtm-shipping-info]',function(e){self.logDebugMessage('GTMDataLayer::setEvents [data-gtm-payment-info],[data-gtm-shipping-info] on change');let selectedValue;if($(this).is('select')){selectedValue=$(this).find(':selected').val();}else if($(this).is('input:radio')){selectedValue=$(this).filter(':checked').val();}\nif(!selectedValue){console.warn('GTMDataLayer::setEvents [data-gtm-payment-info] on change: could not determine selectedValue');return;}\nif($(this).attr('data-gtm-shipping-info')!==undefined){self.pushAddShippingInfo(self.checkoutProducts,selectedValue);}else{self.pushAddPaymentInfo(self.checkoutProducts,selectedValue);}});$body.on('submit','[data-gtm-form]',function(e){let $form=$(this);self.logDebugMessage('GTMDataLayer::setEvents [data-gtm-form] on submit',{element:this});let callbackCalled=false;self.pushFormEvent($form,null,function(){if(callbackCalled){return;}\ncallbackCalled=true;self.logDebugMessage('GTMDataLayer::setEvents submitting form in eventCallback');$body.off('submit','[data-gtm-form]');$($form).submit();});e.preventDefault();});$body.on('click','[data-gtm-form-submit-click]',function(){self.logDebugMessage('GTMDataLayer::setEvents [data-gtm-form-submit-click] on click',{element:this});let $form=$(this).closest('form');if(!$form.length){self.logDebugMessage('GTMDataLayer::setEvents [data-gtm-form-submit-click] no parent form available');return;}\nself.pushFormEvent($form);});}}\nGTMDataLayer.prototype.hasSessionStorage=function(){return window.hasOwnProperty('sessionStorage');}\nGTMDataLayer.prototype.getDelayedProductClick=function(){let self=this;if(!self.hasSessionStorage()){return null;}\nlet delayedProductClick=sessionStorage.getItem(self.DELAYED_PRODUCT_CLICK_KEY);try{delayedProductClick=JSON.parse(delayedProductClick);}catch(error){return null;}\nif(!isObject(delayedProductClick)){return null;}\nreturn delayedProductClick;}\nGTMDataLayer.prototype.setDelayedProductClick=function(product,list){let self=this;if(!self.hasSessionStorage()){this.logDebugMessage('GTMDataLayer::setDelayedProductClick aborted due to missing sessionStorage');return false;}\nthis.logDebugMessage('GTMDataLayer::setDelayedProductClick',{product:product,list:list});let data={time:Date.now(),product:product,list:list,};sessionStorage.setItem(self.DELAYED_PRODUCT_CLICK_KEY,JSON.stringify(data));}\nGTMDataLayer.prototype.pushDelayedProductClick=function(){let self=this;this.logDebugMessage('GTMDataLayer::pushDelayedProductClick called');try{const delayedProductClick=self.getDelayedProductClick();if(!delayedProductClick){return;}\nsessionStorage.removeItem(self.DELAYED_PRODUCT_CLICK_KEY);const time=delayedProductClick.time;const product=delayedProductClick.product;const list=delayedProductClick.list;if(Date.now()-time>self.DELAYED_PRODUCT_CLICK_TTL){this.logDebugMessage('GTMDataLayer::pushDelayedProductClick expired');return;}\nself.pushProductClick(product,list);}catch(error){}}\nGTMDataLayer.prototype.pushNewImpressions=function(){let self=this;self.logDebugMessage('GTMDataLayer::pushNewImpressions called');let impressions=[];$('[data-gtm-product]').each(function(){let gtmData=$(this).data('gtmData');if(!isObject(gtmData)){console.warn('GTMDataLayer::pushNewImpressions: `data-gtm-data` must be an object');return;}\nlet key=gtmData.item_list_id||'';key=key+(gtmData.item_id||gtmData.item_name);if(!key){console.warn('GTMDataLayer::pushNewImpressions: `data-gtm-data` must contain `id` or `name`');return;}\nif(self.pushedImpressionKeys.indexOf(key)>-1){self.logDebugMessage('GTMDataLayer::pushNewImpressions: skipping already pushed key: '+key);return;}\nself.pushedImpressionKeys.push(key);impressions.push(gtmData);})\nif(impressions.length>0){self.pushImpressions(impressions);}}\nGTMDataLayer.prototype.pushImpressions=function(products){this.logDebugMessage('GTMDataLayer::pushImpressions products',products);if(!Array.isArray(products)){console.warn('GTMDataLayer::impressions: `products` must be an array');return;}\nthis.pushEvent({event:'view_item_list',ecommerce:{items:products,}});}\nGTMDataLayer.prototype.pushProductClick=function(product,list){list=typeof list!=='string'?null:list;this.logDebugMessage('GTMDataLayer::pushProductClick',{product:product,list:list});if(!this.isObject(product)){console.warn('GTMDataLayer::productClick: `product` must be an object');return;}\nif(!product.item_id&&!product.item_name){console.warn('GTMDataLayer::productClick: `product` must contain property `item_id` or `item_name`');return;}\nthis.pushEvent({event:'select_item',ecommerce:{item_list_id:list,items:[product],}});}\nGTMDataLayer.prototype.pushProductDetailView=function(products,list){this.pushDelayedProductClick();list=(typeof list!=='string')?null:list;this.logDebugMessage('GTMDataLayer::pushProductDetailView',{products:products,list:list});if(!Array.isArray(products)){console.warn('GTMDataLayer::pushProductDetailView: `products` must be an array');return;}\nthis.pushEvent({event:'view_item',ecommerce:{items:products,}});}\nGTMDataLayer.prototype.pushAddToCart=function(product,cb){cb=typeof cb==='function'?cb:function(){};this.logDebugMessage('GTMDataLayer::pushAddToCart product:',product);if(!this.isObject(product)){console.warn('GTMDataLayer::pushAddToCart: `product` must be an object');cb();return;}\nif(!product.item_id&&!product.item_name){console.warn('GTMDataLayer::pushAddToCart: `product` must contain property `item_id` or `item_name`');cb();return;}\nsetTimeout(cb,500);this.pushEvent({event:'add_to_cart',ecommerce:{items:[product],},eventCallback:cb});}\nGTMDataLayer.prototype.pushRemoveFromCart=function(product,cb){cb=typeof cb==='function'?cb:function(){};this.logDebugMessage('GTMDataLayer::pushRemoveFromCart product:',product);if(!this.isObject(product)){console.warn('GTMDataLayer::pushRemoveFromCart: `product` must be an object');cb();return;}\nif(!product.item_id&&!product.item_name){console.warn('GTMDataLayer::pushRemoveFromCart: `product` must contain property `item_id` or `item_name`');cb();return;}\nsetTimeout(cb,500);this.pushEvent({event:'remove_from_cart',ecommerce:{items:[product],},eventCallback:cb});}\nGTMDataLayer.prototype.pushViewCart=function(value,products){this.logDebugMessage('GTMDataLayer::pushViewCart:',{value:value,products:products});if(typeof value!==\"number\"){console.warn('GTMDataLayer::pushViewCart: `value` must be a number');return;}\nif(!Array.isArray(products)){console.warn('GTMDataLayer::pushViewCart: `products` must be an array');return;}\nthis.pushEvent({event:'view_cart',ecommerce:{currency:'EUR',value:value,items:products}});}\nGTMDataLayer.prototype.pushOnCheckout=function(products){this.logDebugMessage('GTMDataLayer::pushOnCheckout products:',products);if(!Array.isArray(products)){console.warn('GTMDataLayer::pushOnCheckout: `products` must be an array');return;}\nthis.checkoutProducts=products;this.pushEvent({event:'begin_checkout',ecommerce:{items:products}});}\nGTMDataLayer.prototype.pushAddPaymentInfo=function(products,paymentType){this.logDebugMessage('GTMDataLayer::pushAddPaymentInfo',{products:products,paymentType:paymentType});if(!Array.isArray(products)){console.warn('GTMDataLayer::pushAddPaymentInfo: `products` must be an array');return;}\nif(typeof paymentType!=='string'){console.warn('GTMDataLayer::pushAddPaymentInfo: `paymentType` must be a string');return;}\nthis.pushEvent({event:'add_payment_info',ecommerce:{items:products,payment_type:paymentType,},});}\nGTMDataLayer.prototype.pushAddShippingInfo=function(products,shippingTier){this.logDebugMessage('GTMDataLayer::pushAddShippingInfo',{products:products,shippingTier:shippingTier});if(!Array.isArray(products)){console.warn('GTMDataLayer::pushAddShippingInfo: `products` must be an array');return;}\nif(typeof shippingTier!=='string'){console.warn('GTMDataLayer::pushAddShippingInfo: `shippingTier` must be a string');return;}\nthis.pushEvent({event:'add_shipping_info',ecommerce:{items:products,shipping_tier:shippingTier,},});}\nGTMDataLayer.prototype.pushPurchase=function(purchaseDetails,products,eventName){this.logDebugMessage('GTMDataLayer::pushPurchase purchaseDetails:',{purchaseDetails:purchaseDetails,products:products});eventName=typeof eventName==='string'?eventName:'purchase';if(!this.isObject(purchaseDetails)){console.warn('GTMDataLayer::pushPurchase `purchaseDetails` must be an object');return;}\nif(!Array.isArray(products)){console.warn('GTMDataLayer::pushPurchase: `products` must be an array');return;}\npurchaseDetails.items=products;this.pushEvent({event:eventName,ecommerce:purchaseDetails,});}\nGTMDataLayer.prototype.pushPurchaseGA4=GTMDataLayer.prototype.pushPurchase;GTMDataLayer.prototype.pushFormEvent=function(formElement,eventName,eventCallback){let self=this;this.logDebugMessage('GTMDataLayer::pushFormEvent',{formElement:formElement,eventName:eventName});eventCallback=typeof eventCallback==='function'?eventCallback:function(){};eventCallback();return;let $form=$(formElement);if(!$form.length||!$form.is('form')){console.warn('GTMDataLayer::pushFormEvent: `formElement` must be a html form element');eventCallback();return;}\nif(!eventName){eventName=$form.data('gtm-event');}\nif(!eventName){console.warn('GTMDataLayer::pushFormEvent: `eventName` must be provided as argument or set on the form as `data-event` attribute');eventCallback();return;}\nlet event={event:eventName,eventCallback:eventCallback,};let formId=$form.data('gtm-form-id')||$form.attr('id');if(formId){event.form_id=formId;}else{event.form_id=null;console.warn('GTMDataLayer::pushFormEvent: the form has no attribute `id` or `data-gtm-form-id`, continue anyway..');}\nlet $gtmFormElements=$form.find('[data-gtm-name]');let hasAllRequired=true;$gtmFormElements.each(function(i,element){let $element=$(element);let gtmName=$element.data('gtm-name');let gtmRequired=typeof $element.attr('data-gtm-required')!=='undefined';let value;if($element.is('select')){value=$element.find(':selected').val();}else if($element.is('input:radio')){value=$form.find('[name='+$element.attr('name')+']').filter(':checked').val();}else{value=$element.val();}\nif(typeof value==='undefined'||value===null||value===''){if(gtmRequired){console.warn('GTMDataLayer::pushFormEvent: no value for gtm-required form element','$formElement',$element);hasAllRequired=false;return;}else{value=null;}}\nevent[gtmName]=value;});if(!hasAllRequired){eventCallback();return;}\nself.pushEvent(event);setTimeout(eventCallback,250);}\nGTMDataLayer.prototype.pushEvent=function(event){this.logDebugMessage('GTMDataLayer::pushEvent',event);if(!this.isObject(event)){console.warn('GTMDataLayer::pushEvent `event` must be an object');return;}\ndataLayer.push({ecommerce:null});dataLayer.push(event);}\nGTMDataLayer.prototype.isObject=function(o){return typeof o==='object'&&!Array.isArray(o)&&o!==null}"},{"status":200,"content":"!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent(\"MouseEvents\");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch=\"ontouchend\"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,\"mouseover\"),f(a,\"mousemove\"),f(a,\"mousedown\"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,\"mousemove\"))},b._touchEnd=function(a){e&&(f(a,\"mouseup\"),f(a,\"mouseout\"),this._touchMoved||f(a,\"click\"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,\"_touchStart\"),touchmove:a.proxy(b,\"_touchMove\"),touchend:a.proxy(b,\"_touchEnd\")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,\"_touchStart\"),touchmove:a.proxy(b,\"_touchMove\"),touchend:a.proxy(b,\"_touchEnd\")}),d.call(b)}}}(jQuery);"},{"status":200,"content":"/*! fancyBox v2.1.0 fancyapps.com | fancyapps.com/fancybox/#license */\n(function(u,p,f,q){var o=f(u),n=f(p),b=f.fancybox=function(){b.open.apply(this,arguments)},z=null,m=p.createTouch!==q,x=function(a){return a&&a.hasOwnProperty&&a instanceof f},s=function(a){return a&&\"string\"===f.type(a)},C=function(a){return s(a)&&0
',image:'

',iframe:'
\",error:'
The requested content cannot be loaded.
Please try again later.
',closeBtn:'
',next:'
',prev:'
'},openEffect:\"fade\",openSpeed:250,openEasing:\"swing\",openOpacity:!0,openMethod:\"zoomIn\",closeEffect:\"fade\",closeSpeed:250,closeEasing:\"swing\",closeOpacity:!0,closeMethod:\"zoomOut\",nextEffect:\"elastic\",nextSpeed:250,nextEasing:\"swing\",nextMethod:\"changeIn\",prevEffect:\"elastic\",prevSpeed:250,prevEasing:\"swing\",prevMethod:\"changeOut\",helpers:{overlay:{closeClick:!0,speedOut:200,showEarly:!0,css:{}},title:{type:\"float\"}},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,c){if(a&&(f.isPlainObject(c)||(c={}),!1!==b.close(!0)))return f.isArray(a)||(a=x(a)?f(a).get():[a]),f.each(a,function(e,d){var j={},g,h,i,l,k;\"object\"===f.type(d)&&(d.nodeType&&(d=f(d)),x(d)?(j={href:d.attr(\"href\"),title:d.attr(\"title\"),isDom:!0,element:d},f.metadata&&f.extend(!0,j,d.metadata())):j=d);g=c.href||j.href||(s(d)?d:null);h=c.title!==q?c.title:j.title||\"\";l=(i=c.content||j.content)?\"html\":c.type||j.type;!l&&j.isDom&&(l=d.data(\"fancybox-type\"),l||(l=(l=d.prop(\"class\").match(/fancybox\\.(\\w+)/))?l[1]:null));if(s(g)&&(l||(b.isImage(g)?l=\"image\":b.isSWF(g)?l=\"swf\":\"#\"===g.charAt(0)?l=\"inline\":s(d)&&(l=\"html\",i=d)),\"ajax\"===l))k=g.split(/\\s+/,2),g=k.shift(),k=k.shift();i||(\"inline\"===l?g?i=f(s(g)?g.replace(/.*(?=#[^\\s]+$)/,\"\"):g):j.isDom&&(i=d):\"html\"===l?i=g:!l&&(!g&&j.isDom)&&(l=\"inline\",i=d));f.extend(j,{href:g,type:l,content:i,title:h,selector:k});a[e]=j}),b.opts=f.extend(!0,{},b.defaults,c),c.keys!==q&&(b.opts.keys=c.keys?f.extend({},b.defaults.keys,c.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger(\"onCancel\")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0).trigger(\"onReset\").remove(),b.current||b.trigger(\"afterClose\"),b.coming=null)},close:function(a){b.cancel();!1!==b.trigger(\"beforeClose\")&&(b.unbindEvents(),!b.isOpen||!0===a?(f(\".fancybox-wrap\").stop(!0).trigger(\"onReset\").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(\".fancybox-item, .fancybox-nav\").remove(),b.wrap.stop(!0,!0).removeClass(\"fancybox-opened\"),\"fixed\"===b.wrap.css(\"position\")&&b.wrap.css(b._getPosition(!0)),b.transitions[b.current.closeMethod]()))},play:function(a){var c=function(){clearTimeout(b.player.timer)},e=function(){c();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},d=function(){c();f(\"body\").unbind(\".player\");b.player.isActive=!1;b.trigger(\"onPlayEnd\")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index
=d.index?\"next\":\"prev\"],b.router=e||\"jumpto\",d.loop&&(0>a&&(a=d.group.length+a%d.group.length),a%=d.group.length),d.group[a]!==q))b.cancel(),b._start(a)},reposition:function(a,c){var e;b.isOpen&&(e=b._getPosition(c),a&&\"scroll\"===a.type?(delete e.position,b.wrap.stop(!0,!0).animate(e,200)):b.wrap.css(e))},update:function(a){var c=a&&a.type,e=!c||\"orientationchange\"===c;e&&(clearTimeout(z),z=null);if(b.isOpen&&!z){if(e||m)b.wrap.removeAttr(\"style\").addClass(\"fancybox-tmp\"),b.trigger(\"onUpdate\");z=setTimeout(function(){var d=b.current;if(d){b.wrap.removeClass(\"fancybox-tmp\");c!==\"scroll\"&&b._setDimension();c===\"scroll\"&&d.canShrink||b.reposition(a);b.trigger(\"onUpdate\");z=null}},m?500:e?20:300)}},toggle:function(a){b.isOpen&&(b.current.fitToView=\"boolean\"===f.type(a)?a:!b.current.fitToView,b.update())},hideLoading:function(){n.unbind(\"keypress.fb\");f(\"#fancybox-loading\").remove()},showLoading:function(){var a,c;b.hideLoading();n.bind(\"keypress.fb\",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});a=f('').click(b.cancel).appendTo(\"body\");b.defaults.fixed||(c=b.getViewport(),a.css({position:\"absolute\",top:0.5*c.h+c.y,left:0.5*c.w+c.x}))},getViewport:function(){var a=b.current?b.current.locked:!1,c={x:o.scrollLeft(),y:o.scrollTop()};a?(c.w=a[0].clientWidth,c.h=a[0].clientHeight):(c.w=m&&u.innerWidth?u.innerWidth:o.width(),c.h=m&&u.innerHeight?u.innerHeight:o.height());return c},unbindEvents:function(){b.wrap&&x(b.wrap)&&b.wrap.unbind(\".fb\");n.unbind(\".fb\");o.unbind(\".fb\")},bindEvents:function(){var a=b.current,c;a&&(o.bind(\"orientationchange.fb\"+(m?\"\":\" resize.fb\")+(a.autoCenter&&!a.locked?\" scroll.fb\":\"\"),b.update),(c=a.keys)&&n.bind(\"keydown.fb\",function(e){var d=e.which||e.keyCode,j=e.target||e.srcElement;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!j||!j.type&&!f(j).is(\"[contenteditable]\")))&&f.each(c,function(c,j){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==d&&!i&&1g||0>j)b.next(0>g?\"up\":\"right\");c.preventDefault()}}))},trigger:function(a,c){var e,d=c||b.coming||b.current;if(d){f.isFunction(d[a])&&(e=d[a].apply(d,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;\"onCancel\"===a&&!b.isOpened&&(b.isActive=!1);d.helpers&&f.each(d.helpers,function(c,e){if(e&&b.helpers[c]&&f.isFunction(b.helpers[c][a]))b.helpers[c][a](e,d)});f.event.trigger(a+\".fb\")}},isImage:function(a){return s(a)&&a.match(/\\.(jp(e|g|eg)|gif|png|bmp|webp)((\\?|#).*)?$/i)},isSWF:function(a){return s(a)&&a.match(/\\.(swf)((\\?|#).*)?$/i)},_start:function(a){var c={},e,d,a=k(a);e=b.group[a]||null;if(!e)return!1;c=f.extend(!0,{},b.opts,e);e=c.margin;d=c.padding;\"number\"===f.type(e)&&(c.margin=[e,e,e,e]);\"number\"===f.type(d)&&(c.padding=[d,d,d,d]);c.modal&&f.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});c.autoSize&&(c.autoWidth=c.autoHeight=!0);\"auto\"===c.width&&(c.autoWidth=!0);\"auto\"===c.height&&(c.autoHeight=!0);c.group=b.group;c.index=a;b.coming=c;if(!1===b.trigger(\"beforeLoad\"))b.coming=null;else{d=c.type;e=c.href;if(!d)return b.coming=null,b.current&&b.router&&\"jumpto\"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if(\"image\"===d||\"swf\"===d)c.autoHeight=c.autoWidth=!1,c.scrolling=\"visible\";\"image\"===d&&(c.aspectRatio=!0);\"iframe\"===d&&m&&(c.scrolling=\"scroll\");c.wrap=f(c.tpl.wrap).addClass(\"fancybox-\"+(m?\"mobile\":\"desktop\")+\" fancybox-type-\"+d+\" fancybox-tmp \"+c.wrapCSS).appendTo(c.parent);f.extend(c,{skin:f(\".fancybox-skin\",c.wrap),outer:f(\".fancybox-outer\",c.wrap),inner:f(\".fancybox-inner\",c.wrap)});f.each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(a,b){c.skin.css(\"padding\"+b,v(c.padding[a]))});b.trigger(\"onReady\");if(\"inline\"===d||\"html\"===d){if(!c.content||!c.content.length)return b._error(\"content\")}else if(!e)return b._error(\"href\");\"image\"===d?b._loadImage():\"ajax\"===d?b._loadAjax():\"iframe\"===d?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:\"html\",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:\"no\",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width;b.coming.height=this.height;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error(\"image\")};a.src=b.coming.href;(a.complete===q||!a.complete)&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&\"abort\"!==e?b._error(\"ajax\",a):b.hideLoading()},success:function(c,e){\"success\"===e&&(a.content=c,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,c=f(a.tpl.iframe.replace(/\\{rnd\\}/g,(new Date).getTime())).attr(\"scrolling\",m?\"auto\":a.iframe.scrolling).attr(\"src\",a.href);f(a.wrap).bind(\"onReset\",function(){try{f(this).find(\"iframe\").hide().attr(\"src\",\"//about:blank\").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),c.one(\"load\",function(){f(this).data(\"ready\",1);m||f(this).bind(\"load.fb\",b.update);f(this).parents(\".fancybox-wrap\").width(\"100%\").removeClass(\"fancybox-tmp\").show();b._afterLoad()}));a.content=c.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,c=b.current,e=a.length,d=c.preload?Math.min(c.preload,e-1):0,f,g;for(g=1;g<=d;g+=1)f=a[(c.index+g)%e],\"image\"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,c=b.current,e,d,j,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger(\"afterLoad\",a,c))a.wrap.stop(!0).trigger(\"onReset\").remove(),b.coming=null;else{c&&(b.trigger(\"beforeChange\",c),c.wrap.stop(!0).removeClass(\"fancybox-opened\").find(\".fancybox-item, .fancybox-nav\").remove(),\"fixed\"===c.wrap.css(\"position\")&&c.wrap.css(b._getPosition(!0)));b.unbindEvents();e=a.content;d=a.type;j=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:c});g=a.href;switch(d){case\"inline\":case\"ajax\":case\"html\":a.selector?e=f(\"\").html(e).find(a.selector):x(e)&&(e.data(\"fancybox-placeholder\")||e.data(\"fancybox-placeholder\",f('
').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind(\"onReset\",function(){f(this).find(e).length&&e.hide().replaceAll(e.data(\"fancybox-placeholder\")).data(\"fancybox-placeholder\",false)}));break;case\"image\":e=a.tpl.image.replace(\"{href}\",g);break;case\"swf\":e='
\"}(!x(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger(\"beforeShow\");a.inner.css(\"overflow\",\"yes\"===j?\"scroll\":\"no\"===j?\"hidden\":j);b._setDimension();a.wrap.removeClass(\"fancybox-tmp\");a.pos=f.extend({},a.dim,b._getPosition(!0));b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(c.prevMethod)b.transitions[c.prevMethod]()}else f(\".fancybox-wrap\").not(a.wrap).stop(!0).trigger(\"onReset\").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),c=0,e=!1,d=!1,e=b.wrap,j=b.skin,g=b.inner,h=b.current,d=h.width,i=h.height,l=h.minWidth,t=h.minHeight,m=h.maxWidth,n=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,w=h.margin,o=w[1]+w[3],p=w[0]+w[2],x,r,u,A,y,D,z,B,E;e.add(j).add(g).width(\"auto\").height(\"auto\");w=j.outerWidth(!0)-j.width();x=j.outerHeight(!0)-j.height();r=o+w;u=p+x;A=C(d)?(a.w-r)*k(d)/100:d;y=C(i)?(a.h-u)*k(i)/100:i;if(\"iframe\"===h.type){if(E=h.content,h.autoHeight&&1===E.data(\"ready\"))try{E[0].contentWindow.document.location&&(g.width(A).height(9999),D=E.contents().find(\"body\"),q&&D.css(\"overflow-x\",\"hidden\"),y=D.height())}catch(F){}}else if(h.autoWidth||h.autoHeight)g.addClass(\"fancybox-tmp\"),h.autoWidth||g.width(A),h.autoHeight||g.height(y),h.autoWidth&&(A=g.width()),h.autoHeight&&(y=g.height()),g.removeClass(\"fancybox-tmp\");d=k(A);i=k(y);B=A/y;l=k(C(l)?k(l,\"w\")-r:l);m=k(C(m)?k(m,\"w\")-r:m);t=k(C(t)?k(t,\"h\")-u:t);n=k(C(n)?k(n,\"h\")-u:n);D=m;z=n;o=a.w-o;p=a.h-p;if(h.aspectRatio){if(d>m&&(d=m,i=d/B),i>n&&(i=n,d=i*B),d
o||r>p)&&(d>l&&i>t)&&!(19m&&(d=m,i=d/B),g.width(k(d)).height(k(i)),e.width(k(d+w)),a=e.width(),r=e.height();else d=Math.max(l,Math.min(d,d-(a-o))),i=Math.max(t,Math.min(i,i-(r-p)));q&&(\"auto\"===s&&io||r>p)&&d>l&&i>t;d=h.aspectRatio?dt&&ib&&(a=n.width())):n.width()>o.width()&&(a=n.width());this.overlay.width(a).height(n.height())},onReady:function(a,b){f(\".fancybox-overlay\").stop(!0,!0);this.overlay||f.extend(this,{overlay:f('').appendTo(b.parent),margin:n.height()>o.height()||\"scroll\"===f(\"body\").css(\"overflow-y\")?f(\"body\").css(\"margin-right\"):!1,el:p.all&&!p.querySelector?f(\"html\"):f(\"body\")});b.fixed&&!m&&(this.overlay.addClass(\"fancybox-overlay-fixed\"),b.autoCenter&&(this.overlay.append(b.wrap),b.locked=this.overlay));!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,c){var e=this.overlay.unbind(\".fb\").width(\"auto\").height(\"auto\").css(a.css);a.closeClick&&e.bind(\"click.fb\",function(a){f(a.target).hasClass(\"fancybox-overlay\")&&b.close()});c.fixed&&!m?c.locked&&(this.el.addClass(\"fancybox-lock\"),!1!==this.margin&&f(\"body\").css(\"margin-right\",k(this.margin)+c.scrollbarWidth)):this.update();e.show()},onUpdate:function(a,b){(!b.fixed||m)&&this.update()},afterClose:function(a){var c=this,a=a.speedOut||0;c.overlay&&!b.isActive&&c.overlay.fadeOut(a||0,function(){f(\"body\").css(\"margin-right\",c.margin);c.el.removeClass(\"fancybox-lock\");c.overlay.remove();c.overlay=null})}};b.helpers.title={beforeShow:function(a){var c=b.current.title,e=a.type;if(s(c)&&\"\"!==f.trim(c)){c=f(''+c+\"
\");switch(e){case\"inside\":e=b.skin;break;case\"outside\":e=b.wrap;break;case\"over\":e=b.inner;break;default:e=b.skin,c.appendTo(\"body\").width(c.width()).wrapInner(''),b.current.margin[2]+=Math.abs(k(c.css(\"margin-bottom\")))}\"top\"===a.position?c.prependTo(e):c.appendTo(e)}}};f.fn.fancybox=function(a){var c,e=f(this),d=this.selector||\"\",j=function(g){var h=f(this).blur(),i=c,j,k;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(\".fancybox-wrap\")&&(j=a.groupAttr||\"data-fancybox-group\",k=h.attr(j),k||(j=\"rel\",k=h.get(0)[j]),k&&(\"\"!==k&&\"nofollow\"!==k)&&(h=d.length?f(d):e,h=h.filter(\"[\"+j+'=\"'+k+'\"]'),i=h.index(this)),a.index=i,!1!==b.open(h,a)&&g.preventDefault())},a=a||{};c=a.index||0;!d||!1===a.live?e.unbind(\"click.fb-start\").bind(\"click.fb-start\",j):n.undelegate(d,\"click.fb-start\").delegate(d+\":not('.fancybox-item, .fancybox-nav')\",\"click.fb-start\",j);return this};n.ready(function(){f.scrollbarWidth===q&&(f.scrollbarWidth=function(){var a=f('').appendTo(\"body\"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===q){var a=f.support,c=f('').appendTo(\"body\"),e=20===c[0].offsetTop||15===c[0].offsetTop;c.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f(\"body\")})})})(window,document,jQuery);"}]