https://capman.com/wp-content/plugins/capman-blocks/build/blocks/l…/view.js?ver=4b1e8ecbdd96a34cd18d
1(()=>{"use strict";const t=window.wp.i18n;function e(t,n=1){const o=`${t}-${n}`;return document.getElementById(o)?e(t,n+1):o}function n(t){if(0===t.children.length)return 0;const e=t.children[0],n=getComputedStyle(e),o=parseFloat(n.marginLeft),r=t.children[t.children.length-1],i=getComputedStyle(r);return o+parseFloat(i.marginRight)}function o(t,o,r){let i,l={},a=null;function s(t=!1){const e=i.details,n=function(t){var e;let n,o=!1,r=0,i=0,l=0,a=0,s=0,c=0;if(Math.floor(t.getInclusiveScrollWidth())>Math.floor(t.getInclusiveClientWidth())&&(o=!0),r=null!==(e=t.slides.length)&&void 0!==e?e:0,i=t.container.offsetWidth,l=t.container.offsetHeight,a=t.getInclusiveScrollWidth(),s=Math.ceil(a/i),Math.floor(t.getScrollLeft())>=0){c=Math.floor(t.getScrollLeft()/i);const e=a-i-2*t.getLeftOffset();t.getScrollLeft()>=e-1&&(c=s-1)}return n={hasOverflow:o,slideCount:r,containerWidth:i,containerHeight:l,scrollableAreaWidth:a,amountOfPages:s,currentPage:c},n}(i);i.details=n,t||function(t,e){const n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(e,o)||t[o]!==e[o])return!1;return!0}
1(e,n)?t&&i.emit("detailsChanged"):i.emit("detailsChanged")}function c(){i.slides=Array.from(i.container.querySelectorAll(i.options.slidesSelector))}function d(){i.options.cssVariableContainer.style.setProperty("--slider-container-height",`${i.details.containerHeight}px`),i.options.cssVariableContainer.style.setProperty("--slider-container-width",`${i.details.containerWidth}px`),i.options.cssVariableContainer.style.setProperty("--slider-scrollable-width",`${i.details.scrollableAreaWidth}px`),i.options.cssVariableContainer.style.setProperty("--slider-slides-count",`${i.details.slideCount}`),i.options.cssVariableContainer.style.setProperty("--slider-x-offset",`${p()}px`),"function"==typeof i.options.targetWidth&&i.options.cssVariableContainer.style.setProperty("--slider-container-target-width",`${i.options.targetWidth(i)}px`)}function u(){i.container.setAttribute("data-has-overflow",i.details.hasOverflow?"true":"false"),i.options.rtl&&i.container.setAttribute("dir","rtl")}function f(){const t=i.container.getBoundingClientRect(),e=i.getScrollLeft(),n=i.slides;let o=0,r=!1;if(i.options.rtl){const r=i.getInclusiveScrollWidth()-e-i.getInclusiveClientWidth(),l=[];for(let e=n.length-1;e>=0;e--){const o=n[e].getBoundingClientRect(),i=Math.abs(o.left)-Math.abs(t.left)+r;l.push({slide:n[e],slideEnd:i})}let a=null,s=null;for(let t=0;t<l.length;t++){const e=Math.abs(l[t].slideEnd-r);(null===s||e<s)&&(s=e,a=l[t].slide)}o=a?n.indexOf(a):n.length-1}else{const l=Math.max(0,i.getInclusiveScrollWidth()-i.container.offsetWidth);if(n.length>0&&Math.floor(e)>=Math.floor(l)-1)o=n.length-1,r=!1;else for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect().left-t.left+e+g();if(Math.floor(l)>=Math.floor(e)){o=i;break}i===n.length-1&&(r=!0)}}r&&(o=n.length-1);const l=i.activeSlideIdx;i.activeSlideIdx=o,l!==o&&i.emit("activeSlideChanged")}function h(t){const e=i.slides[t];e&&(a=t,function(t,e=null){const n=e||i.options.scrollBehavior,o=t.getBoundingClientRect(),r=i.container.getBoundingClientRect(),l=i.container.offsetWidth,a=i.container.scrollLeft,s=o.left-r.left+a,c=s+o.width,d=p();let u=null;u=Math.floor(s)<Math.floor(a)?Math.max(0,s-d):Math.floor(c)>Math.floor(a)+Math.floor(l)?c-l+d:0===Math.floor(s)?0:Math.max(0,s-d);const f=Math.max(0,i.getInclusiveScrollWidth()-l);i.slides.length>0&&t===i.slides[i.slides.length-1]?u=f:null!==u&&(u=Math.min(u,f)),null!==u&&setTimeout(t=>{i.emit("programmaticScrollStart"),i.container.scrollTo({left:t,behavior:n})},50,u)}(e))}function v(){return i.options.rtl?Math.abs(i.container.scrollLeft):i.container.scrollLeft}function g(){let t=0;if(i.slides.length>1){const e=i.slides[0].getBoundingClientRect(),n=i.slides[1].getBoundingClientRect();t=i.options.rtl?Math.abs(Math.floor(n.right-e.left)):Math.floor(n.left-e.right)}return t}function p(){let t=0;const e=i.container.getAttribute("data-full-width-offset");return e&&(t=parseInt(e)),Math.floor(t)}return i={emit:function(t){var e;l&&l[t]&&l[t].forEach(t=>{t(i)});const n=null===(e=null==i?void 0:i.options)||void 0===e?void 0:e[t];"function"==typeof n&&n(i)},moveToDirection:function(t="prev"){const e=i.options.scrollStrategy,n=i.container.scrollLeft,o=i.container.getBoundingClientRect(),r=i.container.offsetWidth;let l=n;const a=i.options.rtl?"prev"===t?"next":"prev":t;if("prev"===a?l=Math.max(0,n-i.container.offsetWidth):"next"===a&&(l=Math.min(i.getInclusiveScrollWidth(),n+i.container.offsetWidth)),"fullSlide"===e){let t=null;if(t="prev"===a?Math.max(0,l-g()):Math.min(i.getInclusiveScrollWidth(),l+g()),"next"===a){let e=!1;for(let r of i.slides){const i=r.getBoundingClientRect(),a=i.left-o.left+n,s=a+i.width;if(Math.floor(a)<Math.floor(l)&&Math.floor(s)>Math.floor(l)){t=a,e=!0;break}}if(e||(t=Math.min(l,i.getInclusiveScrollWidth()-i.container.offsetWidth)),t)if(Math.floor(t)>Math.floor(n)){const e=Math.floor(i.getInclusiveScrollWidth())-Math.floor(r);l=Math.min(t,e)}else l=Math.min(i.getInclusiveScrollWidth(),n+r)}else{let e=!1;for(let l of i.slides){const i=l.getBoundingClientRect(),a=i.left-o.left+n,s=a+i.width;if(Math.floor(a)<Math.floor(n)&&Math.floor(s)>Math.floor(n)){t=s-r,e=!0;break}}e||(t=Math.max(0,n-r)),t&&Math.floor(t)<Math.floor(n)&&(l=t)}}const s=l-p();Math.floor(s)>=0&&(l=s),i.emit("programmaticScrollStart"),i.container.style.scrollBehavior=i.options.scrollBehavior,i.container.scrollLeft=l,setTimeout(()=>i.container.style.scrollBehavior="",50)},canMoveToSlide:function(t){if(t<0||t>=i.slides.length)return!1;if(t===i.activeSlideIdx)return!1;const e=(i.options.rtl,t<i.activeSlideIdx?"backwards":"forwards"),n=i.container.getBoundingClientRect(),o=i.getScrollLeft(),r=i.details.containerWidth;return i.slides.some((t,l)=>{if(l===i.activeSlideIdx)return!1;const a=t.getBoundingClientRect(),s=a.left-n.left+o,c=s+a.width;return i.options.rtl?!(0!==o||!i.details.hasOverflow)||"forwards"===e&&l>i.activeSlideIdx&&Math.floor(s)<Math.floor(o)||"backwards"===e&&l<i.activeSlideIdx&&Math.floor(c)>Math.floor(o+r):"forwards"===e&&l>i.activeSlideIdx&&Math.floor(c)>Math.floor(o+r)||"backwards"===e&&l<i.activeSlideIdx&&Math.floor(s)<Math.floor(o)})},moveToSlide:h,moveToSlideInDirection:function(t){null===a&&f();const e=null!=a?a:i.activeSlideIdx;"prev"===t?e>0&&h(e-1):"next"===t&&e<i.slides.length-1&&h(e+1)},snapToClosestSlide:function(t="prev"){var e,n,o,r;const{slides:l,options:s,container:c}=i,{rtl:d,emulateScrollSnapMaxThreshold:u=10,scrollBehavior:f="smooth"}
1=s,h=d?"prev"===t:"next"===t,g=v(),m=c.getBoundingClientRect(),b=d?-1:1,S=p(),w=[...l].map((t,e)=>{const{width:n}=t.getBoundingClientRect(),o=t.getBoundingClientRect().left-m.left+g,r=o-S,i=Math.min(r+n/2,r+u);return{index:e,start:o-S,trigger:i}});let M=null,x=null;if(h){const t=w.find(t=>g<=t.trigger);M=null!==(e=null==t?void 0:t.start)&&void 0!==e?e:null,x=null!==(n=null==t?void 0:t.index)&&void 0!==n?n:null}else{const t=[...w].reverse().find(t=>g>=t.trigger);M=null!==(o=null==t?void 0:t.start)&&void 0!==o?o:null,x=null!==(r=null==t?void 0:t.index)&&void 0!==r?r:null}if(null==M)return;null!==x&&(a=x);let y=Math.max(0,Math.floor(M))*b;const C=Math.max(0,i.getInclusiveScrollWidth()-c.offsetWidth);y=d?Math.max(y,-C):Math.min(y,C),c.scrollTo({left:y,behavior:f})},getInclusiveScrollWidth:function(){return i.container.scrollWidth+n(i.container)},getInclusiveClientWidth:function(){return i.container.clientWidth+n(i.container)},getLeftOffset:p,getGapSize:g,getScrollLeft:v,setScrollLeft:function(t){i.container.scrollLeft=i.options.rtl?-t:t},setActiveSlideIdx:f,on:function(t,e){l[t]||(l[t]=[]),l[t].push(e)},options:o},function(){i.container=t;let n=t.getAttribute("id");null===n&&(n=e("overflow-slider"),t.setAttribute("id",n)),c(),i.slides.forEach(t=>{t.style.transition="none"}),s(!0),f(),i.on("contentsChanged",()=>{c(),s(),f()}),i.on("containerSizeChanged",()=>s());let o=0;if(i.on("scroll",()=>{o&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(()=>{s(),f()})}),i.on("nativeScrollStart",()=>{a=null}),function(){let t,e,n;new MutationObserver(()=>i.emit("contentsChanged")).observe(i.container,{childList:!0}),new ResizeObserver(()=>i.emit("containerSizeChanged")).observe(i.container);let o=i.container.scrollLeft,r=i.container.scrollLeft,l=i.container.scrollLeft,s=!1,c=!1,d=!1;i.container.addEventListener("scroll",()=>{const e=i.container.scrollLeft;Math.floor(o)!==Math.floor(e)&&(s||(s=!0,i.emit("scrollStart")),o=e,clearTimeout(t),t=setTimeout(()=>{s=!1,i.emit("scrollEnd")},50),i.emit("scroll")),c&&u()});const u=()=>{const t=i.container.scrollLeft;Math.floor(r)===Math.floor(t)||d||(c||(i.emit("nativeScrollStart"),c=!0),i.emit("nativeScroll"),r=t,clearTimeout(e),e=setTimeout(()=>{c=!1,i.emit("nativeScrollEnd"),l=r},50))};i.container.addEventListener("touchmove",u),i.container.addEventListener("mousewheel",u),i.container.addEventListener("wheel",u),i.on("programmaticScrollStart",()=>{d=!0}),i.container.addEventListener("scroll",()=>{const t=i.container.scrollLeft;Math.floor(l)!==Math.floor(t)&&!c&&d&&(l=t,clearTimeout(n),n=setTimeout(()=>{d=!1,i.emit("programmaticScrollEnd"),r=l},50),i.emit("programmaticScroll"))}),i.on("programmaticScrollStart",()=>{i.container.style.scrollSnapType="none"}),i.on("nativeScrollStart",()=>{i.container.style.scrollSnapType=""});let f=!1;i.container.addEventListener("mousedown",()=>{f=!0,a=null}),i.container.addEventListener("touchstart",()=>{f=!0,a=null},{passive:!0}),i.container.addEventListener("focusin",t=>{if(f)return void(f=!1);if(f=!1,!i.details.hasOverflow)return;const e=t.target;let n=e;for(;n.parentElement!==i.container;){if(!n.parentElement)return;n=n.parentElement}i.emit("programmaticScrollStart"),setTimeout(()=>{!function(t,e){const n=i.options.rtl,o=i.container.getBoundingClientRect(),r=i.container.offsetWidth,l=t.getBoundingClientRect(),a=i.container.scrollLeft,s=l.left-o.left,c=l.right-o.right;if(s>=-1&&c<=1)return i.container.style.scrollSnapType="",void i.emit("programmaticScrollEnd");let d;if(l.width<=r)d=n?a+c:a+s;else if(e!==t){const t=e.getBoundingClientRect(),r=t.left-o.left,l=t.right-o.right;if(r>=-1&&l<=1)return i.container.style.scrollSnapType="",void i.emit("programmaticScrollEnd");t.width,d=n?a+l:a+r}else d=n?a+c:a+s;i.emit("programmaticScrollStart"),i.container.scrollTo({left:d,behavior:"auto"})}(n,e),i.emit("focusScroll")},50)})}(),u(),d(),r){for(const t of r)t(i);s(),f(),d(),i.emit("pluginsLoaded")}i.on("detailsChanged",()=>{u(),d()}),i.emit("created"),i.slides.forEach(t=>{t.style.removeProperty("transition")}),i.container.setAttribute("data-ready","true")}(),i}function r(t){var e;const n=null!==(e=null==t?void 0:t.draggedDistanceThatPreventsClick)&&void 0!==e?e:20;return t=>{let e=!1,o=0,r=0,i=!1,l=!1,a=!1;if(t.container.setAttribute("data-has-drag-scrolling","true"),window.addEventListener("mousedown",n=>{l=!1,t.details.hasOverflow&&t.container.contains(n.target)&&(e=!0,o=n.pageX-t.container.getBoundingClientRect().left,r=t.container.scrollLeft,t.container.style.cursor="grabbing",t.container.style.scrollBehavior="auto",n.preventDefault(),n.stopPropagation())}),window.addEventListener("mousemove",s=>{if(!t.details.hasOverflow)return void(l=!1);if(!e)return void(l=!1);s.preventDefault(),l||(l=!0,t.emit("programmaticScrollStart"));const c=s.pageX-t.container.getBoundingClientRect().left-o,d=r-c;a=!0,Math.floor(t.container.scrollLeft)!==Math.floor(d)&&(i=t.container.scrollLeft<d),t.container.scrollLeft=d;const u=Math.abs(c),f=t.container.querySelectorAll(t.options.slidesSelector),h=u>n?"none":"";f.forEach(t=>{t.style.pointerEvents=h})}),window.addEventListener("mouseup",()=>{t.details.hasOverflow?(e=!1,t.container.style.cursor="",setTimeout(()=>{l=!1,t.container.style.scrollBehavior="",t.container.querySelectorAll(t.options.slidesSelector).forEach(t=>{t.style.pointerEvents=""})},50)):l=!1}),t.options.emulateScrollSnap){const n=()=>{a&&!e&&(a=!1,t.snapToClosestSlide(i?"next":"prev"))};t.on("programmaticScrollEnd",n),window.addEventListener("mouseup",n)}}}const i={scrollIndicator:"overflow-slider__scroll-indicator",scrollIndicatorBar:"overflow-slider__scroll-indicator-bar",scrollIndicatorButton:"overflow-slider__scroll-indicator-button"},l=t=>{var e,n;return null!==(n=null===(e=t.container.parentElement)||void 0===e?void 0:e.offsetWidth)&&void 0!==n?n:window.innerWidth};const a={buttonPrevious:"Previous items",buttonNext:"Next items"},s={prev:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1<path d="M8.6 3.4l-7.6 7.6 7.6 7.6 1.4-1.4-5-5h12.6v-2h-12.6l5-5z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 3.4l-1.4 1.4 5 5h-12.6v2h12.6l-5 5 1.4 1.4 7.6-7.6z"/></svg>'},c={navContainer:"overflow-slider__arrows",prevButton:"overflow-slider__arrows-button overflow-slider__arrows-button--prev",nextButton:"overflow-slider__arrows-button overflow-slider__arrows-button--next"};function d(t){return e=>{var n,o,r,i,l,d,u;const f={texts:Object.assign(Object.assign({},a),(null==t?void 0:t.texts)||[]),icons:Object.assign(Object.assign({},s),(null==t?void 0:t.icons)||[]),classNames:Object.assign(Object.assign({},c),(null==t?void 0:t.classNames)||[]),container:null!==(n=null==t?void 0:t.container)&&void 0!==n?n:null,containerPrev:null!==(o=null==t?void 0:t.containerPrev)&&void 0!==o?o:null,containerNext:null!==(r=null==t?void 0:t.containerNext)&&void 0!==r?r:null,movementType:null!==(i=null==t?void 0:t.movementType)&&void 0!==i?i:"view"},h=document.createElement("div");h.classList.add(f.classNames.navContainer);const v=document.createElement("button");v.setAttribute("class",f.classNames.prevButton),v.setAttribute("type","button"),v.setAttribute("aria-label",f.texts.buttonPrevious),v.setAttribute("aria-controls",null!==(l=e.container.getAttribute("id"))&&void 0!==l?l:""),v.setAttribute("data-type","prev"),v.innerHTML=e.options.rtl?f.icons.next:f.icons.prev,v.addEventListener("click",()=>{"true"===v.getAttribute("data-has-content")&&("slide"===f.movementType?e.moveToSlideInDirection("prev"):e.moveToDirection("prev"))});const g=document.createElement("button");g.setAttribute("class",f.classNames.nextButton),g.setAttribute("type","button"),g.setAttribute("aria-label",f.texts.buttonNext),g.setAttribute("aria-controls",null!==(d=e.container.getAttribute("id"))&&void 0!==d?d:""),g.setAttribute("data-type","next"),g.innerHTML=e.options.rtl?f.icons.prev:f.icons.next,g.addEventListener("click",()=>{"true"===g.getAttribute("data-has-content")&&("slide"===f.movementType?e.moveToSlideInDirection("next"):e.moveToDirection("next"))}),h.appendChild(v),h.appendChild(g);const p=()=>{const t=e.getScrollLeft(),n=e.getInclusiveScrollWidth(),o=e.getInclusiveClientWidth();0===Math.floor(t)?v.setAttribute("data-has-content","false"):v.setAttribute("data-has-content","true"),Math.abs(Math.floor(t+o)-Math.floor(n))<=1?g.setAttribute("data-has-content","false"):g.setAttribute("data-has-content","true")};
1f.containerNext&&f.containerPrev?(f.containerPrev.appendChild(v),f.containerNext.appendChild(g)):f.container?f.container.appendChild(h):null===(u=e.container.parentNode)||void 0===u||u.insertBefore(h,e.container.nextSibling),p(),e.on("scrollEnd",p),e.on("contentsChanged",p),e.on("containerSizeChanged",p)}}!function(){const e={DOMContentLoaded:document,GrowthstackReplacementDone:document};Object.entries(e).forEach(([t,e])=>{e.addEventListener(t,()=>{n()})});const n=()=>{document.querySelectorAll(".em-block-latest-articles-slider").forEach(e=>{if("true"===e.dataset.init)return;e.dataset.init="true";const n=!("true"!==e.getAttribute("data-is-full-width")),s=e.querySelector(".em-block-latest-articles-slider__slider");if(!s)return;s.querySelectorAll(":scope > *").forEach(t=>a(t,"em-block-latest-articles-slider__slide"));const c=document.createElement("div");c.classList.add("em-block-latest-articles-slider__prev-arrow"),e.insertBefore(c,s);const u=document.createElement("div");u.classList.add("em-block-latest-articles-slider__next-arrow"),e.insertBefore(u,s);const f=document.createElement("div");f.classList.add("em-block-latest-articles-slider__controls"),e.appendChild(f);const h=[r(),(v={container:f,classNames:{scrollIndicator:"em-block-latest-articles-slider__scroll-indicator overflow-slider__scroll-indicator"}},t=>{var e,n,o;const r={classNames:Object.assign(Object.assign({},i),(null==v?void 0:v.classNames)||[]),container:null!==(e=null==v?void 0:v.container)&&void 0!==e?e:null},l=document.createElement("div");l.setAttribute("class",r.classNames.scrollIndicator),l.setAttribute("tabindex","0"),l.setAttribute("role","scrollbar"),l.setAttribute("aria-controls",null!==(n=t.container.getAttribute("id"))&&void 0!==n?n:""),l.setAttribute("aria-orientation","horizontal"),l.setAttribute("aria-valuemax","100"),l.setAttribute("aria-valuemin","0"),l.setAttribute("aria-valuenow","0");const a=document.createElement("div");a.setAttribute("class",r.classNames.scrollIndicatorBar);const s=document.createElement("div");s.setAttribute("class",r.classNames.scrollIndicatorButton),s.setAttribute("data-is-grabbed","false"),a.appendChild(s),l.appendChild(a);const c=()=>{l.setAttribute("data-has-overflow",t.details.hasOverflow.toString())};c();const d=()=>{const e=s.offsetWidth/t.details.containerWidth,n=t.getScrollLeft()*e;return t.options.rtl?a.offsetWidth-s.offsetWidth-n:n};let u=0;const f=()=>{u&&window.cancelAnimationFrame(u),u=window.requestAnimationFrame(()=>{const e=t.details.containerWidth/t.container.scrollWidth*100,n=d();s.style.width=`${e}%`,s.style.transform=`translateX(${n}px)`;const o=t.getScrollLeft()/(t.getInclusiveScrollWidth()-t.container.offsetWidth)*100;l.setAttribute("aria-valuenow",Math.round(Number.isNaN(o)?0:o).toString())})};r.container?r.container.appendChild(l):null===(o=t.container.parentNode)||void 0===o||o.insertBefore(l,t.container.nextSibling),f(),t.on("scroll",f),t.on("contentsChanged",f),t.on("containerSizeChanged",f),t.on("detailsChanged",c),l.addEventListener("keydown",e=>{"ArrowLeft"===e.key?t.moveToDirection("prev"):"ArrowRight"===e.key&&t.moveToDirection("next")});let h=!1,g=0,p=t.getScrollLeft();l.addEventListener("click",e=>{if(e.target==s)return;const n=s.offsetWidth,o=d(),r=o+n,i=e.pageX-l.getBoundingClientRect().left;Math.floor(i)<Math.floor(o)?t.moveToDirection(t.options.rtl?"next":"prev"):Math.floor(i)>Math.floor(r)&&t.moveToDirection(t.options.rtl?"prev":"next")});const m=e=>{h=!0;const n=e.pageX||e.touches[0].pageX;g=n-l.offsetLeft,p=t.getScrollLeft(),s.style.cursor="grabbing",s.setAttribute("data-is-grabbed","true"),e.preventDefault(),e.stopPropagation()},b=e=>{if(!h)return;e.preventDefault();const n=(e.pageX||e.touches[0].pageX)-l.offsetLeft,o=t.details.scrollableAreaWidth/l.offsetWidth,r=(n-g)*o,i=t.options.rtl?p-r:p+r;t.setScrollLeft(i)},S=()=>{h=!1,s.style.cursor="",s.setAttribute("data-is-grabbed","false")};s.addEventListener("mousedown",m),s.addEventListener("touchstart",m),window.addEventListener("mousemove",b),window.addEventListener("touchmove",b,{passive:!1}),window.addEventListener("mouseup",S),window.addEventListener("touchend",S)}),d({texts:{buttonPrevious:(0,t.__)("Previous","em-blocks"),buttonNext:(0,t.__)("Next","em-blocks")},containerPrev:c,containerNext:u,icons:{prev:'<svg fill="none" viewBox="0 0 32 32">
1<path fill="currentColor" fill-rule="evenodd" d="M9.6 14.94h14.93v2.13H9.6v-2.13Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m16.44 10.67-5.33 5.34 5.33 5.33-1.5 1.5-6.85-6.83 6.84-6.85 1.51 1.51Z" clip-rule="evenodd"/></svg>',next:'<svg fill="none" viewBox="0 0 32 32"><path fill="currentColor" fill-rule="evenodd" d="M22.4 14.94H7.467v2.133H22.4v-2.134Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m15.558 10.672 5.333 5.334-5.333 5.333 1.509 1.509 6.841-6.842-6.841-6.842-1.509 1.508Z" clip-rule="evenodd"/></svg>'},classNames:{navContainer:"em-block-latest-articles-slider__arrows"}})];var v;n&&h.push(function(t){return e=>{var n,o,r,i;const a={targetWidth:null!==(n=null==t?void 0:t.targetWidth)&&void 0!==n?n:void 0,addMarginBefore:null===(o=null==t?void 0:t.addMarginBefore)||void 0===o||o,addMarginAfter:null===(r=null==t?void 0:t.addMarginAfter)||void 0===r||r};"function"!=typeof e.options.targetWidth&&(e.options.targetWidth=null!==(i=a.targetWidth)&&void 0!==i?i:l);const s=()=>{const t=e.container.querySelectorAll(e.options.slidesSelector);if(!t.length)return;const n=(()=>{var t;return"function"==typeof e.options.targetWidth?e.options.targetWidth:null!==(t=a.targetWidth)&&void 0!==t?t:l})(),o=(window.innerWidth-n(e))/2,r=Math.max(0,Math.floor(o)),i=r?`${r}px`:"";t.forEach(t=>{const e=t;e.style.marginInlineStart="",e.style.marginInlineEnd=""});const s=t[0],d=t[t.length-1];a.addMarginBefore?(s.style.marginInlineStart=i,e.container.style.setProperty("scroll-padding-inline-start",i||"0px")):e.container.style.removeProperty("scroll-padding-inline-start"),a.addMarginAfter?(d.style.marginInlineEnd=i,e.container.style.setProperty("scroll-padding-inline-end",i||"0px")):e.container.style.removeProperty("scroll-padding-inline-end"),e.container.setAttribute("data-full-width-offset",`${r}`),c(n),e.emit("fullWidthPluginUpdate")},c=t=>{const n=t(e);e.options.cssVariableContainer.style.setProperty("--slider-container-target-width",`${n}px`)};s(),e.on("contentsChanged",s),e.on("containerSizeChanged",s),window.addEventListener("resize",s)}}()),function(t,e,n){try{if(!(t instanceof Element))throw new Error("Container must be HTML element, found "+typeof t);const r={cssVariableContainer:t,scrollBehavior:"smooth",scrollStrategy:"fullSlide",slidesSelector:":scope > *",emulateScrollSnap:!1,emulateScrollSnapMaxThreshold:64,rtl:!1},i=Object.assign(Object.assign({},r),e);return window.matchMedia("(prefers-reduced-motion: reduce)").matches&&(i.scrollBehavior="auto"),o(t,i,n)}catch(t){console.error(t)}}(s,{emulateScrollSnap:!0,slidesSelector:".em-block-latest-articles-slider__slide",cssVariableContainer:e,targetWidth:()=>e.offsetWidth},h)})},a=(t,e="wrapper")=>{const n=document.createElement("div");n.classList.add(e),t.parentNode&&t.parentNode.insertBefore(n,t),n.appendChild(t)}}()})();
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.