1(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["143"],{7625(e){(()=>{"use strict";var t={d:(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{Arr:()=>i,Bool:()=>n,Err:()=>u,Json:()=>s,Num:()=>o,Obj:()=>a,Str:()=>l,pipe:()=>I});var i={};t.r(i),t.d(i,{is:()=>b,read:()=>c,readWithItemReader:()=>d});var n={};t.r(n),t.d(n,{read:()=>h});var s={};t.r(s),t.d(s,{read:()=>m});var o={};t.r(o),t.d(o,{read:()=>p});var a={};t.r(a),t.d(a,{hasKey:()=>y,hasKeys:()=>v,isEmpty:()=>k,isObject:()=>g,length:()=>z,read:()=>A,readAsUnknownDict:()=>E,readKey:()=>_,readNoArray:()=>S,readWithValueReader:()=>w});var l={};t.r(l),t.d(l,{is:()=>T,read:()=>M});var u={};t.r(u),t.d(u,{isAllT:()=>N,isNullish:()=>C,isT:()=>D,onEmpty:()=>B,onNullish:()=>O,onUndefined:()=>F,throwOnNullish:()=>q});var c=function(e){if(Array.isArray(e))return e},d=function(e){return function(t){if(Array.isArray(t)){var r=t.map(e);return r.some(function(e){return null==e||"number"==typeof e&&Number.isNaN(e)})?void 0:r}}},b=function(e){return!!c(e)},h=function(e){if("boolean"==typeof e)return e},m=function(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){return}},p=function(e){switch(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e){case"string":var t=""!==e?Number(e):NaN;return isNaN(t)?void 0:t;case"number":return isNaN(e)?void 0:e;default:return}};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}var g=function(e){return"object"==typeof e&&null!==e},y=function(e,t){return e in t},v=function(e,t){return e.every(function(e){return y(e,t)})},A=function(e){if(g(e))return e},S=function(e){if(g(e)&&!Array.isArray(e))return e},E=function(e){if(g(e))return e},w=function(e){return function(t){var r,i=E(t);if(void 0!==i){var n={},s=!0,o=!1,a=void 0;try{for(var l,u=Object.entries(i)[Symbol.iterator]();!(s=(l=u.next()).done);s=!0){var c=(r=l.value,function(e){if(Array.isArray(e))return e}(r)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,n=[],s=!0,o=!1;try{for(t=t.call(e);!(s=(r=t.next()).done)&&(n.push(r.value),2!==n.length);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(o)throw i}}return n}}(r)||function(e){if(e){if("string"==typeof e)return f(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,2):void 0}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=c[0],b=c[1],h=e(b);if(void 0===h)return;n[d]=h}}catch(e){o=!0,a=e}finally{try{s||null==u.return||u.return()}finally{if(o)throw a}}return n}}},_=function(e){return function(t){return y(e,t)?t[e]:void 0}},z=function(e){return Object.keys(e).length},k=function(e){return 0===z(e)};function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function P(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function L(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}function I(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=function(e){if(Array.isArray(e))return e}(t)||P(t)||L(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=i[0],s=i.slice(1);return function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return s.reduce(function(e,t){return t(e)},n.apply(void 0,function(e){if(Array.isArray(e))return x(e)}(t)||P(t)||L(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}}var M=function(e){switch(void 0===e?"undefined":e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e){case"string":return e;case"number":return isNaN(e)?void 0:e.toString();default:return}},T=function(e){return"string"==typeof e};function F(e,t){return void 0===e?t:e}var C=function(e){return null==e||"number"==typeof e&&Number.isNaN(e)};function O(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length?function(e){return C(e)?t[0]:e}:C(t[1])?t[0]:t[1]}var q=function(e){return function(t){if(C(t))throw Error(e);return t}};function B(e,t,r){return C(t)||t===e?r:t}var D=function(e){return!C(e)},N=function(e){return!C(e)&&""!==e};e.exports=r})()},6474(e,t,r){"use strict";r.r(t),r.d(t,{validateForm:()=>M,default:()=>L,showErrorMessage:()=>P,clearFormMessages:()=>q});var i,n=r(7625),s=r(1669),o=r.n(s),a=r(5043),l=((i={}).Text="Text",i.Image="Image",i.Button="Button",i.Icon="Icon",i.Spacer="Spacer",i.Map="Map",i.AnimatedHeadline="AnimatedHeadline",i.FormField="FormField",i.FormFields="FormFields",i.Form2="Form2",i.Line="Line",i.Menu="Menu",i.MenuSimple="MenuSimple",i.Login="Login",i.Translation="Translation",i.Posts="Posts",i.Search="Search",i.ImageGallery="ImageGallery",i.Video="Video",i.Audio="Audio",i.VideoPlaylist="VideoPlaylist",i.IconText="IconText",i.Lottie="Lottie",i.Embed="Embed",i.StarRating="StarRating",i.Alert="Alert",i.Counter="Counter",i.Countdown2="Countdown2",i.ProgressBar="ProgressBar",i.Calendly="Calendly",i.Carousel="C
1arousel",i.CarouselItems="Carousel.Items",i.Tabs="Tabs",i.Tab="Tab",i.Accordion="Accordion",i.AccordionItem="AccordionItem",i.Switcher="Switcher",i.SwitcherTab="SwitcherTab",i.Table="Table",i.Timeline="Timeline",i.Facebook="Facebook",i.Twitter="Twitter",i.FacebookComments="FacebookComments",i.Row="Row",i.AssetsPosts="AssetsPosts",i.ProtectedPage="ProtectedPage",i.ResetPassword="ResetPassword",i.PostTitle="WPPostsTitle",i.Cart="Cart",i.MyAccount="MyAccount",i.RichText="RichText",i.Column="Column",i.Leadific="Leadific",i.StoryItem="StoryItem",i.StoryButton="StoryButton",i.StoryIcon="StoryIcon",i.StoryEmbed="StoryEmbed",i.StoryText="StoryText",i.StoryMap="StoryMap",i.StoryProgressBar="StoryProgressBar",i.StoryLine="StoryLine",i.StoryCountdown2="StoryCountdown2",i.StoryCounter="StoryCounter",i.StoryShape="StoryShape",i.StoryForm2="StoryForm2",i.StoryStarRating="StoryStarRating",i.StoryLottie="StoryLottie",i.StoryImage="StoryImage",i.StoryVideo="StoryVideo",i.StoryLeadific="StoryLeadific",i.WOOProductTitle="WOOProductTitle",i.WOOExcerpt="WOOExcerpt",i.WOOProductContent="WOOProductContent",i.WOOPrice="WOOPrice",i.WOOGallery="WOOGallery",i.WOOAddToCart="WOOAddToCart",i.WOOStock="WOOStock",i.WOOSku="WOOSku",i.WOOProductMeta="WOOProductMeta",i.WOORating="WOORating",i.WOOAttributes="WOOAttributes",i.WOOUpsell="WOOUpsell",i.WOOBreadcrumbs="WOOBreadcrumbs",i.WOOCategories="WOOCategories",i.WOOPages="WOOPages",i.WOOCart="WOOCart",i.WPPostContent="WPPostContent",i.WPPostInfo="WPPostInfo",i.WPBreadcrumbs="WPBreadcrumbs",i.WPPostNavigation="WPPostNavigation",i.WPFeaturedImage="WPFeaturedImage",i.WPSidebar="WPSidebar",i.WPCustomShortcode="WPCustomShortcode",i.UserFirstName="UserFirstName",i.UserLastName="UserLastName",i.UserEmail="UserEmail",i.UserPhoneNumber="UserPhoneNumber",i.UserRoles="UserRoles",i.UserUsername="UserUsername",i.Products="Products",i.Review="Review",i.Archive="Archive",i.AddToCart="AddToCart",i.PostExcerpt="WPPostExcerpt",i.ShopifyDescription="ShopifyDescription",i.ShopifyImage="ShopifyImage",i.BlogPostExcerpt="BlogPostExcerpt",i.Variant="Variant",i.PostInfo="PostInfo",i.PostNavigation="PostNavigation",i.Breadcrumbs="Breadcrumbs",i.Radio="Radio",i.Section="Section",i.SectionItem="SectionItem",i.SectionMegaMenu="SectionMegaMenu",i.SectionPopup2="SectionPopup2",i.SectionPopup="SectionPopup",i.SectionHeader="SectionHeader",i.SectionHeaderItem="SectionHeaderItem",i.SectionHeaderStickyItem="SectionHeaderStickyItem",i.SectionFooter="SectionFooter",i.Story="Story",i.Checkbox="Checkbox",i.Calculated="Calculated",i.TableOfContents="TableOfContents",i.Flipbox="Flipbox",i.FlipboxItems="Flipbox.Items",i.FlipboxItem="FlipboxItem",i.FlipboxItemItems="FlipboxItem.Items",i.ShareButton="ShareButton",i.ShareButtonItem="ShareButtonItem",i.ShareButtonItemItems="ShareButton.Items",i.Paypal="Paypal",i.Form2Steps="Form2Steps",i.Form2StepsItems="Form2Steps.Items",i.Form2Step="Form2Step",i.VideoPlaylistItem="VideoPlaylistItem",i.Form2FieldOption="Form2FieldOption",i.Form2Field="Form2Field",i.Form2Fields="Form2Fields",i.Select="Select",i.Hidden="Hidden",i.Form2FieldItems="Form2FieldItems",i.InstagramFeed="InstagramFeed",i.GlobalBlock="GlobalBlock",i.LinkedinFeed="LinkedinFeed",i.Pinterest="Pinterest",i.Chart="Chart",i.EmbedCode="EmbedCode",i.ThirdParty="ThirdParty",i.ThirdPartyItems="ThirdParty.Items",i.Cloneable="Cloneable",i.Wrapper="Wrapper",i.StoryWrapper="StoryWrapper",i.Page="Page",i.PagePopup="PagePopup",i.PageStory="PageStory",i.TimelineTab="TimelineTab",i.Shape="Shape",i.SoundCloud="SoundCloud",i.Countdown="Countdown",i.MenuItem="MenuItem",i.LoginField="LoginField",i.RegisterField="RegisterField",i.ForgotPasswordField="ForgotPasswordField",i.ResetPasswordField="ResetPasswordField",i.Form="Form",i.FacebookButton="FacebookButton",i.FacebookEmbed="FacebookEmbed",i.FacebookPage="FacebookPage",i.FacebookGroup="FacebookGroup",i.TableBody="TableBody",i.TableHead="TableHead",i.TableAside="TableAside",i.TableRow="TableRow",i.TableCol="TableCol",i.NotFound="NotFound",i.WPNavigation="WPNavigation",i.WOOProductPage="WOOProductPage",i.WOOProducts="WOOProducts",i.WPPosts="WPPosts",i.Wrapper2="Wrapper2",i.GoogleSearch="GoogleSearch",i.ShoppingBag="ShoppingBag",i.ShopPosts="ShopPosts",i.ShopCategories="ShopCategories",i.ShopifyTitle="ShopifyTitle",i.Product="Product",i.Quantity="Quantity",i.ProductMetafield="ProductMetafield",i.Vendor="Vendor",i.BlogPostMeta="BlogPostMeta",i.Price="Price",i.ProductList="ProductList",i.CollectionList="CollectionList",i.BlogPostList="BlogPostList",i.MinistryBrandsGroupLayout="MinistryBrandsGroupLayout",i.MinistryBrandsGroupSlider="MinistryBrandsGroupSlider",i.MinistryBrandsEventLayout="MinistryBrandsEventLayout",i.MinistryBrandsEventCalendar="MinistryBrandsEventCalendar",i.MinistryBrandsSermonLayout="MinistryBrandsSermonLayout",i.MinistryBrandsSermonList="MinistryBrandsSermonList",i.MinistryBrandsStaffList="MinistryBrandsStaffList",i.MinistryBrandsSermonFeatured="MinistryBrandsSermonFeatured",i.MinistryBrandsSermonDetail
1="MinistryBrandsSermonDetail",i.MinistryBrandsGroupList="MinistryBrandsGroupList",i.MinistryBrandsGroupDetail="MinistryBrandsGroupDetail",i.MinistryBrandsEventFeatured="MinistryBrandsEventFeatured",i.MinistryBrandsGroupFeatured="MinistryBrandsGroupFeatured",i.MinistryBrandsEventList="MinistryBrandsEventList",i.MinistryBrandsEventDetail="MinistryBrandsEventDetail",i.MinistryBrandsFormWidget="MinistryBrandsFormWidget",i.MinistryBrandsPrayerWidget="MinistryBrandsPrayerWidget",i.MinistryBrandsStaffFeatured="MinistryBrandsStaffFeatured",i.MinistryBrandsArticleLayout="MinistryBrandsArticleLayout",i.MinistryBrandsStaffLayout="MinistryBrandsStaffLayout",i.MinistryBrandsStaffDetail="MinistryBrandsStaffDetail",i.MinistryBrandsArticleList="MinistryBrandsArticleList",i.MinistryBrandsArticleDetail="MinistryBrandsArticleDetail",i.MinistryBrandsArticleFeatured="MinistryBrandsArticleFeatured",i.EcwidProducts="EcwidProducts",i.EcwidShoppingBag="EcwidShoppingBag",i.EcwidSearch="EcwidSearch",i.EcwidPrice="EcwidPrice",i.EcwidAddToCart="EcwidAddToCart",i.EcwidProduct="EcwidProduct",i.EcwidCart="EcwidCart",i.EcwidMyAccount="EcwidMyAccount",i.EcwidFavorites="EcwidFavorites",i.ImageComparison="ImageComparison",i);(0,a.q)(l);var u=r(9322),c=r(7542),d=r(2540),b=r(6513),h=r(7617),m=r(9891);let p=(e,t)=>t.includes(`{{${e}}}+`)||t.includes(`+{{${e}}}`)||t.includes(`{{${e}}}-`)||t.includes(`-{{${e}}}`)?0:t.includes(`{{${e}}}*`)||t.includes(`*{{${e}}}`)||t.includes(`{{${e}}}/`)||t.includes(`/{{${e}}}`)?1:0,f=(e,t,r,i,s,o,a,l,u)=>{if(r[e]=t,i=s,o.forEach((e,t)=>{i=((e,t,r,i)=>{let n=r;if(e)n=n.replace(`{{${t}}}`,e);else{let e=i(t,r);n=n.replace(`{{${t}}}`,String(e))}return n})(r[t],e,i,p)}),i&&a){let e=a.closest(".brz-forms2__calculated");try{var c;let t=new u(i,{memoization:!0}).evaluate({}),r=t===1/0?"0":null!=(c=n.Str.read(t))?c:"0";a.innerText=r,e&&e.classList.remove("brz-forms2__calculated--invalid"),l&&(l.value=r)}catch(t){a.innerText="Invalid formula",e&&e.classList.add("brz-forms2__calculated--invalid")}}else a&&(a.innerText="0"),l&&(l.value="0")},g=e=>{Array.from(e).forEach(e=>{e.style.display="none"})},y=(e,t,r)=>{e.length&&r&&(g(e),1===t?e[1].style.display="flex":t===r?(e[0].style.display="flex",e[2].style.display="flex"):(e[0].style.display="flex",e[1].style.display="flex"))},v=(e,t,r)=>{e.length&&t.length&&(Array.from(e).forEach(e=>{e.removeAttribute("style")}),Array.from(t).forEach(e=>{e.removeAttribute("style")}),e.forEach((e,t)=>{r-1<t&&(e.style.backgroundColor="transparent")}),t.forEach((e,t)=>{t!==r-1&&(e.style.display="none")}))},A=(e,t,r)=>{e.length&&("next"===r&&(e[t-1].classList.remove("brz-form-ms-indicator__active"),e[t].classList.add("brz-form-ms-indicator__active")),"prev"===r&&(e[t-1].classList.remove("brz-form-ms-indicator__active"),e[t-2].classList.add("brz-form-ms-indicator__active")))};var S=r(6397),E=r(7297);let w=!0,_='.brz-g-recaptcha[data-sitekey]:not([data-sitekey=""])',z={success:"Your email was sent successfully",error:"Your email was not sent",empty:"Please fill in the required fields",invalid:"Please check your entry and try again","invalid-email":"Please enter a valid email address (e.g., [email protected])"},k=new Map,x=new Map,P=e=>{let t=!!e.querySelector(".brz-forms2__item--error-required"),r=!!e.querySelector(".brz-forms2__item--error-pattern .brz-forms2__field-email"),i=t?S.q.Empty:r?S.q.InvalidEmail:S.q.Invalid,{brzEmpty:n}=e.dataset,s=O({status:i,form:e,text:i===S.q.Empty?n:void 0});s&&B(e,s)};function L(e){let t,i=e.get(0);if(!i)return;let s=(0,d.pk)({name:"form-version",value:"'2'"}),a=i.querySelectorAll(_);a.length&&(function(){let e="brz-recaptcha__script";if(document.getElementById(e))return;let t=document.createElement("script");t.setAttribute("src","https://www.google.com/recaptcha/api.js?onload=brzOnloadRecaptchaCallback&render=explicit"),t.setAttribute("async","async"),t.setAttribute("defer","defer"),t.setAttribute("id",e),document.body.append(t)}(),r.g.brzFormV2Captcha=e=>{let t=i.querySelector(`${s}.brz-forms2--pending`);if(t){var o;let i=C(t);null==(o=F(t,{formData:i.formData,data:i.data.concat([{name:"g-recaptcha-response",value:e}])}))||o.then(()=>{t.classList.remove("brz-forms2--pending");let e=t.querySelector(".brz-g-recaptcha");if(e){var i;let t=null!=(i=n.Str.read(e.getAttribute("recaptchaId")))?i:"";r.g.grecaptcha.reset(t)}})}}
1,r.g.brzOnloadRecaptchaCallback=function(){a.forEach(e=>{var t,i;let{sitekey:s,size:o,callback:a}=e.dataset,l=null!=(t=n.Str.read(s))?t:"",u=null!=(i=n.Str.read(o))?i:"",c=n.Str.read(r.g.grecaptcha.render(e,{sitekey:l,size:u,callback:a}));c&&e.setAttribute("recaptchaId",c)})}),i.querySelectorAll(s).forEach(e=>{(e=>{let t=e.querySelector("form");if("multistep"===(t?t.getAttribute((0,d.uo)("form-type")):"")&&t){let e=1,r=[...t.querySelectorAll(".brz-form-ms-indicator")],i=[...t.querySelectorAll(".brz-form-ms-content-item")],n=t.querySelector(".brz-form-ms-buttons"),s=t.querySelector(".brz-form-ms-next-button"),o=t.querySelector(".brz-form-ms-prev-button"),a=[...t.querySelectorAll(".brz-form-ms-progress-bar")],l=[...t.querySelectorAll(".brz-form-ms-progress-bar-text")],u=t=>{var s,o;let u=i.length;t===e||t<1||t>u||("next"==(t>e?"next":"prev")?A(r,e,"next"):A(r,e,"prev"),s=i,o=e=t,s.length&&(g(s),s[o-1].style.display="flex"),n&&y(Array.from(n.children),e,u),v(a,l,e))};a.length&&v(a,l,e),n&&(y(Array.from(n.children),e,i.length),s&&s.addEventListener("click",r=>{r.preventDefault(),M(i[e-1])?(q(t),u(e+1)):P(t)}),o&&o.addEventListener("click",t=>{t.preventDefault(),u(e-1)})),m.Xx.initMultiStepFormAccessibility({form:t,indicators:r,items:i,nextButtonContainer:s,prevButtonContainer:o,getActiveStep:()=>e,onRequestNext:()=>{M(i[e-1])?(q(t),u(e+1)):P(t)},onRequestPrev:()=>{u(e-1)}})}})(e),function(e){let t=o()(e),i=e.querySelector("form");if(e.querySelectorAll(".brz-forms2__checkbox-options, .brz-forms2__radio-options, .brz-forms2__field-select").forEach(e=>{var t,r;let i,n,s;i=null!=(t=null==(r=e.dataset.value)?void 0:r.split(",").map(e=>e.trim()))?t:[],n=e.querySelectorAll("input"),s=e.querySelectorAll("select"),n.forEach(e=>{var t;e.checked=null!=(t=i.includes(e.value))&&t}),s.forEach(e=>{var t,r;let i=null!=(t=null==(r=e.dataset.value)?void 0:r.split(",").map(e=>e.trim()))?t:[];e.querySelectorAll("option").forEach(e=>{var t;e.value&&(e.selected=null!=(t=i.includes(e.value))&&t)})})}),i){let e=(0,E.Ay)(i);k.set(i,e)}let s=e.querySelector(".brz-btn"),a=e.querySelector(".brz-form-spinner");s&&a&&s.appendChild(a),e.querySelectorAll("input[pattern], textarea[pattern]").forEach(e=>{let t=e.getAttribute("pattern");t&&e.setAttribute("pattern",decodeURI(t))}),t.on("blur","form input, form textarea, form select",function(){I(this)});let l=e.querySelector(_);l?t.on("submit","form",function(t){if(t.preventDefault(),!M(e)&&i)return P(i);e.classList.add("brz-forms2--pending");let s=n.Str.read(l.getAttribute("recaptchaId"));s&&r.g.grecaptcha.execute(s)}):t.on("submit","form",function(t){if(t.preventDefault(),w){if(!M(e)&&i)return P(i);let t=C(e);F(e,t),w=!1}})}(e)});let{Formula:l,SlimSelect:h}=(0,u.l)();if(l&&i.querySelectorAll(".brz-forms2__calculated").forEach(e=>{((e,t)=>{let r=e.closest("form.brz-form"),i=e.querySelector(".brz-forms2__calculated-result"),s=e.querySelector("input[type='hidden']");if(i){let e=n.Str.read(i.getAttribute((0,d.uo)("calc-expression")));if(e){let v,A=(0,b.uv)(e),S=[],E=/\{\{([^}]+)\}\}/g;for(;null!==(v=E.exec(A));)S.push(v[1].trim());let w=new Map;S.forEach(e=>{let t=e.replace(/\s+/g,"");w.set(t,e)});let _=A.replace(/\s+/g,"");if(_){var a,l,u,c,h,m,p,g,y;let e=["+","-","*","/"],b=_.replace(/[()]/g,"").split(/\{{([^}}]+)\}}/).filter(t=>!e.includes(t)&&t.length);r&&(a=b,l=w,u=r,c=[],h="",m=_,p=i,g=s,y=t,a.forEach((e,t)=>{let r=l.get(e)||e,i=u.querySelector(`[${(0,d.uo)("label")}='${r}']`),s=null==i?void 0:i.type;if(i&&s)switch(s){case"number":f(t,i.value,c,h,m,a,p,g,y),i.addEventListener("input",()=>{f(t,i.value,c,h,m,a,p,g,y)});break;case"radio":u.querySelectorAll(`input[type='radio'][${(0,d.uo)("label")}='${r}']`).forEach(e=>{e.checked&&f(t,e.value,c,h,m,a,p,g,y),e.addEventListener("change",()=>{e.checked&&f(t,e.value,c,h,m,a,p,g,y)})});break;case"checkbox":{let e=u.querySelectorAll(`input[type='checkbox'][${(0,d.uo)("label")}='${r}']`),i=0;e.forEach(e=>{e.addEventListener("change",()=>{var r,s;e.checked?i+=null!=(r=n.Num.read(e.value))?r:0:i-=null!=(s=n.Num.read(e.value))?s:0,i<0&&(i=0),f(t,String(i),c,h,m,a,p,g,y)})});break}case"select-one":o()(i).on("change",e=>{f(t,e.target.value,c,h,m,a,p,g,y)})}}))}s&&i&&!s.hasAttribute("defaultValue")&&s.setAttribute("defaultValue",i.innerText)}}})(e,l)}),h){var p,S;let e=Array.from(null!=(p=null==(S=i.querySelector(".brz-forms2__field-phone--translated-data select"))?void 0:S.children)?p:[]).map(e=>{var t,r;return{dialCode:null!=(t=e.getAttribute("data-dial-code"))?t:"",name:null!=(r=e.textContent)?r:"",code:e.value}});i.querySelectorAll(".brz-forms2__field-phone--translated-data").forEach(e
1=>{e.remove()}),i.querySelectorAll(".brz-forms2__field-phone").forEach(t=>{let r=t.querySelector(".brz-forms2__phone--country select");if(r){var i,n,s;let o=null!=(i=t.getAttribute("data-brz-default-country"))?i:"US",a=null!=(n=null==(s=e.find(e=>e.code===o))?void 0:s.dialCode)?n:"",l=t.querySelector(".brz-forms2__phone--country"),u=t.querySelector(".brz-forms2__phone--country-selected"),c=t.querySelector(".brz-forms2__phone--number input.brz-input");null==c||c.setAttribute("data-dial-code",a);let d=new h({select:r,settings:{contentLocation:l},data:(0,E.Xe)(e,o),events:{afterChange:r=>{var i;let n=null==(i=r[0])?void 0:i.value;if(!n)return;let s=e.find(e=>e.code===n);if(s){let e=t.querySelector(".brz-forms2__phone--country-selected span");if(e){let t=document.createElement("span");t.className=(0,E.Yd)(s.code),e.replaceWith(t)}null==c||c.setAttribute("data-dial-code",s.dialCode)}}}});u&&u.addEventListener("click",()=>{d.open()})}})}i.querySelectorAll(".brz-forms2__field-date").forEach(e=>{let t=e.dataset,r=t.brzMin,i=t.brzMax,n="true"===t.brzNative,s=t.brzLanguage,o=t.brzDateFormat,{Flatpickr:a}=(0,u.l)();!n&&a?a(e,{minDate:r,maxDate:i,disableMobile:!0,locale:null!=s?s:"en",dateFormat:null!=o?o:"Y-m
1-d"}):(r&&e.setAttribute("min",r),i&&e.setAttribute("max",i))}),i.querySelectorAll(".brz-forms2__field-time").forEach(e=>{let t=e.dataset,r=t.brzMin,i=t.brzMax,n="true"===t.brzNative,{Flatpickr:s}=(0,u.l)();!n&&s?s(e,{minDate:r,maxDate:i,enableTime:!0,noCalendar:!0,disableMobile:!0}):(r&&e.setAttribute("min",r),i&&e.setAttribute("max",i))}),i.querySelectorAll(".brz-forms2__field-select").forEach(e=>{var t,r;let s,a=o()(e),l=a.find(".brz-select"),c=l.get(0);if(!c)return;let d=c.multiple,b=l.data("brz-placeholder"),h=null!=(t=l.attr("data-brz-max-item-dropdown"))?t:"5",p=!1;l.select2({width:"100%",minimumResultsForSearch:1/0,dropdownParent:a,placeholder:b,templateSelection:e=>{var t;return(b||p)&&null!=(t=n.Str.read(e.text))?t:""}});let f=e.querySelector(".select2-selection__arrow"),g=e.querySelector(".select2-selection.select2-selection--multiple"),y=e.querySelector(".brz-forms2__select--arrow");y&&(f&&(null==(r=f.parentNode)||r.replaceChild(y,f)),g&&g.appendChild(y)),new m.Xx({selectNode:e,select:c,rootNode:i}).init();let{Scrollbars:v}=(0,u.l)();l.on("select2:opening",function(){setTimeout(function(){let e=a.find(".select2-dropdown"),t=parseInt(e.find(".select2-results__options .select2-results__option").css("height"));if(e.css("maxHeight",t*parseInt(h)),e.length&&v){let t=e.get(0);t&&(s=new v(t))}d&&a.addClass("brz-forms2__field-select--multiple--opened")},0)}),l.on("select2:close",function(){s&&(s.destroy(),s=null),d&&a.removeClass("brz-forms2__field-select--multiple--opened")}),p=!0}),(0,c.un)()&&(t=document.querySelector('meta[name="viewport"]'))&&(/maximum-scale/i.test(t.content)||(t.content+=", maximum-scale=1"))}function I(e){var t,r,i;let s=e.closest(".brz-form"),o=e.closest(".brz-forms2__item"),{value:a,dataset:l,required:u}=e,{brzType:c,brzError:d,brzFileMaxSize:m}=l,p=d?(0,b.uv)(d):null,f=e.getAttribute("pattern"),g=(0,h.uy)(f)||new RegExp(f).test(a),y=!0;if(null==o||o.classList.remove("brz-forms2__item--error","brz-forms2__item--error-pattern","brz-forms2__item--error-required"),u&&!a&&(null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-required"),y=!1),a.length&&!g&&(null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1),"Number"===c){let{brzMin:e,brzMax:t}=l,r=Number(a),i=n.Num.read(e),u=n.Num.read(t);if(a&&i&&r<i){let t=O({status:S.q.Error,form:s,text:`${(null==p?void 0:p.minNumError)||"Selected quantity is less than stock status, min:"} ${e}`});s&&B(s,t),null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1}if(a&&u&&r>u){let e=O({status:S.q.Error,text:`${(null==p?void 0:p.maxNumError)||"Selected quantity is more than stock status, max:"} ${t}`,form:s});s&&B(s,e),null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1}}if("FileUpload"===c){let t=e.files,a=parseInt(null!=(r=n.Str.read(e.dataset.brzFileMaxSize))?r:"")||1,l=e.getAttribute("accept")?null==e||null==(i=e.getAttribute("accept"))?void 0:i.replace(/\s+/g,"").toLowerCase().split(","):[],u=!1,c=!1;for(let e of t){let{name:t,size:r}=e,[i]=t.match(/\.([^\.]+)$/);u=r/1048576>=a,i&&(c=!(null!=l?l:[]).includes(i.toLowerCase()))}if(u){y=!1,null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern");let e=O({status:S.q.Error,text:`${(null==p?void 0:p.fileMaxSizeError)||"This file exceeds the maximum allowed size."} ${m}`,form:s});s&&B(s,e)}if(c){y=!1,null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern");let e=null==l?void 0:l.map(e=>e.replace(".","")).join(", "),t=O({status:S.q.Error,text:`${(null==p?void 0:p.fileTypeError)||"Only files with the following extensions are allowed:"} ${e}`,form:s});s&&B(s,t)}}if("Phone"===c){let e=a.replace(/\D/g,""),t=/\D/.test(a);if(a&&t){let e=O({status:S.q.Error,form:s,text:(null==p?void 0:p.phoneInvalidCharsError)||"Phone number must contain only digits"});s&&B(s,e),null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1}else if(a&&e.length<4){let e=O({status:S.q.Error,form:s,text:(null==p?void 0:p.phoneMinLengthError)||"Phone number is too short, minimum 4 digits required"});s&&B(s,e),null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1}else if(a&&e.length>15){let e=O({status:S.q.Error,form:s,text:(null==p?void 0:p.phoneMaxLengthError)||"Phone number is too long, maximum 15 digits allowed"});s&&B(s,e),null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-pattern"),y=!1}}let v=e.closest(".brz-forms2__field-select");if(v){let e=v.querySelector(".brz-select"),t=null==e?void 0:e.multiple,r=null==e?void 0:e.value;t?0===Array.from(e.querySelectorAll("option:checked")).map(e=>e.value).length&&(null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-required"),y=!1):" "===r&&(null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-required"),y=!1)}return u&&("Checkbox"===c||"UserAgreementCheckbox"===c)&&![...null!=(t=null==o?void 0:o.querySelectorAll("input"))?t:[]].some(e=>{let{checked:t}=e;return t})&&(null==o||o.classList.add("brz-forms2__item--error","brz-forms2__item--error-required"),y=!1),y}function M(e){let t=e.querySelectorAll("input[pattern], textarea[pattern], input[required], textarea[required], input[type='file'], select[required], input[type='tel']"),r=!0;
1return t.forEach(e=>{I(e)||(r=!1)}),r}function T(e,t){if(!e.children.length)return;let r=Array.from(e.children),i=r.find(e=>e.classList.contains("brz-form-spinner"));t?(e.classList.add("brz-blocked"),r.forEach(e=>{e.classList.add("brz-invisible")}),i&&i.classList.remove("brz-invisible")):(e.classList.remove("brz-blocked"),r.forEach(e=>{e.classList.remove("brz-invisible")}),i&&i.classList.add("brz-invisible"),w=!0)}function F(e,t){var r;q(e);let i=e.querySelector(".brz-btn");i&&T(i,!0);let s=e.querySelector("form.brz-form");if(!s)return;let{brzProjectId:a,brzFormId:u,brzRedirect:c,brzSuccess:b,brzError:h}=s.dataset,m=null!=(r=n.Str.read(s.getAttribute("action")))?r:"",{formData:p,data:f}=t,g=f.map(e=>(0,E.HU)(e.type)&&e.value?{...e,value:`${e.dialCode}${e.value}`}:e);p.append("data",JSON.stringify(g)),a&&p.append("project_id",a),u&&p.append("form_id",u);let y=()=>{e.classList.add("brz-forms2__send--fail"),B(s,O({status:S.q.Error,text:h,form:s}))};return function(e,t,r){let{done:i,error:n,always:s}=r;return o().ajax({type:"POST",processData:!1,contentType:!1,url:e,data:t}).done(i).fail(n).always(s)}(m,p,{done:t=>{let{success:r}=t||{};if(!1===r)y();else{let t,{brzClosePopup:r,brzPopupId:i}=s.dataset;B(s,O({status:S.q.Success,text:b,form:s})),t=setTimeout(()=>{q(s)},5e3),x.set(s,t),c&&""!==c&&window.location.replace(c),"on"===r&&i&&(q(s),function(e){let t=o()(`#${e}`);if(t.length&&t.hasClass("brz-popup2")){let e=t.popup();e&&"function"==typeof e.close&&e.close()}}(i)),e.querySelectorAll(".brz-forms2__item").forEach(e=>{e.querySelectorAll("input, textarea, select").forEach((e,t)=>{switch(e.type){case"radio":e.checked=0===t;break;case"checkbox":e.checked=!1;break;default:var r,i;if(e.getAttribute((0,d.uo)("type"))===l.Calculated){let t=e.getAttribute("defaultValue"),i=null==(r=e.parentNode)?void 0:r.querySelector(".brz-forms2__calculated-result");i&&(i.innerText=null!=t?t:"")}if(e.closest(".brz-forms2__field-phone")&&"SELECT"===e.tagName){let t=e.closest(".brz-forms2__field-phone");e.value=null!=(i=null==t?void 0:t.getAttribute("data-brz-default-country"))?i:"US";break}e.value=""}e.dispatchEvent(new Event("change",{bubbles:!0}))})})}},error:y,always:()=>{i&&T(i,!1)}})}function C(e){let t=new FormData,r=[];return e.querySelectorAll(".brz-forms2__item:not(.brz-forms2__item-button)").forEach(e=>{let i=e.querySelector(".brz-forms2__field-phone"),s=e.querySelectorAll(i?"input.brz-input":"input, textarea, select");if(0===s.length)return;let o={};if(e.querySelector(".brz-forms2__checkbox, .brz-forms2__radio")){let e=[];s.forEach(t=>{var r;let{name:i,required:s,type:a,checked:l,value:u,dataset:c}=t;l&&e.push(u),o.name=i,o.required=s,o.type=a,o.label=null!=(r=n.Str.read(c.brzLabel))?r:""}),o.value=e.join(",")}else{var a,l,u,c,d;let[e]=s,r=null!=(a=n.Str.read(e.getAttribute("name")))?a:"",{brzType:i,brzLabel:b,brzPlaceholder:h}=e.dataset,m=e.required,p=e.value;if(o.name=r,o.value=p,o.required=m,o.type=null!=(l=n.Str.read(i))?l:"",o.label=null!=(u=n.Str.read(b))?u:"","FileUpload"===i){for(let i of e.files)t.append(`${r}[]`,i,i.name);o.maxSize=parseInt(null!=(c=n.Str.read(e.dataset.brzFileMaxSize))?c:""),o.extensions=null!=(d=n.Str.read(e.getAttribute("accept")))?d:""}"Select"===i&&e.multiple&&(o.value=Array.from(e.querySelectorAll("option:checked")).map(e=>e.value).join(",")),"Hidden"===i&&(o.value=p||h||b),(0,E.HU)(i)&&(o.dialCode=e.dataset.dialCode)}r.push(o)}),{data:r,formData:t}}function O(e){let{status:t,text:r,form:i}=e,n=document.createElement("div"),s=document.createElement("div"),o=document.createElement("span"),a=i?k.get(i):void 0,l=a?a[t]:void 0;return n.className=`brz-forms2__alert brz-forms2__alert--${t}`,s.className="brz-forms2__alert-text",o.className="brz-forms2__alert-text--inner",o.innerHTML=r||l||z[t],s.appendChild(o),n.appendChild(s),n}function q(e){let t=x.get(e);t&&(clearTimeout(t),x.delete(e));let r=e.querySelector(".brz-forms2__alert");r&&r.remove(),e.classList.remove("brz-forms2__send--empty","brz-forms2__send--success","brz-forms2__send--fail")}function B(e,t){q(e);let r=e.querySelector(".brz-forms2__messages");r?r.appendChild(t):e.appendChild(t)}},6397(e,t,r){"use strict";r.d(t,{q:()=>n});var i,n=((i={}).Success="success",i.Error="error",i.Empty="empty",i.Invalid="invalid",i.InvalidEmail="invalid-email",i)},7297(e,t,r){"use strict";r.d(t,{Ay:()=>a,Yd:()=>u,Xe:()=>c,HU:()=>l});var i,n=r(7625),s=r(2540);(i={}).None="none",i.Text="text",i.Icon="icon",i.Number="number",i.Progress="progressBar",i.NumberText="number-text",i.IconText="icon-text";var o=r(6397);!function(e,t={}){let{cache:r=new Map,getCacheKey:i}=t}(()=>({points:["centerLeft","centerRight"],restrictions:{width:{"%":{min:5,max:100}}}}));let a=e=>Object.keys(o.q).reduce((t,r)=>{let i=r.toLowerCase(),o=n.Str.read(e.getAttribute((0,s.uo)("default-"+i,!0)));return{...t,[i]:o}},{}),l=e=>"Phone"===e,u=e=>{let t=e.trim().toLowerCase(),r=/^[a-z0-9-]+$/.test(t)?t:"";return`fi fi-${r||"xx"}`},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"US";return e.map(e=>{let{name:r,code:i,dialCode:n}=e;return{text:r,value:i,selected:i===t,html:`<span class="${u(i)}"></span><span>${r}</span><span class="brz-forms2__field-phone--option-code">${n}</span>`}})}},9891(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{v2:()=>f,Bv:()=>A,Xx:()=>m,G2:()=>x,me:()=>b,qT:()=>_,gD:()=>a,zQ:()=>y,zq:()=>s});let n="__brz_missing_tabindex__";
1class s{init(){this.items.forEach(e=>{this.initHeader(e),e.button.addEventListener("keydown",t=>this.handleHeaderKeyDown(t,e))}),this.filterButtons.forEach(e=>{this.initFilterButton(e),e.addEventListener("keydown",t=>this.handleFilterKeyDown(t,e))}),this.sync()}sync(){this.items.forEach(e=>this.syncItem(e)),this.syncFilterButtons()}syncFilterButtons(){this.filterButtons.forEach(e=>{var t;let r=e.closest(".brz-accordion__filter__item"),i=null!=(t=null==r?void 0:r.classList.contains("brz-accordion__filter__item--active"))&&t;e.setAttribute("aria-pressed",i.toString())})}initHeader(e){e.button.setAttribute("role","button"),e.button.setAttribute("tabindex","0")}initFilterButton(e){e.setAttribute("role","button"),e.setAttribute("tabindex","0")}syncItem(e){let t=e.api.isOpen(),r=e.keepOnePanelOpen&&t;e.button.setAttribute("aria-expanded",t.toString()),e.button.setAttribute("aria-disabled",r.toString()),e.panel.setAttribute("aria-hidden",(!t).toString()),e.panel.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(e=>{t?this.restoreTabIndex(e):this.disableTabIndex(e)})}restoreTabIndex(e){let t=e.dataset.brzTabindex;void 0!==t&&(t===n?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),delete e.dataset.brzTabindex)}disableTabIndex(e){var t;void 0===e.dataset.brzTabindex&&(e.dataset.brzTabindex=null!=(t=e.getAttribute("tabindex"))?t:n),e.setAttribute("tabindex","-1")}handleHeaderKeyDown(e,t){var r,i;switch(e.key){case"Enter":case" ":case"Spacebar":e.preventDefault(),t.button.click();break;case"ArrowDown":e.preventDefault(),this.focusSibling(t,1);break;case"ArrowUp":e.preventDefault(),this.focusSibling(t,-1);break;case"Home":e.preventDefault(),null==(r=this.items[0])||r.button.focus();break;case"End":e.preventDefault(),null==(i=this.items[this.items.length-1])||i.button.focus()}}focusSibling(e,t){var r;let i=this.items.findIndex(t=>{let{button:r}=t;return r===e.button});if(-1===i)return;let n=(i+t+this.items.length)%this.items.length;null==(r=this.items[n])||r.button.focus()}focusFilterSibling(e,t){var r;let i=this.filterButtons.findIndex(t=>t===e);if(-1===i)return;let n=(i+t+this.filterButtons.length)%this.filterButtons.length;null==(r=this.filterButtons[n])||r.focus()}handleFilterKeyDown(e,t){var r,i;switch(e.key){case"Enter":case" ":case"Spacebar":e.preventDefault(),t.click();break;case"ArrowRight":case"ArrowDown":e.preventDefault(),this.focusFilterSibling(t,1);break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),this.focusFilterSibling(t,-1);break;case"Home":e.preventDefault(),null==(r=this.filterButtons[0])||r.focus();break;case"End":e.preventDefault(),null==(i=this.filterButtons[this.filterButtons.length-1])||i.focus()}}constructor({items:e,filterButtons:t=[]}){i(this,"items",void 0),i(this,"filterButtons",void 0),this.items=e,this.filterButtons=t}}let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.toFixed(t)};class a{init(){this.initCovers(),this.initLightboxes(),this.initCustomControls(),this.initCustomSliders()}initCovers(){this.root.querySelectorAll(".brz-video__cover").forEach(e=>{if("true"===e.getAttribute("data-brz-a11y-init")||(e.setAttribute("data-brz-a11y-init","true"),"function"!=typeof e.onclick&&null===e.closest(".brz-video, .brz-custom-video")))return;let t=!!e.getAttribute("aria-label")||!!e.getAttribute("aria-labelledby");e.setAttribute("role","button"),e.setAttribute("tabindex","0"),t||e.setAttribute("aria-label","Play video"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),null==(t=e.currentTarget)||t.click()}})})}initLightboxes(){this.root.querySelectorAll(".brz-video__lightbox").forEach(e=>{"true"===e.getAttribute("data-brz-a11y-init")||(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.getAttribute("aria-labelledby")||e.setAttribute("aria-label","Open video in lightbox"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),null==(t=e.currentTarget)||t.click()}}))})}initCustomControls(){this.root.querySelectorAll(".brz-custom-video .brz-video-content").forEach(e
1=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Play or pause video"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){e.preventDefault();let t=e.currentTarget.closest(".brz-custom-video");if(!t)return;let r=t.querySelector(".brz-video__lightbox");if(r)return void r.click();let i=t.querySelector(".brz-video-custom-play-pause-btn");null==i||i.click()}}))}),this.root.querySelectorAll(".brz-video-custom-play-pause-btn").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Play or pause video"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),e.stopPropagation(),null==(t=e.currentTarget)||t.click()}}))}),this.root.querySelectorAll(".brz-video-custom-volume-btn").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Toggle mute"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),e.stopPropagation(),null==(t=e.currentTarget)||t.click()}}))}),this.root.querySelectorAll(".brz-video-custom-fullscreen-btn").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Toggle fullscreen"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),e.stopPropagation(),null==(t=e.currentTarget)||t.click()}}))}),this.root.querySelectorAll(".brz-media-caption").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Toggle captions"),e.addEventListener("keydown",e=>{if("Enter"===e.key||" "===e.key||"Spacebar"===e.key){var t;e.preventDefault(),e.stopPropagation(),null==(t=e.currentTarget)||t.click()}}))})}initCustomSliders(){this.root.querySelectorAll(".brz-custom-video .brz-video-custom-controls .brz-video-custom-slider").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","slider"),e.setAttribute("tabindex","0"),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax","100"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Video progress"),e.addEventListener("keydown",t=>{let r=t.currentTarget.closest(".brz-custom-video"),i=null==r?void 0:r.querySelector("video");if(!r||!i||!i.duration)return;let n=i.currentTime,s=!1;switch(t.key){case"ArrowRight":case"ArrowUp":n=Math.min(i.duration,i.currentTime+5),s=!0;break;case"ArrowLeft":case"ArrowDown":n=Math.max(0,i.currentTime-5),s=!0;break;case"Home":n=0,s=!0;break;case"End":n=i.duration,s=!0}if(!s)return;t.preventDefault(),t.stopPropagation(),i.currentTime=n;let a=n/i.duration*100,l=r.querySelector(".brz-video-custom-controls .brz-video-custom-progress");l&&(l.style.width=`${o(a)}%`),e.setAttribute("aria-valuenow",o(a))}))}),this.root.querySelectorAll(".brz-custom-video .brz-video-custom-volume-controls").forEach(e=>{"true"!==e.getAttribute("data-brz-a11y-init")&&(e.setAttribute("data-brz-a11y-init","true"),e.setAttribute("role","slider"),e.setAttribute("tabindex","0"),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax","100"),e.getAttribute("aria-label")||e.setAttribute("aria-label","Volume"),e.addEventListener("keydown",t=>{let r=t.currentTarget.closest(".brz-custom-video"),i=null==r?void 0:r.querySelector("video");if(!r||!i)return;let n=i.volume,s=!1;switch(t.key){case"ArrowRight":case"ArrowUp":n=Math.min(1,i.volume+.1),s=!0;break;case"ArrowLeft":case"ArrowDown":n=Math.max(0,i.volume-.1),s=!0;break;case"Home":n=0,s=!0;break;case"End":n=1,s=!0}if(!s)return;t.preventDefault(),t.stopPropagation(),i.volume=n;
1let a=r.querySelector(".brz-video-custom-volume-controls .brz-video-custom-progress"),l=100*n;a&&(a.style.width=`${o(l)}%`),e.setAttribute("aria-valuenow",o(l))}))})}constructor({root:e}){var t,r;r=void 0,(t="root")in this?Object.defineProperty(this,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):this[t]=r,this.root=e}}var l,u=r(1669),c=r.n(u);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class b{init(){let e=this.getSelection();e&&(e.addEventListener("keydown",this.handleSelectionKeyDown,!0),e.addEventListener("focus",this.handleSelectionFocus),e.addEventListener("blur",this.handleSelectionBlur),this.select.addEventListener("change",this.handleStateChange),c()(this.select).on("select2:open",this.handleStateChange).on("select2:close",this.handleStateChange),this.sync())}sync(){let e=this.getSelection();e&&(e.setAttribute("role","combobox"),e.setAttribute("tabindex","0"),e.setAttribute("aria-haspopup","listbox"),e.setAttribute("aria-expanded",this.isOpen().toString()),e.setAttribute("aria-disabled",this.select.disabled.toString()),this.select.required?e.setAttribute("aria-required","true"):e.removeAttribute("aria-required"),this.syncRenderedValue(),this.syncListbox())}syncRenderedValue(){let e=this.selectNode.querySelector(".select2-selection__rendered");e&&"textbox"===e.getAttribute("role")&&e.removeAttribute("role")}syncListbox(){let e=this.selectNode.querySelector(".select2-container--open .select2-results__options");e&&(e.setAttribute("role","listbox"),this.select.multiple?e.setAttribute("aria-multiselectable","true"):e.removeAttribute("aria-multiselectable"))}open(){this.getSelect2Api().select2("open")}close(){this.getSelect2Api().select2("close")}isOpen(){var e;return(null==(e=this.getSelection())?void 0:e.getAttribute("aria-expanded"))==="true"}getSelect2Api(){return c()(this.select)}commitHighlightedOption(){let e=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");null==e||e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}closeAfterCommit(){window.requestAnimationFrame(()=>{this.isOpen()&&this.close()})}syncHighlightedIndicator(){this.selectNode.querySelectorAll(".select2-container--open .select2-results__option").forEach(e=>{e.classList.remove("brz-translation-option--active")});let e=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");e&&(e.classList.add("brz-translation-option--active"),e.scrollIntoView({block:"nearest"}))}getSelection(){return this.selectNode.querySelector(".select2-selection")}constructor({select:e,selectNode:t}){d(this,"select",void 0),d(this,"selectNode",void 0),d(this,"handleStateChange",()=>{this.sync(),this.syncHighlightedIndicator()}),d(this,"handleSelectionKeyDown",e=>{if(this.isOpen()){if(!this.select.multiple)switch(e.key){case"Enter":case" ":case"Spacebar":e.preventDefault(),e.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Tab":e.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Escape":e.preventDefault(),e.stopPropagation(),this.close()}("ArrowDown"===e.key||"ArrowUp"===e.key)&&window.requestAnimationFrame(()=>this.syncHighlightedIndicator());return}switch(e.key){case"Enter":case" ":case"Spacebar":case"ArrowDown":case"ArrowUp":e.preventDefault(),e.stopPropagation(),this.open(),window.requestAnimationFrame(()=>this.syncHighlightedIndicator())}}),d(this,"handleSelectionFocus",()=>{this.selectNode.classList.add("brz-translation--keyboard-focus")}),d(this,"handleSelectionBlur",()=>{this.selectNode.classList.remove("brz-translation--keyboard-focus")}),this.select=e,this.selectNode=t}}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class m{init(){let e=this.getSelection();e&&(e.addEventListener("keydown",this.handleSelectionKeyDown,!0),e.addEventListener("focus",this.handleSelectionFocus),e.addEventListener("blur",this.handleSelectionBlur),this.select.addEventListener("change",this.handleStateChange),c()(this.select).on("select2:open",this.handleStateChange).on("select2:close",this.handleStateChange),this.sync(),this.initPhoneAccessibility())}sync(){let e=this.getSelection();e&&(e.setAttribute("role","combobox"),e.setAttribute("tabindex","0"),e.setAttribute("aria-haspopup","listbox"),e.setAttribute("aria-expanded",this.isOpen().toString()),e.setAttribute("aria-disabled",this.select.disabled.toString()),this.select.required?e.setAttribute("aria-required","true"):e.removeAttribute("aria-required"),this.syncRenderedValue(),this.syncListbox())}syncRenderedValue(){let e=this.selectNode.querySelector(".select2-selection__rendered");e&&"textbox"===e.getAttribute("role")&&e.removeAttribute("role")}syncListbox(){let e=this.selectNode.querySelector(".select2-container--open .select2-results__options");e&&(e.setAttribute("role","listbox"),this.select.multiple?e.setAttribute("aria-multiselectable","true"):e.removeAttribute("aria-multiselectable"))}
1open(){this.getSelect2Api().select2("open")}close(){this.getSelect2Api().select2("close")}isOpen(){var e;return(null==(e=this.getSelection())?void 0:e.getAttribute("aria-expanded"))==="true"}getSelect2Api(){return c()(this.select)}commitHighlightedOption(){let e=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");null==e||e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}closeAfterCommit(){window.requestAnimationFrame(()=>{this.isOpen()&&this.close()})}syncHighlightedIndicator(){this.selectNode.querySelectorAll(".select2-container--open .select2-results__option").forEach(e=>{e.classList.remove("brz-forms2__select-option--active")});let e=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");e&&(e.classList.add("brz-forms2__select-option--active"),e.scrollIntoView({block:"nearest"}))}getSelection(){return this.selectNode.querySelector(".select2-selection")}initPhoneAccessibility(){if(this.phoneAccessibilityInitialized)return;let e=this.rootNode;if(e instanceof HTMLElement){if("true"===e.dataset.brzFormPhoneA11y){this.phoneAccessibilityInitialized=!0;return}e.dataset.brzFormPhoneA11y="true"}let t=()=>{e.querySelectorAll(".brz-forms2__field-phone").forEach(e=>{this.syncPhoneField(e)})},r=()=>{window.requestAnimationFrame(t)};e.addEventListener("click",r,!0),e.addEventListener("keydown",r,!0),r(),this.phoneAccessibilityInitialized=!0}syncPhoneField(e){var t;let r=e.querySelector(".ss-main"),i=e.querySelector(".ss-content .ss-list");if(!r||!i)return;let n=(null==(t=r.parentElement)?void 0:t.querySelector(".ss-open"))!==null;r.setAttribute("role","combobox"),r.setAttribute("tabindex","0"),r.setAttribute("aria-haspopup","listbox"),r.setAttribute("aria-expanded",String(n)),n?(i.setAttribute("role","listbox"),i.removeAttribute("aria-hidden"),i.removeAttribute("inert")):(i.removeAttribute("role"),i.setAttribute("aria-hidden","true"),i.setAttribute("inert","")),i.querySelectorAll(".ss-option").forEach(e=>{let t=e.classList.contains("ss-option-selected"),r=e.classList.contains("ss-option-highlighted");n?(e.setAttribute("role","option"),e.setAttribute("aria-selected",String(t)),r?e.classList.add("brz-forms2__select-option--active"):e.classList.remove("brz-forms2__select-option--active")):(e.removeAttribute("role"),e.removeAttribute("aria-selected"),e.classList.remove("brz-forms2__select-option--active"))})}static initMultiStepFormAccessibility(e){let t,{form:r,indicators:i,items:n,nextButtonContainer:s,prevButtonContainer:o,getActiveStep:a,onRequestNext:l,onRequestPrev:u}=e;if(!r||!i.length||!n.length)return;if(s){let e=s.querySelector("a");e&&e.removeAttribute("href"),s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.addEventListener("keydown",e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),l())})}if(o){let e=o.querySelector("a");e&&e.removeAttribute("href"),o.setAttribute("role","button"),o.setAttribute("tabindex","0"),o.addEventListener("keydown",e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),u())})}let c=i.length>0?i[0].parentElement:null;c&&c.setAttribute("role","tablist"),i.forEach((e,t)=>{e.id||(e.id=`brz-form-ms-indicator-${t+1}`)}),t=a(),i.forEach((e,r)=>{let i=r===t-1,s=n[r];if(e.setAttribute("role","tab"),e.setAttribute("aria-selected",String(i)),s){let t=e.id;s.setAttribute("role","tabpanel"),s.setAttribute("aria-hidden",String(!i)),t&&s.setAttribute("aria-labelledby",t)}})}constructor({select:e,selectNode:t,rootNode:r}){h(this,"select",void 0),h(this,"selectNode",void 0),h(this,"phoneAccessibilityInitialized",!1),h(this,"rootNode",void 0),h(this,"handleStateChange",()=>{this.sync(),this.syncHighlightedIndicator()}),h(this,"handleSelectionKeyDown",e=>{if(this.isOpen()){if(!this.select.multiple)switch(e.key){case"Enter":case" ":case"Spacebar":e.preventDefault(),e.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Tab":e.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Escape":e.preventDefault(),e.stopPropagation(),this.close()}("ArrowDown"===e.key||"ArrowUp"===e.key)&&window.requestAnimationFrame(()=>this.syncHighlightedIndicator());return}switch(e.key){case"Enter":case" ":case"Spacebar":case"ArrowDown":case"ArrowUp":e.preventDefault(),e.stopPropagation(),this.open(),window.requestAnimationFrame(()=>this.syncHighlightedIndicator())}}),h(this,"handleSelectionFocus",()=>{this.selectNode.classList.add("brz-forms2__field-select--keyboard-focus")}),h(this,"handleSelectionBlur",()=>{this.selectNode.classList.remove("brz-forms2__field-select--keyboard-focus")}),this.select=e,this.selectNode=t,this.rootNode=r}}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f{init(){this.root.setAttribute("role","group"),this.root.setAttribute("aria-label","Audio player"),this.playPauseButton&&(this.playPauseButton.setAttribute("role","button"),this.playPauseButton.setAttribute("tabindex","0"),this.playPauseButton.setAttribute("aria-label","Play or pause audio"),this.playPauseButton.setAttribute("aria-pressed","fal
1se"),this.playPauseButton.addEventListener("keydown",e=>{(" "===e.key||"Enter"===e.key||"Spacebar"===e.key)&&(e.preventDefault(),e.currentTarget.click())})),this.muteButton&&(this.muteButton.setAttribute("role","button"),this.muteButton.setAttribute("tabindex","0"),this.muteButton.setAttribute("aria-label","Mute or unmute audio"),this.muteButton.setAttribute("aria-pressed","false"),this.muteButton.addEventListener("keydown",e=>{(" "===e.key||"Enter"===e.key||"Spacebar"===e.key)&&(e.preventDefault(),e.currentTarget.click())})),this.captionButton&&(this.captionButton.setAttribute("role","button"),this.captionButton.setAttribute("tabindex","0"),this.captionButton.setAttribute("aria-label","Toggle audio captions"),this.captionButton.setAttribute("aria-pressed","false"),this.captionButton.addEventListener("keydown",e=>{(" "===e.key||"Enter"===e.key||"Spacebar"===e.key)&&(e.preventDefault(),e.currentTarget.click())})),this.progressSlider&&this.initSlider(this.progressSlider,"Audio playback position",e=>this.handleProgressDelta(e)),this.volumeSlider&&this.initSlider(this.volumeSlider,"Audio volume",e=>this.handleVolumeDelta(e))}syncState(e){let{isPlaying:t,isMuted:r,progressPercent:i,volumePercent:n,captionsActive:s}=e;this.playPauseButton&&this.playPauseButton.setAttribute("aria-pressed",t.toString()),this.muteButton&&this.muteButton.setAttribute("aria-pressed",r.toString()),this.captionButton&&this.captionButton.setAttribute("aria-pressed",s.toString()),this.progressSlider&&(this.progressSlider.setAttribute("aria-valuemin","0"),this.progressSlider.setAttribute("aria-valuemax","100"),this.progressSlider.setAttribute("aria-valuenow",this.normalizePercent(i).toString())),this.volumeSlider&&(this.volumeSlider.setAttribute("aria-valuemin","0"),this.volumeSlider.setAttribute("aria-valuemax","100"),this.volumeSlider.setAttribute("aria-valuenow",this.normalizePercent(n).toString()))}initSlider(e,t,r){e.setAttribute("role","slider"),e.setAttribute("tabindex","0"),e.setAttribute("aria-label",t),e.setAttribute("aria-valuemin","0"),e.setAttribute("aria-valuemax","100"),e.setAttribute("aria-valuenow","0"),e.addEventListener("keydown",e=>{let t=0;switch(e.key){case"ArrowRight":case"ArrowUp":t=5;break;case"ArrowLeft":case"ArrowDown":t=-5;break;case"Home":t=-100;break;case"End":t=100;break;default:return}e.preventDefault(),r(t)})}handleProgressDelta(e){let t=this.getSliderValue(this.progressSlider),r=this.normalizePercent(t+e);this.seekToPercent(r)}handleVolumeDelta(e){let t=this.getSliderValue(this.volumeSlider),r=this.normalizePercent(t+e);this.setVolumePercent(r)}getSliderValue(e){var t;if(!e)return 0;let r=parseFloat(null!=(t=e.getAttribute("aria-valuenow"))?t:"0");return Number.isNaN(r)?0:r}normalizePercent(e){return e<0?0:e>100?100:e}constructor({root:e,playPauseButton:t,muteButton:r,progressSlider:i,volumeSlider:n,captionButton:s,seekToPercent:o,setVolumePercent:a}){p(this,"root",void 0),p(this,"playPauseButton",void 0),p(this,"muteButton",void 0),p(this,"progressSlider",void 0),p(this,"volumeSlider",void 0),p(this,"captionButton",void 0),p(this,"seekToPercent",void 0),p(this,"setVolumePercent",void 0),this.root=e,this.playPauseButton=t,this.muteButton=r,this.progressSlider=i,this.volumeSlider=n,this.captionButton=s,this.seekToPercent=o,this.setVolumePercent=a}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class y{init(){this.desktopItems.forEach(e=>{this.initDesktopItem(e),e.button.addEventListener("keydown",t=>this.handleKeyDown(t,{mode:"desktop",item:e}))}),this.mobileItems.forEach(e=>{this.initMobileItem(e),e.button.addEventListener("keydown",t=>this.handleKeyDown(t,{mode:"mobile",item:e}))}),this.sync()}sync(){this.desktopItems.forEach(e=>{let t=e.item.classList.contains("brz-tabs__nav--active");e.button.setAttribute("aria-selected",String(t)),e.button.setAttribute("tabindex",t?"0":"-1"),e.panel.setAttribute("aria-hidden",String(!t))}),this.mobileItems.forEach(e=>{let t=e.header.classList.contains("brz-tabs__nav--mobile--active");e.button.setAttribute("aria-expanded",String(t)),e.panel.setAttribute("aria-hidden",String(!t))})}initDesktopItem(e){let t=e.item.parentElement;null==t||t.setAttribute("role","tablist"),null==t||t.setAttribute("aria-orientation",this.orientation),e.button.setAttribute("role","tab")}initMobileItem(e){e.button.setAttribute("role","button"),e.button.setAttribute("tabindex","0")}handleKeyDown(e,t){var r,i;let{mode:n,item:s}=t;switch(e.key){case"Enter":case" ":case"Spacebar":e.preventDefault(),s.button.click();break;case"ArrowRight":"desktop"===n&&"horizontal"===this.orientation?(e.preventDefault(),this.focusDesktopSibling(s,1,!0)):"mobile"===n&&(e.preventDefault(),this.focusMobileSibling(s,1));break;case"ArrowLeft":"desktop"===n&&"horizontal"===this.orientation?(e.preventDefault(),this.focusDesktopSibling(s,-1,!0)):"mobile"===n&&(e.preventDefault(),this.focusMobileSibling(s,-1));break;case"ArrowDown":e.preventDefault(),"desktop"===n?this.focusDesktopSibling(s,1,"vertical"===this.orientation):this.focusMobileSibling(s,1);break;case"ArrowUp":e.preventDefault(),"desktop"===n?this.focusDesktopSibling(s,-1,"vertical"===this.orientation):this.focusMobileSibling(s,-1);break;case"Home":e.preventDefault(),"desktop"===n?this.activateDesktopItem(this.desktopItems[0]):null==(r=this.mobileItems[0])||r.button.focus();break;case"End":e.preventDefault(),"desktop"===n?this.activateDesktopItem(this.desktopItems[this.desktopItems.length-1]):null==(i=this.mobileItems[this.mobileItems.length-1])||i.button.focus()}}activateDesktopItem(e){e&&(e.button.focus(),e.button.click())}focusDesktopSibling(e,t,r){let i=this.desktopItems.findIndex(t=>{let{button:r}=t;return r===e.button});if(-1===i)return;let n=(i+t+this.desktopItems.length)%this.desktopItems.length,s=this.desktopItems[n];if(s){if(r)return void this.activateDesktopItem(s);s.button.focus()}}focusMobileSibling(e,t){var r;let i=this.mobileItems.findIndex(t=>{let{button:r}=t;return r===e.button});if(-1===i)return;let n=(i+t+this.mobileItems.length)%this.mobileItems.length;null==(r=this.mobileItems[n])||r.button.focus()}constructor({desktopItems:e,mobileItems:t,orientation:r}){g(this,"desktopItems",void 0),g(this,"mobileItems",void 0),g(this,"orientation",void 0),this.desktopItems=e,this.mobileItems=t,this.orientation=r}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class A{init(){this.setupRegionAccessibility(),this.setupArrowAccessibility(),this.setupDotsAccessibility(),this.setupPauseControlAccessibility(),this.sync(),this.slick.on("afterChange reInit setPosition",()=>this.sync())}sync(){this.syncArrows(),this.syncSlides(),this.syncDots(),this.syncPauseControl()}setupRegionAccessibility(){let e=this.getSliderElement();
1e&&(e.setAttribute("id",`brz-section-slider-${this.instanceId}`),e.setAttribute("role","region"),e.setAttribute("aria-roledescription","carousel"),e.setAttribute("aria-label",`Section slider ${this.instanceId+1}`))}setupArrowAccessibility(){let e=[{element:this.slick.find(".brz-slick-slider__arrow-prev").get(0),label:"Previous slide"},{element:this.slick.find(".brz-slick-slider__arrow-next").get(0),label:"Next slide"}],t=e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),this.slick.slick("slickPrev");break;case"ArrowRight":e.preventDefault(),this.slick.slick("slickNext")}};e.forEach(e=>{let{element:r,label:i}=e;r&&(r.setAttribute("type","button"),r.setAttribute("aria-label",i),r.setAttribute("aria-controls",`brz-section-slider-${this.instanceId}`),r.setAttribute("tabindex","0"),r.addEventListener("keydown",t))})}syncArrows(){this.getArrowButtons().forEach(e=>{e.setAttribute("tabindex","0");let t=e.classList.contains("slick-disabled");e.setAttribute("aria-disabled",t.toString())})}setupDotsAccessibility(){let e=this.getDotsList();e&&(e.setAttribute("aria-label","Slide navigation"),this.getDotButtons().forEach((e,t)=>{e.setAttribute("type","button"),e.setAttribute("aria-label",`Go to slide ${t+1}`),e.setAttribute("aria-controls",`brz-section-slide-${this.instanceId}-${t}`)}))}setupPauseControlAccessibility(){let e=this.getPauseItem();if(!e)return;let t=this.ensurePauseButton(e);t.setAttribute("type","button"),t.setAttribute("aria-controls",`brz-section-slider-${this.instanceId}`)}syncSlides(){let e=this.getSlides();e.forEach((t,r)=>{let i=t.classList.contains("slick-active");t.setAttribute("id",`brz-section-slide-${this.instanceId}-${r}`),t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-label",`Slide ${r+1} of ${e.length}`),t.setAttribute("aria-hidden",(!i).toString()),this.syncSlideFocusableElements(t,i)}),this.getClonedSlides().forEach(e=>{let t=e.classList.contains("slick-active");this.syncSlideFocusableElements(e,t)})}
1syncDots(){this.getDotsListItems().forEach((e,t)=>{let r=e.querySelector("button");if(!r)return;let i=e.classList.contains("slick-active");i?r.setAttribute("aria-current","true"):r.removeAttribute("aria-current"),r.setAttribute("aria-label",`${i?"Current slide, ":""}Go to slide ${t+1}`)})}syncPauseControl(){let e=this.getPauseButton();if(!e)return;let t="true"===this.slick.attr("data-slider-paused");e.setAttribute("aria-label",t?"Play autoplay":"Pause autoplay"),e.setAttribute("aria-pressed",t.toString())}ensurePauseButton(e){let t=e.querySelector(".brz-slick-slider__pause-button");if(t)return t;let r=document.createElement("button"),i=e.querySelector(".button-pause"),n=e.querySelector(".button-play");return r.type="button",r.className="brz-slick-slider__pause-button",i&&r.appendChild(i),n&&r.appendChild(n),r.addEventListener("click",e=>{if(e.target!==r)return;let t="true"===this.slick.attr("data-slider-paused")?n:i;null==t||t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}),e.appendChild(r),r}syncSlideFocusableElements(e,t){e.querySelectorAll("a[href], button, input, select, textarea, iframe, audio[controls], video[controls], [tabindex]").forEach(e=>{var r;let i=e.dataset.brzSectionSliderTabindex;if(t){void 0!==i&&(""===i?e.removeAttribute("tabindex"):e.setAttribute("tabindex",i),delete e.dataset.brzSectionSliderTabindex);return}void 0===i&&(e.dataset.brzSectionSliderTabindex=null!=(r=e.getAttribute("tabindex"))?r:""),e.setAttribute("tabindex","-1")})}getSliderElement(){return this.slick.get(0)}getDotsList(){return this.slick.find(".brz-slick-slider__dots").get(0)}getDotsListItems(){return this.slick.find(".brz-slick-slider__dots > li").toArray()}getDotButtons(){return this.slick.find(".brz-slick-slider__dots > li:not(.brz-slick-slider__pause) button").toArray()}getPauseButton(){return this.slick.find(".brz-slick-slider__pause-button").get(0)}getPauseItem(){return this.slick.find(".brz-slick-slider__pause").get(0)}getSlides(){return this.slick.find(".slick-slide").not(".slick-cloned").toArray()}getArrowButtons(){return this.slick.find(".brz-slick-slider__arrow-prev, .brz-slick-slider__arrow-next").toArray()}getClonedSlides(){return this.slick.find(".slick-slide.slick-cloned").toArray()}constructor({slick:e,instanceId:t}){v(this,"slick",void 0),v(this,"instanceId",void 0),this.slick=e,this.instanceId=t}}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let E=e=>e instanceof HTMLElement&&"none"!==window.getComputedStyle(e).display,w=e=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("keydown",t=>{("Enter"===t.key||" "===t.key||"Spacebar"===t.key)&&(t.preventDefault(),e.click())})};class _{init(){var e,t;this.root.setAttribute("role","region"),this.root.setAttribute("aria-label","Account");let r=this.root.querySelector(".brz-login__authorized"),i=null!=(e=null==r?void 0:r.querySelector(".brz-login__authorized-link"))?e:null==r?void 0:r.querySelector("span");i instanceof HTMLElement&&(w(i),i.setAttribute("aria-label","Logout"));let n=this.root.querySelector(".brz-login-form__login"),s=this.root.querySelector(".brz-login-form__register"),o=this.root.querySelector(".brz-login-form__forgot");n&&(n.id||(n.id=`${this.instanceId}-form-login`)),s&&(s.id||(s.id=`${this.instanceId}-form-register`)),o&&(o.id||(o.id=`${this.instanceId}-form-forgot`)),this.root.querySelectorAll(".brz-login-form__field-login-link").forEach(e=>{var t;w(e),(null==n?void 0:n.id)&&e.setAttribute("aria-controls",n.id),e.setAttribute("aria-label",(null==(t=e.textContent)?void 0:t.trim())||"Back to login")}),this.root.querySelectorAll(".brz-login-form__field-register-link").forEach(e=>{var t;w(e),(null==s?void 0:s.id)&&e.setAttribute("aria-controls",s.id),e.setAttribute("aria-label",(null==(t=e.textContent)?void 0:t.trim())||"Register")}),this.root.querySelectorAll(".brz-login-form__field-lost-password").forEach(e=>{var t;w(e),(null==o?void 0:o.id)&&e.setAttribute("aria-controls",o.id),e.setAttribute("aria-label",(null==(t=e.textContent)?void 0:t.trim())||"Lost password")}),this.root.addEventListener("click",()=>{setTimeout(()=>this.sync(),0)}
1,!0),(t=this.root).querySelectorAll("input").forEach(e=>{if("hidden"===e.type||e.getAttribute("aria-label")||e.getAttribute("aria-labelledby"))return;let r=e.id;if(r&&t.querySelector(`label[for="${CSS.escape(r)}"]`))return;let i=e.getAttribute("placeholder")||e.getAttribute("name")||"Field";e.setAttribute("aria-label",i)}),this.sync()}sync(){let e=this.root.querySelector(".brz-login__authorized"),t=this.root.querySelector(".brz-login-form__login"),r=this.root.querySelector(".brz-login-form__register"),i=this.root.querySelector(".brz-login-form__forgot"),n=this.getCurrentVariant({authorized:e,loginForm:t,registerForm:r,forgotForm:i});this.root.setAttribute("data-brz-login-variant",n),e instanceof HTMLElement&&e.setAttribute("aria-hidden",(!E(e)).toString()),t instanceof HTMLElement&&(t.setAttribute("aria-hidden",(!E(t)).toString()),t.setAttribute("aria-label","Login")),r instanceof HTMLElement&&(r.setAttribute("aria-hidden",(!E(r)).toString()),r.setAttribute("aria-label","Register")),i instanceof HTMLElement&&(i.setAttribute("aria-hidden",(!E(i)).toString()),i.setAttribute("aria-label","Lost password"))}getCurrentVariant(e){if(e.authorized&&E(e.authorized))return"authorized";if(e.loginForm&&E(e.loginForm))return"login";if(e.registerForm&&E(e.registerForm))return"register";if(e.forgotForm&&E(e.forgotForm))return"forgot";let t=this.root.getAttribute("type");return"register"===t||"forgot"===t||"authorized"===t?t:"login"}constructor(e){S(this,"root",void 0),S(this,"instanceId",void 0),this.root=e,this.instanceId=e.getAttribute("data-brz-login-a11y-id")||`brz-login-a11y-${Math.random().toString(36).slice(2,9)}`,this.root.setAttribute("data-brz-login-a11y-id",this.instanceId)}}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let k=(0,r(2540).uo)("click_outside_to_close");class x{init(){var e,t,r,i;this.root.setAttribute("role","dialog"),this.root.setAttribute("aria-modal","true"),this.root.setAttribute("tabindex","-1"),this.root.setAttribute("aria-hidden",(!this.isOpened()).toString()),this.root.querySelectorAll(".brz-popup2__close, .brz-popup2__action-close").forEach(e=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.addEventListener("keydown",t=>{("Enter"===t.key||" "===t.key||"Spacebar"===t.key)&&(t.preventDefault(),e.click())}),e.setAttribute("aria-label","Close popup")}),null==(t=window.Brz)||null==(e=t.on)||e.call(t,"elements.popup.open",e=>{e===this.root&&this.onOpen()}),null==(i=window.Brz)||null==(r=i.on)||r.call(i,"elements.popup.close",e=>{e===this.root&&this.onClose()}),this.isOpened()&&this.onOpen()}isOpened(){return this.root.classList.contains("brz-popup2--opened")}canCloseWithEsc(){var e;let t;return"true"===(t=null!=(e=this.root.getAttribute(k))?e:this.root.getAttribute("data-click_outside_to_close"))||"1"===t||"on"===t}onOpen(){this.root.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{this.root.focus({preventScroll:!0})}),!this.canCloseWithEsc()||this.onDocKeyDown||(this.onDocKeyDown=e=>{if("Escape"!==e.key||!this.isOpened())return;e.preventDefault();let t=c()(this.root).popup();t&&"function"==typeof t.close&&t.close()},document.addEventListener("keydown",this.onDocKeyDown,!0))}onClose(){this.root.setAttribute("aria-hidden","true"),this.onDocKeyDown&&(document.removeEventListener("keydown",this.onDocKeyDown,!0),this.onDocKeyDown=null)}constructor(e){z(this,"root",void 0),z(this,"onDocKeyDown",null),this.root=e}}var P=r(1450),L=r(6513);function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(l={}).Dropdown="dropdown",l.MegaMenu="megaMenu",l.Link="link";class M{init(){"true"!==this.rootMenu.dataset.brzMenuA11yInit&&(this.rootMenu.dataset.brzMenuA11yInit="true",this.buildStates(),this.applyRolesAndAria(),this.wrapApisWithAriaSync(),this.initFocusModel(),this.attachListeners())}buildStates(){for(let e of(this.allStates=this.menuItems.map(e=>{var t;let r=e.item.querySelector("a");if(!r)return null;let i=this.isExtendedMenuItem(e),n=null!=(t=i?e.item.querySelector(":scope > .brz-mega-menu__portal")||e.item.querySelector(":scope > .brz-menu__sub-menu"):void 0)?t:void 0;return{item:e.item,trigger:r,type:e.type,api:i?e.api:void 0,directChildren:[],parent:null,submenu:n}}).filter(e=>null!==e),this.stateByTrigger.clear(),this.stateByItem.clear(),this.allStates.forEac
1h(e=>{this.stateByTrigger.set(e.trigger,e),this.stateByItem.set(e.item,e)}),this.menuItems)){let t=this.stateByItem.get(e.item);t&&this.isExtendedMenuItem(e)&&(t.directChildren=e.children.map(e=>this.stateByItem.get(e)).filter(e=>void 0!==e),t.directChildren.forEach(e=>{e.parent=t}))}this.topLevelStates=this.allStates.filter(e=>null===e.parent),this.extendedStates=this.allStates.filter(e=>void 0!==e.api)}applyRolesAndAria(){var e,t;this.rootMenu.setAttribute("role",this.rootMenuRole),this.rootMenu.removeAttribute("aria-activedescendant");let r="vertical"===(null!=(e=(0,L.$$)(null!=(t=this.rootMenu.getAttribute("data-mods"))?t:"{}"))?e:{})[(0,P.G)()]?"vertical":"horizontal";this.rootMenu.setAttribute("aria-orientation",r),this.allStates.forEach((e,t)=>{let r=e.trigger.id||`brz-menuitem-${this.instanceId}-${t}`;if(e.trigger.id=r,e.trigger.setAttribute("role","menuitem"),e.trigger.setAttribute("tabindex","-1"),e.api){let i=e.api.isOpen();if(e.trigger.setAttribute("aria-haspopup","true"),e.trigger.setAttribute("aria-expanded",i.toString()),e.submenu){let n=e.submenu.id||`brz-submenu-${this.instanceId}-${t}`;e.submenu.id=n,e.submenu.setAttribute("role","menu"),e.submenu.setAttribute("aria-labelledby",r),e.trigger.setAttribute("aria-controls",n),e.submenu.setAttribute("aria-hidden",(!i).toString())}}})}wrapApisWithAriaSync(){this.extendedStates.forEach(e=>{if(!e.api)return;let t=e.api,r=`brzMenuA11yWrapped-${this.instanceId}`;if(!0===t[r])return;let i=t.open.bind(t),n=t.close.bind(t),s=()=>{let r=t.isOpen();e.trigger.setAttribute("aria-expanded",r.toString()),e.submenu&&e.submenu.setAttribute("aria-hidden",(!r).toString())};t.open=()=>{i(),s()},t.close=()=>{n(),s()},t[r]=!0})}initFocusModel(){let e=this.topLevelStates[0],t=this.getActiveState();t?this.setActiveTrigger(t):e&&this.setActiveTrigger(e)}attachListeners(){document.addEventListener("keydown",this.onKeyDown),document.addEventListener("focusout",this.onFocusOut,!0),this.allStates.forEach(e=>{e.trigger.addEventListener("focus",()=>{this.setActiveTrigger(e)})})}getActiveState(){return this.getStateFromElement(document.activeElement)}getStateFromElement(e){var t;let r=e instanceof HTMLElement?e:null;if(!r)return null;let i=r.closest("a");if(i){let e=this.stateByTrigger.get(i);if(e)return e}let n=r.closest(".brz-menu__sub-menu, .brz-mega-menu__portal");return n&&null!=(t=this.allStates.find(e=>e.submenu===n))?t:null}getSubmenuRoots(){return this.extendedStates.map(e=>e.submenu).filter(e=>e instanceof HTMLElement)}isWithinMenuKeyboardScope(e){return this.rootMenu.contains(e)||this.getSubmenuRoots().some(t=>t.contains(e))}isMenubarHorizontal(){var e,t;return"vertical"!==(null!=(e=(0,L.$$)(null!=(t=this.rootMenu.getAttribute("data-mods"))?t:"{}"))?e:{})[(0,P.G)()]}moveToAdjacentMenubar(e,t){let r=this.getTopLevelState(e),i=this.topLevelStates,n=i.indexOf(r);if(-1===n)return;let s=(n+t+i.length)%i.length,o=i[s];this.closeAllSubmenus(),o.api&&o.api.open(),this.setActiveTrigger(o),o.trigger.focus()}shouldAllowNativeActivate(e){var t;if(!e)return!1;let r=document.activeElement;return r instanceof HTMLElement&&!!(null==(t=e.submenu)?void 0:t.contains(r))&&r!==e.trigger}isFocusInsideSubmenuPanel(e,t){return!!e.submenu&&e.submenu.contains(t)&&t!==e.trigger}closeSubmenuAndFocusTrigger(e){e.api&&(this.closeSubmenusExcept(e),e.api.close(),this.setActiveTrigger(e),e.trigger.focus())}handleTabInsideOpenSubmenu(e,t,r){let i=e.submenu;if(!i||!i.contains(t))return!1;let n=this.getFocusablesInSubmenu(i),s=n.indexOf(t);return(-1===s&&(s=n.findIndex(e=>e.contains(t))),0===n.length||-1===s)?this.closeSubmenuAndFocusTrigger(e):r?s<n.length-1?(this.setActiveTrigger(e,{focusOnTrigger:!1}),n[s+1].focus()):this.closeSubmenuAndFocusTrigger(e):s>0?(this.setActiveTrigger(e,{focusOnTrigger:!1}),n[s-1].focus()):(this.closeSubmenusExcept(e),this.setActiveTrigger(e),e.trigger.focus()),!0}getFocusablesInSubmenu(e){let t=e.classList.contains("brz-mega-menu__portal");return Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]')).filter(r=>{if(r.closest("[aria-hidden='true']")||!r.getClientRects().length)return!1;if(t){let t=r.closest(".brz-menu__sub-menu");if(t&&e.contains(t))return!1}return"hidden"!==window.getComputedStyle(r).visibility})}getFocusableEdge(e,t){let r=this.getFocusablesInSubmenu(e);return r.length?t?r[0]:r[r.length-1]:null}
1cycleFocusableInSubmenu(e,t,r,i){let n=this.getFocusablesInSubmenu(e);if(!n.length)return;let s=n.indexOf(t);if(-1===s&&(s=n.findIndex(e=>e.contains(t))),-1===s){var o;null==(o=1===i?n[0]:n[n.length-1])||o.focus();return}let a=n[(s+i+n.length)%n.length];this.setActiveTrigger(r,{focusOnTrigger:!1}),a.focus()}getTopLevelState(e){let t=e;for(;t.parent;)t=t.parent;return t}restoreVisibleTabStop(e){let t=e?this.getTopLevelState(e):this.topLevelStates[0];t&&this.setActiveTrigger(t)}getSiblings(e){return null==e.parent?this.topLevelStates:e.parent.directChildren}setActiveTrigger(e,t){var r,i;let n=null==(r=null==t?void 0:t.focusOnTrigger)||r,s=null==e.parent?this.rootMenu:null!=(i=e.parent.submenu)?i:this.rootMenu;this.allStates.forEach(e=>e.trigger.setAttribute("tabindex","-1")),e.trigger.setAttribute("tabindex",n?"0":"-1"),s.setAttribute("aria-activedescendant",e.trigger.id)}closeAllSubmenus(){this.extendedStates.forEach(e=>{var t;(null==(t=e.api)?void 0:t.isOpen())&&e.api.close()})}closeSubmenusExcept(e){var t;let r=new Set,i=e.parent;for(;i;)r.add(i),i=i.parent;(null==(t=e.api)?void 0:t.isOpen())&&r.add(e),this.extendedStates.forEach(e=>{e.api&&e.api.isOpen()&&(r.has(e)||e.api.close())})}openSubmenuAndFocusChild(e,t){var r;if(!e.api)return;this.closeSubmenusExcept(null!=(r=e.directChildren[t])?r:e),e.api.open();let i=e.directChildren[t];if(!i){if(e.submenu){let t=this.getFocusableEdge(e.submenu,!0);t&&(this.setActiveTrigger(e,{focusOnTrigger:!1}),t.focus())}return}this.setActiveTrigger(i),i.trigger.focus()}focusSiblingAtOffset(e,t){let r=this.getSiblings(e);if(!r.length)return;let i=r.findIndex(t=>t===e);if(-1===i)return;let n=(i+t+r.length)%r.length,s=r[n];this.closeSubmenusExcept(s),this.setActiveTrigger(s),s.trigger.focus()}focusBoundaryInSameLevel(e,t){let r=document.activeElement;if(r instanceof HTMLElement&&this.isFocusInsideSubmenuPanel(e,r)&&e.submenu){let r=this.getFocusableEdge(e.submenu,t);r&&(this.closeSubmenusExcept(e),this.setActiveTrigger(e,{focusOnTrigger:!1}),r.focus());return}let i=this.getSiblings(e);if(!i.length)return;let n=i[t?0:i.length-1];this.closeSubmenusExcept(n),this.setActiveTrigger(n),n.trigger.focus()}focusParentTrigger(e){let t=e.parent;t&&(this.closeSubmenusExcept(t),this.setActiveTrigger(t),t.trigger.focus())}submenuVerticalStep(e,t,r){if(t===e.trigger&&null!==e.parent)return void this.focusSiblingAtOffset(e,r);let i=e.submenu;if(i&&this.isFocusInsideSubmenuPanel(e,t)){if(e.directChildren.length>0){let i=t.closest("a"),n=i?this.stateByTrigger.get(i):void 0;if(n&&n.parent===e&&e.directChildren.includes(n))return void this.focusSiblingAtOffset(n,r)}this.cycleFocusableInSubmenu(i,t,e,r);return}null===e.parent&&(null==i?void 0:i.contains(t))&&t!==e.trigger?this.cycleFocusableInSubmenu(i,t,e,r):null!==e.parent&&this.focusSiblingAtOffset(e,r)}submenuArrowLeft(e,t){var r,i,n,s;(null==(r=e.parent)?void 0:r.parent)!=null?this.focusParentTrigger(e):(null==(i=e.parent)?void 0:i.parent)===null?this.moveToAdjacentMenubar(e.parent,-1):null===e.parent&&(null==(n=e.submenu)?void 0:n.contains(t))&&t!==e.trigger?this.moveToAdjacentMenubar(e,-1):null===e.parent&&t===e.trigger&&(null==(s=e.api)?void 0:s.isOpen())&&this.moveToAdjacentMenubar(e,-1)}submenuArrowRight(e,t){var r,i;let n=t.closest("a"),s=n?this.stateByTrigger.get(n):void 0;s&&(null==(r=e.submenu)?void 0:r.contains(t))&&s.api?this.openSubmenuAndFocusChild(s,0):e.api&&t===e.trigger?this.openSubmenuAndFocusChild(e,0):null!==e.parent?e.api?this.openSubmenuAndFocusChild(e,0):this.moveToAdjacentMenubar(e,1):null===e.parent&&(null==(i=e.submenu)?void 0:i.contains(t))&&t!==e.trigger&&((null==s?void 0:s.api)?this.openSubmenuAndFocusChild(s,0):this.moveToAdjacentMenubar(e,1))}handleArrowKey(e,t){let r=document.activeElement;if(!(r instanceof HTMLElement))return;let i=this.isMenubarHorizontal()?{next:"ArrowRight",prev:"ArrowLeft",openFirst:"ArrowDown",openLast:"ArrowUp"}:{next:"ArrowDown",prev:"ArrowUp",openFirst:"ArrowRight",openLast:"ArrowLeft"};if(null===t.parent&&r===t.trigger)return e===i.openFirst&&t.api?void this.openSubmenuAndFocusChild(t,0):e===i.openLast&&t.api?void this.openSubmenuAndFocusChild(t,t.directChildren.length-1):e===i.next?void this.focusSiblingAtOffset(t,1):void(e===i.prev&&this.focusSiblingAtOffset(t,-1));if(!this.isDelegatedToNestedMenu(t,r)){if("ArrowDown"===e||"ArrowUp"===e)return void this.submenuVerticalStep(t,r,"ArrowDown"===e?1:-1);if("ArrowLeft"===e)return void this.submenuArrowLeft(t,r);"ArrowRight"===e&&this.submenuArrowRight(t,r)}}handleEnter(e){e.api?this.openSubmenuAndFocusChild(e,0):e.trigger.click()}handleSpace(e){e.api?this.openSubmenuAndFocusChild(e,0):e.trigger.click()}static getMenuItemType(e){return e.classList.contains("brz-menu__item-dropdown")?"dropdown":e.classList.contains("brz-menu__item-mega-menu")?"megaMenu":"link"}isExtendedMenuItem(e){return"link"!==e.type}isDelegatedToNestedMenu(e,t){var r;if("megaMenu"!==e.type||!(null==(r=e.submenu)?void 0:r.contains(t))||t===e.trigger)return!1;let i=t.closest(".brz-menu");return null!==i&&e.submenu.contains(i)}isInsideNestedMenuInPortal(e){return this.extendedStates.some(t=>{var r;if("megaMenu"!==t.type||!(null==(r=t.submenu)?void 0:r.contains(e)))return!1;let i=e.closest(".brz-menu");return null!==i&&t.submenu.contains(i)})}isSubmenuOpen(e){var t,r,i;return null!=(t=null==(i=e.api)||null==(r=i.isOpen)?void 0:r.call(i))&&t||"true"===e.trigger.getAttribute("aria-expanded")}constructor(e,t){I(this,"rootMenu",void 0),I(this,"instanceId",void 0),I(this,"menuItems",void 0),I(this,"extendedStates",[]),I(this,"allStates",[]),I(this,"topLevelStates",[]),I(this,"stateByTrigger",new Map),I(this,"stateByItem",new Map),I(this,"rootMenuRole","menubar"),I(this,"onKeyDown",e=>{var t,r,i,n;if("__brzMenuA11yHandled"in e&&e.__brzMenuA11yHandled)return;let s=document.activeElement;if(!(s instanceof HTMLElement)||!this.isWithinMenuKeyboardScope(s))return;if("Escape"===e.key){let i=this.getActiveState();return!i&&this.isInsideNestedMenuInPortal(s)?void 0:(e.preventDefault(),null==i?void 0:i.parent)?void this.focusParentTrigger(i):(null==i?void 0:i.submenu)&&i.api&&i.submenu.contains(s)&&s!==i.trigger||(null==i||null==(r=i.api)||null==(t=r.isOpen)?void 0:t.call(r))?void this.closeSubmenuAndFocusTrigger(i):void this.closeAllSubmenus()}let o=this.getActiveState();if(o){if("Tab"===e.key){if(this.isSubmenuOpen(o)&&s!==o.trigger&&(null==(i=o.submenu)?void 0:i.contains(s))&&this.handleTabInsideOpenSubmenu(o,s,!e.shiftKey))return void e.preventDefault();if(e.shiftKey&&o.parent){let t=this.getSiblings(o),r=t.findIndex(e=>e===o);if(r>0){e.preventDefault();let i=t[r-1];this.closeSubmenusExcept(i),this.setActiveTrigger(i),i.trigger.focus();return}if(0===r){e.preventDefault(),this.focusParentTrigger(o);return}}let t=e.shiftKey?-1:1;if(this.isSubmenuOpen(o)){let r=o.directChildren,i=null!=(n=r[1===t?0:r.length-1])?n:null;if(!i){let r=o.submenu,i=1===t?r&&this.getFocusableEdge(r,!0):r&&this.getFocusableEdge(r,!1);if(!i)return;e.preventDefault(),this.closeSubmenusExcept(o),this.setActiveTrigger(o,{focusOnTrigger:!1}),i.focus();return}e.preventDefault(),this.closeSubmenusExcept(o),this.setActiveTrigger(i),i.trigger.focus()}return}switch(e.key){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault(),this.handleArrowKey(e.key,o),document.activeElement!==s&&(e.__brzMenuA11yHandled=!0);return;case"Home":e.preventDefault(),this.focusBoundaryInSameLevel(o,!0);return;case"End":e.preventDefault(),this.focusBoundaryInSameLevel(o,!1);return;case"Enter":if(this.shouldAllowNativeActivate(o))return;e.preventDefault(),this.handleEnter(o);return;case" ":case"Spacebar":if(this.shouldAllowNativeActivate(o))return;e.preventDefault(),this.handleSpace(o);return}}}),I(this,"onFocusOut",e=>{let t=e.target;if(!(t instanceof HTMLElement)||!this.isWithinMenuKeyboardScope(t))return;let r=e.relatedTarget,i=this.getStateFromElement(t);if(!(r instanceof HTMLElement)){this.closeAllSubmenus(),this.restoreVisibleTabStop(i);return}this.isWithinMenuKeyboardScope(r)||(this.closeAllSubmenus(),this.restoreVisibleTabStop(i))}),this.rootMenu=e,this.instanceId=M.instanceCounter++,this.menuItems=t}}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}I(M,"instanceCounter",0);class F{init(){"true"!==this.rootMenu.dataset.brzMmenuA11yInit&&(this.rootMenu.dataset.brzMmenuA11yInit="true",this.buildStates(),this.applyRolesAndAri
1a(),this.initFocusModel(),this.attachListeners(),this.syncMenuState(!1))}onMenuOpened(){var e;this.syncMenuState(!0);let t=null!=(e=this.getCurrentPanelStates()[0])?e:this.topLevelStates[0];if(t){this.setActiveTrigger(t),requestAnimationFrame(()=>{t.trigger.focus()});return}requestAnimationFrame(()=>{this.rootMenu.focus()})}onMenuClosed(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.pendingOpenedState=null,this.pendingClosedParentState=null,this.syncMenuState(!1);let t=this.topLevelStates[0];t&&this.setActiveTrigger(t),e&&requestAnimationFrame(()=>{this.trigger.focus()})}onPanelOpened(e){var t,r,i;this.syncSubmenuStates();let n=null!=(t=null!=(r=this.pendingOpenedState)?r:this.allStates.find(t=>t.submenu===e))?t:null;this.pendingOpenedState=null;let s=null!=(i=null==n?void 0:n.directChildren[0])?i:this.getPanelStates(e)[0];if(!s){let t=this.getFirstFocusableInPanel(e);t&&requestAnimationFrame(()=>{t.focus()});return}this.setActiveTrigger(s),requestAnimationFrame(()=>{s.trigger.focus()})}onPanelClosed(e){var t,r;this.syncSubmenuStates();let i=null!=(t=null!=(r=this.pendingClosedParentState)?r:this.allStates.find(t=>t.submenu===e))?t:null;this.pendingClosedParentState=null,i&&(this.setActiveTrigger(i),requestAnimationFrame(()=>{i.trigger.focus()}))}buildStates(){var e;let t=Array.from(this.rootMenu.querySelectorAll(".brz-mm-panel[id]:not(.brz-mm-panels)")),r=new Set;this.panelsById.clear(),t.forEach(e=>{this.panelsById.set(e.id,e)}),this.allStates=t.flatMap(e=>{let t=Array.from(e.querySelectorAll(".brz-menu__item")).filter(t=>t.closest(".brz-mm-panel[id]:not(.brz-mm-panels)")===e).map(t=>{var i,n,s;let o=null!=(i=null!=(n=t.querySelector(".brz-mm-listitem__text"))?n:Array.from(t.querySelectorAll("a")).find(e=>!e.classList.contains("brz-mm-btn_next")))?i:null;if(!o)return null;let a=t.querySelector(".brz-mm-btn_next[href^='#']"),l=null!=(s=null==a?void 0:a.getAttribute("href"))?s:"",u=this.panelsById.get(l.replace(/^#/,""));u&&r.add(u.id);let c={item:t,panel:e,trigger:o,openButton:null!=a?a:void 0,submenu:u,parent:null,directChildren:[]};return u&&(c.api={open:()=>{this.menuApi.openPanel(u)},close:()=>{this.menuApi.closePanel(u)},isOpen:()=>this.isPanelVisible(u)}),c}).filter(e=>null!==e);return this.statesByPanel.set(e,t),t}),this.stateByTrigger.clear(),this.allStates.forEach(e=>{this.stateByTrigger.set(e.trigger,e)}),this.allStates.forEach(e=>{if(!e.submenu)return;let t=this.getPanelStates(e.submenu);e.directChildren=t,t.forEach(t=>{t.parent=e})});let i=null!=(e=t.find(e=>!r.has(e.id)))?e:t[0];this.topLevelStates=i?this.getPanelStates(i):[]}applyRolesAndAria(){let e=this.rootMenu.id||`brz-mmenu-${this.instanceId}`;this.rootMenu.id=e,this.rootMenu.setAttribute("role","dialog"),this.rootMenu.setAttribute("aria-modal","true"),this.rootMenu.setAttribute("tabindex","-1"),this.rootMenu.setAttribute("aria-label",this.label),this.trigger.setAttribute("aria-haspopup","dialog"),this.trigger.setAttribute("aria-controls",e),this.panelsById.forEach(e=>{e.setAttribute("role","menu"),e.setAttribute("aria-hidden",String(!this.isPanelVisible(e))),e.querySelectorAll(".brz-mm-navbar__title").forEach(e=>{e.setAttribute("tabindex","-1")}),e.querySelectorAll(".brz-mm-btn_next").forEach(e=>{e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true")})}),this.allStates.forEach((e,t)=>{let r=e.trigger.id||`brz-mmenuitem-${this.instanceId}-${t}`;e.trigger.id=r,e.trigger.setAttribute("role","menuitem"),e.trigger.setAttribute("tabindex","-1"),e.api&&e.submenu&&(e.trigger.setAttribute("aria-haspopup","true"),e.trigger.setAttribute("aria-expanded",String(e.api.isOpen())),e.trigger.setAttribute("aria-controls",e.submenu.id),e.submenu.setAttribute("aria-labelledby",r))})}initFocusModel(){let e=this.topLevelStates[0];e&&this.setActiveTrigger(e)}attachListeners(){this.rootMenu.addEventListener("keydown",this.onKeyDown),this.rootMenu.addEventListener("focusout",this.onFocusOut,!0),this.allStates.forEach(e=>{e.trigger.addEventListener("focus",()=>{this.setActiveTrigger(e)})})}syncMenuState(e){this.trigger.setAttribute("aria-expanded",String(e)),this.rootMenu.setAttribute("aria-hidden",String(!e)),this.syncSubmenuStates()}
1syncSubmenuStates(){this.panelsById.forEach(e=>{e.setAttribute("aria-hidden",String(!this.isPanelVisible(e)))}),this.allStates.forEach(e=>{if(!e.api||!e.submenu)return;let t=e.api.isOpen();e.trigger.setAttribute("aria-expanded",String(t)),e.submenu.setAttribute("aria-hidden",String(!t))})}isMenuOpen(){return this.rootMenu.classList.contains("brz-mm-menu_opened")}getCurrentOpenPanel(){var e;let t=document.activeElement;if(t instanceof HTMLElement){let e=t.closest(".brz-mm-panel[id]:not(.brz-mm-panels)");if(e&&this.rootMenu.contains(e))return e}let r=Array.from(this.rootMenu.querySelectorAll(".brz-mm-panel_opened:not(.brz-mm-panels)"));return null!=(e=r[r.length-1])?e:null}isPanelVisible(e){return e.getClientRects().length>0&&"hidden"!==getComputedStyle(e).visibility&&!e.classList.contains("brz-mm-hidden")}getPanelStates(e){var t;return null!=(t=this.statesByPanel.get(e))?t:[]}getTriggerStateFromElement(e){var t;if(!(e instanceof HTMLElement))return null;let r=e.closest("a");return r&&null!=(t=this.stateByTrigger.get(r))?t:null}getOwnerStateFromElement(e){var t;if(!(e instanceof HTMLElement))return null;let r=e.closest(".brz-mm-panel[id]");return r&&null!=(t=this.allStates.find(e=>e.submenu===r))?t:null}getCurrentPanelStates(){let e=this.getCurrentOpenPanel();return e?this.getPanelStates(e):this.topLevelStates}getSiblings(e){return e.parent?e.parent.directChildren:this.topLevelStates}setActiveTrigger(e){let t=this.getCurrentOpenPanel(),r=null!=t?t:this.rootMenu;this.allStates.forEach(e=>e.trigger.setAttribute("tabindex","-1")),e.trigger.setAttribute("tabindex","0"),r.setAttribute("aria-activedescendant",e.trigger.id)}focusSiblingAtOffset(e,t){let r=this.getSiblings(e);if(!r.length)return;let i=r.findIndex(t=>t===e);if(-1===i)return;let n=(i+t+r.length)%r.length,s=r[n];this.setActiveTrigger(s),s.trigger.focus()}focusBoundaryInSameLevel(e,t){let r=this.getSiblings(e);if(!r.length)return;let i=r[t?0:r.length-1];this.setActiveTrigger(i),i.trigger.focus()}openSubmenuAndFocusChild(e){if(!e.api||!e.submenu)return;this.pendingOpenedState=e,e.api.open();let t=e.directChildren[0];if(t)return void this.setActiveTrigger(t);let r=this.getFirstFocusableInPanel(e.submenu);r&&requestAnimationFrame(()=>{r.focus()})}getFirstFocusableInPanel(e){var t;return null!=(t=this.getFocusableElementsInPanel(e)[0])?t:null}getFocusableElementsInPanel(e){return Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(e=>!(e.classList.contains("brz-mm-navbar__title")||e.classList.contains("brz-mm-btn_next"))&&e.getClientRects().length>0&&"hidden"!==getComputedStyle(e).visibility&&!e.classList.contains("brz-mm-hidden"))}closeCurrentPanelAndFocusParent(e){e.parent&&(this.pendingClosedParentState=null,this.setActiveTrigger(e.parent),e.parent.trigger.focus())}constructor(e,t){T(this,"rootMenu",void 0),T(this,"trigger",void 0),T(this,"menuApi",void 0),T(this,"label",void 0),T(this,"instanceId",void 0),T(this,"allStates",[]),T(this,"topLevelStates",[]),T(this,"stateByTrigger",new Map),T(this,"statesByPanel",new Map),T(this,"panelsById",new Map),T(this,"pendingOpenedState",null),T(this,"pendingClosedParentState",null),T(this,"onKeyDown",e=>{if(!this.isMenuOpen())return;let t=document.activeElement,r=this.getTriggerStateFromElement(t),i=null!=r?r:this.getOwnerStateFromElement(t);if(i){if(!r){var n,s,o,a,l,u;let r=i.submenu?this.getFocusableElementsInPanel(i.submenu):[],c=r.findIndex(e=>e===t);
1switch(e.key){case"Tab":{if(!r.length||-1===c)return;e.preventDefault();let t=(c+(e.shiftKey?-1:1)+r.length)%r.length;null==(n=r[t])||n.focus();return}case"ArrowDown":{if(!r.length||-1===c)return;e.preventDefault();let t=(c+1)%r.length;null==(s=r[t])||s.focus();return}case"ArrowUp":{if(!r.length||-1===c)return;e.preventDefault();let t=(c-1+r.length)%r.length;null==(o=r[t])||o.focus();return}case"Home":if(!r.length)return;e.preventDefault(),null==(a=r[0])||a.focus();return;case"End":if(!r.length)return;e.preventDefault(),null==(l=r[r.length-1])||l.focus();return;case"ArrowLeft":case"Escape":e.preventDefault(),(null==(u=i.api)?void 0:u.isOpen())?(this.setActiveTrigger(i),i.trigger.focus()):i.parent?this.closeCurrentPanelAndFocusParent(i):this.menuApi.close();return;default:return}}switch(e.key){case"ArrowDown":e.preventDefault(),this.focusSiblingAtOffset(i,1);return;case"ArrowUp":e.preventDefault(),this.focusSiblingAtOffset(i,-1);return;case"ArrowRight":if(!i.api)return;e.preventDefault(),this.openSubmenuAndFocusChild(i);return;case"ArrowLeft":case"Escape":e.preventDefault(),i.parent?this.closeCurrentPanelAndFocusParent(i):this.menuApi.close();return;case"Home":e.preventDefault(),this.focusBoundaryInSameLevel(i,!0);return;case"End":e.preventDefault(),this.focusBoundaryInSameLevel(i,!1);return;case"Enter":case" ":case"Spacebar":if(e.preventDefault(),i.api)return void this.openSubmenuAndFocusChild(i);i.trigger.click();return}}}),T(this,"onFocusOut",e=>{if(!this.isMenuOpen())return;let t=e.relatedTarget;if(t!==this.trigger){if(!(t instanceof HTMLElement))return void this.menuApi.close();this.rootMenu.contains(t)||this.menuApi.close()}}),this.rootMenu=e,this.trigger=t.trigger,this.menuApi=t.menuApi,this.label=t.label||"Menu",this.instanceId=F.instanceCounter++}}T(F,"instanceCounter",0)},9322(e,t,r){"use strict";r.d(t,{l:()=>i});let i=()=>window.BrizyLibs||{}},5043(e,t,r){"use strict";function i(e){return t=>e(t)?t:void 0}r.d(t,{q:()=>s,S:()=>n});let n=e=>i(t=>e.includes(t)),s=e=>i(t=>Object.values(e).includes(t))},7542(e,t,r){"use strict";r.d(t,{un:()=>n}),r(7617);let i=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"],n=()=>i.includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},1450(e,t,r){"use strict";r.d(t,{G:()=>a});let i="desktop",n="u">typeof window&&void 0!==window.matchMedia,s=n?window.matchMedia("(max-width: 767px)"):null,o=n?window.matchMedia("(min-width: 768px) and (max-width: 991px)"):null,a=()=>n?(null==s?void 0:s.matches)?"mobile":(null==o?void 0:o.matches)?"tablet":i:i},6513(e,t,r){"use strict";r.d(t,{$$:()=>n,uv:()=>i});let i=e=>JSON.parse(decodeURIComponent(e)),n=e=>{try{return i(e)}catch(e){}}},7617(e,t,r){"use strict";function i(e,t){return void 0===e?t:e}r.d(t,{Yp:()=>i,uy:()=>n});let n=e=>null==e||"number"==typeof e&&Number.isNaN(e)}}]);
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.