1(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=t=>null==t||!(Object.keys(t)||t).length,n=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,i=(t,e=1)=>{const n=[['"',"'"],["':","!"],[",'","~"],["}",")","\\","\\"],["{","(","\\","\\"]],i=(t,e)=>{let n=new RegExp(`${(e[2]?e[2]:"")+e[0]}|${(e[3]?e[3]:"")+e[1]}`,"g");return t.replace(n,(t=>t===e[0]?e[1]:e[0]))};if(e)for(let e=0;e<n.length;++e)t=i(t,n[e]);else for(let e=n.length;e--;)t=i(t,n[e]);return t},o=t=>{try{return JSON.parse(t),t}catch(t){}return/[!~$].*[!~$].*[!~$]/.test(t)?(t=>{const e=(t=t.substring(0,t.length-1)).split("�");let n=e[0];if(e.length>1){let t=e[1];for(let e of t){let t=n.split(e);n=t.join(t.pop())}}return i(n,0)})(t):t},r=(t,e)=>{document.addEventListener(t,(t=>{const n=t.detail?.container;n instanceof HTMLElement&&e(n)}))};function s(t,e){return t.reduce(((t,n)=>{const i=e(n);return t[i]||(t[i]=[]),t[i].push(n),t}),{})}const a=window.gsap;var l=t.n(a);const c=window.CustomEase;var d=t.n(c);const h=window.ScrollTrigger;var u=t.n(h);const m={supportsTextColor:!1,supportsBackgroundColor:!1,resolveTextTargets:()=>
1[],resolveBackgroundTargets:()=>[]},f=t=>{if(!t)return m;switch(t){case"nectar-blocks/text":return{supportsTextColor:!0,supportsBackgroundColor:!0,resolveTextTargets:t=>[t],resolveBackgroundTargets:t=>[t]};case"nectar-blocks/button":return{supportsTextColor:!0,supportsBackgroundColor:!0,resolveTextTargets:t=>Array.from(t.querySelectorAll("a")),resolveBackgroundTargets:t=>Array.from(t.querySelectorAll("a"))};case"nectar-blocks/icon":{const t=t=>{const e=Array.from(t.querySelectorAll(".nectar-blocks-icon__inner"));return e.length>0?e:[t]};return{supportsTextColor:!0,supportsBackgroundColor:!0,resolveTextTargets:t,resolveBackgroundTargets:t}}case"nectar-blocks/flex-box":case"nectar-blocks/row":case"nectar-blocks/column":return{supportsTextColor:!0,supportsBackgroundColor:!0,resolveTextTargets:t=>{const e=t.querySelector(':scope > [class*="__wrapper"]'),n=e?e.querySelector(':scope > [class*="__inner"]'):t.querySelector(':scope > [class*="__inner"]'),i=[e,n].filter(Boolean);return i.length>0?i:[t]},resolveBackgroundTargets:t=>{const e=t.querySelector(':scope > [class*="__wrapper"] > .nectar__bg-layers > .nectar__bg-color');if(e)return[e];const n=t.querySelector(':scope > [class*="__wrapper"]');return n?[n]:[t]}};case"nectar-blocks/scrolling-marquee":case"nectar-blocks/world-time":return{supportsTextColor:!0,supportsBackgroundColor:!1,resolveTextTargets:t=>
1[t],resolveBackgroundTargets:()=>[]};default:return m}},g={value:15,unit:"%"},p={value:0,unit:"%"},v={value:0,unit:"px"},y={value:0,unit:"px"},w=(new Set(["blur","contrast","grayscale","brightness","hueRotate","invert","saturation","sepia","dropShadow"]),{translate:{x:{unit:"px",value:0},y:{unit:"px",value:0},z:{unit:"px",value:0},type:"translate"},scale:{x:1,y:1,locked:!0,type:"scale"},rotate:{degrees:0,xDegrees:0,yDegrees:0,type:"rotate"},skew:{xDegrees:0,yDegrees:0,type:"skew"},perspective:{perspective:{unit:"px",value:1200},type:"perspective"},width:{type:"width",value:{value:null,unit:"%"}},height:{type:"height",value:{value:null,unit:"%"}},opacity:{type:"opacity",value:1},boxShadow:{type:"boxShadow",xAxis:{unit:"px",value:0},yAxis:{unit:"px",value:0},blur:{unit:"px",value:0},spread:{unit:"px",value:0},color:{value:"#000000",globalColorData:null}},color:{type:"color",color:{value:"",globalColorData:null}},backgroundColor:{type:"backgroundColor",color:{value:"",globalColorData:null}},blur:{type:"blur",value:{unit:"px",value:0}},contrast:{type:"contrast",value:1},grayscale:{type:"grayscale",value:0},brightness:{type:"brightness",value:1},hueRotate:{type:"hueRotate",value:0},invert:{type:"invert",value:0},saturation:{type:"saturation",value:1},sepia:{type:"sepia",value:0},dropShadow:{type:"dropShadow",value:{offsetX:{unit:"px",value:0},offsetY:{unit:"px",value:0},blurRadius:{unit:"px",value:0},color:{value:"",globalColorData:null}}},inset:{type:"inset",inset:{top:{value:0,unit:"px"},right:{value:0,unit:"px"},bottom:{value:0,unit:"px"},left:{value:0,unit:"px"},locked:!0},roundness:{value:0,unit:"px"}},circle:{type:"circle",position:"center center",percent:50}});window.wp.htmlEntities;const b=(t,e="",n=!1)=>"fill"===t?.unit||null===t?.value?e:"em"===t?.unit&&n?`${t.value}`:void 0!==t?.value?`${t.value}${t.unit}`:e,k=t=>t.globalColorData?.slug?`var(--${t.globalColorData?.slug})`:t.value,E=t=>t.includes("var(--")?getComputedStyle(document.documentElement).getPropertyValue(t.replace("var(","").replace(")","")):t,T=(t,e,n)=>Number.isFinite(t)?Math.min(n,Math.max(e,t)):e,x=t=>Array.isArray(t),A=t=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&"type"in t&&"spring"===t.type,S={gentle:{tension:120,friction:10,mass:1,settleMultiplier:3},wobbly:{tension:150,friction:8,mass:1.1,settleMultiplier:1},stiff:{tension:200,friction:16,mass:1,settleMultiplier:1}},P=t=>{const{tension:e,friction:n,mass:i,settleMultiplier:o}=(t=>{const e=t.preset?S[t.preset]:S.gentle;return n={tension:t.config?.tension??e.tension,friction:t.config?.friction??e.friction,mass:t.config?.mass??e.mass,settleMultiplier:t.config?.settleMultiplier??e.settleMultiplier},{tension:T(n.tension,100,400),friction:T(n.friction,4,20),mass:T(n.mass,.1,5),settleMultiplier:T(n.settleMultiplier,1,10)};var n})(t),r=1/240;let s=0,a=0,l=0,c=!1;const d=[0],h=[0];for(;l<2.2;
1)!c&&a<0&&(c=!0),a+=(-e/i*(s-1)-(c?n*o:n)/i*a)*r,s+=a*r,l+=r,d.push(l),h.push(s);const u=d[d.length-1]||1,m=new Array(220);let f=0;for(let t=0;t<220;t++){const e=t/219*u;for(;f<d.length-2&&d[f+1]<e;)f++;const n=d[f],i=d[f+1],o=h[f],r=h[f+1],s=i===n?0:(e-n)/(i-n);m[t]=o+(r-o)*s}const g=m[m.length-1]??1,p=0===g?1:1/g;return t=>{const e=Math.max(0,Math.min(1,t)),n=219*(1-Math.pow(1-e,.85)),i=Math.floor(n),o=Math.min(219,i+1),r=n-i;return(m[i]+(m[o]-m[i])*r)*p}};l().registerPlugin(d());const C=new Set(["translate","scale","rotate","skew","perspective"]),L=t=>{const e=t.transform;if("string"!=typeof e)return{vars:t};const n=e.match(/translate\(\s*([^,()]+)\s*,\s*([^,()]+)\s*\)/);if(!n)return{vars:t};const i=n[1].trim(),o=n[2].trim(),r=/^(-?\d+(?:\.\d+)?)%$/,s=i.match(r),a=o.match(r);if(!s&&!a)return{vars:t};const l=s?"0px":i,c=a?"0px":o,d=e.replace(n[0],`translate(${l}, ${c})`);return{vars:{...t,transform:d},xPercent:s?parseFloat(s[1]):void 0,yPercent:a?parseFloat(a[1]):void 0}},I=t=>{const e=t.transform;if("string"!=typeof e)return{vars:t};let n=e;const i={vars:t},o=n.match(/(?<![xyXYZ])rotate\(\s*(-?\d+(?:\.\d+)?)deg\s*\)/);o&&(i.rotation=parseFloat(o[1]),n=n.replace(o[0],""));const r=n.match(/rotateX\(\s*(-?\d+(?:\.\d+)?)deg\s*\)/);r&&(i.rotationX=parseFloat(r[1]),n=n.replace(r[0],""));const s=n.match(/rotateY\(\s*(-?\d+(?:\.\d+)?)deg\s*\)/);if(s&&(i.rotationY=parseFloat(s[1]),n=n.replace(s[0],"")),void 0===i.rotation&&void 0===i.rotationX&&void 0===i.rotationY)return{vars:t};n=n.replace(/\s+/g," ").trim();const a={...t};return n?a.transform=n:delete a.transform,i.vars=a,i},B=t=>!(void 0!==t.offset&&0!==t.offset||void 0!==t.duration&&100!==t.duration),D=t=>`${t.offset??0}-${t.duration??100}`,$=t=>{const e={};if("translate"===t.type){const n=t;e.x=b(n.x,"0px"),e.y=b(n.y,"0px"),n.z&&0!==n.z.value&&(e.z=b(n.z,"0px"))}else if("scale"===t.type){const n=t;e.scaleX=n.x,e.scaleY=n.y}else if("rotate"===t.type){const n=t;e.rotation=n.degrees,n.xDegrees&&0!==n.xDegrees&&(e.rotateX=n.xDegrees),n.yDegrees&&0!==n.yDegrees&&(e.rotateY=n.yDegrees)}else if("skew"===t.type){const n=t;e.skewX=n.xDegrees,e.skewY=n.yDegrees}else if("perspective"===t.type){const n=t;e.transformPerspective=b(n.perspective,"0px")}return e},F=t=>"mobile"===t?["desktop","tablet","mobile"]:"tablet"===t?["desktop","tablet"]:["desktop"],O=(t,e)=>{const n=F(t),i=[];return n.forEach((t=>{(t=>{if(!t||Array.isArray(t))return[];const e=t.timeline;return Array.isArray(e)?e:[]})(e[t]).forEach(((t,e)=>{i[e]=t}))})),{timeline:i.filter((t=>Boolean(t)))}};l().registerPlugin(u(),d());const M=t=>"color"===t.type,_=t=>"backgroundColor"===t.type,H={center:"50%",top:"0%",bottom:"100%",left:"0%",right:"100%"},z=t=>{const e="wp-block-nectar-blocks-",n=Array.from(t.classList).find((t=>t.startsWith(e)));return n?`nectar-blocks/${n.replace(e,"")}`:null},j={starts_entering:"clamp(top bottom)",fully_visible:"clamp(bottom bottom)",starts_exiting:"top top",top_of_screen:"top top",fully_invisible:"bottom top",start_center:"center center",center:"top center"};function V(t,e=!1){if(t.scrollDistance?.value){const e=t.scrollDistance.value,n=t.scrollDistance.unit||"px";return e<0?`-${Math.abs(e)}${n}`:`${e}${n}`}let n=`${t.element} ${t.viewport}`;if(t.offset?.value){const e=t.offset.value>=0?"+=":"-=",i=t.offset.unit||"px";n+=`${e}${Math.abs(t.offset.value)}${i}`}return e?`clamp(${n})`:n}class q{TriggerType="scrollIntoView";selectorMode="single";mode="frontend";interactionTriggerEl=null;interactionTweens=[];interactionControllerTweens=[];interactionOwnedNoTransition=new Set;interactionInlineTargets=new Set;interactionNoTransitionDelayedCall=null;interactionHandlers={};constructor(t,n){if(this.element=t,n?(this.settings=n,this.mode="editor"):this.element.dataset.nectarBlockAnimation?this.settings=JSON.parse(o(this.element.dataset.nectarBlockAnimation)):this.settings=null,this.scrollPositionElement=this.element,this.intoViewElement=this.element,this.selectorMode=this.settings?.selectorMode??"single",this.settings)if("self"===this.settings.selector)"editor"===this.mode?(this.scrollPositionElement=this.element.querySelector(":scope > .nectar-block"),this.intoViewElement=this.scrollPositionElement):(this.scrollPositionElement.querySelector(":scope > div")&&!e(this.settings.scrollPosition)&&(this.intoViewElement=this.scrollPositionElement.querySelector(":scope > div")),this.scrollPositionElement=this.element);else{const n=this.element.classList.contains("nectar-block")?this.element:this.element.querySelector(":scope > .nectar-block"),i=t=>
1!!t&&(!n||(t===n||(t.parentElement?.closest(".nectar-block")??null)===n)),o=Array.from(t.querySelectorAll(this.settings.selector)).filter(i);if(e(this.settings.scrollPosition)||e(this.settings.scrollIntoView)){const t=this.settings.selector.replace(/\./g,"");this.element.classList.contains(t)||0===o.length?(this.intoViewElement=this.element,this.scrollPositionElement=this.element):"single"===this.selectorMode?(this.scrollPositionElement=o[0],this.intoViewElement=o[0]):(this.scrollPositionElement=o,this.intoViewElement=o)}else 0===o.length?this.intoViewElement=this.element:"single"===this.selectorMode?this.intoViewElement=o[0]:this.intoViewElement=o}this.scrollPositionElement instanceof HTMLElement&&this.scrollPositionElement!==this.element&&"frontend"===this.mode&&this.element.closest(".nectar-blocks-has-perspective")&&(this.scrollPositionElement=this.element);const i=this.getPresetAnimations();this.presetAnimations=i.presetAnimations,this.presetAnimationsDirectional=i.presetAnimationsDirectional,this.events(),this.initAnimations()}shouldActivateOnDevice(t){if("frontend"===this.mode){const e=window?.nectarBlocksFrontend?.device??"";if(e&&!t.triggerDevices.includes(e))return!1}return!0}onDeviceChange(){this.settings&&!e(this.settings.scrollIntoView)&&this.scrollIntoView(),this.settings&&!e(this.settings.interaction)&&this.onInteractionDeviceChange()}cleanupInteraction(){if(this.interactionTriggerEl&&this.interactionHandlers.activate&&this.interactionHandlers.deactivate&&(this.interactionTriggerEl.removeEventListener("mouseenter",this.interactionHandlers.activate),this.interactionTriggerEl.removeEventListener("mouseleave",this.interactionHandlers.deactivate),this.interactionTriggerEl.removeEventListener("focusin",this.interactionHandlers.activate),this.interactionTriggerEl.removeEventListener("focusout",this.interactionHandlers.deactivate)),this.interactionTriggerEl&&this.interactionHandlers.pointerToggle&&this.interactionTriggerEl.removeEventListener("pointerdown",this.interactionHandlers.pointerToggle),this.interactionHandlers.outsidePointerDown&&document.removeEventListener("pointerdown",this.interactionHandlers.outsidePointerDown,!0),this.interactionTriggerEl&&this.interactionHandlers.clickCapture&&this.interactionTriggerEl.removeEventListener("click",this.interactionHandlers.clickCapture,!0),this.interactionTweens.length>0&&this.interactionTweens.forEach((t=>t.kill())),this.interactionControllerTweens.length>0&&this.interactionControllerTweens.forEach((t=>t.kill())),this.interactionNoTransitionDelayedCall&&this.interactionNoTransitionDelayedCall.kill(),this.interactionOwnedNoTransition.size>0&&(this.interactionOwnedNoTransition.forEach((t=>t.classList.remove("no-transition"))),this.interactionOwnedNoTransition.clear()),this.interactionInlineTargets.size>0){const t=Array.from(this.interactionInlineTargets);l().set(t,{clearProps:["transform","transformOrigin","opacity","filter","color","backgroundColor","clipPath","width","height","boxShadow","xPercent","yPercent","rotation","rotationX","rotationY"].join(",")}),this.interactionInlineTargets.clear()}this.interactionTriggerEl=null,this.interactionTweens=[],this.interactionControllerTweens=[],this.interactionNoTransitionDelayedCall=null,this.interactionHandlers={}}onInteractionDeviceChange(){if(!this.settings||e(this.settings.interaction))return void this.cleanupInteraction();const t=this.settings.interaction;this.shouldActivateOnDevice(t)?(this.cleanupInteraction(),this.interaction()):this.cleanupInteraction()}initAnimations(){this.settings&&!e(this.settings.scrollIntoView)&&this.scrollIntoView(),this.settings&&!e(this.settings.scrollPosition)&&"frontend"===this.mode&&this.scrollPosition(),this.settings&&!e(this.settings.interaction)&&"frontend"===this.mode&&this.interaction(),this.element.classList.add("animation-initialized")}getPresetAnimations(){return{presetAnimations:{fade:[{opacity:0},{opacity:1}],grow:[{transform:"scale(0.75)"},{transform:"scale(1)"}],shrink:[{transform:"scale(1)"},{transform:"scale(0)"}],rotate:[{transform:"rotate(10deg) translateY(100px)"},{transform:"rotate(0deg) translateY(0px)"}]},presetAnimationsDirectional:{slide:{left:[{x:"-4rem"},{x:"0rem"}],right:[{x:"4rem"},{x:"0rem"}],down:[{y:"4rem"},{y:"0rem"}],up:[{y:"-4rem"},{y:"0rem"}]}
1,flip:{left:[{transform:"perspective(1200px) rotateY(-40deg) translateX(-50%)"},{transform:"perspective(1200px) rotateY(0deg) translateX(0%)"}],right:[{transform:"perspective(1200px) rotateY(40deg) translateX(50%)"},{transform:"perspective(1200px) rotateY(0deg) translateX(0%)"}],down:[{transform:"perspective(1200px) rotateX(-50deg) translateY(50%)"},{transform:"perspective(1200px) rotateX(0deg) translateY(0%)"}],up:[{transform:"perspective(1200px) rotateX(50deg) translateY(-50%)"},{transform:"perspective(1200px) rotateX(0deg) translateY(0%)"}]},reveal:{left:[{clipPath:"inset(0 100% 0 0)"},{clipPath:"inset(0 0% 0 0)"}],right:[{clipPath:"inset(0 0 0 100%)"},{clipPath:"inset(0 0 0 0%)"}],down:[{clipPath:"inset(100% 0 0 0)"},{clipPath:"inset(0% 0 0 0)"}],up:[{clipPath:"inset(0 0 100% 0)"},{clipPath:"inset(0 0 0% 0)"}]}}}}getGroupedSettings(t){const e={translate:"transform",scale:"transform",rotate:"transform",skew:"transform",perspective:"transform",opacity:"opacity",boxShadow:"boxShadow",color:"color",backgroundColor:"backgroundColor",width:"width",height:"height",blur:"filters",brightness:"filters",contrast:"filters",grayscale:"filters",hueRotate:"filters",invert:"filters",saturate:"filters",sepia:"filters",inset:"masks",circle:"masks"};return{transform:[],opacity:[],boxShadow:[],color:[],backgroundColor:[],width:[],height:[],filters:[],masks:[],...s(t,(t=>e[t.type]))}}getFirstElement(t){return t instanceof HTMLElement?t:t[0]}processSettings(t){const e={transform:[],opacity:[],filter:[],boxShadow:[],clipPath:[],color:[],backgroundColor:[],width:[],height:[]},n={transform:"",opacity:"",filter:"",boxShadow:"",clipPath:"",color:"",backgroundColor:"",width:"",height:""};return"transform"in t&&(t.transform.forEach((t=>{e.transform.push(((t,e="")=>{if("translate"===t.type){const n=[`translate(${b(t.x,e)}, ${b(t.y,e)})`];return t.z&&0!==t.z.value&&n.push(`translateZ(${b(t.z,e)})`),n.join(" ")}if("scale"===t.type)return`scale(${t.x}, ${t.y})`;if("rotate"===t.type){const e=[`rotate(${t.degrees}deg)`];return t.xDegrees&&0!==t.xDegrees&&e.push(`rotateX(${t.xDegrees}deg)`),t.yDegrees&&0!==t.yDegrees&&e.push(`rotateY(${t.yDegrees}deg)`),e.join(" ")}if("skew"===t.type)return`skew(${t.xDegrees}deg, ${t.yDegrees}deg)`;if("perspective"===t.type)return`perspective(${b(t.perspective)})`;throw new TypeError("Transform value not valid")})(t,"0px"))})),e.transform.length>0&&(n.transform=e.transform.join(" "))),"boxShadow"in t&&(t.boxShadow.forEach((t=>{e.boxShadow.push((t=>{const e=b(t.xAxis),n=b(t.yAxis),i=b(t.blur),o=b(t.spread),r=k(t.color);return e||n||i||o?`${t?.inset?"inset ":""}${e} ${n} ${i} ${o} ${r}`:""})(t))})),e.boxShadow.length>0&&(n.boxShadow=e.boxShadow.join(" "))),"opacity"in t&&(t.opacity.forEach((t=>{e.opacity.push(t.value.toString())})),e.opacity.length>0&&(n.opacity=e.opacity.join(" "))),t?.color&&(t.color.filter(M).forEach((t=>{const n=k(t.color),i=E(n);e.color.push((i||n).trim())})),e.color.length>0&&(n.color=e.color[e.color.length-1])),t?.backgroundColor&&(t.backgroundColor.filter(_).forEach((t=>{const n=k(t.color),i=E(n);e.backgroundColor.push((i||n).trim())})),e.backgroundColor.length>0&&(n.backgroundColor=e.backgroundColor[e.backgroundColor.length-1])),t?.width&&(t.width.forEach((t=>{"width"===t.type&&e.width.push(b(t.value))})),e.width.length>0&&(n.width=e.width[e.width.length-1])),t?.height&&(t.height.forEach((t=>{"height"===t.type&&e.height.push(b(t.value))})),e.height.length>0&&(n.height=e.height[e.height.length-1])),t?.filters&&(t.filters.forEach((t=>{e.filter.push(((t,e="")=>"blur"===t.type?`blur(${b(t.value,e)})`:"dropShadow"===t.type?`drop-shadow(${b(t.value.offsetX,e)} ${b(t.value.offsetY,e)} ${b(t.value.blurRadius,e)} ${k(t.value.color)})`:"hueRotate"===t.type?`hue-rotate(${t.value}deg)`:"grayscale"===t.type||"brightness"===t.type||"contrast"===t.type||"invert"===t.type||"sepia"===t.type?`${t.type}(${t.value})`:"saturation"===t.type?`saturate(${t.value})`:`${t.type}(${t.value}%)`)(t,"0px"))})),e.filter.length>0&&(n.filter=e.filter.join(" "))),t?.masks&&(t.masks.forEach((t=>{if("inset"===t.type){const n=t.inset,i=`${b(n.top,"0px")} ${b(n.right,"0px")} ${b(n.bottom,"0px")} ${b(n.left,"0px")}`;t.roundness.value?e.clipPath.push(`inset(${i} round ${b(t.roundness,"0px")})`):e.clipPath.push(`inset(${i} round 0px)`)}else if("circle"===t.type){const n=t.position.split(" ").map((t=>H[t.trim()]??t)).join(" "),i=t.percent;e.clipPath.push(`circle(${i}% at ${n})`)}})),e.clipPath.length>
10&&(n.clipPath=e.clipPath.join(" "))),Object.keys(n).forEach((t=>{const e=t;""===n[e]&&delete n[e]})),n}presetOverwrites(t,e){return this.element.classList.contains("scale-full-width-to-contained")&&(t.transform=()=>this.fullWidthToContainedScale(e)),t}fullWidthToContainedScale(t){return"to"===t?"scale(1)":`scale(${window.innerWidth/this.element.offsetWidth})`}getAnimationSettingsForDevice(t){if(0===t.length)return[];if(t.every(B))return[{offset:0,duration:100,from:this.presetOverwrites(this.processSettings(this.getGroupedSettings(t.map((t=>t.start)))),"from"),to:this.presetOverwrites(this.processSettings(this.getGroupedSettings(t.map((t=>t.end)))),"to")}];const e=s(t,D),n=Object.keys(e),i=n.filter((t=>e[t].some((t=>C.has(t.type))))).length>1;return n.map((t=>{const n=e[t],o=n[0],r=o.offset??0,s=o.duration??100;if(i){const t=n.filter((t=>C.has(t.type))),e=n.filter((t=>!C.has(t.type))),i={},o={};if(t.forEach((t=>{Object.assign(i,$(t.start)),Object.assign(o,$(t.end))})),e.length>0){const t=this.presetOverwrites(this.processSettings(this.getGroupedSettings(e.map((t=>t.start)))),"from"),n=this.presetOverwrites(this.processSettings(this.getGroupedSettings(e.map((t=>t.end)))),"to");delete t.transform,delete n.transform,Object.assign(i,t),Object.assign(o,n)}return{offset:r,duration:s,from:i,to:o}}return{offset:r,duration:s,from:this.presetOverwrites(this.processSettings(this.getGroupedSettings(n.map((t=>t.start)))),"from"),to:this.presetOverwrites(this.processSettings(this.getGroupedSettings(n.map((t=>t.end)))),"to")}}))}getAnimationSettings(t){const e={desktop:t.desktop||{},tablet:t.tablet||{},mobile:t.mobile||{}},n=O("desktop",e),i=O("tablet",e),o=O("mobile",e);return{desktop:this.getAnimationSettingsForDevice(n.timeline),tablet:this.getAnimationSettingsForDevice(i.timeline),mobile:this.getAnimationSettingsForDevice(o.timeline)}}interaction(){if(!this.settings||e(this.settings.interaction))return;const t=this.settings.interaction;if(!this.shouldActivateOnDevice(t))return;const n=((t,e)=>{const n=F(t),i=[];return n.forEach((t=>{(t=>{if(!t||Array.isArray(t))return[];const e=t.timeline;return Array.isArray(e)?e:[]})(e[t]).forEach((t=>(t=>{const e=i.findIndex((e=>e.type===t.type));e>=0?i[e]=t:i.push(t)})(t)))})),i})(window?.nectarBlocksFrontend?.device??"desktop",{desktop:t.values?.desktop||{},tablet:t.values?.tablet||{},mobile:t.values?.mobile||{}});if(0===n.length)return;const i=(t=>t.some((t=>{const e=w[t.type];return JSON.stringify(t.from)!==JSON.stringify(e)})))(n),o=t=>"width"===t.type||"height"===t.type,r=t=>"circle"===t.type||"inset"===t.type,a=n.filter((t=>M(t.to))),c=n.filter((t=>_(t.to))),h=n.filter((t=>o(t.to))),u=n.filter((t=>r(t.to))),m=n.filter((t=>!(M(t.to)||_(t.to)||o(t.to)||r(t.to)))),g=(t,e=!1)=>{const n=t=>({from:this.presetOverwrites(this.processSettings(this.getGroupedSettings(t.map((t=>t.from)))),"from"),to:this.presetOverwrites(this.processSettings(this.getGroupedSettings(t.map((t=>t.to)))),"to")});return(t=>{if(0===t.length)return[];if(t.every((t=>!(void 0!==t.offset&&0!==t.offset||void 0!==t.duration&&100!==t.duration))))return[{offsetFrac:0,durationFrac:1,entries:t,transformsSplit:!1}];const e=s(t,(t=>`${t.offset??0}-${t.duration??100}`)),n=Object.keys(e),i=n.filter((t=>e[t].some((t=>C.has(t.type))))).length>1;return n.map((t=>{const n=e[t],o=n[0];return{offsetFrac:(o.offset??0)/100,durationFrac:(o.duration??100)/100,entries:n,transformsSplit:i}}))})(t).map((({offsetFrac:t,durationFrac:i,entries:o,transformsSplit:r})=>{if(r){const e=o.filter((t=>C.has(t.type))),r=o.filter((t=>!C.has(t.type))),s={},a={};if(e.forEach((t=>{const e=((t,e)=>{const n=$(t),i=$(e),o=t=>"string"==typeof t&&/%\s*$/.test(t),r=t=>{if("string"!=typeof t)return null;const e=t.trim().match(/^(-?\d+(?:\.\d+)?)(%|px)?$/);if(!e)return null;const n=parseFloat(e[1]);return"px"===e[2]&&0!==n?null:n},s=(t,e)=>{const s=n[t],a=i[t];if(!o(s)&&!o(a))return;const l=r(s),c=r(a);null!==l&&null!==c&&(n[e]=l,i[e]=c,delete n[t],delete i[t])};return s("x","xPercent"),s("y","yPercent"),{from:n,to:i}})(t.from,t.to);Object.assign(s,e.from),Object.assign(a,e.to)})),r.length>0){const t=n(r);delete t.from.transform,delete t.to.transform,Object.assign(s,t.from),Object.assign(a,t.to)}return{offsetFrac:t,durationFrac:i,from:s,to:a}}const s=(t=>e?(t=>
1{const e=L(t.from),n=L(t.to),i=I(e.vars),o=I(n.vars),r=i.vars,s=o.vars;return void 0===e.xPercent&&void 0===n.xPercent||(r.xPercent=e.xPercent??0,s.xPercent=n.xPercent??0),void 0===e.yPercent&&void 0===n.yPercent||(r.yPercent=e.yPercent??0,s.yPercent=n.yPercent??0),void 0===i.rotation&&void 0===o.rotation||(r.rotation=i.rotation??0,s.rotation=o.rotation??0),void 0===i.rotationX&&void 0===o.rotationX||(r.rotationX=i.rotationX??0,s.rotationX=o.rotationX??0),void 0===i.rotationY&&void 0===o.rotationY||(r.rotationY=i.rotationY??0,s.rotationY=o.rotationY??0),{from:r,to:s}})(t):t)(n(o));return{offsetFrac:t,durationFrac:i,from:s.from,to:s.to}}))},p=g(m,!0),v=g(h),y=g(u),b=g(a),k=g(c);let E="number"==typeof t.durationSec?t.durationSec:.5;const T=t.timingFunction??[.33,1,.68,1],S=`nectarInteractionEase-${this.element.id}`,B=A(T);let D;if(B&&E<1&&(E=1),B)D=P(T);else{const t=x(T)?T:[.33,1,.68,1];D=d().create(S,t.join(","))}const O=B?(()=>{let t=1;for(let e=0;e<=240;e++)if(D(e/240)>=1){t=e/240;break}return e=>t>0&&e>=t?1:Math.min(1,Math.max(0,D(e)))})():D;let H=null;if("block"===t.trigger?.mode&&t.trigger.id){const e=document.getElementById(t.trigger.id),n=this.element.closest("[data-ticker-clone]");if(e&&e.contains(this.element))H=e;else if(n&&e){const t=Array.from(e.classList).find((t=>t.startsWith("wp-block-nectar-blocks-")));H=t?this.element.closest(`.${t}`)??e:e}else H=e}else H=this.element;if(!H)return;this.cleanupInteraction();const j=[],V=[],q=new Map,W=[],Y=[],N=this.interactionOwnedNoTransition,X=()=>{0!==Y.length&&(Y.forEach((t=>{t.classList.contains("no-transition")||(t.classList.add("no-transition"),N.add(t))})),Y.forEach((t=>{t.offsetHeight})))},R=()=>{0!==N.size&&(N.forEach((t=>t.classList.remove("no-transition"))),N.clear())},G=()=>{this.interactionNoTransitionDelayedCall&&this.interactionNoTransitionDelayedCall.kill(),this.interactionNoTransitionDelayedCall=l().delayedCall(E+.01,(()=>{R(),this.interactionNoTransitionDelayedCall=null}))},Q=(t,e)=>{const n=new Set(["duration","ease","paused","overwrite","delay","stagger","onStart","onUpdate","onComplete","runBackwards"]),i=t=>{if("string"!=typeof t)return null;const e=t.trim().match(/^(-?\d+(?:\.\d+)?)([a-z%]+)$/i);return e?{num:Number(e[1]),unit:e[2]}:null},o={};return Object.keys(e).forEach((r=>{if(!n.has(r))try{const n=i(e[r]);if(n){const e=((t,e,n)=>{if(t instanceof HTMLElement&&("width"===e||"height"===e)){const o=t.style.getPropertyValue(e).trim(),r=i(o);if(r&&r.unit===n)return o}if("width"===e||"height"===e){const o="width"===e?"--nb-authored-width":"--nb-authored-height",r=getComputedStyle(t).getPropertyValue(o).trim(),s=i(r);if(s&&s.unit===n)return r}if(("width"===e||"height"===e)&&"%"===n){if(!(t instanceof HTMLElement))return null;const n=t.parentElement;if(!n)return null;const i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),r="width"===e?o.width:o.height,s="width"===e?i.width:i.height;return r?`${(s/r*100).toFixed(3)}%`:null}const o=((t,e)=>{try{const n=l().getProperty(t,e,"px"),i="number"==typeof n?n:Number(n);return Number.isFinite(i)?i:null}catch(t){return null}})(t,e);if(null===o)return null;if("px"===n)return`${o}px`;if("rem"===n){const t=parseFloat(getComputedStyle(document.documentElement).fontSize||"16");return`${(t?o/t:o/16).toFixed(4)}rem`}if("em"===n){let e=parseFloat(getComputedStyle(document.documentElement).fontSize||"16");return t instanceof HTMLElement&&(e=parseFloat(getComputedStyle(t).fontSize||"16")),`${(e?o/e:o/16).toFixed(4)}em`}return"vw"===n?`${(window.innerWidth?o/window.innerWidth*100:0).toFixed(3)}vw`:"vh"===n?`${(window.innerHeight?o/window.innerHeight*100:0).toFixed(3)}vh`:null})(t,r,n.unit);if(null!==e)return void(o[r]=e)}o[r]=l().getProperty(t,r)}catch(t){}})),o},J=(t,e,n,o=!1,r=!1,s=0,a=1)=>{const c=i||o;t instanceof HTMLElement&&(Y.push(t),this.interactionInlineTargets.add(t));const d=()=>{const i=Q(t,n),o=((t,e)=>{if("string"==typeof e&&("none"===t||""===t||null==t))return e})(i.filter,e.filter);return void 0!==o&&(i.filter=o),i};if(B)W.push({target:t,toVars:n,fromVars:c?e:d(),clampEase:r});else{const i=c?e:d();c&&(t instanceof HTMLElement&&!t.classList.contains("no-transition")&&(t.classList.add("no-transition"),N.add(t),t.offsetHeight),l().set(t,i));const o=l().fromTo(t,i,{...n,duration:1,ease:"none",paused:!0,immediateRender:!1,overwrite:"auto"});j.push(o),q.set(o,{offsetFrac:s,durationFrac:a})}};if(p.length>0){p.forEach((t=>{this.scrollPositionElement instanceof HTMLElement?J(this.scrollPositionElement,t.from,t.to,!1,!1,t.offsetFrac,t.durationFrac):Array.from(this.scrollPositionElement).forEach((e=>J(e,t.from,t.to,!1,!1,t.offsetFrac,t.durationFrac)))}));const t=new Set(["translate","scale","rotate","skew","perspective"]);if(m.some((e=>t.has(e.to?.type)||t.has(e.from?.type)))){const t=t=>
1{if(!(t instanceof HTMLElement))return;const e=getComputedStyle(t).getPropertyValue("--nectar-transform-origin").trim();e&&(t.style.transformOrigin=e)};this.scrollPositionElement instanceof HTMLElement?t(this.scrollPositionElement):Array.from(this.scrollPositionElement).forEach(t)}}v.forEach((t=>{J(this.element,t.from,t.to,!1,!1,t.offsetFrac,t.durationFrac)})),y.forEach((t=>{this.scrollPositionElement instanceof HTMLElement?J(this.scrollPositionElement,t.from,t.to,!0,!1,t.offsetFrac,t.durationFrac):Array.from(this.scrollPositionElement).forEach((e=>J(e,t.from,t.to,!0,!1,t.offsetFrac,t.durationFrac)))}));const Z=z(this.element),U=f(Z),K=this.element.id;if(b.length>0&&U.supportsTextColor){const t=[".nectar-blocks-text",".nectar-blocks-column",".nectar-blocks-column__wrapper",".nectar-blocks-flex-box",".nectar-blocks-flex-box__wrapper",".nectar-blocks-row__wrapper"].join(","),e=U.resolveTextTargets(this.element,K);e.forEach((e=>{e instanceof HTMLElement&&e.querySelectorAll(t).forEach((t=>{t.classList.add("no-transition")}))})),b.forEach((t=>{const n="string"==typeof t.from.color&&""!==t.from.color;e.forEach((e=>{const i=n?t.from:{...t.from,color:e instanceof Element?getComputedStyle(e).color:"rgba(0,0,0,0)"};J(e,i,t.to,!1,!0,t.offsetFrac,t.durationFrac)}))}))}if(k.length>
10&&U.supportsBackgroundColor){const t=U.resolveBackgroundTargets(this.element,K);k.forEach((e=>{const n="string"==typeof e.from.backgroundColor&&""!==e.from.backgroundColor?e.from:{...e.from,backgroundColor:"rgba(0,0,0,0)"};t.forEach((t=>J(t,n,e.to,!1,!0,e.offsetFrac,e.durationFrac)))}))}if(!B&&0===j.length)return;if(B&&0===W.length)return;B&&(i||y.length>0)&&W.forEach((t=>{t.target instanceof HTMLElement&&!t.target.classList.contains("no-transition")&&(t.target.classList.add("no-transition"),N.add(t.target),t.target.offsetHeight),l().set(t.target,t.fromVars)})),N.size>0&&(this.interactionNoTransitionDelayedCall&&this.interactionNoTransitionDelayedCall.kill(),this.interactionNoTransitionDelayedCall=l().delayedCall(.05,(()=>{R(),this.interactionNoTransitionDelayedCall=null})));const tt=()=>{j.length>0&&(j.forEach((t=>t.kill())),j.length=0)},et=t=>{V.length>0&&(V.forEach((t=>t.kill())),V.length=0),j.forEach((e=>{e.pause();const{span:n,delay:i}=((t,e)=>((t,e,n)=>({span:Math.max(1e-4,t.durationFrac*n),delay:1===e?t.offsetFrac*n:0}))(t,e,E))(q.get(e)??{offsetFrac:0,durationFrac:1},t),o=l().to(e,{progress:t,duration:n,delay:i,ease:D,overwrite:"auto"});V.push(o)}))},nt=()=>{X(),B?(tt(),W.forEach((t=>{const e=l().fromTo(t.target,t.fromVars,{...t.toVars,duration:E,ease:t.clampEase?O:D,overwrite:"auto"});j.push(e)}))):et(1),G()},it=()=>{X(),B?(tt(),W.forEach((t=>{const e=l().to(t.target,{...t.fromVars,duration:E,ease:t.clampEase?O:D,overwrite:"auto"});j.push(e)}))):et(0),G()};H.addEventListener("mouseenter",nt),H.addEventListener("mouseleave",it),H.addEventListener("focusin",nt),H.addEventListener("focusout",it);const ot=("ontouchstart"in window||navigator.maxTouchPoints>0)&&window.innerWidth<1025;let rt=!1,st=!1;const at=t=>{st&&(st=!1,t.preventDefault(),t.stopPropagation())},lt=t=>{if("mouse"!==t.pointerType)if(rt)it(),rt=!1,st=!1;else{nt(),rt=!0;const e=t.target instanceof Element?t.target:null;e?.closest("a")&&(st=!0)}},ct=t=>{if(!rt)return;const e=t.target instanceof Node?t.target:null;e&&H.contains(e)||(it(),rt=!1,st=!1)};ot&&(H.addEventListener("pointerdown",lt),document.addEventListener("pointerdown",ct,!0),H.addEventListener("click",at,!0)),this.interactionTriggerEl=H,this.interactionTweens=j,this.interactionControllerTweens=V,this.interactionHandlers={activate:nt,deactivate:it,pointerToggle:lt,outsidePointerDown:ct,clickCapture:at}}scrollPosition(){if(!this.settings||e(this.settings.scrollPosition))return;const t=this.settings.scrollPosition,i=this.getAnimationSettings(t.scrollValues),o={desktop:{mediaQuery:"(min-width: 1025px)",cohorts:i.desktop},tablet:{mediaQuery:"(max-width: 1024px) and (min-width: 768px)",cohorts:i.tablet},mobile:{mediaQuery:"(max-width: 767px)",cohorts:i.mobile}},r=function(t){if(t.startBoundary){const e="bottom"===t.startBoundary.viewport&&!t.startBoundary.offset?.value;return V(t.startBoundary,e)}return j[t.start]}(t.animationBoundaries),s=(a=t.animationBoundaries).endBoundary?V(a.endBoundary):j[a.end];var a;const c={trigger:this.scrollPositionElement,start:r,end:s,scrub:t?.smoothScroll?.75:0,invalidateOnRefresh:!0,onToggle:t=>{if(t.isActive){const e=new Set;i.desktop.forEach((t=>{Object.keys(t.to).forEach((t=>{const n=(i=t,i.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.map((t=>t.toLowerCase())).join("-"));var i;n&&e.add(n)}))}));const n=Array.from(e);n.length>0&&t?.trigger instanceof HTMLElement&&(t.trigger.style.willChange=n.join(", "))}else t?.trigger instanceof HTMLElement&&(t.trigger.style.willChange="")}},d=this.getFirstElement(this.scrollPositionElement),h=d.closest(".nectar-blocks-pin"),m=d.closest(".nectar-blocks-pin-root");let f="in_view";if(h){c.pinnedContainer=h,c.trigger=c.pinnedContainer,c.start=j.starts_entering;const t=m.id,e=this.getInstancePositionData(m),n=this.getTimelineInstance(m);f=n?n?.animationStart:"in_view",t&&"in_view"===f&&e&&(c.end=()=>this.getInstancePositionData(m)?this.getInstancePositionData(m)?.end:"")}if(t.animationBoundaries.pin){if(!h){this.scrollPositionElement instanceof HTMLElement?this.scrollPositionElement.classList.add("nectar-blocks-pin"):this.scrollPositionElement.forEach((t=>{t.classList.add("nectar-blocks-pin")})),this.element.classList.add("nectar-blocks-pin-root"),c.pin=!0,t.animationBoundaries?.removePinSpacing&&(c.pinSpacing=!1),"desktop"!==window?.nectarBlocksFrontend?.device&&(c.anticipatePin=1);const e=t.animationBoundaries.endPinOffset;e?.value&&(c.end=`+=${e?.value}${e?.unit}`);const n=t.animationBoundaries?.pinPropertyEnd;if(n&&"on_pin"!==t.animationBoundaries?.pinAnimationStart){const e={...c},i={};
1Object.keys(o).forEach((n=>{const r=n;t.triggerDevices.includes(r)&&l().matchMedia().add(o[r].mediaQuery,(()=>{i[r]=u().create({...e})}))})),c.pin=!1,delete c.pinSpacing,delete c.anticipatePin,c.start=j.starts_entering,c.end="pin_offset"===n?()=>{const t=window?.nectarBlocksFrontend?.device??"desktop";return i[t]?.end??0}:r}"on_pin"===t.animationBoundaries?.pinAnimationStart&&Object.keys(o).forEach((e=>{const n=e,i=l().matchMedia();t.triggerDevices.includes(n)&&i.add(o[n].mediaQuery,(()=>{const e=l().timeline({scrollTrigger:{...c}});return this.storeTimelineInstance(e,t.animationBoundaries?.pinStagger??0,t.animationBoundaries?.pinAnimationStart??"in_view"),()=>{e.getChildren().forEach((t=>{t.targets&&setTimeout((()=>{l().set(t.targets(),{clearProps:"all"})}),20)}))}}))}))}}else if(!t.animationBoundaries.endBoundary){const e=t.animationBoundaries.endOffset;e?.value&&!h&&(c.end=e?.value<0?`-${Math.abs(e?.value)}${e?.unit}`:`${e?.value}${e?.unit}`)}const g=window?.nectarBlocksFrontend?.device??"";g&&t.triggerDevices.includes(g)&&e(this.settings?.scrollIntoView)&&this.removeAwaitInViewDataAttrs(),this.scrollPositionElement instanceof HTMLElement?this.scrollPositionElement.classList.add("no-transition"):this.scrollPositionElement.forEach((t=>{t.classList.add("no-transition")})),Object.keys(o).forEach((e=>{const n=e;if(t.triggerDevices.includes(n)){const{mediaQuery:e,cohorts:i}=o[n];this.applyMediaQueryAnimation(e,i,c,h,f,t)}})),("desktop"===window.nectarBlocksFrontend?.device||n||!!t.animationBoundaries.pin)&&!h&&this.setupPreEntryRefresh(),t.animationBoundaries.pin&&(n||u().refresh())}applyMediaQueryAnimation(t,e,n,i,o,r){l().matchMedia().add(t,(()=>{const t=!(!(s=r.easing)||x(s)&&(4!==s.length||0===s[0]&&0===s[1]&&1===s[2]&&1===s[3]));var s;let a="none";if(t){const t=r.easing;if(A(t))a=P(t);else{const e=x(t)&&4===t.length?t:[0,0,1,1];a=d().create(`nectarScrollEase-${this.element.id}`,e.join(","))}}const c=e.some((t=>t.from.color||t.to.color||t.from.backgroundColor||t.to.backgroundColor));let h=[],u=[];if(c){const t=z(this.element),e=f(t),n=this.element.id;e.supportsTextColor&&(h=e.resolveTextTargets(this.element,n)),e.supportsBackgroundColor&&(u=e.resolveBackgroun
1dTargets(this.element,n))}const m=[".nectar-blocks-text",".nectar-blocks-column",".nectar-blocks-column__wrapper",".nectar-blocks-flex-box",".nectar-blocks-flex-box__wrapper",".nectar-blocks-row__wrapper"].join(","),g=[],p=[...h,...u];p.forEach((t=>{t instanceof HTMLElement&&(t.classList.add("no-transition"),t.querySelectorAll(m).forEach((t=>{t.classList.add("no-transition"),g.push(t)})))}));const v=i?.closest(".nectar-blocks-pin-root"),y=v&&this.getTimelineInstanceData(v),w=this.getFirstElement(this.scrollPositionElement),b=e.some((t=>t.from.transform||t.to.transform));if(w!==this.element&&b){const t=getComputedStyle(w).getPropertyValue("--nectar-transform-origin").trim();t&&(this.scrollPositionElement instanceof HTMLElement?this.scrollPositionElement.style.transformOrigin=t:this.scrollPositionElement.forEach((e=>{e instanceof HTMLElement&&(e.style.transformOrigin=t)})))}if(r.animationBoundaries.pin&&"on_pin"===r.animationBoundaries?.pinAnimationStart)l().delayedCall(0,(()=>{const i=this.getTimelineInstanceData(this.element),o=r.animationBoundaries?.pinPropertyEnd??"entrance",s={...n,pin:!1,start:"pin_offset"===o?()=>i?.scrollTrigger?i.scrollTrigger.start:0:j.starts_entering,end:()=>i?.scrollTrigger?"pin_offset"===o?i.scrollTrigger.end:i.scrollTrigger.start:0},c=l().timeline({...t?{paused:!0}:{scrollTrigger:{...s}},defaults:{ease:"none",duration:1}});if(c.set({},{},1),e.length>1){const t={},n={};e.forEach((e=>{(e.offset??0)>0&&Object.entries(e.from).forEach((([e,i])=>{"color"===e||"backgroundColor"===e?n[e]=i:t[e]=i}))})),Object.keys(t).length>0&&c.set(this.scrollPositionElement,t,0),n.color&&h.length>0&&h.forEach((t=>c.set(t,{color:n.color},0))),n.backgroundColor&&u.length>0&&u.forEach((t=>c.set(t,{backgroundColor:n.backgroundColor},0)))}e.forEach((t=>{const e=t.offset/100,n=t.duration/100,{color:i,backgroundColor:o,...r}=t.from,{color:s,backgroundColor:a,...l}=t.to;(Object.keys(r).length>0||Object.keys(l).length>0)&&c.fromTo(this.scrollPositionElement,{...r},{...l,duration:n},e),(i||s)&&h.length>0&&h.forEach((t=>{c.fromTo(t,i?{color:i}:{},{...s?{color:s}:{},duration:n},e)})),(o||a)&&u.length>0&&u.forEach((t=>{c.fromTo(t,o?{backgroundColor:o}:{},{...a?{backgroundColor:a}:{},duration:n},e)}))})),t&&l().timeline({scrollTrigger:{...s}}).to(c,{progress:1,duration:1,ease:a})}));else if(y&&"on_pin"===o){const n=v?this.getTimelineInstanceData(v):null,i=v?this.getTimelineInstance(v):0,o=i?i?.stagger:0;if(n){const i=l().timeline({defaults:{ease:"none"}});if(e.forEach((t=>{const e=t.offset/100,n=t.duration/100,{color:o,backgroundColor:r,...s}=t.from,{color:a,backgroundColor:l,...c}=t.to;(Object.keys(s).length>0||Object.keys(c).length>0)&&i.fromTo(this.scrollPositionElement,{...s},{...c,duration:n},e),(o||a)&&h.length>0&&h.forEach((t=>{i.fromTo(t,o?{color:o}:{},{...a?{color:a}:{},duration:n},e)})),(r||l)&&u.length>0&&u.forEach((t=>{i.fromTo(t,r?{backgroundColor:r}:{},{...l?{backgroundColor:l}:{},duration:n},e)}))})),e.length>1){const t={};e.forEach((e=>{(e.offset??0)>0&&Object.entries(e.from).forEach((([e,n])=>{"color"!==e&&"backgroundColor"!==e&&(t[e]=n)}))})),Object.keys(t).length>0&&i.set(this.scrollPositionElement,t,0)}if(t){i.pause();const t=l().timeline();t.to(i,{progress:1,duration:1,ease:a}),n.add(t,`<${o}%`)}else n.add(i,`<${o}%`)}}else{if(e.some((t=>{return!!("string"==typeof(n=(e=t.from).transform)?/\bscale\s*\(/.test(n):"function"==typeof n)||void 0!==e.scaleX||void 0!==e.scaleY||"width"in e&&null!==e.width&&void 0!==e.width&&""!==e.width||"height"in e&&null!==e.height&&void 0!==e.height&&""!==e.height;var e,n}))){const t=this.getFirstElement(n.trigger),i=n.end,o=()=>{t instanceof HTMLElement&&(t.style.transform="",t.style.width="",t.style.height="")},r=t=>{try{return("function"==typeof t?t():t)??""}catch{return"function"==typeof t?"":t}};n.end=()=>(o(),r(i));const s=this.scrollPositionElement,a={};e.forEach((t=>{Object.entries(t.from).forEach((([t,e])=>{"color"!==t&&"backgroundColor"!==t&&(a[t]=e)}))}));const c=Object.keys(a).length>0;n.onRefresh=t=>{t.progress<=0&&c&&l().set(s,{...a})}}const i=l().timeline({...t?{paused:!0}:{scrollTrigger:{...n}},defaults:{ease:"none",duration:1}});if(i.set({},{},1),e.length>1){const t={},n={};e.forEach((e=>{(e.offset??0)>0&&Object.entries(e.from).forEach((([e,i])=>{"color"===e||"backgroundColor"===e?n[e]=i:t[e]=i}))})),Object.keys(t).length>0&&i.set(this.scrollPositionElement,t,0),n.color&&h.length>0&&h.forEach((t=>i.set(t,{color:n.color},0))),n.backgroundColor&&u.length>0&&u.forEach((t=>i.set(t,{backgroundColor:n.backgroundColor},0)))}if(e.forEach((t=>{const e=t.offset/100,n=t.duration/100,{color:o,backgroundColor:r,...s}=t.from,{color:a,backgroundColor:l,...c}=t.to;(Object.keys(s).length>0||Object.keys(c).length>0)&&i.fromTo(this.scrollPositionElement,{...s},{...c,duration:n},e),(o||a)&&h.length>0&&h.forEach((t=>{i.fromTo(t,o?{color:o}:{},{...a?{color:a}:{},duration:n},e)})),(r||l)&&u.length>0&&u.forEach((t=>{i.fromTo(t,r?{backgroundColor:r}:{},{...l?{backgroundColor:l}:{},duration:n},e)}))})),t){const t=l().timeline({scrollTrigger:{...n},defaults:{duration:1}});t.to(i,{progress:1,ease:a}),this.storeScrollPositionInstance(t)}else this.storeScrollPositionInstance(i)}return()=>{l().set(this.scrollPositionElement,{clearProps:!0}),p.forEach((t=>{l().set(t,{clearProps:"color,backgroundColor"}),t instanceof HTMLElement&&t.classList.remove("no-transition")})),g.forEach((t=>t.classList.remove("no-transition")))}}))}buildColorTargets(t,e,n,i,o,r){const s=[];return(t||e)&&o.length>0&&s.push({targets:o,from:t?{color:t}:{},to:e?{color:e}:{}}),(n||i)&&r.length>0&&s.push({targets:r,from:n?{backgroundColor:n}:{},to:i?{backgroundColor:i}:{}}),s}setupPreEntryRefresh(){const t=this.scrollPositionElement instanceof HTMLElement?this.scrollPositionElement:this.scrollPositionElement[0];if(!t)return;const e=new IntersectionObserver((t=>{for(const n of t)if(n.isIntersecting){e.disconnect();const t=window.nectarBlocksFrontend?.scrollAnimationInstances?.find((t=>
1t.key===this.element.id)),n=window.nectarBlocksFrontend?.timelineAnimationInstances?.find((t=>t.key===this.element.id));if(t)for(const e of Object.keys(t.instances))t.instances[e]?.scrollTrigger?.refresh();if(n)for(const t of Object.keys(n.instances))n.instances[t]?.scrollTrigger?.refresh();break}}),{rootMargin:"0px 0px 200px 0px",threshold:0});e.observe(t)}storeTimelineInstance(t,e,n){if(!window.nectarBlocksFrontend.timelineAnimationInstances)return;const i=window.nectarBlocksFrontend.timelineAnimationInstances,o=i.find((t=>t.key===this.element.id));o?o.instances={...o.instances,[window.nectarBlocksFrontend.device]:t}:i.push({key:this.element.id,instances:{[window.nectarBlocksFrontend.device]:t},stagger:e,animationStart:n})}getTimelineInstanceData(t){if(!window?.nectarBlocksFrontend?.device)return null;const e=window.nectarBlocksFrontend.device,n=window.nectarBlocksFrontend.timelineAnimationInstances.find((e=>e.key===t.id));return n&&n.instances[e]?n.instances[e]:null}getTimelineInstance(t){if(!window?.nectarBlocksFrontend?.device)return 0;return window.nectarBlocksFrontend.timelineAnimationInstances.find((e=>e.key===t.id))||0}storeScrollPositionInstance(t){if(!window.nectarBlocksFrontend.scrollAnimationInstances)return;const e=window.nectarBlocksFrontend.scrollAnimationInstances,n=e.find((t=>t.key===this.element.id));n?n.instances={...n.instances,[window.nectarBlocksFrontend.device]:t}:e.push({key:this.element.id,instances:{[window.nectarBlocksFrontend.device]:t}})}getInstancePositionData(t){if(!window?.nectarBlocksFrontend?.device)return null;const e=window.nectarBlocksFrontend.device,n=window.nectarBlocksFrontend.scrollAnimationInstances.find((e=>e.key===t.id));return n?n.instances[e]?.scrollTrigger:null}findInnerBlockChildren(t){const e=[t];for(;e.length>0;){const t=e.shift(),n=[],i=[];for(const e of Array.from(t.children))Array.from(e.classList).some((t=>t.startsWith("wp-block-")))?n.push(e):i.push(e);if(n.length>0)return n;e.push(...i)}return[]}createScrollTriggerWatcher(t,e,n){u().create({trigger:t,start:"top bottom -=30px",animation:e,onEnter:()=>{this.removeAwaitInViewDataAttrs(),t.classList.add("no-transition"),"style"in t&&(t.style.willChange="transform, opacity"),n&&n.forEach((t=>{t.classList.add("no-transition"),t.style.willChange="transform, opacity"}))}})}createScrollTriggerEntranceAnimation(t,e,n,i,o){const r=l().timeline();r.fromTo(t,{...e[0]},{...e[1],...n,onComplete:()=>{t.classList.remove("no-transition"),"style"in t&&(t.style.willChange=""),this.animationCompleted(),"editor"===this.mode&&"style"in t&&(t.style.opacity="",t.style.transform="",t.style.clipPath="")}});const s="reveal"===i.animation.type&&!0===i.animation.fadeIn;return"fade"===i.animation.type||"reveal"===i.animation.type&&!s||r.fromTo(t,{opacity:0},{opacity:1,duration:n.duration??i.animationDurationSec,ease:o},"<"),r}scrollIntoView(){const t=window?.nectarBlocksFrontend?.device??"";if(!this.settings||void 0===this.settings.scrollIntoView)return;if(!this.shouldActivateOnDevice(this.settings.scrollIntoView))return;if("frontend"===this.mode&&!this.element.hasAttribute(`data-await-in-view-${t}`))return;const e=this.settings.scrollIntoView;let n;if(n="slide"===e.animation.type||"flip"===e.animation.type||"reveal"===e.animation.type?this.presetAnimationsDirectional[e.animation.type][e.animation.fromDirection]:this.presetAnimations[e.animation.type],"slide"===e.animation.type){const t=e.animation.distance??4,i=e.animation.fromDirection,o="left"===i||"right"===i?"x":"y";n=[{[o]:`${"left"===i||"up"===i?"-":""}${t}rem`},{[o]:"0rem"}]}if("reveal"===e.animation.type&&"inset"===e.animation.mode){const t=e.animation,i=b(t.insetFrom??g,"0%"),o=b(t.insetTo??p,"0%"),r=b(t.roundnessFrom??v,"0%"),s=b(t.roundnessTo??y,"0%");n=[{clipPath:`inset(${i} round ${r})`},{clipPath:`inset(${o} round ${s})`}]}let i=e.animationDurationSec;e.animationTimingFunction&&A(e.animationTimingFunction)&&i<1&&(i=1);const o={delay:e.animationDelaySec,duration:i};let r="power1.out";if(e.animationTimingFunction){const t=(s=e.animationTimingFunction,a=`ease-${this.element.id}`,A(s)?P(s):x(s)?d().create(a,s.join(",")):void 0);t&&(r=t),o.ease=r}var s,a;"out"===e.animation.playDirection&&(o.runBackwards=!0);let c=this.intoViewElement;if(e.targetChildren){const t=Array.from(this.element.querySelectorAll(e.targetChildren)),n=t.length>0?t:this.findInnerBlockChildren(this.element);n.length>0&&(c=n)}if("object"==typeof c&&"length"in c){const t=e.staggerDelaySec??0,i=Array.from(c),s="reveal"===e.animation.type&&!0===e.animation.fadeIn,a="fade"!==e.animation.type&&("reveal"!==e.animation.type||s);if(l().set(i,n[0]),a&&l().set(i,{opacity:0}
1),t>0){const s=l().timeline();s.fromTo(i,{...n[0]},{...n[1],...o,stagger:t,onComplete:()=>{this.element.classList.remove("no-transition"),this.element.style.willChange="",i.forEach((t=>{t.classList.remove("no-transition"),t.style.willChange=""})),this.animationCompleted()}}),a&&s.fromTo(i,{opacity:0},{opacity:1,duration:o.duration??e.animationDurationSec,ease:r,stagger:t},"<"),this.createScrollTriggerWatcher(this.element,s,i)}else i.forEach((t=>{const i=this.createScrollTriggerEntranceAnimation(t,n,o,e,r);this.createScrollTriggerWatcher(t,i)}))}else{const t=this.createScrollTriggerEntranceAnimation(c,n,o,e,r);this.createScrollTriggerWatcher(c,t)}}events(){"frontend"===this.mode&&window.addEventListener("nectar-blocks-changed-device",this.onDeviceChange.bind(this))}removeAwaitInViewDataAttrs(){const t=this.element.dataset;for(const e in t)e.startsWith("awaitInView")&&delete t[e]}animationCompleted(){window.dispatchEvent(new Event("nectar-blocks-animation-complete"))}}l().registerPlugin(u(),d());class W{isTopLevel=!1;mode="frontend";selector=":scope > .nectar__bg-layer:not(.nectar__bg-shape):not(.nectar__bg-color)";resizeObserver=null;fitDebounceId=null;constructor(t,e){if(this.element=t,e)this.settings=e,this.mode="editor";else{if(!this.element.dataset.nectarBgScrollAnimation)return;this.settings=JSON.parse(o(this.element.dataset.nectarBgScrollAnimation))}
1this.element.closest(".nectar-global-section-megamenu")||(this.settings?.selector&&(this.selector=this.settings.selector),this.scrollAnimationInstance=null,this.animationElements=t.querySelectorAll(this.selector),this.animationElements.length&&(this.element.getBoundingClientRect().top+window.scrollY<window.innerHeight&&(this.isTopLevel=!0),this.init()))}init(){const{enabled:t}=this.settings;t&&(this.fitBgLayer(),this.bgScrollAnimationInit(),this.events(),this.element.classList.add("nectar-bg-scroll-animation-initialized"))}events(){if("ontouchstart"in window||navigator.maxTouchPoints?screen.orientation?screen.orientation.addEventListener("change",this.fitBgLayer.bind(this)):window.addEventListener("orientationchange",(()=>{setTimeout((()=>{this.fitBgLayer.bind(this)}),400)})):window.addEventListener("resize",this.fitBgLayer.bind(this)),"frontend"===this.mode&&(window.addEventListener("nectar-blocks-changed-device",this.bgScrollAnimationInit.bind(this)),"ResizeObserver"in window)){const t=100,e=160;let n=0;this.resizeObserver=new ResizeObserver((()=>{const i=performance.now();i-n>=t&&(n=i,this.fitBgLayer()),null!==this.fitDebounceId&&clearTimeout(this.fitDebounceId),this.fitDebounceId=setTimeout((()=>{this.fitDebounceId=null,n=performance.now(),this.fitBgLayer()}),e)})),this.resizeObserver.observe(this.element)}}shouldActivateOnDevice(){const t=window?.nectarBlocksFrontend?.device??"";return!(!t||t&&!this.settings.triggerDevices.includes(t))}bgScrollAnimationInit(){this.settings&&(this.scrollAnimationInstance?.kill(),this.shouldActivateOnDevice()?setTimeout((()=>{this.bgScrollAnimation()}),this.scrollAnimationInstance?50:0):this.animationElements.forEach((t=>{t.removeAttribute("style")})))}bgScrollAnimation(){const{strength:t,effect:e}=this.settings,n={from:{},to:{}};e.startsWith("parallax")?(n.from={y:()=>this.isTopLevel?0:.85*-t*this.element.offsetHeight},n.to={y:()=>.85*t*this.element.offsetHeight}):(n.from={scale:1+Math.abs(t)},n.to={scale:1});const i={trigger:this.element,start:"clamp(top bottom)",end:"bottom top",scrub:0,invalidateOnRefresh:!0};if("parallax-fade"===e&&(i.onUpdate=t=>{const e=this.easeHoldMid(Math.abs(t.progress));let n=1;n=this.isTopLevel?e<=.5?0:1.6*(e-.5):.8*Math.abs(Math.cos(e*Math.PI)),this.animationElements.forEach((t=>{t.style.setProperty("--scroll-opacity",`${n}`)}))}
1),this.element.closest(".nectar-blocks-pin")){i.pinnedContainer=this.element.closest(".nectar-blocks-pin");const t=this.element.closest(".nectar-blocks-pin-root");t.id&&this.getInstancePositionData(t)&&(i.end=()=>this.getInstancePositionData(t)?this.getInstancePositionData(t)?.end:"")}this.scrollAnimationInstance=l().fromTo(this.animationElements,{...n.from},{...n.to,scrollTrigger:{...i},ease:"linear"}),this.removeAwaitInViewDataAttrs()}removeAwaitInViewDataAttrs(){this.animationElements.forEach((t=>{const e=t.dataset;for(const t in e)t.startsWith("awaitInView")&&delete e[t]}))}easeHoldMid(t){return t<.5?.5*Math.pow(2*t,.35):1-.5*Math.pow(2*(1-t),.35)}fitBgLayer(){this.shouldActivateOnDevice()&&setTimeout((()=>{this.animationElements.forEach((t=>{const e=this.element,{strength:n}=this.settings;l().set(t,{width:"100%",height:"100%",top:0,left:0});const i=t.getBoundingClientRect().top+window.scrollY,o=window.innerHeight,r=e.offsetHeight,s=Math.abs(n),a=e.offsetWidth/t.offsetWidth;let c;c=this.isTopLevel?1+1.7*s*(i/(i+r))+.03:1+1.7*s*Math.max(0,(o-r)/(o+r))+.03;const d=c*r/t.offsetHeight,h=Math.max(a,d),u=Math.ceil(t.offsetWidth*h),m=Math.ceil(t.offsetHeight*h);l().set(t,{width:u,height:m,top:Math.ceil((e.offsetHeight-m)/2),left:Math.ceil((e.offsetWidth-u)/2)})}))}),0)}getInstancePositionData(t){if(!window?.nectarBlocksFrontend?.device)return null;const e=window.nectarBlocksFrontend.device,n=window.nectarBlocksFrontend.scrollAnimationInstances.find((e=>e.key===t.id));return n?n.instances[e]?.scrollTrigger:null}destroy(){this.scrollAnimationInstance?.kill(),this.resizeObserver?.disconnect(),null!==this.fitDebounceId&&clearTimeout(this.fitDebounceId)}}const Y="nectar__bg-video--hovered",N=300,X=new WeakSet;function R(t){try{t.currentTime=0}catch{}}function G(t){(t||document).querySelectorAll(".nectar__bg-video--hover-trigger").forEach((t=>{X.has(t)||(X.add(t),function(t){const e=t.querySelector("video");if(!e)return;if(!window.matchMedia?.("(hover: hover) and (pointer: fine)")?.matches)return t.classList.add(Y),e.autoplay=!0,void e.play().catch((()=>{}));const n="paused"===t.dataset.resting?"paused":"hidden",i=function(t){const e=t.closest(".
1nectar__bg-layers");return e?.parentElement??null}(t);if(!i)return;let o,r=!1;if("paused"===n){const t=()=>{r||e.play().then((()=>{r||(e.pause(),R(e))})).catch((()=>{}))};e.readyState>=2?t():e.addEventListener("loadeddata",t,{once:!0})}i.addEventListener("pointerenter",(()=>{r=!0,void 0!==o&&(window.clearTimeout(o),o=void 0),"hidden"===n&&t.classList.add(Y),e.play().catch((()=>{}))})),i.addEventListener("pointerleave",(()=>{if(r=!1,"paused"===n)return e.pause(),void R(e);t.classList.remove(Y),o=window.setTimeout((()=>{e.pause(),R(e),o=void 0}),N)}))}(t))}))}function Q(t,e){const n=t.getAttribute("data-nectarblocks-src"),i=t.getAttribute("data-nectarblocks-srcset");return i&&(t.srcset=i,t.removeAttribute("data-nectarblocks-srcset")),n&&(t.src=n,t.removeAttribute("data-nectarblocks-src")),e?.fade?t.decode().then((()=>{t.classList.add("nectarblocks-loaded")})).catch((()=>{t.classList.add("nectarblocks-loaded")})):(t.classList.add("nectarblocks-loaded"),t.decode().catch((()=>{})))}function J(t){const e=t||document;t&&e.querySelectorAll('img[loading="lazy"]').forEach((t=>{const e=t.src;t.removeAttribute("loading"),t.src="",t.src=e}));const n=e.querySelectorAll("img.nectarblocks-lazy[data-nectarblocks-src]");if(0===n.length)return;const i=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(Q(t.target,{fade:!0}),i.unobserve(t.target))}))}),{rootMargin:"0px 0px 100px 0px",threshold:0});n.forEach((t=>{U(t)||i.observe(t)}))}function Z(t){const e=!!t,n=(t||document).querySelectorAll(".lazy-load-bg");if(0===n.length&&!e)return;if(e)return void n.forEach((t=>{t.classList.remove("lazy-load-bg")}));const i=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(t.target.classList.remove("lazy-load-bg"),i.unobserve(t.target))}))}),{rootMargin:"300px 0px 300px 0px",threshold:0});n.forEach((t=>{U(t)||i.observe(t)})),function(){const t=document.querySelectorAll("#nectar-nav .nectar-global-section-megamenu, #nectar-nav ul.sub-menu");0!==t.length&&t.forEach((t=>{const e=t.closest("li");if(!e)return;const n=()=>{t.querySelectorAll(".lazy-load-bg").forEach((t=>{t.classList.remove("lazy-load-bg")})),t.querySelectorAll("img.nectarblocks-lazy[data-nectarblocks-src]").forEach((t=>{Q(t)}))};if(e.classList.contains("sfHover")||e.classList.contains("nectar-megamenu-shown"))return void n();const i=new MutationObserver((()=>{(e.classList.contains("sfHover")||e.classList.contains("nectar-megamenu-shown"))&&(n(),i.disconnect())}));i.observe(e,{attributes:!0,attributeFilter:["class"]})}))}()}
1function U(t){return!!t.closest(".nectar-global-section-megamenu, #nectar-nav ul.sub-menu")}function K(t){const e=t.querySelectorAll("source");let n=!1;return e.forEach((t=>{const e=t.getAttribute("data-nectar-lazy-src");e&&(t.src=e,t.removeAttribute("data-nectar-lazy-src"),n=!0)})),n&&t.load(),n}function tt(t){const e=!!t,n=(t||document).querySelectorAll(".nectar__bg-video video, .nectar-blocks-video-player__video video, video.nectar-blocks-lazy-video");if(e)return void n.forEach((t=>{K(t)}));if(0===n.length)return;const i=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target;K(e)&&i.unobserve(e)}}))}),{rootMargin:"200px 0px 200px 0px",threshold:0});n.forEach((t=>i.observe(t)))}window.nectarBlocksFrontend=new class{initialLoad=!0;initializedAnimations=new WeakSet;initializedBgAnimations=new WeakSet;initializedOverlayHover=new WeakSet;debouncedResizeEnd=function(t,e){let n;return(...e)=>new Promise(((i,o)=>{clearTimeout(n),n=setTimeout((()=>{try{const n=t(...e);i(n)}catch(t){t instanceof Error&&o(t),o(new Error(`An error has occurred:${t}`))}}),100)}))}((()=>this.resizeEnd()));constructor(){this.winWidth=window.innerWidth,this.winHeight=window.innerHeight,this.device="desktop",this.scrollAnimationInstances=[],this.timelineAnimationInstances=[],this.init()}init(){this.device=this.calculateDevice(),this.events()}blockAnimations(t){const i=t||document,r=!!t,s={rootMargin:"400px 0px 400px 0px",threshold:0},a=r?null:new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.initAnimation(t.target),a?.unobserve(t.target))}))}),s);i.querySelectorAll("[data-nectar-block-animation]").forEach((t=>{if(this.initializedAnimations.has(t))return;const i=t.dataset.nectarBlockAnimation;if(i){const n=JSON.parse(o(i));if(!e(n?.scrollPosition)&&n.scrollPosition?.animationBoundaries?.pin)return void this.initAnimation(t)}
1t.closest(".nectar-blocks-has-pin-animation")||r||"desktop"===this.device||n?this.initAnimation(t):a?.observe(t)}));const l=r?null:new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.initBgAnimation(t.target),l?.unobserve(t.target))}))}),s);i.querySelectorAll("[data-nectar-bg-scroll-animation]").forEach((t=>{this.initializedBgAnimations.has(t)||(r?this.initBgAnimation(t):l?.observe(t))}))}initAnimation(t){this.initializedAnimations.has(t)||t.hasAttribute("data-defer-block-animation")||(this.initializedAnimations.add(t),new q(t))}initBgAnimation(t){this.initializedBgAnimations.has(t)||(this.initializedBgAnimations.add(t),new W(t))}blocks(t){const e=t||document,n=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){const e=t.target;e.style.transform="translateZ(0)",e.style.transform="",n.unobserve(t.target)}}))}),{rootMargin:"0px",threshold:.05});e.querySelectorAll(".nectar-blocks-marquee img").forEach((t=>{n.observe(t)})),this.containerLinkOverlayHover()}containerLinkOverlayHover(){window.matchMedia?.("(hover: hover) and (pointer: fine)")?.matches&&[{overlaySelector:".nectar-blocks-column__link-overlay",containerSelector:".nectar-blocks-column"},{overlaySelector:".nectar-blocks-flex-box__link-overlay",containerSelector:".nectar-blocks-flex-box"}].forEach((({overlaySelector:t,containerSelector:e})=>{document.querySelectorAll(t).forEach((t=>{if(this.initializedOverlayHover.has(t))return;const n=t.closest(e);n&&(this.initializedOverlayHover.add(t),t.addEventListener("mouseenter",(()=>{n.querySelectorAll(".nectar-blocks-button .nectar__link").forEach((t=>{t.classList.remove("hover"),setTimeout((()=>{t.classList.add("hover")}),30)}))})),t.addEventListener("mouseleave",(()=>{n.querySelectorAll(".nectar-blocks-button .nectar__link").forEach((t=>t.classList.remove("hover")))})))}))}))}initBlocksInContainer(t){this.blockAnimations(t),tt(t),Z(t),J(t),G(t),this.blocks(t)}replayBlockAnimations(t){t.querySelectorAll("[data-nectar-block-animation]").forEach((t=>{const e=t;this.initializedAnimations.delete(t);const n=e.dataset.nectarBlockAnimation;let i=!1;if(n)try{const t=JSON.parse(o(n)),r=t?.scrollIntoView?.triggerDevices;r&&Array.isArray(r)&&r.length>0?r.forEach((t=>{e.setAttribute(`data-await-in-view-${t}`,"1")})):t?.scrollIntoView&&(e.setAttribute("data-await-in-view-desktop","1"),e.setAttribute("data-await-in-view-tablet","1"),e.setAttribute("data-await-in-view-mobile","1"));const s=t?.scrollIntoView?.animationType;s&&"none"!==s&&(i=!0)}catch{e.setAttribute("data-await-in-view-desktop","1"),e.setAttribute("data-await-in-view-tablet","1"),e.setAttribute("data-await-in-view-mobile","1"),i=!0}t.classList.remove("animation-initialized"),e.style.opacity=i?"0":"",e.style.transform="",e.style.clipPath="",e.style.willChange=""})),this.blockAnimations(t),setTimeout((()=>{ScrollTrigger.refresh()}),50)}events(){document.addEventListener("DOMContentLoaded",(()=>{const t=!!document.querySelector(".nectar-blocks-has-pin-animation"),e=performance.getEntriesByType("navigation")[0],n=e?.type,i="reload"===n||"back_forward"===n||!!window.location.hash;if(t&&0===window.scrollY&&i){let t=!1;const e=()=>{t||(t=!0,window.removeEventListener("scroll",e),this.blockAnimations())};window.addEventListener("scroll",e,{once:!0}),setTimeout(e,150)}else this.blockAnimations();tt(),Z(),J(),G(),this.blocks(),this.scrollElementIntoView(),r("nectar:init-blocks",(t=>this.initBlocksInContainer(t))),r("nectar:replay-block-animations",(t=>this.replayBlockAnimations(t)))})),window.addEventListener("load",(()=>{this.scrollElementIntoView(),"desktop"===this.device&&setTimeout((()=>{ScrollTrigger.refresh()}),100)}));const t="ontouchstart"in window||navigator.maxTouchPoints>0;t?screen.orientation&&screen.orientation.addEventListener("change",(()=>{this.resize(),this.debouncedResizeEnd()})):window.addEventListener("resize",(()=>{this.resize(),this.debouncedResizeEnd()})),t&&(screen.orientation?screen.orientation.addEventListener("change",(()=>{ScrollTrigger.refresh()})):window.addEventListener("orientationchange",(()=>{setTimeout((()=>{ScrollTrigger.refresh()}),400)}))),window.addEventListener("nectar-theme-state-change",this.onThemeStateChange.bind(this))}onThemeStateChange(){if(!window?.nectarThemeState)return;const t=ScrollTrigger.getAll();for(let e=0;e<t.length;e++){const n=window?.nectarThemeState?.disableScrollAnimations;n?t[e].disable(!1):t[e].enable()}}resizeEnd(){document.body.classList.remove("nectar-blocks-resizing")}resize(){document.body.classList.add("nectar-blocks-resizing"),this.winWidth=window.innerWidth,this.winHeight=window.innerHeight;const t=this.calculateDevice();this.device!==t&&(this.device=t,window.dispatchEvent(new Event("nectar-blocks-changed-device")))}scrollElementIntoView(){const t=new URLSearchParams(window.location.search).get("block-focus");if(!t)return;const e=document.querySelector(`#${CSS.escape(t)}`);e&&setTimeout((()=>{e.scrollIntoView({behavior:"auto",block:"center"})}),5)}calculateDevice(){return this.winWidth>=1025?"desktop":this.winWidth>=768?"tablet":"mobile"}}})();
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.