@zeniai/web-components 4.4.32-beta1MM → 4.4.32-beta2MM
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SessionTimeoutPopup-CAW6rair.js → SessionTimeoutPopup-CWH161XD.js} +50 -44
- package/dist/SessionTimeoutPopup-CWH161XD.js.map +4 -0
- package/dist/{SessionTimeoutPopup-IsnYrlQj.cjs → SessionTimeoutPopup-CYIeFKJU.cjs} +35 -29
- package/dist/SessionTimeoutPopup-CYIeFKJU.cjs.map +4 -0
- package/dist/cockpit.cjs.js +1 -1
- package/dist/cockpit.esm.js +1 -1
- package/dist/components/expenseAutomation/sections/actualMatching/MatchNewModal.d.ts +1 -1
- package/dist/components/expenseAutomation/sections/actualMatching/actualMatchingHelpers.d.ts +1 -1
- package/dist/components/expenseAutomation/sections/actualMatching/actualMatchingTypes.d.ts +1 -1
- package/dist/components/expenseAutomation/sections/jeSchedules/JESchedulePage.d.ts +2 -1
- package/dist/{index-BQ04o7ZE.cjs → index-DCaD3bW-.cjs} +2 -2
- package/dist/{index-BQ04o7ZE.cjs.map → index-DCaD3bW-.cjs.map} +1 -1
- package/dist/{index-CqwMTQZD.js → index-Dx8oQo3U.js} +2 -2
- package/dist/{index-CqwMTQZD.js.map → index-Dx8oQo3U.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
- package/dist/SessionTimeoutPopup-CAW6rair.js.map +0 -4
- package/dist/SessionTimeoutPopup-IsnYrlQj.cjs.map +0 -4
|
@@ -1008,7 +1008,7 @@ return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:i,children:t})}"prod
|
|
|
1008
1008
|
return jsxRuntimeExports.jsx(RtlContext.Provider,{value:e??!0,...t})}"production"!==process.env.NODE_ENV&&(RtlProvider.propTypes={children:PropTypes.node,value:PropTypes.bool});const useRtl=()=>React.useContext(RtlContext)??!1,PropsContext=/* @__PURE__ */React.createContext(void 0);function DefaultPropsProvider({value:e,children:t}){/* @__PURE__ */
|
|
1009
1009
|
return jsxRuntimeExports.jsx(PropsContext.Provider,{value:e,children:t})}function getThemeProps(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const i=t.components[n];return i.defaultProps?resolveProps(i.defaultProps,o,t.components.mergeClassNameAndStyle):i.styleOverrides||i.variants?o:resolveProps(i,o,t.components.mergeClassNameAndStyle)}function useDefaultProps$1({props:e,name:t}){return getThemeProps({props:e,name:t,theme:{components:React.useContext(PropsContext)}})}"production"!==process.env.NODE_ENV&&(DefaultPropsProvider.propTypes={children:PropTypes.node,value:PropTypes.object});let globalId=0;function useGlobalId(e){const[t,n]=React.useState(e),o=e||t;return React.useEffect(()=>{null==t&&(globalId+=1,n(`mui-${globalId}`))},[t]),o}const safeReact={...React},maybeReactUseId=safeReact.useId;function useId(e){if(void 0!==maybeReactUseId){const t=maybeReactUseId();return e??t}return useGlobalId(e)}function useLayerOrder(e){const t=useTheme$3(),n=useId()||"",{modularCssLayers:o}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=o&&null===t?"string"==typeof o?o.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",useEnhancedEffect(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",n),o.textContent=i,e.prepend(o)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?/* @__PURE__ */jsxRuntimeExports.jsx(GlobalStyles$1,{styles:i}):null}const EMPTY_THEME={};function useThemeScoping(e,t,n,o=!1){return React.useMemo(()=>{const i=e&&t[e]||t;if("function"==typeof n){const r=n(i),a=e?{...t,[e]:r}:r;return o?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function ThemeProvider$1(e){const{children:t,theme:n,themeId:o}=e,i=useTheme$3(EMPTY_THEME),r=useTheme$1()||EMPTY_THEME;"production"!==process.env.NODE_ENV&&(null===i&&"function"==typeof n||o&&i&&!i[o]&&"function"==typeof n)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const a=useThemeScoping(o,i,n),s=useThemeScoping(o,r,n,!0),l="rtl"===(o?a[o]:a).direction,c=useLayerOrder(a);/* @__PURE__ */
|
|
1010
1010
|
return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:s,children:/* @__PURE__ */jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:a,children:/* @__PURE__ */jsxRuntimeExports.jsx(RtlProvider,{value:l,children:/* @__PURE__ */jsxRuntimeExports.jsxs(DefaultPropsProvider,{value:o?a[o].components:a.components,children:[c,t]})})})})}"production"!==process.env.NODE_ENV&&(ThemeProvider$1.propTypes={children:PropTypes.node,theme:PropTypes.oneOfType([PropTypes.func,PropTypes.object]).isRequired,themeId:PropTypes.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(ThemeProvider$1.propTypes=exactProp(ThemeProvider$1.propTypes));const arg={theme:void 0};function unstable_memoTheme(e){let t,n;return function(o){let i=t;return void 0!==i&&o.theme===n||(arg.theme=o.theme,i=preprocessStyles(e(arg)),t=i,n=o.theme),i}}const DEFAULT_MODE_STORAGE_KEY="mode",DEFAULT_COLOR_SCHEME_STORAGE_KEY="color-scheme",DEFAULT_ATTRIBUTE="data-color-scheme";function InitColorSchemeScript(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:o="dark",modeStorageKey:i=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:r=DEFAULT_COLOR_SCHEME_STORAGE_KEY,attribute:a=DEFAULT_ATTRIBUTE,colorSchemeNode:s="document.documentElement",nonce:l}=e||{};let c="",d=a;if("class"===a&&(d=".%s"),"data"===a&&(d="[data-%s]"),d.startsWith(".")){const e=d.substring(1);c+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${s}.classList.add('${e}'.replace('%s', colorScheme));`}const p=d.match(/\[([^[\]]+)\]/);if(p){const[e,t]=p[1].split("=");t||(c+=`${s}.removeAttribute('${e}'.replace('%s', light));\n ${s}.removeAttribute('${e}'.replace('%s', dark));`),c+=`\n ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==d&&(c+=`${s}.setAttribute('${d}', colorScheme);`);/* @__PURE__ */
|
|
1011
|
-
return jsxRuntimeExports.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${r}-dark') || '${o}';\n const light = localStorage.getItem('${r}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}function noop$c(){}const localStorageManager=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let o;try{o=t.localStorage.getItem(e)}catch{}return o||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return noop$c;const o=t=>{const o=t.newValue;t.key===e&&n(o)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function noop$b(){}function getSystemMode(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function processState(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}function getColorScheme(e){return processState(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}function useCurrentColorScheme(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:i=[],modeStorageKey:r=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:a=DEFAULT_COLOR_SCHEME_STORAGE_KEY,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=localStorageManager,noSsr:c=!1}=e,d=i.join(","),p=i.length>1,u=React.useMemo(()=>l?.({key:r,storageWindow:s}),[l,r,s]),m=React.useMemo(()=>l?.({key:`${a}-light`,storageWindow:s}),[l,a,s]),h=React.useMemo(()=>l?.({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[g,x]=React.useState(()=>{const e=u?.get(t)||t,i=m?.get(n)||n,r=h?.get(o)||o;return{mode:e,systemMode:getSystemMode(e),lightColorScheme:i,darkColorScheme:r}}),[f,y]=React.useState(c||!p);React.useEffect(()=>{y(!0)},[]);const S=getColorScheme(g),C=React.useCallback(e=>{x(n=>{if(e===n.mode)return n;const o=e??t;return u?.set(o),{...n,mode:o,systemMode:getSystemMode(o)}})},[u,t]),$=React.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):x(t=>{const n={...t};return processState(t,t=>{"light"===t&&(m?.set(e),n.lightColorScheme=e),"dark"===t&&(h?.set(e),n.darkColorScheme=e)}),n}):x(t=>{const i={...t},r=null===e.light?n:e.light,a=null===e.dark?o:e.dark;return r&&(d.includes(r)?(i.lightColorScheme=r,m?.set(r)):console.error(`\`${r}\` does not exist in \`theme.colorSchemes\`.`)),a&&(d.includes(a)?(i.darkColorScheme=a,h?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i}):x(e=>(m?.set(n),h?.set(o),{...e,lightColorScheme:n,darkColorScheme:o}))},[d,m,h,n,o]),b=React.useCallback(e=>{"system"===g.mode&&x(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),v=React.useRef(b);return v.current=b,React.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;const e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),React.useEffect(()=>{if(p){const e=u?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||C(e||t)})||noop$b,n=m?.subscribe(e=>{e&&!d.match(e)||$({light:e})})||noop$b,o=h?.subscribe(e=>{e&&!d.match(e)||$({dark:e})})||noop$b;return()=>{e(),n(),o()}}},[$,C,d,t,s,p,u,m,h]),{...g,mode:f?g.mode:void 0,systemMode:f?g.systemMode:void 0,colorScheme:f?S:void 0,setMode:C,setColorScheme:$}}const DISABLE_CSS_TRANSITION="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function createCssVarsProvider(e){const{themeId:t,theme:n={},modeStorageKey:o=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:i=DEFAULT_COLOR_SCHEME_STORAGE_KEY,disableTransitionOnChange:r=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=/* @__PURE__ */React.createContext(void 0);"production"!==process.env.NODE_ENV&&(c.displayName="ColorSchemeContext");const d={},p={};function u(e){const{children:l,theme:u,modeStorageKey:m=o,colorSchemeStorageKey:h=i,disableTransitionOnChange:g=r,storageManager:x,storageWindow:f=("undefined"==typeof window?void 0:window),documentNode:y=("undefined"==typeof document?void 0:document),colorSchemeNode:S=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:C=!1,disableStyleSheetGeneration:$=!1,defaultMode:b="system",forceThemeRerender:v=!1,noSsr:E}=e,w=React.useRef(!1),R=useTheme$1(),A=React.useContext(c),j=!!A&&!C,T=React.useMemo(()=>u||("function"==typeof n?n():n),[u]),I=T[t],k=I||T,{colorSchemes:L=d,components:D=p,cssVarPrefix:_}=k,P=Object.keys(L).filter(e=>!!L[e]).join(","),B=React.useMemo(()=>P.split(","),[P]),M="string"==typeof a?a:a.light,O="string"==typeof a?a:a.dark,F=L[M]&&L[O]?b:L[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,{mode:N,setMode:z,systemMode:H,lightColorScheme:V,darkColorScheme:W,colorScheme:U,setColorScheme:G}=useCurrentColorScheme({supportedColorSchemes:B,defaultLightColorScheme:M,defaultDarkColorScheme:O,modeStorageKey:m,colorSchemeStorageKey:h,defaultMode:F,storageManager:x,storageWindow:f,noSsr:E});let q=N,Q=U;j&&(q=A.mode,Q=A.colorScheme),"production"!==process.env.NODE_ENV&&v&&!k.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join("\n"));let Y=Q||k.defaultColorScheme;k.vars&&!v&&(Y=k.defaultColorScheme);const K=React.useMemo(()=>{const e=k.generateThemeVars?.()||k.vars,t={...k,components:D,colorSchemes:L,cssVarPrefix:_,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),Y){const e=L[Y];e&&"object"==typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,Y,D,L,_]),Z=k.colorSchemeSelector;useEnhancedEffect(()=>{if(Q&&S&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))S.classList.remove(...B.map(e=>t.substring(1).replace("%s",e))),S.classList.add(t.substring(1).replace("%s",Q));else{const e=t.replace("%s",Q).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||B.forEach(e=>{S.removeAttribute(t.replace(Q,e))}),S.setAttribute(t,n?n.replace(/"|'/g,""):"")}else S.setAttribute(t,Q)}}},[Q,Z,S,B]),React.useEffect(()=>{let e;if(g&&w.current&&y){const t=y.createElement("style");t.appendChild(y.createTextNode(DISABLE_CSS_TRANSITION)),y.head.appendChild(t),window.getComputedStyle(y.body),e=setTimeout(()=>{y.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Q,g,y]),React.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);const X=React.useMemo(()=>({allColorSchemes:B,colorScheme:Q,darkColorScheme:W,lightColorScheme:V,mode:q,setColorScheme:G,setMode:"production"===process.env.NODE_ENV?z:e=>{"media"===K.colorSchemeSelector&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join("\n")),z(e)},systemMode:H}),[B,Q,W,V,q,G,z,H,K.colorSchemeSelector]);let J=!0;($||!1===k.cssVariables||j&&R?.cssVarPrefix===_)&&(J=!1);const ee=/* @__PURE__ */jsxRuntimeExports.jsxs(React.Fragment,{children:[/* @__PURE__ */jsxRuntimeExports.jsx(ThemeProvider$1,{themeId:I?t:void 0,theme:K,children:l}),J&&/* @__PURE__ */jsxRuntimeExports.jsx(GlobalStyles$2,{styles:K.generateStyleSheets?.()||[]})]});return j?ee:/* @__PURE__ */jsxRuntimeExports.jsx(c.Provider,{value:X,children:ee})}"production"!==process.env.NODE_ENV&&(u.propTypes={children:PropTypes.node,colorSchemeNode:PropTypes.any,colorSchemeStorageKey:PropTypes.string,defaultMode:PropTypes.string,disableNestedContext:PropTypes.bool,disableStyleSheetGeneration:PropTypes.bool,disableTransitionOnChange:PropTypes.bool,documentNode:PropTypes.any,forceThemeRerender:PropTypes.bool,modeStorageKey:PropTypes.string,noSsr:PropTypes.bool,storageManager:PropTypes.func,storageWindow:PropTypes.any,theme:PropTypes.object});const m="string"==typeof a?a:a.light,h="string"==typeof a?a:a.dark;return{CssVarsProvider:u,useColorScheme:()=>React.useContext(c)||l,getInitColorSchemeScript:e=>InitColorSchemeScript({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:o,...e})}}function createGetCssVar$1(e=""){function t(...n){if(!n.length)return"";const o=n[0];return"string"!=typeof o||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${o}`:`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const assignNestedKeys=(e,t,n,o=[])=>{let i=e;t.forEach((e,r)=>{r===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=o.includes(e)?[]:{}),i=i[e])})},walkObjectDeep=(e,t,n)=>{!function e(o,i=[],r=[]){Object.entries(o).forEach(([o,a])=>{(!n||n&&!n([...i,o]))&&null!=a&&("object"==typeof a&&Object.keys(a).length>0?e(a,[...i,o],Array.isArray(a)?[...r,o]:r):t([...i,o],a,r))})}(e)},getCssValue=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;return e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`}return t};function cssVarsParser(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},i={},r={},a={};return walkObjectDeep(e,(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,l=getCssValue(e,t);Object.assign(i,{[o]:l}),assignNestedKeys(r,e,`var(${o})`,s),assignNestedKeys(a,e,`var(${o}, ${l})`,s)}},e=>"vars"===e[0]),{css:i,vars:r,varsWithDefaults:a}}function prepareCssVars(e,t={}){const{getSelector:n=f,disableCssColorScheme:o,colorSchemeSelector:i,enableContrastVars:r}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:d,css:p,varsWithDefaults:u}=cssVarsParser(c,t);let m=u;const h={},{[l]:g,...x}=a;if(Object.entries(x||{}).forEach(([e,n])=>{const{vars:o,css:i,varsWithDefaults:r}=cssVarsParser(n,t);m=deepmerge(m,r),h[e]={css:i,vars:o}}),g){const{css:e,vars:n,varsWithDefaults:o}=cssVarsParser(g,t);m=deepmerge(m,o),h[l]={css:e,vars:n}}function f(t,n){let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:m,generateThemeVars:()=>{let e={...d};return Object.entries(h).forEach(([,{vars:t}])=>{e=deepmerge(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...p}),p);const{[i]:l,...c}=h;if(l){const{css:e}=l,t=a[i]?.palette?.mode,r=!o&&t?{colorScheme:t,...e}:{...e};s(n(i,{...r}),r)}return Object.entries(c).forEach(([e,{css:t}])=>{const i=a[e]?.palette?.mode,r=!o&&i?{colorScheme:i,...t}:{...t};s(n(e,{...r}),r)}),r&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}function createGetColorSchemeSelector(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function composeClasses(e,t,n=void 0){const o={};for(const i in e){const r=e[i];let a="",s=!0;for(let e=0;e<r.length;e+=1){const o=r[e];o&&(a+=(!0===s?"":" ")+t(o),s=!1,n&&n[o]&&(a+=" "+n[o]))}o[i]=a}return o}function isMuiElement(e,t){/* @__PURE__ */
|
|
1011
|
+
return jsxRuntimeExports.jsx("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?l:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${i}') || '${t}';\n const dark = localStorage.getItem('${r}-dark') || '${o}';\n const light = localStorage.getItem('${r}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}function noop$d(){}const localStorageManager=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let o;try{o=t.localStorage.getItem(e)}catch{}return o||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return noop$d;const o=t=>{const o=t.newValue;t.key===e&&n(o)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function noop$c(){}function getSystemMode(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function processState(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}function getColorScheme(e){return processState(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}function useCurrentColorScheme(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:i=[],modeStorageKey:r=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:a=DEFAULT_COLOR_SCHEME_STORAGE_KEY,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:l=localStorageManager,noSsr:c=!1}=e,d=i.join(","),p=i.length>1,u=React.useMemo(()=>l?.({key:r,storageWindow:s}),[l,r,s]),m=React.useMemo(()=>l?.({key:`${a}-light`,storageWindow:s}),[l,a,s]),h=React.useMemo(()=>l?.({key:`${a}-dark`,storageWindow:s}),[l,a,s]),[g,x]=React.useState(()=>{const e=u?.get(t)||t,i=m?.get(n)||n,r=h?.get(o)||o;return{mode:e,systemMode:getSystemMode(e),lightColorScheme:i,darkColorScheme:r}}),[f,y]=React.useState(c||!p);React.useEffect(()=>{y(!0)},[]);const S=getColorScheme(g),C=React.useCallback(e=>{x(n=>{if(e===n.mode)return n;const o=e??t;return u?.set(o),{...n,mode:o,systemMode:getSystemMode(o)}})},[u,t]),$=React.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):x(t=>{const n={...t};return processState(t,t=>{"light"===t&&(m?.set(e),n.lightColorScheme=e),"dark"===t&&(h?.set(e),n.darkColorScheme=e)}),n}):x(t=>{const i={...t},r=null===e.light?n:e.light,a=null===e.dark?o:e.dark;return r&&(d.includes(r)?(i.lightColorScheme=r,m?.set(r)):console.error(`\`${r}\` does not exist in \`theme.colorSchemes\`.`)),a&&(d.includes(a)?(i.darkColorScheme=a,h?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i}):x(e=>(m?.set(n),h?.set(o),{...e,lightColorScheme:n,darkColorScheme:o}))},[d,m,h,n,o]),b=React.useCallback(e=>{"system"===g.mode&&x(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),v=React.useRef(b);return v.current=b,React.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;const e=(...e)=>v.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),React.useEffect(()=>{if(p){const e=u?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||C(e||t)})||noop$c,n=m?.subscribe(e=>{e&&!d.match(e)||$({light:e})})||noop$c,o=h?.subscribe(e=>{e&&!d.match(e)||$({dark:e})})||noop$c;return()=>{e(),n(),o()}}},[$,C,d,t,s,p,u,m,h]),{...g,mode:f?g.mode:void 0,systemMode:f?g.systemMode:void 0,colorScheme:f?S:void 0,setMode:C,setColorScheme:$}}const DISABLE_CSS_TRANSITION="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function createCssVarsProvider(e){const{themeId:t,theme:n={},modeStorageKey:o=DEFAULT_MODE_STORAGE_KEY,colorSchemeStorageKey:i=DEFAULT_COLOR_SCHEME_STORAGE_KEY,disableTransitionOnChange:r=!1,defaultColorScheme:a,resolveTheme:s}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=/* @__PURE__ */React.createContext(void 0);"production"!==process.env.NODE_ENV&&(c.displayName="ColorSchemeContext");const d={},p={};function u(e){const{children:l,theme:u,modeStorageKey:m=o,colorSchemeStorageKey:h=i,disableTransitionOnChange:g=r,storageManager:x,storageWindow:f=("undefined"==typeof window?void 0:window),documentNode:y=("undefined"==typeof document?void 0:document),colorSchemeNode:S=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:C=!1,disableStyleSheetGeneration:$=!1,defaultMode:b="system",forceThemeRerender:v=!1,noSsr:E}=e,w=React.useRef(!1),R=useTheme$1(),A=React.useContext(c),j=!!A&&!C,T=React.useMemo(()=>u||("function"==typeof n?n():n),[u]),I=T[t],k=I||T,{colorSchemes:L=d,components:D=p,cssVarPrefix:_}=k,P=Object.keys(L).filter(e=>!!L[e]).join(","),B=React.useMemo(()=>P.split(","),[P]),M="string"==typeof a?a:a.light,O="string"==typeof a?a:a.dark,F=L[M]&&L[O]?b:L[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,{mode:N,setMode:z,systemMode:H,lightColorScheme:V,darkColorScheme:W,colorScheme:U,setColorScheme:G}=useCurrentColorScheme({supportedColorSchemes:B,defaultLightColorScheme:M,defaultDarkColorScheme:O,modeStorageKey:m,colorSchemeStorageKey:h,defaultMode:F,storageManager:x,storageWindow:f,noSsr:E});let q=N,Q=U;j&&(q=A.mode,Q=A.colorScheme),"production"!==process.env.NODE_ENV&&v&&!k.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join("\n"));let Y=Q||k.defaultColorScheme;k.vars&&!v&&(Y=k.defaultColorScheme);const K=React.useMemo(()=>{const e=k.generateThemeVars?.()||k.vars,t={...k,components:D,colorSchemes:L,cssVarPrefix:_,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),Y){const e=L[Y];e&&"object"==typeof e&&Object.keys(e).forEach(n=>{e[n]&&"object"==typeof e[n]?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,Y,D,L,_]),Z=k.colorSchemeSelector;useEnhancedEffect(()=>{if(Q&&S&&Z&&"media"!==Z){const e=Z;let t=Z;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))S.classList.remove(...B.map(e=>t.substring(1).replace("%s",e))),S.classList.add(t.substring(1).replace("%s",Q));else{const e=t.replace("%s",Q).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||B.forEach(e=>{S.removeAttribute(t.replace(Q,e))}),S.setAttribute(t,n?n.replace(/"|'/g,""):"")}else S.setAttribute(t,Q)}}},[Q,Z,S,B]),React.useEffect(()=>{let e;if(g&&w.current&&y){const t=y.createElement("style");t.appendChild(y.createTextNode(DISABLE_CSS_TRANSITION)),y.head.appendChild(t),window.getComputedStyle(y.body),e=setTimeout(()=>{y.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Q,g,y]),React.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);const X=React.useMemo(()=>({allColorSchemes:B,colorScheme:Q,darkColorScheme:W,lightColorScheme:V,mode:q,setColorScheme:G,setMode:"production"===process.env.NODE_ENV?z:e=>{"media"===K.colorSchemeSelector&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join("\n")),z(e)},systemMode:H}),[B,Q,W,V,q,G,z,H,K.colorSchemeSelector]);let J=!0;($||!1===k.cssVariables||j&&R?.cssVarPrefix===_)&&(J=!1);const ee=/* @__PURE__ */jsxRuntimeExports.jsxs(React.Fragment,{children:[/* @__PURE__ */jsxRuntimeExports.jsx(ThemeProvider$1,{themeId:I?t:void 0,theme:K,children:l}),J&&/* @__PURE__ */jsxRuntimeExports.jsx(GlobalStyles$2,{styles:K.generateStyleSheets?.()||[]})]});return j?ee:/* @__PURE__ */jsxRuntimeExports.jsx(c.Provider,{value:X,children:ee})}"production"!==process.env.NODE_ENV&&(u.propTypes={children:PropTypes.node,colorSchemeNode:PropTypes.any,colorSchemeStorageKey:PropTypes.string,defaultMode:PropTypes.string,disableNestedContext:PropTypes.bool,disableStyleSheetGeneration:PropTypes.bool,disableTransitionOnChange:PropTypes.bool,documentNode:PropTypes.any,forceThemeRerender:PropTypes.bool,modeStorageKey:PropTypes.string,noSsr:PropTypes.bool,storageManager:PropTypes.func,storageWindow:PropTypes.any,theme:PropTypes.object});const m="string"==typeof a?a:a.light,h="string"==typeof a?a:a.dark;return{CssVarsProvider:u,useColorScheme:()=>React.useContext(c)||l,getInitColorSchemeScript:e=>InitColorSchemeScript({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:o,...e})}}function createGetCssVar$1(e=""){function t(...n){if(!n.length)return"";const o=n[0];return"string"!=typeof o||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${o}`:`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const assignNestedKeys=(e,t,n,o=[])=>{let i=e;t.forEach((e,r)=>{r===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"==typeof i&&(i[e]=n):i&&"object"==typeof i&&(i[e]||(i[e]=o.includes(e)?[]:{}),i=i[e])})},walkObjectDeep=(e,t,n)=>{!function e(o,i=[],r=[]){Object.entries(o).forEach(([o,a])=>{(!n||n&&!n([...i,o]))&&null!=a&&("object"==typeof a&&Object.keys(a).length>0?e(a,[...i,o],Array.isArray(a)?[...r,o]:r):t([...i,o],a,r))})}(e)},getCssValue=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;return e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`}return t};function cssVarsParser(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},i={},r={},a={};return walkObjectDeep(e,(e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,l=getCssValue(e,t);Object.assign(i,{[o]:l}),assignNestedKeys(r,e,`var(${o})`,s),assignNestedKeys(a,e,`var(${o}, ${l})`,s)}},e=>"vars"===e[0]),{css:i,vars:r,varsWithDefaults:a}}function prepareCssVars(e,t={}){const{getSelector:n=f,disableCssColorScheme:o,colorSchemeSelector:i,enableContrastVars:r}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:d,css:p,varsWithDefaults:u}=cssVarsParser(c,t);let m=u;const h={},{[l]:g,...x}=a;if(Object.entries(x||{}).forEach(([e,n])=>{const{vars:o,css:i,varsWithDefaults:r}=cssVarsParser(n,t);m=deepmerge(m,r),h[e]={css:i,vars:o}}),g){const{css:e,vars:n,varsWithDefaults:o}=cssVarsParser(g,t);m=deepmerge(m,o),h[l]={css:e,vars:n}}function f(t,n){let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:m,generateThemeVars:()=>{let e={...d};return Object.entries(h).forEach(([,{vars:t}])=>{e=deepmerge(e,t)}),e},generateStyleSheets:()=>{const t=[],i=e.defaultColorScheme||"light";function s(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}s(n(void 0,{...p}),p);const{[i]:l,...c}=h;if(l){const{css:e}=l,t=a[i]?.palette?.mode,r=!o&&t?{colorScheme:t,...e}:{...e};s(n(i,{...r}),r)}return Object.entries(c).forEach(([e,{css:t}])=>{const i=a[e]?.palette?.mode,r=!o&&i?{colorScheme:i,...t}:{...t};s(n(e,{...r}),r)}),r&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}}function createGetColorSchemeSelector(e){return function(t){return"media"===e?("production"!==process.env.NODE_ENV&&"light"!==t&&"dark"!==t&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}function composeClasses(e,t,n=void 0){const o={};for(const i in e){const r=e[i];let a="",s=!0;for(let e=0;e<r.length;e+=1){const o=r[e];o&&(a+=(!0===s?"":" ")+t(o),s=!1,n&&n[o]&&(a+=" "+n[o]))}o[i]=a}return o}function isMuiElement(e,t){/* @__PURE__ */
|
|
1012
1012
|
return React.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}const common$3k={black:"#000",white:"#fff"},grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},purple={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},red={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},orange={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},blue={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},lightBlue={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},green={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function getLight(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$3k.white,default:common$3k.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const light=getLight();function getDark(){return{text:{primary:common$3k.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$3k.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const dark=getDark();function addLightOrDark(e,t,n,o){const i=o.light||o,r=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=lighten(e.main,i):"dark"===t&&(e.dark=darken(e.main,r)))}function mixLightOrDark(e,t,n,o,i){const r=i.light||i,a=i.dark||1.5*i;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:"light"===n?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(100*r).toFixed(0)}%)`:"dark"===n&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(100*a).toFixed(0)}%)`))}function getDefaultPrimary(e="light"){return"dark"===e?{main:blue[200],light:blue[50],dark:blue[400]}:{main:blue[700],light:blue[400],dark:blue[800]}}function getDefaultSecondary(e="light"){return"dark"===e?{main:purple[200],light:purple[50],dark:purple[400]}:{main:purple[500],light:purple[300],dark:purple[700]}}function getDefaultError(e="light"){return"dark"===e?{main:red[500],light:red[300],dark:red[700]}:{main:red[700],light:red[400],dark:red[800]}}function getDefaultInfo(e="light"){return"dark"===e?{main:lightBlue[400],light:lightBlue[300],dark:lightBlue[700]}:{main:lightBlue[700],light:lightBlue[500],dark:lightBlue[900]}}function getDefaultSuccess(e="light"){return"dark"===e?{main:green[400],light:green[300],dark:green[700]}:{main:green[800],light:green[500],dark:green[900]}}function getDefaultWarning(e="light"){return"dark"===e?{main:orange[400],light:orange[300],dark:orange[700]}:{main:"#ed6c02",light:orange[500],dark:orange[900]}}function contrastColor(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function createPalette(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:i,...r}=e,a=e.primary||getDefaultPrimary(t),s=e.secondary||getDefaultSecondary(t),l=e.error||getDefaultError(t),c=e.info||getDefaultInfo(t),d=e.success||getDefaultSuccess(t),p=e.warning||getDefaultWarning(t);function u(e){if(i)return contrastColor(e);const t=getContrastRatio(e,dark.text.primary)>=n?dark.text.primary:light.text.primary;if("production"!==process.env.NODE_ENV){const n=getContrastRatio(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const m=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:a=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:formatMuiErrorMessage(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:formatMuiErrorMessage(12,t?` (${t})`:"",JSON.stringify(e.main)));return i?(mixLightOrDark(i,e,"light",r,o),mixLightOrDark(i,e,"dark",a,o)):(addLightOrDark(e,"light",r,o),addLightOrDark(e,"dark",a,o)),e.contrastText||(e.contrastText=u(e.main)),e};let h;"light"===t?h=getLight():"dark"===t&&(h=getDark()),"production"!==process.env.NODE_ENV&&(h||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return deepmerge({common:{...common$3k},mode:t,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:l,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:c,name:"info"}),success:m({color:d,name:"success"}),grey:grey,contrastThreshold:n,getContrastText:u,augmentColor:m,tonalOffset:o,...h},r)}function prepareTypographyVars(e){const t={};return Object.entries(e).forEach(e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function createMixins(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function round$5(e){return Math.round(1e5*e)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(e,t){const{fontFamily:n=defaultFontFamily,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:r=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...p}="function"==typeof t?t(e):t;"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const u=o/14,m=d||(e=>e/l*u+"rem"),h=(e,t,o,i,r)=>({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:o,...n===defaultFontFamily?{letterSpacing:`${round$5(i/t)}em`}:{},...r,...c}),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(r,48,1.167,0),h4:h(r,34,1.235,.25),h5:h(r,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(r,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(r,16,1.5,.15),body2:h(r,14,1.43,.15),button:h(a,14,1.75,.4,caseAllCaps),caption:h(r,12,1.66,.4),overline:h(r,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge({htmlFontSize:l,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:r,fontWeightMedium:a,fontWeightBold:s,...g},p,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration$7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(e){return`${Math.round(e)}ms`}function getAutoHeightDuration(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function createTransitions(e){const t={...easing,...e.easing},n={...duration$7,...e.duration};return{getAutoHeightDuration:getAutoHeightDuration,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:r=t.easeInOut,delay:a=0,...s}=o;if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!Number.isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),n(i)||t(i)||console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),t(r)||console.error('MUI: Argument "easing" must be a string.'),n(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof o&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:formatMs(i)} ${r} ${"string"==typeof a?a:formatMs(a)}`).join(",")},...e,easing:t,duration:n}}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function isSerializable(e){return isPlainObject$5(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function stringifyTheme(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[i,r]=n[o];!isSerializable(r)||i.startsWith("unstable_")?delete t[i]:isPlainObject$5(r)&&(t[i]={...r},e(t[i]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function coefficientToPercentage(e){return"number"==typeof e?`${(100*e).toFixed(0)}%`:`calc((${e}) * 100%)`}const parseAddition=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function attachColorManipulators(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${"string"==typeof n?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${"string"==typeof n?`calc(${n})`:n})`:alpha$1(t,parseAddition(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${coefficientToPercentage(n)})`:lighten(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${coefficientToPercentage(n)})`:darken(t,n)}})}function createThemeNoVars(e={},...t){const{breakpoints:n,mixins:o={},spacing:i,palette:r={},transitions:a={},typography:s={},shape:l,colorSpace:c,...d}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":formatMuiErrorMessage(20));const p=createPalette({...r,colorSpace:c}),u=createTheme$1(e);let m=deepmerge(u,{mixins:createMixins(u.breakpoints,o),palette:p,shadows:shadows.slice(),typography:createTypography(p,s),transitions:createTransitions(a),zIndex:{...zIndex}});if(m=deepmerge(m,d),m=t.reduce((e,t)=>deepmerge(e,t),m),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const i=t[o];if(e.includes(o)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const e=generateUtilityClass("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(m.components).forEach(e=>{const n=m.components[e].styleOverrides;n&&e.startsWith("Mui")&&t(n,e)})}return m.unstable_sxConfig={...defaultSxConfig,...d?.unstable_sxConfig},m.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},m.toRuntimeSource=stringifyTheme,attachColorManipulators(m),m}function getOverlayAlpha(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const defaultDarkOverlays=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=getOverlayAlpha(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function getOpacity(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function getOverlays(e){return"dark"===e?defaultDarkOverlays:[]}function createColorScheme(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:i,...r}=e,a=createPalette({...t,colorSpace:i});return{palette:a,opacity:{...getOpacity(a.mode),...n},overlays:o||getOverlays(a.mode),...r}}function shouldSkipGeneratingVar(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const excludeVariablesFromRoot=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],defaultGetSelector=e=>(t,n)=>{const o=e.rootSelector||":root",i=e.colorSchemeSelector;let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const i={};return excludeVariablesFromRoot(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),"media"===r?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:i}}:r?{[r.replace("%s",t)]:i,[`${o}, ${r.replace("%s",t)}`]:n}:{[o]:{...n,...i}}}if(r&&"media"!==r)return`${o}, ${r.replace("%s",String(t))}`}else if(t){if("media"===r)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(r)return r.replace("%s",String(t))}return o};function assignNode(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function setColor(e,t,n){!e[t]&&n&&(e[t]=n)}function toRgb(e){return"string"==typeof e&&e.startsWith("hsl")?hslToRgb(e):e}function setColorChannel(e,t){`${t}Channel`in e||(e[`${t}Channel`]=private_safeColorChannel(toRgb(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function getSpacingVal(e){return"number"==typeof e?`${e}px`:"string"==typeof e||"function"==typeof e||Array.isArray(e)?e:"8px"}const silent=e=>{try{return e()}catch(t){}},createGetCssVar=(e="mui")=>createGetCssVar$1(e);function attachColorScheme$1(e,t,n,o,i){if(!n)return;n=!0===n?{}:n;const r="dark"===i?"dark":"light";if(!o)return void(t[i]=createColorScheme({...n,palette:{mode:r,...n?.palette},colorSpace:e}));const{palette:a,...s}=createThemeNoVars({...o,palette:{mode:r,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...getOpacity(r),...n?.opacity},overlays:n?.overlays||getOverlays(r)},s}function createThemeWithVars(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:i=!1,cssVarPrefix:r="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=shouldSkipGeneratingVar,colorSchemeSelector:l=(n.light&&n.dark?"media":void 0),rootSelector:c=":root",...d}=e,p=Object.keys(n)[0],u=o||(n.light&&"light"!==p?"light":p),m=createGetCssVar(r),{[u]:h,light:g,dark:x,...f}=n,y={...f};let S,C=h;if(("dark"===u&&!("dark"in n)||"light"===u&&!("light"in n))&&(C=!0),!C)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${u}\` option is either missing or invalid.`:formatMuiErrorMessage(21,u));a&&(S="oklch");const $=attachColorScheme$1(S,y,C,d,u);g&&!y.light&&attachColorScheme$1(S,y,g,void 0,"light"),x&&!y.dark&&attachColorScheme$1(S,y,x,void 0,"dark");let b={defaultColorScheme:u,...$,cssVarPrefix:r,colorSchemeSelector:l,rootSelector:c,getCssVar:m,colorSchemes:y,font:{...prepareTypographyVars($.typography),...$.font},spacing:getSpacingVal(d.spacing)};Object.keys(b.colorSchemes).forEach(e=>{const t=b.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],i=n[2];return m(e,t[o][i])};function o(e,t,n){if(S){let o;return e===private_safeAlpha&&(o=`transparent ${(100*(1-n)).toFixed(0)}%`),e===private_safeDarken&&(o=`#000 ${(100*n).toFixed(0)}%`),e===private_safeLighten&&(o=`#fff ${(100*n).toFixed(0)}%`),`color-mix(in ${S}, ${t}, ${o})`}return e(t,n)}if("light"===t.mode&&(setColor(t.common,"background","#fff"),setColor(t.common,"onBackground","#000")),"dark"===t.mode&&(setColor(t.common,"background","#000"),setColor(t.common,"onBackground","#fff")),assignNode(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){setColor(t.Alert,"errorColor",o(private_safeDarken,a?m("palette-error-light"):t.error.light,.6)),setColor(t.Alert,"infoColor",o(private_safeDarken,a?m("palette-info-light"):t.info.light,.6)),setColor(t.Alert,"successColor",o(private_safeDarken,a?m("palette-success-light"):t.success.light,.6)),setColor(t.Alert,"warningColor",o(private_safeDarken,a?m("palette-warning-light"):t.warning.light,.6)),setColor(t.Alert,"errorFilledBg",n("palette-error-main")),setColor(t.Alert,"infoFilledBg",n("palette-info-main")),setColor(t.Alert,"successFilledBg",n("palette-success-main")),setColor(t.Alert,"warningFilledBg",n("palette-warning-main")),setColor(t.Alert,"errorFilledColor",silent(()=>t.getContrastText(t.error.main))),setColor(t.Alert,"infoFilledColor",silent(()=>t.getContrastText(t.info.main))),setColor(t.Alert,"successFilledColor",silent(()=>t.getContrastText(t.success.main))),setColor(t.Alert,"warningFilledColor",silent(()=>t.getContrastText(t.warning.main))),setColor(t.Alert,"errorStandardBg",o(private_safeLighten,a?m("palette-error-light"):t.error.light,.9)),setColor(t.Alert,"infoStandardBg",o(private_safeLighten,a?m("palette-info-light"):t.info.light,.9)),setColor(t.Alert,"successStandardBg",o(private_safeLighten,a?m("palette-success-light"):t.success.light,.9)),setColor(t.Alert,"warningStandardBg",o(private_safeLighten,a?m("palette-warning-light"):t.warning.light,.9)),setColor(t.Alert,"errorIconColor",n("palette-error-main")),setColor(t.Alert,"infoIconColor",n("palette-info-main")),setColor(t.Alert,"successIconColor",n("palette-success-main")),setColor(t.Alert,"warningIconColor",n("palette-warning-main")),setColor(t.AppBar,"defaultBg",n("palette-grey-100")),setColor(t.Avatar,"defaultBg",n("palette-grey-400")),setColor(t.Button,"inheritContainedBg",n("palette-grey-300")),setColor(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),setColor(t.Chip,"defaultBorder",n("palette-grey-400")),setColor(t.Chip,"defaultAvatarColor",n("palette-grey-700")),setColor(t.Chip,"defaultIconColor",n("palette-grey-700")),setColor(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),setColor(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),setColor(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),setColor(t.LinearProgress,"primaryBg",o(private_safeLighten,a?m("palette-primary-main"):t.primary.main,.62)),setColor(t.LinearProgress,"secondaryBg",o(private_safeLighten,a?m("palette-secondary-main"):t.secondary.main,.62)),setColor(t.LinearProgress,"errorBg",o(private_safeLighten,a?m("palette-error-main"):t.error.main,.62)),setColor(t.LinearProgress,"infoBg",o(private_safeLighten,a?m("palette-info-main"):t.info.main,.62)),setColor(t.LinearProgress,"successBg",o(private_safeLighten,a?m("palette-success-main"):t.success.main,.62)),setColor(t.LinearProgress,"warningBg",o(private_safeLighten,a?m("palette-warning-light"):t.warning.main,.62)),setColor(t.Skeleton,"bg",S?o(private_safeAlpha,a?m("palette-text-primary"):t.text.primary,.11):`rgba(${n("palette-text-primaryChannel")} / 0.11)`),setColor(t.Slider,"primaryTrack",o(private_safeLighten,a?m("palette-primary-main"):t.primary.main,.62)),setColor(t.Slider,"secondaryTrack",o(private_safeLighten,a?m("palette-secondary-main"):t.secondary.main,.62)),setColor(t.Slider,"errorTrack",o(private_safeLighten,a?m("palette-error-main"):t.error.main,.62)),setColor(t.Slider,"infoTrack",o(private_safeLighten,a?m("palette-info-main"):t.info.main,.62)),setColor(t.Slider,"successTrack",o(private_safeLighten,a?m("palette-success-main"):t.success.main,.62)),setColor(t.Slider,"warningTrack",o(private_safeLighten,a?m("palette-warning-main"):t.warning.main,.62));const e=S?o(private_safeDarken,a?m("palette-background-default"):t.background.default,.6825):private_safeEmphasize(t.background.default,.8);setColor(t.SnackbarContent,"bg",e),setColor(t.SnackbarContent,"color",silent(()=>S?dark.text.primary:t.getContrastText(e))),setColor(t.SpeedDialAction,"fabHoverBg",private_safeEmphasize(t.background.paper,.15)),setColor(t.StepConnector,"border",n("palette-grey-400")),setColor(t.StepContent,"border",n("palette-grey-400")),setColor(t.Switch,"defaultColor",n("palette-common-white")),setColor(t.Switch,"defaultDisabledColor",n("palette-grey-100")),setColor(t.Switch,"primaryDisabledColor",o(private_safeLighten,a?m("palette-primary-main"):t.primary.main,.62)),setColor(t.Switch,"secondaryDisabledColor",o(private_safeLighten,a?m("palette-secondary-main"):t.secondary.main,.62)),setColor(t.Switch,"errorDisabledColor",o(private_safeLighten,a?m("palette-error-main"):t.error.main,.62)),setColor(t.Switch,"infoDisabledColor",o(private_safeLighten,a?m("palette-info-main"):t.info.main,.62)),setColor(t.Switch,"successDisabledColor",o(private_safeLighten,a?m("palette-success-main"):t.success.main,.62)),setColor(t.Switch,"warningDisabledColor",o(private_safeLighten,a?m("palette-warning-main"):t.warning.main,.62)),setColor(t.TableCell,"border",o(private_safeLighten,private_safeAlpha(a?m("palette-divider"):t.divider,1),.88)),setColor(t.Tooltip,"bg",o(private_safeAlpha,a?m("palette-grey-700"):t.grey[700],.92))}if("dark"===t.mode){setColor(t.Alert,"errorColor",o(private_safeLighten,a?m("palette-error-light"):t.error.light,.6)),setColor(t.Alert,"infoColor",o(private_safeLighten,a?m("palette-info-light"):t.info.light,.6)),setColor(t.Alert,"successColor",o(private_safeLighten,a?m("palette-success-light"):t.success.light,.6)),setColor(t.Alert,"warningColor",o(private_safeLighten,a?m("palette-warning-light"):t.warning.light,.6)),setColor(t.Alert,"errorFilledBg",n("palette-error-dark")),setColor(t.Alert,"infoFilledBg",n("palette-info-dark")),setColor(t.Alert,"successFilledBg",n("palette-success-dark")),setColor(t.Alert,"warningFilledBg",n("palette-warning-dark")),setColor(t.Alert,"errorFilledColor",silent(()=>t.getContrastText(t.error.dark))),setColor(t.Alert,"infoFilledColor",silent(()=>t.getContrastText(t.info.dark))),setColor(t.Alert,"successFilledColor",silent(()=>t.getContrastText(t.success.dark))),setColor(t.Alert,"warningFilledColor",silent(()=>t.getContrastText(t.warning.dark))),setColor(t.Alert,"errorStandardBg",o(private_safeDarken,a?m("palette-error-light"):t.error.light,.9)),setColor(t.Alert,"infoStandardBg",o(private_safeDarken,a?m("palette-info-light"):t.info.light,.9)),setColor(t.Alert,"successStandardBg",o(private_safeDarken,a?m("palette-success-light"):t.success.light,.9)),setColor(t.Alert,"warningStandardBg",o(private_safeDarken,a?m("palette-warning-light"):t.warning.light,.9)),setColor(t.Alert,"errorIconColor",n("palette-error-main")),setColor(t.Alert,"infoIconColor",n("palette-info-main")),setColor(t.Alert,"successIconColor",n("palette-success-main")),setColor(t.Alert,"warningIconColor",n("palette-warning-main")),setColor(t.AppBar,"defaultBg",n("palette-grey-900")),setColor(t.AppBar,"darkBg",n("palette-background-paper")),setColor(t.AppBar,"darkColor",n("palette-text-primary")),setColor(t.Avatar,"defaultBg",n("palette-grey-600")),setColor(t.Button,"inheritContainedBg",n("palette-grey-800")),setColor(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),setColor(t.Chip,"defaultBorder",n("palette-grey-700")),setColor(t.Chip,"defaultAvatarColor",n("palette-grey-300")),setColor(t.Chip,"defaultIconColor",n("palette-grey-300")),setColor(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),setColor(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),setColor(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),setColor(t.LinearProgress,"primaryBg",o(private_safeDarken,a?m("palette-primary-main"):t.primary.main,.5)),setColor(t.LinearProgress,"secondaryBg",o(private_safeDarken,a?m("palette-secondary-main"):t.secondary.main,.5)),setColor(t.LinearProgress,"errorBg",o(private_safeDarken,a?m("palette-error-main"):t.error.main,.5)),setColor(t.LinearProgress,"infoBg",o(private_safeDarken,a?m("palette-info-main"):t.info.main,.5)),setColor(t.LinearProgress,"successBg",o(private_safeDarken,a?m("palette-success-main"):t.success.main,.5)),setColor(t.LinearProgress,"warningBg",o(private_safeDarken,a?m("palette-warning-main"):t.warning.main,.5)),setColor(t.Skeleton,"bg",S?o(private_safeAlpha,a?m("palette-text-primary"):t.text.primary,.13):`rgba(${n("palette-text-primaryChannel")} / 0.13)`),setColor(t.Slider,"primaryTrack",o(private_safeDarken,a?m("palette-primary-main"):t.primary.main,.5)),setColor(t.Slider,"secondaryTrack",o(private_safeDarken,a?m("palette-secondary-main"):t.secondary.main,.5)),setColor(t.Slider,"errorTrack",o(private_safeDarken,a?m("palette-error-main"):t.error.main,.5)),setColor(t.Slider,"infoTrack",o(private_safeDarken,a?m("palette-info-main"):t.info.main,.5)),setColor(t.Slider,"successTrack",o(private_safeDarken,a?m("palette-success-main"):t.success.main,.5)),setColor(t.Slider,"warningTrack",o(private_safeDarken,a?m("palette-warning-light"):t.warning.main,.5));const e=S?o(private_safeLighten,a?m("palette-background-default"):t.background.default,.985):private_safeEmphasize(t.background.default,.98);setColor(t.SnackbarContent,"bg",e),setColor(t.SnackbarContent,"color",silent(()=>S?light.text.primary:t.getContrastText(e))),setColor(t.SpeedDialAction,"fabHoverBg",private_safeEmphasize(t.background.paper,.15)),setColor(t.StepConnector,"border",n("palette-grey-600")),setColor(t.StepContent,"border",n("palette-grey-600")),setColor(t.Switch,"defaultColor",n("palette-grey-300")),setColor(t.Switch,"defaultDisabledColor",n("palette-grey-600")),setColor(t.Switch,"primaryDisabledColor",o(private_safeDarken,a?m("palette-primary-main"):t.primary.main,.55)),setColor(t.Switch,"secondaryDisabledColor",o(private_safeDarken,a?m("palette-secondary-main"):t.secondary.main,.55)),setColor(t.Switch,"errorDisabledColor",o(private_safeDarken,a?m("palette-error-main"):t.error.main,.55)),setColor(t.Switch,"infoDisabledColor",o(private_safeDarken,a?m("palette-info-main"):t.info.main,.55)),setColor(t.Switch,"successDisabledColor",o(private_safeDarken,a?m("palette-success-main"):t.success.main,.55)),setColor(t.Switch,"warningDisabledColor",o(private_safeDarken,a?m("palette-warning-light"):t.warning.main,.55)),setColor(t.TableCell,"border",o(private_safeDarken,private_safeAlpha(a?m("palette-divider"):t.divider,1),.68)),setColor(t.Tooltip,"bg",o(private_safeAlpha,a?m("palette-grey-700"):t.grey[700],.92))}a||(setColorChannel(t.background,"default"),setColorChannel(t.background,"paper"),setColorChannel(t.common,"background"),setColorChannel(t.common,"onBackground"),setColorChannel(t,"divider")),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&!a&&n&&"object"==typeof n&&(n.main&&setColor(t[e],"mainChannel",private_safeColorChannel(toRgb(n.main))),n.light&&setColor(t[e],"lightChannel",private_safeColorChannel(toRgb(n.light))),n.dark&&setColor(t[e],"darkChannel",private_safeColorChannel(toRgb(n.dark))),n.contrastText&&setColor(t[e],"contrastTextChannel",private_safeColorChannel(toRgb(n.contrastText))),"text"===e&&(setColorChannel(t[e],"primary"),setColorChannel(t[e],"secondary")),"action"===e&&(n.active&&setColorChannel(t[e],"active"),n.selected&&setColorChannel(t[e],"selected")))})}),b=t.reduce((e,t)=>deepmerge(e,t),b);const v={prefix:r,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:defaultGetSelector(b),enableContrastVars:a},{vars:E,generateThemeVars:w,generateStyleSheets:R}=prepareCssVars(b,v);return b.vars=E,Object.entries(b.colorSchemes[b.defaultColorScheme]).forEach(([e,t])=>{b[e]=t}),b.generateThemeVars=w,b.generateStyleSheets=R,b.generateSpacing=function(){return createSpacing(d.spacing,createUnarySpacing(this))},b.getColorSchemeSelector=createGetColorSchemeSelector(l),b.spacing=b.generateSpacing(),b.shouldSkipGeneratingVar=s,b.unstable_sxConfig={...defaultSxConfig,...d?.unstable_sxConfig},b.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},b.toRuntimeSource=stringifyTheme,b}function attachColorScheme(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:createPalette({...!0===n?{}:n.palette,mode:t})})}function createTheme(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:r=n?.mode,...a}=e,s=r||"light",l=i?.[s],c={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return createThemeNoVars(e,...t);let o=n;"palette"in e||c[s]&&(!0!==c[s]?o=c[s].palette:"dark"===s&&(o={mode:"dark"}));const i=createThemeNoVars({...e,palette:o},...t);return i.defaultColorScheme=s,i.colorSchemes=c,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==c.light&&c.light,palette:i.palette},attachColorScheme(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},attachColorScheme(i,"light",c.light)),i}return n||"light"in c||"light"!==s||(c.light=!0),createThemeWithVars({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof o&&o},...t)}const defaultTheme$1=createTheme();function useTheme(){const e=useTheme$2(defaultTheme$1);return"production"!==process.env.NODE_ENV&&React.useDebugValue(e),e[THEME_ID]||e}function slotShouldForwardProp(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const rootShouldForwardProp=e=>slotShouldForwardProp(e)&&"classes"!==e,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp:rootShouldForwardProp});function ThemeProviderNoVars({theme:e,...t}){const n=THEME_ID in e?e[THEME_ID]:void 0;/* @__PURE__ */
|
|
1013
1013
|
return jsxRuntimeExports.jsx(ThemeProvider$1,{...t,themeId:n?THEME_ID:void 0,theme:n||e})}const defaultConfig={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};"production"!==process.env.NODE_ENV&&(PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.string,PropTypes.oneOf(["dark","light","system"]),PropTypes.string,PropTypes.string);const{CssVarsProvider:InternalCssVarsProvider}=createCssVarsProvider({themeId:THEME_ID,theme:()=>createTheme({cssVariables:!0}),colorSchemeStorageKey:defaultConfig.colorSchemeStorageKey,modeStorageKey:defaultConfig.modeStorageKey,defaultColorScheme:{light:defaultConfig.defaultLightColorScheme,dark:defaultConfig.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:createTypography(e.palette,e.typography)};return t.unstable_sx=function(e){return styleFunctionSx({sx:e,theme:this})},t}}),CssVarsProvider=InternalCssVarsProvider;function ThemeProvider({theme:e,...t}){const n=React.useMemo(()=>{if("function"==typeof e)return e;const t=THEME_ID in e?e[THEME_ID]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?/* @__PURE__ */jsxRuntimeExports.jsx(ThemeProviderNoVars,{theme:n,...t}):/* @__PURE__ */jsxRuntimeExports.jsx(CssVarsProvider,{theme:e,...t})}var _listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,_freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isObject_1,hasRequiredIsObject,isFunction_1,hasRequiredIsFunction,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_Uint8Array,hasRequired_Uint8Array,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_arrayPush,hasRequired_arrayPush,isArray_1,hasRequiredIsArray,_baseGetAllKeys,hasRequired_baseGetAllKeys,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_baseTimes,hasRequired_baseTimes,isObjectLike_1,hasRequiredIsObjectLike,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;return hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0}}function requireEq(){if(hasRequiredEq)return eq_1;return hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t}}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,n){for(var o=t.length;o--;)if(e(t[o][0],n))return o;return-1}}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(n){var o=this.__data__,i=e(o,n);return!(i<0)&&(i==o.length-1?o.pop():t.call(o,i,1),--this.size,!0)}}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var n=this.__data__,o=e(n,t);return o<0?void 0:n[o][1]}}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,n){var o=this.__data__,i=e(o,t);return i<0?(++this.size,o.push([t,n])):o[i][1]=n,this}}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),o=require_listCacheHas(),i=require_listCacheSet();function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=o,r.prototype.set=i,_ListCache=r}function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var e=require_ListCache();return _stackClear=function(){this.__data__=new e,this.size=0}}function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;return hasRequired_stackDelete=1,_stackDelete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}function require_stackGet(){if(hasRequired_stackGet)return _stackGet;return hasRequired_stackGet=1,_stackGet=function(e){return this.__data__.get(e)}}function require_stackHas(){if(hasRequired_stackHas)return _stackHas;return hasRequired_stackHas=1,_stackHas=function(e){return this.__data__.has(e)}}function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1;return _freeGlobal=e}function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _root=n}function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root().Symbol;return _Symbol=e}function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,n=t.hasOwnProperty,o=t.toString,i=e?e.toStringTag:void 0;return _getRawTag=function(e){var t=n.call(e,i),r=e[i];try{e[i]=void 0;var a=!0}catch(l){}var s=o.call(e);return a&&(t?e[i]=r:delete e[i]),s}}function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype.toString;return _objectToString=function(t){return e.call(t)}}function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),n=require_objectToString(),o=e?e.toStringTag:void 0;return _baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?t(e):n(e)}}function requireIsObject(){if(hasRequiredIsObject)return isObject_1;return hasRequiredIsObject=1,isObject_1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject();return isFunction_1=function(n){if(!t(n))return!1;var o=e(n);return"[object Function]"==o||"[object GeneratorFunction]"==o||"[object AsyncFunction]"==o||"[object Proxy]"==o}}function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root()["__core-js_shared__"];return _coreJsData=e}function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e,t=require_coreJsData(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return _isMasked=function(e){return!!n&&n in e}}function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype.toString;return _toSource=function(t){if(null!=t){try{return e.call(t)}catch(n){}try{return t+""}catch(n){}}return""}}function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),n=requireIsObject(),o=require_toSource(),i=/^\[object .+?Constructor\]$/,r=Function.prototype,a=Object.prototype,s=r.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return _baseIsNative=function(r){return!(!n(r)||t(r))&&(e(r)?c:i).test(o(r))}}function require_getValue(){if(hasRequired_getValue)return _getValue;return hasRequired_getValue=1,_getValue=function(e,t){return null==e?void 0:e[t]}}function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();return _getNative=function(n,o){var i=t(n,o);return e(i)?i:void 0}}function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative()(require_root(),"Map");return _Map=e}function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative()(Object,"create");return _nativeCreate=e}function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();return _hashClear=function(){this.__data__=e?e(null):{},this.size=0}}function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;return hasRequired_hashDelete=1,_hashDelete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashGet=function(n){var o=this.__data__;if(e){var i=o[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(o,n)?o[n]:void 0}}function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashHas=function(n){var o=this.__data__;return e?void 0!==o[n]:t.call(o,n)}}function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate();return _hashSet=function(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),n=require_hashGet(),o=require_hashHas(),i=require_hashSet();function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=o,r.prototype.set=i,_Hash=r}function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),n=require_Map();return _mapCacheClear=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;return hasRequired_isKeyable=1,_isKeyable=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();return _getMapData=function(t,n){var o=t.__data__;return e(n)?o["string"==typeof n?"string":"hash"]:o.map}}function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();return _mapCacheDelete=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();return _mapCacheGet=function(t){return e(this,t).get(t)}}function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();return _mapCacheHas=function(t){return e(this,t).has(t)}}function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();return _mapCacheSet=function(t,n){var o=e(this,t),i=o.size;return o.set(t,n),this.size+=o.size==i?0:1,this}}function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),n=require_mapCacheGet(),o=require_mapCacheHas(),i=require_mapCacheSet();function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=o,r.prototype.set=i,_MapCache=r}function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var e=require_ListCache(),t=require_Map(),n=require_MapCache();return _stackSet=function(o,i){var r=this.__data__;if(r instanceof e){var a=r.__data__;if(!t||a.length<199)return a.push([o,i]),this.size=++r.size,this;r=this.__data__=new n(a)}return r.set(o,i),this.size=r.size,this}}function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var e=require_ListCache(),t=require_stackClear(),n=require_stackDelete(),o=require_stackGet(),i=require_stackHas(),r=require_stackSet();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=o,a.prototype.has=i,a.prototype.set=r,_Stack=a}function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;return _setCacheAdd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;return hasRequired_setCacheHas=1,_setCacheHas=function(e){return this.__data__.has(e)}}function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var e=require_MapCache(),t=require_setCacheAdd(),n=require_setCacheHas();function o(t){var n=-1,o=null==t?0:t.length;for(this.__data__=new e;++n<o;)this.add(t[n])}return o.prototype.add=o.prototype.push=t,o.prototype.has=n,_SetCache=o}function require_arraySome(){if(hasRequired_arraySome)return _arraySome;return hasRequired_arraySome=1,_arraySome=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}}function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;return hasRequired_cacheHas=1,_cacheHas=function(e,t){return e.has(t)}}function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var e=require_SetCache(),t=require_arraySome(),n=require_cacheHas();return _equalArrays=function(o,i,r,a,s,l){var c=1&r,d=o.length,p=i.length;if(d!=p&&!(c&&p>d))return!1;var u=l.get(o),m=l.get(i);if(u&&m)return u==i&&m==o;var h=-1,g=!0,x=2&r?new e:void 0;for(l.set(o,i),l.set(i,o);++h<d;){var f=o[h],y=i[h];if(a)var S=c?a(y,f,h,i,o,l):a(f,y,h,o,i,l);if(void 0!==S){if(S)continue;g=!1;break}if(x){if(!t(i,function(e,t){if(!n(x,t)&&(f===e||s(f,e,r,a,l)))return x.push(t)})){g=!1;break}}else if(f!==y&&!s(f,y,r,a,l)){g=!1;break}}return l.delete(o),l.delete(i),g}}function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var e=require_root().Uint8Array;return _Uint8Array=e}function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;return hasRequired_mapToArray=1,_mapToArray=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,o){n[++t]=[o,e]}),n}}function require_setToArray(){if(hasRequired_setToArray)return _setToArray;return hasRequired_setToArray=1,_setToArray=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}}function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var e=require_Symbol(),t=require_Uint8Array(),n=requireEq(),o=require_equalArrays(),i=require_mapToArray(),r=require_setToArray(),a=e?e.prototype:void 0,s=a?a.valueOf:void 0;return _equalByTag=function(e,a,l,c,d,p,u){switch(l){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!p(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var m=i;case"[object Set]":var h=1&c;if(m||(m=r),e.size!=a.size&&!h)return!1;var g=u.get(e);if(g)return g==a;c|=2,u.set(e,a);var x=o(m(e),m(a),c,d,p,u);return u.delete(e),x;case"[object Symbol]":if(s)return s.call(e)==s.call(a)}return!1}}function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;return hasRequired_arrayPush=1,_arrayPush=function(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}}function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e}function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var e=require_arrayPush(),t=requireIsArray();return _baseGetAllKeys=function(n,o,i){var r=o(n);return t(n)?r:e(r,i(n))}}function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;return hasRequired_arrayFilter=1,_arrayFilter=function(e,t){for(var n=-1,o=null==e?0:e.length,i=0,r=[];++n<o;){var a=e[n];t(a,n,e)&&(r[i++]=a)}return r}}function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;return hasRequiredStubArray=1,stubArray_1=function(){return[]}}function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var e=require_arrayFilter(),t=requireStubArray(),n=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;return _getSymbols=o?function(t){return null==t?[]:(t=Object(t),e(o(t),function(e){return n.call(t,e)}))}:t}function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;return hasRequired_baseTimes=1,_baseTimes=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}}function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;return hasRequiredIsObjectLike=1,isObjectLike_1=function(e){return null!=e&&"object"==typeof e}}function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var e=require_baseGetTag(),t=requireIsObjectLike();return _baseIsArguments=function(n){return t(n)&&"[object Arguments]"==e(n)}}function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var e=require_baseIsArguments(),t=requireIsObjectLike(),n=Object.prototype,o=n.hasOwnProperty,i=n.propertyIsEnumerable,r=e(/* @__PURE__ */function(){return arguments}())?e:function(e){return t(e)&&o.call(e,"callee")&&!i.call(e,"callee")};return isArguments_1=r}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse,hasRequiredIsBuffer,_isIndex,hasRequired_isIndex,isLength_1,hasRequiredIsLength,_baseIsTypedArray,hasRequired_baseIsTypedArray,_baseUnary,hasRequired_baseUnary;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;return hasRequiredStubFalse=1,stubFalse_1=function(){return!1}}function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,e=isBuffer,t=isBuffer.exports,n=require_root(),o=requireStubFalse(),i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,a=r&&r.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||o,e.exports=s),isBuffer.exports;var e,t,n,o,i,r,a,s}function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var e=/^(?:0|[1-9]\d*)$/;return _isIndex=function(t,n){var o=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==o||"symbol"!=o&&e.test(t))&&t>-1&&t%1==0&&t<n}}function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;return isLength_1=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),n=requireIsObjectLike(),o={};return o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,_baseIsTypedArray=function(i){return n(i)&&t(i.length)&&!!o[e(i)]}}function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;return hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}}}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys,_getAllKeys,hasRequired_getAllKeys,_equalObjects,hasRequired_equalObjects,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,isEqual_1,hasRequiredIsEqual;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,e=_nodeUtil,t=_nodeUtil.exports,n=require_freeGlobal(),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,r=i&&i.exports===o&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(t){}}(),e.exports=a),_nodeUtil.exports;var e,t,n,o,i,r,a}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),n=require_nodeUtil(),o=n&&n.isTypedArray,i=o?t(o):e;return isTypedArray_1=i}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),n=requireIsArray(),o=requireIsBuffer(),i=require_isIndex(),r=requireIsTypedArray(),a=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(s,l){var c=n(s),d=!c&&t(s),p=!c&&!d&&o(s),u=!c&&!d&&!p&&r(s),m=c||d||p||u,h=m?e(s.length,String):[],g=h.length;for(var x in s)!l&&!a.call(s,x)||m&&("length"==x||p&&("offset"==x||"parent"==x)||u&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||i(x,g))||h.push(x);return h}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function require_overArg(){if(hasRequired_overArg)return _overArg;return hasRequired_overArg=1,_overArg=function(e,t){return function(n){return e(t(n))}}}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),n=Object.prototype.hasOwnProperty;return _baseKeys=function(o){if(!e(o))return t(o);var i=[];for(var r in Object(o))n.call(o,r)&&"constructor"!=r&&i.push(r);return i}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();return isArrayLike_1=function(n){return null!=n&&t(n.length)&&!e(n)}}function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),n=requireIsArrayLike();return keys_1=function(o){return n(o)?e(o):t(o)}}function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var e=require_baseGetAllKeys(),t=require_getSymbols(),n=requireKeys();return _getAllKeys=function(o){return e(o,n,t)}}function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var e=require_getAllKeys(),t=Object.prototype.hasOwnProperty;return _equalObjects=function(n,o,i,r,a,s){var l=1&i,c=e(n),d=c.length;if(d!=e(o).length&&!l)return!1;for(var p=d;p--;){var u=c[p];if(!(l?u in o:t.call(o,u)))return!1}var m=s.get(n),h=s.get(o);if(m&&h)return m==o&&h==n;var g=!0;s.set(n,o),s.set(o,n);for(var x=l;++p<d;){var f=n[u=c[p]],y=o[u];if(r)var S=l?r(y,f,u,o,n,s):r(f,y,u,n,o,s);if(!(void 0===S?f===y||a(f,y,i,r,s):S)){g=!1;break}x||(x="constructor"==u)}if(g&&!x){var C=n.constructor,$=o.constructor;C==$||!("constructor"in n)||!("constructor"in o)||"function"==typeof C&&C instanceof C&&"function"==typeof $&&$ instanceof $||(g=!1)}return s.delete(n),s.delete(o),g}}function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var e=require_getNative()(require_root(),"DataView");return _DataView=e}function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var e=require_getNative()(require_root(),"Promise");return _Promise=e}function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var e=require_getNative()(require_root(),"Set");return _Set=e}function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var e=require_getNative()(require_root(),"WeakMap");return _WeakMap=e}function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var e=require_DataView(),t=require_Map(),n=require_Promise(),o=require_Set(),i=require_WeakMap(),r=require_baseGetTag(),a=require_toSource(),s="[object Map]",l="[object Promise]",c="[object Set]",d="[object WeakMap]",p="[object DataView]",u=a(e),m=a(t),h=a(n),g=a(o),x=a(i),f=r;return(e&&f(new e(new ArrayBuffer(1)))!=p||t&&f(new t)!=s||n&&f(n.resolve())!=l||o&&f(new o)!=c||i&&f(new i)!=d)&&(f=function(e){var t=r(e),n="[object Object]"==t?e.constructor:void 0,o=n?a(n):"";if(o)switch(o){case u:return p;case m:return s;case h:return l;case g:return c;case x:return d}return t}),_getTag=f}function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var e=require_Stack(),t=require_equalArrays(),n=require_equalByTag(),o=require_equalObjects(),i=require_getTag(),r=requireIsArray(),a=requireIsBuffer(),s=requireIsTypedArray(),l="[object Arguments]",c="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;return _baseIsEqualDeep=function(u,m,h,g,x,f){var y=r(u),S=r(m),C=y?c:i(u),$=S?c:i(m),b=(C=C==l?d:C)==d,v=($=$==l?d:$)==d,E=C==$;if(E&&a(u)){if(!a(m))return!1;y=!0,b=!1}if(E&&!b)return f||(f=new e),y||s(u)?t(u,m,h,g,x,f):n(u,m,C,h,g,x,f);if(!(1&h)){var w=b&&p.call(u,"__wrapped__"),R=v&&p.call(m,"__wrapped__");if(w||R){var A=w?u.value():u,j=R?m.value():m;return f||(f=new e),x(A,j,h,g,f)}}return!!E&&(f||(f=new e),o(u,m,h,g,x,f))}}function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var e=require_baseIsEqualDeep(),t=requireIsObjectLike();return _baseIsEqual=function n(o,i,r,a,s){return o===i||(null==o||null==i||!t(o)&&!t(i)?o!=o&&i!=i:e(o,i,r,a,n,s))},_baseIsEqual}function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var e=require_baseIsEqual();return isEqual_1=function(t,n){return e(t,n)}}_nodeUtil.exports;var isEqualExports=requireIsEqual();const isEqual$5=/* @__PURE__ */getDefaultExportFromCjs(isEqualExports),WebV2MicroServiceContext=createContext(void 0),WebV2MicroService=()=>useContext(WebV2MicroServiceContext),WebV2MicroServiceProvider=e=>/* @__PURE__ */jsxRuntimeExports.jsx(WebV2MicroServiceContext.Provider,{value:e.endPoint,children:e.children}),{cockpit:cockpit$3}=appLocale.getLocalizedStrings(),DOMAIN_PATTERN=/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/i,EMAIL_PATTERN=/^[A-Z0-9_'%=+!`#~$*?^{}&|-]+([.][A-Z0-9_'%=+!`#~$*?^{}&|-]+)*@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$/i,ZENI_EMAIL_PATTERN=/^[A-Z0-9_'%=+!`#~$*?^{}&|-]+([.][A-Z0-9_'%=+!`#~$*?^{}&|-]+)*@(zeni.ai)+$/i,URL_PATTERN=/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{2,}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)?/gi,HTTP_OR_HTTPS_ABSOLUTE_URL_PATTERN=/^https?:\/\//i,QBO_JE_URL_PATTERN=/^((http|https):\/\/)?(www\.)?((app(\.sandbox)?\.)?(sandbox\.)?qbo\.intuit.com\/app\/journal\?txnid=[0-9]{1,})/gi,URL_MONTH_END_MATCHER=/((http|https):\/\/)?([a-z0-9-]+\.)?[a-z0-9-]+(\.[a-z]{2,}){1,3}(\/[a-z0-9.,_/~#&=;%+?-]*)?/is,SSN_FORMAT="###-##-####",TIN_FORMAT="##-#######",DIGITS_PATTERN=/^[0-9]+$/,NON_HYPHEN_SINGLE_CHARACTER_PATTERN=/^[^-\s][\s\S]*/,NON_HYPHEN_MULTI_CHARACTER_PATTERN=/^[^-\s][\s\S]*\S[\s\S]*/,ALLOW_HYPHEN_SINGLE_CHARACTER_PATTERN=/^[\s\S]*\S[\s\S]*/,ZENI_MEETING_URL_PATTERN=/^(http(s)?:\/\/)?(www\.)?((([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)?)(calendly\.com|chilipiper\.com|hubspot\.com)\/)([a-zA-Z0-9]{2,})([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)?/gi,ALPHA_NUMERIC_PATTERN=/^[a-zA-Z0-9]+$/g,REALM_ID=/^[a-zA-Z0-9_-]+$/g,SSN_PATTERN=/^(?!666|000|9\d{2})\d{3}-?(?!00)\d{2}-?(?!0{4})\d{4}$/,SWIFT_CODE=/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/,EMPTY_HTML_CHECKER=/<[^>]*>/g,TIN_PATTERN=/^\d{2}-?\d{7}$/,FILE_NAME_PATTERN=/filename*?=['\\"]?(?:UTF-d['\\"]*)?([^;\r\n\\"']*)['\\"]?;?/,BASE64_REMOVE_PREFIX=/^data:.+;base64,/,BASE64_JPEG_PAYLOAD_PREFIX=/^\/9j\//,MOBILE_OR_TAB=/BlackBerry|iPhone|Android|Windows Phone|iPad/i,APPLE_IPAD=/iPad/i,APPLE_IPHONE=/iPhone/i,ANDROID_MOBILE_OR_TAB=/Android/i,MACINTOSH="Macintosh",monthEndEditorTitle=cockpit$3.monthEndReport.editorTitle,monthEndEditorTitleEmail=monthEndEditorTitle.substring(0,monthEndEditorTitle.length-1),PARAGRAPH_CLASS_NAME="highlighted",MONTH_END_EDITOR_TITLE=new RegExp(`<\\w+\\b[^>]*>\\s*(${monthEndEditorTitle}|${monthEndEditorTitleEmail})\\s*</\\w+>\\s*(<br>\\s*)*`,"gi"),MONTH_END_BODY_SECTION=new RegExp(/<(\w+)>\s*Zeni\s+\w+\s+Insights\s*<\/\1>/),MONTH_END_PARAGRAPH_OPEN_TAG=new RegExp(`<p class="${PARAGRAPH_CLASS_NAME}">`,"g"),REACT_HOOK_FORM_REGISTER_NAME_EXCLUSIONS=/[,[\].]+?/g,ESCAPE_REGEX=/[-/\\^$*+?.()|[\]{}]/g,HTML_AMPERSAND_PATTERN=/&/g,HTML_LESS_THAN_PATTERN=/</g,HTML_GREATER_THAN_PATTERN=/>/g,CRLF_OR_CR_PATTERN=/\r\n?/g,getMarkdownPatterns=()=>[{pattern:/\*\*[^*]+\*\*/g,type:"bold"},{pattern:/\*[^*]+\*/g,type:"italic"},{pattern:/`[^`]+`/g,type:"code"},{pattern:/!?\[[^\]\n]+\]\((?:[^()\s]|\([^()\s]*\))+\)/g,type:"link"},{pattern:/^#{1,6}\s[^\n]+\n/gm,type:"header"},{pattern:/^- [^\n]+\n/gm,type:"list"},{pattern:/^\d+\. [^\n]+\n/gm,type:"numberedList"},{pattern:/^\|.*\|\n\|[ \t:|-]+\|(?:\n|$)(?:\|.*\|(?:\n|$))*/gm,type:"table"}],NON_DIGIT_PATTERN=/\D/g,{common:common$3j,dateFormat:dateFormat$1B}=appLocale.getLocalizedStrings(),HOURS_IN_WORK_DAY=8,DAYS_IN_WORK_WEEK=5,MINUTES_IN_HOUR=60,minutesInWorkingDay=HOURS_IN_WORK_DAY*MINUTES_IN_HOUR,minutesInWorkingWeek=DAYS_IN_WORK_WEEK*HOURS_IN_WORK_DAY*MINUTES_IN_HOUR,usePrevious$1=e=>{const t=useRef();return useEffect(()=>{t.current=e},[e]),t.current},useFocus=()=>{const e=useRef(null);return[e,t=>{!0===t?e.current?.blur():e.current?.focus()}]};function mergeRefs$2(...e){return t=>{for(const n of e)"function"==typeof n?n(t):n&&"object"==typeof n&&(n.current=t)}}const capitaliseWords=e=>e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(" "),useDeviceDetect=()=>{const[e,t]=useState(!1);return useEffect(()=>{const e=void 0===window.navigator?"":navigator.userAgent,n=Boolean(e.match(MOBILE_OR_TAB));t(n)},[]),{isMobileOrTabletScreen:e}},useIPadDeviceDetect=()=>{const[e,t]=useState(!1);return useEffect(()=>{const e=void 0===window.navigator?"":navigator.userAgent,n=Boolean(e.match(APPLE_IPAD))||Boolean(e.match(MACINTOSH))&&navigator.maxTouchPoints>0;t(n)},[]),{isIPadScreen:e}},useIPhoneDeviceDetect=()=>{const[e,t]=useState(!1);return useEffect(()=>{const e=void 0===window.navigator?"":navigator.userAgent,n=Boolean(e.match(APPLE_IPHONE));t(n)},[]),{isIPhoneScreen:e}},useAndroidDeviceDetect=()=>{const[e,t]=useState(!1);return useEffect(()=>{const e=void 0===window.navigator?"":navigator.userAgent,n=Boolean(e.match(ANDROID_MOBILE_OR_TAB));t(n)},[]),{isAndroidScreen:e}};function useLockBodyScroll(){React__default.useLayoutEffect(()=>{const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>document.body.style.overflow=e},[])}const useMusic=(e,t=!0)=>{const n=useRef(null),[o,i]=useState(!1);useEffect(()=>(t&&(null==n.current&&(n.current=new Audio),n.current.src=e,n.current.load()),()=>{n.current&&(n.current.pause(),n.current.src="")}),[e,t]);const r=useCallback(e=>{i(e)},[]);return useEffect(()=>{t&&n.current&&(o?n.current.play().catch(e=>{console.warn("Audio play failed",e)}):n.current.pause())},[o,t]),[o,r]},formHasDirtyFields=e=>"object"==typeof e&&(Array.isArray(e)?e.reduce((e,t)=>e="boolean"!=typeof t?e||formHasDirtyFields(t):e||t,!1):Object.keys(e).reduce((t,n)=>t="boolean"!=typeof e[n]?t||formHasDirtyFields(e[n]):t||e[n],!1)),capitalizeFirstLetter=e=>e.charAt(0).toUpperCase(),capitalizeFirstLetterString=e=>capitalizeFirstLetter(e)+e.slice(1),isZeniAIUser=(e,t)=>{if(null==t)return!1;const n=e.find(e=>e.userId===t);return n?.firstName===common$3j.texts.zeni&&n?.lastName===common$3j.texts.ai},getFullName$1=(e,t=!0,n=!1)=>{const{firstName:o,middleName:i,lastName:r,email:a}=e;let s=o;return i.length>0&&t&&(s+=` ${i}`),r.length>0&&(s+=` ${r}`),n&&null!=a&&a.length>0&&(s+=` ${a}`),s},getLoggedInUserName=e=>null!=e&&null!=e.firstName&&null!=e.lastName?`${e.firstName} ${e.lastName}`:common$3j.strings.empty,JPEG_IMAGE_BASE_64="data:image/jpeg;base64,",PNG_IMAGE_BASE_64="data:image/png;base64,",PDF_BASE_64="data:application/pdf;base64,",toInstitutionLogoDataUri=e=>{if(null==e?.base64)return e?.url?.href;return`${BASE64_JPEG_PAYLOAD_PREFIX.test(e.base64)?JPEG_IMAGE_BASE_64:PNG_IMAGE_BASE_64}${e.base64}`},SUCCESS_SOUND_SOURCE="https://storage.googleapis.com/zeni-apis.appspot.com/data/upload_complete_notification.mp3",base64FileSize=e=>{const t=e.replace(BASE64_REMOVE_PREFIX,""),n=RegExp(/=+$/).exec(t),o=n?n[0].length:0,i=3*(t.length-o)/4;return formatFileSize(i)},formatFileSize=(e,t=2)=>{if(0===e)return`0 ${common$3j.mb}`;const n=e/1024/1024;if(n<.01){return`${(e/1024).toFixed(t)} ${common$3j.kb}`}return`${n.toFixed(t)} ${common$3j.mb}`};function isDateMoreThanHoursAgo(e,t){/* @__PURE__ */
|
|
1014
1014
|
return((new Date).getTime()-t.getTime())/36e5>e}const isDateOfNDay=(e,t)=>{const n=dateNow().add(t,"d");return e.isSame(n,"date")},isDateOnOrBetweenRange=(e,t,n)=>n.isBetween(e,t)||n.format(dateFormat$1B.analytics.YYYYDashMMDashDDFormat)===e.format(dateFormat$1B.analytics.YYYYDashMMDashDDFormat),colors$1=[Colors.graphColor34,Colors.graphColor05,Colors.graphColor08,Colors.graphColor11,Colors.graphColor13,Colors.graphColor19,Colors.graphColor29,Colors.graphColor28,Colors.graphColor20,Colors.graphColor21,Colors.graphColor22,Colors.graphColor14,Colors.graphColor35,Colors.graphColor31,Colors.graphColor33,Colors.graphColor32,Colors.graphColor36,Colors.graphColor02,Colors.graphColor06,Colors.graphColor04,Colors.graphColor10,Colors.graphColor12,Colors.graphColor15,Colors.graphColor18,Colors.graphColor17,Colors.graphColor07],MAX_COLOR_INDEX=26,calculateScore=e=>e.split("").reduce((e,t)=>e+t.charCodeAt(0),0),getColorForALabel=e=>{const{label:t,index:n}=e,o=calculateScore(t);return null==n?colors$1[o%MAX_COLOR_INDEX]:colors$1[n%MAX_COLOR_INDEX]},waitFor=(e,t)=>new Promise((n,o)=>{let i=!0;const r=async()=>{const t=await e();if(t)return n(t);i&&setTimeout(r,100)};r(),null!=t&&setTimeout(()=>{i=!1,o(new Error("Timeout exceeded"))},t)}),toAbsoluteUrl=e=>e.startsWith("http://")||e.startsWith("https://")?e:"https://"+e,indexToStringMap=["First","Second"],mapIndexToString=e=>indexToStringMap[e]||"First",fetchAnimationData=async(e,t)=>{const n={animationFileName:t},o=encodeURIComponent(JSON.stringify(n)),i=await fetch(`${e}/animations?query=${o}`);if(!i.ok)throw new Error(`Failed to load Animation file: ${i.statusText}`);return i.json()},toMonthStr=e=>e<10?`0${e}`:`${e}`,toKebabCase=e=>e.trim().replace(/[. _]+/g,"-").toLowerCase(),generateDataTestId=(e,t)=>{const n=toKebabCase(e);return null!=t?`${n}-${toKebabCase(t)}`:n},scrollContainerToTargetAdjusted=(e,t)=>{if(null!=e&&null!=t){const n=e.getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop-100;t.scrollTo({top:n,behavior:"smooth"})}},scrollToTop=()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})};function escapeRegExp$1(e){return e.replace(ESCAPE_REGEX,"\\$&")}const formatToSentenceCase=e=>e.toLowerCase().charAt(0).toUpperCase()+e.slice(1),convertMinutesToDays=e=>Math.round(e/minutesInWorkingDay),convertMinutesToWeeks=e=>Math.round(e/minutesInWorkingWeek),formatIsoDateShort=e=>{if(null==e||""===e.trim())return null;const t=dateLocal(e);return t.isValid()?t.format(dateFormat$1B.visual.MMMDCommaYYYYformat):null},formatMonthYear=e=>{const[t,n]=e.split("-");return new Date(Number(t),Number(n)-1).toLocaleString("en-US",{month:"short",year:"2-digit"})},isValidYearMonthFormat=e=>{const t=e.match(/^(\d{4})-(\d{2})$/);if(!t)return!1;const[,n,o]=t,i=parseInt(n,10),r=parseInt(o,10);return i>=1900&&i<=2100&&r>=1&&r<=12},toYearMonthPeriodOrThrow=e=>{if(!isValidYearMonthFormat(e))throw new Error(`Invalid period format. Expected YYYY-MM, got: ${e}`);return e},isCurrentMonthPeriod=e=>{const[t,n]=e.split("-"),o=parseInt(t,10),i=parseInt(n,10);return dateNow().month()===i-1&&dateNow().year()===o},roundAmountIfNeeded=e=>Number.isInteger(e)?e:Number(e.toFixed(2)),flowFromUrl=()=>{if("undefined"==typeof window)return"unknown";const[,,e,t]=window.location.pathname.split("/");return t?`${e}.${t}`:e??"unknown"},isEqualProps=(e,t,n)=>n.every(n=>isEqual$5(e[n],t[n])),normalizeString$1=e=>e?.trim()?.replace(/[^a-zA-Z0-9]+/g,"_")?.toLocaleLowerCase()??"",DEEP_LINK_SCHEME="zeni://",isDeepLinkUrn=e=>e.trim().toLowerCase().startsWith(DEEP_LINK_SCHEME),INLINE_DEEP_LINK_PATTERN=/!?\[([^\]\n]*)\]\(\s*<?zeni:\/\/(?:[^()>\s]|\([^()\s]*\))*>?(?:\s+"[^"]*"|\s+'[^']*')?\s*\)/gi,CODE_SPAN_PATTERN=/(```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`)/g,DEEP_LINK_DEFINITION_PATTERN=/^[ \t]*\[([^\]]+)\]:[ \t]*<?zeni:\/\/\S*>?(?:[ \t]+(?:"[^"]*"|'[^']*'|\([^)]*\)))?[ \t]*\r?\n?/gim,stripDeepLinkMarkup=e=>{const t=String(e??""),n=e=>e.trim().replace(/\s+/g," ").toLowerCase(),o=t.split(CODE_SPAN_PATTERN),i=e=>e%2==0,r=/* @__PURE__ */new Set;return o.forEach((e,t)=>{if(i(t))for(const o of e.matchAll(DEEP_LINK_DEFINITION_PATTERN))r.add(n(o[1]))}),o.map((e,t)=>{if(!i(t))return e;let o=e.replace(INLINE_DEEP_LINK_PATTERN,"$1");return 0===r.size||(o=o.replace(DEEP_LINK_DEFINITION_PATTERN,"").replace(/!?\[([^\]\n]*)\]\[([^\]\n]*)\]/g,(e,t,o)=>{const i=o.trim(),a=i.length>0?i:t;return r.has(n(a))?t:e}).replace(/!?\[([^\]\n]+)\](?![([])/g,(e,t)=>r.has(n(t))?t:e)),o}).join("")},base64ToBytes=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),BASE64_CHUNK=8192,bytesToBase64=e=>{let t="";for(let n=0;n<e.length;n+=BASE64_CHUNK)t+=String.fromCharCode(...e.subarray(n,n+BASE64_CHUNK));return btoa(t)},aiCfoExportFileName=(e,t,n)=>`ai-cfo-${e.replace(/[^A-Za-z0-9]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase().slice(0,60).replace(/-+$/,"")||"answer"}-${t}-${dateNow().toISOString().slice(0,10).replace(/-/g,"")}.${n}`;function chainPropTypes(e,t){return"production"===process.env.NODE_ENV?()=>null:function(...n){return e(...n)||t(...n)}}function GlobalStyles(e){/* @__PURE__ */
|
|
@@ -1075,10 +1075,10 @@ return jsxRuntimeExports.jsxs(ButtonBase$1,{...h??getButtonColors(f,n),space:y,c
|
|
|
1075
1075
|
return jsxRuntimeExports.jsxs(React.Fragment,{children:[/* @__PURE__ */jsxRuntimeExports.jsx("div",{tabIndex:s?0:-1,onFocus:f,ref:c,"data-testid":"sentinelStart"}),/* @__PURE__ */React.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,u.current=e.target;const n=t.props.onFocus;n&&n(e)}}),/* @__PURE__ */jsxRuntimeExports.jsx("div",{tabIndex:s?0:-1,onFocus:f,ref:d,"data-testid":"sentinelEnd"})]})}function setRef$2(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function getContainer$2(e){return"function"==typeof e?e():e}"production"!==process.env.NODE_ENV&&(FocusTrap.propTypes={children:elementAcceptingRef,disableAutoFocus:PropTypes.bool,disableEnforceFocus:PropTypes.bool,disableRestoreFocus:PropTypes.bool,getTabbable:PropTypes.func,isEnabled:PropTypes.func,open:PropTypes.bool.isRequired}),"production"!==process.env.NODE_ENV&&(FocusTrap.propTypes=exactProp(FocusTrap.propTypes));const Portal=/* @__PURE__ */React.forwardRef(function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[r,a]=React.useState(null),s=useForkRef(/* @__PURE__ */React.isValidElement(n)?getReactElementRef(n):null,t);if(useEnhancedEffect(()=>{i||a(getContainer$2(o)||document.body)},[o,i]),useEnhancedEffect(()=>{if(r&&!i)return setRef$2(t,r),()=>{setRef$2(t,null)}},[t,r,i]),i){if(/* @__PURE__ */React.isValidElement(n)){const e={ref:s};/* @__PURE__ */
|
|
1076
1076
|
return React.cloneElement(n,e)}return n}return r?/* @__PURE__ */ReactDOM.createPortal(n,r):r});function isHostComponent(e){return"string"==typeof e}function appendOwnerState(e,t,n){return void 0===e||isHostComponent(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function resolveComponentProps(e,t,n){return"function"==typeof e?e(t,n):e}function extractEventHandlers(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function omitEventHandlers(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function mergeSlotProps$1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:i,className:r}=e;if(!t){const e=clsx$1(n?.className,r,i?.className,o?.className),t={...n?.style,...i?.style,...o?.style},a={...n,...i,...o};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=extractEventHandlers({...i,...o}),s=omitEventHandlers(o),l=omitEventHandlers(i),c=t(a),d=clsx$1(c?.className,n?.className,r,i?.className,o?.className),p={...c?.style,...n?.style,...i?.style,...o?.style},u={...c,...n,...l,...s};return d.length>0&&(u.className=d),Object.keys(p).length>0&&(u.style=p),{props:u,internalRef:c.ref}}function useSlot(e,t){const{className:n,elementType:o,ownerState:i,externalForwardedProps:r,internalForwardedProps:a,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...u}=r,m=d[e]||o,h=resolveComponentProps(p[e],i),{props:{component:g,...x},internalRef:f}=mergeSlotProps$1({className:n,...l,externalForwardedProps:"root"===e?u:void 0,externalSlotProps:h}),y=useForkRef(f,h?.ref,t.ref),S="root"===e?g||c:g;return[m,appendOwnerState(m,{..."root"===e&&!c&&!d[e]&&a,..."root"!==e&&!d[e]&&a,...x,...S&&!s&&{as:S},...S&&s&&{component:S},ref:y},i)]}function _extends$I(){return _extends$I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$I.apply(null,arguments)}function _objectWithoutPropertiesLoose$A(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function _setPrototypeOf$p(e,t){return(_setPrototypeOf$p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf$p(e,t)}"production"!==process.env.NODE_ENV&&(Portal.propTypes={children:PropTypes.node,container:PropTypes.oneOfType([HTMLElementType,PropTypes.func]),disablePortal:PropTypes.bool}),"production"!==process.env.NODE_ENV&&(Portal.propTypes=exactProp(Portal.propTypes));const config$1={disabled:!1};var timeoutsShape="production"!==process.env.NODE_ENV?PropTypes.oneOfType([PropTypes.number,PropTypes.shape({enter:PropTypes.number,exit:PropTypes.number,appear:PropTypes.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&PropTypes.oneOfType([PropTypes.string,PropTypes.shape({enter:PropTypes.string,exit:PropTypes.string,active:PropTypes.string}),PropTypes.shape({enter:PropTypes.string,enterDone:PropTypes.string,enterActive:PropTypes.string,exit:PropTypes.string,exitDone:PropTypes.string,exitActive:PropTypes.string})]);const TransitionGroupContext=React__default.createContext(null);var forceReflow=function(e){return e.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=/* @__PURE__ */function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var i,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(i=EXITED,o.appearStatus=ENTERING):i=ENTERED:i=t.unmountOnExit||t.mountOnEnter?UNMOUNTED:EXITED,o.state={status:i},o.nextCallback=null,o}_inheritsLoose$1(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===UNMOUNTED?{status:EXITED}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ENTERING&&n!==ENTERED&&(t=ENTERING):n!==ENTERING&&n!==ENTERED||(t=EXITING)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ReactDOM__default.findDOMNode(this);n&&forceReflow(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[ReactDOM__default.findDOMNode(this),o],r=i[0],a=i[1],s=this.getTimeouts(),l=o?s.appear:s.enter;!e&&!n||config$1.disabled?this.safeSetState({status:ENTERED},function(){t.props.onEntered(r)}):(this.props.onEnter(r,a),this.safeSetState({status:ENTERING},function(){t.props.onEntering(r,a),t.onTransitionEnd(l,function(){t.safeSetState({status:ENTERED},function(){t.props.onEntered(r,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:ReactDOM__default.findDOMNode(this);t&&!config$1.disabled?(this.props.onExit(o),this.safeSetState({status:EXITING},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:EXITED},function(){e.props.onExited(o)})})})):this.safeSetState({status:EXITED},function(){e.props.onExited(o)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ReactDOM__default.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],a=i[1];this.props.addEndListener(r,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===UNMOUNTED)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=_objectWithoutPropertiesLoose$A(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);
|
|
1077
1077
|
/* @__PURE__ */
|
|
1078
|
-
return React__default.createElement(TransitionGroupContext.Provider,{value:null},"function"==typeof n?n(e,o):React__default.cloneElement(React__default.Children.only(n),o))},t}(React__default.Component);function noop$
|
|
1078
|
+
return React__default.createElement(TransitionGroupContext.Provider,{value:null},"function"==typeof n?n(e,o):React__default.cloneElement(React__default.Children.only(n),o))},t}(React__default.Component);function noop$b(){}function _assertThisInitialized$p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function getChildMapping(e,t){var n=/* @__PURE__ */Object.create(null);return e&&Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&isValidElement$1(e)?t(e):e}(e)}),n}function mergeChildMappings(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,i=/* @__PURE__ */Object.create(null),r=[];for(var a in e)a in t?r.length&&(i[a]=r,r=[]):r.push(a);var s={};for(var l in t){if(i[l])for(o=0;o<i[l].length;o++){var c=i[l][o];s[i[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<r.length;o++)s[r[o]]=n(r[o]);return s}function getProp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function getInitialChildMapping(e,t){return getChildMapping(e.children,function(n){return cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:getProp(n,"appear",e),enter:getProp(n,"enter",e),exit:getProp(n,"exit",e)})})}function getNextChildMapping(e,t,n){var o=getChildMapping(e.children),i=mergeChildMappings(t,o);return Object.keys(i).forEach(function(r){var a=i[r];if(isValidElement$1(a)){var s=r in t,l=r in o,c=t[r],d=isValidElement$1(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&isValidElement$1(c)&&(i[r]=cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})):i[r]=cloneElement(a,{in:!1}):i[r]=cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:getProp(a,"exit",e),enter:getProp(a,"enter",e)})}}),i}Transition.contextType=TransitionGroupContext,Transition.propTypes="production"!==process.env.NODE_ENV?{nodeRef:PropTypes.shape({current:"undefined"==typeof Element?PropTypes.any:function(e,t,n,o,i,r){var a=e[t];return PropTypes.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,i,r)}}),children:PropTypes.oneOfType([PropTypes.func.isRequired,PropTypes.element.isRequired]).isRequired,in:PropTypes.bool,mountOnEnter:PropTypes.bool,unmountOnExit:PropTypes.bool,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,timeout:function(e){var t=timeoutsShape;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[e].concat(o))},addEndListener:PropTypes.func,onEnter:PropTypes.func,onEntering:PropTypes.func,onEntered:PropTypes.func,onExit:PropTypes.func,onExiting:PropTypes.func,onExited:PropTypes.func}:{},Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$b,onEntering:noop$b,onEntered:noop$b,onExit:noop$b,onExiting:noop$b,onExited:noop$b},Transition.UNMOUNTED=UNMOUNTED,Transition.EXITED=EXITED,Transition.ENTERING=ENTERING,Transition.ENTERED=ENTERED,Transition.EXITING=EXITING;var values=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},defaultProps$7={component:"div",childFactory:function(e){return e}},TransitionGroup=/* @__PURE__ */function(e){function t(t,n){var o,i=(o=e.call(this,t,n)||this).handleExited.bind(_assertThisInitialized$p(o));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}_inheritsLoose$1(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,o=t.handleExited;return{children:t.firstRender?getInitialChildMapping(e,o):getNextChildMapping(e,n,o),firstRender:!1}},n.handleExited=function(e,t){var n=getChildMapping(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=_extends$I({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=_objectWithoutPropertiesLoose$A(e,["component","childFactory"]),i=this.state.contextValue,r=values(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?/* @__PURE__ */React__default.createElement(TransitionGroupContext.Provider,{value:i},r):/* @__PURE__ */React__default.createElement(TransitionGroupContext.Provider,{value:i},/* @__PURE__ */React__default.createElement(t,o,r))},t}(React__default.Component);TransitionGroup.propTypes="production"!==process.env.NODE_ENV?{component:PropTypes.any,children:PropTypes.node,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,childFactory:PropTypes.func}:{},TransitionGroup.defaultProps=defaultProps$7;const reflow=e=>e.scrollTop;function normalizedTransitionCallback(e,t){return n=>{if(t){const o=e.current;void 0===n?t(o):t(o,n)}}}function getTransitionChildStyle(e,t,n,o,i,r){const a="exited"!==e||t?n[e]||n.exited:o;return i||r?{...a,...i,...r}:a}function getTransitionProps(e,t){const{timeout:n,easing:o,style:i={}}=e;return{duration:i.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:i.transitionTimingFunction??("object"==typeof o?o[t.mode]:o),delay:i.transitionDelay}}const styles$2={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},hiddenStyles$2={opacity:0,visibility:"hidden"},Fade=/* @__PURE__ */React.forwardRef(function(e,t){const n=useTheme(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:r=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:u,onExited:m,onExiting:h,style:g,timeout:x=o,...f}=e,y=React.useRef(null),S=useForkRef(y,getReactElementRef(a),t),C=normalizedTransitionCallback(y,p),$=normalizedTransitionCallback(y,(e,t)=>{reflow(e);const o=getTransitionProps({style:g,timeout:x,easing:s},{mode:"enter"});e.style.transition=n.transitions.create("opacity",o),c&&c(e,t)}),b=normalizedTransitionCallback(y,d),v=normalizedTransitionCallback(y,h),E=normalizedTransitionCallback(y,e=>{const t=getTransitionProps({style:g,timeout:x,easing:s},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),u&&u(e)}),w=normalizedTransitionCallback(y,e=>{e.style.transition="",m&&m(e)});/* @__PURE__ */
|
|
1079
1079
|
return jsxRuntimeExports.jsx(Transition,{appear:r,in:l,nodeRef:y,onEnter:$,onEntered:b,onEntering:C,onExit:E,onExited:w,onExiting:v,addEndListener:e=>{i&&i(y.current,e)},timeout:x,...f,children:(e,{ownerState:t,...n})=>{const o=getTransitionChildStyle(e,l,styles$2,hiddenStyles$2,g,a.props.style);/* @__PURE__ */
|
|
1080
1080
|
return React.cloneElement(a,{style:o,ref:S,...n})}})});function getBackdropUtilityClass(e){return generateUtilityClass("MuiBackdrop",e)}"production"!==process.env.NODE_ENV&&(Fade.propTypes={addEndListener:PropTypes.func,appear:PropTypes.bool,children:elementAcceptingRef.isRequired,easing:PropTypes.oneOfType([PropTypes.shape({enter:PropTypes.string,exit:PropTypes.string}),PropTypes.string]),in:PropTypes.bool,onEnter:PropTypes.func,onEntered:PropTypes.func,onEntering:PropTypes.func,onExit:PropTypes.func,onExited:PropTypes.func,onExiting:PropTypes.func,style:PropTypes.object,timeout:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})])}),generateUtilityClasses("MuiBackdrop",["root","invisible"]);const useUtilityClasses$t=e=>{const{classes:t,invisible:n}=e;return composeClasses({root:["root",n&&"invisible"]},getBackdropUtilityClass,t)},BackdropRoot=styled("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Backdrop$1=/* @__PURE__ */React.forwardRef(function(e,t){const n=useDefaultProps({props:e,name:"MuiBackdrop"}),{children:o,className:i,component:r="div",invisible:a=!1,open:s,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:u,transitionDuration:m,...h}=n,g={...n,component:r,invisible:a},x=useUtilityClasses$t(g),f={component:r,slots:{transition:u,root:l.Root,...p},slotProps:{...c,...d}},[y,S]=useSlot("root",{elementType:BackdropRoot,externalForwardedProps:f,className:clsx$1(x.root,i),ownerState:g}),[C,$]=useSlot("transition",{elementType:Fade,externalForwardedProps:f,ownerState:g});/* @__PURE__ */
|
|
1081
|
-
return jsxRuntimeExports.jsx(C,{in:s,timeout:m,...h,...$,children:/* @__PURE__ */jsxRuntimeExports.jsx(y,{"aria-hidden":!0,...S,ref:t,children:o})})});function useEventCallback(e){const t=React.useRef(e);return useEnhancedEffect(()=>{t.current=e}),React.useRef((...e)=>(0,t.current)(...e)).current}function createChainedFunction(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function getContainer$1(e){return"function"==typeof e?e():e}function getHasTransition(e){return!!e&&e.props.hasOwnProperty("in")}"production"!==process.env.NODE_ENV&&(Backdrop$1.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,component:PropTypes.elementType,components:PropTypes.shape({Root:PropTypes.elementType}),componentsProps:PropTypes.shape({root:PropTypes.object}),invisible:PropTypes.bool,open:PropTypes.bool.isRequired,slotProps:PropTypes.shape({root:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),transition:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),slots:PropTypes.shape({root:PropTypes.elementType,transition:PropTypes.elementType}),sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),TransitionComponent:PropTypes.elementType,transitionDuration:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})])});const noop$
|
|
1081
|
+
return jsxRuntimeExports.jsx(C,{in:s,timeout:m,...h,...$,children:/* @__PURE__ */jsxRuntimeExports.jsx(y,{"aria-hidden":!0,...S,ref:t,children:o})})});function useEventCallback(e){const t=React.useRef(e);return useEnhancedEffect(()=>{t.current=e}),React.useRef((...e)=>(0,t.current)(...e)).current}function createChainedFunction(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function getContainer$1(e){return"function"==typeof e?e():e}function getHasTransition(e){return!!e&&e.props.hasOwnProperty("in")}"production"!==process.env.NODE_ENV&&(Backdrop$1.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,component:PropTypes.elementType,components:PropTypes.shape({Root:PropTypes.elementType}),componentsProps:PropTypes.shape({root:PropTypes.object}),invisible:PropTypes.bool,open:PropTypes.bool.isRequired,slotProps:PropTypes.shape({root:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),transition:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),slots:PropTypes.shape({root:PropTypes.elementType,transition:PropTypes.elementType}),sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),TransitionComponent:PropTypes.elementType,transitionDuration:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})])});const noop$a=()=>{},manager$3=new ModalManager;function useModal(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:i=!1,onTransitionEnter:r,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:d}=e,p=React.useRef({}),u=React.useRef(null),m=React.useRef(null),h=useForkRef(m,d),[g,x]=React.useState(!c),f=getHasTransition(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=u.current,p.current),C=()=>{manager$3.mount(S(),{disableScrollLock:o}),m.current&&(m.current.scrollTop=0)},$=useEventCallback(()=>{const e=getContainer$1(t)||ownerDocument(u.current).body;manager$3.add(S(),e),m.current&&C()}),b=()=>manager$3.isTopModal(S()),v=useEventCallback(e=>{u.current=e,e&&(c&&b()?C():m.current&&ariaHidden(m.current,y))}),E=React.useCallback(()=>{manager$3.remove(S(),y)},[y]);React.useEffect(()=>()=>{E()},[E]),React.useEffect(()=>{c?$():f&&i||E()},[c,E,f,i,$]);const w=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&b()&&(n||(t.stopPropagation(),l&&l(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&l&&l(t,"backdropClick")};return{getRootProps:(t={})=>{const n=extractEventHandlers(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o={...n,...t};return{role:"presentation",...o,onKeyDown:w(o),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:c}},getTransitionProps:()=>({onEnter:createChainedFunction(()=>{x(!1),r&&r()},s?.props.onEnter??noop$a),onExited:createChainedFunction(()=>{x(!0),a&&a(),i&&E()},s?.props.onExited??noop$a)}),rootRef:h,portalRef:v,isTopModal:b,exited:g,hasTransition:f}}function getModalUtilityClass(e){return generateUtilityClass("MuiModal",e)}generateUtilityClasses("MuiModal",["root","hidden","backdrop"]);const useUtilityClasses$s=e=>{const{open:t,exited:n,classes:o}=e;return composeClasses({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},getModalUtilityClass,o)},ModalRoot=styled("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(memoTheme(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),ModalBackdrop=styled(Backdrop$1,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Modal$1=/* @__PURE__ */React.forwardRef(function(e,t){const n=useDefaultProps({name:"MuiModal",props:e}),{BackdropComponent:o=ModalBackdrop,BackdropProps:i,classes:r,className:a,closeAfterTransition:s=!1,children:l,container:c,component:d,components:p={},componentsProps:u={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:f=!1,disableScrollLock:y=!1,hideBackdrop:S=!1,keepMounted:C=!1,onClose:$,onTransitionEnter:b,onTransitionExited:v,open:E,slotProps:w={},slots:R={},theme:A,...j}=n,T={...n,closeAfterTransition:s,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:f,disableScrollLock:y,hideBackdrop:S,keepMounted:C},{getRootProps:I,getBackdropProps:k,getTransitionProps:L,portalRef:D,isTopModal:_,exited:P,hasTransition:B}=useModal({...T,rootRef:t}),M={...T,exited:P},O=useUtilityClasses$s(M),F={};if(void 0===l.props.tabIndex&&(F.tabIndex="-1"),B){const{onEnter:e,onExited:t}=L();F.onEnter=e,F.onExited=t}const N={slots:{root:p.Root,backdrop:p.Backdrop,...R},slotProps:{...u,...w}},[z,H]=useSlot("root",{ref:t,elementType:ModalRoot,externalForwardedProps:{...N,...j,component:d},getSlotProps:I,ownerState:M,className:clsx$1(a,O?.root,!M.open&&M.exited&&O?.hidden)}),[V,W]=useSlot("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:clsx$1(i?.className,O?.backdrop),ownerState:M});return C||E||B&&!P?/* @__PURE__ */jsxRuntimeExports.jsx(Portal,{ref:D,container:c,disablePortal:x,children:/* @__PURE__ */jsxRuntimeExports.jsxs(z,{...H,children:[!S&&o?/* @__PURE__ */jsxRuntimeExports.jsx(V,{...W}):null,/* @__PURE__ */jsxRuntimeExports.jsx(FocusTrap,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:f,isEnabled:_,open:E,children:/* @__PURE__ */React.cloneElement(l,F)})]})}):null});"production"!==process.env.NODE_ENV&&(Modal$1.propTypes={BackdropComponent:PropTypes.elementType,BackdropProps:PropTypes.object,children:elementAcceptingRef.isRequired,classes:PropTypes.object,className:PropTypes.string,closeAfterTransition:PropTypes.bool,component:PropTypes.elementType,components:PropTypes.shape({Backdrop:PropTypes.elementType,Root:PropTypes.elementType}),componentsProps:PropTypes.shape({backdrop:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),root:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),container:PropTypes.oneOfType([HTMLElementType,PropTypes.func]),disableAutoFocus:PropTypes.bool,disableEnforceFocus:PropTypes.bool,disableEscapeKeyDown:PropTypes.bool,disablePortal:PropTypes.bool,disableRestoreFocus:PropTypes.bool,disableScrollLock:PropTypes.bool,hideBackdrop:PropTypes.bool,keepMounted:PropTypes.bool,onClose:PropTypes.func,onTransitionEnter:PropTypes.func,onTransitionExited:PropTypes.func,open:PropTypes.bool.isRequired,slotProps:PropTypes.shape({backdrop:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),root:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),slots:PropTypes.shape({backdrop:PropTypes.elementType,root:PropTypes.elementType}),sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object])});const Container$7F=styled$2.div`
|
|
1082
1082
|
position: absolute;
|
|
1083
1083
|
top: 50%;
|
|
1084
1084
|
left: 50%;
|
|
@@ -2284,7 +2284,7 @@ return jsxRuntimeExports.jsxs(AiCfoOnboardingPageContainer,{windowSize:u,style:o
|
|
|
2284
2284
|
gap: ${({windowSize:e})=>D$51.tileGap.valuePx(e)};
|
|
2285
2285
|
align-items: stretch;
|
|
2286
2286
|
min-width: 0;
|
|
2287
|
-
`;var now_1,hasRequiredNow,_trimmedEndIndex,hasRequired_trimmedEndIndex,_baseTrim,hasRequired_baseTrim,isSymbol_1,hasRequiredIsSymbol,toNumber_1,hasRequiredToNumber,debounce_1,hasRequiredDebounce;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var e=require_root();return now_1=function(){return e.Date.now()}}function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var e=/\s/;return _trimmedEndIndex=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var e=require_trimmedEndIndex(),t=/^\s+/;return _baseTrim=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isSymbol_1=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var e=require_baseTrim(),t=requireIsObject(),n=requireIsSymbol(),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt;return toNumber_1=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=t(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var c=i.test(s);return c||r.test(s)?a(s.slice(2),c?2:8):o.test(s)?NaN:+s}}function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var e=requireIsObject(),t=requireNow(),n=requireToNumber(),o=Math.max,i=Math.min;return debounce_1=function(r,a,s){var l,c,d,p,u,m,h=0,g=!1,x=!1,f=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function y(e){var t=l,n=c;return l=c=void 0,h=e,p=r.apply(n,t)}function S(e){var t=e-m;return void 0===m||t>=a||t<0||x&&e-h>=d}function C(){var e=t();if(S(e))return $(e);u=setTimeout(C,function(e){var t=a-(e-m);return x?i(t,d-(e-h)):t}(e))}function $(e){return u=void 0,f&&l?y(e):(l=c=void 0,p)}function b(){var e=t(),n=S(e);if(l=arguments,c=this,m=e,n){if(void 0===u)return function(e){return h=e,u=setTimeout(C,a),g?y(e):p}(m);if(x)return clearTimeout(u),u=setTimeout(C,a),y(m)}return void 0===u&&(u=setTimeout(C,a)),p}return a=n(a)||0,e(s)&&(g=!!s.leading,d=(x="maxWait"in s)?o(n(s.maxWait)||0,a):d,f="trailing"in s?!!s.trailing:f),b.cancel=function(){void 0!==u&&clearTimeout(u),h=0,l=m=c=u=void 0},b.flush=function(){return void 0===u?p:$(t())},b},debounce_1}var debounceExports=requireDebounce();const debounce=/* @__PURE__ */getDefaultExportFromCjs(debounceExports);var DynamicConfigNamesCockpit=/* @__PURE__ */(e=>(e.cardsTabCockpitUser="cards_tab_cockpit_enabled_users",e.monthEndInsightsEnablement="month_end_insights_enablement",e.expenseAutomationEnablement="expense_automation_enablement",e.monthEndPreviewEnablement="month_end_preview_enablement",e.qboConnectionPoolEnablement="qbo_connection_pool_enablement",e.aiAccountantOnboardingConfig="ai_accountant_onboarding_config",e.creditAgentEnablement="credit_agent_enablement",e.cockpitControlsConfig="cockpit_controls_config",e))(DynamicConfigNamesCockpit||{}),DynamicConfigNamesWebApp=/* @__PURE__ */(e=>(e.treDynamicConfig="tre_dynamic_config",e.documentAiReceiptMaxSizeLimitBytesConfig="document_ai_receipt_max_size_limit_bytes_config",e.meetingLinksConfig="meeting_links_config",e.zeniAssistConfig="zeni_assist_config",e.zeniCardsConfig="zeni_cards_config",e.zeniAccountsConfig="deposit_accounts_config",e.expressPayConfig="express_pay_config",e.accountReconGLAccountsConfig="account_recon_gl_accounts_config",e.treasuryConfig="treasury_config",e.newTagOnMenuConfig="new_tag_on_menu_config",e.sameDayAchDisablementConfig="same_day_ach_disablement_config",e.aiCfoMessageDynamicConfig="ai_cfo_message_dynamic_config",e.aiCfoDiscoveryTipsConfig="ai_cfo_discovery_tips_config",e.webappPrefetchConfig="webapp_prefetch_config",e.expenseAutomationEnablementZeniUsers="expense_automation_enablement_zeni_users",e.approvalRuleV3Config="approval_rule_v3_config",e.transactionCategorizationConfig="transaction_categorization_config",e.zeniCardsVisibilityConfig="zeni_cards_visibility_config",e.updateTransactionTypeConfig="update_transaction_type_config",e.resetKycKybConfig="reset_kyc_kyb_config",e))(DynamicConfigNamesWebApp||{}),DynamicConfigNamesShared=/* @__PURE__ */(e=>(e.sessionAutoLogoutConfig="session_auto_logout_config",e))(DynamicConfigNamesShared||{});const DynamicConfigNames={...DynamicConfigNamesCockpit,...DynamicConfigNamesWebApp,...DynamicConfigNamesShared};var noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;return hasRequiredNoop=1,noop_1=function(){}}var noopExports=requireNoop();const noop$8=/* @__PURE__ */getDefaultExportFromCjs(noopExports);var src$2={},src$1={},$_StatsigGlobal={},Log={},hasRequiredLog$1,hasRequired$_StatsigGlobal;function requireLog$1(){return hasRequiredLog$1||(hasRequiredLog$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Log=e.LogLevel=void 0;function t(e){return e.unshift("[Statsig]"),e}e.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...o){n.level>=e.LogLevel.Info&&console.info(" INFO ",...t(o))}static debug(...o){n.level>=e.LogLevel.Debug&&console.debug(" DEBUG ",...t(o))}static warn(...o){n.level>=e.LogLevel.Warn&&console.warn(" WARN ",...t(o))}static error(...o){n.level>=e.LogLevel.Error&&console.error(" ERROR ",...t(o))}}e.Log=n,n.level=e.LogLevel.Warn}(Log)),Log}function require$_StatsigGlobal(){return hasRequired$_StatsigGlobal||(hasRequired$_StatsigGlobal=1,function(e){var t,n,o;Object.defineProperty(e,"__esModule",{value:!0}),e._getInstance=e._getStatsigGlobalFlag=e._getStatsigGlobal=void 0;const i=requireLog$1();e._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:c}catch(e){return c}};e._getStatsigGlobalFlag=t=>(0,e._getStatsigGlobal)()[t];e._getInstance=t=>{const n=(0,e._getStatsigGlobal)();return t?n.instances&&n.instances[t]:(n.instances&&Object.keys(n.instances).length>1&&i.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),n.firstInstance)};const r="__STATSIG__",a="undefined"!=typeof window?window:{},s=void 0!==commonjsGlobal$1?commonjsGlobal$1:{},l="undefined"!=typeof globalThis?globalThis:{},c=null!==(o=null!==(n=null!==(t=a[r])&&void 0!==t?t:s[r])&&void 0!==n?n:l[r])&&void 0!==o?o:{instance:e._getInstance};a[r]=c,s[r]=c,l[r]=c}($_StatsigGlobal)),$_StatsigGlobal}var Diagnostics={},hasRequiredDiagnostics;function requireDiagnostics(){return hasRequiredDiagnostics||(hasRequiredDiagnostics=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Diagnostics=void 0;const t=/* @__PURE__ */new Map,n="start",o="end",i="statsig::diagnostics";function r(e,t,n,o){return Object.assign({key:n,action:t,step:o,timestamp:Date.now()},e)}function a(e,n){var o;const i=null!==(o=t.get(e))&&void 0!==o?o:[];i.push(n),t.set(e,i)}function s(e,t){if(t in e)return e[t]}e.Diagnostics={_getMarkers:e=>t.get(e),_markInitOverallStart:e=>{a(e,r({},n,"overall"))},_markInitOverallEnd:(e,t,n)=>{a(e,r({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},o,"overall"))},_markInitNetworkReqStart:(e,t)=>{a(e,r(t,n,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{a(e,r(t,o,"initialize","network_request"))},_markInitProcessStart:e=>{a(e,r({},n,"initialize","process"))},_markInitProcessEnd:(e,t)=>{a(e,r(t,o,"initialize","process"))},_clearMarkers:e=>{t.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:s(e,"code"),name:s(e,"name"),message:s(e,"message")}},_getDiagnosticsData(t,n,o,i){var r;return{success:!0===(null==t?void 0:t.ok),statusCode:null==t?void 0:t.status,sdkRegion:null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r.get("x-statsig-region"),isDelta:!0===o.includes('"is_delta":true')||void 0,attempt:n,error:e.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(t,n,o,r){const a=e.Diagnostics._getMarkers(o);if(null==a||a.length<=0)return-1;const s=a[a.length-1].timestamp-a[0].timestamp;e.Diagnostics._clearMarkers(o);const l=function(e,t){const n={eventName:i,user:e,value:null,metadata:t,time:Date.now()};return n}(t,{context:"initialize",markers:a.slice(),statsigOptions:r});return n.enqueue(l),s}}}(Diagnostics)),Diagnostics}var EventLogger={},BatchedEventsQueue={},EventBatch={},hasRequiredEventBatch;function requireEventBatch(){if(hasRequiredEventBatch)return EventBatch;hasRequiredEventBatch=1,Object.defineProperty(EventBatch,"__esModule",{value:!0}),EventBatch.EventBatch=void 0;return EventBatch.EventBatch=class{constructor(e){this.attempts=0,this.createdAt=Date.now(),this.events=e}incrementAttempts(){this.attempts++}},EventBatch}var EventRetryConstants={},hasRequiredEventRetryConstants,hasRequiredBatchedEventsQueue;function requireEventRetryConstants(){return hasRequiredEventRetryConstants||(hasRequiredEventRetryConstants=1,Object.defineProperty(EventRetryConstants,"__esModule",{value:!0}),EventRetryConstants.EventRetryConstants=void 0,EventRetryConstants.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1e3,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}),EventRetryConstants}function requireBatchedEventsQueue(){if(hasRequiredBatchedEventsQueue)return BatchedEventsQueue;hasRequiredBatchedEventsQueue=1,Object.defineProperty(BatchedEventsQueue,"__esModule",{value:!0}),BatchedEventsQueue.BatchQueue=void 0;const e=requireEventBatch(),t=requireEventRetryConstants();return BatchedEventsQueue.BatchQueue=class{constructor(e=t.EventRetryConstants.DEFAULT_BATCH_SIZE){this._batches=[],this._batchSize=e}batchSize(){return this._batchSize}requeueBatch(e){return this._enqueueBatch(e)}hasFullBatch(){return this._batches.some(e=>e.events.length>=this._batchSize)}takeNextBatch(){return this._batches.shift()}takeAllBatches(){const e=this._batches;return this._batches=[],e}createBatches(t){let n=0,o=0;for(;n<t.length;){const i=t.slice(n,n+this._batchSize);o+=this._enqueueBatch(new e.EventBatch(i)),n+=this._batchSize}return o}_enqueueBatch(e){this._batches.push(e);let n=0;for(;this._batches.length>t.EventRetryConstants.MAX_PENDING_BATCHES;){const e=this._batches.shift();e&&(n+=e.events.length)}return n}},BatchedEventsQueue}var CacheKey={},Hashing={},TypingUtils={},hasRequiredTypingUtils,hasRequiredHashing,hasRequiredCacheKey;function requireTypingUtils(){if(hasRequiredTypingUtils)return TypingUtils;return hasRequiredTypingUtils=1,Object.defineProperty(TypingUtils,"__esModule",{value:!0}),TypingUtils._isTypeMatch=TypingUtils._typeOf=void 0,TypingUtils._typeOf=function(e){return Array.isArray(e)?"array":typeof e},TypingUtils._isTypeMatch=function(e,t){const n=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return n(e)===n(t)},TypingUtils}function requireHashing(){return hasRequiredHashing||(hasRequiredHashing=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._getSortedObject=e._DJB2Object=e._DJB2=void 0;const t=requireTypingUtils();e._DJB2=e=>{let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return String(t>>>0)};e._DJB2Object=(t,n)=>(0,e._DJB2)(JSON.stringify((0,e._getSortedObject)(t,n)));e._getSortedObject=(n,o)=>{if(null==n)return null;const i=Object.keys(n).sort(),r={};return i.forEach(i=>{const a=n[i];0!==o&&"object"===(0,t._typeOf)(a)?r[i]=(0,e._getSortedObject)(a,null!=o?o-1:o):r[i]=a}),r}}(Hashing)),Hashing}function requireCacheKey(){if(hasRequiredCacheKey)return CacheKey;hasRequiredCacheKey=1,Object.defineProperty(CacheKey,"__esModule",{value:!0}),CacheKey._getStorageKey=CacheKey._getUserStorageKey=void 0;const e=requireHashing();function t(t,n,o){var i;if(o)return o(t,n);const r=n&&n.customIDs?n.customIDs:{},a=[`uid:${null!==(i=null==n?void 0:n.userID)&&void 0!==i?i:""}`,`cids:${Object.keys(r).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${r[e]}`).join(",")}`,`k:${t}`];return(0,e._DJB2)(a.join("|"))}return CacheKey._getUserStorageKey=t,CacheKey._getStorageKey=function(n,o,i){return o?t(n,o,i):(0,e._DJB2)(`k:${n}`)},CacheKey}var FlushCoordinator={},EventSender={},NetworkConfig={},hasRequiredNetworkConfig;function requireNetworkConfig(){return hasRequiredNetworkConfig||(hasRequiredNetworkConfig=1,e=NetworkConfig,Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkParam=e.NetworkDefault=e.Endpoint=void 0,e.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},e.NetworkDefault={[e.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[e.Endpoint._initialize]:"https://featureassets.org/v1",[e.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},e.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}),NetworkConfig;var e}var SDKType={},hasRequiredSDKType;function requireSDKType(){if(hasRequiredSDKType)return SDKType;hasRequiredSDKType=1,Object.defineProperty(SDKType,"__esModule",{value:!0}),SDKType.SDKType=void 0;const e={};let t;return SDKType.SDKType={_get:n=>{var o;return(null!==(o=e[n])&&void 0!==o?o:"js-mono")+(null!=t?t:"")},_setClientType(t,n){e[t]=n},_setBindingType(e){t&&"-react"!==t||(t="-"+e)}},SDKType}var StatsigMetadata={},hasRequiredStatsigMetadata;function requireStatsigMetadata(){return hasRequiredStatsigMetadata||(hasRequiredStatsigMetadata=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigMetadataProvider=e.SDK_VERSION=void 0,e.SDK_VERSION="3.33.0";let t={sdkVersion:e.SDK_VERSION,sdkType:"js-mono"};e.StatsigMetadataProvider={get:()=>t,add:e=>{t=Object.assign(Object.assign({},t),e)}}}(StatsigMetadata)),StatsigMetadata}var VisibilityObserving={},SafeJs={},hasRequiredSafeJs,hasRequiredVisibilityObserving,hasRequiredEventSender;function requireSafeJs(){return hasRequiredSafeJs||(hasRequiredSafeJs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._cloneObject=e._getUnloadEvent=e._getCurrentPageUrlSafe=e._addDocumentEventListenerSafe=e._addWindowEventListenerSafe=e._isServerEnv=e._getDocumentSafe=e._getWindowSafe=void 0;const t=requireLog$1();e._getWindowSafe=()=>"undefined"!=typeof window?window:null;e._getDocumentSafe=()=>{var t;const n=(0,e._getWindowSafe)();return null!==(t=null==n?void 0:n.document)&&void 0!==t?t:null};e._isServerEnv=()=>{if(null!==(0,e._getDocumentSafe)())return!1;const t="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||t};e._addWindowEventListenerSafe=(t,n)=>{const o=(0,e._getWindowSafe)();"function"==typeof(null==o?void 0:o.addEventListener)&&o.addEventListener(t,n)};e._addDocumentEventListenerSafe=(t,n)=>{const o=(0,e._getDocumentSafe)();"function"==typeof(null==o?void 0:o.addEventListener)&&o.addEventListener(t,n)};e._getCurrentPageUrlSafe=()=>{var t;try{return null===(t=(0,e._getWindowSafe)())||void 0===t?void 0:t.location.href.split(/[?#]/)[0]}catch(n){return}};e._getUnloadEvent=()=>{const t=(0,e._getWindowSafe)();if(!t)return"beforeunload";return"onpagehide"in t?"pagehide":"beforeunload"};e._cloneObject=(e,n)=>{try{return JSON.parse(JSON.stringify(n))}catch(o){return t.Log.error(`Failed to clone object ${e}`),null}}}(SafeJs)),SafeJs}function requireVisibilityObserving(){return hasRequiredVisibilityObserving||(hasRequiredVisibilityObserving=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._notifyVisibilityChanged=e._subscribeToVisiblityChanged=e._isUnloading=e._isCurrentlyVisible=void 0;const t=requireSafeJs(),n="foreground",o="background",i=[];let r=n,a=!1;e._isCurrentlyVisible=()=>r===n;e._isUnloading=()=>a;e._subscribeToVisiblityChanged=e=>{i.unshift(e)};e._notifyVisibilityChanged=e=>{e!==r&&(r=e,i.forEach(t=>t(e)))},(0,t._addWindowEventListenerSafe)("focus",()=>{a=!1,(0,e._notifyVisibilityChanged)(n)}),(0,t._addWindowEventListenerSafe)("blur",()=>(0,e._notifyVisibilityChanged)(o)),(0,t._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,e._notifyVisibilityChanged)("visible"===document.visibilityState?n:o)}),(0,t._addWindowEventListenerSafe)((0,t._getUnloadEvent)(),()=>{a=!0,(0,e._notifyVisibilityChanged)(o)})}(VisibilityObserving)),VisibilityObserving}function requireEventSender(){if(hasRequiredEventSender)return EventSender;hasRequiredEventSender=1;var e=EventSender&&EventSender.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(EventSender,"__esModule",{value:!0}),EventSender.EventSender=void 0;const t=requireLog$1(),n=requireNetworkConfig(),o=requireSDKType(),i=requireStatsigMetadata(),r=requireVisibilityObserving();return EventSender.EventSender=class{constructor(e,t,n,o,i){this._sdkKey=e,this._network=t,this._emitter=n,this._options=i,this._logEventUrlConfig=o}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}sendBatch(n){return e(this,void 0,void 0,function*(){var e,o,i;let a="event_sender_unexpected_exception";const s={};try{const t=(0,r._isUnloading)()&&this._network.isBeaconSupported()&&null==(null===(o=null===(e=this._options)||void 0===e?void 0:e.networkConfig)||void 0===o?void 0:o.networkOverrideFunc);a="event_sender_pre_logs_flushed_emitter_exception",this._emitter({name:"pre_logs_flushed",events:n.events}),a=t?"event_sender_unexpected_exception":"event_sender_post_exception";const i=t?this._sendEventsViaBeacon(n,s):yield this._sendEventsViaPost(n,s);return i.success?(a="event_sender_logs_flushed_emitter_exception",this._emitter({name:"logs_flushed",events:n.events}),i):Object.assign(Object.assign(Object.assign({success:!1,statusCode:i.statusCode,failurePath:i.failurePath},i.failureErrorMessage?{failureErrorMessage:i.failureErrorMessage}:{}),i.failureDiagnosticBucket?{failureDiagnosticBucket:i.failureDiagnosticBucket}:{}),i.failureDiagnosticMetadata?{failureDiagnosticMetadata:i.failureDiagnosticMetadata}:{})}catch(l){return t.Log.warn("Failed to send batch:",l),Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!==(i=s.path)&&void 0!==i?i:a},s.errorMessage?{failureErrorMessage:s.errorMessage}:{}),s.diagnosticBucket?{failureDiagnosticBucket:s.diagnosticBucket}:{}),s.diagnosticMetadata?{failureDiagnosticMetadata:s.diagnosticMetadata}:{})}})}_sendEventsViaPost(t,n){return e(this,void 0,void 0,function*(){var e,o;const i=yield this._network.post(this._getRequestData(t),n),r=null!==(e=null==i?void 0:i.code)&&void 0!==e?e:-1;return-1===r?Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!==(o=n.path)&&void 0!==o?o:void 0===i?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},n.errorMessage?{failureErrorMessage:n.errorMessage}:{}),n.diagnosticBucket?{failureDiagnosticBucket:n.diagnosticBucket}:{}),n.diagnosticMetadata?{failureDiagnosticMetadata:n.diagnosticMetadata}:{}):{success:r>=200&&r<300,statusCode:r}})}_sendEventsViaBeacon(e,t){var n;const o=this._network.beacon(this._getRequestData(e),t);return Object.assign(Object.assign(Object.assign({success:o,statusCode:o?200:-1,failurePath:o?void 0:null!==(n=t.path)&&void 0!==n?n:"beacon_send_false"},!o&&t.errorMessage?{failureErrorMessage:t.errorMessage}:{}),!o&&t.diagnosticBucket?{failureDiagnosticBucket:t.diagnosticBucket}:{}),!o&&t.diagnosticMetadata?{failureDiagnosticMetadata:t.diagnosticMetadata}:{})}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e.events},urlConfig:this._logEventUrlConfig,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[n.NetworkParam.EventCount]:String(e.events.length)},headers:{"statsig-event-count":String(e.events.length),"statsig-retry-count":String(e.attempts),"statsig-sdk-type":o.SDKType._get(this._sdkKey),"statsig-sdk-version":i.SDK_VERSION},credentials:"same-origin"}}},EventSender}var FlushInterval={},hasRequiredFlushInterval;function requireFlushInterval(){if(hasRequiredFlushInterval)return FlushInterval;hasRequiredFlushInterval=1,Object.defineProperty(FlushInterval,"__esModule",{value:!0}),FlushInterval.FlushInterval=void 0;const e=1e3,t=6e4;return FlushInterval.FlushInterval=class{constructor(){this._currentIntervalMs=e,this._lastFlushAttemptTime=Date.now()}getCurrentIntervalMs(){return this._currentIntervalMs}markFlushAttempt(){this._lastFlushAttemptTime=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this._lastFlushAttemptTime}hasReachedMaxInterval(){return this.getTimeSinceLastAttempt()>=t}getTimeTillMaxInterval(){return t-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this._currentIntervalMs<=e}adjustForSuccess(){const t=this._currentIntervalMs;t!==e&&(this._currentIntervalMs=Math.max(e,Math.floor(t/2)))}adjustForFailure(){const e=this._currentIntervalMs;this._currentIntervalMs=Math.min(t,2*e)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}},FlushInterval}var FlushTypes={},hasRequiredFlushTypes;function requireFlushTypes(){return hasRequiredFlushTypes||(hasRequiredFlushTypes=1,Object.defineProperty(FlushTypes,"__esModule",{value:!0}),FlushTypes.FlushType=void 0,(t=e||(FlushTypes.FlushType=e={})).ScheduledMaxTime="scheduled:max_time",t.ScheduledFullBatch="scheduled:full_batch",t.Limit="limit",t.Manual="manual",t.Shutdown="shutdown"),FlushTypes;var e,t}var NetworkCore={},NetworkFallbackResolver={},DnsTxtQuery={},hasRequiredDnsTxtQuery;function requireDnsTxtQuery(){if(hasRequiredDnsTxtQuery)return DnsTxtQuery;hasRequiredDnsTxtQuery=1;var e=DnsTxtQuery&&DnsTxtQuery.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(DnsTxtQuery,"__esModule",{value:!0}),DnsTxtQuery._fetchTxtRecords=void 0;const t=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),n=["i","e","d"];return DnsTxtQuery._fetchTxtRecords=function(o){return e(this,void 0,void 0,function*(){const e=yield o("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:t});if(!e.ok){const e=new Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}const i=yield e.arrayBuffer();return function(e){const t=e.findIndex((t,o)=>o<200&&"="===String.fromCharCode(t)&&n.includes(String.fromCharCode(e[o-1])));if(-1===t){const e=new Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let o="";for(let n=t-1;n<e.length;n++)o+=String.fromCharCode(e[n]);return o.split(",")}(new Uint8Array(i))})},DnsTxtQuery}var StorageProvider={},hasRequiredStorageProvider,hasRequiredNetworkFallbackResolver;function requireStorageProvider(){return hasRequiredStorageProvider||(hasRequiredStorageProvider=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._setObjectInStorage=e._getObjectFromStorage=e.Storage=void 0;const t=requireLog$1(),n=requireSafeJs(),o={},i={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>o[e]?o[e]:null,setItem:(e,t)=>{o[e]=t},removeItem:e=>{delete o[e]},getAllKeys:()=>Object.keys(o)};let r=null;try{const e=(0,n._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(r={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(c){t.Log.warn("Failed to setup localStorageProvider.")}let a=null!=r?r:i,s=a;function l(t){try{return t()}catch(c){if(c instanceof Error&&"SecurityError"===c.name)return e.Storage._setProvider(i),null;throw c}}e.Storage={isReady:()=>s.isReady(),isReadyResolver:()=>s.isReadyResolver(),getProviderName:()=>s.getProviderName(),getItem:e=>l(()=>s.getItem(e)),setItem:(e,t)=>l(()=>s.setItem(e,t)),removeItem:e=>s.removeItem(e),getAllKeys:()=>s.getAllKeys(),_setProvider:e=>{a=e,s=e},_setDisabled:e=>{s=e?i:a}},e._getObjectFromStorage=function(n){const o=e.Storage.getItem(n);try{return JSON.parse(null!=o?o:"null")}catch(i){return t.Log.error(`Failed to parse value for key "${n}"`),null}},e._setObjectInStorage=function(t,n){e.Storage.setItem(t,JSON.stringify(n))}}(StorageProvider)),StorageProvider}function requireNetworkFallbackResolver(){if(hasRequiredNetworkFallbackResolver)return NetworkFallbackResolver;hasRequiredNetworkFallbackResolver=1;var e=NetworkFallbackResolver&&NetworkFallbackResolver.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(NetworkFallbackResolver,"__esModule",{value:!0}),NetworkFallbackResolver._isDomainFailure=NetworkFallbackResolver.NetworkFallbackResolver=void 0;const t=requireDnsTxtQuery(),n=requireHashing(),o=requireLog$1(),i=requireStorageProvider(),r=6048e5;function a(e,t){var n;const o=null!==(n=null==e?void 0:e.toLowerCase())&&void 0!==n?n:"";return t||o.includes("uncaught exception")||o.includes("failed to fetch")||o.includes("networkerror when attempting to fetch resource")}function s(e){return`statsig.network_fallback.${(0,n._DJB2)(e)}`}function l(e,t){const n=s(e);t&&0!==Object.keys(t).length?i.Storage.setItem(n,JSON.stringify(t)):i.Storage.removeItem(n)}return NetworkFallbackResolver.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;const o=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t.endpoint];o&&(o.expiryTime=Date.now()+r,l(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:o})))}getActiveFallbackUrl(e,t){var n,r;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let a=this._fallbackInfo;null==a&&(a=null!==(n=function(e){const t=s(e),r=i.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(n){return o.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==n?n:{},this._fallbackInfo=a);const c=a[t.endpoint];return!c||Date.now()>(null!==(r=c.expiryTime)&&void 0!==r?r:0)||t.getChecksum()!==c.urlConfigChecksum?(delete a[t.endpoint],this._fallbackInfo=a,l(e,this._fallbackInfo),null):c.url?c.url:null}tryFetchUpdatedFallbackInfo(t,n,o,i){return e(this,void 0,void 0,function*(){var e,r;try{if(!a(o,i))return!1;const r=null==n.customUrl&&null==n.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(n):n.fallbackUrls,s=this._pickNewFallbackUrl(null===(e=this._fallbackInfo)||void 0===e?void 0:e[n.endpoint],r);return!!s&&(this._updateFallbackInfoWithNewUrl(t,n,s),!0)}catch(s){return null===(r=this._errorBoundary)||void 0===r||r.logError("tryFetchUpdatedFallbackInfo",s),!1}})}_updateFallbackInfoWithNewUrl(e,t,n){var o,i,a;const s={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+r,previous:[]},c=t.endpoint,d=null===(o=this._fallbackInfo)||void 0===o?void 0:o[c];d&&s.previous.push(...d.previous),s.previous.length>10&&(s.previous=[]);const p=null===(a=null===(i=this._fallbackInfo)||void 0===i?void 0:i[c])||void 0===a?void 0:a.url;null!=p&&s.previous.push(p),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[c]:s}),l(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(n){return e(this,void 0,void 0,function*(){var e;const o=this._dnsQueryCooldowns[n.endpoint];if(o&&Date.now()<o)return null;this._dnsQueryCooldowns[n.endpoint]=Date.now()+144e5;const i=[],r=yield(0,t._fetchTxtRecords)(null!==(e=this._networkOverrideFunc)&&void 0!==e?e:fetch),a=function(e){try{return new URL(e).pathname}catch(t){return null}}(n.defaultUrl);for(const t of r){if(!t.startsWith(n.endpointDnsKey+"="))continue;const e=t.split("=");if(e.length>1){let t=e[1];t.endsWith("/")&&(t=t.slice(0,-1)),i.push(`https://${t}${a}`)}}return i})}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;const o=new Set(null!==(n=null==e?void 0:e.previous)&&void 0!==n?n:[]),i=null==e?void 0:e.url;let r=null;for(const a of t){const e=a.endsWith("/")?a.slice(0,-1):a;if(!o.has(a)&&e!==i){r=e;break}}return r}},NetworkFallbackResolver._isDomainFailure=a,NetworkFallbackResolver}var SDKFlags={},hasRequiredSDKFlags;function requireSDKFlags(){if(hasRequiredSDKFlags)return SDKFlags;hasRequiredSDKFlags=1,Object.defineProperty(SDKFlags,"__esModule",{value:!0}),SDKFlags.SDKFlags=void 0;const e={};return SDKFlags.SDKFlags={setFlags:(t,n)=>{e[t]=n},get:(t,n)=>{var o,i;return null!==(i=null===(o=e[t])||void 0===o?void 0:o[n])&&void 0!==i&&i}},SDKFlags}var SessionID={},UUID={},hasRequiredUUID,hasRequiredSessionID;function requireUUID(){if(hasRequiredUUID)return UUID;return hasRequiredUUID=1,Object.defineProperty(UUID,"__esModule",{value:!0}),UUID.getUUID=void 0,UUID.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=/* @__PURE__ */(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(4*Math.random())]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,n=>{let o=16*Math.random();return e>0?(o=(e+o)%16|0,e=Math.floor(e/16)):(o=(t+o)%16|0,t=Math.floor(t/16)),("x"===n?o:7&o|8).toString(16)})},UUID}function requireSessionID(){return hasRequiredSessionID||(hasRequiredSessionID=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigSession=e.SessionID=void 0;const t=requireCacheKey(),n=requireLog$1(),o=requireStorageProvider(),i=requireUUID(),r=requireVisibilityObserving(),a=18e5,s=144e5,l={};function c(e){var t;const n=e.data,o=function({lastUpdate:e}){return Date.now()-e>a}(n)||function({startTime:e}){return Date.now()-e>s}(n);return o&&(e.data=u(),null===(t=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(e.sdkKey))||void 0===t||t.$emt({name:"session_expired"})),o}function d(e){return`statsig.session_id.${(0,t._getStorageKey)(e)}`}function p(e){try{(0,o._setObjectInStorage)(e.storageKey,e.data),e.lastPersistedAt=Date.now()}catch(t){n.Log.warn("Failed to save SessionID")}}function u(){return{sessionID:(0,i.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,r._subscribeToVisiblityChanged)(e=>{"background"===e&&Object.values(l).forEach(e=>p(e))}),e.SessionID={get:t=>e.StatsigSession.get(t).data.sessionID},e.StatsigSession={get:(e,t=!0)=>{null==l[e]&&(l[e]=function(e){const t=d(e),n=function(e){const t=(0,o._getObjectFromStorage)(e);return t}(t);if(n&&n.sessionID&&n.startTime&&n.lastUpdate)return{data:n,sdkKey:e,lastPersistedAt:0,storageKey:t};return{data:u(),sdkKey:e,lastPersistedAt:0,storageKey:t}}(e));return function(e,t){const n=Date.now(),o=c(e);o?p(e):t&&(e.data.lastUpdate=n,function(e){const t=Date.now();t-e.lastPersistedAt>15e3&&p(e)}(e));return e}(l[e],t)},overrideInitialSessionID:(e,t)=>{const n=Date.now(),o={data:{sessionID:e,startTime:n,lastUpdate:n},sdkKey:t,lastPersistedAt:Date.now(),storageKey:d(t)};p(o),l[t]=o},checkForIdleSession:e=>{const t=l[e];if(!t)return;c(t)&&p(t)}}}(SessionID)),SessionID}var StableID={},hasRequiredStableID;function requireStableID(){if(hasRequiredStableID)return StableID;hasRequiredStableID=1,Object.defineProperty(StableID,"__esModule",{value:!0}),StableID.getCookieName=StableID.StableID=void 0;const e=requireCacheKey(),t=requireLog$1(),n=requireSafeJs(),o=requireStorageProvider(),i=requireUUID(),r={},a={},s={};function l(t){return`statsig.stable_id.${(0,e._getStorageKey)(t)}`}function c(e,n){const i=l(n);try{(0,o._setObjectInStorage)(i,e)}catch(r){t.Log.warn("Failed to save StableID to storage")}}function d(e,t){if(!a[t]||null==(0,n._getDocumentSafe)())return;const o=/* @__PURE__ */new Date;o.setFullYear(o.getFullYear()+1),document.cookie=`${p(t)}=${encodeURIComponent(e)}; expires=${o.toUTCString()}; path=/`}function p(t){return`statsig.stable_id.${(0,e._getStorageKey)(t)}`}return StableID.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(s[e])return null;if(null!=r[e])return r[e];let t=null;return t=function(e){if(!a[e]||null==(0,n._getDocumentSafe)())return null;const t=document.cookie.split(";");for(const n of t){const[t,o]=n.trim().split("=");if(t===p(e))return decodeURIComponent(o)}return null}(e),null!=t?(r[e]=t,c(t,e),t):(t=function(e){const t=l(e);return(0,o._getObjectFromStorage)(t)}(e),null==t&&(t=(0,i.getUUID)()),c(t,e),d(t,e),r[e]=t,t)},setOverride:(e,t)=>{r[t]=e,c(e,t),d(e,t)},_setCookiesEnabled:(e,t)=>{a[e]=t},_setDisabled:(e,t)=>{s[e]=t}},StableID.getCookieName=p,StableID}var StatsigClientEventEmitter={},hasRequiredStatsigClientEventEmitter;function requireStatsigClientEventEmitter(){return hasRequiredStatsigClientEventEmitter||(hasRequiredStatsigClientEventEmitter=1,Object.defineProperty(StatsigClientEventEmitter,"__esModule",{value:!0}),StatsigClientEventEmitter.ErrorTag=void 0,StatsigClientEventEmitter.ErrorTag={NetworkError:"NetworkError"}),StatsigClientEventEmitter}var StatsigOptionsCommon={},hasRequiredStatsigOptionsCommon,hasRequiredNetworkCore,hasRequiredFlushCoordinator;function requireStatsigOptionsCommon(){return hasRequiredStatsigOptionsCommon||(hasRequiredStatsigOptionsCommon=1,Object.defineProperty(StatsigOptionsCommon,"__esModule",{value:!0}),StatsigOptionsCommon.LoggingEnabledOption=StatsigOptionsCommon.LogEventCompressionMode=void 0,StatsigOptionsCommon.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},StatsigOptionsCommon.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}),StatsigOptionsCommon}function requireNetworkCore(){return hasRequiredNetworkCore||(hasRequiredNetworkCore=1,function(e){var t=NetworkCore&&NetworkCore.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkCore=e.RETRYABLE_CODES=void 0,require$_StatsigGlobal();const n=require$_StatsigGlobal(),o=requireDiagnostics(),i=requireLog$1(),r=requireNetworkConfig(),a=requireNetworkFallbackResolver(),s=requireSDKFlags(),l=requireSDKType(),c=requireSafeJs(),d=requireSessionID(),p=requireStableID(),u=requireStatsigClientEventEmitter(),m=requireStatsigMetadata(),h=requireStatsigOptionsCommon(),g=requireVisibilityObserving();e.RETRYABLE_CODES=/* @__PURE__ */new Set([408,500,502,503,504,522,524,599]);e.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new a.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){const e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e,t){if(!x(e))return t&&(t.path="beacon_invalid_sdk_key"),!1;const n=this._getInternalRequestArgs("POST",e),o=this._getPopulatedURL(n),i=navigator;try{const e=i.sendBeacon.bind(i)(o,n.body);return e||t&&(t.path="beacon_send_false"),e}catch(r){throw t&&(t.path="beacon_send_exception"),r}}post(e,n){return t(this,void 0,void 0,function*(){const t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t,n)})}get(e){const t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(n,a){return t(this,void 0,void 0,function*(){var s,l,d,p;if(!x(n))return a&&(a.path="network_invalid_sdk_key"),null;if(this._netConfig.preventAllNetworkTraffic)return a&&(a.path="network_prevent_all_network_traffic"),null;const{method:m,body:h,retries:f,attempt:C}=n,$=n.urlConfig.endpoint;if(this._isRateLimited($))return i.Log.warn(`Request to ${$} was blocked because you are making requests too frequently.`),a&&(a.path="network_rate_limited"),null;const b=null!=C?C:1;let v=!1;const E=this._getPopulatedURL(n),w=Date.now();let R=null;const A=(0,g._isUnloading)();try{const e={method:m,body:h,headers:Object.assign({},n.headers),priority:n.priority,keepalive:A};!function(e,t){if(e.urlConfig.endpoint!==r.Endpoint._initialize)return;o.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:t})}(n,b);const t=this._leakyBucket[$];t&&(t.lastRequestTime=Date.now(),this._leakyBucket[$]=t);const i=null!==(s=this._netConfig.networkOverrideFunc)&&void 0!==s?s:fetch;let a;if(R=yield Promise.race([i(E,e).finally(()=>clearTimeout(a)),new Promise((e,t)=>{a=setTimeout(()=>{v=!0,t(new Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!R.ok){const e=yield R.text().catch(()=>"No Text"),t=new Error(`NetworkError: ${E} ${e}`);throw t.name="NetworkError",t}const l=yield R.text();return S(n,R,b,l),this._fallbackResolver.tryBumpExpiryTime(n.sdkKey,n.urlConfig),{body:l,code:R.status}}catch(T){const o=function(e){if("string"==typeof e)return e;if(e instanceof Error)return`${e.name}: ${e.message}`;return"Unknown Error"}(T),r=(j=v,(null!=o?o:"").includes("Timeout")||j);S(n,R,b,"",T);if((yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(n.sdkKey,n.urlConfig,o,r))&&(n.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(n.sdkKey,n.urlConfig)),!f||b>f||!e.RETRYABLE_CODES.has(null!==(l=null==R?void 0:R.status)&&void 0!==l?l:500)){null===(d=this._emitter)||void 0===d||d.call(this,{name:"error",error:T,tag:u.ErrorTag.NetworkError,requestArgs:n});const e=`A networking error occurred during ${m} request to ${E}.`;if(i.Log.error(e,o,T),null===(p=this._errorBoundary)||void 0===p||p.attachErrorIfNoneExists(e),n.preserveFailedStatusCode&&null!=R)return{body:null,code:R.status};if(null==R&&a){a.path=r?"network_request_timed_out_no_response":"network_request_exception_no_response",o&&(a.errorMessage=o);try{const e=function(e,t,n,o){var i,r,a;const s=(0,c._getWindowSafe)(),l=null==s?void 0:s.document,d="undefined"!=typeof navigator?navigator:null,p=(0,g._isUnloading)(),u=d&&"boolean"==typeof d.onLine?String(d.onLine):"unknown",m=null!==(i=null==l?void 0:l.visibilityState)&&void 0!==i?i:"unknown",h=Object.keys(null!==(r=e.headers)&&void 0!==r?r:{}).length>0,x=function(e,t){if(!t)return!0;return!e.startsWith(`${t}/`)&&!e.startsWith(`${t}?`)&&e!==t}(t,null===(a=null==s?void 0:s.location)||void 0===a?void 0:a.origin),f=null!=e.urlConfig.customUrl,S=null!=e.fallbackUrl,C=y(o,[250,1e3,5e3,1e4]),$=y(function(e){if(null==e)return 0;if("string"==typeof e)return e.length;if(e instanceof Uint8Array)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob)return e.size;return-1}(e.body),[16384,65536,262144,1048576]);let b="unknown_no_response";n?b="timeout":"false"===u?b="browser_offline":p?b="page_unloading":"hidden"===m?b="page_hidden":x&&h?b="cross_origin_custom_headers_preflight_risk":f||S?b="custom_url_no_response":o<250&&(b="immediate_network_rejection");return{bucket:b,metadata:{elapsedMsBucket:C,bodySizeBucket:$,online:u,visibilityState:m,isUnloading:String(p),crossOrigin:String(x),hasCustomUrl:String(f)}}}(n,E,r,Date.now()-w);a.diagnosticBucket=e.bucket,a.diagnosticMetadata=e.metadata}catch(I){}}return null}return yield function(e){return t(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(b),this._sendRequest(Object.assign(Object.assign({},n),{retries:f,attempt:b+1}),a)}var j})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||!0!==(null==e?void 0:e.disableCompression)||(t=h.LogEventCompressionMode.Disabled),t||(t=h.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;const n=Date.now(),o=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:n},i=n-o.lastRequestTime,r=Math.floor(.05*i);return o.count=Math.max(0,o.count-r),o.count>=50||(o.count+=1,o.lastRequestTime=n,this._leakyBucket[e]=o,!1)}_getPopulatedURL(e){var t;const n=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();e.urlConfig.endpoint!==r.Endpoint._initialize&&e.urlConfig.endpoint!==r.Endpoint._download_config_specs||(this._lastUsedInitUrl=n);const o=Object.assign({[r.NetworkParam.SdkKey]:e.sdkKey,[r.NetworkParam.SdkType]:l.SDKType._get(e.sdkKey),[r.NetworkParam.SdkVersion]:m.SDK_VERSION,[r.NetworkParam.Time]:String(Date.now()),[r.NetworkParam.SessionID]:d.SessionID.get(e.sdkKey)},e.params),i=Object.keys(o).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(o[e])}`).join("&");return`${n}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;const o=(0,c._getWindowSafe)(),a=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof a&&null==(0,n._getStatsigGlobalFlag)("no-encode")&&(null==o?void 0:o.btoa))try{e.body=o.btoa(a).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[r.NetworkParam.StatsigEncoded]:"1"})}catch(s){i.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,s)}}_tryToCompressBody(e){return t(this,void 0,void 0,function*(){var t;const o=e.body;if("string"==typeof o&&function(e,t){if(!e.isCompressable)return!1;if(null!=(0,n._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;const o=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,i=!0===s.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case h.LogEventCompressionMode.Disabled:return!1;case h.LogEventCompressionMode.Enabled:return!(o&&!i);case h.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{const n=(new TextEncoder).encode(o),a=new CompressionStream("gzip"),s=a.writable.getWriter();s.write(n).catch(i.Log.error),s.close().catch(i.Log.error);const l=a.readable.getReader(),c=[];let d;for(;!(d=yield l.read()).done;)c.push(d.value);const p=c.reduce((e,t)=>e+t.length,0),u=new Uint8Array(p);let m=0;for(const e of c)u.set(e,m),m+=e.length;e.body=u,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[r.NetworkParam.IsGzipped]:"1"})}catch(a){i.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,a)}})}_getInternalRequestArgs(e,t){const n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),o=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&f(o,t.data),o}};const x=e=>!!e.sdkKey||(i.Log.warn("Unable to make request without an SDK key"),!1),f=(e,t)=>{const{sdkKey:n,fallbackUrl:o}=e,i=p.StableID.get(n),r=d.SessionID.get(n),a=l.SDKType._get(n);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},m.StatsigMetadataProvider.get()),{stableID:i,sessionID:r,sdkType:a,fallbackUrl:o})}))};function y(e,t){if(e<0)return"unknown";for(const n of t)if(e<n)return`<${n}`;return`>=${t[t.length-1]}`}function S(e,t,n,i,a){e.urlConfig.endpoint===r.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(e.sdkKey,o.Diagnostics._getDiagnosticsData(t,n,i,a))}}(NetworkCore)),NetworkCore}function requireFlushCoordinator(){if(hasRequiredFlushCoordinator)return FlushCoordinator;hasRequiredFlushCoordinator=1;var e=FlushCoordinator&&FlushCoordinator.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(FlushCoordinator,"__esModule",{value:!0}),FlushCoordinator.FlushCoordinator=void 0;const t=requireEventRetryConstants(),n=requireEventSender(),o=requireFlushInterval(),i=requireFlushTypes(),r=requireHashing(),a=requireLog$1(),s=requireNetworkCore(),l=requireSafeJs(),c=requireSessionID(),d=requireStatsigOptionsCommon(),p=requireStorageProvider(),u=/* @__PURE__ */new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);return FlushCoordinator.FlushCoordinator=class{constructor(e,t,i,r,a,s,l,c,d,p){this._cooldownTimer=null,this._maxIntervalTimer=null,this._hasRunQuickFlush=!1,this._currentFlushPromise=null,this._creationTime=Date.now(),this._isShuttingDown=!1,this._storageKey=null,this._flushInterval=new o.FlushInterval,this._batchQueue=e,this._pendingEvents=t,this._onPrepareFlush=i,this._errorBoundary=p,this._sdkKey=r,this._loggingEnabled=d,this._eventSender=new n.EventSender(r,a,s,l,c)}setLoggingEnabled(e){this._loggingEnabled=e}setLogEventCompressionMode(e){this._eventSender.setLogEventCompressionMode(e)}startScheduledFlushCycle(){this._scheduleNextFlush()}stopScheduledFlushCycle(){this._clearAllTimers()}addEvent(e){this._pendingEvents.addToPendingEventsQueue(e),this._currentFlushPromise||this._pendingEvents.hasEventsForFullBatch()&&this.processLimitFlush()}processManualFlush(){return e(this,void 0,void 0,function*(){return this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(i.FlushType.Manual).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()}),this._currentFlushPromise})}processShutdown(){return e(this,void 0,void 0,function*(){return this._isShuttingDown=!0,this._clearAllTimers(),this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(i.FlushType.Shutdown).catch(e=>{a.Log.error(`Error during shutdown flush: ${e}`)}).finally(()=>{this._currentFlushPromise=null}),this._currentFlushPromise})}_executeFlush(t){return e(this,void 0,void 0,function*(){this._clearAllTimers();try{this._prepareQueueForFlush(t);const e=this._batchQueue.takeAllBatches();if(0===e.length)return;yield Promise.all(e.map(e=>this._processOneBatch(e,t)))}finally{this._isShuttingDown||this._scheduleNextFlush()}})}checkQuickFlush(){this._hasRunQuickFlush||Date.now()-this._creationTime>t.EventRetryConstants.QUICK_FLUSH_WINDOW_MS||(this._hasRunQuickFlush=!0,setTimeout(()=>{this.processManualFlush().catch(e=>{a.Log.warn("Quick flush failed:",e)})},t.EventRetryConstants.QUICK_FLUSH_WINDOW_MS))}_attemptScheduledFlush(){if(this._currentFlushPromise)return void this._scheduleNextFlush();const e=this.containsAtLeastOneFullBatch(),t=this._flushInterval.hasReachedMaxInterval();if(!e&&!t)return void this._scheduleNoopPollTick();let n;this._flushInterval.markFlushAttempt(),n=e?i.FlushType.ScheduledFullBatch:i.FlushType.ScheduledMaxTime,this._currentFlushPromise=this._processNextBatch(n).then(()=>{}).catch(e=>{a.Log.error("Error during scheduled flush:",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}processLimitFlush(){this._flushInterval.hasCompletelyRecoveredFromBackoff()&&(this._currentFlushPromise||(this._currentFlushPromise=this._processLimitFlushInternal().catch(e=>{a.Log.error("Error during limit flush",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})))}_processLimitFlushInternal(){return e(this,void 0,void 0,function*(){if(yield this._processNextBatch(i.FlushType.Limit))for(;this._flushInterval.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch();){if(!(yield this._processNextBatch(i.FlushType.Limit)))break}})}_scheduleNextFlush(){if(this._clearAllTimers(),this._isShuttingDown)return;const e=Math.max(0,this._flushInterval.getTimeUntilNextFlush());this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e);const t=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},t)}_clearAllTimers(){null!==this._cooldownTimer&&(clearTimeout(this._cooldownTimer),this._cooldownTimer=null),null!==this._maxIntervalTimer&&(clearTimeout(this._maxIntervalTimer),this._maxIntervalTimer=null)}_scheduleNoopPollTick(){if(this._clearAllTimers(),this._isShuttingDown)return;this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},t.EventRetryConstants.TICK_INTERVAL_MS);const e=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e)}_processNextBatch(t){return e(this,void 0,void 0,function*(){this._prepareQueueForFlush(t);const e=this._batchQueue.takeNextBatch();return!!e&&this._processOneBatch(e,t)})}_processOneBatch(t,n){return e(this,void 0,void 0,function*(){if(this._loggingEnabled!==d.LoggingEnabledOption.always&&(0,l._isServerEnv)())return this._flushInterval.adjustForSuccess(),!0;const e=yield this._eventSender.sendBatch(t);return e.success?(this._flushInterval.adjustForSuccess(),!0):(this._flushInterval.adjustForFailure(),this._handleFailure(t,n,e.statusCode,e.failurePath,e.failureErrorMessage,e.failureDiagnosticBucket,e.failureDiagnosticMetadata),!1)})}_prepareQueueForFlush(e){this._onPrepareFlush();const n=this.convertPendingEventsToBatches();n>0&&(a.Log.warn(`Dropped ${n} events`),this._errorBoundary.logDroppedEvents(n,"Batch queue limit reached during batching",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:t.EventRetryConstants.MAX_PENDING_BATCHES,flushType:e,retries:"dropped before batching"}))}containsAtLeastOneFullBatch(){return this._pendingEvents.hasEventsForFullBatch()||this._batchQueue.hasFullBatch()}convertPendingEventsToBatches(){if(this._pendingEvents.isEmpty())return 0;const e=this._pendingEvents.takeAll();return this._batchQueue.createBatches(e)}_isRetryableBatch(e,t){return!!s.RETRYABLE_CODES.has(e)||!(-1!==e||!t||!u.has(t))}_handleFailure(e,n,o,r,s,l,c){if(n===i.FlushType.Shutdown)return a.Log.warn(`${n} flush failed during shutdown. ${e.events.length} event(s) will be saved to storage for retry in next session.`),void this._saveShutdownFailedEventsToStorage(e.events);if(!this._isRetryableBatch(o,r)){const t="non-retryable error";return a.Log.warn(`${n} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped. Non-retryable error: ${o}`),void this._errorBoundary.logEventRequestFailure(e.events.length,t,n,o,e.attempts,r,s,l,c)}if(e.attempts>=t.EventRetryConstants.MAX_RETRY_ATTEMPTS){const t="max retry attempts exceeded";return a.Log.warn(`${n} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped.`),void this._errorBoundary.logEventRequestFailure(e.events.length,t,n,o,e.attempts,r,s,l,c)}e.incrementAttempts();const d=this._batchQueue.requeueBatch(e);d>0&&(a.Log.warn(`Failed to requeue batch : dropped ${d} events due to full queue`),this._errorBoundary.logDroppedEvents(d,"Batch queue limit reached during requeue",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:t.EventRetryConstants.MAX_PENDING_BATCHES,flushType:n,retries:e.attempts}))}loadAndRetryShutdownFailedEvents(){return e(this,void 0,void 0,function*(){const e=this._getStorageKey();try{p.Storage.isReady()||(yield p.Storage.isReadyResolver());const t=this._getShutdownFailedEventsFromStorage(e);if(0===t.length)return;a.Log.debug(`Loading ${t.length} failed shutdown event(s) from storage for retry`),p.Storage.removeItem(e),t.forEach(e=>{this.addEvent(e)}),yield this.processManualFlush()}catch(t){a.Log.warn("Failed to load and retry failed shutdown events:",t)}})}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.failed_shutdown_events.${(0,r._DJB2)(this._sdkKey)}`),this._storageKey}_saveShutdownFailedEventsToStorage(e){const n=this._getStorageKey();try{let o=[...this._getShutdownFailedEventsFromStorage(n),...e];o.length>t.EventRetryConstants.MAX_LOCAL_STORAGE&&(o=o.slice(-t.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,p._setObjectInStorage)(n,o),a.Log.debug(`Saved ${e.length} failed shutdown event(s) to storage (total stored: ${o.length})`)}catch(o){a.Log.warn("Unable to save failed shutdown events to storage:",o)}}_getShutdownFailedEventsFromStorage(e){try{const t=(0,p._getObjectFromStorage)(e);return Array.isArray(t)?t:[]}catch(t){return[]}}},FlushCoordinator}var PendingEvents={},hasRequiredPendingEvents;function requirePendingEvents(){if(hasRequiredPendingEvents)return PendingEvents;hasRequiredPendingEvents=1,Object.defineProperty(PendingEvents,"__esModule",{value:!0}),PendingEvents.PendingEvents=void 0;const e=requireLog$1();return PendingEvents.PendingEvents=class{constructor(e){this._pendingEvents=[],this._batchSize=e}addToPendingEventsQueue(t){this._pendingEvents.push(t),e.Log.debug("Enqueued Event:",t)}hasEventsForFullBatch(){return this._pendingEvents.length>=this._batchSize}takeAll(){const e=this._pendingEvents;return this._pendingEvents=[],e}isEmpty(){return 0===this._pendingEvents.length}},PendingEvents}var StatsigEvent={},hasRequiredStatsigEvent;function requireStatsigEvent(){if(hasRequiredStatsigEvent)return StatsigEvent;hasRequiredStatsigEvent=1,Object.defineProperty(StatsigEvent,"__esModule",{value:!0}),StatsigEvent._createLayerParameterExposure=StatsigEvent._createConfigExposure=StatsigEvent._mapExposures=StatsigEvent._createGateExposure=StatsigEvent._isExposureEvent=void 0;const e="statsig::config_exposure",t="statsig::gate_exposure",n="statsig::layer_exposure",o=(e,t,n,o,i)=>(n.bootstrapMetadata&&(o.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:r(n,o),secondaryExposures:i,time:Date.now()});StatsigEvent._isExposureEvent=({eventName:o})=>o===t||o===e||o===n;function i(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}StatsigEvent._createGateExposure=(e,n,r)=>{var a,s,l;const c={gate:n.name,gateValue:String(n.value),ruleID:n.ruleID};return null!=(null===(a=n.__evaluation)||void 0===a?void 0:a.version)&&(c.configVersion=n.__evaluation.version),o(t,e,n.details,c,i(null!==(l=null===(s=n.__evaluation)||void 0===s?void 0:s.secondary_exposures)&&void 0!==l?l:[],r))},StatsigEvent._mapExposures=i;StatsigEvent._createConfigExposure=(t,n,r)=>{var a,s,l,c;const d={config:n.name,ruleID:n.ruleID};return null!=(null===(a=n.__evaluation)||void 0===a?void 0:a.version)&&(d.configVersion=n.__evaluation.version),null!=(null===(s=n.__evaluation)||void 0===s?void 0:s.passed)&&(d.rulePassed=String(n.__evaluation.passed)),o(e,t,n.details,d,i(null!==(c=null===(l=n.__evaluation)||void 0===l?void 0:l.secondary_exposures)&&void 0!==c?c:[],r))};StatsigEvent._createLayerParameterExposure=(e,t,r,a)=>{var s,l,c,d,p,u,m;const h=t.__evaluation,g=!0===(null===(s=null==h?void 0:h.explicit_parameters)||void 0===s?void 0:s.includes(r));let x="",f=null!==(l=null==h?void 0:h.undelegated_secondary_exposures)&&void 0!==l?l:[];g&&(x=null!==(c=h.allocated_experiment_name)&&void 0!==c?c:"",f=null!==(d=h.secondary_exposures)&&void 0!==d?d:[]);const y=null===(p=t.__evaluation)||void 0===p?void 0:p.parameter_rule_ids,S={config:t.name,parameterName:r,ruleID:null!==(u=null==y?void 0:y[r])&&void 0!==u?u:t.ruleID,allocatedExperiment:x,isExplicitParameter:String(g)};return null!=(null===(m=t.__evaluation)||void 0===m?void 0:m.version)&&(S.configVersion=t.__evaluation.version),o(n,e,t.details,S,i(f,a))};const r=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t);return StatsigEvent}var UrlConfiguration={},hasRequiredUrlConfiguration,hasRequiredEventLogger;function requireUrlConfiguration(){if(hasRequiredUrlConfiguration)return UrlConfiguration;hasRequiredUrlConfiguration=1,Object.defineProperty(UrlConfiguration,"__esModule",{value:!0}),UrlConfiguration.UrlConfiguration=void 0;const e=requireHashing(),t=requireNetworkConfig(),n={[t.Endpoint._initialize]:"i",[t.Endpoint._rgstr]:"e",[t.Endpoint._download_config_specs]:"d"};return UrlConfiguration.UrlConfiguration=class{constructor(e,o,i,r){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=n[e],o&&(this.customUrl=o),!o&&i&&(this.customUrl=i.endsWith("/")?`${i}${e}`:`${i}/${e}`),r&&(this.fallbackUrls=r);const a=t.NetworkDefault[e];this.defaultUrl=`${a}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}getChecksum(){var t;const n=(null!==(t=this.fallbackUrls)&&void 0!==t?t:[]).sort().join(",");return(0,e._DJB2)(this.customUrl+n)}},UrlConfiguration}function requireEventLogger(){if(hasRequiredEventLogger)return EventLogger;hasRequiredEventLogger=1;var e=EventLogger&&EventLogger.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(EventLogger,"__esModule",{value:!0}),EventLogger.EventLogger=void 0;const t=requireBatchedEventsQueue(),n=requireCacheKey(),o=requireEventRetryConstants(),i=requireFlushCoordinator(),r=requireHashing(),a=requireLog$1(),s=requireNetworkConfig(),l=requirePendingEvents(),c=requireSafeJs(),d=requireStatsigEvent(),p=requireStatsigOptionsCommon(),u=requireStorageProvider(),m=requireUrlConfiguration(),h=requireVisibilityObserving(),g={};return EventLogger.EventLogger=class x{static _safeFlushAndForget(e){var t;null===(t=g[e])||void 0===t||t.flush().catch(()=>{})}constructor(e,t,n,o,i){var r;this._sdkKey=e,this._emitter=t,this._network=n,this._options=o,this._errorBoundary=i,this._pendingEvents=null,this._batchQueue=null,this._flushCoordinator=null,this._lastExposureTimeMap={},this._nonExposedChecks={},this._isShuttingDown=!1,this._storageKey=null,this._pendingCompressionMode=null,this._loggingEnabled=null!==(r=null==o?void 0:o.loggingEnabled)&&void 0!==r?r:!0===(null==o?void 0:o.disableLogging)?p.LoggingEnabledOption.disabled:p.LoggingEnabledOption.browserOnly,(null==o?void 0:o.loggingEnabled)&&void 0!==o.disableLogging&&a.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging.");const l=null==o?void 0:o.networkConfig;this._logEventUrlConfig=new m.UrlConfiguration(s.Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._flushCoordinator?this._flushCoordinator.setLogEventCompressionMode(e):this._pendingCompressionMode=e}setLoggingEnabled(e){const t="disabled"===this._loggingEnabled,n="disabled"!==e;if(this._loggingEnabled=e,this._flushCoordinator&&this._flushCoordinator.setLoggingEnabled(e),t&&n){const e=this._loadStoredEvents();a.Log.debug(`Loaded ${e.length} stored event(s) from storage`),e.length>0&&(e.forEach(e=>{this._initFlushCoordinator().addEvent(e)}),this.flush().catch(e=>{a.Log.warn("Failed to flush events after enabling logging:",e)}))}}enqueue(e){var t;if(!this._shouldLogEvent(e))return;const n=this._normalizeEvent(e);"disabled"!==this._loggingEnabled?(this._initFlushCoordinator().addEvent(n),null===(t=this._flushCoordinator)||void 0===t||t.checkQuickFlush()):this._storeEventToStorage(n)}incrementNonExposureCount(e){var t;const n=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=n+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;const t=(0,c._isServerEnv)();if(t&&"always"!==(null===(e=this._options)||void 0===e?void 0:e.loggingEnabled))return;const n=this._initFlushCoordinator();g[this._sdkKey]=this,t||(0,h._subscribeToVisiblityChanged)(e=>{"background"===e?x._safeFlushAndForget(this._sdkKey):"foreground"===e&&n.startScheduledFlushCycle()}),n.loadAndRetryShutdownFailedEvents().catch(e=>{a.Log.warn("Failed to load failed shutdown events:",e)}),n.startScheduledFlushCycle()}stop(){return e(this,void 0,void 0,function*(){this._isShuttingDown=!0,this._flushCoordinator&&(yield this._flushCoordinator.processShutdown()),delete g[this._sdkKey],this._flushCoordinator=null,this._pendingEvents=null,this._batchQueue=null})}flush(){return e(this,void 0,void 0,function*(){if(this._flushCoordinator)return this._flushCoordinator.processManualFlush()})}appendAndResetNonExposedChecks(){if(0===Object.keys(this._nonExposedChecks).length)return;const e=Object.assign({},this._nonExposedChecks);this._nonExposedChecks={};const t=this._normalizeEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:e}});this._flushCoordinator&&this._flushCoordinator.addEvent(t)}_shouldLogEvent(e){var t;if("always"!==(null===(t=this._options)||void 0===t?void 0:t.loggingEnabled)&&(0,c._isServerEnv)())return!1;if(!(0,d._isExposureEvent)(e))return!0;const o=e.user?e.user:{statsigEnvironment:void 0},i=(0,n._getUserStorageKey)(this._sdkKey,o),r=e.metadata?e.metadata:{},a=[e.eventName,i,r.gate,r.config,r.ruleID,r.allocatedExperiment,r.parameterName,String(r.isExplicitParameter),r.reason].join("|"),s=this._lastExposureTimeMap[a],l=Date.now();return!(s&&l-s<6e5)&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[a]=l,!0)}_getCurrentPageUrl(){var e;if(!1!==(null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents))return(0,c._getCurrentPageUrlSafe)()}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.pending_events.${(0,r._DJB2)(this._sdkKey)}`),this._storageKey}_initFlushCoordinator(){var e,n;if(this._flushCoordinator)return this._flushCoordinator;const r=null!==(n=null===(e=this._options)||void 0===e?void 0:e.loggingBufferMaxSize)&&void 0!==n?n:o.EventRetryConstants.DEFAULT_BATCH_SIZE;return this._pendingEvents=new l.PendingEvents(r),this._batchQueue=new t.BatchQueue(r),this._flushCoordinator=new i.FlushCoordinator(this._batchQueue,this._pendingEvents,()=>this.appendAndResetNonExposedChecks(),this._sdkKey,this._network,this._emitter,this._logEventUrlConfig,this._options,this._loggingEnabled,this._errorBoundary),this._pendingCompressionMode&&(this._flushCoordinator.setLogEventCompressionMode(this._pendingCompressionMode),this._pendingCompressionMode=null),this._flushCoordinator}_storeEventToStorage(e){const t=this._getStorageKey();try{let n=this._getEventsFromStorage(t);n.push(e),n.length>o.EventRetryConstants.MAX_LOCAL_STORAGE&&(n=n.slice(-o.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,u._setObjectInStorage)(t,n)}catch(n){a.Log.warn("Unable to save events to storage")}}_getEventsFromStorage(e){try{const t=(0,u._getObjectFromStorage)(e);return Array.isArray(t)?t:[]}catch(t){return[]}}_loadStoredEvents(){const e=this._getStorageKey(),t=this._getEventsFromStorage(e);return t.length>0&&u.Storage.removeItem(e),t}_normalizeEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);const t={},n=this._getCurrentPageUrl();return n&&(t.statsigMetadata={currentPage:n}),Object.assign(Object.assign({},e),t)}},EventLogger}var ClientInterfaces={},hasRequiredClientInterfaces;function requireClientInterfaces(){if(hasRequiredClientInterfaces)return ClientInterfaces;hasRequiredClientInterfaces=1,Object.defineProperty(ClientInterfaces,"__esModule",{value:!0}),ClientInterfaces.PrecomputedEvaluationsContextHandle=void 0;const e=requireLog$1(),t=requireSafeJs(),n=requireSessionID(),o=requireStableID();return ClientInterfaces.PrecomputedEvaluationsContextHandle=class{constructor(e,t,n,o,i,r){this._sdkKey=e,this._getOptions=t,this._getErrorBoundary=n,this._getValues=o,this._getUser=i,this._getSdkInstanceID=r}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let n=(0,t._cloneObject)("StatsigUser",this._getUser());return null==n&&(e.Log.error("Failed to clone user"),n={}),n}getSession(e=!0){return n.StatsigSession.get(this._sdkKey,e)}get stableID(){return o.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(e=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(e),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}},ClientInterfaces}var DataAdapterCore={},StatsigUser={},hasRequiredStatsigUser;function requireStatsigUser(){if(hasRequiredStatsigUser)return StatsigUser;hasRequiredStatsigUser=1,Object.defineProperty(StatsigUser,"__esModule",{value:!0}),StatsigUser._getUnitIDFromUser=StatsigUser._getFullUserHash=StatsigUser._normalizeUser=void 0;const e=requireHashing(),t=requireLog$1(),n=requireSafeJs();return StatsigUser._normalizeUser=function(e,o,i){const r=(0,n._cloneObject)("StatsigUser",e);return null==r?(t.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=o&&null!=o.environment?r.statsigEnvironment=o.environment:null!=i&&(r.statsigEnvironment={tier:i}),r)},StatsigUser._getFullUserHash=function(t){return t?(0,e._DJB2Object)(t):null},StatsigUser._getUnitIDFromUser=function(e,t){var n,o,i;if("string"!=typeof t)return e.userID;const r=t.toLowerCase();return"userid"!==r?null!==(o=null===(n=e.customIDs)||void 0===n?void 0:n[t])&&void 0!==o?o:null===(i=e.customIDs)||void 0===i?void 0:i[r]:e.userID},StatsigUser}var TypedJsonParse={},hasRequiredTypedJsonParse,hasRequiredDataAdapterCore;function requireTypedJsonParse(){if(hasRequiredTypedJsonParse)return TypedJsonParse;hasRequiredTypedJsonParse=1,Object.defineProperty(TypedJsonParse,"__esModule",{value:!0}),TypedJsonParse._typedJsonParse=void 0;const e=requireLog$1();return TypedJsonParse._typedJsonParse=function(t,n,o){try{const e=JSON.parse(t);if(e&&"object"==typeof e&&n in e)return e}catch(i){}return e.Log.error(`Failed to parse ${o}`),null},TypedJsonParse}function requireDataAdapterCore(){if(hasRequiredDataAdapterCore)return DataAdapterCore;hasRequiredDataAdapterCore=1;var e=DataAdapterCore&&DataAdapterCore.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(DataAdapterCore,"__esModule",{value:!0}),DataAdapterCore._makeDataAdapterResult=DataAdapterCore.DataAdapterCore=void 0;const t=requireLog$1(),n=requireStableID(),o=requireStatsigUser(),i=requireStorageProvider(),r=requireTypedJsonParse();function a(e,t,n,i){return{source:e,data:t,receivedAt:Date.now(),stableID:n,fullUserHash:(0,o._getFullUserHash)(i)}}DataAdapterCore.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new s}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){const t=e&&(0,o._normalizeUser)(e,this._options),n=this._getCacheKey(t),i=this._inMemoryCache.get(n,t);if(i&&this._getIsCacheValueValid(i))return i;const r=this._loadFromCache(n);return r&&this._getIsCacheValueValid(r)?(this._inMemoryCache.add(n,r,this._cacheLimit),this._inMemoryCache.get(n,t)):null}setData(e,t){const n=t&&(0,o._normalizeUser)(t,this._options),i=this._getCacheKey(n);this._inMemoryCache.add(i,a("Bootstrap",e,null,n),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===n.StableID.get(this._getSdkKey())}_getDataAsyncImpl(n,o,r){return e(this,void 0,void 0,function*(){i.Storage.isReady()||(yield i.Storage.isReadyResolver());const e=null!=n?n:this.getDataSync(o),a=[this._fetchAndPrepFromNetwork(e,o,r)];return(null==r?void 0:r.timeoutMs)&&a.push(new Promise(e=>setTimeout(e,r.timeoutMs)).then(()=>(t.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(a)})}_prefetchDataImpl(t,n){return e(this,void 0,void 0,function*(){const e=t&&(0,o._normalizeUser)(t,this._options),i=this._getCacheKey(e),r=yield this._getDataAsyncImpl(null,e,n);r&&this._inMemoryCache.add(i,Object.assign(Object.assign({},r),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(o,i,s){return e(this,void 0,void 0,function*(){var e;const l=null!==(e=null==o?void 0:o.data)&&void 0!==e?e:null,c=null!=o&&this._isCachedResultValidFor204(o,i),d=yield this._fetchFromNetwork(l,i,s,c);if(!d)return t.Log.debug("No response returned for latest value"),null;const p=(0,r._typedJsonParse)(d,"has_updates","Response"),u=this._getSdkKey(),m=n.StableID.get(u);let h=null;if(!0===(null==p?void 0:p.has_updates))h=a("Network",d,m,i);else{if(!l||!1!==(null==p?void 0:p.has_updates))return null;h=a("NetworkNotModified",l,m,i)}const g=this._getCacheKey(i);return this._inMemoryCache.add(g,h,this._cacheLimit),this._writeToCache(g,h),h})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(t.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;const n=null===(t=i.Storage.getItem)||void 0===t?void 0:t.call(i.Storage,e);if(null==n)return null;const o=(0,r._typedJsonParse)(n,"source","Cached Result");return o?Object.assign(Object.assign({},o),{source:"Cache"}):null}_writeToCache(e,t){const n=JSON.stringify(t);for(let r=0;r<8;r++)try{i.Storage.setItem(e,n);break}catch(o){if(!(o instanceof Error)||!o.toString().includes("QuotaExceededError")&&!o.toString().includes("QUOTA_EXCEEDED_ERR")||this._cacheLimit<=1)throw o;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var n;const o=null!==(n=(0,i._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==n?n:{};o[e]=Date.now();const r=l(o,t);for(const a of r)delete o[a],i.Storage.removeItem(a);(0,i._setObjectInStorage)(this._lastModifiedStoreKey,o)}},DataAdapterCore._makeDataAdapterResult=a;class s{constructor(){this._data={}}get(e,n){var o;const i=this._data[e],r=null==i?void 0:i.stableID,a=null===(o=null==n?void 0:n.customIDs)||void 0===o?void 0:o.stableID;return a&&r&&a!==r?(t.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):i}add(e,t,n){const o=l(this._data,n-1);for(const i of o)delete this._data[i];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function l(e,t){const n=Object.keys(e);return n.length<=t?[]:0===t?n:n.sort((t,n)=>{const o=e[t],i=e[n];return"object"==typeof o&&"object"==typeof i?o.receivedAt-i.receivedAt:o-i}).slice(0,n.length-t)}return DataAdapterCore}var DownloadConfigSpecsResponse={},hasRequiredDownloadConfigSpecsResponse;function requireDownloadConfigSpecsResponse(){return hasRequiredDownloadConfigSpecsResponse||(hasRequiredDownloadConfigSpecsResponse=1,Object.defineProperty(DownloadConfigSpecsResponse,"__esModule",{value:!0})),DownloadConfigSpecsResponse}var ErrorBoundary={},hasRequiredErrorBoundary;function requireErrorBoundary(){return hasRequiredErrorBoundary||(hasRequiredErrorBoundary=1,function(e){var t=ErrorBoundary&&ErrorBoundary.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=e.EXCEPTION_ENDPOINT=void 0;const n=requireLog$1(),o=requireSDKType(),i=requireStatsigMetadata();e.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const r="[Statsig] UnknownError";function a(e){return e instanceof Error?e:"string"==typeof e?new Error(e):new Error("An unknown error occurred.")}function s(e){if(!e)return{};const t={};return Object.keys(e).forEach(n=>{const o=n,i=e[o];switch(typeof i){case"number":case"bigint":case"boolean":t[String(o)]=i;break;case"string":i.length<50?t[String(o)]=i:t[String(o)]="set";break;case"object":"environment"===o?t.environment=i:"networkConfig"===o?t.networkConfig=i:t[String(o)]=null!=i?"set":"unset"}}),t}e.ErrorBoundary=class{constructor(e,t,n,o){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=o,this._seen=/* @__PURE__ */new Set}wrap(e,t){try{const n=e;(function(e){const t=/* @__PURE__ */new Set;let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter(e=>"function"==typeof(null==n?void 0:n[e])).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)})(n).forEach(o=>{const i=n[o];"$EB"in i||(n[o]=(...n)=>this._capture(t?`${t}:${o}`:o,()=>i.apply(e,n)),n[o].$EB=!0)})}catch(n){this._onError("eb:wrap",n)}}logError(e,t){this._onError(e,t)}logDroppedEvents(e,t,n){const o={eventCount:String(e),reason:t};n&&Object.keys(n).forEach(e=>{o[e]=String(n[e])}),this._onError("statsig::log_event_dropped_event_count",new Error(t),!0,o)}logEventRequestFailure(e,t,n,o,i,r,a,s,l){const c={eventCount:String(e),flushType:n,statusCode:String(o),reason:t,retries:String(i)};r&&(c.failurePath=r),"string"==typeof a&&a.length>0&&(c.failureErrorMessage=a),"string"==typeof s&&s.length>0&&(c.failureDiagnosticBucket=s),l&&Object.keys(l).forEach(e=>{const t=l[e];t.length>0&&(c[`failureDiagnostic_${e}`]=t)}),this._onError("statsig::log_event_failed",new Error(t),!0,c)}getLastSeenErrorAndReset(){const e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=a(e))}_capture(e,t){try{const n=t();return n&&n instanceof Promise?n.catch(t=>this._onError(e,t)):n}catch(n){return this._onError(e,n),null}}_onError(l,c,d=!1,p){try{n.Log.warn(`Caught error in ${l}`,{error:c});(()=>t(this,void 0,void 0,function*(){var t,n,u,m,h,g,x;const f=c||Error(r),y=f instanceof Error,S=y?f.name:"No Name",C=a(f);if(this._lastSeenError=C,!d&&this._seen.has(S))return;if(this._seen.add(S),null===(n=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===n?void 0:n.preventAllNetworkTraffic)return void(null===(u=this._emitter)||void 0===u||u.call(this,{name:"error",error:c,tag:l}));const $=o.SDKType._get(this._sdkKey),b=i.StatsigMetadataProvider.get(),v=y?f.stack:function(e){try{return JSON.stringify(e)}catch(t){return r}}(f),E=Object.assign(Object.assign({tag:l,exception:S,info:v,statsigOptions:s(this._options)},Object.assign(Object.assign({},b),{sdkType:$})),null!=p?p:{}),w=null===(m=this._options)||void 0===m?void 0:m.networkConfig,R=null!==(h=null==w?void 0:w.networkOverrideFunc)&&void 0!==h?h:fetch;yield R(null!==(g=null==w?void 0:w.sdkExceptionUrl)&&void 0!==g?g:e.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String($),"STATSIG-SDK-VERSION":String(b.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(E)}),null===(x=this._emitter)||void 0===x||x.call(this,{name:"error",error:c,tag:l})}))().then(()=>{}).catch(()=>{})}catch(u){}}}}(ErrorBoundary)),ErrorBoundary}var EvaluationOptions={},hasRequiredEvaluationOptions;function requireEvaluationOptions(){return hasRequiredEvaluationOptions||(hasRequiredEvaluationOptions=1,Object.defineProperty(EvaluationOptions,"__esModule",{value:!0})),EvaluationOptions}var EvaluationTypes={},hasRequiredEvaluationTypes;function requireEvaluationTypes(){return hasRequiredEvaluationTypes||(hasRequiredEvaluationTypes=1,Object.defineProperty(EvaluationTypes,"__esModule",{value:!0})),EvaluationTypes}var InitializeResponse={},hasRequiredInitializeResponse;function requireInitializeResponse(){return hasRequiredInitializeResponse||(hasRequiredInitializeResponse=1,Object.defineProperty(InitializeResponse,"__esModule",{value:!0})),InitializeResponse}var MemoKey={},hasRequiredMemoKey;function requireMemoKey(){if(hasRequiredMemoKey)return MemoKey;hasRequiredMemoKey=1,Object.defineProperty(MemoKey,"__esModule",{value:!0}),MemoKey.createMemoKey=MemoKey.MemoPrefix=void 0,MemoKey.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};const e=/* @__PURE__ */new Set([]),t=/* @__PURE__ */new Set(["userPersistedValues"]);return MemoKey.createMemoKey=function(n,o,i){let r=`${n}|${o}`;if(!i)return r;for(const a of Object.keys(i)){if(t.has(a))return;e.has(a)?r+=`|${a}=true`:r+=`|${a}=${i[a]}`}return r},MemoKey}var OverrideAdapter={},hasRequiredOverrideAdapter;function requireOverrideAdapter(){return hasRequiredOverrideAdapter||(hasRequiredOverrideAdapter=1,Object.defineProperty(OverrideAdapter,"__esModule",{value:!0})),OverrideAdapter}var ParamStoreTypes={},hasRequiredParamStoreTypes;function requireParamStoreTypes(){return hasRequiredParamStoreTypes||(hasRequiredParamStoreTypes=1,Object.defineProperty(ParamStoreTypes,"__esModule",{value:!0})),ParamStoreTypes}var SizeOf={},hasRequiredSizeOf;function requireSizeOf(){return hasRequiredSizeOf||(hasRequiredSizeOf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._fastApproxSizeOf=void 0;e._fastApproxSizeOf=(t,n)=>{let o=0;const i=Object.keys(t);for(let r=0;r<i.length;r++){const a=i[r],s=t[a];if(o+=a.length,o+="object"==typeof s&&null!==s?(0,e._fastApproxSizeOf)(s,n)+2:String(s).length+1,o>=n)return o}return o}}(SizeOf)),SizeOf}var StatsigClientBase={},hasRequiredStatsigClientBase;function requireStatsigClientBase(){if(hasRequiredStatsigClientBase)return StatsigClientBase;hasRequiredStatsigClientBase=1;var e=StatsigClientBase&&StatsigClientBase.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigClientBase,"__esModule",{value:!0}),StatsigClientBase.StatsigClientBase=void 0,require$_StatsigGlobal();const t=require$_StatsigGlobal(),n=requireErrorBoundary(),o=requireEventLogger(),i=requireLog$1(),r=requireMemoKey(),a=requireSafeJs(),s=requireSessionID(),l=requireStableID(),c=requireStatsigOptionsCommon(),d=requireStorageProvider();return StatsigClientBase.StatsigClientBase=class{constructor(e,r,c,p){var u,m,h,g;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const x=this.$emt.bind(this);null!=(null==p?void 0:p.logLevel)&&(i.Log.level=p.logLevel),(null==p?void 0:p.disableStorage)&&d.Storage._setDisabled(!0),(null==p?void 0:p.initialSessionID)&&s.StatsigSession.overrideInitialSessionID(p.initialSessionID,e),(null==p?void 0:p.storageProvider)&&d.Storage._setProvider(p.storageProvider),(null==p?void 0:p.enableCookies)&&l.StableID._setCookiesEnabled(e,p.enableCookies),(null==p?void 0:p.disableStableID)&&l.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=p?p:{},this._memoCache={},this.overrideAdapter=null!==(u=null==p?void 0:p.overrideAdapter)&&void 0!==u?u:null,this._errorBoundary=new n.ErrorBoundary(e,p,x),this._logger=new o.EventLogger(e,x,c,p,this._errorBoundary),this._errorBoundary.wrap(this),this._errorBoundary.wrap(r),this._errorBoundary.wrap(this._logger),c.setErrorBoundary(this._errorBoundary),this.dataAdapter=r,this.dataAdapter.attach(e,p,c),this.storageProvider=d.Storage,null===(g=null===(h=null===(m=this.overrideAdapter)||void 0===m?void 0:m.loadFromStorage)||void 0===h?void 0:h.call(m))||void 0===g||g.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,n){var o;if((0,a._isServerEnv)())return;const r=(0,t._getStatsigGlobal)(),s=null!==(o=r.instances)&&void 0!==o?o:{},l=n;null!=s[e]&&i.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys.");s[e]=l,r.firstInstance||(r.firstInstance=l);r.instances=s,__STATSIG__=r}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,d.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,l.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(c.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return e(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){const n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;const n=t=>{try{t(e)}catch(n){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,n);i.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>n(e)),null===(t=this._listeners["*"])||void 0===t||t.forEach(n)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){!0!==(null==n?void 0:n.disableExposureLog)?this._logger.enqueue(t):this._logger.incrementNonExposureCount(e)}_memoize(e,t){return(n,o)=>{if(this._options.disableEvaluationMemoization)return t(n,o);const i=(0,r.createMemoKey)(e,n,o);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(n,o)),this._memoCache[i]):t(n,o)}}},StatsigClientBase}var StatsigDataAdapter={},hasRequiredStatsigDataAdapter;function requireStatsigDataAdapter(){return hasRequiredStatsigDataAdapter||(hasRequiredStatsigDataAdapter=1,Object.defineProperty(StatsigDataAdapter,"__esModule",{value:!0}),StatsigDataAdapter.DataAdapterCachePrefix=void 0,StatsigDataAdapter.DataAdapterCachePrefix="statsig.cached"),StatsigDataAdapter}var StatsigPlugin={},hasRequiredStatsigPlugin;function requireStatsigPlugin(){return hasRequiredStatsigPlugin||(hasRequiredStatsigPlugin=1,Object.defineProperty(StatsigPlugin,"__esModule",{value:!0})),StatsigPlugin}var StatsigTypeFactories={},hasRequiredStatsigTypeFactories;function requireStatsigTypeFactories(){if(hasRequiredStatsigTypeFactories)return StatsigTypeFactories;hasRequiredStatsigTypeFactories=1,Object.defineProperty(StatsigTypeFactories,"__esModule",{value:!0}),StatsigTypeFactories._makeTypedGet=StatsigTypeFactories._mergeOverride=StatsigTypeFactories._makeLayer=StatsigTypeFactories._makeExperiment=StatsigTypeFactories._makeDynamicConfig=StatsigTypeFactories._makeFeatureGate=void 0;const e=requireLog$1(),t=requireTypingUtils();function n(e,t,n,o){var i;return{name:e,details:t,ruleID:null!==(i=null==n?void 0:n.rule_id)&&void 0!==i?i:"",__evaluation:n,value:o}}function o(e,t,o){var r,a;const s=null!==(r=null==o?void 0:o.value)&&void 0!==r?r:{};return Object.assign(Object.assign({},n(e,t,o,s)),{idType:null!==(a=null==o?void 0:o.id_type)&&void 0!==a?a:null,get:i(e,null==o?void 0:o.value)})}function i(n,o,i){return(r,a)=>{var s;const l=null!==(s=null==o?void 0:o[r])&&void 0!==s?s:null;return null==l?null!=a?a:null:null==a||(0,t._isTypeMatch)(l,a)?(null==i||i(r),l):(e.Log.warn(`Parameter type mismatch. '${n}.${r}' was found to be type '${typeof l}' but fallback/return type is '${typeof a}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=a?a:null)}}return StatsigTypeFactories._makeFeatureGate=function(e,t,o){var i;return Object.assign(Object.assign({},n(e,t,o,!0===(null==o?void 0:o.value))),{idType:null!==(i=null==o?void 0:o.id_type)&&void 0!==i?i:null})},StatsigTypeFactories._makeDynamicConfig=o,StatsigTypeFactories._makeExperiment=function(e,t,n){var i;const r=o(e,t,n);return Object.assign(Object.assign({},r),{groupName:null!==(i=null==n?void 0:n.group_name)&&void 0!==i?i:null})},StatsigTypeFactories._makeLayer=function(e,t,o,r){var a,s;return Object.assign(Object.assign({},n(e,t,o,void 0)),{get:i(e,null==o?void 0:o.value,r),groupName:null!==(a=null==o?void 0:o.group_name)&&void 0!==a?a:null,__value:null!==(s=null==o?void 0:o.value)&&void 0!==s?s:{}})},StatsigTypeFactories._mergeOverride=function(e,t,n,o){return Object.assign(Object.assign(Object.assign({},e),t),{get:i(e.name,n,o)})},StatsigTypeFactories._makeTypedGet=i,StatsigTypeFactories}var StatsigTypes={},hasRequiredStatsigTypes;function requireStatsigTypes(){return hasRequiredStatsigTypes||(hasRequiredStatsigTypes=1,Object.defineProperty(StatsigTypes,"__esModule",{value:!0})),StatsigTypes}var StatsigUpdateDetails={},hasRequiredStatsigUpdateDetails,hasRequiredSrc$2;function requireStatsigUpdateDetails(){if(hasRequiredStatsigUpdateDetails)return StatsigUpdateDetails;hasRequiredStatsigUpdateDetails=1,Object.defineProperty(StatsigUpdateDetails,"__esModule",{value:!0}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES=StatsigUpdateDetails.createUpdateDetails=void 0;return StatsigUpdateDetails.createUpdateDetails=(e,t,n,o,i,r)=>({duration:n,source:t,success:e,error:o,sourceUrl:i,warnings:r}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."},StatsigUpdateDetails}function requireSrc$2(){return hasRequiredSrc$2||(hasRequiredSrc$2=1,function(e){var t=src$1&&src$1.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src$1&&src$1.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.Log=e.EventLogger=e.Diagnostics=void 0,require$_StatsigGlobal();const o=require$_StatsigGlobal(),i=requireDiagnostics();Object.defineProperty(e,"Diagnostics",{enumerable:!0,get:function(){return i.Diagnostics}});const r=requireEventLogger();Object.defineProperty(e,"EventLogger",{enumerable:!0,get:function(){return r.EventLogger}});const a=requireLog$1();Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return a.Log}});const s=requireStatsigMetadata(),l=requireStorageProvider();Object.defineProperty(e,"Storage",{enumerable:!0,get:function(){return l.Storage}}),n(require$_StatsigGlobal(),e),n(requireCacheKey(),e),n(requireClientInterfaces(),e),n(requireDataAdapterCore(),e),n(requireDiagnostics(),e),n(requireDownloadConfigSpecsResponse(),e),n(requireErrorBoundary(),e),n(requireEvaluationOptions(),e),n(requireEvaluationTypes(),e),n(requireHashing(),e),n(requireInitializeResponse(),e),n(requireLog$1(),e),n(requireMemoKey(),e),n(requireNetworkConfig(),e),n(requireNetworkCore(),e),n(requireOverrideAdapter(),e),n(requireParamStoreTypes(),e),n(requireSafeJs(),e),n(requireSDKType(),e),n(requireSessionID(),e),n(requireSizeOf(),e),n(requireStableID(),e),n(requireStatsigClientBase(),e),n(requireStatsigClientEventEmitter(),e),n(requireStatsigDataAdapter(),e),n(requireStatsigEvent(),e),n(requireStatsigMetadata(),e),n(requireStatsigOptionsCommon(),e),n(requireStatsigPlugin(),e),n(requireStatsigTypeFactories(),e),n(requireStatsigTypes(),e),n(requireStatsigUser(),e),n(requireStorageProvider(),e),n(requireTypedJsonParse(),e),n(requireTypingUtils(),e),n(requireUrlConfiguration(),e),n(requireUUID(),e),n(requireVisibilityObserving(),e),n(requireStatsigUpdateDetails(),e),n(requireSDKFlags(),e),Object.assign((0,o._getStatsigGlobal)(),{Log:a.Log,SDK_VERSION:s.SDK_VERSION})}(src$1)),src$1}var StatsigContext={},NoopEvaluationsClient={},hasRequiredNoopEvaluationsClient,hasRequiredStatsigContext;function requireNoopEvaluationsClient(){if(hasRequiredNoopEvaluationsClient)return NoopEvaluationsClient;hasRequiredNoopEvaluationsClient=1,Object.defineProperty(NoopEvaluationsClient,"__esModule",{value:!0}),NoopEvaluationsClient.isNoopClient=NoopEvaluationsClient.NoopEvaluationsClient=void 0;const e=requireSrc$2(),t={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},n=()=>{},o=()=>t,i=()=>Promise.resolve(),r=()=>Promise.resolve(t),a={reason:"Error:NoClient"},s=t=>(...n)=>{const o="string"==typeof n[0]?n[0]:n[1];switch(t){case"gate":return(0,e._makeFeatureGate)(o,a,null);case"config":return(0,e._makeDynamicConfig)(o,a,null);case"layer":return(0,e._makeLayer)(o,a,null);case"param_store":return{name:o}}},l={attach:n,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:n,setDataLegacy:n,prefetchData:i},c={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:e.Storage,sdkInstanceID:""},d=new e.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>""),p={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:o,initializeAsync:r,shutdown:i,flush:i,updateRuntimeOptions:n,updateUserSync:o,updateUserAsync:r,getContext:()=>Object.assign({},c),getContextHandle:()=>d,checkGate:()=>!1,getFeatureGate:s("gate"),getDynamicConfig:s("config"),getExperiment:s("config"),getLayer:s("layer"),getParameterStore:s("param_store"),logEvent:n,on:n,off:n,$on:n,$emt:n,dataAdapter:l};return NoopEvaluationsClient.NoopEvaluationsClient=p,NoopEvaluationsClient.isNoopClient=function(e){return"isNoop"in e},NoopEvaluationsClient}function requireStatsigContext(){if(hasRequiredStatsigContext)return StatsigContext;hasRequiredStatsigContext=1,Object.defineProperty(StatsigContext,"__esModule",{value:!0});const e=React__default,t=requireNoopEvaluationsClient();return StatsigContext.default=(0,e.createContext)({renderVersion:0,client:t.NoopEvaluationsClient,isLoading:!0}),StatsigContext}var StatsigProvider={},useClientAsyncInit={},src={},StatsigClient={},EvaluationStore={},V1InitializeContainer={},hasRequiredV1InitializeContainer;function requireV1InitializeContainer(){if(hasRequiredV1InitializeContainer)return V1InitializeContainer;hasRequiredV1InitializeContainer=1,Object.defineProperty(V1InitializeContainer,"__esModule",{value:!0}),V1InitializeContainer.V1InitializeContainer=void 0;const e=requireSrc$2();return V1InitializeContainer.V1InitializeContainer=class{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(t,n){var o,i;return t&&null!==(i=null!==(o=t[n])&&void 0!==o?o:t[(0,e._DJB2)(n)])&&void 0!==i?i:null}},V1InitializeContainer}var V2InitializeContainer={},hasRequiredV2InitializeContainer,hasRequiredEvaluationStore;function requireV2InitializeContainer(){if(hasRequiredV2InitializeContainer)return V2InitializeContainer;hasRequiredV2InitializeContainer=1,Object.defineProperty(V2InitializeContainer,"__esModule",{value:!0}),V2InitializeContainer.V2InitializeContainer=void 0;const e=requireSrc$2();return V2InitializeContainer.V2InitializeContainer=class{constructor(e){this._values=e}getGate(e){var t,n,o;const i=this._getResultFromLookup(this._values.feature_gates,e);return i?{name:e,value:!0===i.v,rule_id:null!==(t=i.r)&&void 0!==t?t:"default",secondary_exposures:null!==(n=i.s)&&void 0!==n?n:[],id_type:null!==(o=i.i)&&void 0!==o?o:""}:null}getConfig(e){var t,n,o,i;const r=this._getResultFromLookup(this._values.dynamic_configs,e);return r?{name:e,value:null!==(t=this._values.values[r.v])&&void 0!==t?t:{},rule_id:r.r,secondary_exposures:null!==(n=r.s)&&void 0!==n?n:[],id_type:null!==(o=r.i)&&void 0!==o?o:"",is_user_in_experiment:!0===r.ue,passed:!0===r.p,group_name:null!==(i=r.gn)&&void 0!==i?i:void 0,is_experiment_active:!0===r.ea,group:r.r,is_device_based:"stableID"===r.i}:null}getLayer(e){var t,n,o,i,r,a;const s=this._getResultFromLookup(this._values.layer_configs,e);return s?{name:e,value:null!==(t=this._values.values[s.v])&&void 0!==t?t:{},rule_id:s.r,secondary_exposures:null!==(n=s.s)&&void 0!==n?n:[],is_user_in_experiment:!0===s.ue,group_name:null!==(o=s.gn)&&void 0!==o?o:void 0,is_experiment_active:!0===s.ea,group:s.r,is_device_based:"stableID"===s.i,allocated_experiment_name:null!==(i=s.ae)&&void 0!==i?i:"",explicit_parameters:null!==(r=s.ep)&&void 0!==r?r:[],undelegated_secondary_exposures:null!==(a=s.us)&&void 0!==a?a:[],parameter_rule_ids:s.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(t,n){var o,i;return t&&null!==(i=null!==(o=t[n])&&void 0!==o?o:t[(0,e._DJB2)(n)])&&void 0!==i?i:null}},V2InitializeContainer}function requireEvaluationStore(){if(hasRequiredEvaluationStore)return EvaluationStore;hasRequiredEvaluationStore=1,Object.defineProperty(EvaluationStore,"__esModule",{value:!0});const e=requireSrc$2(),t=requireV1InitializeContainer(),n=requireV2InitializeContainer();return EvaluationStore.default=class{constructor(e,t){this._sdkKey=e,this._options=t,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=/* @__PURE__ */new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(o,i){var r,a;if(!o)return!1;const s=(0,e._typedJsonParse)(o.data,"has_updates","EvaluationResponse");if(null==s)return!1;if(this._source=o.source,!0!==(null==s?void 0:s.has_updates))return!0;return(null!==(r=s.time)&&void 0!==r?r:0)<this._lcut||(this._valuesForExternalUse=(0,e._typedJsonParse)(o.data,"has_updates","EvaluationResponse"),this._lcut=s.time,this._receivedAt=o.receivedAt,"init-v2"===s.response_format?this._values=new n.V2InitializeContainer(s):this._values=new t.V1InitializeContainer(s),this._bootstrapMetadata=this._extractBootstrapMetadata(o.source,s),o.source&&s.user&&this._setWarningState(i,s),e.SDKFlags.setFlags(this._sdkKey,null!==(a=s.sdk_flags)&&void 0!==a?a:{})),!0}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){const t=this._values?this._values.getGate(e):null;return this._getDetailedStoreResult(t)}getConfig(e){const t=this._values?this._values.getConfig(e):null;return this._getDetailedStoreResult(t)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(e){const t=this._values?this._values.getLayer(e):null;return this._getDetailedStoreResult(t)}getParamStore(e){const t=this._values?this._values.getParamStore(e):null;return this._getDetailedStoreResult(t)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.getExposureMapping()}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;const n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e){return{result:e,details:this._getDetails(null==e)}}_setWarningState(t,n){var o,i,r;const a=e.StableID.get(this._sdkKey);if((null===(o=t.customIDs)||void 0===o?void 0:o.stableID)===a||!(null===(i=t.customIDs)||void 0===i?void 0:i.stableID)&&!a){if("user"in n){let o=n.user,i=Object.assign(Object.assign({},t),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(null===(r=this._options)||void 0===r?void 0:r.disableStableID)&&(i=Object.assign(Object.assign({},i),{customIDs:Object.assign(Object.assign({},i.customIDs),{stableID:void 0})}),o=Object.assign(Object.assign({},o),{customIDs:Object.assign(Object.assign({},o.customIDs),{stableID:void 0})})),(0,e._getFullUserHash)(i)!==(0,e._getFullUserHash)(o)&&this._warnings.add("PartialUserMatch")}}else this._warnings.add("StableIDMismatch")}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};const e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;const o=this.getCurrentSourceDetails();let i=o.reason;const r=null!==(t=o.warnings)&&void 0!==t?t:[];if("Bootstrap"===this._source&&r.length>0&&(i+=r[0]),"Uninitialized"!==i&&"NoValues"!==i){i=`${i}:${e?"Unrecognized":"Recognized"}`}const a="Bootstrap"===this._source&&null!==(n=this._bootstrapMetadata)&&void 0!==n?n:void 0;return a&&(o.bootstrapMetadata=a),Object.assign(Object.assign({},o),{reason:i})}},EvaluationStore}var Network={},EvaluationResponseDeltas={},hasRequiredEvaluationResponseDeltas,hasRequiredNetwork;function requireEvaluationResponseDeltas(){if(hasRequiredEvaluationResponseDeltas)return EvaluationResponseDeltas;hasRequiredEvaluationResponseDeltas=1,Object.defineProperty(EvaluationResponseDeltas,"__esModule",{value:!0}),EvaluationResponseDeltas._resolveDeltasResponse=void 0;const e=requireSrc$2();function t(e,t){null==e||e.forEach(e=>{delete t[e]})}return EvaluationResponseDeltas._resolveDeltasResponse=function(n,o){const i=(0,e._typedJsonParse)(o,"checksum","DeltasEvaluationResponse");if(!i)return{hadBadDeltaChecksum:!0};const r=function(e){const n=e;return t(e.deleted_gates,n.feature_gates),delete n.deleted_gates,t(e.deleted_configs,n.dynamic_configs),delete n.deleted_configs,t(e.deleted_layers,n.layer_configs),delete n.deleted_layers,n}(function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{feature_gates:Object.assign(Object.assign({},e.feature_gates),t.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),t.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),t.dynamic_configs)})}(n,i)),a=(0,e._DJB2Object)({feature_gates:r.feature_gates,dynamic_configs:r.dynamic_configs,layer_configs:r.layer_configs},2);return a===i.checksumV2?JSON.stringify(r):{hadBadDeltaChecksum:!0,badChecksum:a,badMergedConfigs:r,badFullResponse:i.deltas_full_response}},EvaluationResponseDeltas}function requireNetwork(){if(hasRequiredNetwork)return Network;hasRequiredNetwork=1;var e=Network&&Network.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(Network,"__esModule",{value:!0});const t=requireSrc$2(),n=requireEvaluationResponseDeltas();class o extends t.NetworkCore{constructor(e,n){super(e,n);const o=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new t.UrlConfiguration(t.Endpoint._initialize,null==o?void 0:o.initializeUrl,null==o?void 0:o.api,null==o?void 0:o.initializeFallbackUrls)}fetchEvaluations(n,o,i,r,a){return e(this,void 0,void 0,function*(){var e,s,l,c,d,p;const u=o?(0,t._typedJsonParse)(o,"has_updates","InitializeResponse"):null;let m={user:r,hash:null!==(l=null===(s=null===(e=this._option)||void 0===e?void 0:e.networkConfig)||void 0===s?void 0:s.initializeHashAlgorithm)&&void 0!==l?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==u?void 0:u.has_updates){const e=(null==u?void 0:u.hash_used)!==(null!==(p=null===(d=null===(c=this._option)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.initializeHashAlgorithm)&&void 0!==p?p:"djb2");m=Object.assign(Object.assign({},m),{sinceTime:a&&!e?u.time:0,previousDerivedFields:"derived_fields"in u&&a?u.derived_fields:{},deltasResponseRequested:!0,full_checksum:u.full_checksum,partialUserMatchSinceTime:e?0:u.time})}return this._fetchEvaluations(n,u,m,i)})}_fetchEvaluations(t,o,i,r){return e(this,void 0,void 0,function*(){var e,a;const s=yield this.post({sdkKey:t,urlConfig:this._initializeUrlConfig,data:i,retries:2,isStatsigEncodable:!0,priority:r});if(204===(null==s?void 0:s.code))return'{"has_updates": false}';if(200!==(null==s?void 0:s.code))return null!==(e=null==s?void 0:s.body)&&void 0!==e?e:null;if(!0!==(null==o?void 0:o.has_updates)||!0!==(null===(a=s.body)||void 0===a?void 0:a.includes('"is_delta":true'))||!0!==i.deltasResponseRequested)return s.body;const l=(0,n._resolveDeltasResponse)(o,s.body);return"string"==typeof l?l:this._fetchEvaluations(t,o,Object.assign(Object.assign(Object.assign({},i),l),{deltasResponseRequested:!1}),r)})}}return Network.default=o,Network}var ParamStoreGetterFactory={},hasRequiredParamStoreGetterFactory;function requireParamStoreGetterFactory(){if(hasRequiredParamStoreGetterFactory)return ParamStoreGetterFactory;hasRequiredParamStoreGetterFactory=1,Object.defineProperty(ParamStoreGetterFactory,"__esModule",{value:!0}),ParamStoreGetterFactory._makeParamStoreGetter=void 0;const e=requireSrc$2(),t={disableExposureLog:!0};function n(e){return null==e||!1===e.disableExposureLog}function o(t,n){return null!=n&&!(0,e._isTypeMatch)(t,n)}return ParamStoreGetterFactory._makeParamStoreGetter=function(i,r,a){return(s,l)=>{if(null==r)return l;const c=r[s];if(null==c||null!=l&&(0,e._typeOf)(l)!==c.param_type)return l;switch(c.ref_type){case"static":return function(e){return e.value}(c);case"gate":return function(e,o,i){return e.getFeatureGate(o.gate_name,n(i)?void 0:t).value?o.pass_value:o.fail_value}(i,c,a);case"dynamic_config":return function(e,i,r,a){const s=e.getDynamicConfig(i.config_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);case"experiment":return function(e,i,r,a){const s=e.getExperiment(i.experiment_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);case"layer":return function(e,i,r,a){const s=e.getLayer(i.layer_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);default:return l}}},ParamStoreGetterFactory}var StatsigEvaluationsDataAdapter={},hasRequiredStatsigEvaluationsDataAdapter,hasRequiredStatsigClient,hasRequiredSrc$1;function requireStatsigEvaluationsDataAdapter(){if(hasRequiredStatsigEvaluationsDataAdapter)return StatsigEvaluationsDataAdapter;hasRequiredStatsigEvaluationsDataAdapter=1;var e=StatsigEvaluationsDataAdapter&&StatsigEvaluationsDataAdapter.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigEvaluationsDataAdapter,"__esModule",{value:!0}),StatsigEvaluationsDataAdapter.StatsigEvaluationsDataAdapter=void 0;const t=requireSrc$2(),n=requireNetwork();let o=class extends t.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,o){super.attach(e,t,o),null!==o&&o instanceof n.default?this._network=o:this._network=new n.default(null!=t?t:{})}getDataAsync(e,n,o){return this._getDataAsyncImpl(e,(0,t._normalizeUser)(n,this._options),o)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){const n=(0,t._typedJsonParse)(e,"has_updates","data");n&&"user"in n?super.setData(e,n.user):t.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(t,n,o,i){return e(this,void 0,void 0,function*(){var e;const r=yield null===(e=this._network)||void 0===e?void 0:e.fetchEvaluations(this._getSdkKey(),t,null==o?void 0:o.priority,n,i);return null!=r?r:null})}_getCacheKey(e){var n;const o=(0,t._getStorageKey)(this._getSdkKey(),e,null===(n=this._options)||void 0===n?void 0:n.customUserCacheKeyFunc);return`${t.DataAdapterCachePrefix}.${this._cacheSuffix}.${o}`}_isCachedResultValidFor204(e,n){return null!=e.fullUserHash&&e.fullUserHash===(0,t._getFullUserHash)(n)}};return StatsigEvaluationsDataAdapter.StatsigEvaluationsDataAdapter=o,StatsigEvaluationsDataAdapter}function requireStatsigClient(){if(hasRequiredStatsigClient)return StatsigClient;hasRequiredStatsigClient=1;var e=StatsigClient&&StatsigClient.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigClient,"__esModule",{value:!0});const t=requireSrc$2(),n=requireEvaluationStore(),o=requireNetwork(),i=requireParamStoreGetterFactory(),r=requireStatsigEvaluationsDataAdapter();let a=class a extends t.StatsigClientBase{static instance(e){const n=(0,t._getStatsigGlobal)().instance(e);return n instanceof a?n:(t.Log.warn((0,t._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new a(null!=e?e:"",{}))}constructor(e,i,a=null){var s,l;t.SDKType._setClientType(e,"javascript-client");const c=new o.default(a,e=>{this.$emt(e)});super(e,null!==(s=null==a?void 0:a.dataAdapter)&&void 0!==s?s:new r.StatsigEvaluationsDataAdapter,c,a),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(t.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(t.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(t.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(t.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(t.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(t.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new n.default(e,null!=a?a:null),this._network=c,this._user=this._configureUser(i,a),this._sdkInstanceID=(0,t.getUUID)(),this._contextHandle=new t.PrecomputedEvaluationsContextHandle(e,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID);const d=null!==(l=null==a?void 0:a.plugins)&&void 0!==l?l:[];for(const t of d)t.bind(this)}initializeSync(e){var n;return"Uninitialized"!==this.loadingStatus?(0,t.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(n=this._store.getWarnings())&&void 0!==n?n:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(t){return e(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(t)),this._initializePromise})}updateUserSync(e,t){const n=performance.now();try{return this._updateUserSyncImpl(e,t,n)}catch(o){const e=o instanceof Error?o:new Error(String(o));return this._createErrorUpdateDetails(e,n)}}_updateUserSyncImpl(e,n,o){var i;const r=[...null!==(i=this._store.getWarnings())&&void 0!==i?i:[]];this._resetForUser(e);const a=this.dataAdapter.getDataSync(this._user);null==a&&r.push("NoCachedValues"),this._store.setValues(a,this._user),this._finalizeUpdate(a);const s=null==n?void 0:n.disableBackgroundCacheRefresh;return!0===s||null==s&&"Bootstrap"===(null==a?void 0:a.source)||this._runPostUpdate(null!=a?a:null,this._user),(0,t.createUpdateDetails)(!0,this._store.getSource(),performance.now()-o,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),r)}updateUserAsync(t,n){return e(this,void 0,void 0,function*(){const e=performance.now();try{return yield this._updateUserAsyncImpl(t,n)}catch(o){const t=o instanceof Error?o:new Error(String(o));return this._createErrorUpdateDetails(t,e)}})}_updateUserAsyncImpl(n,o){return e(this,void 0,void 0,function*(){this._resetForUser(n);const e=this._user;t.Diagnostics._markInitOverallStart(this._sdkKey);let i=this.dataAdapter.getDataSync(e);if(this._store.setValues(i,this._user),this._setStatus("Loading",i),i=yield this.dataAdapter.getDataAsync(i,e,o),e!==this._user)return(0,t.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let r=!1;null!=i&&(t.Diagnostics._markInitProcessStart(this._sdkKey),r=this._store.setValues(i,this._user),t.Diagnostics._markInitProcessEnd(this._sdkKey,{success:r})),this._finalizeUpdate(i),r||(this._errorBoundary.attachErrorIfNoneExists(t.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),t.Diagnostics._markInitOverallEnd(this._sdkKey,r,this._store.getCurrentSourceDetails());const a=t.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,t.createUpdateDetails)(r,this._store.getSource(),a,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let e=(0,t._cloneObject)("StatsigUser",this._user);return null==e&&(t.Log.error("Failed to clone user"),e={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:e,errorBoundary:this._errorBoundary,session:t.StatsigSession.get(this._sdkKey),stableID:t.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,n){const o="string"==typeof e?{eventName:e,value:t,metadata:n}:e;this.$emt({name:"log_event_called",event:o}),this._logger.enqueue(Object.assign(Object.assign({},o),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(n){return e(this,void 0,void 0,function*(){return t.Storage.isReady()||(yield t.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,n)})}_createErrorUpdateDetails(e,n){var o;return(0,t.createUpdateDetails)(!1,this._store.getSource(),performance.now()-n,e,null,[...null!==(o=this._store.getWarnings())&&void 0!==o?o:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,n){this.dataAdapter.getDataAsync(e,n,{priority:"low"}).catch(e=>{t.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,n){var o,i,r;const a=(0,t._normalizeUser)(e,n),s=null===(o=a.customIDs)||void 0===o?void 0:o.stableID;if(s){const e=null===(r=(i=this.storageProvider).isReadyResolver)||void 0===r?void 0:r.call(i);e?e.then(()=>t.StableID.setOverride(s,this._sdkKey),()=>t.StableID.setOverride(s,this._sdkKey)):t.StableID.setOverride(s,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(a.analyticsOnlyMetadata=Object.assign(Object.assign({},a.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),a}_getFeatureGateImpl(e,n){var o,i;const{result:r,details:a}=this._store.getGate(e);this._checkUserHasIdForEvaluation(null==r?void 0:r.id_type,e,"Gate"),this._checkInitializationStatus(a.reason);const s=(0,t._makeFeatureGate)(e,a,r),l=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getGateOverride)||void 0===i?void 0:i.call(o,s,this._user,n),c=null!=l?l:s;return this._enqueueExposure(e,(0,t._createGateExposure)(this._user,c,this._store.getExposureMapping()),n),this.$emt({name:"gate_evaluation",gate:c}),c}_getDynamicConfigImpl(e,n){var o,i;const{result:r,details:a}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==r?void 0:r.id_type,e,"Dynamic config"),this._checkInitializationStatus(a.reason);const s=(0,t._makeDynamicConfig)(e,a,r),l=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getDynamicConfigOverride)||void 0===i?void 0:i.call(o,s,this._user,n),c=null!=l?l:s;return this._enqueueExposure(e,(0,t._createConfigExposure)(this._user,c,this._store.getExposureMapping()),n),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:c}),c}_getExperimentImpl(e,n){var o,i,r,a;const{result:s,details:l}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==s?void 0:s.id_type,e,"Experiment"),this._checkInitializationStatus(l.reason);const c=(0,t._makeExperiment)(e,l,s);null!=c.__evaluation&&(c.__evaluation.secondary_exposures=(0,t._mapExposures)(null!==(i=null===(o=c.__evaluation)||void 0===o?void 0:o.secondary_exposures)&&void 0!==i?i:[],this._store.getExposureMapping()));const d=null===(a=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getExperimentOverride)||void 0===a?void 0:a.call(r,c,this._user,n),p=null!=d?d:c;return this._enqueueExposure(e,(0,t._createConfigExposure)(this._user,p,this._store.getExposureMapping()),n),this.$emt({name:"experiment_evaluation",experiment:p}),p}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,n){var o,i,r;const{result:a,details:s}=this._store.getLayer(e),l=(0,t._makeLayer)(e,s,a),c=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getLayerOverride)||void 0===i?void 0:i.call(o,l,this._user,n);(null==n?void 0:n.disableExposureLog)&&this._logger.incrementNonExposureCount(e);const d=(0,t._mergeOverride)(l,c,null!==(r=null==c?void 0:c.__value)&&void 0!==r?r:l.__value,o=>{(null==n?void 0:n.disableExposureLog)||this._enqueueExposure(e,(0,t._createLayerParameterExposure)(this._user,d,o,this._store.getExposureMapping()),n)});return this.$emt({name:"layer_evaluation",layer:d}),d}_getParameterStoreImpl(e,t){var n,o;const{result:r,details:a}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);const s={name:e,details:a,__configuration:r,get:(0,i._makeParamStoreGetter)(this,r,t)},l=null===(o=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getParamStoreOverride)||void 0===o?void 0:o.call(n,s,t);return null!=l&&(s.__configuration=l.config,s.details=l.details,s.get=(0,i._makeParamStoreGetter)(this,l.config,t)),s}_checkUserHasIdForEvaluation(e,n,o){e&&((0,t._getUnitIDFromUser)(this._user,e)||t.Log.warn(`The user does not have the required id_type "${e}" for ${o} "${n}"`))}_checkInitializationStatus(e){("Uninitialized"===e||e.startsWith("Loading"))&&t.Log.warn(`SDK initialization has not completed. Reason: ${e}`)}};return StatsigClient.default=a,StatsigClient}function requireSrc$1(){return hasRequiredSrc$1||(hasRequiredSrc$1=1,function(e){var t=src&&src.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src&&src.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigClient=void 0;const o=requireSrc$2(),i=requireStatsigClient();e.StatsigClient=i.default,n(requireSrc$2(),e);const r=Object.assign((0,o._getStatsigGlobal)(),{StatsigClient:i.default});e.default=r}(src)),src}var useStatsigInternalClientFactoryAsync={},hasRequiredUseStatsigInternalClientFactoryAsync,hasRequiredUseClientAsyncInit,hasRequiredStatsigProvider;function requireUseStatsigInternalClientFactoryAsync(){if(hasRequiredUseStatsigInternalClientFactoryAsync)return useStatsigInternalClientFactoryAsync;hasRequiredUseStatsigInternalClientFactoryAsync=1,Object.defineProperty(useStatsigInternalClientFactoryAsync,"__esModule",{value:!0}),useStatsigInternalClientFactoryAsync.useStatsigInternalClientFactoryAsync=void 0;const e=React__default,t=requireSrc$2();return useStatsigInternalClientFactoryAsync.useStatsigInternalClientFactoryAsync=function(n,o){const i=(0,e.useMemo)(()=>{var e;return null!==(e=(0,t._getInstance)(o.sdkKey))&&void 0!==e?e:n(o)},[]),[r,a]=(0,e.useState)("Ready"!==i.loadingStatus);return(0,e.useMemo)(()=>{"Ready"!==i.loadingStatus&&i.initializeAsync().catch(t.Log.error).finally(()=>a(!1))},[]),{client:i,isLoading:r}},useStatsigInternalClientFactoryAsync}function requireUseClientAsyncInit(){if(hasRequiredUseClientAsyncInit)return useClientAsyncInit;hasRequiredUseClientAsyncInit=1,Object.defineProperty(useClientAsyncInit,"__esModule",{value:!0}),useClientAsyncInit.useClientAsyncInit=void 0;const e=requireSrc$1(),t=requireUseStatsigInternalClientFactoryAsync();return useClientAsyncInit.useClientAsyncInit=function(n,o,i=null){return(0,t.useStatsigInternalClientFactoryAsync)(t=>new e.StatsigClient(t.sdkKey,t.initialUser,t.statsigOptions),{sdkKey:n,initialUser:o,statsigOptions:i})},useClientAsyncInit}function requireStatsigProvider(){if(hasRequiredStatsigProvider)return StatsigProvider;hasRequiredStatsigProvider=1,Object.defineProperty(StatsigProvider,"__esModule",{value:!0}),StatsigProvider.StatsigProvider=void 0;const e=requireJsxRuntime(),t=React__default,n=requireSrc$2(),o=requireStatsigContext(),i=requireUseClientAsyncInit();function r(n){const[r,a]=(0,t.useState)(0),c=(0,i.useClientAsyncInit)(n.sdkKey,n.user,n.options).client,[d,p]=(0,t.useState)(!l(c));s(c,a,p);const u=(0,t.useMemo)(()=>({renderVersion:r,client:c,isLoading:d}),[r,c,d]);return(0,e.jsx)(o.default.Provider,{value:u,children:null!=n.loadingComponent&&u.isLoading?n.loadingComponent:n.children})}function a(n){const[i,r]=(0,t.useState)(0),a=n.client,[c,d]=(0,t.useState)(!l(a));s(a,r,d);const p=(0,t.useMemo)(()=>({renderVersion:i,client:a,isLoading:c}),[i,a,c]);return(0,e.jsx)(o.default.Provider,{value:p,children:null!=n.loadingComponent&&p.isLoading?n.loadingComponent:n.children})}function s(e,o,i){(0,t.useEffect)(()=>{const t=()=>{o(e=>e+1),i(!l(e))};return n.SDKType._setBindingType("react"),e.$on("values_updated",t),()=>{e.flush().catch(e=>n.Log.error("An error occurred during flush",e)),e.off("values_updated",t)}},[e,o])}function l(e){return"isNoop"in e||"Ready"===e.loadingStatus}return StatsigProvider.StatsigProvider=function(t){return"client"in t?(("sdkKey"in t||"user"in t)&&n.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,e.jsx)(a,Object.assign({},t))):(0,e.jsx)(r,Object.assign({},t))},StatsigProvider}var useClientBootstrapInit={},useStatsigInternalClientFactoryBootstrap={},hasRequiredUseStatsigInternalClientFactoryBootstrap,hasRequiredUseClientBootstrapInit;function requireUseStatsigInternalClientFactoryBootstrap(){if(hasRequiredUseStatsigInternalClientFactoryBootstrap)return useStatsigInternalClientFactoryBootstrap;hasRequiredUseStatsigInternalClientFactoryBootstrap=1,Object.defineProperty(useStatsigInternalClientFactoryBootstrap,"__esModule",{value:!0}),useStatsigInternalClientFactoryBootstrap.useStatsigInternalClientFactoryBootstrap=void 0;const e=React__default,t=requireSrc$2();return useStatsigInternalClientFactoryBootstrap.useStatsigInternalClientFactoryBootstrap=function(n,o){const i=(0,e.useRef)((0,t._getInstance)(o.sdkKey));return(0,e.useMemo)(()=>{if(i.current)return i.current;const e=n(o);return i.current=e,o.useLegacyFormat?e.dataAdapter.setDataLegacy(o.initialValues,o.initialUser):e.dataAdapter.setData(o.initialValues),e.initializeSync(),e},[])},useStatsigInternalClientFactoryBootstrap}function requireUseClientBootstrapInit(){if(hasRequiredUseClientBootstrapInit)return useClientBootstrapInit;hasRequiredUseClientBootstrapInit=1,Object.defineProperty(useClientBootstrapInit,"__esModule",{value:!0}),useClientBootstrapInit.useClientBootstrapInit=void 0;const e=requireSrc$1(),t=requireUseStatsigInternalClientFactoryBootstrap();return useClientBootstrapInit.useClientBootstrapInit=function(n,o,i,r=null,a){return(0,t.useStatsigInternalClientFactoryBootstrap)(t=>new e.StatsigClient(t.sdkKey,t.initialUser,t.statsigOptions),{sdkKey:n,initialUser:o,initialValues:i,statsigOptions:r,useLegacyFormat:a})},useClientBootstrapInit}var useDynamicConfig={},hasRequiredUseDynamicConfig;function requireUseDynamicConfig(){if(hasRequiredUseDynamicConfig)return useDynamicConfig;hasRequiredUseDynamicConfig=1,Object.defineProperty(useDynamicConfig,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useDynamicConfig.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${i}'.`),n.NoopEvaluationsClient.getDynamicConfig(i,r)):a.getDynamicConfig(i,r),[i,a,s,...r?Object.values(r):[]])},useDynamicConfig}var useExperiment={},hasRequiredUseExperiment;function requireUseExperiment(){if(hasRequiredUseExperiment)return useExperiment;hasRequiredUseExperiment=1,Object.defineProperty(useExperiment,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useExperiment.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${i}'.`),n.NoopEvaluationsClient.getExperiment(i,r)):a.getExperiment(i,r),[i,a,s,...r?Object.values(r):[]])},useExperiment}var useFeatureGate={},hasRequiredUseFeatureGate;function requireUseFeatureGate(){if(hasRequiredUseFeatureGate)return useFeatureGate;hasRequiredUseFeatureGate=1,Object.defineProperty(useFeatureGate,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useFeatureGate.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${i}'.`),n.NoopEvaluationsClient.getFeatureGate(i,r)):a.getFeatureGate(i,r),[i,a,s,...r?Object.values(r):[]])},useFeatureGate}var useGateValue={},hasRequiredUseGateValue;function requireUseGateValue(){if(hasRequiredUseGateValue)return useGateValue;hasRequiredUseGateValue=1,Object.defineProperty(useGateValue,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useGateValue.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${i}'.`),n.NoopEvaluationsClient.checkGate(i,r)):a.checkGate(i,r),[i,a,s,...r?Object.values(r):[]])},useGateValue}var useLayer={},hasRequiredUseLayer;function requireUseLayer(){if(hasRequiredUseLayer)return useLayer;hasRequiredUseLayer=1,Object.defineProperty(useLayer,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useLayer.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${i}'.`),n.NoopEvaluationsClient.getLayer(i,r)):a.getLayer(i,r),[i,a,s,...r?Object.values(r):[]])},useLayer}var useParameterStore={},hasRequiredUseParameterStore;function requireUseParameterStore(){if(hasRequiredUseParameterStore)return useParameterStore;hasRequiredUseParameterStore=1,Object.defineProperty(useParameterStore,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useParameterStore.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${i}'.`),n.NoopEvaluationsClient.getParameterStore(i,r)):a.getParameterStore(i,r),[i,a,s,...r?Object.values(r):[]])},useParameterStore}var useStatsigClient={},hasRequiredUseStatsigClient;function requireUseStatsigClient(){if(hasRequiredUseStatsigClient)return useStatsigClient;hasRequiredUseStatsigClient=1,Object.defineProperty(useStatsigClient,"__esModule",{value:!0}),useStatsigClient.useStatsigClient=void 0;const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useStatsigClient.useStatsigClient=function(){const{client:i,renderVersion:r,isLoading:a}=(0,e.useContext)(o.default),s=(0,e.useMemo)(()=>(0,n.isNoopClient)(i)?(t.Log.warn("Attempting to retrieve a StatsigClient but none was set."),n.NoopEvaluationsClient):i,[i,r]),l=[s,r],c=(0,e.useCallback)((e,t)=>s.checkGate(e,t),l),d=(0,e.useCallback)((e,t)=>s.getFeatureGate(e,t),l),p=(0,e.useCallback)((e,t)=>s.getDynamicConfig(e,t),l),u=(0,e.useCallback)((e,t)=>s.getExperiment(e,t),l),m=(0,e.useCallback)((e,t)=>s.getLayer(e,t),l),h=(0,e.useCallback)((e,t)=>s.getParameterStore(e,t),l),g=(0,e.useCallback)((e,t,n)=>"string"==typeof e?s.logEvent(e,t,n):s.logEvent(e),l);return(0,e.useMemo)(()=>({client:s,checkGate:c,getFeatureGate:d,getDynamicConfig:p,getExperiment:u,getLayer:m,getParameterStore:h,logEvent:g,isLoading:a}),[s,c,d,p,u,m,h,g,a])},useStatsigClient}var useStatsigUser={},hasRequiredUseStatsigUser,hasRequiredSrc;function requireUseStatsigUser(){if(hasRequiredUseStatsigUser)return useStatsigUser;hasRequiredUseStatsigUser=1,Object.defineProperty(useStatsigUser,"__esModule",{value:!0}),useStatsigUser.useStatsigUser=void 0;const e=React__default,t=requireStatsigContext(),n=requireUseStatsigClient();function o(e){return e.getContextHandle().user}return useStatsigUser.useStatsigUser=function(){const{client:i}=(0,n.useStatsigClient)(),{renderVersion:r}=(0,e.useContext)(t.default);return{user:(0,e.useMemo)(()=>o(i),[i,r]),updateUserSync:(0,e.useCallback)(e=>("function"==typeof e&&(e=e(o(i))),i.updateUserSync(e)),[i]),updateUserAsync:(0,e.useCallback)(e=>("function"==typeof e&&(e=e(o(i))),i.updateUserAsync(e)),[i])}},useStatsigUser}function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,function(e){var t=src$2&&src$2.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src$2&&src$2.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.useStatsigUser=e.useStatsigInternalClientFactoryBootstrap=e.useStatsigInternalClientFactoryAsync=e.useStatsigClient=e.useParameterStore=e.useLayer=e.useGateValue=e.useFeatureGate=e.useExperiment=e.useDynamicConfig=e.useClientBootstrapInit=e.useClientAsyncInit=e.StatsigProvider=e.StatsigContext=void 0;const o=requireSrc$2(),i=requireStatsigContext();e.StatsigContext=i.default;const r=requireStatsigProvider();Object.defineProperty(e,"StatsigProvider",{enumerable:!0,get:function(){return r.StatsigProvider}});const a=requireUseClientAsyncInit();Object.defineProperty(e,"useClientAsyncInit",{enumerable:!0,get:function(){return a.useClientAsyncInit}});const s=requireUseClientBootstrapInit();Object.defineProperty(e,"useClientBootstrapInit",{enumerable:!0,get:function(){return s.useClientBootstrapInit}});const l=requireUseDynamicConfig();e.useDynamicConfig=l.default;const c=requireUseExperiment();e.useExperiment=c.default;const d=requireUseFeatureGate();e.useFeatureGate=d.default;const p=requireUseGateValue();e.useGateValue=p.default;const u=requireUseLayer();e.useLayer=u.default;const m=requireUseParameterStore();e.useParameterStore=m.default;const h=requireUseStatsigClient();Object.defineProperty(e,"useStatsigClient",{enumerable:!0,get:function(){return h.useStatsigClient}});const g=requireUseStatsigInternalClientFactoryAsync();Object.defineProperty(e,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return g.useStatsigInternalClientFactoryAsync}});const x=requireUseStatsigInternalClientFactoryBootstrap();Object.defineProperty(e,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return x.useStatsigInternalClientFactoryBootstrap}});const f=requireUseStatsigUser();Object.defineProperty(e,"useStatsigUser",{enumerable:!0,get:function(){return f.useStatsigUser}}),n(requireSrc$1(),e),Object.assign((0,o._getStatsigGlobal)(),{StatsigContext:i.default,StatsigProvider:r.StatsigProvider,useClientAsyncInit:a.useClientAsyncInit,useClientBootstrapInit:s.useClientBootstrapInit,useDynamicConfig:l.default,useExperiment:c.default,useFeatureGate:d.default,useGateValue:p.default,useLayer:u.default,useParameterStore:m.default,useStatsigClient:h.useStatsigClient,useStatsigInternalClientFactoryAsync:g.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:x.useStatsigInternalClientFactoryBootstrap,useStatsigUser:f.useStatsigUser})}(src$2)),src$2}var srcExports=requireSrc(),FeatureGatesNamesCockpit=/* @__PURE__ */(e=>(e.enableZeniGPTFeatureForMonthEndEmail="zeni_gpt_for_month_end_email_enabled",e.isBirdsEyeViewEnabled="is_birds_eye_view_enabled",e.isReviewTabVendorColumnEnabled="review_vendor_column_enabled",e.enableSendingMonthEndEmail="sending_month_end_email_enabled",e))(FeatureGatesNamesCockpit||{}),FeatureGatesNamesWebApp=/* @__PURE__ */(e=>(e.isVendorMagicLinkFeatureEnabled="is_vendor_magic_link_feature_enabled",e.billPaySetupShowInternationalPaymentByWise="bill_pay_setup_show_international_payment_by_wise",e.isDepositAccountsFeatureEnabled="is_deposit_accounts_feature_enabled",e.isLimitedCategoryForReimbursement="is_limited_category_for_reimbursements_enabled",e.isBillPayLocalCurrencyFeatureEnabled="is_bill_pay_local_currency_feature_enabled",e.isOpexByVendorFeatureEnabled="is_opex_by_vendor_feature_enabled",e.isInternationalPaymentShaVsOurFeatureEnabled="is_international_sha_vs_our_feature_enabled",e.isApAgingFeatureEnabled="is_ap_aging_feature_enabled",e.isArAgingFeatureEnabled="is_ar_aging_feature_enabled",e.isChargeCardFeatureEnabled="is_charge_card_feature_enabled",e.isEarlyPayFeatureEnabled="is_early_pay_feature_enabled",e.isVendorReviewFeatureEnabled="is_vendor_review_feature_enabled",e.isVendorRecommendationFeatureEnabled="is_vendor_recommendation_feature_enabled",e.isShowDeletedBillsFeatureEnabled="is_show_deleted_bills_feature_enabled",e.isShowDeletedReimbursementsFeatureEnabled="is_show_deleted_reimbursements_feature_enabled",e.isRecurringBillsFeatureEnabled="is_recurring_bills_feature_enabled",e.isScheduledJEPrepaidExpensesFeatureEnabled="is_scheduled_je_prepaid_expenses_feature_enabled",e.isScheduledJEFixedAssetsFeatureEnabled="is_scheduled_je_fixed_assets_feature_enabled",e.isScheduledJEAccruedExpensesFeatureEnabled="is_scheduled_je_accrued_expenses_feature_enabled",e.isReferralFeatureEnabled="is_referral_feature_enabled",e.isSettingsFeatureEnabled="is_settings_feature_enabled",e.isVendorBulkUpdateOnTransactionEnabled="is_vendor_bulk_update_on_transaction_enabled",e.isCashbackFeatureEnabled="is_cashback_feature_enabled",e.isBillPayBulkActionEnabled="is_bill_pay_bulk_action_enabled",e.isFiling1099FeatureEnabled="is_filing_1099_feature_enabled",e.isReimbursementBulkActionEnabled="is_reimbursement_bulk_action_enabled",e.isExpenseAutomationEnabled="is_expense_automation_enabled",e.isRevenueAutomationEnabled="is_revenue_automation_enabled",e.isIssuePhysicalCardEnabled="is_issue_physical_card_enabled",e.isTaskTemplatesEnabled="is_task_templates_enabled",e.isTaskManagerCustomerUserAccessEnabled="is_task_manager_customer_user_access_enabled",e.isShaDisabled="is_sha_disabled",e.isOurDisabled="is_our_disabled",e.isBillPayDetectInsufficientFundsEnabled="is_bill_pay_detect_insufficient_funds_enabled",e.isExpenseAutomationEnabledV2="is_expense_automation_enabled_v2",e.isDebitCardFeatureEnabled="is_debit_card_feature_enabled",e.isRealtimeInsightsFeatureEnabled="is_realtime_insights_feature_enabled",e.isTreasuryEnabled="is_treasury_enabled",e.isInvoicingFeatureEnabled="is_invoicing_feature_enabled",e.isChainOfThoughtEnabled="is_chain_of_thought_enabled",e.isRecommendationFeedbackEnabled="is_recommendation_feedback_enabled",e.isDashboardSidebarHalloweenAnimationEnabled="is_dashboard_sidebar_halloween_animation_enabled",e.isDashboardSidebarThanksGivingAnimationEnabled="is_dashboard_sidebar_thanksgiving_animation_enabled",e.isDashboardSidebarChristmasAnimationEnabled="is_dashboard_sidebar_christmas_animation_enabled",e.isDashboardSidebarNewYearAnimationEnabled="is_dashboard_sidebar_new_year_animation_enabled",e.isExpenseAutomationSearchAndFilterEnabled="is_expense_automation_search_and_filter_enabled",e.isChargeCardPaymentHistoryFeatureEnabled="is_charge_card_payment_history_feature_enabled",e.isIssuePhysicalDebitCardEnabled="is_issue_physical_debit_card_enabled",e.isAutoTransferRuleEnabled="is_auto_transfer_rule_enabled",e.isMissingReceiptsBulkUploadEnabled="is_missing_receipts_bulk_upload_enabled",e.isAiCfoFileUploadEnabled="is_ai_cfo_file_upload_enabled",e.isAiCfoAnswerExportEnabled="is_ai_cfo_answer_export_enabled",e.isAiCfoDiscoveryTipsEnabled="is_ai_cfo_discovery_tips_enabled",e.isAiCfoNavButtonEnabled="is_ai_cfo_nav_button_enabled",e.isTransactionDetailSplitViewEnabled="is_transaction_detail_split_view_enabled",e.isServiceWorkerPrefetchingEnabled="is_prefetching_enabled",e.isTransactionActivityEnabled="is_transaction_activity_enabled",e.isCreateTransferEntryFromExpenseEnabled="is_create_transfer_entry_from_expense_enabled",e.isReportsHorizontalClassLayoutSwitchEnabled="is_reports_horizontal_class_layout_switch_enabled",e.isAiCfoEnabled="is_ai_cfo_enabled",e.isProjectsTransactionsEnabled="is_projects_transactions_enabled",e.isAiCardCreationEnabled="is_ai_card_creation_enabled",e.isCardPolicyEnabled="is_card_policy_enabled",e.isTaskManagerNotificationControlsEnabled="is_task_manager_notification_controls_enabled",e.isTaskSnoozeEnabled="is_task_snooze_enabled",e.isTaskVisibilityEnabled="is_task_visibility_enabled",e.isTaskCannedResponsesEnabled="is_task_canned_responses_enabled",e.isTaskCategorizationEnabled="is_task_categorization_enabled",e.isTaskBulkResolutionEnabled="is_task_bulk_resolution_enabled",e.isTaskAssigneeSortingEnabled="is_task_assignee_sorting_enabled",e.isTaskRecurringParentEnabled="is_task_recurring_parent_enabled",e.isTaskGroupAssigneesEnabled="is_task_group_assignees_enabled",e.aiAuditScorePercentage="ai_audit_score_percentage",e.isReconV3Enabled="is_reconciliation_v3_enabled",e.isReconciliationCombinedStatementEnabled="is_reconciliation_combined_statement_enabled",e.isReconReportEnabled="is_recon_report_enabled",e.isTransactionSplitEnabled="transaction_split_enabled",e.isAccrualEnabled="is_accrual_enabled",e))(FeatureGatesNamesWebApp||{});const FeatureGatesNames={...FeatureGatesNamesCockpit,...FeatureGatesNamesWebApp},CONFIG_SYNC_INTERVAL_MS=18e5;Object.values(FeatureGatesNames),Object.values(DynamicConfigNames);const useZeniFeatureGate=e=>{try{return{isFeatureGateLoading:!1,isFeatureEnabled:srcExports.useFeatureGate(e).value}}catch{return{isFeatureGateLoading:!1,isFeatureEnabled:!1}}},useZeniDynamicConfig=e=>{const t=srcExports.useDynamicConfig(e);try{return{isDynamicConfigLoading:!1,configValue:t.value}}catch{return{isDynamicConfigLoading:!1,configValue:{}}}},ZeniFeatureProvider=({featureGateCustomFields:e,zeniFeatureProviderConfig:t,children:n})=>{const o=useMemo(()=>({...null!=e.userId?{userID:e.userId}:{},...null!=e.userEmail?{email:e.userEmail}:{},custom:{company_id:e.companyId??"",connected_account_provider:e.connectedAccountProvider??""}}),[e.companyId,e.connectedAccountProvider,e.userEmail,e.userId]),i={networkConfig:{api:t.providerEndPoint,initializeUrl:`${t.providerEndPoint}/initialize`},environment:{tier:t.currentFeatureEnv},disableLogging:!0},{client:r,isLoading:a}=srcExports.useClientAsyncInit(t.featureClientSecret,o,i);return useEffect(()=>{null!=r&&!1===a&&r.updateUserAsync(o)},[r,o,a]),useEffect(()=>{if(null==r||a)return;const e=setInterval(()=>{r.updateUserAsync(o).catch(e=>{console.warn("[Statsig] Config refresh failed.",e)})},CONFIG_SYNC_INTERVAL_MS);return()=>clearInterval(e)},[r,o,a]),a?/* @__PURE__ */jsxRuntimeExports.jsx(InitializationComponent,{}):/* @__PURE__ */jsxRuntimeExports.jsx(srcExports.StatsigProvider,{client:r,children:n},e.companyId)},BusyContainer$i=styled$2.div`
|
|
2287
|
+
`;var now_1,hasRequiredNow,_trimmedEndIndex,hasRequired_trimmedEndIndex,_baseTrim,hasRequired_baseTrim,isSymbol_1,hasRequiredIsSymbol,toNumber_1,hasRequiredToNumber,debounce_1,hasRequiredDebounce;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var e=require_root();return now_1=function(){return e.Date.now()}}function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var e=/\s/;return _trimmedEndIndex=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var e=require_trimmedEndIndex(),t=/^\s+/;return _baseTrim=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isSymbol_1=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var e=require_baseTrim(),t=requireIsObject(),n=requireIsSymbol(),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,a=parseInt;return toNumber_1=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=t(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var c=i.test(s);return c||r.test(s)?a(s.slice(2),c?2:8):o.test(s)?NaN:+s}}function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var e=requireIsObject(),t=requireNow(),n=requireToNumber(),o=Math.max,i=Math.min;return debounce_1=function(r,a,s){var l,c,d,p,u,m,h=0,g=!1,x=!1,f=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function y(e){var t=l,n=c;return l=c=void 0,h=e,p=r.apply(n,t)}function S(e){var t=e-m;return void 0===m||t>=a||t<0||x&&e-h>=d}function C(){var e=t();if(S(e))return $(e);u=setTimeout(C,function(e){var t=a-(e-m);return x?i(t,d-(e-h)):t}(e))}function $(e){return u=void 0,f&&l?y(e):(l=c=void 0,p)}function b(){var e=t(),n=S(e);if(l=arguments,c=this,m=e,n){if(void 0===u)return function(e){return h=e,u=setTimeout(C,a),g?y(e):p}(m);if(x)return clearTimeout(u),u=setTimeout(C,a),y(m)}return void 0===u&&(u=setTimeout(C,a)),p}return a=n(a)||0,e(s)&&(g=!!s.leading,d=(x="maxWait"in s)?o(n(s.maxWait)||0,a):d,f="trailing"in s?!!s.trailing:f),b.cancel=function(){void 0!==u&&clearTimeout(u),h=0,l=m=c=u=void 0},b.flush=function(){return void 0===u?p:$(t())},b},debounce_1}var debounceExports=requireDebounce();const debounce=/* @__PURE__ */getDefaultExportFromCjs(debounceExports);var DynamicConfigNamesCockpit=/* @__PURE__ */(e=>(e.cardsTabCockpitUser="cards_tab_cockpit_enabled_users",e.monthEndInsightsEnablement="month_end_insights_enablement",e.expenseAutomationEnablement="expense_automation_enablement",e.monthEndPreviewEnablement="month_end_preview_enablement",e.qboConnectionPoolEnablement="qbo_connection_pool_enablement",e.aiAccountantOnboardingConfig="ai_accountant_onboarding_config",e.creditAgentEnablement="credit_agent_enablement",e.cockpitControlsConfig="cockpit_controls_config",e))(DynamicConfigNamesCockpit||{}),DynamicConfigNamesWebApp=/* @__PURE__ */(e=>(e.treDynamicConfig="tre_dynamic_config",e.documentAiReceiptMaxSizeLimitBytesConfig="document_ai_receipt_max_size_limit_bytes_config",e.meetingLinksConfig="meeting_links_config",e.zeniAssistConfig="zeni_assist_config",e.zeniCardsConfig="zeni_cards_config",e.zeniAccountsConfig="deposit_accounts_config",e.expressPayConfig="express_pay_config",e.accountReconGLAccountsConfig="account_recon_gl_accounts_config",e.treasuryConfig="treasury_config",e.newTagOnMenuConfig="new_tag_on_menu_config",e.sameDayAchDisablementConfig="same_day_ach_disablement_config",e.aiCfoMessageDynamicConfig="ai_cfo_message_dynamic_config",e.aiCfoDiscoveryTipsConfig="ai_cfo_discovery_tips_config",e.webappPrefetchConfig="webapp_prefetch_config",e.expenseAutomationEnablementZeniUsers="expense_automation_enablement_zeni_users",e.approvalRuleV3Config="approval_rule_v3_config",e.transactionCategorizationConfig="transaction_categorization_config",e.zeniCardsVisibilityConfig="zeni_cards_visibility_config",e.updateTransactionTypeConfig="update_transaction_type_config",e.resetKycKybConfig="reset_kyc_kyb_config",e))(DynamicConfigNamesWebApp||{}),DynamicConfigNamesShared=/* @__PURE__ */(e=>(e.sessionAutoLogoutConfig="session_auto_logout_config",e))(DynamicConfigNamesShared||{});const DynamicConfigNames={...DynamicConfigNamesCockpit,...DynamicConfigNamesWebApp,...DynamicConfigNamesShared};var noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;return hasRequiredNoop=1,noop_1=function(){}}var noopExports=requireNoop();const noop$9=/* @__PURE__ */getDefaultExportFromCjs(noopExports);var src$2={},src$1={},$_StatsigGlobal={},Log={},hasRequiredLog$1,hasRequired$_StatsigGlobal;function requireLog$1(){return hasRequiredLog$1||(hasRequiredLog$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Log=e.LogLevel=void 0;function t(e){return e.unshift("[Statsig]"),e}e.LogLevel={None:0,Error:1,Warn:2,Info:3,Debug:4};class n{static info(...o){n.level>=e.LogLevel.Info&&console.info(" INFO ",...t(o))}static debug(...o){n.level>=e.LogLevel.Debug&&console.debug(" DEBUG ",...t(o))}static warn(...o){n.level>=e.LogLevel.Warn&&console.warn(" WARN ",...t(o))}static error(...o){n.level>=e.LogLevel.Error&&console.error(" ERROR ",...t(o))}}e.Log=n,n.level=e.LogLevel.Warn}(Log)),Log}function require$_StatsigGlobal(){return hasRequired$_StatsigGlobal||(hasRequired$_StatsigGlobal=1,function(e){var t,n,o;Object.defineProperty(e,"__esModule",{value:!0}),e._getInstance=e._getStatsigGlobalFlag=e._getStatsigGlobal=void 0;const i=requireLog$1();e._getStatsigGlobal=()=>{try{return"undefined"!=typeof __STATSIG__?__STATSIG__:c}catch(e){return c}};e._getStatsigGlobalFlag=t=>(0,e._getStatsigGlobal)()[t];e._getInstance=t=>{const n=(0,e._getStatsigGlobal)();return t?n.instances&&n.instances[t]:(n.instances&&Object.keys(n.instances).length>1&&i.Log.warn("Call made to Statsig global instance without an SDK key but there is more than one client instance. If you are using mulitple clients, please specify the SDK key."),n.firstInstance)};const r="__STATSIG__",a="undefined"!=typeof window?window:{},s=void 0!==commonjsGlobal$1?commonjsGlobal$1:{},l="undefined"!=typeof globalThis?globalThis:{},c=null!==(o=null!==(n=null!==(t=a[r])&&void 0!==t?t:s[r])&&void 0!==n?n:l[r])&&void 0!==o?o:{instance:e._getInstance};a[r]=c,s[r]=c,l[r]=c}($_StatsigGlobal)),$_StatsigGlobal}var Diagnostics={},hasRequiredDiagnostics;function requireDiagnostics(){return hasRequiredDiagnostics||(hasRequiredDiagnostics=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Diagnostics=void 0;const t=/* @__PURE__ */new Map,n="start",o="end",i="statsig::diagnostics";function r(e,t,n,o){return Object.assign({key:n,action:t,step:o,timestamp:Date.now()},e)}function a(e,n){var o;const i=null!==(o=t.get(e))&&void 0!==o?o:[];i.push(n),t.set(e,i)}function s(e,t){if(t in e)return e[t]}e.Diagnostics={_getMarkers:e=>t.get(e),_markInitOverallStart:e=>{a(e,r({},n,"overall"))},_markInitOverallEnd:(e,t,n)=>{a(e,r({success:t,error:t?void 0:{name:"InitializeError",message:"Failed to initialize"},evaluationDetails:n},o,"overall"))},_markInitNetworkReqStart:(e,t)=>{a(e,r(t,n,"initialize","network_request"))},_markInitNetworkReqEnd:(e,t)=>{a(e,r(t,o,"initialize","network_request"))},_markInitProcessStart:e=>{a(e,r({},n,"initialize","process"))},_markInitProcessEnd:(e,t)=>{a(e,r(t,o,"initialize","process"))},_clearMarkers:e=>{t.delete(e)},_formatError(e){if(e&&"object"==typeof e)return{code:s(e,"code"),name:s(e,"name"),message:s(e,"message")}},_getDiagnosticsData(t,n,o,i){var r;return{success:!0===(null==t?void 0:t.ok),statusCode:null==t?void 0:t.status,sdkRegion:null===(r=null==t?void 0:t.headers)||void 0===r?void 0:r.get("x-statsig-region"),isDelta:!0===o.includes('"is_delta":true')||void 0,attempt:n,error:e.Diagnostics._formatError(i)}},_enqueueDiagnosticsEvent(t,n,o,r){const a=e.Diagnostics._getMarkers(o);if(null==a||a.length<=0)return-1;const s=a[a.length-1].timestamp-a[0].timestamp;e.Diagnostics._clearMarkers(o);const l=function(e,t){const n={eventName:i,user:e,value:null,metadata:t,time:Date.now()};return n}(t,{context:"initialize",markers:a.slice(),statsigOptions:r});return n.enqueue(l),s}}}(Diagnostics)),Diagnostics}var EventLogger={},BatchedEventsQueue={},EventBatch={},hasRequiredEventBatch;function requireEventBatch(){if(hasRequiredEventBatch)return EventBatch;hasRequiredEventBatch=1,Object.defineProperty(EventBatch,"__esModule",{value:!0}),EventBatch.EventBatch=void 0;return EventBatch.EventBatch=class{constructor(e){this.attempts=0,this.createdAt=Date.now(),this.events=e}incrementAttempts(){this.attempts++}},EventBatch}var EventRetryConstants={},hasRequiredEventRetryConstants,hasRequiredBatchedEventsQueue;function requireEventRetryConstants(){return hasRequiredEventRetryConstants||(hasRequiredEventRetryConstants=1,Object.defineProperty(EventRetryConstants,"__esModule",{value:!0}),EventRetryConstants.EventRetryConstants=void 0,EventRetryConstants.EventRetryConstants={MAX_RETRY_ATTEMPTS:8,DEFAULT_BATCH_SIZE:100,MAX_PENDING_BATCHES:40,TICK_INTERVAL_MS:1e3,QUICK_FLUSH_WINDOW_MS:200,MAX_LOCAL_STORAGE:500,get MAX_QUEUED_EVENTS(){return this.DEFAULT_BATCH_SIZE*this.MAX_PENDING_BATCHES}}),EventRetryConstants}function requireBatchedEventsQueue(){if(hasRequiredBatchedEventsQueue)return BatchedEventsQueue;hasRequiredBatchedEventsQueue=1,Object.defineProperty(BatchedEventsQueue,"__esModule",{value:!0}),BatchedEventsQueue.BatchQueue=void 0;const e=requireEventBatch(),t=requireEventRetryConstants();return BatchedEventsQueue.BatchQueue=class{constructor(e=t.EventRetryConstants.DEFAULT_BATCH_SIZE){this._batches=[],this._batchSize=e}batchSize(){return this._batchSize}requeueBatch(e){return this._enqueueBatch(e)}hasFullBatch(){return this._batches.some(e=>e.events.length>=this._batchSize)}takeNextBatch(){return this._batches.shift()}takeAllBatches(){const e=this._batches;return this._batches=[],e}createBatches(t){let n=0,o=0;for(;n<t.length;){const i=t.slice(n,n+this._batchSize);o+=this._enqueueBatch(new e.EventBatch(i)),n+=this._batchSize}return o}_enqueueBatch(e){this._batches.push(e);let n=0;for(;this._batches.length>t.EventRetryConstants.MAX_PENDING_BATCHES;){const e=this._batches.shift();e&&(n+=e.events.length)}return n}},BatchedEventsQueue}var CacheKey={},Hashing={},TypingUtils={},hasRequiredTypingUtils,hasRequiredHashing,hasRequiredCacheKey;function requireTypingUtils(){if(hasRequiredTypingUtils)return TypingUtils;return hasRequiredTypingUtils=1,Object.defineProperty(TypingUtils,"__esModule",{value:!0}),TypingUtils._isTypeMatch=TypingUtils._typeOf=void 0,TypingUtils._typeOf=function(e){return Array.isArray(e)?"array":typeof e},TypingUtils._isTypeMatch=function(e,t){const n=e=>Array.isArray(e)?"array":null===e?"null":typeof e;return n(e)===n(t)},TypingUtils}function requireHashing(){return hasRequiredHashing||(hasRequiredHashing=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._getSortedObject=e._DJB2Object=e._DJB2=void 0;const t=requireTypingUtils();e._DJB2=e=>{let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return String(t>>>0)};e._DJB2Object=(t,n)=>(0,e._DJB2)(JSON.stringify((0,e._getSortedObject)(t,n)));e._getSortedObject=(n,o)=>{if(null==n)return null;const i=Object.keys(n).sort(),r={};return i.forEach(i=>{const a=n[i];0!==o&&"object"===(0,t._typeOf)(a)?r[i]=(0,e._getSortedObject)(a,null!=o?o-1:o):r[i]=a}),r}}(Hashing)),Hashing}function requireCacheKey(){if(hasRequiredCacheKey)return CacheKey;hasRequiredCacheKey=1,Object.defineProperty(CacheKey,"__esModule",{value:!0}),CacheKey._getStorageKey=CacheKey._getUserStorageKey=void 0;const e=requireHashing();function t(t,n,o){var i;if(o)return o(t,n);const r=n&&n.customIDs?n.customIDs:{},a=[`uid:${null!==(i=null==n?void 0:n.userID)&&void 0!==i?i:""}`,`cids:${Object.keys(r).sort((e,t)=>e.localeCompare(t)).map(e=>`${e}-${r[e]}`).join(",")}`,`k:${t}`];return(0,e._DJB2)(a.join("|"))}return CacheKey._getUserStorageKey=t,CacheKey._getStorageKey=function(n,o,i){return o?t(n,o,i):(0,e._DJB2)(`k:${n}`)},CacheKey}var FlushCoordinator={},EventSender={},NetworkConfig={},hasRequiredNetworkConfig;function requireNetworkConfig(){return hasRequiredNetworkConfig||(hasRequiredNetworkConfig=1,e=NetworkConfig,Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkParam=e.NetworkDefault=e.Endpoint=void 0,e.Endpoint={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"download_config_specs"},e.NetworkDefault={[e.Endpoint._rgstr]:"https://prodregistryv2.org/v1",[e.Endpoint._initialize]:"https://featureassets.org/v1",[e.Endpoint._download_config_specs]:"https://api.statsigcdn.com/v1"},e.NetworkParam={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Time:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}),NetworkConfig;var e}var SDKType={},hasRequiredSDKType;function requireSDKType(){if(hasRequiredSDKType)return SDKType;hasRequiredSDKType=1,Object.defineProperty(SDKType,"__esModule",{value:!0}),SDKType.SDKType=void 0;const e={};let t;return SDKType.SDKType={_get:n=>{var o;return(null!==(o=e[n])&&void 0!==o?o:"js-mono")+(null!=t?t:"")},_setClientType(t,n){e[t]=n},_setBindingType(e){t&&"-react"!==t||(t="-"+e)}},SDKType}var StatsigMetadata={},hasRequiredStatsigMetadata;function requireStatsigMetadata(){return hasRequiredStatsigMetadata||(hasRequiredStatsigMetadata=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigMetadataProvider=e.SDK_VERSION=void 0,e.SDK_VERSION="3.33.0";let t={sdkVersion:e.SDK_VERSION,sdkType:"js-mono"};e.StatsigMetadataProvider={get:()=>t,add:e=>{t=Object.assign(Object.assign({},t),e)}}}(StatsigMetadata)),StatsigMetadata}var VisibilityObserving={},SafeJs={},hasRequiredSafeJs,hasRequiredVisibilityObserving,hasRequiredEventSender;function requireSafeJs(){return hasRequiredSafeJs||(hasRequiredSafeJs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._cloneObject=e._getUnloadEvent=e._getCurrentPageUrlSafe=e._addDocumentEventListenerSafe=e._addWindowEventListenerSafe=e._isServerEnv=e._getDocumentSafe=e._getWindowSafe=void 0;const t=requireLog$1();e._getWindowSafe=()=>"undefined"!=typeof window?window:null;e._getDocumentSafe=()=>{var t;const n=(0,e._getWindowSafe)();return null!==(t=null==n?void 0:n.document)&&void 0!==t?t:null};e._isServerEnv=()=>{if(null!==(0,e._getDocumentSafe)())return!1;const t="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;return"string"==typeof EdgeRuntime||t};e._addWindowEventListenerSafe=(t,n)=>{const o=(0,e._getWindowSafe)();"function"==typeof(null==o?void 0:o.addEventListener)&&o.addEventListener(t,n)};e._addDocumentEventListenerSafe=(t,n)=>{const o=(0,e._getDocumentSafe)();"function"==typeof(null==o?void 0:o.addEventListener)&&o.addEventListener(t,n)};e._getCurrentPageUrlSafe=()=>{var t;try{return null===(t=(0,e._getWindowSafe)())||void 0===t?void 0:t.location.href.split(/[?#]/)[0]}catch(n){return}};e._getUnloadEvent=()=>{const t=(0,e._getWindowSafe)();if(!t)return"beforeunload";return"onpagehide"in t?"pagehide":"beforeunload"};e._cloneObject=(e,n)=>{try{return JSON.parse(JSON.stringify(n))}catch(o){return t.Log.error(`Failed to clone object ${e}`),null}}}(SafeJs)),SafeJs}function requireVisibilityObserving(){return hasRequiredVisibilityObserving||(hasRequiredVisibilityObserving=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._notifyVisibilityChanged=e._subscribeToVisiblityChanged=e._isUnloading=e._isCurrentlyVisible=void 0;const t=requireSafeJs(),n="foreground",o="background",i=[];let r=n,a=!1;e._isCurrentlyVisible=()=>r===n;e._isUnloading=()=>a;e._subscribeToVisiblityChanged=e=>{i.unshift(e)};e._notifyVisibilityChanged=e=>{e!==r&&(r=e,i.forEach(t=>t(e)))},(0,t._addWindowEventListenerSafe)("focus",()=>{a=!1,(0,e._notifyVisibilityChanged)(n)}),(0,t._addWindowEventListenerSafe)("blur",()=>(0,e._notifyVisibilityChanged)(o)),(0,t._addDocumentEventListenerSafe)("visibilitychange",()=>{(0,e._notifyVisibilityChanged)("visible"===document.visibilityState?n:o)}),(0,t._addWindowEventListenerSafe)((0,t._getUnloadEvent)(),()=>{a=!0,(0,e._notifyVisibilityChanged)(o)})}(VisibilityObserving)),VisibilityObserving}function requireEventSender(){if(hasRequiredEventSender)return EventSender;hasRequiredEventSender=1;var e=EventSender&&EventSender.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(EventSender,"__esModule",{value:!0}),EventSender.EventSender=void 0;const t=requireLog$1(),n=requireNetworkConfig(),o=requireSDKType(),i=requireStatsigMetadata(),r=requireVisibilityObserving();return EventSender.EventSender=class{constructor(e,t,n,o,i){this._sdkKey=e,this._network=t,this._emitter=n,this._options=i,this._logEventUrlConfig=o}setLogEventCompressionMode(e){this._network.setLogEventCompressionMode(e)}sendBatch(n){return e(this,void 0,void 0,function*(){var e,o,i;let a="event_sender_unexpected_exception";const s={};try{const t=(0,r._isUnloading)()&&this._network.isBeaconSupported()&&null==(null===(o=null===(e=this._options)||void 0===e?void 0:e.networkConfig)||void 0===o?void 0:o.networkOverrideFunc);a="event_sender_pre_logs_flushed_emitter_exception",this._emitter({name:"pre_logs_flushed",events:n.events}),a=t?"event_sender_unexpected_exception":"event_sender_post_exception";const i=t?this._sendEventsViaBeacon(n,s):yield this._sendEventsViaPost(n,s);return i.success?(a="event_sender_logs_flushed_emitter_exception",this._emitter({name:"logs_flushed",events:n.events}),i):Object.assign(Object.assign(Object.assign({success:!1,statusCode:i.statusCode,failurePath:i.failurePath},i.failureErrorMessage?{failureErrorMessage:i.failureErrorMessage}:{}),i.failureDiagnosticBucket?{failureDiagnosticBucket:i.failureDiagnosticBucket}:{}),i.failureDiagnosticMetadata?{failureDiagnosticMetadata:i.failureDiagnosticMetadata}:{})}catch(l){return t.Log.warn("Failed to send batch:",l),Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!==(i=s.path)&&void 0!==i?i:a},s.errorMessage?{failureErrorMessage:s.errorMessage}:{}),s.diagnosticBucket?{failureDiagnosticBucket:s.diagnosticBucket}:{}),s.diagnosticMetadata?{failureDiagnosticMetadata:s.diagnosticMetadata}:{})}})}_sendEventsViaPost(t,n){return e(this,void 0,void 0,function*(){var e,o;const i=yield this._network.post(this._getRequestData(t),n),r=null!==(e=null==i?void 0:i.code)&&void 0!==e?e:-1;return-1===r?Object.assign(Object.assign(Object.assign({success:!1,statusCode:-1,failurePath:null!==(o=n.path)&&void 0!==o?o:void 0===i?"event_sender_post_returned_undefined":"event_sender_post_returned_null"},n.errorMessage?{failureErrorMessage:n.errorMessage}:{}),n.diagnosticBucket?{failureDiagnosticBucket:n.diagnosticBucket}:{}),n.diagnosticMetadata?{failureDiagnosticMetadata:n.diagnosticMetadata}:{}):{success:r>=200&&r<300,statusCode:r}})}_sendEventsViaBeacon(e,t){var n;const o=this._network.beacon(this._getRequestData(e),t);return Object.assign(Object.assign(Object.assign({success:o,statusCode:o?200:-1,failurePath:o?void 0:null!==(n=t.path)&&void 0!==n?n:"beacon_send_false"},!o&&t.errorMessage?{failureErrorMessage:t.errorMessage}:{}),!o&&t.diagnosticBucket?{failureDiagnosticBucket:t.diagnosticBucket}:{}),!o&&t.diagnosticMetadata?{failureDiagnosticMetadata:t.diagnosticMetadata}:{})}_getRequestData(e){return{sdkKey:this._sdkKey,data:{events:e.events},urlConfig:this._logEventUrlConfig,retries:3,preserveFailedStatusCode:!0,isCompressable:!0,params:{[n.NetworkParam.EventCount]:String(e.events.length)},headers:{"statsig-event-count":String(e.events.length),"statsig-retry-count":String(e.attempts),"statsig-sdk-type":o.SDKType._get(this._sdkKey),"statsig-sdk-version":i.SDK_VERSION},credentials:"same-origin"}}},EventSender}var FlushInterval={},hasRequiredFlushInterval;function requireFlushInterval(){if(hasRequiredFlushInterval)return FlushInterval;hasRequiredFlushInterval=1,Object.defineProperty(FlushInterval,"__esModule",{value:!0}),FlushInterval.FlushInterval=void 0;const e=1e3,t=6e4;return FlushInterval.FlushInterval=class{constructor(){this._currentIntervalMs=e,this._lastFlushAttemptTime=Date.now()}getCurrentIntervalMs(){return this._currentIntervalMs}markFlushAttempt(){this._lastFlushAttemptTime=Date.now()}getTimeSinceLastAttempt(){return Date.now()-this._lastFlushAttemptTime}hasReachedMaxInterval(){return this.getTimeSinceLastAttempt()>=t}getTimeTillMaxInterval(){return t-this.getTimeSinceLastAttempt()}hasCompletelyRecoveredFromBackoff(){return this._currentIntervalMs<=e}adjustForSuccess(){const t=this._currentIntervalMs;t!==e&&(this._currentIntervalMs=Math.max(e,Math.floor(t/2)))}adjustForFailure(){const e=this._currentIntervalMs;this._currentIntervalMs=Math.min(t,2*e)}getTimeUntilNextFlush(){return this.getCurrentIntervalMs()-this.getTimeSinceLastAttempt()}},FlushInterval}var FlushTypes={},hasRequiredFlushTypes;function requireFlushTypes(){return hasRequiredFlushTypes||(hasRequiredFlushTypes=1,Object.defineProperty(FlushTypes,"__esModule",{value:!0}),FlushTypes.FlushType=void 0,(t=e||(FlushTypes.FlushType=e={})).ScheduledMaxTime="scheduled:max_time",t.ScheduledFullBatch="scheduled:full_batch",t.Limit="limit",t.Manual="manual",t.Shutdown="shutdown"),FlushTypes;var e,t}var NetworkCore={},NetworkFallbackResolver={},DnsTxtQuery={},hasRequiredDnsTxtQuery;function requireDnsTxtQuery(){if(hasRequiredDnsTxtQuery)return DnsTxtQuery;hasRequiredDnsTxtQuery=1;var e=DnsTxtQuery&&DnsTxtQuery.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(DnsTxtQuery,"__esModule",{value:!0}),DnsTxtQuery._fetchTxtRecords=void 0;const t=new Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101,116,115,3,111,114,103,0,0,16,0,1]),n=["i","e","d"];return DnsTxtQuery._fetchTxtRecords=function(o){return e(this,void 0,void 0,function*(){const e=yield o("https://cloudflare-dns.com/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-message",Accept:"application/dns-message"},body:t});if(!e.ok){const e=new Error("Failed to fetch TXT records from DNS");throw e.name="DnsTxtFetchError",e}const i=yield e.arrayBuffer();return function(e){const t=e.findIndex((t,o)=>o<200&&"="===String.fromCharCode(t)&&n.includes(String.fromCharCode(e[o-1])));if(-1===t){const e=new Error("Failed to parse TXT records from DNS");throw e.name="DnsTxtParseError",e}let o="";for(let n=t-1;n<e.length;n++)o+=String.fromCharCode(e[n]);return o.split(",")}(new Uint8Array(i))})},DnsTxtQuery}var StorageProvider={},hasRequiredStorageProvider,hasRequiredNetworkFallbackResolver;function requireStorageProvider(){return hasRequiredStorageProvider||(hasRequiredStorageProvider=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._setObjectInStorage=e._getObjectFromStorage=e.Storage=void 0;const t=requireLog$1(),n=requireSafeJs(),o={},i={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"InMemory",getItem:e=>o[e]?o[e]:null,setItem:(e,t)=>{o[e]=t},removeItem:e=>{delete o[e]},getAllKeys:()=>Object.keys(o)};let r=null;try{const e=(0,n._getWindowSafe)();e&&e.localStorage&&"function"==typeof e.localStorage.getItem&&(r={isReady:()=>!0,isReadyResolver:()=>null,getProviderName:()=>"LocalStorage",getItem:t=>e.localStorage.getItem(t),setItem:(t,n)=>e.localStorage.setItem(t,n),removeItem:t=>e.localStorage.removeItem(t),getAllKeys:()=>Object.keys(e.localStorage)})}catch(c){t.Log.warn("Failed to setup localStorageProvider.")}let a=null!=r?r:i,s=a;function l(t){try{return t()}catch(c){if(c instanceof Error&&"SecurityError"===c.name)return e.Storage._setProvider(i),null;throw c}}e.Storage={isReady:()=>s.isReady(),isReadyResolver:()=>s.isReadyResolver(),getProviderName:()=>s.getProviderName(),getItem:e=>l(()=>s.getItem(e)),setItem:(e,t)=>l(()=>s.setItem(e,t)),removeItem:e=>s.removeItem(e),getAllKeys:()=>s.getAllKeys(),_setProvider:e=>{a=e,s=e},_setDisabled:e=>{s=e?i:a}},e._getObjectFromStorage=function(n){const o=e.Storage.getItem(n);try{return JSON.parse(null!=o?o:"null")}catch(i){return t.Log.error(`Failed to parse value for key "${n}"`),null}},e._setObjectInStorage=function(t,n){e.Storage.setItem(t,JSON.stringify(n))}}(StorageProvider)),StorageProvider}function requireNetworkFallbackResolver(){if(hasRequiredNetworkFallbackResolver)return NetworkFallbackResolver;hasRequiredNetworkFallbackResolver=1;var e=NetworkFallbackResolver&&NetworkFallbackResolver.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(NetworkFallbackResolver,"__esModule",{value:!0}),NetworkFallbackResolver._isDomainFailure=NetworkFallbackResolver.NetworkFallbackResolver=void 0;const t=requireDnsTxtQuery(),n=requireHashing(),o=requireLog$1(),i=requireStorageProvider(),r=6048e5;function a(e,t){var n;const o=null!==(n=null==e?void 0:e.toLowerCase())&&void 0!==n?n:"";return t||o.includes("uncaught exception")||o.includes("failed to fetch")||o.includes("networkerror when attempting to fetch resource")}function s(e){return`statsig.network_fallback.${(0,n._DJB2)(e)}`}function l(e,t){const n=s(e);t&&0!==Object.keys(t).length?i.Storage.setItem(n,JSON.stringify(t)):i.Storage.removeItem(n)}return NetworkFallbackResolver.NetworkFallbackResolver=class{constructor(e){var t;this._fallbackInfo=null,this._errorBoundary=null,this._dnsQueryCooldowns={},this._networkOverrideFunc=null===(t=e.networkConfig)||void 0===t?void 0:t.networkOverrideFunc}setErrorBoundary(e){this._errorBoundary=e}tryBumpExpiryTime(e,t){var n;const o=null===(n=this._fallbackInfo)||void 0===n?void 0:n[t.endpoint];o&&(o.expiryTime=Date.now()+r,l(e,Object.assign(Object.assign({},this._fallbackInfo),{[t.endpoint]:o})))}getActiveFallbackUrl(e,t){var n,r;if(null!=t.customUrl&&null!=t.fallbackUrls)return null;let a=this._fallbackInfo;null==a&&(a=null!==(n=function(e){const t=s(e),r=i.Storage.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch(n){return o.Log.error("Failed to parse FallbackInfo"),null}}(e))&&void 0!==n?n:{},this._fallbackInfo=a);const c=a[t.endpoint];return!c||Date.now()>(null!==(r=c.expiryTime)&&void 0!==r?r:0)||t.getChecksum()!==c.urlConfigChecksum?(delete a[t.endpoint],this._fallbackInfo=a,l(e,this._fallbackInfo),null):c.url?c.url:null}tryFetchUpdatedFallbackInfo(t,n,o,i){return e(this,void 0,void 0,function*(){var e,r;try{if(!a(o,i))return!1;const r=null==n.customUrl&&null==n.fallbackUrls?yield this._tryFetchFallbackUrlsFromNetwork(n):n.fallbackUrls,s=this._pickNewFallbackUrl(null===(e=this._fallbackInfo)||void 0===e?void 0:e[n.endpoint],r);return!!s&&(this._updateFallbackInfoWithNewUrl(t,n,s),!0)}catch(s){return null===(r=this._errorBoundary)||void 0===r||r.logError("tryFetchUpdatedFallbackInfo",s),!1}})}_updateFallbackInfoWithNewUrl(e,t,n){var o,i,a;const s={urlConfigChecksum:t.getChecksum(),url:n,expiryTime:Date.now()+r,previous:[]},c=t.endpoint,d=null===(o=this._fallbackInfo)||void 0===o?void 0:o[c];d&&s.previous.push(...d.previous),s.previous.length>10&&(s.previous=[]);const p=null===(a=null===(i=this._fallbackInfo)||void 0===i?void 0:i[c])||void 0===a?void 0:a.url;null!=p&&s.previous.push(p),this._fallbackInfo=Object.assign(Object.assign({},this._fallbackInfo),{[c]:s}),l(e,this._fallbackInfo)}_tryFetchFallbackUrlsFromNetwork(n){return e(this,void 0,void 0,function*(){var e;const o=this._dnsQueryCooldowns[n.endpoint];if(o&&Date.now()<o)return null;this._dnsQueryCooldowns[n.endpoint]=Date.now()+144e5;const i=[],r=yield(0,t._fetchTxtRecords)(null!==(e=this._networkOverrideFunc)&&void 0!==e?e:fetch),a=function(e){try{return new URL(e).pathname}catch(t){return null}}(n.defaultUrl);for(const t of r){if(!t.startsWith(n.endpointDnsKey+"="))continue;const e=t.split("=");if(e.length>1){let t=e[1];t.endsWith("/")&&(t=t.slice(0,-1)),i.push(`https://${t}${a}`)}}return i})}_pickNewFallbackUrl(e,t){var n;if(null==t)return null;const o=new Set(null!==(n=null==e?void 0:e.previous)&&void 0!==n?n:[]),i=null==e?void 0:e.url;let r=null;for(const a of t){const e=a.endsWith("/")?a.slice(0,-1):a;if(!o.has(a)&&e!==i){r=e;break}}return r}},NetworkFallbackResolver._isDomainFailure=a,NetworkFallbackResolver}var SDKFlags={},hasRequiredSDKFlags;function requireSDKFlags(){if(hasRequiredSDKFlags)return SDKFlags;hasRequiredSDKFlags=1,Object.defineProperty(SDKFlags,"__esModule",{value:!0}),SDKFlags.SDKFlags=void 0;const e={};return SDKFlags.SDKFlags={setFlags:(t,n)=>{e[t]=n},get:(t,n)=>{var o,i;return null!==(i=null===(o=e[t])||void 0===o?void 0:o[n])&&void 0!==i&&i}},SDKFlags}var SessionID={},UUID={},hasRequiredUUID,hasRequiredSessionID;function requireUUID(){if(hasRequiredUUID)return UUID;return hasRequiredUUID=1,Object.defineProperty(UUID,"__esModule",{value:!0}),UUID.getUUID=void 0,UUID.getUUID=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=/* @__PURE__ */(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return`xxxxxxxx-xxxx-4xxx-${"89ab"[Math.floor(4*Math.random())]}xxx-xxxxxxxxxxxx`.replace(/[xy]/g,n=>{let o=16*Math.random();return e>0?(o=(e+o)%16|0,e=Math.floor(e/16)):(o=(t+o)%16|0,t=Math.floor(t/16)),("x"===n?o:7&o|8).toString(16)})},UUID}function requireSessionID(){return hasRequiredSessionID||(hasRequiredSessionID=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigSession=e.SessionID=void 0;const t=requireCacheKey(),n=requireLog$1(),o=requireStorageProvider(),i=requireUUID(),r=requireVisibilityObserving(),a=18e5,s=144e5,l={};function c(e){var t;const n=e.data,o=function({lastUpdate:e}){return Date.now()-e>a}(n)||function({startTime:e}){return Date.now()-e>s}(n);return o&&(e.data=u(),null===(t=null===__STATSIG__||void 0===__STATSIG__?void 0:__STATSIG__.instance(e.sdkKey))||void 0===t||t.$emt({name:"session_expired"})),o}function d(e){return`statsig.session_id.${(0,t._getStorageKey)(e)}`}function p(e){try{(0,o._setObjectInStorage)(e.storageKey,e.data),e.lastPersistedAt=Date.now()}catch(t){n.Log.warn("Failed to save SessionID")}}function u(){return{sessionID:(0,i.getUUID)(),startTime:Date.now(),lastUpdate:Date.now()}}(0,r._subscribeToVisiblityChanged)(e=>{"background"===e&&Object.values(l).forEach(e=>p(e))}),e.SessionID={get:t=>e.StatsigSession.get(t).data.sessionID},e.StatsigSession={get:(e,t=!0)=>{null==l[e]&&(l[e]=function(e){const t=d(e),n=function(e){const t=(0,o._getObjectFromStorage)(e);return t}(t);if(n&&n.sessionID&&n.startTime&&n.lastUpdate)return{data:n,sdkKey:e,lastPersistedAt:0,storageKey:t};return{data:u(),sdkKey:e,lastPersistedAt:0,storageKey:t}}(e));return function(e,t){const n=Date.now(),o=c(e);o?p(e):t&&(e.data.lastUpdate=n,function(e){const t=Date.now();t-e.lastPersistedAt>15e3&&p(e)}(e));return e}(l[e],t)},overrideInitialSessionID:(e,t)=>{const n=Date.now(),o={data:{sessionID:e,startTime:n,lastUpdate:n},sdkKey:t,lastPersistedAt:Date.now(),storageKey:d(t)};p(o),l[t]=o},checkForIdleSession:e=>{const t=l[e];if(!t)return;c(t)&&p(t)}}}(SessionID)),SessionID}var StableID={},hasRequiredStableID;function requireStableID(){if(hasRequiredStableID)return StableID;hasRequiredStableID=1,Object.defineProperty(StableID,"__esModule",{value:!0}),StableID.getCookieName=StableID.StableID=void 0;const e=requireCacheKey(),t=requireLog$1(),n=requireSafeJs(),o=requireStorageProvider(),i=requireUUID(),r={},a={},s={};function l(t){return`statsig.stable_id.${(0,e._getStorageKey)(t)}`}function c(e,n){const i=l(n);try{(0,o._setObjectInStorage)(i,e)}catch(r){t.Log.warn("Failed to save StableID to storage")}}function d(e,t){if(!a[t]||null==(0,n._getDocumentSafe)())return;const o=/* @__PURE__ */new Date;o.setFullYear(o.getFullYear()+1),document.cookie=`${p(t)}=${encodeURIComponent(e)}; expires=${o.toUTCString()}; path=/`}function p(t){return`statsig.stable_id.${(0,e._getStorageKey)(t)}`}return StableID.StableID={cookiesEnabled:!1,randomID:Math.random().toString(36),get:e=>{if(s[e])return null;if(null!=r[e])return r[e];let t=null;return t=function(e){if(!a[e]||null==(0,n._getDocumentSafe)())return null;const t=document.cookie.split(";");for(const n of t){const[t,o]=n.trim().split("=");if(t===p(e))return decodeURIComponent(o)}return null}(e),null!=t?(r[e]=t,c(t,e),t):(t=function(e){const t=l(e);return(0,o._getObjectFromStorage)(t)}(e),null==t&&(t=(0,i.getUUID)()),c(t,e),d(t,e),r[e]=t,t)},setOverride:(e,t)=>{r[t]=e,c(e,t),d(e,t)},_setCookiesEnabled:(e,t)=>{a[e]=t},_setDisabled:(e,t)=>{s[e]=t}},StableID.getCookieName=p,StableID}var StatsigClientEventEmitter={},hasRequiredStatsigClientEventEmitter;function requireStatsigClientEventEmitter(){return hasRequiredStatsigClientEventEmitter||(hasRequiredStatsigClientEventEmitter=1,Object.defineProperty(StatsigClientEventEmitter,"__esModule",{value:!0}),StatsigClientEventEmitter.ErrorTag=void 0,StatsigClientEventEmitter.ErrorTag={NetworkError:"NetworkError"}),StatsigClientEventEmitter}var StatsigOptionsCommon={},hasRequiredStatsigOptionsCommon,hasRequiredNetworkCore,hasRequiredFlushCoordinator;function requireStatsigOptionsCommon(){return hasRequiredStatsigOptionsCommon||(hasRequiredStatsigOptionsCommon=1,Object.defineProperty(StatsigOptionsCommon,"__esModule",{value:!0}),StatsigOptionsCommon.LoggingEnabledOption=StatsigOptionsCommon.LogEventCompressionMode=void 0,StatsigOptionsCommon.LogEventCompressionMode={Disabled:"d",Enabled:"e",Forced:"f"},StatsigOptionsCommon.LoggingEnabledOption={disabled:"disabled",browserOnly:"browser-only",always:"always"}),StatsigOptionsCommon}function requireNetworkCore(){return hasRequiredNetworkCore||(hasRequiredNetworkCore=1,function(e){var t=NetworkCore&&NetworkCore.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.NetworkCore=e.RETRYABLE_CODES=void 0,require$_StatsigGlobal();const n=require$_StatsigGlobal(),o=requireDiagnostics(),i=requireLog$1(),r=requireNetworkConfig(),a=requireNetworkFallbackResolver(),s=requireSDKFlags(),l=requireSDKType(),c=requireSafeJs(),d=requireSessionID(),p=requireStableID(),u=requireStatsigClientEventEmitter(),m=requireStatsigMetadata(),h=requireStatsigOptionsCommon(),g=requireVisibilityObserving();e.RETRYABLE_CODES=/* @__PURE__ */new Set([408,500,502,503,504,522,524,599]);e.NetworkCore=class{constructor(e,t){this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},this._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._options=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutMs),this._fallbackResolver=new a.NetworkFallbackResolver(this._options),this.setLogEventCompressionMode(this._getLogEventCompressionMode(e))}setLogEventCompressionMode(e){this._options.logEventCompressionMode=e}setErrorBoundary(e){this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(this._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSupported(){return"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon}getLastUsedInitUrlAndReset(){const e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e,t){if(!x(e))return t&&(t.path="beacon_invalid_sdk_key"),!1;const n=this._getInternalRequestArgs("POST",e),o=this._getPopulatedURL(n),i=navigator;try{const e=i.sendBeacon.bind(i)(o,n.body);return e||t&&(t.path="beacon_send_false"),e}catch(r){throw t&&(t.path="beacon_send_exception"),r}}post(e,n){return t(this,void 0,void 0,function*(){const t=this._getInternalRequestArgs("POST",e);return this._tryEncodeBody(t),yield this._tryToCompressBody(t),this._sendRequest(t,n)})}get(e){const t=this._getInternalRequestArgs("GET",e);return this._sendRequest(t)}_sendRequest(n,a){return t(this,void 0,void 0,function*(){var s,l,d,p;if(!x(n))return a&&(a.path="network_invalid_sdk_key"),null;if(this._netConfig.preventAllNetworkTraffic)return a&&(a.path="network_prevent_all_network_traffic"),null;const{method:m,body:h,retries:f,attempt:C}=n,$=n.urlConfig.endpoint;if(this._isRateLimited($))return i.Log.warn(`Request to ${$} was blocked because you are making requests too frequently.`),a&&(a.path="network_rate_limited"),null;const b=null!=C?C:1;let v=!1;const E=this._getPopulatedURL(n),w=Date.now();let R=null;const A=(0,g._isUnloading)();try{const e={method:m,body:h,headers:Object.assign({},n.headers),priority:n.priority,keepalive:A};!function(e,t){if(e.urlConfig.endpoint!==r.Endpoint._initialize)return;o.Diagnostics._markInitNetworkReqStart(e.sdkKey,{attempt:t})}(n,b);const t=this._leakyBucket[$];t&&(t.lastRequestTime=Date.now(),this._leakyBucket[$]=t);const i=null!==(s=this._netConfig.networkOverrideFunc)&&void 0!==s?s:fetch;let a;if(R=yield Promise.race([i(E,e).finally(()=>clearTimeout(a)),new Promise((e,t)=>{a=setTimeout(()=>{v=!0,t(new Error(`Timeout of ${this._timeout}ms expired.`))},this._timeout)})]),!R.ok){const e=yield R.text().catch(()=>"No Text"),t=new Error(`NetworkError: ${E} ${e}`);throw t.name="NetworkError",t}const l=yield R.text();return S(n,R,b,l),this._fallbackResolver.tryBumpExpiryTime(n.sdkKey,n.urlConfig),{body:l,code:R.status}}catch(T){const o=function(e){if("string"==typeof e)return e;if(e instanceof Error)return`${e.name}: ${e.message}`;return"Unknown Error"}(T),r=(j=v,(null!=o?o:"").includes("Timeout")||j);S(n,R,b,"",T);if((yield this._fallbackResolver.tryFetchUpdatedFallbackInfo(n.sdkKey,n.urlConfig,o,r))&&(n.fallbackUrl=this._fallbackResolver.getActiveFallbackUrl(n.sdkKey,n.urlConfig)),!f||b>f||!e.RETRYABLE_CODES.has(null!==(l=null==R?void 0:R.status)&&void 0!==l?l:500)){null===(d=this._emitter)||void 0===d||d.call(this,{name:"error",error:T,tag:u.ErrorTag.NetworkError,requestArgs:n});const e=`A networking error occurred during ${m} request to ${E}.`;if(i.Log.error(e,o,T),null===(p=this._errorBoundary)||void 0===p||p.attachErrorIfNoneExists(e),n.preserveFailedStatusCode&&null!=R)return{body:null,code:R.status};if(null==R&&a){a.path=r?"network_request_timed_out_no_response":"network_request_exception_no_response",o&&(a.errorMessage=o);try{const e=function(e,t,n,o){var i,r,a;const s=(0,c._getWindowSafe)(),l=null==s?void 0:s.document,d="undefined"!=typeof navigator?navigator:null,p=(0,g._isUnloading)(),u=d&&"boolean"==typeof d.onLine?String(d.onLine):"unknown",m=null!==(i=null==l?void 0:l.visibilityState)&&void 0!==i?i:"unknown",h=Object.keys(null!==(r=e.headers)&&void 0!==r?r:{}).length>0,x=function(e,t){if(!t)return!0;return!e.startsWith(`${t}/`)&&!e.startsWith(`${t}?`)&&e!==t}(t,null===(a=null==s?void 0:s.location)||void 0===a?void 0:a.origin),f=null!=e.urlConfig.customUrl,S=null!=e.fallbackUrl,C=y(o,[250,1e3,5e3,1e4]),$=y(function(e){if(null==e)return 0;if("string"==typeof e)return e.length;if(e instanceof Uint8Array)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob)return e.size;return-1}(e.body),[16384,65536,262144,1048576]);let b="unknown_no_response";n?b="timeout":"false"===u?b="browser_offline":p?b="page_unloading":"hidden"===m?b="page_hidden":x&&h?b="cross_origin_custom_headers_preflight_risk":f||S?b="custom_url_no_response":o<250&&(b="immediate_network_rejection");return{bucket:b,metadata:{elapsedMsBucket:C,bodySizeBucket:$,online:u,visibilityState:m,isUnloading:String(p),crossOrigin:String(x),hasCustomUrl:String(f)}}}(n,E,r,Date.now()-w);a.diagnosticBucket=e.bucket,a.diagnosticMetadata=e.metadata}catch(I){}}return null}return yield function(e){return t(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,Math.min(e*e*500,3e4)))})}(b),this._sendRequest(Object.assign(Object.assign({},n),{retries:f,attempt:b+1}),a)}var j})}_getLogEventCompressionMode(e){let t=null==e?void 0:e.logEventCompressionMode;return t||!0!==(null==e?void 0:e.disableCompression)||(t=h.LogEventCompressionMode.Disabled),t||(t=h.LogEventCompressionMode.Enabled),t}_isRateLimited(e){var t;const n=Date.now(),o=null!==(t=this._leakyBucket[e])&&void 0!==t?t:{count:0,lastRequestTime:n},i=n-o.lastRequestTime,r=Math.floor(.05*i);return o.count=Math.max(0,o.count-r),o.count>=50||(o.count+=1,o.lastRequestTime=n,this._leakyBucket[e]=o,!1)}_getPopulatedURL(e){var t;const n=null!==(t=e.fallbackUrl)&&void 0!==t?t:e.urlConfig.getUrl();e.urlConfig.endpoint!==r.Endpoint._initialize&&e.urlConfig.endpoint!==r.Endpoint._download_config_specs||(this._lastUsedInitUrl=n);const o=Object.assign({[r.NetworkParam.SdkKey]:e.sdkKey,[r.NetworkParam.SdkType]:l.SDKType._get(e.sdkKey),[r.NetworkParam.SdkVersion]:m.SDK_VERSION,[r.NetworkParam.Time]:String(Date.now()),[r.NetworkParam.SessionID]:d.SessionID.get(e.sdkKey)},e.params),i=Object.keys(o).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(o[e])}`).join("&");return`${n}${i?`?${i}`:""}`}_tryEncodeBody(e){var t;const o=(0,c._getWindowSafe)(),a=e.body;if(e.isStatsigEncodable&&!this._options.disableStatsigEncoding&&"string"==typeof a&&null==(0,n._getStatsigGlobalFlag)("no-encode")&&(null==o?void 0:o.btoa))try{e.body=o.btoa(a).split("").reverse().join(""),e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[r.NetworkParam.StatsigEncoded]:"1"})}catch(s){i.Log.warn(`Request encoding failed for ${e.urlConfig.getUrl()}`,s)}}_tryToCompressBody(e){return t(this,void 0,void 0,function*(){var t;const o=e.body;if("string"==typeof o&&function(e,t){if(!e.isCompressable)return!1;if(null!=(0,n._getStatsigGlobalFlag)("no-compress")||"undefined"==typeof CompressionStream||"undefined"==typeof TextEncoder)return!1;const o=null!=e.urlConfig.customUrl||null!=e.urlConfig.fallbackUrls,i=!0===s.SDKFlags.get(e.sdkKey,"enable_log_event_compression");switch(t.logEventCompressionMode){case h.LogEventCompressionMode.Disabled:return!1;case h.LogEventCompressionMode.Enabled:return!(o&&!i);case h.LogEventCompressionMode.Forced:return!0;default:return!1}}(e,this._options))try{const n=(new TextEncoder).encode(o),a=new CompressionStream("gzip"),s=a.writable.getWriter();s.write(n).catch(i.Log.error),s.close().catch(i.Log.error);const l=a.readable.getReader(),c=[];let d;for(;!(d=yield l.read()).done;)c.push(d.value);const p=c.reduce((e,t)=>e+t.length,0),u=new Uint8Array(p);let m=0;for(const e of c)u.set(e,m),m+=e.length;e.body=u,e.params=Object.assign(Object.assign({},null!==(t=e.params)&&void 0!==t?t:{}),{[r.NetworkParam.IsGzipped]:"1"})}catch(a){i.Log.warn(`Request compression failed for ${e.urlConfig.getUrl()}`,a)}})}_getInternalRequestArgs(e,t){const n=this._fallbackResolver.getActiveFallbackUrl(t.sdkKey,t.urlConfig),o=Object.assign(Object.assign({},t),{method:e,fallbackUrl:n});return"data"in t&&f(o,t.data),o}};const x=e=>!!e.sdkKey||(i.Log.warn("Unable to make request without an SDK key"),!1),f=(e,t)=>{const{sdkKey:n,fallbackUrl:o}=e,i=p.StableID.get(n),r=d.SessionID.get(n),a=l.SDKType._get(n);e.body=JSON.stringify(Object.assign(Object.assign({},t),{statsigMetadata:Object.assign(Object.assign({},m.StatsigMetadataProvider.get()),{stableID:i,sessionID:r,sdkType:a,fallbackUrl:o})}))};function y(e,t){if(e<0)return"unknown";for(const n of t)if(e<n)return`<${n}`;return`>=${t[t.length-1]}`}function S(e,t,n,i,a){e.urlConfig.endpoint===r.Endpoint._initialize&&o.Diagnostics._markInitNetworkReqEnd(e.sdkKey,o.Diagnostics._getDiagnosticsData(t,n,i,a))}}(NetworkCore)),NetworkCore}function requireFlushCoordinator(){if(hasRequiredFlushCoordinator)return FlushCoordinator;hasRequiredFlushCoordinator=1;var e=FlushCoordinator&&FlushCoordinator.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(FlushCoordinator,"__esModule",{value:!0}),FlushCoordinator.FlushCoordinator=void 0;const t=requireEventRetryConstants(),n=requireEventSender(),o=requireFlushInterval(),i=requireFlushTypes(),r=requireHashing(),a=requireLog$1(),s=requireNetworkCore(),l=requireSafeJs(),c=requireSessionID(),d=requireStatsigOptionsCommon(),p=requireStorageProvider(),u=/* @__PURE__ */new Set(["network_request_timed_out_no_response","network_request_exception_no_response","event_sender_post_returned_null","event_sender_post_returned_undefined","event_sender_post_exception"]);return FlushCoordinator.FlushCoordinator=class{constructor(e,t,i,r,a,s,l,c,d,p){this._cooldownTimer=null,this._maxIntervalTimer=null,this._hasRunQuickFlush=!1,this._currentFlushPromise=null,this._creationTime=Date.now(),this._isShuttingDown=!1,this._storageKey=null,this._flushInterval=new o.FlushInterval,this._batchQueue=e,this._pendingEvents=t,this._onPrepareFlush=i,this._errorBoundary=p,this._sdkKey=r,this._loggingEnabled=d,this._eventSender=new n.EventSender(r,a,s,l,c)}setLoggingEnabled(e){this._loggingEnabled=e}setLogEventCompressionMode(e){this._eventSender.setLogEventCompressionMode(e)}startScheduledFlushCycle(){this._scheduleNextFlush()}stopScheduledFlushCycle(){this._clearAllTimers()}addEvent(e){this._pendingEvents.addToPendingEventsQueue(e),this._currentFlushPromise||this._pendingEvents.hasEventsForFullBatch()&&this.processLimitFlush()}processManualFlush(){return e(this,void 0,void 0,function*(){return this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(i.FlushType.Manual).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()}),this._currentFlushPromise})}processShutdown(){return e(this,void 0,void 0,function*(){return this._isShuttingDown=!0,this._clearAllTimers(),this._currentFlushPromise&&(yield this._currentFlushPromise),this._currentFlushPromise=this._executeFlush(i.FlushType.Shutdown).catch(e=>{a.Log.error(`Error during shutdown flush: ${e}`)}).finally(()=>{this._currentFlushPromise=null}),this._currentFlushPromise})}_executeFlush(t){return e(this,void 0,void 0,function*(){this._clearAllTimers();try{this._prepareQueueForFlush(t);const e=this._batchQueue.takeAllBatches();if(0===e.length)return;yield Promise.all(e.map(e=>this._processOneBatch(e,t)))}finally{this._isShuttingDown||this._scheduleNextFlush()}})}checkQuickFlush(){this._hasRunQuickFlush||Date.now()-this._creationTime>t.EventRetryConstants.QUICK_FLUSH_WINDOW_MS||(this._hasRunQuickFlush=!0,setTimeout(()=>{this.processManualFlush().catch(e=>{a.Log.warn("Quick flush failed:",e)})},t.EventRetryConstants.QUICK_FLUSH_WINDOW_MS))}_attemptScheduledFlush(){if(this._currentFlushPromise)return void this._scheduleNextFlush();const e=this.containsAtLeastOneFullBatch(),t=this._flushInterval.hasReachedMaxInterval();if(!e&&!t)return void this._scheduleNoopPollTick();let n;this._flushInterval.markFlushAttempt(),n=e?i.FlushType.ScheduledFullBatch:i.FlushType.ScheduledMaxTime,this._currentFlushPromise=this._processNextBatch(n).then(()=>{}).catch(e=>{a.Log.error("Error during scheduled flush:",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})}processLimitFlush(){this._flushInterval.hasCompletelyRecoveredFromBackoff()&&(this._currentFlushPromise||(this._currentFlushPromise=this._processLimitFlushInternal().catch(e=>{a.Log.error("Error during limit flush",e)}).finally(()=>{this._currentFlushPromise=null,this._scheduleNextFlush()})))}_processLimitFlushInternal(){return e(this,void 0,void 0,function*(){if(yield this._processNextBatch(i.FlushType.Limit))for(;this._flushInterval.hasCompletelyRecoveredFromBackoff()&&this.containsAtLeastOneFullBatch();){if(!(yield this._processNextBatch(i.FlushType.Limit)))break}})}_scheduleNextFlush(){if(this._clearAllTimers(),this._isShuttingDown)return;const e=Math.max(0,this._flushInterval.getTimeUntilNextFlush());this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e);const t=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},t)}_clearAllTimers(){null!==this._cooldownTimer&&(clearTimeout(this._cooldownTimer),this._cooldownTimer=null),null!==this._maxIntervalTimer&&(clearTimeout(this._maxIntervalTimer),this._maxIntervalTimer=null)}_scheduleNoopPollTick(){if(this._clearAllTimers(),this._isShuttingDown)return;this._cooldownTimer=setTimeout(()=>{this._cooldownTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},t.EventRetryConstants.TICK_INTERVAL_MS);const e=Math.max(0,this._flushInterval.getTimeTillMaxInterval());this._maxIntervalTimer=setTimeout(()=>{this._maxIntervalTimer=null,c.StatsigSession.checkForIdleSession(this._sdkKey),this._attemptScheduledFlush()},e)}_processNextBatch(t){return e(this,void 0,void 0,function*(){this._prepareQueueForFlush(t);const e=this._batchQueue.takeNextBatch();return!!e&&this._processOneBatch(e,t)})}_processOneBatch(t,n){return e(this,void 0,void 0,function*(){if(this._loggingEnabled!==d.LoggingEnabledOption.always&&(0,l._isServerEnv)())return this._flushInterval.adjustForSuccess(),!0;const e=yield this._eventSender.sendBatch(t);return e.success?(this._flushInterval.adjustForSuccess(),!0):(this._flushInterval.adjustForFailure(),this._handleFailure(t,n,e.statusCode,e.failurePath,e.failureErrorMessage,e.failureDiagnosticBucket,e.failureDiagnosticMetadata),!1)})}_prepareQueueForFlush(e){this._onPrepareFlush();const n=this.convertPendingEventsToBatches();n>0&&(a.Log.warn(`Dropped ${n} events`),this._errorBoundary.logDroppedEvents(n,"Batch queue limit reached during batching",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:t.EventRetryConstants.MAX_PENDING_BATCHES,flushType:e,retries:"dropped before batching"}))}containsAtLeastOneFullBatch(){return this._pendingEvents.hasEventsForFullBatch()||this._batchQueue.hasFullBatch()}convertPendingEventsToBatches(){if(this._pendingEvents.isEmpty())return 0;const e=this._pendingEvents.takeAll();return this._batchQueue.createBatches(e)}_isRetryableBatch(e,t){return!!s.RETRYABLE_CODES.has(e)||!(-1!==e||!t||!u.has(t))}_handleFailure(e,n,o,r,s,l,c){if(n===i.FlushType.Shutdown)return a.Log.warn(`${n} flush failed during shutdown. ${e.events.length} event(s) will be saved to storage for retry in next session.`),void this._saveShutdownFailedEventsToStorage(e.events);if(!this._isRetryableBatch(o,r)){const t="non-retryable error";return a.Log.warn(`${n} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped. Non-retryable error: ${o}`),void this._errorBoundary.logEventRequestFailure(e.events.length,t,n,o,e.attempts,r,s,l,c)}if(e.attempts>=t.EventRetryConstants.MAX_RETRY_ATTEMPTS){const t="max retry attempts exceeded";return a.Log.warn(`${n} flush failed after ${e.attempts} attempt(s). ${e.events.length} event(s) will be dropped.`),void this._errorBoundary.logEventRequestFailure(e.events.length,t,n,o,e.attempts,r,s,l,c)}e.incrementAttempts();const d=this._batchQueue.requeueBatch(e);d>0&&(a.Log.warn(`Failed to requeue batch : dropped ${d} events due to full queue`),this._errorBoundary.logDroppedEvents(d,"Batch queue limit reached during requeue",{loggingInterval:this._flushInterval.getCurrentIntervalMs(),batchSize:this._batchQueue.batchSize(),maxPendingBatches:t.EventRetryConstants.MAX_PENDING_BATCHES,flushType:n,retries:e.attempts}))}loadAndRetryShutdownFailedEvents(){return e(this,void 0,void 0,function*(){const e=this._getStorageKey();try{p.Storage.isReady()||(yield p.Storage.isReadyResolver());const t=this._getShutdownFailedEventsFromStorage(e);if(0===t.length)return;a.Log.debug(`Loading ${t.length} failed shutdown event(s) from storage for retry`),p.Storage.removeItem(e),t.forEach(e=>{this.addEvent(e)}),yield this.processManualFlush()}catch(t){a.Log.warn("Failed to load and retry failed shutdown events:",t)}})}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.failed_shutdown_events.${(0,r._DJB2)(this._sdkKey)}`),this._storageKey}_saveShutdownFailedEventsToStorage(e){const n=this._getStorageKey();try{let o=[...this._getShutdownFailedEventsFromStorage(n),...e];o.length>t.EventRetryConstants.MAX_LOCAL_STORAGE&&(o=o.slice(-t.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,p._setObjectInStorage)(n,o),a.Log.debug(`Saved ${e.length} failed shutdown event(s) to storage (total stored: ${o.length})`)}catch(o){a.Log.warn("Unable to save failed shutdown events to storage:",o)}}_getShutdownFailedEventsFromStorage(e){try{const t=(0,p._getObjectFromStorage)(e);return Array.isArray(t)?t:[]}catch(t){return[]}}},FlushCoordinator}var PendingEvents={},hasRequiredPendingEvents;function requirePendingEvents(){if(hasRequiredPendingEvents)return PendingEvents;hasRequiredPendingEvents=1,Object.defineProperty(PendingEvents,"__esModule",{value:!0}),PendingEvents.PendingEvents=void 0;const e=requireLog$1();return PendingEvents.PendingEvents=class{constructor(e){this._pendingEvents=[],this._batchSize=e}addToPendingEventsQueue(t){this._pendingEvents.push(t),e.Log.debug("Enqueued Event:",t)}hasEventsForFullBatch(){return this._pendingEvents.length>=this._batchSize}takeAll(){const e=this._pendingEvents;return this._pendingEvents=[],e}isEmpty(){return 0===this._pendingEvents.length}},PendingEvents}var StatsigEvent={},hasRequiredStatsigEvent;function requireStatsigEvent(){if(hasRequiredStatsigEvent)return StatsigEvent;hasRequiredStatsigEvent=1,Object.defineProperty(StatsigEvent,"__esModule",{value:!0}),StatsigEvent._createLayerParameterExposure=StatsigEvent._createConfigExposure=StatsigEvent._mapExposures=StatsigEvent._createGateExposure=StatsigEvent._isExposureEvent=void 0;const e="statsig::config_exposure",t="statsig::gate_exposure",n="statsig::layer_exposure",o=(e,t,n,o,i)=>(n.bootstrapMetadata&&(o.bootstrapMetadata=n.bootstrapMetadata),{eventName:e,user:t,value:null,metadata:r(n,o),secondaryExposures:i,time:Date.now()});StatsigEvent._isExposureEvent=({eventName:o})=>o===t||o===e||o===n;function i(e,t){return e.map(e=>"string"==typeof e?(null!=t?t:{})[e]:e).filter(e=>null!=e)}StatsigEvent._createGateExposure=(e,n,r)=>{var a,s,l;const c={gate:n.name,gateValue:String(n.value),ruleID:n.ruleID};return null!=(null===(a=n.__evaluation)||void 0===a?void 0:a.version)&&(c.configVersion=n.__evaluation.version),o(t,e,n.details,c,i(null!==(l=null===(s=n.__evaluation)||void 0===s?void 0:s.secondary_exposures)&&void 0!==l?l:[],r))},StatsigEvent._mapExposures=i;StatsigEvent._createConfigExposure=(t,n,r)=>{var a,s,l,c;const d={config:n.name,ruleID:n.ruleID};return null!=(null===(a=n.__evaluation)||void 0===a?void 0:a.version)&&(d.configVersion=n.__evaluation.version),null!=(null===(s=n.__evaluation)||void 0===s?void 0:s.passed)&&(d.rulePassed=String(n.__evaluation.passed)),o(e,t,n.details,d,i(null!==(c=null===(l=n.__evaluation)||void 0===l?void 0:l.secondary_exposures)&&void 0!==c?c:[],r))};StatsigEvent._createLayerParameterExposure=(e,t,r,a)=>{var s,l,c,d,p,u,m;const h=t.__evaluation,g=!0===(null===(s=null==h?void 0:h.explicit_parameters)||void 0===s?void 0:s.includes(r));let x="",f=null!==(l=null==h?void 0:h.undelegated_secondary_exposures)&&void 0!==l?l:[];g&&(x=null!==(c=h.allocated_experiment_name)&&void 0!==c?c:"",f=null!==(d=h.secondary_exposures)&&void 0!==d?d:[]);const y=null===(p=t.__evaluation)||void 0===p?void 0:p.parameter_rule_ids,S={config:t.name,parameterName:r,ruleID:null!==(u=null==y?void 0:y[r])&&void 0!==u?u:t.ruleID,allocatedExperiment:x,isExplicitParameter:String(g)};return null!=(null===(m=t.__evaluation)||void 0===m?void 0:m.version)&&(S.configVersion=t.__evaluation.version),o(n,e,t.details,S,i(f,a))};const r=(e,t)=>(t.reason=e.reason,e.lcut&&(t.lcut=String(e.lcut)),e.receivedAt&&(t.receivedAt=String(e.receivedAt)),t);return StatsigEvent}var UrlConfiguration={},hasRequiredUrlConfiguration,hasRequiredEventLogger;function requireUrlConfiguration(){if(hasRequiredUrlConfiguration)return UrlConfiguration;hasRequiredUrlConfiguration=1,Object.defineProperty(UrlConfiguration,"__esModule",{value:!0}),UrlConfiguration.UrlConfiguration=void 0;const e=requireHashing(),t=requireNetworkConfig(),n={[t.Endpoint._initialize]:"i",[t.Endpoint._rgstr]:"e",[t.Endpoint._download_config_specs]:"d"};return UrlConfiguration.UrlConfiguration=class{constructor(e,o,i,r){this.customUrl=null,this.fallbackUrls=null,this.endpoint=e,this.endpointDnsKey=n[e],o&&(this.customUrl=o),!o&&i&&(this.customUrl=i.endsWith("/")?`${i}${e}`:`${i}/${e}`),r&&(this.fallbackUrls=r);const a=t.NetworkDefault[e];this.defaultUrl=`${a}/${e}`}getUrl(){var e;return null!==(e=this.customUrl)&&void 0!==e?e:this.defaultUrl}getChecksum(){var t;const n=(null!==(t=this.fallbackUrls)&&void 0!==t?t:[]).sort().join(",");return(0,e._DJB2)(this.customUrl+n)}},UrlConfiguration}function requireEventLogger(){if(hasRequiredEventLogger)return EventLogger;hasRequiredEventLogger=1;var e=EventLogger&&EventLogger.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(EventLogger,"__esModule",{value:!0}),EventLogger.EventLogger=void 0;const t=requireBatchedEventsQueue(),n=requireCacheKey(),o=requireEventRetryConstants(),i=requireFlushCoordinator(),r=requireHashing(),a=requireLog$1(),s=requireNetworkConfig(),l=requirePendingEvents(),c=requireSafeJs(),d=requireStatsigEvent(),p=requireStatsigOptionsCommon(),u=requireStorageProvider(),m=requireUrlConfiguration(),h=requireVisibilityObserving(),g={};return EventLogger.EventLogger=class x{static _safeFlushAndForget(e){var t;null===(t=g[e])||void 0===t||t.flush().catch(()=>{})}constructor(e,t,n,o,i){var r;this._sdkKey=e,this._emitter=t,this._network=n,this._options=o,this._errorBoundary=i,this._pendingEvents=null,this._batchQueue=null,this._flushCoordinator=null,this._lastExposureTimeMap={},this._nonExposedChecks={},this._isShuttingDown=!1,this._storageKey=null,this._pendingCompressionMode=null,this._loggingEnabled=null!==(r=null==o?void 0:o.loggingEnabled)&&void 0!==r?r:!0===(null==o?void 0:o.disableLogging)?p.LoggingEnabledOption.disabled:p.LoggingEnabledOption.browserOnly,(null==o?void 0:o.loggingEnabled)&&void 0!==o.disableLogging&&a.Log.warn("Detected both loggingEnabled and disableLogging options. loggingEnabled takes precedence - please remove disableLogging.");const l=null==o?void 0:o.networkConfig;this._logEventUrlConfig=new m.UrlConfiguration(s.Endpoint._rgstr,null==l?void 0:l.logEventUrl,null==l?void 0:l.api,null==l?void 0:l.logEventFallbackUrls)}setLogEventCompressionMode(e){this._flushCoordinator?this._flushCoordinator.setLogEventCompressionMode(e):this._pendingCompressionMode=e}setLoggingEnabled(e){const t="disabled"===this._loggingEnabled,n="disabled"!==e;if(this._loggingEnabled=e,this._flushCoordinator&&this._flushCoordinator.setLoggingEnabled(e),t&&n){const e=this._loadStoredEvents();a.Log.debug(`Loaded ${e.length} stored event(s) from storage`),e.length>0&&(e.forEach(e=>{this._initFlushCoordinator().addEvent(e)}),this.flush().catch(e=>{a.Log.warn("Failed to flush events after enabling logging:",e)}))}}enqueue(e){var t;if(!this._shouldLogEvent(e))return;const n=this._normalizeEvent(e);"disabled"!==this._loggingEnabled?(this._initFlushCoordinator().addEvent(n),null===(t=this._flushCoordinator)||void 0===t||t.checkQuickFlush()):this._storeEventToStorage(n)}incrementNonExposureCount(e){var t;const n=null!==(t=this._nonExposedChecks[e])&&void 0!==t?t:0;this._nonExposedChecks[e]=n+1}reset(){this.flush().catch(()=>{}),this._lastExposureTimeMap={}}start(){var e;const t=(0,c._isServerEnv)();if(t&&"always"!==(null===(e=this._options)||void 0===e?void 0:e.loggingEnabled))return;const n=this._initFlushCoordinator();g[this._sdkKey]=this,t||(0,h._subscribeToVisiblityChanged)(e=>{"background"===e?x._safeFlushAndForget(this._sdkKey):"foreground"===e&&n.startScheduledFlushCycle()}),n.loadAndRetryShutdownFailedEvents().catch(e=>{a.Log.warn("Failed to load failed shutdown events:",e)}),n.startScheduledFlushCycle()}stop(){return e(this,void 0,void 0,function*(){this._isShuttingDown=!0,this._flushCoordinator&&(yield this._flushCoordinator.processShutdown()),delete g[this._sdkKey],this._flushCoordinator=null,this._pendingEvents=null,this._batchQueue=null})}flush(){return e(this,void 0,void 0,function*(){if(this._flushCoordinator)return this._flushCoordinator.processManualFlush()})}appendAndResetNonExposedChecks(){if(0===Object.keys(this._nonExposedChecks).length)return;const e=Object.assign({},this._nonExposedChecks);this._nonExposedChecks={};const t=this._normalizeEvent({eventName:"statsig::non_exposed_checks",user:null,time:Date.now(),metadata:{checks:e}});this._flushCoordinator&&this._flushCoordinator.addEvent(t)}_shouldLogEvent(e){var t;if("always"!==(null===(t=this._options)||void 0===t?void 0:t.loggingEnabled)&&(0,c._isServerEnv)())return!1;if(!(0,d._isExposureEvent)(e))return!0;const o=e.user?e.user:{statsigEnvironment:void 0},i=(0,n._getUserStorageKey)(this._sdkKey,o),r=e.metadata?e.metadata:{},a=[e.eventName,i,r.gate,r.config,r.ruleID,r.allocatedExperiment,r.parameterName,String(r.isExplicitParameter),r.reason].join("|"),s=this._lastExposureTimeMap[a],l=Date.now();return!(s&&l-s<6e5)&&(Object.keys(this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={}),this._lastExposureTimeMap[a]=l,!0)}_getCurrentPageUrl(){var e;if(!1!==(null===(e=this._options)||void 0===e?void 0:e.includeCurrentPageUrlWithEvents))return(0,c._getCurrentPageUrlSafe)()}_getStorageKey(){return this._storageKey||(this._storageKey=`statsig.pending_events.${(0,r._DJB2)(this._sdkKey)}`),this._storageKey}_initFlushCoordinator(){var e,n;if(this._flushCoordinator)return this._flushCoordinator;const r=null!==(n=null===(e=this._options)||void 0===e?void 0:e.loggingBufferMaxSize)&&void 0!==n?n:o.EventRetryConstants.DEFAULT_BATCH_SIZE;return this._pendingEvents=new l.PendingEvents(r),this._batchQueue=new t.BatchQueue(r),this._flushCoordinator=new i.FlushCoordinator(this._batchQueue,this._pendingEvents,()=>this.appendAndResetNonExposedChecks(),this._sdkKey,this._network,this._emitter,this._logEventUrlConfig,this._options,this._loggingEnabled,this._errorBoundary),this._pendingCompressionMode&&(this._flushCoordinator.setLogEventCompressionMode(this._pendingCompressionMode),this._pendingCompressionMode=null),this._flushCoordinator}_storeEventToStorage(e){const t=this._getStorageKey();try{let n=this._getEventsFromStorage(t);n.push(e),n.length>o.EventRetryConstants.MAX_LOCAL_STORAGE&&(n=n.slice(-o.EventRetryConstants.MAX_LOCAL_STORAGE)),(0,u._setObjectInStorage)(t,n)}catch(n){a.Log.warn("Unable to save events to storage")}}_getEventsFromStorage(e){try{const t=(0,u._getObjectFromStorage)(e);return Array.isArray(t)?t:[]}catch(t){return[]}}_loadStoredEvents(){const e=this._getStorageKey(),t=this._getEventsFromStorage(e);return t.length>0&&u.Storage.removeItem(e),t}_normalizeEvent(e){e.user&&(e.user=Object.assign({},e.user),delete e.user.privateAttributes);const t={},n=this._getCurrentPageUrl();return n&&(t.statsigMetadata={currentPage:n}),Object.assign(Object.assign({},e),t)}},EventLogger}var ClientInterfaces={},hasRequiredClientInterfaces;function requireClientInterfaces(){if(hasRequiredClientInterfaces)return ClientInterfaces;hasRequiredClientInterfaces=1,Object.defineProperty(ClientInterfaces,"__esModule",{value:!0}),ClientInterfaces.PrecomputedEvaluationsContextHandle=void 0;const e=requireLog$1(),t=requireSafeJs(),n=requireSessionID(),o=requireStableID();return ClientInterfaces.PrecomputedEvaluationsContextHandle=class{constructor(e,t,n,o,i,r){this._sdkKey=e,this._getOptions=t,this._getErrorBoundary=n,this._getValues=o,this._getUser=i,this._getSdkInstanceID=r}get sdkKey(){return this._sdkKey}get options(){return this._getOptions()}get errorBoundary(){return this._getErrorBoundary()}get values(){return this._getValues()}get user(){let n=(0,t._cloneObject)("StatsigUser",this._getUser());return null==n&&(e.Log.error("Failed to clone user"),n={}),n}getSession(e=!0){return n.StatsigSession.get(this._sdkKey,e)}get stableID(){return o.StableID.get(this._sdkKey)}get sdkInstanceID(){return this._getSdkInstanceID()}toContext(e=!0){return{sdkKey:this.sdkKey,options:this.options,values:this.values,user:this.user,errorBoundary:this.errorBoundary,session:this.getSession(e),stableID:this.stableID,sdkInstanceID:this.sdkInstanceID}}},ClientInterfaces}var DataAdapterCore={},StatsigUser={},hasRequiredStatsigUser;function requireStatsigUser(){if(hasRequiredStatsigUser)return StatsigUser;hasRequiredStatsigUser=1,Object.defineProperty(StatsigUser,"__esModule",{value:!0}),StatsigUser._getUnitIDFromUser=StatsigUser._getFullUserHash=StatsigUser._normalizeUser=void 0;const e=requireHashing(),t=requireLog$1(),n=requireSafeJs();return StatsigUser._normalizeUser=function(e,o,i){const r=(0,n._cloneObject)("StatsigUser",e);return null==r?(t.Log.error("Failed to clone user"),{statsigEnvironment:void 0}):(null!=o&&null!=o.environment?r.statsigEnvironment=o.environment:null!=i&&(r.statsigEnvironment={tier:i}),r)},StatsigUser._getFullUserHash=function(t){return t?(0,e._DJB2Object)(t):null},StatsigUser._getUnitIDFromUser=function(e,t){var n,o,i;if("string"!=typeof t)return e.userID;const r=t.toLowerCase();return"userid"!==r?null!==(o=null===(n=e.customIDs)||void 0===n?void 0:n[t])&&void 0!==o?o:null===(i=e.customIDs)||void 0===i?void 0:i[r]:e.userID},StatsigUser}var TypedJsonParse={},hasRequiredTypedJsonParse,hasRequiredDataAdapterCore;function requireTypedJsonParse(){if(hasRequiredTypedJsonParse)return TypedJsonParse;hasRequiredTypedJsonParse=1,Object.defineProperty(TypedJsonParse,"__esModule",{value:!0}),TypedJsonParse._typedJsonParse=void 0;const e=requireLog$1();return TypedJsonParse._typedJsonParse=function(t,n,o){try{const e=JSON.parse(t);if(e&&"object"==typeof e&&n in e)return e}catch(i){}return e.Log.error(`Failed to parse ${o}`),null},TypedJsonParse}function requireDataAdapterCore(){if(hasRequiredDataAdapterCore)return DataAdapterCore;hasRequiredDataAdapterCore=1;var e=DataAdapterCore&&DataAdapterCore.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(DataAdapterCore,"__esModule",{value:!0}),DataAdapterCore._makeDataAdapterResult=DataAdapterCore.DataAdapterCore=void 0;const t=requireLog$1(),n=requireStableID(),o=requireStatsigUser(),i=requireStorageProvider(),r=requireTypedJsonParse();function a(e,t,n,i){return{source:e,data:t,receivedAt:Date.now(),stableID:n,fullUserHash:(0,o._getFullUserHash)(i)}}DataAdapterCore.DataAdapterCore=class{constructor(e,t){this._adapterName=e,this._cacheSuffix=t,this._options=null,this._sdkKey=null,this._cacheLimit=10,this._lastModifiedStoreKey=`statsig.last_modified_time.${t}`,this._inMemoryCache=new s}attach(e,t,n){this._sdkKey=e,this._options=t}getDataSync(e){const t=e&&(0,o._normalizeUser)(e,this._options),n=this._getCacheKey(t),i=this._inMemoryCache.get(n,t);if(i&&this._getIsCacheValueValid(i))return i;const r=this._loadFromCache(n);return r&&this._getIsCacheValueValid(r)?(this._inMemoryCache.add(n,r,this._cacheLimit),this._inMemoryCache.get(n,t)):null}setData(e,t){const n=t&&(0,o._normalizeUser)(t,this._options),i=this._getCacheKey(n);this._inMemoryCache.add(i,a("Bootstrap",e,null,n),this._cacheLimit)}_getIsCacheValueValid(e){return null==e.stableID||e.stableID===n.StableID.get(this._getSdkKey())}_getDataAsyncImpl(n,o,r){return e(this,void 0,void 0,function*(){i.Storage.isReady()||(yield i.Storage.isReadyResolver());const e=null!=n?n:this.getDataSync(o),a=[this._fetchAndPrepFromNetwork(e,o,r)];return(null==r?void 0:r.timeoutMs)&&a.push(new Promise(e=>setTimeout(e,r.timeoutMs)).then(()=>(t.Log.debug("Fetching latest value timed out"),null))),yield Promise.race(a)})}_prefetchDataImpl(t,n){return e(this,void 0,void 0,function*(){const e=t&&(0,o._normalizeUser)(t,this._options),i=this._getCacheKey(e),r=yield this._getDataAsyncImpl(null,e,n);r&&this._inMemoryCache.add(i,Object.assign(Object.assign({},r),{source:"Prefetch"}),this._cacheLimit)})}_fetchAndPrepFromNetwork(o,i,s){return e(this,void 0,void 0,function*(){var e;const l=null!==(e=null==o?void 0:o.data)&&void 0!==e?e:null,c=null!=o&&this._isCachedResultValidFor204(o,i),d=yield this._fetchFromNetwork(l,i,s,c);if(!d)return t.Log.debug("No response returned for latest value"),null;const p=(0,r._typedJsonParse)(d,"has_updates","Response"),u=this._getSdkKey(),m=n.StableID.get(u);let h=null;if(!0===(null==p?void 0:p.has_updates))h=a("Network",d,m,i);else{if(!l||!1!==(null==p?void 0:p.has_updates))return null;h=a("NetworkNotModified",l,m,i)}const g=this._getCacheKey(i);return this._inMemoryCache.add(g,h,this._cacheLimit),this._writeToCache(g,h),h})}_getSdkKey(){return null!=this._sdkKey?this._sdkKey:(t.Log.error(`${this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var t;const n=null===(t=i.Storage.getItem)||void 0===t?void 0:t.call(i.Storage,e);if(null==n)return null;const o=(0,r._typedJsonParse)(n,"source","Cached Result");return o?Object.assign(Object.assign({},o),{source:"Cache"}):null}_writeToCache(e,t){const n=JSON.stringify(t);for(let r=0;r<8;r++)try{i.Storage.setItem(e,n);break}catch(o){if(!(o instanceof Error)||!o.toString().includes("QuotaExceededError")&&!o.toString().includes("QUOTA_EXCEEDED_ERR")||this._cacheLimit<=1)throw o;this._cacheLimit=Math.ceil(this._cacheLimit/2),this._runLocalStorageCacheEviction(e,this._cacheLimit-1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this._cacheLimit){var n;const o=null!==(n=(0,i._getObjectFromStorage)(this._lastModifiedStoreKey))&&void 0!==n?n:{};o[e]=Date.now();const r=l(o,t);for(const a of r)delete o[a],i.Storage.removeItem(a);(0,i._setObjectInStorage)(this._lastModifiedStoreKey,o)}},DataAdapterCore._makeDataAdapterResult=a;class s{constructor(){this._data={}}get(e,n){var o;const i=this._data[e],r=null==i?void 0:i.stableID,a=null===(o=null==n?void 0:n.customIDs)||void 0===o?void 0:o.stableID;return a&&r&&a!==r?(t.Log.warn("'StatsigUser.customIDs.stableID' mismatch"),null):i}add(e,t,n){const o=l(this._data,n-1);for(const i of o)delete this._data[i];this._data[e]=t}merge(e){this._data=Object.assign(Object.assign({},this._data),e)}}function l(e,t){const n=Object.keys(e);return n.length<=t?[]:0===t?n:n.sort((t,n)=>{const o=e[t],i=e[n];return"object"==typeof o&&"object"==typeof i?o.receivedAt-i.receivedAt:o-i}).slice(0,n.length-t)}return DataAdapterCore}var DownloadConfigSpecsResponse={},hasRequiredDownloadConfigSpecsResponse;function requireDownloadConfigSpecsResponse(){return hasRequiredDownloadConfigSpecsResponse||(hasRequiredDownloadConfigSpecsResponse=1,Object.defineProperty(DownloadConfigSpecsResponse,"__esModule",{value:!0})),DownloadConfigSpecsResponse}var ErrorBoundary={},hasRequiredErrorBoundary;function requireErrorBoundary(){return hasRequiredErrorBoundary||(hasRequiredErrorBoundary=1,function(e){var t=ErrorBoundary&&ErrorBoundary.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=e.EXCEPTION_ENDPOINT=void 0;const n=requireLog$1(),o=requireSDKType(),i=requireStatsigMetadata();e.EXCEPTION_ENDPOINT="https://statsigapi.net/v1/sdk_exception";const r="[Statsig] UnknownError";function a(e){return e instanceof Error?e:"string"==typeof e?new Error(e):new Error("An unknown error occurred.")}function s(e){if(!e)return{};const t={};return Object.keys(e).forEach(n=>{const o=n,i=e[o];switch(typeof i){case"number":case"bigint":case"boolean":t[String(o)]=i;break;case"string":i.length<50?t[String(o)]=i:t[String(o)]="set";break;case"object":"environment"===o?t.environment=i:"networkConfig"===o?t.networkConfig=i:t[String(o)]=null!=i?"set":"unset"}}),t}e.ErrorBoundary=class{constructor(e,t,n,o){this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=o,this._seen=/* @__PURE__ */new Set}wrap(e,t){try{const n=e;(function(e){const t=/* @__PURE__ */new Set;let n=Object.getPrototypeOf(e);for(;n&&n!==Object.prototype;)Object.getOwnPropertyNames(n).filter(e=>"function"==typeof(null==n?void 0:n[e])).forEach(e=>t.add(e)),n=Object.getPrototypeOf(n);return Array.from(t)})(n).forEach(o=>{const i=n[o];"$EB"in i||(n[o]=(...n)=>this._capture(t?`${t}:${o}`:o,()=>i.apply(e,n)),n[o].$EB=!0)})}catch(n){this._onError("eb:wrap",n)}}logError(e,t){this._onError(e,t)}logDroppedEvents(e,t,n){const o={eventCount:String(e),reason:t};n&&Object.keys(n).forEach(e=>{o[e]=String(n[e])}),this._onError("statsig::log_event_dropped_event_count",new Error(t),!0,o)}logEventRequestFailure(e,t,n,o,i,r,a,s,l){const c={eventCount:String(e),flushType:n,statusCode:String(o),reason:t,retries:String(i)};r&&(c.failurePath=r),"string"==typeof a&&a.length>0&&(c.failureErrorMessage=a),"string"==typeof s&&s.length>0&&(c.failureDiagnosticBucket=s),l&&Object.keys(l).forEach(e=>{const t=l[e];t.length>0&&(c[`failureDiagnostic_${e}`]=t)}),this._onError("statsig::log_event_failed",new Error(t),!0,c)}getLastSeenErrorAndReset(){const e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?e:null}attachErrorIfNoneExists(e){this._lastSeenError||(this._lastSeenError=a(e))}_capture(e,t){try{const n=t();return n&&n instanceof Promise?n.catch(t=>this._onError(e,t)):n}catch(n){return this._onError(e,n),null}}_onError(l,c,d=!1,p){try{n.Log.warn(`Caught error in ${l}`,{error:c});(()=>t(this,void 0,void 0,function*(){var t,n,u,m,h,g,x;const f=c||Error(r),y=f instanceof Error,S=y?f.name:"No Name",C=a(f);if(this._lastSeenError=C,!d&&this._seen.has(S))return;if(this._seen.add(S),null===(n=null===(t=this._options)||void 0===t?void 0:t.networkConfig)||void 0===n?void 0:n.preventAllNetworkTraffic)return void(null===(u=this._emitter)||void 0===u||u.call(this,{name:"error",error:c,tag:l}));const $=o.SDKType._get(this._sdkKey),b=i.StatsigMetadataProvider.get(),v=y?f.stack:function(e){try{return JSON.stringify(e)}catch(t){return r}}(f),E=Object.assign(Object.assign({tag:l,exception:S,info:v,statsigOptions:s(this._options)},Object.assign(Object.assign({},b),{sdkType:$})),null!=p?p:{}),w=null===(m=this._options)||void 0===m?void 0:m.networkConfig,R=null!==(h=null==w?void 0:w.networkOverrideFunc)&&void 0!==h?h:fetch;yield R(null!==(g=null==w?void 0:w.sdkExceptionUrl)&&void 0!==g?g:e.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String($),"STATSIG-SDK-VERSION":String(b.sdkVersion),"Content-Type":"application/json"},body:JSON.stringify(E)}),null===(x=this._emitter)||void 0===x||x.call(this,{name:"error",error:c,tag:l})}))().then(()=>{}).catch(()=>{})}catch(u){}}}}(ErrorBoundary)),ErrorBoundary}var EvaluationOptions={},hasRequiredEvaluationOptions;function requireEvaluationOptions(){return hasRequiredEvaluationOptions||(hasRequiredEvaluationOptions=1,Object.defineProperty(EvaluationOptions,"__esModule",{value:!0})),EvaluationOptions}var EvaluationTypes={},hasRequiredEvaluationTypes;function requireEvaluationTypes(){return hasRequiredEvaluationTypes||(hasRequiredEvaluationTypes=1,Object.defineProperty(EvaluationTypes,"__esModule",{value:!0})),EvaluationTypes}var InitializeResponse={},hasRequiredInitializeResponse;function requireInitializeResponse(){return hasRequiredInitializeResponse||(hasRequiredInitializeResponse=1,Object.defineProperty(InitializeResponse,"__esModule",{value:!0})),InitializeResponse}var MemoKey={},hasRequiredMemoKey;function requireMemoKey(){if(hasRequiredMemoKey)return MemoKey;hasRequiredMemoKey=1,Object.defineProperty(MemoKey,"__esModule",{value:!0}),MemoKey.createMemoKey=MemoKey.MemoPrefix=void 0,MemoKey.MemoPrefix={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_layer:"l",_paramStore:"p"};const e=/* @__PURE__ */new Set([]),t=/* @__PURE__ */new Set(["userPersistedValues"]);return MemoKey.createMemoKey=function(n,o,i){let r=`${n}|${o}`;if(!i)return r;for(const a of Object.keys(i)){if(t.has(a))return;e.has(a)?r+=`|${a}=true`:r+=`|${a}=${i[a]}`}return r},MemoKey}var OverrideAdapter={},hasRequiredOverrideAdapter;function requireOverrideAdapter(){return hasRequiredOverrideAdapter||(hasRequiredOverrideAdapter=1,Object.defineProperty(OverrideAdapter,"__esModule",{value:!0})),OverrideAdapter}var ParamStoreTypes={},hasRequiredParamStoreTypes;function requireParamStoreTypes(){return hasRequiredParamStoreTypes||(hasRequiredParamStoreTypes=1,Object.defineProperty(ParamStoreTypes,"__esModule",{value:!0})),ParamStoreTypes}var SizeOf={},hasRequiredSizeOf;function requireSizeOf(){return hasRequiredSizeOf||(hasRequiredSizeOf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._fastApproxSizeOf=void 0;e._fastApproxSizeOf=(t,n)=>{let o=0;const i=Object.keys(t);for(let r=0;r<i.length;r++){const a=i[r],s=t[a];if(o+=a.length,o+="object"==typeof s&&null!==s?(0,e._fastApproxSizeOf)(s,n)+2:String(s).length+1,o>=n)return o}return o}}(SizeOf)),SizeOf}var StatsigClientBase={},hasRequiredStatsigClientBase;function requireStatsigClientBase(){if(hasRequiredStatsigClientBase)return StatsigClientBase;hasRequiredStatsigClientBase=1;var e=StatsigClientBase&&StatsigClientBase.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigClientBase,"__esModule",{value:!0}),StatsigClientBase.StatsigClientBase=void 0,require$_StatsigGlobal();const t=require$_StatsigGlobal(),n=requireErrorBoundary(),o=requireEventLogger(),i=requireLog$1(),r=requireMemoKey(),a=requireSafeJs(),s=requireSessionID(),l=requireStableID(),c=requireStatsigOptionsCommon(),d=requireStorageProvider();return StatsigClientBase.StatsigClientBase=class{constructor(e,r,c,p){var u,m,h,g;this.loadingStatus="Uninitialized",this._initializePromise=null,this._listeners={};const x=this.$emt.bind(this);null!=(null==p?void 0:p.logLevel)&&(i.Log.level=p.logLevel),(null==p?void 0:p.disableStorage)&&d.Storage._setDisabled(!0),(null==p?void 0:p.initialSessionID)&&s.StatsigSession.overrideInitialSessionID(p.initialSessionID,e),(null==p?void 0:p.storageProvider)&&d.Storage._setProvider(p.storageProvider),(null==p?void 0:p.enableCookies)&&l.StableID._setCookiesEnabled(e,p.enableCookies),(null==p?void 0:p.disableStableID)&&l.StableID._setDisabled(e,!0),this._sdkKey=e,this._options=null!=p?p:{},this._memoCache={},this.overrideAdapter=null!==(u=null==p?void 0:p.overrideAdapter)&&void 0!==u?u:null,this._errorBoundary=new n.ErrorBoundary(e,p,x),this._logger=new o.EventLogger(e,x,c,p,this._errorBoundary),this._errorBoundary.wrap(this),this._errorBoundary.wrap(r),this._errorBoundary.wrap(this._logger),c.setErrorBoundary(this._errorBoundary),this.dataAdapter=r,this.dataAdapter.attach(e,p,c),this.storageProvider=d.Storage,null===(g=null===(h=null===(m=this.overrideAdapter)||void 0===m?void 0:m.loadFromStorage)||void 0===h?void 0:h.call(m))||void 0===g||g.catch(e=>this._errorBoundary.logError("OA::loadFromStorage",e)),this._primeReadyRipcord(),function(e,n){var o;if((0,a._isServerEnv)())return;const r=(0,t._getStatsigGlobal)(),s=null!==(o=r.instances)&&void 0!==o?o:{},l=n;null!=s[e]&&i.Log.warn("Creating multiple Statsig clients with the same SDK key can lead to unexpected behavior. Multi-instance support requires different SDK keys.");s[e]=l,r.firstInstance||(r.firstInstance=l);r.instances=s,__STATSIG__=r}(e,this)}updateRuntimeOptions(e){e.loggingEnabled?(this._options.loggingEnabled=e.loggingEnabled,this._logger.setLoggingEnabled(e.loggingEnabled)):null!=e.disableLogging&&(this._options.disableLogging=e.disableLogging,this._logger.setLoggingEnabled(e.disableLogging?"disabled":"browser-only")),null!=e.disableStorage&&(this._options.disableStorage=e.disableStorage,d.Storage._setDisabled(e.disableStorage)),null!=e.enableCookies&&(this._options.enableCookies=e.enableCookies,l.StableID._setCookiesEnabled(this._sdkKey,e.enableCookies)),e.logEventCompressionMode?this._logger.setLogEventCompressionMode(e.logEventCompressionMode):e.disableCompression&&this._logger.setLogEventCompressionMode(c.LogEventCompressionMode.Disabled)}flush(){return this._logger.flush()}shutdown(){return e(this,void 0,void 0,function*(){this.$emt({name:"pre_shutdown"}),this._setStatus("Uninitialized",null),this._initializePromise=null,yield this._logger.stop()})}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){if(this._listeners[e]){const n=this._listeners[e].indexOf(t);-1!==n&&this._listeners[e].splice(n,1)}}$on(e,t){t.__isInternal=!0,this.on(e,t)}$emt(e){var t;const n=t=>{try{t(e)}catch(n){if(!0===t.__isInternal)return void this._errorBoundary.logError(`__emit:${e.name}`,n);i.Log.error("An error occurred in a StatsigClientEvent listener. This is not an issue with Statsig.",e)}};this._listeners[e.name]&&this._listeners[e.name].forEach(e=>n(e)),null===(t=this._listeners["*"])||void 0===t||t.forEach(n)}_setStatus(e,t){this.loadingStatus=e,this._memoCache={},this.$emt({name:"values_updated",status:e,values:t})}_enqueueExposure(e,t,n){!0!==(null==n?void 0:n.disableExposureLog)?this._logger.enqueue(t):this._logger.incrementNonExposureCount(e)}_memoize(e,t){return(n,o)=>{if(this._options.disableEvaluationMemoization)return t(n,o);const i=(0,r.createMemoKey)(e,n,o);return i?(i in this._memoCache||(Object.keys(this._memoCache).length>=3e3&&(this._memoCache={}),this._memoCache[i]=t(n,o)),this._memoCache[i]):t(n,o)}}},StatsigClientBase}var StatsigDataAdapter={},hasRequiredStatsigDataAdapter;function requireStatsigDataAdapter(){return hasRequiredStatsigDataAdapter||(hasRequiredStatsigDataAdapter=1,Object.defineProperty(StatsigDataAdapter,"__esModule",{value:!0}),StatsigDataAdapter.DataAdapterCachePrefix=void 0,StatsigDataAdapter.DataAdapterCachePrefix="statsig.cached"),StatsigDataAdapter}var StatsigPlugin={},hasRequiredStatsigPlugin;function requireStatsigPlugin(){return hasRequiredStatsigPlugin||(hasRequiredStatsigPlugin=1,Object.defineProperty(StatsigPlugin,"__esModule",{value:!0})),StatsigPlugin}var StatsigTypeFactories={},hasRequiredStatsigTypeFactories;function requireStatsigTypeFactories(){if(hasRequiredStatsigTypeFactories)return StatsigTypeFactories;hasRequiredStatsigTypeFactories=1,Object.defineProperty(StatsigTypeFactories,"__esModule",{value:!0}),StatsigTypeFactories._makeTypedGet=StatsigTypeFactories._mergeOverride=StatsigTypeFactories._makeLayer=StatsigTypeFactories._makeExperiment=StatsigTypeFactories._makeDynamicConfig=StatsigTypeFactories._makeFeatureGate=void 0;const e=requireLog$1(),t=requireTypingUtils();function n(e,t,n,o){var i;return{name:e,details:t,ruleID:null!==(i=null==n?void 0:n.rule_id)&&void 0!==i?i:"",__evaluation:n,value:o}}function o(e,t,o){var r,a;const s=null!==(r=null==o?void 0:o.value)&&void 0!==r?r:{};return Object.assign(Object.assign({},n(e,t,o,s)),{idType:null!==(a=null==o?void 0:o.id_type)&&void 0!==a?a:null,get:i(e,null==o?void 0:o.value)})}function i(n,o,i){return(r,a)=>{var s;const l=null!==(s=null==o?void 0:o[r])&&void 0!==s?s:null;return null==l?null!=a?a:null:null==a||(0,t._isTypeMatch)(l,a)?(null==i||i(r),l):(e.Log.warn(`Parameter type mismatch. '${n}.${r}' was found to be type '${typeof l}' but fallback/return type is '${typeof a}'. See https://docs.statsig.com/client/javascript-sdk/#typed-getters`),null!=a?a:null)}}return StatsigTypeFactories._makeFeatureGate=function(e,t,o){var i;return Object.assign(Object.assign({},n(e,t,o,!0===(null==o?void 0:o.value))),{idType:null!==(i=null==o?void 0:o.id_type)&&void 0!==i?i:null})},StatsigTypeFactories._makeDynamicConfig=o,StatsigTypeFactories._makeExperiment=function(e,t,n){var i;const r=o(e,t,n);return Object.assign(Object.assign({},r),{groupName:null!==(i=null==n?void 0:n.group_name)&&void 0!==i?i:null})},StatsigTypeFactories._makeLayer=function(e,t,o,r){var a,s;return Object.assign(Object.assign({},n(e,t,o,void 0)),{get:i(e,null==o?void 0:o.value,r),groupName:null!==(a=null==o?void 0:o.group_name)&&void 0!==a?a:null,__value:null!==(s=null==o?void 0:o.value)&&void 0!==s?s:{}})},StatsigTypeFactories._mergeOverride=function(e,t,n,o){return Object.assign(Object.assign(Object.assign({},e),t),{get:i(e.name,n,o)})},StatsigTypeFactories._makeTypedGet=i,StatsigTypeFactories}var StatsigTypes={},hasRequiredStatsigTypes;function requireStatsigTypes(){return hasRequiredStatsigTypes||(hasRequiredStatsigTypes=1,Object.defineProperty(StatsigTypes,"__esModule",{value:!0})),StatsigTypes}var StatsigUpdateDetails={},hasRequiredStatsigUpdateDetails,hasRequiredSrc$2;function requireStatsigUpdateDetails(){if(hasRequiredStatsigUpdateDetails)return StatsigUpdateDetails;hasRequiredStatsigUpdateDetails=1,Object.defineProperty(StatsigUpdateDetails,"__esModule",{value:!0}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES=StatsigUpdateDetails.createUpdateDetails=void 0;return StatsigUpdateDetails.createUpdateDetails=(e,t,n,o,i,r)=>({duration:n,source:t,success:e,error:o,sourceUrl:i,warnings:r}),StatsigUpdateDetails.UPDATE_DETAIL_ERROR_MESSAGES={NO_NETWORK_DATA:"No data was returned from the network. This may be due to a network timeout if a timeout value was specified in the options or ad blocker error."},StatsigUpdateDetails}function requireSrc$2(){return hasRequiredSrc$2||(hasRequiredSrc$2=1,function(e){var t=src$1&&src$1.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src$1&&src$1.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Storage=e.Log=e.EventLogger=e.Diagnostics=void 0,require$_StatsigGlobal();const o=require$_StatsigGlobal(),i=requireDiagnostics();Object.defineProperty(e,"Diagnostics",{enumerable:!0,get:function(){return i.Diagnostics}});const r=requireEventLogger();Object.defineProperty(e,"EventLogger",{enumerable:!0,get:function(){return r.EventLogger}});const a=requireLog$1();Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return a.Log}});const s=requireStatsigMetadata(),l=requireStorageProvider();Object.defineProperty(e,"Storage",{enumerable:!0,get:function(){return l.Storage}}),n(require$_StatsigGlobal(),e),n(requireCacheKey(),e),n(requireClientInterfaces(),e),n(requireDataAdapterCore(),e),n(requireDiagnostics(),e),n(requireDownloadConfigSpecsResponse(),e),n(requireErrorBoundary(),e),n(requireEvaluationOptions(),e),n(requireEvaluationTypes(),e),n(requireHashing(),e),n(requireInitializeResponse(),e),n(requireLog$1(),e),n(requireMemoKey(),e),n(requireNetworkConfig(),e),n(requireNetworkCore(),e),n(requireOverrideAdapter(),e),n(requireParamStoreTypes(),e),n(requireSafeJs(),e),n(requireSDKType(),e),n(requireSessionID(),e),n(requireSizeOf(),e),n(requireStableID(),e),n(requireStatsigClientBase(),e),n(requireStatsigClientEventEmitter(),e),n(requireStatsigDataAdapter(),e),n(requireStatsigEvent(),e),n(requireStatsigMetadata(),e),n(requireStatsigOptionsCommon(),e),n(requireStatsigPlugin(),e),n(requireStatsigTypeFactories(),e),n(requireStatsigTypes(),e),n(requireStatsigUser(),e),n(requireStorageProvider(),e),n(requireTypedJsonParse(),e),n(requireTypingUtils(),e),n(requireUrlConfiguration(),e),n(requireUUID(),e),n(requireVisibilityObserving(),e),n(requireStatsigUpdateDetails(),e),n(requireSDKFlags(),e),Object.assign((0,o._getStatsigGlobal)(),{Log:a.Log,SDK_VERSION:s.SDK_VERSION})}(src$1)),src$1}var StatsigContext={},NoopEvaluationsClient={},hasRequiredNoopEvaluationsClient,hasRequiredStatsigContext;function requireNoopEvaluationsClient(){if(hasRequiredNoopEvaluationsClient)return NoopEvaluationsClient;hasRequiredNoopEvaluationsClient=1,Object.defineProperty(NoopEvaluationsClient,"__esModule",{value:!0}),NoopEvaluationsClient.isNoopClient=NoopEvaluationsClient.NoopEvaluationsClient=void 0;const e=requireSrc$2(),t={success:!1,error:Error("NoClient"),duration:0,source:"Uninitialized",sourceUrl:null},n=()=>{},o=()=>t,i=()=>Promise.resolve(),r=()=>Promise.resolve(t),a={reason:"Error:NoClient"},s=t=>(...n)=>{const o="string"==typeof n[0]?n[0]:n[1];switch(t){case"gate":return(0,e._makeFeatureGate)(o,a,null);case"config":return(0,e._makeDynamicConfig)(o,a,null);case"layer":return(0,e._makeLayer)(o,a,null);case"param_store":return{name:o}}},l={attach:n,getDataSync:()=>null,getDataAsync:()=>Promise.resolve(null),setData:n,setDataLegacy:n,prefetchData:i},c={sdkKey:"",options:{},values:null,user:{userID:""},errorBoundary:{},session:{data:{sessionID:"",startTime:0,lastUpdate:0},sdkKey:"",lastPersistedAt:0,storageKey:""},stableID:"",storageProvider:e.Storage,sdkInstanceID:""},d=new e.PrecomputedEvaluationsContextHandle("",()=>({}),()=>({}),()=>null,()=>({userID:""}),()=>""),p={isNoop:!0,loadingStatus:"Uninitialized",initializeSync:o,initializeAsync:r,shutdown:i,flush:i,updateRuntimeOptions:n,updateUserSync:o,updateUserAsync:r,getContext:()=>Object.assign({},c),getContextHandle:()=>d,checkGate:()=>!1,getFeatureGate:s("gate"),getDynamicConfig:s("config"),getExperiment:s("config"),getLayer:s("layer"),getParameterStore:s("param_store"),logEvent:n,on:n,off:n,$on:n,$emt:n,dataAdapter:l};return NoopEvaluationsClient.NoopEvaluationsClient=p,NoopEvaluationsClient.isNoopClient=function(e){return"isNoop"in e},NoopEvaluationsClient}function requireStatsigContext(){if(hasRequiredStatsigContext)return StatsigContext;hasRequiredStatsigContext=1,Object.defineProperty(StatsigContext,"__esModule",{value:!0});const e=React__default,t=requireNoopEvaluationsClient();return StatsigContext.default=(0,e.createContext)({renderVersion:0,client:t.NoopEvaluationsClient,isLoading:!0}),StatsigContext}var StatsigProvider={},useClientAsyncInit={},src={},StatsigClient={},EvaluationStore={},V1InitializeContainer={},hasRequiredV1InitializeContainer;function requireV1InitializeContainer(){if(hasRequiredV1InitializeContainer)return V1InitializeContainer;hasRequiredV1InitializeContainer=1,Object.defineProperty(V1InitializeContainer,"__esModule",{value:!0}),V1InitializeContainer.V1InitializeContainer=void 0;const e=requireSrc$2();return V1InitializeContainer.V1InitializeContainer=class{constructor(e){this._values=e}getGate(e){return this._getResultFromLookup(this._values.feature_gates,e)}getConfig(e){return this._getResultFromLookup(this._values.dynamic_configs,e)}getLayer(e){return this._getResultFromLookup(this._values.layer_configs,e)}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(t,n){var o,i;return t&&null!==(i=null!==(o=t[n])&&void 0!==o?o:t[(0,e._DJB2)(n)])&&void 0!==i?i:null}},V1InitializeContainer}var V2InitializeContainer={},hasRequiredV2InitializeContainer,hasRequiredEvaluationStore;function requireV2InitializeContainer(){if(hasRequiredV2InitializeContainer)return V2InitializeContainer;hasRequiredV2InitializeContainer=1,Object.defineProperty(V2InitializeContainer,"__esModule",{value:!0}),V2InitializeContainer.V2InitializeContainer=void 0;const e=requireSrc$2();return V2InitializeContainer.V2InitializeContainer=class{constructor(e){this._values=e}getGate(e){var t,n,o;const i=this._getResultFromLookup(this._values.feature_gates,e);return i?{name:e,value:!0===i.v,rule_id:null!==(t=i.r)&&void 0!==t?t:"default",secondary_exposures:null!==(n=i.s)&&void 0!==n?n:[],id_type:null!==(o=i.i)&&void 0!==o?o:""}:null}getConfig(e){var t,n,o,i;const r=this._getResultFromLookup(this._values.dynamic_configs,e);return r?{name:e,value:null!==(t=this._values.values[r.v])&&void 0!==t?t:{},rule_id:r.r,secondary_exposures:null!==(n=r.s)&&void 0!==n?n:[],id_type:null!==(o=r.i)&&void 0!==o?o:"",is_user_in_experiment:!0===r.ue,passed:!0===r.p,group_name:null!==(i=r.gn)&&void 0!==i?i:void 0,is_experiment_active:!0===r.ea,group:r.r,is_device_based:"stableID"===r.i}:null}getLayer(e){var t,n,o,i,r,a;const s=this._getResultFromLookup(this._values.layer_configs,e);return s?{name:e,value:null!==(t=this._values.values[s.v])&&void 0!==t?t:{},rule_id:s.r,secondary_exposures:null!==(n=s.s)&&void 0!==n?n:[],is_user_in_experiment:!0===s.ue,group_name:null!==(o=s.gn)&&void 0!==o?o:void 0,is_experiment_active:!0===s.ea,group:s.r,is_device_based:"stableID"===s.i,allocated_experiment_name:null!==(i=s.ae)&&void 0!==i?i:"",explicit_parameters:null!==(r=s.ep)&&void 0!==r?r:[],undelegated_secondary_exposures:null!==(a=s.us)&&void 0!==a?a:[],parameter_rule_ids:s.pr}:null}getParamStore(e){return this._getResultFromLookup(this._values.param_stores,e)}getConfigList(){return Object.keys(this._values.dynamic_configs)}getExposureMapping(){return this._values.exposures}_getResultFromLookup(t,n){var o,i;return t&&null!==(i=null!==(o=t[n])&&void 0!==o?o:t[(0,e._DJB2)(n)])&&void 0!==i?i:null}},V2InitializeContainer}function requireEvaluationStore(){if(hasRequiredEvaluationStore)return EvaluationStore;hasRequiredEvaluationStore=1,Object.defineProperty(EvaluationStore,"__esModule",{value:!0});const e=requireSrc$2(),t=requireV1InitializeContainer(),n=requireV2InitializeContainer();return EvaluationStore.default=class{constructor(e,t){this._sdkKey=e,this._options=t,this._valuesForExternalUse=null,this._values=null,this._source="Uninitialized",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings=/* @__PURE__ */new Set}reset(){this._values=null,this._valuesForExternalUse=null,this._source="Loading",this._lcut=0,this._receivedAt=0,this._bootstrapMetadata=null,this._warnings.clear()}finalize(){this._values||(this._source="NoValues")}getValues(){return this._valuesForExternalUse}setValues(o,i){var r,a;if(!o)return!1;const s=(0,e._typedJsonParse)(o.data,"has_updates","EvaluationResponse");if(null==s)return!1;if(this._source=o.source,!0!==(null==s?void 0:s.has_updates))return!0;return(null!==(r=s.time)&&void 0!==r?r:0)<this._lcut||(this._valuesForExternalUse=(0,e._typedJsonParse)(o.data,"has_updates","EvaluationResponse"),this._lcut=s.time,this._receivedAt=o.receivedAt,"init-v2"===s.response_format?this._values=new n.V2InitializeContainer(s):this._values=new t.V1InitializeContainer(s),this._bootstrapMetadata=this._extractBootstrapMetadata(o.source,s),o.source&&s.user&&this._setWarningState(i,s),e.SDKFlags.setFlags(this._sdkKey,null!==(a=s.sdk_flags)&&void 0!==a?a:{})),!0}getWarnings(){if(0!==this._warnings.size)return Array.from(this._warnings)}getGate(e){const t=this._values?this._values.getGate(e):null;return this._getDetailedStoreResult(t)}getConfig(e){const t=this._values?this._values.getConfig(e):null;return this._getDetailedStoreResult(t)}getConfigList(){return this._values?this._values.getConfigList():[]}getLayer(e){const t=this._values?this._values.getLayer(e):null;return this._getDetailedStoreResult(t)}getParamStore(e){const t=this._values?this._values.getParamStore(e):null;return this._getDetailedStoreResult(t)}getSource(){return this._source}getExposureMapping(){var e;return null===(e=this._values)||void 0===e?void 0:e.getExposureMapping()}_extractBootstrapMetadata(e,t){if("Bootstrap"!==e)return null;const n={};return t.user&&(n.user=t.user),t.sdkInfo&&(n.generatorSDKInfo=t.sdkInfo),n.lcut=t.time,n}_getDetailedStoreResult(e){return{result:e,details:this._getDetails(null==e)}}_setWarningState(t,n){var o,i,r;const a=e.StableID.get(this._sdkKey);if((null===(o=t.customIDs)||void 0===o?void 0:o.stableID)===a||!(null===(i=t.customIDs)||void 0===i?void 0:i.stableID)&&!a){if("user"in n){let o=n.user,i=Object.assign(Object.assign({},t),{analyticsOnlyMetadata:void 0,privateAttributes:void 0});(null===(r=this._options)||void 0===r?void 0:r.disableStableID)&&(i=Object.assign(Object.assign({},i),{customIDs:Object.assign(Object.assign({},i.customIDs),{stableID:void 0})}),o=Object.assign(Object.assign({},o),{customIDs:Object.assign(Object.assign({},o.customIDs),{stableID:void 0})})),(0,e._getFullUserHash)(i)!==(0,e._getFullUserHash)(o)&&this._warnings.add("PartialUserMatch")}}else this._warnings.add("StableIDMismatch")}getCurrentSourceDetails(){if("Uninitialized"===this._source||"NoValues"===this._source)return{reason:this._source};const e={reason:this._source,lcut:this._lcut,receivedAt:this._receivedAt};return this._warnings.size>0&&(e.warnings=Array.from(this._warnings)),e}_getDetails(e){var t,n;const o=this.getCurrentSourceDetails();let i=o.reason;const r=null!==(t=o.warnings)&&void 0!==t?t:[];if("Bootstrap"===this._source&&r.length>0&&(i+=r[0]),"Uninitialized"!==i&&"NoValues"!==i){i=`${i}:${e?"Unrecognized":"Recognized"}`}const a="Bootstrap"===this._source&&null!==(n=this._bootstrapMetadata)&&void 0!==n?n:void 0;return a&&(o.bootstrapMetadata=a),Object.assign(Object.assign({},o),{reason:i})}},EvaluationStore}var Network={},EvaluationResponseDeltas={},hasRequiredEvaluationResponseDeltas,hasRequiredNetwork;function requireEvaluationResponseDeltas(){if(hasRequiredEvaluationResponseDeltas)return EvaluationResponseDeltas;hasRequiredEvaluationResponseDeltas=1,Object.defineProperty(EvaluationResponseDeltas,"__esModule",{value:!0}),EvaluationResponseDeltas._resolveDeltasResponse=void 0;const e=requireSrc$2();function t(e,t){null==e||e.forEach(e=>{delete t[e]})}return EvaluationResponseDeltas._resolveDeltasResponse=function(n,o){const i=(0,e._typedJsonParse)(o,"checksum","DeltasEvaluationResponse");if(!i)return{hadBadDeltaChecksum:!0};const r=function(e){const n=e;return t(e.deleted_gates,n.feature_gates),delete n.deleted_gates,t(e.deleted_configs,n.dynamic_configs),delete n.deleted_configs,t(e.deleted_layers,n.layer_configs),delete n.deleted_layers,n}(function(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{feature_gates:Object.assign(Object.assign({},e.feature_gates),t.feature_gates),layer_configs:Object.assign(Object.assign({},e.layer_configs),t.layer_configs),dynamic_configs:Object.assign(Object.assign({},e.dynamic_configs),t.dynamic_configs)})}(n,i)),a=(0,e._DJB2Object)({feature_gates:r.feature_gates,dynamic_configs:r.dynamic_configs,layer_configs:r.layer_configs},2);return a===i.checksumV2?JSON.stringify(r):{hadBadDeltaChecksum:!0,badChecksum:a,badMergedConfigs:r,badFullResponse:i.deltas_full_response}},EvaluationResponseDeltas}function requireNetwork(){if(hasRequiredNetwork)return Network;hasRequiredNetwork=1;var e=Network&&Network.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(Network,"__esModule",{value:!0});const t=requireSrc$2(),n=requireEvaluationResponseDeltas();class o extends t.NetworkCore{constructor(e,n){super(e,n);const o=null==e?void 0:e.networkConfig;this._option=e,this._initializeUrlConfig=new t.UrlConfiguration(t.Endpoint._initialize,null==o?void 0:o.initializeUrl,null==o?void 0:o.api,null==o?void 0:o.initializeFallbackUrls)}fetchEvaluations(n,o,i,r,a){return e(this,void 0,void 0,function*(){var e,s,l,c,d,p;const u=o?(0,t._typedJsonParse)(o,"has_updates","InitializeResponse"):null;let m={user:r,hash:null!==(l=null===(s=null===(e=this._option)||void 0===e?void 0:e.networkConfig)||void 0===s?void 0:s.initializeHashAlgorithm)&&void 0!==l?l:"djb2",deltasResponseRequested:!1,full_checksum:null};if(null==u?void 0:u.has_updates){const e=(null==u?void 0:u.hash_used)!==(null!==(p=null===(d=null===(c=this._option)||void 0===c?void 0:c.networkConfig)||void 0===d?void 0:d.initializeHashAlgorithm)&&void 0!==p?p:"djb2");m=Object.assign(Object.assign({},m),{sinceTime:a&&!e?u.time:0,previousDerivedFields:"derived_fields"in u&&a?u.derived_fields:{},deltasResponseRequested:!0,full_checksum:u.full_checksum,partialUserMatchSinceTime:e?0:u.time})}return this._fetchEvaluations(n,u,m,i)})}_fetchEvaluations(t,o,i,r){return e(this,void 0,void 0,function*(){var e,a;const s=yield this.post({sdkKey:t,urlConfig:this._initializeUrlConfig,data:i,retries:2,isStatsigEncodable:!0,priority:r});if(204===(null==s?void 0:s.code))return'{"has_updates": false}';if(200!==(null==s?void 0:s.code))return null!==(e=null==s?void 0:s.body)&&void 0!==e?e:null;if(!0!==(null==o?void 0:o.has_updates)||!0!==(null===(a=s.body)||void 0===a?void 0:a.includes('"is_delta":true'))||!0!==i.deltasResponseRequested)return s.body;const l=(0,n._resolveDeltasResponse)(o,s.body);return"string"==typeof l?l:this._fetchEvaluations(t,o,Object.assign(Object.assign(Object.assign({},i),l),{deltasResponseRequested:!1}),r)})}}return Network.default=o,Network}var ParamStoreGetterFactory={},hasRequiredParamStoreGetterFactory;function requireParamStoreGetterFactory(){if(hasRequiredParamStoreGetterFactory)return ParamStoreGetterFactory;hasRequiredParamStoreGetterFactory=1,Object.defineProperty(ParamStoreGetterFactory,"__esModule",{value:!0}),ParamStoreGetterFactory._makeParamStoreGetter=void 0;const e=requireSrc$2(),t={disableExposureLog:!0};function n(e){return null==e||!1===e.disableExposureLog}function o(t,n){return null!=n&&!(0,e._isTypeMatch)(t,n)}return ParamStoreGetterFactory._makeParamStoreGetter=function(i,r,a){return(s,l)=>{if(null==r)return l;const c=r[s];if(null==c||null!=l&&(0,e._typeOf)(l)!==c.param_type)return l;switch(c.ref_type){case"static":return function(e){return e.value}(c);case"gate":return function(e,o,i){return e.getFeatureGate(o.gate_name,n(i)?void 0:t).value?o.pass_value:o.fail_value}(i,c,a);case"dynamic_config":return function(e,i,r,a){const s=e.getDynamicConfig(i.config_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);case"experiment":return function(e,i,r,a){const s=e.getExperiment(i.experiment_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);case"layer":return function(e,i,r,a){const s=e.getLayer(i.layer_name,n(a)?void 0:t).get(i.param_name);return o(s,r)?r:s}(i,c,l,a);default:return l}}},ParamStoreGetterFactory}var StatsigEvaluationsDataAdapter={},hasRequiredStatsigEvaluationsDataAdapter,hasRequiredStatsigClient,hasRequiredSrc$1;function requireStatsigEvaluationsDataAdapter(){if(hasRequiredStatsigEvaluationsDataAdapter)return StatsigEvaluationsDataAdapter;hasRequiredStatsigEvaluationsDataAdapter=1;var e=StatsigEvaluationsDataAdapter&&StatsigEvaluationsDataAdapter.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigEvaluationsDataAdapter,"__esModule",{value:!0}),StatsigEvaluationsDataAdapter.StatsigEvaluationsDataAdapter=void 0;const t=requireSrc$2(),n=requireNetwork();let o=class extends t.DataAdapterCore{constructor(){super("EvaluationsDataAdapter","evaluations"),this._network=null,this._options=null}attach(e,t,o){super.attach(e,t,o),null!==o&&o instanceof n.default?this._network=o:this._network=new n.default(null!=t?t:{})}getDataAsync(e,n,o){return this._getDataAsyncImpl(e,(0,t._normalizeUser)(n,this._options),o)}prefetchData(e,t){return this._prefetchDataImpl(e,t)}setData(e){const n=(0,t._typedJsonParse)(e,"has_updates","data");n&&"user"in n?super.setData(e,n.user):t.Log.error("StatsigUser not found. You may be using an older server SDK version. Please upgrade your SDK or use setDataLegacy.")}setDataLegacy(e,t){super.setData(e,t)}_fetchFromNetwork(t,n,o,i){return e(this,void 0,void 0,function*(){var e;const r=yield null===(e=this._network)||void 0===e?void 0:e.fetchEvaluations(this._getSdkKey(),t,null==o?void 0:o.priority,n,i);return null!=r?r:null})}_getCacheKey(e){var n;const o=(0,t._getStorageKey)(this._getSdkKey(),e,null===(n=this._options)||void 0===n?void 0:n.customUserCacheKeyFunc);return`${t.DataAdapterCachePrefix}.${this._cacheSuffix}.${o}`}_isCachedResultValidFor204(e,n){return null!=e.fullUserHash&&e.fullUserHash===(0,t._getFullUserHash)(n)}};return StatsigEvaluationsDataAdapter.StatsigEvaluationsDataAdapter=o,StatsigEvaluationsDataAdapter}function requireStatsigClient(){if(hasRequiredStatsigClient)return StatsigClient;hasRequiredStatsigClient=1;var e=StatsigClient&&StatsigClient.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function a(e){try{l(o.next(e))}catch(t){r(t)}}function s(e){try{l(o.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})};Object.defineProperty(StatsigClient,"__esModule",{value:!0});const t=requireSrc$2(),n=requireEvaluationStore(),o=requireNetwork(),i=requireParamStoreGetterFactory(),r=requireStatsigEvaluationsDataAdapter();let a=class a extends t.StatsigClientBase{static instance(e){const n=(0,t._getStatsigGlobal)().instance(e);return n instanceof a?n:(t.Log.warn((0,t._isServerEnv)()?"StatsigClient.instance is not supported in server environments":"Unable to find StatsigClient instance"),new a(null!=e?e:"",{}))}constructor(e,i,a=null){var s,l;t.SDKType._setClientType(e,"javascript-client");const c=new o.default(a,e=>{this.$emt(e)});super(e,null!==(s=null==a?void 0:a.dataAdapter)&&void 0!==s?s:new r.StatsigEvaluationsDataAdapter,c,a),this._possibleFirstTouchMetadata={},this.getFeatureGate=this._memoize(t.MemoPrefix._gate,this._getFeatureGateImpl.bind(this)),this.getDynamicConfig=this._memoize(t.MemoPrefix._dynamicConfig,this._getDynamicConfigImpl.bind(this)),this.getExperiment=this._memoize(t.MemoPrefix._experiment,this._getExperimentImpl.bind(this)),this.getConfigList=this._memoize(t.MemoPrefix._configList,this._getConfigListImpl.bind(this)),this.getLayer=this._memoize(t.MemoPrefix._layer,this._getLayerImpl.bind(this)),this.getParameterStore=this._memoize(t.MemoPrefix._paramStore,this._getParameterStoreImpl.bind(this)),this._store=new n.default(e,null!=a?a:null),this._network=c,this._user=this._configureUser(i,a),this._sdkInstanceID=(0,t.getUUID)(),this._contextHandle=new t.PrecomputedEvaluationsContextHandle(e,()=>this._options,()=>this._errorBoundary,()=>this._store.getValues(),()=>this._user,()=>this._sdkInstanceID);const d=null!==(l=null==a?void 0:a.plugins)&&void 0!==l?l:[];for(const t of d)t.bind(this)}initializeSync(e){var n;return"Uninitialized"!==this.loadingStatus?(0,t.createUpdateDetails)(!0,this._store.getSource(),-1,null,null,["MultipleInitializations",...null!==(n=this._store.getWarnings())&&void 0!==n?n:[]]):(this._logger.start(),this.updateUserSync(this._user,e))}initializeAsync(t){return e(this,void 0,void 0,function*(){return this._initializePromise||(this._initializePromise=this._initializeAsyncImpl(t)),this._initializePromise})}updateUserSync(e,t){const n=performance.now();try{return this._updateUserSyncImpl(e,t,n)}catch(o){const e=o instanceof Error?o:new Error(String(o));return this._createErrorUpdateDetails(e,n)}}_updateUserSyncImpl(e,n,o){var i;const r=[...null!==(i=this._store.getWarnings())&&void 0!==i?i:[]];this._resetForUser(e);const a=this.dataAdapter.getDataSync(this._user);null==a&&r.push("NoCachedValues"),this._store.setValues(a,this._user),this._finalizeUpdate(a);const s=null==n?void 0:n.disableBackgroundCacheRefresh;return!0===s||null==s&&"Bootstrap"===(null==a?void 0:a.source)||this._runPostUpdate(null!=a?a:null,this._user),(0,t.createUpdateDetails)(!0,this._store.getSource(),performance.now()-o,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),r)}updateUserAsync(t,n){return e(this,void 0,void 0,function*(){const e=performance.now();try{return yield this._updateUserAsyncImpl(t,n)}catch(o){const t=o instanceof Error?o:new Error(String(o));return this._createErrorUpdateDetails(t,e)}})}_updateUserAsyncImpl(n,o){return e(this,void 0,void 0,function*(){this._resetForUser(n);const e=this._user;t.Diagnostics._markInitOverallStart(this._sdkKey);let i=this.dataAdapter.getDataSync(e);if(this._store.setValues(i,this._user),this._setStatus("Loading",i),i=yield this.dataAdapter.getDataAsync(i,e,o),e!==this._user)return(0,t.createUpdateDetails)(!1,this._store.getSource(),-1,new Error("User changed during update"),this._network.getLastUsedInitUrlAndReset());let r=!1;null!=i&&(t.Diagnostics._markInitProcessStart(this._sdkKey),r=this._store.setValues(i,this._user),t.Diagnostics._markInitProcessEnd(this._sdkKey,{success:r})),this._finalizeUpdate(i),r||(this._errorBoundary.attachErrorIfNoneExists(t.UPDATE_DETAIL_ERROR_MESSAGES.NO_NETWORK_DATA),this.$emt({name:"initialization_failure"})),t.Diagnostics._markInitOverallEnd(this._sdkKey,r,this._store.getCurrentSourceDetails());const a=t.Diagnostics._enqueueDiagnosticsEvent(this._user,this._logger,this._sdkKey,this._options);return(0,t.createUpdateDetails)(r,this._store.getSource(),a,this._errorBoundary.getLastSeenErrorAndReset(),this._network.getLastUsedInitUrlAndReset(),this._store.getWarnings())})}getContext(){let e=(0,t._cloneObject)("StatsigUser",this._user);return null==e&&(t.Log.error("Failed to clone user"),e={}),{sdkKey:this._sdkKey,options:this._options,values:this._store.getValues(),user:e,errorBoundary:this._errorBoundary,session:t.StatsigSession.get(this._sdkKey),stableID:t.StableID.get(this._sdkKey),sdkInstanceID:this._sdkInstanceID}}getContextHandle(){return this._contextHandle}checkGate(e,t){return this.getFeatureGate(e,t).value}logEvent(e,t,n){const o="string"==typeof e?{eventName:e,value:t,metadata:n}:e;this.$emt({name:"log_event_called",event:o}),this._logger.enqueue(Object.assign(Object.assign({},o),{user:this._user,time:Date.now()}))}updateUserWithAnalyticsOnlyMetadata(e){this._user=this._configureUser(Object.assign(Object.assign({},this._user),{analyticsOnlyMetadata:e}),this._options)}_primeReadyRipcord(){this.$on("error",()=>{"Loading"===this.loadingStatus&&this._finalizeUpdate(null)})}_initializeAsyncImpl(n){return e(this,void 0,void 0,function*(){return t.Storage.isReady()||(yield t.Storage.isReadyResolver()),this._logger.start(),this.updateUserAsync(this._user,n)})}_createErrorUpdateDetails(e,n){var o;return(0,t.createUpdateDetails)(!1,this._store.getSource(),performance.now()-n,e,null,[...null!==(o=this._store.getWarnings())&&void 0!==o?o:[]])}_finalizeUpdate(e){this._store.finalize(),this._setStatus("Ready",e)}_runPostUpdate(e,n){this.dataAdapter.getDataAsync(e,n,{priority:"low"}).catch(e=>{t.Log.error("An error occurred after update.",e)})}_resetForUser(e){this._logger.reset(),this._store.reset(),this._user=this._configureUser(e,this._options)}_configureUser(e,n){var o,i,r;const a=(0,t._normalizeUser)(e,n),s=null===(o=a.customIDs)||void 0===o?void 0:o.stableID;if(s){const e=null===(r=(i=this.storageProvider).isReadyResolver)||void 0===r?void 0:r.call(i);e?e.then(()=>t.StableID.setOverride(s,this._sdkKey),()=>t.StableID.setOverride(s,this._sdkKey)):t.StableID.setOverride(s,this._sdkKey)}return Object.keys(this._possibleFirstTouchMetadata).length>0&&(a.analyticsOnlyMetadata=Object.assign(Object.assign({},a.analyticsOnlyMetadata),this._possibleFirstTouchMetadata)),a}_getFeatureGateImpl(e,n){var o,i;const{result:r,details:a}=this._store.getGate(e);this._checkUserHasIdForEvaluation(null==r?void 0:r.id_type,e,"Gate"),this._checkInitializationStatus(a.reason);const s=(0,t._makeFeatureGate)(e,a,r),l=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getGateOverride)||void 0===i?void 0:i.call(o,s,this._user,n),c=null!=l?l:s;return this._enqueueExposure(e,(0,t._createGateExposure)(this._user,c,this._store.getExposureMapping()),n),this.$emt({name:"gate_evaluation",gate:c}),c}_getDynamicConfigImpl(e,n){var o,i;const{result:r,details:a}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==r?void 0:r.id_type,e,"Dynamic config"),this._checkInitializationStatus(a.reason);const s=(0,t._makeDynamicConfig)(e,a,r),l=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getDynamicConfigOverride)||void 0===i?void 0:i.call(o,s,this._user,n),c=null!=l?l:s;return this._enqueueExposure(e,(0,t._createConfigExposure)(this._user,c,this._store.getExposureMapping()),n),this.$emt({name:"dynamic_config_evaluation",dynamicConfig:c}),c}_getExperimentImpl(e,n){var o,i,r,a;const{result:s,details:l}=this._store.getConfig(e);this._checkUserHasIdForEvaluation(null==s?void 0:s.id_type,e,"Experiment"),this._checkInitializationStatus(l.reason);const c=(0,t._makeExperiment)(e,l,s);null!=c.__evaluation&&(c.__evaluation.secondary_exposures=(0,t._mapExposures)(null!==(i=null===(o=c.__evaluation)||void 0===o?void 0:o.secondary_exposures)&&void 0!==i?i:[],this._store.getExposureMapping()));const d=null===(a=null===(r=this.overrideAdapter)||void 0===r?void 0:r.getExperimentOverride)||void 0===a?void 0:a.call(r,c,this._user,n),p=null!=d?d:c;return this._enqueueExposure(e,(0,t._createConfigExposure)(this._user,p,this._store.getExposureMapping()),n),this.$emt({name:"experiment_evaluation",experiment:p}),p}_getConfigListImpl(){return this._store.getConfigList()}_getLayerImpl(e,n){var o,i,r;const{result:a,details:s}=this._store.getLayer(e),l=(0,t._makeLayer)(e,s,a),c=null===(i=null===(o=this.overrideAdapter)||void 0===o?void 0:o.getLayerOverride)||void 0===i?void 0:i.call(o,l,this._user,n);(null==n?void 0:n.disableExposureLog)&&this._logger.incrementNonExposureCount(e);const d=(0,t._mergeOverride)(l,c,null!==(r=null==c?void 0:c.__value)&&void 0!==r?r:l.__value,o=>{(null==n?void 0:n.disableExposureLog)||this._enqueueExposure(e,(0,t._createLayerParameterExposure)(this._user,d,o,this._store.getExposureMapping()),n)});return this.$emt({name:"layer_evaluation",layer:d}),d}_getParameterStoreImpl(e,t){var n,o;const{result:r,details:a}=this._store.getParamStore(e);this._logger.incrementNonExposureCount(e);const s={name:e,details:a,__configuration:r,get:(0,i._makeParamStoreGetter)(this,r,t)},l=null===(o=null===(n=this.overrideAdapter)||void 0===n?void 0:n.getParamStoreOverride)||void 0===o?void 0:o.call(n,s,t);return null!=l&&(s.__configuration=l.config,s.details=l.details,s.get=(0,i._makeParamStoreGetter)(this,l.config,t)),s}_checkUserHasIdForEvaluation(e,n,o){e&&((0,t._getUnitIDFromUser)(this._user,e)||t.Log.warn(`The user does not have the required id_type "${e}" for ${o} "${n}"`))}_checkInitializationStatus(e){("Uninitialized"===e||e.startsWith("Loading"))&&t.Log.warn(`SDK initialization has not completed. Reason: ${e}`)}};return StatsigClient.default=a,StatsigClient}function requireSrc$1(){return hasRequiredSrc$1||(hasRequiredSrc$1=1,function(e){var t=src&&src.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src&&src.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.StatsigClient=void 0;const o=requireSrc$2(),i=requireStatsigClient();e.StatsigClient=i.default,n(requireSrc$2(),e);const r=Object.assign((0,o._getStatsigGlobal)(),{StatsigClient:i.default});e.default=r}(src)),src}var useStatsigInternalClientFactoryAsync={},hasRequiredUseStatsigInternalClientFactoryAsync,hasRequiredUseClientAsyncInit,hasRequiredStatsigProvider;function requireUseStatsigInternalClientFactoryAsync(){if(hasRequiredUseStatsigInternalClientFactoryAsync)return useStatsigInternalClientFactoryAsync;hasRequiredUseStatsigInternalClientFactoryAsync=1,Object.defineProperty(useStatsigInternalClientFactoryAsync,"__esModule",{value:!0}),useStatsigInternalClientFactoryAsync.useStatsigInternalClientFactoryAsync=void 0;const e=React__default,t=requireSrc$2();return useStatsigInternalClientFactoryAsync.useStatsigInternalClientFactoryAsync=function(n,o){const i=(0,e.useMemo)(()=>{var e;return null!==(e=(0,t._getInstance)(o.sdkKey))&&void 0!==e?e:n(o)},[]),[r,a]=(0,e.useState)("Ready"!==i.loadingStatus);return(0,e.useMemo)(()=>{"Ready"!==i.loadingStatus&&i.initializeAsync().catch(t.Log.error).finally(()=>a(!1))},[]),{client:i,isLoading:r}},useStatsigInternalClientFactoryAsync}function requireUseClientAsyncInit(){if(hasRequiredUseClientAsyncInit)return useClientAsyncInit;hasRequiredUseClientAsyncInit=1,Object.defineProperty(useClientAsyncInit,"__esModule",{value:!0}),useClientAsyncInit.useClientAsyncInit=void 0;const e=requireSrc$1(),t=requireUseStatsigInternalClientFactoryAsync();return useClientAsyncInit.useClientAsyncInit=function(n,o,i=null){return(0,t.useStatsigInternalClientFactoryAsync)(t=>new e.StatsigClient(t.sdkKey,t.initialUser,t.statsigOptions),{sdkKey:n,initialUser:o,statsigOptions:i})},useClientAsyncInit}function requireStatsigProvider(){if(hasRequiredStatsigProvider)return StatsigProvider;hasRequiredStatsigProvider=1,Object.defineProperty(StatsigProvider,"__esModule",{value:!0}),StatsigProvider.StatsigProvider=void 0;const e=requireJsxRuntime(),t=React__default,n=requireSrc$2(),o=requireStatsigContext(),i=requireUseClientAsyncInit();function r(n){const[r,a]=(0,t.useState)(0),c=(0,i.useClientAsyncInit)(n.sdkKey,n.user,n.options).client,[d,p]=(0,t.useState)(!l(c));s(c,a,p);const u=(0,t.useMemo)(()=>({renderVersion:r,client:c,isLoading:d}),[r,c,d]);return(0,e.jsx)(o.default.Provider,{value:u,children:null!=n.loadingComponent&&u.isLoading?n.loadingComponent:n.children})}function a(n){const[i,r]=(0,t.useState)(0),a=n.client,[c,d]=(0,t.useState)(!l(a));s(a,r,d);const p=(0,t.useMemo)(()=>({renderVersion:i,client:a,isLoading:c}),[i,a,c]);return(0,e.jsx)(o.default.Provider,{value:p,children:null!=n.loadingComponent&&p.isLoading?n.loadingComponent:n.children})}function s(e,o,i){(0,t.useEffect)(()=>{const t=()=>{o(e=>e+1),i(!l(e))};return n.SDKType._setBindingType("react"),e.$on("values_updated",t),()=>{e.flush().catch(e=>n.Log.error("An error occurred during flush",e)),e.off("values_updated",t)}},[e,o])}function l(e){return"isNoop"in e||"Ready"===e.loadingStatus}return StatsigProvider.StatsigProvider=function(t){return"client"in t?(("sdkKey"in t||"user"in t)&&n.Log.warn("Both client and configuration props (sdkKey, user) were provided to StatsigProvider. The client prop will be used and the configuration props will be ignored."),(0,e.jsx)(a,Object.assign({},t))):(0,e.jsx)(r,Object.assign({},t))},StatsigProvider}var useClientBootstrapInit={},useStatsigInternalClientFactoryBootstrap={},hasRequiredUseStatsigInternalClientFactoryBootstrap,hasRequiredUseClientBootstrapInit;function requireUseStatsigInternalClientFactoryBootstrap(){if(hasRequiredUseStatsigInternalClientFactoryBootstrap)return useStatsigInternalClientFactoryBootstrap;hasRequiredUseStatsigInternalClientFactoryBootstrap=1,Object.defineProperty(useStatsigInternalClientFactoryBootstrap,"__esModule",{value:!0}),useStatsigInternalClientFactoryBootstrap.useStatsigInternalClientFactoryBootstrap=void 0;const e=React__default,t=requireSrc$2();return useStatsigInternalClientFactoryBootstrap.useStatsigInternalClientFactoryBootstrap=function(n,o){const i=(0,e.useRef)((0,t._getInstance)(o.sdkKey));return(0,e.useMemo)(()=>{if(i.current)return i.current;const e=n(o);return i.current=e,o.useLegacyFormat?e.dataAdapter.setDataLegacy(o.initialValues,o.initialUser):e.dataAdapter.setData(o.initialValues),e.initializeSync(),e},[])},useStatsigInternalClientFactoryBootstrap}function requireUseClientBootstrapInit(){if(hasRequiredUseClientBootstrapInit)return useClientBootstrapInit;hasRequiredUseClientBootstrapInit=1,Object.defineProperty(useClientBootstrapInit,"__esModule",{value:!0}),useClientBootstrapInit.useClientBootstrapInit=void 0;const e=requireSrc$1(),t=requireUseStatsigInternalClientFactoryBootstrap();return useClientBootstrapInit.useClientBootstrapInit=function(n,o,i,r=null,a){return(0,t.useStatsigInternalClientFactoryBootstrap)(t=>new e.StatsigClient(t.sdkKey,t.initialUser,t.statsigOptions),{sdkKey:n,initialUser:o,initialValues:i,statsigOptions:r,useLegacyFormat:a})},useClientBootstrapInit}var useDynamicConfig={},hasRequiredUseDynamicConfig;function requireUseDynamicConfig(){if(hasRequiredUseDynamicConfig)return useDynamicConfig;hasRequiredUseDynamicConfig=1,Object.defineProperty(useDynamicConfig,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useDynamicConfig.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useDynamicConfig hook failed to find a valid StatsigClient for dynamic config '${i}'.`),n.NoopEvaluationsClient.getDynamicConfig(i,r)):a.getDynamicConfig(i,r),[i,a,s,...r?Object.values(r):[]])},useDynamicConfig}var useExperiment={},hasRequiredUseExperiment;function requireUseExperiment(){if(hasRequiredUseExperiment)return useExperiment;hasRequiredUseExperiment=1,Object.defineProperty(useExperiment,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useExperiment.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useExperiment hook failed to find a valid Statsig client for experiment '${i}'.`),n.NoopEvaluationsClient.getExperiment(i,r)):a.getExperiment(i,r),[i,a,s,...r?Object.values(r):[]])},useExperiment}var useFeatureGate={},hasRequiredUseFeatureGate;function requireUseFeatureGate(){if(hasRequiredUseFeatureGate)return useFeatureGate;hasRequiredUseFeatureGate=1,Object.defineProperty(useFeatureGate,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useFeatureGate.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useFeatureGate hook failed to find a valid StatsigClient for gate '${i}'.`),n.NoopEvaluationsClient.getFeatureGate(i,r)):a.getFeatureGate(i,r),[i,a,s,...r?Object.values(r):[]])},useFeatureGate}var useGateValue={},hasRequiredUseGateValue;function requireUseGateValue(){if(hasRequiredUseGateValue)return useGateValue;hasRequiredUseGateValue=1,Object.defineProperty(useGateValue,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useGateValue.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useGateValue hook failed to find a valid StatsigClient for gate '${i}'.`),n.NoopEvaluationsClient.checkGate(i,r)):a.checkGate(i,r),[i,a,s,...r?Object.values(r):[]])},useGateValue}var useLayer={},hasRequiredUseLayer;function requireUseLayer(){if(hasRequiredUseLayer)return useLayer;hasRequiredUseLayer=1,Object.defineProperty(useLayer,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useLayer.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useLayer hook failed to find a valid Statsig client for layer '${i}'.`),n.NoopEvaluationsClient.getLayer(i,r)):a.getLayer(i,r),[i,a,s,...r?Object.values(r):[]])},useLayer}var useParameterStore={},hasRequiredUseParameterStore;function requireUseParameterStore(){if(hasRequiredUseParameterStore)return useParameterStore;hasRequiredUseParameterStore=1,Object.defineProperty(useParameterStore,"__esModule",{value:!0});const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useParameterStore.default=function(i,r){const{client:a,renderVersion:s}=(0,e.useContext)(o.default);return(0,e.useMemo)(()=>(0,n.isNoopClient)(a)?(t.Log.warn(`useParameterStore hook failed to find a valid StatsigClient for parameter store '${i}'.`),n.NoopEvaluationsClient.getParameterStore(i,r)):a.getParameterStore(i,r),[i,a,s,...r?Object.values(r):[]])},useParameterStore}var useStatsigClient={},hasRequiredUseStatsigClient;function requireUseStatsigClient(){if(hasRequiredUseStatsigClient)return useStatsigClient;hasRequiredUseStatsigClient=1,Object.defineProperty(useStatsigClient,"__esModule",{value:!0}),useStatsigClient.useStatsigClient=void 0;const e=React__default,t=requireSrc$2(),n=requireNoopEvaluationsClient(),o=requireStatsigContext();return useStatsigClient.useStatsigClient=function(){const{client:i,renderVersion:r,isLoading:a}=(0,e.useContext)(o.default),s=(0,e.useMemo)(()=>(0,n.isNoopClient)(i)?(t.Log.warn("Attempting to retrieve a StatsigClient but none was set."),n.NoopEvaluationsClient):i,[i,r]),l=[s,r],c=(0,e.useCallback)((e,t)=>s.checkGate(e,t),l),d=(0,e.useCallback)((e,t)=>s.getFeatureGate(e,t),l),p=(0,e.useCallback)((e,t)=>s.getDynamicConfig(e,t),l),u=(0,e.useCallback)((e,t)=>s.getExperiment(e,t),l),m=(0,e.useCallback)((e,t)=>s.getLayer(e,t),l),h=(0,e.useCallback)((e,t)=>s.getParameterStore(e,t),l),g=(0,e.useCallback)((e,t,n)=>"string"==typeof e?s.logEvent(e,t,n):s.logEvent(e),l);return(0,e.useMemo)(()=>({client:s,checkGate:c,getFeatureGate:d,getDynamicConfig:p,getExperiment:u,getLayer:m,getParameterStore:h,logEvent:g,isLoading:a}),[s,c,d,p,u,m,h,g,a])},useStatsigClient}var useStatsigUser={},hasRequiredUseStatsigUser,hasRequiredSrc;function requireUseStatsigUser(){if(hasRequiredUseStatsigUser)return useStatsigUser;hasRequiredUseStatsigUser=1,Object.defineProperty(useStatsigUser,"__esModule",{value:!0}),useStatsigUser.useStatsigUser=void 0;const e=React__default,t=requireStatsigContext(),n=requireUseStatsigClient();function o(e){return e.getContextHandle().user}return useStatsigUser.useStatsigUser=function(){const{client:i}=(0,n.useStatsigClient)(),{renderVersion:r}=(0,e.useContext)(t.default);return{user:(0,e.useMemo)(()=>o(i),[i,r]),updateUserSync:(0,e.useCallback)(e=>("function"==typeof e&&(e=e(o(i))),i.updateUserSync(e)),[i]),updateUserAsync:(0,e.useCallback)(e=>("function"==typeof e&&(e=e(o(i))),i.updateUserAsync(e)),[i])}},useStatsigUser}function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,function(e){var t=src$2&&src$2.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=src$2&&src$2.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.useStatsigUser=e.useStatsigInternalClientFactoryBootstrap=e.useStatsigInternalClientFactoryAsync=e.useStatsigClient=e.useParameterStore=e.useLayer=e.useGateValue=e.useFeatureGate=e.useExperiment=e.useDynamicConfig=e.useClientBootstrapInit=e.useClientAsyncInit=e.StatsigProvider=e.StatsigContext=void 0;const o=requireSrc$2(),i=requireStatsigContext();e.StatsigContext=i.default;const r=requireStatsigProvider();Object.defineProperty(e,"StatsigProvider",{enumerable:!0,get:function(){return r.StatsigProvider}});const a=requireUseClientAsyncInit();Object.defineProperty(e,"useClientAsyncInit",{enumerable:!0,get:function(){return a.useClientAsyncInit}});const s=requireUseClientBootstrapInit();Object.defineProperty(e,"useClientBootstrapInit",{enumerable:!0,get:function(){return s.useClientBootstrapInit}});const l=requireUseDynamicConfig();e.useDynamicConfig=l.default;const c=requireUseExperiment();e.useExperiment=c.default;const d=requireUseFeatureGate();e.useFeatureGate=d.default;const p=requireUseGateValue();e.useGateValue=p.default;const u=requireUseLayer();e.useLayer=u.default;const m=requireUseParameterStore();e.useParameterStore=m.default;const h=requireUseStatsigClient();Object.defineProperty(e,"useStatsigClient",{enumerable:!0,get:function(){return h.useStatsigClient}});const g=requireUseStatsigInternalClientFactoryAsync();Object.defineProperty(e,"useStatsigInternalClientFactoryAsync",{enumerable:!0,get:function(){return g.useStatsigInternalClientFactoryAsync}});const x=requireUseStatsigInternalClientFactoryBootstrap();Object.defineProperty(e,"useStatsigInternalClientFactoryBootstrap",{enumerable:!0,get:function(){return x.useStatsigInternalClientFactoryBootstrap}});const f=requireUseStatsigUser();Object.defineProperty(e,"useStatsigUser",{enumerable:!0,get:function(){return f.useStatsigUser}}),n(requireSrc$1(),e),Object.assign((0,o._getStatsigGlobal)(),{StatsigContext:i.default,StatsigProvider:r.StatsigProvider,useClientAsyncInit:a.useClientAsyncInit,useClientBootstrapInit:s.useClientBootstrapInit,useDynamicConfig:l.default,useExperiment:c.default,useFeatureGate:d.default,useGateValue:p.default,useLayer:u.default,useParameterStore:m.default,useStatsigClient:h.useStatsigClient,useStatsigInternalClientFactoryAsync:g.useStatsigInternalClientFactoryAsync,useStatsigInternalClientFactoryBootstrap:x.useStatsigInternalClientFactoryBootstrap,useStatsigUser:f.useStatsigUser})}(src$2)),src$2}var srcExports=requireSrc(),FeatureGatesNamesCockpit=/* @__PURE__ */(e=>(e.enableZeniGPTFeatureForMonthEndEmail="zeni_gpt_for_month_end_email_enabled",e.isBirdsEyeViewEnabled="is_birds_eye_view_enabled",e.isReviewTabVendorColumnEnabled="review_vendor_column_enabled",e.enableSendingMonthEndEmail="sending_month_end_email_enabled",e))(FeatureGatesNamesCockpit||{}),FeatureGatesNamesWebApp=/* @__PURE__ */(e=>(e.isVendorMagicLinkFeatureEnabled="is_vendor_magic_link_feature_enabled",e.billPaySetupShowInternationalPaymentByWise="bill_pay_setup_show_international_payment_by_wise",e.isDepositAccountsFeatureEnabled="is_deposit_accounts_feature_enabled",e.isLimitedCategoryForReimbursement="is_limited_category_for_reimbursements_enabled",e.isBillPayLocalCurrencyFeatureEnabled="is_bill_pay_local_currency_feature_enabled",e.isOpexByVendorFeatureEnabled="is_opex_by_vendor_feature_enabled",e.isInternationalPaymentShaVsOurFeatureEnabled="is_international_sha_vs_our_feature_enabled",e.isApAgingFeatureEnabled="is_ap_aging_feature_enabled",e.isArAgingFeatureEnabled="is_ar_aging_feature_enabled",e.isChargeCardFeatureEnabled="is_charge_card_feature_enabled",e.isEarlyPayFeatureEnabled="is_early_pay_feature_enabled",e.isVendorReviewFeatureEnabled="is_vendor_review_feature_enabled",e.isVendorRecommendationFeatureEnabled="is_vendor_recommendation_feature_enabled",e.isShowDeletedBillsFeatureEnabled="is_show_deleted_bills_feature_enabled",e.isShowDeletedReimbursementsFeatureEnabled="is_show_deleted_reimbursements_feature_enabled",e.isRecurringBillsFeatureEnabled="is_recurring_bills_feature_enabled",e.isScheduledJEPrepaidExpensesFeatureEnabled="is_scheduled_je_prepaid_expenses_feature_enabled",e.isScheduledJEFixedAssetsFeatureEnabled="is_scheduled_je_fixed_assets_feature_enabled",e.isScheduledJEAccruedExpensesFeatureEnabled="is_scheduled_je_accrued_expenses_feature_enabled",e.isReferralFeatureEnabled="is_referral_feature_enabled",e.isSettingsFeatureEnabled="is_settings_feature_enabled",e.isVendorBulkUpdateOnTransactionEnabled="is_vendor_bulk_update_on_transaction_enabled",e.isCashbackFeatureEnabled="is_cashback_feature_enabled",e.isBillPayBulkActionEnabled="is_bill_pay_bulk_action_enabled",e.isFiling1099FeatureEnabled="is_filing_1099_feature_enabled",e.isReimbursementBulkActionEnabled="is_reimbursement_bulk_action_enabled",e.isExpenseAutomationEnabled="is_expense_automation_enabled",e.isRevenueAutomationEnabled="is_revenue_automation_enabled",e.isIssuePhysicalCardEnabled="is_issue_physical_card_enabled",e.isTaskTemplatesEnabled="is_task_templates_enabled",e.isTaskManagerCustomerUserAccessEnabled="is_task_manager_customer_user_access_enabled",e.isShaDisabled="is_sha_disabled",e.isOurDisabled="is_our_disabled",e.isBillPayDetectInsufficientFundsEnabled="is_bill_pay_detect_insufficient_funds_enabled",e.isExpenseAutomationEnabledV2="is_expense_automation_enabled_v2",e.isDebitCardFeatureEnabled="is_debit_card_feature_enabled",e.isRealtimeInsightsFeatureEnabled="is_realtime_insights_feature_enabled",e.isTreasuryEnabled="is_treasury_enabled",e.isInvoicingFeatureEnabled="is_invoicing_feature_enabled",e.isChainOfThoughtEnabled="is_chain_of_thought_enabled",e.isRecommendationFeedbackEnabled="is_recommendation_feedback_enabled",e.isDashboardSidebarHalloweenAnimationEnabled="is_dashboard_sidebar_halloween_animation_enabled",e.isDashboardSidebarThanksGivingAnimationEnabled="is_dashboard_sidebar_thanksgiving_animation_enabled",e.isDashboardSidebarChristmasAnimationEnabled="is_dashboard_sidebar_christmas_animation_enabled",e.isDashboardSidebarNewYearAnimationEnabled="is_dashboard_sidebar_new_year_animation_enabled",e.isExpenseAutomationSearchAndFilterEnabled="is_expense_automation_search_and_filter_enabled",e.isChargeCardPaymentHistoryFeatureEnabled="is_charge_card_payment_history_feature_enabled",e.isIssuePhysicalDebitCardEnabled="is_issue_physical_debit_card_enabled",e.isAutoTransferRuleEnabled="is_auto_transfer_rule_enabled",e.isMissingReceiptsBulkUploadEnabled="is_missing_receipts_bulk_upload_enabled",e.isAiCfoFileUploadEnabled="is_ai_cfo_file_upload_enabled",e.isAiCfoAnswerExportEnabled="is_ai_cfo_answer_export_enabled",e.isAiCfoDiscoveryTipsEnabled="is_ai_cfo_discovery_tips_enabled",e.isAiCfoNavButtonEnabled="is_ai_cfo_nav_button_enabled",e.isTransactionDetailSplitViewEnabled="is_transaction_detail_split_view_enabled",e.isServiceWorkerPrefetchingEnabled="is_prefetching_enabled",e.isTransactionActivityEnabled="is_transaction_activity_enabled",e.isCreateTransferEntryFromExpenseEnabled="is_create_transfer_entry_from_expense_enabled",e.isReportsHorizontalClassLayoutSwitchEnabled="is_reports_horizontal_class_layout_switch_enabled",e.isAiCfoEnabled="is_ai_cfo_enabled",e.isProjectsTransactionsEnabled="is_projects_transactions_enabled",e.isAiCardCreationEnabled="is_ai_card_creation_enabled",e.isCardPolicyEnabled="is_card_policy_enabled",e.isTaskManagerNotificationControlsEnabled="is_task_manager_notification_controls_enabled",e.isTaskSnoozeEnabled="is_task_snooze_enabled",e.isTaskVisibilityEnabled="is_task_visibility_enabled",e.isTaskCannedResponsesEnabled="is_task_canned_responses_enabled",e.isTaskCategorizationEnabled="is_task_categorization_enabled",e.isTaskBulkResolutionEnabled="is_task_bulk_resolution_enabled",e.isTaskAssigneeSortingEnabled="is_task_assignee_sorting_enabled",e.isTaskRecurringParentEnabled="is_task_recurring_parent_enabled",e.isTaskGroupAssigneesEnabled="is_task_group_assignees_enabled",e.aiAuditScorePercentage="ai_audit_score_percentage",e.isReconV3Enabled="is_reconciliation_v3_enabled",e.isReconciliationCombinedStatementEnabled="is_reconciliation_combined_statement_enabled",e.isReconReportEnabled="is_recon_report_enabled",e.isTransactionSplitEnabled="transaction_split_enabled",e.isAccrualEnabled="is_accrual_enabled",e))(FeatureGatesNamesWebApp||{});const FeatureGatesNames={...FeatureGatesNamesCockpit,...FeatureGatesNamesWebApp},CONFIG_SYNC_INTERVAL_MS=18e5;Object.values(FeatureGatesNames),Object.values(DynamicConfigNames);const useZeniFeatureGate=e=>{try{return{isFeatureGateLoading:!1,isFeatureEnabled:srcExports.useFeatureGate(e).value}}catch{return{isFeatureGateLoading:!1,isFeatureEnabled:!1}}},useZeniDynamicConfig=e=>{const t=srcExports.useDynamicConfig(e);try{return{isDynamicConfigLoading:!1,configValue:t.value}}catch{return{isDynamicConfigLoading:!1,configValue:{}}}},ZeniFeatureProvider=({featureGateCustomFields:e,zeniFeatureProviderConfig:t,children:n})=>{const o=useMemo(()=>({...null!=e.userId?{userID:e.userId}:{},...null!=e.userEmail?{email:e.userEmail}:{},custom:{company_id:e.companyId??"",connected_account_provider:e.connectedAccountProvider??""}}),[e.companyId,e.connectedAccountProvider,e.userEmail,e.userId]),i={networkConfig:{api:t.providerEndPoint,initializeUrl:`${t.providerEndPoint}/initialize`},environment:{tier:t.currentFeatureEnv},disableLogging:!0},{client:r,isLoading:a}=srcExports.useClientAsyncInit(t.featureClientSecret,o,i);return useEffect(()=>{null!=r&&!1===a&&r.updateUserAsync(o)},[r,o,a]),useEffect(()=>{if(null==r||a)return;const e=setInterval(()=>{r.updateUserAsync(o).catch(e=>{console.warn("[Statsig] Config refresh failed.",e)})},CONFIG_SYNC_INTERVAL_MS);return()=>clearInterval(e)},[r,o,a]),a?/* @__PURE__ */jsxRuntimeExports.jsx(InitializationComponent,{}):/* @__PURE__ */jsxRuntimeExports.jsx(srcExports.StatsigProvider,{client:r,children:n},e.companyId)},BusyContainer$i=styled$2.div`
|
|
2288
2288
|
background-color: ${e=>e.theme.colors.background};
|
|
2289
2289
|
height: 100vh;
|
|
2290
2290
|
width: 100%;
|
|
@@ -2292,7 +2292,7 @@ return jsxRuntimeExports.jsxs(AiCfoOnboardingPageContainer,{windowSize:u,style:o
|
|
|
2292
2292
|
flex-direction: row;
|
|
2293
2293
|
justify-content: center;
|
|
2294
2294
|
align-items: center;
|
|
2295
|
-
`,InitializationComponent=()=>/* @__PURE__ */jsxRuntimeExports.jsx(BusyContainer$i,{children:/* @__PURE__ */jsxRuntimeExports.jsx(ActivityIndicator,{start:!0,size:"ExtraLarge"})}),useDefaultFeatureGate=e=>(noop$8(e),{isFeatureGateLoading:!1,isFeatureEnabled:!1}),useDefaultDynamicConfig=e=>(noop$8(e),{isDynamicConfigLoading:!1,configValue:{}}),FeatureContext=createContext({useFeatureGate:useDefaultFeatureGate,useDynamicConfig:useDefaultDynamicConfig}),FeatureProvider=e=>{const{featureGateCustomFields:t,zeniFeatureConfig:n,isUserSignedIn:o}=e;return o?/* @__PURE__ */jsxRuntimeExports.jsx(ZeniFeatureProvider,{featureGateCustomFields:t,zeniFeatureProviderConfig:n,children:/* @__PURE__ */jsxRuntimeExports.jsx(FeatureContext.Provider,{value:{useFeatureGate:useZeniFeatureGate,useDynamicConfig:useZeniDynamicConfig},children:e.children})}):/* @__PURE__ */jsxRuntimeExports.jsx(FeatureContext.Provider,{value:{useFeatureGate:useDefaultFeatureGate,useDynamicConfig:useDefaultDynamicConfig},children:e.children})},useZeniFeatureContext=()=>useContext(FeatureContext),SECTION_WIDTH_FULL_VIEW_LARGE_PX=760,AI_CFO_SECTION_WIDTH_FULL_VIEW=new ResponsiveSized(343,600,SECTION_WIDTH_FULL_VIEW_LARGE_PX),AI_CFO_DRAWER_WIDTH=new ResponsiveSized(343,600,838),EXPLORE_DESKTOP_CONTENT_WIDTH_PX=860,AiCfoZIndex={scrollContent:1,chatHeader:2,bottomSection:3},CHAT_HISTORY_GROUP_HEADER_Z_INDEX=12,CHAT_HISTORY_HEADER_TO_SESSIONS_GAP="2px",NAV_TITLE_MAX_WIDTH="208px",MENU_ITEMS_CONTAINER_MARGIN_Y="5px",SAMPLE_QUESTION_CHIPS_LOADING_PLACEHOLDER_COUNT=3,SAMPLE_QUESTION_CHIPS_INITIAL_VISIBLE_COUNT=3,SvgAiCfoAgent=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("rect",{x:3,y:3,width:42,height:42,rx:21,fill:"#F1FFAB"}),/* @__PURE__ */React.createElement("mask",{id:"mask0_4001_18151",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:3,width:42,height:42},/* @__PURE__ */React.createElement("rect",{x:3,y:3,width:42,height:42,rx:21,fill:"#F0F8C9"})),/* @__PURE__ */React.createElement("g",{mask:"url(#mask0_4001_18151)"},/* @__PURE__ */React.createElement("path",{d:"M14.3477 6.95917C15.7464 1.61443 21.5148 -0.539322 26.2617 1.51678C27.2455 1.94282 28.5622 2.74846 28.8008 3.90253C29.7994 3.68381 30.8683 4.46495 31.4639 5.23944C32.6342 6.7617 32.8489 9.40364 32.7334 11.2805C32.7029 11.7762 32.619 12.2835 32.5361 12.7726C33.0069 13.0304 33.4055 13.5309 33.4922 14.0871C33.69 15.3609 32.8273 18.174 31.9941 19.1418C31.6515 19.5397 31.0502 19.9401 30.5352 19.6662C30.5002 20.2081 30.4399 20.7489 30.3799 21.2892C30.281 22.1804 30.1821 23.0725 30.1953 23.9709C30.5249 24.1916 30.7218 24.5302 30.918 24.8674C30.9957 25.0009 31.0735 25.1343 31.1592 25.2599C31.2007 25.3209 31.2425 25.3822 31.2842 25.4435C31.5206 25.7919 31.7603 26.1447 32.0166 26.4748L32.0215 26.4816C32.207 26.7201 32.7144 27.3718 32.9062 27.5246C33.0946 27.6748 33.5474 27.889 33.8984 28.0549C34.014 28.1095 34.1189 28.1592 34.1992 28.1994C34.8714 28.5356 35.5489 28.8635 36.2256 29.1906C38.056 30.0755 39.888 30.9608 41.6299 32.0246L41.6943 32.0637C41.8754 32.1743 41.9176 32.2003 42.1543 32.3137C43.4795 32.9487 43.9856 36.112 44.1895 37.4748C44.3688 38.6723 44.5003 39.8969 44.6191 41.1027C44.7875 42.8121 44.9044 44.5332 45 46.2482H24.9365L23.9473 47.7599H17.6904C17.6904 47.7599 17.5412 47.2252 17.3662 46.2482H3C3.47372 43.3716 3.96604 40.4729 4.7041 37.6555L4.72168 37.5871C5.26212 35.5238 5.92272 33.0034 7.8916 31.9787C8.78575 31.5133 9.75968 31.1019 10.7266 30.6935C11.3283 30.4394 11.9276 30.1862 12.5029 29.9221L12.6406 29.8586C14.0566 29.2081 15.4822 28.5529 16.8516 27.8117C17.2275 27.3573 17.5953 26.8853 17.8389 26.3371C17.6986 26.1491 17.5346 25.975 17.3701 25.8C17.2288 25.6497 17.0873 25.4982 16.959 25.3371C15.9173 24.0292 15.4803 22.7612 15.2705 21.0851C15.193 20.4651 15.1617 19.8072 15.1299 19.1486C15.0896 18.3167 15.0487 17.4834 14.916 16.7228C14.8629 16.4182 14.7688 16.1223 14.6719 15.8195C14.5575 15.4625 14.4393 15.0951 14.3828 14.6916C14.369 14.5927 14.3664 14.4686 14.3633 14.342C14.3588 14.1584 14.3541 13.9686 14.3164 13.841C14.2825 13.7267 14.1668 13.6611 14.0615 13.6017C13.9683 13.5492 13.8836 13.5008 13.8701 13.4269C13.8503 13.317 13.8547 12.9418 13.9092 12.8547C13.9712 12.7554 14.1351 12.7201 14.2744 12.6896C14.3889 12.6646 14.4866 12.6424 14.499 12.592C14.1155 10.754 13.8644 8.80507 14.3477 6.95917Z",fill:"white"}),/* @__PURE__ */React.createElement("path",{d:"M17.4517 47.1309C17.4517 47.1309 15.1821 38.2673 18.0427 26.5623C18.0427 26.5623 20.8623 31.3807 21.9241 30.8345C21.9241 30.8345 22.6218 31.5829 25.8329 28.8782C29.0441 26.1736 29.7633 24.7926 29.9612 23.6392L30.5344 24.073L30.8977 29.3892L28.2409 39.3771L23.5963 47.1304H17.4512L17.4517 47.1309Z",fill:"#E5D7E4"}),/* @__PURE__ */React.createElement("path",{d:"M3 46.2591C3.47372 43.3818 3.96562 40.4831 4.70369 37.665C5.24761 35.5887 5.90024 33.0232 7.89112 31.9868C9.34187 31.2314 11.0028 30.6185 12.5027 29.9298C13.964 29.2582 15.4376 28.5848 16.8515 27.8193C17.2276 27.3647 17.5955 26.8925 17.8392 26.3441C17.5782 25.9942 17.2364 25.6926 16.9586 25.3436C15.9168 24.0354 15.4807 22.7671 15.2709 21.0907C15.0954 19.6869 15.1542 18.0902 14.9165 16.7272C14.8006 16.063 14.4876 15.4418 14.3831 14.6956C14.3493 14.4532 14.3802 14.0604 14.3163 13.8447C14.2524 13.629 13.8984 13.5887 13.8697 13.4313C13.8498 13.3217 13.8549 12.946 13.9094 12.8587C14.0224 12.6777 14.472 12.7079 14.4995 12.5961C14.1158 10.7575 13.8642 8.80786 14.3476 6.9613C15.7463 1.61539 21.5147 -0.538062 26.2616 1.5185C27.2454 1.94463 28.5625 2.74998 28.801 3.9043C29.7996 3.68554 30.8685 4.46677 31.464 5.24144C32.6343 6.76402 32.8492 9.40672 32.7337 11.284C32.7033 11.7798 32.6191 12.287 32.5362 12.7763C33.007 13.0341 33.4054 13.5347 33.4921 14.0911C33.69 15.3651 32.8276 18.1788 31.9944 19.1468C31.6518 19.5448 31.0503 19.946 30.5352 19.672C30.4425 21.1082 30.1744 22.5335 30.1955 23.9771C30.6557 24.2853 30.8575 24.8232 31.1595 25.2665C31.4369 25.6738 31.7148 26.0933 32.0164 26.4817C32.1974 26.7145 32.7121 27.3774 32.9059 27.5317C33.1563 27.7316 33.8753 28.0447 34.1997 28.2069C36.6905 29.4528 39.2431 30.5747 41.6294 32.0324C41.8688 32.1784 41.8912 32.1959 42.1539 32.3217C43.4795 32.9565 43.9857 36.1214 44.1896 37.4844C44.3689 38.6821 44.5005 39.9066 44.6193 41.1126C44.7877 42.8224 44.9044 44.5436 45 46.2591H17.9728C17.9559 46.0495 17.9589 45.7909 17.9732 45.5809C18.2207 41.9202 18.9807 38.3051 20.3786 34.9386C20.206 34.3366 20.1477 33.7023 20.0043 33.0951C19.9903 33.0359 20.0411 32.9693 19.94 32.9877C19.7213 33.309 19.4371 33.5808 19.2007 33.8873C19.0497 34.0828 18.4702 34.9986 18.323 35.0403C18.0401 35.121 17.9043 34.6269 17.8341 34.4239C17.6497 33.8917 17.5575 33.3195 17.4445 32.7685C17.434 32.9053 17.3925 33.0508 17.3815 33.1854C17.1015 36.6146 16.8921 40.0811 17.1696 43.5217C17.2432 44.4353 17.3815 45.3468 17.4657 46.2595H3V46.2591ZM29.9849 13.1459C29.9236 12.5611 29.7895 11.9929 29.5695 11.4523C29.4727 11.2147 29.3255 10.9968 29.2337 10.7487C28.6889 9.28003 29.2168 7.73026 28.5832 6.29755C28.3565 5.78506 28.0279 5.37866 27.5871 5.04985C25.9744 5.3129 24.2322 5.27519 22.6097 5.08098C20.3909 4.81531 18.2372 3.93367 16.536 6.02969C15.0315 7.88327 15.3141 10.2761 15.139 12.5326C15.6554 12.6356 15.5175 12.3361 15.7565 12.0551C16.3127 11.4002 17.8975 11.5922 18.6512 11.7649C19.0509 11.8565 19.5708 12.0433 19.6566 12.5225C19.693 12.7259 19.3762 12.5751 19.506 12.8495C19.5932 13.0337 19.8131 13.0977 19.9057 13.2787C20.4966 13.2415 21.0892 13.1419 21.6758 13.2599C21.944 12.9911 22.235 12.7097 22.625 12.6641C22.578 12.5431 22.3411 12.6676 22.2705 12.6544C22.0857 12.6198 22.1944 12.2862 22.2544 12.1713C22.3944 11.903 23.0158 11.786 23.3017 11.7224C24.1958 11.5238 25.3526 11.4602 26.2294 11.7575C26.6181 11.8894 27.2564 12.2064 27.1511 12.7079L29.9849 13.1459ZM26.671 16.2844C27.1523 15.7562 27.3604 14.2572 27.2259 13.5725C27.1363 13.1156 26.5204 13.0442 26.1457 12.9828C25.2917 12.8429 22.8288 12.7741 22.2066 13.4357C21.8818 13.7811 21.9305 14.1625 22.0015 14.6023C22.1111 15.2814 22.4562 16.2174 23.0767 16.5549C23.6401 16.8614 25.5299 16.8776 26.1224 16.6584C26.2874 16.5974 26.5509 16.4159 26.6706 16.2844H26.671ZM15.5201 13.1029L15.5167 16.3686C15.6469 16.4655 15.7924 16.569 15.943 16.6277C16.5208 16.8517 18.0684 16.8373 18.6208 16.5549C19.1732 16.2726 19.4312 15.5312 19.5598 14.9433C19.7856 13.9131 19.7006 13.3931 18.6419 13.1319C17.6163 12.8793 16.5529 12.9574 15.5196 13.1029H15.5201ZM18.6144 27.3007C19.023 28.1941 19.7615 29.0591 20.4679 29.7251C21.3916 30.5962 22.0413 31.2419 23.3042 30.6023C25.1048 29.6909 28.3489 27.3081 29.3576 25.5269C29.8428 24.6702 29.7438 24.2568 29.8161 23.33C29.9227 21.96 30.0674 20.5935 30.2602 19.2349C30.4848 18.9714 30.6676 19.4089 30.9361 19.4111C31.3164 19.4146 31.8273 18.7807 32.0164 18.469C32.5696 17.5589 33.3534 15.0534 33.0852 14.031C32.9786 13.6251 32.5421 12.9802 32.0684 13.1796C31.5921 13.38 31.0262 14.4339 30.643 14.8127C30.4836 14.9302 30.1875 14.7355 30.1875 14.7355L30.0175 13.7693C29.5268 13.6544 29.0269 13.6347 28.5265 13.6273C28.4555 13.6264 28.3827 13.583 28.3129 13.5821C27.6083 13.5768 27.7935 13.8837 27.7381 14.3883C27.4471 17.0376 26.4895 17.3721 24.041 17.2209C22.6288 17.1336 22.0527 16.5396 21.6737 15.1608C21.6208 14.9675 21.4923 14.0556 21.4462 13.9951C21.3155 13.8241 20.4069 13.7544 20.2005 13.9306C20.0728 14.4892 19.9611 15.0516 19.8224 15.608C19.6587 16.2647 19.3792 17.0096 19.2548 17.6483C19.1059 18.4138 19.2738 19.0052 20.1151 19.0534C20.5905 19.0806 20.813 18.8373 21.1653 18.7947C21.4618 18.7588 21.7498 18.9219 22.0095 18.8811C22.2692 18.8403 22.3293 18.4865 22.2786 18.2573C22.2625 18.1858 21.9694 17.8123 22.2591 17.8386C22.7218 17.8807 22.7941 19.3362 21.8446 19.277C21.6741 19.2665 21.3527 19.1323 21.2178 19.1538C21.0828 19.1753 21.0021 19.3344 20.9179 19.3712C20.4915 19.5584 19.5796 19.419 19.2222 19.1007C18.5425 18.4962 18.8991 17.5242 19.1152 16.7807C18.9718 16.8355 18.8708 16.942 18.721 17.0074C18.0929 17.2805 16.6553 17.2533 15.984 17.1104C15.7527 17.0613 15.5264 16.9591 15.3086 16.8684C15.515 18.6593 15.4532 20.5926 15.8707 22.3524C16.259 23.9894 17.3735 25.5655 18.721 26.4962C20.4497 27.6904 22.7963 27.444 24.5998 26.5558C25.8272 25.9513 27.0225 25.003 27.9555 23.9859C28.3963 23.9179 28.0469 24.3428 27.9115 24.5102C27.1384 25.4664 25.9587 26.2183 24.9098 26.8114C24.9098 26.8114 24.8573 26.8706 24.634 26.9859L23.9366 27.2494C23.7606 27.3599 23.6879 27.3726 23.4286 27.4682C22.1314 27.7422 20.6548 27.8368 19.3995 27.3261C19.2442 27.263 18.5607 26.8404 18.4799 26.8991L18.5227 27.2051C18.5408 27.2336 18.5489 27.2507 18.614 27.2998L18.6144 27.3007ZM15.1385 15.7737L15.076 13.3212C14.5473 13.7956 14.9034 14.6882 14.9825 15.3011L15.139 15.7737H15.1385ZM26.0522 34.9145C26.1076 34.9552 26.3199 34.7062 26.3694 34.6527C27.552 33.3682 28.1285 31.7593 28.7782 30.1394C29.0607 29.4353 29.342 28.722 29.5937 28.0056C29.9654 26.9473 30.4028 25.9017 30.1114 24.7535L29.7383 25.615C28.9901 26.8373 27.9073 27.8333 26.808 28.7128C25.6309 29.6545 24.31 30.494 22.9637 31.1486C24.0516 32.348 25.131 33.5791 26.0522 34.9145ZM20.1121 29.8522C19.4925 29.2441 18.9004 28.5865 18.4461 27.8325L18.0578 27.0749C17.9445 27.7794 17.8303 28.4874 17.7618 29.1994C17.6734 30.113 17.5811 31.1788 17.6822 32.0846C17.7085 32.3217 18.1331 34.5712 18.2905 34.5637C19.2041 33.2604 20.2094 31.989 21.4411 30.9942L20.7445 30.4462C20.5271 30.2551 20.3186 30.0543 20.1126 29.8526L20.1121 29.8522ZM26.248 35.2924C26.0831 35.4033 25.9515 35.2981 25.8234 35.1731C25.4909 34.8483 25.095 34.1937 24.7816 33.7992C24.516 33.4642 24.2411 33.1319 23.9577 32.8127C23.753 33.1942 23.5402 33.5747 23.3199 33.9478C23.0568 34.3936 22.6943 34.6983 22.7108 35.2433C22.7387 36.1595 22.9185 37.1521 22.9659 38.0885C23.0382 39.5168 23.0179 41.0022 22.9654 42.4292C22.924 43.5594 22.8495 44.6984 22.7108 45.8207L25.3856 38.4077C25.8881 37.1486 26.3267 35.8557 26.8973 34.6291C26.91 34.5054 26.8444 34.5936 26.8123 34.6291C26.6515 34.8053 26.4282 35.1714 26.2485 35.2924H26.248Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M32.3723 14.7388C32.2092 14.8961 32.2143 14.4998 31.9845 14.562C31.8319 14.6032 31.5049 15.1243 31.5271 15.2904C31.5422 15.4049 31.6604 15.4863 31.7099 15.5805C31.943 16.0227 31.7804 16.4231 31.4782 16.781C31.4206 16.8491 31.0498 17.2599 31.0005 17.0073C30.986 16.9334 31.285 16.6259 31.344 16.5312C31.4785 16.3153 31.5696 16.0525 31.4894 15.7976C31.4566 15.6933 31.3745 15.6626 31.323 15.5814C31.0774 15.1941 31.4956 14.5382 31.8544 14.3416C32.2487 14.1255 32.4831 14.6327 32.3727 14.7392L32.3723 14.7388Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M17.9742 21.5508C18.1067 21.5106 19.3753 21.859 19.6615 21.9007C21.2202 22.1279 22.9201 21.9456 24.4426 21.5409C24.5813 21.5326 24.7573 21.661 24.7447 21.8208C24.7235 22.0945 24.4542 21.9827 24.2999 22.0156C21.8589 22.5368 20.6386 22.5483 18.1995 22.0172C18.1125 21.9984 18.0023 22.0323 17.9225 22.0031C17.7393 21.9373 17.777 21.6109 17.9742 21.5508Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M22.2678 23.3083C22.1705 23.377 21.7415 23.4223 21.5939 23.4362C21.1322 23.4799 20.5184 23.5038 20.0677 23.4188C19.9276 23.3921 19.4124 23.2753 19.4513 23.1006C19.4871 22.9409 20.1618 23.149 20.3112 23.1601C20.6271 23.184 21.05 23.1673 21.3752 23.1601C21.5758 23.1558 22.2055 23.0128 22.3035 23.1971C22.3181 23.2249 22.2899 23.292 22.2673 23.3075L22.2678 23.3083Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M18.4185 14.1643C18.3744 14.5975 18.2684 15.1139 17.7713 15.1729C17.0702 15.2556 16.7785 14.597 16.9781 13.9631C16.6869 13.9263 16.2022 14.6596 15.9772 14.5098C15.7358 14.3494 16.2344 13.89 16.3587 13.7906C17.0035 13.2763 17.9862 13.3711 18.6585 13.7856C18.8307 13.892 19.3614 14.2319 19.1143 14.4674C18.8672 14.7029 18.5121 14.0927 18.4181 14.1648L18.4185 14.1643Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M26.4169 14.1677C26.5219 14.3573 26.3361 14.5111 26.1668 14.5004C26.0068 14.4901 25.3866 13.9858 25.3083 14.0564C25.4795 14.7114 24.8744 15.4681 24.2211 15.0691C23.8193 14.8238 23.8562 14.3226 23.9457 13.9026C23.845 13.948 23.7385 13.9634 23.6378 14.0129C23.4316 14.1141 23.056 14.5351 22.8761 14.4396C22.5385 14.2607 23.1202 13.8356 23.2813 13.7406C24.0464 13.2894 25.0247 13.3814 25.7966 13.7723C25.873 13.8111 26.3984 14.1345 26.4169 14.1672V14.1677Z",fill:"#26454F"})),/* @__PURE__ */React.createElement("g",{clipPath:"url(#clip0_4001_18151)"},/* @__PURE__ */React.createElement("path",{d:"M3.00076 46.2541C3.47442 43.3772 3.96626 40.4789 4.70423 37.6612C5.24808 35.5852 5.90063 33.02 7.89124 31.9837C9.34181 31.2284 11.0026 30.6156 12.5022 29.927C13.9633 29.2554 15.4367 28.5821 16.8505 27.8168C17.2265 27.3622 17.5944 26.8901 17.838 26.3417C17.577 25.9919 17.2353 25.6903 16.9575 25.3414C15.9159 24.0334 15.4799 22.7652 15.2701 21.089C15.0946 19.6854 15.1534 18.0889 14.9157 16.7261C14.7998 16.062 14.4869 15.4409 14.3824 14.6948C14.3486 14.4524 14.3795 14.0596 14.3156 13.844C14.2517 13.6283 13.8978 13.588 13.869 13.4306C13.8491 13.321 13.8542 12.9454 13.9088 12.8581C14.0217 12.6771 14.4712 12.7073 14.4987 12.5956C14.1151 10.7571 13.8635 8.80779 14.3469 6.96147C15.7454 1.61625 21.513 -0.536917 26.2593 1.51937C27.243 1.94545 28.5599 2.75069 28.7984 3.90486C29.7969 3.68613 30.8656 4.46727 31.461 5.24183C32.6312 6.76421 32.8461 9.40657 32.7306 11.2836C32.7002 11.7794 32.616 12.2865 32.5331 12.7757C33.0038 13.0335 33.4022 13.5341 33.4889 14.0903C33.6868 15.3642 32.8245 18.1775 31.9914 19.1454C31.6488 19.5434 31.0474 19.9445 30.5323 19.6705C30.4397 21.1065 30.1716 22.5316 30.1927 23.9751C30.6529 24.2832 30.8546 24.8211 31.1565 25.2643C31.434 25.6715 31.7118 26.091 32.0134 26.4794C32.1944 26.7121 32.709 27.3749 32.9027 27.5292C33.1531 27.7291 33.872 28.0421 34.1964 28.2043C36.6869 29.45 39.2391 30.5718 41.6252 32.0293C41.8645 32.1753 41.8869 32.1928 42.1496 32.3186C43.4749 32.9533 43.9812 36.1178 44.185 37.4806C44.3643 38.6782 44.4958 39.9025 44.6147 41.1084C44.783 42.8179 44.8997 44.5389 44.9953 46.2541H17.9716C17.9547 46.0446 17.9577 45.786 17.972 45.576C18.2194 41.9158 18.9794 38.3012 20.3771 34.9351C20.2046 34.3332 20.1462 33.699 20.0028 33.0918C19.9889 33.0327 20.0396 32.966 19.9386 32.9844C19.7199 33.3058 19.4357 33.5775 19.1993 33.8839C19.0483 34.0794 18.469 34.9951 18.3218 35.0368C18.0389 35.1174 17.9031 34.6234 17.8329 34.4205C17.6485 33.8883 17.5563 33.3163 17.4434 32.7653C17.4328 32.902 17.3914 33.0476 17.3804 33.1821C17.1004 36.6109 16.8911 40.0769 17.1685 43.5171C17.2421 44.4306 17.3804 45.3419 17.4646 46.2546H3.00076V46.2541ZM29.9821 13.1452C29.9208 12.5605 29.7868 11.9924 29.5668 11.4519C29.47 11.2143 29.3228 10.9965 29.2311 10.7484C28.6864 9.27989 29.2141 7.73033 28.5806 6.29781C28.354 5.78538 28.0254 5.37903 27.5847 5.05027C25.9721 5.31328 24.2302 5.27558 22.6079 5.08139C20.3894 4.81575 18.2359 3.93423 16.535 6.02998C15.0307 7.88331 15.3132 10.2758 15.1382 12.532C15.6545 12.635 15.5167 12.3356 15.7556 12.0546C16.3117 11.3997 17.8963 11.5917 18.65 11.7644C19.0496 11.8561 19.5694 12.0428 19.6552 12.5219C19.6916 12.7253 19.3748 12.5745 19.5047 12.8489C19.5918 13.033 19.8117 13.097 19.9043 13.2781C20.4951 13.2408 21.0876 13.1413 21.6742 13.2592C21.9423 12.9905 22.2332 12.7091 22.6232 12.6635C22.5762 12.5425 22.3394 12.667 22.2688 12.6539C22.084 12.6192 22.1926 12.2856 22.2527 12.1708C22.3927 11.9025 23.0139 11.7855 23.2998 11.7219C24.1938 11.5234 25.3505 11.4598 26.2272 11.757C26.6158 11.8889 27.254 12.2059 27.1487 12.7073L29.9821 13.1452ZM26.6687 16.2834C27.1499 15.7552 27.358 14.2565 27.2235 13.5718C27.1339 13.115 26.5181 13.0435 26.1434 12.9822C25.2896 12.8423 22.827 12.7735 22.2049 13.435C21.8801 13.7804 21.9287 14.1618 21.9998 14.6014C22.1093 15.2804 22.4544 16.2163 23.0748 16.5538C23.6381 16.8602 25.5277 16.8765 26.1202 16.6573C26.2851 16.5964 26.5486 16.4149 26.6683 16.2834H26.6687ZM15.5192 13.1023L15.5158 16.3675C15.6461 16.4644 15.7915 16.5679 15.9421 16.6266C16.5198 16.8506 18.0672 16.8361 18.6195 16.5538C19.1718 16.2715 19.4298 15.5303 19.5584 14.9425C19.7842 13.9124 19.6992 13.3925 18.6407 13.1312C17.6151 12.8787 16.5519 12.9568 15.5188 13.1023H15.5192ZM18.6132 27.2982C19.0217 28.1915 19.7601 29.0564 20.4663 29.7223C21.39 30.5933 22.0395 31.2389 23.3023 30.5994C25.1027 29.6881 28.3463 27.3056 29.355 25.5246C29.84 24.6681 29.7411 24.2547 29.8134 23.3281C29.92 21.9582 30.0646 20.5919 30.2575 19.2335C30.482 18.97 30.6647 19.4075 30.9333 19.4097C31.3134 19.4132 31.8243 18.7793 32.0134 18.4677C32.5665 17.5577 33.3502 15.0525 33.082 14.0303C32.9755 13.6244 32.539 12.9795 32.0654 13.179C31.5892 13.3793 31.0233 14.4331 30.6402 14.8118C30.4807 14.9293 30.1847 14.7347 30.1847 14.7347L30.0147 13.7686C29.5241 13.6537 29.0243 13.634 28.524 13.6265C28.4529 13.6257 28.3802 13.5823 28.3104 13.5814C27.6058 13.5761 27.7911 13.883 27.7357 14.3875C27.4447 17.0365 26.4872 17.3709 24.039 17.2197C22.627 17.1325 22.051 16.5385 21.672 15.1599C21.6192 14.9666 21.4906 14.0548 21.4445 13.9943C21.3138 13.8234 20.4054 13.7537 20.1991 13.9299C20.0713 14.4883 19.9597 15.0507 19.821 15.607C19.6573 16.2637 19.3778 17.0084 19.2534 17.6471C19.1046 18.4124 19.2725 19.0038 20.1136 19.052C20.589 19.0792 20.8114 18.8359 21.1637 18.7934C21.4602 18.7574 21.7482 18.9205 22.0078 18.8797C22.2675 18.8389 22.3275 18.4852 22.2768 18.2559C22.2607 18.1845 21.9677 17.811 22.2573 17.8373C22.72 17.8794 22.7923 19.3347 21.8429 19.2755C21.6725 19.265 21.3511 19.1309 21.2162 19.1524C21.0812 19.1738 21.0005 19.333 20.9163 19.3698C20.49 19.557 19.5782 19.4176 19.2209 19.0993C18.5413 18.4948 18.8978 17.523 19.1139 16.7796C18.9705 16.8344 18.8694 16.9409 18.7197 17.0062C18.0917 17.2793 16.6543 17.2521 15.9831 17.1092C15.7518 17.0601 15.5255 16.958 15.3077 16.8673C15.5141 18.6579 15.4524 20.591 15.8698 22.3506C16.258 23.9873 17.3724 25.5632 18.7197 26.4938C20.4482 27.6879 22.7944 27.4415 24.5977 26.5534C25.825 25.949 27.0201 25.0008 27.953 23.9838C28.3937 23.9159 28.0444 24.3407 27.9091 24.5081C27.136 25.4641 25.9565 26.2159 24.9077 26.809C24.9077 26.809 24.8553 26.8682 24.632 26.9835L23.9346 27.2469C23.7587 27.3574 23.6859 27.3701 23.4267 27.4656C22.1296 27.7396 20.6533 27.8343 19.3981 27.3236C19.2429 27.2605 18.5595 26.8379 18.4787 26.8967L18.5214 27.2026C18.5396 27.2311 18.5476 27.2482 18.6127 27.2973L18.6132 27.2982ZM15.1377 15.7727L15.0751 13.3206C14.5465 13.7949 14.9026 14.6874 14.9817 15.3002L15.1382 15.7727H15.1377ZM26.05 34.911C26.1054 34.9518 26.3177 34.7028 26.3671 34.6493C27.5496 33.3649 28.126 31.7562 28.7756 30.1365C29.0581 29.4325 29.3393 28.7193 29.591 28.0031C29.9627 26.9449 30.4 25.8994 30.1086 24.7514L29.7356 25.6127C28.9875 26.8349 27.9048 27.8308 26.8057 28.7101C25.6287 29.6517 24.308 30.4911 22.9619 31.1456C24.0496 32.3449 25.1289 33.5758 26.05 34.911ZM20.1107 29.8494C19.4911 29.2414 18.8991 28.5839 18.4449 27.8299L18.0566 27.0724C17.9433 27.7769 17.8291 28.4848 17.7606 29.1967C17.6722 30.1102 17.58 31.1758 17.6811 32.0814C17.7073 32.3186 18.1319 34.5678 18.2892 34.5603C19.2027 33.2571 20.2079 31.9859 21.4394 30.9913L20.7429 30.4433C20.5255 30.2522 20.3171 30.0515 20.1111 29.8498L20.1107 29.8494ZM26.2458 35.2888C26.0808 35.3997 25.9493 35.2945 25.8212 35.1696C25.4888 34.8448 25.0929 34.1903 24.7796 33.7958C24.514 33.4609 24.2391 33.1287 23.9557 32.8095C23.751 33.1909 23.5383 33.5714 23.318 33.9444C23.0549 34.3902 22.6925 34.6949 22.709 35.2397C22.7369 36.1559 22.9167 37.1483 22.964 38.0846C23.0363 39.5128 23.016 40.9979 22.9636 42.4247C22.9222 43.5548 22.8477 44.6936 22.709 45.8158L25.3835 38.4037C25.8859 37.1448 26.3244 35.8521 26.8949 34.6256C26.9076 34.502 26.8421 34.5901 26.8099 34.6256C26.6492 34.8018 26.4259 35.1679 26.2462 35.2888H26.2458Z",fill:"#26454F"})),/* @__PURE__ */React.createElement("defs",null,/* @__PURE__ */React.createElement("clipPath",{id:"clip0_4001_18151"},/* @__PURE__ */React.createElement("rect",{width:26.9965,height:29.9961,fill:"white",transform:"translate(9 0.75)"})))),TEST_ID$w="ai-cfo-chat-header",AiCfoChatHeader=({title:e,subtitle:t,avatar:n,showAiStar:o=!0,contentMaxWidth:i,style:r})=>{const[a]=useAnimation("AiStar",o);/* @__PURE__ */
|
|
2295
|
+
`,InitializationComponent=()=>/* @__PURE__ */jsxRuntimeExports.jsx(BusyContainer$i,{children:/* @__PURE__ */jsxRuntimeExports.jsx(ActivityIndicator,{start:!0,size:"ExtraLarge"})}),useDefaultFeatureGate=e=>(noop$9(e),{isFeatureGateLoading:!1,isFeatureEnabled:!1}),useDefaultDynamicConfig=e=>(noop$9(e),{isDynamicConfigLoading:!1,configValue:{}}),FeatureContext=createContext({useFeatureGate:useDefaultFeatureGate,useDynamicConfig:useDefaultDynamicConfig}),FeatureProvider=e=>{const{featureGateCustomFields:t,zeniFeatureConfig:n,isUserSignedIn:o}=e;return o?/* @__PURE__ */jsxRuntimeExports.jsx(ZeniFeatureProvider,{featureGateCustomFields:t,zeniFeatureProviderConfig:n,children:/* @__PURE__ */jsxRuntimeExports.jsx(FeatureContext.Provider,{value:{useFeatureGate:useZeniFeatureGate,useDynamicConfig:useZeniDynamicConfig},children:e.children})}):/* @__PURE__ */jsxRuntimeExports.jsx(FeatureContext.Provider,{value:{useFeatureGate:useDefaultFeatureGate,useDynamicConfig:useDefaultDynamicConfig},children:e.children})},useZeniFeatureContext=()=>useContext(FeatureContext),SECTION_WIDTH_FULL_VIEW_LARGE_PX=760,AI_CFO_SECTION_WIDTH_FULL_VIEW=new ResponsiveSized(343,600,SECTION_WIDTH_FULL_VIEW_LARGE_PX),AI_CFO_DRAWER_WIDTH=new ResponsiveSized(343,600,838),EXPLORE_DESKTOP_CONTENT_WIDTH_PX=860,AiCfoZIndex={scrollContent:1,chatHeader:2,bottomSection:3},CHAT_HISTORY_GROUP_HEADER_Z_INDEX=12,CHAT_HISTORY_HEADER_TO_SESSIONS_GAP="2px",NAV_TITLE_MAX_WIDTH="208px",MENU_ITEMS_CONTAINER_MARGIN_Y="5px",SAMPLE_QUESTION_CHIPS_LOADING_PLACEHOLDER_COUNT=3,SAMPLE_QUESTION_CHIPS_INITIAL_VISIBLE_COUNT=3,SvgAiCfoAgent=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("rect",{x:3,y:3,width:42,height:42,rx:21,fill:"#F1FFAB"}),/* @__PURE__ */React.createElement("mask",{id:"mask0_4001_18151",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:3,y:3,width:42,height:42},/* @__PURE__ */React.createElement("rect",{x:3,y:3,width:42,height:42,rx:21,fill:"#F0F8C9"})),/* @__PURE__ */React.createElement("g",{mask:"url(#mask0_4001_18151)"},/* @__PURE__ */React.createElement("path",{d:"M14.3477 6.95917C15.7464 1.61443 21.5148 -0.539322 26.2617 1.51678C27.2455 1.94282 28.5622 2.74846 28.8008 3.90253C29.7994 3.68381 30.8683 4.46495 31.4639 5.23944C32.6342 6.7617 32.8489 9.40364 32.7334 11.2805C32.7029 11.7762 32.619 12.2835 32.5361 12.7726C33.0069 13.0304 33.4055 13.5309 33.4922 14.0871C33.69 15.3609 32.8273 18.174 31.9941 19.1418C31.6515 19.5397 31.0502 19.9401 30.5352 19.6662C30.5002 20.2081 30.4399 20.7489 30.3799 21.2892C30.281 22.1804 30.1821 23.0725 30.1953 23.9709C30.5249 24.1916 30.7218 24.5302 30.918 24.8674C30.9957 25.0009 31.0735 25.1343 31.1592 25.2599C31.2007 25.3209 31.2425 25.3822 31.2842 25.4435C31.5206 25.7919 31.7603 26.1447 32.0166 26.4748L32.0215 26.4816C32.207 26.7201 32.7144 27.3718 32.9062 27.5246C33.0946 27.6748 33.5474 27.889 33.8984 28.0549C34.014 28.1095 34.1189 28.1592 34.1992 28.1994C34.8714 28.5356 35.5489 28.8635 36.2256 29.1906C38.056 30.0755 39.888 30.9608 41.6299 32.0246L41.6943 32.0637C41.8754 32.1743 41.9176 32.2003 42.1543 32.3137C43.4795 32.9487 43.9856 36.112 44.1895 37.4748C44.3688 38.6723 44.5003 39.8969 44.6191 41.1027C44.7875 42.8121 44.9044 44.5332 45 46.2482H24.9365L23.9473 47.7599H17.6904C17.6904 47.7599 17.5412 47.2252 17.3662 46.2482H3C3.47372 43.3716 3.96604 40.4729 4.7041 37.6555L4.72168 37.5871C5.26212 35.5238 5.92272 33.0034 7.8916 31.9787C8.78575 31.5133 9.75968 31.1019 10.7266 30.6935C11.3283 30.4394 11.9276 30.1862 12.5029 29.9221L12.6406 29.8586C14.0566 29.2081 15.4822 28.5529 16.8516 27.8117C17.2275 27.3573 17.5953 26.8853 17.8389 26.3371C17.6986 26.1491 17.5346 25.975 17.3701 25.8C17.2288 25.6497 17.0873 25.4982 16.959 25.3371C15.9173 24.0292 15.4803 22.7612 15.2705 21.0851C15.193 20.4651 15.1617 19.8072 15.1299 19.1486C15.0896 18.3167 15.0487 17.4834 14.916 16.7228C14.8629 16.4182 14.7688 16.1223 14.6719 15.8195C14.5575 15.4625 14.4393 15.0951 14.3828 14.6916C14.369 14.5927 14.3664 14.4686 14.3633 14.342C14.3588 14.1584 14.3541 13.9686 14.3164 13.841C14.2825 13.7267 14.1668 13.6611 14.0615 13.6017C13.9683 13.5492 13.8836 13.5008 13.8701 13.4269C13.8503 13.317 13.8547 12.9418 13.9092 12.8547C13.9712 12.7554 14.1351 12.7201 14.2744 12.6896C14.3889 12.6646 14.4866 12.6424 14.499 12.592C14.1155 10.754 13.8644 8.80507 14.3477 6.95917Z",fill:"white"}),/* @__PURE__ */React.createElement("path",{d:"M17.4517 47.1309C17.4517 47.1309 15.1821 38.2673 18.0427 26.5623C18.0427 26.5623 20.8623 31.3807 21.9241 30.8345C21.9241 30.8345 22.6218 31.5829 25.8329 28.8782C29.0441 26.1736 29.7633 24.7926 29.9612 23.6392L30.5344 24.073L30.8977 29.3892L28.2409 39.3771L23.5963 47.1304H17.4512L17.4517 47.1309Z",fill:"#E5D7E4"}),/* @__PURE__ */React.createElement("path",{d:"M3 46.2591C3.47372 43.3818 3.96562 40.4831 4.70369 37.665C5.24761 35.5887 5.90024 33.0232 7.89112 31.9868C9.34187 31.2314 11.0028 30.6185 12.5027 29.9298C13.964 29.2582 15.4376 28.5848 16.8515 27.8193C17.2276 27.3647 17.5955 26.8925 17.8392 26.3441C17.5782 25.9942 17.2364 25.6926 16.9586 25.3436C15.9168 24.0354 15.4807 22.7671 15.2709 21.0907C15.0954 19.6869 15.1542 18.0902 14.9165 16.7272C14.8006 16.063 14.4876 15.4418 14.3831 14.6956C14.3493 14.4532 14.3802 14.0604 14.3163 13.8447C14.2524 13.629 13.8984 13.5887 13.8697 13.4313C13.8498 13.3217 13.8549 12.946 13.9094 12.8587C14.0224 12.6777 14.472 12.7079 14.4995 12.5961C14.1158 10.7575 13.8642 8.80786 14.3476 6.9613C15.7463 1.61539 21.5147 -0.538062 26.2616 1.5185C27.2454 1.94463 28.5625 2.74998 28.801 3.9043C29.7996 3.68554 30.8685 4.46677 31.464 5.24144C32.6343 6.76402 32.8492 9.40672 32.7337 11.284C32.7033 11.7798 32.6191 12.287 32.5362 12.7763C33.007 13.0341 33.4054 13.5347 33.4921 14.0911C33.69 15.3651 32.8276 18.1788 31.9944 19.1468C31.6518 19.5448 31.0503 19.946 30.5352 19.672C30.4425 21.1082 30.1744 22.5335 30.1955 23.9771C30.6557 24.2853 30.8575 24.8232 31.1595 25.2665C31.4369 25.6738 31.7148 26.0933 32.0164 26.4817C32.1974 26.7145 32.7121 27.3774 32.9059 27.5317C33.1563 27.7316 33.8753 28.0447 34.1997 28.2069C36.6905 29.4528 39.2431 30.5747 41.6294 32.0324C41.8688 32.1784 41.8912 32.1959 42.1539 32.3217C43.4795 32.9565 43.9857 36.1214 44.1896 37.4844C44.3689 38.6821 44.5005 39.9066 44.6193 41.1126C44.7877 42.8224 44.9044 44.5436 45 46.2591H17.9728C17.9559 46.0495 17.9589 45.7909 17.9732 45.5809C18.2207 41.9202 18.9807 38.3051 20.3786 34.9386C20.206 34.3366 20.1477 33.7023 20.0043 33.0951C19.9903 33.0359 20.0411 32.9693 19.94 32.9877C19.7213 33.309 19.4371 33.5808 19.2007 33.8873C19.0497 34.0828 18.4702 34.9986 18.323 35.0403C18.0401 35.121 17.9043 34.6269 17.8341 34.4239C17.6497 33.8917 17.5575 33.3195 17.4445 32.7685C17.434 32.9053 17.3925 33.0508 17.3815 33.1854C17.1015 36.6146 16.8921 40.0811 17.1696 43.5217C17.2432 44.4353 17.3815 45.3468 17.4657 46.2595H3V46.2591ZM29.9849 13.1459C29.9236 12.5611 29.7895 11.9929 29.5695 11.4523C29.4727 11.2147 29.3255 10.9968 29.2337 10.7487C28.6889 9.28003 29.2168 7.73026 28.5832 6.29755C28.3565 5.78506 28.0279 5.37866 27.5871 5.04985C25.9744 5.3129 24.2322 5.27519 22.6097 5.08098C20.3909 4.81531 18.2372 3.93367 16.536 6.02969C15.0315 7.88327 15.3141 10.2761 15.139 12.5326C15.6554 12.6356 15.5175 12.3361 15.7565 12.0551C16.3127 11.4002 17.8975 11.5922 18.6512 11.7649C19.0509 11.8565 19.5708 12.0433 19.6566 12.5225C19.693 12.7259 19.3762 12.5751 19.506 12.8495C19.5932 13.0337 19.8131 13.0977 19.9057 13.2787C20.4966 13.2415 21.0892 13.1419 21.6758 13.2599C21.944 12.9911 22.235 12.7097 22.625 12.6641C22.578 12.5431 22.3411 12.6676 22.2705 12.6544C22.0857 12.6198 22.1944 12.2862 22.2544 12.1713C22.3944 11.903 23.0158 11.786 23.3017 11.7224C24.1958 11.5238 25.3526 11.4602 26.2294 11.7575C26.6181 11.8894 27.2564 12.2064 27.1511 12.7079L29.9849 13.1459ZM26.671 16.2844C27.1523 15.7562 27.3604 14.2572 27.2259 13.5725C27.1363 13.1156 26.5204 13.0442 26.1457 12.9828C25.2917 12.8429 22.8288 12.7741 22.2066 13.4357C21.8818 13.7811 21.9305 14.1625 22.0015 14.6023C22.1111 15.2814 22.4562 16.2174 23.0767 16.5549C23.6401 16.8614 25.5299 16.8776 26.1224 16.6584C26.2874 16.5974 26.5509 16.4159 26.6706 16.2844H26.671ZM15.5201 13.1029L15.5167 16.3686C15.6469 16.4655 15.7924 16.569 15.943 16.6277C16.5208 16.8517 18.0684 16.8373 18.6208 16.5549C19.1732 16.2726 19.4312 15.5312 19.5598 14.9433C19.7856 13.9131 19.7006 13.3931 18.6419 13.1319C17.6163 12.8793 16.5529 12.9574 15.5196 13.1029H15.5201ZM18.6144 27.3007C19.023 28.1941 19.7615 29.0591 20.4679 29.7251C21.3916 30.5962 22.0413 31.2419 23.3042 30.6023C25.1048 29.6909 28.3489 27.3081 29.3576 25.5269C29.8428 24.6702 29.7438 24.2568 29.8161 23.33C29.9227 21.96 30.0674 20.5935 30.2602 19.2349C30.4848 18.9714 30.6676 19.4089 30.9361 19.4111C31.3164 19.4146 31.8273 18.7807 32.0164 18.469C32.5696 17.5589 33.3534 15.0534 33.0852 14.031C32.9786 13.6251 32.5421 12.9802 32.0684 13.1796C31.5921 13.38 31.0262 14.4339 30.643 14.8127C30.4836 14.9302 30.1875 14.7355 30.1875 14.7355L30.0175 13.7693C29.5268 13.6544 29.0269 13.6347 28.5265 13.6273C28.4555 13.6264 28.3827 13.583 28.3129 13.5821C27.6083 13.5768 27.7935 13.8837 27.7381 14.3883C27.4471 17.0376 26.4895 17.3721 24.041 17.2209C22.6288 17.1336 22.0527 16.5396 21.6737 15.1608C21.6208 14.9675 21.4923 14.0556 21.4462 13.9951C21.3155 13.8241 20.4069 13.7544 20.2005 13.9306C20.0728 14.4892 19.9611 15.0516 19.8224 15.608C19.6587 16.2647 19.3792 17.0096 19.2548 17.6483C19.1059 18.4138 19.2738 19.0052 20.1151 19.0534C20.5905 19.0806 20.813 18.8373 21.1653 18.7947C21.4618 18.7588 21.7498 18.9219 22.0095 18.8811C22.2692 18.8403 22.3293 18.4865 22.2786 18.2573C22.2625 18.1858 21.9694 17.8123 22.2591 17.8386C22.7218 17.8807 22.7941 19.3362 21.8446 19.277C21.6741 19.2665 21.3527 19.1323 21.2178 19.1538C21.0828 19.1753 21.0021 19.3344 20.9179 19.3712C20.4915 19.5584 19.5796 19.419 19.2222 19.1007C18.5425 18.4962 18.8991 17.5242 19.1152 16.7807C18.9718 16.8355 18.8708 16.942 18.721 17.0074C18.0929 17.2805 16.6553 17.2533 15.984 17.1104C15.7527 17.0613 15.5264 16.9591 15.3086 16.8684C15.515 18.6593 15.4532 20.5926 15.8707 22.3524C16.259 23.9894 17.3735 25.5655 18.721 26.4962C20.4497 27.6904 22.7963 27.444 24.5998 26.5558C25.8272 25.9513 27.0225 25.003 27.9555 23.9859C28.3963 23.9179 28.0469 24.3428 27.9115 24.5102C27.1384 25.4664 25.9587 26.2183 24.9098 26.8114C24.9098 26.8114 24.8573 26.8706 24.634 26.9859L23.9366 27.2494C23.7606 27.3599 23.6879 27.3726 23.4286 27.4682C22.1314 27.7422 20.6548 27.8368 19.3995 27.3261C19.2442 27.263 18.5607 26.8404 18.4799 26.8991L18.5227 27.2051C18.5408 27.2336 18.5489 27.2507 18.614 27.2998L18.6144 27.3007ZM15.1385 15.7737L15.076 13.3212C14.5473 13.7956 14.9034 14.6882 14.9825 15.3011L15.139 15.7737H15.1385ZM26.0522 34.9145C26.1076 34.9552 26.3199 34.7062 26.3694 34.6527C27.552 33.3682 28.1285 31.7593 28.7782 30.1394C29.0607 29.4353 29.342 28.722 29.5937 28.0056C29.9654 26.9473 30.4028 25.9017 30.1114 24.7535L29.7383 25.615C28.9901 26.8373 27.9073 27.8333 26.808 28.7128C25.6309 29.6545 24.31 30.494 22.9637 31.1486C24.0516 32.348 25.131 33.5791 26.0522 34.9145ZM20.1121 29.8522C19.4925 29.2441 18.9004 28.5865 18.4461 27.8325L18.0578 27.0749C17.9445 27.7794 17.8303 28.4874 17.7618 29.1994C17.6734 30.113 17.5811 31.1788 17.6822 32.0846C17.7085 32.3217 18.1331 34.5712 18.2905 34.5637C19.2041 33.2604 20.2094 31.989 21.4411 30.9942L20.7445 30.4462C20.5271 30.2551 20.3186 30.0543 20.1126 29.8526L20.1121 29.8522ZM26.248 35.2924C26.0831 35.4033 25.9515 35.2981 25.8234 35.1731C25.4909 34.8483 25.095 34.1937 24.7816 33.7992C24.516 33.4642 24.2411 33.1319 23.9577 32.8127C23.753 33.1942 23.5402 33.5747 23.3199 33.9478C23.0568 34.3936 22.6943 34.6983 22.7108 35.2433C22.7387 36.1595 22.9185 37.1521 22.9659 38.0885C23.0382 39.5168 23.0179 41.0022 22.9654 42.4292C22.924 43.5594 22.8495 44.6984 22.7108 45.8207L25.3856 38.4077C25.8881 37.1486 26.3267 35.8557 26.8973 34.6291C26.91 34.5054 26.8444 34.5936 26.8123 34.6291C26.6515 34.8053 26.4282 35.1714 26.2485 35.2924H26.248Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M32.3723 14.7388C32.2092 14.8961 32.2143 14.4998 31.9845 14.562C31.8319 14.6032 31.5049 15.1243 31.5271 15.2904C31.5422 15.4049 31.6604 15.4863 31.7099 15.5805C31.943 16.0227 31.7804 16.4231 31.4782 16.781C31.4206 16.8491 31.0498 17.2599 31.0005 17.0073C30.986 16.9334 31.285 16.6259 31.344 16.5312C31.4785 16.3153 31.5696 16.0525 31.4894 15.7976C31.4566 15.6933 31.3745 15.6626 31.323 15.5814C31.0774 15.1941 31.4956 14.5382 31.8544 14.3416C32.2487 14.1255 32.4831 14.6327 32.3727 14.7392L32.3723 14.7388Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M17.9742 21.5508C18.1067 21.5106 19.3753 21.859 19.6615 21.9007C21.2202 22.1279 22.9201 21.9456 24.4426 21.5409C24.5813 21.5326 24.7573 21.661 24.7447 21.8208C24.7235 22.0945 24.4542 21.9827 24.2999 22.0156C21.8589 22.5368 20.6386 22.5483 18.1995 22.0172C18.1125 21.9984 18.0023 22.0323 17.9225 22.0031C17.7393 21.9373 17.777 21.6109 17.9742 21.5508Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M22.2678 23.3083C22.1705 23.377 21.7415 23.4223 21.5939 23.4362C21.1322 23.4799 20.5184 23.5038 20.0677 23.4188C19.9276 23.3921 19.4124 23.2753 19.4513 23.1006C19.4871 22.9409 20.1618 23.149 20.3112 23.1601C20.6271 23.184 21.05 23.1673 21.3752 23.1601C21.5758 23.1558 22.2055 23.0128 22.3035 23.1971C22.3181 23.2249 22.2899 23.292 22.2673 23.3075L22.2678 23.3083Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M18.4185 14.1643C18.3744 14.5975 18.2684 15.1139 17.7713 15.1729C17.0702 15.2556 16.7785 14.597 16.9781 13.9631C16.6869 13.9263 16.2022 14.6596 15.9772 14.5098C15.7358 14.3494 16.2344 13.89 16.3587 13.7906C17.0035 13.2763 17.9862 13.3711 18.6585 13.7856C18.8307 13.892 19.3614 14.2319 19.1143 14.4674C18.8672 14.7029 18.5121 14.0927 18.4181 14.1648L18.4185 14.1643Z",fill:"#26454F"}),/* @__PURE__ */React.createElement("path",{d:"M26.4169 14.1677C26.5219 14.3573 26.3361 14.5111 26.1668 14.5004C26.0068 14.4901 25.3866 13.9858 25.3083 14.0564C25.4795 14.7114 24.8744 15.4681 24.2211 15.0691C23.8193 14.8238 23.8562 14.3226 23.9457 13.9026C23.845 13.948 23.7385 13.9634 23.6378 14.0129C23.4316 14.1141 23.056 14.5351 22.8761 14.4396C22.5385 14.2607 23.1202 13.8356 23.2813 13.7406C24.0464 13.2894 25.0247 13.3814 25.7966 13.7723C25.873 13.8111 26.3984 14.1345 26.4169 14.1672V14.1677Z",fill:"#26454F"})),/* @__PURE__ */React.createElement("g",{clipPath:"url(#clip0_4001_18151)"},/* @__PURE__ */React.createElement("path",{d:"M3.00076 46.2541C3.47442 43.3772 3.96626 40.4789 4.70423 37.6612C5.24808 35.5852 5.90063 33.02 7.89124 31.9837C9.34181 31.2284 11.0026 30.6156 12.5022 29.927C13.9633 29.2554 15.4367 28.5821 16.8505 27.8168C17.2265 27.3622 17.5944 26.8901 17.838 26.3417C17.577 25.9919 17.2353 25.6903 16.9575 25.3414C15.9159 24.0334 15.4799 22.7652 15.2701 21.089C15.0946 19.6854 15.1534 18.0889 14.9157 16.7261C14.7998 16.062 14.4869 15.4409 14.3824 14.6948C14.3486 14.4524 14.3795 14.0596 14.3156 13.844C14.2517 13.6283 13.8978 13.588 13.869 13.4306C13.8491 13.321 13.8542 12.9454 13.9088 12.8581C14.0217 12.6771 14.4712 12.7073 14.4987 12.5956C14.1151 10.7571 13.8635 8.80779 14.3469 6.96147C15.7454 1.61625 21.513 -0.536917 26.2593 1.51937C27.243 1.94545 28.5599 2.75069 28.7984 3.90486C29.7969 3.68613 30.8656 4.46727 31.461 5.24183C32.6312 6.76421 32.8461 9.40657 32.7306 11.2836C32.7002 11.7794 32.616 12.2865 32.5331 12.7757C33.0038 13.0335 33.4022 13.5341 33.4889 14.0903C33.6868 15.3642 32.8245 18.1775 31.9914 19.1454C31.6488 19.5434 31.0474 19.9445 30.5323 19.6705C30.4397 21.1065 30.1716 22.5316 30.1927 23.9751C30.6529 24.2832 30.8546 24.8211 31.1565 25.2643C31.434 25.6715 31.7118 26.091 32.0134 26.4794C32.1944 26.7121 32.709 27.3749 32.9027 27.5292C33.1531 27.7291 33.872 28.0421 34.1964 28.2043C36.6869 29.45 39.2391 30.5718 41.6252 32.0293C41.8645 32.1753 41.8869 32.1928 42.1496 32.3186C43.4749 32.9533 43.9812 36.1178 44.185 37.4806C44.3643 38.6782 44.4958 39.9025 44.6147 41.1084C44.783 42.8179 44.8997 44.5389 44.9953 46.2541H17.9716C17.9547 46.0446 17.9577 45.786 17.972 45.576C18.2194 41.9158 18.9794 38.3012 20.3771 34.9351C20.2046 34.3332 20.1462 33.699 20.0028 33.0918C19.9889 33.0327 20.0396 32.966 19.9386 32.9844C19.7199 33.3058 19.4357 33.5775 19.1993 33.8839C19.0483 34.0794 18.469 34.9951 18.3218 35.0368C18.0389 35.1174 17.9031 34.6234 17.8329 34.4205C17.6485 33.8883 17.5563 33.3163 17.4434 32.7653C17.4328 32.902 17.3914 33.0476 17.3804 33.1821C17.1004 36.6109 16.8911 40.0769 17.1685 43.5171C17.2421 44.4306 17.3804 45.3419 17.4646 46.2546H3.00076V46.2541ZM29.9821 13.1452C29.9208 12.5605 29.7868 11.9924 29.5668 11.4519C29.47 11.2143 29.3228 10.9965 29.2311 10.7484C28.6864 9.27989 29.2141 7.73033 28.5806 6.29781C28.354 5.78538 28.0254 5.37903 27.5847 5.05027C25.9721 5.31328 24.2302 5.27558 22.6079 5.08139C20.3894 4.81575 18.2359 3.93423 16.535 6.02998C15.0307 7.88331 15.3132 10.2758 15.1382 12.532C15.6545 12.635 15.5167 12.3356 15.7556 12.0546C16.3117 11.3997 17.8963 11.5917 18.65 11.7644C19.0496 11.8561 19.5694 12.0428 19.6552 12.5219C19.6916 12.7253 19.3748 12.5745 19.5047 12.8489C19.5918 13.033 19.8117 13.097 19.9043 13.2781C20.4951 13.2408 21.0876 13.1413 21.6742 13.2592C21.9423 12.9905 22.2332 12.7091 22.6232 12.6635C22.5762 12.5425 22.3394 12.667 22.2688 12.6539C22.084 12.6192 22.1926 12.2856 22.2527 12.1708C22.3927 11.9025 23.0139 11.7855 23.2998 11.7219C24.1938 11.5234 25.3505 11.4598 26.2272 11.757C26.6158 11.8889 27.254 12.2059 27.1487 12.7073L29.9821 13.1452ZM26.6687 16.2834C27.1499 15.7552 27.358 14.2565 27.2235 13.5718C27.1339 13.115 26.5181 13.0435 26.1434 12.9822C25.2896 12.8423 22.827 12.7735 22.2049 13.435C21.8801 13.7804 21.9287 14.1618 21.9998 14.6014C22.1093 15.2804 22.4544 16.2163 23.0748 16.5538C23.6381 16.8602 25.5277 16.8765 26.1202 16.6573C26.2851 16.5964 26.5486 16.4149 26.6683 16.2834H26.6687ZM15.5192 13.1023L15.5158 16.3675C15.6461 16.4644 15.7915 16.5679 15.9421 16.6266C16.5198 16.8506 18.0672 16.8361 18.6195 16.5538C19.1718 16.2715 19.4298 15.5303 19.5584 14.9425C19.7842 13.9124 19.6992 13.3925 18.6407 13.1312C17.6151 12.8787 16.5519 12.9568 15.5188 13.1023H15.5192ZM18.6132 27.2982C19.0217 28.1915 19.7601 29.0564 20.4663 29.7223C21.39 30.5933 22.0395 31.2389 23.3023 30.5994C25.1027 29.6881 28.3463 27.3056 29.355 25.5246C29.84 24.6681 29.7411 24.2547 29.8134 23.3281C29.92 21.9582 30.0646 20.5919 30.2575 19.2335C30.482 18.97 30.6647 19.4075 30.9333 19.4097C31.3134 19.4132 31.8243 18.7793 32.0134 18.4677C32.5665 17.5577 33.3502 15.0525 33.082 14.0303C32.9755 13.6244 32.539 12.9795 32.0654 13.179C31.5892 13.3793 31.0233 14.4331 30.6402 14.8118C30.4807 14.9293 30.1847 14.7347 30.1847 14.7347L30.0147 13.7686C29.5241 13.6537 29.0243 13.634 28.524 13.6265C28.4529 13.6257 28.3802 13.5823 28.3104 13.5814C27.6058 13.5761 27.7911 13.883 27.7357 14.3875C27.4447 17.0365 26.4872 17.3709 24.039 17.2197C22.627 17.1325 22.051 16.5385 21.672 15.1599C21.6192 14.9666 21.4906 14.0548 21.4445 13.9943C21.3138 13.8234 20.4054 13.7537 20.1991 13.9299C20.0713 14.4883 19.9597 15.0507 19.821 15.607C19.6573 16.2637 19.3778 17.0084 19.2534 17.6471C19.1046 18.4124 19.2725 19.0038 20.1136 19.052C20.589 19.0792 20.8114 18.8359 21.1637 18.7934C21.4602 18.7574 21.7482 18.9205 22.0078 18.8797C22.2675 18.8389 22.3275 18.4852 22.2768 18.2559C22.2607 18.1845 21.9677 17.811 22.2573 17.8373C22.72 17.8794 22.7923 19.3347 21.8429 19.2755C21.6725 19.265 21.3511 19.1309 21.2162 19.1524C21.0812 19.1738 21.0005 19.333 20.9163 19.3698C20.49 19.557 19.5782 19.4176 19.2209 19.0993C18.5413 18.4948 18.8978 17.523 19.1139 16.7796C18.9705 16.8344 18.8694 16.9409 18.7197 17.0062C18.0917 17.2793 16.6543 17.2521 15.9831 17.1092C15.7518 17.0601 15.5255 16.958 15.3077 16.8673C15.5141 18.6579 15.4524 20.591 15.8698 22.3506C16.258 23.9873 17.3724 25.5632 18.7197 26.4938C20.4482 27.6879 22.7944 27.4415 24.5977 26.5534C25.825 25.949 27.0201 25.0008 27.953 23.9838C28.3937 23.9159 28.0444 24.3407 27.9091 24.5081C27.136 25.4641 25.9565 26.2159 24.9077 26.809C24.9077 26.809 24.8553 26.8682 24.632 26.9835L23.9346 27.2469C23.7587 27.3574 23.6859 27.3701 23.4267 27.4656C22.1296 27.7396 20.6533 27.8343 19.3981 27.3236C19.2429 27.2605 18.5595 26.8379 18.4787 26.8967L18.5214 27.2026C18.5396 27.2311 18.5476 27.2482 18.6127 27.2973L18.6132 27.2982ZM15.1377 15.7727L15.0751 13.3206C14.5465 13.7949 14.9026 14.6874 14.9817 15.3002L15.1382 15.7727H15.1377ZM26.05 34.911C26.1054 34.9518 26.3177 34.7028 26.3671 34.6493C27.5496 33.3649 28.126 31.7562 28.7756 30.1365C29.0581 29.4325 29.3393 28.7193 29.591 28.0031C29.9627 26.9449 30.4 25.8994 30.1086 24.7514L29.7356 25.6127C28.9875 26.8349 27.9048 27.8308 26.8057 28.7101C25.6287 29.6517 24.308 30.4911 22.9619 31.1456C24.0496 32.3449 25.1289 33.5758 26.05 34.911ZM20.1107 29.8494C19.4911 29.2414 18.8991 28.5839 18.4449 27.8299L18.0566 27.0724C17.9433 27.7769 17.8291 28.4848 17.7606 29.1967C17.6722 30.1102 17.58 31.1758 17.6811 32.0814C17.7073 32.3186 18.1319 34.5678 18.2892 34.5603C19.2027 33.2571 20.2079 31.9859 21.4394 30.9913L20.7429 30.4433C20.5255 30.2522 20.3171 30.0515 20.1111 29.8498L20.1107 29.8494ZM26.2458 35.2888C26.0808 35.3997 25.9493 35.2945 25.8212 35.1696C25.4888 34.8448 25.0929 34.1903 24.7796 33.7958C24.514 33.4609 24.2391 33.1287 23.9557 32.8095C23.751 33.1909 23.5383 33.5714 23.318 33.9444C23.0549 34.3902 22.6925 34.6949 22.709 35.2397C22.7369 36.1559 22.9167 37.1483 22.964 38.0846C23.0363 39.5128 23.016 40.9979 22.9636 42.4247C22.9222 43.5548 22.8477 44.6936 22.709 45.8158L25.3835 38.4037C25.8859 37.1448 26.3244 35.8521 26.8949 34.6256C26.9076 34.502 26.8421 34.5901 26.8099 34.6256C26.6492 34.8018 26.4259 35.1679 26.2462 35.2888H26.2458Z",fill:"#26454F"})),/* @__PURE__ */React.createElement("defs",null,/* @__PURE__ */React.createElement("clipPath",{id:"clip0_4001_18151"},/* @__PURE__ */React.createElement("rect",{width:26.9965,height:29.9961,fill:"white",transform:"translate(9 0.75)"})))),TEST_ID$w="ai-cfo-chat-header",AiCfoChatHeader=({title:e,subtitle:t,avatar:n,showAiStar:o=!0,contentMaxWidth:i,style:r})=>{const[a]=useAnimation("AiStar",o);/* @__PURE__ */
|
|
2296
2296
|
return jsxRuntimeExports.jsx(HeaderContainer$G,{style:r,"data-testid":generateDataTestId(TEST_ID$w),children:/* @__PURE__ */jsxRuntimeExports.jsxs(HeaderContent$1,{$contentMaxWidth:i,children:[
|
|
2297
2297
|
/* @__PURE__ */jsxRuntimeExports.jsx(AvatarSlot,{"data-testid":generateDataTestId(TEST_ID$w,"avatar"),children:n??/* @__PURE__ */jsxRuntimeExports.jsx(DefaultAvatarIcon,{})}),
|
|
2298
2298
|
/* @__PURE__ */jsxRuntimeExports.jsxs(TextColumn$1,{children:[
|
|
@@ -3993,7 +3993,7 @@ return jsxRuntimeExports.jsxs(Wrapper$9,{"data-testid":"answer-downloads",childr
|
|
|
3993
3993
|
/* @__PURE__ */jsxRuntimeExports.jsx(Tooltip$6,{arrow:!0,disableIntersectionObserver:!0,display:"flex",enterDelay:TOOLTIP_ENTER_DELAY_MS,placement:"bottom",title:s?"":downloadLabel$1,children:/* @__PURE__ */jsxRuntimeExports.jsx(IconButton$4,{ref:c,"aria-busy":w,"aria-expanded":s,"aria-haspopup":"menu","aria-label":downloadLabel$1,"data-testid":"answer-download-menu",disabled:w,type:"button",onClick:()=>l(e=>!e),onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),l(!1))},children:w?/* @__PURE__ */jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small",start:!0}):/* @__PURE__ */jsxRuntimeExports.jsx(StyledDownloadIcon$7,{"aria-hidden":!0})})}),
|
|
3994
3994
|
/* @__PURE__ */jsxRuntimeExports.jsx(Popper$1,{anchorEl:c.current,modifiers:[{name:"offset",options:{offset:[0,MENU_OFFSET_PX]}}],open:s,placement:"bottom-start",style:{zIndex:MENU_Z_INDEX},children:/* @__PURE__ */jsxRuntimeExports.jsx(MenuList$a,{ref:p,role:"menu",onKeyDown:e=>{const t=Array.from(d.current?.querySelectorAll('[role="menuitem"]')??[]),n=t.indexOf(document.activeElement),o=n=>{e.preventDefault(),t[(n+t.length)%t.length]?.focus()};"ArrowDown"===e.key?o(n+1):"ArrowUp"===e.key?o(n-1):"Home"===e.key?o(0):"End"===e.key?o(t.length-1):"Escape"!==e.key&&"Tab"!==e.key||(e.preventDefault(),e.stopPropagation(),l(!1),c.current?.focus())},children:v.map(({kind:e,label:t})=>/* @__PURE__ */jsxRuntimeExports.jsx(MenuItem$7,{"data-testid":`answer-download-${e}`,role:"menuitem",type:"button",onClick:()=>{b(e)},children:/* @__PURE__ */jsxRuntimeExports.jsx(MenuItemLabel$3,{children:t})},e))})})]})}),w&&"png"!==u?/* @__PURE__ */jsxRuntimeExports.jsx(StatusText$1,{"aria-live":"polite",role:"status",children:answerPreparing}):null,E]})};var _baseGet,hasRequired_baseGet,get_1,hasRequiredGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var e=require_castPath(),t=require_toKey();return _baseGet=function(n,o){for(var i=0,r=(o=e(o,n)).length;null!=n&&i<r;)n=n[t(o[i++])];return i&&i==r?n:void 0}}function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var e=require_baseGet();return get_1=function(t,n,o){var i=null==t?void 0:e(t,n);return void 0===i?o:i}}var getExports=requireGet();const get$1=/* @__PURE__ */getDefaultExportFromCjs(getExports);var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;return hasRequiredIsNil=1,isNil_1=function(e){return null==e}}var isNilExports=requireIsNil();const isNil$1=/* @__PURE__ */getDefaultExportFromCjs(isNilExports);var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),n=requireIsObjectLike();return isString_1=function(o){return"string"==typeof o||!t(o)&&n(o)&&"[object String]"==e(o)}}var isStringExports=requireIsString();const isString=/* @__PURE__ */getDefaultExportFromCjs(isStringExports);var isFunctionExports=requireIsFunction();const isFunction=/* @__PURE__ */getDefaultExportFromCjs(isFunctionExports);var isObjectExports=requireIsObject();const isObject$2=/* @__PURE__ */getDefaultExportFromCjs(isObjectExports);var reactIs={exports:{}},reactIs_production_min={},hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e,t=/* @__PURE__ */Symbol.for("react.element"),n=/* @__PURE__ */Symbol.for("react.portal"),o=/* @__PURE__ */Symbol.for("react.fragment"),i=/* @__PURE__ */Symbol.for("react.strict_mode"),r=/* @__PURE__ */Symbol.for("react.profiler"),a=/* @__PURE__ */Symbol.for("react.provider"),s=/* @__PURE__ */Symbol.for("react.context"),l=/* @__PURE__ */Symbol.for("react.server_context"),c=/* @__PURE__ */Symbol.for("react.forward_ref"),d=/* @__PURE__ */Symbol.for("react.suspense"),p=/* @__PURE__ */Symbol.for("react.suspense_list"),u=/* @__PURE__ */Symbol.for("react.memo"),m=/* @__PURE__ */Symbol.for("react.lazy"),h=/* @__PURE__ */Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case o:case r:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case m:case u:case a:return e;default:return h}}case n:return h}}}return e=/* @__PURE__ */Symbol.for("react.module.reference"),reactIs_production_min.ContextConsumer=s,reactIs_production_min.ContextProvider=a,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=c,reactIs_production_min.Fragment=o,reactIs_production_min.Lazy=m,reactIs_production_min.Memo=u,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=r,reactIs_production_min.StrictMode=i,reactIs_production_min.Suspense=d,reactIs_production_min.SuspenseList=p,reactIs_production_min.isAsyncMode=function(){return!1},reactIs_production_min.isConcurrentMode=function(){return!1},reactIs_production_min.isContextConsumer=function(e){return g(e)===s},reactIs_production_min.isContextProvider=function(e){return g(e)===a},reactIs_production_min.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min.isForwardRef=function(e){return g(e)===c},reactIs_production_min.isFragment=function(e){return g(e)===o},reactIs_production_min.isLazy=function(e){return g(e)===m},reactIs_production_min.isMemo=function(e){return g(e)===u},reactIs_production_min.isPortal=function(e){return g(e)===n},reactIs_production_min.isProfiler=function(e){return g(e)===r},reactIs_production_min.isStrictMode=function(e){return g(e)===i},reactIs_production_min.isSuspense=function(e){return g(e)===d},reactIs_production_min.isSuspenseList=function(e){return g(e)===p},reactIs_production_min.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===r||t===i||t===d||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===u||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},reactIs_production_min.typeOf=g,reactIs_production_min}var reactIs_development={},hasRequiredReactIs_development,hasRequiredReactIs;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,"production"!==process.env.NODE_ENV&&function(){var e,t=/* @__PURE__ */Symbol.for("react.element"),n=/* @__PURE__ */Symbol.for("react.portal"),o=/* @__PURE__ */Symbol.for("react.fragment"),i=/* @__PURE__ */Symbol.for("react.strict_mode"),r=/* @__PURE__ */Symbol.for("react.profiler"),a=/* @__PURE__ */Symbol.for("react.provider"),s=/* @__PURE__ */Symbol.for("react.context"),l=/* @__PURE__ */Symbol.for("react.server_context"),c=/* @__PURE__ */Symbol.for("react.forward_ref"),d=/* @__PURE__ */Symbol.for("react.suspense"),p=/* @__PURE__ */Symbol.for("react.suspense_list"),u=/* @__PURE__ */Symbol.for("react.memo"),m=/* @__PURE__ */Symbol.for("react.lazy"),h=/* @__PURE__ */Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case o:case r:case i:case d:case p:return g;default:var x=g&&g.$$typeof;switch(x){case l:case s:case c:case m:case u:case a:return x;default:return h}}case n:return h}}}e=/* @__PURE__ */Symbol.for("react.module.reference");var x=s,f=a,y=t,S=c,C=o,$=m,b=u,v=n,E=r,w=i,R=d,A=p,j=!1,T=!1;reactIs_development.ContextConsumer=x,reactIs_development.ContextProvider=f,reactIs_development.Element=y,reactIs_development.ForwardRef=S,reactIs_development.Fragment=C,reactIs_development.Lazy=$,reactIs_development.Memo=b,reactIs_development.Portal=v,reactIs_development.Profiler=E,reactIs_development.StrictMode=w,reactIs_development.Suspense=R,reactIs_development.SuspenseList=A,reactIs_development.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function(e){return g(e)===s},reactIs_development.isContextProvider=function(e){return g(e)===a},reactIs_development.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_development.isForwardRef=function(e){return g(e)===c},reactIs_development.isFragment=function(e){return g(e)===o},reactIs_development.isLazy=function(e){return g(e)===m},reactIs_development.isMemo=function(e){return g(e)===u},reactIs_development.isPortal=function(e){return g(e)===n},reactIs_development.isProfiler=function(e){return g(e)===r},reactIs_development.isStrictMode=function(e){return g(e)===i},reactIs_development.isSuspense=function(e){return g(e)===d},reactIs_development.isSuspenseList=function(e){return g(e)===p},reactIs_development.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||(t===o||t===r||t===i||t===d||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===u||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId))},reactIs_development.typeOf=g}()),reactIs_development}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,"production"===process.env.NODE_ENV?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}var reactIsExports=requireReactIs(),isNumber_1,hasRequiredIsNumber,_isNaN,hasRequired_isNaN;function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isNumber_1=function(n){return"number"==typeof n||t(n)&&"[object Number]"==e(n)}}function require_isNaN(){if(hasRequired_isNaN)return _isNaN;hasRequired_isNaN=1;var e=requireIsNumber();return _isNaN=function(t){return e(t)&&t!=+t}}var _isNaNExports=require_isNaN();const isNan=/* @__PURE__ */getDefaultExportFromCjs(_isNaNExports);var isNumberExports=requireIsNumber();const isNumber$1=/* @__PURE__ */getDefaultExportFromCjs(isNumberExports);var mathSign=function(e){return 0===e?0:e>0?1:-1},isPercent=function(e){return isString(e)&&e.indexOf("%")===e.length-1},isNumber=function(e){return isNumber$1(e)&&!isNan(e)},isNullish=function(e){return isNil$1(e)},isNumOrStr=function(e){return isNumber(e)||isString(e)},idCounter=0,uniqueId=function(e){var t=++idCounter;return"".concat(e||"").concat(t)},getPercentValue=function(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!isNumber(e)&&!isString(e))return o;if(isPercent(e)){var r=e.indexOf("%");n=t*parseFloat(e.slice(0,r))/100}else n=+e;return isNan(n)&&(n=o),i&&n>t&&(n=t),n},getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},hasDuplicate=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},o=0;o<t;o++){if(n[e[o]])return!0;n[e[o]]=!0}return!1},interpolateNumber$2=function(e,t){return isNumber(e)&&isNumber(t)?function(n){return e+n*(t-e)}:function(){return t}};function findEntryInArray(e,t,n){return e&&e.length?e.find(function(e){return e&&("function"==typeof t?t(e):get$1(e,t))===n}):null}var getLinearRegression=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,o=0,i=0,r=0,a=1/0,s=-1/0,l=0,c=0,d=0;d<t;d++)n+=l=e[d].cx||0,o+=c=e[d].cy||0,i+=l*c,r+=l*l,a=Math.min(a,l),s=Math.max(s,l);var p=t*r!==n*n?(t*i-n*o)/(t*r-n*n):0;return{xmin:a,xmax:s,a:p,b:(o-p*n)/t}},compareValues=function(e,t){return isNumber(e)&&isNumber(t)?e-t:isString(e)&&isString(t)?e.localeCompare(t):e instanceof Date&&t instanceof Date?e.getTime()-t.getTime():String(e).localeCompare(String(t))};function shallowEqual$1(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var o in t)if({}.hasOwnProperty.call(t,o)&&!{}.hasOwnProperty.call(e,o))return!1;return!0}function _typeof$15(e){return(_typeof$15="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)}var SVGContainerPropKeys=["viewBox","children"],SVGElementPropKeys=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],PolyElementKeys=["points","pathLength"],FilteredElementKeyMap={svg:SVGContainerPropKeys,polygon:PolyElementKeys,polyline:PolyElementKeys},EventKeys=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],adaptEventHandlers=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(/* @__PURE__ */isValidElement$1(e)&&(n=e.props),!isObject$2(n))return null;var o={};return Object.keys(n).forEach(function(e){EventKeys.includes(e)&&(o[e]=t||function(t){return n[e](n,t)})}),o},getEventHandlerOfChild=function(e,t,n){return function(o){return e(t,n,o),null}},adaptEventsOfChild=function(e,t,n){if(!isObject$2(e)||"object"!==_typeof$15(e))return null;var o=null;return Object.keys(e).forEach(function(i){var r=e[i];EventKeys.includes(i)&&"function"==typeof r&&(o||(o={}),o[i]=getEventHandlerOfChild(r,t,n))}),o},_excluded$C=["children"],_excluded2$d=["children"];function _objectWithoutProperties$y(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$y(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose$y(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function _typeof$14(e){return(_typeof$14="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)}var REACT_BROWSER_EVENT_MAP={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},getDisplayName=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},lastChildren=null,lastResult=null,toArray=function e(t){if(t===lastChildren&&Array.isArray(lastResult))return lastResult;var n=[];return Children.forEach(t,function(t){isNil$1(t)||(reactIsExports.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))}),lastResult=n,lastChildren=t,n};function findAllByType(e,t){var n=[],o=[];return o=Array.isArray(t)?t.map(function(e){return getDisplayName(e)}):[getDisplayName(t)],toArray(e).forEach(function(e){var t=get$1(e,"type.displayName")||get$1(e,"type.name");-1!==o.indexOf(t)&&n.push(e)}),n}function findChildByType(e,t){var n=findAllByType(e,t);return n&&n[0]}var validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,o=t.height;return!(!isNumber(n)||n<=0||!isNumber(o)||o<=0)},SVG_TAGS=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],isSvgElement=function(e){return e&&e.type&&isString(e.type)&&SVG_TAGS.indexOf(e.type)>=0},hasClipDot=function(e){return e&&"object"===_typeof$14(e)&&"clipDot"in e},isValidSpreadableProp=function(e,t,n,o){var i,r=null!==(i=null==FilteredElementKeyMap?void 0:FilteredElementKeyMap[o])&&void 0!==i?i:[];return t.startsWith("data-")||!isFunction(e)&&(o&&r.includes(t)||SVGElementPropKeys.includes(t))||n&&EventKeys.includes(t)},filterProps=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var o=e;if(/* @__PURE__ */isValidElement$1(e)&&(o=e.props),!isObject$2(o))return null;var i={};return Object.keys(o).forEach(function(e){var r;isValidSpreadableProp(null===(r=o)||void 0===r?void 0:r[e],e,t,n)&&(i[e]=o[e])}),i},isChildrenEqual=function e(t,n){if(t===n)return!0;var o=Children.count(t);if(o!==Children.count(n))return!1;if(0===o)return!0;if(1===o)return isSingleChildEqual(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var r=t[i],a=n[i];if(Array.isArray(r)||Array.isArray(a)){if(!e(r,a))return!1}else if(!isSingleChildEqual(r,a))return!1}return!0},isSingleChildEqual=function(e,t){if(isNil$1(e)&&isNil$1(t))return!0;if(!isNil$1(e)&&!isNil$1(t)){var n=e.props||{},o=n.children,i=_objectWithoutProperties$y(n,_excluded$C),r=t.props||{},a=r.children,s=_objectWithoutProperties$y(r,_excluded2$d);return o&&a?shallowEqual$1(i,s)&&isChildrenEqual(o,a):!o&&!a&&shallowEqual$1(i,s)}return!1},renderByOrder=function(e,t){var n=[],o={};return toArray(e).forEach(function(e,i){if(isSvgElement(e))n.push(e);else if(e){var r=getDisplayName(e.type),a=t[r]||{},s=a.handler,l=a.once;if(s&&(!l||!o[r])){var c=s(e,r,i);n.push(c),o[r]=!0}}}),n},getReactEventByType=function(e){var t=e&&e.type;return t&&REACT_BROWSER_EVENT_MAP[t]?REACT_BROWSER_EVENT_MAP[t]:null},parseChildIndex=function(e,t){return toArray(t).indexOf(e)},_excluded$B=["children","width","height","viewBox","className","style","title","desc"];function _extends$G(){return _extends$G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$G.apply(this,arguments)}function _objectWithoutProperties$x(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$x(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose$x(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function Surface(e){var t=e.children,n=e.width,o=e.height,i=e.viewBox,r=e.className,a=e.style,s=e.title,l=e.desc,c=_objectWithoutProperties$x(e,_excluded$B),d=i||{width:n,height:o,x:0,y:0},p=clsx$1("recharts-surface",r);/* @__PURE__ */
|
|
3995
3995
|
return React__default.createElement("svg",_extends$G({},filterProps(c,!0,"svg"),{className:p,width:n,height:o,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),/* @__PURE__ */React__default.createElement("title",null,s),/* @__PURE__ */React__default.createElement("desc",null,l),t)}var _excluded$A=["children","className"];function _extends$F(){return _extends$F=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$F.apply(this,arguments)}function _objectWithoutProperties$w(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$w(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose$w(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var Layer=/* @__PURE__ */React__default.forwardRef(function(e,t){var n=e.children,o=e.className,i=_objectWithoutProperties$w(e,_excluded$A),r=clsx$1("recharts-layer",o);/* @__PURE__ */
|
|
3996
|
-
return React__default.createElement("g",_extends$F({className:r},filterProps(i,!0),{ref:t}),n)}),isDev$1="production"!==process.env.NODE_ENV,warn$1=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(isDev$1&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=0;console.warn(t.replace(/%s/g,function(){return o[r++]}))}},_baseSlice,hasRequired_baseSlice,_castSlice,hasRequired_castSlice,_hasUnicode,hasRequired_hasUnicode,_asciiToArray,hasRequired_asciiToArray,_unicodeToArray,hasRequired_unicodeToArray,_stringToArray,hasRequired_stringToArray,_createCaseFirst,hasRequired_createCaseFirst,upperFirst_1,hasRequiredUpperFirst;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;return hasRequired_baseSlice=1,_baseSlice=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(i);++o<i;)r[o]=e[o+t];return r}}function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var e=require_baseSlice();return _castSlice=function(t,n,o){var i=t.length;return o=void 0===o?i:o,!n&&o>=i?t:e(t,n,o)}}function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return _hasUnicode=function(t){return e.test(t)}}function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;return hasRequired_asciiToArray=1,_asciiToArray=function(e){return e.split("")}}function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[i,r,a].join("|")+")"+l+s+")*"),d="(?:"+[i+n+"?",n,r,a,t].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+c,"g");return _unicodeToArray=function(e){return e.match(p)||[]}}function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var e=require_asciiToArray(),t=require_hasUnicode(),n=require_unicodeToArray();return _stringToArray=function(o){return t(o)?n(o):e(o)}}function require_createCaseFirst(){if(hasRequired_createCaseFirst)return _createCaseFirst;hasRequired_createCaseFirst=1;var e=require_castSlice(),t=require_hasUnicode(),n=require_stringToArray(),o=requireToString();return _createCaseFirst=function(i){return function(r){r=o(r);var a=t(r)?n(r):void 0,s=a?a[0]:r.charAt(0),l=a?e(a,1).join(""):r.slice(1);return s[i]()+l}}}function requireUpperFirst(){if(hasRequiredUpperFirst)return upperFirst_1;hasRequiredUpperFirst=1;var e=require_createCaseFirst()("toUpperCase");return upperFirst_1=e}var upperFirstExports=requireUpperFirst();const upperFirst=/* @__PURE__ */getDefaultExportFromCjs(upperFirstExports);function constant$1(e){return function(){return e}}const cos$4=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append;const n=10**t;return function(e){this._+=e[0];for(let t=1,o=e.length;t<o;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}class Path{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?append:appendRound(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,o){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(e,t,n,o,i,r){this._append`C${+e},${+t},${+n},${+o},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,n,o,i){if(e=+e,t=+t,n=+n,o=+o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,a=this._y1,s=n-e,l=o-t,c=r-e,d=a-t,p=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>epsilon)if(Math.abs(d*s-l*c)>epsilon&&i){let u=n-r,m=o-a,h=s*s+l*l,g=u*u+m*m,x=Math.sqrt(h),f=Math.sqrt(p),y=i*Math.tan((pi-Math.acos((h+p-g)/(2*x*f)))/2),S=y/f,C=y/x;Math.abs(S-1)>epsilon&&this._append`L${e+S*c},${t+S*d}`,this._append`A${i},${i},0,0,${+(d*u>c*m)},${this._x1=e+C*s},${this._y1=t+C*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,o,i,r){if(e=+e,t=+t,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(o),s=n*Math.sin(o),l=e+a,c=t+s,d=1^r,p=r?o-i:i-o;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>epsilon||Math.abs(this._y1-c)>epsilon)&&this._append`L${l},${c}`,n&&(p<0&&(p=p%tau+tau),p>tauEpsilon?this._append`A${n},${n},0,1,${d},${e-a},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=c}`:p>epsilon&&this._append`A${n},${n},0,${+(p>=pi)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Path(t)}function array(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}function curveLinear(e){return new Linear(e)}function x$2(e){return e[0]}function y$1(e){return e[1]}function shapeLine(e,t){var n=constant$1(!0),o=null,i=curveLinear,r=null,a=withPath(s);function s(s){var l,c,d,p=(s=array(s)).length,u=!1;for(null==o&&(r=i(d=a())),l=0;l<=p;++l)!(l<p&&n(c=s[l],l,s))===u&&((u=!u)?r.lineStart():r.lineEnd()),u&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?x$2:constant$1(e),t="function"==typeof t?t:void 0===t?y$1:constant$1(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:constant$1(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=o&&(r=i(o)),s):i},s.context=function(e){return arguments.length?(null==e?o=r=null:r=i(o=e),s):o},s}function shapeArea(e,t,n){var o=null,i=constant$1(!0),r=null,a=curveLinear,s=null,l=withPath(c);function c(c){var d,p,u,m,h,g=(c=array(c)).length,x=!1,f=new Array(g),y=new Array(g);for(null==r&&(s=a(h=l())),d=0;d<=g;++d){if(!(d<g&&i(m=c[d],d,c))===x)if(x=!x)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),u=d-1;u>=p;--u)s.point(f[u],y[u]);s.lineEnd(),s.areaEnd()}x&&(f[d]=+e(m,d,c),y[d]=+t(m,d,c),s.point(o?+o(m,d,c):f[d],n?+n(m,d,c):y[d]))}if(h)return s=null,h+""||null}function d(){return shapeLine().defined(i).curve(a).context(r)}return e="function"==typeof e?e:void 0===e?x$2:constant$1(+e),t="function"==typeof t?t:constant$1(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?y$1:constant$1(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),o=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),c):e},c.x1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:constant$1(+e),c):o},c.y=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:constant$1(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(o).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:constant$1(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=r&&(s=a(r)),c):a},c.context=function(e){return arguments.length?(null==e?r=s=null:s=a(r=e),c):r},c}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class Bump{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}const symbolCircle={draw(e,t){const n=sqrt$1(t/pi$1);e.moveTo(n,0),e.arc(0,0,n,0,tau$1)}},symbolCross={draw(e,t){const n=sqrt$1(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tan30=sqrt$1(1/3),tan30_2=2*tan30,symbolDiamond={draw(e,t){const n=sqrt$1(t/tan30_2),o=n*tan30;e.moveTo(0,-n),e.lineTo(o,0),e.lineTo(0,n),e.lineTo(-o,0),e.closePath()}},symbolSquare={draw(e,t){const n=sqrt$1(t),o=-n/2;e.rect(o,o,n,n)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos$4(tau$1/10)*kr,symbolStar={draw(e,t){const n=sqrt$1(t*ka),o=kx*n,i=ky*n;e.moveTo(0,-n),e.lineTo(o,i);for(let r=1;r<5;++r){const t=tau$1*r/5,a=cos$4(t),s=sin(t);e.lineTo(s*n,-a*n),e.lineTo(a*o-s*i,s*o+a*i)}e.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(e,t){const n=-sqrt$1(t/(3*sqrt3));e.moveTo(0,2*n),e.lineTo(-sqrt3*n,-n),e.lineTo(sqrt3*n,-n),e.closePath()}},c$3=-.5,s$3=sqrt$1(3)/2,k$1=1/sqrt$1(12),a$3=3*(k$1/2+1),symbolWye={draw(e,t){const n=sqrt$1(t/a$3),o=n/2,i=n*k$1,r=o,a=n*k$1+n,s=-r,l=a;e.moveTo(o,i),e.lineTo(r,a),e.lineTo(s,l),e.lineTo(c$3*o-s$3*i,s$3*o+c$3*i),e.lineTo(c$3*r-s$3*a,s$3*r+c$3*a),e.lineTo(c$3*s-s$3*l,s$3*s+c$3*l),e.lineTo(c$3*o+s$3*i,c$3*i-s$3*o),e.lineTo(c$3*r+s$3*a,c$3*a-s$3*r),e.lineTo(c$3*s+s$3*l,c$3*l-s$3*s),e.closePath()}};function Symbol$1(e,t){let n=null,o=withPath(i);function i(){let i;if(n||(n=i=o()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:constant$1(e||symbolCircle),t="function"==typeof t?t:constant$1(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}function noop$7(){}function point$2(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}function curveBasisOpen(e){return new BasisOpen(e)}function LinearClosed(e){this._context=e}function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,n){var o=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(o||i<0&&-0),a=(n-e._y1)/(i||o<0&&-0),s=(r*i+a*o)/(o+i);return(sign(r)+sign(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(s))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point$1(e,t,n){var o=e._x0,i=e._y0,r=e._x1,a=e._y1,s=(r-o)/3;e._context.bezierCurveTo(o+s,i+s*t,r-s,a-s*n,r,a)}function MonotoneX(e){this._context=e}function MonotoneY(e){this._context=new ReflectContext(e)}function ReflectContext(e){this._context=e}function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}function controlPoints(e){var t,n,o=e.length-1,i=new Array(o),r=new Array(o),a=new Array(o);for(i[0]=0,r[0]=2,a[0]=e[0]+2*e[1],t=1;t<o-1;++t)i[t]=1,r[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[o-1]=2,r[o-1]=7,a[o-1]=8*e[o-1]+e[o],t=1;t<o;++t)n=i[t]/r[t-1],r[t]-=n,a[t]-=n*a[t-1];for(i[o-1]=a[o-1]/r[o-1],t=o-2;t>=0;--t)i[t]=(a[t]-i[t+1])/r[t];for(r[o-1]=(e[o]+i[o-1])/2,t=0;t<o-1;++t)r[t]=2*e[t+1]-i[t+1];return[i,r]}function curveNatural(e){return new Natural(e)}function Step$1(e,t){this._context=e,this._t=t}function curveStep(e){return new Step$1(e,.5)}function stepBefore(e){return new Step$1(e,0)}function stepAfter(e){return new Step$1(e,1)}function stackOffsetNone(e,t){if((i=e.length)>1)for(var n,o,i,r=1,a=e[t[0]],s=a.length;r<i;++r)for(o=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function stackOrderNone(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stackSeries(e){const t=[];return t.key=e,t}function shapeStack(){var e=constant$1([]),t=stackOrderNone,n=stackOffsetNone,o=stackValue;function i(i){var r,a,s=Array.from(e.apply(this,arguments),stackSeries),l=s.length,c=-1;for(const e of i)for(r=0,++c;r<l;++r)(s[r][c]=[0,+o(e,s[r].key,c,i)]).data=e;for(r=0,a=array(t(s));r<l;++r)s[a[r]].index=r;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(Array.from(t)),i):e},i.value=function(e){return arguments.length?(o="function"==typeof e?e:constant$1(+e),i):o},i.order=function(e){return arguments.length?(t=null==e?stackOrderNone:"function"==typeof e?e:constant$1(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?stackOffsetNone:e,i):n},i}function stackOffsetExpand(e,t){if((o=e.length)>0){for(var n,o,i,r=0,a=e[0].length;r<a;++r){for(i=n=0;n<o;++n)i+=e[n][r][1]||0;if(i)for(n=0;n<o;++n)e[n][r][1]/=i}stackOffsetNone(e,t)}}function stackOffsetSilhouette(e,t){if((n=e.length)>0){for(var n,o=0,i=e[t[0]],r=i.length;o<r;++o){for(var a=0,s=0;a<n;++a)s+=e[a][o][1]||0;i[o][1]+=i[o][0]=-s/2}stackOffsetNone(e,t)}}function stackOffsetWiggle(e,t){if((i=e.length)>0&&(o=(n=e[t[0]]).length)>0){for(var n,o,i,r=0,a=1;a<o;++a){for(var s=0,l=0,c=0;s<i;++s){for(var d=e[t[s]],p=d[a][1]||0,u=(p-(d[a-1][1]||0))/2,m=0;m<s;++m){var h=e[t[m]];u+=(h[a][1]||0)-(h[a-1][1]||0)}l+=p,c+=u*p}n[a-1][1]+=n[a-1][0]=r,l&&(r-=c/l)}n[a-1][1]+=n[a-1][0]=r,stackOffsetNone(e,t)}}function _typeof$13(e){return(_typeof$13="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)}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisClosed.prototype={areaStart:noop$7,areaEnd:noop$7,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,o):this._context.moveTo(n,o);break;case 3:this._point=4;default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},LinearClosed.prototype={areaStart:noop$7,areaEnd:noop$7,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,n=slope3(this,e,t)),n);break;default:point$1(this,this._t0,n=slope3(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)},ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,o,i,r){this._context.bezierCurveTo(t,e,o,n,r,i)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var o=controlPoints(e),i=controlPoints(t),r=0,a=1;a<n;++r,++a)this._context.bezierCurveTo(o[0][r],i[0][r],o[1][r],i[1][r],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Step$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var _excluded$z=["type","size","sizeType"];function _extends$E(){return _extends$E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$E.apply(this,arguments)}function ownKeys$Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread$S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$Q(Object(n),!0).forEach(function(t){_defineProperty$$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty$$(e,t,n){return(t=_toPropertyKey$Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$Z(e){var t=_toPrimitive$Z(e,"string");return"symbol"==_typeof$13(t)?t:t+""}function _toPrimitive$Z(e,t){if("object"!=_typeof$13(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=_typeof$13(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties$v(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$v(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose$v(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var symbolFactories={symbolCircle:symbolCircle,symbolCross:symbolCross,symbolDiamond:symbolDiamond,symbolSquare:symbolSquare,symbolStar:symbolStar,symbolTriangle:symbolTriangle,symbolWye:symbolWye},RADIAN$2=Math.PI/180,getSymbolFactory=function(e){var t="symbol".concat(upperFirst(e));return symbolFactories[t]||symbolCircle},calculateAreaSize=function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var o=18*RADIAN$2;return 1.25*e*e*(Math.tan(o)-Math.tan(2*o)*Math.pow(Math.tan(o),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},registerSymbol=function(e,t){symbolFactories["symbol".concat(upperFirst(e))]=t},Symbols=function(e){var t,n=e.type,o=void 0===n?"circle":n,i=e.size,r=void 0===i?64:i,a=e.sizeType,s=void 0===a?"area":a,l=_objectSpread$S(_objectSpread$S({},_objectWithoutProperties$v(e,_excluded$z)),{},{type:o,size:r,sizeType:s}),c=l.className,d=l.cx,p=l.cy,u=filterProps(l,!0);return d===+d&&p===+p&&r===+r?/* @__PURE__ */React__default.createElement("path",_extends$E({},u,{className:clsx$1("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:(t=getSymbolFactory(o),Symbol$1().type(t).size(calculateAreaSize(r,s,o))())})):null};function _typeof$12(e){return(_typeof$12="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 _extends$D(){return _extends$D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$D.apply(this,arguments)}function ownKeys$P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread$R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$P(Object(n),!0).forEach(function(t){_defineProperty$_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _classCallCheck$z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey$Y(o.key),o)}}function _createClass$z(e,t,n){return t&&_defineProperties$y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$m(e,t,n){return t=_getPrototypeOf$o(t),_possibleConstructorReturn$o(e,_isNativeReflectConstruct$o()?Reflect.construct(t,n||[],_getPrototypeOf$o(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$o(e,t){if(t&&("object"===_typeof$12(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$o(e)}function _assertThisInitialized$o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$o=function(){return!!e})()}function _getPrototypeOf$o(e){return(_getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits$o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$o(e,t)}function _setPrototypeOf$o(e,t){return(_setPrototypeOf$o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty$_(e,t,n){return(t=_toPropertyKey$Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$Y(e){var t=_toPrimitive$Y(e,"string");return"symbol"==_typeof$12(t)?t:t+""}function _toPrimitive$Y(e,t){if("object"!=_typeof$12(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=_typeof$12(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}Symbols.registerSymbol=registerSymbol;var SIZE=32,DefaultLegendContent=/* @__PURE__ */function(e){function t(){return _classCallCheck$z(this,t),_callSuper$m(this,t,arguments)}return _inherits$o(t,PureComponent),_createClass$z(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=SIZE/2,o=SIZE/6,i=SIZE/3,r=e.inactive?t:e.color;if("plainline"===e.type)/* @__PURE__ */
|
|
3996
|
+
return React__default.createElement("g",_extends$F({className:r},filterProps(i,!0),{ref:t}),n)}),isDev$1="production"!==process.env.NODE_ENV,warn$1=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(isDev$1&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var r=0;console.warn(t.replace(/%s/g,function(){return o[r++]}))}},_baseSlice,hasRequired_baseSlice,_castSlice,hasRequired_castSlice,_hasUnicode,hasRequired_hasUnicode,_asciiToArray,hasRequired_asciiToArray,_unicodeToArray,hasRequired_unicodeToArray,_stringToArray,hasRequired_stringToArray,_createCaseFirst,hasRequired_createCaseFirst,upperFirst_1,hasRequiredUpperFirst;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;return hasRequired_baseSlice=1,_baseSlice=function(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(i);++o<i;)r[o]=e[o+t];return r}}function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var e=require_baseSlice();return _castSlice=function(t,n,o){var i=t.length;return o=void 0===o?i:o,!n&&o>=i?t:e(t,n,o)}}function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return _hasUnicode=function(t){return e.test(t)}}function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;return hasRequired_asciiToArray=1,_asciiToArray=function(e){return e.split("")}}function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var e="\\ud800-\\udfff",t="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[i,r,a].join("|")+")"+l+s+")*"),d="(?:"+[i+n+"?",n,r,a,t].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+c,"g");return _unicodeToArray=function(e){return e.match(p)||[]}}function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var e=require_asciiToArray(),t=require_hasUnicode(),n=require_unicodeToArray();return _stringToArray=function(o){return t(o)?n(o):e(o)}}function require_createCaseFirst(){if(hasRequired_createCaseFirst)return _createCaseFirst;hasRequired_createCaseFirst=1;var e=require_castSlice(),t=require_hasUnicode(),n=require_stringToArray(),o=requireToString();return _createCaseFirst=function(i){return function(r){r=o(r);var a=t(r)?n(r):void 0,s=a?a[0]:r.charAt(0),l=a?e(a,1).join(""):r.slice(1);return s[i]()+l}}}function requireUpperFirst(){if(hasRequiredUpperFirst)return upperFirst_1;hasRequiredUpperFirst=1;var e=require_createCaseFirst()("toUpperCase");return upperFirst_1=e}var upperFirstExports=requireUpperFirst();const upperFirst=/* @__PURE__ */getDefaultExportFromCjs(upperFirstExports);function constant$1(e){return function(){return e}}const cos$4=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append;const n=10**t;return function(e){this._+=e[0];for(let t=1,o=e.length;t<o;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}class Path{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?append:appendRound(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,o){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(e,t,n,o,i,r){this._append`C${+e},${+t},${+n},${+o},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,n,o,i){if(e=+e,t=+t,n=+n,o=+o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,a=this._y1,s=n-e,l=o-t,c=r-e,d=a-t,p=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>epsilon)if(Math.abs(d*s-l*c)>epsilon&&i){let u=n-r,m=o-a,h=s*s+l*l,g=u*u+m*m,x=Math.sqrt(h),f=Math.sqrt(p),y=i*Math.tan((pi-Math.acos((h+p-g)/(2*x*f)))/2),S=y/f,C=y/x;Math.abs(S-1)>epsilon&&this._append`L${e+S*c},${t+S*d}`,this._append`A${i},${i},0,0,${+(d*u>c*m)},${this._x1=e+C*s},${this._y1=t+C*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,o,i,r){if(e=+e,t=+t,r=!!r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(o),s=n*Math.sin(o),l=e+a,c=t+s,d=1^r,p=r?o-i:i-o;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>epsilon||Math.abs(this._y1-c)>epsilon)&&this._append`L${l},${c}`,n&&(p<0&&(p=p%tau+tau),p>tauEpsilon?this._append`A${n},${n},0,1,${d},${e-a},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=c}`:p>epsilon&&this._append`A${n},${n},0,${+(p>=pi)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Path(t)}function array(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}function curveLinear(e){return new Linear(e)}function x$2(e){return e[0]}function y$1(e){return e[1]}function shapeLine(e,t){var n=constant$1(!0),o=null,i=curveLinear,r=null,a=withPath(s);function s(s){var l,c,d,p=(s=array(s)).length,u=!1;for(null==o&&(r=i(d=a())),l=0;l<=p;++l)!(l<p&&n(c=s[l],l,s))===u&&((u=!u)?r.lineStart():r.lineEnd()),u&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?x$2:constant$1(e),t="function"==typeof t?t:void 0===t?y$1:constant$1(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:constant$1(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=o&&(r=i(o)),s):i},s.context=function(e){return arguments.length?(null==e?o=r=null:r=i(o=e),s):o},s}function shapeArea(e,t,n){var o=null,i=constant$1(!0),r=null,a=curveLinear,s=null,l=withPath(c);function c(c){var d,p,u,m,h,g=(c=array(c)).length,x=!1,f=new Array(g),y=new Array(g);for(null==r&&(s=a(h=l())),d=0;d<=g;++d){if(!(d<g&&i(m=c[d],d,c))===x)if(x=!x)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),u=d-1;u>=p;--u)s.point(f[u],y[u]);s.lineEnd(),s.areaEnd()}x&&(f[d]=+e(m,d,c),y[d]=+t(m,d,c),s.point(o?+o(m,d,c):f[d],n?+n(m,d,c):y[d]))}if(h)return s=null,h+""||null}function d(){return shapeLine().defined(i).curve(a).context(r)}return e="function"==typeof e?e:void 0===e?x$2:constant$1(+e),t="function"==typeof t?t:constant$1(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?y$1:constant$1(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),o=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(+t),c):e},c.x1=function(e){return arguments.length?(o=null==e?null:"function"==typeof e?e:constant$1(+e),c):o},c.y=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:constant$1(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(o).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:constant$1(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=r&&(s=a(r)),c):a},c.context=function(e){return arguments.length?(null==e?r=s=null:s=a(r=e),c):r},c}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class Bump{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}const symbolCircle={draw(e,t){const n=sqrt$1(t/pi$1);e.moveTo(n,0),e.arc(0,0,n,0,tau$1)}},symbolCross={draw(e,t){const n=sqrt$1(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tan30=sqrt$1(1/3),tan30_2=2*tan30,symbolDiamond={draw(e,t){const n=sqrt$1(t/tan30_2),o=n*tan30;e.moveTo(0,-n),e.lineTo(o,0),e.lineTo(0,n),e.lineTo(-o,0),e.closePath()}},symbolSquare={draw(e,t){const n=sqrt$1(t),o=-n/2;e.rect(o,o,n,n)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos$4(tau$1/10)*kr,symbolStar={draw(e,t){const n=sqrt$1(t*ka),o=kx*n,i=ky*n;e.moveTo(0,-n),e.lineTo(o,i);for(let r=1;r<5;++r){const t=tau$1*r/5,a=cos$4(t),s=sin(t);e.lineTo(s*n,-a*n),e.lineTo(a*o-s*i,s*o+a*i)}e.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(e,t){const n=-sqrt$1(t/(3*sqrt3));e.moveTo(0,2*n),e.lineTo(-sqrt3*n,-n),e.lineTo(sqrt3*n,-n),e.closePath()}},c$3=-.5,s$3=sqrt$1(3)/2,k$1=1/sqrt$1(12),a$3=3*(k$1/2+1),symbolWye={draw(e,t){const n=sqrt$1(t/a$3),o=n/2,i=n*k$1,r=o,a=n*k$1+n,s=-r,l=a;e.moveTo(o,i),e.lineTo(r,a),e.lineTo(s,l),e.lineTo(c$3*o-s$3*i,s$3*o+c$3*i),e.lineTo(c$3*r-s$3*a,s$3*r+c$3*a),e.lineTo(c$3*s-s$3*l,s$3*s+c$3*l),e.lineTo(c$3*o+s$3*i,c$3*i-s$3*o),e.lineTo(c$3*r+s$3*a,c$3*a-s$3*r),e.lineTo(c$3*s+s$3*l,c$3*l-s$3*s),e.closePath()}};function Symbol$1(e,t){let n=null,o=withPath(i);function i(){let i;if(n||(n=i=o()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return e="function"==typeof e?e:constant$1(e||symbolCircle),t="function"==typeof t?t:constant$1(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:constant$1(+e),i):t},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i}function noop$8(){}function point$2(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}function curveBasisOpen(e){return new BasisOpen(e)}function LinearClosed(e){this._context=e}function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,n){var o=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(o||i<0&&-0),a=(n-e._y1)/(i||o<0&&-0),s=(r*i+a*o)/(o+i);return(sign(r)+sign(a))*Math.min(Math.abs(r),Math.abs(a),.5*Math.abs(s))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point$1(e,t,n){var o=e._x0,i=e._y0,r=e._x1,a=e._y1,s=(r-o)/3;e._context.bezierCurveTo(o+s,i+s*t,r-s,a-s*n,r,a)}function MonotoneX(e){this._context=e}function MonotoneY(e){this._context=new ReflectContext(e)}function ReflectContext(e){this._context=e}function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}function controlPoints(e){var t,n,o=e.length-1,i=new Array(o),r=new Array(o),a=new Array(o);for(i[0]=0,r[0]=2,a[0]=e[0]+2*e[1],t=1;t<o-1;++t)i[t]=1,r[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[o-1]=2,r[o-1]=7,a[o-1]=8*e[o-1]+e[o],t=1;t<o;++t)n=i[t]/r[t-1],r[t]-=n,a[t]-=n*a[t-1];for(i[o-1]=a[o-1]/r[o-1],t=o-2;t>=0;--t)i[t]=(a[t]-i[t+1])/r[t];for(r[o-1]=(e[o]+i[o-1])/2,t=0;t<o-1;++t)r[t]=2*e[t+1]-i[t+1];return[i,r]}function curveNatural(e){return new Natural(e)}function Step$1(e,t){this._context=e,this._t=t}function curveStep(e){return new Step$1(e,.5)}function stepBefore(e){return new Step$1(e,0)}function stepAfter(e){return new Step$1(e,1)}function stackOffsetNone(e,t){if((i=e.length)>1)for(var n,o,i,r=1,a=e[t[0]],s=a.length;r<i;++r)for(o=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function stackOrderNone(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stackSeries(e){const t=[];return t.key=e,t}function shapeStack(){var e=constant$1([]),t=stackOrderNone,n=stackOffsetNone,o=stackValue;function i(i){var r,a,s=Array.from(e.apply(this,arguments),stackSeries),l=s.length,c=-1;for(const e of i)for(r=0,++c;r<l;++r)(s[r][c]=[0,+o(e,s[r].key,c,i)]).data=e;for(r=0,a=array(t(s));r<l;++r)s[a[r]].index=r;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:constant$1(Array.from(t)),i):e},i.value=function(e){return arguments.length?(o="function"==typeof e?e:constant$1(+e),i):o},i.order=function(e){return arguments.length?(t=null==e?stackOrderNone:"function"==typeof e?e:constant$1(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?stackOffsetNone:e,i):n},i}function stackOffsetExpand(e,t){if((o=e.length)>0){for(var n,o,i,r=0,a=e[0].length;r<a;++r){for(i=n=0;n<o;++n)i+=e[n][r][1]||0;if(i)for(n=0;n<o;++n)e[n][r][1]/=i}stackOffsetNone(e,t)}}function stackOffsetSilhouette(e,t){if((n=e.length)>0){for(var n,o=0,i=e[t[0]],r=i.length;o<r;++o){for(var a=0,s=0;a<n;++a)s+=e[a][o][1]||0;i[o][1]+=i[o][0]=-s/2}stackOffsetNone(e,t)}}function stackOffsetWiggle(e,t){if((i=e.length)>0&&(o=(n=e[t[0]]).length)>0){for(var n,o,i,r=0,a=1;a<o;++a){for(var s=0,l=0,c=0;s<i;++s){for(var d=e[t[s]],p=d[a][1]||0,u=(p-(d[a-1][1]||0))/2,m=0;m<s;++m){var h=e[t[m]];u+=(h[a][1]||0)-(h[a-1][1]||0)}l+=p,c+=u*p}n[a-1][1]+=n[a-1][0]=r,l&&(r-=c/l)}n[a-1][1]+=n[a-1][0]=r,stackOffsetNone(e,t)}}function _typeof$13(e){return(_typeof$13="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)}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisClosed.prototype={areaStart:noop$8,areaEnd:noop$8,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,o):this._context.moveTo(n,o);break;case 3:this._point=4;default:point$2(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},LinearClosed.prototype={areaStart:noop$8,areaEnd:noop$8,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,n=slope3(this,e,t)),n);break;default:point$1(this,this._t0,n=slope3(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)},ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,o,i,r){this._context.bezierCurveTo(t,e,o,n,r,i)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var o=controlPoints(e),i=controlPoints(t),r=0,a=1;a<n;++r,++a)this._context.bezierCurveTo(o[0][r],i[0][r],o[1][r],i[1][r],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Step$1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var _excluded$z=["type","size","sizeType"];function _extends$E(){return _extends$E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$E.apply(this,arguments)}function ownKeys$Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread$S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$Q(Object(n),!0).forEach(function(t){_defineProperty$$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty$$(e,t,n){return(t=_toPropertyKey$Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$Z(e){var t=_toPrimitive$Z(e,"string");return"symbol"==_typeof$13(t)?t:t+""}function _toPrimitive$Z(e,t){if("object"!=_typeof$13(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=_typeof$13(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties$v(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$v(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _objectWithoutPropertiesLoose$v(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var symbolFactories={symbolCircle:symbolCircle,symbolCross:symbolCross,symbolDiamond:symbolDiamond,symbolSquare:symbolSquare,symbolStar:symbolStar,symbolTriangle:symbolTriangle,symbolWye:symbolWye},RADIAN$2=Math.PI/180,getSymbolFactory=function(e){var t="symbol".concat(upperFirst(e));return symbolFactories[t]||symbolCircle},calculateAreaSize=function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var o=18*RADIAN$2;return 1.25*e*e*(Math.tan(o)-Math.tan(2*o)*Math.pow(Math.tan(o),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},registerSymbol=function(e,t){symbolFactories["symbol".concat(upperFirst(e))]=t},Symbols=function(e){var t,n=e.type,o=void 0===n?"circle":n,i=e.size,r=void 0===i?64:i,a=e.sizeType,s=void 0===a?"area":a,l=_objectSpread$S(_objectSpread$S({},_objectWithoutProperties$v(e,_excluded$z)),{},{type:o,size:r,sizeType:s}),c=l.className,d=l.cx,p=l.cy,u=filterProps(l,!0);return d===+d&&p===+p&&r===+r?/* @__PURE__ */React__default.createElement("path",_extends$E({},u,{className:clsx$1("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:(t=getSymbolFactory(o),Symbol$1().type(t).size(calculateAreaSize(r,s,o))())})):null};function _typeof$12(e){return(_typeof$12="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 _extends$D(){return _extends$D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_extends$D.apply(this,arguments)}function ownKeys$P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread$R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$P(Object(n),!0).forEach(function(t){_defineProperty$_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _classCallCheck$z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey$Y(o.key),o)}}function _createClass$z(e,t,n){return t&&_defineProperties$y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$m(e,t,n){return t=_getPrototypeOf$o(t),_possibleConstructorReturn$o(e,_isNativeReflectConstruct$o()?Reflect.construct(t,n||[],_getPrototypeOf$o(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$o(e,t){if(t&&("object"===_typeof$12(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$o(e)}function _assertThisInitialized$o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct$o=function(){return!!e})()}function _getPrototypeOf$o(e){return(_getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits$o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$o(e,t)}function _setPrototypeOf$o(e,t){return(_setPrototypeOf$o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty$_(e,t,n){return(t=_toPropertyKey$Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$Y(e){var t=_toPrimitive$Y(e,"string");return"symbol"==_typeof$12(t)?t:t+""}function _toPrimitive$Y(e,t){if("object"!=_typeof$12(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=_typeof$12(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}Symbols.registerSymbol=registerSymbol;var SIZE=32,DefaultLegendContent=/* @__PURE__ */function(e){function t(){return _classCallCheck$z(this,t),_callSuper$m(this,t,arguments)}return _inherits$o(t,PureComponent),_createClass$z(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=SIZE/2,o=SIZE/6,i=SIZE/3,r=e.inactive?t:e.color;if("plainline"===e.type)/* @__PURE__ */
|
|
3997
3997
|
return React__default.createElement("line",{strokeWidth:4,fill:"none",stroke:r,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:SIZE,y2:n,className:"recharts-legend-icon"});if("line"===e.type)/* @__PURE__ */
|
|
3998
3998
|
return React__default.createElement("path",{strokeWidth:4,fill:"none",stroke:r,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(SIZE,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)/* @__PURE__ */
|
|
3999
3999
|
return React__default.createElement("path",{stroke:"none",fill:r,d:"M0,".concat(SIZE/8,"h").concat(SIZE,"v").concat(3*SIZE/4,"h").concat(-SIZE,"z"),className:"recharts-legend-icon"});if(/* @__PURE__ */React__default.isValidElement(e.legendIcon)){var a=_objectSpread$R({},e);return delete a.legendIcon,/* @__PURE__ */React__default.cloneElement(e.legendIcon,a)}/* @__PURE__ */
|
|
@@ -4855,7 +4855,7 @@ return jsxRuntimeExports.jsxs(ChipsWrap$1,{children:[i.map(e=>/* @__PURE__ */jsx
|
|
|
4855
4855
|
background: ${e=>e.theme.colors.brandColorJadeLight};
|
|
4856
4856
|
color: ${e=>e.theme.colors.brandColorJadeDark};
|
|
4857
4857
|
${textStyles.extraSmallSemiBold.css}
|
|
4858
|
-
`;function noop$6(){}function returnTrue(){return!0}function charIsNumber(e){return!!(e||"").match(/\d/)}function isNil(e){return null==e}function escapeRegExp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function getThousandsGroupRegex(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function applyThousandSeparator(e,t,n){var o=getThousandsGroupRegex(n),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(o,"$1"+t)}function splitDecimal(e,t){void 0===t&&(t=!0);var n="-"===e[0],o=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNagation:n,addNegation:o}}function fixLeadingZero(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),o=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+o+(i?"."+i:"")}function limitToScale(e,t,n){for(var o="",i=n?"0":"",r=0;r<=t-1;r++)o+=e[r]||i;return o}function repeat$1(e,t){return Array(t+1).join(e)}function toNumericString(e){var t="-"===(e+="")[0]?"-":"";t&&(e=e.substring(1));var n=e.split(/[eE]/g),o=n[0],i=n[1];if(!(i=Number(i)))return t+o;var r=1+i,a=(o=o.replace(".","")).length;return r<0?o="0."+repeat$1("0",Math.abs(r))+o:r>=a?o+=repeat$1("0",r-a):o=(o.substring(0,r)||"0")+"."+o.substring(r),t+o}function roundToPrecision(e,t,n){if(-1!==["","-"].indexOf(e))return e;var o=-1!==e.indexOf(".")&&t,i=splitDecimal(e),r=i.beforeDecimal,a=i.afterDecimal,s=i.hasNagation,l=parseFloat("0."+(a||"0")),c=(a.length<=t?"0."+a:l.toFixed(t)).split(".");return""+(s?"-":"")+r.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},c[0])+(o?".":"")+limitToScale(c[1]||"",Math.min(t,a.length),n)}function setCaretPosition$1(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function findChangedIndex(e,t){for(var n=0,o=0,i=e.length,r=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-o]===t[r-1-o]&&r-o>n&&i-o>n;)o++;return{start:n,end:i-o}}function clamp(e,t,n){return Math.min(Math.max(e,t),n)}function getCurrentCaretPosition(e){return Math.max(e.selectionStart,e.selectionEnd)}function addInputMode(e){return e||"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function objectWithoutProperties(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var defaultProps$2={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:noop$6,onChange:noop$6,onKeyDown:noop$6,onMouseUp:noop$6,onFocus:noop$6,onBlur:noop$6,isAllowed:returnTrue},NumberFormat=/* @__PURE__ */function(e){function t(t){e.call(this,t);var n=t.defaultValue;this.validateProps();var o=this.formatValueProp(n);this.state={value:o,numAsString:this.removeFormatting(o),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.setState({mounted:!0})},t.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},t.prototype.updateValueIfRequired=function(e){var t=this,n=t.props,o=t.state,i=t.focusedElm,r=o.value,a=o.numAsString;if(void 0===a&&(a=""),e!==n){this.validateProps();var s=this.formatNumString(a),l=isNil(n.value)?s:this.formatValueProp(),c=this.removeFormatting(l),d=parseFloat(c),p=parseFloat(a);(isNaN(d)&&isNaN(p)||d===p)&&s===r&&(null!==i||l===r)||this.updateValue({formattedValue:l,numAsString:c,input:i,source:"prop",event:null})}},t.prototype.getFloatString=function(e){void 0===e&&(e="");var t=this.props.decimalScale,n=this.getSeparators().decimalSeparator,o=this.getNumberRegex(!0),i="-"===e[0];i&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var r=(e=(e.match(o)||[]).join("").replace(n,".")).indexOf(".");return-1!==r&&(e=e.substring(0,r)+"."+e.substring(r+1,e.length).replace(new RegExp(escapeRegExp(n),"g"),"")),i&&(e="-"+e),e},t.prototype.getNumberRegex=function(e,t){var n=this.props,o=n.format,i=n.decimalScale,r=n.customNumerals,a=this.getSeparators().decimalSeparator;return new RegExp("[0-9"+(r?r.join(""):"")+"]"+(!a||0===i||t||o?"":"|"+escapeRegExp(a)),e?"g":void 0)},t.prototype.getSeparators=function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,o=t.allowedDecimalSeparators;return!0===n&&(n=","),o||(o=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:o}},t.prototype.getMaskAtIndex=function(e){var t=this.props.mask;return void 0===t&&(t=" "),"string"==typeof t?t:t[e]||" "},t.prototype.getValueObject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},t.prototype.validateProps=function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,o=t.thousandSeparator;if(n===o)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+o+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask "+e+" should not contain numeric character;\n ")},t.prototype.setPatchedCaretPosition=function(e,t,n){setCaretPosition$1(e,t),this.caretPositionTimeout=setTimeout(function(){e.value===n&&setCaretPosition$1(e,t)},0)},t.prototype.correctCaretPosition=function(e,t,n){var o=this.props,i=o.prefix,r=o.suffix,a=o.format;if(""===e)return 0;if(t=clamp(t,0,e.length),!a){var s="-"===e[0];return clamp(t,i.length+(s?1:0),e.length-r.length)}if("function"==typeof a)return t;if("#"===a[t]&&charIsNumber(e[t]))return t;if("#"===a[t-1]&&charIsNumber(e[t-1]))return t;var l=a.indexOf("#");t=clamp(t,l,a.lastIndexOf("#")+1);for(var c=a.substring(t,a.length).indexOf("#"),d=t,p=t+(-1===c?0:c);d>l&&("#"!==a[d]||!charIsNumber(e[d]));)d-=1;return!charIsNumber(e[p])||"left"===n&&t!==l||t-d<p-t?charIsNumber(e[d])?d+1:d:p},t.prototype.getCaretPosition=function(e,t,n){var o,i,r=this.props.format,a=this.state.value,s=this.getNumberRegex(!0),l=(e.match(s)||[]).join(""),c=(t.match(s)||[]).join("");for(o=0,i=0;i<n;i++){var d=e[i]||"",p=t[o]||"";if((d.match(s)||d===p)&&("0"!==d||!p.match(s)||"0"===p||l.length===c.length)){for(;d!==t[o]&&o<t.length;)o++;o++}}return"string"!=typeof r||a||(o=t.length),o=this.correctCaretPosition(t,o)},t.prototype.removePrefixAndSuffix=function(e){var t=this.props,n=t.format,o=t.prefix,i=t.suffix;if(!n&&e){var r="-"===e[0];r&&(e=e.substring(1,e.length));var a=(e=o&&0===e.indexOf(o)?e.substring(o.length,e.length):e).lastIndexOf(i);e=i&&-1!==a&&a===e.length-i.length?e.substring(0,a):e,r&&(e="-"+e)}return e},t.prototype.removePatternFormatting=function(e){for(var t=this.props.format.split("#").filter(function(e){return""!==e}),n=0,o="",i=0,r=t.length;i<=r;i++){var a=t[i]||"",s=i===r?e.length:e.indexOf(a,n);if(-1===s){o=e;break}o+=e.substring(n,s),n=s+a.length}return(o.match(this.getNumberRegex(!0))||[]).join("")},t.prototype.removeFormatting=function(e){var t=this.props,n=t.format,o=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof o?o(e):(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e},t.prototype.formatWithPattern=function(e){for(var t=this.props.format,n=0,o=t.split(""),i=0,r=t.length;i<r;i++)"#"===t[i]&&(o[i]=e[n]||this.getMaskAtIndex(n),n+=1);return o.join("")},t.prototype.formatAsNumber=function(e){var t=this.props,n=t.decimalScale,o=t.fixedDecimalScale,i=t.prefix,r=t.suffix,a=t.allowNegative,s=t.thousandsGroupStyle,l=this.getSeparators(),c=l.thousandSeparator,d=l.decimalSeparator,p=-1!==e.indexOf(".")||n&&o,u=splitDecimal(e,a),m=u.beforeDecimal,h=u.afterDecimal,g=u.addNegation;return void 0!==n&&(h=limitToScale(h,n,o)),c&&(m=applyThousandSeparator(m,c,s)),i&&(m=i+m),r&&(h+=r),g&&(m="-"+m),e=m+(p&&d||"")+h},t.prototype.formatNumString=function(e){void 0===e&&(e="");var t=this.props,n=t.format,o=t.allowEmptyFormatting,i=t.customNumerals,r=e;if(i&&10===i.length){var a=new RegExp("["+i.join("")+"]","g");r=e.replace(a,function(e){return i.indexOf(e).toString()})}return r=""!==e||o?"-"!==e||n?"string"==typeof n?this.formatWithPattern(r):"function"==typeof n?n(r):this.formatAsNumber(r):"-":""},t.prototype.formatValueProp=function(e){var t=this.props,n=t.format,o=t.decimalScale,i=t.fixedDecimalScale,r=t.allowEmptyFormatting,a=this.props,s=a.value,l=a.isNumericString,c=!(s=isNil(s)?e:s)&&0!==s;return c&&r&&(s=""),c&&!r?"":("number"==typeof s&&(s=toNumericString(s),l=!0),"Infinity"===s&&l&&(s=""),l&&!n&&"number"==typeof o&&(s=roundToPrecision(s,o,i)),l?this.formatNumString(s):this.formatInput(s))},t.prototype.formatNegation=function(e){void 0===e&&(e="");var t=this.props.allowNegative,n=new RegExp("(-)"),o=new RegExp("(-)(.)*(-)"),i=n.test(e),r=o.test(e);return e=e.replace(/-/g,""),i&&!r&&t&&(e="-"+e),e},t.prototype.formatInput=function(e){return void 0===e&&(e=""),this.props.format||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},t.prototype.isCharacterAFormat=function(e,t){var n=this.props,o=n.format,i=n.prefix,r=n.suffix,a=n.decimalScale,s=n.fixedDecimalScale,l=this.getSeparators().decimalSeparator;return"string"==typeof o&&"#"!==o[e]||!(o||!(e<i.length||e>=t.length-r.length||a&&s&&t[e]===l))},t.prototype.correctInputValue=function(e,t,n){var o=this,i=this.props,r=i.format,a=i.allowNegative,s=i.prefix,l=i.suffix,c=i.decimalScale,d=this.getSeparators(),p=d.allowedDecimalSeparators,u=d.decimalSeparator,m=this.state.numAsString||"",h=this.selectionBeforeInput,g=h.selectionStart,x=h.selectionEnd,f=findChangedIndex(t,n),y=f.start,S=f.end;if(!r&&y===S&&-1!==p.indexOf(n[g])){var C=0===c?"":u;return n.substr(0,g)+C+n.substr(g+1,n.length)}var $=r?0:s.length,b=t.length-(r?0:l.length);if(n.length>t.length||!n.length||y===S||0===g&&x===t.length||0===y&&S===t.length||g===$&&x===b)return n;var v=t.substr(y,S-y);if(!![].concat(v).find(function(e,n){return o.isCharacterAFormat(n+y,t)})){var E=t.substr(y),w={},R=[];[].concat(E).forEach(function(e,n){o.isCharacterAFormat(n+y,t)?w[n]=e:n>v.length-1&&R.push(e)}),Object.keys(w).forEach(function(e){R.length>e?R.splice(e,0,w[e]):R.push(w[e])}),n=t.substr(0,y)+R.join("")}if(!r){var A=this.removeFormatting(n),j=splitDecimal(A,a),T=j.beforeDecimal,I=j.afterDecimal,k=j.addNegation,L=e<n.indexOf(u)+1;if(A.length<m.length&&L&&""===T&&!parseFloat(I))return k?"-":""}return n},t.prototype.updateValue=function(e){var t=e.formattedValue,n=e.input,o=e.setCaretPosition;void 0===o&&(o=!0);var i=e.source,r=e.event,a=e.numAsString,s=e.caretPos,l=this.props.onValueChange,c=this.state.value;if(n){if(void 0===s&&o){var d=e.inputValue||n.value,p=getCurrentCaretPosition(n);n.value=t,s=this.getCaretPosition(d,t,p)}n.value=t,o&&this.setPatchedCaretPosition(n,s,t)}void 0===a&&(a=this.removeFormatting(t)),t!==c&&(this.setState({value:t,numAsString:a}),l(this.getValueObject(t,a),{event:r,source:i}))},t.prototype.onChange=function(e){var t=e.target,n=t.value,o=this.state,i=this.props,r=i.isAllowed,a=o.value||"",s=getCurrentCaretPosition(t);n=this.correctInputValue(s,a,n);var l=this.formatInput(n)||"",c=this.removeFormatting(l),d=r(this.getValueObject(l,c));d||(l=a),this.updateValue({formattedValue:l,numAsString:c,inputValue:n,input:t,event:e,source:"event"}),d&&i.onChange(e)},t.prototype.onBlur=function(e){var t=this.props,n=this.state,o=t.format,i=t.onBlur,r=t.allowLeadingZeros,a=n.numAsString,s=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!o){isNaN(parseFloat(a))&&(a=""),r||(a=fixLeadingZero(a));var l=this.formatNumString(a);if(l!==s)return this.updateValue({formattedValue:l,numAsString:a,input:e.target,setCaretPosition:!1,event:e,source:"event"}),void i(e)}i(e)},t.prototype.onKeyDown=function(e){var t,n=e.target,o=e.key,i=n.selectionStart,r=n.selectionEnd,a=n.value;void 0===a&&(a="");var s=this.props,l=s.decimalScale,c=s.fixedDecimalScale,d=s.prefix,p=s.suffix,u=s.format,m=s.onKeyDown,h=void 0!==l&&c,g=this.getNumberRegex(!1,h),x=new RegExp("-"),f="string"==typeof u;if(this.selectionBeforeInput={selectionStart:i,selectionEnd:r},"ArrowLeft"===o||"Backspace"===o?t=i-1:"ArrowRight"===o?t=i+1:"Delete"===o&&(t=i),void 0!==t&&i===r){var y=t,S=f?u.indexOf("#"):d.length,C=f?u.lastIndexOf("#")+1:a.length-p.length;if("ArrowLeft"===o||"ArrowRight"===o){var $="ArrowLeft"===o?"left":"right";y=this.correctCaretPosition(a,t,$)}else if("Delete"!==o||g.test(a[t])||x.test(a[t])){if("Backspace"===o&&!g.test(a[t]))if(i<=S+1&&"-"===a[0]&&void 0===u){var b=a.substring(1);this.updateValue({formattedValue:b,caretPos:y,input:n,event:e,source:"event"})}else if(!x.test(a[t])){for(;!g.test(a[y-1])&&y>S;)y--;y=this.correctCaretPosition(a,y,"left")}}else for(;!g.test(a[y])&&y<C;)y++;(y!==t||t<S||t>C)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,a)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,a),m(e)}else m(e)},t.prototype.onMouseUp=function(e){var t=e.target,n=t.selectionStart,o=t.selectionEnd,i=t.value;if(void 0===i&&(i=""),n===o){var r=this.correctCaretPosition(i,n);r!==n&&this.setPatchedCaretPosition(t,r,i)}this.props.onMouseUp(e)},t.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout(function(){var n=e.target,o=n.selectionStart,i=n.selectionEnd,r=n.value;void 0===r&&(r="");var a=t.correctCaretPosition(r,o);a===o||0===o&&i===r.length||t.setPatchedCaretPosition(n,a,r),t.props.onFocus(e)},0)},t.prototype.render=function(){var e=this.props,t=e.type,n=e.displayType,o=e.customInput,i=e.renderText,r=e.getInputRef,a=e.format;e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value;var s=objectWithoutProperties(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"]),l=this.state,c=l.value,d=l.mounted&&addInputMode(a)?"numeric":void 0,p=Object.assign({inputMode:d},s,{type:t,value:c,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return i?i(c,s)||null:React__default.createElement("span",Object.assign({},s,{ref:r}),c);if(o){var u=o;return React__default.createElement(u,Object.assign({},p,{ref:r}))}return React__default.createElement("input",Object.assign({},p,{ref:r}))},t}(React__default.Component);NumberFormat.defaultProps=defaultProps$2;const FormControlContext=/* @__PURE__ */React.createContext(void 0);function useFormControl(){return React.useContext(FormControlContext)}"production"!==process.env.NODE_ENV&&(FormControlContext.displayName="FormControlContext");class LazyRipple{static create(){return new LazyRipple}static use(){const e=useLazyRef(LazyRipple.create).current,[t,n]=React.useState(!1);return e.shouldMount=t,e.setShouldMount=n,React.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=createControlledPromise(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function useLazyRipple(){return LazyRipple.use()}function createControlledPromise(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n}function Ripple(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:r,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,p]=React.useState(!1),u=clsx$1(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:a,height:a,top:-a/2+r,left:-a/2+i},h=clsx$1(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),React.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),/* @__PURE__ */jsxRuntimeExports.jsx("span",{className:u,style:m,children:/* @__PURE__ */jsxRuntimeExports.jsx("span",{className:h})})}"production"!==process.env.NODE_ENV&&(Ripple.propTypes={classes:PropTypes.object.isRequired,className:PropTypes.string,in:PropTypes.bool,onExited:PropTypes.func,pulsate:PropTypes.bool,rippleSize:PropTypes.number,rippleX:PropTypes.number,rippleY:PropTypes.number,timeout:PropTypes.number.isRequired});const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes`
|
|
4858
|
+
`;function noop$7(){}function returnTrue(){return!0}function charIsNumber(e){return!!(e||"").match(/\d/)}function isNil(e){return null==e}function escapeRegExp(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function getThousandsGroupRegex(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function applyThousandSeparator(e,t,n){var o=getThousandsGroupRegex(n),i=e.search(/[1-9]/);return i=-1===i?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(o,"$1"+t)}function splitDecimal(e,t){void 0===t&&(t=!0);var n="-"===e[0],o=n&&t,i=(e=e.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNagation:n,addNegation:o}}function fixLeadingZero(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var n=e.split("."),o=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+o+(i?"."+i:"")}function limitToScale(e,t,n){for(var o="",i=n?"0":"",r=0;r<=t-1;r++)o+=e[r]||i;return o}function repeat$1(e,t){return Array(t+1).join(e)}function toNumericString(e){var t="-"===(e+="")[0]?"-":"";t&&(e=e.substring(1));var n=e.split(/[eE]/g),o=n[0],i=n[1];if(!(i=Number(i)))return t+o;var r=1+i,a=(o=o.replace(".","")).length;return r<0?o="0."+repeat$1("0",Math.abs(r))+o:r>=a?o+=repeat$1("0",r-a):o=(o.substring(0,r)||"0")+"."+o.substring(r),t+o}function roundToPrecision(e,t,n){if(-1!==["","-"].indexOf(e))return e;var o=-1!==e.indexOf(".")&&t,i=splitDecimal(e),r=i.beforeDecimal,a=i.afterDecimal,s=i.hasNagation,l=parseFloat("0."+(a||"0")),c=(a.length<=t?"0."+a:l.toFixed(t)).split(".");return""+(s?"-":"")+r.split("").reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},c[0])+(o?".":"")+limitToScale(c[1]||"",Math.min(t,a.length),n)}function setCaretPosition$1(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function findChangedIndex(e,t){for(var n=0,o=0,i=e.length,r=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-o]===t[r-1-o]&&r-o>n&&i-o>n;)o++;return{start:n,end:i-o}}function clamp(e,t,n){return Math.min(Math.max(e,t),n)}function getCurrentCaretPosition(e){return Math.max(e.selectionStart,e.selectionEnd)}function addInputMode(e){return e||"undefined"!=typeof navigator&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function objectWithoutProperties(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var defaultProps$2={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:noop$7,onChange:noop$7,onKeyDown:noop$7,onMouseUp:noop$7,onFocus:noop$7,onBlur:noop$7,isAllowed:returnTrue},NumberFormat=/* @__PURE__ */function(e){function t(t){e.call(this,t);var n=t.defaultValue;this.validateProps();var o=this.formatValueProp(n);this.state={value:o,numAsString:this.removeFormatting(o),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.setState({mounted:!0})},t.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},t.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},t.prototype.updateValueIfRequired=function(e){var t=this,n=t.props,o=t.state,i=t.focusedElm,r=o.value,a=o.numAsString;if(void 0===a&&(a=""),e!==n){this.validateProps();var s=this.formatNumString(a),l=isNil(n.value)?s:this.formatValueProp(),c=this.removeFormatting(l),d=parseFloat(c),p=parseFloat(a);(isNaN(d)&&isNaN(p)||d===p)&&s===r&&(null!==i||l===r)||this.updateValue({formattedValue:l,numAsString:c,input:i,source:"prop",event:null})}},t.prototype.getFloatString=function(e){void 0===e&&(e="");var t=this.props.decimalScale,n=this.getSeparators().decimalSeparator,o=this.getNumberRegex(!0),i="-"===e[0];i&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var r=(e=(e.match(o)||[]).join("").replace(n,".")).indexOf(".");return-1!==r&&(e=e.substring(0,r)+"."+e.substring(r+1,e.length).replace(new RegExp(escapeRegExp(n),"g"),"")),i&&(e="-"+e),e},t.prototype.getNumberRegex=function(e,t){var n=this.props,o=n.format,i=n.decimalScale,r=n.customNumerals,a=this.getSeparators().decimalSeparator;return new RegExp("[0-9"+(r?r.join(""):"")+"]"+(!a||0===i||t||o?"":"|"+escapeRegExp(a)),e?"g":void 0)},t.prototype.getSeparators=function(){var e=this.props.decimalSeparator,t=this.props,n=t.thousandSeparator,o=t.allowedDecimalSeparators;return!0===n&&(n=","),o||(o=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:o}},t.prototype.getMaskAtIndex=function(e){var t=this.props.mask;return void 0===t&&(t=" "),"string"==typeof t?t:t[e]||" "},t.prototype.getValueObject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},t.prototype.validateProps=function(){var e=this.props.mask,t=this.getSeparators(),n=t.decimalSeparator,o=t.thousandSeparator;if(n===o)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+o+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n Mask "+e+" should not contain numeric character;\n ")},t.prototype.setPatchedCaretPosition=function(e,t,n){setCaretPosition$1(e,t),this.caretPositionTimeout=setTimeout(function(){e.value===n&&setCaretPosition$1(e,t)},0)},t.prototype.correctCaretPosition=function(e,t,n){var o=this.props,i=o.prefix,r=o.suffix,a=o.format;if(""===e)return 0;if(t=clamp(t,0,e.length),!a){var s="-"===e[0];return clamp(t,i.length+(s?1:0),e.length-r.length)}if("function"==typeof a)return t;if("#"===a[t]&&charIsNumber(e[t]))return t;if("#"===a[t-1]&&charIsNumber(e[t-1]))return t;var l=a.indexOf("#");t=clamp(t,l,a.lastIndexOf("#")+1);for(var c=a.substring(t,a.length).indexOf("#"),d=t,p=t+(-1===c?0:c);d>l&&("#"!==a[d]||!charIsNumber(e[d]));)d-=1;return!charIsNumber(e[p])||"left"===n&&t!==l||t-d<p-t?charIsNumber(e[d])?d+1:d:p},t.prototype.getCaretPosition=function(e,t,n){var o,i,r=this.props.format,a=this.state.value,s=this.getNumberRegex(!0),l=(e.match(s)||[]).join(""),c=(t.match(s)||[]).join("");for(o=0,i=0;i<n;i++){var d=e[i]||"",p=t[o]||"";if((d.match(s)||d===p)&&("0"!==d||!p.match(s)||"0"===p||l.length===c.length)){for(;d!==t[o]&&o<t.length;)o++;o++}}return"string"!=typeof r||a||(o=t.length),o=this.correctCaretPosition(t,o)},t.prototype.removePrefixAndSuffix=function(e){var t=this.props,n=t.format,o=t.prefix,i=t.suffix;if(!n&&e){var r="-"===e[0];r&&(e=e.substring(1,e.length));var a=(e=o&&0===e.indexOf(o)?e.substring(o.length,e.length):e).lastIndexOf(i);e=i&&-1!==a&&a===e.length-i.length?e.substring(0,a):e,r&&(e="-"+e)}return e},t.prototype.removePatternFormatting=function(e){for(var t=this.props.format.split("#").filter(function(e){return""!==e}),n=0,o="",i=0,r=t.length;i<=r;i++){var a=t[i]||"",s=i===r?e.length:e.indexOf(a,n);if(-1===s){o=e;break}o+=e.substring(n,s),n=s+a.length}return(o.match(this.getNumberRegex(!0))||[]).join("")},t.prototype.removeFormatting=function(e){var t=this.props,n=t.format,o=t.removeFormatting;return e?(n?e="string"==typeof n?this.removePatternFormatting(e):"function"==typeof o?o(e):(e.match(this.getNumberRegex(!0))||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e},t.prototype.formatWithPattern=function(e){for(var t=this.props.format,n=0,o=t.split(""),i=0,r=t.length;i<r;i++)"#"===t[i]&&(o[i]=e[n]||this.getMaskAtIndex(n),n+=1);return o.join("")},t.prototype.formatAsNumber=function(e){var t=this.props,n=t.decimalScale,o=t.fixedDecimalScale,i=t.prefix,r=t.suffix,a=t.allowNegative,s=t.thousandsGroupStyle,l=this.getSeparators(),c=l.thousandSeparator,d=l.decimalSeparator,p=-1!==e.indexOf(".")||n&&o,u=splitDecimal(e,a),m=u.beforeDecimal,h=u.afterDecimal,g=u.addNegation;return void 0!==n&&(h=limitToScale(h,n,o)),c&&(m=applyThousandSeparator(m,c,s)),i&&(m=i+m),r&&(h+=r),g&&(m="-"+m),e=m+(p&&d||"")+h},t.prototype.formatNumString=function(e){void 0===e&&(e="");var t=this.props,n=t.format,o=t.allowEmptyFormatting,i=t.customNumerals,r=e;if(i&&10===i.length){var a=new RegExp("["+i.join("")+"]","g");r=e.replace(a,function(e){return i.indexOf(e).toString()})}return r=""!==e||o?"-"!==e||n?"string"==typeof n?this.formatWithPattern(r):"function"==typeof n?n(r):this.formatAsNumber(r):"-":""},t.prototype.formatValueProp=function(e){var t=this.props,n=t.format,o=t.decimalScale,i=t.fixedDecimalScale,r=t.allowEmptyFormatting,a=this.props,s=a.value,l=a.isNumericString,c=!(s=isNil(s)?e:s)&&0!==s;return c&&r&&(s=""),c&&!r?"":("number"==typeof s&&(s=toNumericString(s),l=!0),"Infinity"===s&&l&&(s=""),l&&!n&&"number"==typeof o&&(s=roundToPrecision(s,o,i)),l?this.formatNumString(s):this.formatInput(s))},t.prototype.formatNegation=function(e){void 0===e&&(e="");var t=this.props.allowNegative,n=new RegExp("(-)"),o=new RegExp("(-)(.)*(-)"),i=n.test(e),r=o.test(e);return e=e.replace(/-/g,""),i&&!r&&t&&(e="-"+e),e},t.prototype.formatInput=function(e){return void 0===e&&(e=""),this.props.format||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)},t.prototype.isCharacterAFormat=function(e,t){var n=this.props,o=n.format,i=n.prefix,r=n.suffix,a=n.decimalScale,s=n.fixedDecimalScale,l=this.getSeparators().decimalSeparator;return"string"==typeof o&&"#"!==o[e]||!(o||!(e<i.length||e>=t.length-r.length||a&&s&&t[e]===l))},t.prototype.correctInputValue=function(e,t,n){var o=this,i=this.props,r=i.format,a=i.allowNegative,s=i.prefix,l=i.suffix,c=i.decimalScale,d=this.getSeparators(),p=d.allowedDecimalSeparators,u=d.decimalSeparator,m=this.state.numAsString||"",h=this.selectionBeforeInput,g=h.selectionStart,x=h.selectionEnd,f=findChangedIndex(t,n),y=f.start,S=f.end;if(!r&&y===S&&-1!==p.indexOf(n[g])){var C=0===c?"":u;return n.substr(0,g)+C+n.substr(g+1,n.length)}var $=r?0:s.length,b=t.length-(r?0:l.length);if(n.length>t.length||!n.length||y===S||0===g&&x===t.length||0===y&&S===t.length||g===$&&x===b)return n;var v=t.substr(y,S-y);if(!![].concat(v).find(function(e,n){return o.isCharacterAFormat(n+y,t)})){var E=t.substr(y),w={},R=[];[].concat(E).forEach(function(e,n){o.isCharacterAFormat(n+y,t)?w[n]=e:n>v.length-1&&R.push(e)}),Object.keys(w).forEach(function(e){R.length>e?R.splice(e,0,w[e]):R.push(w[e])}),n=t.substr(0,y)+R.join("")}if(!r){var A=this.removeFormatting(n),j=splitDecimal(A,a),T=j.beforeDecimal,I=j.afterDecimal,k=j.addNegation,L=e<n.indexOf(u)+1;if(A.length<m.length&&L&&""===T&&!parseFloat(I))return k?"-":""}return n},t.prototype.updateValue=function(e){var t=e.formattedValue,n=e.input,o=e.setCaretPosition;void 0===o&&(o=!0);var i=e.source,r=e.event,a=e.numAsString,s=e.caretPos,l=this.props.onValueChange,c=this.state.value;if(n){if(void 0===s&&o){var d=e.inputValue||n.value,p=getCurrentCaretPosition(n);n.value=t,s=this.getCaretPosition(d,t,p)}n.value=t,o&&this.setPatchedCaretPosition(n,s,t)}void 0===a&&(a=this.removeFormatting(t)),t!==c&&(this.setState({value:t,numAsString:a}),l(this.getValueObject(t,a),{event:r,source:i}))},t.prototype.onChange=function(e){var t=e.target,n=t.value,o=this.state,i=this.props,r=i.isAllowed,a=o.value||"",s=getCurrentCaretPosition(t);n=this.correctInputValue(s,a,n);var l=this.formatInput(n)||"",c=this.removeFormatting(l),d=r(this.getValueObject(l,c));d||(l=a),this.updateValue({formattedValue:l,numAsString:c,inputValue:n,input:t,event:e,source:"event"}),d&&i.onChange(e)},t.prototype.onBlur=function(e){var t=this.props,n=this.state,o=t.format,i=t.onBlur,r=t.allowLeadingZeros,a=n.numAsString,s=n.value;if(this.focusedElm=null,clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout),!o){isNaN(parseFloat(a))&&(a=""),r||(a=fixLeadingZero(a));var l=this.formatNumString(a);if(l!==s)return this.updateValue({formattedValue:l,numAsString:a,input:e.target,setCaretPosition:!1,event:e,source:"event"}),void i(e)}i(e)},t.prototype.onKeyDown=function(e){var t,n=e.target,o=e.key,i=n.selectionStart,r=n.selectionEnd,a=n.value;void 0===a&&(a="");var s=this.props,l=s.decimalScale,c=s.fixedDecimalScale,d=s.prefix,p=s.suffix,u=s.format,m=s.onKeyDown,h=void 0!==l&&c,g=this.getNumberRegex(!1,h),x=new RegExp("-"),f="string"==typeof u;if(this.selectionBeforeInput={selectionStart:i,selectionEnd:r},"ArrowLeft"===o||"Backspace"===o?t=i-1:"ArrowRight"===o?t=i+1:"Delete"===o&&(t=i),void 0!==t&&i===r){var y=t,S=f?u.indexOf("#"):d.length,C=f?u.lastIndexOf("#")+1:a.length-p.length;if("ArrowLeft"===o||"ArrowRight"===o){var $="ArrowLeft"===o?"left":"right";y=this.correctCaretPosition(a,t,$)}else if("Delete"!==o||g.test(a[t])||x.test(a[t])){if("Backspace"===o&&!g.test(a[t]))if(i<=S+1&&"-"===a[0]&&void 0===u){var b=a.substring(1);this.updateValue({formattedValue:b,caretPos:y,input:n,event:e,source:"event"})}else if(!x.test(a[t])){for(;!g.test(a[y-1])&&y>S;)y--;y=this.correctCaretPosition(a,y,"left")}}else for(;!g.test(a[y])&&y<C;)y++;(y!==t||t<S||t>C)&&(e.preventDefault(),this.setPatchedCaretPosition(n,y,a)),e.isUnitTestRun&&this.setPatchedCaretPosition(n,y,a),m(e)}else m(e)},t.prototype.onMouseUp=function(e){var t=e.target,n=t.selectionStart,o=t.selectionEnd,i=t.value;if(void 0===i&&(i=""),n===o){var r=this.correctCaretPosition(i,n);r!==n&&this.setPatchedCaretPosition(t,r,i)}this.props.onMouseUp(e)},t.prototype.onFocus=function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout(function(){var n=e.target,o=n.selectionStart,i=n.selectionEnd,r=n.value;void 0===r&&(r="");var a=t.correctCaretPosition(r,o);a===o||0===o&&i===r.length||t.setPatchedCaretPosition(n,a,r),t.props.onFocus(e)},0)},t.prototype.render=function(){var e=this.props,t=e.type,n=e.displayType,o=e.customInput,i=e.renderText,r=e.getInputRef,a=e.format;e.thousandSeparator,e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle,e.decimalScale,e.fixedDecimalScale,e.prefix,e.suffix,e.removeFormatting,e.mask,e.defaultValue,e.isNumericString,e.allowNegative,e.allowEmptyFormatting,e.allowLeadingZeros,e.onValueChange,e.isAllowed,e.customNumerals,e.onChange,e.onKeyDown,e.onMouseUp,e.onFocus,e.onBlur,e.value;var s=objectWithoutProperties(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"]),l=this.state,c=l.value,d=l.mounted&&addInputMode(a)?"numeric":void 0,p=Object.assign({inputMode:d},s,{type:t,value:c,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return i?i(c,s)||null:React__default.createElement("span",Object.assign({},s,{ref:r}),c);if(o){var u=o;return React__default.createElement(u,Object.assign({},p,{ref:r}))}return React__default.createElement("input",Object.assign({},p,{ref:r}))},t}(React__default.Component);NumberFormat.defaultProps=defaultProps$2;const FormControlContext=/* @__PURE__ */React.createContext(void 0);function useFormControl(){return React.useContext(FormControlContext)}"production"!==process.env.NODE_ENV&&(FormControlContext.displayName="FormControlContext");class LazyRipple{static create(){return new LazyRipple}static use(){const e=useLazyRef(LazyRipple.create).current,[t,n]=React.useState(!1);return e.shouldMount=t,e.setShouldMount=n,React.useEffect(e.mountEffect,[t]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=createControlledPromise(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}}function useLazyRipple(){return LazyRipple.use()}function createControlledPromise(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n}function Ripple(e){const{className:t,classes:n,pulsate:o=!1,rippleX:i,rippleY:r,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,p]=React.useState(!1),u=clsx$1(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:a,height:a,top:-a/2+r,left:-a/2+i},h=clsx$1(n.child,d&&n.childLeaving,o&&n.childPulsate);return s||d||p(!0),React.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),/* @__PURE__ */jsxRuntimeExports.jsx("span",{className:u,style:m,children:/* @__PURE__ */jsxRuntimeExports.jsx("span",{className:h})})}"production"!==process.env.NODE_ENV&&(Ripple.propTypes={classes:PropTypes.object.isRequired,className:PropTypes.string,in:PropTypes.bool,onExited:PropTypes.func,pulsate:PropTypes.bool,rippleSize:PropTypes.number,rippleX:PropTypes.number,rippleY:PropTypes.number,timeout:PropTypes.number.isRequired});const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes`
|
|
4859
4859
|
0% {
|
|
4860
4860
|
transform: scale(0);
|
|
4861
4861
|
opacity: 0.1;
|
|
@@ -6478,7 +6478,7 @@ return jsxRuntimeExports.jsxs(SearchContainer$1,{ref:f,children:[
|
|
|
6478
6478
|
min-height: 48px;
|
|
6479
6479
|
padding: 0 ${Space.sp3};
|
|
6480
6480
|
color: ${e=>e.theme.colors.hero};
|
|
6481
|
-
`;let nanoid=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_","");function ownKeys$b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread2$2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$b(Object(n),!0).forEach(function(t){_defineProperty$g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _arrayWithHoles$5(e){if(Array.isArray(e))return e}function _iterableToArrayLimit$5(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _nonIterableRest$5(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray$5(e,t){return _arrayWithHoles$5(e)||_iterableToArrayLimit$5(e,t)||_unsupportedIterableToArray$h(e,t)||_nonIterableRest$5()}function _objectWithoutProperties$c(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$A(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _excluded$g=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,r=e.defaultValue,a=void 0===r?null:r,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,u=e.onMenuOpen,m=e.value,h=_objectWithoutProperties$c(e,_excluded$g),g=_slicedToArray$5(useState(void 0!==s?s:n),2),x=g[0],f=g[1],y=_slicedToArray$5(useState(void 0!==l?l:i),2),S=y[0],C=y[1],$=_slicedToArray$5(useState(void 0!==m?m:a),2),b=$[0],v=$[1],E=useCallback(function(e,t){"function"==typeof c&&c(e,t),v(e)},[c]),w=useCallback(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),f(void 0!==n?n:e)},[d]),R=useCallback(function(){"function"==typeof u&&u(),C(!0)},[u]),A=useCallback(function(){"function"==typeof p&&p(),C(!1)},[p]),j=void 0!==s?s:x,T=void 0!==l?l:S,I=void 0!==m?m:b;return _objectSpread2$2(_objectSpread2$2({},h),{},{inputValue:j,menuIsOpen:T,onChange:E,onInputChange:w,onMenuClose:A,onMenuOpen:R,value:I})}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray$h(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray$h(e)||_nonIterableSpread()}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e});function rectToClientRect(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&"inline"!==i&&"contents"!==i}let isWebKitValue;function isWebKit(){return null==isWebKitValue&&(isWebKitValue="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(e){return/^(html|body|#document)$/.test(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=getNearestOverflowAncestor(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),a=getWindow(i);if(r){const e=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(i)?i:[],e&&n?getOverflowAncestors(e):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle$1(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=isHTMLElement(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=round$1(n)!==r||round$1(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=getCssDimensions(t);let a=(r?round$1(n.width):n.width)/o,s=(r?round$1(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const noOffsets=/* @__PURE__ */createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return!1}function getBoundingClientRect(e,t,n,o){void 0===t&&(t=!1);const i=e.getBoundingClientRect(),r=unwrapElement(e);let a=createCoords(1);t&&(a=getScale(e));const s=shouldAddVisualOffsets()?getVisualOffsets(r):createCoords(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(r){const e=o;let t=getWindow(r),n=getFrameElement(t);for(;n&&o&&e!==t;){const e=getScale(n),o=n.getBoundingClientRect(),i=getComputedStyle$1(n),r=o.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,a=o.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=r,c+=a,t=getWindow(n),n=getFrameElement(t)}}return rectToClientRect({width:d,height:p,x:l,y:c})}function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n,o=null;const i=getDocumentElement(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=e.getBoundingClientRect(),{left:d,top:p,width:u,height:m}=c;if(s||t(),!u||!m)return;const h={rootMargin:-floor(p)+"px "+-floor(i.clientWidth-(d+u))+"px "+-floor(i.clientHeight-(p+m))+"px "+-floor(d)+"px",threshold:max(0,min(1,l))||1};let g=!0;function x(t){const o=t[0].intersectionRatio;if(o!==l){if(!g)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||rectsAreEqual(c,e.getBoundingClientRect())||a(),g=!1}try{o=new IntersectionObserver(x,{...h,root:i.ownerDocument})}catch(f){o=new IntersectionObserver(x,h)}o.observe(e)}(!0),r}function autoUpdate(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=unwrapElement(e),d=i||r?[...c?getOverflowAncestors(c):[],...t?getOverflowAncestors(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});const p=c&&s?observeMove(c,n):null;let u,m=-1,h=null;a&&(h=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let g=l?getBoundingClientRect(e):null;return l&&function t(){const o=getBoundingClientRect(e);g&&!rectsAreEqual(g,o)&&n();g=o,u=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(u)}}var index$1=useLayoutEffect,_excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],noop$5=function(){};function applyPrefixToName(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function classNames(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(applyPrefixToName(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var cleanValue=function(e){return isArray(e)?e.filter(Boolean):"object"===_typeof$h(e)&&null!==e?[e]:[]},cleanCommonProps=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,_objectSpread2$2({},_objectWithoutProperties$c(e,_excluded$4$1))},getStyleProps=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function handleInputChange(e,t,n){if(n){var o=n(e,t);if("string"==typeof o)return o}return e}function isDocumentElement(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function normalizedHeight(e){return isDocumentElement(e)?window.innerHeight:e.clientHeight}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){isDocumentElement(e)?window.scrollTo(0,t):e.scrollTop=t}function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function easeOutCubic(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function animatedScrollTo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:noop$5,i=getScrollTop(e),r=t-i,a=0;!function t(){var s=easeOutCubic(a+=10,i,r,n);scrollTo(e,s),a<n?window.requestAnimationFrame(t):o(e)}()}function scrollIntoView(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&scrollTo(e,Math.max(t.offsetTop-i,0))}function getBoundingClientObj(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var passiveOptionAccessed=!1,options={get passive(){return passiveOptionAccessed=!0}},w$1="undefined"!=typeof window?window:{};w$1.addEventListener&&w$1.removeEventListener&&(w$1.addEventListener("p",noop$5,options),w$1.removeEventListener("p",noop$5,!1));var supportsPassiveEvents=passiveOptionAccessed;function notNullish(e){return null!=e}function isArray(e){return Array.isArray(e)}function valueTernary(e,t,n){return e?t:n}function singleValueAsValue(e){return e}function multiValueAsValue(e){return e}var removeProps=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=_slicedToArray$5(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=_slicedToArray$5(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},_excluded$3$1=["children","innerProps"],_excluded2$1$1=["children","innerProps"];function getMenuPlacement(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=getScrollParent(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),u=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,x=a?window.innerHeight:normalizedHeight(l),f=getScrollTop(l),y=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),C=g-S,$=x-h,b=C+f,v=d-f-h,E=u-x+f+y,w=f+h-S,R=160;switch(i){case"auto":case"bottom":if($>=m)return{placement:"bottom",maxHeight:t};if(v>=m&&!a)return r&&animatedScrollTo(l,E,R),{placement:"bottom",maxHeight:t};if(!a&&v>=o||a&&$>=o)return r&&animatedScrollTo(l,E,R),{placement:"bottom",maxHeight:a?$-y:v-y};if("auto"===i||a){var A=t,j=a?C:b;return j>=o&&(A=Math.min(j-y-s,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return r&&scrollTo(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(C>=m)return{placement:"top",maxHeight:t};if(b>=m&&!a)return r&&animatedScrollTo(l,w,R),{placement:"top",maxHeight:t};if(!a&&b>=o||a&&C>=o){var T=t;return(!a&&b>=o||a&&C>=o)&&(T=a?C-S:b-S),r&&animatedScrollTo(l,w,R),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function alignToControl(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}var coercePlacement=function(e){return"auto"===e?"bottom":e},menuCSS=function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,a=i.spacing,s=i.colors;return _objectSpread2$2((_defineProperty$g(n={label:"menu"},alignToControl(o),"100%"),_defineProperty$g(n,"position","absolute"),_defineProperty$g(n,"width","100%"),_defineProperty$g(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},PortalPlacementContext=/* @__PURE__ */createContext(null),MenuPlacer=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=(useContext(PortalPlacementContext)||{}).setPortalPlacement,c=useRef(null),d=_slicedToArray$5(useState(o),2),p=d[0],u=d[1],m=_slicedToArray$5(useState(null),2),h=m[0],g=m[1],x=s.spacing.controlHeight;return index$1(function(){var e=c.current;if(e){var t="fixed"===r,s=getMenuPlacement({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:x});u(s.maxHeight),g(s.placement),null==l||l(s.placement)}},[o,i,r,a,n,l,x]),t({ref:c,placerProps:_objectSpread2$2(_objectSpread2$2({},e),{},{placement:h||coercePlacement(i),maxHeight:p})})},Menu$4=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"menu",{menu:!0}),{ref:n},o),t)},Menu$1$1=Menu$4,menuListCSS=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return _objectSpread2$2({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},MenuList$9=function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return jsx("div",_extends$I({},getStyleProps(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},noticeCSS=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return _objectSpread2$2({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage$3=function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=_objectWithoutProperties$c(e,_excluded$3$1);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},LoadingMessage=function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=_objectWithoutProperties$c(e,_excluded2$1$1);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},menuPortalCSS=function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},MenuPortal=function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,a=e.menuPosition,s=useRef(null),l=useRef(null),c=_slicedToArray$5(useState(coercePlacement(r)),2),d=c[0],p=c[1],u=useMemo(function(){return{setPortalPlacement:p}},[]),m=_slicedToArray$5(useState(null),2),h=m[0],g=m[1],x=useCallback(function(){if(o){var e=getBoundingClientObj(o),t="fixed"===a?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||g({offset:n,rect:e})}},[o,a,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);index$1(function(){x()},[x]);var f=useCallback(function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&s.current&&(l.current=autoUpdate(o,s.current,x,{elementResize:"ResizeObserver"in window}))},[o,x]);index$1(function(){f()},[f]);var y=useCallback(function(e){s.current=e,f()},[f]);if(!t&&"fixed"!==a||!h)return null;var S=jsx("div",_extends$I({ref:y},getStyleProps(_objectSpread2$2(_objectSpread2$2({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return jsx(PortalPlacementContext.Provider,{value:u},t?/* @__PURE__ */createPortal(S,t):S)},containerCSS=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},SelectContainer$5=function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return jsx("div",_extends$I({},getStyleProps(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},valueContainerCSS=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return _objectSpread2$2({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ValueContainer$t=function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return jsx("div",_extends$I({},getStyleProps(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)},indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer$2=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"indicatorsContainer",{indicators:!0}),n),t)},_templateObject,_excluded$2$1=["size"],_excluded2$4=["innerProps","isRtl","size"];function _EMOTION_STRINGIFIED_CSS_ERROR__$3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2$2="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$3},Svg=function(e){var t=e.size,n=_objectWithoutProperties$c(e,_excluded$2$1);return jsx("svg",_extends$I({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},n))},CrossIcon=function(e){return jsx(Svg,_extends$I({size:20},e),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(e){return jsx(Svg,_extends$I({size:20},e),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return _objectSpread2$2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},dropdownIndicatorCSS=baseCSS,DropdownIndicator$u=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||jsx(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator$h=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||jsx(CrossIcon,null))},indicatorSeparatorCSS=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return _objectSpread2$2({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},IndicatorSeparator$q=function(e){var t=e.innerProps;return jsx("span",_extends$I({},t,getStyleProps(e,"indicatorSeparator",{"indicator-separator":!0})))},loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),loadingIndicatorCSS=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,a=i.spacing.baseUnit;return _objectSpread2$2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a})},LoadingDot=function(e){var t=e.delay,n=e.offset;return jsx("span",{css:/* @__PURE__ */css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},LoadingIndicator$2=function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=_objectWithoutProperties$c(e,_excluded2$4);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),jsx(LoadingDot,{delay:0,offset:n}),jsx(LoadingDot,{delay:160,offset:!0}),jsx(LoadingDot,{delay:320,offset:!n}))},css$1=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,a=i.borderRadius;return _objectSpread2$2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},Control$j=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return jsx("div",_extends$I({ref:i},getStyleProps(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r,{"aria-disabled":n||void 0}),t)},Control$1$1=Control$j,_excluded$1$1=["data"],groupCSS=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Group$5=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return jsx("div",_extends$I({},getStyleProps(e,"group",{group:!0}),s),jsx(r,_extends$I({},a,{selectProps:d,theme:c,getStyles:o,getClassNames:i,cx:n}),l),jsx("div",null,t))},groupHeadingCSS=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return _objectSpread2$2({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},GroupHeading$8=function(e){var t=cleanCommonProps(e);t.data;var n=_objectWithoutProperties$c(t,_excluded$1$1);return jsx("div",_extends$I({},getStyleProps(e,"groupHeading",{"group-heading":!0}),n))},Group$1$1=Group$5,_excluded$f=["innerRef","isDisabled","isHidden","inputClassName"],inputCSS=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,a=i.colors;return _objectSpread2$2(_objectSpread2$2({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},containerStyle),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:a.neutral80})},spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2$2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)},inputStyle=function(e){return _objectSpread2$2({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},spacingStyle)},Input$p=function(e){var t=e.cx,n=e.value,o=cleanCommonProps(e),i=o.innerRef,r=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=_objectWithoutProperties$c(o,_excluded$f);return jsx("div",_extends$I({},getStyleProps(e,"input",{"input-container":!0}),{"data-value":n||""}),jsx("input",_extends$I({className:t({input:!0},s),ref:i,style:inputStyle(a),disabled:r},l)))},Input$1$1=Input$p,multiValueCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return _objectSpread2$2({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabelCSS=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return _objectSpread2$2({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemoveCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,a=e.isFocused;return _objectSpread2$2({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},MultiValueGeneric=function(e){var t=e.children,n=e.innerProps;return jsx("div",n,t)},MultiValueContainer$1=MultiValueGeneric,MultiValueLabel$7=MultiValueGeneric;function MultiValueRemove$8(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({role:"button"},n),t||jsx(CrossIcon,{size:14}))}var MultiValue$3=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return jsx(l,{data:o,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},jsx(c,{data:o,innerProps:_objectSpread2$2({},getStyleProps(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),jsx(d,{data:o,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValue$1$1=MultiValue$3,optionCSS=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,a=r.spacing,s=r.colors;return _objectSpread2$2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Option$s=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Option$1$1=Option$s,placeholderCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return _objectSpread2$2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Placeholder$m=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"placeholder",{placeholder:!0}),n),t)},Placeholder$1$1=Placeholder$m,css=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return _objectSpread2$2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SingleValue$c=function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},SingleValue$1$1=SingleValue$c,components={ClearIndicator:ClearIndicator$h,Control:Control$1$1,DropdownIndicator:DropdownIndicator$u,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1$1,GroupHeading:GroupHeading$8,IndicatorsContainer:IndicatorsContainer$2,IndicatorSeparator:IndicatorSeparator$q,Input:Input$1$1,LoadingIndicator:LoadingIndicator$2,Menu:Menu$1$1,MenuList:MenuList$9,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage$3,MultiValue:MultiValue$1$1,MultiValueContainer:MultiValueContainer$1,MultiValueLabel:MultiValueLabel$7,MultiValueRemove:MultiValueRemove$8,Option:Option$1$1,Placeholder:Placeholder$1$1,SelectContainer:SelectContainer$5,SingleValue:SingleValue$1$1,ValueContainer:ValueContainer$t},defaultComponents=function(e){return _objectSpread2$2(_objectSpread2$2({},components),e.components)},safeIsNaN$1=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$2(e,t){return e===t||!(!safeIsNaN$1(e)||!safeIsNaN$1(t))}function areInputsEqual$1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$2(e[n],t[n]))return!1;return!0}function memoizeOne$1(e,t){void 0===t&&(t=areInputsEqual$1);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}function _EMOTION_STRINGIFIED_CSS_ERROR__$2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var _ref="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$2},A11yText=function(e){return jsx("span",_extends$I({css:_ref},e))},A11yText$1=A11yText,defaultAriaLiveMessages={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(d(a,n),".");if("menu"===t&&c){var p=s?" disabled":"",u="".concat(l?" selected":"").concat(p);return"".concat(r).concat(u,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},LiveRegion=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,u=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,x=s.menuIsOpen,f=s.options,y=s.screenReaderStatus,S=s.tabSelectsValue,C=s.isLoading,$=s["aria-label"],b=s["aria-live"],v=useMemo(function(){return _objectSpread2$2(_objectSpread2$2({},defaultAriaLiveMessages),d||{})},[d]),E=useMemo(function(){var e,n="";if(t&&v.onChange){var o=t.option,i=t.options,r=t.removedValue,s=t.removedValues,l=t.value,c=r||o||(e=l,Array.isArray(e)?null:e),d=c?p(c):"",u=i||s||void 0,m=u?u.map(p):[],g=_objectSpread2$2({isDisabled:c&&h(c,a),label:d,labels:m},t);n=v.onChange(g)}return n},[t,v,h,a,p]),w=useMemo(function(){var e="",t=n||o,r=!!(n&&a&&a.includes(n));if(t&&v.onFocus){var s={focused:t,label:p(t),isDisabled:h(t,a),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=v.onFocus(s)}return e},[n,o,p,h,v,i,a,c]),R=useMemo(function(){var e="";if(x&&f.length&&!C&&v.onFilter){var t=y({count:i.length});e=v.onFilter({inputValue:u,resultsMessage:t})}return e},[i,u,x,v,f,y,C]),A="initial-input-focus"===(null==t?void 0:t.action),j=useMemo(function(){var e="";if(v.guidance){var t=o?"value":x?"menu":"input";e=v.guidance({"aria-label":$,context:t,isDisabled:n&&h(n,a),isMulti:m,isSearchable:g,tabSelectsValue:S,isInitialFocus:A})}return e},[$,n,o,m,h,g,x,v,a,S,A]),T=jsx(Fragment,null,jsx("span",{id:"aria-selection"},E),jsx("span",{id:"aria-focused"},w),jsx("span",{id:"aria-results"},R),jsx("span",{id:"aria-guidance"},j));return jsx(Fragment,null,jsx(A11yText$1,{id:l},A&&T),jsx(A11yText$1,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!A&&T))},LiveRegion$1=LiveRegion,diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],anyDiacritic=new RegExp("["+diacritics.map(function(e){return e.letters}).join("")+"]","g"),diacriticToBase={},i$2=0;i$2<diacritics.length;i$2++)for(var diacritic=diacritics[i$2],j=0;j<diacritic.letters.length;j++)diacriticToBase[diacritic.letters[j]]=diacritic.base;var stripDiacritics=function(e){return e.replace(anyDiacritic,function(e){return diacriticToBase[e]})},memoizedStripDiacriticsForInput=memoizeOne$1(stripDiacritics),trimString=function(e){return e.replace(/^\s+|\s+$/g,"")},defaultStringify=function(e){return"".concat(e.label," ").concat(e.value)},createFilter=function(e){return function(t,n){if(t.data.__isNew__)return!0;var o=_objectSpread2$2({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,r=o.ignoreAccents,a=o.stringify,s=o.trim,l=o.matchFrom,c=s?trimString(n):n,d=s?trimString(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),r&&(c=memoizedStripDiacriticsForInput(c),d=stripDiacritics(d)),"start"===l?d.substr(0,c.length)===c:d.indexOf(c)>-1}},_excluded$e=["innerRef"];function DummyInput(e){var t=e.innerRef,n=_objectWithoutProperties$c(e,_excluded$e),o=removeProps(n,"onExited","in","enter","exit","appear");return jsx("input",_extends$I({ref:t},o,{css:/* @__PURE__ */css$2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var cancelScroll=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function useScrollCapture(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,a=useRef(!1),s=useRef(!1),l=useRef(0),c=useRef(null),d=useCallback(function(e,t){if(null!==c.current){var l=c.current,d=l.scrollTop,p=l.scrollHeight,u=l.clientHeight,m=c.current,h=t>0,g=p-u-d,x=!1;g>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(r&&r(e),s.current=!1),h&&t>g?(n&&!a.current&&n(e),m.scrollTop=p,x=!0,a.current=!0):!h&&-t>d&&(i&&!s.current&&i(e),m.scrollTop=0,x=!0,s.current=!0),x&&cancelScroll(e)}},[n,o,i,r]),p=useCallback(function(e){d(e,e.deltaY)},[d]),u=useCallback(function(e){l.current=e.changedTouches[0].clientY},[]),m=useCallback(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),h=useCallback(function(e){if(e){var t=!!supportsPassiveEvents&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",u,t),e.addEventListener("touchmove",m,t)}},[m,u,p]),g=useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",u,!1),e.removeEventListener("touchmove",m,!1))},[m,u,p]);return useEffect(function(){if(t){var e=c.current;return h(e),function(){g(e)}}},[t,h,g]),function(e){c.current=e}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.cancelable&&e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),activeScrollLocks=0,listenerOptions={capture:!1,passive:!1};function useScrollLock(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=useRef({}),r=useRef(null),a=useCallback(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;if(o&&STYLE_KEYS.forEach(function(e){var t=n&&n[e];i.current[e]=t}),o&&activeScrollLocks<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(LOCK_STYLES).forEach(function(e){var t=LOCK_STYLES[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&isTouchDevice()&&(t.addEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.addEventListener("touchstart",preventInertiaScroll,listenerOptions),e.addEventListener("touchmove",allowTouchMove,listenerOptions))),activeScrollLocks+=1}},[o]),s=useCallback(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),o&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&isTouchDevice()&&(t.removeEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.removeEventListener("touchstart",preventInertiaScroll,listenerOptions),e.removeEventListener("touchmove",allowTouchMove,listenerOptions)))}},[o]);return useEffect(function(){if(t){var e=r.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){r.current=e}}function _EMOTION_STRINGIFIED_CSS_ERROR__$1(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var blurSelectInput=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},_ref2$1="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$1};function ScrollManager(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=useScrollCapture({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=useScrollLock({isEnabled:n});return jsx(Fragment,null,n&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),t(function(e){i(e),r(e)}))}function _EMOTION_STRINGIFIED_CSS_ERROR__(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__},RequiredInput=function(e){var t=e.name,n=e.onFocus;return jsx("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_ref2,value:"",onChange:function(){}})},RequiredInput$1=RequiredInput;function testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS$1(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS$1()}var formatGroupLabel=function(e){return e.label},getOptionLabel$1=function(e){return e.label},getOptionValue$1=function(e){return e.value},isOptionDisabled=function(e){return!!e.isDisabled},defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css,valueContainer:valueContainerCSS},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},borderRadius=4,baseUnit=4,controlHeight=38,menuGutter=2*baseUnit,spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter},defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing},defaultProps$1={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(e,t,n,o){return{type:"option",data:t,isDisabled:_isOptionDisabled(e,t,n),isSelected:_isOptionSelected(e,t,n),label:getOptionLabel(e,t),value:getOptionValue(e,t),index:o}}function buildCategorizedOptions(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return toCategorizedOption(e,n,t,o)}).filter(function(t){return isFocusable(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=toCategorizedOption(e,n,t,o);return isFocusable(e,r)?r:void 0}).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,_toConsumableArray(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function buildFocusableOptionsWithIds(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,_toConsumableArray(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function buildFocusableOptions(e,t){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(e,t))}function isFocusable(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,a=t.label,s=t.value;return(!shouldHideSelectedOptions(e)||!r)&&_filterOption(e,{label:a,value:s,data:i},o)}function getNextFocusedValue(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}function getNextFocusedOption(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var getFocusedOptionId=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},getOptionLabel=function(e,t){return e.getOptionLabel(t)},getOptionValue=function(e,t){return e.getOptionValue(t)};function _isOptionDisabled(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _isOptionSelected(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=getOptionValue(e,t);return n.some(function(t){return getOptionValue(e,t)===o})}function _filterOption(e,t,n){return!e.filterOption||e.filterOption(t,n)}var shouldHideSelectedOptions=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},instanceId=1,Select$2=/* @__PURE__ */function(e){_inherits$2(n,Component);var t=_createSuper(n);function n(e){var o;if(_classCallCheck$a(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,s=i&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(multiValueAsValue(a.filter(function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(singleValueAsValue(e),{action:"select-option",option:e,name:r});i?o.setValue(multiValueAsValue([].concat(_toConsumableArray(a),[e])),"select-option",e):o.setValue(singleValueAsValue(e),"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,i=o.getOptionValue(e),r=n.filter(function(e){return o.getOptionValue(e)!==i}),a=valueTernary(t,r,r[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(valueTernary(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),r=valueTernary(e,i,i[0]||null);n&&o.onChange(r,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return getFocusedOptionId(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return classNames.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return getOptionLabel(o.props,e)},o.getOptionValue=function(e){return getOptionValue(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=defaultStyles[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return defaultComponents(o.props)},o.buildCategorizedOptions=function(){return buildCategorizedOptions(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:_objectSpread2$2({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&isDocumentElement(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,d=t.onKeyDown,p=t.tabSelectsValue,u=t.openMenuOnFocus,m=o.state,h=m.focusedOption,g=m.focusedValue,x=m.selectValue;if(!(l||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)o.removeValue(g);else{if(!i)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!p||!h||u&&o.isOptionSelected(h,x))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&r&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++instanceId),o.state.selectValue=cleanValue(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=r[a],o.state.focusedOptionId=getFocusedOptionId(i,r[a])}return o}return _createClass$a(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef),isAppleDevice()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):_objectSpread2$2(_objectSpread2$2({},defaultTheme),this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,d=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:d,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return _isOptionDisabled(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _isOptionSelected(this.props,e,t)}},{key:"filterOption",value:function(e,t){return _filterOption(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,r=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,u=d.ariaSelection,m=this.commonProps,h=o||this.getElementId("input"),g=_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==u?void 0:u.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?/* @__PURE__ */React.createElement(c,_extends$I({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:a,type:"text",value:i},g)):/* @__PURE__ */React.createElement(DummyInput,_extends$I({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$5,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,u=c.isMulti,m=c.inputValue,h=c.placeholder,g=this.state,x=g.selectValue,f=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:/* @__PURE__ */React.createElement(s,_extends$I({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(u)return x.map(function(t,a){var s=t===f,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));/* @__PURE__ */
|
|
6481
|
+
`;let nanoid=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_","");function ownKeys$b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread2$2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$b(Object(n),!0).forEach(function(t){_defineProperty$g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _arrayWithHoles$5(e){if(Array.isArray(e))return e}function _iterableToArrayLimit$5(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function _nonIterableRest$5(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _slicedToArray$5(e,t){return _arrayWithHoles$5(e)||_iterableToArrayLimit$5(e,t)||_unsupportedIterableToArray$h(e,t)||_nonIterableRest$5()}function _objectWithoutProperties$c(e,t){if(null==e)return{};var n,o,i=_objectWithoutPropertiesLoose$A(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _excluded$g=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,r=e.defaultValue,a=void 0===r?null:r,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,p=e.onMenuClose,u=e.onMenuOpen,m=e.value,h=_objectWithoutProperties$c(e,_excluded$g),g=_slicedToArray$5(useState(void 0!==s?s:n),2),x=g[0],f=g[1],y=_slicedToArray$5(useState(void 0!==l?l:i),2),S=y[0],C=y[1],$=_slicedToArray$5(useState(void 0!==m?m:a),2),b=$[0],v=$[1],E=useCallback(function(e,t){"function"==typeof c&&c(e,t),v(e)},[c]),w=useCallback(function(e,t){var n;"function"==typeof d&&(n=d(e,t)),f(void 0!==n?n:e)},[d]),R=useCallback(function(){"function"==typeof u&&u(),C(!0)},[u]),A=useCallback(function(){"function"==typeof p&&p(),C(!1)},[p]),j=void 0!==s?s:x,T=void 0!==l?l:S,I=void 0!==m?m:b;return _objectSpread2$2(_objectSpread2$2({},h),{},{inputValue:j,menuIsOpen:T,onChange:E,onInputChange:w,onMenuClose:A,onMenuOpen:R,value:I})}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray$h(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray$h(e)||_nonIterableSpread()}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const min=Math.min,max=Math.max,round$1=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e});function rectToClientRect(e){const{x:t,y:n,width:o,height:i}=e;return{width:o,height:i,top:n,left:t,right:t+o,bottom:n+i,x:t,y:n}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!(!hasWindow()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&"inline"!==i&&"contents"!==i}let isWebKitValue;function isWebKit(){return null==isWebKitValue&&(isWebKitValue="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(e){return/^(html|body|#document)$/.test(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getParentNode(e){if("html"===getNodeName(e))return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=getNearestOverflowAncestor(e),r=i===(null==(o=e.ownerDocument)?void 0:o.body),a=getWindow(i);if(r){const e=getFrameElement(a);return t.concat(a,a.visualViewport||[],isOverflowElement(i)?i:[],e&&n?getOverflowAncestors(e):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle$1(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=isHTMLElement(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=round$1(n)!==r||round$1(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:o,height:i,$:r}=getCssDimensions(t);let a=(r?round$1(n.width):n.width)/o,s=(r?round$1(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const noOffsets=/* @__PURE__ */createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:noOffsets}function shouldAddVisualOffsets(e,t,n){return!1}function getBoundingClientRect(e,t,n,o){void 0===t&&(t=!1);const i=e.getBoundingClientRect(),r=unwrapElement(e);let a=createCoords(1);t&&(a=getScale(e));const s=shouldAddVisualOffsets()?getVisualOffsets(r):createCoords(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(r){const e=o;let t=getWindow(r),n=getFrameElement(t);for(;n&&o&&e!==t;){const e=getScale(n),o=n.getBoundingClientRect(),i=getComputedStyle$1(n),r=o.left+(n.clientLeft+parseFloat(i.paddingLeft))*e.x,a=o.top+(n.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=r,c+=a,t=getWindow(n),n=getFrameElement(t)}}return rectToClientRect({width:d,height:p,x:l,y:c})}function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n,o=null;const i=getDocumentElement(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=e.getBoundingClientRect(),{left:d,top:p,width:u,height:m}=c;if(s||t(),!u||!m)return;const h={rootMargin:-floor(p)+"px "+-floor(i.clientWidth-(d+u))+"px "+-floor(i.clientHeight-(p+m))+"px "+-floor(d)+"px",threshold:max(0,min(1,l))||1};let g=!0;function x(t){const o=t[0].intersectionRatio;if(o!==l){if(!g)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||rectsAreEqual(c,e.getBoundingClientRect())||a(),g=!1}try{o=new IntersectionObserver(x,{...h,root:i.ownerDocument})}catch(f){o=new IntersectionObserver(x,h)}o.observe(e)}(!0),r}function autoUpdate(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=unwrapElement(e),d=i||r?[...c?getOverflowAncestors(c):[],...t?getOverflowAncestors(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});const p=c&&s?observeMove(c,n):null;let u,m=-1,h=null;a&&(h=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let g=l?getBoundingClientRect(e):null;return l&&function t(){const o=getBoundingClientRect(e);g&&!rectsAreEqual(g,o)&&n();g=o,u=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(u)}}var index$1=useLayoutEffect,_excluded$4$1=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],noop$6=function(){};function applyPrefixToName(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function classNames(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(applyPrefixToName(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var cleanValue=function(e){return isArray(e)?e.filter(Boolean):"object"===_typeof$h(e)&&null!==e?[e]:[]},cleanCommonProps=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,_objectSpread2$2({},_objectWithoutProperties$c(e,_excluded$4$1))},getStyleProps=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function handleInputChange(e,t,n){if(n){var o=n(e,t);if("string"==typeof o)return o}return e}function isDocumentElement(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function normalizedHeight(e){return isDocumentElement(e)?window.innerHeight:e.clientHeight}function getScrollTop(e){return isDocumentElement(e)?window.pageYOffset:e.scrollTop}function scrollTo(e,t){isDocumentElement(e)?window.scrollTo(0,t):e.scrollTop=t}function getScrollParent(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function easeOutCubic(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function animatedScrollTo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:noop$6,i=getScrollTop(e),r=t-i,a=0;!function t(){var s=easeOutCubic(a+=10,i,r,n);scrollTo(e,s),a<n?window.requestAnimationFrame(t):o(e)}()}function scrollIntoView(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?scrollTo(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&scrollTo(e,Math.max(t.offsetTop-i,0))}function getBoundingClientObj(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var passiveOptionAccessed=!1,options={get passive(){return passiveOptionAccessed=!0}},w$1="undefined"!=typeof window?window:{};w$1.addEventListener&&w$1.removeEventListener&&(w$1.addEventListener("p",noop$6,options),w$1.removeEventListener("p",noop$6,!1));var supportsPassiveEvents=passiveOptionAccessed;function notNullish(e){return null!=e}function isArray(e){return Array.isArray(e)}function valueTernary(e,t,n){return e?t:n}function singleValueAsValue(e){return e}function multiValueAsValue(e){return e}var removeProps=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=_slicedToArray$5(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=_slicedToArray$5(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},_excluded$3$1=["children","innerProps"],_excluded2$1$1=["children","innerProps"];function getMenuPlacement(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=getScrollParent(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),u=p.bottom,m=p.height,h=p.top,g=n.offsetParent.getBoundingClientRect().top,x=a?window.innerHeight:normalizedHeight(l),f=getScrollTop(l),y=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),C=g-S,$=x-h,b=C+f,v=d-f-h,E=u-x+f+y,w=f+h-S,R=160;switch(i){case"auto":case"bottom":if($>=m)return{placement:"bottom",maxHeight:t};if(v>=m&&!a)return r&&animatedScrollTo(l,E,R),{placement:"bottom",maxHeight:t};if(!a&&v>=o||a&&$>=o)return r&&animatedScrollTo(l,E,R),{placement:"bottom",maxHeight:a?$-y:v-y};if("auto"===i||a){var A=t,j=a?C:b;return j>=o&&(A=Math.min(j-y-s,t)),{placement:"top",maxHeight:A}}if("bottom"===i)return r&&scrollTo(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(C>=m)return{placement:"top",maxHeight:t};if(b>=m&&!a)return r&&animatedScrollTo(l,w,R),{placement:"top",maxHeight:t};if(!a&&b>=o||a&&C>=o){var T=t;return(!a&&b>=o||a&&C>=o)&&(T=a?C-S:b-S),r&&animatedScrollTo(l,w,R),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}function alignToControl(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}var coercePlacement=function(e){return"auto"===e?"bottom":e},menuCSS=function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,a=i.spacing,s=i.colors;return _objectSpread2$2((_defineProperty$g(n={label:"menu"},alignToControl(o),"100%"),_defineProperty$g(n,"position","absolute"),_defineProperty$g(n,"width","100%"),_defineProperty$g(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},PortalPlacementContext=/* @__PURE__ */createContext(null),MenuPlacer=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=(useContext(PortalPlacementContext)||{}).setPortalPlacement,c=useRef(null),d=_slicedToArray$5(useState(o),2),p=d[0],u=d[1],m=_slicedToArray$5(useState(null),2),h=m[0],g=m[1],x=s.spacing.controlHeight;return index$1(function(){var e=c.current;if(e){var t="fixed"===r,s=getMenuPlacement({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:x});u(s.maxHeight),g(s.placement),null==l||l(s.placement)}},[o,i,r,a,n,l,x]),t({ref:c,placerProps:_objectSpread2$2(_objectSpread2$2({},e),{},{placement:h||coercePlacement(i),maxHeight:p})})},Menu$4=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"menu",{menu:!0}),{ref:n},o),t)},Menu$1$1=Menu$4,menuListCSS=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return _objectSpread2$2({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},MenuList$9=function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return jsx("div",_extends$I({},getStyleProps(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},noticeCSS=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return _objectSpread2$2({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage$3=function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,i=_objectWithoutProperties$c(e,_excluded$3$1);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},i),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},LoadingMessage=function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,i=_objectWithoutProperties$c(e,_excluded2$1$1);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},i),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},menuPortalCSS=function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},MenuPortal=function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,a=e.menuPosition,s=useRef(null),l=useRef(null),c=_slicedToArray$5(useState(coercePlacement(r)),2),d=c[0],p=c[1],u=useMemo(function(){return{setPortalPlacement:p}},[]),m=_slicedToArray$5(useState(null),2),h=m[0],g=m[1],x=useCallback(function(){if(o){var e=getBoundingClientObj(o),t="fixed"===a?0:window.pageYOffset,n=e[d]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||g({offset:n,rect:e})}},[o,a,d,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);index$1(function(){x()},[x]);var f=useCallback(function(){"function"==typeof l.current&&(l.current(),l.current=null),o&&s.current&&(l.current=autoUpdate(o,s.current,x,{elementResize:"ResizeObserver"in window}))},[o,x]);index$1(function(){f()},[f]);var y=useCallback(function(e){s.current=e,f()},[f]);if(!t&&"fixed"!==a||!h)return null;var S=jsx("div",_extends$I({ref:y},getStyleProps(_objectSpread2$2(_objectSpread2$2({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return jsx(PortalPlacementContext.Provider,{value:u},t?/* @__PURE__ */createPortal(S,t):S)},containerCSS=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},SelectContainer$5=function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return jsx("div",_extends$I({},getStyleProps(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},valueContainerCSS=function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return _objectSpread2$2({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ValueContainer$t=function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return jsx("div",_extends$I({},getStyleProps(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)},indicatorsContainerCSS=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer$2=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"indicatorsContainer",{indicators:!0}),n),t)},_templateObject,_excluded$2$1=["size"],_excluded2$4=["innerProps","isRtl","size"];function _EMOTION_STRINGIFIED_CSS_ERROR__$3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2$2="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$3},Svg=function(e){var t=e.size,n=_objectWithoutProperties$c(e,_excluded$2$1);return jsx("svg",_extends$I({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},n))},CrossIcon=function(e){return jsx(Svg,_extends$I({size:20},e),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function(e){return jsx(Svg,_extends$I({size:20},e),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return _objectSpread2$2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},dropdownIndicatorCSS=baseCSS,DropdownIndicator$u=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||jsx(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator$h=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||jsx(CrossIcon,null))},indicatorSeparatorCSS=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return _objectSpread2$2({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},IndicatorSeparator$q=function(e){var t=e.innerProps;return jsx("span",_extends$I({},t,getStyleProps(e,"indicatorSeparator",{"indicator-separator":!0})))},loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),loadingIndicatorCSS=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,a=i.spacing.baseUnit;return _objectSpread2$2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a})},LoadingDot=function(e){var t=e.delay,n=e.offset;return jsx("span",{css:/* @__PURE__ */css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},LoadingIndicator$2=function(e){var t=e.innerProps,n=e.isRtl,o=e.size,i=void 0===o?4:o,r=_objectWithoutProperties$c(e,_excluded2$4);return jsx("div",_extends$I({},getStyleProps(_objectSpread2$2(_objectSpread2$2({},r),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),jsx(LoadingDot,{delay:0,offset:n}),jsx(LoadingDot,{delay:160,offset:!0}),jsx(LoadingDot,{delay:320,offset:!n}))},css$1=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,a=i.borderRadius;return _objectSpread2$2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},Control$j=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return jsx("div",_extends$I({ref:i},getStyleProps(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r,{"aria-disabled":n||void 0}),t)},Control$1$1=Control$j,_excluded$1$1=["data"],groupCSS=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Group$5=function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return jsx("div",_extends$I({},getStyleProps(e,"group",{group:!0}),s),jsx(r,_extends$I({},a,{selectProps:d,theme:c,getStyles:o,getClassNames:i,cx:n}),l),jsx("div",null,t))},groupHeadingCSS=function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return _objectSpread2$2({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},GroupHeading$8=function(e){var t=cleanCommonProps(e);t.data;var n=_objectWithoutProperties$c(t,_excluded$1$1);return jsx("div",_extends$I({},getStyleProps(e,"groupHeading",{"group-heading":!0}),n))},Group$1$1=Group$5,_excluded$f=["innerRef","isDisabled","isHidden","inputClassName"],inputCSS=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,a=i.colors;return _objectSpread2$2(_objectSpread2$2({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},containerStyle),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:a.neutral80})},spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2$2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)},inputStyle=function(e){return _objectSpread2$2({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},spacingStyle)},Input$p=function(e){var t=e.cx,n=e.value,o=cleanCommonProps(e),i=o.innerRef,r=o.isDisabled,a=o.isHidden,s=o.inputClassName,l=_objectWithoutProperties$c(o,_excluded$f);return jsx("div",_extends$I({},getStyleProps(e,"input",{"input-container":!0}),{"data-value":n||""}),jsx("input",_extends$I({className:t({input:!0},s),ref:i,style:inputStyle(a),disabled:r},l)))},Input$1$1=Input$p,multiValueCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return _objectSpread2$2({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabelCSS=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return _objectSpread2$2({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemoveCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,a=e.isFocused;return _objectSpread2$2({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},MultiValueGeneric=function(e){var t=e.children,n=e.innerProps;return jsx("div",n,t)},MultiValueContainer$1=MultiValueGeneric,MultiValueLabel$7=MultiValueGeneric;function MultiValueRemove$8(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({role:"button"},n),t||jsx(CrossIcon,{size:14}))}var MultiValue$3=function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return jsx(l,{data:o,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},jsx(c,{data:o,innerProps:_objectSpread2$2({},getStyleProps(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),jsx(d,{data:o,innerProps:_objectSpread2$2(_objectSpread2$2({},getStyleProps(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValue$1$1=MultiValue$3,optionCSS=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,a=r.spacing,s=r.colors;return _objectSpread2$2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},Option$s=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Option$1$1=Option$s,placeholderCSS=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return _objectSpread2$2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Placeholder$m=function(e){var t=e.children,n=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"placeholder",{placeholder:!0}),n),t)},Placeholder$1$1=Placeholder$m,css=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return _objectSpread2$2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},SingleValue$c=function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return jsx("div",_extends$I({},getStyleProps(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},SingleValue$1$1=SingleValue$c,components={ClearIndicator:ClearIndicator$h,Control:Control$1$1,DropdownIndicator:DropdownIndicator$u,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1$1,GroupHeading:GroupHeading$8,IndicatorsContainer:IndicatorsContainer$2,IndicatorSeparator:IndicatorSeparator$q,Input:Input$1$1,LoadingIndicator:LoadingIndicator$2,Menu:Menu$1$1,MenuList:MenuList$9,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage$3,MultiValue:MultiValue$1$1,MultiValueContainer:MultiValueContainer$1,MultiValueLabel:MultiValueLabel$7,MultiValueRemove:MultiValueRemove$8,Option:Option$1$1,Placeholder:Placeholder$1$1,SelectContainer:SelectContainer$5,SingleValue:SingleValue$1$1,ValueContainer:ValueContainer$t},defaultComponents=function(e){return _objectSpread2$2(_objectSpread2$2({},components),e.components)},safeIsNaN$1=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$2(e,t){return e===t||!(!safeIsNaN$1(e)||!safeIsNaN$1(t))}function areInputsEqual$1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$2(e[n],t[n]))return!1;return!0}function memoizeOne$1(e,t){void 0===t&&(t=areInputsEqual$1);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}function _EMOTION_STRINGIFIED_CSS_ERROR__$2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var _ref="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$2},A11yText=function(e){return jsx("span",_extends$I({css:_ref},e))},A11yText$1=A11yText,defaultAriaLiveMessages={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,i=e.context,r=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(d(a,n),".");if("menu"===t&&c){var p=s?" disabled":"",u="".concat(l?" selected":"").concat(p);return"".concat(r).concat(u,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},LiveRegion=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,u=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,x=s.menuIsOpen,f=s.options,y=s.screenReaderStatus,S=s.tabSelectsValue,C=s.isLoading,$=s["aria-label"],b=s["aria-live"],v=useMemo(function(){return _objectSpread2$2(_objectSpread2$2({},defaultAriaLiveMessages),d||{})},[d]),E=useMemo(function(){var e,n="";if(t&&v.onChange){var o=t.option,i=t.options,r=t.removedValue,s=t.removedValues,l=t.value,c=r||o||(e=l,Array.isArray(e)?null:e),d=c?p(c):"",u=i||s||void 0,m=u?u.map(p):[],g=_objectSpread2$2({isDisabled:c&&h(c,a),label:d,labels:m},t);n=v.onChange(g)}return n},[t,v,h,a,p]),w=useMemo(function(){var e="",t=n||o,r=!!(n&&a&&a.includes(n));if(t&&v.onFocus){var s={focused:t,label:p(t),isDisabled:h(t,a),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=v.onFocus(s)}return e},[n,o,p,h,v,i,a,c]),R=useMemo(function(){var e="";if(x&&f.length&&!C&&v.onFilter){var t=y({count:i.length});e=v.onFilter({inputValue:u,resultsMessage:t})}return e},[i,u,x,v,f,y,C]),A="initial-input-focus"===(null==t?void 0:t.action),j=useMemo(function(){var e="";if(v.guidance){var t=o?"value":x?"menu":"input";e=v.guidance({"aria-label":$,context:t,isDisabled:n&&h(n,a),isMulti:m,isSearchable:g,tabSelectsValue:S,isInitialFocus:A})}return e},[$,n,o,m,h,g,x,v,a,S,A]),T=jsx(Fragment,null,jsx("span",{id:"aria-selection"},E),jsx("span",{id:"aria-focused"},w),jsx("span",{id:"aria-results"},R),jsx("span",{id:"aria-guidance"},j));return jsx(Fragment,null,jsx(A11yText$1,{id:l},A&&T),jsx(A11yText$1,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},r&&!A&&T))},LiveRegion$1=LiveRegion,diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],anyDiacritic=new RegExp("["+diacritics.map(function(e){return e.letters}).join("")+"]","g"),diacriticToBase={},i$2=0;i$2<diacritics.length;i$2++)for(var diacritic=diacritics[i$2],j=0;j<diacritic.letters.length;j++)diacriticToBase[diacritic.letters[j]]=diacritic.base;var stripDiacritics=function(e){return e.replace(anyDiacritic,function(e){return diacriticToBase[e]})},memoizedStripDiacriticsForInput=memoizeOne$1(stripDiacritics),trimString=function(e){return e.replace(/^\s+|\s+$/g,"")},defaultStringify=function(e){return"".concat(e.label," ").concat(e.value)},createFilter=function(e){return function(t,n){if(t.data.__isNew__)return!0;var o=_objectSpread2$2({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,r=o.ignoreAccents,a=o.stringify,s=o.trim,l=o.matchFrom,c=s?trimString(n):n,d=s?trimString(a(t)):a(t);return i&&(c=c.toLowerCase(),d=d.toLowerCase()),r&&(c=memoizedStripDiacriticsForInput(c),d=stripDiacritics(d)),"start"===l?d.substr(0,c.length)===c:d.indexOf(c)>-1}},_excluded$e=["innerRef"];function DummyInput(e){var t=e.innerRef,n=_objectWithoutProperties$c(e,_excluded$e),o=removeProps(n,"onExited","in","enter","exit","appear");return jsx("input",_extends$I({ref:t},o,{css:/* @__PURE__ */css$2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var cancelScroll=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function useScrollCapture(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,a=useRef(!1),s=useRef(!1),l=useRef(0),c=useRef(null),d=useCallback(function(e,t){if(null!==c.current){var l=c.current,d=l.scrollTop,p=l.scrollHeight,u=l.clientHeight,m=c.current,h=t>0,g=p-u-d,x=!1;g>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(r&&r(e),s.current=!1),h&&t>g?(n&&!a.current&&n(e),m.scrollTop=p,x=!0,a.current=!0):!h&&-t>d&&(i&&!s.current&&i(e),m.scrollTop=0,x=!0,s.current=!0),x&&cancelScroll(e)}},[n,o,i,r]),p=useCallback(function(e){d(e,e.deltaY)},[d]),u=useCallback(function(e){l.current=e.changedTouches[0].clientY},[]),m=useCallback(function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)},[d]),h=useCallback(function(e){if(e){var t=!!supportsPassiveEvents&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",u,t),e.addEventListener("touchmove",m,t)}},[m,u,p]),g=useCallback(function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",u,!1),e.removeEventListener("touchmove",m,!1))},[m,u,p]);return useEffect(function(){if(t){var e=c.current;return h(e),function(){g(e)}}},[t,h,g]),function(e){c.current=e}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.cancelable&&e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),activeScrollLocks=0,listenerOptions={capture:!1,passive:!1};function useScrollLock(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,i=useRef({}),r=useRef(null),a=useCallback(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;if(o&&STYLE_KEYS.forEach(function(e){var t=n&&n[e];i.current[e]=t}),o&&activeScrollLocks<1){var r=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+r||0;Object.keys(LOCK_STYLES).forEach(function(e){var t=LOCK_STYLES[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&isTouchDevice()&&(t.addEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.addEventListener("touchstart",preventInertiaScroll,listenerOptions),e.addEventListener("touchmove",allowTouchMove,listenerOptions))),activeScrollLocks+=1}},[o]),s=useCallback(function(e){if(canUseDOM){var t=document.body,n=t&&t.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),o&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&isTouchDevice()&&(t.removeEventListener("touchmove",preventTouchMove,listenerOptions),e&&(e.removeEventListener("touchstart",preventInertiaScroll,listenerOptions),e.removeEventListener("touchmove",allowTouchMove,listenerOptions)))}},[o]);return useEffect(function(){if(t){var e=r.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){r.current=e}}function _EMOTION_STRINGIFIED_CSS_ERROR__$1(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var blurSelectInput=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},_ref2$1="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$1};function ScrollManager(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,i=useScrollCapture({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=useScrollLock({isEnabled:n});return jsx(Fragment,null,n&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),t(function(e){i(e),r(e)}))}function _EMOTION_STRINGIFIED_CSS_ERROR__(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__},RequiredInput=function(e){var t=e.name,n=e.onFocus;return jsx("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:_ref2,value:"",onChange:function(){}})},RequiredInput$1=RequiredInput;function testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS$1(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS$1()}var formatGroupLabel=function(e){return e.label},getOptionLabel$1=function(e){return e.label},getOptionValue$1=function(e){return e.value},isOptionDisabled=function(e){return!!e.isDisabled},defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css,valueContainer:valueContainerCSS},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},borderRadius=4,baseUnit=4,controlHeight=38,menuGutter=2*baseUnit,spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter},defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing},defaultProps$1={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:isOptionDisabled,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(e,t,n,o){return{type:"option",data:t,isDisabled:_isOptionDisabled(e,t,n),isSelected:_isOptionSelected(e,t,n),label:getOptionLabel(e,t),value:getOptionValue(e,t),index:o}}function buildCategorizedOptions(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return toCategorizedOption(e,n,t,o)}).filter(function(t){return isFocusable(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=toCategorizedOption(e,n,t,o);return isFocusable(e,r)?r:void 0}).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,_toConsumableArray(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function buildFocusableOptionsWithIds(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,_toConsumableArray(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function buildFocusableOptions(e,t){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(e,t))}function isFocusable(e,t){var n=e.inputValue,o=void 0===n?"":n,i=t.data,r=t.isSelected,a=t.label,s=t.value;return(!shouldHideSelectedOptions(e)||!r)&&_filterOption(e,{label:a,value:s,data:i},o)}function getNextFocusedValue(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}function getNextFocusedOption(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var getFocusedOptionId=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},getOptionLabel=function(e,t){return e.getOptionLabel(t)},getOptionValue=function(e,t){return e.getOptionValue(t)};function _isOptionDisabled(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _isOptionSelected(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=getOptionValue(e,t);return n.some(function(t){return getOptionValue(e,t)===o})}function _filterOption(e,t,n){return!e.filterOption||e.filterOption(t,n)}var shouldHideSelectedOptions=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},instanceId=1,Select$2=/* @__PURE__ */function(e){_inherits$2(n,Component);var t=_createSuper(n);function n(e){var o;if(_classCallCheck$a(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,s=i&&o.isOptionSelected(e,a),l=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(multiValueAsValue(a.filter(function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void o.ariaOnChange(singleValueAsValue(e),{action:"select-option",option:e,name:r});i?o.setValue(multiValueAsValue([].concat(_toConsumableArray(a),[e])),"select-option",e):o.setValue(singleValueAsValue(e),"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,i=o.getOptionValue(e),r=n.filter(function(e){return o.getOptionValue(e)!==i}),a=valueTernary(t,r,r[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(valueTernary(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),r=valueTernary(e,i,i[0]||null);n&&o.onChange(r,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return getFocusedOptionId(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return classNames.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return getOptionLabel(o.props,e)},o.getOptionValue=function(e){return getOptionValue(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=defaultStyles[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return defaultComponents(o.props)},o.buildCategorizedOptions=function(){return buildCategorizedOptions(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:_objectSpread2$2({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&isDocumentElement(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,d=t.onKeyDown,p=t.tabSelectsValue,u=t.openMenuOnFocus,m=o.state,h=m.focusedOption,g=m.focusedValue,x=m.selectValue;if(!(l||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)o.removeValue(g);else{if(!i)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!p||!h||u&&o.isOptionSelected(h,x))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&r&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++instanceId),o.state.selectValue=cleanValue(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=r[a],o.state.focusedOptionId=getFocusedOptionId(i,r[a])}return o}return _createClass$a(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef),isAppleDevice()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a],focusedOptionId:this.getFocusedOptionId(r[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(defaultTheme):_objectSpread2$2(_objectSpread2$2({},defaultTheme),this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,d=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:d,selectOption:r,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return _isOptionDisabled(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _isOptionSelected(this.props,e,t)}},{key:"filterOption",value:function(e,t){return _filterOption(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,r=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,d=this.state,p=d.inputIsHidden,u=d.ariaSelection,m=this.commonProps,h=o||this.getElementId("input"),g=_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==u?void 0:u.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?/* @__PURE__ */React.createElement(c,_extends$I({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:a,type:"text",value:i},g)):/* @__PURE__ */React.createElement(DummyInput,_extends$I({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop$6,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,u=c.isMulti,m=c.inputValue,h=c.placeholder,g=this.state,x=g.selectValue,f=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:/* @__PURE__ */React.createElement(s,_extends$I({},l,{key:"placeholder",isDisabled:p,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(u)return x.map(function(t,a){var s=t===f,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));/* @__PURE__ */
|
|
6482
6482
|
return React.createElement(n,_extends$I({},l,{components:{Container:o,Label:i,Remove:r},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var S=x[0];/* @__PURE__ */
|
|
6483
6483
|
return React.createElement(a,_extends$I({},l,{data:S,isDisabled:p}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};/* @__PURE__ */
|
|
6484
6484
|
return React.createElement(e,_extends$I({},t,{innerProps:a,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;if(!e||!i)return null;/* @__PURE__ */
|
|
@@ -9507,7 +9507,7 @@ return jsxRuntimeExports.jsx(AiCfoQuestionAnswer,{enableTypingEffect:!1,enableCo
|
|
|
9507
9507
|
height: 12px;
|
|
9508
9508
|
color: currentColor;
|
|
9509
9509
|
flex-shrink: 0;
|
|
9510
|
-
`;function StyledCapsule({label:e,labelColor:t,labelStyle:n,capsuleBackground:o,showChevron:i=!1,style:r,dataTestId:a="styled-capsule",type:s="default",onClick:l=noop$
|
|
9510
|
+
`;function StyledCapsule({label:e,labelColor:t,labelStyle:n,capsuleBackground:o,showChevron:i=!1,style:r,dataTestId:a="styled-capsule",type:s="default",onClick:l=noop$9}){/* @__PURE__ */
|
|
9511
9511
|
return jsxRuntimeExports.jsxs(CapsuleContainer,{style:r,"data-testid":a,capsuleBackground:o,labelColor:t,onClick:l,type:s,children:[
|
|
9512
9512
|
/* @__PURE__ */jsxRuntimeExports.jsx(CapsuleLabel$1,{style:n,children:e}),!0===i?/* @__PURE__ */jsxRuntimeExports.jsx(ChevronIcon$5,{}):null]})}const drawerTags={new:appLocale.getLocalizedStrings().common.texts.new},NewTag=()=>{const e=useTheme();/* @__PURE__ */
|
|
9513
9513
|
return jsxRuntimeExports.jsx(StyledCapsule,{label:drawerTags.new,capsuleBackground:e.colors.grey5,labelColor:Colors.brandColorJadeDark,style:{width:30,height:13,borderRadius:18,border:`1px solid ${Colors.brandColorJadeDark}`,marginLeft:Space.sp2,padding:Space.sp0},labelStyle:{fontSize:9,color:Colors.brandColorJadeDark,fontWeight:FontWeight.bold}})},SvgAccounting=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M9.64917 0.997038V4.78837H13.4879",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.5 9.48996H9.5V9.49006H12.5V9.48996Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M14.125 14.4375V7.5625C14.125 7.38991 13.9851 7.25 13.8125 7.25H8.1875C8.01491 7.25 7.875 7.38991 7.875 7.5625V14.4375C7.875 14.6101 8.01491 14.75 8.1875 14.75H13.8125C13.9851 14.75 14.125 14.6101 14.125 14.4375Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M9.4375 11.8437C9.71364 11.8437 9.9375 11.6199 9.9375 11.3437C9.9375 11.0676 9.71364 10.8437 9.4375 10.8437C9.16136 10.8437 8.9375 11.0676 8.9375 11.3437C8.9375 11.6199 9.16136 11.8437 9.4375 11.8437Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M11 11.8437C11.2761 11.8437 11.5 11.6199 11.5 11.3437C11.5 11.0676 11.2761 10.8437 11 10.8437C10.7239 10.8437 10.5 11.0676 10.5 11.3437C10.5 11.6199 10.7239 11.8437 11 11.8437Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M12.5625 11.8437C12.8386 11.8437 13.0625 11.6199 13.0625 11.3437C13.0625 11.0676 12.8386 10.8437 12.5625 10.8437C12.2864 10.8437 12.0625 11.0676 12.0625 11.3437C12.0625 11.6199 12.2864 11.8437 12.5625 11.8437Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M9.4375 13.4062C9.71364 13.4062 9.9375 13.1824 9.9375 12.9062C9.9375 12.6301 9.71364 12.4062 9.4375 12.4062C9.16136 12.4062 8.9375 12.6301 8.9375 12.9062C8.9375 13.1824 9.16136 13.4062 9.4375 13.4062Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M11 13.4062C11.2761 13.4062 11.5 13.1824 11.5 12.9062C11.5 12.6301 11.2761 12.4062 11 12.4062C10.7239 12.4062 10.5 12.6301 10.5 12.9062C10.5 13.1824 10.7239 13.4062 11 13.4062Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M12.5625 13.4062C12.8386 13.4062 13.0625 13.1824 13.0625 12.9062C13.0625 12.6301 12.8386 12.4062 12.5625 12.4062C12.2864 12.4062 12.0625 12.6301 12.0625 12.9062C12.0625 13.1824 12.2864 13.4062 12.5625 13.4062Z",fill:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M13.4883 5.52426V4.78838L9.64939 0.99707H3.06843C2.92298 0.99707 2.78349 1.05413 2.68065 1.15571C2.5778 1.25728 2.52002 1.39504 2.52002 1.53869V13.4542C2.52002 13.5979 2.5778 13.7356 2.68065 13.8372C2.78349 13.9388 2.92298 13.9958 3.06843 13.9958H5.96903",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgActivity=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M7.73364 5.75V8.75L10.2336 10.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M4.94497 5.41509L2.45001 5.57365L2.29144 3.07868",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.1238 12.3564C12.9856 11.5725 13.5974 10.552 13.8826 9.42236C14.1678 8.29274 14.1138 7.10414 13.7273 6.00504C13.3408 4.90595 12.6391 3.94511 11.7097 3.24258C10.7802 2.54005 9.66441 2.12698 8.50157 2.05499C7.33874 1.98299 6.18048 2.25526 5.1715 2.83778C4.16252 3.42029 3.19185 4.62637 3.19185 4.62637",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.71814 12.2044C3.00509 11.4799 2.48879 10.5854 2.21814 9.60562",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M9.5 13.8125C8.5163 14.0679 7.4837 14.0679 6.5 13.8125",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgAiIconPlainThin=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M9.74707 6.07052L11.2433 2.02682C11.5032 1.32439 12.4968 1.32439 12.7567 2.02683L14.2529 6.07052C14.8833 7.77389 16.2261 9.1167 17.9295 9.74707L21.9732 11.2433C22.6756 11.5032 22.6756 12.4968 21.9732 12.7567L17.9295 14.2529C16.2261 14.8833 14.8833 16.2261 14.2529 17.9295L12.7567 21.9732C12.4968 22.6756 11.5032 22.6756 11.2433 21.9732L9.74707 17.9295C9.1167 16.2261 7.77389 14.8833 6.07052 14.2529L2.02682 12.7567C1.32439 12.4968 1.32439 11.5032 2.02683 11.2433L6.07052 9.74707C7.77389 9.1167 9.1167 7.77389 9.74707 6.07052Z",stroke:"currentColor",strokeWidth:1.5})),SvgAlert=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8.90063 2.51375L14.3669 12.0056C14.75 12.6744 14.255 13.5 13.4663 13.5H2.53375C1.745 13.5 1.25 12.6744 1.63313 12.0056L7.09938 2.51375C7.49313 1.82875 8.50688 1.82875 8.90063 2.51375Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 9V6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 12C8.41421 12 8.75 11.6642 8.75 11.25C8.75 10.8358 8.41421 10.5 8 10.5C7.58579 10.5 7.25 10.8358 7.25 11.25C7.25 11.6642 7.58579 12 8 12Z",fill:"currentColor"})),SvgBankBuilding=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M2.49951 13.6094H13.4995",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M7.4288 2.78813C7.77212 2.54921 8.22788 2.54921 8.5712 2.78813L13.9734 6.54751C14.2145 6.71529 14.0957 7.09375 13.802 7.09375H2.198C1.90426 7.09375 1.78554 6.71529 2.02664 6.54751L7.4288 2.78813Z",stroke:"currentColor"}),/* @__PURE__ */React.createElement("path",{d:"M3.95264 7.09375V13.0938",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.021 7.09375V13.0938",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M7.99561 7.09375V13.0938",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("circle",{cx:7.99951,cy:5.00098,r:.75,fill:"currentColor"})),SvgBilling=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M12.6875 0.812474H4.5625C4.1481 0.812474 3.75067 0.977094 3.45765 1.27012C3.16462 1.56315 3 1.96057 3 2.37497V12.7725C2.99993 13.2312 2.8931 13.6835 2.68797 14.0938C2.48283 14.5041 2.18503 14.861 1.81813 15.1362L1.75 15.1875H9.875L9.94313 15.1362C10.31 14.861 10.6078 14.5041 10.813 14.0938C11.0181 13.6835 11.1249 13.2312 11.125 12.7725V2.46435C11.1166 2.06627 11.2547 1.67898 11.513 1.37597C11.7713 1.07296 12.1319 0.875335 12.5263 0.820599C12.7439 0.798018 12.9638 0.8214 13.1719 0.889232C13.3799 0.957063 13.5714 1.06783 13.7339 1.21436C13.8964 1.3609 14.0263 1.53992 14.1152 1.73986C14.2041 1.93979 14.25 2.15616 14.25 2.37497V4.56247C14.25 4.72823 14.1842 4.88721 14.0669 5.00442C13.9497 5.12163 13.7908 5.18747 13.625 5.18747H11.125",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M4.66663 10.6667H9.35413",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M4.66663 12.5417H7.47913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M7.01038 3.02188C7.28649 3.02188 7.51032 3.24578 7.51038 3.52188V3.62247H7.90979C8.18593 3.62247 8.40979 3.84632 8.40979 4.12247C8.40953 4.39838 8.18577 4.62247 7.90979 4.62247H6.56018C6.49395 4.62252 6.43026 4.64887 6.38342 4.69571C6.33675 4.74256 6.31018 4.80632 6.31018 4.87247C6.31031 4.9386 6.33665 5.00246 6.38342 5.04922C6.43025 5.09597 6.49402 5.12242 6.56018 5.12247H7.46057C7.79195 5.12257 8.11003 5.25435 8.34436 5.48868C8.57857 5.72307 8.71057 6.04111 8.71057 6.37247C8.71044 6.70372 8.57854 7.02197 8.34436 7.25626C8.1218 7.47864 7.82357 7.60699 7.51038 7.61954V7.72208C7.51011 7.99799 7.28636 8.22208 7.01038 8.22208C6.7344 8.22208 6.51064 7.99799 6.51038 7.72208V7.62247H6.10999C5.83418 7.62226 5.61025 7.39826 5.60999 7.12247C5.60999 6.84646 5.83402 6.62268 6.10999 6.62247H7.46057C7.52657 6.62236 7.59057 6.5958 7.63733 6.54922C7.68398 6.50247 7.71044 6.4385 7.71057 6.37247C7.71057 6.30632 7.684 6.24256 7.63733 6.19571C7.59054 6.14892 7.52673 6.12257 7.46057 6.12247H6.56018C6.2288 6.12242 5.91075 5.99054 5.67639 5.75626C5.44209 5.52195 5.31031 5.20381 5.31018 4.87247C5.31018 4.54111 5.44218 4.22307 5.67639 3.98868C5.89899 3.76608 6.19706 3.63698 6.51038 3.62442V3.52188C6.51043 3.24578 6.73427 3.02188 7.01038 3.02188Z",fill:"currentColor"})),SvgBills=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M5 6.5H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 8.5H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M2 13V3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H13.5C13.6326 3 13.7598 3.05268 13.8536 3.14645C13.9473 3.24021 14 3.36739 14 3.5V13L12 12L10 13L8 12L6 13L4 12L2 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgCards=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M14 3.5H2C1.72386 3.5 1.5 3.72386 1.5 4V12C1.5 12.2761 1.72386 12.5 2 12.5H14C14.2761 12.5 14.5 12.2761 14.5 12V4C14.5 3.72386 14.2761 3.5 14 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10.5 10.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M7.5 10.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M1.5 6H14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgCatalog=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 5.5C8 4.96957 8.21071 4.46086 8.58579 4.08579C8.96086 3.71071 9.46957 3.5 10 3.5H14.5V12.5H10C9.46957 12.5 8.96086 12.7107 8.58579 13.0858C8.21071 13.4609 8 13.9696 8 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M1.5 12.5H6C6.53043 12.5 7.03914 12.7107 7.41421 13.0858C7.78929 13.4609 8 13.9696 8 14.5V5.5C8 4.96957 7.78929 4.46086 7.41421 4.08579C7.03914 3.71071 6.53043 3.5 6 3.5H1.5V12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.5 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.5 9H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M11.25 5.3999C11.5261 5.3999 11.7499 5.6238 11.75 5.8999V6.00049H12.1494C12.4256 6.00049 12.6494 6.22435 12.6494 6.50049C12.6492 6.77641 12.4254 7.00049 12.1494 7.00049H10.7998C10.7336 7.00054 10.6699 7.02689 10.623 7.07373C10.5764 7.12058 10.5498 7.18435 10.5498 7.25049C10.5499 7.31662 10.5763 7.38048 10.623 7.42725C10.6699 7.47399 10.7336 7.50044 10.7998 7.50049H11.7002C12.0316 7.50059 12.3497 7.63237 12.584 7.8667C12.8182 8.10109 12.9502 8.41913 12.9502 8.75049C12.9501 9.08174 12.8182 9.39999 12.584 9.63428C12.3614 9.85666 12.0632 9.98501 11.75 9.99756V10.1001C11.7497 10.376 11.526 10.6001 11.25 10.6001C10.974 10.6001 10.7503 10.376 10.75 10.1001V10.0005H10.3496C10.0738 10.0003 9.84987 9.77628 9.84961 9.50049C9.84961 9.22448 10.0736 9.0007 10.3496 9.00049H11.7002C11.7662 9.00039 11.8302 8.97382 11.877 8.92725C11.9236 8.8805 11.9501 8.81652 11.9502 8.75049C11.9502 8.68435 11.9236 8.62058 11.877 8.57373C11.8302 8.52694 11.7664 8.50059 11.7002 8.50049H10.7998C10.4684 8.50044 10.1504 8.36856 9.91602 8.13428C9.68171 7.89997 9.54993 7.58183 9.5498 7.25049C9.5498 6.91913 9.68181 6.60109 9.91602 6.3667C10.1386 6.1441 10.4367 6.015 10.75 6.00244V5.8999C10.7501 5.6238 10.9739 5.3999 11.25 5.3999Z",fill:"currentColor"})),SvgChecklist=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 10.9629H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 5.96289H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M2.01981 5.48276L3.49993 6.96289L6.49993 3.96289",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M2.01981 10.4828L3.49993 11.9629L6.49993 8.96289",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgCommand=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M11.25 2.96289C11.7141 2.96289 12.1592 3.14727 12.4874 3.47545C12.8156 3.80364 13 4.24876 13 4.71289C13 5.17702 12.8156 5.62214 12.4874 5.95033C12.1592 6.27852 11.7141 6.46289 11.25 6.46289H9.5V4.71289C9.5 4.24876 9.68437 3.80364 10.0126 3.47545C10.3408 3.14727 10.7859 2.96289 11.25 2.96289Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M6.5 6.46289H4.75C4.28587 6.46289 3.84075 6.27852 3.51256 5.95033C3.18437 5.62214 3 5.17702 3 4.71289C3 4.24876 3.18437 3.80364 3.51256 3.47545C3.84075 3.14727 4.28587 2.96289 4.75 2.96289C5.21413 2.96289 5.65925 3.14727 5.98744 3.47545C6.31563 3.80364 6.5 4.24876 6.5 4.71289V6.46289Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M9.5 9.46289H11.25C11.7141 9.46289 12.1592 9.64726 12.4874 9.97545C12.8156 10.3036 13 10.7488 13 11.2129C13 11.677 12.8156 12.1221 12.4874 12.4503C12.1592 12.7785 11.7141 12.9629 11.25 12.9629C10.7859 12.9629 10.3408 12.7785 10.0126 12.4503C9.68437 12.1221 9.5 11.677 9.5 11.2129V9.46289Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M4.75 12.9629C4.28587 12.9629 3.84075 12.7785 3.51256 12.4503C3.18437 12.1221 3 11.677 3 11.2129C3 10.7488 3.18437 10.3036 3.51256 9.97545C3.84075 9.64726 4.28587 9.46289 4.75 9.46289H6.5V11.2129C6.5 11.677 6.31563 12.1221 5.98744 12.4503C5.65925 12.7785 5.21413 12.9629 4.75 12.9629Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M9.5 6.46289H6.5V9.46289H9.5V6.46289Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgCompanyDetails=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M11.5 10H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M11.5 6H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M13 2.5H3C2.72386 2.5 2.5 2.72386 2.5 3V13C2.5 13.2761 2.72386 13.5 3 13.5H13C13.2761 13.5 13.5 13.2761 13.5 13V3C13.5 2.72386 13.2761 2.5 13 2.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M7 9C7.82843 9 8.5 8.32843 8.5 7.5C8.5 6.67157 7.82843 6 7 6C6.17157 6 5.5 6.67157 5.5 7.5C5.5 8.32843 6.17157 9 7 9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 10.5C5.22187 9.6375 6.06813 9 7 9C7.93187 9 8.77875 9.63687 9 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M11.5 2.5V13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgDashboard=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M6.5 3H3.5C3.22386 3 3 3.22386 3 3.5V6.5C3 6.77614 3.22386 7 3.5 7H6.5C6.77614 7 7 6.77614 7 6.5V3.5C7 3.22386 6.77614 3 6.5 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.5 3H9.5C9.22386 3 9 3.22386 9 3.5V6.5C9 6.77614 9.22386 7 9.5 7H12.5C12.7761 7 13 6.77614 13 6.5V3.5C13 3.22386 12.7761 3 12.5 3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M6.5 9H3.5C3.22386 9 3 9.22386 3 9.5V12.5C3 12.7761 3.22386 13 3.5 13H6.5C6.77614 13 7 12.7761 7 12.5V9.5C7 9.22386 6.77614 9 6.5 9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.5 9H9.5C9.22386 9 9 9.22386 9 9.5V12.5C9 12.7761 9.22386 13 9.5 13H12.5C12.7761 13 13 12.7761 13 12.5V9.5C13 9.22386 12.7761 9 12.5 9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgDollarRound=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 4.5V5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 10.5V11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M6.5 10.5H8.75C9.08152 10.5 9.39946 10.3683 9.63388 10.1339C9.8683 9.89946 10 9.58152 10 9.25C10 8.91848 9.8683 8.60054 9.63388 8.36612C9.39946 8.1317 9.08152 8 8.75 8H7.25C6.91848 8 6.60054 7.8683 6.36612 7.63388C6.1317 7.39946 6 7.08152 6 6.75C6 6.41848 6.1317 6.10054 6.36612 5.86612C6.60054 5.6317 6.91848 5.5 7.25 5.5H9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgHome=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M2.5 13.4633H13.5V7.46328C13.5001 7.3976 13.4872 7.33256 13.4621 7.27186C13.437 7.21116 13.4002 7.156 13.3538 7.10953L8.35375 2.10953C8.30731 2.06305 8.25217 2.02617 8.19147 2.001C8.13077 1.97584 8.06571 1.96289 8 1.96289C7.93429 1.96289 7.86923 1.97584 7.80853 2.001C7.74783 2.02617 7.69269 2.06305 7.64625 2.10953L2.64625 7.10953C2.59983 7.156 2.56303 7.21116 2.53793 7.27186C2.51284 7.33256 2.49995 7.3976 2.5 7.46328V13.4633Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10.0834 9.16345C9.65106 9.91085 8.92554 10.4135 8.00002 10.4135C7.0745 10.4135 6.34898 9.91085 5.91669 9.16345",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgIntegration=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M5 10.5V9C5 8.73478 5.10536 8.48043 5.29289 8.29289C5.48043 8.10536 5.73478 8 6 8H11.5C11.7652 8 12.0196 7.89464 12.2071 7.70711C12.3946 7.51957 12.5 7.26522 12.5 7V5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 5.5V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 5.5C5.82843 5.5 6.5 4.82843 6.5 4C6.5 3.17157 5.82843 2.5 5 2.5C4.17157 2.5 3.5 3.17157 3.5 4C3.5 4.82843 4.17157 5.5 5 5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M12.5 5.5C13.3284 5.5 14 4.82843 14 4C14 3.17157 13.3284 2.5 12.5 2.5C11.6716 2.5 11 3.17157 11 4C11 4.82843 11.6716 5.5 12.5 5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 13.5C5.82843 13.5 6.5 12.8284 6.5 12C6.5 11.1716 5.82843 10.5 5 10.5C4.17157 10.5 3.5 11.1716 3.5 12C3.5 12.8284 4.17157 13.5 5 13.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgNotification=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M6 12C6 12.5304 6.21071 13.0391 6.58579 13.4142C6.96086 13.7893 7.46957 14 8 14C8.53043 14 9.03914 13.7893 9.41421 13.4142C9.78929 13.0391 10 12.5304 10 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.50004 6.5C3.50004 5.30653 3.97415 4.16193 4.81806 3.31802C5.66198 2.47411 6.80657 2 8.00004 2C9.19352 2 10.3381 2.47411 11.182 3.31802C12.0259 4.16193 12.5 5.30653 12.5 6.5C12.5 8.73875 13.0188 10.5375 13.4313 11.25C13.4751 11.3259 13.4982 11.4119 13.4983 11.4996C13.4984 11.5872 13.4754 11.6733 13.4317 11.7492C13.3881 11.8252 13.3252 11.8883 13.2494 11.9324C13.1737 11.9764 13.0877 11.9997 13 12H3.00004C2.91253 11.9995 2.82669 11.976 2.7511 11.9319C2.67551 11.8878 2.61281 11.8246 2.56929 11.7487C2.52576 11.6728 2.50292 11.5868 2.50305 11.4992C2.50319 11.4117 2.52629 11.3258 2.57004 11.25C2.98192 10.5375 3.50004 8.73813 3.50004 6.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgPeople=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M5.25 10C7.04493 10 8.5 8.54493 8.5 6.75C8.5 4.95507 7.04493 3.5 5.25 3.5C3.45507 3.5 2 4.95507 2 6.75C2 8.54493 3.45507 10 5.25 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M0.639404 12.5C1.13884 11.7321 1.82215 11.1011 2.62732 10.6643C3.43249 10.2275 4.33401 9.99872 5.25003 9.99872C6.16605 9.99872 7.06757 10.2275 7.87274 10.6643C8.67791 11.1011 9.36122 11.7321 9.86065 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10.75 10C11.666 9.99946 12.5676 10.2279 13.3728 10.6645C14.178 11.1011 14.8613 11.7321 15.3606 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M9.54309 3.73125C9.98766 3.55393 10.4659 3.477 10.9437 3.50595C11.4214 3.5349 11.8869 3.66901 12.3068 3.89871C12.7267 4.1284 13.0907 4.44801 13.3728 4.83469C13.6548 5.22138 13.848 5.66559 13.9385 6.13559C14.029 6.60558 14.0145 7.08977 13.8962 7.55353C13.7779 8.0173 13.5586 8.44921 13.2539 8.81839C12.9493 9.18758 12.5669 9.48492 12.1341 9.68918C11.7012 9.89344 11.2286 9.99958 10.75 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgPerformanceIcon=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M7.5 10L13.5 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.5275 10C3.50919 9.83396 3.50001 9.66704 3.5 9.5C3.5006 8.78584 3.67103 8.08207 3.99722 7.44676C4.3234 6.81144 4.796 6.26281 5.37599 5.84613C5.95599 5.42945 6.62676 5.15667 7.33295 5.0503C8.03914 4.94393 8.7605 5.00702 9.4375 5.23437",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M13.7887 6.54002C14.1897 7.32664 14.4267 8.18646 14.4856 9.06739C14.5445 9.94832 14.4239 10.832 14.1312 11.665C14.0971 11.7632 14.0331 11.8483 13.9483 11.9085C13.8635 11.9686 13.7621 12.0008 13.6581 12.0006H2.34124C2.23708 12.0002 2.13563 11.9674 2.05088 11.9069C1.96613 11.8463 1.90228 11.7609 1.86812 11.6625C1.61813 10.9517 1.49357 10.2029 1.49999 9.44939C1.52749 5.87502 4.48312 2.96814 8.06249 3.00002C9.07135 3.00811 10.0644 3.25166 10.9625 3.71127",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgProfile=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 10C9.38071 10 10.5 8.88071 10.5 7.5C10.5 6.11929 9.38071 5 8 5C6.61929 5 5.5 6.11929 5.5 7.5C5.5 8.88071 6.61929 10 8 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M3.98749 12.4609C4.36368 11.7199 4.93771 11.0976 5.64595 10.6629C6.35419 10.2282 7.16897 9.99805 7.99999 9.99805C8.831 9.99805 9.64578 10.2282 10.354 10.6629C11.0623 11.0976 11.6363 11.7199 12.0125 12.4609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgReceiptsMultiple=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M20.25 19.5H6.75C6.55109 19.5 6.36032 19.421 6.21967 19.2803C6.07902 19.1397 6 18.9489 6 18.75V2.25C6 2.05109 6.07902 1.86032 6.21967 1.71967C6.36032 1.57902 6.55109 1.5 6.75 1.5H15.75L21 6.75V18.75C21 18.9489 20.921 19.1397 20.7803 19.2803C20.6397 19.421 20.4489 19.5 20.25 19.5Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M15.75 1.5V6.75H21",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10.4941 11.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10.4941 14.2559H16.4941",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M16.5 22.5H3V5.85315",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),SvgReimbursements$1=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M2.5 3.5V11.5C2.5 11.7652 2.60536 12.0196 2.79289 12.2071C2.98043 12.3946 3.23478 12.5 3.5 12.5H13.5C13.6326 12.5 13.7598 12.4473 13.8536 12.3536C13.9473 12.2598 14 12.1326 14 12V5C14 4.86739 13.9473 4.74021 13.8536 4.64645C13.7598 4.55268 13.6326 4.5 13.5 4.5H3.5C3.23478 4.5 2.98043 4.39464 2.79289 4.20711C2.60536 4.01957 2.5 3.76522 2.5 3.5ZM2.5 3.5C2.5 3.23478 2.60536 2.98043 2.79289 2.79289C2.98043 2.60536 3.23478 2.5 3.5 2.5H12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M11.25 9C11.6642 9 12 8.66421 12 8.25C12 7.83579 11.6642 7.5 11.25 7.5C10.8358 7.5 10.5 7.83579 10.5 8.25C10.5 8.66421 10.8358 9 11.25 9Z",fill:"currentColor"})),SvgReports=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M6 9.5H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M6 7.5H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M10 2.5H12.5C12.6326 2.5 12.7598 2.55268 12.8536 2.64645C12.9473 2.74021 13 2.86739 13 3V13.5C13 13.6326 12.9473 13.7598 12.8536 13.8536C12.7598 13.9473 12.6326 14 12.5 14H3.5C3.36739 14 3.24021 13.9473 3.14645 13.8536C3.05268 13.7598 3 13.6326 3 13.5V3C3 2.86739 3.05268 2.74021 3.14645 2.64645C3.24021 2.55268 3.36739 2.5 3.5 2.5H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5.5 4.5V4C5.5 3.33696 5.76339 2.70107 6.23223 2.23223C6.70107 1.76339 7.33696 1.5 8 1.5C8.66304 1.5 9.29893 1.76339 9.76777 2.23223C10.2366 2.70107 10.5 3.33696 10.5 4V4.5H5.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgRewardsIcon=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M13.5 5.75012H2.5C2.22386 5.75012 2 5.97398 2 6.25012V8.25012C2 8.52626 2.22386 8.75012 2.5 8.75012H13.5C13.7761 8.75012 14 8.52626 14 8.25012V6.25012C14 5.97398 13.7761 5.75012 13.5 5.75012Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M13 8.75012V13.2501C13 13.3827 12.9473 13.5099 12.8536 13.6037C12.7598 13.6974 12.6326 13.7501 12.5 13.7501H3.5C3.36739 13.7501 3.24021 13.6974 3.14645 13.6037C3.05268 13.5099 3 13.3827 3 13.2501V8.75012",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8 5.75012V13.7501",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M11.0494 2.70067C11.6331 3.28442 11.6675 4.26692 11.0494 4.81442C9.9925 5.75005 8 5.75005 8 5.75005C8 5.75005 8 3.75755 8.9375 2.70067C9.48312 2.08255 10.4656 2.11692 11.0494 2.70067Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M4.95055 2.70067C4.3668 3.28442 4.33243 4.26692 4.95055 4.81442C6.00743 5.75005 7.99993 5.75005 7.99993 5.75005C7.99993 5.75005 7.99993 3.75755 7.06243 2.70067C6.5168 2.08255 5.5343 2.11692 4.95055 2.70067Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgSettings=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 10.5C9.38071 10.5 10.5 9.38071 10.5 8C10.5 6.61929 9.38071 5.5 8 5.5C6.61929 5.5 5.5 6.61929 5.5 8C5.5 9.38071 6.61929 10.5 8 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M8.12814 12.8819C8.04439 12.8819 7.96002 12.8819 7.87814 12.8819L5.87502 14C5.09522 13.7377 4.37194 13.3306 3.74314 12.8L3.73564 10.55C3.69127 10.48 3.64939 10.4094 3.61064 10.3369L1.61877 9.2025C1.46188 8.40893 1.46188 7.59232 1.61877 6.79875L3.60877 5.6675C3.64939 5.59563 3.69127 5.52437 3.73377 5.45437L3.74377 3.20438C4.37199 2.67228 5.09509 2.26365 5.87502 2L7.87502 3.11812C7.95877 3.11812 8.04314 3.11812 8.12502 3.11812L10.125 2C10.9048 2.2623 11.6281 2.66943 12.2569 3.2L12.2644 5.45C12.3088 5.52 12.3506 5.59063 12.3894 5.66313L14.38 6.79688C14.5369 7.59044 14.5369 8.40706 14.38 9.20063L12.39 10.3319C12.3494 10.4037 12.3075 10.475 12.265 10.545L12.255 12.795C11.6272 13.3272 10.9045 13.736 10.125 14L8.12814 12.8819Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgTag=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8.39 1.72a1.33 1.33 0 0 0-.943-.39H2.667c-.737 0-1.334.597-1.334 1.337v4.78c0 .353.14.692.39.942l5.803 5.803a1.617 1.617 0 0 0 2.28 0l4.387-4.386a1.617 1.617 0 0 0 0-2.28L8.39 1.72Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5 5.667a.667.667 0 1 0 0-1.334.667.667 0 0 0 0 1.334Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),SvgUpload=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M8 9V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M13.5 9V13H2.5V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M5.5 4.5L8 2L10.5 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),{drawerMenus:drawerMenus,common:{analytics:analyticsLabel,headers:{bills:billsLabel,fluxAnalysis:fluxAnalysisLabel,jeSchedules:jeSchedulesLabel,notifications:notificationsLabel,reimbursements:reimbursementsLabel,vendors:vendorsLabel},settings:{bankConnectionHeader:{productType:productsLabel},integrations:{connectorTooltips:{accountantSectionLabel:aiAccountantLabel}},notifications:{mode:{dashboard:dashboardLabel}},productNameByType:{charge_cards:cardsLabel,zeni_accounts:checkingLabel,zeni_treasury:treasuryLabel},title:{accounting:accountingLabel,approvalRules:approvalRulesLabel,bankConnections:bankConnectionsLabel,integrations:integrationsLabel,myBankConnections:myBankConnectionsLabel,myProfile:myProfileLabel}},texts:{aiBookkeeping:aiBookkeepingLabel,aiCfo:aiCfoLabel,auditLog:auditLogLabel,billing:billingLabel,businessVerification:businessVerificationLabel,cockpit:cockpitLabel$1,companyDetails:companyDetailsLabel,companySettings:companySettingsLabel,creditNotes:creditNotesLabel$1,customers:customersLabel,dataImport:dataImportLabel,discount:discountLabel$3,dunning:dunningLabel,forecast:forecastLabel$2,invoiceBranding:invoiceBrandingLabel,invoices:invoicesLabel,invoicing:invoicingLabel,logout:logoutLabel,paymentDestination:paymentDestinationLabel,payments2:paymentsLabel,people:peopleLabel,receipts:receiptsLabel,reports2:reportsLabel,rewards:rewardsLabel,settings:settingsLabel$1,routines:routinesLabel,skills:skillsLabel,subscriptions:subscriptionsLabel$1,transactions:transactionsLabel}}}=appLocale.getLocalizedStrings(),MENU_TITLE_MAP={...drawerMenus,accounting:accountingLabel,ai_automation:aiBookkeepingLabel,ai_cfo:aiCfoLabel,approval_rules:approvalRulesLabel,bank_connections:bankConnectionsLabel,billing:billingLabel,bills:billsLabel,business_verification:businessVerificationLabel,cards:cardsLabel,checking:checkingLabel,cockpit:cockpitLabel$1,company_details:companyDetailsLabel,company_settings:companySettingsLabel,dashboard:dashboardLabel,flux_analysis:fluxAnalysisLabel,forecast:forecastLabel$2,integrations:integrationsLabel,invoicing:invoicingLabel,invoicing_analytics:analyticsLabel,invoicing_audit_log:auditLogLabel,invoicing_catalog:productsLabel,invoicing_credits:creditNotesLabel$1,invoicing_customers:customersLabel,invoicing_data_import:dataImportLabel,invoicing_discounts:discountLabel$3,invoicing_dunning:dunningLabel,invoicing_integrations:integrationsLabel,invoicing_invoices:invoicesLabel,invoicing_overview:dashboardLabel,invoicing_payments:paymentsLabel,invoicing_reports:reportsLabel,invoicing_settings:settingsLabel$1,invoicing_settings_branding:invoiceBrandingLabel,invoicing_settings_dunning:dunningLabel,invoicing_settings_integrations:integrationsLabel,invoicing_settings_payment_destination:paymentDestinationLabel,invoicing_subscriptions:subscriptionsLabel$1,je_schedules:jeSchedulesLabel,logout:logoutLabel,missing_receipts:receiptsLabel,my_bank_connections:myBankConnectionsLabel,my_profile:myProfileLabel,notifications:notificationsLabel,people:peopleLabel,performance:aiAccountantLabel,reimbursements:reimbursementsLabel,reports:reportsLabel,rewards:rewardsLabel,settings:settingsLabel$1,routines:routinesLabel,skills:skillsLabel,transaction_categorization:transactionsLabel,treasury:treasuryLabel,vendors:vendorsLabel},ALL_MENU_OPTIONS=["home","reports","users_and_roles","forecast","performance","ai_cfo","cards","bills","billing","reimbursements","vendors","checking","rewards","treasury","command_center","company_settings","task_checklist","transaction_categorization","missing_receipts","je_schedules","flux_analysis","reconciliation","invoicing"],toMenuOptionType=e=>stringToUnion(e,ALL_MENU_OPTIONS),ALL_SETTINGS_MENU_OPTIONS=["accounting","approval_rules","bank_connections","billing","business_verification","company_details","integrations","my_profile","my_bank_connections","notifications"],toSettingsMenuOptionTypeStrict=e=>stringToUnionStrict(e,ALL_SETTINGS_MENU_OPTIONS),ALL_AI_CFO_MENU_OPTIONS=["new_chat","explore","skills","routines","search_chats"],ALL_INVOICING_MENU_OPTIONS=["invoicing_overview","invoicing_analytics","invoicing_customers","invoicing_subscriptions","invoicing_invoices","invoicing_payments","invoicing_credits","invoicing_discounts","invoicing_dunning","invoicing_reports","invoicing_catalog","invoicing_settings","invoicing_settings_payment_destination","invoicing_settings_branding","invoicing_settings_integrations","invoicing_settings_dunning","invoicing_settings_quickbooks","invoicing_integrations","invoicing_data_import","invoicing_audit_log"],toInvoicingMenuOptionType=e=>stringToUnion(e,ALL_INVOICING_MENU_OPTIONS),toInvoicingMenuOptionTypeStrict=e=>stringToUnionStrict(e,ALL_INVOICING_MENU_OPTIONS),ALL_MENU_GROUPS=["close_management","ai_intelligence","finance","accounts_receivable","accounts_payable","banking","administration"],ALL_SETTINGS_MENU_GROUPS=["company_settings","personal_settings"],ALL_INVOICING_MENU_GROUPS=["invoicing_general","invoicing_billing","invoicing_payments_group","invoicing_setup","invoicing_analytics_group"],Icon$3=({menu:e,isAnimated:t,focused:n})=>{switch(e){case"home":/* @__PURE__ */
|
|
@@ -10018,7 +10018,7 @@ return jsxRuntimeExports.jsxs(AccountDetailContainer$2,{children:[
|
|
|
10018
10018
|
`,ASK_AI_CFO_ANIMATION_PAUSE_MS=2e3;function AskAiCfoLottieIcon({animationData:e,onComplete:t}){/* @__PURE__ */
|
|
10019
10019
|
return jsxRuntimeExports.jsx(LottiePlayer,{style:{width:ASK_AI_CFO_ICON_SIZE_PX,height:ASK_AI_CFO_ICON_SIZE_PX,display:"block",flexShrink:0},animationData:e,play:!0,loop:!1,onComplete:t,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}function AskAiCfoNavButton({dataTestId:e="dashboard-ask-ai-cfo-button",enableAnimation:t=!0,isCompact:n=!1,onClick:o}){const i=useWindowSizeContext(),r=isMobileOrTabletView(i)||n,[a]=useAnimation("AiStarPlain",t),[s,l]=useState(0),c=useRef(null);useEffect(()=>()=>{null!=c.current&&clearTimeout(c.current)},[]);const d=useCallback(()=>{c.current=setTimeout(()=>{c.current=null,l(e=>e+1)},ASK_AI_CFO_ANIMATION_PAUSE_MS)},[]);/* @__PURE__ */
|
|
10020
10020
|
return jsxRuntimeExports.jsxs(AskAiCfoButton,{isCompact:r,type:"button",onClick:o,"data-testid":e,"aria-label":askAiCfo,children:[null!=a?/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoLottieIcon,{animationData:a,onComplete:d},s):/* @__PURE__ */jsxRuntimeExports.jsx(StyledAskAiCfoIcon,{}),
|
|
10021
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoButtonLabel,{isCompact:r,children:askAiCfo})]})}function AskAiCfoNavButtonWhenEnabled({isAiCfoAccessEnabled:e,onAskAiCfoClick:t,dataTestId:n,enableAnimation:o,isCompact:i}){return!0!==e||null==t?null:/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoNavButton,{dataTestId:n,enableAnimation:o,isCompact:i,onClick:t})}let windowObject;windowObject="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let cancelFrame=null,requestFrame=null;const TIMEOUT_DURATION=20,clearTimeoutFn=windowObject.clearTimeout,setTimeoutFn=windowObject.setTimeout,cancelAnimationFrameFn=windowObject.cancelAnimationFrame||windowObject.mozCancelAnimationFrame||windowObject.webkitCancelAnimationFrame,requestAnimationFrameFn=windowObject.requestAnimationFrame||windowObject.mozRequestAnimationFrame||windowObject.webkitRequestAnimationFrame;function createDetectElementResize(e){let t,n,o,i,r,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,i=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&cancelFrame(this.__resizeRAF__),this.__resizeRAF__=requestFrame(function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";o="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",o=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=windowObject.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const o=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(n.createTextNode(o)),r.appendChild(a)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const p=l.createElement("div");p.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(p),r.appendChild(r.__resizeTriggers__),a(r),r.addEventListener("scroll",s,!0),o&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(r)},r.__resizeTriggers__.addEventListener(o,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(o,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==cancelAnimationFrameFn||null==requestAnimationFrameFn?(cancelFrame=clearTimeoutFn,requestFrame=function(e){return setTimeoutFn(e,TIMEOUT_DURATION)}):(cancelFrame=function([e,t]){cancelAnimationFrameFn(e),clearTimeoutFn(t)},requestFrame=function(e){const t=requestAnimationFrameFn(function(){clearTimeoutFn(n),e()}),n=setTimeoutFn(function(){cancelAnimationFrameFn(t),e()},TIMEOUT_DURATION);return[t,n]});class AutoSizer extends Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},i=parseFloat(o.paddingLeft||"0"),r=parseFloat(o.paddingRight||"0"),a=parseFloat(o.paddingTop||"0"),s=parseFloat(o.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,d=l.width-i-r;if(!e&&this.state.height!==c||!t&&this.state.width!==d){this.setState({height:c,width:d});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:d,get scaledHeight(){return e(),c},get scaledWidth(){return e(),d}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=createDetectElementResize(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:r=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...d}=this.props,{height:p,width:u}=this.state,m={overflow:"visible"},h={};let g=!1;return o||(0===p&&(g=!0),m.height=0,h.height=p,h.scaledHeight=p),i||(0===u&&(g=!0),m.width=0,h.width=u,h.scaledWidth=u),r&&(g=!1),createElement(c,{ref:this._setRef,style:{...m,...l},...d},!g&&e(h))}}var safeIsNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$1(e,t){return e===t||!(!safeIsNaN(e)||!safeIsNaN(t))}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$1(e[n],t[n]))return!1;return!0}function memoizeOne(e,t){var n;void 0===t&&(t=areInputsEqual);var o,i=[],r=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r&&n===this&&t(a,i)||(o=e.apply(this,a),r=!0,n=this,i=a),o}}var hasNativePerformanceNow="object"==typeof performance&&"function"==typeof performance.now,now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(e){cancelAnimationFrame(e.id)}function requestTimeout(e,t){var n=now();var o={id:requestAnimationFrame(function i(){now()-n>=t?e.call(null):o.id=requestAnimationFrame(i)})};return o}var size=-1;function getScrollbarSize(e){if(void 0===e&&(e=!1),-1===size||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),size=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return size}var cachedRTLResult=null;function getRTLOffsetType(e){if(void 0===e&&(e=!1),null===cachedRTLResult||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var o=document.createElement("div"),i=o.style;return i.width="100px",i.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?cachedRTLResult="positive-descending":(t.scrollLeft=1,cachedRTLResult=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cachedRTLResult}return cachedRTLResult}process.env.NODE_ENV;var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function(e,t){return e},devWarningsDirection=null,devWarningsTagName$1=null;function createListComponent(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return(t=/* @__PURE__ */function(e){function t(t){var o;return(o=e.call(this,t)||this)._instanceProps=l(o.props,_assertThisInitialized$p(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:_assertThisInitialized$p(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof o.props.initialScrollOffset?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=memoizeOne(function(e,t,n,i){return o.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),o._callOnScroll=void 0,o._callOnScroll=memoizeOne(function(e,t,n){return o.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),o._getItemStyle=void 0,o._getItemStyle=function(e){var t,r=o.props,a=r.direction,s=r.itemSize,l=r.layout,d=o._getItemStyleCache(c&&s,c&&l,c&&a);if(d.hasOwnProperty(e))t=d[e];else{var p=n(o.props,e,o._instanceProps),u=i(o.props,e,o._instanceProps),m="horizontal"===a||"horizontal"===l,h="rtl"===a,g=m?p:0;d[e]=t={position:"absolute",left:h?void 0:g,right:h?g:void 0,top:m?0:p,height:m?"100%":u,width:m?u:"100%"}}return t},o._getItemStyleCache=void 0,o._getItemStyleCache=memoizeOne(function(e,t,n){return{}}),o._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,r=t.scrollWidth;o.setState(function(e){if(e.scrollOffset===i)return null;var t=o.props.direction,a=i;if("rtl"===t)switch(getRTLOffsetType()){case"negative":a=-i;break;case"positive-descending":a=r-n-i}return a=Math.max(0,Math.min(a,r-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,r=t.scrollTop;o.setState(function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._outerRefSetter=function(e){var t=o.props.outerRef;o._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},o._resetIsScrollingDebounced=function(){null!==o._resetIsScrollingTimeoutId&&cancelTimeout(o._resetIsScrollingTimeoutId),o._resetIsScrollingTimeoutId=requestTimeout(o._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},o._resetIsScrolling=function(){o._resetIsScrollingTimeoutId=null,o.setState({isScrolling:!1},function(){o._getItemStyleCache(-1,null)})},o}_inheritsLoose$1(t,e),t.getDerivedStateFromProps=function(e,t){return validateSharedProps$1(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,o=n.itemCount,i=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,o-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?getScrollbarSize():0:l.scrollHeight>l.clientHeight?getScrollbarSize():0}this.scrollTo(r(this.props,e,t,a,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,o=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===o?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,o=this.state,i=o.scrollOffset;if(o.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(getRTLOffsetType()){case"negative":r.scrollLeft=-i;break;case"positive-ascending":r.scrollLeft=i;break;default:var a=r.clientWidth,s=r.scrollWidth;r.scrollLeft=s-a-i}else r.scrollLeft=i;else r.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cancelTimeout(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,r=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,u=void 0===p?defaultItemKey$1:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,x=e.style,f=e.useIsScrolling,y=e.width,S=this.state.isScrolling,C="horizontal"===i||"horizontal"===m,$=C?this._onScrollHorizontal:this._onScrollVertical,b=this._getRangeToRender(),v=b[0],E=b[1],w=[];if(c>0)for(var R=v;R<=E;R++)w.push(createElement(t,{data:d,key:u(R,d),index:R,isScrolling:f?S:void 0,style:this._getItemStyle(R)}));var A=o(this.props,this._instanceProps);return createElement(h||g||"div",{className:n,onScroll:$,ref:this._outerRefSetter,style:_extends$I({position:"relative",height:r,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},x)},createElement(s||l||"div",{children:w,ref:a,style:{height:C?"100%":A,pointerEvents:S?"none":void 0,width:C?A:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],o=e[2],i=e[3];this._callOnItemsRendered(t,n,o,i)}if("function"==typeof this.props.onScroll){var r=this.state,a=r.scrollDirection,s=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,o=this.state,i=o.isScrolling,r=o.scrollDirection,l=o.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),d=s(this.props,c,l,this._instanceProps),p=i&&"backward"!==r?1:Math.max(1,n),u=i&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,d+u)),c,d]},t}(PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&void 0!==window.WeakSet&&(devWarningsDirection=/* @__PURE__ */new WeakSet,devWarningsTagName$1=/* @__PURE__ */new WeakSet);var validateSharedProps$1=function(e,t){var n=e.children,o=e.direction,i=e.height,r=e.layout,a=e.innerTagName,s=e.outerTagName,l=e.width,c=t.instance;if("production"!==process.env.NODE_ENV){null==a&&null==s||devWarningsTagName$1&&!devWarningsTagName$1.has(c)&&(devWarningsTagName$1.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var d="horizontal"===o||"horizontal"===r;switch(o){case"horizontal":case"vertical":devWarningsDirection&&!devWarningsDirection.has(c)&&(devWarningsDirection.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". "'+o+'" was specified.')}switch(r){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". "'+r+'" was specified.')}if(null==n)throw Error('An invalid "children" prop has been specified. Value should be a React component. "'+(null===n?"null":typeof n)+'" was specified.');if(d&&"number"!=typeof l)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. "'+(null===l?"null":typeof l)+'" was specified.');if(!d&&"number"!=typeof i)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. "'+(null===i?"null":typeof i)+'" was specified.')}},DEFAULT_ESTIMATED_ITEM_SIZE$1=50,getItemMetadata$1=function(e,t,n){var o=e.itemSize,i=n.itemMetadataMap,r=n.lastMeasuredIndex;if(t>r){var a=0;if(r>=0){var s=i[r];a=s.offset+s.size}for(var l=r+1;l<=t;l++){var c=o(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},findNearestItem$1=function(e,t,n){var o=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?o[i].offset:0)>=n?findNearestItemBinarySearch$1(e,t,i,0,n):findNearestItemExponentialSearch$1(e,t,Math.max(0,i),n)},findNearestItemBinarySearch$1=function(e,t,n,o,i){for(;o<=n;){var r=o+Math.floor((n-o)/2),a=getItemMetadata$1(e,r,t).offset;if(a===i)return r;a<i?o=r+1:a>i&&(n=r-1)}return o>0?o-1:0},findNearestItemExponentialSearch$1=function(e,t,n,o){for(var i=e.itemCount,r=1;n<i&&getItemMetadata$1(e,n,t).offset<o;)n+=r,r*=2;return findNearestItemBinarySearch$1(e,t,Math.min(n,i-1),Math.floor(n/2),o)},getEstimatedTotalSize=function(e,t){var n=e.itemCount,o=t.itemMetadataMap,i=t.estimatedItemSize,r=t.lastMeasuredIndex,a=0;if(r>=n&&(r=n-1),r>=0){var s=o[r];a=s.offset+s.size}return a+(n-r-1)*i},VariableSizeList=/* @__PURE__ */createListComponent({getItemOffset:function(e,t,n){return getItemMetadata$1(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:getEstimatedTotalSize,getOffsetForIndexAndAlignment:function(e,t,n,o,i,r){var a=e.direction,s=e.height,l=e.layout,c=e.width,d="horizontal"===a||"horizontal"===l?c:s,p=getItemMetadata$1(e,t,i),u=getEstimatedTotalSize(e,i),m=Math.max(0,Math.min(u-d,p.offset)),h=Math.max(0,p.offset-d+p.size+r);switch("smart"===n&&(n=o>=h-d&&o<=m+d?"auto":"center"),n){case"start":return m;case"end":return h;case"center":return Math.round(h+(m-h)/2);default:return o>=h&&o<=m?o:o<h?h:m}},getStartIndexForOffset:function(e,t,n){return findNearestItem$1(e,n,t)},getStopIndexForStartIndex:function(e,t,n,o){for(var i=e.direction,r=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:r,d=getItemMetadata$1(e,t,o),p=n+c,u=d.offset+d.size,m=t;m<a-1&&u<p;)m++,u+=getItemMetadata$1(e,m,o).size;return m},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||DEFAULT_ESTIMATED_ITEM_SIZE$1,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,o){void 0===o&&(o=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),o&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a function. "'+(null===t?"null":typeof t)+'" was specified.')}}),FixedSizeList=/* @__PURE__ */createListComponent({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,o,i,r){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,p=e.width,u="horizontal"===a||"horizontal"===d?p:s,m=Math.max(0,l*c-u),h=Math.min(m,t*c),g=Math.max(0,t*c-u+c+r);switch("smart"===n&&(n=o>=g-u&&o<=h+u?"auto":"center"),n){case"start":return h;case"end":return g;case"center":var x=Math.round(g+(h-g)/2);return x<Math.ceil(u/2)?0:x>m+Math.floor(u/2)?m:x;default:return o>=g&&o<=h?o:o<g?g:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,o=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(e,t,n){var o=e.direction,i=e.height,r=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,d="horizontal"===o||"horizontal"===s?l:i,p=Math.ceil((d+n-c)/a);return Math.max(0,Math.min(r-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"number"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a number. "'+(null===t?"null":typeof t)+'" was specified.')}});function shallowDiffers(e,t){for(var n in e)if(!(n in t))return!0;for(var o in t)if(e[o]!==t[o])return!0;return!1}var _excluded$d=["style"],_excluded2$3=["style"];function areEqual(e,t){var n=e.style,o=_objectWithoutPropertiesLoose$A(e,_excluded$d),i=t.style,r=_objectWithoutPropertiesLoose$A(t,_excluded2$3);return!shallowDiffers(n,i)&&!shallowDiffers(o,r)}const COMMENTS_DRAWER_DEFAULT_WIDTH=464,noop$4={isOpen:!1,width:0,closeRequestSeq:0,requestCloseAllCommentDrawers:()=>{},setCommentsDrawerState:()=>{}},CommentsDrawerContext=React__default.createContext(noop$4),CommentsDrawerProvider=({children:e})=>{const[t,n]=useState({isOpen:!1,width:COMMENTS_DRAWER_DEFAULT_WIDTH}),[o,i]=useState(0),r=useCallback(e=>n(e),[]),a=useCallback(()=>{i(e=>e+1)},[]),s=useMemo(()=>({...t,closeRequestSeq:o,requestCloseAllCommentDrawers:a,setCommentsDrawerState:r}),[t,o,a,r]);/* @__PURE__ */
|
|
10021
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoButtonLabel,{isCompact:r,children:askAiCfo})]})}function AskAiCfoNavButtonWhenEnabled({isAiCfoAccessEnabled:e,onAskAiCfoClick:t,dataTestId:n,enableAnimation:o,isCompact:i}){return!0!==e||null==t?null:/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoNavButton,{dataTestId:n,enableAnimation:o,isCompact:i,onClick:t})}let windowObject;windowObject="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let cancelFrame=null,requestFrame=null;const TIMEOUT_DURATION=20,clearTimeoutFn=windowObject.clearTimeout,setTimeoutFn=windowObject.setTimeout,cancelAnimationFrameFn=windowObject.cancelAnimationFrame||windowObject.mozCancelAnimationFrame||windowObject.webkitCancelAnimationFrame,requestAnimationFrameFn=windowObject.requestAnimationFrame||windowObject.mozRequestAnimationFrame||windowObject.webkitRequestAnimationFrame;function createDetectElementResize(e){let t,n,o,i,r,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,i=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&cancelFrame(this.__resizeRAF__),this.__resizeRAF__=requestFrame(function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";o="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",o=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=windowObject.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const o=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=o:a.appendChild(n.createTextNode(o)),r.appendChild(a)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const p=l.createElement("div");p.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(p),r.appendChild(r.__resizeTriggers__),a(r),r.addEventListener("scroll",s,!0),o&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(r)},r.__resizeTriggers__.addEventListener(o,r.__resizeTriggers__.__animationListener__))}r.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(o,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==cancelAnimationFrameFn||null==requestAnimationFrameFn?(cancelFrame=clearTimeoutFn,requestFrame=function(e){return setTimeoutFn(e,TIMEOUT_DURATION)}):(cancelFrame=function([e,t]){cancelAnimationFrameFn(e),clearTimeoutFn(t)},requestFrame=function(e){const t=requestAnimationFrameFn(function(){clearTimeoutFn(n),e()}),n=setTimeoutFn(function(){cancelAnimationFrameFn(t),e()},TIMEOUT_DURATION);return[t,n]});class AutoSizer extends Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},i=parseFloat(o.paddingLeft||"0"),r=parseFloat(o.paddingRight||"0"),a=parseFloat(o.paddingTop||"0"),s=parseFloat(o.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,d=l.width-i-r;if(!e&&this.state.height!==c||!t&&this.state.width!==d){this.setState({height:c,width:d});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:d,get scaledHeight(){return e(),c},get scaledWidth(){return e(),d}})}}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=createDetectElementResize(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:r=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...d}=this.props,{height:p,width:u}=this.state,m={overflow:"visible"},h={};let g=!1;return o||(0===p&&(g=!0),m.height=0,h.height=p,h.scaledHeight=p),i||(0===u&&(g=!0),m.width=0,h.width=u,h.scaledWidth=u),r&&(g=!1),createElement(c,{ref:this._setRef,style:{...m,...l},...d},!g&&e(h))}}var safeIsNaN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function isEqual$1(e,t){return e===t||!(!safeIsNaN(e)||!safeIsNaN(t))}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!isEqual$1(e[n],t[n]))return!1;return!0}function memoizeOne(e,t){var n;void 0===t&&(t=areInputsEqual);var o,i=[],r=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r&&n===this&&t(a,i)||(o=e.apply(this,a),r=!0,n=this,i=a),o}}var hasNativePerformanceNow="object"==typeof performance&&"function"==typeof performance.now,now=hasNativePerformanceNow?function(){return performance.now()}:function(){return Date.now()};function cancelTimeout(e){cancelAnimationFrame(e.id)}function requestTimeout(e,t){var n=now();var o={id:requestAnimationFrame(function i(){now()-n>=t?e.call(null):o.id=requestAnimationFrame(i)})};return o}var size=-1;function getScrollbarSize(e){if(void 0===e&&(e=!1),-1===size||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),size=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return size}var cachedRTLResult=null;function getRTLOffsetType(e){if(void 0===e&&(e=!1),null===cachedRTLResult||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var o=document.createElement("div"),i=o.style;return i.width="100px",i.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?cachedRTLResult="positive-descending":(t.scrollLeft=1,cachedRTLResult=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cachedRTLResult}return cachedRTLResult}process.env.NODE_ENV;var IS_SCROLLING_DEBOUNCE_INTERVAL$1=150,defaultItemKey$1=function(e,t){return e},devWarningsDirection=null,devWarningsTagName$1=null;function createListComponent(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,r=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return(t=/* @__PURE__ */function(e){function t(t){var o;return(o=e.call(this,t)||this)._instanceProps=l(o.props,_assertThisInitialized$p(o)),o._outerRef=void 0,o._resetIsScrollingTimeoutId=null,o.state={instance:_assertThisInitialized$p(o),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof o.props.initialScrollOffset?o.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},o._callOnItemsRendered=void 0,o._callOnItemsRendered=memoizeOne(function(e,t,n,i){return o.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),o._callOnScroll=void 0,o._callOnScroll=memoizeOne(function(e,t,n){return o.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),o._getItemStyle=void 0,o._getItemStyle=function(e){var t,r=o.props,a=r.direction,s=r.itemSize,l=r.layout,d=o._getItemStyleCache(c&&s,c&&l,c&&a);if(d.hasOwnProperty(e))t=d[e];else{var p=n(o.props,e,o._instanceProps),u=i(o.props,e,o._instanceProps),m="horizontal"===a||"horizontal"===l,h="rtl"===a,g=m?p:0;d[e]=t={position:"absolute",left:h?void 0:g,right:h?g:void 0,top:m?0:p,height:m?"100%":u,width:m?u:"100%"}}return t},o._getItemStyleCache=void 0,o._getItemStyleCache=memoizeOne(function(e,t,n){return{}}),o._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,r=t.scrollWidth;o.setState(function(e){if(e.scrollOffset===i)return null;var t=o.props.direction,a=i;if("rtl"===t)switch(getRTLOffsetType()){case"negative":a=-i;break;case"positive-descending":a=r-n-i}return a=Math.max(0,Math.min(a,r-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,r=t.scrollTop;o.setState(function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},o._resetIsScrollingDebounced)},o._outerRefSetter=function(e){var t=o.props.outerRef;o._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},o._resetIsScrollingDebounced=function(){null!==o._resetIsScrollingTimeoutId&&cancelTimeout(o._resetIsScrollingTimeoutId),o._resetIsScrollingTimeoutId=requestTimeout(o._resetIsScrolling,IS_SCROLLING_DEBOUNCE_INTERVAL$1)},o._resetIsScrolling=function(){o._resetIsScrollingTimeoutId=null,o.setState({isScrolling:!1},function(){o._getItemStyleCache(-1,null)})},o}_inheritsLoose$1(t,e),t.getDerivedStateFromProps=function(e,t){return validateSharedProps$1(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,o=n.itemCount,i=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,o-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?getScrollbarSize():0:l.scrollHeight>l.clientHeight?getScrollbarSize():0}this.scrollTo(r(this.props,e,t,a,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,o=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===o?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,o=this.state,i=o.scrollOffset;if(o.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(getRTLOffsetType()){case"negative":r.scrollLeft=-i;break;case"positive-ascending":r.scrollLeft=i;break;default:var a=r.clientWidth,s=r.scrollWidth;r.scrollLeft=s-a-i}else r.scrollLeft=i;else r.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&cancelTimeout(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,r=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,u=void 0===p?defaultItemKey$1:p,m=e.layout,h=e.outerElementType,g=e.outerTagName,x=e.style,f=e.useIsScrolling,y=e.width,S=this.state.isScrolling,C="horizontal"===i||"horizontal"===m,$=C?this._onScrollHorizontal:this._onScrollVertical,b=this._getRangeToRender(),v=b[0],E=b[1],w=[];if(c>0)for(var R=v;R<=E;R++)w.push(createElement(t,{data:d,key:u(R,d),index:R,isScrolling:f?S:void 0,style:this._getItemStyle(R)}));var A=o(this.props,this._instanceProps);return createElement(h||g||"div",{className:n,onScroll:$,ref:this._outerRefSetter,style:_extends$I({position:"relative",height:r,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},x)},createElement(s||l||"div",{children:w,ref:a,style:{height:C?"100%":A,pointerEvents:S?"none":void 0,width:C?A:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],o=e[2],i=e[3];this._callOnItemsRendered(t,n,o,i)}if("function"==typeof this.props.onScroll){var r=this.state,a=r.scrollDirection,s=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,o=this.state,i=o.isScrolling,r=o.scrollDirection,l=o.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),d=s(this.props,c,l,this._instanceProps),p=i&&"backward"!==r?1:Math.max(1,n),u=i&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,d+u)),c,d]},t}(PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&void 0!==window.WeakSet&&(devWarningsDirection=/* @__PURE__ */new WeakSet,devWarningsTagName$1=/* @__PURE__ */new WeakSet);var validateSharedProps$1=function(e,t){var n=e.children,o=e.direction,i=e.height,r=e.layout,a=e.innerTagName,s=e.outerTagName,l=e.width,c=t.instance;if("production"!==process.env.NODE_ENV){null==a&&null==s||devWarningsTagName$1&&!devWarningsTagName$1.has(c)&&(devWarningsTagName$1.add(c),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var d="horizontal"===o||"horizontal"===r;switch(o){case"horizontal":case"vertical":devWarningsDirection&&!devWarningsDirection.has(c)&&(devWarningsDirection.add(c),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". "'+o+'" was specified.')}switch(r){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". "'+r+'" was specified.')}if(null==n)throw Error('An invalid "children" prop has been specified. Value should be a React component. "'+(null===n?"null":typeof n)+'" was specified.');if(d&&"number"!=typeof l)throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. "'+(null===l?"null":typeof l)+'" was specified.');if(!d&&"number"!=typeof i)throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. "'+(null===i?"null":typeof i)+'" was specified.')}},DEFAULT_ESTIMATED_ITEM_SIZE$1=50,getItemMetadata$1=function(e,t,n){var o=e.itemSize,i=n.itemMetadataMap,r=n.lastMeasuredIndex;if(t>r){var a=0;if(r>=0){var s=i[r];a=s.offset+s.size}for(var l=r+1;l<=t;l++){var c=o(l);i[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return i[t]},findNearestItem$1=function(e,t,n){var o=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?o[i].offset:0)>=n?findNearestItemBinarySearch$1(e,t,i,0,n):findNearestItemExponentialSearch$1(e,t,Math.max(0,i),n)},findNearestItemBinarySearch$1=function(e,t,n,o,i){for(;o<=n;){var r=o+Math.floor((n-o)/2),a=getItemMetadata$1(e,r,t).offset;if(a===i)return r;a<i?o=r+1:a>i&&(n=r-1)}return o>0?o-1:0},findNearestItemExponentialSearch$1=function(e,t,n,o){for(var i=e.itemCount,r=1;n<i&&getItemMetadata$1(e,n,t).offset<o;)n+=r,r*=2;return findNearestItemBinarySearch$1(e,t,Math.min(n,i-1),Math.floor(n/2),o)},getEstimatedTotalSize=function(e,t){var n=e.itemCount,o=t.itemMetadataMap,i=t.estimatedItemSize,r=t.lastMeasuredIndex,a=0;if(r>=n&&(r=n-1),r>=0){var s=o[r];a=s.offset+s.size}return a+(n-r-1)*i},VariableSizeList=/* @__PURE__ */createListComponent({getItemOffset:function(e,t,n){return getItemMetadata$1(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:getEstimatedTotalSize,getOffsetForIndexAndAlignment:function(e,t,n,o,i,r){var a=e.direction,s=e.height,l=e.layout,c=e.width,d="horizontal"===a||"horizontal"===l?c:s,p=getItemMetadata$1(e,t,i),u=getEstimatedTotalSize(e,i),m=Math.max(0,Math.min(u-d,p.offset)),h=Math.max(0,p.offset-d+p.size+r);switch("smart"===n&&(n=o>=h-d&&o<=m+d?"auto":"center"),n){case"start":return m;case"end":return h;case"center":return Math.round(h+(m-h)/2);default:return o>=h&&o<=m?o:o<h?h:m}},getStartIndexForOffset:function(e,t,n){return findNearestItem$1(e,n,t)},getStopIndexForStartIndex:function(e,t,n,o){for(var i=e.direction,r=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===i||"horizontal"===s?l:r,d=getItemMetadata$1(e,t,o),p=n+c,u=d.offset+d.size,m=t;m<a-1&&u<p;)m++,u+=getItemMetadata$1(e,m,o).size;return m},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||DEFAULT_ESTIMATED_ITEM_SIZE$1,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,o){void 0===o&&(o=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),o&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"function"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a function. "'+(null===t?"null":typeof t)+'" was specified.')}}),FixedSizeList=/* @__PURE__ */createListComponent({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,o,i,r){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,p=e.width,u="horizontal"===a||"horizontal"===d?p:s,m=Math.max(0,l*c-u),h=Math.min(m,t*c),g=Math.max(0,t*c-u+c+r);switch("smart"===n&&(n=o>=g-u&&o<=h+u?"auto":"center"),n){case"start":return h;case"end":return g;case"center":var x=Math.round(g+(h-g)/2);return x<Math.ceil(u/2)?0:x>m+Math.floor(u/2)?m:x;default:return o>=g&&o<=h?o:o<g?g:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,o=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/o)))},getStopIndexForStartIndex:function(e,t,n){var o=e.direction,i=e.height,r=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,d="horizontal"===o||"horizontal"===s?l:i,p=Math.ceil((d+n-c)/a);return Math.max(0,Math.min(r-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize;if("production"!==process.env.NODE_ENV&&"number"!=typeof t)throw Error('An invalid "itemSize" prop has been specified. Value should be a number. "'+(null===t?"null":typeof t)+'" was specified.')}});function shallowDiffers(e,t){for(var n in e)if(!(n in t))return!0;for(var o in t)if(e[o]!==t[o])return!0;return!1}var _excluded$d=["style"],_excluded2$3=["style"];function areEqual(e,t){var n=e.style,o=_objectWithoutPropertiesLoose$A(e,_excluded$d),i=t.style,r=_objectWithoutPropertiesLoose$A(t,_excluded2$3);return!shallowDiffers(n,i)&&!shallowDiffers(o,r)}const COMMENTS_DRAWER_DEFAULT_WIDTH=464,noop$5={isOpen:!1,width:0,closeRequestSeq:0,requestCloseAllCommentDrawers:()=>{},setCommentsDrawerState:()=>{}},CommentsDrawerContext=React__default.createContext(noop$5),CommentsDrawerProvider=({children:e})=>{const[t,n]=useState({isOpen:!1,width:COMMENTS_DRAWER_DEFAULT_WIDTH}),[o,i]=useState(0),r=useCallback(e=>n(e),[]),a=useCallback(()=>{i(e=>e+1)},[]),s=useMemo(()=>({...t,closeRequestSeq:o,requestCloseAllCommentDrawers:a,setCommentsDrawerState:r}),[t,o,a,r]);/* @__PURE__ */
|
|
10022
10022
|
return jsxRuntimeExports.jsx(CommentsDrawerContext.Provider,{value:s,children:e})},useCommentsDrawer=()=>useContext(CommentsDrawerContext),useRequestCloseAllCommentDrawers=()=>useContext(CommentsDrawerContext).requestCloseAllCommentDrawers,{common:{strings:{plus:plus$8}},expenseAutomation:{common:{numbers:numbers}}}=appLocale.getLocalizedStrings();function TabSwitcher$2({allTabs:e,selectedTab:t,containerStyle:n,borderStyle:o,previousTabPosition:i,maximumCountLimit:r,onTabChange:a,setPreviousTabPosition:s}){const l=r??numbers.maximumCount,c=useRef([]),[d,p]=useState(0),[u,m]=useState(i??0),h=e.findIndex(e=>e.id===t),g=-1!==h?e[h].countDetails?.count??null:null,x=-1!==h&&(e[h].countDetails?.isFetching??!1),f=-1!==h&&null!=e[h].isDisabled,y=e.map(e=>e.countDetails?.isFetching).filter(e=>null!=e),S=e.map(e=>e.countDetails?.count).filter(e=>null!=e);return useEffect(()=>{!function(){const e=c.current[h];m(e?.offsetLeft??0),p(parseFloat(e?.getBoundingClientRect().width.toFixed(2))??e.clientWidth??0)}()},[h,g,x,y,S]),/* @__PURE__ */jsxRuntimeExports.jsx(Container$7k,{style:n,children:/* @__PURE__ */jsxRuntimeExports.jsxs(SwitcherContent$1,{children:[e.map((e,n)=>{const o=e.id===t,i=null!=e.isDisabled;/* @__PURE__ */
|
|
10023
10023
|
return jsxRuntimeExports.jsxs(Segment$2,{ref:e=>{null!=e&&(c.current[n]=e)},onClick:()=>{!1!==o||i||(s?.(u),a(e))},isSelected:o,isDisabled:i,"data-testid":generateDataTestId("tab-switcher",e.label),children:[
|
|
10024
10024
|
/* @__PURE__ */jsxRuntimeExports.jsx(TitleDiv$1,{children:e.label}),!0!==e.countDetails?.hideCountInTab&&(null!=e.countDetails?.count&&e.countDetails.count>0||!0===e.countDetails?.isFetching)?/* @__PURE__ */jsxRuntimeExports.jsx(TabCountWrapper,{isCircular:null==e.countDetails.count||e.countDetails.count<10,children:/* @__PURE__ */jsxRuntimeExports.jsx(TabCount,{children:e.countDetails.isFetching?/* @__PURE__ */jsxRuntimeExports.jsx(ActivityIndicator,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):e.countDetails.count>l?`${l}${plus$8}`:e.countDetails.count})}):null]},e.id)}),
|
|
@@ -11882,7 +11882,7 @@ return jsxRuntimeExports.jsxs(ModalContainer$h,{windowSize:a,role:"presentation"
|
|
|
11882
11882
|
padding-top: ${e=>D$4U.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
11883
11883
|
`,StyledDiv$X=styled$2.div``,StyledSSNCardTemplate=styled$2(SvgSsnCardFront)`
|
|
11884
11884
|
transform: scale(1, 0.9);
|
|
11885
|
-
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var $=l+1&32767;h[$]=m[C],m[C]=$}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var b=0;l<p-2&&(b=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=b>>>16,E=65535&b;if(0!=b){E=65535&b;var w=a(v=b>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var $=32+(l+3&7?8-(l+3&7):0)+(a<<3),b=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=$<b&&$<v?0:b<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,$=0,b=0;0==h;)if(h=i(e,b,1),g=i(e,b+1,2),b+=3,0!=g){if(p&&(t=UZIP2.F._check(t,$+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,b,5)+257,f=r(e,b+5,5)+1,y=r(e,b+10,4)+4,b+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,b+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}b+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,b=a(d.imap,(1<<E)-1,x+f,e,b,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,b)&S];b+=15&j;var T=j>>>4;if(T>>>8==0)t[$++]=T;else{if(256==T)break;var I=$+T-254;if(T>264){var k=d.ldef[T-257];I=$+(k>>>3)+r(e,b,7&k),b+=7&k}var L=m[c(e,b)&C];b+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,b,15&_);for(b+=15&_,p&&(t=UZIP2.F._check(t,$+(1<<17)));$<I;)t[$]=t[$++-P],t[$]=t[$++-P],t[$]=t[$++-P],t[$]=t[$++-P];$=I}}}else{7&b&&(b+=8-(7&b));var B=4+(b>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,$+M)),t.set(new n(e.buffer,e.byteOffset+B,M),$),b=B+M<<3,$+=M}return t.length==$?t:t.slice(0,$)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var $=3*(b=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,$=3*(b=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,$=3*(b=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255;if(8==u)for(h=0;h<a;h++){var b;f=h<<2,$=3*(b=t[h]),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let $=u[g];for(;$<n;)$+=f,y++;const b=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*b<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+b)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,$=g.Z,b=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=b.J,r=b.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)b.Q[E]=0,b.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);b.Q[1+(b.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S(b.Q,e),C(b.Q,e,b.u),i=b.w,r=b.d,h=y(b.u,(1<<e)-1,l+c,t,h,b.v);const n=g.V(b.v,0,l,b.C);p=(1<<n)-1;const o=g.V(b.v,l,c,b.D);u=(1<<o)-1,S(b.C,n),C(b.C,n,i),S(b.D,o),C(b.D,o,r)}for(;;){const e=i[$(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=b.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[$(t,h)&u];h+=15&i;const a=i>>>4,s=b.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let $=0;$<d;$++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=$*t+n<<2,u=(s+$)*i+a+n<<2):(p=(-s+$)*t-a+n<<2,u=$*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),$=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,$);else{var b=o(r.slice(S+2,S+2+$));v=s.readUTF8(b,0,b.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),$=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,$):(b=o(r.slice(y,y+$)),v=s.readUTF8(b,0,b.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let $=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<$&&($=e,m=h)}const b=p[m],v=[S[0]-b[0],S[1]-b[1],S[2]-b[2],S[3]-b[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=(b=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let $=0;for(y=0;y<e.frames.length;y++){var b=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,$++),p+=4,l(S,p,b.rect.width),p+=4,l(S,p,b.rect.height),p+=4,l(S,p,b.rect.x),p+=4,l(S,p,b.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=b.dispose,p++,S[p]=b.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=b.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,$++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,$=0;$<C;$+=4)y&=e[$+3]}const b=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let $=0,b=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<b&&(b=u,$=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-$]),1==$&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for($=0;$<v.length;$++)e.push(v[$].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for($=0;$<t.plte.length;$++)w.push(t.plte[$].est.rgba);let n=0;for($=0;$<v.length;$++){const e=(j=v[$]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),$=0;$<C;$++){const t=e[$];if(0!=$&&t==e[$-1])A[$]=A[$-1];else if($>T&&t==e[$-T])A[$]=A[$-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[$]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){$=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[$+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[$+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[$+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[$+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==b&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for($=0;$<i;$++){const e=3*$,n=4*$;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=$(e,i.i0,i.i1),i.est=b(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=$(e,c.i0,c.i1),c.est=b(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=b(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function $(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function b(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,$=0;function b(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}b(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),b(1),b(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[$++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}$<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,$,b,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[$,b]=getNewCanvasAndCtx(t,n),b.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile($,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=$,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory($),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([import("./index-CqwMTQZD.js"),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>/* @__PURE__ */jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React__default.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?/* @__PURE__ */jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+/* @__PURE__ */(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+/* @__PURE__ */(new Date).getTime()}}function $(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new b(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=b),e.Headers=m,e.Request=C,e.Response=b,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=/* @__PURE__ */getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3d}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=useState(0),[o,i]=useState(void 0),[r,a]=useState(null),[s,l]=useState(void 0),c=useWindowSizeContext(),d=useRef(null),p=useRef(null),u=useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:/* @__PURE__ */jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);/* @__PURE__ */
|
|
11885
|
+
`,BottomHeader=styled$2(H6Medium)``;function _mergeNamespaces$1(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function copyExifWithoutOrientation(e,t){return new Promise(function(n,o){let i;return getApp1Segment(e).then(function(e){try{return i=e,n(new Blob([t.slice(0,2),i,t.slice(2)],{type:"image/jpeg"}))}catch(r){return o(r)}},o)})}const getApp1Segment=e=>new Promise((t,n)=>{const o=new FileReader;o.addEventListener("load",({target:{result:e}})=>{const o=new DataView(e);let i=0;if(65496!==o.getUint16(i))return n("not a valid JPEG");for(i+=2;;){const r=o.getUint16(i);if(65498===r)break;const a=o.getUint16(i+2);if(65505===r&&1165519206===o.getUint32(i+4)){const r=i+10;let s;switch(o.getUint16(r)){case 18761:s=!0;break;case 19789:s=!1;break;default:return n("TIFF header contains invalid endian")}if(42!==o.getUint16(r+2,s))return n("TIFF header contains invalid version");const l=o.getUint32(r+4,s),c=r+l+2+12*o.getUint16(r+l,s);for(let e=r+l+2;e<c;e+=12)if(274==o.getUint16(e,s)){if(3!==o.getUint16(e+2,s))return n("Orientation data type is invalid");if(1!==o.getUint32(e+4,s))return n("Orientation data count is invalid");o.setUint16(e+8,1,s);break}return t(e.slice(i,i+2+a))}i+=2+a}return t(new Blob)}),o.readAsArrayBuffer(e)});var e={},t={get exports(){return e},set exports(t){e=t}},r2,i3,UZIP2;UZIP2={},t.exports=UZIP2,UZIP2.parse=function(e,t){for(var n=UZIP2.bin.readUshort,o=UZIP2.bin.readUint,i=0,r={},a=new Uint8Array(e),s=a.length-4;101010256!=o(a,s);)s--;i=s,i+=4;var l=n(a,i+=4);n(a,i+=2);var c=o(a,i+=2),d=o(a,i+=4);i+=4,i=d;for(var p=0;p<l;p++){o(a,i),i+=4,i+=4,i+=4,o(a,i+=4),c=o(a,i+=4);var u=o(a,i+=4),m=n(a,i+=4),h=n(a,i+2),g=n(a,i+4);i+=6;var x=o(a,i+=8);i+=4,i+=m+h+g,UZIP2._readLocal(a,x,r,c,u,t)}return r},UZIP2._readLocal=function(e,t,n,o,i,r){var a=UZIP2.bin.readUshort,s=UZIP2.bin.readUint;s(e,t),a(e,t+=4),a(e,t+=2);var l=a(e,t+=2);s(e,t+=2),s(e,t+=4),t+=4;var c=a(e,t+=8),d=a(e,t+=2);t+=2;var p=UZIP2.bin.readUTF8(e,t,c);if(t+=c,t+=d,r)n[p]={size:i,csize:o};else{var u=new Uint8Array(e.buffer,t);if(0==l)n[p]=new Uint8Array(u.buffer.slice(t,t+o));else{if(8!=l)throw"unknown compression method: "+l;var m=new Uint8Array(i);UZIP2.inflateRaw(u,m),n[p]=m}}},UZIP2.inflateRaw=function(e,t){return UZIP2.F.inflate(e,t)},UZIP2.inflate=function(e,t){return e[0],e[1],UZIP2.inflateRaw(new Uint8Array(e.buffer,e.byteOffset+2,e.length-6),t)},UZIP2.deflate=function(e,t){null==t&&(t={level:6});var n=0,o=new Uint8Array(50+Math.floor(1.1*e.length));o[n]=120,o[n+1]=156,n+=2,n=UZIP2.F.deflateRaw(e,o,n,t.level);var i=UZIP2.adler(e,0,e.length);return o[n+0]=i>>>24&255,o[n+1]=i>>>16&255,o[n+2]=i>>>8&255,o[n+3]=i>>>0&255,new Uint8Array(o.buffer,0,n+4)},UZIP2.deflateRaw=function(e,t){null==t&&(t={level:6});var n=new Uint8Array(50+Math.floor(1.1*e.length)),o=UZIP2.F.deflateRaw(e,n,o,t.level);return new Uint8Array(n.buffer,0,o)},UZIP2.encode=function(e,t){null==t&&(t=!1);var n=0,o=UZIP2.bin.writeUint,i=UZIP2.bin.writeUshort,r={};for(var a in e){var s=!UZIP2._noNeed(a)&&!t,l=e[a],c=UZIP2.crc.crc(l,0,l.length);r[a]={cpr:s,usize:l.length,crc:c,file:s?UZIP2.deflateRaw(l):l}}for(var a in r)n+=r[a].file.length+30+46+2*UZIP2.bin.sizeUTF8(a);n+=22;var d=new Uint8Array(n),p=0,u=[];for(var a in r){var m=r[a];u.push(p),p=UZIP2._writeHeader(d,p,a,m,0)}var h=0,g=p;for(var a in r)m=r[a],u.push(p),p=UZIP2._writeHeader(d,p,a,m,1,u[h++]);var x=p-g;return o(d,p,101010256),p+=4,i(d,p+=4,h),i(d,p+=2,h),o(d,p+=2,x),o(d,p+=4,g),p+=4,p+=2,d.buffer},UZIP2._noNeed=function(e){var t=e.split(".").pop().toLowerCase();return-1!="png,jpg,jpeg,zip".indexOf(t)},UZIP2._writeHeader=function(e,t,n,o,i,r){var a=UZIP2.bin.writeUint,s=UZIP2.bin.writeUshort,l=o.file;return a(e,t,0==i?67324752:33639248),t+=4,1==i&&(t+=2),s(e,t,20),s(e,t+=2,0),s(e,t+=2,o.cpr?8:0),a(e,t+=2,0),a(e,t+=4,o.crc),a(e,t+=4,l.length),a(e,t+=4,o.usize),s(e,t+=4,UZIP2.bin.sizeUTF8(n)),s(e,t+=2,0),t+=2,1==i&&(t+=2,t+=2,a(e,t+=6,r),t+=4),t+=UZIP2.bin.writeUTF8(e,t,n),0==i&&(e.set(l,t),t+=l.length),t},UZIP2.crc={table:function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var n=t,o=0;o<8;o++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update:function(e,t,n,o){for(var i=0;i<o;i++)e=UZIP2.crc.table[255&(e^t[n+i])]^e>>>8;return e},crc:function(e,t,n){return 4294967295^UZIP2.crc.update(4294967295,e,t,n)}},UZIP2.adler=function(e,t,n){for(var o=1,i=0,r=t,a=t+n;r<a;){for(var s=Math.min(r+5552,a);r<s;)i+=o+=e[r++];o%=65521,i%=65521}return i<<16|o},UZIP2.bin={readUshort:function(e,t){return e[t]|e[t+1]<<8},writeUshort:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255},readUint:function(e,t){return 16777216*e[t+3]+(e[t+2]<<16|e[t+1]<<8|e[t])},writeUint:function(e,t,n){e[t]=255&n,e[t+1]=n>>8&255,e[t+2]=n>>16&255,e[t+3]=n>>24&255},readASCII:function(e,t,n){for(var o="",i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII:function(e,t,n){for(var o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,n){for(var o,i="",r=0;r<n;r++)i+="%"+UZIP2.bin.pad(e[t+r].toString(16));try{o=decodeURIComponent(i)}catch(a){return UZIP2.bin.readASCII(e,t,n)}return o},writeUTF8:function(e,t,n){for(var o=n.length,i=0,r=0;r<o;r++){var a=n.charCodeAt(r);if(4294967168&a)if(4294965248&a)if(4294901760&a){if(4292870144&a)throw"e";e[t+i]=240|a>>18,e[t+i+1]=128|a>>12&63,e[t+i+2]=128|a>>6&63,e[t+i+3]=128|63&a,i+=4}else e[t+i]=224|a>>12,e[t+i+1]=128|a>>6&63,e[t+i+2]=128|63&a,i+=3;else e[t+i]=192|a>>6,e[t+i+1]=128|63&a,i+=2;else e[t+i]=a,i++}return i},sizeUTF8:function(e){for(var t=e.length,n=0,o=0;o<t;o++){var i=e.charCodeAt(o);if(4294967168&i)if(4294965248&i)if(4294901760&i){if(4292870144&i)throw"e";n+=4}else n+=3;else n+=2;else n++}return n}},UZIP2.F={},UZIP2.F.deflateRaw=function(e,t,n,o){var i=[[0,0,0,0,0],[4,4,8,4,0],[4,5,16,8,0],[4,6,16,16,0],[4,10,16,32,0],[8,16,32,32,0],[8,16,128,128,0],[8,32,128,256,0],[32,128,258,1024,1],[32,258,258,4096,1]][o],r=UZIP2.F.U,a=UZIP2.F._goodIndex;UZIP2.F._hash;var s=UZIP2.F._putsE,l=0,c=n<<3,d=0,p=e.length;if(0==o){for(;l<p;)s(t,c,l+(v=Math.min(65535,p-l))==p?1:0),c=UZIP2.F._copyExact(e,l,v,t,c+8),l+=v;return c>>>3}var u=r.lits,m=r.strt,h=r.prev,g=0,x=0,f=0,y=0,S=0,C=0;for(p>2&&(m[C=UZIP2.F._hash(e,0)]=0),l=0;l<p;l++){if(S=C,l+1<p-2){C=UZIP2.F._hash(e,l+1);var $=l+1&32767;h[$]=m[C],m[C]=$}if(d<=l){(g>14e3||x>26697)&&p-l>100&&(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(l==p-1||d==p?1:0,u,g,y,e,f,l-f,t,c),g=x=y=0,f=l);var b=0;l<p-2&&(b=UZIP2.F._bestMatch(e,l,h,S,Math.min(i[2],p-l),i[3]));var v=b>>>16,E=65535&b;if(0!=b){E=65535&b;var w=a(v=b>>>16,r.of0);r.lhst[257+w]++;var R=a(E,r.df0);r.dhst[R]++,y+=r.exb[w]+r.dxb[R],u[g]=v<<23|l-d,u[g+1]=E<<16|w<<8|R,g+=2,d=l+v}else r.lhst[e[l]]++;x++}}for(f==l&&0!=e.length||(d<l&&(u[g]=l-d,g+=2,d=l),c=UZIP2.F._writeBlock(1,u,g,y,e,f,l-f,t,c),g=0,x=0,g=x=y=0,f=l);7&c;)c++;return c>>>3},UZIP2.F._bestMatch=function(e,t,n,o,i,r){var a=32767&t,s=n[a],l=a-s+32768&32767;if(s==a||o!=UZIP2.F._hash(e,t-l))return 0;for(var c=0,d=0,p=Math.min(32767,t);l<=p&&0!=--r&&s!=a;){if(0==c||e[t+c]==e[t+c-l]){var u=UZIP2.F._howLong(e,t,l);if(u>c){if(d=l,(c=u)>=i)break;l+2<u&&(u=l+2);for(var m=0,h=0;h<u-2;h++){var g=t-l+h+32768&32767,x=g-n[g]+32768&32767;x>m&&(m=x,s=g)}}}l+=(a=s)-(s=n[a])+32768&32767}return c<<16|d},UZIP2.F._howLong=function(e,t,n){if(e[t]!=e[t-n]||e[t+1]!=e[t+1-n]||e[t+2]!=e[t+2-n])return 0;var o=t,i=Math.min(e.length,t+258);for(t+=3;t<i&&e[t]==e[t-n];)t++;return t-o},UZIP2.F._hash=function(e,t){return(e[t]<<8|e[t+1])+(e[t+2]<<4)&65535},UZIP2.saved=0,UZIP2.F._writeBlock=function(e,t,n,o,i,r,a,s,l){var c,d,p,u,m,h,g,x,f,y=UZIP2.F.U,S=UZIP2.F._putsF,C=UZIP2.F._putsE;y.lhst[256]++,d=(c=UZIP2.F.getTrees())[0],p=c[1],u=c[2],m=c[3],h=c[4],g=c[5],x=c[6],f=c[7];var $=32+(l+3&7?8-(l+3&7):0)+(a<<3),b=o+UZIP2.F.contSize(y.fltree,y.lhst)+UZIP2.F.contSize(y.fdtree,y.dhst),v=o+UZIP2.F.contSize(y.ltree,y.lhst)+UZIP2.F.contSize(y.dtree,y.dhst);v+=14+3*g+UZIP2.F.contSize(y.itree,y.ihst)+(2*y.ihst[16]+3*y.ihst[17]+7*y.ihst[18]);for(var E=0;E<286;E++)y.lhst[E]=0;for(E=0;E<30;E++)y.dhst[E]=0;for(E=0;E<19;E++)y.ihst[E]=0;var w=$<b&&$<v?0:b<v?1:2;if(S(s,l,e),S(s,l+1,w),l+=3,0==w){for(;7&l;)l++;l=UZIP2.F._copyExact(i,r,a,s,l)}else{var R,A;if(1==w&&(R=y.fltree,A=y.fdtree),2==w){UZIP2.F.makeCodes(y.ltree,d),UZIP2.F.revCodes(y.ltree,d),UZIP2.F.makeCodes(y.dtree,p),UZIP2.F.revCodes(y.dtree,p),UZIP2.F.makeCodes(y.itree,u),UZIP2.F.revCodes(y.itree,u),R=y.ltree,A=y.dtree,C(s,l,m-257),C(s,l+=5,h-1),C(s,l+=5,g-4),l+=4;for(var j=0;j<g;j++)C(s,l+3*j,y.itree[1+(y.ordr[j]<<1)]);l+=3*g,l=UZIP2.F._codeTiny(x,y.itree,s,l),l=UZIP2.F._codeTiny(f,y.itree,s,l)}for(var T=r,I=0;I<n;I+=2){for(var k=t[I],L=k>>>23,D=T+(8388607&k);T<D;)l=UZIP2.F._writeLit(i[T++],R,s,l);if(0!=L){var _=t[I+1],P=_>>16,B=_>>8&255,M=255&_;C(s,l=UZIP2.F._writeLit(257+B,R,s,l),L-y.of0[B]),l+=y.exb[B],S(s,l=UZIP2.F._writeLit(M,A,s,l),P-y.df0[M]),l+=y.dxb[M],T+=L}}l=UZIP2.F._writeLit(256,R,s,l)}return l},UZIP2.F._copyExact=function(e,t,n,o,i){var r=i>>>3;return o[r]=n,o[r+1]=n>>>8,o[r+2]=255-o[r],o[r+3]=255-o[r+1],r+=4,o.set(new Uint8Array(e.buffer,t,n),r),i+(n+4<<3)},UZIP2.F.getTrees=function(){for(var e=UZIP2.F.U,t=UZIP2.F._hufTree(e.lhst,e.ltree,15),n=UZIP2.F._hufTree(e.dhst,e.dtree,15),o=[],i=UZIP2.F._lenCodes(e.ltree,o),r=[],a=UZIP2.F._lenCodes(e.dtree,r),s=0;s<o.length;s+=2)e.ihst[o[s]]++;for(s=0;s<r.length;s+=2)e.ihst[r[s]]++;for(var l=UZIP2.F._hufTree(e.ihst,e.itree,7),c=19;c>4&&0==e.itree[1+(e.ordr[c-1]<<1)];)c--;return[t,n,l,i,a,c,o,r]},UZIP2.F.getSecond=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(e[n+1]);return t},UZIP2.F.nonZero=function(e){for(var t="",n=0;n<e.length;n+=2)0!=e[n+1]&&(t+=(n>>1)+",");return t},UZIP2.F.contSize=function(e,t){for(var n=0,o=0;o<t.length;o++)n+=t[o]*e[1+(o<<1)];return n},UZIP2.F._codeTiny=function(e,t,n,o){for(var i=0;i<e.length;i+=2){var r=e[i],a=e[i+1];o=UZIP2.F._writeLit(r,t,n,o);var s=16==r?2:17==r?3:7;r>15&&(UZIP2.F._putsE(n,o,a,s),o+=s)}return o},UZIP2.F._lenCodes=function(e,t){for(var n=e.length;2!=n&&0==e[n-1];)n-=2;for(var o=0;o<n;o+=2){var i=e[o+1],r=o+3<n?e[o+3]:-1,a=o+5<n?e[o+5]:-1,s=0==o?-1:e[o-1];if(0==i&&r==i&&a==i){for(var l=o+5;l+2<n&&e[l+2]==i;)l+=2;(c=Math.min(l+1-o>>>1,138))<11?t.push(17,c-3):t.push(18,c-11),o+=2*c-2}else if(i==s&&r==i&&a==i){for(l=o+5;l+2<n&&e[l+2]==i;)l+=2;var c=Math.min(l+1-o>>>1,6);t.push(16,c-3),o+=2*c-2}else t.push(i,0)}return n>>>1},UZIP2.F._hufTree=function(e,t,n){var o=[],i=e.length,r=t.length,a=0;for(a=0;a<r;a+=2)t[a]=0,t[a+1]=0;for(a=0;a<i;a++)0!=e[a]&&o.push({lit:a,f:e[a]});var s=o.length,l=o.slice(0);if(0==s)return 0;if(1==s){var c=o[0].lit;return l=0==c?1:0,t[1+(c<<1)]=1,t[1+(l<<1)]=1,1}o.sort(function(e,t){return e.f-t.f});var d=o[0],p=o[1],u=0,m=1,h=2;for(o[0]={lit:-1,f:d.f+p.f,l:d,r:p,d:0};m!=s-1;)d=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],p=u!=m&&(h==s||o[u].f<o[h].f)?o[u++]:o[h++],o[m++]={lit:-1,f:d.f+p.f,l:d,r:p};var g=UZIP2.F.setDepth(o[m-1],0);for(g>n&&(UZIP2.F.restrictDepth(l,n,g),g=n),a=0;a<s;a++)t[1+(l[a].lit<<1)]=l[a].d;return g},UZIP2.F.setDepth=function(e,t){return-1!=e.lit?(e.d=t,t):Math.max(UZIP2.F.setDepth(e.l,t+1),UZIP2.F.setDepth(e.r,t+1))},UZIP2.F.restrictDepth=function(e,t,n){var o=0,i=1<<n-t,r=0;for(e.sort(function(e,t){return t.d==e.d?e.f-t.f:t.d-e.d}),o=0;o<e.length&&e[o].d>t;o++){var a=e[o].d;e[o].d=t,r+=i-(1<<n-a)}for(r>>>=n-t;r>0;)(a=e[o].d)<t?(e[o].d++,r-=1<<t-a-1):o++;for(;o>=0;o--)e[o].d==t&&r<0&&(e[o].d--,r++);0!=r&&console.log("debt left")},UZIP2.F._goodIndex=function(e,t){var n=0;return t[16|n]<=e&&(n|=16),t[8|n]<=e&&(n|=8),t[4|n]<=e&&(n|=4),t[2|n]<=e&&(n|=2),t[1|n]<=e&&(n|=1),n},UZIP2.F._writeLit=function(e,t,n,o){return UZIP2.F._putsF(n,o,t[e<<1]),o+t[1+(e<<1)]},UZIP2.F.inflate=function(e,t){var n=Uint8Array;if(3==e[0]&&0==e[1])return t||new n(0);var o=UZIP2.F,i=o._bitsF,r=o._bitsE,a=o._decodeTiny,s=o.makeCodes,l=o.codes2map,c=o._get17,d=o.U,p=null==t;p&&(t=new n(e.length>>>2<<3));for(var u,m,h=0,g=0,x=0,f=0,y=0,S=0,C=0,$=0,b=0;0==h;)if(h=i(e,b,1),g=i(e,b+1,2),b+=3,0!=g){if(p&&(t=UZIP2.F._check(t,$+(1<<17))),1==g&&(u=d.flmap,m=d.fdmap,S=511,C=31),2==g){x=r(e,b,5)+257,f=r(e,b+5,5)+1,y=r(e,b+10,4)+4,b+=14;for(var v=0;v<38;v+=2)d.itree[v]=0,d.itree[v+1]=0;var E=1;for(v=0;v<y;v++){var w=r(e,b+3*v,3);d.itree[1+(d.ordr[v]<<1)]=w,w>E&&(E=w)}b+=3*y,s(d.itree,E),l(d.itree,E,d.imap),u=d.lmap,m=d.dmap,b=a(d.imap,(1<<E)-1,x+f,e,b,d.ttree);var R=o._copyOut(d.ttree,0,x,d.ltree);S=(1<<R)-1;var A=o._copyOut(d.ttree,x,f,d.dtree);C=(1<<A)-1,s(d.ltree,R),l(d.ltree,R,u),s(d.dtree,A),l(d.dtree,A,m)}for(;;){var j=u[c(e,b)&S];b+=15&j;var T=j>>>4;if(T>>>8==0)t[$++]=T;else{if(256==T)break;var I=$+T-254;if(T>264){var k=d.ldef[T-257];I=$+(k>>>3)+r(e,b,7&k),b+=7&k}var L=m[c(e,b)&C];b+=15&L;var D=L>>>4,_=d.ddef[D],P=(_>>>4)+i(e,b,15&_);for(b+=15&_,p&&(t=UZIP2.F._check(t,$+(1<<17)));$<I;)t[$]=t[$++-P],t[$]=t[$++-P],t[$]=t[$++-P],t[$]=t[$++-P];$=I}}}else{7&b&&(b+=8-(7&b));var B=4+(b>>>3),M=e[B-4]|e[B-3]<<8;p&&(t=UZIP2.F._check(t,$+M)),t.set(new n(e.buffer,e.byteOffset+B,M),$),b=B+M<<3,$+=M}return t.length==$?t:t.slice(0,$)},UZIP2.F._check=function(e,t){var n=e.length;if(t<=n)return e;var o=new Uint8Array(Math.max(n<<1,t));return o.set(e,0),o},UZIP2.F._decodeTiny=function(e,t,n,o,i,r){for(var a=UZIP2.F._bitsE,s=UZIP2.F._get17,l=0;l<n;){var c=e[s(o,i)&t];i+=15&c;var d=c>>>4;if(d<=15)r[l]=d,l++;else{var p=0,u=0;16==d?(u=3+a(o,i,2),i+=2,p=r[l-1]):17==d?(u=3+a(o,i,3),i+=3):18==d&&(u=11+a(o,i,7),i+=7);for(var m=l+u;l<m;)r[l]=p,l++}}return i},UZIP2.F._copyOut=function(e,t,n,o){for(var i=0,r=0,a=o.length>>>1;r<n;){var s=e[r+t];o[r<<1]=0,o[1+(r<<1)]=s,s>i&&(i=s),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},UZIP2.F.makeCodes=function(e,t){for(var n,o,i,r,a=UZIP2.F.U,s=e.length,l=a.bl_count,c=0;c<=t;c++)l[c]=0;for(c=1;c<s;c+=2)l[e[c]]++;var d=a.next_code;for(n=0,l[0]=0,o=1;o<=t;o++)n=n+l[o-1]<<1,d[o]=n;for(i=0;i<s;i+=2)0!=(r=e[i+1])&&(e[i]=d[r],d[r]++)},UZIP2.F.codes2map=function(e,t,n){for(var o=e.length,i=UZIP2.F.U.rev15,r=0;r<o;r+=2)if(0!=e[r+1])for(var a=r>>1,s=e[r+1],l=a<<4|s,c=t-s,d=e[r]<<c,p=d+(1<<c);d!=p;)n[i[d]>>>15-t]=l,d++},UZIP2.F.revCodes=function(e,t){for(var n=UZIP2.F.U.rev15,o=15-t,i=0;i<e.length;i+=2){var r=e[i]<<t-e[i+1];e[i]=n[r]>>>o}},UZIP2.F._putsE=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},UZIP2.F._putsF=function(e,t,n){n<<=7&t;var o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},UZIP2.F._bitsE=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},UZIP2.F._bitsF=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},UZIP2.F._get17=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},UZIP2.F._get25=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},UZIP2.F.U=(r2=Uint16Array,i3=Uint32Array,{next_code:new r2(16),bl_count:new r2(16),ordr:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],of0:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],exb:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],ldef:new r2(32),df0:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],dxb:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],ddef:new i3(32),flmap:new r2(512),fltree:[],fdmap:new r2(32),fdtree:[],lmap:new r2(32768),ltree:[],ttree:[],dmap:new r2(32768),dtree:[],imap:new r2(512),itree:[],rev15:new r2(32768),lhst:new i3(286),dhst:new i3(30),ihst:new i3(19),lits:new i3(15e3),strt:new r2(65536),prev:new r2(32768)}),function(){for(var e=UZIP2.F.U,t=0;t<32768;t++){var n=t;n=(4278255360&(n=(4042322160&(n=(3435973836&(n=(2863311530&n)>>>1|(1431655765&n)<<1))>>>2|(858993459&n)<<2))>>>4|(252645135&n)<<4))>>>8|(16711935&n)<<8,e.rev15[t]=(n>>>16|n<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(t=0;t<32;t++)e.ldef[t]=e.of0[t]<<3|e.exb[t],e.ddef[t]=e.df0[t]<<4|e.dxb[t];o(e.fltree,144,8),o(e.fltree,112,9),o(e.fltree,24,7),o(e.fltree,8,8),UZIP2.F.makeCodes(e.fltree,9),UZIP2.F.codes2map(e.fltree,9,e.flmap),UZIP2.F.revCodes(e.fltree,9),o(e.fdtree,32,5),UZIP2.F.makeCodes(e.fdtree,5),UZIP2.F.codes2map(e.fdtree,5,e.fdmap),UZIP2.F.revCodes(e.fdtree,5),o(e.itree,19,0),o(e.ltree,286,0),o(e.dtree,30,0),o(e.ttree,320,0)}();var UZIP=_mergeNamespaces$1({__proto__:null,default:e},[e]);const UPNG=function(){var e={nextZero(e,t){for(;0!=e[t];)t++;return t},readUshort:(e,t)=>e[t]<<8|e[t+1],writeUshort(e,t,n){e[t]=n>>8&255,e[t+1]=255&n},readUint:(e,t)=>16777216*e[t]+(e[t+1]<<16|e[t+2]<<8|e[t+3]),writeUint(e,t,n){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n},readASCII(e,t,n){let o="";for(let i=0;i<n;i++)o+=String.fromCharCode(e[t+i]);return o},writeASCII(e,t,n){for(let o=0;o<n.length;o++)e[t+o]=n.charCodeAt(o)},readBytes(e,t,n){const o=[];for(let i=0;i<n;i++)o.push(e[t+i]);return o},pad:e=>e.length<2?`0${e}`:e,readUTF8(t,n,o){let i,r="";for(let s=0;s<o;s++)r+=`%${e.pad(t[n+s].toString(16))}`;try{i=decodeURIComponent(r)}catch(a){return e.readASCII(t,n,o)}return i}};function t(t,n,o,i){const a=n*o,s=r(i),l=Math.ceil(n*s/8),c=new Uint8Array(4*a),d=new Uint32Array(c.buffer),{ctype:p}=i,{depth:u}=i,m=e.readUshort;if(6==p){const e=a<<2;if(8==u)for(var h=0;h<e;h+=4)c[h]=t[h],c[h+1]=t[h+1],c[h+2]=t[h+2],c[h+3]=t[h+3];if(16==u)for(h=0;h<e;h++)c[h]=t[h<<1]}else if(2==p){const e=i.tabs.tRNS;if(null==e){if(8==u)for(h=0;h<a;h++){var g=3*h;d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g]}if(16==u)for(h=0;h<a;h++)g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g]}else{var x=e[0];const n=e[1],o=e[2];if(8==u)for(h=0;h<a;h++){var f=h<<2;g=3*h,d[h]=255<<24|t[g+2]<<16|t[g+1]<<8|t[g],t[g]==x&&t[g+1]==n&&t[g+2]==o&&(c[f+3]=0)}if(16==u)for(h=0;h<a;h++)f=h<<2,g=6*h,d[h]=255<<24|t[g+4]<<16|t[g+2]<<8|t[g],m(t,g)==x&&m(t,g+2)==n&&m(t,g+4)==o&&(c[f+3]=0)}}else if(3==p){const e=i.tabs.PLTE,r=i.tabs.tRNS,s=r?r.length:0;if(1==u)for(var y=0;y<o;y++){var S=y*l,C=y*n;for(h=0;h<n;h++){f=C+h<<2;var $=3*(b=t[S+(h>>3)]>>7-(7&h)&1);c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255}}if(2==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,$=3*(b=t[S+(h>>2)]>>6-((3&h)<<1)&3),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255;if(4==u)for(y=0;y<o;y++)for(S=y*l,C=y*n,h=0;h<n;h++)f=C+h<<2,$=3*(b=t[S+(h>>1)]>>4-((1&h)<<2)&15),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255;if(8==u)for(h=0;h<a;h++){var b;f=h<<2,$=3*(b=t[h]),c[f]=e[$],c[f+1]=e[$+1],c[f+2]=e[$+2],c[f+3]=b<s?r[b]:255}}else if(4==p){if(8==u)for(h=0;h<a;h++){f=h<<2;var v=t[E=h<<1];c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+1]}if(16==u)for(h=0;h<a;h++){var E;f=h<<2,v=t[E=h<<2],c[f]=v,c[f+1]=v,c[f+2]=v,c[f+3]=t[E+2]}}else if(0==p)for(x=i.tabs.tRNS?i.tabs.tRNS:-1,y=0;y<o;y++){const e=y*l,o=y*n;if(1==u)for(var w=0;w<n;w++){var R=(v=255*(t[e+(w>>>3)]>>>7-(7&w)&1))==255*x?0:255;d[o+w]=R<<24|v<<16|v<<8|v}else if(2==u)for(w=0;w<n;w++)R=(v=85*(t[e+(w>>>2)]>>>6-((3&w)<<1)&3))==85*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(4==u)for(w=0;w<n;w++)R=(v=17*(t[e+(w>>>1)]>>>4-((1&w)<<2)&15))==17*x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(8==u)for(w=0;w<n;w++)R=(v=t[e+w])==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v;else if(16==u)for(w=0;w<n;w++)v=t[e+(w<<1)],R=m(t,e+(w<<1))==x?0:255,d[o+w]=R<<24|v<<16|v<<8|v}return c}function n(e,t,n,s){const l=r(e),c=Math.ceil(n*l/8),d=new Uint8Array((c+1+e.interlace)*s);return t=e.tabs.CgBI?i(t,d):o(t,d),0==e.interlace?t=a(t,e,0,n,s):1==e.interlace&&(t=function(e,t){const n=t.width,o=t.height,i=r(t),s=i>>3,l=Math.ceil(n*i/8),c=new Uint8Array(o*l);let d=0;const p=[0,0,4,0,2,0,1],u=[0,4,0,2,0,1,0],m=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1];let g=0;for(;g<7;){const r=m[g],f=h[g];let y=0,S=0,C=p[g];for(;C<o;)C+=r,S++;let $=u[g];for(;$<n;)$+=f,y++;const b=Math.ceil(y*i/8);a(e,t,d,y,S);let v=0,E=p[g];for(;E<o;){let t=u[g],o=d+v*b<<3;for(;t<n;){var x;if(1==i&&(x=(x=e[o>>3])>>7-(7&o)&1,c[E*l+(t>>3)]|=x<<7-(7&t)),2==i&&(x=(x=e[o>>3])>>6-(7&o)&3,c[E*l+(t>>2)]|=x<<6-((3&t)<<1)),4==i&&(x=(x=e[o>>3])>>4-(7&o)&15,c[E*l+(t>>1)]|=x<<4-((1&t)<<2)),i>=8){const n=E*l+t*s;for(let t=0;t<s;t++)c[n+t]=e[(o>>3)+t]}o+=i,t+=f}v++,E+=r}y*S!=0&&(d+=S*(1+b)),g+=1}return c}(t,e)),t}function o(e,t){return i(new Uint8Array(e.buffer,2,e.length-6),t)}var i=function(){const e={H:{}};return e.H.N=function(t,n){const o=Uint8Array;let i,r,a=0,s=0,l=0,c=0,d=0,p=0,u=0,m=0,h=0;if(3==t[0]&&0==t[1])return n||new o(0);const g=e.H,x=g.b,f=g.e,y=g.R,S=g.n,C=g.A,$=g.Z,b=g.m,v=null==n;for(v&&(n=new o(t.length>>>2<<5));0==a;)if(a=x(t,h,1),s=x(t,h+1,2),h+=3,0!=s){if(v&&(n=e.H.W(n,m+(1<<17))),1==s&&(i=b.J,r=b.h,p=511,u=31),2==s){l=f(t,h,5)+257,c=f(t,h+5,5)+1,d=f(t,h+10,4)+4,h+=14;let e=1;for(var E=0;E<38;E+=2)b.Q[E]=0,b.Q[E+1]=0;for(E=0;E<d;E++){const n=f(t,h+3*E,3);b.Q[1+(b.X[E]<<1)]=n,n>e&&(e=n)}h+=3*d,S(b.Q,e),C(b.Q,e,b.u),i=b.w,r=b.d,h=y(b.u,(1<<e)-1,l+c,t,h,b.v);const n=g.V(b.v,0,l,b.C);p=(1<<n)-1;const o=g.V(b.v,l,c,b.D);u=(1<<o)-1,S(b.C,n),C(b.C,n,i),S(b.D,o),C(b.D,o,r)}for(;;){const e=i[$(t,h)&p];h+=15&e;const o=e>>>4;if(o>>>8==0)n[m++]=o;else{if(256==o)break;{let e=m+o-254;if(o>264){const n=b.q[o-257];e=m+(n>>>3)+f(t,h,7&n),h+=7&n}const i=r[$(t,h)&u];h+=15&i;const a=i>>>4,s=b.c[a],l=(s>>>4)+x(t,h,15&s);for(h+=15&s;m<e;)n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l],n[m]=n[m++-l];m=e}}}}else{7&h&&(h+=8-(7&h));const i=4+(h>>>3),r=t[i-4]|t[i-3]<<8;v&&(n=e.H.W(n,m+r)),n.set(new o(t.buffer,t.byteOffset+i,r),m),h=i+r<<3,m+=r}return n.length==m?n:n.slice(0,m)},e.H.W=function(e,t){const n=e.length;if(t<=n)return e;const o=new Uint8Array(n<<1);return o.set(e,0),o},e.H.R=function(t,n,o,i,r,a){const s=e.H.e,l=e.H.Z;let c=0;for(;c<o;){const e=t[l(i,r)&n];r+=15&e;const o=e>>>4;if(o<=15)a[c]=o,c++;else{let e=0,t=0;16==o?(t=3+s(i,r,2),r+=2,e=a[c-1]):17==o?(t=3+s(i,r,3),r+=3):18==o&&(t=11+s(i,r,7),r+=7);const n=c+t;for(;c<n;)a[c]=e,c++}}return r},e.H.V=function(e,t,n,o){let i=0,r=0;const a=o.length>>>1;for(;r<n;){const n=e[r+t];o[r<<1]=0,o[1+(r<<1)]=n,n>i&&(i=n),r++}for(;r<a;)o[r<<1]=0,o[1+(r<<1)]=0,r++;return i},e.H.n=function(t,n){const o=e.H.m,i=t.length;let r,a,s,l;const c=o.j;for(var d=0;d<=n;d++)c[d]=0;for(d=1;d<i;d+=2)c[t[d]]++;const p=o.K;for(r=0,c[0]=0,a=1;a<=n;a++)r=r+c[a-1]<<1,p[a]=r;for(s=0;s<i;s+=2)l=t[s+1],0!=l&&(t[s]=p[l],p[l]++)},e.H.A=function(t,n,o){const i=t.length,r=e.H.m.r;for(let e=0;e<i;e+=2)if(0!=t[e+1]){const i=e>>1,a=t[e+1],s=i<<4|a,l=n-a;let c=t[e]<<l;const d=c+(1<<l);for(;c!=d;)o[r[c]>>>15-n]=s,c++}},e.H.l=function(t,n){const o=e.H.m.r,i=15-n;for(let e=0;e<t.length;e+=2){const r=t[e]<<n-t[e+1];t[e]=o[r]>>>i}},e.H.M=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8},e.H.I=function(e,t,n){n<<=7&t;const o=t>>>3;e[o]|=n,e[o+1]|=n>>>8,e[o+2]|=n>>>16},e.H.e=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8)>>>(7&t)&(1<<n)-1},e.H.b=function(e,t,n){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)&(1<<n)-1},e.H.Z=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16)>>>(7&t)},e.H.i=function(e,t){return(e[t>>>3]|e[1+(t>>>3)]<<8|e[2+(t>>>3)]<<16|e[3+(t>>>3)]<<24)>>>(7&t)},e.H.m=function(){const e=Uint16Array,t=Uint32Array;return{K:new e(16),j:new e(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new e(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new t(32),J:new e(512),_:[],h:new e(32),$:[],w:new e(32768),C:[],v:[],d:new e(32768),D:[],u:new e(512),Q:[],r:new e(32768),s:new t(286),Y:new t(30),a:new t(19),t:new t(15e3),k:new e(65536),g:new e(32768)}}(),function(){const t=e.H.m;for(var n=0;n<32768;n++){let e=n;e=(2863311530&e)>>>1|(1431655765&e)<<1,e=(3435973836&e)>>>2|(858993459&e)<<2,e=(4042322160&e)>>>4|(252645135&e)<<4,e=(4278255360&e)>>>8|(16711935&e)<<8,t.r[n]=(e>>>16|e<<16)>>>17}function o(e,t,n){for(;0!=t--;)e.push(0,n)}for(n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];o(t._,144,8),o(t._,112,9),o(t._,24,7),o(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),o(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),o(t.Q,19,0),o(t.C,286,0),o(t.D,30,0),o(t.v,320,0)}(),e.H.N}();function r(e){return[1,null,3,1,2,null,4][e.ctype]*e.depth}function a(e,t,n,o,i){let a=r(t);const l=Math.ceil(o*a/8);let c,d;a=Math.ceil(a/8);let p=e[n],u=0;if(p>1&&(e[n]=[0,0,1][p-2]),3==p)for(u=a;u<l;u++)e[u+1]=e[u+1]+(e[u+1-a]>>>1)&255;for(let r=0;r<i;r++)if(c=n+r*l,d=c+r+1,p=e[d-1],u=0,0==p)for(;u<l;u++)e[c+u]=e[d+u];else if(1==p){for(;u<a;u++)e[c+u]=e[d+u];for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-a]}else if(2==p)for(;u<l;u++)e[c+u]=e[d+u]+e[c+u-l];else if(3==p){for(;u<a;u++)e[c+u]=e[d+u]+(e[c+u-l]>>>1);for(;u<l;u++)e[c+u]=e[d+u]+(e[c+u-l]+e[c+u-a]>>>1)}else{for(;u<a;u++)e[c+u]=e[d+u]+s(0,e[c+u-l],0);for(;u<l;u++)e[c+u]=e[d+u]+s(e[c+u-a],e[c+u-l],e[c+u-a-l])}return e}function s(e,t,n){const o=e+t-n,i=o-e,r=o-t,a=o-n;return i*i<=r*r&&i*i<=a*a?e:r*r<=a*a?t:n}function l(t,n,o){o.width=e.readUint(t,n),n+=4,o.height=e.readUint(t,n),n+=4,o.depth=t[n],n++,o.ctype=t[n],n++,o.compress=t[n],n++,o.filter=t[n],n++,o.interlace=t[n],n++}function c(e,t,n,o,i,r,a,s,l){const c=Math.min(t,i),d=Math.min(n,r);let p=0,u=0;for(let $=0;$<d;$++)for(let n=0;n<c;n++)if(a>=0&&s>=0?(p=$*t+n<<2,u=(s+$)*i+a+n<<2):(p=(-s+$)*t-a+n<<2,u=$*i+n<<2),0==l)o[u]=e[p],o[u+1]=e[p+1],o[u+2]=e[p+2],o[u+3]=e[p+3];else if(1==l){var m=e[p+3]*(1/255),h=e[p]*m,g=e[p+1]*m,x=e[p+2]*m,f=o[u+3]*(1/255),y=o[u]*f,S=o[u+1]*f,C=o[u+2]*f;const t=1-m,n=m+f*t,i=0==n?0:1/n;o[u+3]=255*n,o[u+0]=(h+y*t)*i,o[u+1]=(g+S*t)*i,o[u+2]=(x+C*t)*i}else if(2==l)m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C?(o[u]=0,o[u+1]=0,o[u+2]=0,o[u+3]=0):(o[u]=h,o[u+1]=g,o[u+2]=x,o[u+3]=m);else if(3==l){if(m=e[p+3],h=e[p],g=e[p+1],x=e[p+2],f=o[u+3],y=o[u],S=o[u+1],C=o[u+2],m==f&&h==y&&g==S&&x==C)continue;if(m<220&&f>20)return!1}return!0}return{decode:function(t){const r=new Uint8Array(t);let a=8;const s=e,c=s.readUshort,d=s.readUint,p={tabs:{},frames:[]},u=new Uint8Array(r.length);let m,h=0,g=0;const x=[137,80,78,71,13,10,26,10];for(var f=0;f<8;f++)if(r[f]!=x[f])throw"The input is not a PNG file!";for(;a<r.length;){const e=s.readUint(r,a);a+=4;const t=s.readASCII(r,a,4);if(a+=4,"IHDR"==t)l(r,a,p);else if("iCCP"==t){for(var y=a;0!=r[y];)y++;s.readASCII(r,a,y-a),r[y+1];const n=r.slice(y+2,a+e);let l=null;try{l=o(n)}catch(w){l=i(n)}p.tabs[t]=l}else if("CgBI"==t)p.tabs[t]=r.slice(a,a+4);else if("IDAT"==t){for(f=0;f<e;f++)u[h+f]=r[a+f];h+=e}else if("acTL"==t)p.tabs[t]={num_frames:d(r,a),num_plays:d(r,a+4)},m=new Uint8Array(r.length);else if("fcTL"==t){0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height),g=0);const e={x:d(r,a+12),y:d(r,a+16),width:d(r,a+4),height:d(r,a+8)};let t=c(r,a+22);t=c(r,a+20)/(0==t?100:t);const o={rect:e,delay:Math.round(1e3*t),dispose:r[a+24],blend:r[a+25]};p.frames.push(o)}else if("fdAT"==t){for(f=0;f<e-4;f++)m[g+f]=r[a+f+4];g+=e-4}else if("pHYs"==t)p.tabs[t]=[s.readUint(r,a),s.readUint(r,a+4),r[a+8]];else if("cHRM"==t)for(p.tabs[t]=[],f=0;f<8;f++)p.tabs[t].push(s.readUint(r,a+4*f));else if("tEXt"==t||"zTXt"==t){null==p.tabs[t]&&(p.tabs[t]={});var S=s.nextZero(r,a),C=s.readASCII(r,a,S-a),$=a+e-S-1;if("tEXt"==t)v=s.readASCII(r,S+1,$);else{var b=o(r.slice(S+2,S+2+$));v=s.readUTF8(b,0,b.length)}p.tabs[t][C]=v}else if("iTXt"==t){null==p.tabs[t]&&(p.tabs[t]={}),S=0,y=a,S=s.nextZero(r,y),C=s.readASCII(r,y,S-y);const n=r[y=S+1];var v;r[y+1],y+=2,S=s.nextZero(r,y),s.readASCII(r,y,S-y),y=S+1,S=s.nextZero(r,y),s.readUTF8(r,y,S-y),$=e-((y=S+1)-a),0==n?v=s.readUTF8(r,y,$):(b=o(r.slice(y,y+$)),v=s.readUTF8(b,0,b.length)),p.tabs[t][C]=v}else if("PLTE"==t)p.tabs[t]=s.readBytes(r,a,e);else if("hIST"==t){const e=p.tabs.PLTE.length/3;for(p.tabs[t]=[],f=0;f<e;f++)p.tabs[t].push(c(r,a+2*f))}else if("tRNS"==t)3==p.ctype?p.tabs[t]=s.readBytes(r,a,e):0==p.ctype?p.tabs[t]=c(r,a):2==p.ctype&&(p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]);else if("gAMA"==t)p.tabs[t]=s.readUint(r,a)/1e5;else if("sRGB"==t)p.tabs[t]=r[a];else if("bKGD"==t)0==p.ctype||4==p.ctype?p.tabs[t]=[c(r,a)]:2==p.ctype||6==p.ctype?p.tabs[t]=[c(r,a),c(r,a+2),c(r,a+4)]:3==p.ctype&&(p.tabs[t]=r[a]);else if("IEND"==t)break;a+=e,s.readUint(r,a),a+=4}var E;return 0!=g&&((E=p.frames[p.frames.length-1]).data=n(p,m.slice(0,g),E.rect.width,E.rect.height)),p.data=n(p,u,p.width,p.height),delete p.compress,delete p.interlace,delete p.filter,p},toRGBA8:function(e){const n=e.width,o=e.height;if(null==e.tabs.acTL)return[t(e.data,n,o,e).buffer];const i=[];null==e.frames[0].data&&(e.frames[0].data=e.data);const r=n*o*4,a=new Uint8Array(r),s=new Uint8Array(r),l=new Uint8Array(r);for(let p=0;p<e.frames.length;p++){const u=e.frames[p],m=u.rect.x,h=u.rect.y,g=u.rect.width,x=u.rect.height,f=t(u.data,g,x,e);if(0!=p)for(var d=0;d<r;d++)l[d]=a[d];if(0==u.blend?c(f,g,x,a,n,o,m,h,0):1==u.blend&&c(f,g,x,a,n,o,m,h,1),i.push(a.buffer.slice(0)),0==u.dispose);else if(1==u.dispose)c(s,g,x,a,n,o,m,h,0);else if(2==u.dispose)for(d=0;d<r;d++)a[d]=l[d]}return i},_paeth:s,_copyTile:c,_bin:e}}();!function(){const{_copyTile:e}=UPNG,{_bin:t}=UPNG,n=UPNG._paeth;var o={table:function(){const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;e[t]=n}return e}(),update(e,t,n,i){for(let r=0;r<i;r++)e=o.table[255&(e^t[n+r])]^e>>>8;return e},crc:(e,t,n)=>4294967295^o.update(4294967295,e,t,n)};function i(e,t,n,o){t[n]+=e[0]*o>>4,t[n+1]+=e[1]*o>>4,t[n+2]+=e[2]*o>>4,t[n+3]+=e[3]*o>>4}function r(e){return Math.max(0,Math.min(255,e))}function a(e,t){const n=e[0]-t[0],o=e[1]-t[1],i=e[2]-t[2],r=e[3]-t[3];return n*n+o*o+i*i+r*r}function s(e,t,n,o,s,l,c){null==c&&(c=1);const d=o.length,p=[];for(var u=0;u<d;u++){const e=o[u];p.push([e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255])}for(u=0;u<d;u++){let e=4294967295;for(var m=0,h=0;h<d;h++){var g=a(p[u],p[h]);h!=u&&g<e&&(e=g,m=h)}}const x=new Uint32Array(s.buffer),f=new Int16Array(t*n*4),y=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];for(u=0;u<y.length;u++)y[u]=255*((y[u]+.5)/16-.5);for(let C=0;C<n;C++)for(let s=0;s<t;s++){var S;u=4*(C*t+s),2!=c?S=[r(e[u]+f[u]),r(e[u+1]+f[u+1]),r(e[u+2]+f[u+2]),r(e[u+3]+f[u+3])]:(g=y[4*(3&C)+(3&s)],S=[r(e[u]+g),r(e[u+1]+g),r(e[u+2]+g),r(e[u+3]+g)]),m=0;let $=16777215;for(h=0;h<d;h++){const e=a(S,p[h]);e<$&&($=e,m=h)}const b=p[m],v=[S[0]-b[0],S[1]-b[1],S[2]-b[2],S[3]-b[3]];1==c&&(s!=t-1&&i(v,f,u+4,7),C!=n-1&&(0!=s&&i(v,f,u+4*t-4,3),i(v,f,u+4*t,5),s!=t-1&&i(v,f,u+4*t+4,1))),l[u>>2]=m,x[u>>2]=o[m]}}function l(e,n,i,r,a){null==a&&(a={});const{crc:s}=o,l=t.writeUint,c=t.writeUshort,d=t.writeASCII;let p=8;const u=e.frames.length>1;let m,h=!1,g=33+(u?20:0);if(null!=a.sRGB&&(g+=13),null!=a.pHYs&&(g+=21),null!=a.iCCP&&(m=pako.deflate(a.iCCP),g+=21+m.length+4),3==e.ctype){for(var x=e.plte.length,f=0;f<x;f++)e.plte[f]>>>24!=255&&(h=!0);g+=8+3*x+4+(h?8+1*x+4:0)}for(var y=0;y<e.frames.length;y++)u&&(g+=38),g+=(b=e.frames[y]).cimg.length+12,0!=y&&(g+=4);g+=12;const S=new Uint8Array(g),C=[137,80,78,71,13,10,26,10];for(f=0;f<8;f++)S[f]=C[f];if(l(S,p,13),p+=4,d(S,p,"IHDR"),p+=4,l(S,p,n),p+=4,l(S,p,i),p+=4,S[p]=e.depth,p++,S[p]=e.ctype,p++,S[p]=0,p++,S[p]=0,p++,S[p]=0,p++,l(S,p,s(S,p-17,17)),p+=4,null!=a.sRGB&&(l(S,p,1),p+=4,d(S,p,"sRGB"),p+=4,S[p]=a.sRGB,p++,l(S,p,s(S,p-5,5)),p+=4),null!=a.iCCP){const e=13+m.length;l(S,p,e),p+=4,d(S,p,"iCCP"),p+=4,d(S,p,"ICC profile"),p+=11,p+=2,S.set(m,p),p+=m.length,l(S,p,s(S,p-(e+4),e+4)),p+=4}if(null!=a.pHYs&&(l(S,p,9),p+=4,d(S,p,"pHYs"),p+=4,l(S,p,a.pHYs[0]),p+=4,l(S,p,a.pHYs[1]),p+=4,S[p]=a.pHYs[2],p++,l(S,p,s(S,p-13,13)),p+=4),u&&(l(S,p,8),p+=4,d(S,p,"acTL"),p+=4,l(S,p,e.frames.length),p+=4,l(S,p,null!=a.loop?a.loop:0),p+=4,l(S,p,s(S,p-12,12)),p+=4),3==e.ctype){for(l(S,p,3*(x=e.plte.length)),p+=4,d(S,p,"PLTE"),p+=4,f=0;f<x;f++){const t=3*f,n=e.plte[f],o=255&n,i=n>>>8&255,r=n>>>16&255;S[p+t+0]=o,S[p+t+1]=i,S[p+t+2]=r}if(p+=3*x,l(S,p,s(S,p-3*x-4,3*x+4)),p+=4,h){for(l(S,p,x),p+=4,d(S,p,"tRNS"),p+=4,f=0;f<x;f++)S[p+f]=e.plte[f]>>>24&255;p+=x,l(S,p,s(S,p-x-4,x+4)),p+=4}}let $=0;for(y=0;y<e.frames.length;y++){var b=e.frames[y];u&&(l(S,p,26),p+=4,d(S,p,"fcTL"),p+=4,l(S,p,$++),p+=4,l(S,p,b.rect.width),p+=4,l(S,p,b.rect.height),p+=4,l(S,p,b.rect.x),p+=4,l(S,p,b.rect.y),p+=4,c(S,p,r[y]),p+=2,c(S,p,1e3),p+=2,S[p]=b.dispose,p++,S[p]=b.blend,p++,l(S,p,s(S,p-30,30)),p+=4);const t=b.cimg;l(S,p,(x=t.length)+(0==y?0:4)),p+=4;const n=p;d(S,p,0==y?"IDAT":"fdAT"),p+=4,0!=y&&(l(S,p,$++),p+=4),S.set(t,p),p+=x,l(S,p,s(S,n,p-n)),p+=4}return l(S,p,0),p+=4,d(S,p,"IEND"),p+=4,l(S,p,s(S,p-4,4)),p+=4,S.buffer}function c(e,t,n){for(let o=0;o<e.frames.length;o++){const i=e.frames[o];i.rect.width;const r=i.rect.height,a=new Uint8Array(r*i.bpl+r);i.cimg=m(i.img,r,i.bpp,i.bpl,a,t,n)}}function d(t,n,o,i,r){const a=r[0],l=r[1],c=r[2],d=r[3],m=r[4],h=r[5];let x=6,f=8,y=255;for(var S=0;S<t.length;S++){const e=new Uint8Array(t[S]);for(var C=e.length,$=0;$<C;$+=4)y&=e[$+3]}const b=255!=y,v=function(t,n,o,i,r,a){const s=[];for(var l=0;l<t.length;l++){const p=new Uint8Array(t[l]),m=new Uint32Array(p.buffer);var c;let g=0,x=0,f=n,y=o,S=i?1:0;if(0!=l){const C=a||i||1==l||0!=s[l-2].dispose?1:2;let $=0,b=1e9;for(let e=0;e<C;e++){var d=new Uint8Array(t[l-1-e]);const i=new Uint32Array(t[l-1-e]);let a=n,s=o,c=-1,p=-1;for(let e=0;e<o;e++)for(let t=0;t<n;t++)m[h=e*n+t]!=i[h]&&(t<a&&(a=t),t>c&&(c=t),e<s&&(s=e),e>p&&(p=e));-1==c&&(a=s=c=p=0),r&&(!(1&~a)&&a--,!(1&~s)&&s--);const u=(c-a+1)*(p-s+1);u<b&&(b=u,$=e,g=a,x=s,f=c-a+1,y=p-s+1)}d=new Uint8Array(t[l-1-$]),1==$&&(s[l-1].dispose=2),c=new Uint8Array(f*y*4),e(d,n,o,c,f,y,-g,-x,0),S=e(p,n,o,c,f,y,-g,-x,3)?1:0,1==S?u(p,n,o,c,{x:g,y:x,width:f,height:y}):e(p,n,o,c,f,y,-g,-x,0)}else c=p.slice(0);s.push({rect:{x:g,y:x,width:f,height:y},img:c,blend:S,dispose:0})}if(i)for(l=0;l<s.length;l++){if(1==(g=s[l]).blend)continue;const e=g.rect,i=s[l-1].rect,a=Math.min(e.x,i.x),c=Math.min(e.y,i.y),d={x:a,y:c,width:Math.max(e.x+e.width,i.x+i.width)-a,height:Math.max(e.y+e.height,i.y+i.height)-c};s[l-1].dispose=1,l-1!=0&&p(t,n,o,s,l-1,d,r),p(t,n,o,s,l,d,r)}let m=0;if(1!=t.length)for(var h=0;h<s.length;h++){var g;m+=(g=s[h]).rect.width*g.rect.height}return s}(t,n,o,a,l,c),E={},w=[],R=[];if(0!=i){const e=[];for($=0;$<v.length;$++)e.push(v[$].img.buffer);const t=g(function(e){let t=0;for(var n=0;n<e.length;n++)t+=e[n].byteLength;const o=new Uint8Array(t);let i=0;for(n=0;n<e.length;n++){const t=new Uint8Array(e[n]),r=t.length;for(let e=0;e<r;e+=4){let n=t[e],r=t[e+1],a=t[e+2];const s=t[e+3];0==s&&(n=r=a=0),o[i+e]=n,o[i+e+1]=r,o[i+e+2]=a,o[i+e+3]=s}i+=r}return o.buffer}(e),i);for($=0;$<t.plte.length;$++)w.push(t.plte[$].est.rgba);let n=0;for($=0;$<v.length;$++){const e=(j=v[$]).img.length;var A=new Uint8Array(t.inds.buffer,n>>2,e>>2);R.push(A);const o=new Uint8Array(t.abuf,n,e);h&&s(j.img,j.rect.width,j.rect.height,w,o,A),j.img.set(o),n+=e}}else for(S=0;S<v.length;S++){var j=v[S];const e=new Uint32Array(j.img.buffer);var T=j.rect.width;for(C=e.length,A=new Uint8Array(C),R.push(A),$=0;$<C;$++){const t=e[$];if(0!=$&&t==e[$-1])A[$]=A[$-1];else if($>T&&t==e[$-T])A[$]=A[$-T];else{let e=E[t];if(null==e&&(E[t]=e=w.length,w.push(t),w.length>=300))break;A[$]=e}}}const I=w.length;for(I<=256&&0==m&&(f=I<=2?1:I<=4?2:I<=16?4:8,f=Math.max(f,d)),S=0;S<v.length;S++){(j=v[S]).rect.x,j.rect.y,T=j.rect.width;const e=j.rect.height;let t=j.img;new Uint32Array(t.buffer);let n=4*T,o=4;if(I<=256&&0==m){n=Math.ceil(f*T/8);var k=new Uint8Array(n*e);const i=R[S];for(let t=0;t<e;t++){$=t*n;const e=t*T;if(8==f)for(var L=0;L<T;L++)k[$+L]=i[e+L];else if(4==f)for(L=0;L<T;L++)k[$+(L>>1)]|=i[e+L]<<4-4*(1&L);else if(2==f)for(L=0;L<T;L++)k[$+(L>>2)]|=i[e+L]<<6-2*(3&L);else if(1==f)for(L=0;L<T;L++)k[$+(L>>3)]|=i[e+L]<<7-1*(7&L)}t=k,x=3,o=1}else if(0==b&&1==v.length){k=new Uint8Array(T*e*3);const i=T*e;for($=0;$<i;$++){const e=3*$,n=4*$;k[e]=t[n],k[e+1]=t[n+1],k[e+2]=t[n+2]}t=k,x=2,o=3,n=3*T}j.img=t,j.bpl=n,j.bpp=o}return{ctype:x,depth:f,plte:w,frames:v}}function p(t,n,o,i,r,a,s){const l=Uint8Array,c=Uint32Array,d=new l(t[r-1]),p=new c(t[r-1]),m=r+1<t.length?new l(t[r+1]):null,h=new l(t[r]),g=new c(h.buffer);let x=n,f=o,y=-1,S=-1;for(let e=0;e<a.height;e++)for(let t=0;t<a.width;t++){const o=a.x+t,s=a.y+e,l=s*n+o,c=g[l];0==c||0==i[r-1].dispose&&p[l]==c&&(null==m||0!=m[4*l+3])||(o<x&&(x=o),o>y&&(y=o),s<f&&(f=s),s>S&&(S=s))}-1==y&&(x=f=y=S=0),s&&(!(1&~x)&&x--,!(1&~f)&&f--),a={x:x,y:f,width:y-x+1,height:S-f+1};const C=i[r];C.rect=a,C.blend=1,C.img=new Uint8Array(a.width*a.height*4),0==i[r-1].dispose?(e(d,n,o,C.img,a.width,a.height,-a.x,-a.y,0),u(h,n,o,C.img,a)):e(h,n,o,C.img,a.width,a.height,-a.x,-a.y,0)}function u(t,n,o,i,r){e(t,n,o,i,r.width,r.height,-r.x,-r.y,2)}function m(e,t,n,o,i,r,a){const s=[];let l,c=[0,1,2,3,4];-1!=r?c=[r]:(t*o>5e5||1==n)&&(c=[0]),a&&(l={level:0});const d=UZIP;for(var p=0;p<c.length;p++){for(let r=0;r<t;r++)h(i,e,r,o,n,c[p]);s.push(d.deflate(i,l))}let u,m=1e9;for(p=0;p<s.length;p++)s[p].length<m&&(u=p,m=s[p].length);return s[u]}function h(e,t,o,i,r,a){const s=o*i;let l=s+o;if(e[l]=a,l++,0==a)if(i<500)for(var c=0;c<i;c++)e[l+c]=t[s+c];else e.set(new Uint8Array(t.buffer,s,i),l);else if(1==a){for(c=0;c<r;c++)e[l+c]=t[s+c];for(c=r;c<i;c++)e[l+c]=t[s+c]-t[s+c-r]+256&255}else if(0==o){for(c=0;c<r;c++)e[l+c]=t[s+c];if(2==a)for(c=r;c<i;c++)e[l+c]=t[s+c];if(3==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-(t[s+c-r]>>1)+256&255;if(4==a)for(c=r;c<i;c++)e[l+c]=t[s+c]-n(t[s+c-r],0,0)+256&255}else{if(2==a)for(c=0;c<i;c++)e[l+c]=t[s+c]+256-t[s+c-i]&255;if(3==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-(t[s+c-i]>>1)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-(t[s+c-i]+t[s+c-r]>>1)&255}if(4==a){for(c=0;c<r;c++)e[l+c]=t[s+c]+256-n(0,t[s+c-i],0)&255;for(c=r;c<i;c++)e[l+c]=t[s+c]+256-n(t[s+c-r],t[s+c-i],t[s+c-r-i])&255}}}function g(e,t){const n=new Uint8Array(e),o=n.slice(0),i=new Uint32Array(o.buffer),r=x(o,t),a=r[0],s=r[1],l=n.length,c=new Uint8Array(l>>2);let d;if(n.length<2e7)for(var p=0;p<l;p+=4)d=f(a,u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255)),c[p>>2]=d.ind,i[p>>2]=d.est.rgba;else for(p=0;p<l;p+=4){var u=n[p]*(1/255),m=n[p+1]*(1/255),h=n[p+2]*(1/255),g=n[p+3]*(1/255);for(d=a;d.left;)d=y(d.est,u,m,h,g)<=0?d.left:d.right;c[p>>2]=d.ind,i[p>>2]=d.est.rgba}return{abuf:o.buffer,inds:c,plte:s}}function x(e,t,n){null==n&&(n=1e-4);const o=new Uint32Array(e.buffer),i={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};i.bst=$(e,i.i0,i.i1),i.est=b(i.bst);const r=[i];for(;r.length<t;){let t=0,i=0;for(var a=0;a<r.length;a++)r[a].est.L>t&&(t=r[a].est.L,i=a);if(t<n)break;const s=r[i],l=S(e,o,s.i0,s.i1,s.est.e,s.est.eMq255);if(s.i0>=l||s.i1<=l){s.est.L=0;continue}const c={i0:s.i0,i1:l,bst:null,est:null,tdst:0,left:null,right:null};c.bst=$(e,c.i0,c.i1),c.est=b(c.bst);const d={i0:l,i1:s.i1,bst:null,est:null,tdst:0,left:null,right:null};for(d.bst={R:[],m:[],N:s.bst.N-c.bst.N},a=0;a<16;a++)d.bst.R[a]=s.bst.R[a]-c.bst.R[a];for(a=0;a<4;a++)d.bst.m[a]=s.bst.m[a]-c.bst.m[a];d.est=b(d.bst),s.left=c,s.right=d,r[i]=c,r.push(d)}for(r.sort((e,t)=>t.bst.N-e.bst.N),a=0;a<r.length;a++)r[a].ind=a;return[i,r]}function f(e,t,n,o,i){if(null==e.left)return e.tdst=function(e,t,n,o,i){const r=t-e[0],a=n-e[1],s=o-e[2],l=i-e[3];return r*r+a*a+s*s+l*l}(e.est.q,t,n,o,i),e;const r=y(e.est,t,n,o,i);let a=e.left,s=e.right;r>0&&(a=e.right,s=e.left);const l=f(a,t,n,o,i);if(l.tdst<=r*r)return l;const c=f(s,t,n,o,i);return c.tdst<l.tdst?c:l}function y(e,t,n,o,i){const{e:r}=e;return r[0]*t+r[1]*n+r[2]*o+r[3]*i-e.eMq}function S(e,t,n,o,i,r){for(o-=4;n<o;){for(;C(e,n,i)<=r;)n+=4;for(;C(e,o,i)>r;)o-=4;if(n>=o)break;const a=t[n>>2];t[n>>2]=t[o>>2],t[o>>2]=a,n+=4,o-=4}for(;C(e,n,i)>r;)n-=4;return n+4}function C(e,t,n){return e[t]*n[0]+e[t+1]*n[1]+e[t+2]*n[2]+e[t+3]*n[3]}function $(e,t,n){const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=[0,0,0,0],r=n-t>>2;for(let a=t;a<n;a+=4){const t=e[a]*(1/255),n=e[a+1]*(1/255),r=e[a+2]*(1/255),s=e[a+3]*(1/255);i[0]+=t,i[1]+=n,i[2]+=r,i[3]+=s,o[0]+=t*t,o[1]+=t*n,o[2]+=t*r,o[3]+=t*s,o[5]+=n*n,o[6]+=n*r,o[7]+=n*s,o[10]+=r*r,o[11]+=r*s,o[15]+=s*s}return o[4]=o[1],o[8]=o[2],o[9]=o[6],o[12]=o[3],o[13]=o[7],o[14]=o[11],{R:o,m:i,N:r}}function b(e){const{R:t}=e,{m:n}=e,{N:o}=e,i=n[0],r=n[1],a=n[2],s=n[3],l=0==o?0:1/o,c=[t[0]-i*i*l,t[1]-i*r*l,t[2]-i*a*l,t[3]-i*s*l,t[4]-r*i*l,t[5]-r*r*l,t[6]-r*a*l,t[7]-r*s*l,t[8]-a*i*l,t[9]-a*r*l,t[10]-a*a*l,t[11]-a*s*l,t[12]-s*i*l,t[13]-s*r*l,t[14]-s*a*l,t[15]-s*s*l],d=c,p=v;let u=[Math.random(),Math.random(),Math.random(),Math.random()],m=0,h=0;if(0!=o)for(let x=0;x<16&&(u=p.multVec(d,u),h=Math.sqrt(p.dot(u,u)),u=p.sml(1/h,u),!(0!=x&&Math.abs(h-m)<1e-9));x++)m=h;const g=[i*l,r*l,a*l,s*l];return{Cov:c,q:g,e:u,L:m,eMq255:p.dot(p.sml(255,g),u),eMq:p.dot(u,g),rgba:(Math.round(255*g[3])<<24|Math.round(255*g[2])<<16|Math.round(255*g[1])<<8|Math.round(255*g[0]))>>>0}}var v={multVec:(e,t)=>[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]],dot:(e,t)=>e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],sml:(e,t)=>[e*t[0],e*t[1],e*t[2],e*t[3]]};UPNG.encode=function(e,t,n,o,i,r,a){null==o&&(o=0),null==a&&(a=!1);const s=d(e,t,n,o,[!1,!1,!1,0,a,!1]);return c(s,-1),l(s,t,n,i,r)},UPNG.encodeLL=function(e,t,n,o,i,r,a,s){const d={ctype:0+(1==o?0:2)+(0==i?0:4),depth:r,frames:[]},p=(o+i)*r,u=p*t;for(let l=0;l<e.length;l++)d.frames.push({rect:{x:0,y:0,width:t,height:n},img:new Uint8Array(e[l]),blend:0,dispose:1,bpp:Math.ceil(p/8),bpl:Math.ceil(u/8)});return c(d,0,!0),l(d,t,n,a,s)},UPNG.encode.compress=d,UPNG.encode.dither=s,UPNG.quantize=g,UPNG.quantize.getKDtree=x,UPNG.quantize.getNearest=f}();const r={toArrayBuffer(e,t){const n=e.width,o=e.height,i=n<<2,a=e.getContext("2d").getImageData(0,0,n,o),s=new Uint32Array(a.data.buffer),l=(32*n+31)/32<<2,c=l*o,d=122+c,p=new ArrayBuffer(d),u=new DataView(p),m=1<<20;let h,g,x,f,y=m,S=0,C=0,$=0;function b(e){u.setUint16(C,e,!0),C+=2}function v(e){u.setUint32(C,e,!0),C+=4}function E(e){C+=e}b(19778),v(d),E(4),v(122),v(108),v(n),v(-o>>>0),b(1),b(32),v(3),v(c),v(2835),v(2835),E(8),v(16711680),v(65280),v(255),v(4278190080),v(1466527264),function e(){for(;S<o&&y>0;){for(f=122+S*l,h=0;h<i;)y--,g=s[$++],x=g>>>24,u.setUint32(f+h,g<<8|x),h+=4;S++}$<s.length?(y=m,setTimeout(e,r._dly)):t(p)}()},toBlob(e,t){this.toArrayBuffer(e,e=>{t(new Blob([e],{type:"image/bmp"}))})},_dly:9};var i={CHROME:"CHROME",FIREFOX:"FIREFOX",DESKTOP_SAFARI:"DESKTOP_SAFARI",IE:"IE",IOS:"IOS",ETC:"ETC"},o={[i.CHROME]:16384,[i.FIREFOX]:11180,[i.DESKTOP_SAFARI]:16384,[i.IE]:8192,[i.IOS]:4096,[i.ETC]:8192};const a="undefined"!=typeof window,s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,f=a&&window.cordova&&window.cordova.require&&window.cordova.require("cordova/modulemapper"),CustomFile=(a||s)&&(f&&f.getOriginalSymbol(window,"File")||"undefined"!=typeof File&&File),CustomFileReader=(a||s)&&(f&&f.getOriginalSymbol(window,"FileReader")||"undefined"!=typeof FileReader&&FileReader);function getFilefromDataUrl(e,t,n=Date.now()){return new Promise(o=>{const i=e.split(","),r=i[0].match(/:(.*?);/)[1],a=globalThis.atob(i[1]);let s=a.length;const l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);const c=new Blob([l],{type:r});c.name=t,c.lastModified=n,o(c)})}function getDataUrlFromFile(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=()=>t(o.result),o.onerror=e=>n(e),o.readAsDataURL(e)})}function loadImage(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>t(o),o.onerror=e=>n(e),o.src=e})}function getBrowserName(){if(void 0!==getBrowserName.cachedResult)return getBrowserName.cachedResult;let e=i.ETC;const{userAgent:t}=navigator;return/Chrom(e|ium)/i.test(t)?e=i.CHROME:/iP(ad|od|hone)/i.test(t)&&/WebKit/i.test(t)?e=i.IOS:/Safari/i.test(t)?e=i.DESKTOP_SAFARI:/Firefox/i.test(t)?e=i.FIREFOX:(/MSIE/i.test(t)||1==!!document.documentMode)&&(e=i.IE),getBrowserName.cachedResult=e,getBrowserName.cachedResult}function approximateBelowMaximumCanvasSizeOfBrowser(e,t){const n=getBrowserName(),i=o[n];let r=e,a=t,s=r*a;const l=r>a?a/r:r/a;for(;s>i*i;){const e=(i+r)/2,t=(i+a)/2;e<t?(a=t,r=t*l):(a=e*l,r=e),s=r*a}return{width:r,height:a}}function getNewCanvasAndCtx(e,t){let n,o;try{if(n=new OffscreenCanvas(e,t),o=n.getContext("2d"),null===o)throw new Error("getContext of OffscreenCanvas returns null")}catch(i){n=document.createElement("canvas"),o=n.getContext("2d")}return n.width=e,n.height=t,[n,o]}function drawImageInCanvas(e,t){const{width:n,height:o}=approximateBelowMaximumCanvasSizeOfBrowser(e.width,e.height),[i,r]=getNewCanvasAndCtx(n,o);return t&&/jpe?g/.test(t)&&(r.fillStyle="white",r.fillRect(0,0,i.width,i.height)),r.drawImage(e,0,0,i.width,i.height),i}function isIOS(){return void 0!==isIOS.cachedResult||(isIOS.cachedResult=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"undefined"!=typeof document&&"ontouchend"in document),isIOS.cachedResult}function drawFileInCanvas(e,t={}){return new Promise(function(n,o){let r,a;var s=function(){try{return a=drawImageInCanvas(r,t.fileType||e.type),n([r,a])}catch(i){return o(i)}},l=function(t){try{var n=function(e){try{throw e}catch(t){return o(t)}};try{let t;return getDataUrlFromFile(e).then(function(e){try{return t=e,loadImage(t).then(function(e){try{return r=e,function(){try{return s()}catch(e){return o(e)}}()}catch(t){return n(t)}},n)}catch(i){return n(i)}},n)}catch(i){n(i)}}catch(i){return o(i)}};try{if(isIOS()||[i.DESKTOP_SAFARI,i.MOBILE_SAFARI].includes(getBrowserName()))throw new Error("Skip createImageBitmap on IOS and Safari");return createImageBitmap(e).then(function(e){try{return r=e,s()}catch(t){return l()}},l)}catch(c){l()}})}function canvasToFile(e,t,n,o,i=1){return new Promise(function(a,s){let l;if("image/png"===t){let r,a,s;return r=e.getContext("2d"),({data:a}=r.getImageData(0,0,e.width,e.height)),s=UPNG.encode([a.buffer],e.width,e.height,4096*i),l=new Blob([s],{type:t}),l.name=n,l.lastModified=o,c.call(this)}{let a=function(){return c.call(this)};if("image/bmp"===t)return new Promise(t=>r.toBlob(e,t)).then(function(e){try{return l=e,l.name=n,l.lastModified=o,a.call(this)}catch(t){return s(t)}}.bind(this),s);{let r=function(){return a.call(this)};if("function"==typeof OffscreenCanvas&&e instanceof OffscreenCanvas)return e.convertToBlob({type:t,quality:i}).then(function(e){try{return l=e,l.name=n,l.lastModified=o,r.call(this)}catch(t){return s(t)}}.bind(this),s);{let a;return a=e.toDataURL(t,i),getFilefromDataUrl(a,n,o).then(function(e){try{return l=e,r.call(this)}catch(t){return s(t)}}.bind(this),s)}}}function c(){return a(l)}})}function cleanupCanvasMemory(e){e.width=0,e.height=0}function isAutoOrientationInBrowser(){return new Promise(function(e,t){let n,o,i,r;return void 0!==isAutoOrientationInBrowser.cachedResult?e(isAutoOrientationInBrowser.cachedResult):getFilefromDataUrl("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==","test.jpg",Date.now()).then(function(a){try{return n=a,drawFileInCanvas(n).then(function(a){try{return o=a[1],canvasToFile(o,n.type,n.name,n.lastModified).then(function(n){try{return i=n,cleanupCanvasMemory(o),drawFileInCanvas(i).then(function(n){try{return r=n[0],isAutoOrientationInBrowser.cachedResult=1===r.width&&2===r.height,e(isAutoOrientationInBrowser.cachedResult)}catch(o){return t(o)}},t)}catch(a){return t(a)}},t)}catch(s){return t(s)}},t)}catch(s){return t(s)}},t)})}function getExifOrientation(e){return new Promise((t,n)=>{const o=new CustomFileReader;o.onload=e=>{const n=new DataView(e.target.result);if(65496!=n.getUint16(0,!1))return t(-2);const o=n.byteLength;let i=2;for(;i<o;){if(n.getUint16(i+2,!1)<=8)return t(-1);const e=n.getUint16(i,!1);if(i+=2,65505==e){if(1165519206!=n.getUint32(i+=2,!1))return t(-1);const e=18761==n.getUint16(i+=6,!1);i+=n.getUint32(i+4,e);const o=n.getUint16(i,e);i+=2;for(let r=0;r<o;r++)if(274==n.getUint16(i+12*r,e))return t(n.getUint16(i+12*r+8,e))}else{if(65280&~e)break;i+=n.getUint16(i,!1)}}return t(-1)},o.onerror=e=>n(e),o.readAsArrayBuffer(e)})}function handleMaxWidthOrHeight(e,t){const{width:n}=e,{height:o}=e,{maxWidthOrHeight:i}=t;let r,a=e;return isFinite(i)&&(n>i||o>i)&&([a,r]=getNewCanvasAndCtx(n,o),n>o?(a.width=i,a.height=o/n*i):(a.width=n/o*i,a.height=i),r.drawImage(e,0,0,a.width,a.height),cleanupCanvasMemory(e)),a}function followExifOrientation(e,t){const{width:n}=e,{height:o}=e,[i,r]=getNewCanvasAndCtx(n,o);switch(t>4&&t<9?(i.width=o,i.height=n):(i.width=n,i.height=o),t){case 2:r.transform(-1,0,0,1,n,0);break;case 3:r.transform(-1,0,0,-1,n,o);break;case 4:r.transform(1,0,0,-1,0,o);break;case 5:r.transform(0,1,1,0,0,0);break;case 6:r.transform(0,1,-1,0,o,0);break;case 7:r.transform(0,-1,-1,0,o,n);break;case 8:r.transform(0,-1,1,0,0,n)}return r.drawImage(e,0,0,n,o),cleanupCanvasMemory(e),i}function compress(e,t,n=0){return new Promise(function(o,i){let r,a,s,l,c,d,p,u,m,h,g,x,f,y,S,C,$,b,v,E;function w(e=5){if(t.signal&&t.signal.aborted)throw t.signal.reason;r+=e,t.onProgress(Math.min(r,100))}function R(e){if(t.signal&&t.signal.aborted)throw t.signal.reason;r=Math.min(Math.max(e,r),100),t.onProgress(r)}return r=n,a=t.maxIteration||10,s=1024*t.maxSizeMB*1024,w(),drawFileInCanvas(e,t).then(function(n){try{return[,l]=n,w(),c=handleMaxWidthOrHeight(l,t),w(),new Promise(function(n,o){var i;if(!(i=t.exifOrientation))return getExifOrientation(e).then(function(e){try{return i=e,r.call(this)}catch(t){return o(t)}}.bind(this),o);function r(){return n(i)}return r.call(this)}).then(function(n){try{return d=n,w(),isAutoOrientationInBrowser().then(function(n){try{return p=n?c:followExifOrientation(c,d),w(),u=t.initialQuality||1,m=t.fileType||e.type,canvasToFile(p,m,e.name,e.lastModified,u).then(function(n){try{{let d=function(){if(a--&&(S>s||S>f)){let t,n;return t=E?.95*v.width:v.width,n=E?.95*v.height:v.height,[$,b]=getNewCanvasAndCtx(t,n),b.drawImage(v,0,0,t,n),u*="image/png"===m?.85:.95,canvasToFile($,m,e.name,e.lastModified,u).then(function(e){try{return C=e,cleanupCanvasMemory(v),v=$,S=C.size,R(Math.min(99,Math.floor((y-S)/(y-s)*100))),d}catch(t){return i(t)}},i)}return[1]},A=function(){return cleanupCanvasMemory(v),cleanupCanvasMemory($),cleanupCanvasMemory(c),cleanupCanvasMemory(p),cleanupCanvasMemory(l),R(100),o(C)};return h=n,w(),g=h.size>s,x=h.size>e.size,g||x?(f=e.size,y=h.size,S=y,v=p,E=!t.alwaysKeepResolution&&g,(r=function(e){for(;e;){if(e.then)return void e.then(r,i);try{if(e.pop){if(e.length)return e.pop()?A.call(this):e;e=d}else e=e.call(this)}catch(t){return i(t)}}}.bind(this))(d)):(R(100),o(h));var r}}catch(d){return i(d)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)}catch(r){return i(r)}}.bind(this),i)})}const l="\nlet scriptImported = false\nself.addEventListener('message', async (e) => {\n const { file, id, imageCompressionLibUrl, options } = e.data\n options.onProgress = (progress) => self.postMessage({ progress, id })\n try {\n if (!scriptImported) {\n // console.log('[worker] importScripts', imageCompressionLibUrl)\n self.importScripts(imageCompressionLibUrl)\n scriptImported = true\n }\n // console.log('[worker] self', self)\n const compressedFile = await imageCompression(file, options)\n self.postMessage({ file: compressedFile, id })\n } catch (e) {\n // console.error('[worker] error', e)\n self.postMessage({ error: e.message + '\\n' + e.stack, id })\n }\n})\n";let c;function compressOnWebWorker(e,t){return new Promise((n,o)=>{c||(c=function(e){const t=[];return t.push(e),URL.createObjectURL(new Blob(t))}(l));const i=new Worker(c);i.addEventListener("message",function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(void 0===e.data.progress){if(e.data.error)return o(new Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)}),i.addEventListener("error",o),t.signal&&t.signal.addEventListener("abort",()=>{o(t.signal.reason),i.terminate()}),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})})}function imageCompression(e,t){return new Promise(function(n,o){let i,r,a,s,l,c;if(i={...t},a=0,({onProgress:s}=i),i.maxSizeMB=i.maxSizeMB||Number.POSITIVE_INFINITY,l="boolean"!=typeof i.useWebWorker||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{a=e,"function"==typeof s&&s(a)},!(e instanceof Blob||e instanceof CustomFile))return o(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(e.type))return o(new Error("The file given is not an image"));if(c="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,!l||"function"!=typeof Worker||c)return compress(e,i).then(function(e){try{return r=e,u.call(this)}catch(t){return o(t)}}.bind(this),o);var d=function(){try{return u.call(this)}catch(e){return o(e)}}.bind(this),p=function(t){try{return compress(e,i).then(function(e){try{return r=e,d()}catch(t){return o(t)}},o)}catch(n){return o(n)}};try{return i.libURL=i.libURL||"https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js",compressOnWebWorker(e,i).then(function(e){try{return r=e,d()}catch(t){return p()}},p)}catch(m){p()}function u(){try{r.name=e.name,r.lastModified=e.lastModified}catch(m){}try{i.preserveExif&&"image/jpeg"===e.type&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(r=copyExifWithoutOrientation(e,r))}catch(m){}return n(r)}})}imageCompression.getDataUrlFromFile=getDataUrlFromFile,imageCompression.getFilefromDataUrl=getFilefromDataUrl,imageCompression.loadImage=loadImage,imageCompression.drawImageInCanvas=drawImageInCanvas,imageCompression.drawFileInCanvas=drawFileInCanvas,imageCompression.canvasToFile=canvasToFile,imageCompression.getExifOrientation=getExifOrientation,imageCompression.handleMaxWidthOrHeight=handleMaxWidthOrHeight,imageCompression.followExifOrientation=followExifOrientation,imageCompression.cleanupCanvasMemory=cleanupCanvasMemory,imageCompression.isAutoOrientationInBrowser=isAutoOrientationInBrowser,imageCompression.approximateBelowMaximumCanvasSizeOfBrowser=approximateBelowMaximumCanvasSizeOfBrowser,imageCompression.copyExifWithoutOrientation=copyExifWithoutOrientation,imageCompression.getBrowserName=getBrowserName,imageCompression.version="2.0.2";const PDF_MIME_TYPE$1="application/pdf",imageCompressionAcceptableFileTypes=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],RECEIPT_IMAGE_COMPRESSION_OPTIONS={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2},handleImageCompression=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,{useWebWorker:!0,maxWidthOrHeight:900,initialQuality:1,maxSizeMB:1.4}),o=n.lastModified,i=n.type.split("/")[1];let r=`image_${o}.${i}`;null!=t&&(r=`${t}.${i}`);return new File([n],r,{lastModified:o,type:n.type})},compressImageForReceipt=async(e,t)=>{if(!1===imageCompressionAcceptableFileTypes.includes(e.type))return e;const n=await imageCompression(e,RECEIPT_IMAGE_COMPRESSION_OPTIONS),o=n.type.split("/")[1],i=t.replace(/\.[^.]+$/,"")||"image";return new File([n],`${i}.${o}`,{lastModified:e.lastModified,type:n.type})},PDF_RENDER_SCALE=1.5,PDF_JPEG_QUALITY=.7;function canvasToJpegBlob(e,t){return new Promise((n,o)=>{e.toBlob(e=>{null!=e?n(e):o(new Error("canvas.toBlob returned null"))},"image/jpeg",t)})}async function renderPageToJpeg(e,t,n){const o=e.getViewport({scale:t}),i=document.createElement("canvas");i.width=Math.floor(o.width),i.height=Math.floor(o.height);const r=i.getContext("2d");if(null==r)throw new Error("Could not get canvas 2d context");await e.render({canvasContext:r,viewport:o}).promise;return(await canvasToJpegBlob(i,n)).arrayBuffer()}async function compressPdfForReceipt(e,t){const[{PDFDocument:n},o]=await Promise.all([import("./index-Dx8oQo3U.js"),Promise.resolve().then(()=>index$2).then(e=>e.pdfjs)]),i=await e.arrayBuffer(),r=await o.getDocument({data:new Uint8Array(i)}).promise,a=r.numPages,s=await n.create();for(let d=1;d<=a;d++){const e=await r.getPage(d),t=await renderPageToJpeg(e,PDF_RENDER_SCALE,PDF_JPEG_QUALITY),n=await s.embedJpg(new Uint8Array(t)),o=n.scale(1);s.addPage([o.width,o.height]).drawImage(n,{x:0,y:0,width:o.width,height:o.height})}const l=await s.save(),c=t.toLowerCase().endsWith(".pdf")?t:`${t}.pdf`;return new File([l],c,{type:PDF_MIME_TYPE$1,lastModified:e.lastModified})}async function compressSingleFile(e,t){const n=e instanceof File?e:new File([e],t,{type:e.type});if(e.type===PDF_MIME_TYPE$1){const o=await compressPdfForReceipt(n,t);return o.size<n.size?{blob:o,name:o.name}:{blob:e,name:t}}const o=await compressImageForReceipt(n,t);return{blob:o,name:o.name}}async function compressReceiptFiles(e,t){const n=await Promise.all(e.map((e,n)=>{const o=t[n]??`file_${n}`;return compressSingleFile(e,o).catch(t=>(console.warn("[compressReceiptFiles] compression failed, using original:",t instanceof Error?t.message:t),{blob:e,name:o}))}));return{blobs:n.map(e=>e.blob),names:n.map(e=>e.name)}}const InputElementMobileCamera=({fileType:e="file",fileRef:t,name:n,value:o="",multiple:i=!1,acceptableTypes:r,onFileSizeError:a,onImageChange:s})=>/* @__PURE__ */jsxRuntimeExports.jsx("input",{type:e,ref:t,name:n,value:o,size:1e3,"data-testid":generateDataTestId("input-file-element-mobile",n),onChange:async e=>{const t=e.target.files?.[0],n=t?.size;null!=t&&null!=n?(a?.(!1),s(t),e.target.value=""):(a?.(!0),e.target.value="")},style:{display:"none"},accept:`${(r??"image/jpg, image/jpeg").toString()}`,multiple:i,capture:!0}),MoneyTransferSuccessAnimation=({shouldDisplay:e,width:t=30,height:n=30,styles:o,animationInLoop:i=!1})=>{const[,r]=useMusic(SUCCESS_SOUND_SOURCE),[a]=useAnimation("MoneyTransferSuccess");return React__default.useEffect(()=>{e&&r(!0)},[e,r]),e&&null!=a?/* @__PURE__ */jsxRuntimeExports.jsx(Lottie,{style:{width:t,height:n,...o},play:!0,animationData:a,loop:i,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};var browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(e,t){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==commonjsGlobal$1&&commonjsGlobal$1||{},o="URLSearchParams"in t,i="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in t,s="ArrayBuffer"in t;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function x(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=h(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(r)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,o,i,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=g(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=o?o[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=p(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},i&&(m.prototype[Symbol.iterator]=m.prototype.entries);var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,n){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,i,r=(n=n||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new m(n.headers)),this.method=(o=n.method||this.method||"GET",i=o.toUpperCase(),S.indexOf(i)>-1?i:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+/* @__PURE__ */(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+/* @__PURE__ */(new Date).getTime()}}function $(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},y.call(C.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(w){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(n,o){return new Promise(function(i,a){var l=new C(n,o);if(l.signal&&l.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,n={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),o=n.shift().trim();if(o){var i=n.join(":").trim();try{t.append(o,i)}catch(r){console.warn("Response "+r.message)}}}),t)};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout(function(){i(new b(o,n))},0)},c.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},c.open(l.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(n){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(r?c.responseType="blob":s&&(c.responseType="arraybuffer")),o&&"object"==typeof o.headers&&!(o.headers instanceof m||t.Headers&&o.headers instanceof t.Headers)){var h=[];Object.getOwnPropertyNames(o.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,p(o.headers[e]))}),l.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else l.headers.forEach(function(e,t){c.setRequestHeader(t,e)});l.signal&&(l.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",u)}),c.send(void 0===l._bodyInit?null:l._bodyInit)})}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=m,t.Request=C,t.Response=b),e.Headers=m,e.Request=C,e.Response=b,e.fetch=E,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=o.fetch?o:i;(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}var browserPonyfillExports=requireBrowserPonyfill();const fetch$1=/* @__PURE__ */getDefaultExportFromCjs(browserPonyfillExports),SvgNewVendor=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),/* @__PURE__ */React.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));__webpack_exports__GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${__webpack_exports__version}/pdf.worker.mjs`;const{common:common$3d}=appLocale.getLocalizedStrings(),FileInputElementName$1="invoice",getEffectiveCitationVariant=(e,t,n)=>{if("deleted"===e.variant)return"deleted";if("excluded"===e.variant)return"excluded";return null!=t&&e.statementTransactionId===t||null!=n&&e.statementTransactionId===n?"hovered":e.variant??"default"},findCitationTransactionIdAtPoint=(e,t,n)=>{const o=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const i of o){if("excluded"===i.dataset.citationVariant)continue;const e=i.getBoundingClientRect();if(t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom)return i.dataset.statementTransactionId}},getScrollTargetPageNumber=(e,t)=>{if(null==t)return;const n=e.find(e=>e.statementTransactionId===t);return n?.page},isElementVisibleInContainer=(e,t)=>{const n=e.getBoundingClientRect(),o=null!=t?t.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return n.bottom>o.top&&n.top<o.bottom&&n.right>o.left&&n.left<o.right},getScrollableParent=e=>{let t=e.parentElement;for(;null!=t;){const{overflowY:e}=window.getComputedStyle(t);if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return null},scrollPageElementIntoView=(e,t,n="smooth")=>{const o=t??getScrollableParent(e);if(null==o)return void e.scrollIntoView({behavior:n,block:"center"});const i=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=o.scrollTop+(i.top-r.top)-(o.clientHeight-i.height)/2;o.scrollTo({top:Math.max(0,a),behavior:n})};function getPolygonBounds(e){const t=e.map(e=>e.x),n=e.map(e=>e.y);return{maxX:Math.max(...t),maxY:Math.max(...n),minX:Math.min(...t),minY:Math.min(...n)}}function convertPolygonToPercent(e,t,n){const{minX:o,maxX:i,minY:r,maxY:a}=getPolygonBounds(e);return{height:(a-r)/n*100,left:o/t*100,top:r/n*100,width:(i-o)/t*100}}function RenderPdf(e){const[t,n]=useState(0),[o,i]=useState(void 0),[r,a]=useState(null),[s,l]=useState(void 0),c=useWindowSizeContext(),d=useRef(null),p=useRef(null),u=useRef(void 0),m=null!=e.highlightedCitations&&e.highlightedCitations.length>0;useLayoutEffect(()=>{if(e.isFullScreen)return void i(void 0);const t=p.current;if(null==t)return;const n=()=>{const e=Math.floor(t.clientWidth);e>0&&i(t=>t===e?t:e)};n();const o=new ResizeObserver(n);return o.observe(t),()=>{o.disconnect()}},[e.isFullScreen,e.fileUrl]);const h=t=>{u.current!==t&&(u.current=t,l(t),e.onCitationHover?.(t))},g=e=>{!0===m&&h(findCitationTransactionIdAtPoint(e.currentTarget,e.clientX,e.clientY))},x=()=>{!0===m&&h(void 0)},f=t=>{null!=e.onCitationClick&&e.onCitationClick(findCitationTransactionIdAtPoint(t.currentTarget,t.clientX,t.clientY))},y=useCallback(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length)return;const t=getScrollTargetPageNumber(e.highlightedCitations,e.selectedStatementTransactionId);if(null==t)return;const n=p.current?.querySelector(`[data-testid="pdf-page-${t}"]`);if(null!=n){const t=p.current,o=null!=t&&t.scrollHeight>t.clientHeight?t:null,i=(null!=e.selectedStatementTransactionId?n.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??n;if(isElementVisibleInContainer(i,o))return;scrollPageElementIntoView(i,o)}},[e.highlightedCitations,e.selectedStatementTransactionId]);useEffect(()=>{if(null==e.highlightedCitations||0===e.highlightedCitations.length||null==e.selectedStatementTransactionId)return;y();const t=requestAnimationFrame(y),n=window.setTimeout(y,150);return()=>{cancelAnimationFrame(t),window.clearTimeout(n)}},[e.highlightedCitations,e.selectedStatementTransactionId,t,y]),useEffect(()=>{a(null),n(0)},[e.fileUrl]);const S=t=>{if(!e.highlightedCitations)return null;const n=e.highlightedCitations.filter(e=>e.page===t);return 0===n.length?null:/* @__PURE__ */jsxRuntimeExports.jsx(HighlightsOverlay,{children:n.flatMap((t,n)=>{const o=convertPolygonToPercent(t.polygon,t.pageWidth,t.pageHeight),i=getEffectiveCitationVariant(t,e.selectedStatementTransactionId,s);/* @__PURE__ */
|
|
11886
11886
|
return jsxRuntimeExports.jsx(HighlightBox,{"data-citation-variant":i,"data-statement-transaction-id":t.statementTransactionId,$variant:i,style:{height:`${o.height}%`,left:`${o.left}%`,top:`${o.top}%`,width:`${o.width}%`}},`${n}`)})})},C=()=>{e.setShowFullScreenView(!0)};/* @__PURE__ */
|
|
11887
11887
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[
|
|
11888
11888
|
/* @__PURE__ */jsxRuntimeExports.jsx(FileInputElement,{fileRef:d,name:FileInputElementName$1,onFileChange:t=>{if(null!=t.target.files){const n=t.target.files[0];e.onUploadAttachment?.([n],[n.name])}},multiple:e.allowMultiFiles,sizeLimit:SizeLimit32MB,onFileSizeError:t=>e.openSizeLimitPopup?.(t)}),
|
|
@@ -15363,7 +15363,7 @@ return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:/* @__PURE__ *
|
|
|
15363
15363
|
`,AddText$9=styled$2(StandardSemiBold)`
|
|
15364
15364
|
color: ${e=>!0===e.isDisabled?e.theme.colors.grey3:"inherit"};
|
|
15365
15365
|
`,vendorDetailsSectionId$2="vendorDetails",CreateOrEditVendorPageForm=forwardRef(({id:e,allAccounts:t,allClasses:n,vendorTypeList:o,allOwners:i,screenType:r,selectedVendor:a,formLocalData:s,isBankAccountChanged:l,isPaymentInstrumentChanged:c,isContactListChanged:d,vendorSearchAutoCompleteData:p,vendorSearchAutoCompleteActions:u,analytics:m,pageBackBtnClicked:h,page:g="createEditVendorPage",hasInternationalWireTransfer:x,isAccountingClassesEnabled:f,isLocalCurrencyEnabled:y,readOnlyMode:S,filesEndPoint:C,authParams:$,deleteFileStatusById:b,updateFileStatusById:v,accountsHierarchyList:E,classHierarchyList:w,onBackClick:R,onVendorSelected:A,toggleConfirmationPopup:j,onSaveVendor:T,saveContactsInVendorDetailLocalData:I,updateSelectedVendorForCreate:k,saveVendorDetailLocalData:L,updateFilesEntity:D,onEditFileName:_,onFetchAndUpdateVendorRecommendations:P},B)=>{const{supportedCountries:M}=a,O=useForm({mode:"all",reValidateMode:"onChange",defaultValues:getDefaultValues$Y(E,w,o,M,y,s,p?.entityAutoCompleteView,i,a),values:getDefaultValues$Y(E,w,o,M,y,s,p?.entityAutoCompleteView,i,a)}),[F,N]=useState(-1),z=usePrevious$1(h),H=O.getValues(),{isValid:V}=O.formState,W=useRef(),U=null!=s&&s.contacts.length>0?s.contacts:vendorContactInfosAdded;useEffect(()=>{"Completed"===p?.entityAutoCompleteView.fetchState&&W.current?.(getVendorOptions$2(p?.entityAutoCompleteView))},[p?.entityAutoCompleteView.fetchState]);const[G,q]=useState(getVendorContactInfoWithType(U)),Q={defaultOptions:getDefaultVendorOptions$3(s?.vendorId,s?.vendorName,p?.entityAutoCompleteView),selectedOption:s?.vendorId??s?.vendorName??""},Y=useCallback((e,t)=>{const n="create"===r?e[vendorDetailsSectionId$2].vendor.selectedOption??s?.vendorId:a.vendorBasic?.id,o=prepareVendorDetailLocalData$3(e,!0===("edit"===r||null!=p?.entityAutoCompleteView.vendor.find(e=>e.zeniId===n))?n:void 0,s,t,r);L?.(o)},[r,a.vendorBasic?.id,p?.entityAutoCompleteView.vendor,s,L]),K=async(e,t)=>{if(e.includes("fullName")||e.includes("email")||e.includes("phone")||"create"!==r&&e.includes("vendorName"))return;const n=(e=>!("create"===r&&(e.includes("vendorName")||"vendorDetails.vendor"===e)))(e),o=t;if(e.includes("isRecommendedCategorySelected")){const e=!0===t[vendorDetailsSectionId$2].isRecommendedCategorySelected?a.vendorDetailLocalData?.recommendedCategory?.accountId:a?.vendorBasic?.account?.accountId;o[vendorDetailsSectionId$2].vendorCategory={selectedOption:e,allOptions:t[vendorDetailsSectionId$2].vendorCategory.allOptions},o[vendorDetailsSectionId$2].isCategoryRecommendationPrefilled=!1}if(e.includes("isRecommendedClassSelected")){const e=!0===t[vendorDetailsSectionId$2].isRecommendedClassSelected?a.vendorDetailLocalData?.recommendedClass?.classId:a?.vendorBasic?.class?.classId;o[vendorDetailsSectionId$2].vendorClass={selectedOption:e,allOptions:t[vendorDetailsSectionId$2].vendorClass.allOptions},o[vendorDetailsSectionId$2].isClassRecommendationPrefilled=!1}if(e.includes("vendorCategory")){const e=o[vendorDetailsSectionId$2].vendorCategory.selectedOption===o[vendorDetailsSectionId$2].recommendedCategory?.accountId;o[vendorDetailsSectionId$2].isRecommendedCategorySelected=e,o[vendorDetailsSectionId$2].isCategoryRecommendationPrefilled=!1,null==o[vendorDetailsSectionId$2].recommendedCategory&&(o[vendorDetailsSectionId$2].recommendedCategory=s?.recommendations?.[0]?.account),o[vendorDetailsSectionId$2].vendorCategory.selectedOption!==o[vendorDetailsSectionId$2].recommendedCategory?.qboId&&o[vendorDetailsSectionId$2].vendorCategory.selectedOption!==o[vendorDetailsSectionId$2].recommendedCategory?.accountId?o[vendorDetailsSectionId$2].isRecommendedCategorySelected=!1:o[vendorDetailsSectionId$2].vendorCategory.selectedOption!==o[vendorDetailsSectionId$2].recommendedCategory?.qboId&&o[vendorDetailsSectionId$2].vendorCategory.selectedOption!==o[vendorDetailsSectionId$2].recommendedCategory?.accountId||(o[vendorDetailsSectionId$2].isRecommendedCategorySelected=!0)}if(e.includes("vendorClass")){const e=o[vendorDetailsSectionId$2].vendorClass.selectedOption===o[vendorDetailsSectionId$2].recommendedClass?.classId;o[vendorDetailsSectionId$2].isRecommendedClassSelected=e,o[vendorDetailsSectionId$2].isClassRecommendationPrefilled=!1,null==o[vendorDetailsSectionId$2].recommendedClass&&(o[vendorDetailsSectionId$2].recommendedClass=s?.recommendations?.[0]?.class),o[vendorDetailsSectionId$2].vendorClass.selectedOption!==o[vendorDetailsSectionId$2].recommendedClass?.classId?o[vendorDetailsSectionId$2].isRecommendedClassSelected=!1:o[vendorDetailsSectionId$2].vendorClass.selectedOption===o[vendorDetailsSectionId$2].recommendedClass?.classId&&(o[vendorDetailsSectionId$2].isRecommendedClassSelected=!0)}if("vendorDetails.vendorType"===e&&O.setValue("vendorDetails.isVendor1099","c_corporation"===t.vendorDetails.vendorType.selectedOption||"s_corporation"===t.vendorDetails.vendorType.selectedOption||"international_business"===t.vendorDetails.vendorType.selectedOption||"international_individual"===t.vendorDetails.vendorType.selectedOption?"no":"yes"),"create"===r&&"vendorDetails.vendor"===e){const e=t[vendorDetailsSectionId$2].vendor.selectedOption,n=p?.entityAutoCompleteView.vendor.find(t=>t.zeniId===e);(e=>{const t=e[vendorDetailsSectionId$2].vendor.selectedOption,n=null!=p?.entityAutoCompleteView.vendor.find(e=>e.id===t);null==t||!0!==n?Y(e,!0):k?.(t)})(t),s?.vendorId!==e&&null!=n&&A?.(e)}else n&&Y(t)},Z=useCallback(()=>!0===l||!0===c||!0===d||H[vendorDetailsSectionId$2].vendorName?.length>0||""!==H[vendorDetailsSectionId$2].vendorCategory.selectedOption||""!==H[vendorDetailsSectionId$2].vendorClass.selectedOption||null!=H[vendorDetailsSectionId$2].vendorType.selectedOption||null!=H[vendorDetailsSectionId$2].isVendor1099,[H,l,c,d]),X=useCallback(()=>{const e=H[vendorDetailsSectionId$2].vendorType?.selectedOption;return!0===l||!0===c||!0===d||H[vendorDetailsSectionId$2].vendorName!==a.vendorBasic?.name||H[vendorDetailsSectionId$2].vendorCategory.selectedOption!==a.vendorBasic?.account?.accountId||H[vendorDetailsSectionId$2].vendorClass.selectedOption!==a.vendorBasic?.class?.classId||e!==(a.vendorBasic?.vendorType??void 0)||H[vendorDetailsSectionId$2].isVendor1099!==(a.vendorBasic?.isVendor1099??"")},[H,l,c,d,a]);useEffect(()=>{const e=O.watch((e,{name:t})=>{null!=t&&null!=e&&defer(()=>K(t,e))});return()=>{e.unsubscribe()}}),useEffect(()=>{"createEditVendorPage"===g&&O.reset(getDefaultValues$Y(E,w,o,M,y,s,p?.entityAutoCompleteView,i),{keepDefaultValues:!0})},[s?.vendorId]);const J=useCallback(()=>{const e=O.getValues();Y(e)},[O,Y]);return useImperativeHandle(B,()=>({syncFormData:J}),[J]),useEffect(()=>{if(z!==h&&!0===h){const{isDirty:e}=O.formState;let t=!1;t="create"===r?Z():e||X(),t?j?.(!0):R?.()}},[O.formState,Z,X,R,h,z,r,j]),/* @__PURE__ */jsxRuntimeExports.jsx(FormProvider,{...O,children:/* @__PURE__ */jsxRuntimeExports.jsxs("form",{id:e,onSubmit:e=>{e.preventDefault(),(()=>{let e=!0;return null!=H.vendorDetails.vendorCountry.selectedOption&&"USA"!==H.vendorDetails.vendorCountry.selectedOption&&!1===Boolean(H.vendorDetails.vendorType.selectedOption)&&(O.setError("vendorDetails.vendorType",{type:"required"}),e=!1),"create"===r&&null==H.vendorDetails.vendor.selectedOption&&(O.setError("vendorDetails.vendor",{type:"required"}),e=!1),"edit"===r&&""===H.vendorDetails.vendorName&&(O.setError("vendorDetails.vendorName",{type:"required"}),e=!1),"createEditVendorPage"===g&&H.vendorContactInfo.forEach((t,n)=>{""!==t.email&&EMAIL_PATTERN.test(t.email)||(O.setError(`vendorContactInfo.${n}.email`,{type:"required"}),e=!1)}),e})()&&V&&(Y(H),"createEditVendorPage"===g&&(()=>{const e=H[vendorDetailsSectionId$2].vendorType.selectedOption,o=t.find(e=>e.accountId===H[vendorDetailsSectionId$2].vendorCategory.selectedOption),i=n.find(e=>e.classId===H[vendorDetailsSectionId$2].vendorClass.selectedOption),r=H[vendorDetailsSectionId$2].vendorName,a=H[vendorContactInfoSectionId][0];null==r||null==e||null==o||f&&null==i||null==a.email||m?.trackBillPayNewVendor(r,o.accountName,i?.className??"",e,a.email,a.fullName,a.phone)})(),null!=s?.fileIdsToBeDeleted&&s?.fileIdsToBeDeleted?.length>0?T?.(s?.fileIdsToBeDeleted):T?.())},children:[
|
|
15366
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(VendorDetailsSection$2,{sectionId:vendorDetailsSectionId$2,selectedVendorId:s?.vendorId,selectedVendorDetails:a,currentVendorOption:Q,hasInternationalWireTransfer:x,selectedAccountId:s?.vendorCategory,selectedClassId:s?.vendorClass,selectedOwnerId:s?.vendorOwner,recommendations:s?.recommendations,allAccounts:t??[],allClasses:n??[],vendorTypeList:o,screenType:r,vendorSearchAutoComplete:{vendorSearchAutoCompleteData:p,loadOptions:(e,t)=>{u?.onAutoCompleteInputChange?.(e,"vendor"),W.current=t}},selectedType:s?.vendorType,selectedVendorName:s?.vendorName,page:g,allOwners:i,readOnlyMode:S,accountsHierarchyList:E,classHierarchyList:w,isAccountingClassesEnabled:f,isLocalCurrencyEnabled:y,onFetchAndUpdateVendorRecommendations:P}),"createEditVendorPage"===g?/* @__PURE__ */jsxRuntimeExports.jsx(AllVendorContactInfoSection,{emailRequired:!0,vendorContactInfos:vendorContactInfosAdded,sectionId:vendorContactInfoSectionId,vendorContactInfoWithType:G,setVendorContactInfoWithType:(e=>{q(e),I?.(e)})??noop$
|
|
15366
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(VendorDetailsSection$2,{sectionId:vendorDetailsSectionId$2,selectedVendorId:s?.vendorId,selectedVendorDetails:a,currentVendorOption:Q,hasInternationalWireTransfer:x,selectedAccountId:s?.vendorCategory,selectedClassId:s?.vendorClass,selectedOwnerId:s?.vendorOwner,recommendations:s?.recommendations,allAccounts:t??[],allClasses:n??[],vendorTypeList:o,screenType:r,vendorSearchAutoComplete:{vendorSearchAutoCompleteData:p,loadOptions:(e,t)=>{u?.onAutoCompleteInputChange?.(e,"vendor"),W.current=t}},selectedType:s?.vendorType,selectedVendorName:s?.vendorName,page:g,allOwners:i,readOnlyMode:S,accountsHierarchyList:E,classHierarchyList:w,isAccountingClassesEnabled:f,isLocalCurrencyEnabled:y,onFetchAndUpdateVendorRecommendations:P}),"createEditVendorPage"===g?/* @__PURE__ */jsxRuntimeExports.jsx(AllVendorContactInfoSection,{emailRequired:!0,vendorContactInfos:vendorContactInfosAdded,sectionId:vendorContactInfoSectionId,vendorContactInfoWithType:G,setVendorContactInfoWithType:(e=>{q(e),I?.(e)})??noop$9,deleteContactConfirmationIndex:F,updateContactDeleteConfirmationIndex:N}):null,"createEditVendorPage"===g?/* @__PURE__ */jsxRuntimeExports.jsx(AllVendorDocumentsSection,{vendorData:a,authParams:$,filesEndPoint:C,deleteFileStatusById:b,updateFileStatusById:v,sectionId:vendorDocumentsSectionId,updateFilesEntity:D,onEditFileName:_}):null]})})});CreateOrEditVendorPageForm.displayName="CreateOrEditVendorPageForm";const getDefaultValues$Y=(e,t,n,o,i,r,a,s,l)=>({[vendorDetailsSectionId$2]:{vendorName:r?.vendorName??"",vendorOwner:{allOptions:getFormattedOwnersList(s),selectedOption:r?.vendorOwner},vendor:{defaultOptions:getDefaultVendorOptions$3(r?.vendorId,r?.vendorName,a),selectedOption:r?.vendorId??r?.vendorName??""},vendorCategory:{allOptions:getGroupedCategories(e,r?.recommendations),selectedOption:r?.vendorCategory},vendorClass:{allOptions:getGroupedClasses(t,r?.recommendations),selectedOption:r?.vendorClass},vendorType:{allOptions:n.map(e=>e.code??""),selectedOption:r?.vendorType},isVendor1099:null!=r?.isVendor1099?!0===r?.isVendor1099?"yes":"no":"",vendorCountry:getCountryOptions(r?.countryCode,o.map(e=>e.countryCode)),vendorCurrency:i?null!=r?.currencyCode?{currencyCode:r.currencyCode,currencySymbol:r.currencySymbol??""}:void 0:{currencyCode:r?.currencyCode??defaultVendorCurrency.currencyCode,currencySymbol:r?.currencySymbol??defaultVendorCurrency.currencySymbol},recommendedCategory:r?.recommendedCategory,recommendedClass:r?.recommendedClass,isRecommendedCategorySelected:r?.isCategoryUpdateSelected??!1,isRecommendedClassSelected:r?.isClassUpdateSelected??!1,isCategoryRecommendationPrefilled:r?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:r?.isClassRecommendationPrefilled??!0},[vendorDocumentsSectionId]:{fileIds:r?.documentIds??[],fileIdsToBeDeleted:r?.fileIdsToBeDeleted??[],documents:l?.vendorBasic?.vendorDocuments?.map(e=>({fileId:e.fileId,front:e,selectDocumentType:toSelectDocumentType(e.documentType)}))},[vendorContactInfoSectionId]:null!=r&&0!==r?.contacts.length?r.contacts:[{fullName:"",email:"",phone:""}]});function prepareVendorDetailLocalData$3(e,t,n,o,i){const r=e?.[vendorDetailsSectionId$2],a=e[vendorDetailsSectionId$2].vendor.defaultOptions.find(t=>t.value===e[vendorDetailsSectionId$2].vendor.selectedOption);return{vendorCategory:!0===o?void 0:r.vendorCategory.selectedOption,vendorClass:!0===o?void 0:r.vendorClass.selectedOption,vendorType:!0===o?void 0:r.vendorType.selectedOption,vendorId:t,recommendations:null==t&&null==r.vendorName||!0===o?void 0:n?.recommendations,vendorName:"create"===i?a?.label??n?.vendorName:r.vendorName,contacts:!0===o?[]:e[vendorContactInfoSectionId],bankAccountIds:!0===o?[]:n?.bankAccountIds??[],paymentInstrumentIds:!0===o?[]:n?.paymentInstrumentIds??[],vendorOwner:!0===o?void 0:r.vendorOwner.selectedOption,isVendor1099:"yes"===e[vendorDetailsSectionId$2].isVendor1099,documentIds:e[vendorDocumentsSectionId].fileIds,fileIdsToBeDeleted:e[vendorDocumentsSectionId].fileIdsToBeDeleted??[],countryCode:null!=r.vendorCountry.selectedOption?getAlpha2(r.vendorCountry.selectedOption):void 0,currencyCode:!0===o?void 0:r.vendorCurrency?.currencyCode,currencySymbol:!0===o?void 0:r.vendorCurrency?.currencySymbol,deleteFileStatusById:n?.deleteFileStatusById??{},updateFileStatusById:n?.updateFileStatusById??{},recommendedCategory:r?.recommendedCategory,recommendedClass:r?.recommendedClass,isCategoryUpdateSelected:r.isRecommendedCategorySelected??!1,isClassUpdateSelected:r.isRecommendedClassSelected??!1,isCategoryRecommendationPrefilled:r?.isCategoryRecommendationPrefilled??!0,isClassRecommendationPrefilled:r?.isClassRecommendationPrefilled??!0}}const getVendorOptions$2=(e,t,n)=>{const o=e?.vendor.map(e=>({label:e.name,value:e.zeniId,zeniId:e.zeniId}))??[];return null!=t?o.unshift({label:t.name,value:t.id,zeniId:t.id,isOptionRecommended:!0}):!0===Boolean(n)&&o.unshift({label:n,value:n??"",zeniId:n,isOptionRecommended:!0}),o},getDefaultVendorOptions$3=(e,t,n,o,i)=>{if(null==e&&null==o&&null==i)return[];const r=n?.vendor?.find(t=>t.zeniId===e);let a=[];return null==r&&null==e||(a=[{label:r?.name??t??e??"",value:e??t??"",zeniId:r?.zeniId??e??t,isOptionRecommended:null!=e&&(o?.id===e||t===i)}]),null!=o&&e!==o?.id?a.unshift({label:o.name,value:o.id,zeniId:o.id,isOptionRecommended:!0}):!0!==Boolean(i)||t===i||null!=o&&e===o?.id||a.unshift({label:i,value:i??"",zeniId:i,isOptionRecommended:!0}),a};var isMatchWith_1,hasRequiredIsMatchWith;function requireIsMatchWith(){if(hasRequiredIsMatchWith)return isMatchWith_1;hasRequiredIsMatchWith=1;var e=require_baseIsMatch(),t=require_getMatchData();return isMatchWith_1=function(n,o,i){return i="function"==typeof i?i:void 0,e(n,o,t(o),i)}}var isMatchWithExports=requireIsMatchWith();const isMatchWith=/* @__PURE__ */getDefaultExportFromCjs(isMatchWithExports),getCustomerOptions=e=>e?.customer.map(e=>({label:e.name,value:e.id}))??[],getDefaultCustomerOptions=(e,t)=>{if(null==e||!1===Boolean(e.id))return[];const n=t?.customer?.find(t=>t.id===e.id),o=null==n?e:n;return[{label:o?.name??"",value:o?.id??""}]},getCustomerDataFromAutoComplete=(e,t,n,o)=>{let i=e?.customer;return t.lineIndex===n&&(i=o?.customer.find(e=>e.id===t.customer?.selectedOption)),i},checkIfBillDetailsChanged=e=>{const t=e.editBillInitialDetails;if(null==t)return!1;const{lineDetailSection:n,paymentDetailsSection:o,whatForSection:i}=e,{lineDetailSection:r,paymentDetailsSection:a,whatForSection:s}=t,l=e=>({accountQboid:e.account?.qboId,classQboid:e.class?.qboId,customerQboid:e.customer?.qboId,billable:e.billable,description:e.lineDescription,amount:e.amount,recipientAmount:e.recipientAmount}),c=Object.values(r).map(l),d=Object.values(n).map(l);if(c.length!==d.length)return!0;let p=!1;if(c.forEach((e,t)=>{isMatchWith(e,d[t],(e,t)=>!(!isNil$1(e)&&!isNil$1(t))||void 0)||(p=!0)}),p)return!0;if(null!=a&&null!=o){const{paymentType:t,withdrawFrom:n,paymentTo:i}=a,{paymentType:r,withdrawFrom:s,paymentTo:l}=o;if(t?.method!==r?.method)return!0;if(n?.id!==s?.id)return!0;if(null!=i&&null!=l&&i.id!==l.id)return!0;if(null==i&&null!=l&&null!=l.id&&!e.isCollectToAccountInfoFromVendorContact)return!0}if(null!=s){const{memo:e}=s,{memo:t}=i;if(e!==t)return!0}return!1},whosItForSectionId="whosItFor",uniqueBillPayTabKey=(e,t)=>null!=t?`${t}.${e}`:`${e}`,SvgComment=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("path",{d:"M4.9956 13.1944C6.25594 13.9238 7.73853 14.17 9.16697 13.887C10.5954 13.6041 11.8722 12.8113 12.7593 11.6565C13.6464 10.5017 14.0832 9.06364 13.9883 7.61054C13.8935 6.15744 13.2734 4.78843 12.2437 3.75874C11.214 2.72905 9.84503 2.10898 8.39193 2.01412C6.93882 1.91927 5.50082 2.3561 4.34601 3.24319C3.1912 4.13027 2.39841 5.40706 2.11545 6.8355C1.83249 8.26394 2.07868 9.74653 2.80811 11.0069L2.02623 13.3412C1.99685 13.4293 1.99259 13.5239 2.01392 13.6143C2.03525 13.7046 2.08133 13.7873 2.147 13.853C2.21266 13.9186 2.29532 13.9647 2.38571 13.9861C2.47609 14.0074 2.57063 14.0031 2.65873 13.9737L4.9956 13.1944Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),StyledRecurringIcon$4=styled$2(SvgRecurringCycle)`
|
|
15367
15367
|
margin-left: ${Space.sp2};
|
|
15368
15368
|
color: ${e=>e.theme.colors.hero};
|
|
15369
15369
|
width: ${Space.sp3};
|
|
@@ -16043,7 +16043,7 @@ return jsxRuntimeExports.jsxs(DetailsContainer$3,{children:[
|
|
|
16043
16043
|
transform: translateY(-50%) rotate(45deg);
|
|
16044
16044
|
}
|
|
16045
16045
|
`;function getTypeByValue(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return null===e?"null":e.constructor.name;default:return t}}function requiredInteger(e,t,n,o){const i=e[t];if(null==i||!Number.isInteger(i)){const e=getTypeByValue(i);return new RangeError(`Invalid ${o} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function validator(e,t,n,o){return void 0===e[t]?null:requiredInteger(e,t,n,o)}function validatorNoop(){return null}validator.isRequired=requiredInteger,validatorNoop.isRequired=validatorNoop;const integerPropType="production"===process.env.NODE_ENV?validatorNoop:validator,hiddenStyles={visibility:"hidden"};function getTranslateValue(e,t,n){const o=n&&n.getBoundingClientRect(),i=ownerWindow(t),r=t.style.transform,a=t.style.transition;t.style.transition="",t.style.transform="";const s=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform");t.style.transform=r,t.style.transition=a;let c=0,d=0;if(l&&"none"!==l&&"string"==typeof l){const e=l.split("(")[1].split(")")[0].split(",");c=parseInt(e[4],10),d=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+c-s.left}px)`:`translateX(${i.innerWidth+c-s.left}px)`:"right"===e?o?`translateX(-${s.right-o.left-c}px)`:`translateX(-${s.left+s.width-c}px)`:"up"===e?o?`translateY(${o.bottom+d-s.top}px)`:`translateY(${i.innerHeight+d-s.top}px)`:o?`translateY(-${s.top-o.top+s.height-d}px)`:`translateY(-${s.top+s.height-d}px)`}function resolveContainer(e){return"function"==typeof e?e():e}function setTranslateValue(e,t,n){const o=getTranslateValue(e,t,resolveContainer(n));o&&(t.style.transform=o)}const Slide=/* @__PURE__ */React.forwardRef(function(e,t){const n=useTheme(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:a=!0,children:s,container:l,direction:c="down",easing:d=o,in:p,onEnter:u,onEntered:m,onEntering:h,onExit:g,onExited:x,onExiting:f,style:y,timeout:S=i,...C}=e,$=React.useRef(null),b=useForkRef(getReactElementRef(s),$,t),v=normalizedTransitionCallback($,(e,t)=>{setTranslateValue(c,e,l),reflow(e),u&&u(e,t)}),E=normalizedTransitionCallback($,(e,t)=>{const o=getTransitionProps({timeout:S,style:y,easing:d},{mode:"enter"});e.style.transition=n.transitions.create("transform",o),e.style.transform="none",h&&h(e,t)}),w=normalizedTransitionCallback($,m),R=normalizedTransitionCallback($,f),A=normalizedTransitionCallback($,e=>{const t=getTransitionProps({timeout:S,style:y,easing:d},{mode:"exit"});e.style.transition=n.transitions.create("transform",t),setTranslateValue(c,e,l),g&&g(e)}),j=normalizedTransitionCallback($,e=>{e.style.transition="",x&&x(e)}),T=React.useCallback(()=>{$.current&&setTranslateValue(c,$.current,l)},[c,l]);return React.useEffect(()=>{if(p||"down"===c||"right"===c)return;const e=debounce$1(()=>{$.current&&setTranslateValue(c,$.current,l)}),t=ownerWindow($.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,p,l]),React.useEffect(()=>{p||T()},[p,T]),/* @__PURE__ */jsxRuntimeExports.jsx(Transition,{nodeRef:$,onEnter:v,onEntered:w,onEntering:E,onExit:A,onExited:j,onExiting:R,addEndListener:e=>{r&&r($.current,e)},appear:a,in:p,timeout:S,...C,children:(e,{ownerState:t,...n})=>{let o;return o="exited"!==e||p?y&&s.props.style?{...y,...s.props.style}:y||s.props.style:y||s.props.style?{visibility:"hidden",...y,...s.props.style}:hiddenStyles,/* @__PURE__ */React.cloneElement(s,{ref:b,style:o,...n})}})});function getPaperUtilityClass(e){return generateUtilityClass("MuiPaper",e)}"production"!==process.env.NODE_ENV&&(Slide.propTypes={addEndListener:PropTypes.func,appear:PropTypes.bool,children:elementAcceptingRef.isRequired,container:chainPropTypes(PropTypes.oneOfType([HTMLElementType,PropTypes.func]),e=>{if(e.open){const t=resolveContainer(e.container);if(t&&1===t.nodeType){const e=t.getBoundingClientRect();if("production"!==process.env.NODE_ENV&&isLayoutSupported()&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||null!=t.contextElement&&1!==t.contextElement.nodeType)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join("\n"))}return null}),direction:PropTypes.oneOf(["down","left","right","up"]),easing:PropTypes.oneOfType([PropTypes.shape({enter:PropTypes.string,exit:PropTypes.string}),PropTypes.string]),in:PropTypes.bool,onEnter:PropTypes.func,onEntered:PropTypes.func,onEntering:PropTypes.func,onExit:PropTypes.func,onExited:PropTypes.func,onExiting:PropTypes.func,style:PropTypes.object,timeout:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})])}),generateUtilityClasses("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const useUtilityClasses$k=e=>{const{square:t,elevation:n,variant:o,classes:i}=e;return composeClasses({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${n}`]},getPaperUtilityClass,i)},PaperRoot=styled("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(memoTheme(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Paper=/* @__PURE__ */React.forwardRef(function(e,t){const n=useDefaultProps({props:e,name:"MuiPaper"}),o=useTheme(),{className:i,component:r="div",elevation:a=1,square:s=!1,variant:l="elevation",...c}=n,d={...n,component:r,elevation:a,square:s,variant:l},p=useUtilityClasses$k(d);return"production"!==process.env.NODE_ENV&&void 0===o.shadows[a]&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join("\n")),/* @__PURE__ */jsxRuntimeExports.jsx(PaperRoot,{as:r,ownerState:d,className:clsx$1(p.root,i),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&"dark"===o.palette.mode&&{"--Paper-overlay":`linear-gradient(${alpha$1("#fff",getOverlayAlpha(a))}, ${alpha$1("#fff",getOverlayAlpha(a))})`}},...c.style}})});function getDrawerUtilityClass(e){return generateUtilityClass("MuiDrawer",e)}"production"!==process.env.NODE_ENV&&(Paper.propTypes={children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,component:PropTypes.elementType,elevation:chainPropTypes(integerPropType,e=>{const{elevation:t,variant:n}=e;return t>0&&"outlined"===n?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:PropTypes.bool,style:PropTypes.object,sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),variant:PropTypes.oneOfType([PropTypes.oneOf(["elevation","outlined"]),PropTypes.string])}),generateUtilityClasses("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const overridesResolver=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,"temporary"===n.variant&&t.modal]},useUtilityClasses$j=e=>{const{classes:t,anchor:n,variant:o}=e;return composeClasses({root:["root",`anchor${capitalize(n)}`],docked:[("permanent"===o||"persistent"===o)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${capitalize(n)}`,"temporary"!==o&&`paperAnchorDocked${capitalize(n)}`]},getDrawerUtilityClass,t)},DrawerRoot=styled(Modal$1,{name:"MuiDrawer",slot:"Root",overridesResolver:overridesResolver})(memoTheme(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),DrawerDockedRoot=styled("div",{shouldForwardProp:rootShouldForwardProp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:overridesResolver})({flex:"0 0 auto"}),DrawerPaper=styled(Paper,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${capitalize(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${capitalize(n.anchor)}`]]}})(memoTheme(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),oppositeDirection={left:"right",right:"left",top:"down",bottom:"up"};function isHorizontal(e){return["left","right"].includes(e)}function getAnchor({direction:e},t){return"rtl"===e&&isHorizontal(t)?oppositeDirection[t]:t}const Drawer=/* @__PURE__ */React.forwardRef(function(e,t){const n=useDefaultProps({props:e,name:"MuiDrawer"}),o=useTheme(),i=useRtl(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:c,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:u,...m}={},onClose:h,open:g=!1,PaperProps:x={},SlideProps:f,TransitionComponent:y,transitionDuration:S=r,variant:C="temporary",slots:$={},slotProps:b={},...v}=n,E=React.useRef(!1),w=React.useRef(null),R=useForkRef(t,w);React.useEffect(()=>{E.current=!0},[]);const A=React.useCallback(()=>w.current,[]),j=getAnchor({direction:i?"rtl":"ltr"},a),T=a,I={...n,anchor:T,elevation:d,open:g,variant:C,...v},k=useUtilityClasses$j(I),L={slots:{transition:y,...$},slotProps:{paper:x,transition:f,...b,backdrop:mergeSlotProps(b.backdrop||{...s,...u},{transitionDuration:S})}},[D,_]=useSlot("root",{ref:R,elementType:DrawerRoot,className:clsx$1(k.root,k.modal,c),shouldForwardComponentProp:!0,ownerState:I,externalForwardedProps:{...L,...v,...m},additionalProps:{closeAfterTransition:!0,open:g,onClose:h,hideBackdrop:p,slots:{backdrop:L.slots.backdrop},slotProps:{backdrop:L.slotProps.backdrop}}}),[P,B]=useSlot("paper",{elementType:DrawerPaper,shouldForwardComponentProp:!0,className:clsx$1(k.paper,x.className),ownerState:I,externalForwardedProps:L,additionalProps:{elevation:"temporary"===C?d:0,square:!0,..."temporary"===C&&{role:"dialog","aria-modal":"true",[FOCUSABLE_ATTRIBUTE]:"",tabIndex:-1}}}),[M,O]=useSlot("docked",{elementType:DrawerDockedRoot,ref:R,className:clsx$1(k.root,k.docked,c),ownerState:I,externalForwardedProps:L,additionalProps:v}),[F,N]=useSlot("transition",{elementType:Slide,ownerState:I,externalForwardedProps:L,additionalProps:{in:g,direction:oppositeDirection[j],timeout:S,appear:E.current,..."temporary"===C&&(null==$.transition||$.transition===Slide)&&{container:A}}}),z=/* @__PURE__ */jsxRuntimeExports.jsx(P,{...B,children:l});if("permanent"===C)/* @__PURE__ */
|
|
16046
|
-
return jsxRuntimeExports.jsx(M,{...O,children:z});const H=/* @__PURE__ */jsxRuntimeExports.jsx(F,{...N,children:z});return"persistent"===C?/* @__PURE__ */jsxRuntimeExports.jsx(M,{...O,children:H}):/* @__PURE__ */jsxRuntimeExports.jsx(D,{..._,children:H})});function ownKeys$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach(function(t){_defineProperty$1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest$1()}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function _iterableToArrayLimit$1(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}"production"!==process.env.NODE_ENV&&(Drawer.propTypes={anchor:PropTypes.oneOf(["bottom","left","right","top"]),BackdropProps:PropTypes.object,children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,elevation:integerPropType,hideBackdrop:PropTypes.bool,ModalProps:PropTypes.object,onClose:PropTypes.func,open:PropTypes.bool,PaperProps:PropTypes.object,SlideProps:PropTypes.object,slotProps:PropTypes.shape({backdrop:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),docked:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),paper:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),root:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),transition:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),slots:PropTypes.shape({backdrop:PropTypes.elementType,docked:PropTypes.elementType,paper:PropTypes.elementType,root:PropTypes.elementType,transition:PropTypes.elementType}),sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),transitionDuration:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})]),variant:PropTypes.oneOf(["permanent","persistent","temporary"])});var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var useScript_1=createCommonjsModule(function(e,t){var n=commonjsGlobal&&commonjsGlobal.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=void 0,t.scripts={};var o=function(e){var n=document.querySelector('script[src="'+e+'"]');if(n)return t.scripts[e]={loading:!1,error:null,scriptEl:n}};t.default=function(e){var r=e.src,a=e.checkForExisting,s=void 0!==a&&a,l=n(e,["src","checkForExisting"]),c=r?t.scripts[r]:void 0;!c&&s&&r&&i&&(c=o(r));var d=(0,React__default.useState)(c?c.loading:Boolean(r)),p=d[0],u=d[1],m=(0,React__default.useState)(c?c.error:null),h=m[0],g=m[1],x=(0,React__default.useState)(!1),f=x[0],y=x[1];return(0,React__default.useEffect)(function(){if(i&&r&&!f&&!h){var e;!(c=t.scripts[r])&&s&&(c=o(r)),c?e=c.scriptEl:((e=document.createElement("script")).src=r,Object.keys(l).forEach(function(t){void 0===e[t]?e.setAttribute(t,l[t]):e[t]=l[t]}),c=t.scripts[r]={loading:!0,error:null,scriptEl:e});var n=function(){c&&(c.loading=!1),u(!1),y(!0)},a=function(e){c&&(c.error=e),g(e)};return e.addEventListener("load",n),e.addEventListener("error",a),document.body.appendChild(e),function(){e.removeEventListener("load",n),e.removeEventListener("error",a),c&&c.loading&&(e.remove(),delete t.scripts[r])}}},[r]),[p,h]};var i="undefined"!=typeof window&&void 0!==window.document});unwrapExports(useScript_1),useScript_1.scripts;var lib=createCommonjsModule(function(e,t){var n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=t.default=void 0,Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(useScript_1).default}}),Object.defineProperty(t,"scripts",{enumerable:!0,get:function(){return useScript_1.scripts}})}),useScript$1=unwrapExports(lib);lib.scripts;var renameKeyInObject=function(e,t,n){var o={};return delete Object.assign(o,e,_defineProperty$1({},n,e[t]))[t],o},createPlaidHandler=function(e,t){var n={plaid:null,open:!1,onExitCallback:null};if("undefined"==typeof window||!window.Plaid)throw new Error("Plaid not loaded");n.plaid=t(_objectSpread2$1(_objectSpread2$1({},e),{},{onExit:function(t,o){n.open=!1,e.onExit&&e.onExit(t,o),n.onExitCallback&&n.onExitCallback()}}));return{open:function(){n.plaid&&(n.open=!0,n.onExitCallback=null,n.plaid.open())},submit:function(e){n.plaid&&n.plaid.submit(e)},exit:function(e,t){n.open&&n.plaid?(n.onExitCallback=t,n.plaid.exit(e),e&&e.force&&(n.open=!1)):t&&t()},destroy:function(){n.plaid&&(n.plaid.destroy(),n.plaid=null)}}},createPlaid=function(e,t){var n=renameKeyInObject(e,"publicKey","key");return createPlaidHandler(n,t)},PLAID_LINK_STABLE_URL="https://cdn.plaid.com/link/v2/stable/link-initialize.js",noop$
|
|
16046
|
+
return jsxRuntimeExports.jsx(M,{...O,children:z});const H=/* @__PURE__ */jsxRuntimeExports.jsx(F,{...N,children:z});return"persistent"===C?/* @__PURE__ */jsxRuntimeExports.jsx(M,{...O,children:H}):/* @__PURE__ */jsxRuntimeExports.jsx(D,{..._,children:H})});function ownKeys$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread2$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach(function(t){_defineProperty$1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest$1()}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function _iterableToArrayLimit$1(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return r}}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}"production"!==process.env.NODE_ENV&&(Drawer.propTypes={anchor:PropTypes.oneOf(["bottom","left","right","top"]),BackdropProps:PropTypes.object,children:PropTypes.node,classes:PropTypes.object,className:PropTypes.string,elevation:integerPropType,hideBackdrop:PropTypes.bool,ModalProps:PropTypes.object,onClose:PropTypes.func,open:PropTypes.bool,PaperProps:PropTypes.object,SlideProps:PropTypes.object,slotProps:PropTypes.shape({backdrop:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),docked:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),paper:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),root:PropTypes.oneOfType([PropTypes.func,PropTypes.object]),transition:PropTypes.oneOfType([PropTypes.func,PropTypes.object])}),slots:PropTypes.shape({backdrop:PropTypes.elementType,docked:PropTypes.elementType,paper:PropTypes.elementType,root:PropTypes.elementType,transition:PropTypes.elementType}),sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),transitionDuration:PropTypes.oneOfType([PropTypes.number,PropTypes.shape({appear:PropTypes.number,enter:PropTypes.number,exit:PropTypes.number})]),variant:PropTypes.oneOf(["permanent","persistent","temporary"])});var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var useScript_1=createCommonjsModule(function(e,t){var n=commonjsGlobal&&commonjsGlobal.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=void 0,t.scripts={};var o=function(e){var n=document.querySelector('script[src="'+e+'"]');if(n)return t.scripts[e]={loading:!1,error:null,scriptEl:n}};t.default=function(e){var r=e.src,a=e.checkForExisting,s=void 0!==a&&a,l=n(e,["src","checkForExisting"]),c=r?t.scripts[r]:void 0;!c&&s&&r&&i&&(c=o(r));var d=(0,React__default.useState)(c?c.loading:Boolean(r)),p=d[0],u=d[1],m=(0,React__default.useState)(c?c.error:null),h=m[0],g=m[1],x=(0,React__default.useState)(!1),f=x[0],y=x[1];return(0,React__default.useEffect)(function(){if(i&&r&&!f&&!h){var e;!(c=t.scripts[r])&&s&&(c=o(r)),c?e=c.scriptEl:((e=document.createElement("script")).src=r,Object.keys(l).forEach(function(t){void 0===e[t]?e.setAttribute(t,l[t]):e[t]=l[t]}),c=t.scripts[r]={loading:!0,error:null,scriptEl:e});var n=function(){c&&(c.loading=!1),u(!1),y(!0)},a=function(e){c&&(c.error=e),g(e)};return e.addEventListener("load",n),e.addEventListener("error",a),document.body.appendChild(e),function(){e.removeEventListener("load",n),e.removeEventListener("error",a),c&&c.loading&&(e.remove(),delete t.scripts[r])}}},[r]),[p,h]};var i="undefined"!=typeof window&&void 0!==window.document});unwrapExports(useScript_1),useScript_1.scripts;var lib=createCommonjsModule(function(e,t){var n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=t.default=void 0,Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(useScript_1).default}}),Object.defineProperty(t,"scripts",{enumerable:!0,get:function(){return useScript_1.scripts}})}),useScript$1=unwrapExports(lib);lib.scripts;var renameKeyInObject=function(e,t,n){var o={};return delete Object.assign(o,e,_defineProperty$1({},n,e[t]))[t],o},createPlaidHandler=function(e,t){var n={plaid:null,open:!1,onExitCallback:null};if("undefined"==typeof window||!window.Plaid)throw new Error("Plaid not loaded");n.plaid=t(_objectSpread2$1(_objectSpread2$1({},e),{},{onExit:function(t,o){n.open=!1,e.onExit&&e.onExit(t,o),n.onExitCallback&&n.onExitCallback()}}));return{open:function(){n.plaid&&(n.open=!0,n.onExitCallback=null,n.plaid.open())},submit:function(e){n.plaid&&n.plaid.submit(e)},exit:function(e,t){n.open&&n.plaid?(n.onExitCallback=t,n.plaid.exit(e),e&&e.force&&(n.open=!1)):t&&t()},destroy:function(){n.plaid&&(n.plaid.destroy(),n.plaid=null)}}},createPlaid=function(e,t){var n=renameKeyInObject(e,"publicKey","key");return createPlaidHandler(n,t)},PLAID_LINK_STABLE_URL="https://cdn.plaid.com/link/v2/stable/link-initialize.js",noop$4=function(){},usePlaidLink=function(e){var t=_slicedToArray$1(useScript$1({src:PLAID_LINK_STABLE_URL,checkForExisting:!0}),2),n=t[0],o=t[1],i=_slicedToArray$1(useState(null),2),r=i[0],a=i[1],s=_slicedToArray$1(useState(!1),2),l=s[0],c=s[1],d=(e.product||[]).slice().sort().join(",");useEffect(function(){if(!n&&(e.token||e.publicKey||e.receivedRedirectUri)){if(!o&&window.Plaid){null!=r&&r.exit({force:!0},function(){return r.destroy()});var t=createPlaid(_objectSpread2$1(_objectSpread2$1({},e),{},{onLoad:function(){c(!0),e.onLoad&&e.onLoad()}}),window.Plaid.create);return a(t),function(){return t.exit({force:!0},function(){return t.destroy()})}}console.error("Error loading Plaid",o)}},[n,o,e.publicKey,e.token,d]);return{error:o,ready:null!=r&&(!n||l),submit:r?r.submit:noop$4,exit:r?r.exit:noop$4,open:r?r.open:function(){e.token||console.warn("react-plaid-link: You cannot call open() without a valid token supplied to usePlaidLink. This is a no-op.")}}},PlaidLinkStableEvent,PlaidLinkStableEvent2;PlaidLinkStableEvent2=PlaidLinkStableEvent||(PlaidLinkStableEvent={}),PlaidLinkStableEvent2.OPEN="OPEN",PlaidLinkStableEvent2.EXIT="EXIT",PlaidLinkStableEvent2.HANDOFF="HANDOFF",PlaidLinkStableEvent2.SELECT_INSTITUTION="SELECT_INSTITUTION",PlaidLinkStableEvent2.ERROR="ERROR",PlaidLinkStableEvent2.BANK_INCOME_INSIGHTS_COMPLETED="BANK_INCOME_INSIGHTS_COMPLETED",PlaidLinkStableEvent2.IDENTITY_VERIFICATION_PASS_SESSION="IDENTITY_VERIFICATION_PASS_SESSION",PlaidLinkStableEvent2.IDENTITY_VERIFICATION_FAIL_SESSION="IDENTITY_VERIFICATION_FAIL_SESSION";const{common:strings$57}=appLocale.getLocalizedStrings(),D$4u={width:new ResponsiveSized(343,580,756),controlHeight:new ResponsiveSized(sp[5],sp[5]),paddingTopBottom:new ResponsiveSized(sp[2],sp[2]),paddingLeft:new ResponsiveSized(sp[3],sp[4]),paddingRight:new ResponsiveSized(sp[2],sp[3]),labelMarginRight:new ResponsiveSized(sp[3],sp[4])},fontStyles$1u={infoLabel:new ResponsiveSizedStyle("smallMedium","smallMedium")};function LabeledReadOnlyTextField({label:e,text:t,infoText:n,style:o,textStyles:i={},labelStyles:r={},showRightTickIcon:a=!1,showEyeIcon:s=!1,tooltipText:l,additionalInfoLabel:c,showAdditionalInfoLabel:d=!0,additionalInfoLabelStyles:p={},isDisabled:u,isError:m=!1,controlWidth:h}){const g=useWindowSizeContext();/* @__PURE__ */
|
|
16047
16047
|
return jsxRuntimeExports.jsxs(Container$6W,{size:g,style:o,isError:m,controlWidth:h,"data-testid":generateDataTestId("readonly-text-field",e.label),children:[
|
|
16048
16048
|
/* @__PURE__ */jsxRuntimeExports.jsx(Label$g,{fieldCode:e.fieldCode,isDisabled:u,label:e.label,style:{marginRight:D$4u.labelMarginRight.value(g),height:D$4u.controlHeight.value(g),minHeight:D$4u.controlHeight.value(g),width:e.width??"auto",...r}}),
|
|
16049
16049
|
/* @__PURE__ */jsxRuntimeExports.jsxs(TextFieldWrapper$a,{labelWidth:e.width,children:[
|
|
@@ -29948,8 +29948,8 @@ return jsxRuntimeExports.jsxs(Container$5$,{onClick:o,children:[
|
|
|
29948
29948
|
color: inherit;
|
|
29949
29949
|
`,RefreshButton=({onClick:e})=>/* @__PURE__ */jsxRuntimeExports.jsxs(Container$5_,{onClick:e,children:[
|
|
29950
29950
|
/* @__PURE__ */jsxRuntimeExports.jsx(RefreshIconStyled,{}),
|
|
29951
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(RefreshText,{children:refresh$4})]}),ReportThreadPortalContext=createContext(null);function mergeRefs(e){return function(t){e.forEach(function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var noop$
|
|
29952
|
-
return React__default.createElement(o,Object.assign({isScrolling:s,style:a,treeData:r},l))},generateNewTree=function(e,t,n){var o=e.createRecord,i=t.buildingTaskTimeout,r=t.placeholder,a=t.async,s=void 0!==a&&a,l=t.treeWalker,c=s&&void 0!==n.records,d=n.records,p=[],u=/* @__PURE__ */new Map,m=i?{timeout:i}:void 0,h=/* @__PURE__ */new WeakMap,g=l(),x=g.next().value,f=o(x.data,n,void 0,c?d.get(x.data.id):void 0);u.set(f.public.data.id,f),h.set(f,x);var y=f,S=!0,C=f,$=void 0!==r&&!(null===r&&!n.order),b=$?function(e){return e.timeRemaining()>0}:function(){return!0},v=function e(t){for(;null!==y;){if(!b(t))return void requestIdleCallback(e,m);if(y.visited)y.visited=!1,y=null!==y.sibling?y.sibling:y.parent,C=y;else{var i=g.next(h.get(y)).value;if(void 0===i){S?S=!1:(y.isShown&&p.push(y.public.data.id),y.visited=null!==y.child,y=null!==y.child?y.child:null!==y.sibling?y.sibling:y.parent),C=y;continue}var r=o(i.data,n,S?void 0:y,c?d.get(i.data.id):void 0);u.set(r.public.data.id,r),h.set(r,i),S||C!==y?C.sibling=r:C.child=r,C=r}}$&&n.setState({order:p,records:u,updateRequest:{}})};return $?requestIdleCallback(v,m):v(),void 0!==r&&s&&n.order?n:{order:p,records:u}},MAX_FUNCTION_ARGUMENTS=32768,SPLICE_DEFAULT_ARGUMENTS_NUMBER=2,updateExistingTree=function(e,t){var n=e.order,o=e.records,i=t.opennessState;if("object"!=typeof i)return null;for(var r in i)if(o.has(r)){var a=i[r],s=o.get(r),l="boolean"==typeof a?{open:a}:a,c=l.open,d=l.subtreeCallback,p=void 0===d?noop$
|
|
29951
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(RefreshText,{children:refresh$4})]}),ReportThreadPortalContext=createContext(null);function mergeRefs(e){return function(t){e.forEach(function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var noop$3=function(){},createBasicRecord=function(e,t){return void 0===t&&(t=null),{child:null,isShown:!t||t.public.isOpen&&t.isShown,parent:t,public:e,sibling:null,visited:!1}},getIdByIndex=function(e,t){return(0,t.getRecordData)(e).data.id},Row$d=function(e){var t=e.index,n=e.data,o=n.component,i=n.getRecordData,r=n.treeData,a=e.style,s=e.isScrolling,l=i(t);/* @__PURE__ */
|
|
29952
|
+
return React__default.createElement(o,Object.assign({isScrolling:s,style:a,treeData:r},l))},generateNewTree=function(e,t,n){var o=e.createRecord,i=t.buildingTaskTimeout,r=t.placeholder,a=t.async,s=void 0!==a&&a,l=t.treeWalker,c=s&&void 0!==n.records,d=n.records,p=[],u=/* @__PURE__ */new Map,m=i?{timeout:i}:void 0,h=/* @__PURE__ */new WeakMap,g=l(),x=g.next().value,f=o(x.data,n,void 0,c?d.get(x.data.id):void 0);u.set(f.public.data.id,f),h.set(f,x);var y=f,S=!0,C=f,$=void 0!==r&&!(null===r&&!n.order),b=$?function(e){return e.timeRemaining()>0}:function(){return!0},v=function e(t){for(;null!==y;){if(!b(t))return void requestIdleCallback(e,m);if(y.visited)y.visited=!1,y=null!==y.sibling?y.sibling:y.parent,C=y;else{var i=g.next(h.get(y)).value;if(void 0===i){S?S=!1:(y.isShown&&p.push(y.public.data.id),y.visited=null!==y.child,y=null!==y.child?y.child:null!==y.sibling?y.sibling:y.parent),C=y;continue}var r=o(i.data,n,S?void 0:y,c?d.get(i.data.id):void 0);u.set(r.public.data.id,r),h.set(r,i),S||C!==y?C.sibling=r:C.child=r,C=r}}$&&n.setState({order:p,records:u,updateRequest:{}})};return $?requestIdleCallback(v,m):v(),void 0!==r&&s&&n.order?n:{order:p,records:u}},MAX_FUNCTION_ARGUMENTS=32768,SPLICE_DEFAULT_ARGUMENTS_NUMBER=2,updateExistingTree=function(e,t){var n=e.order,o=e.records,i=t.opennessState;if("object"!=typeof i)return null;for(var r in i)if(o.has(r)){var a=i[r],s=o.get(r),l="boolean"==typeof a?{open:a}:a,c=l.open,d=l.subtreeCallback,p=void 0===d?noop$3:d,u=noop$3,m=noop$3;s.isShown&&(c?function(){for(var e=n.indexOf(r),t=s;null!==t;){if(null!==t.sibling){t=t.sibling;break}t=t.parent}var o=null===t?n.length-1-e:n.indexOf(t.public.data.id)-1-e,i=[[e+1,o]];u=function(t){if(t.isShown=!t.parent||t.parent.public.isOpen&&t.parent.isShown,t.isShown){var n=i[i.length-1];n.push(t.public.data.id),n.length===MAX_FUNCTION_ARGUMENTS+SPLICE_DEFAULT_ARGUMENTS_NUMBER&&i.push([e+1+MAX_FUNCTION_ARGUMENTS*i.length,0])}},m=function(){for(var e=0;e<i.length;e++){var t;(t=n).splice.apply(t,i[e])}}}():s.public.isOpen&&function(){var e=n.indexOf(r),t=0;u=function(e){e.isShown&&(t+=1),e.isShown=!e.parent||e.parent.public.isOpen&&e.parent.isShown},m=function(){n.splice(e+1,t)}}());for(var h=s;null!==h;)h.visited?(h.visited=!1,h=h===s?null:null!==h.sibling?h.sibling:h.parent):(h.public.isOpen=h===s?c:h.public.isOpen,p(h.public,s.public),h!==s&&u(h),h.visited=null!==h.child,h=null!==h.child?h.child:h===s?null:null!==h.sibling?h.sibling:h.parent);m()}return{order:n,records:o,updateRequest:{}}},createTreeComputer=function(e){return function(t,n,o){return o.refresh?generateNewTree(e,t,n):updateExistingTree(n,o)}},Tree=/* @__PURE__ */function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).getRecordData=o.getRecordData.bind(_assertThisInitialized$p(o)),o.state={list:/* @__PURE__ */createRef(),recomputeTree:o.recomputeTree.bind(_assertThisInitialized$p(o)),setState:o.setState.bind(_assertThisInitialized$p(o))},o}_inheritsLoose$1(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.listRef,o=void 0===n?null:n,i=e.treeWalker,r=t.computeTree,a=t.list,s=t.order,l=t.treeWalker;return _extends$I({attachRefs:mergeRefs([a,o])},i===l&&s?null:r(e,t,{refresh:!0}),{treeWalker:i})};var n=t.prototype;return n.getItemData=function(){var e=this.props,t=e.children,n=e.itemData;return{component:t,getRecordData:this.getRecordData,treeData:n}},n.getRecordData=function(e){var t=this.state,n=t.order;return t.records.get(n[e]).public},n.recomputeTree=function(e){var t=this;return new Promise(function(n){t.setState(function(n){return n.computeTree(t.props,n,{opennessState:e})},n)})},n.scrollTo=function(e){var t;null==(t=this.state.list.current)||t.scrollTo(e)},n.scrollToItem=function(e,t){var n;null==(n=this.state.list.current)||n.scrollToItem(this.state.order.indexOf(e),t)},t}(PureComponent);Tree.defaultProps={rowComponent:Row$d};var computeTree=createTreeComputer({createRecord:function(e,t,n,o){var i=t.recomputeTree,r=t.resetAfterId,a=createBasicRecord({data:e,height:o?o.public.height:e.defaultHeight,isOpen:o?o.public.isOpen:e.isOpenByDefault,resize:function(e,t){a.public.height=e,r(a.public.data.id,t)},setOpen:function(t){var n;return i(((n={})[e.id]=t,n))}},n);return a}}),VariableSizeTree=/* @__PURE__ */function(e){function t(t,n){var o;return(o=e.call(this,t,n)||this).getItemSize=o.getItemSize.bind(_assertThisInitialized$p(o)),o.state=_extends$I({},o.state,{computeTree:computeTree,resetAfterId:o.resetAfterId.bind(_assertThisInitialized$p(o))}),o}_inheritsLoose$1(t,e);var n=t.prototype;return n.resetAfterId=function(e,t){var n;void 0===t&&(t=!1);var o=this.state,i=o.list,r=o.order;null==(n=i.current)||n.resetAfterIndex(r.indexOf(e),t)},n.recomputeTree=function(t){var n=this;return e.prototype.recomputeTree.call(this,t).then(function(){var e;null==(e=n.state.list.current)||e.resetAfterIndex(0,!0)})},n.render=function(){var e=this.props;e.children;var t=e.placeholder,n=e.itemSize,o=e.rowComponent;e.treeWalker;var i=_objectWithoutPropertiesLoose$A(e,["children","placeholder","itemSize","rowComponent","treeWalker"]),r=this.state,a=r.attachRefs,s=r.order;return t&&0===s.length?t:/* @__PURE__ */React__default.createElement(VariableSizeList,Object.assign({},i,{itemCount:s.length,itemData:this.getItemData(),itemKey:getIdByIndex,itemSize:null!=n?n:this.getItemSize,ref:a}),o)},n.getItemSize=function(e){return this.getRecordData(e).height},t}(Tree);const RowCommentSlot=forwardRef(({children:e,innerClassName:t,top:n=Space.sp1,flushRight:o=!1},i)=>/* @__PURE__ */jsxRuntimeExports.jsx(Overlay$1,{style:{paddingTop:n},children:/* @__PURE__ */jsxRuntimeExports.jsx(Sticky,{ref:i,className:t,$flushRight:o,children:e})}));RowCommentSlot.displayName="RowCommentSlot";const Overlay$1=styled$2.div`
|
|
29953
29953
|
position: absolute;
|
|
29954
29954
|
top: 0;
|
|
29955
29955
|
left: 0;
|
|
@@ -79558,7 +79558,7 @@ return jsxRuntimeExports.jsx(BulkActionPopover,{anchorEl:e,onClose:n,contentStyl
|
|
|
79558
79558
|
`,ApplyContainer=styled$2.div`
|
|
79559
79559
|
display: flex;
|
|
79560
79560
|
justify-content: flex-end;
|
|
79561
|
-
`,headerRowId=e=>`group:${e}`,headerMeasurementKey=(e,t)=>`${headerRowId(e)}:${t?"collapsed":"expanded"}`,taskRowId=e=>`task:${e}`,allTaskListRowIds=e=>{const t=[];for(const n of e)t.push(headerRowId(n.id)),n.tasks.forEach(e=>{t.push(taskRowId(e.id))});return t},buildTaskListFlatRows=({taskGroups:e,collapsedGroupIds:t,activeSubtaskFormTaskId:n=null})=>{const o=new Set(t),i=[];for(const r of e)i.push({kind:"group-header",rowId:headerRowId(r.id),measurementKey:headerMeasurementKey(r.id,o.has(r.id)||0===r.tasks.length),group:r}),o.has(r.id)||r.tasks.forEach((e,t)=>{const o=t===r.tasks.length-1;i.push({kind:"task",rowId:taskRowId(e.id),measurementKey:`${taskRowId(e.id)}${o?":last":""}${e.id===n?":form":""}`,task:e,groupId:r.id,taskIndexInGroup:t,tasksInGroup:r.tasks.length})});return i};class TaskListRowHeights{heights=/* @__PURE__ */new Map;baseRowIdByKey=/* @__PURE__ */new Map;get(e){return this.heights.get(e)}set(e,t,n){return!(n<=0||this.heights.get(e)===n)&&(this.heights.set(e,n),this.baseRowIdByKey.set(e,t),!0)}retainOnly(e){const t=new Set(e);for(const[n,o]of[...this.baseRowIdByKey])t.has(o)||(this.heights.delete(n),this.baseRowIdByKey.delete(n))}get size(){return this.heights.size}}const FLAT_TASK_ROW_ESTIMATED_HEIGHT=56,FLAT_GROUP_COLUMN_HEADER_ESTIMATED_HEIGHT=56,estimateFlatRowHeight=(e,t)=>{if("group-header"===e.kind){const n=t.includes(e.group.id)||0===e.group.tasks.length;return DEFAULT_LIST_GROUP_LABEL_HEIGHT_REGULAR$1+(n?DEFAULT_LIST_GROUP_GAP$1:FLAT_GROUP_COLUMN_HEADER_ESTIMATED_HEIGHT)}return FLAT_TASK_ROW_ESTIMATED_HEIGHT+(e.taskIndexInGroup===e.tasksInGroup-1?DEFAULT_LIST_GROUP_GAP$1:0)},SvgUngroup=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),/* @__PURE__ */React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),strings$1G=appLocale.getLocalizedStrings(),{common:common$18,taskManagement:taskManagement$1}=strings$1G,uniqueFormName$7=e=>`${e}_form`,noop$
|
|
79561
|
+
`,headerRowId=e=>`group:${e}`,headerMeasurementKey=(e,t)=>`${headerRowId(e)}:${t?"collapsed":"expanded"}`,taskRowId=e=>`task:${e}`,allTaskListRowIds=e=>{const t=[];for(const n of e)t.push(headerRowId(n.id)),n.tasks.forEach(e=>{t.push(taskRowId(e.id))});return t},buildTaskListFlatRows=({taskGroups:e,collapsedGroupIds:t,activeSubtaskFormTaskId:n=null})=>{const o=new Set(t),i=[];for(const r of e)i.push({kind:"group-header",rowId:headerRowId(r.id),measurementKey:headerMeasurementKey(r.id,o.has(r.id)||0===r.tasks.length),group:r}),o.has(r.id)||r.tasks.forEach((e,t)=>{const o=t===r.tasks.length-1;i.push({kind:"task",rowId:taskRowId(e.id),measurementKey:`${taskRowId(e.id)}${o?":last":""}${e.id===n?":form":""}`,task:e,groupId:r.id,taskIndexInGroup:t,tasksInGroup:r.tasks.length})});return i};class TaskListRowHeights{heights=/* @__PURE__ */new Map;baseRowIdByKey=/* @__PURE__ */new Map;get(e){return this.heights.get(e)}set(e,t,n){return!(n<=0||this.heights.get(e)===n)&&(this.heights.set(e,n),this.baseRowIdByKey.set(e,t),!0)}retainOnly(e){const t=new Set(e);for(const[n,o]of[...this.baseRowIdByKey])t.has(o)||(this.heights.delete(n),this.baseRowIdByKey.delete(n))}get size(){return this.heights.size}}const FLAT_TASK_ROW_ESTIMATED_HEIGHT=56,FLAT_GROUP_COLUMN_HEADER_ESTIMATED_HEIGHT=56,estimateFlatRowHeight=(e,t)=>{if("group-header"===e.kind){const n=t.includes(e.group.id)||0===e.group.tasks.length;return DEFAULT_LIST_GROUP_LABEL_HEIGHT_REGULAR$1+(n?DEFAULT_LIST_GROUP_GAP$1:FLAT_GROUP_COLUMN_HEADER_ESTIMATED_HEIGHT)}return FLAT_TASK_ROW_ESTIMATED_HEIGHT+(e.taskIndexInGroup===e.tasksInGroup-1?DEFAULT_LIST_GROUP_GAP$1:0)},SvgUngroup=e=>/* @__PURE__ */React.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},/* @__PURE__ */React.createElement("rect",{x:10,y:2,width:12,height:12,rx:2,stroke:"currentColor",strokeWidth:1.5}),/* @__PURE__ */React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75C7 10.3358 6.66421 10 6.25 10H3.70967C2.76545 10 2 10.7654 2 11.7097V20.2936C2 21.2378 2.76544 22.0033 3.70966 22.0033H12.2936C13.2378 22.0033 14.0033 21.2378 14.0033 20.2936V17.75C14.0033 17.3358 13.6675 17 13.2533 17C12.8391 17 12.5033 17.3358 12.5033 17.75V20.2936C12.5033 20.4094 12.4094 20.5033 12.2936 20.5033H3.70966C3.59387 20.5033 3.5 20.4094 3.5 20.2936V11.7097C3.5 11.5939 3.59387 11.5 3.70967 11.5H6.25C6.66421 11.5 7 11.1642 7 10.75Z",fill:"currentColor"})),strings$1G=appLocale.getLocalizedStrings(),{common:common$18,taskManagement:taskManagement$1}=strings$1G,uniqueFormName$7=e=>`${e}_form`,noop$2=()=>{},dimensions$q={rowGap:new ResponsiveSized(sp[0],sp[5],sp[5])},TaskManagementPage=({taskListView:e,tagListView:t,isTaskTemplatesEnabled:n,taskListFetchState:o,onCreateTagClick:i,updateTask:r,onDragNDrop:a,onDeleteTaskGroup:s,updateLocalData:l,onTaskManagementRowClick:c,onParentTaskClick:d,onReloadTasks:p,onColumnSortConfigChanged:u,onSearchTextChanged:m,onTabChange:h,onBackClick:g,bulkUpdateTasks:x,onNewTaskClick:f,onFiltersChange:y,resetLocalData:S,handleCreateGroup:C,assignGroupToTasks:$,onAddNewTaskToTaskGroup:b,onGroupByFilterChange:v,onTaskGroupRename:E,analytics:w,onTimeSpentUpdate:R,onShowToast:A,handleGroupTemplateClick:j,handleGroupTemplateTaskClick:T,handleNewTaskInitialization:I,onTaskGroupNameClick:k,isAiCfoAccessEnabled:L,isZeniUser:D,isTaskBulkResolutionEnabled:_,isTaskCannedResponsesEnabled:P,isTaskCategorizationEnabled:B,isTaskGroupAssigneesEnabled:M,isTaskRecurringParentEnabled:O,onAskAiCfoClick:F,onQuickResponsesClick:N,resetSubtaskFormCreationStatus:z,onSubtaskCreation:H,subTaskCreateStatus:V})=>{const[W,U]=useState(!1),[G,q]=useState(null),[Q,Y]=useState(null),[K,Z]=useState(null),[X,J]=useState(null),[ee,te]=useState(!1),ne=useWindowSizeContext(),oe=useGlobalInfoContext(),{fetchState:ie,uiState:re,filters:ae,userList:se,taskGroupsWithTasksList:le,currentTab:ce,tabCounts:de}=e,{tagList:pe}=t,ue=useTheme(),me=useMemo(()=>ALL_TASK_LIST_TABS.map(e=>({id:e,label:{...strings$1G.taskManagement.taskList.tabs,live:common$18.settings.integrations.badges.active,completed:common$18.texts.completed,deleted:common$18.deleted}[e],countDetails:{count:de[e],isFetching:"In-Progress"===ie}})),[de,ie]),he=useCallback(e=>{J(e.currentTarget)},[]),ge=useCallback(e=>{v(e)},[v]),xe=useCallback(()=>{v("groupName")},[v]),fe=useCallback(e=>{I(e)},[I]),ye=se.users.map(e=>e.user).filter(e=>null!=e),Se={entity:"task_management",showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:strings$1G.common.create,isSearchOpen:ee,searchPlaceHolder:strings$1G.taskManagement.taskList.searchPlaceHolder,searchText:re.searchText,showSettingsIcon:null!=N&&!0===D&&!0===P,onClickSetupIcon:N,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,disableDownloadButton:!0,filters:ae,searchTextBoxStyle:{right:"108px"},onNewButtonClick:he,onSearchOpen:e=>{te(e)},onSearchTextChanged:m,onFiltersChange:y,analytics:w,downloadState:"Not-Started",createdByUserListLoaded:"Completed"===se.fetchState||"Error"===se.fetchState,groupByFiltersComponent:{component:/* @__PURE__ */jsxRuntimeExports.jsx(GroupByFilters,{value:re.groupByKey,resetDisabled:"groupName"===re.groupByKey,onChange:ge,onReset:xe}),height:90},getFilterOptions:()=>getDashboardFilterCategoryValues("task_management",ye,oe.loggedInUserRole??[],t.tagList)},Ce=useCallback(t=>{J(null),q(newGroupField),l({...e.localData,newTaskGroupName:t})},[e.localData,l]),$e=useCallback(()=>{J(null)},[]),be=useCallback(()=>{null!=Q&&s(Q)},[Q,s]),ve=useCallback(()=>{q(newGroupField)},[]),Ee=useCallback(e=>{Z(t=>t===e?null:e)},[]);useEffect(()=>{"Completed"===e.taskGroupDeleteStatus.fetchState&&U(!1)},[e.taskGroupDeleteStatus.fetchState]),useEffect(()=>{n&&e.taskGroupTemplates.length>0&&Z(e.taskGroupTemplates[0].id)},[n,e.taskGroupTemplates]);const we=/* @__PURE__ */jsxRuntimeExports.jsxs(NavBarRightRowStyled,{children:[
|
|
79562
79562
|
/* @__PURE__ */jsxRuntimeExports.jsx(SpendManagementSection,{spendManagementSectionProps:Se}),
|
|
79563
79563
|
/* @__PURE__ */jsxRuntimeExports.jsx(AskAiCfoNavButtonWhenEnabled,{isAiCfoAccessEnabled:L,onAskAiCfoClick:F})]});/* @__PURE__ */
|
|
79564
79564
|
return jsxRuntimeExports.jsxs(SpendManagementByStatusWrapperContainer,{children:[
|
|
@@ -79567,7 +79567,7 @@ return jsxRuntimeExports.jsxs(SpendManagementByStatusWrapperContainer,{children:
|
|
|
79567
79567
|
/* @__PURE__ */jsxRuntimeExports.jsx(Container$1a,{children:"Error"===ie?/* @__PURE__ */jsxRuntimeExports.jsxs(ReloadPage$7,{children:[
|
|
79568
79568
|
/* @__PURE__ */jsxRuntimeExports.jsx(ReloadIconContainer$7,{onClick:p,children:/* @__PURE__ */jsxRuntimeExports.jsx(StyledReloadIcon$3,{})}),
|
|
79569
79569
|
/* @__PURE__ */jsxRuntimeExports.jsx(ReloadLabel$6,{children:strings$1G.common.reloadPage.label})]}):"Completed"===ie&&0===le.length?/* @__PURE__ */jsxRuntimeExports.jsx(NoListDataPage,{message:strings$1G.taskManagement.taskList.noDataText}):"Not-Started"===ie||"In-Progress"===ie?"In-Progress"===o?/* @__PURE__ */jsxRuntimeExports.jsx(TaskManagementPageSkeleton,{}):/* @__PURE__ */jsxRuntimeExports.jsx(BusyIndication,{fetchState:ie}):/* @__PURE__ */jsxRuntimeExports.jsx(TaskManagementPageForm,{taskListView:e,tagList:pe,renameActiveField:G,bulkUpdateTasks:x,updateTask:r,onDragNDrop:a,onAddNewTaskToTaskGroup:b,onColumnSortConfigChanged:u,onTaskManagementRowClick:c,assignGroupToTasks:$,handleCreateGroup:C,resetLocalData:S,setGroupCreationInProgress:ve,setShowDeleteModal:U,updateLocalData:l,setActiveTaskGroupId:Y,setRenameActiveField:q,onTaskGroupRename:E,onTimeSpentUpdate:R,onShowToast:A,onCreateTagClick:i,onTaskGroupNameClick:k,onParentTaskClick:d,isZeniUser:D,isTaskBulkResolutionEnabled:_,isTaskGroupAssigneesEnabled:M,isTaskRecurringParentEnabled:O,resetSubtaskFormCreationStatus:z,onSubtaskCreation:H,subTaskCreateStatus:V})}),
|
|
79570
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(ControlledComponent,{controller:!0===W,children:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopup,{action:{onOkClick:be,onCancelClick:()=>{U(!1)}},isLoading:"In-Progress"===e.taskGroupDeleteStatus.fetchState,secondaryButtonText:strings$1G.common.cancel,primaryButtonText:strings$1G.common.confirm,titleComponent:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopUpTitle$3,{children:strings$1G.taskManagement.taskList.taskGroup.deleteTaskGroup}),proceedButtonVariant:"destructive",descriptionComponent:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopUpDescription$2,{children:strings$1G.taskManagement.taskList.deleteConfirmationMessage})})})]})},EMPTY_IDS=[],SOME_IDS=["selected"],FLAT_OVERSCAN_COUNT=3,TaskManagementPageForm=({taskListView:e,tagList:t,renameActiveField:n,bulkUpdateTasks:o,updateTask:i,onTaskGroupRename:r,setRenameActiveField:a,onDragNDrop:s,updateLocalData:l,setShowDeleteModal:c,handleCreateGroup:d,resetLocalData:p,assignGroupToTasks:u,setGroupCreationInProgress:m,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,setActiveTaskGroupId:f,onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskBulkResolutionEnabled:E,isTaskGroupAssigneesEnabled:w,isTaskRecurringParentEnabled:R,resetSubtaskFormCreationStatus:A,onSubtaskCreation:j,subTaskCreateStatus:T})=>{const I=useRef(null);useSentryPerformanceTracking({componentName:"task.management.list"});const[k,L]=useState(null),[D,_]=useState(null),[P,B]=useState(null),[M,O]=useState(null),F=e=>t=>{B(e),_(t.currentTarget)},N=()=>{B(null),_(null)},z=useRef({}),H=useRef(new TaskListRowHeights),[V,W]=useState([]),U=useRef(void 0),G=useCallback(()=>U.current,[]),q=useCallback(e=>{U.current=e},[]),[Q,Y]=useState(null),K=useWindowSizeContext(),{currentTab:Z,localData:X,taskGroupsWithTasksList:J,uiState:ee,userGroupList:te}=e,ne=!0===w?te:{userGroups:[],fetchState:te.fetchState},oe="In-Progress"===e.updateTasksFetchState.fetchState,[ie,re]=useState([]),ae=useRef(null);useDragAutoScroll({scrollContainerRef:ae,isEnabled:"small"!==K});const se=useMemo(()=>e.userList.users.map(e=>e.user).filter(e=>null!=e),[e.userList.users]),le=useMemo(()=>getDefaultValues$e(e.taskGroupsWithTasksList,X,se,t,e.userGroupList.userGroups),[e.taskGroupsWithTasksList,e.userGroupList.userGroups,X,se,t]),ce=useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:le,values:le}),{subtasksByParentId:de,allSubtaskIds:pe}=useMemo(()=>{const e=/* @__PURE__ */new Set,t=/* @__PURE__ */new Map,n=J.flatMap(e=>e.tasks),o=/* @__PURE__ */new Map;return n.forEach(e=>o.set(e.id,e)),n.forEach(t=>{t.subTasksIds?.forEach(t=>e.add(t))}),n.forEach(e=>{if(null!=e.subTasksIds&&e.subTasksIds.length>0){const n=e.subTasksIds.map(e=>o.get(e)).filter(e=>null!=e);n.length>0&&t.set(e.id,n)}}),{subtasksByParentId:t,allSubtaskIds:e}},[J]),ue=n===newGroupField?X.selectedTaskIds:EMPTY_IDS,me=useMemo(()=>{if(n!==newGroupField)return J.map(e=>({...e,tasks:e.tasks.filter(e=>!pe.has(e.id))}));const e=[],t=J.map(t=>{const n=t.tasks.filter(t=>{if(pe.has(t.id))return!1;const n=!0===ue.includes(t.id);return n&&e.push(t),!1===n});return{...t,tasks:n}});return t.unshift({groupName:"",isDefault:!1,id:newGroupField,tasks:e}),t},[n,J,ue,pe]),he="small"!==K,ge=useMemo(()=>he?buildTaskListFlatRows({taskGroups:me,collapsedGroupIds:ie,activeSubtaskFormTaskId:Q}):[],[he,me,ie,Q]),xe=useMemo(()=>new Map(me.map(e=>[e.id,e.tasks.map(e=>e.id)])),[me]);useEffect(()=>{H.current.retainOnly(allTaskListRowIds(me))},[me]);const fe=useMemo(()=>ge.map(e=>e.rowId).join("|"),[ge]);useEffect(()=>{he&&I.current?.resetAfterIndex(0,!0)},[fe,he]);const ye=useCallback(e=>{const t=ge[e];if(null==t)return DEFAULT_LIST_ITEM_HEIGHT_COMPACT$2;const n=H.current.get(t.measurementKey);return null!=n?n:estimateFlatRowHeight(t,ie)},[ge,ie]),Se=useCallback((e,t,n,o)=>{H.current.set(e,t,o)&&I.current?.resetAfterIndex(n,!0)},[]),Ce=useCallback(({groupId:e,taskId:t})=>{s(t,e)},[s]),$e=useCallback((e,t)=>{e.dataTransfer.setData("row",t)},[]),be=useCallback(e=>{W(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),ve=useCallback(e=>{Y(t=>(t!==e&&(U.current=void 0),t===e?null:e))},[]),Ee=useCallback(()=>{Y(null),U.current=void 0},[]),we=useRef(T);useEffect(()=>{const e=we.current;we.current=T,"In-Progress"===e&&"Completed"===T&&null!=Q&&(Y(null),U.current=void 0,A?.())},[T,Q,A]);const Re=useCallback(e=>ie.includes(me[e].id)||0===me[e].tasks.length?100:null!=z.current?.[e]?z.current[e]+dimensions$q.rowGap.value(K):3*(1*DEFAULT_LIST_ITEM_LINE_HEIGHT+DEFAULT_LIST_ITEM_PADDING)+DEFAULT_LIST_GROUP_LABEL_HEIGHT_REGULAR+DEFAULT_LIST_GROUP_GAP,[ie,me,K]),Ae=useCallback(e=>{L(e.currentTarget)},[]),je=useCallback((e,t)=>{z.current={...z.current,[e]:t},I.current?.resetAfterIndex(0,!0)},[K,I,J]),Te=useCallback(e=>{re(t=>t.includes(e)?t.filter(t=>e!==t):[...t,e]),I.current?.resetAfterIndex(0,!0)},[]),Ie=useCallback(()=>{L(null)},[]),ke=useCallback(()=>{re(J.map(e=>e.id)),I.current?.resetAfterIndex(0,!0)},[J]),Le=useCallback(()=>{re([]),I.current?.resetAfterIndex(0,!0)},[]),De=useCallback(()=>{m(),I.current?.scrollTo(0),Ie()},[Ie,m]),_e=useCallback(e=>{f(e),c(!0)},[f,c]),Pe=useCallback(()=>{X.selectedTaskIds.length>0?n!==newGroupField?De():d(!0):n===newGroupField?d(!1):null!=n&&r(n,X.existingTaskGroupNamesByGroupId[n])},[X.selectedTaskIds.length,X.existingTaskGroupNamesByGroupId,n,De,d,r]),Be=useCallback(()=>{a(null),p()},[p,a]),Me=useCallback(e=>{p(),a(e)},[p,a]),Oe=useCallback(()=>{null!=X.defaultTaskGroupId&&u(X.defaultTaskGroupId)},[u,X.defaultTaskGroupId]),Fe=useCallback(()=>{const e=getDefaultSubtaskValues(se,t,ne.userGroups);ce.setValue(newSubtaskSectionId,e)},[ce,se,t,ne.userGroups]);useEffect(()=>{const e=ce.watch((e,{name:t})=>{null!=t&&null!=e&&defer(()=>(async(e,t)=>{if(e.includes(newSubtaskSectionId))return;if(e.includes(priorityKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=t[taskManagementTableSectionId][taskDataKey][n].priority.selectedOption;if(null!=o&&null!=r){const e=allTaskPriority.find(e=>e.code===r);null!=e&&i(o,{priority:e})}return}if(e.includes(statusKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=t[taskManagementTableSectionId][taskDataKey][n].status.selectedOption;if(null!=o&&null!=r){const e=allTaskStatus.find(e=>e.code===r);null!=o&&null!=e&&i(o,{status:e})}return}if(e.includes(assigneeKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].assignees.selectedUsers.map(e=>e.userId),s=t[taskManagementTableSectionId][taskDataKey][n].assignees.selectedUserGroups?.map(e=>e.userGroupId);return void(null!=r&&null!=a&&null!=o&&i(o,{assignees:a,groupAssignees:s}))}if(e.includes(dueDateKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].dueDate.date;return void(null!=r&&null!=a&&null!=o&&i(o,{dueDate:a}))}if(e.includes(tagKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].tags.selectedOptions;return void(null!=r&&null!=a&&null!=o&&i(o,{tagIds:a}))}e.includes(timeSpentKey)&&ce.trigger(e);const n=toLocalData$1(e,t,X);l(n)})(t,e))});return()=>{e.unsubscribe()}}),useEffect(()=>{"Completed"===e.taskGroupCreationStatus.fetchState&&a(null)},[a,e.taskGroupCreationStatus.fetchState]),useEffect(()=>{"Completed"===e.taskGroupUpdateStatus.fetchState&&a(null)},[a,e.taskGroupUpdateStatus.fetchState]);const Ne=useMemo(()=>({tagList:t,taskGroupsWithTasksList:me,uiState:ee,collapsedGroups:ie,userList:e.userList,userGroupList:ne.userGroups,renameActiveField:n,selectedRowIds:X.selectedTaskIds,existingTaskGroupNamesByGroupId:X.existingTaskGroupNamesByGroupId,subtasksByParentId:de,onRenameClick:Me,handleOnDragNDrop:s,onCollapseToggle:Te,setRowHeight:je,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,onCollapseAll:ke,onDeleteTaskGroup:_e,onExpandAll:Le,onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskRecurringParentEnabled:R,onResetSubtaskForm:Fe,resetSubtaskFormCreationStatus:A,onSubtaskCreation:j,subTaskCreateStatus:T}),[t,me,ee,ie,e.userList,ne.userGroups,n,X.selectedTaskIds,X.existingTaskGroupNamesByGroupId,de,Me,s,Te,je,h,g,x,ke,_e,Le,y,S,C,$,b,v,R,Fe,A,j,T]),ze=X.selectedTaskIds.length>0,He=useMemo(()=>ze?SOME_IDS:EMPTY_IDS,[ze]),Ve=useCallback(o=>/* @__PURE__ */jsxRuntimeExports.jsx(TaskListRowWrapper,{taskGroup:o.group,showGroupName:!0,renderTaskRows:!1,tagList:t,uiState:ee,isCollapsed:ie.includes(o.group.id),onCollapseToggle:Te,showRenameTextField:n===o.group.id,userGroupList:ne.userGroups,isSelectionAllowed:null==n,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,onCollapseAll:ke,onDeleteTaskGroup:_e,onExpandAll:Le,selectedRowIds:He,userList:e.userList,existingTaskGroupNamesByGroupId:X.existingTaskGroupNamesByGroupId,subtasksByParentId:de,onDragStart:$e,onRenameClick:()=>Me(o.group.id),onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskRecurringParentEnabled:R,resetSubtaskFormCreationStatus:A,onSubtaskFormToggle:Ee,onRowHeightChange:noop$1,onCreateSubtask:j??noop$1,subTaskCreateStatus:T}),[t,ee,ie,Te,n,ne.userGroups,h,g,x,ke,_e,Le,He,X.existingTaskGroupNamesByGroupId,e.userList,de,$e,Me,y,S,C,$,b,v,R,A,Ee,j,T]),We=useMemo(()=>({rows:ge,sectionId:taskManagementTableSectionId,tagList:t,userList:se,userGroupList:ne.userGroups,subtasksByParentId:de,taskIdsByGroupId:xe,expandedSubtaskParentIds:V,activeSubtaskFormTaskId:Q,isSelectionAllowed:null==n,checkBoxMode:ze?"always_on":"checked_or_hover",isZeniUser:v,isTaskRecurringParentEnabled:R,subTaskCreateStatus:T,windowSize:K,rowGapPx:dimensions$q.rowGap.value(K),selectedIdsFieldName:e=>getGroupFieldName(taskManagementTableSectionId,e,selectedIdsKey),renderGroupHeader:Ve,onRowMeasured:Se,onDropOnGroup:Ce,onDragStart:$e,onRowClick:h,onToggleSubtasks:be,getSubtaskDraft:G,onSubtaskDraftChange:q,onAddSubtaskClick:ve,onCancelSubtaskForm:Ee,onCreateSubtask:j??noop$1,onCreateTagClick:C,onTimeSpentUpdate:y,onShowToast:S,onParentTaskClick:b}),[G,q,ge,t,se,ne.userGroups,de,xe,V,Q,n,ze,v,R,T,K,Ve,Se,Ce,$e,h,be,ve,Ee,j,C,y,S,b]),Ue=X.selectedTaskIds.length>0&&n!==newGroupField,Ge=X.newTaskGroupName.length>0||X.selectedTaskIds.length>0||null!==n;/* @__PURE__ */
|
|
79570
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(ControlledComponent,{controller:!0===W,children:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopup,{action:{onOkClick:be,onCancelClick:()=>{U(!1)}},isLoading:"In-Progress"===e.taskGroupDeleteStatus.fetchState,secondaryButtonText:strings$1G.common.cancel,primaryButtonText:strings$1G.common.confirm,titleComponent:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopUpTitle$3,{children:strings$1G.taskManagement.taskList.taskGroup.deleteTaskGroup}),proceedButtonVariant:"destructive",descriptionComponent:/* @__PURE__ */jsxRuntimeExports.jsx(ConfirmationPopUpDescription$2,{children:strings$1G.taskManagement.taskList.deleteConfirmationMessage})})})]})},EMPTY_IDS=[],SOME_IDS=["selected"],FLAT_OVERSCAN_COUNT=3,TaskManagementPageForm=({taskListView:e,tagList:t,renameActiveField:n,bulkUpdateTasks:o,updateTask:i,onTaskGroupRename:r,setRenameActiveField:a,onDragNDrop:s,updateLocalData:l,setShowDeleteModal:c,handleCreateGroup:d,resetLocalData:p,assignGroupToTasks:u,setGroupCreationInProgress:m,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,setActiveTaskGroupId:f,onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskBulkResolutionEnabled:E,isTaskGroupAssigneesEnabled:w,isTaskRecurringParentEnabled:R,resetSubtaskFormCreationStatus:A,onSubtaskCreation:j,subTaskCreateStatus:T})=>{const I=useRef(null);useSentryPerformanceTracking({componentName:"task.management.list"});const[k,L]=useState(null),[D,_]=useState(null),[P,B]=useState(null),[M,O]=useState(null),F=e=>t=>{B(e),_(t.currentTarget)},N=()=>{B(null),_(null)},z=useRef({}),H=useRef(new TaskListRowHeights),[V,W]=useState([]),U=useRef(void 0),G=useCallback(()=>U.current,[]),q=useCallback(e=>{U.current=e},[]),[Q,Y]=useState(null),K=useWindowSizeContext(),{currentTab:Z,localData:X,taskGroupsWithTasksList:J,uiState:ee,userGroupList:te}=e,ne=!0===w?te:{userGroups:[],fetchState:te.fetchState},oe="In-Progress"===e.updateTasksFetchState.fetchState,[ie,re]=useState([]),ae=useRef(null);useDragAutoScroll({scrollContainerRef:ae,isEnabled:"small"!==K});const se=useMemo(()=>e.userList.users.map(e=>e.user).filter(e=>null!=e),[e.userList.users]),le=useMemo(()=>getDefaultValues$e(e.taskGroupsWithTasksList,X,se,t,e.userGroupList.userGroups),[e.taskGroupsWithTasksList,e.userGroupList.userGroups,X,se,t]),ce=useForm({mode:"onSubmit",reValidateMode:"onSubmit",shouldFocusError:!0,defaultValues:le,values:le}),{subtasksByParentId:de,allSubtaskIds:pe}=useMemo(()=>{const e=/* @__PURE__ */new Set,t=/* @__PURE__ */new Map,n=J.flatMap(e=>e.tasks),o=/* @__PURE__ */new Map;return n.forEach(e=>o.set(e.id,e)),n.forEach(t=>{t.subTasksIds?.forEach(t=>e.add(t))}),n.forEach(e=>{if(null!=e.subTasksIds&&e.subTasksIds.length>0){const n=e.subTasksIds.map(e=>o.get(e)).filter(e=>null!=e);n.length>0&&t.set(e.id,n)}}),{subtasksByParentId:t,allSubtaskIds:e}},[J]),ue=n===newGroupField?X.selectedTaskIds:EMPTY_IDS,me=useMemo(()=>{if(n!==newGroupField)return J.map(e=>({...e,tasks:e.tasks.filter(e=>!pe.has(e.id))}));const e=[],t=J.map(t=>{const n=t.tasks.filter(t=>{if(pe.has(t.id))return!1;const n=!0===ue.includes(t.id);return n&&e.push(t),!1===n});return{...t,tasks:n}});return t.unshift({groupName:"",isDefault:!1,id:newGroupField,tasks:e}),t},[n,J,ue,pe]),he="small"!==K,ge=useMemo(()=>he?buildTaskListFlatRows({taskGroups:me,collapsedGroupIds:ie,activeSubtaskFormTaskId:Q}):[],[he,me,ie,Q]),xe=useMemo(()=>new Map(me.map(e=>[e.id,e.tasks.map(e=>e.id)])),[me]);useEffect(()=>{H.current.retainOnly(allTaskListRowIds(me))},[me]);const fe=useMemo(()=>ge.map(e=>e.rowId).join("|"),[ge]);useEffect(()=>{he&&I.current?.resetAfterIndex(0,!0)},[fe,he]);const ye=useCallback(e=>{const t=ge[e];if(null==t)return DEFAULT_LIST_ITEM_HEIGHT_COMPACT$2;const n=H.current.get(t.measurementKey);return null!=n?n:estimateFlatRowHeight(t,ie)},[ge,ie]),Se=useCallback((e,t,n,o)=>{H.current.set(e,t,o)&&I.current?.resetAfterIndex(n,!0)},[]),Ce=useCallback(({groupId:e,taskId:t})=>{s(t,e)},[s]),$e=useCallback((e,t)=>{e.dataTransfer.setData("row",t)},[]),be=useCallback(e=>{W(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},[]),ve=useCallback(e=>{Y(t=>(t!==e&&(U.current=void 0),t===e?null:e))},[]),Ee=useCallback(()=>{Y(null),U.current=void 0},[]),we=useRef(T);useEffect(()=>{const e=we.current;we.current=T,"In-Progress"===e&&"Completed"===T&&null!=Q&&(Y(null),U.current=void 0,A?.())},[T,Q,A]);const Re=useCallback(e=>ie.includes(me[e].id)||0===me[e].tasks.length?100:null!=z.current?.[e]?z.current[e]+dimensions$q.rowGap.value(K):3*(1*DEFAULT_LIST_ITEM_LINE_HEIGHT+DEFAULT_LIST_ITEM_PADDING)+DEFAULT_LIST_GROUP_LABEL_HEIGHT_REGULAR+DEFAULT_LIST_GROUP_GAP,[ie,me,K]),Ae=useCallback(e=>{L(e.currentTarget)},[]),je=useCallback((e,t)=>{z.current={...z.current,[e]:t},I.current?.resetAfterIndex(0,!0)},[K,I,J]),Te=useCallback(e=>{re(t=>t.includes(e)?t.filter(t=>e!==t):[...t,e]),I.current?.resetAfterIndex(0,!0)},[]),Ie=useCallback(()=>{L(null)},[]),ke=useCallback(()=>{re(J.map(e=>e.id)),I.current?.resetAfterIndex(0,!0)},[J]),Le=useCallback(()=>{re([]),I.current?.resetAfterIndex(0,!0)},[]),De=useCallback(()=>{m(),I.current?.scrollTo(0),Ie()},[Ie,m]),_e=useCallback(e=>{f(e),c(!0)},[f,c]),Pe=useCallback(()=>{X.selectedTaskIds.length>0?n!==newGroupField?De():d(!0):n===newGroupField?d(!1):null!=n&&r(n,X.existingTaskGroupNamesByGroupId[n])},[X.selectedTaskIds.length,X.existingTaskGroupNamesByGroupId,n,De,d,r]),Be=useCallback(()=>{a(null),p()},[p,a]),Me=useCallback(e=>{p(),a(e)},[p,a]),Oe=useCallback(()=>{null!=X.defaultTaskGroupId&&u(X.defaultTaskGroupId)},[u,X.defaultTaskGroupId]),Fe=useCallback(()=>{const e=getDefaultSubtaskValues(se,t,ne.userGroups);ce.setValue(newSubtaskSectionId,e)},[ce,se,t,ne.userGroups]);useEffect(()=>{const e=ce.watch((e,{name:t})=>{null!=t&&null!=e&&defer(()=>(async(e,t)=>{if(e.includes(newSubtaskSectionId))return;if(e.includes(priorityKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=t[taskManagementTableSectionId][taskDataKey][n].priority.selectedOption;if(null!=o&&null!=r){const e=allTaskPriority.find(e=>e.code===r);null!=e&&i(o,{priority:e})}return}if(e.includes(statusKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=t[taskManagementTableSectionId][taskDataKey][n].status.selectedOption;if(null!=o&&null!=r){const e=allTaskStatus.find(e=>e.code===r);null!=o&&null!=e&&i(o,{status:e})}return}if(e.includes(assigneeKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].assignees.selectedUsers.map(e=>e.userId),s=t[taskManagementTableSectionId][taskDataKey][n].assignees.selectedUserGroups?.map(e=>e.userGroupId);return void(null!=r&&null!=a&&null!=o&&i(o,{assignees:a,groupAssignees:s}))}if(e.includes(dueDateKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].dueDate.date;return void(null!=r&&null!=a&&null!=o&&i(o,{dueDate:a}))}if(e.includes(tagKey)){const n=e.split(".")[2],o=J.flatMap(e=>e.tasks).find(e=>e.id===n),r=J.find(e=>e.tasks.find(e=>e.id===n))?.id,a=t[taskManagementTableSectionId][taskDataKey][n].tags.selectedOptions;return void(null!=r&&null!=a&&null!=o&&i(o,{tagIds:a}))}e.includes(timeSpentKey)&&ce.trigger(e);const n=toLocalData$1(e,t,X);l(n)})(t,e))});return()=>{e.unsubscribe()}}),useEffect(()=>{"Completed"===e.taskGroupCreationStatus.fetchState&&a(null)},[a,e.taskGroupCreationStatus.fetchState]),useEffect(()=>{"Completed"===e.taskGroupUpdateStatus.fetchState&&a(null)},[a,e.taskGroupUpdateStatus.fetchState]);const Ne=useMemo(()=>({tagList:t,taskGroupsWithTasksList:me,uiState:ee,collapsedGroups:ie,userList:e.userList,userGroupList:ne.userGroups,renameActiveField:n,selectedRowIds:X.selectedTaskIds,existingTaskGroupNamesByGroupId:X.existingTaskGroupNamesByGroupId,subtasksByParentId:de,onRenameClick:Me,handleOnDragNDrop:s,onCollapseToggle:Te,setRowHeight:je,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,onCollapseAll:ke,onDeleteTaskGroup:_e,onExpandAll:Le,onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskRecurringParentEnabled:R,onResetSubtaskForm:Fe,resetSubtaskFormCreationStatus:A,onSubtaskCreation:j,subTaskCreateStatus:T}),[t,me,ee,ie,e.userList,ne.userGroups,n,X.selectedTaskIds,X.existingTaskGroupNamesByGroupId,de,Me,s,Te,je,h,g,x,ke,_e,Le,y,S,C,$,b,v,R,Fe,A,j,T]),ze=X.selectedTaskIds.length>0,He=useMemo(()=>ze?SOME_IDS:EMPTY_IDS,[ze]),Ve=useCallback(o=>/* @__PURE__ */jsxRuntimeExports.jsx(TaskListRowWrapper,{taskGroup:o.group,showGroupName:!0,renderTaskRows:!1,tagList:t,uiState:ee,isCollapsed:ie.includes(o.group.id),onCollapseToggle:Te,showRenameTextField:n===o.group.id,userGroupList:ne.userGroups,isSelectionAllowed:null==n,onTaskManagementRowClick:h,onColumnSortConfigChanged:g,onAddNewTaskToTaskGroup:x,onCollapseAll:ke,onDeleteTaskGroup:_e,onExpandAll:Le,selectedRowIds:He,userList:e.userList,existingTaskGroupNamesByGroupId:X.existingTaskGroupNamesByGroupId,subtasksByParentId:de,onDragStart:$e,onRenameClick:()=>Me(o.group.id),onTimeSpentUpdate:y,onShowToast:S,onCreateTagClick:C,onTaskGroupNameClick:$,onParentTaskClick:b,isZeniUser:v,isTaskRecurringParentEnabled:R,resetSubtaskFormCreationStatus:A,onSubtaskFormToggle:Ee,onRowHeightChange:noop$2,onCreateSubtask:j??noop$2,subTaskCreateStatus:T}),[t,ee,ie,Te,n,ne.userGroups,h,g,x,ke,_e,Le,He,X.existingTaskGroupNamesByGroupId,e.userList,de,$e,Me,y,S,C,$,b,v,R,A,Ee,j,T]),We=useMemo(()=>({rows:ge,sectionId:taskManagementTableSectionId,tagList:t,userList:se,userGroupList:ne.userGroups,subtasksByParentId:de,taskIdsByGroupId:xe,expandedSubtaskParentIds:V,activeSubtaskFormTaskId:Q,isSelectionAllowed:null==n,checkBoxMode:ze?"always_on":"checked_or_hover",isZeniUser:v,isTaskRecurringParentEnabled:R,subTaskCreateStatus:T,windowSize:K,rowGapPx:dimensions$q.rowGap.value(K),selectedIdsFieldName:e=>getGroupFieldName(taskManagementTableSectionId,e,selectedIdsKey),renderGroupHeader:Ve,onRowMeasured:Se,onDropOnGroup:Ce,onDragStart:$e,onRowClick:h,onToggleSubtasks:be,getSubtaskDraft:G,onSubtaskDraftChange:q,onAddSubtaskClick:ve,onCancelSubtaskForm:Ee,onCreateSubtask:j??noop$2,onCreateTagClick:C,onTimeSpentUpdate:y,onShowToast:S,onParentTaskClick:b}),[G,q,ge,t,se,ne.userGroups,de,xe,V,Q,n,ze,v,R,T,K,Ve,Se,Ce,$e,h,be,ve,Ee,j,C,y,S,b]),Ue=X.selectedTaskIds.length>0&&n!==newGroupField,Ge=X.newTaskGroupName.length>0||X.selectedTaskIds.length>0||null!==n;/* @__PURE__ */
|
|
79571
79571
|
return jsxRuntimeExports.jsxs(FormProvider,{...ce,children:[
|
|
79572
79572
|
/* @__PURE__ */jsxRuntimeExports.jsx(StyledListForm,{id:uniqueFormName$7(taskManagementPage),onSubmit:ce.handleSubmit(Pe),children:/* @__PURE__ */jsxRuntimeExports.jsx(ListViewContainer$8,{children:/* @__PURE__ */jsxRuntimeExports.jsx(AutoSizer,{children:({height:e,width:t})=>he?/* @__PURE__ */jsxRuntimeExports.jsx(VariableSizeList,{ref:I,outerRef:ae,height:e,itemCount:ge.length,itemSize:ye,estimatedItemSize:FLAT_TASK_ROW_ESTIMATED_HEIGHT,itemKey:e=>ge[e].rowId,width:t,overscanCount:FLAT_OVERSCAN_COUNT,itemData:We,initialScrollOffset:0,children:TaskListFlatRowRenderer},"task-list-flat"):/* @__PURE__ */jsxRuntimeExports.jsx(VariableSizeList,{ref:I,outerRef:ae,height:e,itemCount:me.length,itemSize:Re,estimatedItemSize:DEFAULT_LIST_ITEM_HEIGHT_COMPACT$2,itemKey:e=>me[e].id,width:t,overscanCount:OVERSCAN_COUNT$6,itemData:Ne,initialScrollOffset:0,children:ListItem$7},"task-list-grouped")})})}),Ge?/* @__PURE__ */jsxRuntimeExports.jsx(Footer$7,{formId:uniqueFormName$7(taskManagementPage),style:{pointerEvents:oe?"none":"auto"},primaryBtn:{label:common$18.save,style:{width:"135px"},isLoading:"In-Progress"===e.taskGroupCreationStatus.fetchState||"In-Progress"===e.taskGroupUpdateStatus.fetchState},cancelBtn:{label:common$18.cancel,style:{width:"135px",border:"none"},onClick:Be,prefixIcon:/* @__PURE__ */jsxRuntimeExports.jsx(StyledCloseIcon$g,{})},helperContainerStyle:"small"===K?{width:"100%"}:void 0,leftSideComponent:/* @__PURE__ */jsxRuntimeExports.jsx(ControlledComponent,{controller:"small"!==K&&X.selectedTaskIds.length>0,children:/* @__PURE__ */jsxRuntimeExports.jsxs(LeftSideComponent$1,{children:[
|
|
79573
79573
|
/* @__PURE__ */jsxRuntimeExports.jsx(CountBox,{count:X.selectedTaskIds.length}),
|
|
@@ -86639,13 +86639,13 @@ return jsxRuntimeExports.jsxs(TierFieldRow,{style:i,children:[
|
|
|
86639
86639
|
height: ${Space.sp3};
|
|
86640
86640
|
flex-shrink: 0;
|
|
86641
86641
|
}
|
|
86642
|
-
`,noop=()=>{},{invoicingCommon:invoicingCommon$q,invoicingCatalogForm:strings$1c,common:{currency:{currencySymbol:currencySymbol$2},texts:{billingCycles:billingCyclesText,accountName:accountName,class:classText$4,selectClass:selectClass,description2:description2$4,addDescription:addDescription$1,price:priceText}}}=appLocale.getLocalizedStrings();function CatalogPricePointFields({groupedClassOptions:e,groupedAccountOptions:t,isAddon:n,labelWidth:o,namePrefix:i,pricePointNouns:r,pricingDisabled:a,selectedPricingModel:s,showTrialEnd:l,tiered:c,tierTypeOptionsByPricingModel:d,values:p,bare:u,fieldStyle:m,labelSuffix:h="",persist:g,rowStyle:x}){const f=!0===a?"disabled":void 0,y=e=>""===i?e:`${i}.${e}`,S=e=>`${e}${h}`,C=/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[
|
|
86642
|
+
`,noop$1=()=>{},{invoicingCommon:invoicingCommon$q,invoicingCatalogForm:strings$1c,common:{currency:{currencySymbol:currencySymbol$2},texts:{billingCycles:billingCyclesText,accountName:accountName,class:classText$4,selectClass:selectClass,description2:description2$4,addDescription:addDescription$1,price:priceText}}}=appLocale.getLocalizedStrings();function CatalogPricePointFields({groupedClassOptions:e,groupedAccountOptions:t,isAddon:n,labelWidth:o,namePrefix:i,pricePointNouns:r,pricingDisabled:a,selectedPricingModel:s,showTrialEnd:l,tiered:c,tierTypeOptionsByPricingModel:d,values:p,bare:u,fieldStyle:m,labelSuffix:h="",persist:g,rowStyle:x}){const f=!0===a?"disabled":void 0,y=e=>""===i?e:`${i}.${e}`,S=e=>`${e}${h}`,C=/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[
|
|
86643
86643
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextField,{label:{label:S(withCatalogPricePointNouns(strings$1c.labelPricePointName,r)),width:o},style:x,text:{defaultValue:p.name,name:y("name"),options:CATALOG_REQUIRED_TEXT_RULES,placeholder:strings$1c.placeholderAddSubFamilyName,type:"text"}}),
|
|
86644
86644
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isLoading:!1,label:{label:S(accountName),width:o},groupedSingleSelectField:{defaultValue:{allOptions:t,selectedOption:p.accountingCode?.selectedOption},name:y("accountingCode"),placeholder:strings$1c.placeholderSelectIncomeAccount,registerOptions:t.length>0?{validate:e=>""!==(e?.selectedOption??"")}:void 0,shouldShowChevronIcon:!1,style:{width:"100%"}},style:x}),
|
|
86645
86645
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledGroupSingleSelectWithRecommendationCheckboxField,{isLoading:!1,label:{label:S(classText$4),width:o},groupedSingleSelectField:{defaultValue:{allOptions:e,selectedOption:p.accountingCategory?.selectedOption},name:y("accountingCategory"),placeholder:selectClass,shouldShowChevronIcon:!1,style:{width:"100%"}},style:x}),
|
|
86646
86646
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextField,{additionalInfoLabel:strings$1c.lineItemDescriptionHint,isOptional:!0,label:{label:S(description2$4),width:o},style:x,text:{defaultValue:p.description,name:y("description"),placeholder:addDescription$1,type:"text"}}),
|
|
86647
86647
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextField,{additionalInfoLabel:withCatalogPricePointNouns(strings$1c.subFamilyInvoiceNotesHint,r),isOptional:!0,label:{label:S(invoicingCommon$q.invoiceNotes),width:o},style:x,text:{defaultValue:p.invoiceNotes,name:y("invoiceNotes"),placeholder:invoicingCommon$q.addInvoiceNotes,type:"text"}}),
|
|
86648
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledSingleSelectPickerField,{isDisabled:f,label:{fieldCode:"pricing_model",label:S(invoicingCommon$q.labelPricingModel),width:o},singleSelectPickerField:{defaultValue:p.pricingModel,name:y("pricingModel")},style:x}),!c&&/* @__PURE__ */jsxRuntimeExports.jsx(LabeledFormattedTextField,{formattedTextField:{allowLeadingZeros:!1,decimalScale:2,defaultValue:p.priceDollars??void 0,fixedDecimalScale:!1,isDisabled:f,name:y("priceDollars"),registerOptions:!0===a?void 0:{validate:e=>"number"==typeof e&&!Number.isNaN(e)},style:m,placeholder:invoicingCommon$q.placeholderPriceZero,prefix:currencySymbol$2,returnValueType:"floatValue",thousandSeparator:!0,type:"number"},label:{label:S(priceText),width:o},style:x}),c&&/* @__PURE__ */jsxRuntimeExports.jsx(CatalogSubFamilyTierTable,{disabled:a,name:y("tiers"),pricingModel:s,style:x,tierTypeOptionsByPricingModel:d,onChange:g??noop}),
|
|
86648
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledSingleSelectPickerField,{isDisabled:f,label:{fieldCode:"pricing_model",label:S(invoicingCommon$q.labelPricingModel),width:o},singleSelectPickerField:{defaultValue:p.pricingModel,name:y("pricingModel")},style:x}),!c&&/* @__PURE__ */jsxRuntimeExports.jsx(LabeledFormattedTextField,{formattedTextField:{allowLeadingZeros:!1,decimalScale:2,defaultValue:p.priceDollars??void 0,fixedDecimalScale:!1,isDisabled:f,name:y("priceDollars"),registerOptions:!0===a?void 0:{validate:e=>"number"==typeof e&&!Number.isNaN(e)},style:m,placeholder:invoicingCommon$q.placeholderPriceZero,prefix:currencySymbol$2,returnValueType:"floatValue",thousandSeparator:!0,type:"number"},label:{label:S(priceText),width:o},style:x}),c&&/* @__PURE__ */jsxRuntimeExports.jsx(CatalogSubFamilyTierTable,{disabled:a,name:y("tiers"),pricingModel:s,style:x,tierTypeOptionsByPricingModel:d,onChange:g??noop$1}),
|
|
86649
86649
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextWithSingleSelectField,{additionalInfoLabel:strings$1c.hintAddBillingPeriod,isDisabled:f,label:S(invoicingCommon$q.labelBillingPeriod),labelWidth:o,selectDefaultValue:p.periodUnit,selectName:y("periodUnit"),style:x,textName:y("period"),onTextKeyDown:allowOnlyNumericKeys}),
|
|
86650
86650
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextWithSingleSelectField,{isDisabled:f,isOptional:!0,label:S(invoicingCommon$q.trialPeriod),labelWidth:o,selectDefaultValue:p.trialPeriodUnit,selectName:y("trialPeriodUnit"),style:x,textName:y("trialPeriod"),textPlaceholder:strings$1c.placeholderTrialPeriodExample,onTextKeyDown:allowOnlyNumericKeys}),l&&/* @__PURE__ */jsxRuntimeExports.jsx(LabeledSingleSelectPickerField,{isDisabled:f,label:{label:S(strings$1c.labelTrialEndAction),width:o},singleSelectPickerField:{defaultValue:p.trialEndAction,name:y("trialEndAction")},style:x}),
|
|
86651
86651
|
/* @__PURE__ */jsxRuntimeExports.jsx(LabeledTextField,{additionalInfoLabel:strings$1c.hintBillingCyclesUnlimited,isDisabled:f,label:{label:S(billingCyclesText),width:o},style:x,text:{defaultValue:p.billingCycles,name:y("billingCycles"),placeholder:strings$1c.placeholderAddBillingCycles,type:"text"}}),n&&/* @__PURE__ */jsxRuntimeExports.jsx(LabeledSingleSelectPickerField,{isDisabled:f,label:{label:S(strings$1c.labelProrationType),width:o},singleSelectPickerField:{defaultValue:p.prorationType,name:y("prorationType")},style:x}),
|
|
@@ -91470,7 +91470,7 @@ return jsxRuntimeExports.jsx(FormProvider,{...S,children:/* @__PURE__ */jsxRunti
|
|
|
91470
91470
|
display: flex;
|
|
91471
91471
|
justify-content: flex-end;
|
|
91472
91472
|
padding: ${Space.sp0} ${Space.sp3};
|
|
91473
|
-
`,KPI_TILE_BREAKDOWN_PLACEHOLDER=" ";function formatAmount$1(e){return amountToString("0,0",e)}function buildTypeBreakdown(e,t){const n={};for(const o of e){const e=getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>`${n} ${t[e]??e}`).join(" • ")}function buildTypeBreakdownItems(e,t){const n={};for(const o of e){const e=getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>({text:t[e]??e,amount:n.toString()}))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$a,oneTimeAccrualType:oneTimeAccrualType$2}},common:{strings:{hyphen:hyphen$k}},dateFormat:dateFormat$p}=appLocale.getLocalizedStrings();function getActualMatchingFromSelector(e){return e.actualMatching}function getAccruedAmount(e){return e.accruedAmount?.amount??e.estimatedAmount.amount}function isGroupedClearedMatch(e){const t=e?.groupSum?.amount;if(null==t||t<=0)return!1;const n=e?.matchShape;return"1:N"===n||"N:1"===n||(e?.accrualIds?.length??0)>1}function getActualAmount(e){return null!=e.actualAmount?e.actualAmount.amount:"pending_review"===e.kind?e.matchSuggestion?.matchedAmount?.amount:e.cleared?.matchedAmount?.amount}function getVariancePercent(e){if(isGroupedClearedMatch(e.cleared)){const t=e.cleared?.matchedAmount?.amount,n=e.cleared?.groupSum?.amount;if(null==t||null==n||0===n)return;return(t-n)/n*100}const t=getAccruedAmount(e),n=getActualAmount(e);if(null!=n&&0!==t)return(n-t)/t*100}const VARIANCE_AUTO_REVERSE_THRESHOLD_PERCENT=5,VARIANCE_REVIEW_THRESHOLD_PERCENT=15;function formatVariancePercent(e){const t=Math.round(10*e)/10;return`${t>0?"+":""}${t.toFixed(1)}%`}function isVarianceAboveReviewThreshold(e){return null!=e&&Math.abs(e)>VARIANCE_REVIEW_THRESHOLD_PERCENT}function getVarianceCapsuleType(e){const t=Math.abs(e);return t<=VARIANCE_AUTO_REVERSE_THRESHOLD_PERCENT?"success":t<=VARIANCE_REVIEW_THRESHOLD_PERCENT?"warning":"attention"}function getMatchTierKey(e){return e.cleared?.matchTier??e.matchSuggestion?.matchTier}function getMatchTierLabel(e){const t=getMatchTierKey(e);return"tier_1"===t?actualMatchingStrings$a.matchTier.exact:"tier_2"===t?actualMatchingStrings$a.matchTier.fuzzy:"manual"===t?actualMatchingStrings$a.matchTier.manual:"agent"===e.origin?actualMatchingStrings$a.matchTier.aiAccountant:hyphen$k}function getMatchTierCapsuleType(e){const t=getMatchTierKey(e);return"tier_1"===t?"success":"tier_2"===t?"warning":"manual"===t?"default":"info"}function getActualMatchingTypeLabel(e){const t=e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType;return null!=t&&""!==t?formatTransactionTypeLabel(t):oneTimeAccrualType$2}function getActualMatchingTypeCapsuleType(e){const t=(e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType??"").toLowerCase();return"bill"===t?"info":"expense"===t||t.includes("card")||"credit_card_payment"===t?"success":t.includes("payroll")?"attention":t.includes("ach")||"check"===t||"transfer"===t?"warning":"default"}function formatActualMatchingServiceMonth(e){return/^\d{4}-\d{2}$/.test(e)?zeniDate(`${e}-01`).format(dateFormat$p.visual.MMMYYYYFormat):""===e?hyphen$k:e}function toServiceMonthIndex(e){const t=/^(\d{4})-(\d{2})$/.exec(e);return null==t?null:12*Number(t[1])+Number(t[2])-1}function formatServiceMonthName(e){return zeniDate(`${e}-01`).format("MMM")}function getUniqueSortedServiceMonths(e){return[...new Set(e.filter(e=>null!=toServiceMonthIndex(e)))].sort((e,t)=>(toServiceMonthIndex(e)??0)-(toServiceMonthIndex(t)??0))}function collapseServiceMonthRuns(e){const t=[];return e.forEach(e=>{const n=t.at(-1),o=toServiceMonthIndex(e),i=null!=n?toServiceMonthIndex(n.end):null;null==n||null==o||null==i||o!==i+1?t.push({start:e,end:e}):n.end=e}),t}function formatServiceMonthRun(e,t){const n=formatServiceMonthName(e.start),o=e.start.slice(0,4);if(e.start===e.end)return t?`${n} ${o}`:n;const i=formatServiceMonthName(e.end),r=e.end.slice(0,4);if(o===r){const e=`${n}-${i}`;return t?`${e} ${o}`:e}return`${n} ${o}-${i} ${r}`}function formatActualMatchingServiceMonths(e){const t=getUniqueSortedServiceMonths(e);if(0===t.length)return hyphen$k;if(1===t.length)return formatActualMatchingServiceMonth(t[0]);const n=collapseServiceMonthRuns(t);if(1===new Set(t.map(e=>e.slice(0,4))).size){const e=t[0].slice(0,4);return`${n.map(e=>formatServiceMonthRun(e,!1)).join(", ")} ${e}`}return n.map(e=>formatServiceMonthRun(e,!0)).join(", ")}function getActualMatchingServiceMonths(e){const t=(e.groupedMembers??[]).map(e=>e.serviceMonth).filter(e=>null!=e&&""!==e);return t.length>0?getUniqueSortedServiceMonths(t):""===e.serviceMonth?[]:getUniqueSortedServiceMonths([e.serviceMonth])}function getActualMatchingServiceLabel(e){return formatActualMatchingServiceMonths(getActualMatchingServiceMonths(e))}function getReceivedDate(e){if(null!=e.reversalDate)return e.reversalDate;if(null==e.transactionDate||""===e.transactionDate)return;const t=zeniDate(e.transactionDate);return Number.isFinite(t.valueOf())?t:void 0}function getReceivedLabel(e){return getReceivedDate(e)?.format(dateFormat$p.visual.MMMDFormat)??hyphen$k}function getReversesGroupedCount(e){const t=e.intendedAccrualIds;if(null!=t&&t.length>0)return t.length;const n=e.leftovers?.length??0,o=e.groupedAccrualIds??e.cleared?.accrualIds;return(null!=o&&o.length>0?o.length:1)+n}function isGroupedActualMatchingRow(e){return getReversesGroupedCount(e)>1}function groupedMemberFromRow(e,t){return t!==e.accrualId?{accrualId:t}:{accrualId:t,estimatedAmount:e.estimatedAmount,jeDebitAccountName:e.jeDebitAccountName,memo:e.memo,reversalTransactionId:e.reversalTransactionId,reversalTransactionIntegrationId:e.reversalTransactionIntegrationId,serviceMonth:e.serviceMonth,transactionId:e.transactionId,transactionIntegrationId:e.transactionIntegrationId}}const MAX_GROUPED_MENU_ITEMS=12;function getGroupedAccrualMenuItems(e){if(!isGroupedActualMatchingRow(e))return[];if(null!=e.groupedMembers&&e.groupedMembers.length>0)return e.groupedMembers.slice(0,MAX_GROUPED_MENU_ITEMS);const t=e.groupedAccrualIds??e.cleared?.accrualIds;return null==t||t.length<=1?[]:t.slice(0,MAX_GROUPED_MENU_ITEMS).map(t=>groupedMemberFromRow(e,t))}function getReversesLabel(e){const t=getReversesGroupedCount(e);if(t>1)return actualMatchingStrings$a.reversesCount.replace("{count}",String(t));const n=e.memo.trim();return""!==n?n:hyphen$k}function getReversesTooltip(e){if(isGroupedActualMatchingRow(e)){const t=getGroupedAccrualMenuItems(e).map(e=>e.memo?.trim()).filter(e=>null!=e&&""!==e),n=[...new Set(t)];if(n.length>0)return n.join(", ")}return e.memo.trim()}function isSameMatchVendor(e,t){const n=e.vendorId,o=t.vendorId;return null!=n&&""!==n&&null!=o&&""!==o&&n===o}const DEFAULT_DISPLAY_CURRENCY={amount:0,currencyCode:"USD",currencySymbol:"$"};function getAccruedDisplayAmount(e){if(null!=e.accruedAmount)return e.accruedAmount;const t=e.groupedMembers;if(null!=t&&t.length>1){const n=t.map(e=>e.estimatedAmount);if(n.every(e=>null!=e)){const t=n.reduce((e,t)=>e+t.amount,0);return toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}}return e.estimatedAmount}function getActualDisplayAmount(e){const t=getActualAmount(e);if(null!=t)return toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}function getActualMatchingDisplayCurrency(e){return e[0]?.estimatedAmount??DEFAULT_DISPLAY_CURRENCY}function formatKpiAmount(e,t){return formatAmount$1(toAmount(e,t.currencyCode,t.currencySymbol))}function isHumanReversedRow(e){return"manually_reversed"===e.kind||"manual_reverse"===e.reversalTrigger}function isAiReversedBy(e){return"pending_review"===e.kind||!isHumanReversedRow(e)}function getColumnKeyForActualMatchingSortKey(e){switch(e){case"vendor":return"vendor";case"type":return"type";case"amount":case"accrued":return"accrued";case"actual":return"actual";case"variance":return"variance";default:return"received"}}function getActualMatchingColumnSortValue(e,t){switch(t){case"received":return getReceivedDate(e)?.valueOf()??null;case"vendor":return e.vendorName.toLowerCase();case"type":return getActualMatchingTypeLabel(e).toLowerCase();case"accrued":return getAccruedAmount(e);case"actual":return getActualAmount(e)??null;case"variance":return getVariancePercent(e)??null;default:return null}}function sortActualMatchingRowsByColumn(e,t,n){const o="ascending"===n?1:-1;return[...e].sort((e,n)=>{const i=getActualMatchingColumnSortValue(e,t),r=getActualMatchingColumnSortValue(n,t);return null==i&&null==r?0:null==i?1:null==r?-1:"number"==typeof i&&"number"==typeof r?(i-r)*o:String(i).localeCompare(String(r),void 0,{numeric:!0,sensitivity:"base"})*o})}function getUndoReversalAccrualIds(e){const t=(e.groupedMembers??[]).map(e=>e.accrualId).filter(e=>""!==e);return t.length>0?Array.from(new Set(t)):""!==e.accrualId?[e.accrualId]:[]}const JOURNAL_ENTRY_TRANSACTION_TYPE="journal_entry";function getAccrualJournalEntryTransaction(e){const t=e.transactionId??"";return""===t?null:{id:toTransactionDetailRouteId(t,e.transactionIntegrationId??""),type:JOURNAL_ENTRY_TRANSACTION_TYPE}}function getReversalJournalEntryTransaction(e){const t=e.reversalTransactionId??"";return""===t?null:{id:toTransactionDetailRouteId(t,e.reversalTransactionIntegrationId??""),type:JOURNAL_ENTRY_TRANSACTION_TYPE}}function toTransactionDetailRouteId(e,t){return e.includes(":")||""===t?e:`${e}:${t}`}function getMatchedBillTransaction(e){const t=[...e.members,...e.leftovers??[]];for(const n of t){const t=n.cleared??n.matchSuggestion,o=t?.matchedTransactionId??"";if(""===o)continue;const i=t?.matchedTransactionType??e.transactionType;if(""===i)continue;return{id:toTransactionDetailRouteId(o,t?.matchedTransactionIntegrationId??e.transactionIntegrationId??""),type:i}}return null}function memberJeId(e,t,n){return null!=e&&""!==e?e:n?t:e}function matchFromListRow(e){const t=e.groupedMembers??[],n=t.length>1?t.map(t=>({...e,accrualId:t.accrualId,serviceMonth:t.serviceMonth??e.serviceMonth,estimatedAmount:t.estimatedAmount??e.estimatedAmount,jeDebitAccountName:t.jeDebitAccountName??e.jeDebitAccountName,memo:t.memo??e.memo,transactionId:memberJeId(t.transactionId,e.transactionId,t.accrualId===e.accrualId),transactionIntegrationId:memberJeId(t.transactionIntegrationId,e.transactionIntegrationId,t.accrualId===e.accrualId),reversalTransactionId:memberJeId(t.reversalTransactionId,e.reversalTransactionId,t.accrualId===e.accrualId),reversalTransactionIntegrationId:memberJeId(t.reversalTransactionIntegrationId,e.reversalTransactionIntegrationId,t.accrualId===e.accrualId)})):[e];return{matchId:e.matchId,kind:e.kind,members:n,leftovers:[],transactionType:e.transactionType??"bill",transactionIntegrationId:e.cleared?.matchedTransactionIntegrationId??e.matchSuggestion?.matchedTransactionIntegrationId??parseActualMatchingMatchId(e.matchId??"")?.transactionIntegrationId??"",transactionDate:e.transactionDate,vendorName:e.vendorName,vendorId:e.vendorId,accruedAmount:e.accruedAmount,actualAmount:e.actualAmount,matchTier:e.matchTier,matchShape:e.matchShape}}function getUndoReversalAccrualIdsFromMatch(e){return Array.from(new Set(e.members.map(e=>e.accrualId).filter(e=>""!==e)))}function getApproveAndReverseParams(e){const t=e.members.map(e=>e.matchSuggestion).find(e=>null!=e?.matchedTransactionId&&""!==e.matchedTransactionId),n=t?.matchedTransactionId??"",o=t?.matchedTransactionIntegrationId??e.transactionIntegrationId,i=(t?.matchedTransactionType??e.transactionType).toLowerCase(),r=suggestionLineIds(t),a=getUndoReversalAccrualIdsFromMatch(e);return""===n||""===o||""===i||0===r.length||0===a.length?null:{accrualIds:a,lineIds:r,transactionId:n,transactionIntegrationId:o,transactionSyncToken:t?.matchedTransactionSyncToken??"",transactionType:i}}function suggestionLineIds(e){const t=(e?.consumedLineIds??[]).filter(e=>""!==e);if(t.length>0)return t;const n=e?.matchedLineId??"";return""===n?[]:[n]}function getLeftoverWarningTooltip(e){return(e.leftovers??[]).map(e=>`${null!=e.memo&&""!==e.memo.trim()?e.memo.trim():hyphen$k} · ${null!=e.serviceMonth&&""!==e.serviceMonth?formatActualMatchingServiceMonth(e.serviceMonth):hyphen$k} · ${null!=e.estimatedAmount?formatAmount$1(e.estimatedAmount):hyphen$k}`).join("\n")}function pruneSelectionToVisibleResults(e,t,n){return"Completed"!==n?e:e.filter(e=>t.has(e))}function transactionGroupKey(e){return`${e.transactionType}:${e.transactionIntegrationId}`}function groupTransactionSearchResults(e){const t=[],n=/* @__PURE__ */new Map;for(const o of e){const e=transactionGroupKey(o),i=n.get(e);null==i?(n.set(e,t.length),t.push([o])):t[i].push(o)}return t}function nextSelectedTransactionGroup(e,t){return t.map(e=>getTransactionLineKey(e.transactionId,e.lineId))}function partialLineSelectionLabel(e,t,n){return t<=1||e<=0||e>=t?null:n.replace("{selected}",String(e)).replace("{total}",String(t))}function nextSelectedTransactionLines(e,t,n){if(e.includes(t))return e.filter(e=>e!==t);const o=n.find(e=>getTransactionLineKey(e.transactionId,e.lineId)===t);if(null==o)return e;if(0===e.length)return[t];const i=n.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e[0]);return null!=i&&transactionGroupKey(i)===transactionGroupKey(o)?[...e,t]:[t]}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$9}},common:{strings:{middleDot:middleDot$2}}}=appLocale.getLocalizedStrings();function KpiTile$3({hover:e,icon:t,label:n,primary:o,footer:i,footerTone:r="default",secondary:a,secondaryWithDot:s=!1}){/* @__PURE__ */
|
|
91473
|
+
`,KPI_TILE_BREAKDOWN_PLACEHOLDER=" ";function formatAmount$1(e){return amountToString("0,0",e)}function buildTypeBreakdown(e,t){const n={};for(const o of e){const e=getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>`${n} ${t[e]??e}`).join(" • ")}function buildTypeBreakdownItems(e,t){const n={};for(const o of e){const e=getJEScheduleRowType(o);null!=e&&(n[e]=(n[e]??0)+1)}return Object.entries(n).filter(([,e])=>e>0).map(([e,n])=>({text:t[e]??e,amount:n.toString()}))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$a,oneTimeAccrualType:oneTimeAccrualType$2}},common:{strings:{hyphen:hyphen$k}},dateFormat:dateFormat$p}=appLocale.getLocalizedStrings();function getActualMatchingFromSelector(e){return e.actualMatching}function getAccruedAmount(e){return e.accruedAmount?.amount??e.estimatedAmount.amount}function isGroupedClearedMatch(e){const t=e?.groupSum?.amount;if(null==t||t<=0)return!1;const n=e?.matchShape;return"1:N"===n||"N:1"===n||(e?.accrualIds?.length??0)>1}function getActualAmount(e){return null!=e.actualAmount?e.actualAmount.amount:"pending_review"===e.kind?e.matchSuggestion?.matchedAmount?.amount:e.cleared?.matchedAmount?.amount}function getVariancePercent(e){if(isGroupedClearedMatch(e.cleared)){const t=e.cleared?.matchedAmount?.amount,n=e.cleared?.groupSum?.amount;if(null==t||null==n||0===n)return;return(t-n)/n*100}const t=getAccruedAmount(e),n=getActualAmount(e);if(null!=n&&0!==t)return(n-t)/t*100}const VARIANCE_AUTO_REVERSE_THRESHOLD_PERCENT=5,VARIANCE_REVIEW_THRESHOLD_PERCENT=15;function formatVariancePercent(e){const t=Math.round(10*e)/10;return`${t>0?"+":""}${t.toFixed(1)}%`}function isVarianceAboveReviewThreshold(e){return null!=e&&Math.abs(e)>VARIANCE_REVIEW_THRESHOLD_PERCENT}function getVarianceCapsuleType(e){const t=Math.abs(e);return t<=VARIANCE_AUTO_REVERSE_THRESHOLD_PERCENT?"success":t<=VARIANCE_REVIEW_THRESHOLD_PERCENT?"warning":"attention"}function getMatchTierKey(e){return e.cleared?.matchTier??e.matchSuggestion?.matchTier}function getMatchTierLabel(e){const t=getMatchTierKey(e);return"tier_1"===t?actualMatchingStrings$a.matchTier.exact:"tier_2"===t?actualMatchingStrings$a.matchTier.fuzzy:"manual"===t?actualMatchingStrings$a.matchTier.manual:"agent"===e.origin?actualMatchingStrings$a.matchTier.aiAccountant:hyphen$k}function getMatchTierCapsuleType(e){const t=getMatchTierKey(e);return"tier_1"===t?"success":"tier_2"===t?"warning":"manual"===t?"default":"info"}function getActualMatchingTypeLabel(e){const t=e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType;return null!=t&&""!==t?formatTransactionTypeLabel(t):oneTimeAccrualType$2}function getActualMatchingTypeCapsuleType(e){const t=(e.cleared?.matchedTransactionType??e.matchSuggestion?.matchedTransactionType??"").toLowerCase();return"bill"===t?"info":"expense"===t||t.includes("card")||"credit_card_payment"===t?"success":t.includes("payroll")?"attention":t.includes("ach")||"check"===t||"transfer"===t?"warning":"default"}function formatActualMatchingServiceMonth(e){return/^\d{4}-\d{2}$/.test(e)?zeniDate(`${e}-01`).format(dateFormat$p.visual.MMMYYYYFormat):""===e?hyphen$k:e}function toServiceMonthIndex(e){const t=/^(\d{4})-(\d{2})$/.exec(e);return null==t?null:12*Number(t[1])+Number(t[2])-1}function formatServiceMonthName(e){return zeniDate(`${e}-01`).format("MMM")}function getUniqueSortedServiceMonths(e){return[...new Set(e.filter(e=>null!=toServiceMonthIndex(e)))].sort((e,t)=>(toServiceMonthIndex(e)??0)-(toServiceMonthIndex(t)??0))}function collapseServiceMonthRuns(e){const t=[];return e.forEach(e=>{const n=t.at(-1),o=toServiceMonthIndex(e),i=null!=n?toServiceMonthIndex(n.end):null;null==n||null==o||null==i||o!==i+1?t.push({start:e,end:e}):n.end=e}),t}function formatServiceMonthRun(e,t){const n=formatServiceMonthName(e.start),o=e.start.slice(0,4);if(e.start===e.end)return t?`${n} ${o}`:n;const i=formatServiceMonthName(e.end),r=e.end.slice(0,4);if(o===r){const e=`${n}-${i}`;return t?`${e} ${o}`:e}return`${n} ${o}-${i} ${r}`}function formatActualMatchingServiceMonths(e){const t=getUniqueSortedServiceMonths(e);if(0===t.length)return hyphen$k;if(1===t.length)return formatActualMatchingServiceMonth(t[0]);const n=collapseServiceMonthRuns(t);if(1===new Set(t.map(e=>e.slice(0,4))).size){const e=t[0].slice(0,4);return`${n.map(e=>formatServiceMonthRun(e,!1)).join(", ")} ${e}`}return n.map(e=>formatServiceMonthRun(e,!0)).join(", ")}function getActualMatchingServiceMonths(e){const t=(e.groupedMembers??[]).map(e=>e.serviceMonth).filter(e=>null!=e&&""!==e);return t.length>0?getUniqueSortedServiceMonths(t):""===e.serviceMonth?[]:getUniqueSortedServiceMonths([e.serviceMonth])}function getActualMatchingServiceLabel(e){return formatActualMatchingServiceMonths(getActualMatchingServiceMonths(e))}function getReceivedDate(e){if(null!=e.reversalDate)return e.reversalDate;if(null==e.transactionDate||""===e.transactionDate)return;const t=zeniDate(e.transactionDate);return Number.isFinite(t.valueOf())?t:void 0}function getReceivedLabel(e){return getReceivedDate(e)?.format(dateFormat$p.visual.MMMDFormat)??hyphen$k}function getReversesGroupedCount(e){const t=e.intendedAccrualIds;if(null!=t&&t.length>0)return t.length;const n=e.leftovers?.length??0,o=e.groupedAccrualIds??e.cleared?.accrualIds;return(null!=o&&o.length>0?o.length:1)+n}function isGroupedActualMatchingRow(e){return getReversesGroupedCount(e)>1}function groupedMemberFromRow(e,t){return t!==e.accrualId?{accrualId:t}:{accrualId:t,estimatedAmount:e.estimatedAmount,jeDebitAccountName:e.jeDebitAccountName,memo:e.memo,reversalTransactionId:e.reversalTransactionId,reversalTransactionIntegrationId:e.reversalTransactionIntegrationId,serviceMonth:e.serviceMonth,transactionId:e.transactionId,transactionIntegrationId:e.transactionIntegrationId}}const MAX_GROUPED_MENU_ITEMS=12;function getGroupedAccrualMenuItems(e){if(!isGroupedActualMatchingRow(e))return[];if(null!=e.groupedMembers&&e.groupedMembers.length>0)return e.groupedMembers.slice(0,MAX_GROUPED_MENU_ITEMS);const t=e.groupedAccrualIds??e.cleared?.accrualIds;return null==t||t.length<=1?[]:t.slice(0,MAX_GROUPED_MENU_ITEMS).map(t=>groupedMemberFromRow(e,t))}function getReversesLabel(e){const t=getReversesGroupedCount(e);if(t>1)return actualMatchingStrings$a.reversesCount.replace("{count}",String(t));const n=e.memo.trim();return""!==n?n:hyphen$k}function getReversesTooltip(e){if(isGroupedActualMatchingRow(e)){const t=getGroupedAccrualMenuItems(e).map(e=>e.memo?.trim()).filter(e=>null!=e&&""!==e),n=[...new Set(t)];if(n.length>0)return n.join(", ")}return e.memo.trim()}function isSameMatchVendor(e,t){const n=e.vendorId,o=t.vendorId;return null!=n&&""!==n&&null!=o&&""!==o&&n===o}const DEFAULT_DISPLAY_CURRENCY={amount:0,currencyCode:"USD",currencySymbol:"$"};function getAccruedDisplayAmount(e){if(null!=e.accruedAmount)return e.accruedAmount;const t=e.groupedMembers;if(null!=t&&t.length>1){const n=t.map(e=>e.estimatedAmount);if(n.every(e=>null!=e)){const t=n.reduce((e,t)=>e+t.amount,0);return toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}}return e.estimatedAmount}function getActualDisplayAmount(e){const t=getActualAmount(e);if(null!=t)return toAmount(t,e.estimatedAmount.currencyCode,e.estimatedAmount.currencySymbol)}function getActualMatchingDisplayCurrency(e){return e[0]?.estimatedAmount??DEFAULT_DISPLAY_CURRENCY}function formatKpiAmount(e,t){return formatAmount$1(toAmount(e,t.currencyCode,t.currencySymbol))}function isHumanReversedRow(e){return"manually_reversed"===e.kind||"manual_reverse"===e.reversalTrigger}function isAiReversedBy(e){return"pending_review"===e.kind||!isHumanReversedRow(e)}function getColumnKeyForActualMatchingSortKey(e){switch(e){case"vendor":return"vendor";case"type":return"type";case"amount":case"accrued":return"accrued";case"actual":return"actual";case"variance":return"variance";default:return"received"}}function getActualMatchingColumnSortValue(e,t){switch(t){case"received":return getReceivedDate(e)?.valueOf()??null;case"vendor":return e.vendorName.toLowerCase();case"type":return getActualMatchingTypeLabel(e).toLowerCase();case"accrued":return getAccruedAmount(e);case"actual":return getActualAmount(e)??null;case"variance":return getVariancePercent(e)??null;default:return null}}function sortActualMatchingRowsByColumn(e,t,n){const o="ascending"===n?1:-1;return[...e].sort((e,n)=>{const i=getActualMatchingColumnSortValue(e,t),r=getActualMatchingColumnSortValue(n,t);return null==i&&null==r?0:null==i?1:null==r?-1:"number"==typeof i&&"number"==typeof r?(i-r)*o:String(i).localeCompare(String(r),void 0,{numeric:!0,sensitivity:"base"})*o})}function getUndoReversalAccrualIds(e){const t=(e.groupedMembers??[]).map(e=>e.accrualId).filter(e=>""!==e);return t.length>0?Array.from(new Set(t)):""!==e.accrualId?[e.accrualId]:[]}const JOURNAL_ENTRY_TRANSACTION_TYPE="journal_entry";function getAccrualJournalEntryTransaction(e){const t=e.transactionId??"";return""===t?null:{id:toTransactionDetailRouteId(t,e.transactionIntegrationId??""),type:JOURNAL_ENTRY_TRANSACTION_TYPE}}function getReversalJournalEntryTransaction(e){const t=e.reversalTransactionId??"";return""===t?null:{id:toTransactionDetailRouteId(t,e.reversalTransactionIntegrationId??""),type:JOURNAL_ENTRY_TRANSACTION_TYPE}}function toTransactionDetailRouteId(e,t){return e.includes(":")||""===t?e:`${e}:${t}`}function getMatchedBillTransaction(e){const t=[...e.members,...e.leftovers??[]];for(const n of t){const t=n.cleared??n.matchSuggestion,o=t?.matchedTransactionId??"";if(""===o)continue;const i=t?.matchedTransactionType??e.transactionType;if(""===i)continue;return{id:toTransactionDetailRouteId(o,t?.matchedTransactionIntegrationId??e.transactionIntegrationId??""),type:i}}return null}function memberJeId(e,t,n){return null!=e&&""!==e?e:n?t:e}function matchFromListRow(e){const t=e.groupedMembers??[],n=t.length>1?t.map(t=>({...e,accrualId:t.accrualId,serviceMonth:t.serviceMonth??e.serviceMonth,estimatedAmount:t.estimatedAmount??e.estimatedAmount,jeDebitAccountName:t.jeDebitAccountName??e.jeDebitAccountName,memo:t.memo??e.memo,transactionId:memberJeId(t.transactionId,e.transactionId,t.accrualId===e.accrualId),transactionIntegrationId:memberJeId(t.transactionIntegrationId,e.transactionIntegrationId,t.accrualId===e.accrualId),reversalTransactionId:memberJeId(t.reversalTransactionId,e.reversalTransactionId,t.accrualId===e.accrualId),reversalTransactionIntegrationId:memberJeId(t.reversalTransactionIntegrationId,e.reversalTransactionIntegrationId,t.accrualId===e.accrualId)})):[e];return{matchId:e.matchId,kind:e.kind,members:n,leftovers:[],transactionType:e.transactionType??"bill",transactionIntegrationId:e.cleared?.matchedTransactionIntegrationId??e.matchSuggestion?.matchedTransactionIntegrationId??parseActualMatchingMatchId(e.matchId??"")?.transactionIntegrationId??"",transactionDate:e.transactionDate,vendorName:e.vendorName,vendorId:e.vendorId,accruedAmount:e.accruedAmount,actualAmount:e.actualAmount,matchTier:e.matchTier,matchShape:e.matchShape}}function getUndoReversalAccrualIdsFromMatch(e){return Array.from(new Set(e.members.map(e=>e.accrualId).filter(e=>""!==e)))}function getApproveAndReverseParams(e){const t=e.members.map(e=>e.matchSuggestion).find(e=>null!=e?.matchedTransactionId&&""!==e.matchedTransactionId),n=t?.matchedTransactionId??"",o=t?.matchedTransactionIntegrationId??e.transactionIntegrationId,i=(t?.matchedTransactionType??e.transactionType).toLowerCase(),r=suggestionLineIds(t),a=getUndoReversalAccrualIdsFromMatch(e);return""===n||""===o||""===i||0===r.length||0===a.length?null:{accrualIds:a,lineIds:r,transactionId:n,transactionIntegrationId:o,transactionSyncToken:t?.matchedTransactionSyncToken??"",transactionType:i}}function suggestionLineIds(e){const t=(e?.consumedLineIds??[]).filter(e=>""!==e);if(t.length>0)return t;const n=e?.matchedLineId??"";return""===n?[]:[n]}function getLeftoverWarningTooltip(e){return(e.leftovers??[]).map(e=>`${null!=e.memo&&""!==e.memo.trim()?e.memo.trim():hyphen$k} · ${null!=e.serviceMonth&&""!==e.serviceMonth?formatActualMatchingServiceMonth(e.serviceMonth):hyphen$k} · ${null!=e.estimatedAmount?formatAmount$1(e.estimatedAmount):hyphen$k}`).join("\n")}function pruneSelectionToVisibleResults(e,t,n){return"Completed"!==n?e:e.filter(e=>t.has(e))}function transactionGroupKey(e){const t=(e.transactionIntegrationId??"").trim();return""===t?`${e.transactionType}:${e.transactionId}`:`${e.transactionType}:${t}`}function groupTransactionSearchResults(e){const t=[],n=/* @__PURE__ */new Map;for(const o of e){const e=transactionGroupKey(o),i=n.get(e);null==i?(n.set(e,t.length),t.push([o])):t[i].push(o)}return t}function nextSelectedTransactionGroup(e,t){return t.map(e=>getTransactionLineKey(e.transactionId,e.lineId))}function partialLineSelectionLabel(e,t,n){return t<=1||e<=0||e>=t?null:n.replace("{selected}",String(e)).replace("{total}",String(t))}function nextSelectedTransactionLines(e,t,n){if(e.includes(t))return e.filter(e=>e!==t);const o=n.find(e=>getTransactionLineKey(e.transactionId,e.lineId)===t);if(null==o)return e;if(0===e.length)return[t];const i=n.find(t=>getTransactionLineKey(t.transactionId,t.lineId)===e[0]);return null!=i&&transactionGroupKey(i)===transactionGroupKey(o)?[...e,t]:[t]}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$9}},common:{strings:{middleDot:middleDot$2}}}=appLocale.getLocalizedStrings();function KpiTile$3({hover:e,icon:t,label:n,primary:o,footer:i,footerTone:r="default",secondary:a,secondaryWithDot:s=!1}){/* @__PURE__ */
|
|
91474
91474
|
return jsxRuntimeExports.jsx(Tile$2,{children:/* @__PURE__ */jsxRuntimeExports.jsxs(Header$6,{children:[
|
|
91475
91475
|
/* @__PURE__ */jsxRuntimeExports.jsxs(TitleRow$2,{children:[
|
|
91476
91476
|
/* @__PURE__ */jsxRuntimeExports.jsx(TileLabel$2,{children:n}),
|
|
@@ -91813,7 +91813,7 @@ return jsxRuntimeExports.jsx(GroupHeaderButton,{type:"button",onClick:o,children
|
|
|
91813
91813
|
color: ${e=>e.theme.colors.hero};
|
|
91814
91814
|
`,GroupHeaderCount=styled$2(StandardMedium)`
|
|
91815
91815
|
color: ${e=>e.theme.colors.hero};
|
|
91816
|
-
`;function transactionLineLabel(e){const t=(e.lineDescription??"").trim();if(""!==t)return t;const n=(e.transactionMemo??"").trim();return""!==n?n:(e.accountName??"").trim()}const{dateFormat:dateFormat$o,common:{strings:{hyphen:hyphen$h}}}=appLocale.getLocalizedStrings();function formatServiceMonthLabel(e){return""===e?hyphen$h:zeniDate(`${e}-01`).format(dateFormat$o.visual.MMMYYYYFormat)}function formatAccrualJeDate(e,t){const n=formatServiceMonthLabel(e);return n===hyphen$h?t:`${n}, ${t}`}function formatJeShortDate(e){if(""===e)return hyphen$h;const t=zeniDate(e);return null!=t&&"function"==typeof t.isValid&&t.isValid()?t.format(dateFormat$o.visual.MMMDFormat):e}function sumAccruedAmount(e){return e.reduce((e,t)=>e+(t.estimatedAmount?.amount??0),0)}function variancePercent(e,t){return 0===t?null:(e-t)/t*100}function transactionListMeta(e,t){return{dateLabel:t,memo:(e.transactionMemo??"").trim()}}function transactionMatchedLineCopy(e){const t=transactionLineLabel(e),n=e.transactionIntegrationId.trim(),o=""===n?e.vendorName:`${e.vendorName} — ${n}`;return""===t?o:`${o} · ${t}`}function creditAccountName(e,t){return null!=e.jeCreditAccountName&&""!==e.jeCreditAccountName?e.jeCreditAccountName:t}function debitAccountName(e,t){return null!=e.jeDebitAccountName&&""!==e.jeDebitAccountName?e.jeDebitAccountName:t}const DOCUMENT_ID_TYPE_SYMBOL="A",DOCUMENT_ID_REVERSAL_SYMBOL="R",DOCUMENT_ID_VENDOR_NAME_MAX_LENGTH=7,DOCUMENT_ID_REVERSAL_VENDOR_NAME_MAX_LENGTH=6,SERVICE_MONTH_PATTERN=/^(\d{4})-(\d{2})$/;function sanitizeVendorNameForDocId(e){const t=e.replace(/[^\p{L}\p{N}]/gu,"");return""===t?"V":t}function buildAccrualDocumentId(e,t=!1){const n=sanitizeVendorNameForDocId(e.vendorName??"").slice(0,t?DOCUMENT_ID_REVERSAL_VENDOR_NAME_MAX_LENGTH:DOCUMENT_ID_VENDOR_NAME_MAX_LENGTH),o=SERVICE_MONTH_PATTERN.exec(e.serviceMonth??""),i=null==o?`${DOCUMENT_ID_TYPE_SYMBOL}_${n}`:`${DOCUMENT_ID_TYPE_SYMBOL}_${o[1]}/${o[2]}_${n}`;return t?`${i}_${DOCUMENT_ID_REVERSAL_SYMBOL}`:i}function reversalJeGroupTitle(e){return`# ${buildAccrualDocumentId(e,!0)}`}const{common:{strings:{hyphen:hyphen$g},texts:{transaction:transactionFallback}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$5}}}=appLocale.getLocalizedStrings(),detailStrings$1=actualMatchingStrings$5.matchDetail;function getMatchServiceMonthsLabel(e){return formatActualMatchingServiceMonths(e.map(e=>e.serviceMonth))}function matchTierFromMatch(e){const t=e.matchTier??"";if(""!==t)return t.toLowerCase();const n=e.members[0];return(n?.cleared?.matchTier??n?.matchSuggestion?.matchTier??"").toLowerCase()}function getMatchMethodKey(e){const t=matchTierFromMatch(e);return"tier_1"===t||"deterministic"===t||"exact"===t?"exact":"tier_2"===t||"fuzzy"===t?"fuzzy":"manual"===t?"manual":"ai"}function getMatchSourceLabel(e){return"manual"===getMatchMethodKey(e)?detailStrings$1.sourceManual:detailStrings$1.sourceJeAgent}function getMatchMethodLabel(e){const t=getMatchMethodKey(e);return"exact"===t?detailStrings$1.matchMethodExact:"fuzzy"===t?detailStrings$1.matchMethodFuzzy:"manual"===t?detailStrings$1.matchMethodManual:detailStrings$1.matchMethodAi}function getWhyThisMatchedCopy(e){const t=getMatchServiceMonthsLabel(e.members),n=getMatchMethodKey(e);if("exact"===n)return detailStrings$1.whyExact.replace("{service}",t);if("fuzzy"===n){const t=getMatchVariancePercent(e),n=null==t?hyphen$g:`${(Math.round(10*Math.abs(t))/10).toFixed(1)}%`;return(isVarianceAboveReviewThreshold(t)?detailStrings$1.whyFuzzyAboveThreshold:detailStrings$1.whyFuzzy).replace("{variance}",n)}return"manual"===n?detailStrings$1.whyManual.replace("{service}",t):detailStrings$1.whyAi.replace("{service}",t)}function getMatchSourceTxnLabel(e){const t=formatTransactionTypeLabel(e);return""===t?transactionFallback:t}function getTxnMatchedTitle(e){return detailStrings$1.txnMatched.replace("{type}",getMatchSourceTxnLabel(e))}function getMatchedTxnMemo(e,t){return detailStrings$1.matchedMemo.replace("{vendor}",e).replace("{service}",t)}function getMatchedTxnTotalLabel(e){const t=e.toLowerCase();return"bill"===t?detailStrings$1.totalBilled:t.includes("payroll")?detailStrings$1.totalPaid:detailStrings$1.totalPosted}function getMatchStatusLabel(e,t){return"pending_review"===e?t.statusPendingReview:"manually_reversed"===e?t.statusManuallyReversed:t.statusAutoReversed}function getMatchVariancePercent(e){return variancePercent(e.actualAmount.amount,e.accruedAmount.amount)}function formatMatchVarianceLabel(e){const t=getMatchVariancePercent(e);return null==t?null:formatVariancePercent(t)}function isMatchRefreshSpinning(e,t,n){return"In-Progress"===n||null==e&&("In-Progress"===t||"Not-Started"===t)}const{common:{back:back$1,ignore:ignoreText$1,texts:{refresh:refresh},strings:{hyphen:hyphen$f}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$4}}}=appLocale.getLocalizedStrings(),previewStrings$5=actualMatchingStrings$4.matchModal,detailStrings=actualMatchingStrings$4.matchDetail,{reversalFailed:reversalFailed,undoFailed:undoFailed}=detailStrings,TEST_ID_PREFIX$2="actual-matching-match-detail",AMOUNT_FORMAT$2="0,0.[00]",WHY_BODY_OPAL_FILL=`${Colors.brandColorOpalLight}57`;function groupedJeLinkLabel(e,t,n){const o=formatServiceMonthLabel(n);return t<=1||o===hyphen$f?e:`${e} · ${o}`}function ActualMatchingOpenBillActionButton({match:e,transaction:t,onOpenBill:n}){const[o,i]=useState(null),[r,a]=useState(!0),[s,l]=useState(!0),c=t??(null!=e?getMatchedBillTransaction(e):null);if(null==e&&null==c)return null;const d=detailStrings.openLinkedRecords,p=e?.members??[],u="pending_review"===e?.kind,m=null!=e?.transactionDate&&""!==e.transactionDate?formatJeShortDate(e.transactionDate):hyphen$f,h=getMatchSourceTxnLabel(c?.type??e?.transactionType??"bill"),g=e?.vendorName??"",x=""===g?m:`${g} · ${m}`,f=Boolean(o),y=e=>{null!=e&&(i(null),n?.(e))};/* @__PURE__ */
|
|
91816
|
+
`;function transactionLineLabel(e){const t=(e.lineDescription??"").trim();if(""!==t)return t;const n=(e.transactionMemo??"").trim();return""!==n?n:(e.accountName??"").trim()}const{dateFormat:dateFormat$o,common:{strings:{hyphen:hyphen$h}}}=appLocale.getLocalizedStrings();function formatServiceMonthLabel(e){return""===e?hyphen$h:zeniDate(`${e}-01`).format(dateFormat$o.visual.MMMYYYYFormat)}function formatAccrualJeDate(e,t){const n=formatServiceMonthLabel(e);return n===hyphen$h?t:`${n}, ${t}`}function formatJeShortDate(e){if(""===e)return hyphen$h;const t=zeniDate(e);return null!=t&&"function"==typeof t.isValid&&t.isValid()?t.format(dateFormat$o.visual.MMMDFormat):e}function sumAccruedAmount(e){return e.reduce((e,t)=>e+(t.estimatedAmount?.amount??0),0)}function variancePercent(e,t){return 0===t?null:(e-t)/t*100}function transactionListMeta(e,t){return{dateLabel:t,memo:(e.transactionMemo??"").trim()}}function transactionMatchedLineCopy(e){const t=transactionLineLabel(e),n=(e.transactionIntegrationId??"").trim(),o=""===n?e.vendorName:`${e.vendorName} — ${n}`;return""===t?o:`${o} · ${t}`}function creditAccountName(e,t){return null!=e.jeCreditAccountName&&""!==e.jeCreditAccountName?e.jeCreditAccountName:t}function debitAccountName(e,t){return null!=e.jeDebitAccountName&&""!==e.jeDebitAccountName?e.jeDebitAccountName:t}const DOCUMENT_ID_TYPE_SYMBOL="A",DOCUMENT_ID_REVERSAL_SYMBOL="R",DOCUMENT_ID_VENDOR_NAME_MAX_LENGTH=7,DOCUMENT_ID_REVERSAL_VENDOR_NAME_MAX_LENGTH=6,SERVICE_MONTH_PATTERN=/^(\d{4})-(\d{2})$/;function sanitizeVendorNameForDocId(e){const t=e.replace(/[^\p{L}\p{N}]/gu,"");return""===t?"V":t}function buildAccrualDocumentId(e,t=!1){const n=sanitizeVendorNameForDocId(e.vendorName??"").slice(0,t?DOCUMENT_ID_REVERSAL_VENDOR_NAME_MAX_LENGTH:DOCUMENT_ID_VENDOR_NAME_MAX_LENGTH),o=SERVICE_MONTH_PATTERN.exec(e.serviceMonth??""),i=null==o?`${DOCUMENT_ID_TYPE_SYMBOL}_${n}`:`${DOCUMENT_ID_TYPE_SYMBOL}_${o[1]}/${o[2]}_${n}`;return t?`${i}_${DOCUMENT_ID_REVERSAL_SYMBOL}`:i}function reversalJeGroupTitle(e){return`# ${buildAccrualDocumentId(e,!0)}`}const{common:{strings:{hyphen:hyphen$g},texts:{transaction:transactionFallback}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$5}}}=appLocale.getLocalizedStrings(),detailStrings$1=actualMatchingStrings$5.matchDetail;function getMatchServiceMonthsLabel(e){return formatActualMatchingServiceMonths(e.map(e=>e.serviceMonth))}function matchTierFromMatch(e){const t=e.matchTier??"";if(""!==t)return t.toLowerCase();const n=e.members[0];return(n?.cleared?.matchTier??n?.matchSuggestion?.matchTier??"").toLowerCase()}function getMatchMethodKey(e){const t=matchTierFromMatch(e);return"tier_1"===t||"deterministic"===t||"exact"===t?"exact":"tier_2"===t||"fuzzy"===t?"fuzzy":"manual"===t?"manual":"ai"}function getMatchSourceLabel(e){return"manual"===getMatchMethodKey(e)?detailStrings$1.sourceManual:detailStrings$1.sourceJeAgent}function getMatchMethodLabel(e){const t=getMatchMethodKey(e);return"exact"===t?detailStrings$1.matchMethodExact:"fuzzy"===t?detailStrings$1.matchMethodFuzzy:"manual"===t?detailStrings$1.matchMethodManual:detailStrings$1.matchMethodAi}function getWhyThisMatchedCopy(e){const t=getMatchServiceMonthsLabel(e.members),n=getMatchMethodKey(e);if("exact"===n)return detailStrings$1.whyExact.replace("{service}",t);if("fuzzy"===n){const t=getMatchVariancePercent(e),n=null==t?hyphen$g:`${(Math.round(10*Math.abs(t))/10).toFixed(1)}%`;return(isVarianceAboveReviewThreshold(t)?detailStrings$1.whyFuzzyAboveThreshold:detailStrings$1.whyFuzzy).replace("{variance}",n)}return"manual"===n?detailStrings$1.whyManual.replace("{service}",t):detailStrings$1.whyAi.replace("{service}",t)}function getMatchSourceTxnLabel(e){const t=formatTransactionTypeLabel(e);return""===t?transactionFallback:t}function getTxnMatchedTitle(e){return detailStrings$1.txnMatched.replace("{type}",getMatchSourceTxnLabel(e))}function getMatchedTxnMemo(e,t){return detailStrings$1.matchedMemo.replace("{vendor}",e).replace("{service}",t)}function getMatchedTxnTotalLabel(e){const t=e.toLowerCase();return"bill"===t?detailStrings$1.totalBilled:t.includes("payroll")?detailStrings$1.totalPaid:detailStrings$1.totalPosted}function getMatchStatusLabel(e,t){return"pending_review"===e?t.statusPendingReview:"manually_reversed"===e?t.statusManuallyReversed:t.statusAutoReversed}function getMatchVariancePercent(e){return variancePercent(e.actualAmount.amount,e.accruedAmount.amount)}function formatMatchVarianceLabel(e){const t=getMatchVariancePercent(e);return null==t?null:formatVariancePercent(t)}function isMatchRefreshSpinning(e,t,n){return"In-Progress"===n||null==e&&("In-Progress"===t||"Not-Started"===t)}const{common:{back:back$1,ignore:ignoreText$1,texts:{refresh:refresh},strings:{hyphen:hyphen$f}},expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$4}}}=appLocale.getLocalizedStrings(),previewStrings$5=actualMatchingStrings$4.matchModal,detailStrings=actualMatchingStrings$4.matchDetail,{reversalFailed:reversalFailed,undoFailed:undoFailed}=detailStrings,TEST_ID_PREFIX$2="actual-matching-match-detail",AMOUNT_FORMAT$2="0,0.[00]",WHY_BODY_OPAL_FILL=`${Colors.brandColorOpalLight}57`;function groupedJeLinkLabel(e,t,n){const o=formatServiceMonthLabel(n);return t<=1||o===hyphen$f?e:`${e} · ${o}`}function ActualMatchingOpenBillActionButton({match:e,transaction:t,onOpenBill:n}){const[o,i]=useState(null),[r,a]=useState(!0),[s,l]=useState(!0),c=t??(null!=e?getMatchedBillTransaction(e):null);if(null==e&&null==c)return null;const d=detailStrings.openLinkedRecords,p=e?.members??[],u="pending_review"===e?.kind,m=null!=e?.transactionDate&&""!==e.transactionDate?formatJeShortDate(e.transactionDate):hyphen$f,h=getMatchSourceTxnLabel(c?.type??e?.transactionType??"bill"),g=e?.vendorName??"",x=""===g?m:`${g} · ${m}`,f=Boolean(o),y=e=>{null!=e&&(i(null),n?.(e))};/* @__PURE__ */
|
|
91817
91817
|
return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[
|
|
91818
91818
|
/* @__PURE__ */jsxRuntimeExports.jsx(Tooltip$6,{title:f?"":d,enterDelay:TOOLTIP_ENTER_DELAY_MS,placement:"bottom",display:"flex",disableIntersectionObserver:!0,children:/* @__PURE__ */jsxRuntimeExports.jsx(OpenBillIconButton,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"open-bill"),type:"button","aria-label":d,"aria-expanded":f,$active:f,onClick:e=>{i(f?null:e.currentTarget)},children:/* @__PURE__ */jsxRuntimeExports.jsx(OpenBillIcon,{})})}),
|
|
91819
91819
|
/* @__PURE__ */jsxRuntimeExports.jsx(Popover,{open:f,anchorEl:o,onClose:()=>i(null),anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{component:LinksMenuPaper,sx:{backgroundColor:e=>"dark"===e.palette.mode?Colors.neutralGrey5Dark:Colors.neutralGrey5Light,backgroundImage:"none"}}},children:/* @__PURE__ */jsxRuntimeExports.jsxs(LinksMenu,{"data-testid":generateDataTestId(TEST_ID_PREFIX$2,"links-menu"),children:[
|
|
@@ -92435,8 +92435,8 @@ return jsxRuntimeExports.jsx(ListFill,{children:/* @__PURE__ */jsxRuntimeExports
|
|
|
92435
92435
|
background: ${e=>e.theme.colors.grey5};
|
|
92436
92436
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
92437
92437
|
border-radius: ${Space.sp2};
|
|
92438
|
-
`,{dateFormat:{visual:{MMMDCommaYYYYformat:MMMDCommaYYYYformat$2}}}=appLocale.getLocalizedStrings(),UNMATCHED_LIST_AMOUNT_FORMAT="0,0.[00]";function getVisualDateFormat(){return MMMDCommaYYYYformat$2}function formatUnmatchedListZeniDate(e){return e.format(getVisualDateFormat())}function formatUnmatchedListTransactionDate(e){if(null==e||""===String(e).trim())return"";const t=String(e).trim(),n=getVisualDateFormat(),o=zeniDate(t);return null!=o&&"function"==typeof o.isValid&&o.isValid()?o.format(n):t}function currencySymbolForListAmount(e){if(null==e||""===e)return"";if(!/^[A-Z]{3}$/.test(e))return e;try{const t=new Intl.NumberFormat("en",{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0);return t.find(e=>"currency"===e.type)?.value??e}catch{return e}}function formatUnmatchedListAmount(e,t){return amountValueToString(UNMATCHED_LIST_AMOUNT_FORMAT,e,currencySymbolForListAmount(t))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$3}}}=appLocale.getLocalizedStrings(),COLUMN_WIDTH_PX={date:sp[11]+sp[3],account:sp[12]+sp[11],debit:sp[12],credit:sp[12]},NUMERIC_COLUMNS=/* @__PURE__ */new Set(["debit","credit"]);function isMatchNewPreviewJeNumericColumn(e){return NUMERIC_COLUMNS.has(e)}function getMatchNewPreviewJeColumns(){const e=actualMatchingStrings$3.matchModal;return[{key:"date",value:e.columnDate,width:COLUMN_WIDTH_PX.date},{key:"account",value:e.columnAccount,width:COLUMN_WIDTH_PX.account},{key:"debit",value:e.columnDebit,width:COLUMN_WIDTH_PX.debit},{key:"credit",value:e.columnCredit,width:COLUMN_WIDTH_PX.credit}]}function buildMatchNewPreviewJeGridTemplate(e){return e.map(e=>isMatchNewPreviewJeNumericColumn(e.key)?`${e.width}px`:"account"===e.key?`minmax(${e.width}px, 1.4fr)`:`minmax(${e.width}px, 1fr)`).join(" ")}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$2}},common:{strings:{hyphen:hyphen$e},currency:currency$8}}=appLocale.getLocalizedStrings(),previewStrings$4=actualMatchingStrings$2.matchModal,TEST_ID_PREFIX$1="actual-matching-match-new",AMOUNT_FORMAT$1="0,0.[00]";function formatAccrualAmount$1(e){return amountToString(AMOUNT_FORMAT$1,e.estimatedAmount)??formatUnmatchedListAmount(e.estimatedAmount.amount,e.estimatedAmount.currencySymbol??currency$8.currencySymbol)}function formatSignedAmount(e,t){return`${e>=0?"+":"−"}${formatUnmatchedListAmount(Math.abs(e),t)}`}function MatchNewPreview({selectedAccruals:e,selectedTransactions:t}){const n=t[0]??null;if(null==n||0===e.length)/* @__PURE__ */
|
|
92439
|
-
return jsxRuntimeExports.jsx(EmptyPreview,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"preview-empty"),children:/* @__PURE__ */jsxRuntimeExports.jsx(EmptyPreviewCopy,{children:previewStrings$4.previewEmpty})});const o=sumAccruedAmount(e),i=t.reduce((e,t)=>e+t.amount,0),r=variancePercent(i,o),a=i-o,s=n.currencySymbol||currency$8.currencySymbol,l=formatUnmatchedListAmount(o,s),c=
|
|
92438
|
+
`,{dateFormat:{visual:{MMMDCommaYYYYformat:MMMDCommaYYYYformat$2}}}=appLocale.getLocalizedStrings(),UNMATCHED_LIST_AMOUNT_FORMAT="0,0.[00]";function getVisualDateFormat(){return MMMDCommaYYYYformat$2}function formatUnmatchedListZeniDate(e){return e.format(getVisualDateFormat())}function formatUnmatchedListTransactionDate(e){if(null==e||""===String(e).trim())return"";const t=String(e).trim(),n=getVisualDateFormat(),o=zeniDate(t);return null!=o&&"function"==typeof o.isValid&&o.isValid()?o.format(n):t}function currencySymbolForListAmount(e){if(null==e||""===e)return"";if(!/^[A-Z]{3}$/.test(e))return e;try{const t=new Intl.NumberFormat("en",{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0);return t.find(e=>"currency"===e.type)?.value??e}catch{return e}}function formatUnmatchedListAmount(e,t){return amountValueToString(UNMATCHED_LIST_AMOUNT_FORMAT,e,currencySymbolForListAmount(t))}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$3}}}=appLocale.getLocalizedStrings(),COLUMN_WIDTH_PX={date:sp[11]+sp[3],account:sp[12]+sp[11],debit:sp[12],credit:sp[12]},NUMERIC_COLUMNS=/* @__PURE__ */new Set(["debit","credit"]);function isMatchNewPreviewJeNumericColumn(e){return NUMERIC_COLUMNS.has(e)}function getMatchNewPreviewJeColumns(){const e=actualMatchingStrings$3.matchModal;return[{key:"date",value:e.columnDate,width:COLUMN_WIDTH_PX.date},{key:"account",value:e.columnAccount,width:COLUMN_WIDTH_PX.account},{key:"debit",value:e.columnDebit,width:COLUMN_WIDTH_PX.debit},{key:"credit",value:e.columnCredit,width:COLUMN_WIDTH_PX.credit}]}function buildMatchNewPreviewJeGridTemplate(e){return e.map(e=>isMatchNewPreviewJeNumericColumn(e.key)?`${e.width}px`:"account"===e.key?`minmax(${e.width}px, 1.4fr)`:`minmax(${e.width}px, 1fr)`).join(" ")}const{expenseAutomation:{jeSchedules:{actualMatching:actualMatchingStrings$2}},common:{strings:{hyphen:hyphen$e},currency:currency$8}}=appLocale.getLocalizedStrings(),previewStrings$4=actualMatchingStrings$2.matchModal,TEST_ID_PREFIX$1="actual-matching-match-new",AMOUNT_FORMAT$1="0,0.[00]",MATCHED_AMOUNT_FORMAT="0,0.00";function formatMatchedAmount(e,t,n){return amountToString(MATCHED_AMOUNT_FORMAT,{amount:e,currencySymbol:n||currency$8.currencySymbol})??""}function formatAccrualAmount$1(e){return amountToString(AMOUNT_FORMAT$1,e.estimatedAmount)??formatUnmatchedListAmount(e.estimatedAmount.amount,e.estimatedAmount.currencySymbol??currency$8.currencySymbol)}function formatSignedAmount(e,t){return`${e>=0?"+":"−"}${formatUnmatchedListAmount(Math.abs(e),t)}`}function MatchNewPreview({selectedAccruals:e,selectedTransactions:t}){const n=t[0]??null;if(null==n||0===e.length)/* @__PURE__ */
|
|
92439
|
+
return jsxRuntimeExports.jsx(EmptyPreview,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"preview-empty"),children:/* @__PURE__ */jsxRuntimeExports.jsx(EmptyPreviewCopy,{children:previewStrings$4.previewEmpty})});const o=sumAccruedAmount(e),i=t.reduce((e,t)=>e+t.amount,0),r=variancePercent(i,o),a=i-o,s=n.currencySymbol||currency$8.currencySymbol,l=formatUnmatchedListAmount(o,s),c=formatMatchedAmount(i,n.currencyCode,n.currencySymbol),d=null==r?void 0:getVarianceCapsuleType(r),p=formatUnmatchedListTransactionDate(n.transactionDate),u=""===p?hyphen$e:p,m=e.length>1,h=t.length>1;/* @__PURE__ */
|
|
92440
92440
|
return jsxRuntimeExports.jsxs(PreviewRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"preview"),children:[
|
|
92441
92441
|
/* @__PURE__ */jsxRuntimeExports.jsxs(PreviewSection,{children:[
|
|
92442
92442
|
/* @__PURE__ */jsxRuntimeExports.jsx(SectionTitle$8,{children:m?previewStrings$4.accrualJeTitlePlural:previewStrings$4.accrualJeTitle}),e.map(e=>/* @__PURE__ */jsxRuntimeExports.jsx(JeBlock,{creditAccount:creditAccountName(e,previewStrings$4.accruedExpensesFallback),creditAmount:formatAccrualAmount$1(e),dateLabel:formatAccrualJeDate(e.serviceMonth,previewStrings$4.lastDayOfMonth),debitAccount:debitAccountName(e,hyphen$e),debitAmount:formatAccrualAmount$1(e),subtitle:`${e.vendorName} · ${formatServiceMonthLabel(e.serviceMonth)}`,testIdSuffix:`accrual-je-${e.accrualId}`},`accrual-je-${e.accrualId}`))]}),
|
|
@@ -92447,9 +92447,9 @@ return jsxRuntimeExports.jsxs(PreviewRoot,{"data-testid":generateDataTestId(TEST
|
|
|
92447
92447
|
/* @__PURE__ */jsxRuntimeExports.jsxs(PreviewSection,{children:[
|
|
92448
92448
|
/* @__PURE__ */jsxRuntimeExports.jsx(SectionTitle$8,{children:h?previewStrings$4.transactionsMatchedTitle:previewStrings$4.transactionMatchedTitle}),
|
|
92449
92449
|
/* @__PURE__ */jsxRuntimeExports.jsxs(MatchedLines,{children:[t.map(e=>/* @__PURE__ */jsxRuntimeExports.jsxs(TxnMatchedRow,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,`matched-line-${e.lineId}`),children:[
|
|
92450
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedDate,{children:
|
|
92450
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedDate,{children:formatJeShortDate(e.transactionDate)}),
|
|
92451
92451
|
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedName,{children:transactionMatchedLineCopy(e)}),
|
|
92452
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedAmount,{children:
|
|
92452
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedAmount,{children:formatMatchedAmount(e.amount,e.currencyCode,e.currencySymbol)})]},`${e.transactionId}:${e.lineId}`)),
|
|
92453
92453
|
/* @__PURE__ */jsxRuntimeExports.jsxs(TotalCard,{"data-testid":generateDataTestId(TEST_ID_PREFIX$1,"matched-total"),children:[
|
|
92454
92454
|
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedName,{children:previewStrings$4.matchedTotal}),
|
|
92455
92455
|
/* @__PURE__ */jsxRuntimeExports.jsx(TxnMatchedAmount,{children:c})]})]}),
|
|
@@ -92526,7 +92526,7 @@ return jsxRuntimeExports.jsxs(JeGroup,{"data-testid":generateDataTestId(TEST_ID_
|
|
|
92526
92526
|
box-sizing: border-box;
|
|
92527
92527
|
min-width: 0;
|
|
92528
92528
|
height: 28px;
|
|
92529
|
-
padding:
|
|
92529
|
+
padding: ${Space.sp0} 12px;
|
|
92530
92530
|
padding-left: ${e=>!0===e.$isFirst?Space.sp3:"12px"};
|
|
92531
92531
|
padding-right: ${e=>!0===e.$isLast?Space.sp3:"12px"};
|
|
92532
92532
|
background: ${e=>e.theme.colors.grey4};
|
|
@@ -92542,7 +92542,7 @@ return jsxRuntimeExports.jsxs(JeGroup,{"data-testid":generateDataTestId(TEST_ID_
|
|
|
92542
92542
|
box-sizing: border-box;
|
|
92543
92543
|
min-width: 0;
|
|
92544
92544
|
height: ${Space.sp6};
|
|
92545
|
-
padding:
|
|
92545
|
+
padding: ${Space.sp0} 12px;
|
|
92546
92546
|
padding-left: ${e=>!0===e.$isFirst?Space.sp3:"12px"};
|
|
92547
92547
|
padding-right: ${e=>!0===e.$isLast?Space.sp3:"12px"};
|
|
92548
92548
|
${e=>!0===e.$showTopBorder?css$2`
|
|
@@ -92565,8 +92565,8 @@ return jsxRuntimeExports.jsxs(JeGroup,{"data-testid":generateDataTestId(TEST_ID_
|
|
|
92565
92565
|
align-items: center;
|
|
92566
92566
|
box-sizing: border-box;
|
|
92567
92567
|
height: ${Space.sp7};
|
|
92568
|
-
gap:
|
|
92569
|
-
padding:
|
|
92568
|
+
gap: ${Space.sp3};
|
|
92569
|
+
padding: ${Space.sp0} 12px;
|
|
92570
92570
|
border: 1px solid ${e=>e.theme.colors.grey2};
|
|
92571
92571
|
border-radius: ${Space.sp2};
|
|
92572
92572
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -92576,8 +92576,8 @@ return jsxRuntimeExports.jsxs(JeGroup,{"data-testid":generateDataTestId(TEST_ID_
|
|
|
92576
92576
|
justify-content: space-between;
|
|
92577
92577
|
box-sizing: border-box;
|
|
92578
92578
|
height: ${Space.sp7};
|
|
92579
|
-
gap:
|
|
92580
|
-
padding:
|
|
92579
|
+
gap: ${Space.sp3};
|
|
92580
|
+
padding: ${Space.sp0} 12px;
|
|
92581
92581
|
border: 1px dashed ${e=>e.theme.colors.grey2};
|
|
92582
92582
|
border-radius: ${Space.sp2};
|
|
92583
92583
|
background: ${e=>e.theme.colors.grey4};
|
|
@@ -92619,7 +92619,7 @@ return jsxRuntimeExports.jsx(Drawer,{anchor:"right",open:t.isOpen,PaperProps:{ro
|
|
|
92619
92619
|
/* @__PURE__ */jsxRuntimeExports.jsxs(Header$5,{children:[
|
|
92620
92620
|
/* @__PURE__ */jsxRuntimeExports.jsx(TitleBlock$1,{children:/* @__PURE__ */jsxRuntimeExports.jsx(PanelTitle,{children:modalStrings.title})}),
|
|
92621
92621
|
/* @__PURE__ */jsxRuntimeExports.jsx(CloseIconButton$2,{"aria-label":close,"data-testid":generateDataTestId(TEST_ID_PREFIX,"close"),type:"button",onClick:E,children:/* @__PURE__ */jsxRuntimeExports.jsx(StyledCloseIcon$c,{})})]}),
|
|
92622
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(DrawerBody,{children:T?/* @__PURE__ */jsxRuntimeExports.jsx(NoAccrualsScreen,{onOpenOneTimeAccrual:()=>{E(),r
|
|
92622
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(DrawerBody,{children:T?/* @__PURE__ */jsxRuntimeExports.jsx(NoAccrualsScreen,{onOpenOneTimeAccrual:()=>{E(),r()}}):/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[
|
|
92623
92623
|
/* @__PURE__ */jsxRuntimeExports.jsx(PanelSubtitle,{children:modalStrings.subtitle}),
|
|
92624
92624
|
/* @__PURE__ */jsxRuntimeExports.jsxs(Panes,{$isExpanded:!b,children:[
|
|
92625
92625
|
/* @__PURE__ */jsxRuntimeExports.jsx(MatchPane,{isExpanded:!b,emptyText:modalStrings.emptyLeft,isLoading:"In-Progress"===t.transactionSearch.fetchState.fetchState,searchPlaceholder:modalStrings.leftSearchPlaceholder,searchValue:t.transactionSearch.query,selectedCount:A,testIdSuffix:"transactions",title:modalStrings.leftTitle,onSearchChange:s,children:I.map(e=>/* @__PURE__ */jsxRuntimeExports.jsx(TransactionMatchGroup,{group:e,isConfirmInFlight:g,selectedKeys:p,onSelectGroup:()=>(e=>{if(g||0===e.length)return;const t=d.getValues("selectedTransactionLines")??[];d.setValue("selectedTransactionLines",nextSelectedTransactionGroup(t,e),SET_VALUE_OPTS)})(e),onSelectLine:w},transactionGroupKey(e[0])))}),
|
|
@@ -92642,24 +92642,24 @@ return jsxRuntimeExports.jsx(LoaderList,{"data-testid":generateDataTestId(TEST_I
|
|
|
92642
92642
|
/* @__PURE__ */jsxRuntimeExports.jsxs(LoaderTexts,{children:[
|
|
92643
92643
|
/* @__PURE__ */jsxRuntimeExports.jsx(ContentLoaderSkeleton$1,{height:14,width:140}),
|
|
92644
92644
|
/* @__PURE__ */jsxRuntimeExports.jsx(ContentLoaderSkeleton$1,{height:12,width:96})]}),
|
|
92645
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(ContentLoaderSkeleton$1,{height:14,width:48})]},t))})}function DisplayRadio({checked:e,name:t}){/* @__PURE__ */
|
|
92646
|
-
return jsxRuntimeExports.jsx(CheckCell,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TxnRadio,{"aria-checked":e,checked:e,name:t,readOnly:!0,type:"radio",onChange:
|
|
92645
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(ContentLoaderSkeleton$1,{height:14,width:48})]},t))})}const noop=()=>{};function DisplayRadio({checked:e,name:t}){/* @__PURE__ */
|
|
92646
|
+
return jsxRuntimeExports.jsx(CheckCell,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TxnRadio,{"aria-checked":e,checked:e,name:t,readOnly:!0,type:"radio",onChange:noop})})}function DisplayCheckBox({checked:e,name:t}){/* @__PURE__ */
|
|
92647
92647
|
return jsxRuntimeExports.jsx(CheckCell,{children:/* @__PURE__ */jsxRuntimeExports.jsx(StyledCheckBox$1,{checkBoxStyle:{backgroundColor:"transparent"},checkBoxValue:t,isDisabled:"readonly",name:t,value:e,onChange:()=>{}})})}function formatSearchAmount(e,t,n){return amountToString("0,0.[00]",{amount:e,currencySymbol:n||currency$7.currencySymbol})??formatUnmatchedListAmount(e,n||currency$7.currencySymbol)}function NoAccrualsScreen({onOpenOneTimeAccrual:e}){/* @__PURE__ */
|
|
92648
92648
|
return jsxRuntimeExports.jsxs(NoAccrualsRoot,{"data-testid":generateDataTestId(TEST_ID_PREFIX,"no-accruals"),children:[
|
|
92649
92649
|
/* @__PURE__ */jsxRuntimeExports.jsx(NoAccrualsCopy,{children:modalStrings.noAccrualsLeft}),
|
|
92650
92650
|
/* @__PURE__ */jsxRuntimeExports.jsx(Button$3,{dataTestId:generateDataTestId(TEST_ID_PREFIX,"new-accrual"),label:modalStrings.newAccrual,type:"button",variant:"primary",onClick:e})]})}function TransactionMatchGroup({group:e,isConfirmInFlight:t,selectedKeys:n,onSelectGroup:o,onSelectLine:i}){const r=e[0],a=e.map(e=>getTransactionLineKey(e.transactionId,e.lineId)),s=a.filter(e=>n.includes(e)).length,l=s===a.length,c=t;if(1===e.length)/* @__PURE__ */
|
|
92651
92651
|
return jsxRuntimeExports.jsx(TransactionMatchRow,{isDisabled:c,isSelected:1===s,row:r,onSelect:()=>i(a[0])});const d=partialLineSelectionLabel(s,e.length,modalStrings.linesSelected),p=e.reduce((e,t)=>e+t.amount,0);/* @__PURE__ */
|
|
92652
92652
|
return jsxRuntimeExports.jsxs(GroupCard,{"aria-disabled":c,"data-testid":generateDataTestId(TEST_ID_PREFIX,`txn-group-${transactionGroupKey(r)}`),$isDisabled:c,children:[
|
|
92653
|
-
/* @__PURE__ */jsxRuntimeExports.jsxs(GroupLine,{$isSelected:l,onClick:c?void 0:o,children:[
|
|
92653
|
+
/* @__PURE__ */jsxRuntimeExports.jsxs(GroupLine,{$isDisabled:c,$isSelected:l,onClick:c?void 0:o,children:[
|
|
92654
92654
|
/* @__PURE__ */jsxRuntimeExports.jsx(DisplayRadio,{checked:s>0,name:`txn-group-${transactionGroupKey(r)}`}),
|
|
92655
92655
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowAvatar,{children:/* @__PURE__ */jsxRuntimeExports.jsx(EntityAvatar,{name:r.vendorName})}),
|
|
92656
92656
|
/* @__PURE__ */jsxRuntimeExports.jsxs(RowBody,{children:[
|
|
92657
92657
|
/* @__PURE__ */jsxRuntimeExports.jsxs(RowTitleLine,{children:[
|
|
92658
92658
|
/* @__PURE__ */jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"160px",text:r.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:500,color:"inherit"}}),
|
|
92659
92659
|
/* @__PURE__ */jsxRuntimeExports.jsx(StyledCapsule,{label:formatTransactionTypeLabel(r.transactionType),style:{flexShrink:0},type:"info"})]}),
|
|
92660
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(GroupMeta,{dateLabel:formatUnmatchedListTransactionDate(r.transactionDate),
|
|
92660
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(GroupMeta,{dateLabel:formatUnmatchedListTransactionDate(r.transactionDate),isSelected:l,memo:r.transactionMemo??"",partialLabel:d})]}),
|
|
92661
92661
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowAmount,{children:formatSearchAmount(p,r.currencyCode,r.currencySymbol)})]}),e.map(e=>{const t=getTransactionLineKey(e.transactionId,e.lineId),o=n.includes(t);/* @__PURE__ */
|
|
92662
|
-
return jsxRuntimeExports.jsxs(GroupLine,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`txn-row-${t}`),$isChild:!0,$isSelected:o,onClick:c?void 0:e=>{e.stopPropagation(),i(t)},children:[
|
|
92662
|
+
return jsxRuntimeExports.jsxs(GroupLine,{"data-testid":generateDataTestId(TEST_ID_PREFIX,`txn-row-${t}`),$isChild:!0,$isDisabled:c,$isSelected:o,onClick:c?void 0:e=>{e.stopPropagation(),i(t)},children:[
|
|
92663
92663
|
/* @__PURE__ */jsxRuntimeExports.jsx(DisplayCheckBox,{checked:o,name:`txn-select-${t}`}),
|
|
92664
92664
|
/* @__PURE__ */jsxRuntimeExports.jsx(ChildLabelSpacer,{}),
|
|
92665
92665
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowBody,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"220px",text:transactionLineLabel(e),withNoHover:!0,itemTextStyle:{fontWeight:500,color:"inherit"}})}),
|
|
@@ -92679,9 +92679,9 @@ return jsxRuntimeExports.jsx(AccrualRowBlock,{title:o,children:/* @__PURE__ */js
|
|
|
92679
92679
|
/* @__PURE__ */jsxRuntimeExports.jsxs(RowBody,{children:[
|
|
92680
92680
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowTitleLine,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"180px",text:n.vendorName,withNoHover:!0,itemTextStyle:{fontWeight:500,color:"inherit"}})}),
|
|
92681
92681
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowMeta,{$isSelected:t,children:a})]}),
|
|
92682
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",n.estimatedAmount)??formatUnmatchedListAmount(n.estimatedAmount.amount,n.estimatedAmount.currencySymbol??currency$7.currencySymbol)})]})})}function GroupMeta({dateLabel:e,
|
|
92683
|
-
return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:
|
|
92684
|
-
/* @__PURE__ */jsxRuntimeExports.jsx(
|
|
92682
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(RowAmount,{children:amountToString("0,0.[00]",n.estimatedAmount)??formatUnmatchedListAmount(n.estimatedAmount.amount,n.estimatedAmount.currencySymbol??currency$7.currencySymbol)})]})})}function GroupMeta({dateLabel:e,isSelected:t,memo:n,partialLabel:o}){const i=""!==e,r=n.trim(),a=""!==r;/* @__PURE__ */
|
|
92683
|
+
return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[i?/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaFixed,{children:e}):null,a?/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[i?/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaSep,{"aria-hidden":"true",children:"·"}):null,
|
|
92684
|
+
/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaMemo,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"320px",text:r,withNoHover:!0,itemTextStyle:MEMO_ELLIPSIS_TEXT_STYLE,style:MEMO_ELLIPSIS_WRAP_STYLE})})]}):null,null!=o?/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[i||a?/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaSep,{"aria-hidden":"true",children:"·"}):null,
|
|
92685
92685
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaFixed,{children:o})]}):null]})}function RowMetaLine({dateLabel:e,isSelected:t,memo:n}){const o=""!==e,i=""!==n;/* @__PURE__ */
|
|
92686
92686
|
return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[o?/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaFixed,{children:e}):null,i?/* @__PURE__ */jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[o?/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaSep,{"aria-hidden":"true",children:"·"}):null,
|
|
92687
92687
|
/* @__PURE__ */jsxRuntimeExports.jsx(RowMetaMemo,{children:/* @__PURE__ */jsxRuntimeExports.jsx(TooltipWithEllipsisText,{maxWidth:"320px",text:n,withNoHover:!0,itemTextStyle:MEMO_ELLIPSIS_TEXT_STYLE,style:MEMO_ELLIPSIS_WRAP_STYLE})})]}):null]})}const MEMO_ELLIPSIS_WRAP_STYLE={width:"100%",minWidth:0,display:"block"},MEMO_ELLIPSIS_TEXT_STYLE={color:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",width:"100%",minWidth:0,display:"block",whiteSpace:"nowrap",wordBreak:"normal",WebkitLineClamp:"unset",overflow:"hidden",textOverflow:"ellipsis"},Panel=styled$2.form`
|
|
@@ -92846,6 +92846,7 @@ return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[o?/* @__PURE__ */
|
|
|
92846
92846
|
`,GroupLine=styled$2.div`
|
|
92847
92847
|
display: flex;
|
|
92848
92848
|
align-items: center;
|
|
92849
|
+
/* 10px is the design gap between the radio, vendor, and amount. */
|
|
92849
92850
|
gap: 10px;
|
|
92850
92851
|
box-sizing: border-box;
|
|
92851
92852
|
min-height: ${e=>!0===e.$isChild?"36px":Space.sp8};
|
|
@@ -92853,7 +92854,12 @@ return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[o?/* @__PURE__ */
|
|
|
92853
92854
|
padding: ${e=>!0===e.$isChild?"0 12px 0 0":"10px 12px 10px 0"};
|
|
92854
92855
|
background: ${e=>e.$isSelected?e.theme.colors.grey3:e.theme.colors.grey5};
|
|
92855
92856
|
color: ${e=>e.theme.colors.primary};
|
|
92857
|
+
transition: background-color 120ms ease;
|
|
92856
92858
|
${e=>!0===e.$isChild?`border-top: 1px solid ${e.theme.colors.grey2};`:""}
|
|
92859
|
+
|
|
92860
|
+
&:hover {
|
|
92861
|
+
background: ${e=>e.$isSelected?e.theme.colors.grey3:!0===e.$isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
92862
|
+
}
|
|
92857
92863
|
`,ChildLabelSpacer=styled$2.div`
|
|
92858
92864
|
flex: 0 0 ${Space.sp4};
|
|
92859
92865
|
`,MatchRow$1=styled$2.div`
|
|
@@ -92871,8 +92877,8 @@ return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[o?/* @__PURE__ */
|
|
|
92871
92877
|
cursor: ${e=>!0===e.$isDisabled?"not-allowed":"pointer"};
|
|
92872
92878
|
opacity: ${e=>!0===e.$isDisabled?.45:1};
|
|
92873
92879
|
transition:
|
|
92874
|
-
|
|
92875
|
-
|
|
92880
|
+
background-color 120ms ease,
|
|
92881
|
+
border-color 120ms ease;
|
|
92876
92882
|
|
|
92877
92883
|
&:hover {
|
|
92878
92884
|
background: ${e=>e.$isSelected?e.theme.colors.grey3:!0===e.$isDisabled?e.theme.colors.grey5:e.theme.colors.background};
|
|
@@ -92880,7 +92886,7 @@ return jsxRuntimeExports.jsxs(RowMeta,{$isSelected:t,children:[o?/* @__PURE__ */
|
|
|
92880
92886
|
`,txnRadioSpecs=getRadioSpecs("small"),TxnRadio=styled$2.input`
|
|
92881
92887
|
width: ${txnRadioSpecs.widthInPx};
|
|
92882
92888
|
height: ${txnRadioSpecs.heightInPx};
|
|
92883
|
-
margin:
|
|
92889
|
+
margin: ${Space.sp0};
|
|
92884
92890
|
appearance: none;
|
|
92885
92891
|
background: transparent;
|
|
92886
92892
|
background-clip: content-box;
|
|
@@ -106045,4 +106051,4 @@ return jsxRuntimeExports.jsx(ModalContainer,{children:/* @__PURE__ */jsxRuntimeE
|
|
|
106045
106051
|
`,StyledButton=styled$2(Button$3)`
|
|
106046
106052
|
min-width: 140px;
|
|
106047
106053
|
`;export{BillPayApprovalRuleDetailPage as $,AIAgentsActivatingPage as A,AiCfoScopeModalScrollBody as B,AiCfoSidePanel as C,AiCfoSkillsBrowser as D,AiFinanceTeamReadyPage as E,AllThreadsDrawer as F,AllThreadsSection as G,AllowBlockChipPicker as H,AnalyticsOnLoad as I,ApAgingDetailPage as J,AppBasePage as K,AppDrawerContent as L,AppDrawerHeightMobile as M,ApprovalRulesSettingsPage as N,ArAgingDetailPage as O,AskAiCfoNavButton as P,AskAiCfoNavButtonWhenEnabled as Q,AttachmentView as R,AutoSizer as S,AutoTransferRulePage as T,AvatarSVG$1 as U,BORDER_RADIUS_SELECT_FIELD as V,BackNavigationProvider as W,BankConnectionsSettingsPage as X,BillDetailPage as Y,BillDetailPageSkeleton as Z,BillPayApprovalRuleDetailPage$1 as _,AIIconButton as a,CompanyPassportPage as a$,BillPayApprovalRulesPage$1 as a0,BillPayApprovalRulesPage as a1,BillPayPromoPage as a2,BillPaySetUpPage as a3,BillingSettingsPage as a4,BillsBulkReviewDrawerPage as a5,BusinessVerificationPage as a6,BusyIndication as a7,Button$3 as a8,ButtonBase as a9,ChargeCardListSkeletonRow as aA,ChargeCardPaymentHistoryPage as aB,ChargeCardPromoPage as aC,ChargeCardPromoPageSkeleton as aD,ChargeCardSetUpPage as aE,ChargeCardStatementsLoading as aF,ChargeCardStatementsPage as aG,ChargeCardUserOnboardingPromoPage as aH,ChargeCardUserOnboardingPromoPageSkeleton as aI,CheckDepositDrawerPage as aJ,Checkbox as aK,CircleWithAttachmentSuccessIcon as aL,CircularProgress as aM,ClickAwayListener as aN,ClickableRow as aO,CollaborationGlobalStyles as aP,CollaborationProvider as aQ,CollaborationRoomProvider as aR,Color$1 as aS,Colors as aT,CombinationOperatorButton as aU,CommentsAndNotesCount as aV,CommentsDrawerProvider as aW,CommonDot as aX,CompanyOfficerOnboardingDetailsSection as aY,CompanyOnboardingDetailsSection as aZ,CompanyPassportCard as a_,CARD_POLICY_LIMIT_ROW_ID_REQUIRE_RECEIPT as aa,CARD_POLICY_LIMIT_ROW_ID_TRANSACTION as ab,COMMAND_CENTER_SUBMENU_TYPES as ac,COMMENTS_DRAWER_MAXIMUM_WIDTH as ad,COMMENTS_SECTION_MINIMUM_WIDTH as ae,COMMENT_NOTIFICATION_KINDS as af,CapitalizationOnboardingPopup as ag,CapitalizationSettingsSection as ah,CardPolicyCreatePage as ai,CardPolicyEditPage as aj,CardPolicyFormPageSkeleton as ak,CardPolicyFormSections as al,CardPolicyListPage as am,CardPolicyListPageSkeleton as an,CardPolicyListRow as ao,CardPolicyListSkeletonRow as ap,CardPolicyManualEmptyState as aq,CardsAiCfoHero as ar,CardsShutdownBanner as as,CashbackDetailLoading as at,CashbackDetailPage as au,ChargeCardCVVActivate as av,ChargeCardDetailLoading as aw,ChargeCardDetailPage as ax,ChargeCardListLoading as ay,ChargeCardListPage as az,AIPerformancePage as b,FieldHelpProvider as b$,CompleteProfile as b0,ConfettiBurst as b1,ConfirmationPopUpDescription$2 as b2,ConfirmationPopUpTitle$3 as b3,ConfirmationPopup as b4,ConnectDataSourcesPage as b5,ContentLoaderSkeleton$1 as b6,ControlledComponent as b7,Controller as b8,CreateOrEditVendorPage as b9,EditReimbursementDetailPage as bA,EditableBillDetailPage as bB,Editor as bC,EmptySearchResults as bD,EntityAvatar as bE,EntityAvatarWithInitials as bF,EntityDetailPage as bG,ErrorBoundaryWrapper as bH,ExcludedAccountReconDetailsDrawerPage as bI,ExpenseAutomationOverviewPage as bJ,ExpenseAutomationOverviewPageSkeleton as bK,ExpenseAutomationPage as bL,ExpressPayPage as bM,ExtraLargeMedium as bN,ExtraLargeRegular as bO,ExtraLargeSemiBold as bP,ExtraSmallBoldSp as bQ,ExtraSmallRegular as bR,ExtraSmallRegularSp as bS,ExtraSmallSemiBold as bT,ExtraSmallSemiBoldSp as bU,EyebrowSmallSemiBoldSp as bV,FORM_MINIMUM_WIDTH as bW,FeatureGatesNames as bX,FeaturePreviewPage as bY,FeatureProvider as bZ,FieldHelpIcon as b_,CreateOrEditVendorPageSkeleton as ba,CreatedEntitiesAnswer as bb,CreatingEntitiesAnswerLoading as bc,CreditCardPaymentDrawerPage as bd,CustomerOnboardingContainerPage as be,CustomerOnboardingNoStepsPage as bf,CustomerOnboardingPage as bg,CustomerOnboardingProductSuitePage as bh,DIGITS_PATTERN as bi,DOMAIN_PATTERN as bj,Dashboard as bk,DashboardReportPage as bl,DashboardSidebarLogoAnimation as bm,DataListTable as bn,DataListTableHeader as bo,DataListTableRow as bp,DataListTableSortIndicator as bq,DateRangeFilterField as br,DebitCardSetPin as bs,Drawer as bt,DrawerPage as bu,DropdownOption$1 as bv,DropdownPortalContext as bw,DynamicConfigNames as bx,EMPTY_HTML_CHECKER as by,EditPeoplePage as bz,ALL_AI_CFO_MENU_OPTIONS as c,InvoicingInvoiceDetailPage as c$,FileAttachment as c0,FileInputElement as c1,FiltersPopover as c2,FirstReviewVendorDetailPage as c3,FixedSizeList as c4,FloatingThreads as c5,FontWeight as c6,Footer$7 as c7,FormProvider as c8,GlobalInfoProvider as c9,InvoicingAuditLogPage as cA,InvoicingBrandingSettingsPage as cB,InvoicingCatalogItemDetailPage as cC,InvoicingCatalogItemFormPage as cD,InvoicingCatalogPage as cE,InvoicingCouponFormPage as cF,InvoicingCreateInvoicePage as cG,InvoicingCreateInvoiceSkeleton as cH,InvoicingCreatePromotionalCreditsDialog as cI,InvoicingCreditDetailPage as cJ,InvoicingCreditListPage as cK,InvoicingCustomerDetailPage as cL,InvoicingCustomerFormPage as cM,InvoicingCustomerListPage as cN,InvoicingDashboardSkeleton as cO,InvoicingDataImportDetailPage as cP,InvoicingDataImportHubPage as cQ,InvoicingDataImportMigratePage as cR,InvoicingDetailScaffold as cS,InvoicingDiscountDetailPage as cT,InvoicingDiscountListPage as cU,InvoicingDunningDetailPage as cV,InvoicingDunningEmailComposerDialog as cW,InvoicingDunningListPage as cX,InvoicingDunningSettingsPage as cY,InvoicingEmptyState as cZ,InvoicingIntegrationsSettingsPage as c_,GlobalReviewListPage as ca,H5Regular as cb,H6Regular as cc,INPUT_BG_COLOR as cd,INPUT_BORDER_COLOR_SELECT_FIELD as ce,INPUT_COLOR as cf,INPUT_ERROR_BG_COLOR as cg,INPUT_HOVER_FOCUS_COLOR as ch,INPUT_PLACEHOLDER_COLOR as ci,INVOICING_SETTINGS_NAV_SECTIONS as cj,INVOICING_SETTINGS_TABS as ck,InfiniteLoader as cl,InformationCardStack as cm,InitialCollaborationProvider as cn,InsightCardStack as co,IntegrationCardView as cp,IntegrationsCardGrid as cq,IntegrationsSection as cr,IntegrationsSettingsPage as cs,InternationalWireVerificationPage as ct,InviteFormPage as cu,InvitePageListView as cv,InvitePeoplePage as cw,InvoiceUploadSection as cx,InvoiceUploadSectionSkeleton as cy,InvoicingAddPaymentMethodDialog as cz,ALL_INVOICING_MENU_GROUPS as d,MonthCalendar as d$,InvoicingInvoiceListPage as d0,InvoicingIssueCreditNotePage as d1,InvoicingOverviewPage as d2,InvoicingPaymentDestinationSettingsPage as d3,InvoicingPaymentLinkEmailComposerDialog as d4,InvoicingPaymentLinkPage as d5,InvoicingPaymentListPage as d6,InvoicingPromoPage as d7,InvoicingQBOSettingsPage as d8,InvoicingRecordPaymentPage as d9,LargeRegular as dA,LargeRegularA as dB,LargeRegularLabel as dC,LargeRegularSp as dD,LargeRegularTA as dE,LargeSemiBold as dF,LinkBillExpensePage as dG,LinkJETransactionPage as dH,ListTableSkeleton as dI,Loader as dJ,LogoutButton as dK,Lottie as dL,MCC_CHIP_ID_PREFIX as dM,MEETING_LINK_DEFAULTS as dN,MENU_BG_COLOR as dO,MONTH_END_EDITOR_PLACEHOLDER as dP,MONTH_END_EMAIL_BODY_SECTION as dQ,MONTH_END_EMAIL_EDITOR_SECTION as dR,MONTH_END_EMAIL_HEADER_SECTION as dS,MONTH_END_REPORT_CANVAS as dT,MagicLinkDomesticWireDetailsPage as dU,MagicLinkInternationalWireDetailsPage as dV,MagicLinkSuccessPage as dW,MagicLinkVendorACHDetailsPage as dX,MatchingOperatorDropdown as dY,Modal as dZ,Modal$1 as d_,InvoicingSettingsHubPage as da,InvoicingSubscriptionDetailPage as db,InvoicingSubscriptionFormPage as dc,InvoicingSubscriptionListPage as dd,InvoicingTransactionDetailPage as de,InvoicingVoidInvoiceDialog as df,IssueChargeCardPage as dg,IssueChargeCardPageSkeleton as dh,ItemWithButton as di,JEOneTimeAccrualDetailPage as dj,Label$g as dk,LabeledDatePickerField as dl,LabeledGroupedMultiSelectField as dm,LabeledItemWithButton as dn,LabeledNameField as dp,LabeledRadioField as dq,LabeledReadOnlyTextField as dr,LabeledSingleSelectNumericField as ds,LabeledSingleSelectPickerField as dt,LabeledSingleSelectWithoutClearableField as du,LabeledTextField as dv,LabeledUnSafeCheckBoxField as dw,LargeBoldSp as dx,LargeMedium as dy,LargeMediumSp as dz,ALL_INVOICING_MENU_OPTIONS as e,ReviewDetailsPageSkeleton as e$,MonthEndEmailDrawerCustomerRequestPage as e0,MonthEndReportCustomerRequestSection as e1,MonthEndReportSection as e2,MoreMenuButton$1 as e3,MyBankConnectionsSettingsPage as e4,MyPendingActivationChargeCardListPage as e5,MyProfileSettingsPage as e6,NEW_CATEGORY_BODY$2 as e7,NEW_THREAD_SUFFIX as e8,NavBar as e9,PolicyModeSelector as eA,Popover as eB,PortfolioAllocationFormPage as eC,PropTypes as eD,QBOConnectionDialog as eE,QBOSetupSectionWithForm as eF,QuickResponsesPage as eG,QuickViewModeContext as eH,REALM_ID as eI,RIGHT_SIDE_PANEL_WIDTH_PX as eJ,RecommendationFeedbackPopup as eK,ReconciliationReportPage as eL,ReimbursementApprovalRuleDetailPage$1 as eM,ReimbursementApprovalRuleDetailPage as eN,ReimbursementApprovalRulesPage$1 as eO,ReimbursementApprovalRulesPage as eP,ReimbursementDetailPage as eQ,ReimbursementDetailPageSkeleton as eR,ReimbursementPromoPage as eS,ReimbursementsBulkReviewDrawerPage as eT,ReloadContainer as eU,RemiSetupPage as eV,ReportsPage as eW,ResponsiveSized as eX,ResponsiveSizedStyle as eY,ReviewBillDetailsPage as eZ,ReviewConfirmTransferPanel as e_,NavBarRightRowStyled as ea,NavBarWithClose as eb,NewGlobalMerchantPage as ec,NewUpdateAvailablePage as ed,NotFoundPage as ee,NotificationSettingsPage as ef,NotificationsPage as eg,OAuthConsentPage as eh,OPTION_BG_COLOR as ei,OPTION_DISABLED_BG_COLOR as ej,OPTION_HOVER_FOCUS_BG_COLOR as ek,OPTION_LABEL_COLOR as el,OPTION_LABEL_DISABLED_COLOR as em,OPTION_LABEL_HOVER_FOCUS_COLOR as en,OnboardingInitialLoader as eo,OnboardingSidebar as ep,OnboardingStepFrame as eq,OpExByVendorPage as er,OverlayContainerPage as es,PandLWithForecastPage as et,PanelDirtyGuardContext as eu,PanelInternalContext as ev,PaymentAccountSetupBillingAddressSection as ew,PeoplePage as ex,Picker as ey,PolicyLimitsRowList as ez,ALL_SETTINGS_MENU_OPTIONS as f,SvgAvatar as f$,ScheduleDetailSkeleton as f0,ScheduleDetailsAccruedExpensesPage as f1,ScheduleDetailsFixedAssetsPage as f2,ScheduleDetailsPage as f3,SearchBoxWithFilterButton as f4,SearchableCheckboxCardList as f5,SessionTimeoutPopup as f6,SidePanelContext as f7,SidePanelLayout$1 as f8,SidePanelProvider as f9,StandardRegular as fA,StandardRegularLabel as fB,StandardRegularLi as fC,StandardRegularSp as fD,StandardSemiBold as fE,StandardSemiBoldSp as fF,StateManagedSelect$1 as fG,StatementParseInfoEntry as fH,StatementProcessingPage as fI,StatementsPage as fJ,StickyThread as fK,StyledCapsule as fL,StyledCheckBox$1 as fM,StyledText$c as fN,SubscriptionDetailPage as fO,SubscriptionSnackBar as fP,SubscriptionSummaryPage as fQ,SvgAddRound as fR,SvgAiIcon as fS,SvgAlert as fT,SvgArrowBottom as fU,SvgArrowCircleBottom as fV,SvgArrowFilledBottom as fW,SvgArrowLeft as fX,SvgArrowRight as fY,SvgArrowTailRight as fZ,SvgArrowTailTop as f_,SignIn as fa,SimpleDownloadMenuButton as fb,SingleSelectNumeric as fc,SingleSelectPickerField as fd,SingleSelectWithoutClearableField as fe,SmallMedium as ff,SmallMediumBtn as fg,SmallMediumSp as fh,SmallRegular as fi,SmallRegularA as fj,SmallRegularBtn as fk,SmallRegularInput as fl,SmallRegularP as fm,SmallRegularSp as fn,SmallRegularUl as fo,SmallSemiBoldSp as fp,SomethingWrongPage as fq,Space as fr,SpendManagementListLoading as fs,SpendManagementListViewPage as ft,SpendManagementSetUpLoading as fu,StandardBold as fv,StandardMedium as fw,StandardMediumA as fx,StandardMediumSp as fy,StandardMediumTA as fz,ALPHA_NUMERIC_PATTERN as g,UserWithTimestamp as g$,SvgClock as g0,SvgClose as g1,SvgCloseRound as g2,SvgComment as g3,SvgCompanyDetails as g4,SvgDelete as g5,SvgDoubleTick as g6,SvgEdit as g7,SvgEmail as g8,SvgFlag as g9,TextHighlightSection as gA,TextStyle as gB,ThreadComponent as gC,ThreadDotComponent as gD,ThreadsContext as gE,ToolkitProvider as gF,Tooltip$6 as gG,TopExDetailPage as gH,TransactionActivityLogPage as gI,TransactionActivityLogPanel as gJ,TransactionDetailPage as gK,TransactionDetailSkeleton as gL,TransactionListBig as gM,TransactionListComments as gN,TransactionListPage as gO,TransactionVendorDetailPage as gP,TransferDrawerPage as gQ,TreasuryOverviewPage as gR,TreasuryPromoPage as gS,TreasurySetUpPage as gT,TreasuryStatementsPage as gU,TreasuryTaxLetterPage as gV,TreasuryTransferOrReviewPage as gW,TrendChart as gX,UncategorizedAccountsMappingPage as gY,UnitIntegrationPage as gZ,UserMultiSelectField as g_,SvgHighImportance as ga,SvgHighImportanceFill as gb,SvgHighImportanceFilled as gc,SvgInfinite as gd,SvgInfo as ge,SvgIntuitQuickBooksLogo as gf,SvgLoader as gg,SvgMore as gh,SvgNotification as gi,SvgOpenLink as gj,SvgPlayButtonSmall as gk,SvgQueryRound as gl,SvgRefresh as gm,SvgReload as gn,SvgSearch as go,SvgTick as gp,SvgTickRound as gq,SvgTickRoundFill as gr,SvgWarning as gs,SvgZeniLogoFull as gt,SyntheticAiCfoAnswerView as gu,THREAD_RESOLVED_NOTIFICATION_KIND as gv,THREAD_UNRESOLVED_NOTIFICATION_KIND as gw,TaskDetailPage as gx,TaskManagementPage as gy,TenantsDropDown as gz,APP_DRAWER_CONTENT_WIDTH_PX as h,debounce$1 as h$,VENDOR_CHIP_ID_PREFIX as h0,VariableSizeList as h1,Vendor2FAPopup as h2,VendorACHDetailsPage as h3,VendorAccruedSchedulesPage as h4,VendorDetailPage as h5,VendorDomesticWireDetailsPage as h6,VendorFiling1099DetailsEditablePage as h7,VendorFiling1099EditableFormSkeleton as h8,VendorFiling1099ListPage as h9,amountValueToString as hA,appLocale as hB,applyExtractedPolicyRulesToFormValues as hC,base64FileSize as hD,buildBulkCreateCardPolicyTemplateRequestsFromInteractiveForm as hE,buildCardPolicyFormValuesFromRequest as hF,buildCreateCardPolicyTemplateRequest as hG,buildCreateCardPolicyTemplateRequestFromInteractiveForm as hH,buildMccCategoryChipId as hI,buildStickyKeySet as hJ,buildVendorChipId as hK,capitaliseWords as hL,capitalize as hM,cellVerticalAlignToFlexAlign as hN,clearAutoLogoutContext as hO,clickableRowStyles as hP,cloneDeep as hQ,clsx$1 as hR,components as hS,composeClasses as hT,computeRecommendationSelectionFeedback as hU,computeStatementProcessingStepsFromElapsedTime as hV,computeStickyLeftOffsets as hW,createSvgIcon as hX,currencyAmountCompactFormatter as hY,darkColors as hZ,darkTheme as h_,VendorFirstReviewPage as ha,VendorInternationalSwiftBasedDetailsPage as hb,VendorInternationalWireDetailsPage as hc,VendorListPage as hd,VendorSchedulesPage as he,VerificationFrame as hf,VerifyDevice as hg,VerifyUnlockFinancialStackPage as hh,WebV2MicroService as hi,WebV2MicroServiceProvider as hj,WelcomeAnimation as hk,WindowSizeProvider as hl,ZeniAccountDetailLoading as hm,ZeniAccountDetailNavBarTitleShimmer as hn,ZeniAccountDetailPage as ho,ZeniAccountListLoading as hp,ZeniAccountListViewPage as hq,ZeniAccountPromoPage as hr,ZeniAccountSetUpPage as hs,ZeniAvatar as ht,ZeniDatePickerField as hu,ZeniText as hv,ZeniThemeProvider as hw,activeElement as hx,alignToJustify$1 as hy,amountToString as hz,AccountInfoPage as i,memoTheme as i$,debounce as i0,defaultCardPolicyFormValues as i1,defer as i2,describeSchedule as i3,designDimension as i4,fetchRequest as i5,fileDownload as i6,formHasDirtyFields as i7,formatReconAccountDisplayName as i8,generateDataTestId as i9,getShowNegativeAmountInParenthesisDefaultValue as iA,getShowNegativeAmountInParenthesisForPercentDefaultValue as iB,getStableTransactionId as iC,getStatementParseTransactionCount as iD,getTagLabel as iE,getTemplatesFromTemplatedData as iF,getTransactionAppliedFiltersCount as iG,getTransactionTagColor$1 as iH,getUpdatedFiltersOnCategoryChange$1 as iI,getUpdatedFiltersOnMatchingOperatorChange$1 as iJ,getUpdatedFiltersOnValueChange$1 as iK,has as iL,hasAgentInsights as iM,invoicingMenuList as iN,isCloseManagementMenu as iO,isClosedCardStatus as iP,isCollaborationEntityType as iQ,isCommentNotificationKind as iR,isEqual$5 as iS,isLayoutSupported as iT,isMobileOrTabletView as iU,isMobilePhoneScreen as iV,isRecommendationFeedbackDimension as iW,isZeniAIUser as iX,jsxRuntimeExports as iY,lightColors as iZ,lightTheme as i_,generateUtilityClass as ia,generateUtilityClasses as ib,getAlpha2 as ic,getAlpha3 as id,getCockpitColor as ie,getColorForALabel as ig,getCountries$1 as ih,getCustomerDataFromAutoComplete as ii,getDefaultExportFromCjs as ij,getDropdownStyles$1 as ik,getFileNameFromResponseHeaders as il,getFilteredThreads as im,getFullName$1 as io,getHTMLWithCommentingSections as ip,getHistoricMonthsList as iq,getInitialOpenThreadRequestFromSearch as ir,getLabelColor as is,getMonthIndex as it,getMultiSelectDropdownStyles as iu,getRecipientTotalAmount as iv,getReconAccountDisplayName as iw,getReviewVendorTagColor as ix,getRichLabel as iy,getSelectionData as iz,AccountLockedInfoModal as j,useHandleSelection as j$,menuList as j0,mergeColumnDeclarativeWithRenderers as j1,mergeLayoutDefaults as j2,nanoid as j3,ownerDocument as j4,ownerWindow as j5,percentValueToString as j6,reactIsExports$1 as j7,refType as j8,requireToInteger as j9,toInvoicingMenuOptionTypeStrict as jA,toMccCategoryChipFieldValue as jB,toMenuOptionType as jC,toSettingsMenuOptionTypeStrict as jD,toSupportedLocaleStrict as jE,toVendorChipFieldValue as jF,trackTreasuryTransferAnalytics as jG,uploadAttachmentReceipts as jH,useAgentInsightEdits as jI,useAnimation as jJ,useApprovalRulesV3Config as jK,useBackNavigation as jL,useCollaborationInfoContext as jM,useCommentsDrawer as jN,useDefaultProps as jO,useDelayUnmount as jP,useDropdownPortal as jQ,useEnhancedEffect as jR,useEventCallback as jS,useExpenseAutomationEnabledForUser as jT,useFieldArray as jU,useFieldHelp as jV,useFilteredThreads as jW,useFloatingThreads as jX,useForm as jY,useFormContext as jZ,useGlobalInfoContext as j_,requireToString as ja,require_baseProperty as jb,require_baseToString as jc,require_castSlice as jd,require_hasUnicode as je,require_stringToArray as jf,resolveBackgroundStatementProcessingCompletedSteps as jg,resolveColumnWidth as jh,roundAmountIfNeeded as ji,roundOffNumberToTwoDecimal as jj,routineIdFromSession as jk,scrollContainerToTargetAdjusted as jl,setAutoLogoutContext as jm,setShowNegativeAmountInParenthesisDefaultValue as jn,setShowNegativeAmountInParenthesisForPercentDefaultValue as jo,settingMenuList as jp,shortCadence as jq,sp as jr,styled as js,textAlignForCell as jt,textStyles as ju,toCollaborationEntityType as jv,toGroupedAccountingClassOptions as jw,toGroupedQboAccountOptions as jx,toInstitutionLogoDataUri as jy,toInvoicingMenuOptionType as jz,AccountReconDetailsDrawerPage$1 as k,useLockBodyScroll as k0,useMeetingLinks as k1,usePanelDirtyGuardRegistry as k2,usePanelInternal as k3,usePrevious$1 as k4,useQuickViewMode as k5,useRegisterBackHandler as k6,useRegisterPanelDirtyGuard as k7,useRequestCloseAllCommentDrawers as k8,useRtl as k9,useSessionAutoLogoutConfig as ka,useSidePanelContext as kb,useSlot as kc,useSlotProps as kd,useTheme as ke,useToolkitContext as kf,useWindowSizeContext as kg,useZeniCardsVisibilityConfig as kh,useZeniFeatureContext as ki,useZeniThemeContext as kj,waitFor as kk,AccountReconDetailsDrawerPage as l,ActivityIndicator as m,ActualMatchingMatchDetailPage as n,AddAddressForCardDrawer as o,AddThreadFloating as p,AddThreadsComponent as q,AddToWalletPage as r,AddressFormPage as s,AgentInsightsEditor as t,AgingReportsPage as u,AiCfoChatHeader as v,AiCfoMenuContent as w,AiCfoOnboardingPage as x,AiCfoPage as y,AiCfoScopeModal as z};
|
|
106048
|
-
//# sourceMappingURL=SessionTimeoutPopup-
|
|
106054
|
+
//# sourceMappingURL=SessionTimeoutPopup-CWH161XD.js.map
|