1(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["295"],{7625(t){(()=>{"use strict";var e={d:(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},i={};e.r(i),e.d(i,{Arr:()=>r,Bool:()=>n,Err:()=>u,Json:()=>s,Num:()=>o,Obj:()=>l,Str:()=>a,pipe:()=>T});var r={};e.r(r),e.d(r,{is:()=>b,read:()=>c,readWithItemReader:()=>d});var n={};e.r(n),e.d(n,{read:()=>h});var s={};e.r(s),e.d(s,{read:()=>g});var o={};e.r(o),e.d(o,{read:()=>p});var l={};e.r(l),e.d(l,{hasKey:()=>v,hasKeys:()=>A,isEmpty:()=>z,isObject:()=>f,length:()=>_,read:()=>y,readAsUnknownDict:()=>k,readKey:()=>E,readNoArray:()=>S,readWithValueReader:()=>w});var a={};e.r(a),e.d(a,{is:()=>M,read:()=>D});var u={};e.r(u),e.d(u,{isAllT:()=>N,isNullish:()=>C,isT:()=>B,onEmpty:()=>q,onNullish:()=>O,onUndefined:()=>P,throwOnNullish:()=>F});var c=function(t){if(Array.isArray(t))return t},d=function(t){return function(e){if(Array.isArray(e)){var i=e.map(t);return i.some(function(t){return null==t||"number"==typeof t&&Number.isNaN(t)})?void 0:i}}},b=function(t){return!!c(t)},h=function(t){if("boolean"==typeof t)return t},g=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){return}},p=function(t){switch(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t){case"string":var e=""!==t?Number(t):NaN;return isNaN(e)?void 0:e;case"number":return isNaN(t)?void 0:t;default:return}};function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}var f=function(t){return"object"==typeof t&&null!==t},v=function(t,e){return t in e},A=function(t,e){return t.every(function(t){return v(t,e)})},y=function(t){if(f(t))return t},S=function(t){if(f(t)&&!Array.isArray(t))return t},k=function(t){if(f(t))return t},w=function(t){return function(e){var i,r=k(e);if(void 0!==r){var n={},s=!0,o=!1,l=void 0;try{for(var a,u=Object.entries(r)[Symbol.iterator]();!(s=(a=u.next()).done);s=!0){var c=(i=a.value,function(t){if(Array.isArray(t))return t}(i)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var i,r,n=[],s=!0,o=!1;try{for(e=e.call(t);!(s=(i=e.next()).done)&&(n.push(i.value),2!==n.length);s=!0);}catch(t){o=!0,r=t}finally{try{s||null==e.return||e.return()}finally{if(o)throw r}}return n}}(i)||function(t){if(t){if("string"==typeof t)return m(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?m(t,2):void 0}}(i)||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=t(b);if(void 0===h)return;n[d]=h}}catch(t){o=!0,l=t}finally{try{s||null==u.return||u.return()}finally{if(o)throw l}}return n}}},E=function(t){return function(e){return v(t,e)?e[t]:void 0}},_=function(t){return Object.keys(t).length},z=function(t){return 0===_(t)};function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}function I(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function L(t,e){if(t){if("string"==typeof t)return x(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?x(t,e):void 0}}function T(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var r=function(t){if(Array.isArray(t))return t}(e)||I(e)||L(e)||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=r[0],s=r.slice(1);return function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return s.reduce(function(t,e){return e(t)},n.apply(void 0,function(t){if(Array.isArray(t))return x(t)}(e)||I(e)||L(e)||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 D=function(t){switch(void 0===t?"undefined":t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t){case"string":return t;case"number":return isNaN(t)?void 0:t.toString();default:return}},M=function(t){return"string"==typeof t};function P(t,e){return void 0===t?e:t}var C=function(t){return null==t||"number"==typeof t&&Number.isNaN(t)};function O(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return 1===e.length?function(t){return C(t)?e[0]:t}:C(e[1])?e[0]:e[1]}var F=function(t){return function(e){if(C(e))throw Error(t);return e}};function q(t,e,i){return C(e)||e===t?i:e}var B=function(t){return!C(t)},N=function(t){return!C(t)&&""!==t};t.exports=i})()},9698(t,e,i){"use strict";i.r(e),i.d(e,{default:()=>d});var r=i(7625),n=i(1669),s=i.n(n),o=i(2540);let l=(t,e)=>{try{localStorage.setItem(t,e)}catch(t){}};var a=i(9891);let u=t=>`brz-tabs-active:${t}`;function c(t,e){let i=t.children(".brz-tabs__content").children(".brz-tabs__items"),n=s()(e).closest("li"),a=n.index(),c="brz-tabs__nav--mobile--active";if(-1===a)return;let d=t.attr((0,o.uo)("tabs-id"));r.Str.read(d)&&l(u(d),String(a)),i.removeClass("brz-tabs__items--active"),i.children(".brz-tabs__nav--mobile").removeClass(c),n.siblings("li").removeClass("brz-tabs__nav--active"),n.addClass("brz-tabs__nav--active"),s()(i[a]).children(".brz-tabs__nav--mobile").addClass(c),s()(i[a]).addClass("brz-tabs__items--active"),window.Brz.emit("elements.tabs.changed",t.get(0),{active:i[a],tabs:i.get()})}function d(t){t.find(".brz-tabs").each(function(){let t=s()(this),e=t.attr((0,o.uo)("action")),i=t.hasClass("brz-tabs--vertical")?"vertical":"horizontal",n=`${Date.now()}-${Math.random().toString(36).slice(2)}`,d=t.children(".brz-tabs__nav").children("li"),b=t.children(".brz-tabs__content").children(".brz-tabs__items"),h=new a.zQ({desktopItems:d.toArray().map((t,e)=>{let i=t.querySelector(".brz-tabs__nav--button"),r=b.get(e);if(!(i instanceof HTMLElement)||!(r instanceof HTMLElement))return null;let s=`brz-tabs-tab-${n}-${e}`,o=`brz-tabs-panel-${n}-${e}`;return i.setAttribute("id",s),i.setAttribute("aria-controls",o),r.setAttribute("id",o),r.setAttribute("role","tabpanel"),r.setAttribute("aria-labelledby",s),{item:t,button:i,panel:r}}
1).filter(Boolean),mobileItems:b.toArray().map((t,e)=>{let i=t.querySelector(".brz-tabs__nav--mobile"),r=null==i?void 0:i.querySelector(".brz-tabs__nav--button"),s=t.querySelector(".brz-tabs__item--content");if(!(i instanceof HTMLElement)||!(r instanceof HTMLElement)||!(s instanceof HTMLElement))return null;let o=`brz-tabs-mobile-tab-${n}-${e}`,l=`brz-tabs-mobile-panel-${n}-${e}`;return r.setAttribute("id",o),r.setAttribute("aria-controls",l),s.setAttribute("id",l),s.setAttribute("role","region"),s.setAttribute("aria-labelledby",o),{header:i,button:r,panel:s}}).filter(Boolean),orientation:i});h.init(),"click"==("hover"===e?"mouseenter":"click")?t.children(".brz-tabs__nav").on("click",function(e){c(t,e.target),h.sync()}):(t.find(".brz-tabs__nav > li").on("mouseenter",function(e){c(t,e.target),h.sync()}),t.children(".brz-tabs__nav").on("click",function(e){c(t,e.target),h.sync()})),t.find(".brz-tabs__nav--mobile").on("click",function(){let e=s()(this),i="brz-tabs__items--active",n="brz-tabs__nav--mobile--active",a=e.closest(".brz-tabs__items"),c=t.children(".brz-tabs__content").children(".brz-tabs__items"),d=a.index();if(-1!==d){let e=t.attr((0,o.uo)("tabs-id"));r.Str.read(e)&&l(u(e),String(d))}a.siblings().removeClass(i),a.siblings().children(".brz-tabs__nav--mobile").removeClass(n),a.addClass(i),a.children(".brz-tabs__nav--mobile").addClass(n),setTimeout(function(){let t=e.offset().top,i=s()(".brz-section__header-sticky-item").innerHeight();window.scrollY>t&&s()("html, body").animate({scrollTop:t-(null!=i?i:0)},200)},100),window.Brz.emit("elements.tabs.changed",a.get(0),{active:a.get(0),tabs:c.get()}),h.sync()});let g=t.attr((0,o.uo)("tabs-id"));if(r.Str.read(g)){let e=(t=>{try{return localStorage.getItem(t)}catch(t){return null}})(u(g));if(null!==e){let i=r.Num.read(e);Number.isInteger(i)&&i>=0&&i<b.length&&i!==b.index(b.filter(".brz-tabs__items--active"))&&(c(t,d.eq(i)),h.sync())}}})}},9891(t,e,i){"use strict";function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{v2:()=>m,Bv:()=>y,Xx:()=>g,G2:()=>x,me:()=>b,qT:()=>E,gD:()=>l,zQ:()=>v,zq:()=>s});let n="__brz_missing_tabindex__";class s{init(){this.items.forEach(t=>{this.initHeader(t),t.button.addEventListener("keydown",e=>this.handleHeaderKeyDown(e,t))}),this.filterButtons.forEach(t=>{this.initFilterButton(t),t.addEventListener("keydown",e=>this.handleFilterKeyDown(e,t))}),this.sync()}sync(){this.items.forEach(t=>this.syncItem(t)),this.syncFilterButtons()}syncFilterButtons(){this.filterButtons.forEach(t=>{var e;let i=t.closest(".brz-accordion__filter__item"),r=null!=(e=null==i?void 0:i.classList.contains("brz-accordion__filter__item--active"))&&e;t.setAttribute("aria-pressed",r.toString())})}initHeader(t){t.button.setAttribute("role","button"),t.button.setAttribute("tabindex","0")}initFilterButton(t){t.setAttribute("role","button"),t.setAttribute("tabindex","0")}syncItem(t){let e=t.api.isOpen(),i=t.keepOnePanelOpen&&e;t.button.setAttribute("aria-expanded",e.toString()),t.button.setAttribute("aria-disabled",i.toString()),t.panel.setAttribute("aria-hidden",(!e).toString()),t.panel.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(t=>{e?this.restoreTabIndex(t):this.disableTabIndex(t)})}restoreTabIndex(t){let e=t.dataset.brzTabindex;void 0!==e&&(e===n?t.removeAttribute("tabindex"):t.setAttribute("tabindex",e),delete t.dataset.brzTabindex)}disableTabIndex(t){var e;void 0===t.dataset.brzTabindex&&(t.dataset.brzTabindex=null!=(e=t.getAttribute("tabindex"))?e:n),t.setAttribute("tabindex","-1")}handleHeaderKeyDown(t,e){var i,r;switch(t.key){case"Enter":case" ":case"Spacebar":t.preventDefault(),e.button.click();break;case"ArrowDown":t.preventDefault(),this.focusSibling(e,1);break;case"ArrowUp":t.preventDefault(),this.focusSibling(e,-1);break;case"Home":t.preventDefault(),null==(i=this.items[0])||i.button.focus();break;case"End":t.preventDefault(),null==(r=this.items[this.items.length-1])||r.button.focus()}}focusSibling(t,e){var i;let r=this.items.findIndex(e=>{let{button:i}=e;return i===t.button});if(-1===r)return;let n=(r+e+this.items.length)%this.items.length;null==(i=this.items[n])||i.button.focus()}focusFilterSibling(t,e){var i;let r=this.filterButtons.findIndex(e=>e===t);if(-1===r)return;let n=(r+e+this.filterButtons.length)%this.filterButtons.length;null==(i=this.filterButtons[n])||i.focus()}handleFilterKeyDown(t,e){var i,r;switch(t.key){case"Enter":case" ":case"Spacebar":t.preventDefault(),e.click();break;case"ArrowRight":case"ArrowDown":t.preventDefault(),this.focusFilterSibling(e,1);break;case"ArrowLeft":case"ArrowUp":t.preventDefault(),this.focusFilterSibling(e,-1);break;case"Home":t.preventDefault(),null==(i=this.filterButtons[0])||i.focus();break;case"End":t.preventDefault(),null==(r=this.filterButtons[this.filterButtons.length-1])||r.focus()}}
1constructor({items:t,filterButtons:e=[]}){r(this,"items",void 0),r(this,"filterButtons",void 0),this.items=t,this.filterButtons=e}}let o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t.toFixed(e)};class l{init(){this.initCovers(),this.initLightboxes(),this.initCustomControls(),this.initCustomSliders()}initCovers(){this.root.querySelectorAll(".brz-video__cover").forEach(t=>{if("true"===t.getAttribute("data-brz-a11y-init")||(t.setAttribute("data-brz-a11y-init","true"),"function"!=typeof t.onclick&&null===t.closest(".brz-video, .brz-custom-video")))return;let e=!!t.getAttribute("aria-label")||!!t.getAttribute("aria-labelledby");t.setAttribute("role","button"),t.setAttribute("tabindex","0"),e||t.setAttribute("aria-label","Play video"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),null==(e=t.currentTarget)||e.click()}})})}initLightboxes(){this.root.querySelectorAll(".brz-video__lightbox").forEach(t=>{"true"===t.getAttribute("data-brz-a11y-init")||(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.getAttribute("aria-labelledby")||t.setAttribute("aria-label","Open video in lightbox"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),null==(e=t.currentTarget)||e.click()}}))})}initCustomControls(){this.root.querySelectorAll(".brz-custom-video .brz-video-content").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Play or pause video"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){t.preventDefault();let e=t.currentTarget.closest(".brz-custom-video");if(!e)return;let i=e.querySelector(".brz-video__lightbox");if(i)return void i.click();let r=e.querySelector(".brz-video-custom-play-pause-btn");null==r||r.click()}}))}),this.root.querySelectorAll(".brz-video-custom-play-pause-btn").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Play or pause video"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),t.stopPropagation(),null==(e=t.currentTarget)||e.click()}}))}),this.root.querySelectorAll(".brz-video-custom-volume-btn").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Toggle mute"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),t.stopPropagation(),null==(e=t.currentTarget)||e.click()}}))}),this.root.querySelectorAll(".brz-video-custom-fullscreen-btn").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Toggle fullscreen"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),t.stopPropagation(),null==(e=t.currentTarget)||e.click()}}))}),this.root.querySelectorAll(".brz-media-caption").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Toggle captions"),t.addEventListener("keydown",t=>{if("Enter"===t.key||" "===t.key||"Spacebar"===t.key){var e;t.preventDefault(),t.stopPropagation(),null==(e=t.currentTarget)||e.click()}}))})}initCustomSliders(){this.root.querySelectorAll(".brz-custom-video .brz-video-custom-control
1s .brz-video-custom-slider").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","slider"),t.setAttribute("tabindex","0"),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax","100"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Video progress"),t.addEventListener("keydown",e=>{let i=e.currentTarget.closest(".brz-custom-video"),r=null==i?void 0:i.querySelector("video");if(!i||!r||!r.duration)return;let n=r.currentTime,s=!1;switch(e.key){case"ArrowRight":case"ArrowUp":n=Math.min(r.duration,r.currentTime+5),s=!0;break;case"ArrowLeft":case"ArrowDown":n=Math.max(0,r.currentTime-5),s=!0;break;case"Home":n=0,s=!0;break;case"End":n=r.duration,s=!0}if(!s)return;e.preventDefault(),e.stopPropagation(),r.currentTime=n;let l=n/r.duration*100,a=i.querySelector(".brz-video-custom-controls .brz-video-custom-progress");a&&(a.style.width=`${o(l)}%`),t.setAttribute("aria-valuenow",o(l))}))}),this.root.querySelectorAll(".brz-custom-video .brz-video-custom-volume-controls").forEach(t=>{"true"!==t.getAttribute("data-brz-a11y-init")&&(t.setAttribute("data-brz-a11y-init","true"),t.setAttribute("role","slider"),t.setAttribute("tabindex","0"),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax","100"),t.getAttribute("aria-label")||t.setAttribute("aria-label","Volume"),t.addEventListener("keydown",e=>{let i=e.currentTarget.closest(".brz-custom-video"),r=null==i?void 0:i.querySelector("video");if(!i||!r)return;let n=r.volume,s=!1;switch(e.key){case"ArrowRight":case"ArrowUp":n=Math.min(1,r.volume+.1),s=!0;break;case"ArrowLeft":case"ArrowDown":n=Math.max(0,r.volume-.1),s=!0;break;case"Home":n=0,s=!0;break;case"End":n=1,s=!0}if(!s)return;e.preventDefault(),e.stopPropagation(),r.volume=n;let l=i.querySelector(".brz-video-custom-volume-controls .brz-video-custom-progress"),a=100*n;l&&(l.style.width=`${o(a)}%`),t.setAttribute("aria-valuenow",o(a))}))})}constructor({root:t}){var e,i;i=void 0,(e="root")in this?Object.defineProperty(this,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):this[e]=i,this.root=t}}var a,u=i(1669),c=i.n(u);function d(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class b{init(){let t=this.getSelection();t&&(t.addEventListener("keydown",this.handleSelectionKeyDown,!0),t.addEventListener("focus",this.handleSelectionFocus),t.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 t=this.getSelection();t&&(t.setAttribute("role","combobox"),t.setAttribute("tabindex","0"),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded",this.isOpen().toString()),t.setAttribute("aria-disabled",this.select.disabled.toString()),this.select.required?t.setAttribute("aria-required","true"):t.removeAttribute("aria-required"),this.syncRenderedValue(),this.syncListbox())}syncRenderedValue(){let t=this.selectNode.querySelector(".select2-selection__rendered");t&&"textbox"===t.getAttribute("role")&&t.removeAttribute("role")}syncListbox(){let t=this.selectNode.querySelector(".select2-container--open .select2-results__options");t&&(t.setAttribute("role","listbox"),this.select.multiple?t.setAttribute("aria-multiselectable","true"):t.removeAttribute("aria-multiselectable"))}open(){this.getSelect2Api().select2("open")}close(){this.getSelect2Api().select2("close")}isOpen(){var t;return(null==(t=this.getSelection())?void 0:t.getAttribute("aria-expanded"))==="true"}getSelect2Api(){return c()(this.select)}commitHighlightedOption(){let t=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");
1null==t||t.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}closeAfterCommit(){window.requestAnimationFrame(()=>{this.isOpen()&&this.close()})}syncHighlightedIndicator(){this.selectNode.querySelectorAll(".select2-container--open .select2-results__option").forEach(t=>{t.classList.remove("brz-translation-option--active")});let t=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");t&&(t.classList.add("brz-translation-option--active"),t.scrollIntoView({block:"nearest"}))}getSelection(){return this.selectNode.querySelector(".select2-selection")}constructor({select:t,selectNode:e}){d(this,"select",void 0),d(this,"selectNode",void 0),d(this,"handleStateChange",()=>{this.sync(),this.syncHighlightedIndicator()}),d(this,"handleSelectionKeyDown",t=>{if(this.isOpen()){if(!this.select.multiple)switch(t.key){case"Enter":case" ":case"Spacebar":t.preventDefault(),t.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Tab":t.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Escape":t.preventDefault(),t.stopPropagation(),this.close()}("ArrowDown"===t.key||"ArrowUp"===t.key)&&window.requestAnimationFrame(()=>this.syncHighlightedIndicator());return}switch(t.key){case"Enter":case" ":case"Spacebar":case"ArrowDown":case"ArrowUp":t.preventDefault(),t.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=t,this.selectNode=e}}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class g{init(){let t=this.getSelection();t&&(t.addEventListener("keydown",this.handleSelectionKeyDown,!0),t.addEventListener("focus",this.handleSelectionFocus),t.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 t=this.getSelection();t&&(t.setAttribute("role","combobox"),t.setAttribute("tabindex","0"),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded",this.isOpen().toString()),t.setAttribute("aria-disabled",this.select.disabled.toString()),this.select.required?t.setAttribute("aria-required","true"):t.removeAttribute("aria-required"),this.syncRenderedValue(),this.syncListbox())}syncRenderedValue(){let t=this.selectNode.querySelector(".select2-selection__rendered");t&&"textbox"===t.getAttribute("role")&&t.removeAttribute("role")}syncListbox(){let t=this.selectNode.querySelector(".select2-container--open .select2-results__options");t&&(t.setAttribute("role","listbox"),this.select.multiple?t.setAttribute("aria-multiselectable","true"):t.removeAttribute("aria-multiselectable"))}open(){this.getSelect2Api().select2("open")}close(){this.getSelect2Api().select2("close")}isOpen(){var t;return(null==(t=this.getSelection())?void 0:t.getAttribute("aria-expanded"))==="true"}getSelect2Api(){return c()(this.select)}commitHighlightedOption(){let t=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");
1null==t||t.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0}))}closeAfterCommit(){window.requestAnimationFrame(()=>{this.isOpen()&&this.close()})}syncHighlightedIndicator(){this.selectNode.querySelectorAll(".select2-container--open .select2-results__option").forEach(t=>{t.classList.remove("brz-forms2__select-option--active")});let t=this.selectNode.querySelector(".select2-container--open .select2-results__option--highlighted");t&&(t.classList.add("brz-forms2__select-option--active"),t.scrollIntoView({block:"nearest"}))}getSelection(){return this.selectNode.querySelector(".select2-selection")}initPhoneAccessibility(){if(this.phoneAccessibilityInitialized)return;let t=this.rootNode;if(t instanceof HTMLElement){if("true"===t.dataset.brzFormPhoneA11y){this.phoneAccessibilityInitialized=!0;return}t.dataset.brzFormPhoneA11y="true"}let e=()=>{t.querySelectorAll(".brz-forms2__field-phone").forEach(t=>{this.syncPhoneField(t)})},i=()=>{window.requestAnimationFrame(e)};t.addEventListener("click",i,!0),t.addEventListener("keydown",i,!0),i(),this.phoneAccessibilityInitialized=!0}syncPhoneField(t){var e;let i=t.querySelector(".ss-main"),r=t.querySelector(".ss-content .ss-list");if(!i||!r)return;let n=(null==(e=i.parentElement)?void 0:e.querySelector(".ss-open"))!==null;i.setAttribute("role","combobox"),i.setAttribute("tabindex","0"),i.setAttribute("aria-haspopup","listbox"),i.setAttribute("aria-expanded",String(n)),n?(r.setAttribute("role","listbox"),r.removeAttribute("aria-hidden"),r.removeAttribute("inert")):(r.removeAttribute("role"),r.setAttribute("aria-hidden","true"),r.setAttribute("inert","")),r.querySelectorAll(".ss-option").forEach(t=>{let e=t.classList.contains("ss-option-selected"),i=t.classList.contains("ss-option-highlighted");n?(t.setAttribute("role","option"),t.setAttribute("aria-selected",String(e)),i?t.classList.add("brz-forms2__select-option--active"):t.classList.remove("brz-forms2__select-option--active")):(t.removeAttribute("role"),t.removeAttribute("aria-selected"),t.classList.remove("brz-forms2__select-option--active"))})}static initMultiStepFormAccessibility(t){let e,{form:i,indicators:r,items:n,nextButtonContainer:s,prevButtonContainer:o,getActiveStep:l,onRequestNext:a,onRequestPrev:u}=t;if(!i||!r.length||!n.length)return;if(s){let t=s.querySelector("a");t&&t.removeAttribute("href"),s.setAttribute("role","button"),s.setAttribute("tabindex","0"),s.addEventListener("keydown",t=>{("Enter"===t.key||" "===t.key||"Spacebar"===t.key)&&(t.preventDefault(),a())})}if(o){let t=o.querySelector("a");t&&t.removeAttribute("href"),o.setAttribute("role","button"),o.setAttribute("tabindex","0"),o.addEventListener("keydown",t=>{("Enter"===t.key||" "===t.key||"Spacebar"===t.key)&&(t.preventDefault(),u())})}let c=r.length>0?r[0].parentElement:null;c&&c.setAttribute("role","tablist"),r.forEach((t,e)=>{t.id||(t.id=`brz-form-ms-indicator-${e+1}`)}),e=l(),r.forEach((t,i)=>{let r=i===e-1,s=n[i];if(t.setAttribute("role","tab"),t.setAttribute("aria-selected",String(r)),s){let e=t.id;s.setAttribute("role","tabpanel"),s.setAttribute("aria-hidden",String(!r)),e&&s.setAttribute("aria-labelledby",e)}})}constructor({select:t,selectNode:e,rootNode:i}){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",t=>{if(this.isOpen()){if(!this.select.multiple)switch(t.key){case"Enter":case" ":case"Spacebar":t.preventDefault(),t.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Tab":t.stopPropagation(),this.commitHighlightedOption(),this.closeAfterCommit();break;case"Escape":t.preventDefault(),t.stopPropagation(),this.close()}("ArrowDown"===t.key||"ArrowUp"===t.key)&&window.requestAnimationFrame(()=>this.syncHighlightedIndicator());return}switch(t.key){case"Enter":case" ":case"Spacebar":case"ArrowDown":case"ArrowUp":t.preventDefault(),t.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=t,this.selectNode=e,this.rootNode=i}}
1function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class m{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","false"),this.playPauseButton.addEventListener("keydown",t=>{(" "===t.key||"Enter"===t.key||"Spacebar"===t.key)&&(t.preventDefault(),t.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",t=>{(" "===t.key||"Enter"===t.key||"Spacebar"===t.key)&&(t.preventDefault(),t.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",t=>{(" "===t.key||"Enter"===t.key||"Spacebar"===t.key)&&(t.preventDefault(),t.currentTarget.click())})),this.progressSlider&&this.initSlider(this.progressSlider,"Audio playback position",t=>this.handleProgressDelta(t)),this.volumeSlider&&this.initSlider(this.volumeSlider,"Audio volume",t=>this.handleVolumeDelta(t))}syncState(t){let{isPlaying:e,isMuted:i,progressPercent:r,volumePercent:n,captionsActive:s}=t;this.playPauseButton&&this.playPauseButton.setAttribute("aria-pressed",e.toString()),this.muteButton&&this.muteButton.setAttribute("aria-pressed",i.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(r).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(t,e,i){t.setAttribute("role","slider"),t.setAttribute("tabindex","0"),t.setAttribute("aria-label",e),t.setAttribute("aria-valuemin","0"),t.setAttribute("aria-valuemax","100"),t.setAttribute("aria-valuenow","0"),t.addEventListener("keydown",t=>{let e=0;switch(t.key){case"ArrowRight":case"ArrowUp":e=5;break;case"ArrowLeft":case"ArrowDown":e=-5;break;case"Home":e=-100;break;case"End":e=100;break;default:return}t.preventDefault(),i(e)})}handleProgressDelta(t){let e=this.getSliderValue(this.progressSlider),i=this.normalizePercent(e+t);this.seekToPercent(i)}handleVolumeDelta(t){let e=this.getSliderValue(this.volumeSlider),i=this.normalizePercent(e+t);this.setVolumePercent(i)}getSliderValue(t){var e;if(!t)return 0;let i=parseFloat(null!=(e=t.getAttribute("aria-valuenow"))?e:"0");return Number.isNaN(i)?0:i}normalizePercent(t){return t<0?0:t>100?100:t}constructor({root:t,playPauseButton:e,muteButton:i,progressSlider:r,volumeSlider:n,captionButton:s,seekToPercent:o,setVolumePercent:l}){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=t,this.playPauseButton=e,this.muteButton=i,this.progressSlider=r,this.volumeSlider=n,this.captionButton=s,this.seekToPercent=o,this.setVolumePercent=l}}function f(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class v{init(){this.desktopItems.forEach(t=>{this.initDesktopItem(t),t.button.addEventListener("keydown",e=>this.handleKeyDown(e,{mode:"desktop",item:t}))}),this.mobileItems.forEach(t=>{this.initMobileItem(t),t.button.addEventListener("keydown",e=>this.handleKeyDown(e,{mode:"mobile",item:t}))}),this.sync()}
1sync(){this.desktopItems.forEach(t=>{let e=t.item.classList.contains("brz-tabs__nav--active");t.button.setAttribute("aria-selected",String(e)),t.button.setAttribute("tabindex",e?"0":"-1"),t.panel.setAttribute("aria-hidden",String(!e))}),this.mobileItems.forEach(t=>{let e=t.header.classList.contains("brz-tabs__nav--mobile--active");t.button.setAttribute("aria-expanded",String(e)),t.panel.setAttribute("aria-hidden",String(!e))})}initDesktopItem(t){let e=t.item.parentElement;null==e||e.setAttribute("role","tablist"),null==e||e.setAttribute("aria-orientation",this.orientation),t.button.setAttribute("role","tab")}initMobileItem(t){t.button.setAttribute("role","button"),t.button.setAttribute("tabindex","0")}handleKeyDown(t,e){var i,r;let{mode:n,item:s}=e;switch(t.key){case"Enter":case" ":case"Spacebar":t.preventDefault(),s.button.click();break;case"ArrowRight":"desktop"===n&&"horizontal"===this.orientation?(t.preventDefault(),this.focusDesktopSibling(s,1,!0)):"mobile"===n&&(t.preventDefault(),this.focusMobileSibling(s,1));break;case"ArrowLeft":"desktop"===n&&"horizontal"===this.orientation?(t.preventDefault(),this.focusDesktopSibling(s,-1,!0)):"mobile"===n&&(t.preventDefault(),this.focusMobileSibling(s,-1));break;case"ArrowDown":t.preventDefault(),"desktop"===n?this.focusDesktopSibling(s,1,"vertical"===this.orientation):this.focusMobileSibling(s,1);break;case"ArrowUp":t.preventDefault(),"desktop"===n?this.focusDesktopSibling(s,-1,"vertical"===this.orientation):this.focusMobileSibling(s,-1);break;case"Home":t.preventDefault(),"desktop"===n?this.activateDesktopItem(this.desktopItems[0]):null==(i=this.mobileItems[0])||i.button.focus();break;case"End":t.preventDefault(),"desktop"===n?this.activateDesktopItem(this.desktopItems[this.desktopItems.length-1]):null==(r=this.mobileItems[this.mobileItems.length-1])||r.button.focus()}}activateDesktopItem(t){t&&(t.button.focus(),t.button.click())}focusDesktopSibling(t,e,i){let r=this.desktopItems.findIndex(e=>{let{button:i}=e;return i===t.button});if(-1===r)return;let n=(r+e+this.desktopItems.length)%this.desktopItems.length,s=this.desktopItems[n];if(s){if(i)return void this.activateDesktopItem(s);s.button.focus()}}focusMobileSibling(t,e){var i;let r=this.mobileItems.findIndex(e=>{let{button:i}=e;return i===t.button});if(-1===r)return;let n=(r+e+this.mobileItems.length)%this.mobileItems.length;null==(i=this.mobileItems[n])||i.button.focus()}constructor({desktopItems:t,mobileItems:e,orientation:i}){f(this,"desktopItems",void 0),f(this,"mobileItems",void 0),f(this,"orientation",void 0),this.desktopItems=t,this.mobileItems=e,this.orientation=i}}function A(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class y{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 t=this.getSliderElement();t&&(t.setAttribute("id",`brz-section-slider-${this.instanceId}`),t.setAttribute("role","region"),t.setAttribute("aria-roledescription","carousel"),t.setAttribute("aria-label",`Section slider ${this.instanceId+1}`))}setupArrowAccessibility(){let t=[{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"}],e=t=>{switch(t.key){case"ArrowLeft":t.preventDefault(),this.slick.slick("slickPrev");break;case"ArrowRight":t.preventDefault(),this.slick.slick("slickNext")}};t.forEach(t=>{let{element:i,label:r}=t;i&&(i.setAttribute("type","button"),i.setAttribute("aria-label",r),i.setAttribute("aria-controls",`brz-section-slider-${this.instanceId}`),i.setAttribute("tabindex","0"),i.addEventListener("keydown",e))})}syncArrows(){this.getArrowButtons().forEach(t=>{t.setAttribute("tabindex","0");let e=t.classList.contains("slick-disabled");t.setAttribute("aria-disabled",e.toString())})}setupDotsAccessibility(){let t=this.getDotsList();t&&(t.setAttribute("aria-label","Slide navigation"),this.getDotButtons().forEac
1h((t,e)=>{t.setAttribute("type","button"),t.setAttribute("aria-label",`Go to slide ${e+1}`),t.setAttribute("aria-controls",`brz-section-slide-${this.instanceId}-${e}`)}))}setupPauseControlAccessibility(){let t=this.getPauseItem();if(!t)return;let e=this.ensurePauseButton(t);e.setAttribute("type","button"),e.setAttribute("aria-controls",`brz-section-slider-${this.instanceId}`)}syncSlides(){let t=this.getSlides();t.forEach((e,i)=>{let r=e.classList.contains("slick-active");e.setAttribute("id",`brz-section-slide-${this.instanceId}-${i}`),e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-label",`Slide ${i+1} of ${t.length}`),e.setAttribute("aria-hidden",(!r).toString()),this.syncSlideFocusableElements(e,r)}),this.getClonedSlides().forEach(t=>{let e=t.classList.contains("slick-active");this.syncSlideFocusableElements(t,e)})}syncDots(){this.getDotsListItems().forEach((t,e)=>{let i=t.querySelector("button");if(!i)return;let r=t.classList.contains("slick-active");r?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current"),i.setAttribute("aria-label",`${r?"Current slide, ":""}Go to slide ${e+1}`)})}syncPauseControl(){let t=this.getPauseButton();if(!t)return;let e="true"===this.slick.attr("data-slider-paused");t.setAttribute("aria-label",e?"Play autoplay":"Pause autoplay"),t.setAttribute("aria-pressed",e.toString())}ensurePauseButton(t){let e=t.querySelector(".brz-slick-slider__pause-button");if(e)return e;let i=document.createElement("button"),r=t.querySelector(".button-pause"),n=t.querySelector(".button-play");return i.type="button",i.className="brz-slick-slider__pause-button",r&&i.appendChild(r),n&&i.appendChild(n),i.addEventListener("click",t=>{if(t.target!==i)return;let e="true"===this.slick.attr("data-slider-paused")?n:r;null==e||e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}),t.appendChild(i),i}syncSlideFocusableElements(t,e){t.querySelectorAll("a[href], button, input, select, textarea, iframe, audio[controls], video[controls], [tabindex]").forEach(t=>{var i;let r=t.dataset.brzSectionSliderTabindex;if(e){void 0!==r&&(""===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r),delete t.dataset.brzSectionSliderTabindex);return}void 0===r&&(t.dataset.brzSectionSliderTabindex=null!=(i=t.getAttribute("tabindex"))?i:""),t.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:t,instanceId:e}){A(this,"slick",void 0),A(this,"instanceId",void 0),this.slick=t,this.instanceId=e}}function S(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}let k=t=>t instanceof HTMLElement&&"none"!==window.getComputedStyle(t).display,w=t=>{t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.addEventListener("keydown",e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),t.click())})};class E{init(){var t,e;this.root.setAttribute("role","region"),this.root.setAttribute("aria-label","Account");let i=this.root.querySelector(".brz-login__authorized"),r=null!=(t=null==i?void 0:i.querySelector(".brz-login__authorized-link"))?t:null==i?void 0:i.querySelector("span");r instanceof HTMLElement&&(w(r),r.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(t=>{var e;w(t),(null==n?void 0:n.id)&&t.setAttribute("aria-controls",n.id),t.setAttribute("aria-label",(null==(e=t.textContent)?void 0:e.trim())||"Back to login")}),this.root.querySelectorAll(".brz-login-form__field-register-link").forEach(t=>{var e;w(t),(null==s?void 0:s.id)&&t.setAttribute("aria-controls",s.id),t.setAttribute("aria-label",(null==(e=t.textContent)?void 0:e.trim())||"Register")}),this.root.querySelectorAll(".brz-login-form__field-lost-password").forEach(t=>{var e;
1w(t),(null==o?void 0:o.id)&&t.setAttribute("aria-controls",o.id),t.setAttribute("aria-label",(null==(e=t.textContent)?void 0:e.trim())||"Lost password")}),this.root.addEventListener("click",()=>{setTimeout(()=>this.sync(),0)},!0),(e=this.root).querySelectorAll("input").forEach(t=>{if("hidden"===t.type||t.getAttribute("aria-label")||t.getAttribute("aria-labelledby"))return;let i=t.id;if(i&&e.querySelector(`label[for="${CSS.escape(i)}"]`))return;let r=t.getAttribute("placeholder")||t.getAttribute("name")||"Field";t.setAttribute("aria-label",r)}),this.sync()}sync(){let t=this.root.querySelector(".brz-login__authorized"),e=this.root.querySelector(".brz-login-form__login"),i=this.root.querySelector(".brz-login-form__register"),r=this.root.querySelector(".brz-login-form__forgot"),n=this.getCurrentVariant({authorized:t,loginForm:e,registerForm:i,forgotForm:r});this.root.setAttribute("data-brz-login-variant",n),t instanceof HTMLElement&&t.setAttribute("aria-hidden",(!k(t)).toString()),e instanceof HTMLElement&&(e.setAttribute("aria-hidden",(!k(e)).toString()),e.setAttribute("aria-label","Login")),i instanceof HTMLElement&&(i.setAttribute("aria-hidden",(!k(i)).toString()),i.setAttribute("aria-label","Register")),r instanceof HTMLElement&&(r.setAttribute("aria-hidden",(!k(r)).toString()),r.setAttribute("aria-label","Lost password"))}getCurrentVariant(t){if(t.authorized&&k(t.authorized))return"authorized";if(t.loginForm&&k(t.loginForm))return"login";if(t.registerForm&&k(t.registerForm))return"register";if(t.forgotForm&&k(t.forgotForm))return"forgot";let e=this.root.getAttribute("type");return"register"===e||"forgot"===e||"authorized"===e?e:"login"}constructor(t){S(this,"root",void 0),S(this,"instanceId",void 0),this.root=t,this.instanceId=t.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 _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}let z=(0,i(2540).uo)("click_outside_to_close");class x{init(){var t,e,i,r;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(t=>{t.setAttribute("role","button"),t.setAttribute("tabindex","0"),t.addEventListener("keydown",e=>{("Enter"===e.key||" "===e.key||"Spacebar"===e.key)&&(e.preventDefault(),t.click())}),t.setAttribute("aria-label","Close popup")}),null==(e=window.Brz)||null==(t=e.on)||t.call(e,"elements.popup.open",t=>{t===this.root&&this.onOpen()}),null==(r=window.Brz)||null==(i=r.on)||i.call(r,"elements.popup.close",t=>{t===this.root&&this.onClose()}),this.isOpened()&&this.onOpen()}isOpened(){return this.root.classList.contains("brz-popup2--opened")}canCloseWithEsc(){var t;let e;return"true"===(e=null!=(t=this.root.getAttribute(z))?t:this.root.getAttribute("data-click_outside_to_close"))||"1"===e||"on"===e}onOpen(){this.root.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{this.root.focus({preventScroll:!0})}),!this.canCloseWithEsc()||this.onDocKeyDown||(this.onDocKeyDown=t=>{if("Escape"!==t.key||!this.isOpened())return;t.preventDefault();let e=c()(this.root).popup();e&&"function"==typeof e.close&&e.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(t){_(this,"root",void 0),_(this,"onDocKeyDown",null),this.root=t}}var I=i(1450),L=i(6513);function T(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}(a={}).Dropdown="dropdown",a.MegaMenu="megaMenu",a.Link="link";class D{init(){"true"!==this.rootMenu.dataset.brzMenuA11yInit&&(this.rootMenu.dataset.brzMenuA11yInit="true",this.buildStates(),this.applyRolesAndAria(),this.wrapApisWithAriaSync(),this.initFocusModel(),this.attachListeners())}buildStates(){for(let t of(this.allStates=this.menuItems.map(t=>{var e;let i=t.item.querySelector("a");if(!i)return null;let r=this.isExtendedMenuItem(t),n=null!=(e=r?t.item.querySelector(":scope > .brz-mega-menu__portal")||t.item.querySelector(":scope > .brz-menu__sub-menu"):void 0)?e:void 0;return{item:t.item,trigger:i,type:t.type,api:r?t.api:void 0,directChildren:[],parent:null,submenu:n}}).filter(t=>null!==t),this.stateByTrigger.clear(),this.stateByItem.clear(),this.allStates.forEac
1h(t=>{this.stateByTrigger.set(t.trigger,t),this.stateByItem.set(t.item,t)}),this.menuItems)){let e=this.stateByItem.get(t.item);e&&this.isExtendedMenuItem(t)&&(e.directChildren=t.children.map(t=>this.stateByItem.get(t)).filter(t=>void 0!==t),e.directChildren.forEach(t=>{t.parent=e}))}this.topLevelStates=this.allStates.filter(t=>null===t.parent),this.extendedStates=this.allStates.filter(t=>void 0!==t.api)}applyRolesAndAria(){var t,e;this.rootMenu.setAttribute("role",this.rootMenuRole),this.rootMenu.removeAttribute("aria-activedescendant");let i="vertical"===(null!=(t=(0,L.$$)(null!=(e=this.rootMenu.getAttribute("data-mods"))?e:"{}"))?t:{})[(0,I.G)()]?"vertical":"horizontal";this.rootMenu.setAttribute("aria-orientation",i),this.allStates.forEach((t,e)=>{let i=t.trigger.id||`brz-menuitem-${this.instanceId}-${e}`;if(t.trigger.id=i,t.trigger.setAttribute("role","menuitem"),t.trigger.setAttribute("tabindex","-1"),t.api){let r=t.api.isOpen();if(t.trigger.setAttribute("aria-haspopup","true"),t.trigger.setAttribute("aria-expanded",r.toString()),t.submenu){let n=t.submenu.id||`brz-submenu-${this.instanceId}-${e}`;t.submenu.id=n,t.submenu.setAttribute("role","menu"),t.submenu.setAttribute("aria-labelledby",i),t.trigger.setAttribute("aria-controls",n),t.submenu.setAttribute("aria-hidden",(!r).toString())}}})}wrapApisWithAriaSync(){this.extendedStates.forEach(t=>{if(!t.api)return;let e=t.api,i=`brzMenuA11yWrapped-${this.instanceId}`;if(!0===e[i])return;let r=e.open.bind(e),n=e.close.bind(e),s=()=>{let i=e.isOpen();t.trigger.setAttribute("aria-expanded",i.toString()),t.submenu&&t.submenu.setAttribute("aria-hidden",(!i).toString())};e.open=()=>{r(),s()},e.close=()=>{n(),s()},e[i]=!0})}initFocusModel(){let t=this.topLevelStates[0],e=this.getActiveState();e?this.setActiveTrigger(e):t&&this.setActiveTrigger(t)}attachListeners(){document.addEventListener("keydown",this.onKeyDown),document.addEventListener("focusout",this.onFocusOut,!0),this.allStates.forEach(t=>{t.trigger.addEventListener("focus",()=>{this.setActiveTrigger(t)})})}getActiveState(){return this.getStateFromElement(document.activeElement)}getStateFromElement(t){var e;let i=t instanceof HTMLElement?t:null;if(!i)return null;let r=i.closest("a");if(r){let t=this.stateByTrigger.get(r);if(t)return t}let n=i.closest(".brz-menu__sub-menu, .brz-mega-menu__portal");return n&&null!=(e=this.allStates.find(t=>t.submenu===n))?e:null}getSubmenuRoots(){return this.extendedStates.map(t=>t.submenu).filter(t=>t instanceof HTMLElement)}isWithinMenuKeyboardScope(t){return this.rootMenu.contains(t)||this.getSubmenuRoots().some(e=>e.contains(t))}isMenubarHorizontal(){var t,e;return"vertical"!==(null!=(t=(0,L.$$)(null!=(e=this.rootMenu.getAttribute("data-mods"))?e:"{}"))?t:{})[(0,I.G)()]}moveToAdjacentMenubar(t,e){let i=this.getTopLevelState(t),r=this.topLevelStates,n=r.indexOf(i);if(-1===n)return;let s=(n+e+r.length)%r.length,o=r[s];this.closeAllSubmenus(),o.api&&o.api.open(),this.setActiveTrigger(o),o.trigger.focus()}shouldAllowNativeActivate(t){var e;if(!t)return!1;let i=document.activeElement;return i instanceof HTMLElement&&!!(null==(e=t.submenu)?void 0:e.contains(i))&&i!==t.trigger}isFocusInsideSubmenuPanel(t,e){return!!t.submenu&&t.submenu.contains(e)&&e!==t.trigger}closeSubmenuAndFocusTrigger(t){t.api&&(this.closeSubmenusExcept(t),t.api.close(),this.setActiveTrigger(t),t.trigger.focus())}handleTabInsideOpenSubmenu(t,e,i){let r=t.submenu;if(!r||!r.contains(e))return!1;let n=this.getFocusablesInSubmenu(r),s=n.indexOf(e);return(-1===s&&(s=n.findIndex(t=>t.contains(e))),0===n.length||-1===s)?this.closeSubmenuAndFocusTrigger(t):i?s<n.length-1?(this.setActiveTrigger(t,{focusOnTrigger:!1}),n[s+1].focus()):this.closeSubmenuAndFocusTrigger(t):s>0?(this.setActiveTrigger(t,{focusOnTrigger:!1}),n[s-1].focus()):(this.closeSubmenusExcept(t),this.setActiveTrigger(t),t.trigger.focus()),!0}getFocusablesInSubmenu(t){let e=t.classList.contains("brz-mega-menu__portal");return Array.from(t.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]')).filter(i=>{if(i.closest("[aria-hidden='true']")||!i.getClientRects().length)return!1;if(e){let e=i.closest(".brz-menu__sub-menu");if(e&&t.contains(e))return!1}return"hidden"!==window.getComputedStyle(i).visibility})}getFocusableEdge(t,e){let i=this.getFocusablesInSubmenu(t);return i.length?e?i[0]:i[i.length-1]:null}cycleFocusableInSubmenu(t,e,i,r){let n=this.getFocusablesInSubmenu(t);if(!n.length)return;let s=n.indexOf(e);if(-1===s&&(s=n.findIndex(t=>t.contains(e))),-1===s){var o;null==(o=1===r?n[0]:n[n.length-1])||o.focus();return}let l=n[(s+r+n.length)%n.length];this.setActiveTrigger(i,{focusOnTrigger:!1}),l.focus()}getTopLevelState(t){let e=t;for(;e.parent;)e=e.parent;return e}restoreVisibleTabStop(t){let e=t?this.getTopLevelState(t):this.topLevelStates[0];e&&this.setActiveTrigger(e)}getSiblings(t){return null==t.parent?this.topLevelStates:t.parent.directChildren}setActiveTrigger(t,e){var i,r;let n=null==(i=null==e?void 0:e.focusOnTrigger)||i,s=null==t.parent?this.rootMenu:null!=(r=t.parent.submenu)?r:this.rootMenu;
1this.allStates.forEach(t=>t.trigger.setAttribute("tabindex","-1")),t.trigger.setAttribute("tabindex",n?"0":"-1"),s.setAttribute("aria-activedescendant",t.trigger.id)}closeAllSubmenus(){this.extendedStates.forEach(t=>{var e;(null==(e=t.api)?void 0:e.isOpen())&&t.api.close()})}closeSubmenusExcept(t){var e;let i=new Set,r=t.parent;for(;r;)i.add(r),r=r.parent;(null==(e=t.api)?void 0:e.isOpen())&&i.add(t),this.extendedStates.forEach(t=>{t.api&&t.api.isOpen()&&(i.has(t)||t.api.close())})}openSubmenuAndFocusChild(t,e){var i;if(!t.api)return;this.closeSubmenusExcept(null!=(i=t.directChildren[e])?i:t),t.api.open();let r=t.directChildren[e];if(!r){if(t.submenu){let e=this.getFocusableEdge(t.submenu,!0);e&&(this.setActiveTrigger(t,{focusOnTrigger:!1}),e.focus())}return}this.setActiveTrigger(r),r.trigger.focus()}focusSiblingAtOffset(t,e){let i=this.getSiblings(t);if(!i.length)return;let r=i.findIndex(e=>e===t);if(-1===r)return;let n=(r+e+i.length)%i.length,s=i[n];this.closeSubmenusExcept(s),this.setActiveTrigger(s),s.trigger.focus()}focusBoundaryInSameLevel(t,e){let i=document.activeElement;if(i instanceof HTMLElement&&this.isFocusInsideSubmenuPanel(t,i)&&t.submenu){let i=this.getFocusableEdge(t.submenu,e);i&&(this.closeSubmenusExcept(t),this.setActiveTrigger(t,{focusOnTrigger:!1}),i.focus());return}let r=this.getSiblings(t);if(!r.length)return;let n=r[e?0:r.length-1];this.closeSubmenusExcept(n),this.setActiveTrigger(n),n.trigger.focus()}focusParentTrigger(t){let e=t.parent;e&&(this.closeSubmenusExcept(e),this.setActiveTrigger(e),e.trigger.focus())}submenuVerticalStep(t,e,i){if(e===t.trigger&&null!==t.parent)return void this.focusSiblingAtOffset(t,i);let r=t.submenu;if(r&&this.isFocusInsideSubmenuPanel(t,e)){if(t.directChildren.length>0){let r=e.closest("a"),n=r?this.stateByTrigger.get(r):void 0;if(n&&n.parent===t&&t.directChildren.includes(n))return void this.focusSiblingAtOffset(n,i)}this.cycleFocusableInSubmenu(r,e,t,i);return}null===t.parent&&(null==r?void 0:r.contains(e))&&e!==t.trigger?this.cycleFocusableInSubmenu(r,e,t,i):null!==t.parent&&this.focusSiblingAtOffset(t,i)}submenuArrowLeft(t,e){var i,r,n,s;(null==(i=t.parent)?void 0:i.parent)!=null?this.focusParentTrigger(t):(null==(r=t.parent)?void 0:r.parent)===null?this.moveToAdjacentMenubar(t.parent,-1):null===t.parent&&(null==(n=t.submenu)?void 0:n.contains(e))&&e!==t.trigger?this.moveToAdjacentMenubar(t,-1):null===t.parent&&e===t.trigger&&(null==(s=t.api)?void 0:s.isOpen())&&this.moveToAdjacentMenubar(t,-1)}submenuArrowRight(t,e){var i,r;let n=e.closest("a"),s=n?this.stateByTrigger.get(n):void 0;s&&(null==(i=t.submenu)?void 0:i.contains(e))&&s.api?this.openSubmenuAndFocusChild(s,0):t.api&&e===t.trigger?this.openSubmenuAndFocusChild(t,0):null!==t.parent?t.api?this.openSubmenuAndFocusChild(t,0):this.moveToAdjacentMenubar(t,1):null===t.parent&&(null==(r=t.submenu)?void 0:r.contains(e))&&e!==t.trigger&&((null==s?void 0:s.api)?this.openSubmenuAndFocusChild(s,0):this.moveToAdjacentMenubar(t,1))}handleArrowKey(t,e){let i=document.activeElement;if(!(i instanceof HTMLElement))return;let r=this.isMenubarHorizontal()?{next:"ArrowRight",prev:"ArrowLeft",openFirst:"ArrowDown",openLast:"ArrowUp"}:{next:"ArrowDown",prev:"ArrowUp",openFirst:"ArrowRight",openLast:"ArrowLeft"};if(null===e.parent&&i===e.trigger)return t===r.openFirst&&e.api?void this.openSubmenuAndFocusChild(e,0):t===r.openLast&&e.api?void this.openSubmenuAndFocusChild(e,e.directChildren.length-1):t===r.next?void this.focusSiblingAtOffset(e,1):void(t===r.prev&&this.focusSiblingAtOffset(e,-1));if(!this.isDelegatedToNestedMenu(e,i)){if("ArrowDown"===t||"ArrowUp"===t)return void this.submenuVerticalStep(e,i,"ArrowDown"===t?1:-1);if("ArrowLeft"===t)return void this.submenuArrowLeft(e,i);"ArrowRight"===t&&this.submenuArrowRight(e,i)}}handleEnter(t){t.api?this.openSubmenuAndFocusChild(t,0):t.trigger.click()}handleSpace(t){t.api?this.openSubmenuAndFocusChild(t,0):t.trigger.click()}static getMenuItemType(t){return t.classList.contains("brz-menu__item-dropdown")?"dropdown":t.classList.contains("brz-menu__item-mega-menu")?"megaMenu":"link"}isExtendedMenuItem(t){return"link"!==t.type}isDelegatedToNestedMenu(t,e){var i;if("megaMenu"!==t.type||!(null==(i=t.submenu)?void 0:i.contains(e))||e===t.trigger)return!1;let r=e.closest(".brz-menu");return null!==r&&t.submenu.contains(r)}isInsideNestedMenuInPortal(t){return this.extendedStates.some(e=>{var i;if("megaMenu"!==e.type||!(null==(i=e.submenu)?void 0:i.contains(t)))return!1;let r=t.closest(".brz-menu");return null!==r&&e.submenu.contains(r)})}isSubmenuOpen(t){var e,i,r;return null!=(e=null==(r=t.api)||null==(i=r.isOpen)?void 0:i.call(r))&&e||"true"===t.trigger.getAttribute("aria-expanded")}constructor(t,e){T(this,"rootMenu",void 0),T(this,"instanceId",void 0),T(this,"menuItems",void 0),T(this,"extendedStates",[]),T(this,"allStates",[]),T(this,"topLevelStates",[]),T(this,"stateByTrigger",new Map),T(this,"stateByItem",new Map),T(this,"rootMenuRole","menubar"),T(this,"onKeyDown",t=>{var e,i,r,n;if("__brzMenuA11yHandled"in t&&t.__brzMenuA11yHandled)return;let s=document.activeElement;if(!(s instanceof HTMLElement)||!this.isWithinMenuKeyboardScope(s))return;if("Escape"===t.key){let r=this.getActiveState();return!r&&this.isInsideNestedMenuInPortal(s)?void 0:(t.preventDefault(),null==r?void 0:r.parent)?void this.focusParentTrigger(r):(null==r?void 0:r.submenu)&&r.api&&r.submenu.contains(s)&&s!==r.trigger||(null==r||null==(i=r.api)||null==(e=i.isOpen)?void 0:e.call(i))?void this.closeSubmenuAndFocusTrigger(r):void this.closeAllSubmenus()}let o=this.getActiveState();if(o){if("Tab"===t.key){if(this.isSubmenuOpen(o)&&s!==o.trigger&&(null==(r=o.submenu)?void 0:r.contains(s))&&this.handleTabInsideOpenSubmenu(o,s,!t.shiftKey))return void t.preventDefault();if(t.shiftKey&&o.parent){let e=this.getSiblings(o),i=e.findIndex(t=>t===o);if(i>0){t.preventDefault();let r=e[i-1];this.closeSubmenusExcept(r),this.setActiveTrigger(r),r.trigger.focus();return}if(0===i){t.preventDefault(),this.focusParentTrigger(o);return}}let e=t.shiftKey?-1:1;if(this.isSubmenuOpen(o)){let i=o.directChildren,r=null!=(n=i[1===e?0:i.length-1])?n:null;if(!r){let i=o.submenu,r=1===e?i&&this.getFocusableEdge(i,!0):i&&this.getFocusableEdge(i,!1);if(!r)return;t.preventDefault(),this.closeSubmenusExcept(o),this.setActiveTrigger(o,{focusOnTrigger:!1}),r.focus();return}t.preventDefault(),this.closeSubmenusExcept(o),this.setActiveTrigger(r),r.trigger.focus()}return}switch(t.key){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":t.preventDefault(),this.handleArrowKey(t.key,o),document.activeElement!==s&&(t.__brzMenuA11yHandled=!0);return;case"Home":t.preventDefault(),this.focusBoundaryInSameLevel(o,!0);return;case"End":t.preventDefault(),this.focusBoundaryInSameLevel(o,!1);return;case"Enter":if(this.shouldAllowNativeActivate(o))return;t.preventDefault(),this.handleEnter(o);return;case" ":case"Spacebar":if(this.shouldAllowNativeActivate(o))return;t.preventDefault(),this.handleSpace(o);return}}}),T(this,"onFocusOut",t=>{let e=t.target;if(!(e instanceof HTMLElement)||!this.isWithinMenuKeyboardScope(e))return;let i=t.relatedTarget,r=this.getStateFromElement(e);
1if(!(i instanceof HTMLElement)){this.closeAllSubmenus(),this.restoreVisibleTabStop(r);return}this.isWithinMenuKeyboardScope(i)||(this.closeAllSubmenus(),this.restoreVisibleTabStop(r))}),this.rootMenu=t,this.instanceId=D.instanceCounter++,this.menuItems=e}}function M(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}T(D,"instanceCounter",0);class P{init(){"true"!==this.rootMenu.dataset.brzMmenuA11yInit&&(this.rootMenu.dataset.brzMmenuA11yInit="true",this.buildStates(),this.applyRolesAndAria(),this.initFocusModel(),this.attachListeners(),this.syncMenuState(!1))}onMenuOpened(){var t;this.syncMenuState(!0);let e=null!=(t=this.getCurrentPanelStates()[0])?t:this.topLevelStates[0];if(e){this.setActiveTrigger(e),requestAnimationFrame(()=>{e.trigger.focus()});return}requestAnimationFrame(()=>{this.rootMenu.focus()})}onMenuClosed(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.pendingOpenedState=null,this.pendingClosedParentState=null,this.syncMenuState(!1);let e=this.topLevelStates[0];e&&this.setActiveTrigger(e),t&&requestAnimationFrame(()=>{this.trigger.focus()})}onPanelOpened(t){var e,i,r;this.syncSubmenuStates();let n=null!=(e=null!=(i=this.pendingOpenedState)?i:this.allStates.find(e=>e.submenu===t))?e:null;this.pendingOpenedState=null;let s=null!=(r=null==n?void 0:n.directChildren[0])?r:this.getPanelStates(t)[0];if(!s){let e=this.getFirstFocusableInPanel(t);e&&requestAnimationFrame(()=>{e.focus()});return}this.setActiveTrigger(s),requestAnimationFrame(()=>{s.trigger.focus()})}onPanelClosed(t){var e,i;this.syncSubmenuStates();let r=null!=(e=null!=(i=this.pendingClosedParentState)?i:this.allStates.find(e=>e.submenu===t))?e:null;this.pendingClosedParentState=null,r&&(this.setActiveTrigger(r),requestAnimationFrame(()=>{r.trigger.focus()}))}buildStates(){var t;let e=Array.from(this.rootMenu.querySelectorAll(".brz-mm-panel[id]:not(.brz-mm-panels)")),i=new Set;this.panelsById.clear(),e.forEach(t=>{this.panelsById.set(t.id,t)}),this.allStates=e.flatMap(t=>{let e=Array.from(t.querySelectorAll(".brz-menu__item")).filter(e=>e.closest(".brz-mm-panel[id]:not(.brz-mm-panels)")===t).map(e=>{var r,n,s;let o=null!=(r=null!=(n=e.querySelector(".brz-mm-listitem__text"))?n:Array.from(e.querySelectorAll("a")).find(t=>!t.classList.contains("brz-mm-btn_next")))?r:null;if(!o)return null;let l=e.querySelector(".brz-mm-btn_next[href^='#']"),a=null!=(s=null==l?void 0:l.getAttribute("href"))?s:"",u=this.panelsById.get(a.replace(/^#/,""));u&&i.add(u.id);let c={item:e,panel:t,trigger:o,openButton:null!=l?l: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(t=>null!==t);return this.statesByPanel.set(t,e),e}),this.stateByTrigger.clear(),this.allStates.forEach(t=>{this.stateByTrigger.set(t.trigger,t)}),this.allStates.forEach(t=>{if(!t.submenu)return;let e=this.getPanelStates(t.submenu);t.directChildren=e,e.forEach(e=>{e.parent=t})});let r=null!=(t=e.find(t=>!i.has(t.id)))?t:e[0];this.topLevelStates=r?this.getPanelStates(r):[]}applyRolesAndAria(){let t=this.rootMenu.id||`brz-mmenu-${this.instanceId}`;this.rootMenu.id=t,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",t),this.panelsById.forEach(t=>{t.setAttribute("role","menu"),t.setAttribute("aria-hidden",String(!this.isPanelVisible(t))),t.querySelectorAll(".brz-mm-navbar__title").forEach(t=>{t.setAttribute("tabindex","-1")}),t.querySelectorAll(".brz-mm-btn_next").forEach(t=>{t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true")})}),this.allStates.forEach((t,e)=>{let i=t.trigger.id||`brz-mmenuitem-${this.instanceId}-${e}`;t.trigger.id=i,t.trigger.setAttribute("role","menuitem"),t.trigger.setAttribute("tabindex","-1"),t.api&&t.submenu&&(t.trigger.setAttribute("aria-haspopup","true"),t.trigger.setAttribute("aria-expanded",String(t.api.isOpen())),t.trigger.setAttribute("aria-controls",t.submenu.id),t.submenu.setAttribute("aria-labelledby",i))})}initFocusModel(){let t=this.topLevelStates[0];t&&this.setActiveTrigger(t)}attachListeners(){this.rootMenu.addEventListener("keydown",this.onKeyDown),this.rootMenu.addEventListener("focusout",this.onFocusOut,!0),this.allStates.forEac
1h(t=>{t.trigger.addEventListener("focus",()=>{this.setActiveTrigger(t)})})}syncMenuState(t){this.trigger.setAttribute("aria-expanded",String(t)),this.rootMenu.setAttribute("aria-hidden",String(!t)),this.syncSubmenuStates()}syncSubmenuStates(){this.panelsById.forEach(t=>{t.setAttribute("aria-hidden",String(!this.isPanelVisible(t)))}),this.allStates.forEach(t=>{if(!t.api||!t.submenu)return;let e=t.api.isOpen();t.trigger.setAttribute("aria-expanded",String(e)),t.submenu.setAttribute("aria-hidden",String(!e))})}isMenuOpen(){return this.rootMenu.classList.contains("brz-mm-menu_opened")}getCurrentOpenPanel(){var t;let e=document.activeElement;if(e instanceof HTMLElement){let t=e.closest(".brz-mm-panel[id]:not(.brz-mm-panels)");if(t&&this.rootMenu.contains(t))return t}let i=Array.from(this.rootMenu.querySelectorAll(".brz-mm-panel_opened:not(.brz-mm-panels)"));return null!=(t=i[i.length-1])?t:null}isPanelVisible(t){return t.getClientRects().length>0&&"hidden"!==getComputedStyle(t).visibility&&!t.classList.contains("brz-mm-hidden")}getPanelStates(t){var e;return null!=(e=this.statesByPanel.get(t))?e:[]}getTriggerStateFromElement(t){var e;if(!(t instanceof HTMLElement))return null;let i=t.closest("a");return i&&null!=(e=this.stateByTrigger.get(i))?e:null}getOwnerStateFromElement(t){var e;if(!(t instanceof HTMLElement))return null;let i=t.closest(".brz-mm-panel[id]");return i&&null!=(e=this.allStates.find(t=>t.submenu===i))?e:null}getCurrentPanelStates(){let t=this.getCurrentOpenPanel();return t?this.getPanelStates(t):this.topLevelStates}getSiblings(t){return t.parent?t.parent.directChildren:this.topLevelStates}setActiveTrigger(t){let e=this.getCurrentOpenPanel(),i=null!=e?e:this.rootMenu;this.allStates.forEach(t=>t.trigger.setAttribute("tabindex","-1")),t.trigger.setAttribute("tabindex","0"),i.setAttribute("aria-activedescendant",t.trigger.id)}focusSiblingAtOffset(t,e){let i=this.getSiblings(t);if(!i.length)return;let r=i.findIndex(e=>e===t);if(-1===r)return;let n=(r+e+i.length)%i.length,s=i[n];this.setActiveTrigger(s),s.trigger.focus()}focusBoundaryInSameLevel(t,e){let i=this.getSiblings(t);if(!i.length)return;let r=i[e?0:i.length-1];this.setActiveTrigger(r),r.trigger.focus()}openSubmenuAndFocusChild(t){if(!t.api||!t.submenu)return;this.pendingOpenedState=t,t.api.open();let e=t.directChildren[0];if(e)return void this.setActiveTrigger(e);let i=this.getFirstFocusableInPanel(t.submenu);i&&requestAnimationFrame(()=>{i.focus()})}getFirstFocusableInPanel(t){var e;return null!=(e=this.getFocusableElementsInPanel(t)[0])?e:null}getFocusableElementsInPanel(t){return Array.from(t.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(t=>!(t.classList.contains("brz-mm-navbar__title")||t.classList.contains("brz-mm-btn_next"))&&t.getClientRects().length>0&&"hidden"!==getComputedStyle(t).visibility&&!t.classList.contains("brz-mm-hidden"))}closeCurrentPanelAndFocusParent(t){t.parent&&(this.pendingClosedParentState=null,this.setActiveTrigger(t.parent),t.parent.trigger.focus())}constructor(t,e){M(this,"rootMenu",void 0),M(this,"trigger",void 0),M(this,"menuApi",void 0),M(this,"label",void 0),M(this,"instanceId",void 0),M(this,"allStates",[]),M(this,"topLevelStates",[]),M(this,"stateByTrigger",new Map),M(this,"statesByPanel",new Map),M(this,"panelsById",new Map),M(this,"pendingOpenedState",null),M(this,"pendingClosedParentState",null),M(this,"onKeyDown",t=>{if(!this.isMenuOpen())return;let e=document.activeElement,i=this.getTriggerStateFromElement(e),r=null!=i?i:this.getOwnerStateFromElement(e);if(r){if(!i){var n,s,o,l,a,u;let i=r.submenu?this.getFocusableElementsInPanel(r.submenu):[],c=i.findIndex(t=>t===e);
1switch(t.key){case"Tab":{if(!i.length||-1===c)return;t.preventDefault();let e=(c+(t.shiftKey?-1:1)+i.length)%i.length;null==(n=i[e])||n.focus();return}case"ArrowDown":{if(!i.length||-1===c)return;t.preventDefault();let e=(c+1)%i.length;null==(s=i[e])||s.focus();return}case"ArrowUp":{if(!i.length||-1===c)return;t.preventDefault();let e=(c-1+i.length)%i.length;null==(o=i[e])||o.focus();return}case"Home":if(!i.length)return;t.preventDefault(),null==(l=i[0])||l.focus();return;case"End":if(!i.length)return;t.preventDefault(),null==(a=i[i.length-1])||a.focus();return;case"ArrowLeft":case"Escape":t.preventDefault(),(null==(u=r.api)?void 0:u.isOpen())?(this.setActiveTrigger(r),r.trigger.focus()):r.parent?this.closeCurrentPanelAndFocusParent(r):this.menuApi.close();return;default:return}}switch(t.key){case"ArrowDown":t.preventDefault(),this.focusSiblingAtOffset(r,1);return;case"ArrowUp":t.preventDefault(),this.focusSiblingAtOffset(r,-1);return;case"ArrowRight":if(!r.api)return;t.preventDefault(),this.openSubmenuAndFocusChild(r);return;case"ArrowLeft":case"Escape":t.preventDefault(),r.parent?this.closeCurrentPanelAndFocusParent(r):this.menuApi.close();return;case"Home":t.preventDefault(),this.focusBoundaryInSameLevel(r,!0);return;case"End":t.preventDefault(),this.focusBoundaryInSameLevel(r,!1);return;case"Enter":case" ":case"Spacebar":if(t.preventDefault(),r.api)return void this.openSubmenuAndFocusChild(r);r.trigger.click();return}}}),M(this,"onFocusOut",t=>{if(!this.isMenuOpen())return;let e=t.relatedTarget;if(e!==this.trigger){if(!(e instanceof HTMLElement))return void this.menuApi.close();this.rootMenu.contains(e)||this.menuApi.close()}}),this.rootMenu=t,this.trigger=e.trigger,this.menuApi=e.menuApi,this.label=e.label||"Menu",this.instanceId=P.instanceCounter++}}M(P,"instanceCounter",0)},1450(t,e,i){"use strict";i.d(e,{G:()=>l});let r="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,l=()=>n?(null==s?void 0:s.matches)?"mobile":(null==o?void 0:o.matches)?"tablet":r:r},6513(t,e,i){"use strict";i.d(e,{$$:()=>n,uv:()=>r});let r=t=>JSON.parse(decodeURIComponent(t)),n=t=>{try{return r(t)}catch(t){}}}}]);
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.