(()=>{function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".eb-timeline-wrapper");function n(e){if(!e)return"#3b82f6";if(e.startsWith("var(")){var r,o=null===(r=e.match(/var\(([^)]+)\)/))||void 0===r?void 0:r[1];if(o){var i=getComputedStyle(document.documentElement).getPropertyValue(o).trim();if(i)return n(i)}return"#3b82f6"}if(e.includes("gradient")){var a,c=[],s=function(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var t=r.next();return c=t.done,t},e:function(t){s=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(s)throw a}}}}(e.matchAll(/(rgba?\([^)]+\)|#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3})\s*(\d+)%/g));try{for(s.s();!(a=s.n()).done;){var l=a.value;c.push({color:l[1],offset:parseInt(l[2])/100})}}catch(t){s.e(t)}finally{s.f()}if(c.length>0)return{isGradient:!0,stops:c};var u=e.match(/rgba?\([^)]+\)/);if(u)return u[0];var f=e.match(/#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{3}/);return f?f[0]:"#3b82f6"}return e}0!==e.length&&(e.forEach(function(t){!function(t){var e=t.querySelector(".eb-timeline-progress-fill"),n=t.querySelectorAll(".eb-timeline-item");e&&0!==n.length&&function(t,e,n){var r=!1;function o(){var o=t.getBoundingClientRect(),i=window.innerHeight,a=o.top,c=o.height,s=20;if(a<=.8*i){var l=Math.max(0,.8*i-a),u=c+.2*i;(s=Math.min(100,l/u*100))<5&&a<i&&(s=5)}e.style.height="".concat(s,"%"),e.style.width="100%",function(t){var e=window.innerHeight;t.forEach(function(t){var n=t.getBoundingClientRect(),r=n.top+n.height/4,o=e/2,i=r<=o+100&&r>=o-100,a=r<o;t.classList.toggle("completed",a),t.classList.toggle("active",i&&!a);var c=t.querySelector(".eb-timeline-dot");c&&(a||i?c.classList.add("completed"):c.classList.remove("completed"))})}(n),r=!1}function i(){r||(requestAnimationFrame(o),r=!0)}o(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0})}(t,e,n)}(t),t.classList.contains("eb-timeline-line-style-one")&&function(t){var e=t.querySelectorAll(".eb-timeline-item");if(0!==e.length){var r=function(t,e,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a="http://www.w3.org/2000/svg",c=n(r),s=n(o),l=t.offsetHeight,u=0,f="M 0.5 0.5",d=[];e.forEach(function(t){var e=parseInt(getComputedStyle(t).marginBottom),n=t.offsetHeight;d.push({height:n,spacing:e,totalSpace:n+e})}),e.forEach(function(t,n){var r=d[n],o=n===e.length-1,i=118.897;if(f+=" C 0.5 ".concat(u+2.221," 1.11623 ").concat(u+4.398," 2.2801 ").concat(u+6.29),f+=" L 14.7199 ".concat(u+26.504),f+=" C 15.8838 ".concat(u+28.396," 16.5 ").concat(u+30.573," 16.5 ").concat(u+32.794),f+=" V ".concat(u+74.001),f+=" C 16.5 ".concat(u+76.221," 15.8838 ").concat(u+78.398," 14.7199 ").concat(u+80.29),f+=" L 2.2801 ".concat(u+100.504),f+=" C 1.11623 ".concat(u+102.396," 0.5 ").concat(u+104.573," 0.5 ").concat(u+106.793),u+=i,!o){var a=r.totalSpace-i;a>0&&(f+=" V ".concat(u+a),u+=a)}}),u+=120,f+="V ".concat(l);var h=document.createElementNS(a,"svg");h.setAttribute("viewBox","0 0 ".concat(17," ").concat(l)),h.setAttribute("width",17),h.setAttribute("height",l),h.setAttribute("class","eb-timeline-svg-zigzag"),h.setAttribute("aria-hidden","true");var m,v=document.createElementNS(a,"defs"),p=document.createElementNS(a,"linearGradient");p.setAttribute("id","eb-timeline-gradient-".concat(t.dataset.id||"default")),p.setAttribute("gradientUnits","userSpaceOnUse"),p.setAttribute("x1","0"),p.setAttribute("x2","0"),p.setAttribute("y1","0"),p.setAttribute("y2",l),s.isGradient?(m=s.stops.map(function(t){return{offset:t.offset.toString(),color:t.color,opacity:"1"}})).length>0&&(m.unshift({offset:"0",color:m[0].color,opacity:"0"}),m.push({offset:"1",color:m[m.length-1].color,opacity:"0"})):m=[{offset:"0",color:s,opacity:"1"}],m.forEach(function(t){var e=document.createElementNS(a,"stop");e.setAttribute("offset",t.offset),e.setAttribute("stop-color",t.color),e.setAttribute("stop-opacity",t.opacity),p.appendChild(e)});var g=i+.25;v.appendChild(p),h.appendChild(v);var b=document.createElementNS(a,"path");b.setAttribute("d",f),b.setAttribute("fill","none"),b.setAttribute("stroke",c),b.setAttribute("stroke-linecap","round"),b.setAttribute("stroke-width",i),h.appendChild(b);var y=document.createElementNS(a,"path");y.setAttribute("d",f),y.setAttribute("fill","none"),y.setAttribute("stroke","url(#eb-timeline-gradient-".concat(t.dataset.id||"default",")")),y.setAttribute("stroke-width",g),y.setAttribute("stroke-linecap","round"),y.setAttribute("class","eb-timeline-animated-path");var A=y.getTotalLength();return y.style.strokeDasharray=A,y.style.strokeDashoffset=A,y.style.transition="stroke-dashoffset 0.3s ease-in-out",h.appendChild(y),h}(t,e,t.dataset.connectorColor||"#DCDCDC",t.dataset.progressColor||"#3b82f6",parseFloat(t.dataset.connectorWidth)||1),o=e[0];o.parentNode.insertBefore(r,o),function(t,e){var n=e.querySelector(".eb-timeline-animated-path");if(n){var r=n.getTotalLength(),o=!1;i(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a,{passive:!0})}function i(){var e=t.getBoundingClientRect(),i=window.innerHeight,a=e.top,c=e.height,s=0;if(a<=.8*i){var l=Math.max(0,.8*i-a),u=c+.2*i;(s=Math.min(100,l/u*100))<5&&a<i&&(s=5)}var f=r-r*s/100;n.style.strokeDashoffset=f,o=!1}function a(){o||(requestAnimationFrame(i),o=!0)}}(t,r)}}(t)}),e.forEach(function(t){!function(t){t.querySelectorAll(".eb-timeline-item").forEach(function(t){var e=t.querySelector(".eb-timeline-dot");e&&(e.style.cursor="pointer",e.addEventListener("click",function(){t.scrollIntoView({behavior:"smooth",block:"center"})}))})}(t)}))})})();