@wavy/react-ui 0.0.14 → 0.0.15

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/main.d.ts CHANGED
@@ -5,9 +5,9 @@ import { NoUndefinedField, SafeOmit, LocalFile, Prettify, AddPrefix, TaskResult,
5
5
  import { IconType } from 'react-icons';
6
6
  import * as CSS from 'csstype';
7
7
  import CSS__default from 'csstype';
8
+ import { JSX as JSX$1 } from '@emotion/react/jsx-runtime';
8
9
  import { FileUpload, InputProps, InputAddonProps, InputElementProps, AvatarRootProps, FloatProps, CloseButtonProps, Dialog as Dialog$1, MenuRootProps, SegmentGroupRootProps, Steps, Tooltip as Tooltip$1, SeparatorProps as SeparatorProps$1 } from '@chakra-ui/react';
9
10
  export { MenuRootProps, UseStepsProps, useSteps } from '@chakra-ui/react';
10
- import { JSX as JSX$1 } from '@emotion/react/jsx-runtime';
11
11
  import { StepsVariant } from 'node_modules/@chakra-ui/react/dist/types/styled-system/generated/recipes.gen';
12
12
 
13
13
  declare function UiProvider(props: {
@@ -1289,11 +1289,11 @@ type RootStyles = {
1289
1289
  }>;
1290
1290
  }>;
1291
1291
  };
1292
- declare function Root$7<T extends string>(props: BasicTableProps.RootProps<T>): react_jsx_runtime.JSX.Element;
1292
+ declare function Root$8<T extends string>(props: BasicTableProps.RootProps<T>): react_jsx_runtime.JSX.Element;
1293
1293
  declare function Header(props: BasicTableProps.HeaderProps): react_jsx_runtime.JSX.Element;
1294
1294
  declare function Body<T extends string>(props: BasicTableProps.BodyProps<T>): react_jsx_runtime.JSX.Element;
1295
1295
  declare const BasicTable: {
1296
- Root: typeof Root$7;
1296
+ Root: typeof Root$8;
1297
1297
  Header: typeof Header;
1298
1298
  Body: typeof Body;
1299
1299
  };
@@ -1362,12 +1362,12 @@ interface PopoverProps extends Partial<Record<`${"min" | "max"}Width`, FloaterWi
1362
1362
  * @default false
1363
1363
  */
1364
1364
  wrap?: boolean;
1365
- defaultOpen?: boolean;
1365
+ open?: boolean;
1366
1366
  /**The delay between opening and closing the popover in milliseconds
1367
1367
  * @default 200 */
1368
1368
  delay?: number | Record<"open" | "close", number>;
1369
1369
  /**@default "click" */
1370
- displayAction?: "click" | "hover";
1370
+ displayAction?: "click" | "hover" | "script";
1371
1371
  visibleOnScroll?: boolean;
1372
1372
  rerenderOnClose?: boolean;
1373
1373
  /**@description This stops the popover from closing while attempting to interact with it
@@ -1404,6 +1404,7 @@ interface PopoverProps extends Partial<Record<`${"min" | "max"}Width`, FloaterWi
1404
1404
  borderColor?: BasicColor$1;
1405
1405
  /**@default "surfaceContainer" */
1406
1406
  backgroundColor?: BasicColor$1;
1407
+ boxShadow?: string;
1407
1408
  /**@default "max-content" */
1408
1409
  width?: FloaterWidth;
1409
1410
  /**@default "md" */
@@ -1461,6 +1462,38 @@ interface BasicOptionProps {
1461
1462
  }
1462
1463
  declare function BasicOption(props: BasicOptionProps): react_jsx_runtime.JSX.Element;
1463
1464
 
1465
+ declare function Root$7<T>(props: DrawerProps.RootProps<T>): react_jsx_runtime.JSX.Element;
1466
+ declare function Sep$1(): react_jsx_runtime.JSX.Element;
1467
+ declare const Drawer: {
1468
+ Root: typeof Root$7;
1469
+ Header: (props: DrawerProps.HeaderProps) => react_jsx_runtime.JSX.Element;
1470
+ Body: (props: DrawerProps.BodyProps) => react_jsx_runtime.JSX.Element;
1471
+ Footer: (props: DrawerProps.FooterProps) => react_jsx_runtime.JSX.Element;
1472
+ Sep: typeof Sep$1;
1473
+ };
1474
+ declare namespace DrawerProps {
1475
+ interface RootProps<T> extends BasicStyleProps {
1476
+ /**@default "onSurface[0.1]" */
1477
+ sepColor?: BasicColor$1;
1478
+ triggerElement?: JSX$1.Element;
1479
+ controller?: UseModalControlsReturn<T>;
1480
+ children: JSX$1.Element | JSX$1.Element[];
1481
+ /**@default "hidden" */
1482
+ spill?: BasicStyleProps["spill"];
1483
+ container?: React__default.RefObject<HTMLDivElement>;
1484
+ onClose?: () => void;
1485
+ }
1486
+ interface HeaderProps extends BasicStyleProps {
1487
+ children: React__default.ReactNode;
1488
+ /**@default "full" */
1489
+ width?: BasicStyleProps["width"];
1490
+ }
1491
+ interface BodyProps extends HeaderProps {
1492
+ }
1493
+ interface FooterProps extends HeaderProps {
1494
+ }
1495
+ }
1496
+
1464
1497
  interface FileUploadRootProps {
1465
1498
  maxFiles?: number;
1466
1499
  multiple?: boolean;
@@ -1871,7 +1904,7 @@ interface ConfirmationDialogProps extends Partial<Record<"width" | "height" | `$
1871
1904
  message: string;
1872
1905
  hideDisclaimerLabel?: boolean;
1873
1906
  disclaimer?: string;
1874
- controller?: UseDialogControllerReturn;
1907
+ controller?: UseModalControlsReturn;
1875
1908
  triggerElement?: JSX$1.Element;
1876
1909
  /**
1877
1910
  * @default "error"
@@ -1889,13 +1922,13 @@ interface ConfirmationDialogProps extends Partial<Record<"width" | "height" | `$
1889
1922
  }
1890
1923
  declare function ConfirmationDialog(props: ConfirmationDialogProps): react_jsx_runtime.JSX.Element;
1891
1924
 
1892
- declare function useDialogController<Value>(defaultValue?: Value): {
1925
+ declare function useModalControls<Value>(defaultValue?: Value): {
1893
1926
  value: Value;
1894
1927
  isOpen: boolean;
1895
1928
  show: (...args: Value extends boolean ? [] : [value: Value]) => void;
1896
1929
  hide: () => void;
1897
1930
  };
1898
- type UseDialogControllerReturn<T = {}> = ReturnType<typeof useDialogController<T>>;
1931
+ type UseModalControlsReturn<T = {}> = ReturnType<typeof useModalControls<T>>;
1899
1932
 
1900
1933
  declare function Root$2<T>(props: DialogProps.RootProps<T>): react_jsx_runtime.JSX.Element;
1901
1934
  interface ElementProps extends SafeOmit<BasicDivProps, "ref" | "onClick" | "onBlur" | "onFocus" | "onScroll" | "clickable"> {
@@ -1940,7 +1973,7 @@ declare namespace DialogProps {
1940
1973
  * @default "outside"
1941
1974
  */
1942
1975
  scrollBehavior?: Dialog$1.RootProps["scrollBehavior"];
1943
- controller?: UseDialogControllerReturn<T>;
1976
+ controller?: UseModalControlsReturn<T>;
1944
1977
  /**
1945
1978
  * Whether to close the dialog when the escape key is pressed
1946
1979
  * @default true
@@ -1959,7 +1992,7 @@ declare namespace DialogProps {
1959
1992
 
1960
1993
  interface FancyFormDialogProps<Section extends string> {
1961
1994
  triggerElement?: JSX$1.Element;
1962
- controller?: UseDialogControllerReturn;
1995
+ controller?: UseModalControlsReturn;
1963
1996
  title?: React.ReactNode;
1964
1997
  defaultSection?: Section;
1965
1998
  sections: BasicOlProps<Section>["items"];
@@ -1985,7 +2018,7 @@ interface FancyFormDialogProps<Section extends string> {
1985
2018
  declare function FancyFormDialog<Sections extends string>(props: FancyFormDialogProps<Sections>): react_jsx_runtime.JSX.Element;
1986
2019
 
1987
2020
  interface SimpleFormDialogProps<T extends string> {
1988
- controller?: UseDialogControllerReturn;
2021
+ controller?: UseModalControlsReturn;
1989
2022
  title?: string;
1990
2023
  triggerElement?: JSX$1.Element;
1991
2024
  /**@default "md" */
@@ -2390,13 +2423,11 @@ declare namespace TimelineProps {
2390
2423
  children: JSX$1.Element | JSX$1.Element[];
2391
2424
  }
2392
2425
  interface ItemProps {
2393
- indicator?: React.ReactNode;
2394
- /**The node that should be placed `before` (to the left of) the separator */
2395
- before?: React.ReactNode;
2396
- /**The node that should be placed `after` (to the right of) the separator */
2397
- after?: React.ReactNode;
2426
+ indicator?: React__default.ReactNode;
2427
+ children: React__default.ReactElement | [React__default.ReactElement, React__default.ReactElement];
2398
2428
  disabled?: boolean;
2399
- styles?: Partial<Record<"before" | "after", BasicStyleProps> & {
2429
+ reverse?: boolean;
2430
+ styles?: Partial<Record<"leadingEl" | "trailingEl", BasicStyleProps> & {
2400
2431
  indicator: Partial<BasicStyleProps & {
2401
2432
  /**@default ".6rem" */
2402
2433
  size: BasicStyleProps["size"];
@@ -2480,7 +2511,7 @@ interface AttachmentsDialogProps extends ContextType {
2480
2511
  triggerElement?: JSX.Element;
2481
2512
  unmountOnExit?: boolean;
2482
2513
  rerenderOnClose?: boolean;
2483
- controller?: UseDialogControllerReturn;
2514
+ controller?: UseModalControlsReturn;
2484
2515
  onAttachmentsChange?: (attachments: Email["attachments"]) => void;
2485
2516
  onClose?: () => void;
2486
2517
  }
@@ -2731,7 +2762,7 @@ declare const _default: React$1.MemoExoticComponent<typeof Calendar>;
2731
2762
  interface CalendarDialogProps extends CalendarProps {
2732
2763
  title?: string;
2733
2764
  titleFontSize?: BasicSpanProps["fontSize"];
2734
- controller?: UseDialogControllerReturn;
2765
+ controller?: UseModalControlsReturn;
2735
2766
  triggerElement?: JSX$1.Element;
2736
2767
  /**@default "onSurface[0.1]" */
2737
2768
  backgroundColor?: BasicColor$1;
@@ -2746,7 +2777,7 @@ declare function CalendarDialog(props: CalendarDialogProps): react_jsx_runtime.J
2746
2777
 
2747
2778
  interface PaymentOptionsDialogProps<Variables extends Record<string, any>> {
2748
2779
  triggerElement?: JSX$1.Element;
2749
- controller?: UseDialogControllerReturn;
2780
+ controller?: UseModalControlsReturn;
2750
2781
  options: {
2751
2782
  icon: IconType;
2752
2783
  label: string;
@@ -2793,7 +2824,7 @@ declare const inAppPaymentOption: () => {
2793
2824
  };
2794
2825
 
2795
2826
  interface TaskResultDialogProps {
2796
- controller: UseDialogControllerReturn<TaskResult<SuccessMessage>>;
2827
+ controller: UseModalControlsReturn<TaskResult<SuccessMessage>>;
2797
2828
  unmountOnExit?: boolean;
2798
2829
  /**@default "2.75rem" */
2799
2830
  indicatorSize?: ElementDim | ((status: "success" | "error") => ElementDim);
@@ -3219,4 +3250,4 @@ declare function remAsPx(rem: number): string;
3219
3250
  declare function isOverflown(element: HTMLElement): boolean;
3220
3251
  declare function computedCssVariable(cssVariable: string): string;
3221
3252
 
3222
- export { AttachmentsButton, AttachmentsDialog, Avatar, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv, BasicImg, BasicOl, BasicOption, BasicSelect, BasicSpan, type BasicStyleProps, BasicTable, BasicTableProps, _default as Calendar, CalendarDialog, CancelButton, Card, CardProps, Checkbox, type CheckboxProps, ColorResources, type ComputedStyleProps, ConfirmationDialog, type ConfirmationDialogProps, CopyButton, CssColors, type CssProperties, CssShapes, CssSpacing, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, ExpandableButton, FancyFormDialog, type FancyFormDialogProps, FileDropzone, type FileDropzoneProps, FileViewer, FileViewerProps, FontSize, Indicator, type IndicatorProps, type InlineCss, ItemInfo, type ItemInfoProps, JsonViewer, type JwtVerificationStatus, JwtVerifier, type JwtVerifierProps, MediaCard, MediaCardProps, Menu, type MenuPlacement, MoneyDisplayCard, NegativeButton, NextButton, NoButton, OpenButton, OptionsButton, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseDialogControllerReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, tiledBackground, useAsyncEffect, useComputedStyle, useDialogController, useEventEmitter, useManagedRef, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage };
3253
+ export { AttachmentsButton, AttachmentsDialog, Avatar, type AvatarProps, Badge, type BadgeProps, BasicButton, type BasicColor$1 as BasicColor, BasicDiv, BasicImg, BasicOl, BasicOption, BasicSelect, BasicSpan, type BasicStyleProps, BasicTable, BasicTableProps, _default as Calendar, CalendarDialog, CancelButton, Card, CardProps, Checkbox, type CheckboxProps, ColorResources, type ComputedStyleProps, ConfirmationDialog, type ConfirmationDialogProps, CopyButton, CssColors, type CssProperties, CssShapes, CssSpacing, DeleteButton, Dialog, DialogProps, Disclaimer, type DisclaimerProps, DownloadButton, Drawer, DrawerProps, EditButton, Editable, type EditableProps, EmailComposer, EmptyState, EmptyStateProps, ErrorTooltip, ExpandableButton, FancyFormDialog, type FancyFormDialogProps, FileDropzone, type FileDropzoneProps, FileViewer, FileViewerProps, FontSize, Indicator, type IndicatorProps, type InlineCss, ItemInfo, type ItemInfoProps, JsonViewer, type JwtVerificationStatus, JwtVerifier, type JwtVerifierProps, MediaCard, MediaCardProps, Menu, type MenuPlacement, MoneyDisplayCard, NegativeButton, NextButton, NoButton, OpenButton, OptionsButton, PageSlider, type PageSliderProps, Paper, type PaperProps, PasteButton, PaymentOptionsButton, PaymentOptionsDialog, PictureUploader, Popover, type PopoverProps, PositiveButton, PreviousButton, ProfileCard, ProfileCardProps, ReceiptCard, SaveButton, SearchTextField, SegmentedControls, type SegmentedControlsProps, SendButton, Separator, type SeparatorProps, SignInWidget, SimpleFormDialog, type SimpleFormDialogProps, Status, type StatusProps, Stepper, type StepperProps, SubmitButton, Tag, type TagProps, TaskLogger, TaskResultDialog, Terminal, TextField, type TextFieldProps, Timeline, TimelineProps, Tooltip, type TooltipPlacement, type TooltipProps, UploadButton, UploadReceiptButton, type UseModalControlsReturn, type UsePageSliderControllerReturn, UserProfile, VerifyButton, VerifyTextField, UiProvider as WavyUi, YesButton, YesNoButtonGroup, YesOrNoForm, applyBasicStyle, bankTransferPaymentOption, borderRadius, buildCSS, computedCssVariable, convertHexUnitTo256, cssTransition, definePaymentOption, disabledBorderRadius, dragElement, ellipsis, flexCenter, getFileIcon, getPaperDim, getScrollParent, hexToRgba, inAppPaymentOption, isOverflown, isSpanMultiLine, isValidHex, nativeEllipsis, noSpaceStyle, remAsPx, remToPx, resolveBasicColor, restrictLineCount, rgbToRgba, screenHasMaxWidth, screenHasMinWidth, solidBorder, tiledBackground, useAsyncEffect, useComputedStyle, useEventEmitter, useManagedRef, useModalControls, usePageSliderController, usePopoverContext, usePostRenderEffect, useRerender, useSessionStorage };
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Portal,Button,AbsoluteCenter,Spinner,FileUpload,Icon,Box,Avatar,Float,Dialog,CloseButton,Menu,SegmentGroup,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as re from'react';import re__default,{createContext,memo,useState,useRef,useEffect,useContext,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,run,format,hasIndex,upperFirst,sanitizeLocalFile,inferFilename,sort,readClipboardText,copyToClipboard,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import {v4}from'uuid';import ic from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import sd from'react-datepicker';import'react-datepicker/dist/react-datepicker.css';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import _f from'react-dom/server';var pi=Object.create;var Vt=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var _i=Object.getOwnPropertyNames;var bi=Object.getPrototypeOf,Si=Object.prototype.hasOwnProperty;var xi=(e,r)=>()=>(e&&(r=e(e=0)),r);var Pi=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Bi=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of _i(r))!Si.call(e,n)&&n!==t&&Vt(e,n,{get:()=>r[n],enumerable:!(o=Ci(r,n))||o.enumerable});return e};var ki=(e,r,t)=>(t=e!=null?pi(bi(e)):{},Bi(!e||!e.__esModule?Vt(t,"default",{value:e,enumerable:true}):t,e));var a=xi(()=>{});var vo=Pi((_0,te)=>{a();function zr(){return te.exports=zr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},te.exports.__esModule=true,te.exports.default=te.exports,zr.apply(null,arguments)}te.exports=zr,te.exports.__esModule=true,te.exports.default=te.exports;});a();a();a();a();a();function Wt(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function $t(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Oi(){let{colorMode:e}=$t();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}re.forwardRef(function(r,t){let{toggleColorMode:o}=$t();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:o,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Oi,{})})})});re.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});re.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function Jt(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(Wt,{...e})})}function Mi(e){return jsx(Jt,{children:e.children})}var Li=Mi;a();a();a();var ae=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(o=>o in e);return Object.fromEntries(t.map(o=>[o,e[o]]))};a();a();a();var Xt=(c=>(c.xs=".125rem",c.sm=".25rem",c.md=".5rem",c.lg="1rem",c.xl="1.5rem",c.xxl="2rem",c.circle="100%",c.popover="1rem",c))(Xt||{}),le=Xt;function am(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function lm(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",o=e?.target||"all",n=e?.timing||"linear",i=e?.delay||"0";return `${o} ${r[t]} ${n} ${i}`}function sm(e){return `${e.thickness||"1px"} solid ${e.color}`}function Ut(e){let r=C(e.backgroundColor),t=C(e.borderColor),o=e.tileBorderThickness||"1px",n=e.tileSize||"1.5rem";return `
1
+ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Portal,Button,AbsoluteCenter,Spinner,Drawer,CloseButton,FileUpload,Icon,Box,Avatar,Float,Dialog,Menu,SegmentGroup,Tag,Steps,Stack,ButtonGroup,HStack,Text,Field,InputGroup,Input,For,Separator,ChakraProvider,defaultSystem}from'@chakra-ui/react';export{useSteps}from'@chakra-ui/react';import {useTheme,ThemeProvider}from'next-themes';import*as te from'react';import te__default,{createContext,memo,useState,useRef,useEffect,useContext,useCallback}from'react';import {LuMoon,LuSun,LuCheck,LuUpload,LuX,LuPencilLine,LuChevronRight}from'react-icons/lu';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {FaAngleUp,FaAngleDown,FaRegFileImage,FaFileImage,FaRegFilePdf,FaFilePdf,FaFolder}from'react-icons/fa';import {buildArray,range,isEmpty,strictArray,camelCaseToLetter,lastIndex,run,format,hasIndex,upperFirst,sanitizeLocalFile,inferFilename,sort,readClipboardText,copyToClipboard,takeLast,getMimeTypes,distinct,toObject}from'@wavy/fn';import {withEmotionCache,ThemeContext}from'@emotion/react';import {IoMdCheckmark,IoMdSend,IoMdImages,IoMdDownload}from'react-icons/io';import {PiImageBrokenLight}from'react-icons/pi';import {IoChevronBack,IoChevronForward,IoChevronDown,IoAdd,IoOpenOutline,IoWarningOutline,IoRemove,IoCheckmark,IoCopyOutline}from'react-icons/io5';import {BsArrowLeft,BsArrowRight,BsExclamationTriangle,BsInfoCircle,BsExclamationCircle,BsPaperclip,BsTrash,BsTrashFill,BsChevronBarContract,BsArrowsAngleContract,BsChevronBarExpand,BsArrowsAngleExpand,BsCreditCard2FrontFill,BsCheck2Circle,BsPlus,BsDash}from'react-icons/bs';import {v4}from'uuid';import yc from'./assets/flyLeavesEmptyBox.png';import {MdMoreVert,MdVerifiedUser}from'react-icons/md';import {TfiReceipt}from'react-icons/tfi';import Cd from'react-datepicker';import'react-datepicker/dist/react-datepicker.css';import {RiBankFill,RiSecurePaymentFill,RiMailSendLine,RiMailCloseLine,RiFileTextLine,RiFileTextFill,RiFileWord2Line,RiFileWord2Fill,RiFileExcel2Line,RiFileExcel2Fill}from'react-icons/ri';import {GrRotateLeft}from'react-icons/gr';import {HiUpload}from'react-icons/hi';import {FcGoogle}from'react-icons/fc';import {CiSearch}from'react-icons/ci';import {ImPaste}from'react-icons/im';import {AiOutlineFileUnknown,AiFillFileUnknown}from'react-icons/ai';import'./main.css';import Ff from'react-dom/server';var Si=Object.create;var Wt=Object.defineProperty;var xi=Object.getOwnPropertyDescriptor;var Pi=Object.getOwnPropertyNames;var Bi=Object.getPrototypeOf,ki=Object.prototype.hasOwnProperty;var wi=(e,r)=>()=>(e&&(r=e(e=0)),r);var Di=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Ti=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pi(r))!ki.call(e,n)&&n!==t&&Wt(e,n,{get:()=>r[n],enumerable:!(o=xi(r,n))||o.enumerable});return e};var Ei=(e,r,t)=>(t=e!=null?Si(Bi(e)):{},Ti(!e||!e.__esModule?Wt(t,"default",{value:e,enumerable:true}):t,e));var a=wi(()=>{});var ho=Di((F0,oe)=>{a();function Ir(){return oe.exports=Ir=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},oe.exports.__esModule=true,oe.exports.default=oe.exports,Ir.apply(null,arguments)}oe.exports=Ir,oe.exports.__esModule=true,oe.exports.default=oe.exports;});a();a();a();a();a();function Nt(e){return jsx(ThemeProvider,{attribute:"class",disableTransitionOnChange:true,...e})}function Jt(){let{resolvedTheme:e,setTheme:r,forcedTheme:t}=useTheme();return {colorMode:t||e,setColorMode:r,toggleColorMode:()=>{r(e==="dark"?"light":"dark");}}}function Li(){let{colorMode:e}=Jt();return e==="dark"?jsx(LuMoon,{}):jsx(LuSun,{})}te.forwardRef(function(r,t){let{toggleColorMode:o}=Jt();return jsx(ClientOnly,{fallback:jsx(Skeleton,{boxSize:"9"}),children:jsx(IconButton,{onClick:o,variant:"ghost","aria-label":"Toggle color mode",size:"sm",ref:t,...r,css:{_icon:{width:"5",height:"5"}},children:jsx(Li,{})})})});te.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme light",colorPalette:"gray",colorScheme:"light",ref:t,...r})});te.forwardRef(function(r,t){return jsx(Span,{color:"fg",display:"contents",className:"chakra-theme dark",colorPalette:"gray",colorScheme:"dark",ref:t,...r})});function Ut(e){return jsx(ChakraProvider,{value:defaultSystem,children:jsx(Nt,{...e})})}function Wi(e){return jsx(Ut,{children:e.children})}var $i=Wi;a();a();a();var se=e=>{let t=Object.keys({id:0,onBlur:0,onFocus:0,onClick:0,className:0,onDoubleClick:0,ref:0,popoverTarget:0,popover:0}).filter(o=>o in e);return Object.fromEntries(t.map(o=>[o,e[o]]))};a();a();a();var jt=(c=>(c.xs=".125rem",c.sm=".25rem",c.md=".5rem",c.lg="1rem",c.xl="1.5rem",c.xxl="2rem",c.circle="100%",c.popover="1rem",c))(jt||{}),ce=jt;function hm(e){return {...e,backdropFilter:e?.backgroundBlur?`blur(${e.backgroundBlur})`:e?.backdropFilter}}function pm(e){let r={fast:"150ms",normal:"300ms",slow:"450ms"},t=e?.speed||"normal",o=e?.target||"all",n=e?.timing||"linear",i=e?.delay||"0";return `${o} ${r[t]} ${n} ${i}`}function Cm(e){return `${e.thickness||"1px"} solid ${e.color}`}function Gt(e){let r=_(e.backgroundColor),t=_(e.borderColor),o=e.tileBorderThickness||"1px",n=e.tileSize||"1.5rem";return `
2
2
  ${e.fader||"radial"}-gradient(transparent, ${r} 75%),
