(()=>{"use strict";var e={},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}function i(e,t,n="traffic"){if(window.location.hostname.includes("localhost")){console.log("SEND_WAVE => ",e,t,n);return}if("undefined"!=typeof window&&window.WP)try{window.WP.push(function(){window.WP.stat.wave(e,t,n)})}catch(e){console.error("WP_STAT_WAVE_ERROR: ",e)}}n.rv=function(){return"1.2.3"},n.ruid="bundler=rspack@1.2.3";let a=new Set,r=new IntersectionObserver(function(e){e.forEach(e=>{if(e.isIntersecting){let t=e.target.getAttribute("data-uxc");t&&!a.has(t)&&(a.add(t),i("evt_ux_consumption",{event:"view",pos:String(t)})),r.unobserve(e.target)}})},{threshold:0,root:null});function o(e,t,n={}){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;n.expires&&(i+=`; expires=${n.expires.toUTCString()}`),n.domain&&(i+=`; domain=${n.domain}`),n.path&&(i+=`; path=${n.path}`),n.secure&&(i+="; secure"),n.sameSite&&(i+=`; samesite=${n.sameSite}`),document.cookie=i}let l=e=>{o("wp_dark",e?"0":"1",{expires:new Date(Date.now()+31536e6),domain:window.__INIT_CONFIG__.cookieDomain,path:"/",sameSite:"none",secure:!0})};function c(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}let d=null;function s(){return document.body.classList.contains("wp-scroll-lock-ios")}function u(){if(!c()){document.body.classList.add("wp-scroll-lock");return}!s()&&(d=window.scrollY,document.body.classList.add("wp-scroll-lock-ios"),document.documentElement.style.setProperty("--wp-scroll-lock-ios",-1*d+"px"))}function p(){if(!c()){document.body.classList.remove("wp-scroll-lock");return}s()&&(document.body.classList.remove("wp-scroll-lock-ios"),document.documentElement.style.removeProperty("--wp-scroll-lock-ios"),"number"==typeof d&&(window.scrollTo(0,d),d=null))}function h(){let e=document.createElement("div");return e.className="h-0",e}function w(e){return{get:(t,n)=>"push"===n?function(...n){return v===e&&n.forEach(e=>"function"==typeof e&&e()),Array.prototype.push.apply(t,n)}:Reflect.get(t,n)}}let m=new Proxy([],w("wide")),f=new Proxy([],w("narrow")),v=null;function g(e,t,n,i){if(i){e.forEach(e=>"function"==typeof e&&e());return}let a=window.innerWidth>=n?"wide":"narrow";v!==a&&(v=a,"wide"===a&&t.length&&t.forEach(e=>"function"==typeof e&&e()),"narrow"===a&&e.length&&e.forEach(e=>"function"==typeof e&&e()))}let y={registerNative:function(e,t,n,i="recommendations-bottom-new"){window.WP.push(()=>{try{var a,r;let o;let l=window.location.href,c=(a=n,(r=i)in window.__GOFER_FACTORY__.userActions.containers?o=window.__GOFER_FACTORY__.userActions.containers[r]:(o=function(e,t){let n=window.__INIT_CONFIG__.isLoggedIn,i=window.location.href;return window.WP.pwp.registerContainer({type:"area",areaid:t,length:e,isLogged:n,url:i})}(a,r),window.__GOFER_FACTORY__.userActions.containers[r]=o),o),d={boxData:{type:"teaser",index:t,url:l,areaid:i,target_url:e.dataNative.url,img:e.dataNative.src,recommendationType:"moth"===e.type?"big-data":"ad",yd:""},options:{time:1,percent:50}};window.WP.pwp.registerBox(e.originalEl,d.boxData,c,d.options)}catch(e){console.error(e)}})},registerNativeIntextTeaser:function(e,t,n){window.WP.push(()=>{try{let i=window.location.href,a=window.__INIT_CONFIG__.isLoggedIn,r=window.WP.pwp.registerContainer({type:"area",areaid:"adspace-recommendation",length:n,isLogged:a,position:t,url:i}),o={type:"intextTeaser",index:"0",url:i,img:e.dataNative.src,areaid:"adspace-photorecommendation",target_url:e.dataNative.url,position:t,recommendationType:"big_data",yd:""};window.WP.pwp.registerBox(e.originalEl,o,r,{time:1,percent:50})}catch(e){console.error(e)}})},containers:{}},b=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var _="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,E=_||C||Function("return this")();let N=function(){return E.Date.now()};var A=/\s/;let T=function(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t};var k=/^\s+/,S=E.Symbol,x=Object.prototype,I=x.hasOwnProperty,O=x.toString,P=S?S.toStringTag:void 0;let L=function(e){var t=I.call(e,P),n=e[P];try{e[P]=void 0;var i=!0}catch(e){}var a=O.call(e);return i&&(t?e[P]=n:delete e[P]),a};var R=Object.prototype.toString,F=S?S.toStringTag:void 0;let W=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?L(e):R.call(e)},G=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==W(e)};var B=0/0,V=/^[-+]0x[0-9a-f]+$/i,Y=/^0b[01]+$/i,j=/^0o[0-7]+$/i,D=parseInt;let $=function(e){if("number"==typeof e)return e;if(G(e))return B;if(b(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=b(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,T(t)+1).replace(k,""):t;var i=Y.test(e);return i||j.test(e)?D(e.slice(2),i?2:8):V.test(e)?B:+e};var M=Math.max,U=Math.min;let q=function(e,t,n){var i,a,r,o,l,c,d=0,s=!1,u=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=i,r=a;return i=a=void 0,d=t,o=e.apply(r,n)}function w(e){var n=e-c,i=e-d;return void 0===c||n>=t||n<0||u&&i>=r}function m(){var e,n,i,a=N();if(w(a))return f(a);l=setTimeout(m,(e=a-c,n=a-d,i=t-e,u?U(i,r-n):i))}function f(e){return(l=void 0,p&&i)?h(e):(i=a=void 0,o)}function v(){var e,n=N(),r=w(n);if(i=arguments,a=this,c=n,r){if(void 0===l)return d=e=c,l=setTimeout(m,t),s?h(e):o;if(u)return clearTimeout(l),l=setTimeout(m,t),h(c)}return void 0===l&&(l=setTimeout(m,t)),o}return t=$(t)||0,b(n)&&(s=!!n.leading,r=(u="maxWait"in n)?M($(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=c=a=l=void 0},v.flush=function(){return void 0===l?o:f(N())},v},z=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return b(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),q(e,t,{leading:i,maxWait:t,trailing:a})};function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e){if(!e)return null;try{return new URL(e)}catch(e){return null}}class J extends Array{push(...e){let t=super.push(...e);return e.forEach(e=>{"function"==typeof this.handler&&this.handler(e)}),t}constructor(e){super(),H(this,"handler",void 0),this.handler=e}}function K(e,t){try{let n=window.WP.pwp.registerContainer({type:"area",areaid:"service_header",length:1,isLogged:e,url:t}),i=document.getElementById("service_logo");if(!(i instanceof HTMLAnchorElement))return;let a={boxData:{type:"button",index:0,url:t,areaid:"service_header",target_url:i.href,id:"service_logo",yd:""},options:{time:1,percent:50}};window.WP.pwp.registerBox(i,a.boxData,n,a.options)}catch(e){console.error(e)}}let{isMobile:Z,isLoggedIn:X}=window.__INIT_CONFIG__;window.NativeAdManager=new class{initAsyncQueue(){var e;(null===(e=window.asyncNativeQueue)||void 0===e?void 0:e.length)&&window.asyncNativeQueue.forEach(e=>{e.action&&e.payload&&this.handleAction(e)}),window.asyncNativeQueue=new J(this.handleAction)}getElement(e){return document.querySelector(`.${e}`)}createNativeTeaser(e,t){let n=t.labelText||"REKLAMA",i=document.createElement("a"),a=document.createElement("div"),r=document.createElement("img"),o=document.createElement("span"),l=e.getAttribute("data-position");if(i.classList.add("wp-native-teaser-anchor"),i.setAttribute("href",t.url||""),a.classList.add("wp-native-img-container"),r.setAttribute("src",t.src||""),o.textContent=t.text||"",a.appendChild(r),i.appendChild(a),i.appendChild(o),e.appendChild(i),t.privacyIcon&&t.privacyLink){let n=document.createElement("a");n.classList.add("wp-native-privacy-anchor");let a=document.createElement("img");n.setAttribute("href",t.privacyLink),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),a.setAttribute("src",t.privacyIcon),n.appendChild(a),i.setAttribute("data-privacy","true"),e.appendChild(n)}let c={type:"native",dataNative:t,originalEl:i};if(!t.hideLabel)return i.classList.add("cHJldmVudENC"),i.setAttribute("data-before",n),c;let d=Q(t.originalUrl);if(d){let e=d.hostname.replace(/^www\./,"").toUpperCase();i.setAttribute("data-service",e);let t=l?parseInt(l):0;t>0&&i.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),c.type="moth"}return c}createExitPopupNativeTeaser(e,t){let n=document.createElement("a"),i=document.createElement("div"),a=document.createElement("div"),r=document.createElement("img"),o=document.createElement("span"),l=document.createElement("span"),c=e.getAttribute("data-position");if(n.classList.add("wp-native-teaser-anchor"),n.setAttribute("href",t.url||""),i.classList.add("wp-native-teaser-content-container"),a.classList.add("wp-native-img-container"),r.setAttribute("src",t.src||""),o.textContent=t.text||"",o.classList.add("wp-native-teaser-text"),l.textContent="Zobacz cały artykuł",l.classList.add("wp-native-teaser-button"),a.appendChild(r),i.appendChild(a),i.appendChild(o),n.appendChild(i),n.appendChild(l),e.appendChild(n),t.privacyIcon&&t.privacyLink){let i=document.createElement("a");i.classList.add("wp-native-privacy-anchor");let a=document.createElement("img");i.setAttribute("href",t.privacyLink),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"),a.setAttribute("src",t.privacyIcon),i.appendChild(a),n.setAttribute("data-privacy","true"),e.appendChild(i)}let d={type:"native",dataNative:t,originalEl:n},s=Q(t.originalUrl);if(s){let e=s.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e);let t=c?parseInt(c):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),d.type="moth"}return d}createBottombarPanelTeaser(e,t){let n=document.createElement("a");n.href=t.url||"",n.className="wp-timeline-teaser wp-timeline-teaser-horizontal";let i=e.getAttribute("data-position");if(t.src){let e=document.createElement("img");e.src=t.src,e.alt=t.text||"",e.className="timeline-teaser-image timeline-teaser-image-horizontal",n.appendChild(e)}let a=document.createElement("span");if(a.className="teaser-content teaser-content-horizontal",a.textContent=t.text||"",n.appendChild(a),e.appendChild(n),t.privacyIcon&&t.privacyLink){let i=document.createElement("a");i.classList.add("wp-native-privacy-anchor");let a=document.createElement("img");i.setAttribute("href",t.privacyLink),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"),a.setAttribute("src",t.privacyIcon),i.appendChild(a),n.setAttribute("data-privacy","true"),e.appendChild(i)}let r={type:"native",dataNative:t,originalEl:n},o=Q(t.originalUrl);if(o){let e=o.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e);let t=i?parseInt(i):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),r.type="moth"}return r}updateTeaserVisibility(e,t){let n=this.getElement(e);n&&(n.style.display="hide"===t?"none":"inherit")}handleNativeTeaser(e){let t;let{dataNative:n,onViewCallback:i,teaserClassName:a,nativeSlotClassName:r,template:o}=e,l=this.getElement(r);if(!l)return null;switch(o){case"bottombar-panel":t=this.createBottombarPanelTeaser(l,n);break;case"exitpopup":t=this.createExitPopupNativeTeaser(l,n);break;default:t=this.createNativeTeaser(l,n)}return this.updateTeaserVisibility(a,"hide"),i({el:l}),t}handleNativeScreening(e,t){let n=this.getElement(e);return n?(t({el:n}),n):null}handleScreeningEndSection(e,t){let n=`${e}-observer`,i=document.getElementById(n);if(!i)return;let a=0;function r(){let e=i.getBoundingClientRect().top-t.getBoundingClientRect().top;a!==e&&(t.style.maxHeight=`${e}px`,a=e)}let o=z(r,350);r(),window.addEventListener("scroll",()=>o(),{passive:!0})}handleGlobalScreeningClass(e){document.body.classList.add("fullServiceWallpaper"===e?"fullpage":"glopage")}constructor(e){H(this,"options",void 0),H(this,"handlers",void 0),H(this,"handleAction",void 0),H(this,"onTeaser",void 0),H(this,"onAlternativeScreening",void 0),H(this,"onFullpageScreening",void 0),H(this,"onScreening",void 0),H(this,"onPanelPremium",void 0),H(this,"onSectionPremiumBranding",void 0),H(this,"onLabelTarget",void 0),this.options=e,this.handleAction=e=>{"onTeaser"===e.action&&this.onTeaser(e.payload),"onScreening"===e.action&&this.onScreening(e.payload),"onAlternativeScreening"===e.action&&this.onAlternativeScreening(e.payload),"onFullpageScreening"===e.action&&this.onFullpageScreening(e.payload),"onPanelPremium"===e.action&&this.onPanelPremium(e.payload),"onLabelTarget"===e.action&&this.onLabelTarget(e.payload),"onSectionPremiumBranding"===e.action&&this.onSectionPremiumBranding(e.payload)},this.onTeaser=e=>{if(!e.dataNative)return;let{type:t}=e.dataNative,{teaserClassName:n,nativeSlotClassName:i,alternativeContainerClassName:a,dataNative:r,onViewCallback:o,template:l}=e;if("teaser"===t&&"function"==typeof e.onViewCallback){let t=this.handleNativeTeaser({dataNative:r,onViewCallback:o,teaserClassName:n,nativeSlotClassName:i,template:l});"function"==typeof e.onRenderCallback&&t&&e.onRenderCallback(t)}if("teaserHide"===t&&this.updateTeaserVisibility(n,"hide"),"teaserShow"===t&&this.updateTeaserVisibility(n,"show"),"alternativeSlot"===t&&"function"==typeof o){let e=this.getElement(a);if(!e)return;o({el:e})}},this.onAlternativeScreening=e=>{if(!e.dataNative||"function"!=typeof e.onViewCallback)return;let{screeningWallpaperClassName:t,alternativeContainerClassName:n,slotNumber:i,dataNative:a,onViewCallback:r}=e,{type:o}=a;if("alternativeSlot"===o){let e=this.getElement(n);if(!e)return;if(a.buildPlaceholder){var l,c;this.handlers.onRegisterPlaceholder(i,null!==(c=null==e?void 0:null===(l=e.parentNode)||void 0===l?void 0:l.parentNode)&&void 0!==c?c:null)}r({el:e})}"wallpaper"===o&&this.handleNativeScreening(t,r)},this.onFullpageScreening=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback&&("wallpaper"===e.dataNative.type||"fullServiceWallpaper"===e.dataNative.type)){let t=this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback);if(this.handleGlobalScreeningClass(e.dataNative.type),t&&e.dataNative.endSection)this.handleScreeningEndSection(e.dataNative.endSection,t)}},this.onScreening=e=>{e.dataNative&&"function"==typeof e.onViewCallback&&"wallpaper"===e.dataNative.type&&this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback)},this.onPanelPremium=e=>{e.dataNative&&("wallpaper"===e.dataNative.type&&"function"==typeof e.onViewCallback&&this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback),"function"==typeof e.onRenderCallback&&e.onRenderCallback(e.dataNative))},this.onSectionPremiumBranding=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback){if("sectionBranding"===e.dataNative.type){let t=document.querySelector(e.sectionSelector);t&&e.onViewCallback({el:t});return}this.onLabelTarget({targetId:e.targetId,dataNative:e.dataNative,onViewCallback:e.onViewCallback})}},this.onLabelTarget=e=>{if(!e.dataNative||"function"!=typeof e.onViewCallback||"labelTarget"!==e.dataNative.type)return;let t=document.getElementById(e.targetId);t&&e.onViewCallback({el:t})},this.handlers=e,this.initAsyncQueue()}}({onRegisterPlaceholder:(e,t,n)=>{try{"function"==typeof window.WP.gaf.registerPlaceholder&&window.WP.gaf.registerPlaceholder(e,t,n)}catch(e){console.error(e)}}}),function(e){var t,n;window.__GOFER_FACTORY__={},window.__GOFER_FACTORY__.onNarrow=f,window.__GOFER_FACTORY__.onWide=m,window.__GOFER_FACTORY__.createSlot=h,window.__GOFER_FACTORY__.createPlaceholder=(t=window.__INIT_CONFIG__.randvar,n=window.__INIT_CONFIG__.randomClasses,function(e,i,a){let r=document.createElement("div");return r.classList.add(t||""),r.classList.add(n[e]||""),i&&r.classList.add(n.transparent||""),a&&r.classList.add(n.placeholderMargin||""),r}),window.__GOFER_FACTORY__.disableBodyScroll=u,window.__GOFER_FACTORY__.clearBodyScroll=p,window.__GOFER_FACTORY__.userActions=y,g(window.__GOFER_FACTORY__.onNarrow,m,e.breakpointNarrow,e.isMobile),window.addEventListener("resize",()=>{g(window.__GOFER_FACTORY__.onNarrow,m,e.breakpointNarrow,e.isMobile)})}({breakpointNarrow:window.breakpointNarrow}),function(){let e=document.getElementById("darkModeCheckbox");e&&(`.${window.location.hostname}`!==window.__INIT_CONFIG__.cookieDomain&&o("wp_dark","",{expires:new Date(0),domain:window.location.hostname,path:"/"}),e.addEventListener("click",()=>{let e=document.body.classList.contains("dark");document.body.classList.toggle("dark"),function(e){let t=document.querySelector('meta[name="logo"]');if(!t)return;let n=t.content;if(e)t.content=n.replace("logoDark.png","logo.png");else{let e=n.replace("logo.png","logoDark.png"),i=new Image;i.onload=()=>t.content=e,i.src=e}}(e),l(e),function(e){try{window.WP.push(function(){window.WP.stat.setDarkMode(e)}),i("evt_menu",{event:e?"darkmode_off":"darkmode_on"})}catch(e){console.error(e)}}(e)}))}(),function(){let e=document.getElementById("wp-main-menu");if(!e)return;let t=e.getBoundingClientRect().height;t&&document.body.style.setProperty("--nav-header-height",t+17.5+"px")}(),function(){let e=document.querySelector(".wp-ticker-container");if(!e)return;let t=window.scrollY,n=0,i=function(e,t=200){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{e(...i)},t)}}(function(){let i=e.offsetHeight,a=window.scrollY,r=e.hasAttribute("data-ticker-hidden"),o=a>t,l=a<t,c=a-t;o&&c>2?n+=c:o||(n=0),o&&!r&&n>i?e.setAttribute("data-ticker-hidden","true"):l&&r&&e.removeAttribute("data-ticker-hidden"),t=a},100);window.addEventListener("scroll",i,{passive:!0})}();let ee=window.location.href;function et(){let e=document.createElement("script");e.src=window.__INIT_CONFIG__.scriptSrc,e.defer=!0,document.body.appendChild(e)}i("evt_ux_consumption",{event:"view",pos:"started"}),function(){let e=document.querySelectorAll("[data-uxc]");e.length&&e.forEach(e=>r.observe(e))}(),function(e,t,n){window.WP.push(()=>{e?(K(t,n),function(e,t){let n="bottombar",i=document.querySelectorAll(`[data-vab-container="${n}"]`);i.length&&function(e,t,n,i){let a={type:"area",areaid:e,length:t.length,isLogged:n,url:i},r=window.WP.pwp.registerContainer(a);t.forEach((t,a)=>{if(t){let o={type:"button",index:a,url:i,areaid:e,isLogged:n,id:t.dataset.vabBoxId,yd:""};window.WP.pwp.registerBox(t,o,r,{time:1,percent:50})}})}(n,i,e,t)}(t,n)):K(t,n)})}(Z,X,ee),function(){let e=document.body;if("true"===e.getAttribute("data-wp-loaded")){et();return}let t=new MutationObserver(n=>{n.forEach(n=>{"data-wp-loaded"===n.attributeName&&"true"===e.getAttribute("data-wp-loaded")&&(et(),t.disconnect())})});t.observe(e,{attributes:!0,attributeFilter:["data-wp-loaded"]})}()})();