(function(){var S=document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[23],{ln0a:function(A,i,r){"use strict";r.r(i),r.d(i,"countWidgetTypes",function(){return d}),r.d(i,"countButtonTypes",function(){return p}),r.d(i,"collectWidgetCount",function(){return h});var g=r("yXPU"),s=r.n(g);const l="[data-widget-type], [data-element-type]";function d(){const t=document.querySelectorAll(l),n=Array.from(t).reduce(y({generateFeatureKey:e=>`widget-${f(e)}`}),{});return Object.values(n)}function p(){const t=document.querySelectorAll(l),n=Array.from(t).filter(T).reduce(y({generateFeatureKey:e=>`${C(e)}-${f(e)}`}),{});return Object.values(n)}function v(){const t=document.querySelectorAll('[data-element-type="mapextension"][provider="mappy"][data-radius-toggle="true"]');return t.length?[{feature:"maps-mappy-radius",conunt:t.length}]:[]}function h(){return a.apply(this,arguments)}function a(){return a=s()(function*(){var t,n;if(!((t=window.rtCommonProps)!==null&&t!==void 0&&t["scripts.widgetCount.enabled"]))return;let e=d();e=e.concat(v()),e=e.concat(p());const{_currentPage:u,Parameters:o}=window,P={features:e,siteAlias:o==null?void 0:o.SiteAlias,sitePublicationDate:o!=null&&o.PublicationDate?new Date(o==null?void 0:o.PublicationDate).getTime():0,pageType:o==null?void 0:o.pageType,pageUuid:(u==null||(n=u.pageContent)===null||n===void 0?void 0:n.uuid)||(o==null?void 0:o.InitialPageUuid)||`${u==null?void 0:u.pageID}`,path:location.pathname};b(P)}),a.apply(this,arguments)}function b(t){return c.apply(this,arguments)}function c(){return c=s()(function*(t){try{var n;const e=(n=window.rtCommonProps)===null||n===void 0?void 0:n["runtimecollector.url"];if(!e)return;yield fetch(`${e}/feature/metrics`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(t)})}catch(e){console.debug("Failed send metrics for feature count",e)}}),c.apply(this,arguments)}function y({generateFeatureKey:t}){return(n,e)=>{const u=t(e);return n[u]||(n[u]={feature:u,count:0}),n[u].count+=1,n}}const T=t=>{const n=t.classList.contains("dmWidget")&&m(t),e=Array.from(t.querySelectorAll(".dmWidget")).some(u=>m(u));return n||e};function m(t){return window.getComputedStyle(t).getPropertyValue("display")!=="none"}function C(t){return t.classList.contains("button_2")||t.querySelector(".button_2")?"button-secondary":"button-primary"}const f=t=>{const n=t.getAttribute("data-widget-type")||t.getAttribute("data-element-type"),e=t.getAttribute("data-widget-id");return e?`${n}-${e}`:n}}}])})();