(()=>{"use strict";var e,t={330(){const e=(e,t)=>{const n=(e=>Math.max(0,Math.min(100,e)))(Number.parseFloat(String(t))),o=Number.isFinite(n)?n:50,r=e.querySelector(".calio-comparison-range");e.style.setProperty("--calio-comparison-position",`${o}%`),r&&String(r.value)!==String(o)&&(r.value=String(o))},t=(t,n)=>{const o=t.getBoundingClientRect();if(!o.width)return;const r=n.touches?.[0]?.clientX??n.clientX;if("number"!=typeof r)return;const i="rtl"===window.getComputedStyle(t).direction,a=(r-o.left)/o.width*100;e(t,i?100-a:a)},n=(n=document)=>{(n instanceof Element||n instanceof Document?n:document).querySelectorAll("[data-calio-image-comparison]").forEach(n=>{if("1"===n.dataset.calioComparisonReady)return;n.dataset.calioComparisonReady="1";const o=n.querySelector(".calio-comparison-range");e(n,o?.value||n.dataset.start||50),o?.addEventListener("input",()=>{e(n,o.value)});let r=!1;const i=()=>{r=!1,n.classList.remove("is-dragging")};n.addEventListener("pointerdown",e=>{0===e.button&&(r=!0,n.classList.add("is-dragging"),n.setPointerCapture?.(e.pointerId),t(n,e))}),n.addEventListener("pointermove",e=>{r&&t(n,e)}),n.addEventListener("pointerup",i),n.addEventListener("pointercancel",i),n.addEventListener("lostpointercapture",i)})},o=(e=document)=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>n(e),{once:!0}):n(e)};o(document);let r=!1;const i=()=>!(r||!window.elementorFrontend?.hooks||(window.elementorFrontend.hooks.addAction("frontend/element_ready/calio-image-comparison-slider.default",e=>{o(e?.[0]||document)}),r=!0,0));if(window.addEventListener("elementor/frontend/init",i),!i()){let e=0;const t=window.setInterval(()=>{e+=1,(i()||e>=40)&&window.clearInterval(t)},250)}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(l=0;l<e.length;l++){for(var[n,r,i]=e[l],d=!0,s=0;s<n.length;s++)(!1&i||a>=i)&&Object.keys(o.O).every(e=>o.O[e](n[s]))?n.splice(s--,1):(d=!1,i<a&&(a=i));if(d){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={517:0,9625:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,d,s]=n,c=0;if(a.some(t=>0!==e[t])){for(r in d)o.o(d,r)&&(o.m[r]=d[r]);if(s)var l=s(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(l)},n=globalThis.webpackChunkcalio_addon=globalThis.webpackChunkcalio_addon||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[9625],()=>o(330));r=o.O(r)})();