"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[92],{490:(Ee,ye,J)=>{function B(T){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},B(T)}function $(T,g){if(!(T instanceof g))throw new TypeError("Cannot call a class as a function")}function he(T,g){for(var c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(T){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},D(T)}function me(T,g,c){return g=G(g),g in T?Object.defineProperty(T,g,{value:c,enumerable:!0,configurable:!0,writable:!0}):T[g]=c,T}function G(T){var g=le(T,"string");return B(g)==="symbol"?g:String(g)}function le(T,g){if(B(T)!=="object"||T===null)return T;var c=T[Symbol.toPrimitive];if(c!==void 0){var F=c.call(T,g||"default");if(B(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(T)}var ae=J(8322),O=J(7154),Te=J(3751),fe=Te.createFocusTrap,H=J(5272),b=H.isFocusable,I=function(T){N(c,T);var g=j(c);function c(F){var y;$(this,c),y=g.call(this,F),me(W(y),"getNodeForOption",function(re){var ie,Z=(ie=this.internalOptions[re])!==null&&ie!==void 0?ie:this.originalOptions[re];if(typeof Z=="function"){for(var de=arguments.length,k=new Array(de>1?de-1:0),n=1;n element.");var Y=function(Z){var de=y.props.containerElements;z&&(typeof z.ref=="function"?z.ref(Z):z.ref&&(z.ref.current=Z)),y.focusTrapElements=de||[Z]},re=ae.cloneElement(z,{ref:Y});return re}return null}}]),c}(ae.Component),l=typeof Element>"u"?Function:Element;I.propTypes={active:O.bool,paused:O.bool,focusTrapOptions:O.shape({document:O.object,onActivate:O.func,onPostActivate:O.func,checkCanFocusTrap:O.func,onPause:O.func,onPostPause:O.func,onUnpause:O.func,onPostUnpause:O.func,onDeactivate:O.func,onPostDeactivate:O.func,checkCanReturnFocus:O.func,initialFocus:O.oneOfType([O.instanceOf(l),O.string,O.bool,O.func]),fallbackFocus:O.oneOfType([O.instanceOf(l),O.string,O.func]),escapeDeactivates:O.oneOfType([O.bool,O.func]),clickOutsideDeactivates:O.oneOfType([O.bool,O.func]),returnFocusOnDeactivate:O.bool,setReturnFocus:O.oneOfType([O.instanceOf(l),O.string,O.bool,O.func]),allowOutsideClick:O.oneOfType([O.bool,O.func]),preventScroll:O.bool,tabbableOptions:O.shape({displayCheck:O.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:O.oneOfType([O.bool,O.func])}),trapStack:O.array,isKeyForward:O.func,isKeyBackward:O.func}),containerElements:O.arrayOf(O.instanceOf(l)),children:O.oneOfType([O.element,O.instanceOf(l)])},I.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:fe},Ee.exports=I},3751:(Ee,ye,J)=>{J.r(ye),J.d(ye,{createFocusTrap:()=>fe});var B=J(5272);/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */function $(H,b){var I=Object.keys(H);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(H);b&&(l=l.filter(function(T){return Object.getOwnPropertyDescriptor(H,T).enumerable})),I.push.apply(I,l)}return I}function he(H){for(var b=1;b0){var l=b[b.length-1];l!==I&&l.pause()}var T=b.indexOf(I);T===-1||b.splice(T,1),b.push(I)},deactivateTrap:function(b,I){var l=b.indexOf(I);l!==-1&&b.splice(l,1),b.length>0&&b[b.length-1].unpause()}},w=function(b){return b.tagName&&b.tagName.toLowerCase()==="input"&&typeof b.select=="function"},W=function(b){return b?.key==="Escape"||b?.key==="Esc"||b?.keyCode===27},te=function(b){return b?.key==="Tab"||b?.keyCode===9},D=function(b){return te(b)&&!b.shiftKey},me=function(b){return te(b)&&b.shiftKey},G=function(b){return setTimeout(b,0)},le=function(b,I){var l=-1;return b.every(function(T,g){return I(T)?(l=g,!1):!0}),l},ae=function(b){for(var I=arguments.length,l=new Array(I>1?I-1:0),T=1;T1?x-1:0),ue=1;ue=0)v=l.activeElement;else{var h=c.tabbableGroups[0],x=h&&h.firstTabbableNode;v=x||Y("fallbackFocus")}if(!v)throw new Error("Your focus-trap needs to have at least one focusable element");return v},ie=function(){if(c.containerGroups=c.containers.map(function(v){var h=(0,B.tabbable)(v,g.tabbableOptions),x=(0,B.focusable)(v,g.tabbableOptions),se=h.length>0?h[0]:void 0,ue=h.length>0?h[h.length-1]:void 0,r=x.find(function(p){return(0,B.isTabbable)(p)}),t=x.slice().reverse().find(function(p){return(0,B.isTabbable)(p)}),o=!!h.find(function(p){return(0,B.getTabIndex)(p)>0});return{container:v,tabbableNodes:h,focusableNodes:x,posTabIndexesFound:o,firstTabbableNode:se,lastTabbableNode:ue,firstDomTabbableNode:r,lastDomTabbableNode:t,nextTabbableNode:function(E){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=h.indexOf(E);return u<0?A?x.slice(x.indexOf(E)+1).find(function(C){return(0,B.isTabbable)(C)}):x.slice(0,x.indexOf(E)).reverse().find(function(C){return(0,B.isTabbable)(C)}):h[u+(A?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(v){return v.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!Y("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(c.containerGroups.find(function(v){return v.posTabIndexesFound})&&c.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},Z=function ee(v){var h=v.activeElement;if(h)return h.shadowRoot&&h.shadowRoot.activeElement!==null?ee(h.shadowRoot):h},de=function ee(v){if(v!==!1&&v!==Z(document)){if(!v||!v.focus){ee(re());return}v.focus({preventScroll:!!g.preventScroll}),c.mostRecentlyFocusedNode=v,w(v)&&v.select()}},k=function(v){var h=Y("setReturnFocus",v);return h||(h===!1?!1:v)},n=function(v){var h=v.target,x=v.event,se=v.isBackward,ue=se===void 0?!1:se;h=h||O(x),ie();var r=null;if(c.tabbableGroups.length>0){var t=z(h,x),o=t>=0?c.containerGroups[t]:void 0;if(t<0)ue?r=c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:r=c.tabbableGroups[0].firstTabbableNode;else if(ue){var p=le(c.tabbableGroups,function(e){var i=e.firstTabbableNode;return h===i});if(p<0&&(o.container===h||(0,B.isFocusable)(h,g.tabbableOptions)&&!(0,B.isTabbable)(h,g.tabbableOptions)&&!o.nextTabbableNode(h,!1))&&(p=t),p>=0){var E=p===0?c.tabbableGroups.length-1:p-1,A=c.tabbableGroups[E];r=(0,B.getTabIndex)(h)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else te(x)||(r=o.nextTabbableNode(h,!1))}else{var u=le(c.tabbableGroups,function(e){var i=e.lastTabbableNode;return h===i});if(u<0&&(o.container===h||(0,B.isFocusable)(h,g.tabbableOptions)&&!(0,B.isTabbable)(h,g.tabbableOptions)&&!o.nextTabbableNode(h))&&(u=t),u>=0){var C=u===c.tabbableGroups.length-1?0:u+1,s=c.tabbableGroups[C];r=(0,B.getTabIndex)(h)>=0?s.firstTabbableNode:s.firstDomTabbableNode}else te(x)||(r=o.nextTabbableNode(h))}}else r=Y("fallbackFocus");return r},f=function(v){var h=O(v);if(!(z(h,v)>=0)){if(ae(g.clickOutsideDeactivates,v)){F.deactivate({returnFocus:g.returnFocusOnDeactivate});return}ae(g.allowOutsideClick,v)||v.preventDefault()}},S=function(v){var h=O(v),x=z(h,v)>=0;if(x||h instanceof Document)x&&(c.mostRecentlyFocusedNode=h);else{v.stopImmediatePropagation();var se,ue=!0;if(c.mostRecentlyFocusedNode)if((0,B.getTabIndex)(c.mostRecentlyFocusedNode)>0){var r=z(c.mostRecentlyFocusedNode),t=c.containerGroups[r].tabbableNodes;if(t.length>0){var o=t.findIndex(function(p){return p===c.mostRecentlyFocusedNode});o>=0&&(g.isKeyForward(c.recentNavEvent)?o+1=0&&(se=t[o-1],ue=!1))}}else c.containerGroups.some(function(p){return p.tabbableNodes.some(function(E){return(0,B.getTabIndex)(E)>0})})||(ue=!1);else ue=!1;ue&&(se=n({target:c.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(c.recentNavEvent)})),de(se||c.mostRecentlyFocusedNode||re())}c.recentNavEvent=void 0},M=function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;c.recentNavEvent=v;var x=n({event:v,isBackward:h});x&&(te(v)&&v.preventDefault(),de(x))},Q=function(v){if(W(v)&&ae(g.escapeDeactivates,v)!==!1){v.preventDefault(),F.deactivate();return}(g.isKeyForward(v)||g.isKeyBackward(v))&&M(v,g.isKeyBackward(v))},V=function(v){var h=O(v);z(h,v)>=0||ae(g.clickOutsideDeactivates,v)||ae(g.allowOutsideClick,v)||(v.preventDefault(),v.stopImmediatePropagation())},be=function(){if(c.active)return j.activateTrap(T,F),c.delayInitialFocusTimer=g.delayInitialFocus?G(function(){de(re())}):de(re()),l.addEventListener("focusin",S,!0),l.addEventListener("mousedown",f,{capture:!0,passive:!1}),l.addEventListener("touchstart",f,{capture:!0,passive:!1}),l.addEventListener("click",V,{capture:!0,passive:!1}),l.addEventListener("keydown",Q,{capture:!0,passive:!1}),F},pe=function(){if(c.active)return l.removeEventListener("focusin",S,!0),l.removeEventListener("mousedown",f,!0),l.removeEventListener("touchstart",f,!0),l.removeEventListener("click",V,!0),l.removeEventListener("keydown",Q,!0),F},ge=function(v){var h=v.some(function(x){var se=Array.from(x.removedNodes);return se.some(function(ue){return ue===c.mostRecentlyFocusedNode})});h&&de(re())},ne=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(ge):void 0,oe=function(){ne&&(ne.disconnect(),c.active&&!c.paused&&c.containers.map(function(v){ne.observe(v,{subtree:!0,childList:!0})}))};return F={get active(){return c.active},get paused(){return c.paused},activate:function(v){if(c.active)return this;var h=y(v,"onActivate"),x=y(v,"onPostActivate"),se=y(v,"checkCanFocusTrap");se||ie(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=l.activeElement,h?.();var ue=function(){se&&ie(),be(),oe(),x?.()};return se?(se(c.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(v){if(!c.active)return this;var h=he({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},v);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,pe(),c.active=!1,c.paused=!1,oe(),j.deactivateTrap(T,F);var x=y(h,"onDeactivate"),se=y(h,"onPostDeactivate"),ue=y(h,"checkCanReturnFocus"),r=y(h,"returnFocus","returnFocusOnDeactivate");x?.();var t=function(){G(function(){r&&de(k(c.nodeFocusedBeforeActivation)),se?.()})};return r&&ue?(ue(k(c.nodeFocusedBeforeActivation)).then(t,t),this):(t(),this)},pause:function(v){if(c.paused||!c.active)return this;var h=y(v,"onPause"),x=y(v,"onPostPause");return c.paused=!0,h?.(),pe(),oe(),x?.(),this},unpause:function(v){if(!c.paused||!c.active)return this;var h=y(v,"onUnpause"),x=y(v,"onPostUnpause");return c.paused=!1,h?.(),ie(),be(),oe(),x?.(),this},updateContainerElements:function(v){var h=[].concat(v).filter(Boolean);return c.containers=h.map(function(x){return typeof x=="string"?l.querySelector(x):x}),c.active&&ie(),oe(),this}},F.updateContainerElements(b),F}},844:(Ee,ye,J)=>{J.d(ye,{Ay:()=>K});var B=J(8322);const $=48,he=({color:j="currentColor",direction:w="left",distance:W="md",duration:te=.4,easing:D="cubic-bezier(0, 0, 0, 1)",hideOutline:me=!0,label:G,lines:le=3,onToggle:ae,render:O,rounded:Te=!1,size:fe=32,toggle:H,toggled:b})=>{const[I,l]=(0,B.useState)(!1),T=Math.max(12,Math.min($,fe)),g=Math.round(($-T)/2),c=T/12,F=Math.round(c),z=T/(le*((W==="lg"?.25:W==="sm"?.75:.5)+(le===3?1:1.25))),Y=Math.round(z),re=F*le+Y*(le-1),ie=Math.round(($-re)/2),Z=le===3?W==="lg"?4.0425:W==="sm"?5.1625:4.6325:W==="lg"?6.7875:W==="sm"?8.4875:7.6675,de=(c-F+(z-Y))/(le===3?1:2),k=parseFloat((T/Z-de/(4/3)).toFixed(2)),n=Math.max(0,te),f={cursor:"pointer",height:`${$}px`,position:"relative",transition:`${n}s ${D}`,userSelect:"none",width:`${$}px`},S={background:j,height:`${F}px`,left:`${g}px`,position:"absolute"};me&&(f.outline="none"),Te&&(S.borderRadius="9em");const M=H||l,Q=b!==void 0?b:I;return O({barHeight:F,barStyles:S,burgerStyles:f,easing:D,handler:()=>{M(!Q),typeof ae=="function"&&ae(!Q)},isLeft:w==="left",isToggled:Q,label:G,margin:Y,move:k,time:n,topOffset:ie,width:T})};function L(){return L=Object.assign||function(j){for(var w=1;wB.createElement(he,L({},j,{render:w=>B.createElement("div",{className:"hamburger-react","aria-label":w.label,"aria-expanded":w.isToggled,onClick:w.handler,onKeyUp:W=>W.key==="Enter"&&w.handler(),role:"button",style:{...w.burgerStyles,transform:`${w.isToggled?`rotate(${90*(w.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},B.createElement("div",{style:{...w.barStyles,width:`${w.width}px`,top:`${w.topOffset}px`,transition:`${w.time}s ${w.easing}`,transform:`${w.isToggled?`rotate(${45*(w.isLeft?-1:1)}deg) translate(${w.move*(w.isLeft?-1:1)}px, ${w.move}px)`:"none"}`}}),B.createElement("div",{style:{...w.barStyles,width:`${w.width}px`,top:`${w.topOffset+w.barHeight+w.margin}px`,transition:`${w.time}s ${w.easing}`,transform:`${w.isToggled?"scaleX(0)":"none"}`}}),B.createElement("div",{style:{...w.barStyles,width:`${w.width}px`,top:`${w.topOffset+w.barHeight*2+w.margin*2}px`,transition:`${w.time}s ${w.easing}`,transform:`${w.isToggled?`rotate(${45*(w.isLeft?1:-1)}deg) translate(${w.move*(w.isLeft?-1:1)}px, ${w.move*-1}px)`:"none"}`}}))}))},8751:(Ee,ye,J)=>{var B="Expected a function",$=NaN,he="[object Symbol]",L=/^\s+|\s+$/g,N=/^[-+]0x[0-9a-f]+$/i,K=/^0b[01]+$/i,j=/^0o[0-7]+$/i,w=parseInt,W=typeof J.g=="object"&&J.g&&J.g.Object===Object&&J.g,te=typeof self=="object"&&self&&self.Object===Object&&self,D=W||te||Function("return this")(),me=Object.prototype,G=me.toString,le=Math.max,ae=Math.min,O=function(){return D.Date.now()};function Te(l,T,g){var c,F,y,z,Y,re,ie=0,Z=!1,de=!1,k=!0;if(typeof l!="function")throw new TypeError(B);T=I(T)||0,fe(g)&&(Z=!!g.leading,de="maxWait"in g,y=de?le(I(g.maxWait)||0,T):y,k="trailing"in g?!!g.trailing:k);function n(ne){var oe=c,ee=F;return c=F=void 0,ie=ne,z=l.apply(ee,oe),z}function f(ne){return ie=ne,Y=setTimeout(Q,T),Z?n(ne):z}function S(ne){var oe=ne-re,ee=ne-ie,v=T-oe;return de?ae(v,y-ee):v}function M(ne){var oe=ne-re,ee=ne-ie;return re===void 0||oe>=T||oe<0||de&&ee>=y}function Q(){var ne=O();if(M(ne))return V(ne);Y=setTimeout(Q,S(ne))}function V(ne){return Y=void 0,k&&c?n(ne):(c=F=void 0,z)}function be(){Y!==void 0&&clearTimeout(Y),ie=0,c=re=F=Y=void 0}function pe(){return Y===void 0?z:V(O())}function ge(){var ne=O(),oe=M(ne);if(c=arguments,F=this,re=ne,oe){if(Y===void 0)return f(re);if(de)return Y=setTimeout(Q,T),n(re)}return Y===void 0&&(Y=setTimeout(Q,T)),z}return ge.cancel=be,ge.flush=pe,ge}function fe(l){var T=typeof l;return!!l&&(T=="object"||T=="function")}function H(l){return!!l&&typeof l=="object"}function b(l){return typeof l=="symbol"||H(l)&&G.call(l)==he}function I(l){if(typeof l=="number")return l;if(b(l))return $;if(fe(l)){var T=typeof l.valueOf=="function"?l.valueOf():l;l=fe(T)?T+"":T}if(typeof l!="string")return l===0?l:+l;l=l.replace(L,"");var g=K.test(l);return g||j.test(l)?w(l.slice(2),g?2:8):N.test(l)?$:+l}Ee.exports=Te},8265:Ee=>{var ye=typeof Element<"u",J=typeof Map=="function",B=typeof Set=="function",$=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function he(L,N){if(L===N)return!0;if(L&&N&&typeof L=="object"&&typeof N=="object"){if(L.constructor!==N.constructor)return!1;var K,j,w;if(Array.isArray(L)){if(K=L.length,K!=N.length)return!1;for(j=K;j--!==0;)if(!he(L[j],N[j]))return!1;return!0}var W;if(J&&L instanceof Map&&N instanceof Map){if(L.size!==N.size)return!1;for(W=L.entries();!(j=W.next()).done;)if(!N.has(j.value[0]))return!1;for(W=L.entries();!(j=W.next()).done;)if(!he(j.value[1],N.get(j.value[0])))return!1;return!0}if(B&&L instanceof Set&&N instanceof Set){if(L.size!==N.size)return!1;for(W=L.entries();!(j=W.next()).done;)if(!N.has(j.value[0]))return!1;return!0}if($&&ArrayBuffer.isView(L)&&ArrayBuffer.isView(N)){if(K=L.length,K!=N.length)return!1;for(j=K;j--!==0;)if(L[j]!==N[j])return!1;return!0}if(L.constructor===RegExp)return L.source===N.source&&L.flags===N.flags;if(L.valueOf!==Object.prototype.valueOf&&typeof L.valueOf=="function"&&typeof N.valueOf=="function")return L.valueOf()===N.valueOf();if(L.toString!==Object.prototype.toString&&typeof L.toString=="function"&&typeof N.toString=="function")return L.toString()===N.toString();if(w=Object.keys(L),K=w.length,K!==Object.keys(N).length)return!1;for(j=K;j--!==0;)if(!Object.prototype.hasOwnProperty.call(N,w[j]))return!1;if(ye&&L instanceof Element)return!1;for(j=K;j--!==0;)if(!((w[j]==="_owner"||w[j]==="__v"||w[j]==="__o")&&L.$$typeof)&&!he(L[w[j]],N[w[j]]))return!1;return!0}return L!==L&&N!==N}Ee.exports=function(N,K){try{return he(N,K)}catch(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}}},4864:(Ee,ye,J)=>{J.d(ye,{m:()=>u});var B=J(7154),$=J.n(B),he=J(5312),L=J.n(he),N=J(8265),K=J.n(N),j=J(8322),w=J(6714),W=J.n(w),te={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},D={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},me=Object.keys(D).map(function(s){return D[s]}),G={CHARSET:"charset",CSS_TEXT:"cssText",href:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},le={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ae={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},O=Object.keys(le).reduce(function(s,e){return s[le[e]]=e,s},{}),Te=[D.NOSCRIPT,D.SCRIPT,D.STYLE],fe="data-react-helmet",H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},b=function(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")},I=function(){function s(e,i){for(var d=0;d=0||Object.prototype.hasOwnProperty.call(s,d)&&(i[d]=s[d]);return i},c=function(s,e){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:s},F=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},y=function(e){var i=Z(e,D.TITLE),d=Z(e,ae.TITLE_TEMPLATE);if(d&&i)return d.replace(/%s/g,function(){return Array.isArray(i)?i.join(""):i});var a=Z(e,ae.DEFAULT_TITLE);return i||a||void 0},z=function(e){return Z(e,ae.ON_CHANGE_CLIENT_STATE)||function(){}},Y=function(e,i){return i.filter(function(d){return typeof d[e]<"u"}).map(function(d){return d[e]}).reduce(function(d,a){return l({},d,a)},{})},re=function(e,i){return i.filter(function(d){return typeof d[D.BASE]<"u"}).map(function(d){return d[D.BASE]}).reverse().reduce(function(d,a){if(!d.length)for(var m=Object.keys(a),_=0;_=0;d--){var a=e[d];if(a.hasOwnProperty(i))return a[i]}return null},de=function(e){return{baseTag:re([G.href,G.TARGET],e),bodyAttributes:Y(te.BODY,e),defer:Z(e,ae.DEFER),encode:Z(e,ae.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Y(te.HTML,e),linkTags:ie(D.LINK,[G.REL,G.href],e),metaTags:ie(D.META,[G.NAME,G.CHARSET,G.HTTPEQUIV,G.PROPERTY,G.ITEM_PROP],e),noscriptTags:ie(D.NOSCRIPT,[G.INNER_HTML],e),onChangeClientState:z(e),scriptTags:ie(D.SCRIPT,[G.SRC,G.INNER_HTML],e),styleTags:ie(D.STYLE,[G.CSS_TEXT],e),title:y(e),titleAttributes:Y(te.TITLE,e)}},k=function(){var s=Date.now();return function(e){var i=Date.now();i-s>16?(s=i,e(i)):setTimeout(function(){k(e)},0)}}(),n=function(e){return clearTimeout(e)},f=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||k:J.g.requestAnimationFrame||k,S=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||n:J.g.cancelAnimationFrame||n,M=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},Q=null,V=function(e){Q&&S(Q),e.defer?Q=f(function(){be(e,function(){Q=null})}):(be(e),Q=null)},be=function(e,i){var d=e.baseTag,a=e.bodyAttributes,m=e.htmlAttributes,_=e.linkTags,R=e.metaTags,P=e.noscriptTags,U=e.onChangeClientState,X=e.scriptTags,q=e.styleTags,ce=e.title,ve=e.titleAttributes;ne(D.BODY,a),ne(D.HTML,m),ge(ce,ve);var Ce={baseTag:oe(D.BASE,d),linkTags:oe(D.LINK,_),metaTags:oe(D.META,R),noscriptTags:oe(D.NOSCRIPT,P),scriptTags:oe(D.SCRIPT,X),styleTags:oe(D.STYLE,q)},we={},Se={};Object.keys(Ce).forEach(function(Oe){var Ae=Ce[Oe],Re=Ae.newTags,Pe=Ae.oldTags;Re.length&&(we[Oe]=Re),Pe.length&&(Se[Oe]=Ce[Oe].oldTags)}),i&&i(),U(e,we,Se)},pe=function(e){return Array.isArray(e)?e.join(""):e},ge=function(e,i){typeof e<"u"&&document.title!==e&&(document.title=pe(e)),ne(D.TITLE,i)},ne=function(e,i){var d=document.getElementsByTagName(e)[0];if(d){for(var a=d.getAttribute(fe),m=a?a.split(","):[],_=[].concat(m),R=Object.keys(i),P=0;P=0;ce--)d.removeAttribute(_[ce]);m.length===_.length?d.removeAttribute(fe):d.getAttribute(fe)!==R.join(",")&&d.setAttribute(fe,R.join(","))}},oe=function(e,i){var d=document.head||document.querySelector(D.HEAD),a=d.querySelectorAll(e+"["+fe+"]"),m=Array.prototype.slice.call(a),_=[],R=void 0;return i&&i.length&&i.forEach(function(P){var U=document.createElement(e);for(var X in P)if(P.hasOwnProperty(X))if(X===G.INNER_HTML)U.innerHTML=P.innerHTML;else if(X===G.CSS_TEXT)U.styleSheet?U.styleSheet.cssText=P.cssText:U.appendChild(document.createTextNode(P.cssText));else{var q=typeof P[X]>"u"?"":P[X];U.setAttribute(X,q)}U.setAttribute(fe,"true"),m.some(function(ce,ve){return R=ve,U.isEqualNode(ce)})?m.splice(R,1):_.push(U)}),m.forEach(function(P){return P.parentNode.removeChild(P)}),_.forEach(function(P){return d.appendChild(P)}),{oldTags:m,newTags:_}},ee=function(e){return Object.keys(e).reduce(function(i,d){var a=typeof e[d]<"u"?d+'="'+e[d]+'"':""+d;return i?i+" "+a:a},"")},v=function(e,i,d,a){var m=ee(d),_=pe(i);return m?"<"+e+" "+fe+'="true" '+m+">"+F(_,a)+"":"<"+e+" "+fe+'="true">'+F(_,a)+""},h=function(e,i,d){return i.reduce(function(a,m){var _=Object.keys(m).filter(function(U){return!(U===G.INNER_HTML||U===G.CSS_TEXT)}).reduce(function(U,X){var q=typeof m[X]>"u"?X:X+'="'+F(m[X],d)+'"';return U?U+" "+q:q},""),R=m.innerHTML||m.cssText||"",P=Te.indexOf(e)===-1;return a+"<"+e+" "+fe+'="true" '+_+(P?"/>":">"+R+"")},"")},x=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(d,a){return d[le[a]||a]=e[a],d},i)},se=function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(d,a){return d[O[a]||a]=e[a],d},i)},ue=function(e,i,d){var a,m=(a={key:i},a[fe]=!0,a),_=x(d,m);return[j.createElement(D.TITLE,_,i)]},r=function(e,i){return i.map(function(d,a){var m,_=(m={key:a},m[fe]=!0,m);return Object.keys(d).forEach(function(R){var P=le[R]||R;if(P===G.INNER_HTML||P===G.CSS_TEXT){var U=d.innerHTML||d.cssText;_.dangerouslySetInnerHTML={__html:U}}else _[P]=d[R]}),j.createElement(e,_)})},t=function(e,i,d){switch(e){case D.TITLE:return{toComponent:function(){return ue(e,i.title,i.titleAttributes,d)},toString:function(){return v(e,i.title,i.titleAttributes,d)}};case te.BODY:case te.HTML:return{toComponent:function(){return x(i)},toString:function(){return ee(i)}};default:return{toComponent:function(){return r(e,i)},toString:function(){return h(e,i,d)}}}},o=function(e){var i=e.baseTag,d=e.bodyAttributes,a=e.encode,m=e.htmlAttributes,_=e.linkTags,R=e.metaTags,P=e.noscriptTags,U=e.scriptTags,X=e.styleTags,q=e.title,ce=q===void 0?"":q,ve=e.titleAttributes;return{base:t(D.BASE,i,a),bodyAttributes:t(te.BODY,d,a),htmlAttributes:t(te.HTML,m,a),link:t(D.LINK,_,a),meta:t(D.META,R,a),noscript:t(D.NOSCRIPT,P,a),script:t(D.SCRIPT,U,a),style:t(D.STYLE,X,a),title:t(D.TITLE,{title:ce,titleAttributes:ve},a)}},p=function(e){var i,d;return d=i=function(a){T(m,a);function m(){return b(this,m),c(this,a.apply(this,arguments))}return m.prototype.shouldComponentUpdate=function(R){return!K()(this.props,R)},m.prototype.mapNestedChildrenToProps=function(R,P){if(!P)return null;switch(R.type){case D.SCRIPT:case D.NOSCRIPT:return{innerHTML:P};case D.STYLE:return{cssText:P}}throw new Error("<"+R.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},m.prototype.flattenArrayTypeChildren=function(R){var P,U=R.child,X=R.arrayTypeChildren,q=R.newChildProps,ce=R.nestedChildren;return l({},X,(P={},P[U.type]=[].concat(X[U.type]||[],[l({},q,this.mapNestedChildrenToProps(U,ce))]),P))},m.prototype.mapObjectTypeChildren=function(R){var P,U,X=R.child,q=R.newProps,ce=R.newChildProps,ve=R.nestedChildren;switch(X.type){case D.TITLE:return l({},q,(P={},P[X.type]=ve,P.titleAttributes=l({},ce),P));case D.BODY:return l({},q,{bodyAttributes:l({},ce)});case D.HTML:return l({},q,{htmlAttributes:l({},ce)})}return l({},q,(U={},U[X.type]=l({},ce),U))},m.prototype.mapArrayTypeChildrenToProps=function(R,P){var U=l({},P);return Object.keys(R).forEach(function(X){var q;U=l({},U,(q={},q[X]=R[X],q))}),U},m.prototype.warnOnInvalidChildren=function(R,P){return!0},m.prototype.mapChildrenToProps=function(R,P){var U=this,X={};return j.Children.forEach(R,function(q){if(!(!q||!q.props)){var ce=q.props,ve=ce.children,Ce=g(ce,["children"]),we=se(Ce);switch(U.warnOnInvalidChildren(q,ve),q.type){case D.LINK:case D.META:case D.NOSCRIPT:case D.SCRIPT:case D.STYLE:X=U.flattenArrayTypeChildren({child:q,arrayTypeChildren:X,newChildProps:we,nestedChildren:ve});break;default:P=U.mapObjectTypeChildren({child:q,newProps:P,newChildProps:we,nestedChildren:ve});break}}}),P=this.mapArrayTypeChildrenToProps(X,P),P},m.prototype.render=function(){var R=this.props,P=R.children,U=g(R,["children"]),X=l({},U);return P&&(X=this.mapChildrenToProps(P,X)),j.createElement(e,X)},I(m,null,[{key:"canUseDOM",set:function(R){e.canUseDOM=R}}]),m}(j.Component),i.propTypes={base:$().object,bodyAttributes:$().object,children:$().oneOfType([$().arrayOf($().node),$().node]),defaultTitle:$().string,defer:$().bool,encodeSpecialCharacters:$().bool,htmlAttributes:$().object,link:$().arrayOf($().object),meta:$().arrayOf($().object),noscript:$().arrayOf($().object),onChangeClientState:$().func,script:$().arrayOf($().object),style:$().arrayOf($().object),title:$().string,titleAttributes:$().object,titleTemplate:$().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=e.peek,i.rewind=function(){var a=e.rewind();return a||(a=o({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),a},d},E=function(){return null},A=L()(de,V,o)(E),u=p(A);u.renderStatic=u.rewind;var C=null},5312:(Ee,ye,J)=>{function B(w){return w&&typeof w=="object"&&"default"in w?w.default:w}var $=J(8322),he=B($);function L(w,W,te){return W in w?Object.defineProperty(w,W,{value:te,enumerable:!0,configurable:!0,writable:!0}):w[W]=te,w}function N(w,W){w.prototype=Object.create(W.prototype),w.prototype.constructor=w,w.__proto__=W}var K=!!(typeof window<"u"&&window.document&&window.document.createElement);function j(w,W,te){if(typeof w!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof W!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof te<"u"&&typeof te!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function D(me){return me.displayName||me.name||"Component"}return function(G){if(typeof G!="function")throw new Error("Expected WrappedComponent to be a React component.");var le=[],ae;function O(){ae=w(le.map(function(fe){return fe.props})),Te.canUseDOM?W(ae):te&&(ae=te(ae))}var Te=function(fe){N(H,fe);function H(){return fe.apply(this,arguments)||this}H.peek=function(){return ae},H.rewind=function(){if(H.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var l=ae;return ae=void 0,le=[],l};var b=H.prototype;return b.UNSAFE_componentWillMount=function(){le.push(this),O()},b.componentDidUpdate=function(){O()},b.componentWillUnmount=function(){var l=le.indexOf(this);le.splice(l,1),O()},b.render=function(){return he.createElement(G,this.props)},H}($.PureComponent);return L(Te,"displayName","SideEffect("+D(G)+")"),L(Te,"canUseDOM",K),Te}}Ee.exports=j},5272:(Ee,ye,J)=>{J.r(ye),J.d(ye,{focusable:()=>re,getTabIndex:()=>D,isFocusable:()=>de,isTabbable:()=>ie,tabbable:()=>Y});/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var B=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],$=B.join(","),he=typeof Element>"u",L=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,N=!he&&Element.prototype.getRootNode?function(k){var n;return k==null||(n=k.getRootNode)===null||n===void 0?void 0:n.call(k)}:function(k){return k?.ownerDocument},K=function k(n,f){var S;f===void 0&&(f=!0);var M=n==null||(S=n.getAttribute)===null||S===void 0?void 0:S.call(n,"inert"),Q=M===""||M==="true",V=Q||f&&n&&k(n.parentNode);return V},j=function(n){var f,S=n==null||(f=n.getAttribute)===null||f===void 0?void 0:f.call(n,"contenteditable");return S===""||S==="true"},w=function(n,f,S){if(K(n))return[];var M=Array.prototype.slice.apply(n.querySelectorAll($));return f&&L.call(n,$)&&M.unshift(n),M=M.filter(S),M},W=function k(n,f,S){for(var M=[],Q=Array.from(n);Q.length;){var V=Q.shift();if(!K(V,!1))if(V.tagName==="SLOT"){var be=V.assignedElements(),pe=be.length?be:V.children,ge=k(pe,!0,S);S.flatten?M.push.apply(M,ge):M.push({scopeParent:V,candidates:ge})}else{var ne=L.call(V,$);ne&&S.filter(V)&&(f||!n.includes(V))&&M.push(V);var oe=V.shadowRoot||typeof S.getShadowRoot=="function"&&S.getShadowRoot(V),ee=!K(oe,!1)&&(!S.shadowRootFilter||S.shadowRootFilter(V));if(oe&&ee){var v=k(oe===!0?V.children:oe.children,!0,S);S.flatten?M.push.apply(M,v):M.push({scopeParent:V,candidates:v})}else Q.unshift.apply(Q,V.children)}}return M},te=function(n){return!isNaN(parseInt(n.getAttribute("tabindex"),10))},D=function(n){if(!n)throw new Error("No node provided");return n.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||j(n))&&!te(n)?0:n.tabIndex},me=function(n,f){var S=D(n);return S<0&&f&&!te(n)?0:S},G=function(n,f){return n.tabIndex===f.tabIndex?n.documentOrder-f.documentOrder:n.tabIndex-f.tabIndex},le=function(n){return n.tagName==="INPUT"},ae=function(n){return le(n)&&n.type==="hidden"},O=function(n){var f=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(S){return S.tagName==="SUMMARY"});return f},Te=function(n,f){for(var S=0;Ssummary:first-of-type"),V=Q?n.parentElement:n;if(L.call(V,"details:not([open]) *"))return!0;if(!S||S==="full"||S==="legacy-full"){if(typeof M=="function"){for(var be=n;n;){var pe=n.parentElement,ge=N(n);if(pe&&!pe.shadowRoot&&M(pe)===!0)return l(n);n.assignedSlot?n=n.assignedSlot:!pe&&ge!==n.ownerDocument?n=ge.host:n=pe}n=be}if(I(n))return!n.getClientRects().length;if(S!=="legacy-full")return!0}else if(S==="non-zero-area")return l(n);return!1},g=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var f=n.parentElement;f;){if(f.tagName==="FIELDSET"&&f.disabled){for(var S=0;S=0)},z=function k(n){var f=[],S=[];return n.forEach(function(M,Q){var V=!!M.scopeParent,be=V?M.scopeParent:M,pe=me(be,V),ge=V?k(M.candidates):be;pe===0?V?f.push.apply(f,ge):f.push(be):S.push({documentOrder:Q,tabIndex:pe,item:M,isScope:V,content:ge})}),S.sort(G).reduce(function(M,Q){return Q.isScope?M.push.apply(M,Q.content):M.push(Q.content),M},[]).concat(f)},Y=function(n,f){f=f||{};var S;return f.getShadowRoot?S=W([n],f.includeContainer,{filter:F.bind(null,f),flatten:!1,getShadowRoot:f.getShadowRoot,shadowRootFilter:y}):S=w(n,f.includeContainer,F.bind(null,f)),z(S)},re=function(n,f){f=f||{};var S;return f.getShadowRoot?S=W([n],f.includeContainer,{filter:c.bind(null,f),flatten:!0,getShadowRoot:f.getShadowRoot}):S=w(n,f.includeContainer,c.bind(null,f)),S},ie=function(n,f){if(f=f||{},!n)throw new Error("No node provided");return L.call(n,$)===!1?!1:F(f,n)},Z=B.concat("iframe").join(","),de=function(n,f){if(f=f||{},!n)throw new Error("No node provided");return L.call(n,Z)===!1?!1:c(f,n)}},5241:(Ee,ye,J)=>{J.d(ye,{Es:()=>N,ML:()=>K,lW:()=>ue});var B=J(8322),$=J(8751),he=J.n($);function L(r=!1){if(typeof r!="boolean")throw new Error("defaultValue must be `true` or `false`");const[t,o]=useState(r),p=useCallback(()=>{o(!0)},[]),E=useCallback(()=>{o(!1)},[]),A=useCallback(()=>{o(u=>!u)},[]);return{value:t,setValue:o,setTrue:p,setFalse:E,toggle:A}}var N=typeof window<"u"?B.useLayoutEffect:B.useEffect;function K(r,t,o,p){const E=(0,B.useRef)(t);N(()=>{E.current=t},[t]),(0,B.useEffect)(()=>{const A=o?.current??window;if(!(A&&A.addEventListener))return;const u=C=>{E.current(C)};return A.addEventListener(r,u,p),()=>{A.removeEventListener(r,u,p)}},[r,o,p])}function j(r){K("click",t=>{r(t)})}function w(){const[r,t]=useState(null),o=useCallback(async p=>{if(!navigator?.clipboard)return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(p),t(p),!0}catch(E){return console.warn("Copy failed",E),t(null),!1}},[]);return[r,o]}function W(r){const[t,o]=useState(r??0),p=useCallback(()=>{o(u=>u+1)},[]),E=useCallback(()=>{o(u=>u-1)},[]),A=useCallback(()=>{o(r??0)},[r]);return{count:t,increment:p,decrement:E,reset:A,setCount:o}}function te(r,t){const o=useRef(r);N(()=>{o.current=r},[r]),useEffect(()=>{if(t===null)return;const p=setInterval(()=>{o.current()},t);return()=>{clearInterval(p)}},[t])}function D({countStart:r,countStop:t=0,intervalMs:o=1e3,isIncrement:p=!1}){const{count:E,increment:A,decrement:u,reset:C}=W(r),{value:s,setTrue:e,setFalse:i}=L(!1),d=useCallback(()=>{i(),C()},[i,C]),a=useCallback(()=>{if(E===t){i();return}p?A():u()},[E,t,u,A,p,i]);return te(a,s?o:null),[E,{startCountdown:e,stopCountdown:i,resetCountdown:d}]}function me(r){const t=useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return N(()=>{t.current=r},[r]),useCallback((...o)=>{var p;return(p=t.current)==null?void 0:p.call(t,...o)},[t])}var G=typeof window>"u";function le(r,t,o={}){const{initializeWithValue:p=!0}=o,E=useCallback(a=>o.serializer?o.serializer(a):JSON.stringify(a),[o]),A=useCallback(a=>{if(o.deserializer)return o.deserializer(a);if(a==="undefined")return;const m=t instanceof Function?t():t;let _;try{_=JSON.parse(a)}catch(R){return console.error("Error parsing JSON:",R),m}return _},[o,t]),u=useCallback(()=>{const a=t instanceof Function?t():t;if(G)return a;try{const m=window.localStorage.getItem(r);return m?A(m):a}catch(m){return console.warn(`Error reading localStorage key \u201C${r}\u201D:`,m),a}},[t,r,A]),[C,s]=useState(()=>p?u():t instanceof Function?t():t),e=me(a=>{G&&console.warn(`Tried setting localStorage key \u201C${r}\u201D even though environment is not a client`);try{const m=a instanceof Function?a(u()):a;window.localStorage.setItem(r,E(m)),s(m),window.dispatchEvent(new StorageEvent("local-storage",{key:r}))}catch(m){console.warn(`Error setting localStorage key \u201C${r}\u201D:`,m)}}),i=me(()=>{G&&console.warn(`Tried removing localStorage key \u201C${r}\u201D even though environment is not a client`);const a=t instanceof Function?t():t;window.localStorage.removeItem(r),s(a),window.dispatchEvent(new StorageEvent("local-storage",{key:r}))});useEffect(()=>{s(u())},[r]);const d=useCallback(a=>{a.key&&a.key!==r||s(u())},[r,u]);return K("storage",d),K("local-storage",d),[C,e,i]}var ae=typeof window>"u";function O(r,{defaultValue:t=!1,initializeWithValue:o=!0}={}){const p=C=>ae?t:window.matchMedia(C).matches,[E,A]=useState(()=>o?p(r):t);function u(){A(p(r))}return N(()=>{const C=window.matchMedia(r);return u(),C.addListener?C.addListener(u):C.addEventListener("change",u),()=>{C.removeListener?C.removeListener(u):C.removeEventListener("change",u)}},[r]),E}var Te="(prefers-color-scheme: dark)",fe="usehooks-ts-dark-mode";function H(r={}){const{defaultValue:t,localStorageKey:o=fe,initializeWithValue:p=!0}=r,E=O(Te,{initializeWithValue:p,defaultValue:t}),[A,u]=le(o,t??E??!1,{initializeWithValue:p});return N(()=>{E!==A&&u(E)},[E]),{isDarkMode:A,toggle:()=>{u(C=>!C)},enable:()=>{u(!0)},disable:()=>{u(!1)},set:C=>{u(C)}}}function b(r){const t=(0,B.useRef)(r);t.current=r,(0,B.useEffect)(()=>()=>{t.current()},[])}function I(r,t=500,o){const p=(0,B.useRef)();b(()=>{p.current&&p.current.cancel()});const E=(0,B.useMemo)(()=>{const A=he()(r,t,o),u=(...C)=>A(...C);return u.cancel=()=>{A.cancel()},u.isPending=()=>!!p.current,u.flush=()=>A.flush(),u},[r,t,o]);return(0,B.useEffect)(()=>{p.current=he()(r,t,o)},[r,t,o]),E}function l(r,t,o){const p=o?.equalityFn??((e,i)=>e===i),E=r instanceof Function?r():r,[A,u]=useState(E),C=useRef(E),s=I(u,t,o);return p(C.current,E)||(s(E),C.current=E),[A,s]}function T(r,t={}){const{preserveTitleOnUnmount:o=!0}=t,p=useRef(null);N(()=>{p.current=window.document.title},[]),N(()=>{window.document.title=r},[r]),b(()=>{!o&&p.current&&(window.document.title=p.current)})}function g(r){const[t,o]=useState(!1),p=()=>{o(!0)},E=()=>{o(!1)};return K("mouseenter",p,r),K("mouseleave",E,r),t}function c({threshold:r=0,root:t=null,rootMargin:o="0%",freezeOnceVisible:p=!1,initialIsIntersecting:E=!1,onChange:A}={}){var u;const[C,s]=useState(null),[e,i]=useState(()=>({isIntersecting:E,entry:void 0})),d=useRef();d.current=A;const a=((u=e.entry)==null?void 0:u.isIntersecting)&&p;useEffect(()=>{if(!C||!("IntersectionObserver"in window)||a)return;let R;const P=new IntersectionObserver(U=>{const X=Array.isArray(P.thresholds)?P.thresholds:[P.thresholds];U.forEach(q=>{const ce=q.isIntersecting&&X.some(ve=>q.intersectionRatio>=ve);i({isIntersecting:ce,entry:q}),d.current&&d.current(ce,q),ce&&p&&R&&(R(),R=void 0)})},{threshold:r,root:t,rootMargin:o});return P.observe(C),()=>{P.disconnect()}},[C,JSON.stringify(r),t,o,a,p]);const m=useRef(null);useEffect(()=>{var R;!C&&((R=e.entry)!=null&&R.target)&&!p&&!a&&m.current!==e.entry.target&&(m.current=e.entry.target,i({isIntersecting:E,entry:void 0}))},[C,e.entry,p,a,E]);const _=[s,!!e.isIntersecting,e.entry];return _.ref=_[0],_.isIntersecting=_[1],_.entry=_[2],_}function F(){const[r,t]=useState(!1);return useEffect(()=>{t(!0)},[]),r}function y(){const r=useRef(!1);return useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),useCallback(()=>r.current,[])}function z(r=new Map){const[t,o]=useState(new Map(r)),p={set:useCallback((E,A)=>{o(u=>{const C=new Map(u);return C.set(E,A),C})},[]),setAll:useCallback(E=>{o(()=>new Map(E))},[]),remove:useCallback(E=>{o(A=>{const u=new Map(A);return u.delete(E),u})},[]),reset:useCallback(()=>{o(()=>new Map)},[])};return[t,p]}function Y(r,t,o="mousedown",p={}){K(o,E=>{const A=E.target;if(!A||!A.isConnected)return;(Array.isArray(r)?r.filter(C=>Boolean(C.current)).every(C=>C.current&&!C.current.contains(A)):r.current&&!r.current.contains(A))&&t(E)},void 0,p)}var re=typeof window>"u";function ie(r,t={}){let{initializeWithValue:o=!0}=t;re&&(o=!1);const p=useCallback(s=>{if(t.deserializer)return t.deserializer(s);if(s==="undefined")return;let e;try{e=JSON.parse(s)}catch(i){return console.error("Error parsing JSON:",i),null}return e},[t]),E=useCallback(()=>{if(re)return null;try{const s=window.localStorage.getItem(r);return s?p(s):null}catch(s){return console.warn(`Error reading localStorage key \u201C${r}\u201D:`,s),null}},[r,p]),[A,u]=useState(()=>{if(o)return E()});useEffect(()=>{u(E())},[r]);const C=useCallback(s=>{s.key&&s.key!==r||u(E())},[r,E]);return K("storage",C),K("local-storage",C),A}var Z={width:void 0,height:void 0};function de(r){const{ref:t,box:o="content-box"}=r,[{width:p,height:E},A]=useState(Z),u=y(),C=useRef({...Z}),s=useRef(void 0);return s.current=r.onResize,useEffect(()=>{if(!t.current||typeof window>"u"||!("ResizeObserver"in window))return;const e=new ResizeObserver(([i])=>{const d=o==="border-box"?"borderBoxSize":o==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",a=k(i,d,"inlineSize"),m=k(i,d,"blockSize");if(C.current.width!==a||C.current.height!==m){const R={width:a,height:m};C.current.width=a,C.current.height=m,s.current?s.current(R):u()&&A(R)}});return e.observe(t.current,{box:o}),()=>{e.disconnect()}},[o,t,u]),{width:p,height:E}}function k(r,t,o){return r[t]?Array.isArray(r[t])?r[t][0][o]:r[t][o]:t==="contentBoxSize"?r.contentRect[o==="inlineSize"?"width":"height"]:void 0}var n=typeof window>"u";function f(r={}){let{initializeWithValue:t=!0}=r;n&&(t=!1);const o=()=>{if(!n)return window.screen},[p,E]=useState(()=>{if(t)return o()}),A=I(E,r.debounceDelay);function u(){const C=o(),s=r.debounceDelay?A:E;if(C){const{width:e,height:i,availHeight:d,availWidth:a,colorDepth:m,orientation:_,pixelDepth:R}=C;s({width:e,height:i,availHeight:d,availWidth:a,colorDepth:m,orientation:_,pixelDepth:R})}}return K("resize",u),N(()=>{u()},[]),p}var S=new Map;function M(r){const t=document.querySelector(`script[src="${r}"]`),o=t?.getAttribute("data-status");return{node:t,status:o}}function Q(r,t){const[o,p]=useState(()=>!r||t?.shouldPreventLoad?"idle":typeof window>"u"?"loading":S.get(r)??"loading");return useEffect(()=>{if(!r||t?.shouldPreventLoad)return;const E=S.get(r);if(E==="ready"||E==="error"){p(E);return}const A=M(r);let u=A.node;if(u)p(A.status??E??"loading");else{u=document.createElement("script"),u.src=r,u.async=!0,t?.id&&(u.id=t.id),u.setAttribute("data-status","loading"),document.body.appendChild(u);const s=e=>{const i=e.type==="load"?"ready":"error";u?.setAttribute("data-status",i)};u.addEventListener("load",s),u.addEventListener("error",s)}const C=s=>{const e=s.type==="load"?"ready":"error";p(e),S.set(r,e)};return u.addEventListener("load",C),u.addEventListener("error",C),()=>{u&&(u.removeEventListener("load",C),u.removeEventListener("error",C)),u&&t?.removeOnUnmount&&(u.remove(),S.delete(r))}},[r,t?.shouldPreventLoad,t?.removeOnUnmount,t?.id]),o}var V=typeof window>"u";function be(r={}){const{autoLock:t=!0,lockTarget:o,widthreflow:p=!0}=r,[E,A]=useState(!1),u=useRef(null),C=useRef(null),s=()=>{if(u.current){const{overflow:i,paddingRight:d}=u.current.style;if(C.current={overflow:i,paddingRight:d},p){const a=u.current===document.body?window.innerWidth:u.current.offsetWidth,m=parseInt(window.getComputedStyle(u.current).paddingRight,10)||0,_=a-u.current.scrollWidth;u.current.style.paddingRight=`${_+m}px`}u.current.style.overflow="hidden",A(!0)}},e=()=>{u.current&&C.current&&(u.current.style.overflow=C.current.overflow,p&&(u.current.style.paddingRight=C.current.paddingRight)),A(!1)};return N(()=>{if(!V)return o&&(u.current=typeof o=="string"?document.querySelector(o):o),u.current||(u.current=document.body),t&&s(),()=>{e()}},[t,o,p]),{isLocked:E,lock:s,unlock:e}}var pe=typeof window>"u";function ge(r,t,o={}){const{initializeWithValue:p=!0}=o,E=useCallback(a=>o.serializer?o.serializer(a):JSON.stringify(a),[o]),A=useCallback(a=>{if(o.deserializer)return o.deserializer(a);if(a==="undefined")return;const m=t instanceof Function?t():t;let _;try{_=JSON.parse(a)}catch(R){return console.error("Error parsing JSON:",R),m}return _},[o,t]),u=useCallback(()=>{const a=t instanceof Function?t():t;if(pe)return a;try{const m=window.sessionStorage.getItem(r);return m?A(m):a}catch(m){return console.warn(`Error reading sessionStorage key \u201C${r}\u201D:`,m),a}},[t,r,A]),[C,s]=useState(()=>p?u():t instanceof Function?t():t),e=me(a=>{pe&&console.warn(`Tried setting sessionStorage key \u201C${r}\u201D even though environment is not a client`);try{const m=a instanceof Function?a(u()):a;window.sessionStorage.setItem(r,E(m)),s(m),window.dispatchEvent(new StorageEvent("session-storage",{key:r}))}catch(m){console.warn(`Error setting sessionStorage key \u201C${r}\u201D:`,m)}}),i=me(()=>{pe&&console.warn(`Tried removing sessionStorage key \u201C${r}\u201D even though environment is not a client`);const a=t instanceof Function?t():t;window.sessionStorage.removeItem(r),s(a),window.dispatchEvent(new StorageEvent("session-storage",{key:r}))});useEffect(()=>{s(u())},[r]);const d=useCallback(a=>{a.key&&a.key!==r||s(u())},[r,u]);return K("storage",d),K("session-storage",d),[C,e,i]}function ne(r){const[t,o]=useState(1),p=t+1<=r,E=t-1>0,A=useCallback(e=>{const i=e instanceof Function?e(t):e;if(i>=1&&i<=r){o(i);return}throw new Error("Step not valid")},[r,t]),u=useCallback(()=>{p&&o(e=>e+1)},[p]),C=useCallback(()=>{E&&o(e=>e-1)},[E]),s=useCallback(()=>{o(1)},[]);return[t,{goToNextStep:u,goToPrevStep:C,canGoToNextStep:p,canGoToPrevStep:E,setStep:A,reset:s}]}var oe="(prefers-color-scheme: dark)",ee="usehooks-ts-ternary-dark-mode";function v({defaultValue:r="system",localStorageKey:t=ee,initializeWithValue:o=!0}={}){const p=O(oe,{initializeWithValue:o}),[E,A]=le(t,r,{initializeWithValue:o});return{isDarkMode:E==="dark"||E==="system"&&p,ternaryDarkMode:E,setTernaryDarkMode:A,toggleTernaryDarkMode:()=>{const s=["light","system","dark"];A(e=>{const i=(s.indexOf(e)+1)%s.length;return s[i]})}}}function h(r,t){const o=useRef(r);N(()=>{o.current=r},[r]),useEffect(()=>{if(!t&&t!==0)return;const p=setTimeout(()=>{o.current()},t);return()=>{clearTimeout(p)}},[t])}function x(r){const[t,o]=useState(!!r),p=useCallback(()=>{o(E=>!E)},[]);return[t,p,o]}var se=typeof window>"u";function ue(r={}){let{initializeWithValue:t=!0}=r;se&&(t=!1);const[o,p]=(0,B.useState)(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),E=I(p,r.debounceDelay);function A(){(r.debounceDelay?E:p)({width:window.innerWidth,height:window.innerHeight})}return K("resize",A),N(()=>{A()},[]),o}}}]);