3
3
  repeating-linear-gradient(
4
4
  ${t},
@@ -14,10 +14,10 @@ import'path';import'url';import {ClientOnly,IconButton,Skeleton,Span,Tooltip,Por
14
14
  transparent ${n}
15
15
  )
16
16
  ${r}
17
- `}function cm(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function dm(e,r){let t=o=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?o.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(o)?e.radius:void 0:e[o];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function um(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||le.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function fm(e){let r=0,t=0,o=0,n=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),o=c.clientX,n=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=o-c.clientX,t=n-c.clientY,o=c.clientX,n=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function mm(e){return {...e,margin:0,padding:0}}function X(e,r={apply:true}){return r.apply?ze(1,e):e}function gm(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function Gt(e){let r=e;for(;r&&!Tr(r);)r=r.parentElement;return r}function jt(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let o=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>o+2}function C(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>J[o],s=()=>i?$i(ee[n],parseFloat(i)):ee[o];if(t==="css"){if(o in J)return l();if(n in ee)return s()}else if(t==="res"){if(n in ee)return s();if(o in J)return l()}return o}var Hi=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Wi=e=>parseInt(e.repeat(2/e.length),16);function $i(e,r=1){let t=(v,m)=>v.match(new RegExp(`.{${m}}`,"g")),o=v=>typeof v<"u"?v/255:typeof r!="number"||r<0||r>1?1:r;if(!Hi(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,g]=i.map(Wi);return `rgba(${l}, ${s}, ${c}, ${o(g)})`}function vm(e,r){let t=e.includes(",")?",":" ",o=e.split("").filter(n=>(t+"0123456789").includes(n)).join("").split(t);return o.length===3?o.push(`${r}`):o=o.with(3,`${r}`),"rgba("+o.join(t)+")"}function ym(e){return window.matchMedia(`(max-width:${e})`).matches}function hm(e){return window.matchMedia(`(min-width:${e})`).matches}function ze(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function Ni(e){return e*16}function pm(e){return `${Ni(e)}px`}function Tr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Cm(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var Ji=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),se=Ji;a();var Xi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),G=Xi;var lr=["top","right","bottom","left"],Yt=(e,r)=>`translate(${e}, ${r})`,Kt=e=>`translateX(${e})`,qt=e=>`translateY(${e})`,Ui=(e,r)=>{let t=e.fontSize in G?G[e.fontSize]:e.fontSize,{overflowX:o,overflowY:n}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:`${C(e.scrollbarThumbColor||"inherit")} ${C(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?Yt("-50%","-50%"):e.centerSelf==="x"?Kt("-50%"):e.centerSelf==="y"?qt("-50%"):e.translate?.x&&e.translate?.y?Yt(e.translate.x,e.translate.y):e.translate?.x?Kt(e.translate.x):e.translate?.y?qt(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:Ki(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:Gi(e.borderColor),borderWidth:ji(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:Yi(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:qi(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:C(e.backgroundColor),color:C(e.color),gap:Zi(e.gap),overflowX:o,overflowY:n,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(l).forEach(s=>{let c=s,g=l[c];typeof g=="string"&&(g=g.trim()),!g&&g!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function Gi(e){if(!e)return;let r="transparent";return typeof e=="string"?C(e):lr.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?C(o):r}return typeof e=="object"&&t in e?C(e[t]):r}).join(" ")}function ji(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:lr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function Yi(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:lr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function Ki(e){let t=o=>o?o in se?se[o]:o:"0px";return e?typeof e=="string"?t(e):lr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):i===o)?t(n):"0px"}return typeof e=="object"&&o in e?t(e[o]):"0px"}).join(" "):"0px"}function qi(e){let t=n=>n?n in le?le[n]:n:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(n=>{let i=e?.[n];return n.includes("top")&&e?.top?t(e.top):n.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function Zi(e){if(!(!e||typeof e!="string"))return e in se?se[e]:e}var b=Ui;var ia=["inherit","sm","md","lg","xl","2xl","xs"],aa=["sm","md","lg","xl","2xl","xs","2xs"];function Zt(e){let[r,t]=useState(false),o=e.disabled||r,n=async m=>{if(!o){if(!e.async)return e.onClick?.(m);t(true),await e.onClick?.(m),setTimeout(()=>t(false),e.pendingDelay||1);}},i=m=>{if(m){if(typeof m==typeof FaFolder){let h=S=>typeof S=="string"&&[...ia].includes(S);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:m})}return m}},l=i(e.leadingEl),s=i(e.trailingEl),c=m=>typeof m=="string"&&[...aa].includes(m),{size:g,...v}=e;return jsxs(Button,{...ae(e),disabled:o,size:c(g)?g:void 0,style:b({...v,size:c(g)?void 0:g,clickable:!o,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:o?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:n,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?C(e.spinnerColor):"blue.500"})})]})}var ce=e=>r=>jsx(Zt,{...(()=>{let o={...r,...e.preset};for(let n of Object.keys(e.optional||{})){let i=n,l=i in o,s=[void 0,null].includes(o[i]);(!l||s)&&(o[i]=e.optional[i]);}return o})()}),B=Zt;a();a();a();a();a();function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},cr.apply(null,arguments)}a();a();function Qt(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}a();var eo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};a();function dr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ca=/[A-Z]|^ms/g,da=/_EMO_([^_]+?)_([^]*?)_EMO_/g,no=function(r){return r.charCodeAt(1)===45},ro=function(r){return r!=null&&typeof r!="boolean"},Er=dr(function(e){return no(e)?e:e.replace(ca,"-$&").toLowerCase()}),to=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(da,function(o,n,i){return j={name:n,styles:i,next:j},n})}return eo[r]!==1&&!no(r)&&typeof t=="number"&&t!==0?t+"px":t};function Oe(e,r,t){if(t==null)return "";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case "boolean":return "";case "object":{var n=t;if(n.anim===1)return j={name:n.name,styles:n.styles,next:j},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)j={name:l.name,styles:l.styles,next:j},l=l.next;var s=i.styles+";";return s}return fa(e,r,t)}case "function":{if(e!==void 0){var c=j,g=t(e);return j=c,Oe(e,r,g)}break}}var v=t;if(r==null)return v;var m=r[v];return m!==void 0?m:v}function fa(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=Oe(e,r,t[n])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?o+=i+"{"+r[s]+"}":ro(s)&&(o+=Er(i)+":"+to(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)ro(l[c])&&(o+=Er(i)+":"+to(i,l[c])+";");else {var g=Oe(e,r,l);switch(i){case "animation":case "animationName":{o+=Er(i)+":"+g+";";break}default:o+=i+"{"+g+"}";}}}}return o}var oo=/label:\s*([^\s;{]+)\s*(;|$)/g,j;function io(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=true,n="";j=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=Oe(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=Oe(t,r,e[s]),o){var c=i;n+=c[s];}oo.lastIndex=0;for(var g="",v;(v=oo.exec(n))!==null;)g+="-"+v[1];var m=Qt(n)+g;return {name:m,styles:n,next:j}}a();var ma=typeof document<"u",ao=function(r){return r()},ga=re.useInsertionEffect?re.useInsertionEffect:false,lo=ma&&ga||ao;a();var Fr=typeof document<"u";function so(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Rr=function(r,t,o){var n=r.key+"-"+t.name;(o===false||Fr===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},co=function(r,t,o){Rr(r,t,o);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+n:"",l,r.sheet,true);!Fr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!Fr&&i.length!==0)return i}};a();var va=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uo=dr(function(e){return va.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var pa=typeof document<"u",_a=uo,ba=function(r){return r!=="theme"},fo=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?_a:ba},mo=function(r,t,o){var n;if(t){var i=t.shouldForwardProp;n=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof n!="function"&&o&&(n=r.__emotion_forwardProp),n},Sa=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Rr(t,o,n);var i=lo(function(){return co(t,o,n)});if(!pa&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return re.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},go=function e(r,t){var o=r.__emotion_real===r,n=o&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=mo(r,t,o),c=s||fo(n),g=!c("as");return function(){var v=arguments,m=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),v[0]==null||v[0].raw===void 0)m.push.apply(m,v);else {var h=v[0];m.push(h[0]);for(var S=v.length,x=1;x<S;x++)m.push(v[x],h[x]);}var y=withEmotionCache(function(_,P,R){var z=g&&_.as||n,Pe="",Mt=[],tr=_;if(_.theme==null){tr={};for(var Lt in _)tr[Lt]=_[Lt];tr.theme=re.useContext(ThemeContext);}typeof _.className=="string"?Pe=so(P.registered,Mt,_.className):_.className!=null&&(Pe=_.className+" ");var or=io(m.concat(Mt),P.registered,tr);Pe+=P.key+"-"+or.name,l!==void 0&&(Pe+=" "+l);var hi=g&&s===void 0?fo(z):c,nr={};for(var ir in _)g&&ir==="as"||hi(ir)&&(nr[ir]=_[ir]);return nr.className=Pe,R&&(nr.ref=R),re.createElement(re.Fragment,null,re.createElement(Sa,{cache:P,serialized:or,isStringTag:typeof z=="string"}),re.createElement(z,nr))});return y.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=r.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=m,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return "."+l}}),y.withComponent=function(_,P){var R=e(_,cr({},t,P,{shouldForwardProp:mo(y,P,true)}));return R.apply(void 0,m)},y}};ki(vo());var xa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Be=go.bind(null);xa.forEach(function(e){Be[e]=Be(e);});var Or=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?C(o):o)}static span=r=>Be.span({...this.getStyle(r)});static div=r=>Be.div({...this.getStyle(r)});static img=r=>Be.img({...this.getStyle(r)})},ke=Or;function wa(e){let r=useRef(null),[t,o]=useState(false),n=T({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let v=n.read();r.current&&[v.top,v.left].some(m=>!!m)&&(r.current.scrollTop=v?.top??0,r.current.scrollLeft=v?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Tr(r.current)&&!t&&o(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=b({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?s:void 0,bottom:e.enableYFaders?s:void 0}}),g=ke.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(g,{...ae(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:v=>{let m=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([m,h]))||n.upsert({top:m??0,left:h??0}),e.onScroll?.(v);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=wa;a();function Ea(e){let r=!!e.tint,t=ke.img(e.sx);return jsx(t,{...ae(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...b(e),filter:r?`drop-shadow(0px 1000px 0 ${C(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var de=Ea;a();function za(e){let r=o=>e.onItemClick?.(o),t=e.bold??e.items.some(o=>typeof o=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((o,n)=>typeof o=="string"?jsx(Ir,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(Ir,{index:n,bold:t,item:o.label,active:o.nestedItems.some(i=>e.isItemActive(i)),completed:o.nestedItems.every(i=>e.isItemCompleted(i)),onClick:o.nestedItems?.[0]?()=>r(o.nestedItems[0]):void 0}),jsx(d,{width:"full",children:o.nestedItems.map((i,l)=>jsx(Ir,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function Ir(e){let r=ee.white,t=J.onSurface,o=e.nested?t:J.tertiaryContainer,n=e.active?o:ee.carlsbergGreen,i=e.active&&!e.nested?o:J["onSurface[0.25]"],l=e.nested?J["onSurface[0.4]"]:J["onSurface[0.5]"],s=J["onSurface[0.2]"],c=()=>e.onClick?.(e.item),g=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?o:l,borderColor:e.completed?n:e.active?o:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?n:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(g,{fontSize:"1rem"}):jsx(p,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(g,{size:"1.25rem",opacity:.75})]})}var Ar=za;a();function Ia(e){let r=i=>e.ellipsis?X(i):e.lineLimit?ze(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),o=b({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=ke.span(e.sx);return jsx(n,{...ae(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:o.textAlign||e.textAlign||"justify",fontStyle:o.fontStyle||e.italic?"italic":void 0,textDecoration:o.textDecoration||t()||void 0}),children:e.text||e.children})}var p=Ia;a();var Ae=createContext(null);function Va(e){let r=e.columnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",o=x=>(e.selectable?"auto ":"")+x.map(_=>typeof _=="string"||!_.weight?r:_.weight).join(" "),n=!!e.selectedRows,[i,l]=useState(e.defaultSelectedRows||[]),[s,c]=useState(o(e.columns)),g=i.length===e.entries.length&&e.entries.length>0,v=(Array.isArray(e.children)?e.children:[e.children]).filter((x,y)=>y<2),m=()=>{let x=[];g||(x=e.entries.map((y,_)=>_)),e.onSelectedRowsChange?.(x),n||l(x);},h=x=>{let y=[...i];y.includes(x)?y=y.filter(_=>_!==x):y.push(x),e.onSelectedRowsChange?.(y),n||l(y);},S=()=>e.columnWeight?e.columns.map(x=>{let y=typeof x=="object"?x:{};return {...y,name:ve(x),weight:"weight"in y?y.weight:e.columnWeight,textAlign:"textAlign"in y?y.textAlign:e.textAlign||"start"}}):e.columns;return useEffect(()=>{},[]),jsx(Ae.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:g,onSelectRowClick:h,onSelectAllRowsClick:m,columns:S(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:x=>{let y=e.columns.map(_=>{let P=x.get(ve(_));return P?{..._,weight:`${P}px`}:_});c(o(y));}},children:jsx(d,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"'},children:v})})}function Ha(e){let r=useContext(Ae),t=e.separatorColor||r.separatorColor;return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t?[t,"bottom"]:void 0),spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header"},children:[r.selectable&&jsx(bo,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,n)=>{let i=ve(o);return jsx(p,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1,textAlign:Ie("textAlign",o)}},i+n)})]})}function Wa(e){let r=useContext(Ae),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(d,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((o,n)=>jsx($a,{rowData:o,index:n,style:e.styleRow?.(n),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onAutoColumnWidthsComputed(t.current);}},n))})}function $a(e){let r=useContext(Ae),t=r.selectedRowIndices.includes(e.index),o=()=>r.onSelectRowClick(e.index),{gap:n,padding:i,backgroundColor:l}=b({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{style:{gap:n,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(bo,{selected:t,onClick:o}),r.columns.map((s,c,g)=>{let v=ve(s),m=e.rowData[v],h=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),x=c+ve(s),y=Ie("textAlign",s),_={textAlign:y,justifyContent:y,color:Ie("color",s),opacity:Ie("opacity",s,1),backgroundColor:Ie("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:v,columnIndex:c,rowIndex:e.index,data:typeof m=="string"?m:null,siblingData:{previous:c===0?null:run(e.rowData[ve(g[c-1])],P=>typeof P=="string"?P:null),next:c===g.length-1?null:run(e.rowData[ve(g[c+1])],P=>typeof P=="string"?P:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsx(Na,{data:m,style:_,onRender:S,placeholder:h,onWidthComputed:P=>e.onColWidthComputed(v,P)},x):jsx(So,{data:m,style:_,placeholder:h,onRender:S},x)})]})}function bo(e){let r=useContext(Ae),{disableSeparator:t,separatorColor:o}=r.slotProps?.selectColumn||{},n=o||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:n&&!t?[n,"right"]:void 0,children:jsx(Po,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function Na(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(So,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function So(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}var ve=e=>typeof e=="string"?e:e.name,Ie=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Ja={Root:Va,Header:Ha,Body:Wa},Xa=Ja;a();a();function Ga(e){return jsxs(d,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),jsx("span",{children:e.value.toString(),style:X({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Lr=Ga;var ko=createContext(null);function Qa(e){return jsx(ko.Provider,{value:e,children:jsx(De,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(el,{})})})}function el(){let e=useContext(ko),r=Do(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=L();return useEffect(()=>{setTimeout(()=>{n();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),o(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(Lr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var Le=Qa;a();a();a();var wo=["Google"],To=["pdf","word","excel","img","txt","unknown"],Eo=Object.freeze({txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]});function Ro(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:rl(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var rl=e=>e.flatMap(r=>Eo[r]);function dv(e){return jsx(Ro,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:C(e.backgroundColor||"transparent"),borderColor:C(e.borderColor||"outlineVariant"),color:C(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}a();var Mo=createContext(null);function _v(e){let r=T(null),t=T(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",g=z=>{e.value===void 0&&n(z),e.onChange?.(z);},v=()=>{g(t.read());},m=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},h=(z={asClick:true})=>{r.upsert("cancel"),v(),z.asClick&&e.onCancelClick?.(),l(false);},S=z=>{z.preventDefault(),r.read()!=="save"&&v(),l(false);},x=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},y=()=>{r.upsert("edit"),e.onEditClick?.(),m();},_=()=>{x(false);},P=()=>{e.onContentClick?.(),m();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Mo.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:G[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...R,grid:true,gap:e.columnGap??R.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(z=>e.hideControls.includes(z))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(U,{autoFocus:true,allowedChars:e.allowedChars,maxChars:e.maxChars,value:o,corners:"md",width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:g,onBlur:S,onEnterKeyPressed:_,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>h({asClick:false}):void 0,onClick:s==="click"?P:void 0,children:jsx(De,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false?true:e.slotProps?.popover?.asChild??!!o,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(o))??o,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:X({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:(e.formatContent?.(o)??o)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(ul,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:x,onEdit:y}))]})]})})}function ul(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx(Hr,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx(Hr,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx(Hr,{icon:LuPencilLine,onClick:e.onEdit})}function Hr(e){let{padding:r,iconSize:t}=useContext(Mo);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(B,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:o=>{o.preventDefault();}})})}a();var $r=createContext(null);function gl(e){return jsx($r,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function vl(e){let{fade:r}=useContext($r);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function yl(e){let{fade:r}=useContext($r);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var gr={Root:gl,Indicator:vl,Content:yl};a();function ue(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&re__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let t=e.fallback;return jsx(t,{size:"50%"})}return jsx(Avatar.Fallback,{})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:C(e.backgroundColor),color:C(e.color),children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function Ho(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}a();var Wo=createContext(null);function kl(e){return jsx(Wo.Provider,{value:{gap:e.gap},children:jsx(d,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,children:e.children})})}function $o(e){return r=>{let{children:t,className:o,row:n=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:o,...c,row:n,spill:i,centerContent:l,align:s,children:t})}}function No(e){return r=>jsx("span",{style:(()=>{let o=b({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?o:r.truncateStyle==="ellipsis"?X(o):ze(r.truncateStyle.lineCount,o)})(),children:r.value})}var Dl=$o(),wl=$o(),Tl=e=>{let{gap:r=e.gap}=useContext(Wo);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},El=No({fontWeight:"bold",fontSize:"xs",fade:.75}),Fl=No({fontSize:"sm"}),W={Root:kl,LeadingAddOn:Dl,TrailingAddOn:wl,Content:Tl,Label:El,Item:Fl};a();function Ol(e){let r=()=>{if(typeof e.fallback=="string"||re__default.isValidElement(e.fallback))return e.fallback;let o=e.fallback||PiImageBrokenLight;return jsx(o,{size:"3rem"})};return jsxs(d,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(de,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:b({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:b({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Il(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var ry={Root:Ol,Content:Il};a();function Al(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],o=i=>{if(!e.children)return e[i]||r[i]},n=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:n},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:o("height"),width:o("width"),backgroundColor:o("backgroundColor"),color:o("color"),padding:o("padding"),corners:o("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:n},children:[jsx(ue,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:X(b({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:X(b({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var dy={Root:Al,Content:d};a();function Po(e){let[r,t]=useState(e.defaultChecked??false),o=e.checked??r,n=e.checked!==void 0,i=()=>{e.onClick?.(),n||(e.onChange?.(!o),t(!o));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:o?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:o?1:0}})})}a();a();function Wl(e){let{triggerRerender:r}=L(),t=b({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:o,onExitComplete:n,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var Gr=(e,r)=>t=>{let o=Dialog[e],n={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;n?.[l]||(n=Object.assign(n,{[l]:r[l]}));}),jsx(o,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...n,children:t.children})})},$l=Gr("Header",{fontSize:"xl",fontWeight:"bold"}),Nl=Gr("Body",{gap:"md"}),Jl=Gr("Footer",{row:true,gap:"sm"}),Xl=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),Ul=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),D={Root:Wl,Header:$l,Body:Nl,Footer:Jl,CloseTrigger:Xl,ActionTrigger:Ul};function Ry(e){let r=e.severity||"error",t=C(r,{preference:"res"});return jsxs(D.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(D.Header,{fontSize:"2xl",children:e.title}),jsxs(D.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(Xo,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(D.Footer,{gap:"md",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(B,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var Yr=createContext(null);function Wy(e){let r=e.sections.flatMap(y=>typeof y=="object"?y.nestedItems:y),t=e.defaultSection?r.findIndex(y=>y===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=L(),l=T([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),g=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((y,_)=>{m(y,_);}),i();},[]);let v=(y=l.read())=>r.filter(_=>!y.includes(_)&&!c.includes(_)),m=(y=s,_=o)=>{let P=l.read();if(!c.includes(y)){if(e.isSectionComplete(y)&&!P.includes(y))P=[...P,y];else if(!e.isSectionComplete(y)&&P.includes(y))P=P.filter((R,z)=>z!==_);else return;l.upsert(P),e.onSectionsStatusChange?.(v(P),P);}},h=y=>{m(),n(r.findIndex(_=>_===y));},S=()=>{o>=r.length-1||(m(),n(o+1));},x=()=>{g||(m(),n(o-1));};return jsx(Yr.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(D.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(D.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(ql,{title:e.title,onSectionClick:h}),jsx(Zl,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:g,onPreviousClick:x,onNextClick:S,incompleteSections:v(),onSubmitClick:e.onSubmit})]})})})}function ql(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext(Yr);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Ar,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function Zl(e){let{activeSection:r}=useContext(Yr),{title:t,description:o,element:n}=e.sectionMapper[r],i=typeof n=="function"?jsx(n,{incompleteSections:e.incompleteSections}):n;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(p,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:o,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(qr,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(Zr,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(Kr,{onClick:e.onNextClick})]})]})}a();a();var Ql=ce({preset:{text:"Save",async:true}}),Qr=Ql;function Qy(e){let{triggerRerender:r}=L(),t=T(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),o=e.actionButtionSize||"lg",n=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(D.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(D.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(D.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],g=t.read()?.[s]??"",v=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e.formatFieldPropName?.(l)??l:c.label,m=h=>t.upsert(S=>({...S||{},[s]:h}));return c.options?jsx(rs,{label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:m},l):jsx(U,{width:"full",placeholder:c.placeholder,label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:m},s)})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ne,{fade:.5,size:o,onClick:i})}),jsx(D.ActionTrigger,{children:jsx(Qr,{size:o,onClick:n})})]})]})}function rs(e){let[r,t]=useState(e.defaultValue),o=({value:n})=>{e.onChange(n),t(n);};return jsx(Le,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:n})=>r===n,options:e.options.map(n=>({value:n.trim()})),onOptionClick:o,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(U,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var Z={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},Xe=createContext(null);function is(e){let r=C(e.borderColor||"outline[0.1]"),t=le.md;return jsx(Xe.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${Z.topbar} ${Z.topbar}" "${Z.sidebar} ${Z.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function as(e){let{navThickness:r}=useContext(Xe),t=yr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[t&&jsx(t.filled,{style:b({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:b({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(d,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(p,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function ls(e){let{navThickness:r}=useContext(Xe),{children:t,...o}=e;return jsx(d,{...o,row:true,id:Z.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:e.children?["md","right"]:void 0,justify:e.justify||"space-between",style:{...e.style,gridArea:Z.topbar},children:e.children})}var Yo=createContext(null);function ss(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(Xe);return jsx(Yo.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:Z.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:Z.sidebar},children:e.children})})}function cs(e){let{onOptionClick:r}=useContext(Yo),t=()=>{e.onClick?.(),r(e.label);};return jsx(De,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function ds(e){let{borderColor:r,corners:t}=useContext(Xe),o=useRef(null);useEffect(()=>{n();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&n();});return i.observe(o.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let n=()=>{let i=["sidebar","topbar"],l=o.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${Z[c]}`));i.every(c=>s.includes(c))?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(o.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(o.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:o,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:Z.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function us(e){let r=e.thickness||"0.0104in",t=e.length||"70%",o={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...o,backgroundColor:e.color||"outline[0.1]"})}var sh={Root:is,Sidebar:ss,SidebarOption:cs,Topbar:ls,Viewer:ds,Indicator:as,Sep:us};a();var Ko=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(Ko||{});function qo(e){let r=Ko[e.size||"sm"];return jsx(d,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}a();function Zo(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(o,n=false)=>typeof o=="string"?o:Object.entries(o).map(([i,l],s,c)=>`${n?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
17
+ `}function _m(e,r){return {display:"flex",justifyContent:"center",alignItems:"center",flexDirection:r?"column":"row",...e}}function bm(e,r){let t=o=>"affectedCorners"in e&&typeof e.affectedCorners=="string"?o.includes(e.affectedCorners)?e.radius:void 0:"affectedCorners"in e?e.affectedCorners.includes(o)?e.radius:void 0:e[o];return {...r,borderTopLeftRadius:t("top-left"),borderTopRightRadius:t("top-right"),borderBottomLeftRadius:t("bottom-left"),borderBottomRightRadius:t("bottom-right")}}function Sm(e){let r=typeof e.disabledCurves=="function"?e.disabledCurves():e.disabledCurves,t=n=>r==="both"||r===n?0:e.curveRadius||ce.md;return {borderTopLeftRadius:t("left"),borderBottomLeftRadius:t("left"),borderTopRightRadius:t("right"),borderBottomRightRadius:t("right")}}function xm(e){let r=0,t=0,o=0,n=0;document.getElementById(e.id+"header")?document.getElementById(e.id+"header").onmousedown=i:e.onmousedown=i;function i(c){c.preventDefault(),o=c.clientX,n=c.clientY,document.onmouseup=s,document.onmousemove=l;}function l(c){c.preventDefault(),r=o-c.clientX,t=n-c.clientY,o=c.clientX,n=c.clientY,e.style.top=e.offsetTop-t+"px",e.style.left=e.offsetLeft-r+"px";}function s(){document.onmouseup=null,document.onmousemove=null;}}function Pm(e){return {...e,margin:0,padding:0}}function U(e,r={apply:true}){return r.apply?Ie(1,e):e}function Bm(e,r={apply:true}){return r.apply?{...e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}:e}function Yt(e){let r=e;for(;r&&!Fr(r);)r=r.parentElement;return r}function Kt(e){let r=document.createElement("span");r.textContent="A",r.style.visibility="hidden",r.style.position="absolute";let t=getComputedStyle(e);r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.lineHeight=t.lineHeight,document.body.appendChild(r);let o=r.offsetHeight;return document.body.removeChild(r),e.offsetHeight>o+2}function _(e,r){if(!e||typeof e!="string")return;let t=r?.preference||"css",o=e.replaceAll(" ",""),{0:n,1:i}=o.split("["),l=()=>J[o],s=()=>i?Ui(re[n],parseFloat(i)):re[o];if(t==="css"){if(o in J)return l();if(n in re)return s()}else if(t==="res"){if(n in re)return s();if(o in J)return l()}return o}var Ji=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),Xi=e=>parseInt(e.repeat(2/e.length),16);function Ui(e,r=1){let t=(v,m)=>v.match(new RegExp(`.{${m}}`,"g")),o=v=>typeof v<"u"?v/255:typeof r!="number"||r<0||r>1?1:r;if(!Ji(e))throw new Error(`Invalid HEX: ${e}`);let n=Math.floor((e.length-1)/3),i=t(e.slice(1),n),[l,s,c,g]=i.map(Xi);return `rgba(${l}, ${s}, ${c}, ${o(g)})`}function km(e,r){let t=e.includes(",")?",":" ",o=e.split("").filter(n=>(t+"0123456789").includes(n)).join("").split(t);return o.length===3?o.push(`${r}`):o=o.with(3,`${r}`),"rgba("+o.join(t)+")"}function wm(e){return window.matchMedia(`(max-width:${e})`).matches}function Dm(e){return window.matchMedia(`(min-width:${e})`).matches}function Ie(e=2,r){return {...r,overflow:"hidden",width:"100%",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical"}}function ji(e){return e*16}function Tm(e){return `${ji(e)}px`}function Fr(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Em(e){let r=document.body,t=e.replace("var(","").replace(")","");return getComputedStyle(r).getPropertyValue(t)}a();var Gi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1rem",md:"0.5rem",sm:"0.25rem",xs:"0.125rem","2xs":"0.1rem"}),de=Gi;a();var Yi=Object.freeze({"2xl":"1.75rem",xl:"1.5rem",lg:"1.25rem",md:"1rem",sm:"0.85rem",xs:"0.75rem","2xs":"0.65rem"}),G=Yi;var cr=["top","right","bottom","left"],qt=(e,r)=>`translate(${e}, ${r})`,Zt=e=>`translateX(${e})`,Qt=e=>`translateY(${e})`,Ki=(e,r)=>{let t=e.fontSize in G?G[e.fontSize]:e.fontSize,{overflowX:o,overflowY:n}=(()=>{let s=e?.spill||{};if(s)return {overflowX:typeof s=="string"?s:s?.x||"visible",overflowY:typeof s=="string"?s:s?.y||"visible"}})();function i(s){return e.style?.[s]?e.style[s]:(e.size||e.size===0)&&(s==="height"||s==="width")?e.size==="full"?"100%":e.size:e[s]==="full"?"100%":e[s]}let l={top:e.centerSelf===true||e.centerSelf==="y"?"50%":e.top,left:e.centerSelf===true||e.centerSelf==="x"?"50%":e.left,right:e.right,bottom:e.bottom,cursor:e.clickable?"pointer":e.cursor,scrollbarColor:`${_(e.scrollbarThumbColor||"inherit")} ${_(e.scrollbarThumbColor||"inherit")}`,transform:e.centerSelf===true?qt("-50%","-50%"):e.centerSelf==="x"?Zt("-50%"):e.centerSelf==="y"?Qt("-50%"):e.translate?.x&&e.translate?.y?qt(e.translate.x,e.translate.y):e.translate?.x?Zt(e.translate.x):e.translate?.y?Qt(e.translate.y):void 0,position:e.pos==="absolute"||e.centerSelf?"absolute":e.pos,padding:ea(e.padding),fontSize:t,fontWeight:e.fontWeight,border:e.border,borderColor:qi(e.borderColor),borderWidth:Zi(e.borderWidth,e.borderColor?"1px":void 0),borderStyle:Qi(e.borderStyle,e.borderColor?"solid":void 0),lineHeight:t?`calc(${t} + (${t} * .15))`:void 0,borderRadius:ra(e.corners),userSelect:e.disableSelection?"none":e.allowTextSelection?"text":void 0,minHeight:i("minHeight"),minWidth:i("minWidth"),maxHeight:i("maxHeight"),maxWidth:i("maxWidth"),height:i("height"),width:i("width"),display:e.hide?"none":void 0,flexDirection:e.row?"row":"column",flex:e.flex,backgroundColor:_(e.backgroundColor),color:_(e.color),gap:ta(e.gap),overflowX:o,overflowY:n,aspectRatio:e.aspectRatio,opacity:e.fade,alignItems:e.centerContent?"center":e.align||"start",justifyContent:e.centerContent?"center":e.justify||"start",backdropFilter:e.backdropBlur?`blur(${e.backdropBlur})`:void 0,filter:e.blur?`blur(${e.blur})`:void 0,...e.style};return Object.keys(l).forEach(s=>{let c=s,g=l[c];typeof g=="string"&&(g=g.trim()),!g&&g!==0&&delete l[c];}),(r||e.debug)&&console.log({props:e,style:l}),l};function qi(e){if(!e)return;let r="transparent";return typeof e=="string"?_(e):cr.map(t=>{if(Array.isArray(e)){let{0:o,1:n}=e;return (Array.isArray(n)?n.includes(t):[t,"all"].includes(n))?_(o):r}return typeof e=="object"&&t in e?_(e[t]):r}).join(" ")}function Zi(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function Qi(e,r){if(!e)return r;let t=0;return typeof e=="string"?e:cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):[o,"all"].includes(i))?n:t}return typeof e=="object"&&o in e?e[o]:t}).join(" ")}function ea(e){let t=o=>o?o in de?de[o]:o:"0px";return e?typeof e=="string"?t(e):cr.map(o=>{if(Array.isArray(e)){let{0:n,1:i}=e;return (Array.isArray(i)?i.includes(o):i===o)?t(n):"0px"}return typeof e=="object"&&o in e?t(e[o]):"0px"}).join(" "):"0px"}function ra(e){let t=n=>n?n in ce?ce[n]:n:"0px";return e?typeof e=="string"?t(e):["topLeft","topRight","bottomRight","bottomLeft"].map(n=>{let i=e?.[n];return n.includes("top")&&e?.top?t(e.top):n.includes("bottom")&&e?.bottom?t(e.bottom):i?t(i):"0px"}).join(" "):"0px"}function ta(e){if(!(!e||typeof e!="string"))return e in de?de[e]:e}var C=Ki;var ca=["inherit","sm","md","lg","xl","2xl","xs"],da=["sm","md","lg","xl","2xl","xs","2xs"];function eo(e){let[r,t]=useState(false),o=e.disabled||r,n=async m=>{if(!o){if(!e.async)return e.onClick?.(m);t(true),await e.onClick?.(m),setTimeout(()=>t(false),e.pendingDelay||1);}},i=m=>{if(m){if(typeof m==typeof FaFolder){let h=S=>typeof S=="string"&&[...ca].includes(S);return jsx(Icon,{size:h(e.iconSize)?e.iconSize:void 0,boxSize:h(e.iconSize)?void 0:e.iconSize,as:m})}return m}},l=i(e.leadingEl),s=i(e.trailingEl),c=m=>typeof m=="string"&&[...da].includes(m),{size:g,...v}=e;return jsxs(Button,{...se(e),disabled:o,size:c(g)?g:void 0,style:C({...v,size:c(g)?void 0:g,clickable:!o,row:true,centerContent:true,gap:e.gap||"md",corners:e.corners||"md",padding:e.padding||"md",color:e.color||(e.variant==="outline"?"onSurface":"onPrimary"),backgroundColor:e.backgroundColor||(e.variant==="outline"?"transparent":"primary"),border:e.border,borderColor:e.borderColor||(e.variant==="outline"?"onSurface[0.1]":void 0),fade:o?e.disabledOpacity||.5:e.fade||1,pos:r?"relative":e.pos,height:e.height||"fit-content",width:e.width||"fit-content"}),onClick:n,onMouseDown:e.onMouseDown,children:[l,e.text,e.children,s,r&&jsx(AbsoluteCenter,{children:jsx(Spinner,{size:"sm",animationDuration:"slowest",borderWidth:".1rem",color:e.spinnerColor?_(e.spinnerColor):"blue.500"})})]})}var ue=e=>r=>jsx(eo,{...(()=>{let o={...r,...e.preset};for(let n of Object.keys(e.optional||{})){let i=n,l=i in o,s=[void 0,null].includes(o[i]);(!l||s)&&(o[i]=e.optional[i]);}return o})()}),B=eo;a();a();a();a();a();function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o]);}return e},ur.apply(null,arguments)}a();a();function ro(e){for(var r=0,t,o=0,n=e.length;n>=4;++o,n-=4)t=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16);}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}a();var to={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};a();function fr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ma=/[A-Z]|^ms/g,ga=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ao=function(r){return r.charCodeAt(1)===45},oo=function(r){return r!=null&&typeof r!="boolean"},Rr=fr(function(e){return ao(e)?e:e.replace(ma,"-$&").toLowerCase()}),no=function(r,t){switch(r){case "animation":case "animationName":if(typeof t=="string")return t.replace(ga,function(o,n,i){return Y={name:n,styles:i,next:Y},n})}return to[r]!==1&&!ao(r)&&typeof t=="number"&&t!==0?t+"px":t};function Ae(e,r,t){if(t==null)return "";var o=t;if(o.__emotion_styles!==void 0)return o;switch(typeof t){case "boolean":return "";case "object":{var n=t;if(n.anim===1)return Y={name:n.name,styles:n.styles,next:Y},n.name;var i=t;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Y={name:l.name,styles:l.styles,next:Y},l=l.next;var s=i.styles+";";return s}return ya(e,r,t)}case "function":{if(e!==void 0){var c=Y,g=t(e);return Y=c,Ae(e,r,g)}break}}var v=t;if(r==null)return v;var m=r[v];return m!==void 0?m:v}function ya(e,r,t){var o="";if(Array.isArray(t))for(var n=0;n<t.length;n++)o+=Ae(e,r,t[n])+";";else for(var i in t){var l=t[i];if(typeof l!="object"){var s=l;r!=null&&r[s]!==void 0?o+=i+"{"+r[s]+"}":oo(s)&&(o+=Rr(i)+":"+no(i,s)+";");}else {if(Array.isArray(l)&&typeof l[0]=="string"&&(r==null||r[l[0]]===void 0))for(var c=0;c<l.length;c++)oo(l[c])&&(o+=Rr(i)+":"+no(i,l[c])+";");else {var g=Ae(e,r,l);switch(i){case "animation":case "animationName":{o+=Rr(i)+":"+g+";";break}default:o+=i+"{"+g+"}";}}}}return o}var io=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function lo(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=true,n="";Y=void 0;var i=e[0];if(i==null||i.raw===void 0)o=false,n+=Ae(t,r,i);else {var l=i;n+=l[0];}for(var s=1;s<e.length;s++)if(n+=Ae(t,r,e[s]),o){var c=i;n+=c[s];}io.lastIndex=0;for(var g="",v;(v=io.exec(n))!==null;)g+="-"+v[1];var m=ro(n)+g;return {name:m,styles:n,next:Y}}a();var ha=typeof document<"u",so=function(r){return r()},pa=te.useInsertionEffect?te.useInsertionEffect:false,co=ha&&pa||so;a();var zr=typeof document<"u";function uo(e,r,t){var o="";return t.split(" ").forEach(function(n){e[n]!==void 0?r.push(e[n]+";"):n&&(o+=n+" ");}),o}var Or=function(r,t,o){var n=r.key+"-"+t.name;(o===false||zr===false&&r.compat!==void 0)&&r.registered[n]===void 0&&(r.registered[n]=t.styles);},fo=function(r,t,o){Or(r,t,o);var n=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i="",l=t;do{var s=r.insert(t===l?"."+n:"",l,r.sheet,true);!zr&&s!==void 0&&(i+=s),l=l.next;}while(l!==void 0);if(!zr&&i.length!==0)return i}};a();var Ca=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|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|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|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|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mo=fr(function(e){return Ca.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var Sa=typeof document<"u",Pa=mo,Ba=function(r){return r!=="theme"},go=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Pa:Ba},vo=function(r,t,o){var n;if(t){var i=t.shouldForwardProp;n=r.__emotion_forwardProp&&i?function(l){return r.__emotion_forwardProp(l)&&i(l)}:i;}return typeof n!="function"&&o&&(n=r.__emotion_forwardProp),n},ka=function(r){var t=r.cache,o=r.serialized,n=r.isStringTag;Or(t,o,n);var i=co(function(){return fo(t,o,n)});if(!Sa&&i!==void 0){for(var l,s=o.name,c=o.next;c!==void 0;)s+=" "+c.name,c=c.next;return te.createElement("style",(l={},l["data-emotion"]=t.key+" "+s,l.dangerouslySetInnerHTML={__html:i},l.nonce=t.sheet.nonce,l))}return null},yo=function e(r,t){var o=r.__emotion_real===r,n=o&&r.__emotion_base||r,i,l;t!==void 0&&(i=t.label,l=t.target);var s=vo(r,t,o),c=s||go(n),g=!c("as");return function(){var v=arguments,m=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),v[0]==null||v[0].raw===void 0)m.push.apply(m,v);else {var h=v[0];m.push(h[0]);for(var S=v.length,x=1;x<S;x++)m.push(v[x],h[x]);}var y=withEmotionCache(function(b,P,R){var z=g&&b.as||n,ke="",Vt=[],nr=b;if(b.theme==null){nr={};for(var Ht in b)nr[Ht]=b[Ht];nr.theme=te.useContext(ThemeContext);}typeof b.className=="string"?ke=uo(P.registered,Vt,b.className):b.className!=null&&(ke=b.className+" ");var ir=lo(m.concat(Vt),P.registered,nr);ke+=P.key+"-"+ir.name,l!==void 0&&(ke+=" "+l);var bi=g&&s===void 0?go(z):c,ar={};for(var lr in b)g&&lr==="as"||bi(lr)&&(ar[lr]=b[lr]);return ar.className=ke,R&&(ar.ref=R),te.createElement(te.Fragment,null,te.createElement(ka,{cache:P,serialized:ir,isStringTag:typeof z=="string"}),te.createElement(z,ar))});return y.displayName=i!==void 0?i:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",y.defaultProps=r.defaultProps,y.__emotion_real=y,y.__emotion_base=n,y.__emotion_styles=m,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return "."+l}}),y.withComponent=function(b,P){var R=e(b,ur({},t,P,{shouldForwardProp:vo(y,P,true)}));return R.apply(void 0,m)},y}};Ei(ho());var wa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],we=yo.bind(null);wa.forEach(function(e){we[e]=we(e);});var Ar=class{static getStyle(r){if(r)return JSON.parse(JSON.stringify(r||{}),(t,o)=>t==="backgroundColor"||t==="color"?_(o):o)}static span=r=>we.span({...this.getStyle(r)});static div=r=>we.div({...this.getStyle(r)});static img=r=>we.img({...this.getStyle(r)})},De=Ar;function Ra(e){let r=useRef(null),[t,o]=useState(false),n=T({top:0,left:0});e.rememberScrollPos&&useEffect(()=>{let v=n.read();r.current&&[v.top,v.left].some(m=>!!m)&&(r.current.scrollTop=v?.top??0,r.current.scrollLeft=v?.left??0);},e.updateScrollPosDeps),(e.rememberScrollPos||e.overflowPadding)&&useEffect(()=>{r.current&&Fr(r.current)&&!t&&o(true);},[]);let i="10%",l=`linear-gradient(to bottom, transparent, black calc(${i}/4), black calc(100% - ${i}), transparent) `,s=e.decreaseYFaderPadding?"2vh":"5rem",c=C({...e,spill:e.spill==="hidden"?"hidden":e.spill||(e.rememberScrollPos?"auto":void 0),padding:e.padding||{right:e.overflowPadding&&t?e.overflowPadding:void 0,top:e.enableYFaders?s:void 0,bottom:e.enableYFaders?s:void 0}}),g=De.div(e.css);if(!e.hide)return e.asChildren?e.children:jsx(g,{...se(e),ref:e.rememberScrollPos||e.overflowPadding?r:e.ref,draggable:e.draggable,onScroll:v=>{let m=r?.current?.scrollTop,h=r?.current?.scrollLeft;!t&&e.overflowPadding&&o(true),isEmpty(strictArray([m,h]))||n.upsert({top:m??0,left:h??0}),e.onScroll?.(v);},style:{...c,display:e.grid?"grid":c.display||"flex",flexWrap:c.flexWrap||(e.flexWrap?"wrap":void 0),gridTemplateColumns:c?.gridTemplateColumns||e.gridCols||"1fr",gridTemplateRows:c?.gridTemplateRows||e.gridRows,WebkitMaskImage:e.enableYFaders&&l,maskImage:e.enableYFaders&&l},children:e.children})}var d=Ra;a();function Oa(e){let r=!!e.tint,t=De.img(e.sx);return jsx(t,{...se(e),loading:"lazy",decoding:"async",fetchPriority:"high",src:e.src,alt:e.alt,style:{...C(e),filter:r?`drop-shadow(0px 1000px 0 ${_(e.tint)})`:void 0,transform:r&&"translateY(-1000px)",objectFit:e.noFit?"none":e.fill?"fill":e.cover?"cover":e.scaleDown?"scale-down":"contain"}})}var fe=Oa;a();function Ma(e){let r=o=>e.onItemClick?.(o),t=e.bold??e.items.some(o=>typeof o=="object");return jsx(d,{gap:e.gap||"md",width:e.width,height:e.height,children:e.items.map((o,n)=>typeof o=="string"?jsx(Mr,{index:n,item:o,bold:t,active:e.isItemActive(o),completed:e.isItemCompleted(o),onClick:r},o):jsxs(d,{width:"full",children:[jsx(Mr,{index:n,bold:t,item:o.label,active:o.nestedItems.some(i=>e.isItemActive(i)),completed:o.nestedItems.every(i=>e.isItemCompleted(i)),onClick:o.nestedItems?.[0]?()=>r(o.nestedItems[0]):void 0}),jsx(d,{width:"full",children:o.nestedItems.map((i,l)=>jsx(Mr,{index:l,fontSize:"sm",nested:true,item:i,active:e.isItemActive(i),completed:e.isItemCompleted(i),onClick:r},i))})]},o.label))})}function Mr(e){let r=re.white,t=J.onSurface,o=e.nested?t:J.tertiaryContainer,n=e.active?o:re.carlsbergGreen,i=e.active&&!e.nested?o:J["onSurface[0.25]"],l=e.nested?J["onSurface[0.4]"]:J["onSurface[0.5]"],s=J["onSurface[0.2]"],c=()=>e.onClick?.(e.item),g=IoMdCheckmark;return jsxs(d,{row:true,gap:"md",clickable:true,width:"full",fontSize:e.fontSize||"md",align:"center",onClick:c,css:{transition:"all 300ms linear",color:e.completed&&!(e.nested&&e.active)?i:e.active?o:l,borderColor:e.completed?n:e.active?o:s,":hover":e.active?void 0:{color:t,borderColor:e.completed&&!e.nested?void 0:t}},children:[jsx(d,{corners:"circle",centerContent:true,size:"1.5rem",style:{textAlign:"center",flexShrink:0},borderColor:"inherit",backgroundColor:e.completed?n:void 0,color:e.completed?r:"inherit",fade:e.nested?0:1,padding:e.completed?void 0:"md",children:e.completed?jsx(g,{fontSize:"1rem"}):jsx(p,{fontWeight:"bold",textAlign:"center",centerContent:true,text:`${e.index+1}`,style:{lineHeight:"0"}})}),jsx("span",{style:{width:"100%",fontWeight:e.bold?"bold":void 0,opacity:e.completed&&!e.active?e.nested?.5:.75:1},children:e.item}),e.completed&&e.nested&&jsx(g,{size:"1.25rem",opacity:.75})]})}var Lr=Ma;a();function Va(e){let r=i=>e.ellipsis?U(i):e.lineLimit?Ie(e.lineLimit,i):i,t=()=>strictArray([e.underline||e.link||e.fakeHyperlink||e.hyperlink?"underline":void 0,e.strikeThrough?"line-through":void 0]).join(" ").trim(),o=C({...e,color:e.fakeHyperlink||e.hyperlink?"hyperlink":e.color,cursor:e.link||e.hyperlink||e.clickable?"pointer":e.cursor}),n=De.span(e.sx);return jsx(n,{...se(e),ref:e.ref,style:r({...o,width:e.ellipsis?"100%":o.width,textAlign:o.textAlign||e.textAlign||"justify",fontStyle:o.fontStyle||e.italic?"italic":void 0,textDecoration:o.textDecoration||t()||void 0}),children:e.text||e.children})}var p=Va;a();var Le=createContext(null);function Na(e){let r=e.columnWeight||"1fr",t=["none",0].includes(e.separatorColor)?void 0:e.separatorColor??"onSurface[0.25]",o=x=>(e.selectable?"auto ":"")+x.map(b=>typeof b=="string"||!b.weight?r:b.weight).join(" "),n=!!e.selectedRows,[i,l]=useState(e.defaultSelectedRows||[]),[s,c]=useState(o(e.columns)),g=i.length===e.entries.length&&e.entries.length>0,v=(Array.isArray(e.children)?e.children:[e.children]).filter((x,y)=>y<2),m=()=>{let x=[];g||(x=e.entries.map((y,b)=>b)),e.onSelectedRowsChange?.(x),n||l(x);},h=x=>{let y=[...i];y.includes(x)?y=y.filter(b=>b!==x):y.push(x),e.onSelectedRowsChange?.(y),n||l(y);},S=()=>e.columnWeight?e.columns.map(x=>{let y=typeof x=="object"?x:{};return {...y,name:he(x),weight:"weight"in y?y.weight:e.columnWeight,textAlign:"textAlign"in y?y.textAlign:e.textAlign||"start"}}):e.columns;return useEffect(()=>{},[]),jsx(Le.Provider,{value:{...e,gridCols:s,selectedRowIndices:n?e.selectedRows:i,separatorColor:t,allRowsSelected:g,onSelectRowClick:h,onSelectAllRowsClick:m,columns:S(),padding:e.padding??"sm",columnGap:e.columnGap??e.gap??"lg",rowGap:e.rowGap??e.gap,onAutoColumnWidthsComputed:x=>{let y=e.columns.map(b=>{let P=x.get(he(b));return P?{...b,weight:`${P}px`}:b});c(o(y));}},children:jsx(d,{grid:true,gridRows:"auto auto",corners:e.corners,height:e.height,width:e.width,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,backgroundColor:e.backgroundColor,spill:e.spill,style:{gridTemplateAreas:'"header" "body"'},children:v})})}function Ja(e){let r=useContext(Le),t=e.separatorColor||r.separatorColor;return jsxs(d,{grid:true,gridCols:r.gridCols,gap:r.columnGap,borderColor:e.borderColor||(t?[t,"bottom"]:void 0),spill:"hidden",padding:e.padding??r.padding,corners:e.corners??(r.separatorColor?0:void 0),color:e.color,backgroundColor:e.backgroundColor,fontWeight:e.fontWeight,fontSize:e.fontSize,align:"center",width:"full",style:{gridArea:"header"},children:[r.selectable&&jsx(xo,{selected:r.allRowsSelected,onClick:r.onSelectAllRowsClick}),r.columns.map((o,n)=>{let i=he(o);return jsx(p,{size:"full",borderColor:t&&n!==lastIndex(r.columns)?[t,"right"]:void 0,text:!e.formatColumnName||e.formatColumnName==="camelToLetter"?camelCaseToLetter(i):e.formatColumnName?.(i)??i,style:{flexGrow:1,textAlign:Me("textAlign",o)}},i+n)})]})}function Xa(e){let r=useContext(Le),t=useRef(new Map);return useEffect(()=>()=>{t.current.clear();},[]),jsx(d,{width:"full",gap:r.rowGap,padding:e.padding??(r.rowGap?[r.rowGap,"top"]:void 0),color:e.color,fontSize:e.fontSize,style:{paddingTop:r.rowGap,gridArea:"body"},children:r.entries.map((o,n)=>jsx(Ua,{rowData:o,index:n,style:e.styleRow?.(n),styleCell:e.styleCell,onColWidthComputed:(i,l)=>{let s=t.current.get(i);(!s||l>s)&&t.current.set(i,l);},onCellRendered:i=>{let l=n===lastIndex(r.entries),s=i===lastIndex(r.columns);l&&s&&t.current.size>0&&r.onAutoColumnWidthsComputed(t.current);}},n))})}function Ua(e){let r=useContext(Le),t=r.selectedRowIndices.includes(e.index),o=()=>r.onSelectRowClick(e.index),{gap:n,padding:i,backgroundColor:l}=C({gap:r.columnGap,padding:r.padding??e.padding,backgroundColor:t?"onSurface[0.1]":"transparent"});return jsxs(d,{style:{gap:n,padding:i,backgroundColor:l,width:"100%",display:"grid",alignItems:"center",gridTemplateColumns:r.gridCols,...e.style},children:[r.selectable&&jsx(xo,{selected:t,onClick:o}),r.columns.map((s,c,g)=>{let v=he(s),m=e.rowData[v],h=typeof s=="object"?s?.placeholder:void 0,S=()=>e.onCellRendered?.(c),x=c+he(s),y=Me("textAlign",s),b={textAlign:y,justifyContent:y,color:Me("color",s),opacity:Me("opacity",s,1),backgroundColor:Me("backgroundColor",s),...e.styleCell?.({cellIndex:e.index*r.columns.length+c,columnName:v,columnIndex:c,rowIndex:e.index,data:typeof m=="string"?m:null,siblingData:{previous:c===0?null:run(e.rowData[he(g[c-1])],P=>typeof P=="string"?P:null),next:c===g.length-1?null:run(e.rowData[he(g[c+1])],P=>typeof P=="string"?P:null)}})||{}};return typeof s=="object"&&s.weight==="auto"?jsx(ja,{data:m,style:b,onRender:S,placeholder:h,onWidthComputed:P=>e.onColWidthComputed(v,P)},x):jsx(Po,{data:m,style:b,placeholder:h,onRender:S},x)})]})}function xo(e){let r=useContext(Le),{disableSeparator:t,separatorColor:o}=r.slotProps?.selectColumn||{},n=o||r.separatorColor;return jsx(d,{padding:t?void 0:["md","right"],borderColor:n&&!t?[n,"right"]:void 0,children:jsx(ko,{padding:"sm",iconSize:".85rem",checked:e.selected,onChange:e.onClick})})}function ja(e){let r=useRef(null);return useEffect(()=>{r.current?e.onWidthComputed(parseFloat(getComputedStyle(r.current).width)):console.error(new Error("Failed to compute style for an Auto cell",{cause:{data:e.data,cellRef:r}}));},[]),jsx(Po,{noWrap:true,data:e.data,placeholder:e.placeholder,ref:r,style:e.style,onRender:e.onRender})}function Po(e){return useEffect(()=>{e.onRender?.();},[]),typeof e.data=="string"||!e.data?jsx(p,{ref:e.ref,children:e.data||"-",fade:e.data?1:.75,style:{...e.style,whiteSpace:e.noWrap?"nowrap":void 0,width:"100%"}}):e.ref?jsx("div",{ref:e.ref,style:{...e.style,width:"100%",overflow:"hidden"},children:e.data}):e.data}var he=e=>typeof e=="string"?e:e.name,Me=(e,r,t)=>typeof r=="object"&&e in r?r[e]:t,Ga={Root:Na,Header:Ja,Body:Xa},Ya=Ga;a();a();function qa(e){return jsxs(d,{row:true,ref:r=>{r&&!e.scrollIntoView&&e.selected&&r.scrollIntoView(true);},gap:"sm",align:"center",fade:e.disabled?.5:1,width:e.width??"full",corners:e.corners??"md",padding:e.padding??"sm",fontSize:e.fontSize||"sm",cursor:e.disabled?"not-allowed":"pointer",css:{...e.sx,transition:e.sx?.transition||"all 200ms linear",color:e.color||e.sx?.color||(e.selected?"surface":"onSurface"),backgroundColor:e.backgroundColor||e.sx?.backgroundColor||(e.selected?"onSurface":void 0),":hover":e.disabled||e.selected?void 0:{...e.sx?.[":hover"],backgroundColor:e.sx?.[":hover"]?.backgroundColor||"onSurface[0.1]"}},onClick:e.disabled?void 0:e.onClick,children:[e.selected&&jsx(LuCheck,{style:{flexShrink:0}}),jsx("span",{children:e.value.toString(),style:U({maxWidth:"100%",flex:"1",alignItems:"start",textAlign:"start"})})]})}var Hr=qa;var Do=createContext(null);function ol(e){return jsx(Do.Provider,{value:e,children:jsx(Te,{...e,backdropBlur:e.backdropBlur,padding:e.padding||"md",corners:e.corners||"md",displayAction:"click",content:jsx(nl,{})})})}function nl(){let e=useContext(Do),r=To(),[t,o]=useState(e.isSelected?e.options.findIndex(i=>e.isSelected(i)):void 0),{triggerRerender:n}=L();return useEffect(()=>{setTimeout(()=>{n();},10);},[]),jsx(d,{spill:"auto",gap:e.gap||"sm",children:e.options.map((i,l)=>{let s=l===t,c=()=>{i.onClick?.(),e.onOptionClick?.(i,l,e.options),o(l),r.close();};return (!i||!i?.value)&&console.error(`Index ${l} is not defined in ${e.options.join()}`),jsx(Hr,{value:i?.value.toString(),disabled:i?.disabled,selected:s,onClick:c},l)})})}var He=ol;a();var Fo=createContext(null);function cl(e){let r=()=>{e.onClose?.();};if(e.controller?.isOpen!==false)return jsx(Fo.Provider,{value:{sepColor:e.sepColor||"onSurface[0.1]"},children:jsx(Drawer.Root,{open:e.controller?.isOpen,onExitComplete:r,children:jsxs(ul,{container:e.container,children:[jsx(Drawer.Backdrop,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0}),e.triggerElement&&jsx(Drawer.Trigger,{children:e.triggerElement}),jsx(Drawer.Positioner,{pos:e.container?"absolute":void 0,boxSize:e.container?"full":void 0,children:jsxs(Drawer.Content,{style:C({...e,spill:e.spill||"hidden",backgroundColor:e.backgroundColor,padding:e.padding??"md"}),children:[jsx(Drawer.CloseTrigger,{children:jsx(CloseButton,{})}),e.children]})})]})})})}function dl(){let e=useContext(Fo);return jsx(d,{backgroundColor:e.sepColor,width:"full",height:"1px"})}function ul(e){return e.container?jsx(Portal,{container:e.container,children:e.children}):e.children}var vv={Root:cl,Header:e=>jsx(Drawer.Header,{style:C({...e,width:e.width??"full"}),children:e.children}),Body:e=>jsx(Drawer.Body,{style:C({...e,width:e.width??"full"}),children:e.children}),Footer:e=>jsx(Drawer.Footer,{style:C({...e,width:e.width??"full"}),children:e.children}),Sep:dl};a();a();a();var Ro=["Google"],zo=["pdf","word","excel","img","txt","unknown"],Oo=Object.freeze({txt:["text/plain"],img:["image/jpeg","image/png","image/jpg"],excel:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12"],word:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword","application/vnd.microsoft.portable-executable"],pdf:["application/pdf"],unknown:[]});function Ao(e){let r=t=>{e.onChange(t.currentTarget.files);};return jsxs(FileUpload.Root,{alignItems:"stretch",width:e.width,maxWidth:e.maxWidth||"xl",maxFiles:e.maxFiles||(e.multiple?1/0:1),overflow:"hidden",height:e.height,accept:fl(e.accepts),children:[jsx(FileUpload.HiddenInput,{onChange:r}),e.children,e.showList&&jsx(FileUpload.List,{...e.slotProps?.fileList})]})}var fl=e=>e.flatMap(r=>Oo[r]);function Rv(e){return jsx(Ao,{...e,children:jsxs(FileUpload.Dropzone,{borderRadius:"xl",height:"full",width:"full",overflow:"hidden",backgroundColor:_(e.backgroundColor||"transparent"),borderColor:_(e.borderColor||"outlineVariant"),color:_(e.color||"onSurface"),cursor:"pointer",children:[jsx(Icon,{size:"md",color:"fg.muted",children:jsx(LuUpload,{})}),jsx(FileUpload.DropzoneContent,{maxHeight:"100%",overflow:"hidden",children:e.content||jsxs(Fragment,{children:[jsx(Box,{children:"Drag and drop files here"}),jsx(Box,{color:"fg.muted",children:".png, .jpg up to 5MB"})]})})]})})}a();var Wo=createContext(null);function $v(e){let r=T(null),t=T(e.defaultValue??""),[o,n]=useState(e.value??t.read()),[i,l]=useState(false),s=e.activationMode||"click",c=e.size||"md",g=z=>{e.value===void 0&&n(z),e.onChange?.(z);},v=()=>{g(t.read());},m=()=>{e.onEdit?.(),!e.preventDefault&&l(true);},h=(z={asClick:true})=>{r.upsert("cancel"),v(),z.asClick&&e.onCancelClick?.(),l(false);},S=z=>{z.preventDefault(),r.read()!=="save"&&v(),l(false);},x=(z=true)=>{t.upsert(o),z&&(r.upsert("save"),e.onSaveClick?.(o)),e.onSave?.(o),l(false);},y=()=>{r.upsert("edit"),e.onEditClick?.(),m();},b=()=>{x(false);},P=()=>{e.onContentClick?.(),m();},R={align:"center",gap:e.rowGap??"sm",width:e.width,maxWidth:"full"};return jsx(Wo.Provider,{value:{padding:".25rem",iconSize:e.iconSize||c},children:jsxs(d,{...R,asChildren:!e.label,row:false,align:"start",children:[e.label&&jsx(p,{text:e.label,fontSize:G[c],fade:i?.75:.5,style:{transition:"all 200ms linear"}}),jsxs(d,{...R,grid:true,gap:e.columnGap??R.gap,gridCols:e.hideControls===true||Array.isArray(e.hideControls)&&["cancel","save","edit"].every(z=>e.hideControls.includes(z))?"1fr":e.control?"1fr auto":i?"1fr auto auto":"1fr auto",justify:e.spaceBetween?"space-between":void 0,children:[i?jsx(d,{width:"full",align:"center",gap:"md",children:jsx(j,{autoFocus:true,allowedChars:e.allowedChars,maxChars:e.maxChars,value:o,corners:"md",width:e.inputWidth,focusColor:e.focusColor,size:e.inputSize||c,placeholder:e.placeholder,showCharCounter:e.showCharCounter,slotProps:{charCounter:{fontSize:e.charCounterFontSize}},onChange:g,onBlur:S,onEnterKeyPressed:b,onEscapeKeyPressed:()=>h({asClick:false})})}):jsx(d,{spill:"hidden",width:"full",padding:e.contentPadding??["md",["top","bottom"]],corners:"sm",fontSize:e.fontSize||c,cursor:"text",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},onDoubleClick:s==="dblclick"?()=>h({asClick:false}):void 0,onClick:s==="click"?P:void 0,children:jsx(Te,{...e.slotProps?.popover,allowInteractions:true,asChild:e.showPopoverOnHover===false?true:e.slotProps?.popover?.asChild??!!o,content:(e.slotProps?.popover?.content||e.renderPopoverContent?.(o))??o,displayAction:"hover",maxWidth:e.slotProps?.popover?.maxWidth||"10rem",maxHeight:e.slotProps?.popover?.maxHeight||"5rem",children:jsx("span",{style:U({opacity:e.placeholder&&!o?.85:1,width:"100%"}),children:(e.formatContent?.(o)??o)||e.placeholder})})}),e.hideControls!==true&&(e.control||jsx(Sl,{editing:i,hideControl:typeof e.hideControls=="boolean"?void 0:e.hideControls,onCancel:h,onSave:x,onEdit:y}))]})]})})}function Sl(e){let r=t=>Array.isArray(e.hideControl)?e.hideControl.includes(t):e.hideControl===t;return e.editing?jsxs(Fragment,{children:[!r("cancel")&&jsx($r,{outlined:true,icon:LuX,onClick:e.onCancel}),!r("save")&&jsx($r,{preventDefault:true,outlined:true,icon:LuCheck,onClick:e.onSave})]}):r("edit")?void 0:jsx($r,{icon:LuPencilLine,onClick:e.onEdit})}function $r(e){let{padding:r,iconSize:t}=useContext(Wo);return jsx(d,{asChildren:e.outlined,corners:"sm",css:{transition:"all 200ms linear",":hover":{backgroundColor:"onSurface[0.1]"}},children:jsx(B,{size:t,padding:r,leadingEl:e.icon,backgroundColor:"transparent",borderColor:e.outlined?"onSurface[0.25]":void 0,onClick:e.onClick,aspectRatio:1,color:"onSurface",corners:"sm",onMouseDown:o=>{o.preventDefault();}})})}a();var Jr=createContext(null);function Bl(e){return jsx(Jr,{value:e.itemFade?{fade:e.itemFade}:{fade:.5},children:jsx(d,{...e,size:e.size??"full",centerContent:e.centerContent??true,gap:e.gap||"lg",children:e.children})})}function kl(e){let{fade:r}=useContext(Jr);return jsx(d,{fade:e.disableFade?1:r,size:e.size||"4rem",children:e.element})}function wl(e){let{fade:r}=useContext(Jr);return jsxs(d,{align:"center",gap:e.gap||"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.titleFontSize||"lg",text:e.title}),jsx(p,{fade:r,fontSize:e.descriptionFontSize,text:e.description})]})}var yr={Root:Bl,Indicator:kl,Content:wl};a();function me(e){let r=()=>{if(!e.disableFallback){if(typeof e.fallback=="string")return jsx(Avatar.Fallback,{name:e.fallback});if(e.fallback&&te__default.isValidElement(e.fallback))return e.fallback;if(e.fallback){let t=e.fallback;return jsx(t,{size:"50%"})}return jsx(Avatar.Fallback,{})}};return jsxs(Avatar.Root,{size:e.size||"md",backgroundColor:_(e.backgroundColor),color:_(e.color),children:[jsx(r,{}),jsx(Avatar.Image,{src:e.src})]})}a();function Jo(e){let r=useRef(null),t=useRef(null);return e.asChild?e.children:jsxs(Box,{position:"relative",ref:r,children:[e.children,jsx(Float,{ref:t,offset:e.offset||(e.circleChild?".25rem":void 0),placement:e.placement,children:e.badge})]})}a();var Xo=createContext(null);function Ml(e){return jsx(Xo.Provider,{value:{gap:e.gap},children:jsx(d,{row:true,clickable:e.clickable,gap:e.gap??"md",padding:e.padding??"md",corners:e.corners??"lg",height:e.height,width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,backgroundColor:e.backgroundColor,color:e.color,align:"center",style:e.style,spill:e.spill??"hidden",css:e.sx,children:e.children})})}function Uo(e){return r=>{let{children:t,className:o,row:n=true,spill:i="hidden",centerContent:l=true,align:s="center",...c}=r;return jsx(d,{className:o,...c,row:n,spill:i,centerContent:l,align:s,children:t})}}function jo(e){return r=>jsx("span",{style:(()=>{let o=C({...e,fontSize:r.fontSize||e.fontSize,fontWeight:r.fontWeight||e.fontWeight,fade:r.fade||e.fade,color:r.color||e.color||"inherit"});return !r.truncateStyle||r.truncateStyle==="none"?o:r.truncateStyle==="ellipsis"?U(o):Ie(r.truncateStyle.lineCount,o)})(),children:r.value})}var Ll=Uo(),Vl=Uo(),Hl=e=>{let{gap:r=e.gap}=useContext(Xo);return jsx(d,{gap:r,...e,spill:e.spill||"hidden",maxWidth:e.maxWidth||"full",children:e.children})},Wl=jo({fontWeight:"bold",fontSize:"xs",fade:.75}),$l=jo({fontSize:"sm"}),W={Root:Ml,LeadingAddOn:Ll,TrailingAddOn:Vl,Content:Hl,Label:Wl,Item:$l};a();function Xl(e){let r=()=>{if(typeof e.fallback=="string"||te__default.isValidElement(e.fallback))return e.fallback;let o=e.fallback||PiImageBrokenLight;return jsx(o,{size:"3rem"})};return jsxs(d,{className:e.className,padding:"1px",corners:"lg",backgroundColor:"onSurface",color:"surface",gap:"sm",spill:"hidden",fade:e.fade,height:e.height??"fit-content",width:e.width??"14rem",style:{...e.style,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(d,{centerContent:true,height:e.mediaHeight??"7rem",width:"full",backgroundColor:"surface",color:"onSurface",borderColor:"surface",corners:{top:"lg"},spill:"hidden",children:e.src?jsx(fe,{cover:e.coverImg??true,size:e.imgSize??"full",corners:e.imgCorners??"md",spill:"hidden",src:e.src,style:{boxShadow:"rgba(0, 0, 0, 0.24) 0px 3px 8px"}}):jsx(r,{})}),jsxs(d,{width:"full",gap:"md",padding:"md",align:"start",spill:"hidden",children:[jsxs(d,{width:"full",gap:0,spill:"hidden",children:[jsx("span",{children:e.title,style:C({fontSize:e.titleFontSize??"md"})}),e.description&&jsx("span",{children:e.description,style:C({fontSize:e.descriptionFontSize??"xs",fade:.5})})]}),e.children]})]})}function Ul(e){return jsx(d,{...e,width:e.width??"full",spill:e.spill||"hidden",children:e.children})}var xy={Root:Xl,Content:Ul};a();function jl(e){let r={backgroundColor:"onSurface",color:"surface",padding:"md",corners:"lg"},t=i=>e[i]??r[i],o=i=>{if(!e.children)return e[i]||r[i]},n=e.disableBoxShadow?"none":e.style?.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px";return jsxs(d,{className:e.className,asChildren:!e.children,height:t("height"),width:t("width"),backgroundColor:t("backgroundColor"),color:t("color"),padding:t("padding"),corners:t("corners"),gap:"md",spill:"hidden",style:{...e.style,boxShadow:n},children:[jsxs(d,{row:true,className:e.children?void 0:e.className,gap:"md",align:"center",height:o("height"),width:o("width"),backgroundColor:o("backgroundColor"),color:o("color"),padding:o("padding"),corners:o("corners"),spill:"hidden",style:e.children?void 0:{...e.style,boxShadow:n},children:[jsx(me,{src:e.avatarSrc,size:e.avatarSize??"sm",fallback:e.avatarFallback,backgroundColor:e.avatarBackgroundColor,color:e.avatarColor}),jsxs(d,{width:"full",spill:"hidden",children:[jsx("span",{children:e.title,style:U(C({fontSize:e.titleFontSize??"sm",fontWeight:e.titleFontWeight,fade:e.titleFade}))}),jsx("span",{children:e.description,style:U(C({fade:e.descriptionFade??.5,fontSize:e.descriptionFontSize??"xs",fontWeight:e.descriptionFontWeight}))})]})]}),e.children]})}var Ry={Root:jl,Content:d};a();function ko(e){let[r,t]=useState(e.defaultChecked??false),o=e.checked??r,n=e.checked!==void 0,i=()=>{e.onClick?.(),n||(e.onChange?.(!o),t(!o));};return jsx(d,{cursor:e.disabled?"not-allowed":"pointer",fade:e.disabled?.5:1,size:e.size,corners:e.corners??"sm",padding:e.padding??"sm",backgroundColor:o?e.accentColor||"primaryContainer":"transparent",color:e.iconColor||"onPrimaryContainer",borderColor:e.borderColor||"onSurface[0.1]",style:{boxShadow:e.disableShadow?void 0:"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px inset"},onClick:e.disabled?void 0:i,children:jsx(IoMdCheckmark,{size:e.iconSize,style:{opacity:o?1:0}})})}a();a();function Zl(e){let{triggerRerender:r}=L(),t=C({...e,padding:e.padding||"xl",corners:e.corners||"md",gap:e.gap||"lg"}),o=({open:i})=>{e.onOpenChange?.(i);},n=()=>{e.onClose?.(),e.controller?.hide?.(),e.rerenderOnClose&&r();};if(e.controller?.isOpen!==false)return jsxs(Dialog.Root,{unmountOnExit:e.unmountOnExit,open:e.controller?.isOpen,onEscapeKeyDown:e.closeOnEscape??true?e.controller?.hide:void 0,scrollBehavior:e.scrollBehavior,onInteractOutside:e.closeOnInteractOutside??true?e.controller?.hide:void 0,placement:e.placement||"center",closeOnEscape:e.closeOnEscape,closeOnInteractOutside:e.closeOnInteractOutside,onOpenChange:o,onExitComplete:n,motionPreset:e.enterAnimation||"slide-in-bottom",children:[e.triggerElement&&jsx(Dialog.Trigger,{asChild:true,children:e.triggerElement}),jsxs(Portal,{children:[jsx(Dialog.Backdrop,{}),jsx(Dialog.Positioner,{children:jsxs(Dialog.Content,{style:t,children:[e.children,!e.hideCloseButton&&jsx(Dialog.CloseTrigger,{asChild:true,children:jsx(CloseButton,{size:e.closeButtonSize||"sm",onClick:e.controller?.hide})})]})})]})]})}var Yr=(e,r)=>t=>{let o=Dialog[e],n={...t,spill:t.spill||"hidden"};return Object.keys(r||{}).forEach(i=>{let l=i;n?.[l]||(n=Object.assign(n,{[l]:r[l]}));}),jsx(o,{width:"full",height:"full",overflow:"hidden",children:jsx(d,{...n,children:t.children})})},Ql=Yr("Header",{fontSize:"xl",fontWeight:"bold"}),es=Yr("Body",{gap:"md"}),rs=Yr("Footer",{row:true,gap:"sm"}),ts=e=>jsx(Dialog.CloseTrigger,{asChild:true,children:e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),os=e=>jsx(Dialog.ActionTrigger,{asChild:true,children:e.children}),w={Root:Zl,Header:Ql,Body:es,Footer:rs,CloseTrigger:ts,ActionTrigger:os};function eh(e){let r=e.severity||"error",t=_(r,{preference:"res"});return jsxs(w.Root,{controller:e.controller,width:e.width??"25rem",height:e.height,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,triggerElement:e.triggerElement,children:[jsx(w.Header,{fontSize:"2xl",children:e.title}),jsxs(w.Body,{fade:.75,children:[jsx("span",{children:e.message}),e.disclaimer&&jsx(Yo,{width:"full",facade:o=>o==="error"?"warning":o,hideLabel:e.hideDisclaimerLabel,severity:r,message:e.disclaimer})]}),jsxs(w.Footer,{gap:"md",children:[jsx(w.ActionTrigger,{children:jsx(B,{size:"sm",fade:.75,color:"onSurface",backgroundColor:"transparent",text:e.cancelLabel||"Cancel",onClick:e.onCancelClick})}),jsx(B,{async:true,size:"sm",text:e.action.label,backgroundColor:t,color:"white",onClick:e.action.onClick})]})]})}a();var qr=createContext(null);function ch(e){let r=e.sections.flatMap(y=>typeof y=="object"?y.nestedItems:y),t=e.defaultSection?r.findIndex(y=>y===e.defaultSection):0,[o,n]=useState(t>=0?t:0),{triggerRerender:i}=L(),l=T([]),s=r[o],c=Array.isArray(e.ignoredSections)?e.ignoredSections:strictArray([e.ignoredSections]),g=o<=0;e.checkCompletionOnMount&&useEffect(()=>{r.forEach((y,b)=>{m(y,b);}),i();},[]);let v=(y=l.read())=>r.filter(b=>!y.includes(b)&&!c.includes(b)),m=(y=s,b=o)=>{let P=l.read();if(!c.includes(y)){if(e.isSectionComplete(y)&&!P.includes(y))P=[...P,y];else if(!e.isSectionComplete(y)&&P.includes(y))P=P.filter((R,z)=>z!==b);else return;l.upsert(P),e.onSectionsStatusChange?.(v(P),P);}},h=y=>{m(),n(r.findIndex(b=>b===y));},S=()=>{o>=r.length-1||(m(),n(o+1));},x=()=>{g||(m(),n(o-1));};return jsx(qr.Provider,{value:{activeSection:s,completedSections:l.read(),rawSections:e.sections},children:jsx(w.Root,{controller:e.controller,triggerElement:e.triggerElement,unmountOnExit:e.unmountOnExit,height:"30rem",width:"45rem",maxWidth:"45rem",backdropBlur:"1rem",padding:"0px",rerenderOnClose:e.rerenderOnClose,backgroundColor:"transparent",spill:"hidden",children:jsxs(w.Body,{grid:true,gap:"0px",width:"full",height:"full",spill:"hidden",gridCols:".45fr 1fr",children:[jsx(ss,{title:e.title,onSectionClick:h}),jsx(cs,{hideSubmitButton:e.hideSubmitButton,sectionMapper:e.sectionMapper,previousDisabled:g,onPreviousClick:x,onNextClick:S,incompleteSections:v(),onSubmitClick:e.onSubmit})]})})})}function ss(e){let{rawSections:r,activeSection:t,completedSections:o}=useContext(qr);return jsxs(d,{size:"full",padding:"xl",backgroundColor:"surfaceContainer",gap:e.title?"xl":void 0,spill:"hidden",children:[e.title&&jsx(d,{fontSize:"lg",fontWeight:"bold",spill:"hidden",children:e.title}),jsx(Lr,{width:"full",items:r,isItemActive:n=>t===n,isItemCompleted:n=>o.includes(n),onItemClick:e.onSectionClick})]})}function cs(e){let{activeSection:r}=useContext(qr),{title:t,description:o,element:n}=e.sectionMapper[r],i=typeof n=="function"?jsx(n,{incompleteSections:e.incompleteSections}):n;return jsxs(d,{size:"full",backgroundColor:"surfaceContainer[0.5]",padding:"3rem",gap:"xl",grid:true,gridRows:"auto 1fr auto",justify:"space-between",spill:"hidden",children:[jsxs(d,{children:[jsx(p,{text:t,fontSize:"xl",fontWeight:"bold"}),jsx("span",{children:o,style:{opacity:.75}})]}),jsx(d,{size:"full",gap:"lg",children:i}),jsxs(d,{row:true,width:"full",align:"center",justify:"space-between",children:[jsx(Qr,{disabled:e.previousDisabled,onClick:e.onPreviousClick}),r==="Submission"?!e.hideSubmitButton&&jsx(et,{disabled:!!e.onSubmitClick,onClick:e.onSubmitClick}):jsx(Zr,{onClick:e.onNextClick})]})]})}a();a();var ds=ue({preset:{text:"Save",async:true}}),rt=ds;function bh(e){let{triggerRerender:r}=L(),t=T(Object.fromEntries(Object.entries(e.fields).map(([l,s])=>[l,typeof s=="object"&&"defaultValue"in s?s.defaultValue:e.defaultValue?.[l]??""]))),o=e.actionButtionSize||"lg",n=()=>{e.onSave?.(t.read());},i=()=>{e.onCancel?.();};return jsxs(w.Root,{rerenderOnClose:true,width:e.width,closeButtonSize:e.closeButtonSize||"md",controller:e.controller,triggerElement:e.triggerElement,onClose:()=>r(),children:[jsx(w.Header,{fontSize:"2rem",children:e.title||"Edit Form"}),jsx(w.Body,{padding:"xs",children:Object.keys(e.fields).map(l=>{let s=l,c=e.fields[s],g=t.read()?.[s]??"",v=typeof c.label=="function"?c.label(l):!c.label||c.label==="prop-name"?e?.formatFieldPropName?.(l)??l:c.label,m=h=>t.upsert(S=>({...S||{},[s]:h}));return c.options?jsx(fs,{label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,placeholder:c.placeholder,options:c.options,onChange:m},l):jsx(j,{width:"full",placeholder:c.placeholder,label:v,size:e.textfieldSize,defaultValue:g,disabled:c.disabled,allowedChars:c.allowedChars||e.allowedChars,onChange:m},s)})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Xe,{fade:.5,size:o,onClick:i})}),jsx(w.ActionTrigger,{children:jsx(rt,{size:o,onClick:n})})]})]})}function fs(e){let[r,t]=useState(e.defaultValue),o=({value:n})=>{e.onChange(n),t(n);};return jsx(He,{wrap:true,asChild:e.disabled,width:"match-anchor",maxHeight:"10rem",isSelected:({value:n})=>r===n,options:e.options.map(n=>({value:n.trim()})),onOptionClick:o,slotProps:{divWrapper:{style:{width:"100%"}}},children:jsx(j,{readOnly:true,size:e.size,disabled:e.disabled,label:e.label,width:"full",value:r,placeholder:e.placeholder})})}a();var Q={sidebar:"fv-sidebar",topbar:"fv-topbar",viewer:"fv-viewer"},je=createContext(null);function ys(e){let r=_(e.borderColor||"outline[0.1]"),t=ce.md;return jsx(je.Provider,{value:{borderColor:r,corners:t,navThickness:e.navThickness||"3rem"},children:jsx(d,{minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth,corners:t,size:e.size,backgroundColor:e.backgroundColor??"surfaceContainer",height:e.height??"30rem",width:e.width??"40rem",spill:"hidden",grid:true,gridCols:"auto 1fr",gridRows:"auto 1fr",borderColor:r,style:{gridTemplateAreas:`"${Q.topbar} ${Q.topbar}" "${Q.sidebar} ${Q.viewer}"`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:e.children})})}function hs(e){let{navThickness:r}=useContext(je),t=pr(e.file.typeAlias);return jsxs(d,{row:true,align:"center",children:[t&&jsx(t.filled,{style:C({size:r||e.styles?.icon?.size,color:"pdf",style:{padding:C({padding:e.styles?.icon?.padding||".65rem"})?.padding}})}),jsxs(d,{asChildren:e.hideFileMetadata,children:[jsx(p,{color:e.styles?.filename?.color,fontWeight:e.styles?.filename?.fontWeight,fontSize:e.styles?.filename?.fontSize||"1rem",text:e.file.name}),!e.hideFileMetadata&&jsxs(d,{row:true,fontSize:e.styles?.fileMetadata?.fontSize||".7rem",gap:e.styles?.fileMetadata?.gap??"sm",fade:e.styles?.fileMetadata?.fade??.5,color:e.styles?.fileMetadata?.color,align:"center",children:[jsx(p,{fontWeight:"bold",text:(e.file.ext||e.file.typeAlias)?.toUpperCase()}),jsx(d,{size:e.styles?.fileMetadataSeparator?.size||".3rem",corners:e.styles?.fileMetadataSeparator?.corners??"circle",backgroundColor:e.styles?.fileMetadataSeparator?.color||"onSurface"}),jsx(p,{fade:.75,text:format("file-size",e.file.sizeInBytes)})]})]})]})}function ps(e){let{navThickness:r}=useContext(je),{children:t,...o}=e;return jsx(d,{...o,row:true,id:Q.topbar,height:r,width:"full",align:"center",gap:e.gap??"md",padding:e.children?["md","right"]:void 0,justify:e.justify||"space-between",style:{...e.style,gridArea:Q.topbar},children:e.children})}var Qo=createContext(null);function Cs(e){let{children:r,onOptionClick:t,...o}=e,{navThickness:n}=useContext(je);return jsx(Qo.Provider,{value:{onOptionClick:i=>e.onOptionClick?.(i)},children:jsx(d,{...o,id:Q.sidebar,height:"full",width:n,align:"center",gap:o.gap||"md",padding:["md",["top","bottom"]],style:{...o.style,gridArea:Q.sidebar},children:e.children})})}function _s(e){let{onOptionClick:r}=useContext(Qo),t=()=>{e.onClick?.(),r(e.label);};return jsx(Te,{displayAction:"hover",placement:"right",fontSize:"sm",content:e.label,asChild:e.disabled,children:jsx(d,{fade:e.disabled?.5:1,cursor:e.disabled?"not-allowed":e.selected?"default":"pointer",corners:e.corners??"md",padding:e.padding??"md",borderColor:e.selected?"onPrimaryContainer[0.1]":"transparent",css:{transition:"background-color 200ms linear",backgroundColor:e.backgroundColor?.(e.selected)??(e.selected?"primaryContainer":"outline[0.1]"),color:e.color?.(e.selected)??(e.selected?"onPrimaryContainer":"onSurface"),":hover":e.selected?void 0:{...e.css?.[":hover"],backgroundColor:e.css?.[":hover"].backgroundColor||"outline[0.25]"}},onClick:e.disabled?void 0:t,children:jsx(e.icon,{size:e.iconSize??"1.1rem"})})})}function bs(e){let{borderColor:r,corners:t}=useContext(je),o=useRef(null);useEffect(()=>{n();let i=new MutationObserver(l=>{for(let s of l)s.type==="childList"&&n();});return i.observe(o.current?.parentNode,{childList:true}),()=>{i.disconnect();}},[]);let n=()=>{let i=["sidebar","topbar"],l=o.current?.parentElement,s=i.filter(c=>l?.querySelector(`#${Q[c]}`));i.every(c=>s.includes(c))?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 0`,borderColor:`${r} transparent transparent ${r}`}):s.includes("sidebar")?Object.assign(o.current?.style,{borderRadius:`${t} 0 0 ${t}`,borderLeftColor:r}):s.includes("topbar")?Object.assign(o.current?.style,{borderRadius:0,borderTopColor:r}):Object.assign(o.current?.style,{borderRadius:t,borderColor:r});};return jsx(d,{ref:o,size:"full",centerContent:e.centerContent??true,backgroundColor:e.backgroundColor||"onSurface[0.1]",color:e.color||"onSurface",spill:"hidden",borderColor:"transparent",style:{gridArea:Q.viewer,boxShadow:"rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset"},children:e.children})}function Ss(e){let r=e.thickness||"0.0104in",t=e.length||"70%",o={horizontal:{height:r,width:t},vertical:{height:t,width:r}}[e.orientation||"vertical"];return jsx(d,{...o,backgroundColor:e.color||"outline[0.1]"})}var Eh={Root:ys,Sidebar:Cs,SidebarOption:_s,Topbar:ps,Viewer:bs,Indicator:hs,Sep:Ss};a();var en=(i=>(i["2xl"]="2rem",i.xl="1.75rem",i.lg="1.5rem",i.md="1.25rem",i.sm="1rem",i.xs=".85rem",i["2xs"]=".5rem",i))(en||{});function rn(e){let r=en[e.size||"sm"];return jsx(d,{hide:e.hide||e.content!==void 0&&!e.content,padding:e.padding||"xs",fontSize:e.fontSize||"xxs",corners:r,size:r,centerContent:true,backgroundColor:e.backgroundColor||"orange",color:e.color||"white",children:e.content})}a();function tn(e){return jsxs(d,{row:true,clickable:true,width:"full",align:"center",justify:"space-between",corners:"lg",backgroundColor:"surfaceVariant[0.1]",padding:"lg",onClick:()=>{let t=(o,n=false)=>typeof o=="string"?o:Object.entries(o).map(([i,l],s,c)=>`${n?" ":""}${i}: ${[void 0,null,""].includes(l)?null:typeof l=="object"?`{
18
18
  ${t(l,true)}
19
19
  }`:l}`+(s===lastIndex(c)?"":",")).join(`
20
- `);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var en=createContext(null);function Cs(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",o=e.placement||"right-start";return jsx(en.Provider,{value:{color:t,placement:o,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:o,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(_s,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:C(r),color:C(t),style:b({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(n=>{let i=e.items[n];return i.subMenu?jsx(Cs,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(Qo,{isTrigger:true,value:n})}):jsx(Qo,{...i,value:n})})})})})]})})}function _s(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function Qo(e){let{color:r,onItemClick:t}=useContext(en),o=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},n=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:l}=e.sx?.[":hover"]||{},s={disabled:e.disabled,backgroundColor:C(e.backgroundColor||"transparent"),color:C(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:C(i),color:l?C(l):void 0},_active:e.sx?.[":active"]?{...b({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:n};return e.isTrigger?jsxs(Menu.TriggerItem,{...s,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...s,value:e.value,children:[e.leadingEl,jsx(d,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(o,{})]})}a();var nn=createContext(null);function Xh(e){let[r,t]=useState(false),o=e.controller||an(0),[n,i]=useState(o.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),o.goTo=useCallback((v,m)=>{let h=m?.transition||"smooth",S=n;if(!(v===S||r||!m?.ignoreOutOfBoundsCheck&&!e.children[v]))if(l?.(S,v),e.onChange?.(S,v),h==="smooth"){t(true);let x=S,y=setInterval(()=>{v>S?x++:x--,i(x),x===v&&(clearInterval(y),t(false));},m?.transitionDuration||200);}else i(v);},[n,e.children,r]),o.echo=e.onEcho,o.isPageActive=useCallback(v=>v===n,[n]),o.onPageChange=useCallback(v=>{l=v;},[]),o.getActivePage=useCallback(()=>n,[n]),useEffect(()=>()=>{for(let m of Object.keys(o)){let h=m;typeof o[h]=="function"&&(o[h]=null);}l=null;},[]);let s=()=>o.goTo(n-1),c=()=>o.goTo(n+1),g=b({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(nn.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:g.height,width:g.width??"100%",justifyContent:"center",gap:g.gap??".5rem",overflow:g.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[jsx(on,{disabled:n<=0,inset:"left",onClick:s}),e.children.map((v,m)=>{let h=Math.sign(n-m),S=Math.abs(n-m)/3,x=Math.abs(n-m)>2;return jsx("div",{style:{position:"absolute",overflow:"hidden",transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,display:x?"none":"flex",justifyContent:"center",alignItems:"center",transform:`
20
+ `);alert(t(typeof e.info=="function"?e.info():e.info));},children:[jsxs(d,{row:true,align:"center",gap:"md",children:[e.item.icon&&jsx(e.item.icon,{size:"1.5rem",style:{borderRadius:"1.5rem"}}),jsxs(d,{gap:"sm",children:[jsx(p,{fontSize:".85rem",text:e.item.title}),e.item.description&&jsx(p,{fade:.5,fontSize:".75rem",text:e.item.description})]})]}),jsx(IoAdd,{size:"1.25rem"})]})}a();var nn=createContext(null);function Es(e){let r=e.backgroundColor||"surfaceContainer",t=e.color||"onSurface",o=e.placement||"right-start";return jsx(nn.Provider,{value:{color:t,placement:o,onItemClick:e.onItemClick},children:jsxs(Menu.Root,{positioning:{placement:o,hideWhenDetached:true},children:[jsx(Menu.Trigger,{asChild:true,children:e.wrapTrigger?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children}),jsx(Fs,{children:jsx(Menu.Positioner,{children:jsx(Menu.Content,{h:e.height,w:e.width,maxH:e.maxHeight,maxW:e.maxWidth,minH:e.minHeight,minW:e.minWidth,backgroundColor:_(r),color:_(t),style:C({gap:e.gap||"xs",padding:".5rem",corners:"md"}),children:Object.keys(e.items).map(n=>{let i=e.items[n];return i.subMenu?jsx(Es,{...e,gutter:(e.gutter||0)+2,items:i.subMenu,wrapTrigger:false,children:jsx(on,{isTrigger:true,value:n})}):jsx(on,{...i,value:n})})})})})]})})}function Fs(e){return e.asChild?e.children:jsx(Portal,{children:e.children})}function on(e){let{color:r,onItemClick:t}=useContext(nn),o=()=>{if(e.trailingEl)return "command"in e.trailingEl?jsx(Menu.ItemCommand,{children:e.trailingEl.command}):e.trailingEl},n=()=>{e.onClick?.(e.value),t?.(e.value);},{backgroundColor:i="onSurface[0.1]",color:l}=e.sx?.[":hover"]||{},s={disabled:e.disabled,backgroundColor:_(e.backgroundColor||"transparent"),color:_(e.color||r),padding:".25rem",borderRadius:".35rem",cursor:"pointer",_hover:{transition:"all 200ms linear",backgroundColor:_(i),color:l?_(l):void 0},_active:e.sx?.[":active"]?{...C({...e.sx[":active"]}),transition:"all 200ms linear"}:void 0,onClick:n};return e.isTrigger?jsxs(Menu.TriggerItem,{...s,alignItems:"center",justifyContent:"space-between",children:[e.value," ",jsx(LuChevronRight,{})]}):jsxs(Menu.Item,{...s,value:e.value,children:[e.leadingEl,jsx(d,{style:{flexGrow:1},asChildren:!e.leadingEl&&!e.trailingEl,children:e.value}),jsx(o,{})]})}a();var cn=createContext(null);function mp(e){let[r,t]=useState(false),o=e.controller||dn(0),[n,i]=useState(o.defaultPage??0),l;useEffect(()=>{r?e.onTransition?.("start"):e.onTransition?.("end");},[r]),o.goTo=useCallback((v,m)=>{let h=m?.transition||"smooth",S=n;if(!(v===S||r||!m?.ignoreOutOfBoundsCheck&&!e.children[v]))if(l?.(S,v),e.onChange?.(S,v),h==="smooth"){t(true);let x=S,y=setInterval(()=>{v>S?x++:x--,i(x),x===v&&(clearInterval(y),t(false));},m?.transitionDuration||200);}else i(v);},[n,e.children,r]),o.echo=e.onEcho,o.isPageActive=useCallback(v=>v===n,[n]),o.onPageChange=useCallback(v=>{l=v;},[]),o.getActivePage=useCallback(()=>n,[n]),useEffect(()=>()=>{for(let m of Object.keys(o)){let h=m;typeof o[h]=="function"&&(o[h]=null);}l=null;},[]);let s=()=>o.goTo(n-1),c=()=>o.goTo(n+1),g=C({height:e.height,width:e.width,spill:e.spill,gap:e.gap});return jsx(cn.Provider,{value:{...e,transitioning:r},children:jsxs("div",{style:{display:"flex",position:"relative",alignItems:"center",height:g.height,width:g.width??"100%",justifyContent:"center",gap:g.gap??".5rem",overflow:g.overflow,transition:"all 300ms ease-in-out",perspective:"500px",transformStyle:"preserve-3d"},children:[jsx(sn,{disabled:n<=0,inset:"left",onClick:s}),e.children.map((v,m)=>{let h=Math.sign(n-m),S=Math.abs(n-m)/3,x=Math.abs(n-m)>2;return jsx("div",{style:{position:"absolute",overflow:"hidden",transition:"all 0.3s ease-out",flexGrow:e.childFlexGrow??1,display:x?"none":"flex",justifyContent:"center",alignItems:"center",transform:`
21
21
  scaleY(calc(1 + ${S} * -0.4))
22
22
  translateZ(calc(${S} * -10rem))
23
- translateX(calc(${h} * -5rem))`,filter:`blur(calc(${S} * .5rem))`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof v=="function"?jsx(v,{isActive:m===n}):v},m)}),jsx(on,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function on(e){let r=useContext(nn),t=e.inset==="left"?BsArrowLeft:BsArrowRight,o=e.disabled||r.transitioning;return jsx(d,{fade:o?.5:1,cursor:o?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":o?void 0:{animation:"squish 300ms ease-in-out"},":active":o?void 0:{scale:.9,opacity:.75}},onClick:o?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var Cr=createContext(null);function De(e){let r=T(e.defaultOpen??false),{triggerRerender:t}=L(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=re__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:o});if(e.asChild)return e.children;useEffect(()=>{let g=e.placement||"bottom-left",v=["top","right","bottom","left"].includes(g),m=v?{positionArea:g}:Fs(e.anchorPoint||"top-left",Es(g));if(!e.visibleOnScroll){let S=Gt(n.current);S&&S.addEventListener("scroll",x=>{n.current?.hidePopover(),Object.assign(n.current?.style,{transform:`translateX(-${x.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:o});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...m,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...b({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.defaultOpen&&n.current?.showPopover();let g=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",v=>{let m=v.newState==="open";m?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(m),r.upsert(m),!m&&e.rerenderOnClose&&t();}),g==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else {let v,h=()=>{v&&(v=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?v=setTimeout(h,20):h();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{v&&clearTimeout(v);}),n.current?.addEventListener("mouseleave",h));}},[]);let s=(g,v)=>g==="match-anchor"?getComputedStyle(i.current)?.width:g??v,c=(g,v)=>{let m=200;typeof e.delay=="number"?m=e.delay:e.delay&&v in e.delay&&(m=e.delay[v]),setTimeout(g,m);};return jsxs(Cr.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var Es=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},Fs=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}};a();function sp(e){let r=t=>{e.onChange?.(t.value);};return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue,value:e.value,onValueChange:r,children:[jsx(SegmentGroup.Indicator,{}),e.controls.map(t=>{let o=typeof t=="string"?t:t.value;return jsxs(SegmentGroup.Item,{padding:"3",value:o,children:[jsx(SegmentGroup.ItemText,{children:o}),jsx(SegmentGroup.ItemHiddenInput,{})]},o)})]})}a();function mn(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:C(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function pp(e){let{height:r,width:t}=zs(e.size),o=e.responsive??true,n={a4:95,a6:80}[e.size.toLowerCase()];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...e.style,maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)"},children:e.children})}var zs=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()];a();function vn(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function Ep(e){return jsxs(({children:t})=>{let o={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...o,children:t}):jsx(Steps.Root,{...o,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,o)=>jsxs(Steps.Item,{index:o,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},o))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,o)=>jsx(Steps.Content,{height:"full",width:"full",index:o,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},o)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}a();a();var Cn=re.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:g,...v}=r;return i?n:jsxs(Tooltip.Root,{...v,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:g,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[o&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function _r(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:o,backgroundColor:n}=b({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(Cn,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:o,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":n}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...b(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var it=createContext(null);function Js(e){let r=T([]),t=e.lineSeparatorColor||"onSurface[0.5]",o=Array.isArray(e.children)?e.children:[e.children],n=o.length===1?o:o.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:C(t)}})}),jsx("p",{}),l]})),i=()=>{if(o.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===o.length)return "last"};return jsx(it.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",style:{columnGap:e.columnGap||".5rem"},children:n})})}function Xs(e){let[r,t]=useState(),{register:o}=useContext(it),{indicator:n,before:i,after:l}=e.styles||{};useEffect(()=>{let c=o();typeof c=="string"&&t(c);},[r]);let s=c=>r===c||r==="both";return jsxs(Fragment,{children:[jsx(bn,{disabled:e.disabled,style:{...i,align:i.align||"end"},children:e.before}),jsxs(d,{align:"center",height:"full",children:[jsx(Sn,{hide:s("first")}),jsx(d,{style:{...b({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface"}),flexShrink:0},children:e.indicator}),jsx(Sn,{hide:s("last")})]}),jsx(bn,{disabled:e.disabled,style:l,children:e.after})]})}function bn(e){return jsx(d,{size:"full",style:{...b({...e.style||{},fade:e.disabled?.5:e.style.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function Sn(e){let{lineSeparatorColor:r}=useContext(it);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var Yp={Root:Js,Item:Xs};a();function tC(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:C(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:C(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var at=(e,r)=>{let t=o=>!!o.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function U(e){let[r,t]=useState(e.defaultValue??""),o=e.value!==void 0,n=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=y=>typeof e.indent=="string"?e.indent:e.indent?.[y],g="md",{size:v,...m}=e,h={label:b({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:b({...e?.slotProps?.helperText}),root:b({width:e.width}),input:b({...m,width:"full",padding:{top:g,left:e.leadingContent?c("left")||s:g,right:e.trailingContent||e.showCharCounter?c("right")||s:g,bottom:g},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=y=>{n.current.value=y,e.onChange(y,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let y=_=>{if(e.format!=="currency")return;let P=_;if(P=P.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),P&&takeLast(P.split(""))[0]!=="."){let R=parseFloat(P);if(!isNaN(R)){let z=new Intl.NumberFormat;S(z.format(R));}}};n.current?.addEventListener?.("beforeinput",_=>{let P=_.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||P===null||(!Array.isArray(R)&&!at(P,R)||Array.isArray(R)&&R.some(z=>!at(P,z)))&&_.preventDefault();}),n.current?.addEventListener?.("paste",_=>{y(_.target.value);}),n.current?.addEventListener?.("input",_=>{y(_.target.value);});},[n.current]);let x=y=>{e.onChange?.(y,void 0),e.onPasteClick?.(y);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:h.root,children:[e.label&&jsxs(Field.Label,{style:h.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(ec,{elementRef:n,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:x,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(p,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(n.current?getComputedStyle(n.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||n,width:"full",autoFocus:e.autoFocus,size:v,zIndex:1,variant:e.variant,onKeyDown:y=>{y.key==="Enter"?e.onEnterKeyPressed?.():y.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":C(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:C(e.slotProps.placeholder.color)}:void 0,onChange:y=>{let _=y.currentTarget.value;e.onChange?.(_,y),o||t(_);},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function ec(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:se.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(Fe,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Dn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function Xo(e){let[r,t]=useState(false),n={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(n,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:C(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(jt(c));},style:b({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${b({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function Tn(e){return {FlyLeavingBox:ic}[e]}var dt=createContext(null);function sc(e){let r=T(e.attachments||[]),{triggerRerender:t}=L(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(dt.Provider,{value:{...e,attachmentsEventListener:(n,i)=>{let l=r.read();n==="add"&&(l=[...l,i]),n==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),n==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(n,i);},attachments:r.read(),rerender:t},children:jsxs(D.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(D.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(D.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(uc,{}):jsx(cc,{})})]})})}function cc(){let e=useContext(dt),r=T(void 0),[t,o]=useState(""),[n,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?n.filter(({name:m})=>m.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=m=>{i(h=>h.filter(({uid:S})=>S!==m.uid)),e?.onAttachmentDeleted?.(m),e?.attachmentsEventListener?.("delete",m);},g=(m,h)=>{let S=sanitizeLocalFile(h[0]);i([...n,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},v=m=>{e?.onOpenAttachment?.(m),e?.attachmentsEventListener?.("open",m);};return jsxs(Fragment,{children:[jsx(mt,{width:"full",value:t,onChange:o}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((m,h,S)=>jsx(dc,{scrollIntoView:r.read()===false&&h===S.length-1,value:m,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(m):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(m):e?.openDisabled,onDelete:c,onOpen:v},m.uid))}),!e.hideUploadButton&&jsx(qe,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:g})]})}function dc(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=yr(r);return jsxs(W.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(W.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(de,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(W.Content,{gap:"sm",width:"full",children:[jsx(W.Item,{truncateStyle:"ellipsis",value:o}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(W.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(ft,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(Ke,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function uc(){let e=useContext(dt);return jsxs(gr.Root,{children:[jsx(gr.Indicator,{size:"7rem",disableFade:true,element:jsx(de,{spill:"hidden",size:"full",src:Tn("FlyLeavingBox")})}),jsx(gr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(qe,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(o=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(o));}),e.rerender();}})]})}var ut=sc;function gc(e){let r=T(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=L(),o=n=>{r.upsert(n);};return jsx(_r,{tooltip:"Attachments",placement:"right",children:jsx(Ho,{circleChild:true,asChild:!e.attachments,badge:jsx(qo,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(vc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:o,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function vc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(ut,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var gt=gc;a();var hc=ce({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Ne=hc;a();function _c(e){return jsx(B,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var Ke=_c;a();function xc(e){let{iconOnly:r,...t}=e;return jsx(B,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var Pc=xc;a();function Ec(e){let r=T(e.initialState==="expanded"),t=e.icon||"chevron",o=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,n=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?n:o;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var Fc=Ec;a();function Rc(e){return jsx(B,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var Kr=Rc;a();function Ic(e){return jsx(B,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var ft=Ic;a();function Lc(e){return jsx(B,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var Vc=Lc;a();function $c(e){let r=jsx(B,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(vt,{triggerElement:r,options:e.options}):r}var Nc=$c;a();function Jc(e){return jsx(B,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var qr=Jc;a();function Gc(e){return jsx(B,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var yt=Gc;a();function jc(e){return jsx(B,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var Zr=jc;a();function qc(e){return jsx(B,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var ht=qc;a();function Qc(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:Ut({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var ed=Qc;a();function od(e){return jsxs(W.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(W.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(de,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(W.Content,{width:"full",gap:"xs",children:[jsx(W.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(W.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(W.TrailingAddOn,{children:jsx(Ke,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var nd=od;a();function fd(e){let[r,t]=useState(e.selectedDate||new Date),o=T(r),n=e.minDate==="today"?new Date:Hn(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?gd():Hn(e.maxDate),l=m=>{t(m),e.onDateSelected?.(m);},s=m=>m.toDateString()===r.toDateString(),c=m=>m.toDateString()===new Date().toDateString(),g=m=>{let h=o.read();return h.getMonth()===m.getMonth()&&yd(m.getDate(),h.getMonth())},v=m=>o.upsert(m);return jsx(sd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:v,onYearChange:v,renderCustomHeader:m=>jsx(md,{...m,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:m=>["calendar-date",s(m)?"selected":"unselected",c(m)?"today":"",g(m)?"":"out-of-bounds",vd(m,i)?"excluded":""].join(" ")})}function md(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,g)=>{let v=e.date.getFullYear();return v===e.minDate.getFullYear()?g>=e.minDate.getMonth():v===e.maxDate.getFullYear()?g<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(g=>g===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Vn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Vn,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Vn(e){return jsx(Le,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Hn=e=>{if(e)return e instanceof Date?e:new Date(e)};var gd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var vd=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},o={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>o.year)return true;if(t.year===o.year){if(t.month>o.month)return true;if(t.month===o.month)return t.date>o.date}return false},yd=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var bt=memo(fd);a();a();var hd=ce({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Wn=hd;function pd(e){let r=T(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=m=>{r.upsert(m),e.onDateSelected?.(m);},g=()=>{e.onDoneClick?.(r.read());},v=m=>{e.onOpenChange?.(m);};return jsxs(D.Root,{hideCloseButton:true,onOpenChange:v,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(D.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(D.Body,{children:jsx(bt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(D.Footer,{children:[jsx(D.ActionTrigger,{children:jsx(Ne,{size:s,fade:.5})}),jsx(D.ActionTrigger,{children:jsx(Wn,{size:s,onClick:g})})]})]})}var Cd=pd;a();function Bd(e){let[r,t]=useState(),o=r?FaAngleUp:FaAngleDown,n=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(D.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(D.Header,{children:"Payment Options"}),jsx(D.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:G.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var Nn=e=>e,VS=e=>Nn({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),HS=()=>Nn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),vt=Bd;a();var Jn=createContext(null);function St(e){let r=e.controller,t=!!r.value?.response,{title:o,message:n}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error"),c={title:b({fontSize:e.titleFontSize||"lg"}),description:b({fontSize:e.descriptionFontSize||"sm",fade:.5})},g=({fontSize:v,lineHeight:m,opacity:h})=>({fontSize:v,lineHeight:m,opacity:h});return jsx(Jn.Provider,{value:{color:i},children:jsxs(D.Root,{controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(D.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:C(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:g(c.title),children:o}),jsx("span",{style:g(c.description),children:n})]})]}),jsxs(D.Footer,{row:true,gap:"md",align:"center",children:[jsx(D.ActionTrigger,{children:jsx(B,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(Od,{...s}):void 0]})]})})}function Od(e){let{color:r}=useContext(Jn);return jsx(B,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var Xn=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});St.tryAgainButton=Xn("Try Again");St.retryButton=Xn("Retry");var xr=St;a();var xt="onPaper[0.1]",Pr=", ";function Md(e){let r=T(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=Gn(),o=T({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(Pr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(g=>({...g,[s]:c}));},i=()=>strictArray(o.read().recipients.split(Pr)),l=async()=>{let{subject:s,body:c,attachments:g}=o.read(),v=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:g});if(typeof v!="object")return;let{error:m,response:h}=v;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(v)),m)return t.show({error:m});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(xr,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:xr.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(Vd,{recipients:i()}):jsx(Ld,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(Hd,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Wd,{defaultValue:o.read().body,readOnly:e.readOnly,onChange:s=>n("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(gt,{attachments:o.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(yt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function Ld(e){let[r,t]=useState(false),o=n=>jsx(p,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Un,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(Pr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(o,{value:"Cc"}),jsx(o,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Vd(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[xt,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(ue,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(Pt,{textToCopy:e.recipients.join(Pr)})]})}function Hd(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[xt,"bottom"],children:[jsx(Un,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(Pt,{textToCopy:e.subject})]})}function Wd(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${C("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:G.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(Pt,{textToCopy:e.defaultValue})})]})}function Un(e){return jsx(U,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[xt,"bottom"],onChange:e.onChange})}function Pt(e){return jsx(Fe,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var $d=Md;a();a();function Nd(e){return jsxs(d,{row:true,gap:"md",children:[jsx(Kn,{onClick:e.onNoClick}),jsx(Yn,{onClick:e.onYesClick})]})}var Bt=Nd;function Ud(e){return jsxs(d,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(Bt,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var Gd=Ud;a();function Yd(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Tt,{value:r})})}):jsx(Kd,{})})}function Kd(){let e=r=>jsx(p,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var qd=["string","number","boolean"];function Dt(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function qn(e){return jsxs(Fragment,{children:[jsx(p,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(n=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),n.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Tt,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(qn,{value:r}):jsx(Dt,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function Tt(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,g=e.value[c],v=()=>qd.includes(typeof g)?jsx(Dt,{value:g}):Array.isArray(g)?jsx(qn,{value:g}):typeof g=="object"?jsx(Tt,{indent:true,value:g}):jsx(Dt,{value:`${g}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(v,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Et=Yd;a();a();a();function tu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...To].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,o=useRef(null),n=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],g=[],v=[],m=h=>strictArray(h).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let h of c){if(g.length+v.length>=t)break;r.includes(h.type)?g.push(h):v.push(h);}isEmpty(g)||e.onAccept?.(g,m(g)),isEmpty(v)||e.onReject?.(v,m(v));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(g=>g.kind==="file").map(g=>g.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let g=new DataTransfer;c.forEach(v=>g.items.add(v)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...b(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:n,accept:r.join(", "),multiple:e.multiple})]})}var Qn=tu;function ri(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(Qn,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(B,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:o,leadingEl:HiUpload,iconSize:n,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var qe=ri({fileClass:"file"}),Kx=ri({fileClass:"receipt",accepts:["img"]});function cu(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let o=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(p,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,n=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(o,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(ue,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(qe,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var du=cu;a();function fu(e){let r=e.authProviders||[...wo.values()];return jsxs(d,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(d,{width:"full",color:"inherit",children:[jsx(p,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(mu,{provider:t,onClick:e.onAuthProviderClick}))})]})}function mu(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(B,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var gu=fu;a();a();var ni={timestamp:Date.now(),status:"info",response:"Hello World!"};function Cu(e){useEffect(()=>{e.initialMessage&&(ni.response=e.initialMessage);},[]);let r=[ni,...e.logs];return jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,o)=>jsx(_u,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function _u(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:C(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(mn,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:C(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Rt=Cu;function ku(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(o=>{let n=Array.isArray(o)?o:"logs"in o?o.logs:null;t(n?sort(n,"timestamp","asc"):[...r,o]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:o,...n})=>jsx(Zo,{item:n,info:o})})}),jsx(Rt,{initialMessage:"Awaiting registration process...",logs:r})]})}var Du=ku;a();function Eu(e){return jsx(U,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var mt=Eu;a();a();function Ru(e){return e.error?jsx(_r,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var zt=Ru;function Iu(e){let r=T(e?.verifyError),[t,o]=useState(e?.defaultStatus||"pending"),n=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return o("success");r.upsert(i.error),o("error");};return jsx(U,{...e,leadingAdornment:jsx(zt,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(vn,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(ht,{onClick:n})})}var Ot=Iu;a();function Lu(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(ue,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(p,{ellipsis:true,text:e.user.name}),jsx(p,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var Vu=Lu;a();function si(e){return r=>{let[t,o]=useState(false);return jsx(B,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:n}=await e.handleOnClick(r);if(n)return console.error(new Error(n.message,{cause:n}));o(true),setTimeout(()=>o(false),3e3);}})}}var Dn=si({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:o}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=o.text),r?.(o.text),{response:"success"})}}),Fe=si({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let o=e?typeof e=="function"?e():e:r?.current?.value;if(!o)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:n}=await copyToClipboard(o);return n?{error:n}:{response:"success"}}});a();function di(e){return r=>jsx(B,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var T5=di(BsPlus),E5=di(BsDash);a();function ui(e){return r=>jsx(B,{...e.defaults,text:e.label,onClick:r.onClick})}var Yn=ui({label:"Yes"}),Kn=ui({label:"No",defaults:{variant:"outline"}});a();var H5=ce({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function ef(e){let r=T(e.defaulValue?.token||""),t=useRef(null),[o,n]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return n(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(Ot,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:o?o.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[o&&jsx(Fe,{textToCopy:o.payload}),jsx(Et,{fullSize:true,json:o?o.payload:void 0})]})]})}var rf=ef;a();a();function yr(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}a();a();a();a();var mi=(k=>(k.white="#FFF",k.black="#000",k.gray="#808080",k.pdf="#F40F02",k.word="#41A5EE",k.excel="#21A366",k.img="#8d481f",k.txt="#8c61a9",k.deepSkyBlue="#00BFFF",k.lightSkyBlue="#87CEFA",k.sendBlue="#0a57d0",k.onSendBlue="#c3dfff",k.book_it="#009688",k.stickyNote="#EFAD03",k.matteBlack="#28282B",k.navyBlue="#000080",k.teal="#008080",k.paper="#ffffff",k.onPaper="#28282B",k.paperVariant="#E6E6E6",k.success="#4BB543",k.hyperlink="#2979ff",k.gold="#d4af37",k.carlsbergGreen="#17B169",k.billsRed="#C60C30",k.info="#1565c0",k.error="#C60C30",k.warning="#f9a825",k.jsonKey="#D56C75",k.string="#59A779",k.number="#D19A5A",k.boolean="#56B6C2",k.jsonBracket="#FFCA1D",k.arrayBracket="#DA68A7",k.delete="#C60C30",k.pdf_table_header="#28282B",k))(mi||{}),ee=mi;a();var vf=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),J=vf;a();a();function pk(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function xk(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function Fk(e,r,t){let[o,n]=useState({}),i=b(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:o,timestamp:new Date().toLocaleTimeString()});},[o]),useEffect(()=>{let s=document.createElement(e),g=(Array.isArray(r.children)?r.children:[r.children]).map(h=>{let S=document.createElement(e);return S.innerHTML=_f.renderToStaticMarkup(h),S});Object.assign(s.style,{...i,visibility:"hidden"}),g.forEach(h=>s.appendChild(h)),l.appendChild(s);let v=getComputedStyle(s),m=Object.keys(i).filter(h=>h in v&&typeof v[h]=="string").map(h=>{let x=v[h];return [h,h==="opacity"?x.toString():x===0?"0px":x]});n(Object.fromEntries(m)),l.removeChild(s);},[r]),{style:o}}a();function Gn(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...o)=>{o[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:o[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}a();a();var At=class extends EventTarget{},Sf=new At,wr=Sf;function Wk(e){let[r,t]=useState(),o=useRef(new Map),n=useRef(false);return useEffect(()=>{let i=l=>{if(o.current.get(e)?.(l),n.current){n.current=false;return}t(l.detail);};return wr.addEventListener(e,i),()=>{wr.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,wr.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}a();function T(e){let r=useRef({current:e,previous:void 0});return {debug:()=>{let t=r.current.previous,o=r.current.current,n=()=>{if(Array.isArray(t)){let l=t;return {from:t,to:o,difference:o.filter((c,g)=>g<l.length?l[g]!==c:false)}}switch(typeof t){case "string":return {from:t,to:o,difference:o.replace(t,"")};case "object":return {from:t,to:o,difference:Object.fromEntries(Object.keys(t).map(l=>{let s=l;if(o[s]!==t[s])return [s,o[s]]}).filter(l=>!!l))};default:throw new Error("Not yet implemented bro!")}},i=250;return console.log(buildArray(i,l=>l===0||l===i?"/":"*").join(""),n()),n()},upsert:t=>{let o=typeof t=="function"?t(r.current.current):t,n=r.current.current;r.current={current:o,previous:n};},read:()=>r.current.current,delete:()=>{r.current=void 0;}}}a();function an(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function Do(){return useContext(Cr)}a();function L(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function nD(e,r){let[t,o]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;o(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{o(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}a();export{gt as AttachmentsButton,ut as AttachmentsDialog,ue as Avatar,Ho as Badge,B as BasicButton,d as BasicDiv,de as BasicImg,Ar as BasicOl,Lr as BasicOption,Le as BasicSelect,p as BasicSpan,Xa as BasicTable,bt as Calendar,Cd as CalendarDialog,Ne as CancelButton,W as Card,Po as Checkbox,ee as ColorResources,Ry as ConfirmationDialog,Fe as CopyButton,J as CssColors,le as CssShapes,se as CssSpacing,Ke as DeleteButton,D as Dialog,Xo as Disclaimer,H5 as DownloadButton,Pc as EditButton,_v as Editable,$d as EmailComposer,gr as EmptyState,zt as ErrorTooltip,Fc as ExpandableButton,Wy as FancyFormDialog,dv as FileDropzone,sh as FileViewer,G as FontSize,qo as Indicator,Zo as ItemInfo,Et as JsonViewer,rf as JwtVerifier,ry as MediaCard,Cs as Menu,ed as MoneyDisplayCard,E5 as NegativeButton,Kr as NextButton,Kn as NoButton,ft as OpenButton,Vc as OptionsButton,Xh as PageSlider,pp as Paper,Dn as PasteButton,Nc as PaymentOptionsButton,vt as PaymentOptionsDialog,du as PictureUploader,De as Popover,T5 as PositiveButton,qr as PreviousButton,dy as ProfileCard,nd as ReceiptCard,Qr as SaveButton,mt as SearchTextField,sp as SegmentedControls,yt as SendButton,tC as Separator,gu as SignInWidget,Qy as SimpleFormDialog,vn as Status,Ep as Stepper,Zr as SubmitButton,mn as Tag,Du as TaskLogger,xr as TaskResultDialog,Rt as Terminal,U as TextField,Yp as Timeline,_r as Tooltip,qe as UploadButton,Kx as UploadReceiptButton,Vu as UserProfile,ht as VerifyButton,Ot as VerifyTextField,Li as WavyUi,Yn as YesButton,Bt as YesNoButtonGroup,Gd as YesOrNoForm,b as applyBasicStyle,VS as bankTransferPaymentOption,dm as borderRadius,am as buildCSS,Cm as computedCssVariable,Wi as convertHexUnitTo256,lm as cssTransition,Nn as definePaymentOption,um as disabledBorderRadius,fm as dragElement,X as ellipsis,cm as flexCenter,yr as getFileIcon,zs as getPaperDim,Gt as getScrollParent,$i as hexToRgba,HS as inAppPaymentOption,Tr as isOverflown,jt as isSpanMultiLine,Hi as isValidHex,gm as nativeEllipsis,mm as noSpaceStyle,pm as remAsPx,Ni as remToPx,C as resolveBasicColor,ze as restrictLineCount,vm as rgbToRgba,ym as screenHasMaxWidth,hm as screenHasMinWidth,sm as solidBorder,Ut as tiledBackground,pk as useAsyncEffect,Fk as useComputedStyle,Gn as useDialogController,Wk as useEventEmitter,T as useManagedRef,an as usePageSliderController,Do as usePopoverContext,xk as usePostRenderEffect,L as useRerender,nD as useSessionStorage};
23
+ translateX(calc(${h} * -5rem))`,filter:`blur(calc(${S} * .5rem))`,boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:typeof v=="function"?jsx(v,{isActive:m===n}):v},m)}),jsx(sn,{inset:"right",disabled:!hasIndex(e.children,n+1),onClick:c})]})})}function sn(e){let r=useContext(cn),t=e.inset==="left"?BsArrowLeft:BsArrowRight,o=e.disabled||r.transitioning;return jsx(d,{fade:o?.5:1,cursor:o?"not-allowed":"pointer",pos:"absolute",centerSelf:"y",centerContent:true,borderColor:r.navBorderColor,padding:r.navPadding??"md",backgroundColor:r.navBackgroundColor||"onSurface",color:r.navIconColor||"surface",corners:r.navCorners??"circle",size:r.navSize,css:{[e.inset]:"1rem",zIndex:2,transition:"all 300ms ease-in-out",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",":hover > *":o?void 0:{animation:"squish 300ms ease-in-out"},":active":o?void 0:{scale:.9,opacity:.75}},onClick:o?void 0:e.onClick,children:jsx(t,{size:r.navIconSize})})}a();a();var br=createContext(null);function Te(e){let r=T(e.open??false),{triggerRerender:t}=L(),o=`--${v4()}`,n=useRef(null),i=useRef(null),l=te__default.cloneElement(e.wrap?jsx("div",{...e.slotProps?.divWrapper,children:e.children}):e.children,{ref:i,popoverTarget:o});if(e.asChild)return e.children;useEffect(()=>{let g=e.placement||"bottom-left",v=["top","right","bottom","left"].includes(g),m=v?{positionArea:g}:$s(e.anchorPoint||"top-left",Ws(g));if(!e.visibleOnScroll){let S=Yt(n.current);S&&S.addEventListener("scroll",x=>{n.current?.hidePopover(),Object.assign(n.current?.style,{transform:`translateX(-${x.target?.scrollLeft}px)`});});}Object.assign(i.current?.style,{anchorName:o});let h={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]];Object.assign(n.current?.style,{position:"absolute",positionAnchor:o,insetArea:e.insetArea,overflow:"hidden",[`margin-${h}`]:e.offset??".25rem",...m,...e.positionFallbacks?{positionTryFallbacks:e.positionFallbacks}:{},...C({minHeight:e.minHeight,maxHeight:e.maxHeight,height:e.height,minWidth:s(e.minWidth),maxWidth:s(e.maxWidth),width:s(e.width,"max-content"),backgroundColor:e.backgroundColor||"surfaceContainer",color:e.color||"onSurface",borderColor:e.borderColor||"onSurface[0.1]",gap:e.gap,padding:e.padding??"md",corners:e.corners??"md",fontSize:e.fontSize,fontWeight:e.fontWeight,spill:e.spill||"auto",backdropBlur:e.backdropBlur,style:{boxShadow:e.boxShadow||"rgba(0, 0, 0, 0.35) 0px 5px 15px",scrollbarWidth:"thin"}})});},[]),useEffect(()=>{e.open&&n.current?.showPopover();let g=e.displayAction||"click";if(n.current?.addEventListener("beforetoggle",v=>{let m=v.newState==="open";m?e.onOpen?.():e.onClose?.(),e.onOpenChange?.(m),r.upsert(m),!m&&e.rerenderOnClose&&t();}),g==="click")i.current?.addEventListener("click",()=>{c(()=>n.current?.togglePopover());});else if(g==="hover"){let v,h=()=>{v&&(v=null),c(()=>n.current?.hidePopover(),"close");};i.current?.addEventListener("mouseover",()=>{c(()=>n.current?.showPopover(),"open");}),i.current?.addEventListener("mouseleave",()=>{e.allowInteractions?v=setTimeout(h,20):h();}),e.allowInteractions&&(n.current?.addEventListener("mouseenter",()=>{v&&clearTimeout(v);}),n.current?.addEventListener("mouseleave",h));}},[]);let s=(g,v)=>g==="match-anchor"?getComputedStyle(i.current)?.width:g??v,c=(g,v)=>{let m=200;typeof e.delay=="number"?m=e.delay:e.delay&&v in e.delay&&(m=e.delay[v]),setTimeout(g,m);};return jsxs(br.Provider,{value:{open:()=>{n.current?.showPopover();},close:()=>{n.current?.hidePopover();},isOpen:()=>r.read()},children:[l,jsx("div",{popover:e.displayAction==="script"?"manual":"auto",id:o,ref:n,className:"popover-transition",children:e.content})]})}var Ws=e=>{let{0:r,1:t}=e?.split("-");return t=t==="left"?"start":t==="right"?"end":t??r,{vertical:`anchor(${r})`,horizontal:`anchor(${t})`}},$s=(e,r)=>{let{0:t,1:o}=e?.split("-");return {[t]:r.vertical,[o]:r.horizontal}};a();function Ep(e){let r=t=>{e.onChange?.(t.value);};return jsxs(SegmentGroup.Root,{size:e.size,width:e.width,defaultValue:e.defaultValue,value:e.value,onValueChange:r,children:[jsx(SegmentGroup.Indicator,{}),e.controls.map(t=>{let o=typeof t=="string"?t:t.value;return jsxs(SegmentGroup.Item,{padding:"3",value:o,children:[jsx(SegmentGroup.ItemText,{children:o}),jsx(SegmentGroup.ItemHiddenInput,{})]},o)})]})}a();function hn(e){return jsx(Tag.Root,{opacity:e.opacity,padding:"1",color:_(e.color),height:"fit-content",flexShrink:0,display:"inline-flex",children:jsx(Tag.Label,{opacity:e.labelOpacity,children:e.label})})}a();function Hp(e){let{height:r,width:t}=Js(e.size),o=e.responsive??true,n={a4:95,a6:80}[e.size.toLowerCase()];return jsx(d,{id:e.id,spill:"hidden",backgroundColor:"paper",color:"onPaper",style:{...e.style,maxHeight:r,height:o?`${n}%`:r,width:o?void 0:t,aspectRatio:"1/sqrt(2)"},children:e.children})}var Js=e=>({a4:{height:"297mm",width:"210mm"},a6:{height:"148mm",width:"105mm"}})[e.toLowerCase()];a();function Cn(e){let r={pending:"gray",success:"carlsbergGreen",error:"error"},t=e.indicatorSize||".3rem";return jsxs(d,{row:true,disableSelection:true,align:"center",gap:"md",corners:"md",padding:"sm",backgroundColor:`${r[e.status]}[0.5]`,style:{zIndex:3},children:[jsx(d,{corners:t,size:t,backgroundColor:r[e.status]}),!e.indicatorOnly&&jsx(p,{style:{fontWeight:500},fontSize:".85rem",color:`${r[e.status]}[0.75]`,text:upperFirst(e.status)})]})}a();function Zp(e){return jsxs(({children:t})=>{let o={...e,paddingLeft:typeof e.indent=="boolean"?"11":e.indent,height:"full",width:"full",gap:"7",overflow:"hidden",style:{backgroundColor:e.showBg?"red":"transparent"},colorPalette:e.colorScheme};return e.value?jsx(Steps.RootProvider,{value:e.value,...o,children:t}):jsx(Steps.Root,{...o,count:e.steps.length,children:t})},{children:[jsx(Steps.List,{opacity:e.nested?.7:1,children:e.steps.map((t,o)=>jsxs(Steps.Item,{index:o,title:t.title,children:[jsxs(Steps.Trigger,{children:[jsx(Steps.Indicator,{children:t.icon&&jsx(Steps.Status,{incomplete:jsx(t.icon,{}),complete:jsx(LuCheck,{})})}),jsx(Steps.Title,{children:t.title})]}),jsx(Steps.Separator,{})]},o))}),jsxs(Stack,{justifyContent:"space-between",height:"full",width:"full",overflow:"hidden",children:[e.steps.map((t,o)=>jsx(Steps.Content,{height:"full",width:"full",index:o,overflow:"hidden",children:typeof t.description=="function"?jsx(t.description,{}):t.description},o)),e.completedel!=="none"&&jsx(Steps.CompletedContent,{height:"full",width:"full",overflow:"hidden",children:e.completedel||"All steps are complete!"}),e.footer?jsx(e.footer,{PrevTrigger:({children:t})=>jsx(Steps.PrevTrigger,{asChild:true,children:t}),NextTrigger:({children:t})=>jsx(Steps.NextTrigger,{asChild:true,children:t})}):jsxs(ButtonGroup,{size:"sm",variant:"outline",children:[jsx(Steps.PrevTrigger,{asChild:true,children:jsx(Button,{children:"Prev"})}),jsx(Steps.NextTrigger,{asChild:true,children:jsx(Button,{children:"Next"})})]})]})]})}a();a();var xn=te.forwardRef(function(r,t){let{showArrow:o,children:n,disabled:i,portalled:l=true,content:s,contentProps:c,portalRef:g,...v}=r;return i?n:jsxs(Tooltip.Root,{...v,children:[jsx(Tooltip.Trigger,{asChild:true,children:n}),jsx(Portal,{disabled:!l,container:g,children:jsx(Tooltip.Positioner,{children:jsxs(Tooltip.Content,{ref:t,...c,children:[o&&jsx(Tooltip.Arrow,{children:jsx(Tooltip.ArrowTip,{})}),s]})})})]})});function Sr(e){if(e.asChild)return e.children;let{padding:r,borderRadius:t,color:o,backgroundColor:n}=C({padding:e.padding||"sm",corners:e.corners||"sm",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"onSurface[0.1]"});return jsx(xn,{positioning:{placement:e.placement},showArrow:e.arrow,openDelay:e.delay?.open,closeDelay:e.delay?.close,content:e.tooltip,contentProps:{padding:r,color:o,borderRadius:t,style:{backdropFilter:"blur(.25rem)"},css:{"--tooltip-bg":n}},children:e.wrapChildren?jsx("span",{style:e.slotProps?.spanWrapper?{...C(e.slotProps.spanWrapper)}:void 0,children:e.children}):e.children})}a();var lt=createContext(null);function rc(e){let r=T([]),t=e.lineSeparatorColor||"onSurface[0.5]",o=Array.isArray(e.children)?e.children:[e.children],n=o.length===1?o:o.map((l,s)=>s===0||!e.rowGap?l:jsxs(Fragment,{children:[jsx("p",{}),jsx(d,{width:"full",align:"center",children:jsx("p",{style:{width:"1px",height:e.rowGap,backgroundColor:_(t)}})}),jsx("p",{}),l]})),i=()=>{if(o.length===1)return "both";let l=[...r.read(),0];if(r.upsert(l),l.length===1)return "first";if(l.length===o.length)return "last"};return jsx(lt.Provider,{value:{register:i,lineSeparatorColor:t},children:jsx(d,{grid:true,width:e.width??"fit-content",gridCols:"auto auto auto",justify:"end",style:{columnGap:e.columnGap||".5rem"},children:n})})}function tc(e){let[r,t]=useState(),{register:o}=useContext(lt),{indicator:n,leadingEl:i,trailingEl:l}=e.styles||{},{0:s,1:c}=Array.isArray(e.children)?e.children:[e.children];useEffect(()=>{let v=o();typeof v=="string"&&t(v);},[r]);let g=v=>r===v||r==="both";return jsxs(Fragment,{children:[jsx(Bn,{disabled:e.disabled,style:{...i,align:i?.align||"end"},children:e.reverse?c:s}),jsxs(d,{align:"center",height:"full",children:[jsx(kn,{hide:g("first")}),jsx(d,{style:{...C({...n||{},size:n?.size??".6rem",corners:n?.corners||"circle",backgroundColor:n?.backgroundColor||"onSurface",centerContent:n?.centerContent??true}),flexShrink:0},children:e.indicator}),jsx(kn,{hide:g("last")})]}),jsx(Bn,{disabled:e.disabled,style:l,children:e.reverse?s:c})]})}function Bn(e){return jsx(d,{size:"full",style:{...C({...e.style||{},fade:e.disabled?.5:e.style?.fade}),justifyContent:"center",flexGrow:1},children:e.children})}function kn(e){let{lineSeparatorColor:r}=useContext(lt);return jsx(d,{width:"1px",height:"full",backgroundColor:r,fade:e.hide?0:1})}var pC={Root:rc,Item:tc};a();function BC(e){let r=()=>jsx(Separator,{flex:"1",variant:e.variant,orientation:e.orientation,size:e.size,color:_(e.color)});return e.label?jsxs(HStack,{children:[["center","right"].includes(e.labelPosition)&&jsx(r,{}),jsx(Text,{flexShrink:"0",color:_(e.labelColor),children:e.label}),["center","left"].includes(e.labelPosition)&&jsx(r,{})]}):jsx(r,{})}a();a();var st=(e,r)=>{let t=o=>!!o.exec(e);if(typeof r!="string")return t(r);switch(r){case "number":return t(/[0-9]/g);case "symbol":case "space":return t(/\s/g);case "letter":return t(/[a-zA-Z]/);case "uppercaseLetter":return t(/[A-Z]/);case "lowercaseLetter":return t(/[a-z]/);case "all":return true;default:return r}};function j(e){let[r,t]=useState(e.defaultValue??""),o=e.value!==void 0,n=e.ref||useRef(null),i=useRef(null),l=e.maxChars??1/0,s="2rem",c=y=>typeof e.indent=="string"?e.indent:e.indent?.[y],g="md",{size:v,...m}=e,h={label:C({...e?.slotProps?.label,fade:e?.slotProps?.label?.fade||.75}),helperText:C({...e?.slotProps?.helperText}),root:C({width:e.width}),input:C({...m,width:"full",padding:{top:g,left:e.leadingContent?c("left")||s:g,right:e.trailingContent||e.showCharCounter?c("right")||s:g,bottom:g},corners:!e.corners&&e.corners!==0?".75rem":e.corners})},S=y=>{n.current.value=y,e.onChange(y,null);};useEffect(()=>{e.showCharCounter&&Object.assign(n.current?.style,{paddingRight:`calc(${getComputedStyle(i.current).width} + 7px)`});},[r,e.value]),useEffect(()=>{let y=b=>{if(e.format!=="currency")return;let P=b;if(P=P.replace(/[^0-9.]/g,"").replace(/\.{2,}/,"").split(".").filter((R,z)=>z<2).join("."),P&&takeLast(P.split(""))[0]!=="."){let R=parseFloat(P);if(!isNaN(R)){let z=new Intl.NumberFormat;S(z.format(R));}}};n.current?.addEventListener?.("beforeinput",b=>{let P=b.data,R=e.format==="currency"?/[0-9.]/:e.allowedChars||"all";R==="all"||Array.isArray(R)&&R.includes("all")||P===null||(!Array.isArray(R)&&!st(P,R)||Array.isArray(R)&&R.some(z=>!st(P,z)))&&b.preventDefault();}),n.current?.addEventListener?.("paste",b=>{y(b.target.value);}),n.current?.addEventListener?.("input",b=>{y(b.target.value);});},[n.current]);let x=y=>{e.onChange?.(y,void 0),e.onPasteClick?.(y);};return jsxs(Field.Root,{required:e.required,disabled:e.disabled,style:h.root,children:[e.label&&jsxs(Field.Label,{style:h.label,children:[e.label," ",jsx(Field.RequiredIndicator,{})]}),jsx(uc,{elementRef:n,useCopy:e.allowCopyText,usePaste:e.allowPasteText,onPaste:x,slotProps:e.slotProps,children:jsx(InputGroup,{startElement:e.leadingContent,startElementProps:e.slotProps?.leadingContent||{padding:"2"},endElement:e.showCharCounter?jsx(p,{ref:i,fade:.5,fontSize:e.slotProps?.charCounter?.fontSize||(n.current?getComputedStyle(n.current).fontSize:void 0),text:`${(e.value??r).length}/${l}`}):e.trailingContent,endElementProps:e.slotProps?.trailingContent||{padding:"1"},startAddon:e.leadingAdornment,startAddonProps:{...e.slotProps?.leadingAdornment,padding:e.slotProps?.leadingAdornment?.padding||"1",borderRadius:"xl"},endAddon:e.trailingAdornment,endAddonProps:{...e.slotProps?.trailingAdornment,padding:e.slotProps?.trailingAdornment?.padding||"1",borderRadius:"xl"},gapX:".5rem",children:jsx(Input,{maxLength:e.maxChars,readOnly:e.readOnly,ref:e.pureRef||n,width:"full",autoFocus:e.autoFocus,size:v,zIndex:1,variant:e.variant,onKeyDown:y=>{y.key==="Enter"?e.onEnterKeyPressed?.():y.key==="Escape"&&e.onEscapeKeyPressed?.();},value:e.value??r,overflow:"hidden",style:h.input,onFocus:e.onFocus,onBlur:e.onBlur,css:{"--focus-color":_(e.focusColor||"primary")},_placeholder:e.slotProps?.placeholder?.color?{color:_(e.slotProps.placeholder.color)}:void 0,onChange:y=>{let b=y.currentTarget.value;e.onChange?.(b,y),o||t(b);},placeholder:e.placeholder})})}),e.helperText&&jsx(Field.HelperText,{style:h.helperText,children:e.helperText})]})}function uc(e){return !e.useCopy&&!e.usePaste?e.children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:de.sm,width:"100%"},children:[e.children,e.useCopy&&jsx(ze,{iconOnly:e.slotProps?.copyButton?.iconOnly,inputRef:e.elementRef}),e.usePaste&&jsx(Fn,{iconOnly:e.slotProps?.pasteButton?.iconOnly,inputRef:e.elementRef,onClick:e.onPaste})]})}a();function Yo(e){let[r,t]=useState(false),n={error:BsExclamationCircle,info:BsInfoCircle,warning:BsExclamationTriangle}[e.severity],i=e.iconSize||"1rem",l=e.gap||"md",s=jsx(n,{size:i,style:{flexShrink:0}});return jsxs(d,{row:e.hideLabel,top:e.top,left:e.left,right:e.right,bottom:e.bottom,pos:e.pos,width:e.width,gap:e.hideLabel?l:void 0,corners:"md",backgroundColor:_(e.severity+"[0.5]",{preference:"res"}),color:"white",padding:"md",align:r||!e.hideLabel?"start":"center",style:{boxShadow:e.disableShadow?"none":"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[e.hideLabel?s:jsxs(d,{row:true,gap:l,align:"center",children:[s,jsx(p,{fontWeight:"bold",fontSize:"xs",text:(e.facade?.(e.severity)||e.severity).toUpperCase()})]}),jsx("span",{ref:c=>{c&&t(Kt(c));},style:C({fontSize:e.fontSize||"sm",fade:e.hideLabel?1:.75,style:{paddingLeft:e.hideLabel?void 0:`calc(${i} + ${C({gap:l}).gap})`}}),children:e.message})]})}a();a();a();a();function zn(e){return {FlyLeavingBox:yc}[e]}var ft=createContext(null);function Cc(e){let r=T(e.attachments||[]),{triggerRerender:t}=L(),o=()=>{e.onClose?.(),e.rerenderOnClose&&t();};return jsx(ft.Provider,{value:{...e,attachmentsEventListener:(n,i)=>{let l=r.read();n==="add"&&(l=[...l,i]),n==="delete"&&(l=l.filter(({uid:s})=>s!==i.uid)),r.upsert(l),e.onAttachmentsChange?.(l),n==="delete"&&isEmpty(l)&&t(),e.attachmentsEventListener?.(n,i);},attachments:r.read(),rerender:t},children:jsxs(w.Root,{onClose:o,unmountOnExit:e.unmountOnExit,maxHeight:"30rem",width:"27rem",scrollBehavior:"inside",triggerElement:e.triggerElement,controller:e.controller,spill:"hidden",children:[jsx(w.Header,{style:{flexShrink:0},fontSize:"xxl",children:"Attachments"}),jsx(w.Body,{size:"full",padding:"sm",spill:"hidden",children:isEmpty(r.read())?jsx(Sc,{}):jsx(_c,{})})]})})}function _c(){let e=useContext(ft),r=T(void 0),[t,o]=useState(""),[n,i]=useState(e?.attachments||[]);useEffect(()=>{r.upsert(true);},[]),useEffect(()=>{r.read()===true&&r.upsert(false);});let l=t.trim()?n.filter(({name:m})=>m.toLowerCase().includes(t.toLowerCase())):n,s=isEmpty(l)&&!!t.trim(),c=m=>{i(h=>h.filter(({uid:S})=>S!==m.uid)),e?.onAttachmentDeleted?.(m),e?.attachmentsEventListener?.("delete",m);},g=(m,h)=>{let S=sanitizeLocalFile(h[0]);i([...n,S]),e?.onAttachmentAdded?.(S),e?.attachmentsEventListener("add",S);},v=m=>{e?.onOpenAttachment?.(m),e?.attachmentsEventListener?.("open",m);};return jsxs(Fragment,{children:[jsx(vt,{width:"full",value:t,onChange:o}),jsx(d,{size:"full",maxHeight:"10rem",spill:"auto",padding:s?"lg":void 0,centerContent:s,children:s?jsx("span",{style:{opacity:.75},children:`"${t}" not found`}):l.map((m,h,S)=>jsx(bc,{scrollIntoView:r.read()===false&&h===S.length-1,value:m,hideDeleteButton:e.hideDeleteButton,hideOpenAttachmentButton:e.hideOpenAttachmentButton,disableDelete:typeof e?.deleteDisabled=="function"?e.deleteDisabled(m):e?.deleteDisabled,disableOpen:typeof e?.openDisabled=="function"?e.openDisabled(m):e?.openDisabled,onDelete:c,onOpen:v},m.uid))}),!e.hideUploadButton&&jsx(Qe,{getFilePath:e?.getFilePath,disabled:e?.uploadDisabled,fileClass:"attachment",size:"xs",width:"full",onAccept:g})]})}function bc(e){let{typeAlias:r,path:t,name:o,sizeInBytes:n}=e.value,i=pr(r);return jsxs(W.Root,{corners:"md",width:"full",sx:{cursor:"default",overflow:"hidden",transition:"all 300ms linear",":hover":{backgroundColor:"outline[0.1]"}},children:[jsx(W.LeadingAddOn,{size:"2rem",aspectRatio:1,color:r,padding:"sm",corners:"md",backgroundColor:"onSurface[0.1]",style:{flexShrink:0},children:r==="img"&&t.trim()?jsx(fe,{src:t.trim(),size:"full",corners:"md",spill:"hidden"}):jsx(i.outlined,{size:"100%"})}),jsxs(W.Content,{gap:"sm",width:"full",children:[jsx(W.Item,{truncateStyle:"ellipsis",value:o}),jsxs(d,{ref:l=>l&&e.scrollIntoView&&l.scrollIntoView({behavior:"instant"}),fade:.7,row:true,align:"center",gap:"sm",fontSize:"xxs",children:[jsx(p,{fontWeight:"bold",text:r.toUpperCase()}),jsx(d,{size:".25rem",corners:"circle",backgroundColor:"onSurface"}),jsx(p,{fade:.5,text:format("file-size",n)})]})]}),(!e.hideDeleteButton||!e.hideOpenAttachmentButton)&&jsxs(W.TrailingAddOn,{row:true,gap:"sm",align:"center",children:[!e.hideOpenAttachmentButton&&jsx(gt,{iconOnly:true,disabled:e.disableOpen,borderColor:"transparent",size:"sm",onClick:()=>e.onOpen?.(e.value)}),!e.hideDeleteButton&&jsx(Ze,{iconOnly:true,disabled:e.disableDelete,backgroundColor:"transparent",color:"delete",size:"sm",onClick:()=>e.onDelete?.(e.value)})]})]})}function Sc(){let e=useContext(ft);return jsxs(yr.Root,{children:[jsx(yr.Indicator,{size:"7rem",disableFade:true,element:jsx(fe,{spill:"hidden",size:"full",src:zn("FlyLeavingBox")})}),jsx(yr.Content,{title:"Attachments not found",description:"Upload an attachment and it will appear here."}),!e.hideUploadButton&&jsx(Qe,{disabled:e.uploadDisabled,getFilePath:e.getFilePath,fileClass:"attachment",backgroundColor:"secondaryContainer",color:"onSecondaryContainer",accepts:e.accepts,onAccept:(r,t)=>{t.forEach(o=>{e?.attachmentsEventListener?.("add",sanitizeLocalFile(o));}),e.rerender();}})]})}var mt=Cc;function Bc(e){let r=T(Array.isArray(e.attachments)?e.attachments:[]),{triggerRerender:t}=L(),o=n=>{r.upsert(n);};return jsx(Sr,{tooltip:"Attachments",placement:"right",children:jsx(Jo,{circleChild:true,asChild:!e.attachments,badge:jsx(rn,{content:typeof e.attachments=="number"?e.attachments:r.read().length}),children:jsx(kc,{asChild:!Array.isArray(e.attachments),attachments:r.read(),onAttachmentsChange:o,onClose:t,...e.slotProps?.attachmentsDialog,children:jsxs(d,{row:true,gap:"xs",fontSize:"xs",color:"onPaper",align:"center",corners:e.corners||"md",padding:"md",clickable:true,backgroundColor:"onPaper[0.1]",onClick:e.onClick,children:[jsx(BsPaperclip,{size:"1rem"}),!e.iconOnly&&"Attachments"]})})})})}function kc(e){let{asChild:r,children:t,unmountOnExit:o,onAttachmentsChange:n,onClose:i,...l}=e;return r?t:jsx(mt,{...l,unmountOnExit:o,triggerElement:t,onAttachmentsChange:n,onClose:i})}var yt=Bc;a();var Dc=ue({preset:{text:"Cancel",leadingEl:null,trailingEl:null},optional:{backgroundColor:"transparent",color:"onSurface",fade:.75}}),Xe=Dc;a();function Fc(e){return jsx(B,{disabled:e.disabled,size:e.size,corners:e.corners,gap:e.gap,iconSize:e.iconSize,fontSize:e.fontSize,leadingEl:!e.iconVariant||e.iconVariant==="outlined"?BsTrash:BsTrashFill,backgroundColor:e.backgroundColor||"delete",color:e.color||"white",text:e.iconOnly?void 0:"Delete",onClick:e.onClick})}var Ze=Fc;a();function Oc(e){let{iconOnly:r,...t}=e;return jsx(B,{...t,leadingEl:LuPencilLine,text:r?void 0:"Edit",backgroundColor:e.backgroundColor||"transparent",borderColor:e.borderColor||"onSurface[0.25]",color:e.color||"onSurface",corners:e.corners||"sm"})}var Ic=Oc;a();function Wc(e){let r=T(e.initialState==="expanded"),t=e.icon||"chevron",o=t==="chevron"?BsChevronBarExpand:BsArrowsAngleExpand,n=t==="chevron"?BsChevronBarContract:BsArrowsAngleContract,i=r.read()?n:o;return jsx(d,{clickable:true,onClick:()=>{r.upsert(s=>(s?e.onContract():e.onExpand(),!s));},children:jsx(i,{})})}var $c=Wc;a();function Nc(e){return jsx(B,{disabled:e.disabled,text:"Next",backgroundColor:"tertiaryContainer",color:"onTertiaryContainer",onClick:e.onClick})}var Zr=Nc;a();function Uc(e){return jsx(B,{disabled:e.disabled,leadingEl:IoOpenOutline,size:e.size,corners:e.corners,iconSize:e.iconSize,fontSize:e.fontSize,borderColor:e.borderColor||"onSurface[0.1]",backgroundColor:e.backgroundColor||"transparent",color:e.color||"onSurface",text:e.iconOnly?void 0:"Open",onClick:e.onClick})}var gt=Uc;a();function Yc(e){return jsx(B,{disabled:e.disabled,leadingEl:MdMoreVert,size:e.size,borderColor:e.borderColor||"onSurface[0.1]",color:e.color||"onSurface",backgroundColor:e.backgroundColor||"transparent",iconSize:e.iconSize||"sm",text:e.iconOnly?void 0:"Options",onClick:e.onClick})}var Kc=Yc;a();function Qc(e){let r=jsx(B,{disabled:e.disabled,width:e.width,backgroundColor:e.backgroundColor||"blue",color:e.color||"white",fontSize:e.fontSize||"xs",iconSize:e.iconSize||"sm",leadingEl:BsCreditCard2FrontFill,text:"Payment options",onClick:e.onClick});return e.options?jsx(ht,{triggerElement:r,options:e.options}):r}var ed=Qc;a();function rd(e){return jsx(B,{disabled:e.disabled,border:"onSurface[0.15]",color:"onSurface",backgroundColor:"transparent",text:"Previous",onClick:e.onClick})}var Qr=rd;a();function nd(e){return jsx(B,{async:true,disabled:e.disabled,size:e.size,color:"white[0.85]",spinnerColor:"gray",trailingEl:jsx(IoMdSend,{}),backgroundColor:"sendBlue",text:e.iconOnly?void 0:"Send",onClick:e.onClick,corners:"xl"})}var pt=nd;a();function id(e){return jsx(B,{async:true,disabled:e.disabled,text:`Submit ${e.class||""}`.trim(),onClick:e.onClick})}var et=id;a();function sd(e){return jsx(B,{padding:"sm",gap:"sm",size:"xs",leadingEl:jsx(MdVerifiedUser,{}),backgroundColor:"primaryContainer",color:"onPrimaryContainer",text:"Verify",onClick:e.onClick})}var Ct=sd;a();function dd(e){let r="rgba(0, 0, 0, 0.35) 0px 5px 15px",t=e.currency||"JMD";return jsxs(d,{width:e.width,gap:e.gap||"md",padding:"1.5rem",color:e.color||"surface",corners:e.corners||"lg",style:{boxShadow:r,background:Gt({backgroundColor:e.backgroundColor||"onSurface",borderColor:e.wireColor||"surface[0.25]",tileSize:"1.5rem"})},children:[jsxs(d,{gap:"sm",color:"inherit",children:[e.label&&jsx(p,{fade:.75,fontSize:e.slotProps?.label?.fontSize||"sm",text:e.label,color:"inherit"}),jsxs(d,{row:true,align:"end",gap:"sm",children:[jsx(p,{fontWeight:"bold",fontSize:e.slotProps?.fee?.fontSize||"xl",text:format("money",e.amount,{truncate:typeof e.truncateFee=="boolean"?e.truncateFee:e.truncateFee?.(e.amount)})}),jsx(p,{fontWeight:"bold",fade:.5,fontSize:e.slotProps?.currency?.fontSize||"sm",text:t})]})]}),e.children]})}var ud=dd;a();function gd(e){return jsxs(W.Root,{backgroundColor:e.backgroundColor||"onSurface",color:e.color||"surface",width:e.width,maxWidth:e.maxWidth,minWidth:e.minWidth,corners:e.corners||"lg",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(W.LeadingAddOn,{size:"2rem",padding:"sm",centerContent:true,corners:"md",backgroundColor:e.indicatorBackgroundColor||"surface[0.1]",style:{flexShrink:0},children:e.receiptPath?jsx(fe,{corners:"md",src:e.receiptPath,size:"full",spill:"hidden"}):jsx(TfiReceipt,{size:"100%"})}),jsxs(W.Content,{width:"full",gap:"xs",children:[jsx(W.Label,{value:"Your receipt",fade:.75,truncateStyle:"ellipsis"}),jsx(W.Item,{value:e.receiptName||(e.receiptPath?inferFilename(e.receiptPath):"unknown"),truncateStyle:"ellipsis"})]}),!e.hideDeleteButton&&jsx(W.TrailingAddOn,{children:jsx(Ze,{iconOnly:true,iconVariant:e.deleteIconVariant,iconSize:e.deleteButtonSize,backgroundColor:"transparent",color:"delete",onClick:e.onDeleteClick})})]})}var vd=gd;a();function xd(e){let[r,t]=useState(e.selectedDate||new Date),o=T(r),n=e.minDate==="today"?new Date:Jn(e.minDate)||new Date("Jan 1, 1920"),i=e.maxDate==="today"?new Date:!e.maxDate||e.maxDate==="end-of-year"?Bd():Jn(e.maxDate),l=m=>{t(m),e.onDateSelected?.(m);},s=m=>m.toDateString()===r.toDateString(),c=m=>m.toDateString()===new Date().toDateString(),g=m=>{let h=o.read();return h.getMonth()===m.getMonth()&&wd(m.getDate(),h.getMonth())},v=m=>o.upsert(m);return jsx(Cd,{inline:true,required:e.required,allowSameDay:e.allowSameDay,minDate:n,maxDate:i,onMonthChange:v,onYearChange:v,renderCustomHeader:m=>jsx(Pd,{...m,minDate:n,maxDate:i}),form:e.formId,selected:r,onChange:l,calendarClassName:"calendar",weekDayClassName:()=>"calendar-week-day",dayClassName:m=>["calendar-date",s(m)?"selected":"unselected",c(m)?"today":"",g(m)?"":"out-of-bounds",kd(m,i)?"excluded":""].join(" ")})}function Pd(e){let r=["January","February","March","April","May","June","July","August","September","October","November","December"],t=r.filter((c,g)=>{let v=e.date.getFullYear();return v===e.minDate.getFullYear()?g>=e.minDate.getMonth():v===e.maxDate.getFullYear()?g<=e.maxDate.getMonth():true}),o=r[e.date.getMonth()],n=c=>{e.changeMonth(r.findIndex(g=>g===c));},i=c=>{e.changeYear(parseInt(c));},l=()=>range(e.minDate.getFullYear(),e.maxDate.getFullYear()+1),s=c=>["calendar-chevron","calendar-nav",c?"disabled":""].join(" ");return jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",padding:["md","bottom"],children:[jsx(IoChevronBack,{className:s(e.prevMonthButtonDisabled),onClick:e.prevMonthButtonDisabled?void 0:e.decreaseMonth}),jsxs(d,{row:true,align:"center",gap:"md",children:[jsx(Nn,{label:o,isSelected:c=>o===c,options:t.map(c=>({value:c})),onOptionClick:n}),jsx(Nn,{label:`${e.date.getFullYear()}`,isSelected:c=>`${e.date.getFullYear()}`===c,options:l().map(c=>({value:c.toString()})).toReversed(),onOptionClick:i})]}),jsx(IoChevronForward,{className:s(e.nextMonthButtonDisabled),onClick:e.nextMonthButtonDisabled?void 0:e.increaseMonth})]})}function Nn(e){return jsx(He,{isSelected:({value:r})=>e.isSelected(r),onOptionClick:({value:r})=>e.onOptionClick(r),options:e.options,maxHeight:"10rem",children:jsxs("div",{style:{display:"inline-flex",gap:".25rem",alignItems:"center",cursor:"pointer",borderRadius:".5rem",fontSize:"1.1rem",fontWeight:"bold"},children:[jsx("span",{style:{},children:e.label}),jsx(IoChevronDown,{className:"calendar-chevron"})]})})}var Jn=e=>{if(e)return e instanceof Date?e:new Date(e)};var Bd=()=>{let e=new Date;return e.setMonth(11),e.setDate(31),e};var kd=(e,r)=>{let t={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},o={year:r.getFullYear(),month:r.getMonth(),date:r.getDate()};if(t.year>o.year)return true;if(t.year===o.year){if(t.month>o.month)return true;if(t.month===o.month)return t.date>o.date}return false},wd=(e,r)=>{let t=new Date;return t.setMonth(r),t.setDate(e),t.getMonth()===r};var xt=memo(xd);a();a();var Dd=ue({preset:{text:"Done"},optional:{backgroundColor:"onSurface",color:"surface"}}),Xn=Dd;function Td(e){let r=T(null),{controller:t,triggerElement:o,backdropBlur:n,backgroundColor:i,...l}=e,s=e.actionButtonSize||"xs",c=m=>{r.upsert(m),e.onDateSelected?.(m);},g=()=>{let m=r.read();m&&e.onDoneClick?.(m);},v=m=>{e.onOpenChange?.(m);};return jsxs(w.Root,{hideCloseButton:true,onOpenChange:v,width:"max-content",controller:t,triggerElement:o,backgroundColor:i||"surface[0.25]",backdropBlur:n||".5rem",children:[e.title&&jsx(w.Header,{fontSize:e.titleFontSize,children:e.title}),jsx(w.Body,{children:jsx(xt,{...l,selectedDate:e.selectedDate||r.read(),onDateSelected:c})}),jsxs(w.Footer,{children:[jsx(w.ActionTrigger,{children:jsx(Xe,{size:s,fade:.5})}),jsx(w.ActionTrigger,{children:jsx(Xn,{size:s,onClick:g})})]})]})}var Ed=Td;a();function Ad(e){let[r,t]=useState(),o=r?FaAngleUp:FaAngleDown,n=i=>{if(i.content)return typeof i.content=="string"?jsx("span",{children:i.content}):jsx(d,{fade:.75,padding:["md",["left","right","bottom"]],fontSize:"xs",children:Object.keys(i.content).map(l=>jsxs("span",{children:[jsxs("strong",{children:[l,":"]}),"\xA0",i.content[l]]}))})};return jsxs(w.Root,{triggerElement:e.triggerElement,controller:e.controller,width:"22rem",children:[jsx(w.Header,{children:"Payment Options"}),jsx(w.Body,{gap:"sm",width:"full",children:e.options.map((i,l)=>{let s=i.variables?i?.["pre-element"]?.(i.variables):void 0,c=i.variables?i?.["post-element"]?.(i.variables):void 0;return jsxs(Fragment,{children:[s,jsxs(d,{width:"full",css:{backgroundColor:r?.index===l?"onSurface[0.1]":void 0},corners:"md",asChildren:!i.dropDownContent,children:[jsxs(d,{row:true,gap:"md",width:"full",align:"center",fade:i.disabled?.5:1,cursor:i.disabled?"not-allowed":"pointer",padding:"md",corners:"md",css:{transition:"all 300ms linear",":hover":i.disabled||r?.index===l?void 0:{backgroundColor:"onSurface[0.1]"}},onClick:()=>{i.onClick?.(i.variables),i.dropDownContent&&t(r?void 0:{index:l});},children:[jsx(i.icon,{size:"1.5rem"}),jsxs(d,{asChildren:!i.description,width:"full",children:[jsx(p,{width:"full",fontSize:"sm",text:i.label}),i.description&&jsx("span",{children:i.description,style:{opacity:.75,fontSize:G.xs}})]}),i.dropDownContent&&jsx(o,{})]}),i.dropDownContent&&r?.index===l&&jsx(n,{content:i.dropDownContent})]}),c]})})})]})}var jn=e=>e,cx=e=>jn({icon:RiBankFill,label:"Bank Transfer",dropDownContent:{"Name On Account":e.accountName,Bank:e.bank,"Account type":e.accountType,"Account #":`${e.accountNo}`,"Transit #":`${e.transitNo}`,Branch:e.branch,"Transfer currency":e.transferCurrency}}),dx=()=>jn({icon:RiSecurePaymentFill,label:"In App Payment",disabled:true,variables:{}}),ht=Ad;a();var Gn=createContext(null);function Pt(e){let r=e.controller,t=!!r.value?.response,{title:o,message:n}=r.value?.response||r.value?.error||{},i=t?"carlsbergGreen":"billsRed",l=(()=>{if(r?.value)return !e.indicator||e.indicator==="normal"?t?BsCheck2Circle:IoWarningOutline:e.indicator==="mail"?t?RiMailSendLine:RiMailCloseLine:e.indicator(t?"success":"error")})(),s=e.actionButton?.(t?"succes":"error"),c={title:C({fontSize:e.titleFontSize||"lg"}),description:C({fontSize:e.descriptionFontSize||"sm",fade:.5})},g=({fontSize:v,lineHeight:m,opacity:h})=>({fontSize:v,lineHeight:m,opacity:h});return jsx(Gn.Provider,{value:{color:i},children:jsxs(w.Root,{controller:r,width:e.width,minWidth:e.minWidth,maxWidth:e.maxWidth??"25rem",gap:"sm",unmountOnExit:e.unmountOnExit,borderColor:e.disableColorIndicator?void 0:[i,"left"],children:[jsxs(w.Body,{grid:true,gridCols:"auto 1fr",gap:"lg",children:[jsx(l,{color:_(i),size:typeof e.indicatorSize=="function"?e.indicatorSize(t?"success":"error"):e.indicatorSize??"2.75rem"}),jsxs(d,{width:"full",gap:"sm",spill:"hidden",padding:["md","top"],children:[jsx("span",{style:g(c.title),children:o}),jsx("span",{style:g(c.description),children:n})]})]}),jsxs(w.Footer,{row:true,gap:"md",align:"center",children:[jsx(w.ActionTrigger,{children:jsx(B,{size:"xs",backgroundColor:s?"transparent":"onSurface[0.1]",color:"onSurface[0.75]",text:"Dismiss",onClick:r.hide})}),s?jsx(Xd,{...s}):void 0]})]})})}function Xd(e){let{color:r}=useContext(Gn);return jsx(B,{async:e.async,disabled:e.disabled,backgroundColor:r,leadingEl:e.leadingIcon,color:"white",size:"xs",trailingEl:e.trailingIcon,text:e.label,onClick:e.onClick})}var Yn=e=>r=>({disabled:r.disabled,async:true,label:e,leadingIcon:GrRotateLeft,onClick:r.onClick});Pt.tryAgainButton=Yn("Try Again");Pt.retryButton=Yn("Retry");var Br=Pt;a();var Bt="onPaper[0.1]",kr=", ";function Gd(e){let r=T(typeof e.disableSend=="boolean"?e.disableSend:!!e.onSendClick),t=qn(),o=T({subject:e.subject??"",body:e.body||"",recipients:e.recipients?.join?.(kr)??"",attachments:e.attachments||[]}),n=(s,c)=>{o.upsert(g=>({...g,[s]:c}));},i=()=>strictArray(o.read().recipients.split(kr)),l=async()=>{let{subject:s,body:c,attachments:g}=o.read(),v=await e.onSendClick({subject:s,body:{text:c,html:e.bodyToHtml?.(c)},recipients:i(),attachments:g});if(typeof v!="object")return;let{error:m,response:h}=v;if(typeof e.disableSend=="function"&&r.upsert(e.disableSend(v)),m)return t.show({error:m});h!=="success"?t.show({response:h}):t.show({response:{title:"Successfully sent email!",message:"Your email was successfully sent to the intended recipients."}});};return jsxs(d,{height:e.height||"15rem",width:e.width||"22rem",backgroundColor:"paper",color:"onPaper",corners:"md",padding:"md",spill:"hidden",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px"},children:[jsx(Br,{unmountOnExit:true,disableColorIndicator:e.slotProps?.taskResultDialog?.disableColorIndicator,controller:t,indicator:"mail",actionButton:s=>s==="succes"?void 0:Br.tryAgainButton({disabled:r.read(),onClick:l})}),e.readOnly&&o.read().recipients?jsx(Kd,{recipients:i()}):jsx(Yd,{readOnly:e.readOnly,recipients:i(),onChange:s=>n("recipients",s)}),jsx(qd,{subject:o.read().subject,readOnly:e.readOnly,onChange:s=>n("subject",s)}),jsxs(d,{size:"full",gap:"sm",spill:"hidden",children:[jsx(Zd,{defaultValue:o.read().body,readOnly:e.readOnly,onChange:s=>n("body",s)}),jsxs(d,{width:"full",row:true,align:"center",justify:"space-between",gap:"md",children:[jsx(yt,{attachments:o.read().attachments,corners:"lg",slotProps:{attachmentsDialog:{...e.slotProps?.attachmentsDialog,unmountOnExit:true,uploadDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.uploadDisabled,deleteDisabled:e.readOnly||e.slotProps?.attachmentsDialog?.deleteDisabled}}}),jsx(pt,{size:"2xs",disabled:r.read(),onClick:l})]})]})]})}function Yd(e){let[r,t]=useState(false),o=n=>jsx(p,{text:n.value,cursor:"not-allowed",sx:{":hover":{textDecoration:"underline"}}});return jsx(Kn,{readOnly:e.readOnly,placeholder:"Recipients",defaultValue:e.recipients.join(kr),onFocus:e.readOnly?void 0:()=>t(true),onBlur:e.readOnly?void 0:()=>t(false),autoFocus:r,leadingContent:r?jsx(p,{fontSize:"xs",text:"To:"}):void 0,trailingContent:jsxs(d,{row:true,gap:"sm",fontSize:"xs",children:[jsx(o,{value:"Cc"}),jsx(o,{value:"Bcc"})]}),indent:{right:"3rem"},onChange:e.onChange})}function Kd(e){return jsxs(d,{width:"full",grid:true,gridCols:"1fr auto",gap:"md",justify:"space-between",borderColor:[Bt,"bottom"],children:[jsx(d,{row:true,width:"full",gap:"md",spill:"hidden",padding:["sm","bottom"],children:e.recipients.map(r=>jsxs(d,{row:true,align:"center",gap:"sm",fontSize:"xs",color:"onPaper",borderColor:"onPaper[0.1]",padding:"xs",corners:"xl",spill:"hidden",children:[jsx(me,{size:"2xs",backgroundColor:"sendBlue[0.25]",color:"sendBlue"}),jsx(p,{ellipsis:true,text:r})]}))}),jsx(kt,{textToCopy:e.recipients.join(kr)})]})}function qd(e){let r=!!(e.readOnly&&e.subject);return jsxs(d,{row:true,width:"full",gap:"md",justify:"space-between",align:"center",padding:["xs",["top","bottom"]],asChildren:!r,borderColor:[Bt,"bottom"],children:[jsx(Kn,{disableSepColor:r,placeholder:"Subject",defaultValue:e.subject,readOnly:e.readOnly,onChange:e.onChange}),r&&jsx(kt,{textToCopy:e.subject})]})}function Zd(e){let r=!!(e.defaultValue&&e.readOnly);return jsxs(d,{pos:"relative",size:"full",asChildren:!r,children:[jsx("textarea",{defaultValue:e.defaultValue,readOnly:e.readOnly,style:{position:r?"relative":void 0,scrollbarColor:`${_("onPaper")} transparent`,padding:".6rem",width:"100%",height:"100%",backgroundColor:"transparent",outline:"none",resize:"none",fontSize:G.xs,zIndex:1,flexShrink:r?0:1},onChange:t=>e.onChange(t.target.value)}),r&&jsx(d,{pos:"absolute",top:"72.5%",left:"85%",style:{zIndex:2},children:jsx(kt,{textToCopy:e.defaultValue})})]})}function Kn(e){return jsx(j,{size:"xs",readOnly:e.readOnly,corners:0,defaultValue:e.defaultValue,autoFocus:e.autoFocus,focusColor:"transparent",onFocus:e.onFocus,onBlur:e.onBlur,indent:e.indent,placeholder:e.placeholder,leadingContent:e.leadingContent,trailingContent:e.trailingContent,borderColor:e.disableSepColor?"transparent":[Bt,"bottom"],onChange:e.onChange})}function kt(e){return jsx(ze,{iconOnly:true,iconSize:"xs",textToCopy:e.textToCopy,backgroundColor:"onPaper[0.1]",color:"onPaper",borderColor:"onPaper[0.25]"})}var Qd=Gd;a();a();function eu(e){return jsxs(d,{row:true,gap:"md",children:[jsx(ei,{onClick:e.onNoClick}),jsx(Qn,{onClick:e.onYesClick})]})}var wt=eu;function ou(e){return jsxs(d,{centerContent:true,size:"full",gap:"md",children:[e.icon&&jsx(e.icon,{opacity:.15,size:"5rem"}),jsx(Text,{fontSize:"1.5rem",opacity:.75,children:e.question}),jsx(wt,{onNoClick:()=>{e.onNoClick?.(),e.onOptionClick?.("no");},onYesClick:()=>{e.onYesClick?.(),e?.onOptionClick?.("yes");}})]})}var nu=ou;a();function au(e){let r=e.json?JSON.parse(e.json):void 0;return jsx(d,{size:e.fullSize?"full":void 0,height:e.height||"25rem",width:e.width||"35rem",pos:"relative",centerContent:!e.json,padding:"lg",corners:"md",borderColor:"outlineVariant[0.25]",style:{overflow:"auto",backgroundImage:"radial-gradient(circle at 1px 1px, rgba(255,255,255, .1) 1px, transparent 0)",backgroundSize:"20px 20px"},children:e.json?jsx("pre",{style:{width:"100%"},children:jsx("code",{children:jsx(Ft,{value:r})})}):jsx(lu,{})})}function lu(){let e=r=>jsx(p,{fontSize:"2rem",color:"jsonBracket",text:r.value});return jsx(d,{centerContent:true,corners:"md",gap:"md",padding:"xl",children:jsx("pre",{children:jsx("code",{children:jsxs("span",{style:{fontSize:"1.5rem"},children:[jsx(e,{value:"{ "}),jsx(p,{color:"jsonKey",text:'"JSON"'}),":",jsx(p,{color:"string",text:'"Viewer"'}),jsx(e,{value:" }"})]})})})})}var su=["string","number","boolean"];function Tt(e){let r=(()=>{let t=typeof e.value;if(t==="string")return "string";if(t==="number")return "number";if(t==="boolean")return "boolean"})();return jsx(p,{color:r,text:typeof e.value=="string"?`"${e.value}"`:`${e.value}`})}function ri(e){return jsxs(Fragment,{children:[jsx(p,{width:"full",color:"arrayBracket",text:"["}),e.value.map((r,t)=>jsx(n=>{let i=e.value.some(l=>typeof l=="object");return jsxs(Fragment,{children:[i&&jsx("br",{}),n.children,t===e.value.length-1?"":", ",i&&t===e.value.length-1&&jsx("br",{})]})},{children:typeof r=="object"?jsx(Ft,{indent:true,indentInitialBracket:true,value:r}):Array.isArray(r)?jsx(ri,{value:r}):jsx(Tt,{value:r})})),jsx(p,{color:"arrayBracket",text:"]"})]})}function Ft(e){let r="1rem",t=e.indentMultiplier||2,o=e.indent?`calc(${r} * ${t})`:r,n=`calc(${o} / ${t})`;return jsxs(Fragment,{children:[jsx(p,{style:{paddingLeft:e.indentInitialBracket?n:void 0},color:"jsonBracket",text:"{"}),jsx("br",{}),Object.keys(e.value).map((i,l,s)=>{let c=i,g=e.value[c],v=()=>su.includes(typeof g)?jsx(Tt,{value:g}):Array.isArray(g)?jsx(ri,{value:g}):typeof g=="object"?jsx(Ft,{indent:true,value:g}):jsx(Tt,{value:`${g}`});return jsxs("span",{style:{paddingLeft:o,width:"100%"},children:[jsx(p,{color:"jsonKey",text:`"${c}"`})," : ",jsx(v,{}),l===s.length-1?"":",",jsx("br",{})]})}),jsx(p,{style:{paddingLeft:e.indent?n:void 0},color:"jsonBracket",text:"}"})]})}var Rt=au;a();a();a();function mu(e){let r=getMimeTypes(distinct(strictArray(e.accepts?Array.isArray(e.accepts)?e.accepts:[e.accepts]:[...zo].filter(s=>s!=="unknown")))),t=e.multiple?1/0:e.maxFiles??1,o=useRef(null),n=(...s)=>{if(e.disabled)return;let c="target"in s[0]?s[0].target.files:s[0],g=[],v=[],m=h=>strictArray(h).map(S=>toObject(S,{uploadDate:"now",filepath:e.getFilePath?.(S)}));for(let h of c){if(g.length+v.length>=t)break;r.includes(h.type)?g.push(h):v.push(h);}isEmpty(g)||e.onAccept?.(g,m(g)),isEmpty(v)||e.onReject?.(v,m(v));},i=s=>{if(s.preventDefault(),!e.allowDrop||e.disabled)return;let c=[];if(s.dataTransfer.items?c=[...s.dataTransfer.items].filter(g=>g.kind==="file").map(g=>g.getAsFile()):c=[...s.dataTransfer.files],!isEmpty(c)){let g=new DataTransfer;c.forEach(v=>g.items.add(v)),n(c);}},l=()=>{e.disabled||o.current.click();};return jsxs("label",{className:e.className,style:{...C(e),userSelect:e.disableSelection?"none":void 0,cursor:"pointer"},onDrop:i,onDragOver:s=>s.preventDefault(),onClick:l,children:[e.children,jsx("input",{id:"file",type:"file",ref:o,style:{display:"none"},onChange:n,accept:r.join(", "),multiple:e.multiple})]})}var oi=mu;function ii(e){return r=>{let{size:t,fontSize:o,iconSize:n,fileClass:i,backgroundColor:l,accepts:s=e?.accepts,...c}=r||{};return jsx(oi,{spill:"hidden",corners:r.corners||"md",accepts:s,...c||{},allowDrop:false,children:jsx(B,{debug:r.debug,disabled:r.disabled,width:r.width,backgroundColor:l,corners:r.corners||"md",borderColor:r.borderColor,color:r.color,variant:"outline",fontSize:o,leadingEl:HiUpload,iconSize:n,size:t||"sm",text:`Upload ${r.hideFileClass?"":i||e?.fileClass}`.trim(),style:{flexShrink:0}})})}}var Qe=ii({fileClass:"file"}),_P=ii({fileClass:"receipt",accepts:["img"]});function _u(e){let[r,t]=useState(e.defaultPicture?.path);useEffect(()=>{console.log(r);},[r]);let o=({children:i})=>e.label?jsxs(d,{gap:e.rowGap||"md",children:[jsx(p,{fontSize:e.slotProps?.label?.fontSize||"sm",fontWeight:e.slotProps?.label?.fontWeight||"bold",fade:e.slotProps?.label?.fade||.75,text:e.label}),i]}):i,n=(i,l)=>{let s=l[0];t(s.path),e.onChange?.(s);};return jsx(o,{children:jsxs(d,{row:true,gap:e.columnGap||"lg",align:"center",children:[jsx(me,{size:"xl",fallback:e.fallback||IoMdImages,src:r||null}),jsx(Qe,{fileClass:"photo",accepts:["img"],getFilePath:e.getFilePath,onAccept:n})]})})}var bu=_u;a();function xu(e){let r=e.authProviders||[...Ro.values()];return jsxs(d,{padding:"1.75rem",corners:"lg",gap:"xl",width:e.width,borderColor:e.glassy?void 0:"outlineVariant",backgroundColor:e.backgroundColor||(e.glassy?"onSurface[0.1]":"surfaceContainer"),backdropBlur:e.glassy?".5rem":void 0,color:e.color||"onSurface",style:{boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",zIndex:e.zIndex},children:[e.header||jsxs(d,{width:"full",color:"inherit",children:[jsx(p,{fontWeight:"bold",fontSize:"1.55rem",text:"Sign In"}),jsx("span",{style:{opacity:.75,fontSize:".95rem"},children:"Select a sign-in method to continue."})]}),jsx(d,{width:"full",color:"inherit",children:r.map(t=>jsx(Pu,{provider:t,onClick:e.onAuthProviderClick}))})]})}function Pu(e){let r=(()=>{switch(e.provider){case "Google":return FcGoogle;default:return e.provider}})(),t=()=>e.onClick(e.provider);return jsx(B,{async:true,width:"full",pendingDelay:1e3,borderColor:"outlineVariant",backgroundColor:"transparent",color:"inherit",padding:".75rem",iconSize:"md",leadingEl:r,text:`Continue with ${e.provider}`,style:{boxShadow:"rgba(0, 0, 0, 0.25) 0px 3px 8px"},onClick:t})}var Bu=xu;a();a();var si={timestamp:Date.now(),status:"info",response:"Hello World!"};function Eu(e){useEffect(()=>{e.initialMessage&&(si.response=e.initialMessage);},[]);let r=[si,...e.logs];return jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},padding:"lg",corners:"md",borderColor:"outlineVariant",backgroundColor:"outlineVariant[0.1]",gap:"sm",maxHeight:"full",children:jsx(For,{each:r,children:(t,o)=>jsx(Fu,{...t,scrollIntoView:o===lastIndex(r)},o)})})}function Fu(e){let r={error:"error",success:"carlsbergGreen",info:"teal"};return jsxs("span",{ref:t=>{t&&e.scrollIntoView&&t.scrollIntoView();},style:{fontSize:".85rem",wordSpacing:".25rem"},children:[jsx("span",{style:{opacity:.5,wordSpacing:"normal"},children:format("date",e.timestamp,"hh:mm:ss A")}),"\xA0",jsx("span",{style:{fontWeight:"bold",color:_(r[e.status])},children:`[${e.status}]`}),"\xA0",typeof e.response=="object"&&jsxs(Fragment,{children:[jsx(hn,{labelOpacity:.75,label:e.response.tag}),"\xA0"]}),jsx("span",{style:{wordSpacing:"normal",backgroundColor:e.status==="info"?void 0:_(`${r[e.status]}[0.25]`),padding:"0px .2rem"},children:typeof e.response=="object"?e.response.message:e.response})]})}var Ot=Eu;function Mu(e){let[r,t]=useState(e.defaultTasks||[]);return useEffect(()=>e.onSnapshot(o=>{let n=Array.isArray(o)?o:"logs"in o?o.logs:null;t(n?sort(n,"timestamp","asc"):[...r,o]);}),[]),jsxs(d,{size:"full",grid:true,gridRows:"1fr .85fr",spill:"hidden",maxHeight:"full",children:[jsx(d,{size:"full",spill:{x:"hidden",y:"auto"},gap:"lg",style:{flexShrink:0},maxHeight:"full",children:jsx(For,{each:e.relatedTaskData,children:({content:o,...n})=>jsx(tn,{item:n,info:o})})}),jsx(Ot,{initialMessage:"Awaiting registration process...",logs:r})]})}var Lu=Mu;a();function Wu(e){return jsx(j,{disabled:e.disabled,allowCopyText:e.allowCopy,allowPasteText:e.allowPaste,defaultValue:e.defaultValue,value:e.value,width:e.width||"20rem",backgroundColor:"onSurface[0.1]",leadingContent:jsx(CiSearch,{size:"1.15rem"}),placeholder:e.placeholder||"Search...",onEnterKeyPressed:e.onEnterKeyPressed,onChange:e.onChange})}var vt=Wu;a();a();function Nu(e){return e.error?jsx(Sr,{...e,tooltip:jsx("span",{children:Object.keys(e.error).map(r=>{let t=r;return jsxs("span",{children:[jsx(p,{fontWeight:"bold",text:camelCaseToLetter(t)+": "}),jsx("span",{style:{textDecoration:"underline",opacity:.75,fontWeight:"normal"},children:e.error[t]}),jsx("br",{})]})})})}):e.children}var It=Nu;function Uu(e){let r=T(e?.verifyError),[t,o]=useState(e?.defaultStatus||"pending"),n=async()=>{let i=await e.onVerifyClick();if(console.log({verifyReq:i}),i.response)return o("success");r.upsert(i.error),o("error");};return jsx(j,{...e,leadingAdornment:jsx(It,{wrapChildren:true,asChild:t!=="error",error:r.read(),children:jsx(Cn,{indicatorSize:".4rem",status:t})}),trailingContent:jsx(Ct,{onClick:n})})}var At=Uu;a();function Yu(e){return jsxs(d,{width:"full",row:true,align:"center",gap:"md",spill:"hidden",children:[jsx(me,{fallback:e.user.name,src:e.user.picture}),jsxs(d,{width:"full",spill:"hidden",fontSize:".85rem",style:{lineHeight:"1.1rem"},children:[jsx(p,{ellipsis:true,text:e.user.name}),jsx(p,{ellipsis:true,fade:"0.5",text:e.user.email})]}),jsx(IconButton,{variant:"outline",rounded:"full",size:"2xs",children:jsx(IoRemove,{})})]})}var Ku=Yu;a();function fi(e){return r=>{let[t,o]=useState(false);return jsx(B,{borderColor:r.borderColor||"onSurface[0.25]",backgroundColor:r.backgroundColor||"onSurface[0.1]",color:r.color||"onSurface",size:r.size||"xs",fontSize:r.fontSize,iconSize:r.iconSize,backdropBlur:".1rem",leadingEl:t?IoCheckmark:e.actionIcon,text:r.iconOnly?void 0:e.label(t),onClick:async()=>{if(t)return;let{error:n}=await e.handleOnClick(r);if(n)return console.error(new Error(n.message,{cause:n}));o(true),setTimeout(()=>o(false),3e3);}})}}var Fn=fi({actionIcon:ImPaste,label:e=>e?"Pasted!":"Paste",handleOnClick:async({inputRef:e,onClick:r})=>{let{error:t,response:o}=await readClipboardText();return t?{error:t}:(e?.current&&(e.current.value=o.text),r?.(o.text),{response:"success"})}}),ze=fi({actionIcon:IoCopyOutline,label:e=>e?"Copied!":"Copy",handleOnClick:async({textToCopy:e,inputRef:r,onClick:t})=>{t?.();let o=e?typeof e=="function"?e():e:r?.current?.value;if(!o)return {error:{errorCode:"BAD_REQUEST",title:"Failed to copy text.",message:"Failed to find the text to copy."}};let{error:n}=await copyToClipboard(o);return n?{error:n}:{response:"success"}}});a();function gi(e){return r=>jsx(B,{disabled:r.disabled,size:r.size,padding:r.padding,corners:"circle",backgroundColor:r.backgroundColor||"onSurface[0.25]",color:r.color||"surface",fontSize:r.iconSize,onClick:r.onClick,children:jsx(Icon,{as:e,boxSize:r.iconSize})})}var Q5=gi(BsPlus),eB=gi(BsDash);a();function vi(e){return r=>jsx(B,{...e.defaults,text:e.label,onClick:r.onClick})}var Qn=vi({label:"Yes"}),ei=vi({label:"No",defaults:{variant:"outline"}});a();var dB=ue({preset:{leadingEl:IoMdDownload,text:"Download",trailingEl:null},optional:{backgroundColor:"sendBlue",color:"onSendBlue"}});a();a();function ff(e){let r=T(e.defaulValue?.token||""),t=useRef(null),[o,n]=useState(e.defaulValue?.status),i=async()=>{let s=await e.onVerifyClick?.(r.read());return n(s),s.verified?{response:"success"}:{error:s.error}},l=s=>{r.upsert(s),e.onTokenChange?.(s);};return jsxs(d,{size:"full",spill:"hidden",maxHeight:"full",gap:"lg",children:[jsx(At,{allowCopyText:true,allowPasteText:true,required:true,defaultStatus:o?o.verified?"success":"error":"pending",ref:t,placeholder:e.hint,defaultValue:r.read(),onPasteClick:l,onChange:l,onVerifyClick:i}),jsxs(d,{size:"full",spill:"hidden",gap:"sm",children:[o&&jsx(ze,{textToCopy:o.payload}),jsx(Rt,{fullSize:true,json:o?o.payload:void 0})]})]})}var mf=ff;a();a();function pr(e){switch(e){case "excel":return {filled:RiFileExcel2Fill,outlined:RiFileExcel2Line};case "word":return {filled:RiFileWord2Fill,outlined:RiFileWord2Line};case "pdf":return {filled:FaFilePdf,outlined:FaRegFilePdf};case "img":return {filled:FaFileImage,outlined:FaRegFileImage};case "txt":return {filled:RiFileTextFill,outlined:RiFileTextLine};case "unknown":return {filled:AiFillFileUnknown,outlined:AiOutlineFileUnknown};default:return e}}a();a();a();a();var hi=(k=>(k.white="#FFF",k.black="#000",k.gray="#808080",k.pdf="#F40F02",k.word="#41A5EE",k.excel="#21A366",k.img="#8d481f",k.txt="#8c61a9",k.deepSkyBlue="#00BFFF",k.lightSkyBlue="#87CEFA",k.sendBlue="#0a57d0",k.onSendBlue="#c3dfff",k.book_it="#009688",k.stickyNote="#EFAD03",k.matteBlack="#28282B",k.navyBlue="#000080",k.teal="#008080",k.paper="#ffffff",k.onPaper="#28282B",k.paperVariant="#E6E6E6",k.success="#4BB543",k.hyperlink="#2979ff",k.gold="#d4af37",k.carlsbergGreen="#17B169",k.billsRed="#C60C30",k.info="#1565c0",k.error="#C60C30",k.warning="#f9a825",k.jsonKey="#D56C75",k.string="#59A779",k.number="#D19A5A",k.boolean="#56B6C2",k.jsonBracket="#FFCA1D",k.arrayBracket="#DA68A7",k.delete="#C60C30",k.pdf_table_header="#28282B",k))(hi||{}),re=hi;a();var kf=Object.freeze({"primary[0.1]":"var(--primary__100)","primary[0.15]":"var(--primary__150)","primary[0.2]":"var(--primary__200)","primary[0.25]":"var(--primary__250)","primary[0.3]":"var(--primary__300)","primary[0.35]":"var(--primary__350)","primary[0.4]":"var(--primary__400)","primary[0.45]":"var(--primary__450)","primary[0.5]":"var(--primary__500)","primary[0.55]":"var(--primary__550)","primary[0.6]":"var(--primary__600)","primary[0.65]":"var(--primary__650)","primary[0.7]":"var(--primary__700)","primary[0.75]":"var(--primary__750)","primary[0.8]":"var(--primary__800)","primary[0.85]":"var(--primary__850)","primary[0.9]":"var(--primary__900)","primary[0.95]":"var(--primary__950)",primary:"var(--primary)","surfaceTint[0.1]":"var(--surface-tint__100)","surfaceTint[0.15]":"var(--surface-tint__150)","surfaceTint[0.2]":"var(--surface-tint__200)","surfaceTint[0.25]":"var(--surface-tint__250)","surfaceTint[0.3]":"var(--surface-tint__300)","surfaceTint[0.35]":"var(--surface-tint__350)","surfaceTint[0.4]":"var(--surface-tint__400)","surfaceTint[0.45]":"var(--surface-tint__450)","surfaceTint[0.5]":"var(--surface-tint__500)","surfaceTint[0.55]":"var(--surface-tint__550)","surfaceTint[0.6]":"var(--surface-tint__600)","surfaceTint[0.65]":"var(--surface-tint__650)","surfaceTint[0.7]":"var(--surface-tint__700)","surfaceTint[0.75]":"var(--surface-tint__750)","surfaceTint[0.8]":"var(--surface-tint__800)","surfaceTint[0.85]":"var(--surface-tint__850)","surfaceTint[0.9]":"var(--surface-tint__900)","surfaceTint[0.95]":"var(--surface-tint__950)",surfaceTint:"var(--surface-tint)","onPrimary[0.1]":"var(--on-primary__100)","onPrimary[0.15]":"var(--on-primary__150)","onPrimary[0.2]":"var(--on-primary__200)","onPrimary[0.25]":"var(--on-primary__250)","onPrimary[0.3]":"var(--on-primary__300)","onPrimary[0.35]":"var(--on-primary__350)","onPrimary[0.4]":"var(--on-primary__400)","onPrimary[0.45]":"var(--on-primary__450)","onPrimary[0.5]":"var(--on-primary__500)","onPrimary[0.55]":"var(--on-primary__550)","onPrimary[0.6]":"var(--on-primary__600)","onPrimary[0.65]":"var(--on-primary__650)","onPrimary[0.7]":"var(--on-primary__700)","onPrimary[0.75]":"var(--on-primary__750)","onPrimary[0.8]":"var(--on-primary__800)","onPrimary[0.85]":"var(--on-primary__850)","onPrimary[0.9]":"var(--on-primary__900)","onPrimary[0.95]":"var(--on-primary__950)",onPrimary:"var(--on-primary)","primaryContainer[0.1]":"var(--primary-container__100)","primaryContainer[0.15]":"var(--primary-container__150)","primaryContainer[0.2]":"var(--primary-container__200)","primaryContainer[0.25]":"var(--primary-container__250)","primaryContainer[0.3]":"var(--primary-container__300)","primaryContainer[0.35]":"var(--primary-container__350)","primaryContainer[0.4]":"var(--primary-container__400)","primaryContainer[0.45]":"var(--primary-container__450)","primaryContainer[0.5]":"var(--primary-container__500)","primaryContainer[0.55]":"var(--primary-container__550)","primaryContainer[0.6]":"var(--primary-container__600)","primaryContainer[0.65]":"var(--primary-container__650)","primaryContainer[0.7]":"var(--primary-container__700)","primaryContainer[0.75]":"var(--primary-container__750)","primaryContainer[0.8]":"var(--primary-container__800)","primaryContainer[0.85]":"var(--primary-container__850)","primaryContainer[0.9]":"var(--primary-container__900)","primaryContainer[0.95]":"var(--primary-container__950)",primaryContainer:"var(--primary-container)","onPrimaryContainer[0.1]":"var(--on-primary-container__100)","onPrimaryContainer[0.15]":"var(--on-primary-container__150)","onPrimaryContainer[0.2]":"var(--on-primary-container__200)","onPrimaryContainer[0.25]":"var(--on-primary-container__250)","onPrimaryContainer[0.3]":"var(--on-primary-container__300)","onPrimaryContainer[0.35]":"var(--on-primary-container__350)","onPrimaryContainer[0.4]":"var(--on-primary-container__400)","onPrimaryContainer[0.45]":"var(--on-primary-container__450)","onPrimaryContainer[0.5]":"var(--on-primary-container__500)","onPrimaryContainer[0.55]":"var(--on-primary-container__550)","onPrimaryContainer[0.6]":"var(--on-primary-container__600)","onPrimaryContainer[0.65]":"var(--on-primary-container__650)","onPrimaryContainer[0.7]":"var(--on-primary-container__700)","onPrimaryContainer[0.75]":"var(--on-primary-container__750)","onPrimaryContainer[0.8]":"var(--on-primary-container__800)","onPrimaryContainer[0.85]":"var(--on-primary-container__850)","onPrimaryContainer[0.9]":"var(--on-primary-container__900)","onPrimaryContainer[0.95]":"var(--on-primary-container__950)",onPrimaryContainer:"var(--on-primary-container)","secondary[0.1]":"var(--secondary__100)","secondary[0.15]":"var(--secondary__150)","secondary[0.2]":"var(--secondary__200)","secondary[0.25]":"var(--secondary__250)","secondary[0.3]":"var(--secondary__300)","secondary[0.35]":"var(--secondary__350)","secondary[0.4]":"var(--secondary__400)","secondary[0.45]":"var(--secondary__450)","secondary[0.5]":"var(--secondary__500)","secondary[0.55]":"var(--secondary__550)","secondary[0.6]":"var(--secondary__600)","secondary[0.65]":"var(--secondary__650)","secondary[0.7]":"var(--secondary__700)","secondary[0.75]":"var(--secondary__750)","secondary[0.8]":"var(--secondary__800)","secondary[0.85]":"var(--secondary__850)","secondary[0.9]":"var(--secondary__900)","secondary[0.95]":"var(--secondary__950)",secondary:"var(--secondary)","onSecondary[0.1]":"var(--on-secondary__100)","onSecondary[0.15]":"var(--on-secondary__150)","onSecondary[0.2]":"var(--on-secondary__200)","onSecondary[0.25]":"var(--on-secondary__250)","onSecondary[0.3]":"var(--on-secondary__300)","onSecondary[0.35]":"var(--on-secondary__350)","onSecondary[0.4]":"var(--on-secondary__400)","onSecondary[0.45]":"var(--on-secondary__450)","onSecondary[0.5]":"var(--on-secondary__500)","onSecondary[0.55]":"var(--on-secondary__550)","onSecondary[0.6]":"var(--on-secondary__600)","onSecondary[0.65]":"var(--on-secondary__650)","onSecondary[0.7]":"var(--on-secondary__700)","onSecondary[0.75]":"var(--on-secondary__750)","onSecondary[0.8]":"var(--on-secondary__800)","onSecondary[0.85]":"var(--on-secondary__850)","onSecondary[0.9]":"var(--on-secondary__900)","onSecondary[0.95]":"var(--on-secondary__950)",onSecondary:"var(--on-secondary)","secondaryContainer[0.1]":"var(--secondary-container__100)","secondaryContainer[0.15]":"var(--secondary-container__150)","secondaryContainer[0.2]":"var(--secondary-container__200)","secondaryContainer[0.25]":"var(--secondary-container__250)","secondaryContainer[0.3]":"var(--secondary-container__300)","secondaryContainer[0.35]":"var(--secondary-container__350)","secondaryContainer[0.4]":"var(--secondary-container__400)","secondaryContainer[0.45]":"var(--secondary-container__450)","secondaryContainer[0.5]":"var(--secondary-container__500)","secondaryContainer[0.55]":"var(--secondary-container__550)","secondaryContainer[0.6]":"var(--secondary-container__600)","secondaryContainer[0.65]":"var(--secondary-container__650)","secondaryContainer[0.7]":"var(--secondary-container__700)","secondaryContainer[0.75]":"var(--secondary-container__750)","secondaryContainer[0.8]":"var(--secondary-container__800)","secondaryContainer[0.85]":"var(--secondary-container__850)","secondaryContainer[0.9]":"var(--secondary-container__900)","secondaryContainer[0.95]":"var(--secondary-container__950)",secondaryContainer:"var(--secondary-container)","onSecondaryContainer[0.1]":"var(--on-secondary-container__100)","onSecondaryContainer[0.15]":"var(--on-secondary-container__150)","onSecondaryContainer[0.2]":"var(--on-secondary-container__200)","onSecondaryContainer[0.25]":"var(--on-secondary-container__250)","onSecondaryContainer[0.3]":"var(--on-secondary-container__300)","onSecondaryContainer[0.35]":"var(--on-secondary-container__350)","onSecondaryContainer[0.4]":"var(--on-secondary-container__400)","onSecondaryContainer[0.45]":"var(--on-secondary-container__450)","onSecondaryContainer[0.5]":"var(--on-secondary-container__500)","onSecondaryContainer[0.55]":"var(--on-secondary-container__550)","onSecondaryContainer[0.6]":"var(--on-secondary-container__600)","onSecondaryContainer[0.65]":"var(--on-secondary-container__650)","onSecondaryContainer[0.7]":"var(--on-secondary-container__700)","onSecondaryContainer[0.75]":"var(--on-secondary-container__750)","onSecondaryContainer[0.8]":"var(--on-secondary-container__800)","onSecondaryContainer[0.85]":"var(--on-secondary-container__850)","onSecondaryContainer[0.9]":"var(--on-secondary-container__900)","onSecondaryContainer[0.95]":"var(--on-secondary-container__950)",onSecondaryContainer:"var(--on-secondary-container)","tertiary[0.1]":"var(--tertiary__100)","tertiary[0.15]":"var(--tertiary__150)","tertiary[0.2]":"var(--tertiary__200)","tertiary[0.25]":"var(--tertiary__250)","tertiary[0.3]":"var(--tertiary__300)","tertiary[0.35]":"var(--tertiary__350)","tertiary[0.4]":"var(--tertiary__400)","tertiary[0.45]":"var(--tertiary__450)","tertiary[0.5]":"var(--tertiary__500)","tertiary[0.55]":"var(--tertiary__550)","tertiary[0.6]":"var(--tertiary__600)","tertiary[0.65]":"var(--tertiary__650)","tertiary[0.7]":"var(--tertiary__700)","tertiary[0.75]":"var(--tertiary__750)","tertiary[0.8]":"var(--tertiary__800)","tertiary[0.85]":"var(--tertiary__850)","tertiary[0.9]":"var(--tertiary__900)","tertiary[0.95]":"var(--tertiary__950)",tertiary:"var(--tertiary)","onTertiary[0.1]":"var(--on-tertiary__100)","onTertiary[0.15]":"var(--on-tertiary__150)","onTertiary[0.2]":"var(--on-tertiary__200)","onTertiary[0.25]":"var(--on-tertiary__250)","onTertiary[0.3]":"var(--on-tertiary__300)","onTertiary[0.35]":"var(--on-tertiary__350)","onTertiary[0.4]":"var(--on-tertiary__400)","onTertiary[0.45]":"var(--on-tertiary__450)","onTertiary[0.5]":"var(--on-tertiary__500)","onTertiary[0.55]":"var(--on-tertiary__550)","onTertiary[0.6]":"var(--on-tertiary__600)","onTertiary[0.65]":"var(--on-tertiary__650)","onTertiary[0.7]":"var(--on-tertiary__700)","onTertiary[0.75]":"var(--on-tertiary__750)","onTertiary[0.8]":"var(--on-tertiary__800)","onTertiary[0.85]":"var(--on-tertiary__850)","onTertiary[0.9]":"var(--on-tertiary__900)","onTertiary[0.95]":"var(--on-tertiary__950)",onTertiary:"var(--on-tertiary)","tertiaryContainer[0.1]":"var(--tertiary-container__100)","tertiaryContainer[0.15]":"var(--tertiary-container__150)","tertiaryContainer[0.2]":"var(--tertiary-container__200)","tertiaryContainer[0.25]":"var(--tertiary-container__250)","tertiaryContainer[0.3]":"var(--tertiary-container__300)","tertiaryContainer[0.35]":"var(--tertiary-container__350)","tertiaryContainer[0.4]":"var(--tertiary-container__400)","tertiaryContainer[0.45]":"var(--tertiary-container__450)","tertiaryContainer[0.5]":"var(--tertiary-container__500)","tertiaryContainer[0.55]":"var(--tertiary-container__550)","tertiaryContainer[0.6]":"var(--tertiary-container__600)","tertiaryContainer[0.65]":"var(--tertiary-container__650)","tertiaryContainer[0.7]":"var(--tertiary-container__700)","tertiaryContainer[0.75]":"var(--tertiary-container__750)","tertiaryContainer[0.8]":"var(--tertiary-container__800)","tertiaryContainer[0.85]":"var(--tertiary-container__850)","tertiaryContainer[0.9]":"var(--tertiary-container__900)","tertiaryContainer[0.95]":"var(--tertiary-container__950)",tertiaryContainer:"var(--tertiary-container)","onTertiaryContainer[0.1]":"var(--on-tertiary-container__100)","onTertiaryContainer[0.15]":"var(--on-tertiary-container__150)","onTertiaryContainer[0.2]":"var(--on-tertiary-container__200)","onTertiaryContainer[0.25]":"var(--on-tertiary-container__250)","onTertiaryContainer[0.3]":"var(--on-tertiary-container__300)","onTertiaryContainer[0.35]":"var(--on-tertiary-container__350)","onTertiaryContainer[0.4]":"var(--on-tertiary-container__400)","onTertiaryContainer[0.45]":"var(--on-tertiary-container__450)","onTertiaryContainer[0.5]":"var(--on-tertiary-container__500)","onTertiaryContainer[0.55]":"var(--on-tertiary-container__550)","onTertiaryContainer[0.6]":"var(--on-tertiary-container__600)","onTertiaryContainer[0.65]":"var(--on-tertiary-container__650)","onTertiaryContainer[0.7]":"var(--on-tertiary-container__700)","onTertiaryContainer[0.75]":"var(--on-tertiary-container__750)","onTertiaryContainer[0.8]":"var(--on-tertiary-container__800)","onTertiaryContainer[0.85]":"var(--on-tertiary-container__850)","onTertiaryContainer[0.9]":"var(--on-tertiary-container__900)","onTertiaryContainer[0.95]":"var(--on-tertiary-container__950)",onTertiaryContainer:"var(--on-tertiary-container)","error[0.1]":"var(--error__100)","error[0.15]":"var(--error__150)","error[0.2]":"var(--error__200)","error[0.25]":"var(--error__250)","error[0.3]":"var(--error__300)","error[0.35]":"var(--error__350)","error[0.4]":"var(--error__400)","error[0.45]":"var(--error__450)","error[0.5]":"var(--error__500)","error[0.55]":"var(--error__550)","error[0.6]":"var(--error__600)","error[0.65]":"var(--error__650)","error[0.7]":"var(--error__700)","error[0.75]":"var(--error__750)","error[0.8]":"var(--error__800)","error[0.85]":"var(--error__850)","error[0.9]":"var(--error__900)","error[0.95]":"var(--error__950)",error:"var(--error)","onError[0.1]":"var(--on-error__100)","onError[0.15]":"var(--on-error__150)","onError[0.2]":"var(--on-error__200)","onError[0.25]":"var(--on-error__250)","onError[0.3]":"var(--on-error__300)","onError[0.35]":"var(--on-error__350)","onError[0.4]":"var(--on-error__400)","onError[0.45]":"var(--on-error__450)","onError[0.5]":"var(--on-error__500)","onError[0.55]":"var(--on-error__550)","onError[0.6]":"var(--on-error__600)","onError[0.65]":"var(--on-error__650)","onError[0.7]":"var(--on-error__700)","onError[0.75]":"var(--on-error__750)","onError[0.8]":"var(--on-error__800)","onError[0.85]":"var(--on-error__850)","onError[0.9]":"var(--on-error__900)","onError[0.95]":"var(--on-error__950)",onError:"var(--on-error)","errorContainer[0.1]":"var(--error-container__100)","errorContainer[0.15]":"var(--error-container__150)","errorContainer[0.2]":"var(--error-container__200)","errorContainer[0.25]":"var(--error-container__250)","errorContainer[0.3]":"var(--error-container__300)","errorContainer[0.35]":"var(--error-container__350)","errorContainer[0.4]":"var(--error-container__400)","errorContainer[0.45]":"var(--error-container__450)","errorContainer[0.5]":"var(--error-container__500)","errorContainer[0.55]":"var(--error-container__550)","errorContainer[0.6]":"var(--error-container__600)","errorContainer[0.65]":"var(--error-container__650)","errorContainer[0.7]":"var(--error-container__700)","errorContainer[0.75]":"var(--error-container__750)","errorContainer[0.8]":"var(--error-container__800)","errorContainer[0.85]":"var(--error-container__850)","errorContainer[0.9]":"var(--error-container__900)","errorContainer[0.95]":"var(--error-container__950)",errorContainer:"var(--error-container)","onErrorContainer[0.1]":"var(--on-error-container__100)","onErrorContainer[0.15]":"var(--on-error-container__150)","onErrorContainer[0.2]":"var(--on-error-container__200)","onErrorContainer[0.25]":"var(--on-error-container__250)","onErrorContainer[0.3]":"var(--on-error-container__300)","onErrorContainer[0.35]":"var(--on-error-container__350)","onErrorContainer[0.4]":"var(--on-error-container__400)","onErrorContainer[0.45]":"var(--on-error-container__450)","onErrorContainer[0.5]":"var(--on-error-container__500)","onErrorContainer[0.55]":"var(--on-error-container__550)","onErrorContainer[0.6]":"var(--on-error-container__600)","onErrorContainer[0.65]":"var(--on-error-container__650)","onErrorContainer[0.7]":"var(--on-error-container__700)","onErrorContainer[0.75]":"var(--on-error-container__750)","onErrorContainer[0.8]":"var(--on-error-container__800)","onErrorContainer[0.85]":"var(--on-error-container__850)","onErrorContainer[0.9]":"var(--on-error-container__900)","onErrorContainer[0.95]":"var(--on-error-container__950)",onErrorContainer:"var(--on-error-container)","background[0.1]":"var(--background__100)","background[0.15]":"var(--background__150)","background[0.2]":"var(--background__200)","background[0.25]":"var(--background__250)","background[0.3]":"var(--background__300)","background[0.35]":"var(--background__350)","background[0.4]":"var(--background__400)","background[0.45]":"var(--background__450)","background[0.5]":"var(--background__500)","background[0.55]":"var(--background__550)","background[0.6]":"var(--background__600)","background[0.65]":"var(--background__650)","background[0.7]":"var(--background__700)","background[0.75]":"var(--background__750)","background[0.8]":"var(--background__800)","background[0.85]":"var(--background__850)","background[0.9]":"var(--background__900)","background[0.95]":"var(--background__950)",background:"var(--background)","onBackground[0.1]":"var(--on-background__100)","onBackground[0.15]":"var(--on-background__150)","onBackground[0.2]":"var(--on-background__200)","onBackground[0.25]":"var(--on-background__250)","onBackground[0.3]":"var(--on-background__300)","onBackground[0.35]":"var(--on-background__350)","onBackground[0.4]":"var(--on-background__400)","onBackground[0.45]":"var(--on-background__450)","onBackground[0.5]":"var(--on-background__500)","onBackground[0.55]":"var(--on-background__550)","onBackground[0.6]":"var(--on-background__600)","onBackground[0.65]":"var(--on-background__650)","onBackground[0.7]":"var(--on-background__700)","onBackground[0.75]":"var(--on-background__750)","onBackground[0.8]":"var(--on-background__800)","onBackground[0.85]":"var(--on-background__850)","onBackground[0.9]":"var(--on-background__900)","onBackground[0.95]":"var(--on-background__950)",onBackground:"var(--on-background)","surface[0.1]":"var(--surface__100)","surface[0.15]":"var(--surface__150)","surface[0.2]":"var(--surface__200)","surface[0.25]":"var(--surface__250)","surface[0.3]":"var(--surface__300)","surface[0.35]":"var(--surface__350)","surface[0.4]":"var(--surface__400)","surface[0.45]":"var(--surface__450)","surface[0.5]":"var(--surface__500)","surface[0.55]":"var(--surface__550)","surface[0.6]":"var(--surface__600)","surface[0.65]":"var(--surface__650)","surface[0.7]":"var(--surface__700)","surface[0.75]":"var(--surface__750)","surface[0.8]":"var(--surface__800)","surface[0.85]":"var(--surface__850)","surface[0.9]":"var(--surface__900)","surface[0.95]":"var(--surface__950)",surface:"var(--surface)","onSurface[0.1]":"var(--on-surface__100)","onSurface[0.15]":"var(--on-surface__150)","onSurface[0.2]":"var(--on-surface__200)","onSurface[0.25]":"var(--on-surface__250)","onSurface[0.3]":"var(--on-surface__300)","onSurface[0.35]":"var(--on-surface__350)","onSurface[0.4]":"var(--on-surface__400)","onSurface[0.45]":"var(--on-surface__450)","onSurface[0.5]":"var(--on-surface__500)","onSurface[0.55]":"var(--on-surface__550)","onSurface[0.6]":"var(--on-surface__600)","onSurface[0.65]":"var(--on-surface__650)","onSurface[0.7]":"var(--on-surface__700)","onSurface[0.75]":"var(--on-surface__750)","onSurface[0.8]":"var(--on-surface__800)","onSurface[0.85]":"var(--on-surface__850)","onSurface[0.9]":"var(--on-surface__900)","onSurface[0.95]":"var(--on-surface__950)",onSurface:"var(--on-surface)","surfaceVariant[0.1]":"var(--surface-variant__100)","surfaceVariant[0.15]":"var(--surface-variant__150)","surfaceVariant[0.2]":"var(--surface-variant__200)","surfaceVariant[0.25]":"var(--surface-variant__250)","surfaceVariant[0.3]":"var(--surface-variant__300)","surfaceVariant[0.35]":"var(--surface-variant__350)","surfaceVariant[0.4]":"var(--surface-variant__400)","surfaceVariant[0.45]":"var(--surface-variant__450)","surfaceVariant[0.5]":"var(--surface-variant__500)","surfaceVariant[0.55]":"var(--surface-variant__550)","surfaceVariant[0.6]":"var(--surface-variant__600)","surfaceVariant[0.65]":"var(--surface-variant__650)","surfaceVariant[0.7]":"var(--surface-variant__700)","surfaceVariant[0.75]":"var(--surface-variant__750)","surfaceVariant[0.8]":"var(--surface-variant__800)","surfaceVariant[0.85]":"var(--surface-variant__850)","surfaceVariant[0.9]":"var(--surface-variant__900)","surfaceVariant[0.95]":"var(--surface-variant__950)",surfaceVariant:"var(--surface-variant)","onSurfaceVariant[0.1]":"var(--on-surface-variant__100)","onSurfaceVariant[0.15]":"var(--on-surface-variant__150)","onSurfaceVariant[0.2]":"var(--on-surface-variant__200)","onSurfaceVariant[0.25]":"var(--on-surface-variant__250)","onSurfaceVariant[0.3]":"var(--on-surface-variant__300)","onSurfaceVariant[0.35]":"var(--on-surface-variant__350)","onSurfaceVariant[0.4]":"var(--on-surface-variant__400)","onSurfaceVariant[0.45]":"var(--on-surface-variant__450)","onSurfaceVariant[0.5]":"var(--on-surface-variant__500)","onSurfaceVariant[0.55]":"var(--on-surface-variant__550)","onSurfaceVariant[0.6]":"var(--on-surface-variant__600)","onSurfaceVariant[0.65]":"var(--on-surface-variant__650)","onSurfaceVariant[0.7]":"var(--on-surface-variant__700)","onSurfaceVariant[0.75]":"var(--on-surface-variant__750)","onSurfaceVariant[0.8]":"var(--on-surface-variant__800)","onSurfaceVariant[0.85]":"var(--on-surface-variant__850)","onSurfaceVariant[0.9]":"var(--on-surface-variant__900)","onSurfaceVariant[0.95]":"var(--on-surface-variant__950)",onSurfaceVariant:"var(--on-surface-variant)","outline[0.1]":"var(--outline__100)","outline[0.15]":"var(--outline__150)","outline[0.2]":"var(--outline__200)","outline[0.25]":"var(--outline__250)","outline[0.3]":"var(--outline__300)","outline[0.35]":"var(--outline__350)","outline[0.4]":"var(--outline__400)","outline[0.45]":"var(--outline__450)","outline[0.5]":"var(--outline__500)","outline[0.55]":"var(--outline__550)","outline[0.6]":"var(--outline__600)","outline[0.65]":"var(--outline__650)","outline[0.7]":"var(--outline__700)","outline[0.75]":"var(--outline__750)","outline[0.8]":"var(--outline__800)","outline[0.85]":"var(--outline__850)","outline[0.9]":"var(--outline__900)","outline[0.95]":"var(--outline__950)",outline:"var(--outline)","outlineVariant[0.1]":"var(--outline-variant__100)","outlineVariant[0.15]":"var(--outline-variant__150)","outlineVariant[0.2]":"var(--outline-variant__200)","outlineVariant[0.25]":"var(--outline-variant__250)","outlineVariant[0.3]":"var(--outline-variant__300)","outlineVariant[0.35]":"var(--outline-variant__350)","outlineVariant[0.4]":"var(--outline-variant__400)","outlineVariant[0.45]":"var(--outline-variant__450)","outlineVariant[0.5]":"var(--outline-variant__500)","outlineVariant[0.55]":"var(--outline-variant__550)","outlineVariant[0.6]":"var(--outline-variant__600)","outlineVariant[0.65]":"var(--outline-variant__650)","outlineVariant[0.7]":"var(--outline-variant__700)","outlineVariant[0.75]":"var(--outline-variant__750)","outlineVariant[0.8]":"var(--outline-variant__800)","outlineVariant[0.85]":"var(--outline-variant__850)","outlineVariant[0.9]":"var(--outline-variant__900)","outlineVariant[0.95]":"var(--outline-variant__950)",outlineVariant:"var(--outline-variant)","shadow[0.1]":"var(--shadow__100)","shadow[0.15]":"var(--shadow__150)","shadow[0.2]":"var(--shadow__200)","shadow[0.25]":"var(--shadow__250)","shadow[0.3]":"var(--shadow__300)","shadow[0.35]":"var(--shadow__350)","shadow[0.4]":"var(--shadow__400)","shadow[0.45]":"var(--shadow__450)","shadow[0.5]":"var(--shadow__500)","shadow[0.55]":"var(--shadow__550)","shadow[0.6]":"var(--shadow__600)","shadow[0.65]":"var(--shadow__650)","shadow[0.7]":"var(--shadow__700)","shadow[0.75]":"var(--shadow__750)","shadow[0.8]":"var(--shadow__800)","shadow[0.85]":"var(--shadow__850)","shadow[0.9]":"var(--shadow__900)","shadow[0.95]":"var(--shadow__950)",shadow:"var(--shadow)","scrim[0.1]":"var(--scrim__100)","scrim[0.15]":"var(--scrim__150)","scrim[0.2]":"var(--scrim__200)","scrim[0.25]":"var(--scrim__250)","scrim[0.3]":"var(--scrim__300)","scrim[0.35]":"var(--scrim__350)","scrim[0.4]":"var(--scrim__400)","scrim[0.45]":"var(--scrim__450)","scrim[0.5]":"var(--scrim__500)","scrim[0.55]":"var(--scrim__550)","scrim[0.6]":"var(--scrim__600)","scrim[0.65]":"var(--scrim__650)","scrim[0.7]":"var(--scrim__700)","scrim[0.75]":"var(--scrim__750)","scrim[0.8]":"var(--scrim__800)","scrim[0.85]":"var(--scrim__850)","scrim[0.9]":"var(--scrim__900)","scrim[0.95]":"var(--scrim__950)",scrim:"var(--scrim)","inverseSurface[0.1]":"var(--inverse-surface__100)","inverseSurface[0.15]":"var(--inverse-surface__150)","inverseSurface[0.2]":"var(--inverse-surface__200)","inverseSurface[0.25]":"var(--inverse-surface__250)","inverseSurface[0.3]":"var(--inverse-surface__300)","inverseSurface[0.35]":"var(--inverse-surface__350)","inverseSurface[0.4]":"var(--inverse-surface__400)","inverseSurface[0.45]":"var(--inverse-surface__450)","inverseSurface[0.5]":"var(--inverse-surface__500)","inverseSurface[0.55]":"var(--inverse-surface__550)","inverseSurface[0.6]":"var(--inverse-surface__600)","inverseSurface[0.65]":"var(--inverse-surface__650)","inverseSurface[0.7]":"var(--inverse-surface__700)","inverseSurface[0.75]":"var(--inverse-surface__750)","inverseSurface[0.8]":"var(--inverse-surface__800)","inverseSurface[0.85]":"var(--inverse-surface__850)","inverseSurface[0.9]":"var(--inverse-surface__900)","inverseSurface[0.95]":"var(--inverse-surface__950)",inverseSurface:"var(--inverse-surface)","inverseOnSurface[0.1]":"var(--inverse-on-surface__100)","inverseOnSurface[0.15]":"var(--inverse-on-surface__150)","inverseOnSurface[0.2]":"var(--inverse-on-surface__200)","inverseOnSurface[0.25]":"var(--inverse-on-surface__250)","inverseOnSurface[0.3]":"var(--inverse-on-surface__300)","inverseOnSurface[0.35]":"var(--inverse-on-surface__350)","inverseOnSurface[0.4]":"var(--inverse-on-surface__400)","inverseOnSurface[0.45]":"var(--inverse-on-surface__450)","inverseOnSurface[0.5]":"var(--inverse-on-surface__500)","inverseOnSurface[0.55]":"var(--inverse-on-surface__550)","inverseOnSurface[0.6]":"var(--inverse-on-surface__600)","inverseOnSurface[0.65]":"var(--inverse-on-surface__650)","inverseOnSurface[0.7]":"var(--inverse-on-surface__700)","inverseOnSurface[0.75]":"var(--inverse-on-surface__750)","inverseOnSurface[0.8]":"var(--inverse-on-surface__800)","inverseOnSurface[0.85]":"var(--inverse-on-surface__850)","inverseOnSurface[0.9]":"var(--inverse-on-surface__900)","inverseOnSurface[0.95]":"var(--inverse-on-surface__950)",inverseOnSurface:"var(--inverse-on-surface)","inversePrimary[0.1]":"var(--inverse-primary__100)","inversePrimary[0.15]":"var(--inverse-primary__150)","inversePrimary[0.2]":"var(--inverse-primary__200)","inversePrimary[0.25]":"var(--inverse-primary__250)","inversePrimary[0.3]":"var(--inverse-primary__300)","inversePrimary[0.35]":"var(--inverse-primary__350)","inversePrimary[0.4]":"var(--inverse-primary__400)","inversePrimary[0.45]":"var(--inverse-primary__450)","inversePrimary[0.5]":"var(--inverse-primary__500)","inversePrimary[0.55]":"var(--inverse-primary__550)","inversePrimary[0.6]":"var(--inverse-primary__600)","inversePrimary[0.65]":"var(--inverse-primary__650)","inversePrimary[0.7]":"var(--inverse-primary__700)","inversePrimary[0.75]":"var(--inverse-primary__750)","inversePrimary[0.8]":"var(--inverse-primary__800)","inversePrimary[0.85]":"var(--inverse-primary__850)","inversePrimary[0.9]":"var(--inverse-primary__900)","inversePrimary[0.95]":"var(--inverse-primary__950)",inversePrimary:"var(--inverse-primary)","primaryFixed[0.1]":"var(--primary-fixed__100)","primaryFixed[0.15]":"var(--primary-fixed__150)","primaryFixed[0.2]":"var(--primary-fixed__200)","primaryFixed[0.25]":"var(--primary-fixed__250)","primaryFixed[0.3]":"var(--primary-fixed__300)","primaryFixed[0.35]":"var(--primary-fixed__350)","primaryFixed[0.4]":"var(--primary-fixed__400)","primaryFixed[0.45]":"var(--primary-fixed__450)","primaryFixed[0.5]":"var(--primary-fixed__500)","primaryFixed[0.55]":"var(--primary-fixed__550)","primaryFixed[0.6]":"var(--primary-fixed__600)","primaryFixed[0.65]":"var(--primary-fixed__650)","primaryFixed[0.7]":"var(--primary-fixed__700)","primaryFixed[0.75]":"var(--primary-fixed__750)","primaryFixed[0.8]":"var(--primary-fixed__800)","primaryFixed[0.85]":"var(--primary-fixed__850)","primaryFixed[0.9]":"var(--primary-fixed__900)","primaryFixed[0.95]":"var(--primary-fixed__950)",primaryFixed:"var(--primary-fixed)","onPrimaryFixed[0.1]":"var(--on-primary-fixed__100)","onPrimaryFixed[0.15]":"var(--on-primary-fixed__150)","onPrimaryFixed[0.2]":"var(--on-primary-fixed__200)","onPrimaryFixed[0.25]":"var(--on-primary-fixed__250)","onPrimaryFixed[0.3]":"var(--on-primary-fixed__300)","onPrimaryFixed[0.35]":"var(--on-primary-fixed__350)","onPrimaryFixed[0.4]":"var(--on-primary-fixed__400)","onPrimaryFixed[0.45]":"var(--on-primary-fixed__450)","onPrimaryFixed[0.5]":"var(--on-primary-fixed__500)","onPrimaryFixed[0.55]":"var(--on-primary-fixed__550)","onPrimaryFixed[0.6]":"var(--on-primary-fixed__600)","onPrimaryFixed[0.65]":"var(--on-primary-fixed__650)","onPrimaryFixed[0.7]":"var(--on-primary-fixed__700)","onPrimaryFixed[0.75]":"var(--on-primary-fixed__750)","onPrimaryFixed[0.8]":"var(--on-primary-fixed__800)","onPrimaryFixed[0.85]":"var(--on-primary-fixed__850)","onPrimaryFixed[0.9]":"var(--on-primary-fixed__900)","onPrimaryFixed[0.95]":"var(--on-primary-fixed__950)",onPrimaryFixed:"var(--on-primary-fixed)","primaryFixedDim[0.1]":"var(--primary-fixed-dim__100)","primaryFixedDim[0.15]":"var(--primary-fixed-dim__150)","primaryFixedDim[0.2]":"var(--primary-fixed-dim__200)","primaryFixedDim[0.25]":"var(--primary-fixed-dim__250)","primaryFixedDim[0.3]":"var(--primary-fixed-dim__300)","primaryFixedDim[0.35]":"var(--primary-fixed-dim__350)","primaryFixedDim[0.4]":"var(--primary-fixed-dim__400)","primaryFixedDim[0.45]":"var(--primary-fixed-dim__450)","primaryFixedDim[0.5]":"var(--primary-fixed-dim__500)","primaryFixedDim[0.55]":"var(--primary-fixed-dim__550)","primaryFixedDim[0.6]":"var(--primary-fixed-dim__600)","primaryFixedDim[0.65]":"var(--primary-fixed-dim__650)","primaryFixedDim[0.7]":"var(--primary-fixed-dim__700)","primaryFixedDim[0.75]":"var(--primary-fixed-dim__750)","primaryFixedDim[0.8]":"var(--primary-fixed-dim__800)","primaryFixedDim[0.85]":"var(--primary-fixed-dim__850)","primaryFixedDim[0.9]":"var(--primary-fixed-dim__900)","primaryFixedDim[0.95]":"var(--primary-fixed-dim__950)",primaryFixedDim:"var(--primary-fixed-dim)","onPrimaryFixedVariant[0.1]":"var(--on-primary-fixed-variant__100)","onPrimaryFixedVariant[0.15]":"var(--on-primary-fixed-variant__150)","onPrimaryFixedVariant[0.2]":"var(--on-primary-fixed-variant__200)","onPrimaryFixedVariant[0.25]":"var(--on-primary-fixed-variant__250)","onPrimaryFixedVariant[0.3]":"var(--on-primary-fixed-variant__300)","onPrimaryFixedVariant[0.35]":"var(--on-primary-fixed-variant__350)","onPrimaryFixedVariant[0.4]":"var(--on-primary-fixed-variant__400)","onPrimaryFixedVariant[0.45]":"var(--on-primary-fixed-variant__450)","onPrimaryFixedVariant[0.5]":"var(--on-primary-fixed-variant__500)","onPrimaryFixedVariant[0.55]":"var(--on-primary-fixed-variant__550)","onPrimaryFixedVariant[0.6]":"var(--on-primary-fixed-variant__600)","onPrimaryFixedVariant[0.65]":"var(--on-primary-fixed-variant__650)","onPrimaryFixedVariant[0.7]":"var(--on-primary-fixed-variant__700)","onPrimaryFixedVariant[0.75]":"var(--on-primary-fixed-variant__750)","onPrimaryFixedVariant[0.8]":"var(--on-primary-fixed-variant__800)","onPrimaryFixedVariant[0.85]":"var(--on-primary-fixed-variant__850)","onPrimaryFixedVariant[0.9]":"var(--on-primary-fixed-variant__900)","onPrimaryFixedVariant[0.95]":"var(--on-primary-fixed-variant__950)",onPrimaryFixedVariant:"var(--on-primary-fixed-variant)","secondaryFixed[0.1]":"var(--secondary-fixed__100)","secondaryFixed[0.15]":"var(--secondary-fixed__150)","secondaryFixed[0.2]":"var(--secondary-fixed__200)","secondaryFixed[0.25]":"var(--secondary-fixed__250)","secondaryFixed[0.3]":"var(--secondary-fixed__300)","secondaryFixed[0.35]":"var(--secondary-fixed__350)","secondaryFixed[0.4]":"var(--secondary-fixed__400)","secondaryFixed[0.45]":"var(--secondary-fixed__450)","secondaryFixed[0.5]":"var(--secondary-fixed__500)","secondaryFixed[0.55]":"var(--secondary-fixed__550)","secondaryFixed[0.6]":"var(--secondary-fixed__600)","secondaryFixed[0.65]":"var(--secondary-fixed__650)","secondaryFixed[0.7]":"var(--secondary-fixed__700)","secondaryFixed[0.75]":"var(--secondary-fixed__750)","secondaryFixed[0.8]":"var(--secondary-fixed__800)","secondaryFixed[0.85]":"var(--secondary-fixed__850)","secondaryFixed[0.9]":"var(--secondary-fixed__900)","secondaryFixed[0.95]":"var(--secondary-fixed__950)",secondaryFixed:"var(--secondary-fixed)","onSecondaryFixed[0.1]":"var(--on-secondary-fixed__100)","onSecondaryFixed[0.15]":"var(--on-secondary-fixed__150)","onSecondaryFixed[0.2]":"var(--on-secondary-fixed__200)","onSecondaryFixed[0.25]":"var(--on-secondary-fixed__250)","onSecondaryFixed[0.3]":"var(--on-secondary-fixed__300)","onSecondaryFixed[0.35]":"var(--on-secondary-fixed__350)","onSecondaryFixed[0.4]":"var(--on-secondary-fixed__400)","onSecondaryFixed[0.45]":"var(--on-secondary-fixed__450)","onSecondaryFixed[0.5]":"var(--on-secondary-fixed__500)","onSecondaryFixed[0.55]":"var(--on-secondary-fixed__550)","onSecondaryFixed[0.6]":"var(--on-secondary-fixed__600)","onSecondaryFixed[0.65]":"var(--on-secondary-fixed__650)","onSecondaryFixed[0.7]":"var(--on-secondary-fixed__700)","onSecondaryFixed[0.75]":"var(--on-secondary-fixed__750)","onSecondaryFixed[0.8]":"var(--on-secondary-fixed__800)","onSecondaryFixed[0.85]":"var(--on-secondary-fixed__850)","onSecondaryFixed[0.9]":"var(--on-secondary-fixed__900)","onSecondaryFixed[0.95]":"var(--on-secondary-fixed__950)",onSecondaryFixed:"var(--on-secondary-fixed)","secondaryFixedDim[0.1]":"var(--secondary-fixed-dim__100)","secondaryFixedDim[0.15]":"var(--secondary-fixed-dim__150)","secondaryFixedDim[0.2]":"var(--secondary-fixed-dim__200)","secondaryFixedDim[0.25]":"var(--secondary-fixed-dim__250)","secondaryFixedDim[0.3]":"var(--secondary-fixed-dim__300)","secondaryFixedDim[0.35]":"var(--secondary-fixed-dim__350)","secondaryFixedDim[0.4]":"var(--secondary-fixed-dim__400)","secondaryFixedDim[0.45]":"var(--secondary-fixed-dim__450)","secondaryFixedDim[0.5]":"var(--secondary-fixed-dim__500)","secondaryFixedDim[0.55]":"var(--secondary-fixed-dim__550)","secondaryFixedDim[0.6]":"var(--secondary-fixed-dim__600)","secondaryFixedDim[0.65]":"var(--secondary-fixed-dim__650)","secondaryFixedDim[0.7]":"var(--secondary-fixed-dim__700)","secondaryFixedDim[0.75]":"var(--secondary-fixed-dim__750)","secondaryFixedDim[0.8]":"var(--secondary-fixed-dim__800)","secondaryFixedDim[0.85]":"var(--secondary-fixed-dim__850)","secondaryFixedDim[0.9]":"var(--secondary-fixed-dim__900)","secondaryFixedDim[0.95]":"var(--secondary-fixed-dim__950)",secondaryFixedDim:"var(--secondary-fixed-dim)","onSecondaryFixedVariant[0.1]":"var(--on-secondary-fixed-variant__100)","onSecondaryFixedVariant[0.15]":"var(--on-secondary-fixed-variant__150)","onSecondaryFixedVariant[0.2]":"var(--on-secondary-fixed-variant__200)","onSecondaryFixedVariant[0.25]":"var(--on-secondary-fixed-variant__250)","onSecondaryFixedVariant[0.3]":"var(--on-secondary-fixed-variant__300)","onSecondaryFixedVariant[0.35]":"var(--on-secondary-fixed-variant__350)","onSecondaryFixedVariant[0.4]":"var(--on-secondary-fixed-variant__400)","onSecondaryFixedVariant[0.45]":"var(--on-secondary-fixed-variant__450)","onSecondaryFixedVariant[0.5]":"var(--on-secondary-fixed-variant__500)","onSecondaryFixedVariant[0.55]":"var(--on-secondary-fixed-variant__550)","onSecondaryFixedVariant[0.6]":"var(--on-secondary-fixed-variant__600)","onSecondaryFixedVariant[0.65]":"var(--on-secondary-fixed-variant__650)","onSecondaryFixedVariant[0.7]":"var(--on-secondary-fixed-variant__700)","onSecondaryFixedVariant[0.75]":"var(--on-secondary-fixed-variant__750)","onSecondaryFixedVariant[0.8]":"var(--on-secondary-fixed-variant__800)","onSecondaryFixedVariant[0.85]":"var(--on-secondary-fixed-variant__850)","onSecondaryFixedVariant[0.9]":"var(--on-secondary-fixed-variant__900)","onSecondaryFixedVariant[0.95]":"var(--on-secondary-fixed-variant__950)",onSecondaryFixedVariant:"var(--on-secondary-fixed-variant)","tertiaryFixed[0.1]":"var(--tertiary-fixed__100)","tertiaryFixed[0.15]":"var(--tertiary-fixed__150)","tertiaryFixed[0.2]":"var(--tertiary-fixed__200)","tertiaryFixed[0.25]":"var(--tertiary-fixed__250)","tertiaryFixed[0.3]":"var(--tertiary-fixed__300)","tertiaryFixed[0.35]":"var(--tertiary-fixed__350)","tertiaryFixed[0.4]":"var(--tertiary-fixed__400)","tertiaryFixed[0.45]":"var(--tertiary-fixed__450)","tertiaryFixed[0.5]":"var(--tertiary-fixed__500)","tertiaryFixed[0.55]":"var(--tertiary-fixed__550)","tertiaryFixed[0.6]":"var(--tertiary-fixed__600)","tertiaryFixed[0.65]":"var(--tertiary-fixed__650)","tertiaryFixed[0.7]":"var(--tertiary-fixed__700)","tertiaryFixed[0.75]":"var(--tertiary-fixed__750)","tertiaryFixed[0.8]":"var(--tertiary-fixed__800)","tertiaryFixed[0.85]":"var(--tertiary-fixed__850)","tertiaryFixed[0.9]":"var(--tertiary-fixed__900)","tertiaryFixed[0.95]":"var(--tertiary-fixed__950)",tertiaryFixed:"var(--tertiary-fixed)","onTertiaryFixed[0.1]":"var(--on-tertiary-fixed__100)","onTertiaryFixed[0.15]":"var(--on-tertiary-fixed__150)","onTertiaryFixed[0.2]":"var(--on-tertiary-fixed__200)","onTertiaryFixed[0.25]":"var(--on-tertiary-fixed__250)","onTertiaryFixed[0.3]":"var(--on-tertiary-fixed__300)","onTertiaryFixed[0.35]":"var(--on-tertiary-fixed__350)","onTertiaryFixed[0.4]":"var(--on-tertiary-fixed__400)","onTertiaryFixed[0.45]":"var(--on-tertiary-fixed__450)","onTertiaryFixed[0.5]":"var(--on-tertiary-fixed__500)","onTertiaryFixed[0.55]":"var(--on-tertiary-fixed__550)","onTertiaryFixed[0.6]":"var(--on-tertiary-fixed__600)","onTertiaryFixed[0.65]":"var(--on-tertiary-fixed__650)","onTertiaryFixed[0.7]":"var(--on-tertiary-fixed__700)","onTertiaryFixed[0.75]":"var(--on-tertiary-fixed__750)","onTertiaryFixed[0.8]":"var(--on-tertiary-fixed__800)","onTertiaryFixed[0.85]":"var(--on-tertiary-fixed__850)","onTertiaryFixed[0.9]":"var(--on-tertiary-fixed__900)","onTertiaryFixed[0.95]":"var(--on-tertiary-fixed__950)",onTertiaryFixed:"var(--on-tertiary-fixed)","tertiaryFixedDim[0.1]":"var(--tertiary-fixed-dim__100)","tertiaryFixedDim[0.15]":"var(--tertiary-fixed-dim__150)","tertiaryFixedDim[0.2]":"var(--tertiary-fixed-dim__200)","tertiaryFixedDim[0.25]":"var(--tertiary-fixed-dim__250)","tertiaryFixedDim[0.3]":"var(--tertiary-fixed-dim__300)","tertiaryFixedDim[0.35]":"var(--tertiary-fixed-dim__350)","tertiaryFixedDim[0.4]":"var(--tertiary-fixed-dim__400)","tertiaryFixedDim[0.45]":"var(--tertiary-fixed-dim__450)","tertiaryFixedDim[0.5]":"var(--tertiary-fixed-dim__500)","tertiaryFixedDim[0.55]":"var(--tertiary-fixed-dim__550)","tertiaryFixedDim[0.6]":"var(--tertiary-fixed-dim__600)","tertiaryFixedDim[0.65]":"var(--tertiary-fixed-dim__650)","tertiaryFixedDim[0.7]":"var(--tertiary-fixed-dim__700)","tertiaryFixedDim[0.75]":"var(--tertiary-fixed-dim__750)","tertiaryFixedDim[0.8]":"var(--tertiary-fixed-dim__800)","tertiaryFixedDim[0.85]":"var(--tertiary-fixed-dim__850)","tertiaryFixedDim[0.9]":"var(--tertiary-fixed-dim__900)","tertiaryFixedDim[0.95]":"var(--tertiary-fixed-dim__950)",tertiaryFixedDim:"var(--tertiary-fixed-dim)","onTertiaryFixedVariant[0.1]":"var(--on-tertiary-fixed-variant__100)","onTertiaryFixedVariant[0.15]":"var(--on-tertiary-fixed-variant__150)","onTertiaryFixedVariant[0.2]":"var(--on-tertiary-fixed-variant__200)","onTertiaryFixedVariant[0.25]":"var(--on-tertiary-fixed-variant__250)","onTertiaryFixedVariant[0.3]":"var(--on-tertiary-fixed-variant__300)","onTertiaryFixedVariant[0.35]":"var(--on-tertiary-fixed-variant__350)","onTertiaryFixedVariant[0.4]":"var(--on-tertiary-fixed-variant__400)","onTertiaryFixedVariant[0.45]":"var(--on-tertiary-fixed-variant__450)","onTertiaryFixedVariant[0.5]":"var(--on-tertiary-fixed-variant__500)","onTertiaryFixedVariant[0.55]":"var(--on-tertiary-fixed-variant__550)","onTertiaryFixedVariant[0.6]":"var(--on-tertiary-fixed-variant__600)","onTertiaryFixedVariant[0.65]":"var(--on-tertiary-fixed-variant__650)","onTertiaryFixedVariant[0.7]":"var(--on-tertiary-fixed-variant__700)","onTertiaryFixedVariant[0.75]":"var(--on-tertiary-fixed-variant__750)","onTertiaryFixedVariant[0.8]":"var(--on-tertiary-fixed-variant__800)","onTertiaryFixedVariant[0.85]":"var(--on-tertiary-fixed-variant__850)","onTertiaryFixedVariant[0.9]":"var(--on-tertiary-fixed-variant__900)","onTertiaryFixedVariant[0.95]":"var(--on-tertiary-fixed-variant__950)",onTertiaryFixedVariant:"var(--on-tertiary-fixed-variant)","surfaceDim[0.1]":"var(--surface-dim__100)","surfaceDim[0.15]":"var(--surface-dim__150)","surfaceDim[0.2]":"var(--surface-dim__200)","surfaceDim[0.25]":"var(--surface-dim__250)","surfaceDim[0.3]":"var(--surface-dim__300)","surfaceDim[0.35]":"var(--surface-dim__350)","surfaceDim[0.4]":"var(--surface-dim__400)","surfaceDim[0.45]":"var(--surface-dim__450)","surfaceDim[0.5]":"var(--surface-dim__500)","surfaceDim[0.55]":"var(--surface-dim__550)","surfaceDim[0.6]":"var(--surface-dim__600)","surfaceDim[0.65]":"var(--surface-dim__650)","surfaceDim[0.7]":"var(--surface-dim__700)","surfaceDim[0.75]":"var(--surface-dim__750)","surfaceDim[0.8]":"var(--surface-dim__800)","surfaceDim[0.85]":"var(--surface-dim__850)","surfaceDim[0.9]":"var(--surface-dim__900)","surfaceDim[0.95]":"var(--surface-dim__950)",surfaceDim:"var(--surface-dim)","surfaceBright[0.1]":"var(--surface-bright__100)","surfaceBright[0.15]":"var(--surface-bright__150)","surfaceBright[0.2]":"var(--surface-bright__200)","surfaceBright[0.25]":"var(--surface-bright__250)","surfaceBright[0.3]":"var(--surface-bright__300)","surfaceBright[0.35]":"var(--surface-bright__350)","surfaceBright[0.4]":"var(--surface-bright__400)","surfaceBright[0.45]":"var(--surface-bright__450)","surfaceBright[0.5]":"var(--surface-bright__500)","surfaceBright[0.55]":"var(--surface-bright__550)","surfaceBright[0.6]":"var(--surface-bright__600)","surfaceBright[0.65]":"var(--surface-bright__650)","surfaceBright[0.7]":"var(--surface-bright__700)","surfaceBright[0.75]":"var(--surface-bright__750)","surfaceBright[0.8]":"var(--surface-bright__800)","surfaceBright[0.85]":"var(--surface-bright__850)","surfaceBright[0.9]":"var(--surface-bright__900)","surfaceBright[0.95]":"var(--surface-bright__950)",surfaceBright:"var(--surface-bright)","surfaceContainerLowest[0.1]":"var(--surface-container-lowest__100)","surfaceContainerLowest[0.15]":"var(--surface-container-lowest__150)","surfaceContainerLowest[0.2]":"var(--surface-container-lowest__200)","surfaceContainerLowest[0.25]":"var(--surface-container-lowest__250)","surfaceContainerLowest[0.3]":"var(--surface-container-lowest__300)","surfaceContainerLowest[0.35]":"var(--surface-container-lowest__350)","surfaceContainerLowest[0.4]":"var(--surface-container-lowest__400)","surfaceContainerLowest[0.45]":"var(--surface-container-lowest__450)","surfaceContainerLowest[0.5]":"var(--surface-container-lowest__500)","surfaceContainerLowest[0.55]":"var(--surface-container-lowest__550)","surfaceContainerLowest[0.6]":"var(--surface-container-lowest__600)","surfaceContainerLowest[0.65]":"var(--surface-container-lowest__650)","surfaceContainerLowest[0.7]":"var(--surface-container-lowest__700)","surfaceContainerLowest[0.75]":"var(--surface-container-lowest__750)","surfaceContainerLowest[0.8]":"var(--surface-container-lowest__800)","surfaceContainerLowest[0.85]":"var(--surface-container-lowest__850)","surfaceContainerLowest[0.9]":"var(--surface-container-lowest__900)","surfaceContainerLowest[0.95]":"var(--surface-container-lowest__950)",surfaceContainerLowest:"var(--surface-container-lowest)","surfaceContainerLow[0.1]":"var(--surface-container-low__100)","surfaceContainerLow[0.15]":"var(--surface-container-low__150)","surfaceContainerLow[0.2]":"var(--surface-container-low__200)","surfaceContainerLow[0.25]":"var(--surface-container-low__250)","surfaceContainerLow[0.3]":"var(--surface-container-low__300)","surfaceContainerLow[0.35]":"var(--surface-container-low__350)","surfaceContainerLow[0.4]":"var(--surface-container-low__400)","surfaceContainerLow[0.45]":"var(--surface-container-low__450)","surfaceContainerLow[0.5]":"var(--surface-container-low__500)","surfaceContainerLow[0.55]":"var(--surface-container-low__550)","surfaceContainerLow[0.6]":"var(--surface-container-low__600)","surfaceContainerLow[0.65]":"var(--surface-container-low__650)","surfaceContainerLow[0.7]":"var(--surface-container-low__700)","surfaceContainerLow[0.75]":"var(--surface-container-low__750)","surfaceContainerLow[0.8]":"var(--surface-container-low__800)","surfaceContainerLow[0.85]":"var(--surface-container-low__850)","surfaceContainerLow[0.9]":"var(--surface-container-low__900)","surfaceContainerLow[0.95]":"var(--surface-container-low__950)",surfaceContainerLow:"var(--surface-container-low)","surfaceContainer[0.1]":"var(--surface-container__100)","surfaceContainer[0.15]":"var(--surface-container__150)","surfaceContainer[0.2]":"var(--surface-container__200)","surfaceContainer[0.25]":"var(--surface-container__250)","surfaceContainer[0.3]":"var(--surface-container__300)","surfaceContainer[0.35]":"var(--surface-container__350)","surfaceContainer[0.4]":"var(--surface-container__400)","surfaceContainer[0.45]":"var(--surface-container__450)","surfaceContainer[0.5]":"var(--surface-container__500)","surfaceContainer[0.55]":"var(--surface-container__550)","surfaceContainer[0.6]":"var(--surface-container__600)","surfaceContainer[0.65]":"var(--surface-container__650)","surfaceContainer[0.7]":"var(--surface-container__700)","surfaceContainer[0.75]":"var(--surface-container__750)","surfaceContainer[0.8]":"var(--surface-container__800)","surfaceContainer[0.85]":"var(--surface-container__850)","surfaceContainer[0.9]":"var(--surface-container__900)","surfaceContainer[0.95]":"var(--surface-container__950)",surfaceContainer:"var(--surface-container)","surfaceContainerHigh[0.1]":"var(--surface-container-high__100)","surfaceContainerHigh[0.15]":"var(--surface-container-high__150)","surfaceContainerHigh[0.2]":"var(--surface-container-high__200)","surfaceContainerHigh[0.25]":"var(--surface-container-high__250)","surfaceContainerHigh[0.3]":"var(--surface-container-high__300)","surfaceContainerHigh[0.35]":"var(--surface-container-high__350)","surfaceContainerHigh[0.4]":"var(--surface-container-high__400)","surfaceContainerHigh[0.45]":"var(--surface-container-high__450)","surfaceContainerHigh[0.5]":"var(--surface-container-high__500)","surfaceContainerHigh[0.55]":"var(--surface-container-high__550)","surfaceContainerHigh[0.6]":"var(--surface-container-high__600)","surfaceContainerHigh[0.65]":"var(--surface-container-high__650)","surfaceContainerHigh[0.7]":"var(--surface-container-high__700)","surfaceContainerHigh[0.75]":"var(--surface-container-high__750)","surfaceContainerHigh[0.8]":"var(--surface-container-high__800)","surfaceContainerHigh[0.85]":"var(--surface-container-high__850)","surfaceContainerHigh[0.9]":"var(--surface-container-high__900)","surfaceContainerHigh[0.95]":"var(--surface-container-high__950)",surfaceContainerHigh:"var(--surface-container-high)","surfaceContainerHighest[0.1]":"var(--surface-container-highest__100)","surfaceContainerHighest[0.15]":"var(--surface-container-highest__150)","surfaceContainerHighest[0.2]":"var(--surface-container-highest__200)","surfaceContainerHighest[0.25]":"var(--surface-container-highest__250)","surfaceContainerHighest[0.3]":"var(--surface-container-highest__300)","surfaceContainerHighest[0.35]":"var(--surface-container-highest__350)","surfaceContainerHighest[0.4]":"var(--surface-container-highest__400)","surfaceContainerHighest[0.45]":"var(--surface-container-highest__450)","surfaceContainerHighest[0.5]":"var(--surface-container-highest__500)","surfaceContainerHighest[0.55]":"var(--surface-container-highest__550)","surfaceContainerHighest[0.6]":"var(--surface-container-highest__600)","surfaceContainerHighest[0.65]":"var(--surface-container-highest__650)","surfaceContainerHighest[0.7]":"var(--surface-container-highest__700)","surfaceContainerHighest[0.75]":"var(--surface-container-highest__750)","surfaceContainerHighest[0.8]":"var(--surface-container-highest__800)","surfaceContainerHighest[0.85]":"var(--surface-container-highest__850)","surfaceContainerHighest[0.9]":"var(--surface-container-highest__900)","surfaceContainerHighest[0.95]":"var(--surface-container-highest__950)",surfaceContainerHighest:"var(--surface-container-highest)","themelessSurface[0.1]":"var(--themeless-surface__100)","themelessSurface[0.15]":"var(--themeless-surface__150)","themelessSurface[0.2]":"var(--themeless-surface__200)","themelessSurface[0.25]":"var(--themeless-surface__250)","themelessSurface[0.3]":"var(--themeless-surface__300)","themelessSurface[0.35]":"var(--themeless-surface__350)","themelessSurface[0.4]":"var(--themeless-surface__400)","themelessSurface[0.45]":"var(--themeless-surface__450)","themelessSurface[0.5]":"var(--themeless-surface__500)","themelessSurface[0.55]":"var(--themeless-surface__550)","themelessSurface[0.6]":"var(--themeless-surface__600)","themelessSurface[0.65]":"var(--themeless-surface__650)","themelessSurface[0.7]":"var(--themeless-surface__700)","themelessSurface[0.75]":"var(--themeless-surface__750)","themelessSurface[0.8]":"var(--themeless-surface__800)","themelessSurface[0.85]":"var(--themeless-surface__850)","themelessSurface[0.9]":"var(--themeless-surface__900)","themelessSurface[0.95]":"var(--themeless-surface__950)",themelessSurface:"var(--themeless-surface)","themelessOnSurface[0.1]":"var(--themeless-on-surface__100)","themelessOnSurface[0.15]":"var(--themeless-on-surface__150)","themelessOnSurface[0.2]":"var(--themeless-on-surface__200)","themelessOnSurface[0.25]":"var(--themeless-on-surface__250)","themelessOnSurface[0.3]":"var(--themeless-on-surface__300)","themelessOnSurface[0.35]":"var(--themeless-on-surface__350)","themelessOnSurface[0.4]":"var(--themeless-on-surface__400)","themelessOnSurface[0.45]":"var(--themeless-on-surface__450)","themelessOnSurface[0.5]":"var(--themeless-on-surface__500)","themelessOnSurface[0.55]":"var(--themeless-on-surface__550)","themelessOnSurface[0.6]":"var(--themeless-on-surface__600)","themelessOnSurface[0.65]":"var(--themeless-on-surface__650)","themelessOnSurface[0.7]":"var(--themeless-on-surface__700)","themelessOnSurface[0.75]":"var(--themeless-on-surface__750)","themelessOnSurface[0.8]":"var(--themeless-on-surface__800)","themelessOnSurface[0.85]":"var(--themeless-on-surface__850)","themelessOnSurface[0.9]":"var(--themeless-on-surface__900)","themelessOnSurface[0.95]":"var(--themeless-on-surface__950)",themelessOnSurface:"var(--themeless-on-surface)","seed[0.1]":"var(--seed__100)","seed[0.15]":"var(--seed__150)","seed[0.2]":"var(--seed__200)","seed[0.25]":"var(--seed__250)","seed[0.3]":"var(--seed__300)","seed[0.35]":"var(--seed__350)","seed[0.4]":"var(--seed__400)","seed[0.45]":"var(--seed__450)","seed[0.5]":"var(--seed__500)","seed[0.55]":"var(--seed__550)","seed[0.6]":"var(--seed__600)","seed[0.65]":"var(--seed__650)","seed[0.7]":"var(--seed__700)","seed[0.75]":"var(--seed__750)","seed[0.8]":"var(--seed__800)","seed[0.85]":"var(--seed__850)","seed[0.9]":"var(--seed__900)","seed[0.95]":"var(--seed__950)",seed:"var(--seed)"}),J=kf;a();a();function $k(e,r){useEffect(()=>{let t=new AbortController;return e(),()=>{t.abort();}},r);}a();function jk(e,r){let t=useRef(true);useEffect(()=>{if(t.current)t.current=false;else return e()},r);}a();function rw(e,r,t){let[o,n]=useState({}),i=C(r);i={...i,...t?.inject?.()||{}};let l=document.getElementById("root")??document.body;return useEffect(()=>{t?.debug&&console.log({elementTag:e,props:r,style:o,timestamp:new Date().toLocaleTimeString()});},[o]),useEffect(()=>{let s=document.createElement(e),g=(Array.isArray(r.children)?r.children:[r.children]).map(h=>{let S=document.createElement(e);return S.innerHTML=Ff.renderToStaticMarkup(h),S});Object.assign(s.style,{...i,visibility:"hidden"}),g.forEach(h=>s.appendChild(h)),l.appendChild(s);let v=getComputedStyle(s),m=Object.keys(i).filter(h=>h in v&&typeof v[h]=="string").map(h=>{let x=v[h];return [h,h==="opacity"?x.toString():x===0?"0px":x]});n(Object.fromEntries(m)),l.removeChild(s);},[r]),{style:o}}a();function qn(e){let[r,t]=useState(e);return {value:r,isOpen:!!r,show:(...o)=>{o[0]===void 0&&typeof r!="boolean"||t(typeof r=="boolean"?true:o[0]);},hide:()=>t(typeof r=="boolean"?false:void 0)}}a();a();var Lt=class extends EventTarget{},zf=new Lt,Er=zf;function uw(e){let[r,t]=useState(),o=useRef(new Map),n=useRef(false);return useEffect(()=>{let i=l=>{if(o.current.get(e)?.(l),n.current){n.current=false;return}t(l.detail);};return Er.addEventListener(e,i),()=>{Er.removeEventListener(e,o.current.get(e)),o.current.delete(e);}},[e,n]),{data:r,emit:useCallback((i,l={skipRender:true})=>{n.current=!!l?.skipRender,Er.dispatchEvent(new CustomEvent(e,{detail:i}));},[e]),addListener:useCallback(i=>{o.current.set(e,i);},[e])}}a();function T(e){let r=useRef({current:e,previous:void 0});return {debug:()=>{let t=r.current.previous,o=r.current.current,n=()=>{if(Array.isArray(t)){let l=t;return {from:t,to:o,difference:o.filter((c,g)=>g<l.length?l[g]!==c:false)}}switch(typeof t){case "string":return {from:t,to:o,difference:o.replace(t,"")};case "object":return {from:t,to:o,difference:Object.fromEntries(Object.keys(t).map(l=>{let s=l;if(o[s]!==t[s])return [s,o[s]]}).filter(l=>!!l))};default:throw new Error("Not yet implemented bro!")}},i=250;return console.log(buildArray(i,l=>l===0||l===i?"/":"*").join(""),n()),n()},upsert:t=>{let o=typeof t=="function"?t(r.current.current):t,n=r.current.current;r.current={current:o,previous:n};},read:()=>r.current.current,delete:()=>{r.current=void 0;}}}a();function dn(e=0){return {defaultPage:e,goTo:()=>null,echo:()=>null,getActivePage:()=>null,isPageActive:()=>null,onPageChange:()=>null}}a();function To(){return useContext(br)}a();function L(){let[,e]=useState(false);return {triggerRerender:()=>e(r=>!r)}}a();function Dw(e,r){let[t,o]=useState(()=>{try{let l=window.sessionStorage.getItem(e);return l?JSON.parse(l):r}catch(l){return console.log(l),r}});return [t,l=>{try{let s=l instanceof Function?l(t):l;o(s),window.sessionStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}},()=>{try{o(r),window.sessionStorage.removeItem(e);}catch(l){console.log(l);}}]}a();export{yt as AttachmentsButton,mt as AttachmentsDialog,me as Avatar,Jo as Badge,B as BasicButton,d as BasicDiv,fe as BasicImg,Lr as BasicOl,Hr as BasicOption,He as BasicSelect,p as BasicSpan,Ya as BasicTable,xt as Calendar,Ed as CalendarDialog,Xe as CancelButton,W as Card,ko as Checkbox,re as ColorResources,eh as ConfirmationDialog,ze as CopyButton,J as CssColors,ce as CssShapes,de as CssSpacing,Ze as DeleteButton,w as Dialog,Yo as Disclaimer,dB as DownloadButton,vv as Drawer,Ic as EditButton,$v as Editable,Qd as EmailComposer,yr as EmptyState,It as ErrorTooltip,$c as ExpandableButton,ch as FancyFormDialog,Rv as FileDropzone,Eh as FileViewer,G as FontSize,rn as Indicator,tn as ItemInfo,Rt as JsonViewer,mf as JwtVerifier,xy as MediaCard,Es as Menu,ud as MoneyDisplayCard,eB as NegativeButton,Zr as NextButton,ei as NoButton,gt as OpenButton,Kc as OptionsButton,mp as PageSlider,Hp as Paper,Fn as PasteButton,ed as PaymentOptionsButton,ht as PaymentOptionsDialog,bu as PictureUploader,Te as Popover,Q5 as PositiveButton,Qr as PreviousButton,Ry as ProfileCard,vd as ReceiptCard,rt as SaveButton,vt as SearchTextField,Ep as SegmentedControls,pt as SendButton,BC as Separator,Bu as SignInWidget,bh as SimpleFormDialog,Cn as Status,Zp as Stepper,et as SubmitButton,hn as Tag,Lu as TaskLogger,Br as TaskResultDialog,Ot as Terminal,j as TextField,pC as Timeline,Sr as Tooltip,Qe as UploadButton,_P as UploadReceiptButton,Ku as UserProfile,Ct as VerifyButton,At as VerifyTextField,$i as WavyUi,Qn as YesButton,wt as YesNoButtonGroup,nu as YesOrNoForm,C as applyBasicStyle,cx as bankTransferPaymentOption,bm as borderRadius,hm as buildCSS,Em as computedCssVariable,Xi as convertHexUnitTo256,pm as cssTransition,jn as definePaymentOption,Sm as disabledBorderRadius,xm as dragElement,U as ellipsis,_m as flexCenter,pr as getFileIcon,Js as getPaperDim,Yt as getScrollParent,Ui as hexToRgba,dx as inAppPaymentOption,Fr as isOverflown,Kt as isSpanMultiLine,Ji as isValidHex,Bm as nativeEllipsis,Pm as noSpaceStyle,Tm as remAsPx,ji as remToPx,_ as resolveBasicColor,Ie as restrictLineCount,km as rgbToRgba,wm as screenHasMaxWidth,Dm as screenHasMinWidth,Cm as solidBorder,Gt as tiledBackground,$k as useAsyncEffect,rw as useComputedStyle,uw as useEventEmitter,T as useManagedRef,qn as useModalControls,dn as usePageSliderController,To as usePopoverContext,jk as usePostRenderEffect,L as useRerender,Dw as useSessionStorage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavy/react-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Wavy",