(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[498],{5357:function(e,t,r){"use strict";var n=r(1631),o=r(6254);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode")},2852:function(e,t,r){"use strict";var n=r(1631),o=r(6254);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},7240:function(e,t,r){"use strict";var n=r(1631),o=r(6254);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},5254:function(e,t,r){"use strict";var n=r(1631),o=r(6254);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"}),"WbSunny")},7191:function(e,t,r){"use strict";var n=r(8803),o=r(5635),i=r(2543),a=r(6254);let s="function"==typeof(0,o.zY)({}),l=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),u=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),c=function(e){var t,r;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={};n&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(t=>{var r,n;let[i,a]=t,s=e.getColorSchemeSelector(i);s.startsWith("@")?o[s]={":root":{colorScheme:null===(r=a.palette)||void 0===r?void 0:r.mode}}:o[s.replace(/\s*&/,"")]={colorScheme:null===(n=a.palette)||void 0===n?void 0:n.mode}});let i={html:l(e,n),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...u(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...o},a=null===(r=e.components)||void 0===r?void 0:null===(t=r.MuiCssBaseline)||void 0===t?void 0:t.styleOverrides;return a&&(i=[i,a]),i},d="mui-ecs",h=e=>{let t=c(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[":root:has(".concat(d,")")]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{var n,o;let[i,a]=t,s=e.getColorSchemeSelector(i);s.startsWith("@")?r[s]={[":root:not(:has(.".concat(d,"))")]:{colorScheme:null===(n=a.palette)||void 0===n?void 0:n.mode}}:r[s.replace(/\s*&/,"")]={["&:not(:has(.".concat(d,"))")]:{colorScheme:null===(o=a.palette)||void 0===o?void 0:o.mode}}}),t},f=(0,o.zY)(s?e=>{let{theme:t,enableColorScheme:r}=e;return c(t,r)}:e=>{let{theme:t}=e;return h(t)});t.ZP=function(e){let{children:t,enableColorScheme:r=!1}=(0,i.i)({props:e,name:"MuiCssBaseline"});return(0,a.jsxs)(n.Fragment,{children:[s&&(0,a.jsx)(f,{enableColorScheme:r}),!s&&!r&&(0,a.jsx)("span",{className:d,style:{display:"none"}}),t]})}},3909:function(e,t,r){"use strict";r.d(t,{Z:function(){return Q}});var n=r(8803);let o=n.createContext(null);function i(){return n.useContext(o)}var a="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",s=r(6254),l=function(e){let{children:t,theme:r}=e,l=i(),u=n.useMemo(()=>{let e=null===l?{...r}:"function"==typeof r?r(l):{...l,...r};return null!=e&&(e[a]=null!==l),e},[r,l]);return(0,s.jsx)(o.Provider,{value:u,children:t})},u=r(8660),c=r(9100);let d=n.createContext();var h=function(e){let{value:t,...r}=e;return(0,s.jsx)(d.Provider,{value:null==t||t,...r})},f=r(7826),m=r(7160),p=r(3008),g=r(8540);let y={};function v(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return n.useMemo(()=>{let n=e&&t[e]||t;if("function"==typeof r){let i=r(n),a=e?{...t,[e]:i}:i;return o?()=>a:a}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,o])}var b=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,c.Z)(y),a=i()||y,d=v(n,o,r),b=v(n,a,r,!0),w="rtl"===(n?d[n]:d).direction,S=function(e){let t=(0,c.Z)(),r=(0,p.Z)()||"",{modularCssLayers:n}=e,o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",(0,m.Z)(()=>{let e=document.querySelector("head");if(!e)return;let t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;let n=document.createElement("style");n.setAttribute("data-mui-layer-order",r),n.textContent=o,e.prepend(n)}else e.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[o,r]),o)?(0,s.jsx)(g.Z,{styles:o}):null}(d);return(0,s.jsx)(l,{theme:b,children:(0,s.jsx)(u.T.Provider,{value:d,children:(0,s.jsx)(h,{value:w,children:(0,s.jsxs)(f.Z,{value:n?d[n].components:d.components,children:[S,t]})})})})},w=r(7447);function S(e){let{theme:t,...r}=e,n=w.Z in t?t[w.Z]:void 0;return(0,s.jsx)(b,{...r,themeId:n?w.Z:void 0,theme:n||t})}var _=r(758),C=r(1432);let O="mode",k="color-scheme";function P(){}var A=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(r){let n;if("undefined"!=typeof window){if(!t)return r;try{n=t.localStorage.getItem(e)}catch{}return n||r}},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return P;let n=t=>{let n=t.newValue;t.key===e&&r(n)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function j(){}function x(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function M(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var E=r(3578),q=r(8868);let{CssVarsProvider:I,useColorScheme:T,getInitColorSchemeScript:D}=function(e){let{themeId:t,theme:r={},modeStorageKey:o=O,colorSchemeStorageKey:a=k,disableTransitionOnChange:l=!1,defaultColorScheme:u,resolveTheme:c}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=n.createContext(void 0),f={},p={},g="string"==typeof u?u:u.light,y="string"==typeof u?u:u.dark;return{CssVarsProvider:function(e){var d,g,y,v;let{children:w,theme:S,modeStorageKey:_=o,colorSchemeStorageKey:P=a,disableTransitionOnChange:E=l,storageManager:q,storageWindow:I="undefined"==typeof window?void 0:window,documentNode:T="undefined"==typeof document?void 0:document,colorSchemeNode:D="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:Q=!1,disableStyleSheetGeneration:Z=!1,defaultMode:G="system",noSsr:V}=e,z=n.useRef(!1),F=i(),$=n.useContext(h),L=!!$&&!Q,K=n.useMemo(()=>S||("function"==typeof r?r():r),[S]),R=K[t],N=R||K,{colorSchemes:H=f,components:W=p,cssVarPrefix:U}=N,B=Object.keys(H).filter(e=>!!H[e]).join(","),Y=n.useMemo(()=>B.split(","),[B]),X="string"==typeof u?u:u.light,J="string"==typeof u?u:u.dark,ee=H[X]&&H[J]?G:(null===(g=H[N.defaultColorScheme])||void 0===g?void 0:null===(d=g.palette)||void 0===d?void 0:d.mode)||(null===(y=N.palette)||void 0===y?void 0:y.mode),{mode:et,setMode:er,systemMode:en,lightColorScheme:eo,darkColorScheme:ei,colorScheme:ea,setColorScheme:es}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:o,supportedColorSchemes:i=[],modeStorageKey:a=O,colorSchemeStorageKey:s=k,storageWindow:l="undefined"==typeof window?void 0:window,storageManager:u=A,noSsr:c=!1}=e,d=i.join(","),h=i.length>1,f=n.useMemo(()=>null==u?void 0:u({key:a,storageWindow:l}),[u,a,l]),m=n.useMemo(()=>null==u?void 0:u({key:"".concat(s,"-light"),storageWindow:l}),[u,s,l]),p=n.useMemo(()=>null==u?void 0:u({key:"".concat(s,"-dark"),storageWindow:l}),[u,s,l]),[g,y]=n.useState(()=>{let e=(null==f?void 0:f.get(t))||t,n=(null==m?void 0:m.get(r))||r,i=(null==p?void 0:p.get(o))||o;return{mode:e,systemMode:x(e),lightColorScheme:n,darkColorScheme:i}}),[v,b]=n.useState(c||!h);n.useEffect(()=>{b(!0)},[]);let w=M(g,e=>"light"===e?g.lightColorScheme:"dark"===e?g.darkColorScheme:void 0),S=n.useCallback(e=>{y(r=>{if(e===r.mode)return r;let n=null!=e?e:t;return null==f||f.set(n),{...r,mode:n,systemMode:x(n)}})},[f,t]),_=n.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error("`".concat(e,"` does not exist in `theme.colorSchemes`.")):y(t=>{let r={...t};return M(t,t=>{"light"===t&&(null==m||m.set(e),r.lightColorScheme=e),"dark"===t&&(null==p||p.set(e),r.darkColorScheme=e)}),r}):y(t=>{let n={...t},i=null===e.light?r:e.light,a=null===e.dark?o:e.dark;return i&&(d.includes(i)?(n.lightColorScheme=i,null==m||m.set(i)):console.error("`".concat(i,"` does not exist in `theme.colorSchemes`."))),a&&(d.includes(a)?(n.darkColorScheme=a,null==p||p.set(a)):console.error("`".concat(a,"` does not exist in `theme.colorSchemes`."))),n}):y(e=>(null==m||m.set(r),null==p||p.set(o),{...e,lightColorScheme:r,darkColorScheme:o}))},[d,m,p,r,o]),C=n.useCallback(e=>{"system"===g.mode&&y(t=>{let r=(null==e?void 0:e.matches)?"dark":"light";return t.systemMode===r?t:{...t,systemMode:r}})},[g.mode]),P=n.useRef(C);return P.current=C,n.useEffect(()=>{if("function"!=typeof window.matchMedia||!h)return;let e=function(){for(var e=arguments.length,t=Array(e),r=0;r{t.removeListener(e)}},[h]),n.useEffect(()=>{if(h){let e=(null==f?void 0:f.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&S(e||t)}))||j,r=(null==m?void 0:m.subscribe(e=>{(!e||d.match(e))&&_({light:e})}))||j,n=(null==p?void 0:p.subscribe(e=>{(!e||d.match(e))&&_({dark:e})}))||j;return()=>{e(),r(),n()}}},[_,S,d,t,l,h,f,m,p]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?w:void 0,setMode:S,setColorScheme:_}}({supportedColorSchemes:Y,defaultLightColorScheme:X,defaultDarkColorScheme:J,modeStorageKey:_,colorSchemeStorageKey:P,defaultMode:ee,storageManager:q,storageWindow:I,noSsr:V}),el=et,eu=ea;L&&(el=$.mode,eu=$.colorScheme);let ec=n.useMemo(()=>{var e;let t=eu||N.defaultColorScheme,r=(null===(e=N.generateThemeVars)||void 0===e?void 0:e.call(N))||N.vars,n={...N,components:W,colorSchemes:H,cssVarPrefix:U,vars:r};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),t){let e=H[t];e&&"object"==typeof e&&Object.keys(e).forEach(t=>{e[t]&&"object"==typeof e[t]?n[t]={...n[t],...e[t]}:n[t]=e[t]})}return c?c(n):n},[N,eu,W,H,U]),ed=N.colorSchemeSelector;(0,m.Z)(()=>{if(eu&&D&&ed&&"media"!==ed){let e=ed;if("class"===ed&&(e=".%s"),"data"===ed&&(e="[data-%s]"),(null==ed?void 0:ed.startsWith("data-"))&&!ed.includes("%s")&&(e="[".concat(ed,'="%s"]')),e.startsWith("."))D.classList.remove(...Y.map(t=>e.substring(1).replace("%s",t))),D.classList.add(e.substring(1).replace("%s",eu));else{let t=e.replace("%s",eu).match(/\[([^\]]+)\]/);if(t){let[e,r]=t[1].split("=");r||Y.forEach(t=>{D.removeAttribute(e.replace(eu,t))}),D.setAttribute(e,r?r.replace(/"|'/g,""):"")}else D.setAttribute(e,eu)}}},[eu,ed,D,Y]),n.useEffect(()=>{let e;if(E&&z.current&&T){let t=T.createElement("style");t.appendChild(T.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),T.head.appendChild(t),window.getComputedStyle(T.body),e=setTimeout(()=>{T.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[eu,E,T]),n.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);let eh=n.useMemo(()=>({allColorSchemes:Y,colorScheme:eu,darkColorScheme:ei,lightColorScheme:eo,mode:el,setColorScheme:es,setMode:er,systemMode:en}),[Y,eu,ei,eo,el,es,er,en,ec.colorSchemeSelector]),ef=!0;(Z||!1===N.cssVariables||L&&(null==F?void 0:F.cssVarPrefix)===U)&&(ef=!1);let em=(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(b,{themeId:R?t:void 0,theme:ec,children:w}),ef&&(0,s.jsx)(C.Z,{styles:(null===(v=ec.generateStyleSheets)||void 0===v?void 0:v.call(ec))||[]})]});return L?em:(0,s.jsx)(h.Provider,{value:eh,children:em})},useColorScheme:()=>n.useContext(h)||d,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=O,colorSchemeStorageKey:i=k,attribute:a="data-color-scheme",colorSchemeNode:l="document.documentElement",nonce:u}=e||{},c="",d=a;if("class"===a&&(d=".%s"),"data"===a&&(d="[data-%s]"),d.startsWith(".")){let e=d.substring(1);c+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark)); ${l}.classList.add('${e}'.replace('%s', colorScheme));`}let h=d.match(/\[([^\]]+)\]/);if(h){let[e,t]=h[1].split("=");t||(c+=`${l}.removeAttribute('${e}'.replace('%s', light)); ${l}.removeAttribute('${e}'.replace('%s', dark));`),c+=` ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${l}.setAttribute('${d}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?u:"",dangerouslySetInnerHTML:{__html:`(function() { try { let colorScheme = ''; const mode = localStorage.getItem('${o}') || '${t}'; const dark = localStorage.getItem('${i}-dark') || '${n}'; const light = localStorage.getItem('${i}-light') || '${r}'; if (mode === 'system') { // handle system mode const mql = window.matchMedia('(prefers-color-scheme: dark)'); if (mql.matches) { colorScheme = dark } else { colorScheme = light } } if (mode === 'light') { colorScheme = light; } if (mode === 'dark') { colorScheme = dark; } if (colorScheme) { ${c} } } catch(e){}})();`}},"mui-color-scheme-init")})({colorSchemeStorageKey:a,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:o,...e})}}({themeId:w.Z,theme:()=>(0,E.Z)({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t={...e,typography:(0,q.Z)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,_.Z)({sx:e,theme:this})},t}});function Q(e){let{theme:t,...r}=e,o=n.useMemo(()=>{if("function"==typeof t)return t;let e=w.Z in t?t[w.Z]:t;return"colorSchemes"in e?null:"vars"in e?t:{...t,vars:null}},[t]);return o?(0,s.jsx)(S,{theme:o,...r}):(0,s.jsx)(I,{theme:t,...r})}},6082:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=n||"";return o&&(a=n.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,n){return t>0&&t+e.length!==n.length&&e.search(r)>-1&&":"!==n.charAt(t-2)&&("-"!==n.charAt(t+e.length)||"-"===n.charAt(t-1))&&0>n.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),i&&(a="string"==typeof(t=e=a)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),a};var r=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i},2572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var n=l(r(3146)),o=l(r(6082)),i=["eventCategory","eventAction","eventLabel","eventValue","hitType"],a=["title","location"],s=["page","hitType"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(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.")}()}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r2&&void 0!==arguments[2]?arguments[2]:"https://www.googletagmanager.com/gtag/js";if("undefined"!=typeof window&&"undefined"!=typeof document&&!e._hasLoadedGA){var o=document.createElement("script");o.async=!0,o.src="".concat(n,"?id=").concat(t),r&&o.setAttribute("nonce",r),document.body.appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},e._hasLoadedGA=!0}}),g(this,"_toGtagOptions",function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce(function(e,r){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{for(i=(r=r.call(e)).next;!(l=(n=i.call(r)).done)&&(s.push(n.value),2!==s.length);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,2)||m(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],i=n[1];return t[o]?e[t[o]]=i:e[o]=i,e},{})}}),g(this,"initialize",function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw Error("Require GA_MEASUREMENT_ID");var n="string"==typeof t?[{trackingId:t}]:t;e._currentMeasurementId=n[0].trackingId;var o=r.gaOptions,i=r.gtagOptions,a=r.nonce,s=r.testMode,l=void 0!==s&&s,u=r.gtagUrl;if(e._testMode=l,l||e._loadGA(e._currentMeasurementId,a,u),e.isInitialized||(e._gtag("js",new Date),n.forEach(function(t){var r=f(f(f({},e._toGtagOptions(f(f({},o),t.gaOptions))),i),t.gtagOptions);Object.keys(r).length?e._gtag("config",t.trackingId,r):e._gtag("config",t.trackingId)})),e.isInitialized=!0,!l){var c=d(e._queueGtag);for(e._queueGtag=[],e._isQueuing=!1;c.length;){var h=c.shift();e._gtag.apply(e,d(h)),"get"===h[0]&&(e._isQueuing=!0)}}}),g(this,"set",function(t){if(!t){console.warn("`fieldsObject` is required in .set()");return}if("object"!==c(t)){console.warn("Expected `fieldsObject` arg to be an Object");return}0===Object.keys(t).length&&console.warn("empty `fieldsObject` given to .set()"),e._gaCommand("set",t)}),g(this,"_gaCommandSendEvent",function(t,r,n,o,i){e._gtag("event",r,f(f({event_category:t,event_label:n,value:o},i&&{non_interaction:i.nonInteraction}),e._toGtagOptions(i)))}),g(this,"_gaCommandSendEventParameters",function(){for(var t=arguments.length,r=Array(t),n=0;n1?r-1:0),o=1;o{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n._x)(e,t)):t}notify(e){i.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.Vr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=r(180),u=r(5968),c=class extends l.F{#t;#r;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#o({type:"continue"})};this.#n=(0,u.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let r="pending"===this.state.status,n=!this.#n.canStart();try{if(r)t();else{this.#o({type:"pending",variables:e,isPaused:n}),await this.#r.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:n})}let o=await this.#n.start();return await this.#r.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#r.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#o({type:"success",data:o}),o}catch(t){try{throw await this.#r.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#o({type:"error",error:t})}}finally{this.#r.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),i.Vr.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}},d=class extends a.l{constructor(e={}){super(),this.config=e,this.#i=new Set,this.#a=new Map,this.#s=0}#i;#a;#s;build(e,t,r){let n=new c({mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#i.add(e);let t=h(e);if("string"==typeof t){let r=this.#a.get(t);r?r.push(e):this.#a.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#i.delete(e)){let t=h(e);if("string"==typeof t){let r=this.#a.get(t);if(r){if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#a.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=h(e);if("string"!=typeof t)return!0;{let r=this.#a.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=h(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#a.get(t)?.find(t=>t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.Vr.batch(()=>{this.#i.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#i.clear(),this.#a.clear()})}getAll(){return Array.from(this.#i)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.X7)(e,t))}notify(e){i.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.ZT))))}};function h(e){return e.options.scope?.id}var f=r(8194),m=r(9956);function p(e){return{onFetch:(t,r)=>{let o=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],s=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let r=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},d=(0,n.cG)(t.options,t.fetchOptions),h=async(e,o,i)=>{if(r)return Promise.reject();if(null==o&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:o,direction:i?"backward":"forward",meta:t.options.meta};return c(e),e})(),s=await d(a),{maxPages:l}=t.options,u=i?n.Ht:n.VX;return{pages:u(e.pages,s,l),pageParams:u(e.pageParams,o,l)}};if(i&&a.length){let e="backward"===i,t={pages:a,pageParams:s},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:g)(o,t);l=await h(t,r,e)}else{let t=e??a.length;do{let e=0===u?s[0]??o.initialPageParam:g(o,l);if(u>0&&null==e)break;l=await h(l,e),u++}while(ut.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function g(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}var y=class{#l;#r;#u;#c;#d;#h;#f;#m;constructor(e={}){this.#l=e.queryCache||new s,this.#r=e.mutationCache||new d,this.#u=e.defaultOptions||{},this.#c=new Map,this.#d=new Map,this.#h=0}mount(){this.#h++,1===this.#h&&(this.#f=f.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onFocus())}),this.#m=m.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#l.onOnline())}))}unmount(){this.#h--,0===this.#h&&(this.#f?.(),this.#f=void 0,this.#m?.(),this.#m=void 0)}isFetching(e){return this.#l.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#l.build(this,t),o=r.state.data;return void 0===o?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,n.KC)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#l.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let o=this.defaultQueryOptions({queryKey:e}),i=this.#l.get(o.queryHash),a=i?.state.data,s=(0,n.SE)(t,a);if(void 0!==s)return this.#l.build(this,o).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return i.Vr.batch(()=>this.#l.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#l.get(t.queryHash)?.state}removeQueries(e){let t=this.#l;i.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#l;return i.Vr.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(i.Vr.batch(()=>this.#l.findAll(e).map(e=>e.cancel(r)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e,t={}){return i.Vr.batch(()=>(this.#l.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.Vr.batch(()=>this.#l.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#l.build(this,t);return r.isStaleByTime((0,n.KC)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e){return e.behavior=p(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}ensureInfiniteQueryData(e){return e.behavior=p(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return m.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#l}getMutationCache(){return this.#r}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#c.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#c.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#d.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#d.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#l.clear(),this.#r.clear()}}},2505:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});var n=function(){return null}}}]);