(function(){"use strict";function Le(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}class Oe{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const d=this.map.keys().next().value;this.delete(d)}this.map.set(e,t)}return this}}var me=Oe;const ge=Object.freeze({loose:!0}),Ae=Object.freeze({});var H=s=>s?typeof s!="object"?ge:s:Ae,q={exports:{}};const we="2.0.0",se=256,ve=Number.MAX_SAFE_INTEGER||9007199254740991,Te=16,Se=se-6;var M={MAX_LENGTH:se,MAX_SAFE_COMPONENT_LENGTH:Te,MAX_SAFE_BUILD_LENGTH:Se,MAX_SAFE_INTEGER:ve,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:we,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},x=typeof process=="object"&&{}&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...s)=>console.error("SEMVER",...s):()=>{};(function(s,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:d}=M,R=x;e=s.exports={};const h=e.re=[],F=e.safeRe=[],r=e.src=[],i=e.t={};let $=0;const O="[a-zA-Z0-9-]",T=[["\\s",1],["\\d",d],[O,o]],U=C=>{for(const[v,S]of T)C=C.split(`${v}*`).join(`${v}{0,${S}}`).split(`${v}+`).join(`${v}{1,${S}}`);return C},u=(C,v,S)=>{const B=U(v),m=$++;R(C,m,v),i[C]=m,r[m]=v,h[m]=new RegExp(v,S?"g":void 0),F[m]=new RegExp(B,S?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","\\d+"),u("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${O}*`),u("MAINVERSION",`(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})\\.(${r[i.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})\\.(${r[i.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${r[i.NUMERICIDENTIFIER]}|${r[i.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${r[i.NUMERICIDENTIFIERLOOSE]}|${r[i.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${r[i.PRERELEASEIDENTIFIER]}(?:\\.${r[i.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${r[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${r[i.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER",`${O}+`),u("BUILD",`(?:\\+(${r[i.BUILDIDENTIFIER]}(?:\\.${r[i.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${r[i.MAINVERSION]}${r[i.PRERELEASE]}?${r[i.BUILD]}?`),u("FULL",`^${r[i.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${r[i.MAINVERSIONLOOSE]}${r[i.PRERELEASELOOSE]}?${r[i.BUILD]}?`),u("LOOSE",`^${r[i.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${r[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${r[i.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:\\.(${r[i.XRANGEIDENTIFIER]})(?:${r[i.PRERELEASE]})?${r[i.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${r[i.XRANGEIDENTIFIERLOOSE]})(?:${r[i.PRERELEASELOOSE]})?${r[i.BUILD]}?)?)?`),u("XRANGE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${r[i.GTLT]}\\s*${r[i.XRANGEPLAINLOOSE]}$`),u("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),u("COERCE",`${r[i.COERCEPLAIN]}(?:$|[^\\d])`),u("COERCEFULL",r[i.COERCEPLAIN]+`(?:${r[i.PRERELEASE]})?(?:${r[i.BUILD]})?(?:$|[^\\d])`),u("COERCERTL",r[i.COERCE],!0),u("COERCERTLFULL",r[i.COERCEFULL],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${r[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",u("TILDE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${r[i.LONETILDE]}${r[i.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${r[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",u("CARET",`^${r[i.LONECARET]}${r[i.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${r[i.LONECARET]}${r[i.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${r[i.GTLT]}\\s*(${r[i.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${r[i.GTLT]}\\s*(${r[i.LOOSEPLAIN]}|${r[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${r[i.XRANGEPLAIN]})\\s+-\\s+(${r[i.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${r[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${r[i.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(q,q.exports);var W=q.exports;const re=/^[0-9]+$/,ie=(s,e)=>{const t=re.test(s),o=re.test(e);return t&&o&&(s=+s,e=+e),s===e?0:t&&!o?-1:o&&!t?1:sie(e,s)};const z=x,{MAX_LENGTH:ne,MAX_SAFE_INTEGER:k}=M,{safeRe:oe,t:ae}=W,Ce=H,{compareIdentifiers:G}=be;var Y=class D{constructor(e,t){if(t=Ce(t),e instanceof D){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ne)throw new TypeError(`version is longer than ${ne} characters`);z("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const o=e.trim().match(t.loose?oe[ae.LOOSE]:oe[ae.FULL]);if(!o)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>k||this.major<0)throw new TypeError("Invalid major version");if(this.minor>k||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>k||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(d=>{if(/^[0-9]+$/.test(d)){const R=+d;if(R>=0&&R=0;)typeof this.prerelease[R]=="number"&&(this.prerelease[R]++,R=-2);if(R===-1){if(t===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(d)}}if(t){let R=[t,d];o===!1&&(R=[t]),G(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=R):this.prerelease=R}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const le=Y;var X=(s,e,t)=>new le(s,t).compare(new le(e,t));const ye=X;var Pe=(s,e,t)=>ye(s,e,t)===0;const De=X;var Fe=(s,e,t)=>De(s,e,t)!==0;const Ge=X;var Xe=(s,e,t)=>Ge(s,e,t)>0;const Ue=X;var Be=(s,e,t)=>Ue(s,e,t)>=0;const je=X;var Ve=(s,e,t)=>je(s,e,t)<0;const _e=X;var xe=(s,e,t)=>_e(s,e,t)<=0;const ze=Pe,ke=Fe,He=Xe,qe=Be,Me=Ve,We=xe;var Ye=(s,e,t,o)=>{switch(e){case"===":return typeof s=="object"&&(s=s.version),typeof t=="object"&&(t=t.version),s===t;case"!==":return typeof s=="object"&&(s=s.version),typeof t=="object"&&(t=t.version),s!==t;case"":case"=":case"==":return ze(s,t,o);case"!=":return ke(s,t,o);case">":return He(s,t,o);case">=":return qe(s,t,o);case"<":return Me(s,t,o);case"<=":return We(s,t,o);default:throw new TypeError(`Invalid operator: ${e}`)}},K,ce;function Ke(){if(ce)return K;ce=1;const s=Symbol("SemVer ANY");class e{static get ANY(){return s}constructor($,O){if(O=t(O),$ instanceof e){if($.loose===!!O.loose)return $;$=$.value}$=$.trim().split(/\s+/).join(" "),h("comparator",$,O),this.options=O,this.loose=!!O.loose,this.parse($),this.semver===s?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}parse($){const O=this.options.loose?o[d.COMPARATORLOOSE]:o[d.COMPARATOR],T=$.match(O);if(!T)throw new TypeError(`Invalid comparator: ${$}`);this.operator=T[1]!==void 0?T[1]:"",this.operator==="="&&(this.operator=""),T[2]?this.semver=new F(T[2],this.options.loose):this.semver=s}toString(){return this.value}test($){if(h("Comparator.test",$,this.options.loose),this.semver===s||$===s)return!0;if(typeof $=="string")try{$=new F($,this.options)}catch{return!1}return R($,this.operator,this.semver,this.options)}intersects($,O){if(!($ instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new r($.value,O).test(this.value):$.operator===""?$.value===""?!0:new r(this.value,O).test($.semver):(O=t(O),O.includePrerelease&&(this.value==="<0.0.0-0"||$.value==="<0.0.0-0")||!O.includePrerelease&&(this.value.startsWith("<0.0.0")||$.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&$.operator.startsWith(">")||this.operator.startsWith("<")&&$.operator.startsWith("<")||this.semver.version===$.semver.version&&this.operator.includes("=")&&$.operator.includes("=")||R(this.semver,"<",$.semver,O)&&this.operator.startsWith(">")&&$.operator.startsWith("<")||R(this.semver,">",$.semver,O)&&this.operator.startsWith("<")&&$.operator.startsWith(">")))}}K=e;const t=H,{safeRe:o,t:d}=W,R=Ye,h=x,F=Y,r=he();return K}var Z,ue;function he(){if(ue)return Z;ue=1;const s=/\s+/g;class e{constructor(n,E){if(E=d(E),n instanceof e)return n.loose===!!E.loose&&n.includePrerelease===!!E.includePrerelease?n:new e(n.raw,E);if(n instanceof R)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=E,this.loose=!!E.loose,this.includePrerelease=!!E.includePrerelease,this.raw=n.trim().replace(s," "),this.set=this.raw.split("||").map(l=>this.parseRange(l.trim())).filter(l=>l.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const l=this.set[0];if(this.set=this.set.filter(f=>!C(f[0])),this.set.length===0)this.set=[l];else if(this.set.length>1){for(const f of this.set)if(f.length===1&&v(f[0])){this.set=[f];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let n=0;n0&&(this.formatted+="||");const E=this.set[n];for(let l=0;l0&&(this.formatted+=" "),this.formatted+=E[l].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(n){const l=((this.options.includePrerelease&&U)|(this.options.loose&&u))+":"+n,f=o.get(l);if(f)return f;const c=this.options.loose,p=c?r[i.HYPHENRANGELOOSE]:r[i.HYPHENRANGE];n=n.replace(p,y(this.options.includePrerelease)),h("hyphen replace",n),n=n.replace(r[i.COMPARATORTRIM],$),h("comparator trim",n),n=n.replace(r[i.TILDETRIM],O),h("tilde trim",n),n=n.replace(r[i.CARETTRIM],T),h("caret trim",n);let L=n.split(" ").map(A=>B(A,this.options)).join(" ").split(/\s+/).map(A=>w(A,this.options));c&&(L=L.filter(A=>(h("loose invalid filter",A,this.options),!!A.match(r[i.COMPARATORLOOSE])))),h("range list",L);const I=new Map,g=L.map(A=>new R(A,this.options));for(const A of g){if(C(A))return[A];I.set(A.value,A)}I.size>1&&I.has("")&&I.delete("");const b=[...I.values()];return o.set(l,b),b}intersects(n,E){if(!(n instanceof e))throw new TypeError("a Range is required");return this.set.some(l=>S(l,E)&&n.set.some(f=>S(f,E)&&l.every(c=>f.every(p=>c.intersects(p,E)))))}test(n){if(!n)return!1;if(typeof n=="string")try{n=new F(n,this.options)}catch{return!1}for(let E=0;Ea.value==="<0.0.0-0",v=a=>a.value==="",S=(a,n)=>{let E=!0;const l=a.slice();let f=l.pop();for(;E&&l.length;)E=l.every(c=>f.intersects(c,n)),f=l.pop();return E},B=(a,n)=>(h("comp",a,n),a=te(a,n),h("caret",a),a=Q(a,n),h("tildes",a),a=Ie(a,n),h("xrange",a),a=N(a,n),h("stars",a),a),m=a=>!a||a.toLowerCase()==="x"||a==="*",Q=(a,n)=>a.trim().split(/\s+/).map(E=>ee(E,n)).join(" "),ee=(a,n)=>{const E=n.loose?r[i.TILDELOOSE]:r[i.TILDE];return a.replace(E,(l,f,c,p,L)=>{h("tilde",a,l,f,c,p,L);let I;return m(f)?I="":m(c)?I=`>=${f}.0.0 <${+f+1}.0.0-0`:m(p)?I=`>=${f}.${c}.0 <${f}.${+c+1}.0-0`:L?(h("replaceTilde pr",L),I=`>=${f}.${c}.${p}-${L} <${f}.${+c+1}.0-0`):I=`>=${f}.${c}.${p} <${f}.${+c+1}.0-0`,h("tilde return",I),I})},te=(a,n)=>a.trim().split(/\s+/).map(E=>j(E,n)).join(" "),j=(a,n)=>{h("caret",a,n);const E=n.loose?r[i.CARETLOOSE]:r[i.CARET],l=n.includePrerelease?"-0":"";return a.replace(E,(f,c,p,L,I)=>{h("caret",a,f,c,p,L,I);let g;return m(c)?g="":m(p)?g=`>=${c}.0.0${l} <${+c+1}.0.0-0`:m(L)?c==="0"?g=`>=${c}.${p}.0${l} <${c}.${+p+1}.0-0`:g=`>=${c}.${p}.0${l} <${+c+1}.0.0-0`:I?(h("replaceCaret pr",I),c==="0"?p==="0"?g=`>=${c}.${p}.${L}-${I} <${c}.${p}.${+L+1}-0`:g=`>=${c}.${p}.${L}-${I} <${c}.${+p+1}.0-0`:g=`>=${c}.${p}.${L}-${I} <${+c+1}.0.0-0`):(h("no pr"),c==="0"?p==="0"?g=`>=${c}.${p}.${L}${l} <${c}.${p}.${+L+1}-0`:g=`>=${c}.${p}.${L}${l} <${c}.${+p+1}.0-0`:g=`>=${c}.${p}.${L} <${+c+1}.0.0-0`),h("caret return",g),g})},Ie=(a,n)=>(h("replaceXRanges",a,n),a.split(/\s+/).map(E=>Ne(E,n)).join(" ")),Ne=(a,n)=>{a=a.trim();const E=n.loose?r[i.XRANGELOOSE]:r[i.XRANGE];return a.replace(E,(l,f,c,p,L,I)=>{h("xRange",a,l,f,c,p,L,I);const g=m(c),b=g||m(p),A=b||m(L),_=A;return f==="="&&_&&(f=""),I=n.includePrerelease?"-0":"",g?f===">"||f==="<"?l="<0.0.0-0":l="*":f&&_?(b&&(p=0),L=0,f===">"?(f=">=",b?(c=+c+1,p=0,L=0):(p=+p+1,L=0)):f==="<="&&(f="<",b?c=+c+1:p=+p+1),f==="<"&&(I="-0"),l=`${f+c}.${p}.${L}${I}`):b?l=`>=${c}.0.0${I} <${+c+1}.0.0-0`:A&&(l=`>=${c}.${p}.0${I} <${c}.${+p+1}.0-0`),h("xRange return",l),l})},N=(a,n)=>(h("replaceStars",a,n),a.trim().replace(r[i.STAR],"")),w=(a,n)=>(h("replaceGTE0",a,n),a.trim().replace(r[n.includePrerelease?i.GTE0PRE:i.GTE0],"")),y=a=>(n,E,l,f,c,p,L,I,g,b,A,_)=>(m(l)?E="":m(f)?E=`>=${l}.0.0${a?"-0":""}`:m(c)?E=`>=${l}.${f}.0${a?"-0":""}`:p?E=`>=${E}`:E=`>=${E}${a?"-0":""}`,m(g)?I="":m(b)?I=`<${+g+1}.0.0-0`:m(A)?I=`<${g}.${+b+1}.0-0`:_?I=`<=${g}.${b}.${A}-${_}`:a?I=`<${g}.${b}.${+A+1}-0`:I=`<=${I}`,`${E} ${I}`.trim()),V=(a,n,E)=>{for(let l=0;l0){const f=a[l].semver;if(f.major===n.major&&f.minor===n.minor&&f.patch===n.patch)return!0}return!1}return!0};return Z}const Ze=he();var Je=(s,e,t)=>{try{e=new Ze(e,t)}catch{return!1}return e.test(s)};const Ee=Le(Je);class J{constructor(){this.dependencies=[],this.await=[]}static init(){return window.hasOwnProperty("FlowbaseBoosters")||(window.FlowbaseBoosters={}),window.FlowbaseBoosters.hasOwnProperty("deps")||(window.FlowbaseBoosters.deps=new J),window.FlowbaseBoosters.deps}register(e){this.dependencies.push(e);const t=e.get();for(const o of this.await)o.name===e.name&&Ee(e.version,o.version)&&o.resolve(t)}get(e,t){return new Promise((o,d)=>{const R=this.dependencies.find(h=>e===h.name&&Ee(h.version,t));if(!R){const h={name:e,version:t,resolve:F=>o(F)};setTimeout(()=>{d(),this.await.splice(this.await.indexOf(h),1)},1e4),this.await.push(h)}R&&o(R.get())})}}class Qe{constructor(){this.data={}}set(e,t){this.data[e]=t}get(e){return this.data[e]}}const fe="fb-booster-initialized",P={Dependencies:J,Booster:class{constructor(e){this.options=e}log(e,t){const o=` display: inline-block; padding: 4px 6px; border-radius: 4px; line-height: 1.5em; color: #282735; background: linear-gradient(45deg, rgba(185, 205, 255, 0.4) 0%, rgba(201, 182, 255, 0.4) 33%, rgba(239, 184, 255, 0.4) 66%, rgba(255, 210, 177, 0.4) 100%); `,d=[`%c[${this.options.title}] ${e}. Link to documentation ${this.options.documentationLink}`,o];t?(console.group(...d),Array.isArray(t)?console.log(...t):console.log(t),console.groupEnd()):console.log(...d)}validate(e,t,o){if(!e.validate)return!0;if(typeof e.validate=="function"){if(!e.validate(o))return this.log(`Invalid value "${o}" for attribute "${t}"`),!1}else if(!e.validate.includes(o))return this.log(`Invalid value "${o}" for attribute "${t}"`,[`%cPossible values:%c `+e.validate.map(d=>`• ${d}`).join(` `),"font-weight: 700;","font-weight: initial;"]),!1;return!0}parse(e){const t=new Qe;for(const o in this.options.attributes){const d=this.options.attributes[o],R=e.getAttribute(o);if(!R||!this.validate(d,o,R)){t.set(o,d.defaultValue);continue}let h=R;d.parse&&(h=d.parse(R)??d.defaultValue),t.set(o,h)}this.options.apply.call(this,e,t)}getElements(){return document.querySelectorAll(`[${this.options.name}]`)}init(){this.getElements().forEach(t=>{t.hasAttribute(fe)||(t.setAttribute(fe,"true"),this.parse(t))})}},parse:{stringToBoolean:s=>s!=="false"},validation:{isValidCSSPropertyValue:(s,e)=>["auto","initial","inherit","unset"].includes(e)?!1:CSS.supports(s,e),isValidType:(s,e)=>e.includes(s),isBoolean:s=>/^(true|false)$/.test(s),isNumber:s=>!isNaN(Number(s))}};var de=(s=>(s.Left="left",s.Right="right",s.Top="top",s.Bottom="bottom",s))(de||{}),$e=(s=>(s.InView="in-view",s.OnLoad="on-load",s))($e||{});function pe(){if(window.Webflow)try{const s=window.Webflow.require("ix2");s&&(s.init(),document.dispatchEvent(new Event("readystatechange")))}catch(s){this.log("Failed to initialize Webflow interactions",{error:s})}}const et=new P.Booster({name:"fb-carousel",attributes:{"fb-carousel-delay":{defaultValue:0,validate:P.validation.isNumber,parse:Number},"fb-carousel-direction":{defaultValue:"left",validate:Object.values(de)},"fb-carousel-overflow":{defaultValue:!1,validate:P.validation.isBoolean,parse:P.parse.stringToBoolean},"fb-carousel-overflow-size":{defaultValue:0,validate:P.validation.isNumber,parse:Number},"fb-carousel-pauseable":{defaultValue:!1,validate:P.validation.isBoolean,parse:P.parse.stringToBoolean},"fb-carousel-speed":{defaultValue:1e4,validate:P.validation.isNumber,parse:Number},"fb-carousel-trigger":{defaultValue:"on-load",validate:Object.values($e)},"fb-carousel-ignore-interactions":{defaultValue:!1,validate:P.validation.isBoolean,parse:P.parse.stringToBoolean}},apply(s,e){const t=s.querySelector("[fb-carousel-content]");if(!t)return this.log("Required attribute is missing");const o=[];for(const N of Array.from(t.childNodes))N instanceof HTMLElement?(N.style.flexShrink="0",N.style.flexGrow="0",N.style.willChange="transform",o.push(N)):t.removeChild(N);if(!o.length)return;const d=e.get("fb-carousel-ignore-interactions"),R=e.get("fb-carousel-direction"),h=R==="top"||R==="bottom";s.style.overflow=e.get("fb-carousel-overflow")?"visible":"hidden",t.style.position="relative",t.style.display="flex",t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.overflow="visible",t.style.willChange="transform",t.style.flexDirection=h?"column":"row";const r=(()=>{const N=()=>{const n=document.createElement("div");return n.style.width="0",n.style.height="0",n.setAttribute("aria-hidden","true"),n},w=N(),y=N();t.prepend(w),t.append(y);const V=w.getBoundingClientRect()[h?"top":"left"];w.remove();const a=y.getBoundingClientRect()[h?"top":"left"]-V;return y.remove(),Number(a.toFixed(2))})(),i=s.getBoundingClientRect(),$={width:Number(i.width.toFixed(2)),height:Number(i.height.toFixed(2))},O=e.get("fb-carousel-overflow-size");let T=0;if(O){T=Math.ceil(O/r);const N=-1*(r*T)+"px";h?t.style.top=N:t.style.left=N}const U=()=>{const{width:N,height:w}=s.getBoundingClientRect();return Math.ceil((h?w:N)/r)+T*2};let u=U();const C=N=>{const w=Array.from({length:N},()=>o.map(y=>{const V=y.cloneNode(!0);return V.setAttribute("aria-hidden","true"),V}));for(const y of w.flat())t.appendChild(y)};C(u),d||pe.call(this);const v=s.getBoundingClientRect(),S={width:Number(v.width.toFixed(2)),height:Number(v.height.toFixed(2))};h?S.height&&S.height>$.height&&(s.style.height=$.height+"px"):S.width&&S.width>$.width&&(s.style.width=$.width+"px");const B=h?"Y":"X",m=0,Q=-1*r,ee=R==="bottom"||R==="right",te=new KeyframeEffect(t,[{transform:`translate${B}(${m}px)`},{transform:`translate${B}(${Q}px)`}],{delay:e.get("fb-carousel-delay"),duration:e.get("fb-carousel-speed"),direction:ee?"reverse":"normal",easing:"linear",iterations:1/0}),j=new Animation(te);if(e.get("fb-carousel-pauseable")){const N=()=>j.pause(),w=()=>j.play();s.addEventListener("mouseenter",N,{passive:!0}),s.addEventListener("mouseleave",w,{passive:!0}),s.addEventListener("touchstart",N,{passive:!0}),s.addEventListener("touchend",w,{passive:!0}),s.addEventListener("touchcancel",w,{passive:!0})}if(e.get("fb-carousel-trigger")==="in-view"){const N=new IntersectionObserver(w=>{for(const y of w)if(y.isIntersecting){j.play(),N.disconnect();break}},{threshold:h?.5:1});N.observe(s)}else j.play();new ResizeObserver(()=>{const N=U();if(N!==u){if(Net.init();document.readyState==="complete"?Re():window.addEventListener("load",Re)})();