@baseline-ui/core 0.13.0 → 0.15.0

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/index.mjs CHANGED
@@ -6,17 +6,18 @@ import { useSeparator, useHover, mergeProps, useOption, useLocale, useListBox, L
6
6
  export { useCollator, useDateFormatter, useNumberFormatter } from 'react-aria';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
8
  import { CheckmarkIcon, TextIcon, HighlightTextIcon } from '@baseline-ui/icons/24/index';
9
- import { sprinkles, lightTheme, themeVars, darkTheme, queries, layoutSprinkleValues } from '@baseline-ui/tokens';
9
+ import { sprinkles, lightTheme, themeVars, darkTheme, queries } from '@baseline-ui/tokens';
10
10
  import { ChevronDownIcon, MinusIcon, PlusIcon, ChevronRightIcon, XIcon } from '@baseline-ui/icons/8';
11
11
  import { ReadOnlyIcon, ErrorFilledIcon, CloseIcon, UndoIcon, RedoIcon, TrashIcon, ArrowDownCircleFilledIcon, XIcon as XIcon$3, WarningFilledIcon, CheckmarkIcon as CheckmarkIcon$3, CheckFilledIcon, ErrorAltFilledIcon, AvatarIcon, InfoFilledIcon, NoneIcon, CaretLeftIcon as CaretLeftIcon$1, CaretRightIcon as CaretRightIcon$1 } from '@baseline-ui/icons/16';
12
12
  import { CheckmarkIcon as CheckmarkIcon$1, MinusIcon as MinusIcon$1, XIcon as XIcon$2, CaretLeftIcon, CaretRightIcon } from '@baseline-ui/icons/12';
13
- import { AvatarIcon as AvatarIcon$1, SearchIcon as SearchIcon$1, CaretLeftIcon as CaretLeftIcon$3, CaretRightIcon as CaretRightIcon$3 } from '@baseline-ui/icons/24';
13
+ import { PauseIcon, PlayIcon, AvatarIcon as AvatarIcon$1, SearchIcon as SearchIcon$1, CaretLeftIcon as CaretLeftIcon$3, CaretRightIcon as CaretRightIcon$3 } from '@baseline-ui/icons/24';
14
14
  import { XIcon as XIcon$1, AtIcon, CrossCircleFilledIcon, ArrowUpCircleFilledIcon, CheckmarkIcon as CheckmarkIcon$2, CheckFilledIcon as CheckFilledIcon$1, ErrorAltFilledIcon as ErrorAltFilledIcon$1, InfoFilledIcon as InfoFilledIcon$1, WarningFilledIcon as WarningFilledIcon$1, PlusIcon as PlusIcon$1, MinusIcon as MinusIcon$2, LinkIcon, SearchIcon, CaretLeftIcon as CaretLeftIcon$2, CaretRightIcon as CaretRightIcon$2 } from '@baseline-ui/icons/20';
15
15
  import { assignInlineVars } from '@vanilla-extract/dynamic';
16
16
  import { Slot } from '@radix-ui/react-slot';
17
17
  import { animated, useReducedMotion, useSpring, useTransition, config, easings } from '@react-spring/web';
18
18
  import { FocusableProvider } from '@react-aria/focus';
19
19
  import { useGranularEffect, useGranularLayoutEffect } from 'granular-hooks';
20
+ import Wy from 'lodash/isEmpty';
20
21
  import { parseColor, useColorAreaState, useColorFieldState, useColorSliderState } from '@react-stately/color';
21
22
  import { useControlledState } from '@react-stately/utils';
22
23
  import { useColorArea, useColorField, useColorSlider } from '@react-aria/color';
@@ -32,7 +33,8 @@ import { kebabCase, camelCase } from 'lodash';
32
33
  import { Element, Text } from 'domhandler';
33
34
  import { slateToHtml, htmlToSlate } from '@slate-serializers/html';
34
35
  import { useInteractionModality } from '@react-aria/interactions';
35
- import Fx from 'markdown-it';
36
+ import s5 from 'markdown-it';
37
+ import { announce } from '@react-aria/live-announcer';
36
38
 
37
39
  /**
38
40
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
@@ -43,6 +45,6 @@ import Fx from 'markdown-it';
43
45
  * This notice may not be removed from this file.
44
46
  *
45
47
  */
46
- function ni(e,o,r){let{direction:a}=useLocale(),i=useDraggableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager,getItems:e.getItems||(p=>[...p].map(n=>{let l=o.collection.getItem(n);return invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});useDraggableCollection(e,i,r);let t=useDroppableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:s}=useDroppableCollection({...e,keyboardDelegate:new ListKeyboardDelegate({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:a}),dropTargetDelegate:new ListDropTargetDelegate(o.collection,r)},t,r);return e.enableReorder?{collectionProps:s,dragState:i,dropState:t}:{collectionProps:{},dropState:void 0,dragState:void 0}}function Tm(e,o){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,o||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return (o==="string"?String:Number)(e)}function Nm(e){var o=Tm(e,"string");return typeof o=="symbol"?o:String(o)}function Sm(e,o,r){return o=Nm(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function pi(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a);}return r}function li(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?pi(Object(r),!0).forEach(function(a){Sm(e,a,r[a]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a));});}return e}function di(e,o){var r={};for(var a in e)r[a]=o(e[a],a);return r}var jm=(e,o,r)=>{for(var a of Object.keys(e)){var i;if(e[a]!==((i=o[a])!==null&&i!==void 0?i:r[a]))return !1}return !0},g=e=>{var o=r=>{var a=e.defaultClassName,i=li(li({},e.defaultVariants),r);for(var t in i){var s,p=(s=i[t])!==null&&s!==void 0?s:e.defaultVariants[t];if(p!=null){var n=p;typeof n=="boolean"&&(n=n===!0?"true":"false");var l=e.variantClassNames[t][n];l&&(a+=" "+l);}}for(var[d,m]of e.compoundVariants)jm(d,i,e.defaultVariants)&&(a+=" "+m);return a};return o.variants=()=>Object.keys(e.variantClassNames),o.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return di(e.variantClassNames,r=>di(r,a=>a.split(" ")[0]))}},o};var mi=g({defaultClassName:"_6n12k9a _1yep5z6j8 _1yep5z6j7 _1yep5z6fs _1yep5z6iq",variantClassNames:{isDropTarget:{true:"_1yep5z6z3"},orientation:{vertical:"_1yep5z612m",horizontal:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),ci="_1yep5z6j6",ui=g({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),gi=g({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6iq _1yep5z6it _1yep5z6j6 _1yep5z6j5 _1yep5z6j3",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z3 _1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6zc _1yep5z6zd _1yep5z6ze"},isHovered:{true:"_1yep5z6xk",false:"_1yep5z6xj"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),bi="_6n12k90";var hi=g({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var E=br.forwardRef(({className:e,style:o,variant:r="primary",orientation:a="horizontal",UNSAFE_omitRole:i,elementType:t="div",...s},p)=>{let{separatorProps:n}=useSeparator({...s,orientation:a,elementType:t});return jsx(t,{...n,className:classNames(hi({isVertical:a==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":a,"data-block-id":s["data-block-id"],style:o,role:i?void 0:n.role,ref:p})});E.displayName="Separator";function Vm(e){return sprinkles.properties.has(e)}var L=br.forwardRef(({elementType:e="div",children:o,...r},a)=>{let i=e,{sprinkleProps:t,domProps:s}=useMemo(()=>{let p={},n={};for(let l in r)Vm(l)?p[l]=r[l]:n[l]=r[l];return {sprinkleProps:p,domProps:n}},[r]);return jsx(i,{...s,className:classNames(sprinkles(t),"BaselineUI-Box",s.className),ref:a,children:o})});L.displayName="Box";var xr=br.forwardRef(({item:e,isDisabled:o,isFocusVisible:r,isSelected:a,liProps:i,showSelectedIcon:t,description:s,descriptionProps:p,labelProps:n,isFocused:l,isPressed:d,_state:m},c)=>{invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:h}=e.value,{hoverProps:b,isHovered:v}=useHover({isDisabled:o}),f=filterTruthyValues({"data-selected":a,"data-disabled":o,"data-focused":l,"data-hovered":v,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":m.selectionManager.selectionMode});return jsxs("li",{...mergeProps(i,b,f),className:classNames(gi({isHovered:v,isFocused:r,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:o}),"BaselineUI-ListBox-Option"),ref:c,children:[jsxs(L,{display:"flex",alignItems:"center",gap:"lg",children:[t&&jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:a&&jsx(CheckmarkIcon,{size:24})}),u&&jsx(u,{size:24}),jsx("span",{...n,children:h})]}),s&&jsx("span",{className:ui({isDisabled:o}),...p,children:s})]})});xr.displayName="DefaultRenderOption";var zo=({dropState:e,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:a,renderDropIndicator:i=({isDropTarget:s,isHidden:p,dropIndicatorProps:n,orientation:l},d)=>p?null:jsx("li",{...n,ref:d,"data-drop-target":s,className:classNames(mi({isDropTarget:s,orientation:l}),"BaselineUI-DropIndicator",a),style:r}),...t})=>{let s=br.useRef(null),{dropIndicatorProps:p,isHidden:n,isDropTarget:l}=useDropIndicator(t,e,s);return i({dropIndicatorProps:{...p,role:"option"},isHidden:n,isDropTarget:l,orientation:o},s)};var xi=({item:e,children:o,state:r,dragState:a,...i})=>{let{dragProps:t}=useDraggableItem({key:e.key},a);return jsxs(Fragment,{children:[jsx(zo,{target:{type:"item",key:e.key,dropPosition:"before"},...i}),o(t),r.collection.getKeyAfter(e.key)==null&&jsx(zo,{target:{type:"item",key:e.key,dropPosition:"after"},...i})]})};xi.displayName="DraggableListOption";var zr=br.forwardRef(({item:e,renderOption:o=(d,m,c)=>jsx(xr,{item:d,liProps:m.optionProps,...m,ref:c}),showSelectedIcon:r,state:a,dragState:i,dropState:t,orientation:s,dropIndicatorStyle:p,dropIndicatorClassName:n},l)=>{let d=br.useRef(null),m=useOption({key:e.key},a,d);return i&&t?jsx(xi,{orientation:s,state:a,item:e,dropState:t,dragState:i,dropIndicatorStyle:p,dropIndicatorClassName:n,children:c=>o(e,{...m,showSelectedIcon:r,_state:a,optionProps:mergeProps(m.optionProps,c)},mergeRefs(d,l))}):o(e,{...m,showSelectedIcon:r,_state:a},mergeRefs(d,l))});zr.displayName="Option";var ko=({section:e,state:o,...r})=>{let{itemProps:a,groupProps:i}=useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),t=o.collection.getChildren?.(e.key);return invariant(t,"items with type `section` must have children"),jsxs(Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsx(E,{UNSAFE_omitRole:!0}),jsx("li",{...a,className:classNames(bi,"BaselineUI-ListBox-Section"),children:jsx("ul",{...i,children:[...t].map(s=>jsx(zr,{item:s,state:o,...r},s.key))})})]})};ko.displayName="ListBoxSection";var wo=br.forwardRef(({className:e,layout:o="stack",orientation:r="vertical",showSelectedIcon:a=!0,UNSAFE_state:i,style:t,renderOption:s,enableReorder:p=!1,"data-block-id":n,renderDragPreview:l,...d},m)=>{let c=br.useRef(null),u=useListState(d),{direction:h}=useLocale(),b=i||u,v=br.useRef(null),{listBoxProps:f}=useListBox({...d,shouldSelectOnPressUp:p,keyboardDelegate:new ListKeyboardDelegate({collection:b.collection,ref:v,layout:o,orientation:r,direction:h,disabledKeys:b.disabledKeys})},b,v),{collectionProps:y,dragState:_,dropState:C}=ni({...d,layout:o,orientation:r,enableReorder:p,preview:c},b,v),{isFocusVisible:P,isFocused:z,focusProps:w}=useFocusRing(),x=filterTruthyValues({"data-block-id":n,"data-layout":o,"data-empty":b.collection.size===0,"data-focused":z,"data-focus-visible":P,"data-orientation":r});return jsxs("ul",{...mergeProps(f,w,x,y),className:classNames(ci,"BaselineUI-ListBox",e),style:t,ref:mergeRefs(m,v),children:[[...b.collection].map(R=>{let M={key:R.key,state:b,dragState:_,dropState:C,renderOption:s,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:a,orientation:r,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName};return R.type==="section"?jsx(ko,{...M,section:R}):jsx(zr,{...M,item:R})}),l&&jsx(DragPreview,{ref:c,children:l})]})});wo.displayName="ListBoxBase";var ne=br.forwardRef((e,o)=>jsx(wo,{...e,ref:o,children:r=>r.type==="section"?jsx(Section,{items:r.children,title:r.id,children:a=>jsx(Item,{children:a.label},a.id)},r.id):jsx(Item,{children:r.label},r.id)}));ne.displayName="ListBox";var Jr="uf19bsg _1yep5z6iq",ki=g({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j5 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j0",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6wt"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw",popover:"uf19bse _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6kv _1yep5z6kw _1yep5z6kx _1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6ly _1yep5z6lz _1yep5z6m0 _1yep5z6t7 _1yep5z6t8 _1yep5z6t9"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61gb"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ga _1yep5z61h4"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61gg"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h3"],[{variant:"primary",isPressed:!0},"_1yep5z61h3"],[{variant:"secondary",isPressed:!0},"_1yep5z61gb"],[{variant:"tertiary",isPressed:!0},"_1yep5z61ge _1yep5z61h4"],[{variant:"ghost",isPressed:!0},"_1yep5z61gh"],[{variant:"popover",isPressed:!0},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gf"],[{variant:"popover",size:"lg"},"_1yep5z61dk _1yep5z61ds _1yep5z61e0 _1yep5z61e8"]]});var ea=g({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6c6 _1yep5z6iq",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var Tc={sm:16,md:20},V=br.forwardRef(({label:e,style:o,className:r,iconStart:a,iconEnd:i,variant:t="primary",elementType:s="button",isDisabled:p,size:n="sm","data-block-id":l,...d},m)=>{let c=br.useRef(null),{buttonProps:u,isPressed:h}=useButton({...d,elementType:s,isDisabled:p},c),b=Tc[n],{hoverProps:v,isHovered:f}=useHover({isDisabled:p}),{isFocusVisible:y,isFocused:_,focusProps:C}=useFocusRing();return jsxs(s,{...mergeProps(u,v,C),className:classNames(ea({isDisabled:!!p,isFocusVisible:y,isHovered:f,variant:t,size:n}),"BaselineUI-ActionButton",r),"data-focus-visible":y,"data-focused":_,"data-hovered":f,"data-disabled":p,"data-block-id":l,"data-pressed":h,style:o,ref:mergeRefs(m,c),children:[!!a&&jsx(a,{size:b}),e,!!i&&jsx(i,{size:b}),t==="popover"&&jsx(ChevronDownIcon,{size:8,className:Jr})]})});V.displayName="ActionButton";var kr=g({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var ra="z9nup80",Je="z9nup83",Pi="z9nup87";var wi=br.forwardRef(({className:e,node:o},r)=>{let a=br.useRef(null);return br.useEffect(()=>{let i=a.current;return i?.append(o),()=>{i?.contains(o)&&o.remove();}},[o]),jsx("div",{className:classNames(ra,e),ref:mergeRefs(r,a)})});wi.displayName="DomNodeRenderer";var Ri="_14uvjig0 z9nup81",Ii="_14uvjig7",Ti="_14uvjig3",Ni=g({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Si=g({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),ji="_14uvjig8",Mi=g({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var er=g({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),aa=g({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),rr=g({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),ye="nrh1eh3",_e=g({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),xe=g({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),ar=g({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function ze({description:e,errorMessageProps:o,descriptionProps:r,warningMessage:a,errorMessage:i,labelPosition:t,isDisabled:s}){return e?jsx("div",{...r,className:er({isDisabled:s,labelPosition:t}),children:e}):i?jsx("div",{...o,className:er({hasError:!0,labelPosition:t}),children:i}):a?jsx("div",{className:er({isDisabled:s,labelPosition:t}),children:a}):null}var Li=g({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Bi="_1lnwne0";var Oc={xxs:8,xs:12,sm:16,md:20,lg:24},I=br.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary",UNSAFE_NON_INTERACTIVE:t,elementType:s=t?"div":"button",...p},n)=>{!p["aria-label"]&&!p["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let l=br.useRef(null),{buttonProps:d,isPressed:m}=useButton({...p,elementType:s},l),{isFocusVisible:c,isFocused:u,focusProps:h}=useFocusRing(),{hoverProps:b,isHovered:v}=useHover({isDisabled:p.isDisabled}),f=filterTruthyValues({"data-block-id":p["data-block-id"],"data-focused":u,"data-focus-visible":c,"data-disabled":p.isDisabled,"data-hovered":v,"data-pressed":m});return jsxs(s,{...mergeProps(d,b,h,f),className:classNames(ki({variant:i,size:a,isDisabled:!!p.isDisabled,isFocusVisible:c,isHovered:v,isPressed:m}),"BaselineUI-ActionIconButton",e),ref:mergeRefs(n,l),style:o,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(r,{role:"presentation",size:Oc[a]}),i==="popover"&&jsx(ChevronDownIcon,{size:8,className:Jr})]})});I.displayName="ActionIconButton";var ue=br.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary",showStepper:i=!0,...t},s)=>{let p=br.useRef(null),{locale:n}=useLocale(),l=useNumberFieldState({...t,locale:n}),{hoverProps:d,isHovered:m}=useHover({isDisabled:t.isDisabled}),{focusProps:c,isFocusVisible:u,isFocused:h}=useFocusRing(),{labelProps:b,decrementButtonProps:v,inputProps:f,incrementButtonProps:y,groupProps:_,descriptionProps:C,errorMessageProps:P}=useNumberField(t,l,p),z=useMemo(()=>t.isReadOnly?ReadOnlyIcon:t.isInvalid?ErrorFilledIcon:null,[t.isInvalid,t.isReadOnly]),w=ze({description:t.description,errorMessageProps:P,descriptionProps:C,errorMessage:t.errorMessage,labelPosition:r,isDisabled:t.isDisabled}),x=filterTruthyValues({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":m,"data-focused":h,"data-focus-visible":u,"data-invalid":t.isInvalid,"data-block-id":t["data-block-id"]});return jsxs("div",{style:o,className:classNames(xe({labelPosition:r}),"BaselineUI-NumberInput",e),...x,ref:s,children:[t.label&&jsxs("div",{className:_e({labelPosition:r,hasMessage:!!w}),children:[jsx("label",{...b,className:ye,children:t.label}),r==="start"&&w]}),jsxs("div",{className:classNames({[Je]:t.isDisabled}),children:[jsxs("div",{...mergeProps(_,d),className:classNames(ar({isHovered:m,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:h,variant:a}),{[Bi]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...mergeProps(f,c),ref:p,className:classNames("BaselineUI-NumberInput-Input",aa({isDisabled:t.isDisabled,labelPosition:r}))}),z&&jsx(z,{className:rr({validationState:"error",isReadOnly:t.isReadOnly}),size:16}),i&&jsxs("div",{className:Li({isHoveredOrFocused:m||h,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[jsx(I,{variant:"secondary",size:"xxs",icon:MinusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"}),jsx(E,{style:{height:16},orientation:"vertical"}),jsx(I,{variant:"secondary",size:"xxs",icon:PlusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),r==="top"&&w]})]})});ue.displayName="NumberInput";var Ai=br.forwardRef(({className:e,style:o,onChange:r,onChangeEnd:a,numberFormatOptions:i,isDisabled:t,step:s,minValue:p,maxValue:n,value:l,"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,"data-block-id":h,defaultValue:b,isReadOnly:v,label:f,id:y,includeNumberInput:_},C)=>{let P=br.useRef(null),z={onChange:r===void 0?void 0:D=>r(D[0]),isDisabled:t||v,step:s,minValue:p,maxValue:n,onChangeEnd:a===void 0?void 0:D=>a(D[0]),value:l===void 0?void 0:[l],defaultValue:b===void 0?void 0:[b],"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,id:y,label:f},w=useNumberFormatter(i),x=useSliderState({...z,numberFormatter:w}),{trackProps:R,groupProps:M,labelProps:T}=useSlider(z,x,P),N=jsx(ue,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":T.id,value:x.getThumbValue(0),formatOptions:i,onChange:D=>x.setThumbValue(0,D),style:{width:55,textAlign:"right",flexShrink:0}});return jsxs("div",{...M,style:o,"data-block-id":h,className:classNames(Ri,"BaselineUI-Slider",e),children:[f&&jsxs("div",{className:Ti,children:[jsx("label",{...T,className:classNames(Ni({isDisabled:t,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:f}),_&&N]}),jsxs("div",{className:Ii,children:[jsx("div",{...R,className:classNames(ji,"BaselineUI-Slider-Track"),ref:mergeRefs(P,C),"data-testid":"track",children:jsx(du,{state:x,trackRef:P,isDisabled:t,isReadOnly:v})}),_&&!f&&N]})]})});Ai.displayName="Slider";function du({state:e,trackRef:o,isDisabled:r,isReadOnly:a}){let i=br.useRef(null),{thumbProps:t,inputProps:s,isDragging:p}=useSliderThumb({trackRef:o,inputRef:i},e),{focusProps:n,isFocused:l,isFocusVisible:d}=useFocusRing(),{hoverProps:m,isHovered:c}=useHover({isDisabled:r}),u=filterTruthyValues({"data-disabled":r,"data-readonly":a,"data-hovered":c,"data-focus-visible":d,"data-dragging":p,"data-focused":l});return jsxs(Fragment,{children:[jsx("div",{className:classNames(Mi({isDisabled:r,isFocusVisible:d,active:p,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),jsx("div",{...mergeProps(t,m,u),className:classNames(Si({isDisabled:r,isFocusVisible:d,active:p,isReadOnly:a,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsx(VisuallyHidden,{children:jsx("input",{ref:i,...mergeProps(s,n)})})})]})}var Oi=g({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),qi=g({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Ui="bpklwad",Ki=g({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Gi="bpklwa6",Yi=g({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var $i=br.forwardRef(({className:e,label:o,labelPosition:r="top",statusLabel:a,style:i,"data-block-id":t,...s},p)=>{let n=br.useRef(null),l=useToggleState(s),{inputProps:d,isPressed:m}=useSwitch(s,l,n),{isFocusVisible:c,focusProps:u}=useFocusRing(),{hoverProps:h,isHovered:b}=useHover({isDisabled:s.isDisabled}),v=filterTruthyValues({"data-block-id":t,"data-focused":c,"data-disabled":s.isDisabled,"data-focus-visible":c,"data-selected":l.isSelected,"data-readonly":s.isReadOnly,"data-hovered":b,"data-pressed":m}),f=jsx("div",{className:classNames(Oi({isSelected:l.isSelected,isDisabled:!!s.isDisabled,isFocused:c,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:classNames(qi({isSelected:l.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...mergeProps(v,h),className:classNames(Ki({labelPosition:r}),"BaselineUI-Switch",e),style:i,ref:p,children:[o&&jsx("span",{className:classNames(Ui,"BaselineUI-Switch-Label"),children:o}),jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:n})}),a?jsxs("div",{className:Yi({labelPosition:r}),children:[jsx("span",{className:classNames("BaselineUI-Switch-Status-Label",Gi),children:l.isSelected?a.on:a.off}),f]}):f]})});$i.displayName="Switch";var Qi="_19n40yy9",Ji=g({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var Ru={sm:SearchIcon,md:SearchIcon$1,lg:SearchIcon$1},as=br.forwardRef(({className:e,size:o="md",variant:r="primary",...a},i)=>{let t=br.useRef(null),s=useSearchFieldState(a),{inputProps:p,clearButtonProps:n}=useSearchField({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},s,t),{focusProps:l,isFocusVisible:d,isFocused:m}=useFocusRing({within:!0,isTextInput:!0}),c=Ru[o],u=o==="sm"?XIcon$2:XIcon$3,h=filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":m,"data-disabled":a.isDisabled,"data-focus-visible":d});return jsxs("div",{...h,className:classNames(Ji({size:o,isFocused:m,variant:r,hasText:!!s.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),ref:i,children:[jsx(c,{size:o==="sm"?20:24}),jsx("input",{...mergeProps(p,l),className:Qi,ref:t}),s.value!==""&&jsx(I,{icon:u,...n,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});as.displayName="SearchInput";function jo(e=window){let[o,r]=useState("light"),[a,i]=useState(!1),[t,s]=useState(!1),[p,n]=useState(!1);return useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),d=m=>{r(m.matches?"dark":"light");};return l.matches&&r("dark"),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),useEffect(()=>{let l=e.matchMedia("(prefers-contrast: more)"),d=m=>{i(m.matches);};return i(l.matches),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),d=m=>{s(m.matches);};return l.matches&&s(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),useEffect(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=m=>{n(m.matches);};return l.matches&&n(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),{colorScheme:o,highContrast:a,reducedMotion:t,transparency:p}}var Ce=createContext({theme:lightTheme,setTheme:()=>{}});var os="var(--hj25q10)";var na={LIGHT:{name:"light",theme:lightTheme},DARK:{name:"dark",theme:darkTheme}},Pe=br.forwardRef(({theme:e="system",children:o,setTheme:r,className:a,style:i,UNSAFE_domProps:t,"data-block-id":s},p)=>{let{direction:n}=useLocale(),{colorScheme:l,reducedMotion:d,highContrast:m,transparency:c}=jo(),{name:u,theme:h}=useMemo(()=>{switch(e){case"system":return l==="light"?na.LIGHT:na.DARK;case"light":return na.LIGHT;case"dark":return na.DARK;default:return {name:"custom",theme:e}}},[l,e]),b={"data-theme":u,"data-block-id":s,"data-reduced-motion":d,"data-high-contrast":m,"data-transparency":c};return jsx(Ce.Provider,{value:{theme:h,setTheme:r},children:jsx("div",{...mergeProps(t,b),className:classNames(ra,"BaselineUI-ThemeProvider",a),style:{...assignInlineVars(themeVars,h),...assignInlineVars({[os]:n==="rtl"?"-1":"1"}),...i},ref:p,children:o})})});Pe.displayName="ThemeProvider";var ss=g({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),pa="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",ns=g({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),ps="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",ls="_1yep5z66x _1yep5z66y _1yep5z66z",ds="_1mdhlqv6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69i _1yep5z69j _1yep5z69k";function ms({placement:e}){let o=useReducedMotion();return useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!o,config:config.stiff})}var cs="_1gzftth1",us="var(--_1gzftth0)";var ge=br.forwardRef(({className:e,style:o,state:r,overlayProps:a,underlayClassName:i,children:t,...s},p)=>{let{theme:n}=useContext(Ce),l=br.useRef(null),{underlayProps:d,popoverProps:m,placement:c}=usePopover({...s,popoverRef:l},r),u=ms({placement:c});return useEffect(()=>(s.scrollRef?.current?.addEventListener("scroll",r.close),()=>{s.scrollRef?.current?.removeEventListener("scroll",r.close);}),[s.scrollRef,r.close,s.isNonModal]),u((h,b)=>b&&jsx(Overlay,{children:jsxs(Pe,{ref:p,theme:n,style:o,className:i,UNSAFE_domProps:a,children:[jsx("div",{...d}),jsxs(animated.div,{...m,style:{...m.style,...h,...assignInlineVars({[us]:`${s.triggerRef?.current?.offsetWidth}px`})},ref:mergeRefs(l,p),className:classNames(cs,e),"data-placement":["top","bottom","left","right"].filter(v=>c?.includes(v)),children:[jsx(DismissButton,{onDismiss:r.close}),t,jsx(DismissButton,{onDismiss:r.close})]})]})}))});ge.displayName="PopoverContentCore";var vs="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6j8 _1yep5z6j7 _1yep5z6fm _1yep5z6jb _1yep5z6e0",fs="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Mo=({section:e,showSelectedIcon:o,state:r})=>{let{itemProps:a,groupProps:i,headingProps:t}=useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxs(Fragment,{children:[e.key!==r.collection.getFirstKey()&&jsx(E,{elementType:"li"}),jsxs("li",{...a,children:[e.value?.title&&jsx(VisuallyHidden,{children:jsx("span",{...t,children:e.value.title})}),jsx("ul",{...i,className:fs,children:[...e.childNodes].map(s=>(invariant(s.type==="item"),jsx(da,{item:s,state:r,showSelectedIcon:o},s.key)))})]})]})};Mo.displayName="MenuSection";var da=({item:e,state:o,className:r,showSelectedIcon:a})=>{let i=br.useRef(null),t=useMenuItem({key:e.key},o,i),{isFocusVisible:s,focusProps:p}=useFocusRing();return jsx(xr,{item:e,liProps:mergeProps(t.menuItemProps,p,{className:r}),...t,isFocusVisible:s,ref:i,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:o,showSelectedIcon:a})};da.displayName="MenuItem";var Bo=br.forwardRef(({className:e,itemClassName:o,onContentKeyDown:r,...a},i)=>{let t=useTreeState(a),s=br.useRef(null),{menuProps:p}=useMenu(a,t,s),{keyboardProps:n}=useKeyboard({onKeyDown:r});return jsx("ul",{...mergeProps(p,n),className:classNames(vs,e),ref:mergeRefs(s,i),children:[...t.collection].map(l=>l.type==="section"?jsx(Mo,{section:l,state:t,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key):jsx(da,{item:l,state:t,className:o,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key))})});Bo.displayName="MenuContent";br.createContext({menuTriggerProps:{}});var zs=br.forwardRef(({isDisabled:e,contentClassName:o,state:r,placement:a="bottom start",isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l,triggerButton:d,...m},c)=>{let u=br.useRef(null),{menuTriggerProps:h,menuProps:b}=useMenuTrigger({isDisabled:e,type:"menu"},r,u);return jsxs(Fragment,{children:[jsx(Slot,{...mergeProps(h,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>a.includes(v)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:u,children:d}),r.isOpen&&jsx(ge,{triggerRef:u,state:r,placement:a,isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l||2,className:classNames(pa,"BaselineUI-Menu-Popover"),children:jsx(Bo,{className:o,...b,...m,ref:c,autoFocus:r.focusStrategy||"first"})})]})});zs.displayName="MenuRoot";var Do=br.forwardRef((e,o)=>{let r=e.children;return jsx(zs,{...e,ref:o,triggerButton:r,children:a=>"type"in a&&a.type==="section"?jsx(Section,{items:a.children,title:a.title,children:i=>jsx(Item,{children:i.label},i.id)},a.id):(invariant("label"in a,"Item doesn't have a label"),jsx(Item,{textValue:a.label,children:a.label},a.id))})});Do.displayName="MenuBase";var ks=br.forwardRef(({defaultOpen:e,isOpen:o,onOpenChange:r,...a},i)=>{let t=useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:r});return jsx(Do,{...a,state:t,ref:i})});ks.displayName="Menu";var Cs=g({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var ca=br.forwardRef(({className:e,style:o,children:r,variant:a="default",size:i="md",elementType:t="a",type:s="body","data-block-id":p,...n},l)=>{let d=br.useRef(null),{linkProps:m,isPressed:c}=useLink({...n,elementType:n.onPress?"span":t},d),{isFocusVisible:u,isFocused:h,focusProps:b}=useFocusRing(),{hoverProps:v,isHovered:f}=useHover({isDisabled:n.isDisabled}),y=t,_=filterTruthyValues({"data-block-id":p,"data-disabled":n.isDisabled,"data-focused":h,"data-pressed":c,"data-focus-visible":u,"data-hovered":f});return jsx(y,{...mergeProps(m,b,v,_),className:classNames(Cs({variant:a,isFocusVisible:u,isHovered:f,isDisabled:n.isDisabled,size:i,isActive:c,type:s}),"BaselineUI-Link",e),ref:mergeRefs(d,l),style:o,children:r})});ca.displayName="Link";function ws({isDisabled:e,onValueChange:o,onChange:r,name:a,"aria-describedby":i,"aria-label":t,accept:s,multiple:p}){let n=useId(),l=useId(),d=useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":t?void 0:n,"aria-describedby":i||d,"aria-label":t,onChange:c=>{let u=[...c.target.files||[]];o?.(u),r?.(c);},name:a,accept:s,multiple:p},labelProps:{htmlFor:l,id:n},descriptionProps:{id:d}}}async function Fo({items:e}){let o=e.filter(r=>r.kind==="file").map(r=>(invariant(r.kind==="file"),r.getFile()));return await Promise.all(o)}var Rs=g({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),Is=g({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Ts=g({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Ns=g({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Ls=br.forwardRef(({className:e,label:o,description:r,icon:a,variant:i="default",...t},s)=>{let p=br.useRef(null),{inputProps:n,descriptionProps:l,labelProps:d}=ws(t),{dropProps:m}=useDrop({ref:p,onDrop:async({items:v})=>{let f=v.filter(_=>_.kind==="file").map(_=>(invariant(_.kind==="file"),_.getFile())),y=await Promise.all(f);t.onValueChange?.(y);}}),{focusProps:c,isFocusVisible:u}=useFocusRing(),{hoverProps:h,isHovered:b}=useHover({isDisabled:t.isDisabled});return jsxs("label",{...mergeProps(m,h,d),className:classNames(Rs({variant:i,disabled:t.isDisabled,hoveredOrFocusedOrActive:b||u}),e),ref:mergeRefs(s,p),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(c,n)})}),a&&jsx(a,{size:20,className:Ts({disabled:t.isDisabled})}),jsxs("div",{children:[jsx("div",{className:Ns({disabled:t.isDisabled,hovered:b}),children:o}),r&&jsx("div",{...l,className:Is({disabled:t.isDisabled}),children:r})]})]})});Ls.displayName="FileUpload";var Bs="_12vfhl40 z9nup81",Ds="_12vfhl41 z9nup82",Es=g({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Fs="_12vfhl42",Hs="_12vfhl47",Vs="_12vfhl46 z9nup82",As="_12vfhl45",Os=g({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var qs=br.forwardRef(({className:e,variant:o="active",showValue:r,description:a,errorMessage:i,...t},s)=>{let p=useId(),{labelProps:n,progressBarProps:l}=useProgressBar({...t,"aria-describedby":a?p:t["aria-describedby"]}),{minValue:d=0,maxValue:m=100,value:c=0,label:u}=t,h=(c-d)/(m-d),b=`${Math.round(h*100)}%`,v=jsx("output",{className:Os({hasLabel:!!u}),children:l["aria-valuetext"]}),f=o==="error"?i:a;return jsxs("div",{...l,className:classNames(Bs,e),ref:s,children:[u&&jsxs("div",{className:Ds,children:[jsx("label",{...n,className:Fs,children:u}),r&&v]}),jsxs("div",{className:As,children:[jsxs("div",{className:Vs,children:[jsx("div",{className:Hs,children:jsx("div",{style:{width:b},className:Es({variant:o})})}),!u&&r&&v]}),f&&jsx("div",{className:er({hasError:o==="error"}),id:p,children:f})]})]})});qs.displayName="ProgressBar";function ga({isReadOnly:e,validationState:o}){return e?ReadOnlyIcon:o==="error"?ErrorFilledIcon:o==="warning"?WarningFilledIcon:null}var sr=br.forwardRef(({className:e,validationState:o="valid",variant:r="primary",style:a,labelPosition:i="top",inputStyle:t,inputClassName:s,"data-block-id":p,...n},l)=>{let d=br.useRef(null),{inputProps:m,labelProps:c,descriptionProps:u,errorMessageProps:h,validationErrors:b}=useTextField({...n,validationState:o==="error"?"invalid":"valid"},d),v=n.errorMessage||b.join(" "),f=ze({...n,errorMessage:v,descriptionProps:u,errorMessageProps:h,labelPosition:i});v&&(o="error");let{hoverProps:y,isHovered:_}=useHover({isDisabled:n.isDisabled}),{isFocused:C,focusProps:P,isFocusVisible:z}=useFocusRing(),w=ga({isReadOnly:n.isReadOnly,validationState:o}),x=filterTruthyValues({"data-readonly":n.isReadOnly,"data-disabled":n.isDisabled,"data-validation-state":o,"data-focused":C,"data-focus-visible":z});return jsxs("div",{className:classNames(xe({labelPosition:i}),"BaselineUI-TextInput",e),"data-block-id":p,style:a,ref:l,children:[(n.label||i==="start"&&f)&&jsxs("div",{className:_e({labelPosition:i,hasMessage:!!f}),children:[jsx("label",{...c,className:ye,children:n.label}),i==="start"&&f]}),jsxs("div",{className:classNames({[Je]:n.isDisabled}),children:[jsxs("div",{...y,className:ar({validationState:o,isHovered:_,isFocused:C,variant:r,isReadOnly:!!n.isReadOnly,isDisabled:!!n.isDisabled}),children:[jsx("input",{...mergeProps(m,P,x),className:classNames(aa({isDisabled:n.isDisabled,labelPosition:i}),"BaselineUI-TextInput-Input",s),style:t,ref:d}),w&&jsx(w,{className:rr({validationState:o,isReadOnly:n.isReadOnly}),size:16})]}),i==="top"&&f]})]})});sr.displayName="TextInput";var nr=({value:e,...o})=>{let r=useNumberFormatter(o);return jsx(Fragment,{children:r.format(e)})};nr.displayName="NumberFormat";var Ks="_1yep5z6gb _1yep5z6gc _1yep5z6gd",Gs=g({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),Ys=g({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),Ws=g({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var $s=br.forwardRef(({className:e,count:o,style:r,size:a="md",icon:i,...t},s)=>{let p={isRequired:!1},n=i||(a==="md"?CheckmarkIcon$2:CheckmarkIcon$3);!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let l=br.useRef(null),d=useToggleState({...t,...p}),{inputProps:m,isPressed:c,isDisabled:u,isReadOnly:h,isSelected:b}=useSwitch({...t,...p},d,l),{focusProps:v,isFocused:f,isFocusVisible:y}=useFocusRing(),{hoverProps:_,isHovered:C}=useHover({});return jsxs("label",{ref:s,style:r,className:classNames(Ks,"BaselineUI-Reaction",e),"data-block-id":t["data-block-id"],"data-focused":f,"data-focus-visible":y,"data-disabled":u,"data-hovered":C,"data-pressed":c,"data-selected":b,children:[jsx(VisuallyHidden,{children:jsx("input",{...m,...v,ref:l})}),jsxs("div",{..._,className:Gs({isSelected:b,isFocusVisible:y,isHovered:C,isReadOnly:h,isDisabled:u}),children:[jsx("div",{className:Ws({isDisabled:u,isReadOnly:h}),children:jsx(n,{size:a==="md"?20:16})}),jsx("div",{className:Ys({isSelected:d.isSelected,isDisabled:u,isReadOnly:h,size:a}),children:jsx(nr,{value:o})})]})]})});$s.displayName="Reaction";var Qs=g({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Js=g({defaultClassName:"_1jwycy87 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6cf",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6c3"},variant:{default:"_1yep5z6e8 _1yep5z6d7",inverse:"_1yep5z6bf _1yep5z6e0 _1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Ao=br.forwardRef(({children:e,state:o,overlayProps:r,arrowProps:a,placement:i,variant:t,size:s,tooltipProps:p,includeArrow:n},l)=>{let{tooltipProps:d}=useTooltip({isOpen:o.isOpen},o),m=useMemo(()=>{switch(i){case"top":return {x:0,y:4};case"bottom":return {x:0,y:-4};case"left":return {x:4,y:0};case"right":return {x:-4,y:0};default:return {x:0,y:0}}},[i]),c=useReducedMotion(),[u]=useSpring(()=>({from:{opacity:0,transform:`translate(${m.x}px, ${m.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!c})),h=i==="center"?"bottom":i;return jsxs(animated.span,{...r,style:{...u,...r.style},ref:l,"data-placement":h,children:[n&&jsx("div",{className:Qs({placement:h,variant:t}),...a}),jsx("div",{...mergeProps(d,p),className:Js({variant:t,size:s}),children:e})]})});Ao.displayName="TooltipContent";var ha=br.forwardRef(({className:e,children:o,...r},a)=>{let{theme:i}=useContext(Ce);return jsx(Overlay,{...r,children:jsx(Pe,{ref:a,theme:i,className:e,children:o})})});ha.displayName="Portal";function on({ref:e,onIntersect:o,isDisabled:r,threshold:a,rootMargin:i,root:t}){let s=br.useRef(null);useEffect(()=>{if(r){s.current?.disconnect(),s.current=null;return}s.current=new IntersectionObserver(([p])=>{o(p);},{root:t?.current,rootMargin:i,threshold:a});},[o,r,t,i,a]),useEffect(()=>{let{current:p}=s;return e.current&&p?.observe(e.current),()=>p?.disconnect()},[e]);}function tn({ref:e,onResize:o,isDisabled:r}){let a=br.useRef(null),[i,t]=br.useState();return br.useEffect(()=>{if(r){a.current?.disconnect(),a.current=null;return}a.current=new ResizeObserver(([s])=>{t(s.contentRect),o?.(s);});},[o,r,t]),br.useEffect(()=>{let{current:s}=a;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]),{size:i}}function fa({src:e,alt:o}){let[r,a]=useState(!1),[i,t]=useState(!1),[s,p]=useState(!1),n=()=>{a(!0),p(!1);},l=()=>{t(!0),p(!1);};return useEffect(()=>{if(!e)return;p(!0);let d=new Image;return d.src=e,d.addEventListener("load",n),d.addEventListener("error",l),()=>{d.removeEventListener("load",n),d.removeEventListener("error",l);}},[e]),{isLoaded:r,hasError:i,isLoading:s,imgProps:{src:r?e:void 0,alt:o}}}function we(){let e=useRef(!0);return useEffect(()=>{e.current=!1;},[]),e.current}var sn="SET_STATE",ya="UNDO",_a="REDO",C1=(e,o)=>{let{past:r,present:a,future:i}=e;switch(o.type){case sn:return {past:[...r,a],present:o.data,future:[]};case ya:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[a,...i]};case _a:return {past:[...r,a],present:i[0],future:i.slice(1)};default:throw new Error("Invalid action type")}},nn=(e={},{isDisabled:o,onAction:r})=>{let a=we(),[i,t]=useReducer(C1,{past:[],present:e,future:[]}),{past:s,present:p,future:n}=i,l=b=>t({type:sn,data:b}),d=useRef(),m=()=>{d.current=ya,t({type:ya});},c=()=>{d.current=_a,t({type:_a});},u=!!s?.length,h=!!n?.length;return useGranularEffect(()=>{(d.current===ya||d.current===_a)&&(r?.(p,d.current),d.current=void 0);},[p],[r,a]),{state:p,push:o?()=>{}:l,undo:o?()=>{}:m,redo:o?()=>{}:c,pastStates:s,futureStates:n,canUndo:u,canRedo:h}};var qo=br.createContext({messages:{}}),ln=({children:e,messages:o={},...r})=>jsx(I18nProvider,{...r,children:jsx(qo.Provider,{value:{messages:o},children:e})});ln.displayName="I18nProvider";function F(e){let{messages:o}=useContext(qo),r=useMessageFormatter(e?cleanKeyFromGlobImport(e):o),a=useLocale();return {formatMessage:(i,t)=>{if(typeof i=="object")try{return r(i.id,t)}catch{return i.defaultMessage||i.id}else try{return r(i,t)}catch{return i}},locale:a}}function pe(e){return Object.fromEntries(Object.keys(e).map(o=>[o,e[o].id]))}function zw(e,o,r){let a=br.useRef(null);return br.useEffect(()=>{if(e)return a.current=new MutationObserver(r),a.current.observe(e,o),()=>{a.current&&a.current.disconnect();}},[e,o,r]),a.current}function mn(e,o){let[r,a]=useState(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):o}catch(t){return console.log(t),o}});return [r,t=>{try{let s=t instanceof Function?t(r):t;a(s),window.localStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}}]}function Tw({ref:e,onSelectionChange:o,onSelectionEnd:r,isDisabled:a}){let i=br.useRef(null);usePress({ref:e,isDisabled:a,onPressEnd(){let s=getOwnerWindow(e.current).getSelection();s&&e.current?.contains(s.anchorNode)&&r?.(s);},onPressStart(){let t=getOwnerWindow(e.current);i.current=t.getSelection(),i.current&&i.current.removeAllRanges();}}),useEffect(()=>{let t=e.current;if(!t||a)return;function s(){let l=getOwnerWindow(t).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let p=getOwnerDocument(t);return p.addEventListener("selectionchange",s),()=>{p.removeEventListener("selectionchange",s);}},[e,o,a]);}function xa(e){let[o,r]=br.useState("mobile");return useLayoutEffect$1(()=>{let a=getOwnerWindow(e||document.body),i=a.matchMedia(queries.tablet),t=a.matchMedia(queries.desktop),s=()=>{i.matches?r("tablet"):t.matches?r("desktop"):r("mobile");};return a.addEventListener("resize",s),s(),()=>{a.removeEventListener("resize",s);}},[e]),o}var gn=br.forwardRef(({children:e,placement:o="bottom",delay:r=1e3,closeDelay:a=500,variant:i="default",size:t="md",includeArrow:s=!0,...p},n)=>{let l=br.useRef(null),d=br.useRef(null),m=!p.text||p.isDisabled,c=useTooltipTriggerState({...p,delay:r,closeDelay:a,isDisabled:m}),{triggerProps:u,tooltipProps:h}=useTooltipTrigger({...p,isDisabled:m,delay:r,closeDelay:a},c,l),{overlayProps:b,arrowProps:v,placement:f,updatePosition:y}=useOverlayPosition({arrowSize:s?13:0,targetRef:l,arrowBoundaryOffset:s?8:0,offset:s?12:2,overlayRef:d,placement:o,isOpen:c.isOpen,...p});return on({ref:d,threshold:1,onIntersect:y,isDisabled:!c.isOpen}),tn({ref:l,onResize:y,isDisabled:!c.isOpen}),jsxs(FocusableProvider,{...u,ref:l,children:[e,c.isOpen&&jsx(ha,{disableFocusManagement:!0,children:jsx(Ao,{ref:mergeRefs(n,d),state:c,arrowProps:v,overlayProps:b,placement:f,tooltipProps:h,variant:i,size:t,includeArrow:s,children:p.text})})]})});gn.displayName="Tooltip";var bn="_1azy5686",hn="_1azy5685",vn="var(--_1azy5680)",fn="_1azy5688",yn="_1azy5689",_n="_1azy5681 z9nup82",xn="_1azy5682";var zn="_1azy5687";var J1={sm:16,md:20},eb={sm:[CheckFilledIcon,ErrorAltFilledIcon],md:[CheckFilledIcon$1,ErrorAltFilledIcon$1]},za=br.forwardRef(({className:e,style:o,size:r="md",variant:a="active",...i},t)=>{let{labelProps:s,progressBarProps:p}=useProgressBar({...i,isIndeterminate:!0}),n=J1[r],l=n/2-2,d=2*l*Math.PI,m=eb[r][a==="success"?0:1];return jsxs("div",{className:classNames(_n,e),ref:t,style:{...assignInlineVars({[vn]:`${d}px`}),...o},children:[jsxs("div",{...p,className:xn,children:[(a==="active"||a==="inactive")&&jsxs("svg",{height:n,width:n,viewBox:`0 0 ${n} ${n}`,children:[jsx("circle",{role:"presentation",className:bn,cx:n/2,cy:n/2,r:l}),a==="active"&&jsx("circle",{role:"presentation",className:hn,cx:n/2,cy:n/2,r:l})]}),a==="success"&&jsx(m,{className:zn,size:n}),a==="error"&&jsx(m,{className:fn,size:n})]}),i.label&&jsx("span",{...s,className:yn,children:i.label})]})});za.displayName="ProgressSpinner";var kn=g({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});var lb={md:20,lg:24},Pn=br.forwardRef(({className:e,style:o,iconStart:r,size:a="md",elementType:i="button",...t},s)=>{let p=br.useRef(null),n=useToggleState(t),{buttonProps:l,isPressed:d}=useToggleButton(t,n,p),{hoverProps:m,isHovered:c}=useHover({isDisabled:t.isDisabled}),{isFocusVisible:u,isFocused:h,focusProps:b}=useFocusRing(),v=filterTruthyValues({"data-block-id":t["data-block-id"],"data-focused":h,"data-focus-visible":u,"data-disabled":t.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":n.isSelected});return jsxs(i,{...mergeProps(l,m,b,v),className:classNames(kn({isHovered:c,isFocusVisible:u,isSelected:n.isSelected,size:a,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:o,ref:mergeRefs(p,s),children:[r&&jsx(r,{size:lb[a]}),t.label]})});Pn.displayName="ToggleButton";var ka=g({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),wn=g({defaultClassName:"_16vugd01 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),Rn=g({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});var Nn=br.forwardRef(({className:e,style:o,label:r,labelPosition:a="end","data-block-id":i,...t},s)=>{let p=br.useRef(null),n=useToggleState(t),{isFocusVisible:l,isFocused:d,focusProps:m}=useFocusRing(),{inputProps:c,isPressed:u,isDisabled:h,isSelected:b,isReadOnly:v}=useCheckbox({...t,children:r},n,p),{hoverProps:f,isHovered:y}=useHover({isDisabled:h}),_=filterTruthyValues({"data-disabled":h,"data-readonly":v,"data-hovered":y,"data-selected":b,"data-pressed":u,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":l,"data-focused":d,"data-block-id":i});return jsxs("label",{..._,className:classNames(wn({labelPosition:a}),"BaselineUI-Checkbox",e),style:o,ref:s,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(c,m),ref:p})}),jsxs("div",{...f,className:Rn({isSelected:b&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:l,isDisabled:h,isReadOnly:v,hasError:t.isInvalid,isHovered:y}),children:[b&&!t.isIndeterminate&&jsx(CheckmarkIcon$1,{size:12}),t.isIndeterminate&&jsx(MinusIcon$1,{size:12})]}),r&&jsx("span",{className:ka({isDisabled:h}),children:r})]})});Nn.displayName="Checkbox";var Sn={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var jn=g({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),Mn="_1nsi9h1b",Ln=g({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),Bn="_1nsi9h1c";var Eb={style:"decimal"},Fb={xs:[CaretLeftIcon,CaretRightIcon],sm:[CaretLeftIcon$1,CaretRightIcon$1],md:[CaretLeftIcon$2,CaretRightIcon$2],lg:[CaretLeftIcon$3,CaretRightIcon$3]},Hn=br.forwardRef(({className:e,style:o,minValue:r=1,defaultValue:a=1,incrementAriaLabel:i,decrementAriaLabel:t,"aria-label":s,size:p="md",variant:n="floating",...l},d)=>{let{locale:m}=useLocale(),c=F(Sn),u={...l,formatOptions:Eb,minValue:r,incrementAriaLabel:i||c.formatMessage("nextPage"),decrementAriaLabel:t||c.formatMessage("prevPage"),defaultValue:a,"aria-label":s||c.formatMessage("goToPage")},h=br.useRef(null),b=useNumberFieldState({...u,locale:m}),{inputProps:v,decrementButtonProps:f,incrementButtonProps:y,groupProps:_}=useNumberField({...u,onKeyDown:D=>{D.key==="Enter"&&h.current?.blur(),l.onKeyDown?.(D);}},b,h),{hoverProps:C,isHovered:P}=useHover({}),{focusProps:z,isFocused:w,isFocusVisible:x}=useFocusRing(),R=n==="floating",[M,T]=Fb[p],N=filterTruthyValues({"data-focus-visible":x,"data-focused":w,"data-hovered":P,"data-block-id":l["data-block-id"]});return jsxs("div",{...mergeProps(_,C,N),className:classNames(Ln({size:p,variant:n}),"BaselineUI-Pagination",e),style:o,ref:d,children:[jsx(I,{icon:M,...f,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),n==="floating"&&jsx(E,{orientation:"vertical"}),jsxs("div",{className:jn({isFocusVisible:x,variant:n}),"aria-label":c.formatMessage("pageXofY",{arg0:v.value,arg1:b.maxValue}),children:[jsx("input",{...mergeProps(v,z),ref:h,className:classNames("BaselineUI-Pagination-Input",Mn),style:{width:`${v.value?.toString().length||1}ch`}}),jsxs("span",{className:Bn,children:["/ ",jsx(nr,{value:b.maxValue})]})]}),n==="floating"&&jsx(E,{orientation:"vertical"}),jsx(I,{icon:T,...y,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Hn.displayName="Pagination";var Vn=({date:e,...o})=>{let r=useDateFormatter(o);return jsx(Fragment,{children:r.format(e)})};Vn.displayName="DateFormat";var Ca=g({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),An="_1f789qjj",On="_1f789qj0",qn=g({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});var $b=({item:e,state:o,variant:r="neutral"})=>{let a=br.useRef(null),{focusProps:i,isFocusVisible:t}=useFocusRing({within:!0}),{rowProps:s,gridCellProps:p,removeButtonProps:n,allowsRemoving:l,isDisabled:d,isSelected:m,allowsSelection:c}=useTag({item:e},o,a),u=br.useRef(null),{buttonProps:h}=useButton(n,u),{hoverProps:b,isHovered:v}=useHover({isDisabled:d}),{hoverProps:f,isHovered:y}=useHover({isDisabled:d}),_=e.value?.icon,C=e.value?.variant??r;return jsx("div",{...mergeProps(s,i,f),ref:a,className:Ca({isFocusVisible:t,variant:C,isDisabled:d,allowsRemoving:l,isSelected:m,allowsSelection:c,isHovered:y}),children:jsxs("div",{...p,className:An,children:[m&&jsx(CheckmarkIcon$3,{size:16}),!m&&_&&jsx(_,{size:16}),e.rendered,l&&jsx("button",{...mergeProps(h,b),className:qn({variant:C,isHovered:v}),children:jsx(XIcon$2,{})})]})})},Wo=br.forwardRef(({className:e,style:o,...r},a)=>{let i=br.useRef(null),t=useListState(r),{gridProps:s}=useTagGroup(r,t,i);return jsx("div",{...s,className:classNames(On,e),style:o,ref:mergeRefs(a,i),children:[...t.collection].map(p=>jsx($b,{state:t,item:p,variant:r.variant},p.key))})});Wo.displayName="TagGroupBase";var Yn=br.forwardRef(({items:e,...o},r)=>jsx(Wo,{...o,items:e,ref:r,children:a=>jsx(Item,{children:a.label})}));Yn.displayName="TagGroup";var Wn="_1yep5z6j3",Xn=g({defaultClassName:"_1kvz17db _1yep5z6iq _1yep5z6is",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Zn=g({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iq _1yep5z6ir",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),$n="_1yep5z6d3 _1yep5z6c6",Qn=g({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6iq _1yep5z6it",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Jn="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",ep=g({defaultClassName:"_1kvz17d7 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Zo=br.forwardRef(({children:e,className:o,style:r},a)=>{let{headers:i}=useContext(Re),{disabledKeys:t}=useContext(Re),{keyboardProps:s}=useKeyboard({onKeyDown:p=>{let n=getOwnerDocument(p.target),l=[...i?.keys()||[]].findIndex(h=>i?.get(h)?.current===n.activeElement),d=i?.get(l||0),m=i?.size||0,c=h=>{let b=i.get(h-1<0?m-1:h-1);t?.has(b?.current?.getAttribute("data-key")||"")?c(h-1):b?.current?.focus();},u=h=>{let b=i.get((h+1)%m);t?.has(b?.current?.getAttribute("data-key")||"")?u(h+1):b?.current?.focus();};if(d)switch(p.key){case"Home":{p.preventDefault(),u(-1);break}case"End":{p.preventDefault(),c(m);break}case"ArrowDown":{p.preventDefault(),u(l);break}case"ArrowUp":{p.preventDefault(),c(l);break}default:p.continuePropagation();}}});return jsx("div",{...s,style:r,className:classNames(Wn,o),ref:a,children:br.Children.map(e,(p,n)=>br.cloneElement(p,{index:n}))})});Zo.displayName="AccordionBase";var Re=br.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),op=br.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:r=new Set,expandedKeys:a,expansionMode:i="multiple",onChange:t,className:s,style:p},n)=>{let[l,d]=br.useState(r),m=br.useRef(new Map).current,[c,u]=br.useState(i);return useEffect(()=>{u(c);},[c]),useEffect(()=>{t?.(l);},[l,t]),jsx(Re.Provider,{value:{expandedKeys:a||l,setExpandedKeys:a?()=>{}:d,disabledKeys:o,headers:m,expansionMode:c},children:jsx(FocusScope,{children:jsx(Zo,{className:s,style:p,ref:n,children:e})})})});op.displayName="Accordion";var Qo=br.forwardRef(({title:e,actions:o,controlId:r,value:a,id:i,index:t,subLabel:s,showActionsOnTriggerOnly:p},n)=>{let l=br.useRef(null),{expandedKeys:d,setExpandedKeys:m,expansionMode:c,disabledKeys:u,headers:h}=useContext(Re),b=u?.has(a),v=useFocusManager();invariant(v);let{focusNext:f,focusPrevious:y}=v,{keyboardProps:_}=useKeyboard({onKeyDown:k=>{k.key==="ArrowRight"?f({wrap:!0}):k.key==="ArrowLeft"?y({wrap:!0}):k.continuePropagation();},isDisabled:b});useEffect(()=>{invariant(typeof t=="number","AccordionItem must have an index"),h?.set(t,l);},[t,h]);let C=()=>{m(k=>{let j=new Set(k);return j.has(a)?j.delete(a):(c==="single"&&j.clear(),j.add(a)),j});},{buttonProps:P}=useButton({"aria-expanded":d.has(a),"aria-controls":r,onPress:C,isDisabled:b},l),{pressProps:z}=usePress({onPress:C,isDisabled:b}),{focusProps:w,isFocusVisible:x}=useFocusRing(),{hoverProps:R,isHovered:M}=useHover({isDisabled:b}),{focusProps:T,isFocusVisible:N}=useFocusRing({within:!0}),D=d.has(a);return jsxs("h3",{...mergeProps(_,z,R,T),className:Qn({isFocusVisible:x,isHovered:M,isDisabled:b}),ref:n,children:[jsxs("div",{className:ep({isDisabled:!!b}),children:[jsx(ChevronRightIcon,{className:Zn({isExpanded:D}),size:8}),jsx("button",{...mergeProps(P,w),id:i,"data-key":a,className:Jn,ref:l,children:e})]}),o?.length&&jsx("div",{"data-testid":"action-buttons",className:Xn({showActionsOnTriggerOnly:p,isTriggered:N||M}),children:o.map((k,j)=>jsx(I,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...k},j))}),s&&jsx("div",{className:$n,children:s})]})});Qo.displayName="AccordionHeader";var mp=br.forwardRef(({title:e,actions:o,children:r,value:a,index:i,subLabel:t,style:s,className:p,showActionsOnTriggerOnly:n},l)=>{let d=useId(),m=useId(),{expandedKeys:c}=useContext(Re),u=br.useRef(null),h=c.has(a),b=we(),v=useReducedMotion(),f=useTransition(h?[a]:[],{from:!b&&!v&&{height:0,opacity:0},enter:()=>async y=>{await y({height:u.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:y=>y});return jsxs(Fragment,{children:[jsx(FocusScope,{children:jsx(Qo,{value:a,actions:o,id:m,title:e,controlId:d,ref:l,index:i,subLabel:t,showActionsOnTriggerOnly:n})}),f(y=>jsx(animated.div,{role:"region","aria-labelledby":m,id:d,style:{...y,overflow:"hidden"},children:jsx("div",{ref:u,className:p,style:s,children:r})}))]})});mp.displayName="AccordionItem";var Jo=br.forwardRef(({variant:e,isOpen:o,validationState:r="valid",...a},i)=>{let t=br.useRef(null),{buttonProps:s,isPressed:p}=useButton({...a,isDisabled:a.isDisabled||a.isReadOnly},t),{hoverProps:n,isHovered:l}=useHover({isDisabled:a.isDisabled}),{focusProps:d,isFocused:m,isFocusVisible:c}=useFocusRing(),u=ga({isReadOnly:a.isReadOnly,validationState:r});a.isReadOnly&&(s.disabled=!1);let h=filterTruthyValues({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-focused":m,"data-focus-visible":c,"data-hovered":l,"data-pressed":p,"data-open":o});return jsxs("button",{...mergeProps(s,n,d,h),ref:mergeRefs(i,t),className:classNames(ns({isFocused:c,isDisabled:a.isDisabled}),ar({variant:e,isHovered:l,isFocused:c,validationState:r,isDisabled:!!a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Select-Button"),children:[a.children,u&&jsx("span",{"aria-hidden":!0,className:classNames(rr({validationState:r,isReadOnly:!!a.isReadOnly}),ls),children:jsx(u,{size:16})}),jsx("span",{"aria-hidden":!0,children:jsx(ChevronDownIcon,{size:8,className:ss({isOpen:o})})})]})});Jo.displayName="SelectButton";var rt=br.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary","data-block-id":i,...t},s)=>{let p=br.useRef(null),n=useSelectState({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:l,triggerProps:d,valueProps:m,menuProps:c,descriptionProps:u,errorMessageProps:h}=useSelect({...t,validationState:t.validationState==="error"?"invalid":"valid"},n,p),b=ze({...t,descriptionProps:u,errorMessageProps:h,labelPosition:r}),v=n.selectedItem?.value,f=v&&"icon"in v&&v.icon;return jsxs(Fragment,{children:[jsxs("div",{style:o,className:classNames(xe({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":i,ref:s,children:[(t.label||b)&&jsxs("div",{className:_e({labelPosition:r,hasMessage:!!b}),children:[t.label&&jsx("div",{...l,className:classNames(ye,"BaselineUI-Select-Label"),children:t.label}),r==="start"&&b]}),jsx(HiddenSelect,{state:n,triggerRef:p,isDisabled:t.isDisabled,label:t.label,name:t.name}),jsx(Jo,{...d,isOpen:n.isOpen,variant:a,validationState:t.validationState,ref:p,isReadOnly:t.isReadOnly,children:jsxs("span",{className:ds,children:[f&&jsx(f,{size:24}),jsx("span",{...m,children:v?"label"in v&&v?.label:t.placeholder})]})}),r==="top"&&b]}),n.isOpen&&jsx(ge,{offset:2,state:n,triggerRef:p,style:o,className:classNames(pa,"BaselineUI-Select-Popover"),...t,children:jsx(ne,{...c,label:t.label,items:t.items,UNSAFE_state:n,showSelectedIcon:t.showSelectedIcon,className:ps})})]})});rt.displayName="SelectBase";var Na=br.forwardRef((e,o)=>jsx(rt,{...e,ref:o,children:r=>r.type==="section"?jsx(Section,{items:r.children,title:r.id,children:a=>jsx(Item,{children:a.label},a.id)},r.id):jsx(Item,{textValue:r.label,children:r.label},r.id)}));Na.displayName="Select";var hp="_1017q4c5",vp=g({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),fp="_1017q4c4";var Hh={sm:AvatarIcon,md:AvatarIcon$1},dr=br.forwardRef(({className:e,style:o,size:r="md",icon:a=Hh[r],name:i,imgSrc:t,showInitials:s,isDisabled:p,hasNotifications:n,imgLoading:l,"data-block-id":d},m)=>{let{imgProps:c}=fa({src:t,alt:i}),u=i?.split(" ").map(h=>h[0]).join("");return jsxs("span",{className:classNames(vp({size:r,isDisabled:p}),"BaselineUI-Avatar",e),"data-disabled":p,ref:m,style:o,"aria-disabled":p,"data-block-id":d,children:[t&&jsx("img",{...c,loading:l,className:fp}),!s&&!t&&jsx(a,{size:r==="sm"?16:24}),s&&!t&&(r==="sm"?u[0]:u),n&&jsx("div",{"data-testid":"notification",className:hp})]})});dr.displayName="Avatar";var yp="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",_p=g({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wl"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wp"},variant:{primary:"_1x62fhbb _1yep5z6vm",ghost:"_1yep5z6vp"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g4"],[{variant:"primary",isSelected:!0},"_1yep5z61h2"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h3"]]}),xp=g({defaultClassName:"_1x62fhb3 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t1 _1yep5z6t2 _1yep5z6t3"}},defaultVariants:{},compoundVariants:[]}),zp="_1x62fhbf",kp="_1yep5z6ja _1yep5z6j7 _1yep5z6fk _1yep5z6j9",Cp=g({defaultClassName:"_1x62fhb0 _1yep5z6j3 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1yep5z6xl",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Pp=({state:e,...o})=>{let r=br.useRef(null),{tabPanelProps:a}=useTabPanel(o,e,r),{selectedItem:i}=e,{focusProps:t,isFocusVisible:s}=useFocusRing();if(!i?.value)return null;let{className:p,style:n,"data-block-id":l}=i.value;return jsx("div",{...mergeProps(a,t),ref:r,className:classNames({[kp]:s},"Baseline-Tabs-TabPanel",p),"data-block-id":l,style:n,children:i?.props.children})};var it=br.forwardRef(({className:e,style:o,tabHeaderStyle:r,tabHeaderClassName:a,variant:i="primary",actions:t,onRemove:s,"data-block-id":p,...n},l)=>{let d=useTabListState({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues}),m=br.useRef(null),{tabListProps:c}=useTabList({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues},d,m);return jsxs("div",{className:classNames("BaselineUI-Tabs",e),style:o,ref:l,"data-block-id":p,children:[jsxs("div",{className:classNames(Cp({variant:i}),a),style:r,children:[jsx("div",{...c,className:xp({variant:i}),ref:m,children:[...d.collection].map(u=>(invariant(u.value,"TabItem requires a value prop"),jsx(Rp,{item:u,state:d,onRemove:s,variant:i},u.key)))}),t?.map((u,h)=>jsx("div",{className:yp,children:jsx(I,{...u,variant:"secondary",size:"sm",className:classNames(zp,u.className)})},h))]}),jsx(Pp,{state:d},d.selectedItem?.key)]})});it.displayName="TabsBase";var Rp=({item:e,onRemove:o,state:r,variant:a})=>{let{key:i,value:t}=e,s=br.useRef(null),{tabProps:p,isSelected:n,isDisabled:l}=useTab({key:i},r,s),{hoverProps:d,isHovered:m}=useHover({});invariant(t,"TabButton requires a value prop");let{title:c,icon:u,titleStyle:h,titleClassName:b}=t,{focusProps:v,isFocusVisible:f,isFocused:y}=useFocusRing(),{keyboardProps:_}=useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&o?o(i):P.continuePropagation();}}),C=filterTruthyValues({"data-selected":n,"data-disabled":l,"data-focused":y,"data-hovered":m,"data-focus-visible":f});return jsxs("div",{...mergeProps(_,p,d,v,C),className:classNames(_p({isHovered:m,isSelected:n,isFocusVisible:f,isDisabled:l,variant:a}),"BaselineUI-Tabs-TabButton",b),style:h,ref:s,children:[u&&jsx(u,{size:20}),c,o&&jsx(I,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>o(i),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:n||y||m?1:0}})]})};Rp.displayName="TabButton";var Tp=br.forwardRef(({children:e,...o},r)=>{let a=useMemo(()=>br.Children.map(e,i=>!i||!br.isValidElement(i)||typeof i.type=="string"?null:{...i.props,id:i.props.value}).filter(Boolean),[e]);return jsx(it,{...o,ref:r,items:a,children:i=>jsx(Item,{title:i.title,children:i.children},i.key)})});Tp.displayName="Tabs";var Np=({children:e,title:o,value:r})=>(invariant(r,"TabItem requires a value prop"),invariant(o,"TabItem requires a title prop"),invariant(e,"TabItem requires children"),e);Np.displayName="TabItem";var Sp={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var jp=g({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),Mp=g({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),Lp=g({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Bp=g({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Dp=g({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Ep=g({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Fp=g({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var hv={error:{sm:ErrorAltFilledIcon,md:ErrorAltFilledIcon$1},info:{sm:InfoFilledIcon,md:InfoFilledIcon$1},success:{sm:CheckFilledIcon,md:CheckFilledIcon$1},warning:{sm:WarningFilledIcon,md:WarningFilledIcon$1}},Hp=br.forwardRef(({className:e,description:o,actionLabel:r,onAction:a,style:i,variant:t="info",title:s,arrangement:p="single",onClose:n,size:l="sm"},d)=>{let m=F(Sp),c=r&&jsx(V,{variant:p==="compact"?"tertiary":"ghost",label:r,onPress:a}),u=hv[t][l];return jsxs("div",{className:classNames(Mp({variant:t,arrangement:p,hasButton:!!r||!!n,hasCloseButton:!!n}),e),style:i,role:"alert",ref:d,children:[jsxs("div",{className:Fp({arrangement:p}),children:[jsx(u,{className:Dp({variant:t}),size:16}),jsxs("div",{className:jp({arrangement:p}),children:[jsx("h3",{className:Ep({size:l}),children:s}),jsx("section",{className:Lp({size:l}),children:o})]}),p==="compact"&&c]}),jsxs("div",{className:Bp({arrangement:p}),children:[p!=="compact"&&c,n&&jsx(I,{variant:"secondary",icon:CloseIcon,size:"sm",onPress:n,"aria-label":m.formatMessage("close")})]})]})});Hp.displayName="InlineAlert";var Vp=g({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wl",title:"_1yep5z6wl",label:"_1yep5z6wm",value:"_1yep5z6wm",helper:"_1yep5z6wn",body:"_1yep5z6wl"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61en"],[{type:"title",size:"md"},"_1yep5z61eq"],[{type:"title",size:"lg"},"_1yep5z61et"],[{type:"body",size:"sm"},"_1yep5z61fd"],[{type:"body",size:"md"},"_1yep5z61fg"],[{type:"body",size:"lg"},"_1yep5z61fg"],[{type:"subtitle",size:"sm"},"_1yep5z61f9"],[{type:"subtitle",size:"md"},"_1yep5z61fc"],[{type:"subtitle",size:"lg"},"_1yep5z61fc"],[{type:"label",size:"md"},"_1yep5z61fb"],[{type:"label",size:"lg"},"_1yep5z61fb"],[{type:"value",size:"md"},"_1yep5z61fb"],[{type:"value",size:"lg"},"_1yep5z61fb"],[{type:"helper",size:"sm"},"_1yep5z61f5"]]});var W=br.forwardRef(({elementType:e="span",type:o="title",children:r,size:a="md",...i},t)=>jsx(e,{...i,className:classNames(Vp({size:a,type:o}),"BaselineUI-Text",i.className),ref:t,children:r}));W.displayName="Text";var Ap=g({defaultClassName:"siobe20 _1yep5z6ak _1yep5z6as _1yep5z6j3 _1yep5z6bf _1yep5z6jh _1yep5z6jf _1yep5z6ey _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6xj",medium:"_1yep5z6xk"}},defaultVariants:{},compoundVariants:[]}),Op="siobe23";var {dialog:{row:Up}}=layoutSprinkleValues,La=br.forwardRef(({className:e,style:o,children:r,background:a="medium",title:i,action:t,"data-block-id":s,onCloseRequest:p,...n},l)=>{let{formatMessage:d}=F(),m=br.useRef(null),{dialogProps:c,titleProps:u}=useDialog(n,m);return jsxs("div",{...c,className:classNames(Ap({background:a}),"BaselineUI-Drawer",e),"data-block-id":s,style:o,ref:mergeRefs(l,m),children:[jsxs(L,{paddingLeft:Up.padding.horizontal.lg,paddingRight:Up.padding.horizontal.sm,backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Op,children:[jsx(W,{type:"title",size:"sm",...u,className:Pi,children:i}),jsxs(L,{children:[t&&jsx(I,{...t,variant:"secondary"}),jsx(I,{variant:"secondary",size:"md",icon:XIcon$1,onPress:p,"aria-label":d(Pv.close)})]})]}),jsx(E,{variant:a==="subtle"?"primary":"secondary"}),r]})});La.displayName="Drawer";var Pv=pe({close:{id:"close",defaultMessage:"Close"}});function Gp(e,o,r){let{isDisabled:a}=e,i=useReducedMotion(),[{y:t},s]=useSpring(()=>({y:0,immediate:i,config:{easing:easings.easeOutCubic}})),p=useRef(0),n=useCallback(()=>{s.start({y:p.current,onRest:()=>{o.close();}});},[s,o]),l=useCallback(m=>{m.target.closest("[data-drawer]")||n();},[n]);useGranularLayoutEffect(()=>{p.current=r.current?.offsetHeight||0,s.set({y:p.current}),s.start({y:0,immediate:!!i});},[],[s,i]);let d=t.to({range:[0,p.current/2,p.current],output:[.5,.2,0],extrapolate:"clamp"}).to(m=>`rgba(0,0,0,${m})`);return {overlayProps:{style:a?void 0:{transform:t.to(m=>`translateY(${m}px)`)}},underlayProps:{style:a?void 0:{backgroundColor:d},onClick:a?void 0:l},close:n}}var Yp=g({defaultClassName:"aml2vl0 _1yep5z6ea _1yep5z6g8 _1yep5z6g9 _1yep5z6ga",variantClassNames:{enableDrawer:{false:"_1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var Ie=br.createContext({state:null,triggerProps:{},overlayProps:{}}),Ba=({children:e,...o})=>{let r=useOverlayTriggerState(o),{triggerProps:a,overlayProps:i}=useOverlayTrigger({type:"dialog"},r);return jsx(Ie.Provider,{value:{state:r,triggerProps:a,overlayProps:i},children:e})};Ba.displayName="Modal";var dt=br.createContext({isDrawer:!1,closeDrawer:()=>{}}),qv=animated(Pe),Uv=({children:e,className:o,style:r,isDismissable:a=!0,isKeyboardDismissDisabled:i=!1,portalContainer:t,disableAnimation:s,enableDrawer:p=!1,"data-block-id":n})=>{let{state:l}=br.useContext(Ie),d=xa(t),m=typeof p=="boolean"&&p||p==="auto"&&d==="mobile";invariant(l,"ModalContent must be a child of Modal");let c=br.useRef(null),u=typeof a=="function"?a(m):a,h=typeof i=="function"?i(m):i,{underlayProps:b,overlayProps:v,close:f}=Gp({isDisabled:!m,isDismissable:u},l,c),{modalProps:y,underlayProps:_}=useModalOverlay({isDismissable:!m,isKeyboardDismissDisabled:h},l,c),{theme:C}=useContext(Ce),P=useReducedMotion(),z=useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!P||s,config:{easing:easings.easeInBounce}}),w=useMemo(()=>({...y.style,...m?{...v.style,width:"100%"}:z}),[v.style,y.style,m,z]);return jsx(Overlay,{portalContainer:t,children:jsx(dt.Provider,{value:{isDrawer:m,closeDrawer:f},children:jsx(qv,{className:classNames(Yp({enableDrawer:m}),o),theme:C,UNSAFE_domProps:{...mergeProps(_,b),"data-testid":"underlay","data-block-id":n},style:{...r,...b.style},children:jsx(animated.div,{...mergeProps(y,v),style:w,ref:c,"data-drawer":m,children:e})})})})},Kv=animated(Uv),mt=({children:e,style:o,...r})=>{let{state:a}=br.useContext(Ie);invariant(a,"ModalContent must be a child of Modal");let i=useReducedMotion();return useTransition(a.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!i||r.disableAnimation})((s,p)=>p&&jsx(Kv,{...r,style:{...o,...s},children:typeof e=="function"?e({close:a.close}):e}))};var $p=g({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6yh _1yep5z612y _1yep5z6130",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6uo _1yep5z6uw _1yep5z612m"}},defaultVariants:{},compoundVariants:[]});var ut=br.createContext({titleProps:{}}),le=br.forwardRef(({children:e,className:o,style:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=br.useRef(null),l=br.useRef(null),{isDrawer:d,closeDrawer:m}=useContext(dt),[c,u]=br.useState("");useLayoutEffect(()=>{let v=getOwnerDocument(l.current),f=s["aria-label"]||"";s["aria-labelledby"]&&(f=v.querySelector(`#${s["aria-labelledby"]}`)?.textContent||""),u(f);},[s]);let{dialogProps:h,titleProps:b}=useDialog(s,n);return d?jsx(La,{title:c,onCloseRequest:m,className:o,...s,"data-drawer":!0,"data-block-id":t,ref:mergeRefs(l,p),children:e}):jsx(ut.Provider,{value:{titleProps:b},children:jsx("section",{...h,"data-block-id":t,ref:mergeRefs(n,p),style:r,className:classNames($p({size:d?"content":a,variant:i,isDrawer:d}),"BaselineUI-Dialog",o),children:e})})});le.displayName="Dialog";var el=br.forwardRef(({children:e,className:o,style:r},a)=>{let{titleProps:i}=useContext(ut),t=br.isValidElement(e)?Slot:"h3";return jsx(t,{...i,ref:a,className:o,style:r,children:e})});el.displayName="DialogTitle";var Te={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Ea=({children:e})=>{let{triggerProps:o}=br.useContext(Ie);return jsx(Slot,{...o,children:e})};Ea.displayName="ModalTrigger";var nf=({children:e})=>{let{state:o}=br.useContext(Ie);return jsx(Slot,{onPress:()=>o?.close(),children:e})};var Dr=br.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),He=({children:e,...o})=>{let r=br.useRef(null),a=useOverlayTriggerState(o),i=useOverlayTrigger(o,a);return jsx(Dr.Provider,{value:{state:a,overlayTriggerAria:i,triggerRef:r},children:typeof e=="function"?e(a):e})};var Ne=br.forwardRef((e,o)=>{let{state:r,overlayTriggerAria:{overlayProps:a},triggerRef:i}=useContext(Dr);return invariant(i),r?.isOpen?jsx(ge,{ref:o,...e,triggerRef:e.triggerRef||i,overlayProps:a,state:r}):null});Ne.displayName="PopoverContent";var Ve=({children:e})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=useContext(Dr);invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r;return typeof e=="function"?e({isOpen:o.isOpen,triggerProps:i,triggerRef:a}):jsx(Slot,{...mergeProps(i,{isSelected:o.isOpen}),ref:a,children:e})};var al="_1dbkl5v",ol="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1",tl="_1dbkl5e",il=g({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6je _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j5 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wp"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),sl=g({defaultClassName:"_1dbkl50 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6ly _1yep5z6lz _1yep5z6m0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Fa="_1dbkl5t _1yep5z6ge _1yep5z6gf _1yep5z6gg _1yep5z69f _1yep5z69g _1yep5z69h",nl="_1dbkl5f z9nup87",Ha="_1dbkl5u _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv",pl=g({defaultClassName:"_1dbkl5h _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j5 _1yep5z6j0",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6v1"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),ll="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j6",Va="_1dbkl5n _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",dl="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1",Aa=g({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6km _1yep5z6kn _1yep5z6ko"}},defaultVariants:{},compoundVariants:[]}),gt="_1dbkl514 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",ml="_1dbkl53",cl=g({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6jf _1yep5z6ey _1yep5z6j6 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z6ye"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6u9 _1yep5z6up _1yep5z612m"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61i1"]]}),ul=g({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6d8 _1yep5z6j5 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6it",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isFocusVisible:{true:"_1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6z3"},isDisabled:{true:"_1yep5z6wt"}},defaultVariants:{},compoundVariants:[]}),Er="_1dbkl513",Oa="_1dbkl5o _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",qa="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",bt="_1dbkl516",gl="_1dbkl515",ht="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69l _1yep5z69m _1yep5z69n",Ua=g({defaultClassName:"_1dbkl5w _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ja _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6jf _1yep5z6ji",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z612q _1yep5z6z3 _1yep5z612s"}},defaultVariants:{},compoundVariants:[]}),vt="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy";var Ae=({color:e,isFocusVisible:o,isDisabled:r,isSelected:a,isPresentational:i})=>{let t=e&&e!==be&&parseColor(e),s=t&&t.getChannelValue("alpha")===0,{hoverProps:p,isHovered:n}=useHover({isDisabled:r});return jsx("div",{...p,className:classNames(pl({removeBlendMode:!t,isFocusVisible:o,isDisabled:r,isSelected:a,isHovered:n&&!i&&!r}),{[kr({size:"xs"})]:s}),children:t?jsxs(Fragment,{children:[jsx("div",{className:classNames(Va,kr({size:"xs"}))}),jsx("div",{className:Va,style:{backgroundColor:s?void 0:t.toString("hexa")}})]}):jsx("div",{className:Va,children:jsx(NoneIcon,{size:14})})})};var vl=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],mr=parseColor("#000000").toFormat("hsla"),O="hsla",Hr="hexa";function Oe(e){return typeof e=="string"?parseColor(e).toFormat(O):e?e.toFormat(O):null}function fl(e,o){return e?.getChannelValue("alpha")?o?.toString(Hr)===e.toString(Hr):!o?.getChannelValue("alpha")}function yl(e,o,r){return o?o.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var be="NONE";function _l(e,o){let r=o?.map(i=>({id:parseColor(i.color).toString(Hr),label:i.label}))||[],a={id:be,label:e};return [...r,a]}var Ka=(e,{optionProps:o,isFocusVisible:r,isSelected:a},i)=>(invariant(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...o,ref:i,"aria-label":e.value?.label||void 0,className:ll,children:jsx(Ae,{color:e.value.id,isFocusVisible:r,isSelected:a})}));var kl=({value:e,...o})=>{let r=br.useRef(null),a=br.useRef(null),i=br.useRef(null),t=useColorAreaState({...o,value:e}),{colorAreaProps:s,gradientProps:p,xInputProps:n,yInputProps:l,thumbProps:d}=useColorArea({...o,value:e,inputXRef:r,inputYRef:a,containerRef:i},t);useEffect(()=>{r.current?.focus();},[]);let{focusProps:m,isFocusVisible:c}=useFocusRing();return jsxs("div",{ref:i,...s,className:classNames(al,"BaselineUI-ColorInput-ColorArea"),children:[jsx("div",{...p,className:ml}),jsxs("div",{...d,className:classNames(Ua({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Oe(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:r,...n,...m}),jsx("input",{ref:a,...l,...m})]})]})};var wl=({color:e,setColor:o,allowAlpha:r,...a})=>{let i=useColorFieldState({value:e,onChange:m=>{o(Oe(m)?.toFormat(O).withChannelValue("alpha",e.getChannelValue("alpha")??1)||mr);}}),t=br.useRef(null),{inputProps:s}=useColorField({...a,"aria-label":"Hex"},i,t),{focusProps:p,isFocused:n}=useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:d}=useHover({});return jsxs("div",{className:classNames(gt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsx("input",{...mergeProps(s,p,l),ref:t,className:cl({isFocused:n,isHovered:d,allowAlpha:r})}),r&&jsx(Il,{color:e,setColor:o})]})},Rl=({color:e,setColor:o,allowAlpha:r})=>{let a=e.toFormat("rgba"),{locale:i}=useLocale();return jsxs("div",{className:classNames(gt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsx(ue,{"aria-label":e.getChannelName("red",i),value:a.getChannelValue("red"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("red",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsx(ue,{"aria-label":e.getChannelName("green",i),value:a.getChannelValue("green"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("green",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsx(ue,{"aria-label":e.getChannelName("blue",i),value:a.getChannelValue("blue"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("blue",t).toFormat(O));},step:1,minValue:0,maxValue:255}),r&&jsx(Il,{color:e,setColor:o})]})},Ff={style:"percent",maximumFractionDigits:0},Il=({color:e,setColor:o})=>{let{locale:r}=useLocale(),a=useCallback(i=>{o(e.withChannelValue("alpha",i));},[e,o]);return jsx(ue,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:Ff,className:Er,showStepper:!1,onChange:a,minValue:0,maxValue:1})};var xt=({channel:e,...o})=>{let{locale:r}=useLocale(),a=useColorSliderState({...o,channel:e,locale:r}),i=br.useRef(null),t=br.useRef(null),{trackProps:s,thumbProps:p,inputProps:n}=useColorSlider({...o,channel:e,trackRef:i,inputRef:t,"aria-label":a.value.getChannelName(e,r)},a),{focusProps:l,isFocusVisible:d}=useFocusRing();return jsxs("div",{className:classNames(Ha,{[kr({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...s,ref:i,children:[e==="alpha"&&jsx("div",{className:vt}),jsx("div",{className:Ha,style:s.style}),jsxs("div",{className:classNames(Ua({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...p,children:[jsx("div",{className:vt,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:a.getDisplayColor().toString("css"),height:8},className:Ha}),jsx(VisuallyHidden,{children:jsx("input",{ref:t,...n,...l})})]})]})};var Ga=({color:e,setColor:o,allowAlpha:r})=>{let[a,i]=br.useState("hex"),{formatMessage:t}=F(Te);return jsxs(Fragment,{children:[jsx(kl,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o}),jsxs("div",{className:ht,children:[jsx(xt,{channel:"hue",value:e,onChange:o}),r&&jsx(xt,{channel:"alpha",value:e,onChange:o})]}),jsxs("div",{className:classNames(ht,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(Na,{label:t("colorFormat"),labelPosition:"start",variant:"ghost",items:vl,selectedKey:a,onSelectionChange:s=>i(s)}),a==="hex"&&jsx(wl,{color:e,setColor:o,allowAlpha:r}),a==="rgb"&&jsx(Rl,{color:e,setColor:o,allowAlpha:r})]})]})};var Ct=({color:e,setColor:o,storePickedColorKey:r,addColorButtonLabel:a,removeColorButtonLabel:i,customColorsLabel:t,pickerMode:s,allowAlpha:p})=>{let{formatMessage:n}=F(Te),l=br.useRef(null),d=xa(l.current),[m,c]=mn(r,[]),u=br.useRef(null),[h,b]=br.useState(e),v=br.useMemo(()=>m.map(z=>({id:z,label:z,description:z})),[m]),f=useCallback(()=>{let z=s==="active"?e:h;if(m.includes(z.toString(O))){u.current?.querySelector(`[data-key='${z.toString(O)}']`)?.classList.add(bt);return}c([...m,z.toString(O)]);},[m,e,c,h,s]);useEffect(()=>{let z=u.current;function w(x){x.animationName===gl&&x.target?.classList.remove(bt);}return z?.addEventListener("animationend",w),()=>{z?.removeEventListener("animationend",w);}},[]);let y=useId(),_=jsx(I,{ref:l,variant:"secondary",size:"md","aria-label":a,icon:PlusIcon$1,onPress:s==="active"?f:void 0}),C=useCallback(z=>jsxs(le,{size:"content",className:Aa({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":n("newColor"),children:[jsx(Ga,{color:h,setColor:b,allowAlpha:p}),jsx(E,{}),jsx(L,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(L,{display:"inline-flex",gap:"lg",children:[jsx(V,{label:n("cancel"),size:"sm",variant:"secondary",onPress:z}),jsx(V,{label:n("add"),variant:"primary",onPress:()=>{f(),z();},size:"sm"})]})})]}),[h,f,n,p]),P=useCallback(z=>{invariant(z instanceof Set,"Key must be a set");let w=[...z][0];w&&o(parseColor(w).toFormat(O));},[o]);return jsxs(Fragment,{children:[jsx(E,{}),jsxs("div",{className:classNames(dl,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:y,children:t}),jsxs(L,{display:"flex",children:[!!m.length&&m.includes(e.toString(O))&&jsx(I,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":i,onPress:()=>{c(m.filter(z=>z!==e.toString(O)));}}),s==="active"&&_,s==="lazy"&&(d==="mobile"?jsxs(Ba,{children:[jsx(Ea,{children:_}),jsx(mt,{style:{zIndex:1e5},children:({close:z})=>C(z)})]}):jsx(He,{type:"dialog",children:({close:z})=>jsxs(Fragment,{children:[jsx(Ve,{children:_}),jsx(Ne,{placement:"right top",className:Oa,offset:6,children:C(z)})]})}))]})]}),!!m.length&&jsx(ne,{items:v,layout:"grid","aria-labelledby":y,className:classNames(Fa,qa,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ka,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(O)],onSelectionChange:P})]})};var Pt=br.forwardRef(({setColor:e,color:o,triggerRef:r,autoFocus:a,presets:i,state:t},s)=>{let{formatMessage:p}=F(Te),n=useCallback(l=>{if(l instanceof Set&&l.size){let d=[...l][0],m=i.find(c=>c.id===d);invariant(m,"Preset not found"),e(m.id===be?null:parseColor(m.id).toFormat(O)),t.close();}},[t,i,e]);return jsx("div",{className:classNames(qa,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:s,children:jsx(ne,{autoFocus:a,items:i,layout:"grid","aria-label":p("colorPresets"),className:Fa,renderOption:Ka,selectionMode:"single",selectedKeys:[o?.toString(Hr)||be],onSelectionChange:n})})});Pt.displayName="ColorPresetList";var Rt=br.forwardRef((e,o)=>{let r=br.useRef(null),{hoverProps:a,isHovered:i}=useHover({isDisabled:e.isDisabled}),{buttonProps:t,isPressed:s}=useButton(e,r),{isFocusVisible:p,focusProps:n}=useFocusRing(),l=filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":e.isDisabled,"data-hovered":i,"data-pressed":s});return jsx("button",{...mergeProps(t,a,n,l),style:e.style,className:classNames(il({isHovered:i,isFocusVisible:p||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:mergeRefs(o,r),children:e.children})});Rt.displayName="ColorInputButton";var ql=br.forwardRef(({className:e,style:o,icon:r,...a},i)=>{let t=br.useRef(null),{hoverProps:s,isHovered:p}=useHover({isDisabled:a.isDisabled}),{buttonProps:n,isPressed:l}=useButton(a,t),{isFocusVisible:d,focusProps:m}=useFocusRing(),c=filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":a.isDisabled,"data-hovered":p,"data-pressed":l});return jsxs("button",{...mergeProps(n,s,m,c),ref:mergeRefs(i,t),style:o,className:classNames(ul({isHovered:p||l||a.isOpen,isFocusVisible:d,isDisabled:a.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsx(r,{size:16}),jsx("div",{className:tl,style:{backgroundColor:a.color}})]})});ql.displayName="IconColorInputButton";var Vr=br.forwardRef(({className:e,style:o,allowRemoval:r,allowAlpha:a=!0,presets:i,labelPosition:t="top",colorLabel:s=!0,includePicker:p=!0,onChange:n,defaultValue:l,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:c,removeColorButtonLabel:u,customColorsLabel:h,renderTriggerButton:b,pickerMode:v="active",offset:f=2,placement:y=t==="start"?"bottom end":"bottom start","data-block-id":_,...C},P)=>{let z=br.useRef(null),w=br.useRef(null),x=useOverlayTriggerState(C),{triggerProps:R,overlayProps:M}=useOverlayTrigger({type:"listbox"},x,z),[T,N]=useControlledState(m===void 0?void 0:Oe(m),Oe(l),G=>n?.(G?.toFormat("rgba")||null)),{formatMessage:D}=F(Te),k=useMemo(()=>_l(D("noColor"),i),[i,D]),j=useMemo(()=>k.find(G=>G.id===be?!T:T?fl(T,parseColor(G.id)):!1),[k,T]),Y=useId(),ie=useMemo(()=>typeof s=="function"?s?.(T):s?yl(T,j,D("transparent")):!1,[T,s,D,j]),fe=useMemo(()=>k.filter(G=>r||G.id!==be),[k,r]),$=c||D("addColor"),X=u||D("removeColor"),K=h||D("customColors");return jsxs(Fragment,{children:[jsxs("div",{className:classNames({[ol]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,style:o,ref:P,children:[C.label&&jsx("label",{id:Y,className:sl({labelPosition:t}),children:C.label}),b?.({isOpen:x.isOpen,color:T,ref:z,colorName:ie,triggerProps:R})||jsxs(Rt,{...mergeProps(R,{...C.label?{"aria-labelledby":Y}:{"aria-label":C["aria-label"]}}),ref:z,isOpen:x.isOpen,isDisabled:C.isDisabled,labelPosition:t,children:[jsx(Ae,{isPresentational:!0,color:T?.toString("hexa")}),s?jsx("div",{className:nl,children:ie}):jsx(VisuallyHidden,{children:ie})]})]}),x.isOpen&&jsx(ge,{...C,placement:y,state:x,offset:f,className:classNames(Oa,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:M,children:jsxs(le,{size:"content",className:Aa({includesCustomColorPicker:p}),ref:w,"aria-labelledby":Y,"aria-label":C["aria-label"],children:[p&&v==="active"&&jsxs(Fragment,{children:[jsx(Ga,{color:T||mr,setColor:N,allowAlpha:a}),jsx(Ct,{color:T||mr,setColor:N,storePickedColorKey:d,addColorButtonLabel:$,removeColorButtonLabel:X,customColorsLabel:K,pickerMode:v,allowAlpha:a})]}),!!fe.length&&jsxs(Fragment,{children:[p&&jsx(E,{}),jsx(Pt,{autoFocus:p&&v==="active"?!1:"first",state:x,triggerRef:z,presets:fe,color:T,setColor:N})]}),p&&v==="lazy"&&jsx(Ct,{color:T||mr,setColor:N,storePickedColorKey:d,addColorButtonLabel:$,removeColorButtonLabel:X,customColorsLabel:K,pickerMode:v,allowAlpha:a})]})})]})});Vr.displayName="ColorInput";var Kl={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var Za=g({defaultClassName:"mnnh5s1 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6iq _1yep5z6it _1yep5z6j5 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq _1yep5z6yi _1yep5z612z _1yep5z6130",false:"_1yep5z612m _1yep5z6xm"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6xl"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 _1yep5z6v1"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61hc"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61i1"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61h4"]]}),Gl="_1yep5z6bg",$a=g({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Yl=g({defaultClassName:"_1i0ytqa3 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j3 _1yep5z6j4 _1yep5z6j6",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6xu",false:"_1yep5z6xw"},isDisabled:{true:"_1i0ytqa7 _1yep5z6v1",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61hx _1yep5z61mh _1yep5z61mj"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61hd"],[{isInline:!1,isDisabled:!0},"_1yep5z61hf"]]}),Wl="_1i0ytqa0",Qa=g({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z6xl"},isDisabled:{true:"_1i0ytqad _1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Xl=g({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var Iy={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},$l=br.forwardRef(({className:e,style:o,canvasClassName:r,canvasStyle:a,isBound:i=!0,strokeWidth:t=2,strokeColor:s="#3A87FD",onChange:p,defaultValue:n,onChangeEnd:l,enableHistory:d=!1,isInline:m=!0,isDisabled:c,placeholder:u,clearLabel:h,undoLabel:b,redoLabel:v,footerClassName:f,canvasRef:y,value:_,footerStyle:C,"data-block-id":P,"aria-label":z="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...x},R)=>{let M=F(Kl),T=br.useRef(null),[N,D]=br.useState(_?jt(_):n?jt(n):[]),k=br.useRef((_?.length||n?.length||0)-1),[j,Y]=br.useState(),ie=useId(),{labelProps:fe,fieldProps:$}=useLabel({...x,"aria-label":z,labelElementType:"span"}),{isFocusVisible:X,focusProps:K}=useFocusRing({within:!0}),{hoverProps:G,isHovered:me}=useHover({isDisabled:c}),{undo:Q,redo:Ze,canRedo:$e,canUndo:ce,push:Me}=nn(N,{onAction:S=>{S&&(D(S),k.current=S.length-1,l?.(S.map(ee=>getStroke(ee,A))));},isDisabled:!d}),{keyboardProps:Qe}=useKeyboard({onKeyDown:S=>{S.key==="Backspace"?Xr():S.key==="z"&&(S.metaKey||S.ctrlKey)&&(S.shiftKey?$e&&Ze():ce&&Q());}}),A=br.useMemo(()=>({...Iy,...x}),[x]),J=useCallback(S=>{S.persist(),S.buttons===1&&(invariant(j,"svgCoordinates must be defined"),D(ee=>{let H=[...ee];return H[k.current]=[...H[k.current],{x:i?clamp(S.clientX-j.left,0,j.width):S.clientX-j.left,y:i?clamp(S.clientY-j.top,0,j.height):S.clientY-j.top,pressure:S.pressure}],H}));},[j,i]),_o=useCallback(S=>{S.persist();let ee=S.currentTarget.getBoundingClientRect();Y(ee),S.target.setPointerCapture(S.pointerId),k.current+=1,D(H=>{let Z=[...H];return Z[k.current]=[{x:S.clientX-ee.x,y:S.clientY-ee.y,pressure:S.pressure}],Z});},[]),Wr=we();useGranularEffect(()=>{Wr||p?.(N.map(S=>getStroke(S,A)));},[N],[p,A,Wr]);let Xr=()=>{D([]),k.current=-1,Me([]);},xo=useCallback(()=>{l?.(N.map(S=>getStroke(S,A))),Me(N);},[N,l,A,Me]);return jsxs("div",{ref:mergeRefs(T,R),className:classNames(Wl,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":c,"data-block-id":P,children:[(x.label||d)&&jsxs("div",{className:Xl({isInline:m}),children:[x.label?jsx(W,{type:"label",size:"sm",...fe,children:x.label}):jsx("span",{}),d&&jsxs("div",{children:[jsx(I,{variant:"secondary",size:"sm",isDisabled:!ce||c,icon:UndoIcon,onPress:Q,"aria-label":b||M.formatMessage("undo")}),jsx(I,{variant:"secondary",size:"sm",isDisabled:!$e||c,icon:RedoIcon,onPress:Ze,"aria-label":v||M.formatMessage("redo")})]})]}),jsxs("div",{role:"application",...mergeProps(K,Qe,G,$),tabIndex:c?void 0:0,className:classNames(Za({isInline:m,isHovered:me}),Yl({isFocusVisible:X,isInline:m,isDisabled:!!c}),r),"aria-describedby":x["aria-describedby"]||ie,style:a,ref:y,children:[jsx(VisuallyHidden,{children:jsx("div",{id:ie,children:w})}),jsx("svg",{width:a?.width||"100%",height:a?.height||"100%",onPointerDown:_o,onPointerMove:J,onPointerUp:xo,children:(_?jt(_):N).map((S,ee)=>jsx("path",{d:getSvgPathFromStroke(getStroke(S,A)),stroke:s,strokeWidth:t},ee))})]}),(u||h)&&jsx("div",{style:C,className:classNames(Qa({isInline:m,isDisabled:c}),f),children:(N.length||!u)&&h?jsx(V,{size:"sm",variant:"ghost",label:h,isDisabled:c,onPress:Xr}):jsx(V,{size:"sm",variant:"ghost",label:u,isDisabled:!0})})]})});$l.displayName="FreehandCanvas";var jt=e=>e.map(o=>o.map(([r,a])=>({x:r,y:a,pressure:0})));var Ql="_1vac7ws0",Jl=g({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function rd(e,o){let[r,a]=useState([]),i=()=>e?.flatMap(t=>[...o.querySelectorAll(t)]).map(t=>({current:t}));return useGranularEffect(()=>{a(i());},[],[i]),useGranularEffect(()=>{let t=i();a(t);},[e],[i]),r}function ad(e){let{scrollable:o,ownerDocument:r,onScroll:a}=e;useEffect(()=>{let i=getHTMLElement(o,r);if(i)return (i.style.position==="static"||!i.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),i.addEventListener("scroll",a),()=>{i.removeEventListener("scroll",a);}},[o,a,r]);}var Gy=makeMoveable([Draggable,Resizable,Rotatable,Snappable]),td=br.forwardRef(({className:e,children:o,isRotatable:r,isResizable:a,isDraggable:i,style:t,onTransform:s,onTransformStart:p,onTransformEnd:n,onDoubleClick:l,onDragStart:d,onDragEnd:m,onDrag:c,onResizeStart:u,onResizeEnd:h,onResize:b,onRotateStart:v,onRotateEnd:f,onRotate:y,onSnap:_,isSnappable:C,elementGuidelines:P,hideAnchorOnDrag:z=!0,title:w,rotationPosition:x,autoUpdate:R,bound:M,snapRotationDegrees:T,snapRotationThreshold:N,scrollableAncestor:D,renderDirections:k,stopPropagation:j,transformOrigin:Y,preventDefault:ie},fe)=>{let $=useRef(null),X=useRef(null),[K,G]=useState(document),me=useRef(K.createElement("div")),[Q,Ze]=useState({}),[$e,ce]=useState(!1),[Me,Qe]=useState(!1),[A,J]=useState(),_o=rd(P,K);useLayoutEffect(()=>{let H=me.current;return me.current=K.createElement("div"),()=>{H.remove();}},[K]);let{keyboardProps:Wr}=useKeyboard({onKeyDown:H=>{let Z=H.shiftKey?10:1,se=H.metaKey||H.ctrlKey;se&&H.shiftKey&&(Z=45);function Le(yr,_m="x"){se?X.current?.request("rotatable",{deltaRotate:yr*Z},!0):X.current?.request("draggable",_m==="x"?{deltaX:yr*Z}:{deltaY:yr*Z},!0);}switch(H.key){case"ArrowRight":{Le(1);break}case"ArrowLeft":{Le(-1);break}case"ArrowUp":{Le(-1,"y");break}case"ArrowDown":Le(1,"y");}requestAnimationFrame(()=>{X.current?.updateRect();});}});useEffect(()=>{let H=getOwnerDocument($.current);G(H);let Z=me.current;H.body.append(me.current);function se(yr){Qe(yr.shiftKey);}function Le(){Qe(!1);}return H.addEventListener("keydown",se),H.addEventListener("keyup",Le),()=>{H.removeEventListener("keydown",se),H.removeEventListener("keyup",Le),Z.remove();}},[]),ad({scrollable:D,onScroll:()=>{X.current?.updateRect();},ownerDocument:K});let Xr=useCallback(H=>{Ze(Z=>({...Z,...H.style})),s?.(H);},[s]),xo=useCallback(H=>{if(ce(!0),$.current?.focus(),M){let se=getHTMLElement(M,K)?.getBoundingClientRect();J({position:"client",left:se?.left??0,top:se?.top??0,right:se?.right??0,bottom:se?.bottom??0});}d?.(H);},[M,K,d]),S=useCallback(H=>{ce(!1),m?.(H);},[m]),ee=o({style:{...Q.width&&{width:Q.width},...Q.height&&{height:Q.height}}});return jsxs(Fragment,{children:[jsx("div",{role:"button",...Wr,ref:mergeRefs($,fe),style:{display:"inline-block",...t,...Q},className:classNames(Ql,e),onDoubleClick:l,tabIndex:0,title:w,children:ee}),createPortal(jsx(Gy,{ref:X,target:$,draggable:i,resizable:a,rotatable:r,keepRatio:Me,throttleDrag:1,snappable:C||!!M,elementGuidelines:_o,snapRenderThreshold:.9,className:Jl({isDragging:$e&&z}),onRender:Xr,onDragStart:xo,onDragEnd:S,useResizeObserver:R,useMutationObserver:R,onRenderEnd:n,onDrag:c,onResizeStart:u,onResizeEnd:h,onResize:b,onRotateStart:v,onRotateEnd:f,onRotate:y,onRenderStart:p,onSnap:_,rotationPosition:x,bounds:A,snapRotationDegrees:T,snapRotationThreshold:N,renderDirections:k,stopPropagation:j,preventDefault:ie,transformOrigin:Y}),me.current)]})});td.displayName="Transform";var id={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var pd=br.forwardRef(({className:e,style:o,isInline:r=!0,accept:a="image/*",defaultImageSrc:i,imageSrc:t,imageAlt:s,pickerButtonLabel:p,isDisabled:n,onDrop:l,onPaste:d,includeCheckeredBackground:m=!0,"data-block-id":c,pickerButtonStyle:u,pickerButtonClassName:h,footerClassName:b,footerStyle:v,clearLabel:f,placeholder:y,labelStyle:_,labelClassName:C,...P},z)=>{let w=br.useRef(null),x=br.useRef(null),{formatMessage:R}=F(id),[M,T]=useControlledState(t,i||null,A=>{invariant(typeof A!="string"),P.onValueChange?.(A?[A]:[]);}),N=useMemo(()=>s_(M||void 0),[M]),{fieldProps:D,labelProps:k}=useField(P),{dropProps:j,isDropTarget:Y}=useDrop({ref:w,onDrop:async A=>{if(n)return;let J=await Fo({items:A.items});J.length&&T(J[0]),l?.(A);},...P}),{clipboardProps:ie}=useClipboard({onPaste:async A=>{if(n)return;let J=await Fo({items:A});J.length&&T(J[0]),d?.(A);},...P}),fe=()=>{T(null),x.current&&(x.current.value="");},$={type:"file",onChange:A=>{let J=[...A.target.files];T(J[0]),P.onChange?.(A);},accept:a,disabled:n},{focusProps:X,isFocused:K,isFocusVisible:G}=useFocusRing({within:!0}),{hoverProps:me,isHovered:Q}=useHover({isDisabled:n}),{imgProps:Ze,isLoading:$e,isLoaded:ce}=fa({src:N,alt:s||""}),Me={label:p||R("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:n,excludeFromTabOrder:!0,className:classNames(ea({isFocusVisible:G}),{[Gl]:Y&&!n},h),style:u},Qe=filterTruthyValues({"data-loaded":ce,"data-block-id":c,"data-hovered":Q,"data-focused":K,"data-drop-target":Y,"data-disabled":n,"data-focus-visible":G});return jsxs(L,{...Qe,className:classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:z,children:[jsxs("label",{...mergeProps(j,me,X,k),className:classNames(Za({isInline:r,isHovered:Q,isDisabled:n,hasLoadedImage:!!N&&ce,showFocusRing:Y||!!N&&G}),C),style:_,ref:w,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(D,ie,$),ref:x})}),!N&&jsx(V,{...Me}),!!N&&($e?jsx(za,{}):jsx("img",{className:$a({isInline:r,isDisabled:n,hasLoadedImage:!!N&&ce&&m}),...Ze}))]}),(y||f)&&jsx("div",{style:v,className:classNames(Qa({isInline:r,isDisabled:n}),b),children:(N||!y)&&f?jsx(V,{size:"sm",variant:"ghost",label:f,isDisabled:n,onPress:fe}):jsx(V,{size:"sm",variant:"ghost",label:y,isDisabled:!0})})]})});pd.displayName="ImageDropZone";function s_(e){return e instanceof File?URL.createObjectURL(e):e}var ld="_1vm2oh49 _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6e3",Dt="_1vm2oh48 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6hk _1yep5z6hl _1yep5z6hm",dd=g({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6j9 _1yep5z6j7 _1yep5z6fs _1yep5z6ja _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6j5 _1yep5z6ft _1yep5z6fu _1yep5z6fv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up _1yep5z6yh _1yep5z612y _1yep5z6130",false:"_1yep5z6xw"},isFocusVisible:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6v1"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61hd"],[{accent:"theme",isInline:!0},"_1yep5z61h2"],[{accent:"positive",isInline:!1},"_1yep5z61hf"],[{accent:"theme",isInline:!1},"_1yep5z61h4"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61im _1yep5z61m9 _1yep5z61mb _1yep5z61mc"],[{isHovered:!0,isInline:!0},"_1yep5z61mc _1yep5z61im _1yep5z61m9 _1yep5z61mb"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61he"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61h6"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61h3"]]});var ud=br.forwardRef(({className:e,style:o,isDisabled:r,isInline:a=!0,imageAlt:i,imageSrc:t,svgSrc:s,textValue:p,textStyle:n,onPress:l,onDelete:d,deleteAriaLabel:m,addAriaLabel:c,accent:u="positive","data-block-id":h,...b},v)=>{let{focusProps:f,isFocused:y,isFocusVisible:_}=useFocusRing({within:!0}),{isHovered:C,hoverProps:P}=useHover({isDisabled:r}),{pressProps:z}=usePress({isDisabled:r,onPress:l});invariant(t||s||p,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let w=filterTruthyValues({"data-hovered":C,"data-focus-visible":_,"data-focused":y,"data-disabled":r});return jsxs("div",{...b,className:classNames(dd({isInline:a,isFocusVisible:_,isDisabled:r,isHovered:C,accent:u}),"BaselineUI-Preview",e),"data-block-id":h,"aria-label":b["aria-label"]||i||p,style:o,ref:v,children:[typeof s=="string"?jsx("button",{disabled:r,...mergeProps(P,f,z,w),className:Dt,"aria-label":c,dangerouslySetInnerHTML:{__html:s}}):jsxs("button",{...mergeProps(P,f,z,w),disabled:r,style:n,"aria-label":c,className:Dt,children:[t&&jsx("img",{src:t,alt:i,className:$a({isInline:a,isDisabled:r})}),!!s&&typeof s=="object"&&s,p]}),d&&jsx(I,{isDisabled:r,className:ld,"aria-label":m,size:"xs",icon:TrashIcon,onPress:d})]})});ud.displayName="Preview";var gd="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e",bd=g({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),hd="cw3m0n7",vd=g({defaultClassName:"cw3m0n0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),fd="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j0",yd=g({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var k_=({label:e,description:o},{isSelected:r,isFocusVisible:a,isDisabled:i,optionLabelPosition:t})=>jsxs("div",{className:vd({labelPosition:t}),children:[jsx("div",{className:yd({isSelected:r,isFocusVisible:a,isDisabled:i}),children:r&&jsx("div",{className:hd})}),e&&jsxs("div",{className:gd,children:[jsx("span",{className:ka({isDisabled:i}),children:e}),o&&jsx("span",{className:bd({isDisabled:i}),children:o})]})]}),_d=({state:e,renderOption:o=k_,item:r,optionLabelPosition:a="end",optionStyle:i,optionClassName:t,isReadOnly:s,...p})=>{let n=!!p.isDisabled||!!p.disabledValues?.includes(r.id),l=br.useRef(null),{inputProps:d,isPressed:m,isSelected:c}=useRadio({...p,isDisabled:n,children:r.label,value:r.id},e,l),{focusProps:u,isFocusVisible:h,isFocused:b}=useFocusRing(),{isHovered:v}=useHover({isDisabled:n}),f=filterTruthyValues({"data-selected":c,"data-focused":b,"data-focus-visible":h,"data-hovered":v,"data-disabled":n,"data-pressed":m,"data-read-only":s});return jsxs("label",{...f,style:i,className:classNames("BaselineUI-Radio-Item",t),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:l})}),o(r,{isFocusVisible:h,isSelected:c,isFocused:b,isHovered:v,isDisabled:n,optionLabelPosition:a,isReadOnly:s})]})};var oo=br.forwardRef(({className:e,style:o,optionsContainerClassName:r,optionsContainerStyle:a,items:i,labelPosition:t="top",renderOption:s,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d,"data-block-id":m,...c},u)=>{let h=useRadioGroupState(c),{radioGroupProps:b,labelProps:v,descriptionProps:f,errorMessageProps:y}=useRadioGroup({...c,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d},h),_=ze({...c,descriptionProps:f,errorMessageProps:y,labelPosition:t}),C=filterTruthyValues({"data-orientation":c.orientation,"data-block-id":m,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return jsxs("div",{...mergeProps(b,C),className:classNames(xe({labelPosition:t}),"BaselineUI-RadioGroup",e),style:o,ref:u,children:[(c.label||_)&&jsxs("div",{className:_e({labelPosition:t,hasMessage:!!_}),children:[jsx("span",{...v,className:classNames(ye,"BaselineUI-RadioGroup-Label"),children:c.label}),t==="start"&&_]}),jsxs("div",{className:classNames({[Je]:c.isDisabled}),children:[jsx("div",{className:classNames(fd,r),style:a,children:i.map(P=>jsx(_d,{state:h,renderOption:s,item:P,value:P.id,...c},P.id))}),t==="top"&&_]})]})});oo.displayName="RadioGroup";var xd=({id:e,defaultMessage:o,elementType:r=Fragment$1})=>{invariant(e||o,"`id` or `defaultMessage` is required.");let a=F();return jsx(r,{children:a.formatMessage(e)||o})};xd.displayName="MessageFormat";var zd=br.forwardRef(({className:e,style:o,children:r,role:a="group",isDisabled:i,...t},s)=>{let{hoverProps:p,isHovered:n}=useHover({isDisabled:i});return jsx("div",{...p,role:a,"data-hovered":n,"data-disabled":i,className:e,style:o,...t,ref:s,children:r})});zd.displayName="Group";var kd="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Cd="_1yep5z61jj _1yep5z61jk _1yep5z61jl _1yep5z61ch _1yep5z61ci _1yep5z61cj";var wd=br.forwardRef(({items:e,optionsContainerClassName:o,...r},a)=>{let i=useMemo(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return jsx(oo,{items:i,optionsContainerClassName:classNames(Cd,o),orientation:"horizontal",renderOption:({label:t,id:s},{isSelected:p,isFocusVisible:n})=>jsxs("div",{className:kd,children:[jsx(Ae,{isFocusVisible:n,color:s,isSelected:p}),jsx(VisuallyHidden,{children:t})]}),...r,className:classNames(r.className,"BaselineUI-ColorPresetInput"),ref:a})});wd.displayName="ColorPresetInput";var Rd={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var to=br.forwardRef(({className:e,style:o,"data-block-id":r,"aria-controls":a,...i},t)=>{let s=br.useRef(null),{toolbarProps:p}=useToolbar(i,s),{isFocusVisible:n,focusProps:l}=useFocusRing(),d=filterTruthyValues({"data-block-id":r,"data-focus-visible":n});return jsx("div",{...mergeProps(p,l,d),"aria-controls":a,className:classNames(Rd[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,ref:mergeRefs(t,s),children:i.children})});to.displayName="Toolbar";var Td=g({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),Nd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z6wt"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61m9 _1yep5z61it _1yep5z61gc"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6e1"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ma _1yep5z61m9 _1yep5z61in _1yep5z61gd"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61m9 _1yep5z61mb _1yep5z61im _1yep5z61mc"]]}),Sd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1yep5z6ws"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61gb"]]}),jd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61h4"],[{isSelected:!0,isDisabled:!1},"_1yep5z61h4 _1yep5z61ge"],[{isSelected:!0,isDisabled:!0},"_1yep5z61h4 _1yep5z61gc"]]}),Md=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6wu"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61gd"],[{isSelected:!1,isDisabled:!0},"_1yep5z61gc _1yep5z61h2"],[{isSelected:!1,isHovered:!0},"_1yep5z61h3"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ma _1yep5z61m9 _1yep5z61in"]]});var r4={xxs:8,xs:12,sm:16,md:20,lg:24},io=br.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=br.useRef(null),l=useToggleState(s),{buttonProps:d,isPressed:m}=useToggleButton(s,l,n),{hoverProps:c,isHovered:u}=useHover({isDisabled:s.isDisabled}),{isFocusVisible:h,isFocused:b,focusProps:v}=useFocusRing(),f=useMemo(()=>typeof r=="function"?r:l.isSelected?r.selected:r.unselected,[r,l.isSelected]),y={isSelected:l.isSelected,isHovered:u,isFocusVisible:h,isDisabled:!!s.isDisabled},_=filterTruthyValues({"data-hovered":u,"data-selected":l.isSelected,"data-focus-visible":h,"data-disabled":s.isDisabled,"data-block-id":t,"data-focused":b,"data-pressed":m});return jsx("button",{...mergeProps(d,c,v,_),className:classNames(i==="toolbar"&&Md(y),i==="primary"&&Nd(y),i==="secondary"&&Sd(y),i==="tertiary"&&jd(y),Td({size:a}),"BaselineUI-ToggleIconButton",e),style:o,ref:mergeRefs(n,p),children:jsx(f,{size:r4[a]})})});io.displayName="ToggleIconButton";var Dd="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6h8 _1yep5z6h9 _1yep5z6ha",so="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Ed=g({defaultClassName:"f6jv6b0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6e0",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t4 _1yep5z6t5 _1yep5z6t6 _1yep5z610i _1yep5z610j _1yep5z610k",false:"_1yep5z6103 _1yep5z6104 _1yep5z6105"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61dl _1yep5z61dt _1yep5z61e1 _1yep5z61e9 _1yep5z61mj _1yep5z61mh _1yep5z61i0"]]}),no=g({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6cb _1yep5z6d2 _1yep5z6j6",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]});var Fd=g({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6j5",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isDisabled:{true:"_1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Hd="f6jv6bi _1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0 _1yep5z6j8 _1yep5z6j7 _1yep5z6fn _1yep5z6jb",Vd="_1yep5z6he _1yep5z6hf _1yep5z6hg",Ad="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2 _1yep5z6cb _1yep5z6j3",Od=g({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6hk _1yep5z6hl _1yep5z6hm",variantClassNames:{isInline:{true:"_1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6130 _1yep5z612y _1yep5z6yh",false:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw"}},defaultVariants:{},compoundVariants:[]}),qd="f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2",po=g({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),lo="f6jv6b9 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1";var Ot=({value:e,defaultValue:o,onChange:r,placeholder:a,spellCheck:i,onSave:t,textBoxRef:s,isInline:p,isMinimal:n,isDisabled:l,editableContentAriaLabel:d,editorHandle:m})=>{let c=br.useRef(null),[u,h]=useControlledState(e,o||"",r),b=useCallback(x=>{h(x.currentTarget.value||"");},[h]),v=useCallback(x=>{x.currentTarget.style.height="16px",x.currentTarget.style.height=x.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let x=c.current;x&&(x.style.height="16px",x.style.height=x.scrollHeight+"px");},[n],[u]),useImperativeHandle(m,()=>({setCaretPosition:x=>{c.current&&(c.current.focus(),c.current.setSelectionRange(x,x));}}));let{keyboardProps:f}=useKeyboard({onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),t?.(c.current?.value||""));}}),{focusProps:y,isFocused:_,isFocusVisible:C}=useFocusRing(),{hoverProps:P,isHovered:z}=useHover({}),w=filterTruthyValues({"data-focus-visible":C,"data-hovered":z,"data-focused":_});return jsx("textarea",{...mergeProps(f,y,P,w),ref:mergeRefs(c,s),className:classNames(n?Ad:[no(),po({isInline:p}),qd]),onChange:b,disabled:l,onInput:v,value:u,placeholder:a,spellCheck:i,"aria-label":d})};var Ut=(e,o)=>{let r=Editor.marks(e);return r?r[o]===!0:!1},vr=(e,o)=>{Ut(e,o)?Editor.removeMark(e,o):Editor.addMark(e,o,!0);},je=e=>{ReactEditor.focus(e);};function Ke(e,o){let[r]=Editor.nodes(e,{match:a=>!Editor.isEditor(a)&&Element$1.isElement(a)&&"type"in a&&a.type===o});return r?.[0]}var Or=(e,o)=>{Transforms.unwrapNodes(e,{match:r=>!Editor.isEditor(r)&&Element$1.isElement(r)&&"type"in r&&r.type===o});};function _4(e){if(!e.selection)return;let{selection:o}=e,[r]=Range.edges(o),a=Editor.before(e,r,{unit:"word"}),i=Editor.after(e,r,{unit:"word"});return {anchor:a||r,focus:i||r}}var Kt=(e,o)=>{if(!e.selection)return;if(Ke(e,"link")){let t=_4(e);t&&Range.isCollapsed(t)&&Transforms.select(e,t),Or(e,"link");}let{selection:r}=e,a=r&&Range.isCollapsed(r),i={type:"link",url:o,children:a?[{text:o}]:[]};a?Transforms.insertNodes(e,i):(Transforms.wrapNodes(e,i,{split:!0}),Transforms.collapse(e,{edge:"end"}));},Gd=e=>{let{isInline:o}=e;return e.isInline=r=>"type"in r&&(r.type==="link"||r.type==="span")||o(r),e},Yd=e=>{let{isInline:o,isVoid:r,markableVoid:a}=e;return e.isInline=i=>"type"in i&&i.type==="mention"?!0:o(i),e.isVoid=i=>"type"in i&&i.type==="mention"?!0:r(i),e.markableVoid=i=>"type"in i&&i.type==="mention"||a(i),e},Wd=(e,o)=>{let r=Ke(e,"span"),a={};if(r){let t=new Set(["type","children"]);a=Object.fromEntries(Object.keys(r).filter(s=>!t.has(s)).filter(s=>!!r[s]).map(s=>[s,r[s]])),Or(e,"span");}let i={...r,type:"span",...a,children:[]};delete i[o],Transforms.wrapNodes(e,i,{split:!0}),Transforms.collapse(e,{edge:"end"});},Xd=(e,o,r)=>{if(!e.selection)return;let a=Ke(e,"span");a&&Or(e,"span");let i={...a,type:"span",[o]:r,children:[]};Transforms.wrapNodes(e,i,{split:!0}),Transforms.collapse(e,{edge:"end"});};function x4(e){return Object.entries(e).map(([o,r])=>`${kebabCase(o)}:${r}`).filter(([,o])=>!!o).join(";")}var qr=e=>slateToHtml(e,{markMap:{bold:["strong"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:o,children:r=[]})=>new Element("a",{href:o.url},r),span:({node:o,children:r=[]})=>{let a=x4({...o.color&&{color:o.color},...o.backgroundColor&&{backgroundColor:o.backgroundColor}}),i=a?{style:a}:{};return new Element("span",i,r)},mention:({node:o})=>new Element("span",{"data-user-id":o.userId},[new Text(o.displayName)])}});function z4(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(o=>o.split(":").map(r=>r.trim())).map(([o,r])=>[camelCase(o),r]))):{}}function Gt(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:o=>({type:"link",url:o?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:o=>{let r=o?.attribs["data-user-id"];return r?{type:"mention",userId:r,displayName:o?.children[0]?.data||""}:{type:"span",...z4(o?.attribs.style||"")}}}})}function Ur(e,o=1){let{selection:r}=e;if(r){let[a]=Range.edges(r),i=Editor.before(e,a,{distance:o,unit:"character"}),t=i&&Editor.range(e,i,a);return {text:t&&Editor.string(e,t),range:t}}else return null}function Zd(e){return e&&(e.text===" "||!e.range)}var Jd=({isDisabled:e})=>{let{formatMessage:o}=F(),r=useSlate();return jsx(He,{type:"dialog",children:({close:a})=>jsxs(Fragment,{children:[jsx(Ve,{children:jsx(I,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":o(Ge.addLink),className:so})}),jsx(Ne,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:jsx(le,{size:"content",style:{minWidth:240},children:jsx(w4,{close:()=>{a(),setTimeout(()=>je(r),0);}})})})]})})},w4=({close:e})=>{let o=useSlate(),{formatMessage:r}=F(),a=Ke(o,"link")?.url,[i,t]=br.useState(a?"show":"add"),[s,p]=br.useState(a||""),n=jsx(L,{padding:"lg",children:jsx(sr,{label:r(Ge.link),value:s,autoFocus:!0,onChange:p,placeholder:"https://yourdomain.com"})});return jsxs(Fragment,{children:[i==="add"&&jsxs(Fragment,{children:[n,jsx(L,{display:"flex",justifyContent:"flex-end",padding:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:jsx(V,{isDisabled:!isUrl(s,!0),label:r(Ge.addLink),size:"sm",onPress:()=>{Kt(o,s),e?.();}})})]}),i==="show"&&jsxs(Fragment,{children:[jsx(L,{padding:"lg",children:jsx(W,{type:"subtitle",size:"sm",children:a})}),jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(V,{label:r(Ge.editLink),size:"sm",variant:"secondary",onPress:()=>{t("edit");},style:{flex:1,justifyContent:"center"}}),jsx(V,{label:r(Ge.removeLink),size:"sm",onPress:()=>{Or(o,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),i==="edit"&&jsxs(Fragment,{children:[n,jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(V,{label:r(Ge.cancel),size:"sm",variant:"secondary",onPress:()=>{t("show"),e?.();}}),jsx(V,{label:r(Ge.save),size:"sm",onPress:()=>{Kt(o,s),e?.();}})]})]})]})},Ge=pe({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var I4=parseColor("#ffffff00").toString("hexa"),Wt=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...Wt,{label:"Transparent",color:I4}];var go=({nodeType:e,icon:o,ariaLabel:r,isDisabled:a})=>{let i=useSlate(),t=Ut(i,e);return jsx(io,{variant:"tertiary",isSelected:t,size:"sm",icon:o,"aria-label":r,isDisabled:a,onPress:()=>{vr(i,e),je(i);}})},Zt=({nodeType:e,"aria-label":o,isDisabled:r})=>{let a=useSlate(),i=Ke(a,"span")?.[e],t=useCallback(l=>{a?.selection&&(Transforms.setSelection(a,a.selection),je(a),Xd(a,e,l),setTimeout(()=>{invariant(a.selection),Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),s=useCallback(()=>{a?.selection&&(Transforms.setSelection(a,a.selection),je(a),Wd(a,e),setTimeout(()=>{invariant(a.selection),Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),p=useCallback(({ref:l,triggerProps:d})=>jsx(I,{icon:e==="color"?TextIcon:HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:r,className:so,...d,ref:l}),[e,o,r]),n=useCallback(l=>{l?t(l.toString("rgba")):s();},[s,t]);return jsx(Vr,{presets:Wt,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:p,value:i||"#000000",onChange:n,isDisabled:r})};function om({mentionableUsers:e,mentionPopoverRef:o,editor:r}){let[a,i]=useState(null),[t,s]=useState(0),[p,n]=useState(""),l=useInteractionModality(),d=useMemo(()=>e?.map(v=>({id:v.id,label:v.displayName||v.name,description:v.description,value:v,data:{avatar:v.avatar}})),[e]),{contains:m}=useFilter({sensitivity:"base"}),c=d?.filter(v=>m(v.label,p)),u=useCallback(()=>{let{selection:v}=r,f=Ur(r,2);if(v&&Range.isCollapsed(v)){let[y]=Range.edges(v);if((f?.text?.startsWith(" ")||f?.text?.length===1)&&f?.text?.endsWith("@")){invariant(f,"lastTwoCharacters should be defined");let _=Ur(r)?.range;i(_||null),n("");}else {let _=Editor.before(r,y,{unit:"word"}),C=_&&Editor.before(r,_),P=C&&Editor.range(r,C,y),w=(P&&Editor.string(r,P))?.match(/^@(\w+)$/),x=Editor.after(r,y),R=Editor.range(r,y,x),T=Editor.string(r,R).match(/^(\s|$)/);w&&T&&P&&(i(P),n(w[1]));}return null}i(null);},[r]),h=useCallback((v=t)=>{let f=c?.[v];if(f){let y={userId:f.id,displayName:f.label,children:[{text:""}],type:"mention"};invariant(r,"Editor ref is not set"),invariant(a,"Target is not set"),Transforms.select(r,a),Transforms.insertNodes(r,y),Transforms.move(r),Transforms.insertText(r," "),s(0),i(null);}},[c,t,r,a]),b=useCallback(v=>{if(!!e?.length&&a)switch(v.key){case"ArrowDown":{v.preventDefault(),s(y=>(y+1)%(c?.length||1));break}case"ArrowUp":{v.preventDefault(),s(y=>(y-1+(c?.length||1))%(c?.length||1));break}case"Escape":{v.preventDefault(),i(null);break}case"Enter":{v.preventDefault(),h();break}}},[c?.length,e?.length,a,h]);return useLayoutEffect(()=>{let v=o.current;v&&l==="keyboard"&&v.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[t,o,l]),useInteractOutside({ref:o,onInteractOutside:()=>{i(null);}}),{triggerMention:u,matchedUsers:c,onKeyDown:b,insertMention:h,activeIndex:t,isMentionPopoverOpen:!!a,setActiveIndex:s}}var ri=br.forwardRef(({editor:e,onSave:o,value:r,defaultValue:a,onChange:i,style:t,spellCheck:s,placeholder:p,isInline:n,isDisabled:l,editableContentAriaLabel:d,containerRef:m,...c},u)=>{let h=useRef(null),b=useId(),v=useCallback(k=>jsx(Q4,{...k}),[]),{formatMessage:f}=F(),y=useRef(null),_=useRef(null),{onKeyDown:C,matchedUsers:P,activeIndex:z,insertMention:w,triggerMention:x,isMentionPopoverOpen:R,setActiveIndex:M}=om({mentionableUsers:c.mentionableUsers,mentionPopoverRef:_,editor:e}),[T,N]=useControlledState(r?Gt(r):void 0,Gt(a||"<p></p>"),k=>{i&&i(qr(k));}),{keyboardProps:D}=useKeyboard({onKeyDown:k=>{C(k),k.key==="Enter"&&!k.shiftKey?(k.preventDefault(),o?.(qr(e.children))):(k.metaKey||k.ctrlKey)&&k.key==="b"?(k.preventDefault(),vr(e,"bold")):(k.metaKey||k.ctrlKey)&&k.key==="i"?(k.preventDefault(),vr(e,"italic")):(k.metaKey||k.ctrlKey)&&k.key==="u"?(k.preventDefault(),vr(e,"underline")):k.key==="F10"&&(k.preventDefault(),h.current&&h.current.querySelector("button")?.focus());}});return useEffect(()=>{l&&ReactEditor.deselect(e);},[l,e]),useEffect(()=>{let k=y.current?.querySelector("[contenteditable=true]");if(!k)return;let j=()=>{ReactEditor.focus(e);};return k.addEventListener("focus",j),()=>{k.removeEventListener("focus",j);}},[e]),useImperativeHandle(u,()=>({startMention:()=>{let k=Ur(e,1);Transforms.insertText(e,Zd(k)?"@":" @"),ReactEditor.focus(e);}})),useImperativeHandle(c.editorHandle,()=>({setCaretPosition:k=>{ReactEditor.focus(e),Transforms.move(e,{distance:k,unit:"character"});}})),jsxs(Slate,{editor:e,initialValue:T||[{type:"paragraph",children:[{text:""}]}],onValueChange:N,onChange:x,children:[jsxs(to,{className:lo,"aria-controls":b,ref:h,children:[jsxs(L,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(go,{nodeType:"bold",icon:BoldIcon,ariaLabel:f(Gr.bold),isDisabled:l}),jsx(go,{nodeType:"italic",icon:ItalicIcon,ariaLabel:f(Gr.italic),isDisabled:l}),jsx(go,{nodeType:"underline",icon:UnderlineIcon,ariaLabel:f(Gr.underline),isDisabled:l})]}),jsx(E,{orientation:"vertical"}),jsx(Zt,{nodeType:"color","aria-label":f(Gr.fontColor),isDisabled:l}),jsx(E,{orientation:"vertical"}),jsx(Zt,{nodeType:"backgroundColor","aria-label":f(Gr.backgroundColor),isDisabled:l}),jsx(E,{orientation:"vertical"}),jsx(Jd,{isDisabled:l})]}),jsx(E,{variant:"secondary"}),jsx("div",{ref:y,children:jsx(Editable,{...D,renderLeaf:v,renderElement:J4,readOnly:l,disabled:l,"data-mention-open":R,className:classNames(no({isDisabled:l}),po({isInline:n})),renderPlaceholder:({attributes:k,children:j})=>jsx("span",{...k,className:sprinkles({paddingY:"lg"}),children:j}),style:t,placeholder:p,spellCheck:s,id:b,"aria-label":d})}),jsxs(He,{isOpen:R,type:"listbox",children:[jsx(Ve,{}),jsx(Ne,{isNonModal:!0,className:Hd,triggerRef:m,placement:"bottom start",children:jsx(ne,{ref:_,items:P||[],renderOption:(...k)=>ex(...k,{index:(P||[]).findIndex(j=>j.id===k[0].key),setIndex:M,activeIndex:z}),onAction:k=>{let j=P?.findIndex(Y=>Y.id===k);w(j);}})})]})]})});ri.displayName="RichEditor";var Q4=({children:e,attributes:o,leaf:r})=>(r.bold&&(e=jsx("strong",{children:e})),r.italic&&(e=jsx("em",{children:e})),r.underline&&(e=jsx("u",{children:e})),jsx("span",{...o,children:e})),vo=()=>jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),J4=e=>{let{attributes:o,children:r,element:a}=e;return "type"in a&&a.type==="link"?jsxs(ca,{size:"sm",...o,href:a.url,children:[jsx(vo,{}),r,jsx(vo,{})]}):"type"in a&&a.type==="span"?jsxs("span",{...o,style:{color:a.color,backgroundColor:a.backgroundColor},children:[jsx(vo,{}),r,jsx(vo,{})]}):"type"in a&&a.type==="mention"?jsxs("span",{...o,contentEditable:isChrome()?void 0:o.contentEditable,"data-user-id":a.userId,children:[r,"@",a.displayName]}):jsx("p",{...o,children:r})},ex=({value:e,nextKey:o},{optionProps:r,isDisabled:a},i,{index:t,setIndex:s,activeIndex:p})=>{let{hoverProps:n}=useHover({isDisabled:a,onHoverStart:()=>{s(t);}});invariant(e,"Option value is not set");let{label:l,description:d,data:m}=e;return jsxs(Fragment,{children:[jsxs("li",{...mergeProps(r,n),className:Fd({isDisabled:a,isHovered:t===p}),"data-active":t===p,ref:i,children:[jsx(dr,{name:l,...m?.avatar}),jsxs(L,{display:"flex",flexDirection:"column",children:[jsx(W,{type:"subtitle",size:"sm",children:l}),jsx(W,{type:"helper",size:"sm",children:d})]})]}),o&&jsx(E,{})]})},Gr=pe({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"}});var pm=br.forwardRef(({className:e,style:o,"data-block-id":r,enableRichText:a=!1,onCancel:i,onSave:t,isInline:s=!0,submitButtonIcon:p=ArrowUpCircleFilledIcon,submitButtonAriaLabel:n,"aria-label":l,"aria-describedby":d,"aria-labelledby":m,"aria-details":c,editableContentAriaLabel:u="Editing Area",footerButtons:h,...b},v)=>{let[f]=useState(()=>{let R=Gd(withReact(withHistory(createEditor())));return b.mentionableUsers?Yd(R):R}),{formatMessage:y}=F(),_=useRef(null),C=useRef(null),P=!a&&b.variant==="minimal",z=useRef(null),{fieldProps:w}=useLabel({"aria-label":l,"aria-labelledby":m,"aria-describedby":d,"aria-details":c,labelElementType:"div"});P&&!b.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let x=jsx(I,{variant:"ghost","aria-label":n||y(oi.save),icon:p,isDisabled:b.isDisabled,size:"md",excludeFromTabOrder:P,className:P?Vd:void 0,onPress:()=>t?.(a?qr(f.children):_.current.value)});return jsx("div",{...w,role:"application",ref:mergeRefs(C,v),style:o,"data-block-id":r,className:classNames(Ed({isInline:s,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":b.isDisabled,children:P?jsxs(Fragment,{children:[s&&jsx(dr,{className:Dd,name:b.avatarName||""}),jsxs("div",{className:Od({isInline:s}),children:[jsx(Ot,{isMinimal:P,textBoxRef:_,onSave:t,isInline:s,editableContentAriaLabel:u,...b}),x]})]}):jsxs(Fragment,{children:[a?jsx(ri,{containerRef:C,ref:z,editor:f,onCancel:i,onSave:t,isInline:s,editableContentAriaLabel:u,...b}):jsxs(Fragment,{children:[!s&&jsx(E,{variant:"secondary"}),jsx(Ot,{onSave:t,onCancel:i,textBoxRef:_,isInline:s,editableContentAriaLabel:u,...b})]}),jsx(E,{variant:"secondary"}),jsxs("div",{className:classNames(lo,sprinkles({justifyContent:"space-between"})),children:[jsxs(L,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&b.mentionableUsers&&jsx(I,{icon:AtIcon,size:"sm","aria-label":y(oi.mention),onPress:()=>z.current?.startMention()}),h?.map((R,M)=>jsx(I,{...R,size:"sm",isDisabled:b.isDisabled||R.isDisabled},M))]}),jsxs(L,{children:[!!i&&jsx(I,{variant:"secondary",icon:CrossCircleFilledIcon,isDisabled:b.isDisabled,size:"md",onPress:i,"aria-label":y(oi.cancel)}),x]})]})]})})});pm.displayName="Editor";var oi=pe({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var fo=br.forwardRef(({className:e,style:o,"data-block-id":r,isMounted:a,children:i,transitions:t,elementType:s="div",...p},n)=>{let l=useTransition(a,t),d=animated[s];return l((m,c)=>c&&jsx(d,{className:e,"data-block-id":r,style:{...o,...m},...p,ref:n,children:i}))});fo.displayName="Transition";var lm="_8kqf970 _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6zr _1yep5z6zs _1yep5z6zt _1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z610i _1yep5z610j _1yep5z610k _1yep5z6ux _1yep5z6sy _1yep5z6sz _1yep5z6t0 _1yep5z612o";var cm=2,um=br.forwardRef(({className:e,style:o,hideForKeyboard:r,scrollRef:a,label:i,delay:t=1500,smoothScroll:s=!0,"data-block-id":p},n)=>{let l=br.useRef(null),d=useInteractionModality(),[m,c]=br.useState(!1),u=useCallback(()=>{let R=a?.current||getOwnerDocument(l.current).body;return getOwnerWindow(R).getComputedStyle(R).flexDirection==="column-reverse"?R.scrollTop+cm>=0:R.scrollTop+R.clientHeight+cm>=R.scrollHeight},[a]),[h,b]=br.useState(u),v=we(),{buttonProps:f,isPressed:y}=useButton({onPress:()=>{let R=a?.current||getOwnerDocument(l.current).body;R.scrollTo({top:R.scrollHeight,behavior:s?"smooth":"auto"});}},l),{focusProps:_,isFocused:C,isFocusVisible:P}=useFocusRing(),{hoverProps:z,isHovered:w}=useHover({}),x=filterTruthyValues({"data-block-id":p,"data-pressed":y,"data-focus-visible":P,"data-hovered":w,"data-focused":C});return useEffect(()=>{b(u());},[u]),useEffect(()=>{let R=a?.current||getOwnerDocument(l.current).body,M="onscrollend"in getOwnerWindow(R),T=()=>{setTimeout(()=>{c(!1),b(u());},t);},N=()=>{c(!0),M||T();};return R.addEventListener("scroll",N),R.addEventListener("scrollend",T),()=>{R.removeEventListener("scroll",N),R.removeEventListener("scrollend",T);}},[a,t,u]),jsxs(fo,{isMounted:(r?d!=="keyboard":!0)&&!m&&!h,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:v},...mergeProps(f,_,z,x),className:classNames(lm,Ca({isFocusVisible:P,variant:"high-contrast",isHovered:w}),"BaselineUI-ScrollControlButton",e),style:o,ref:mergeRefs(n,l),children:[jsx(ArrowDownCircleFilledIcon,{size:16}),i]})});um.displayName="ScrollControlButton";var si="_1yep5z6hk _1yep5z6hl _1yep5z6hm _1yep5z6ht _1yep5z6hu _1yep5z6hv",gm=g({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"},hasNoCloseBtn:{true:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6ky _1yep5z6kz _1yep5z6l0 _1yep5z6js _1yep5z6jt _1yep5z6ju _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61cn _1yep5z61co _1yep5z61cp"]]}),bm="_1v0p2z10";var {dialog:{row:{padding:fr}}}=layoutSprinkleValues,hm=br.forwardRef(({className:e,style:o,"data-block-id":r,message:a,title:i,primaryActionLabel:t,cancelLabel:s,textInputProps:p,icon:n,iconColor:l,showCloseButton:d=!0,onPrimaryAction:m,onCancel:c,autoFocusButton:u,isPrimaryActionDisabled:h},b)=>{let v=useId(),{formatMessage:f}=F(),y=i&&jsx(W,{id:v,type:"title",size:"sm",elementType:"h3",children:i});return jsxs(le,{className:e,style:o,"data-block-id":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":v,children:[jsxs("div",{className:gm({hasTitleAndIcon:!!(n&&i),hasNoCloseBtn:!d}),children:[jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[n&&jsx(n,{style:{color:l},size:24}),!n&&y,d&&jsx(I,{icon:XIcon$1,variant:"secondary",size:"md","aria-label":f(Mx.close),onPress:c})]}),n&&y]}),a&&jsx(L,{elementType:"section",className:bm,paddingX:fr.horizontal.lg,paddingBottom:fr.vertical.lg,typography:"body.sm.regular",color:"text.primary",children:a}),p&&jsx(L,{paddingX:fr.horizontal.lg,paddingBottom:fr.vertical.lg,children:jsx(sr,{...p})}),(s||t)&&jsxs(Fragment,{children:[jsx(E,{}),jsxs(L,{paddingX:fr.horizontal.lg,paddingY:fr.vertical.lg,display:"flex",gap:"xl",children:[s&&jsx(V,{variant:"secondary",className:si,label:s,onPress:c,autoFocus:u==="cancel"}),t&&jsx(V,{className:si,label:t,onPress:m,autoFocus:u==="primary",isDisabled:h})]})]})]})});hm.displayName="AlertDialog";var Mx=pe({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var vm="_1yep5z6c6 _1yep5z6d2",fm="_1t55bp70";var Hx=Fx(),ym=br.forwardRef(({className:e,style:o,children:r,"data-block-id":a},i)=>{let t=useMemo(()=>Hx.render(r),[r]);return jsx("div",{className:classNames(vm,fm,"BaselineUI-Markdown",e),"data-block-id":a,style:o,ref:i,dangerouslySetInnerHTML:{__html:t}})});ym.displayName="Markdown";
48
+ function us(e,t,r){let{direction:o}=useLocale(),s=useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,getItems:e.getItems||(l=>[...l].map(i=>{let p=t.collection.getItem(i);return invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});useDraggableCollection(e,s,r);let a=useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:n}=useDroppableCollection({...e,keyboardDelegate:new ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:o}),dropTargetDelegate:new ListDropTargetDelegate(t.collection,r)},a,r);return e.enableReorder?{collectionProps:n,dragState:s,dropState:a}:{collectionProps:{},dropState:void 0,dragState:void 0}}function Xc(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function Zc(e){var t=Xc(e,"string");return typeof t=="symbol"?t:String(t)}function $c(e,t,r){return t=Zc(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o);}return r}function ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fs(Object(r),!0).forEach(function(o){$c(e,o,r[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fs(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o));});}return e}function gs(e,t){var r={};for(var o in e)r[o]=t(e[o],o);return r}var Qc=(e,t,r)=>{for(var o of Object.keys(e)){var s;if(e[o]!==((s=t[o])!==null&&s!==void 0?s:r[o]))return !1}return !0},b=e=>{var t=r=>{var o=e.defaultClassName,s=ys(ys({},e.defaultVariants),r);for(var a in s){var n,l=(n=s[a])!==null&&n!==void 0?n:e.defaultVariants[a];if(l!=null){var i=l;typeof i=="boolean"&&(i=i===!0?"true":"false");var p=e.variantClassNames[a][i];p&&(o+=" "+p);}}for(var[d,c]of e.compoundVariants)Qc(d,s,e.defaultVariants)&&(o+=" "+c);return o};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return gs(e.variantClassNames,r=>gs(r,o=>o.split(" ")[0]))}},t};var bs=b({defaultClassName:"_6n12k9a _1yep5z6j8 _1yep5z6j7 _1yep5z6fs _1yep5z6iq",variantClassNames:{isDropTarget:{true:"_1yep5z6z3"},orientation:{vertical:"_1yep5z612m",horizontal:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),vs="_1yep5z6j6",_s=b({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),hs=b({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6iq _1yep5z6it _1yep5z6j6 _1yep5z6j5 _1yep5z6j3",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z3 _1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6zc _1yep5z6zd _1yep5z6ze"},isHovered:{true:"_1yep5z6xk",false:"_1yep5z6xj"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),zs="_6n12k90";var Cs=b({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var H=br.forwardRef(({className:e,style:t,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:s,elementType:a="div",...n},l)=>{let{separatorProps:i}=useSeparator({...n,orientation:o,elementType:a});return jsx(a,{...i,className:classNames(Cs({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-block-id":n["data-block-id"],style:t,role:s?void 0:i.role,ref:l})});H.displayName="Separator";function nm(e){return sprinkles.properties.has(e)}var D=br.forwardRef(({elementType:e="div",children:t,...r},o)=>{let s=e,{sprinkleProps:a,domProps:n}=useMemo(()=>{let l={},i={};for(let p in r)nm(p)?l[p]=r[p]:i[p]=r[p];return {sprinkleProps:l,domProps:i}},[r]);return jsx(s,{...n,className:classNames(sprinkles(a),"BaselineUI-Box",n.className),ref:o,children:t})});D.displayName="Box";var xr=br.forwardRef(({item:e,isDisabled:t,isFocusVisible:r,isSelected:o,liProps:s,showSelectedIcon:a,description:n,descriptionProps:l,labelProps:i,isFocused:p,isPressed:d,_state:c},m)=>{invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:f}=e.value,{hoverProps:g,isHovered:y}=useHover({isDisabled:t}),v=filterTruthyValues({"data-selected":o,"data-disabled":t,"data-focused":p,"data-hovered":y,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":c.selectionManager.selectionMode});return jsxs("li",{...mergeProps(s,g,v),className:classNames(hs({isHovered:y,isFocused:r,isFirstChild:c.collection.getFirstKey()===e.key,isLastChild:c.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:m,children:[jsxs(D,{display:"flex",alignItems:"center",gap:"lg",children:[a?jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:o?jsx(CheckmarkIcon,{size:24}):null}):null,u?jsx(u,{size:24}):null,jsx("span",{...i,children:f})]}),n?jsx("span",{className:_s({isDisabled:t}),...l,children:n}):null]})});xr.displayName="DefaultRenderOption";var Pt=({dropState:e,orientation:t="vertical",dropIndicatorStyle:r,dropIndicatorClassName:o,renderDropIndicator:s=({isDropTarget:n,isHidden:l,dropIndicatorProps:i,orientation:p},d)=>l?null:jsx("li",{...i,ref:d,"data-drop-target":n,className:classNames(bs({isDropTarget:n,orientation:p}),"BaselineUI-DropIndicator",o),style:r}),...a})=>{let n=br.useRef(null),{dropIndicatorProps:l,isHidden:i,isDropTarget:p}=useDropIndicator(a,e,n);return s({dropIndicatorProps:{...l,role:"option"},isHidden:i,isDropTarget:p,orientation:t},n)};var ws=({item:e,children:t,state:r,dragState:o,...s})=>{let{dragProps:a}=useDraggableItem({key:e.key},o);return jsxs(Fragment,{children:[jsx(Pt,{target:{type:"item",key:e.key,dropPosition:"before"},...s}),t(a),r.collection.getKeyAfter(e.key)==null&&jsx(Pt,{target:{type:"item",key:e.key,dropPosition:"after"},...s})]})};ws.displayName="DraggableListOption";var Pr=br.forwardRef(({item:e,renderOption:t=(d,c,m)=>jsx(xr,{item:d,liProps:c.optionProps,...c,ref:m}),showSelectedIcon:r,state:o,dragState:s,dropState:a,orientation:n,dropIndicatorStyle:l,dropIndicatorClassName:i},p)=>{let d=br.useRef(null),c=useOption({key:e.key},o,d);return s&&a?jsx(ws,{orientation:n,state:o,item:e,dropState:a,dragState:s,dropIndicatorStyle:l,dropIndicatorClassName:i,children:m=>t(e,{...c,showSelectedIcon:r,_state:o,optionProps:mergeProps(c.optionProps,m)},mergeRefs(d,p))}):t(e,{...c,showSelectedIcon:r,_state:o},mergeRefs(d,p))});Pr.displayName="Option";var kt=({section:e,state:t,...r})=>{let{itemProps:o,groupProps:s}=useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),a=t.collection.getChildren?.(e.key);return invariant(a,"items with type `section` must have children"),jsxs(Fragment,{children:[e.key!==t.collection.getFirstKey()&&jsx(H,{UNSAFE_omitRole:!0}),jsx("li",{...o,className:classNames(zs,"BaselineUI-ListBox-Section"),children:jsx("ul",{...s,children:[...a].map(n=>jsx(Pr,{item:n,state:t,...r},n.key))})})]})};kt.displayName="ListBoxSection";var It=br.forwardRef(({className:e,layout:t="stack",orientation:r="vertical",showSelectedIcon:o=!0,UNSAFE_state:s,style:a,renderOption:n,enableReorder:l=!1,"data-block-id":i,renderDragPreview:p,...d},c)=>{let m=br.useRef(null),u=useListState(d),{direction:f}=useLocale(),g=s||u,y=br.useRef(null),{listBoxProps:v}=useListBox({...d,shouldSelectOnPressUp:l,keyboardDelegate:new ListKeyboardDelegate({collection:g.collection,ref:y,layout:t,orientation:r,direction:f,disabledKeys:g.disabledKeys})},g,y),{collectionProps:_,dragState:h,dropState:x}=us({...d,layout:t,orientation:r,enableReorder:l,preview:m},g,y),{isFocusVisible:P,isFocused:C,focusProps:R}=useFocusRing(),z=filterTruthyValues({"data-block-id":i,"data-layout":t,"data-empty":g.collection.size===0,"data-focused":C,"data-focus-visible":P,"data-orientation":r});return jsxs("ul",{...mergeProps(v,R,z,_),className:classNames(vs,"BaselineUI-ListBox",e),style:a,ref:mergeRefs(c,y),children:[[...g.collection].map(w=>{let B={key:w.key,state:g,dragState:h,dropState:x,renderOption:n,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:o,orientation:r,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName};return w.type==="section"?jsx(kt,{...B,section:w}):jsx(Pr,{...B,item:w})}),p?jsx(DragPreview,{ref:m,children:p}):null]})});It.displayName="ListBoxBase";var le=br.forwardRef((e,t)=>jsx(It,{...e,ref:t,children:r=>r.type==="section"?jsx(Section,{items:r.children,title:r.id,children:o=>jsx(Item,{children:o.label},o.id)},r.id):jsx(Item,{children:r.label},r.id)}));le.displayName="ListBox";var ro="uf19bsg _1yep5z6iq",Ts=b({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j5 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j0",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6wt"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw",popover:"uf19bse _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6kv _1yep5z6kw _1yep5z6kx _1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6ly _1yep5z6lz _1yep5z6m0 _1yep5z6t7 _1yep5z6t8 _1yep5z6t9"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61gb"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ga _1yep5z61h4"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61gg"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h3"],[{variant:"primary",isPressed:!0},"_1yep5z61h3"],[{variant:"secondary",isPressed:!0},"_1yep5z61gb"],[{variant:"tertiary",isPressed:!0},"_1yep5z61ge _1yep5z61h4"],[{variant:"ghost",isPressed:!0},"_1yep5z61gh"],[{variant:"popover",isPressed:!0},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gf"],[{variant:"popover",size:"lg"},"_1yep5z61dk _1yep5z61ds _1yep5z61e0 _1yep5z61e8"]]});var oo=b({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6c6 _1yep5z6iq",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var Xm={sm:16,md:20},A=br.forwardRef(({label:e,style:t,className:r,iconStart:o,iconEnd:s,variant:a="primary",elementType:n="button",isDisabled:l,size:i="sm","data-block-id":p,...d},c)=>{let m=br.useRef(null),{buttonProps:u,isPressed:f}=useButton({...d,elementType:n,isDisabled:l},m),g=Xm[i],{hoverProps:y,isHovered:v}=useHover({isDisabled:l}),{isFocusVisible:_,isFocused:h,focusProps:x}=useFocusRing();return jsxs(n,{...mergeProps(u,y,x),className:classNames(oo({isDisabled:!!l,isFocusVisible:_,isHovered:v,variant:a,size:i}),"BaselineUI-ActionButton",r),"data-focus-visible":_,"data-focused":h,"data-hovered":v,"data-disabled":l,"data-block-id":p,"data-pressed":f,style:t,ref:mergeRefs(c,m),children:[!!o&&jsx(o,{size:g}),e,!!s&&jsx(s,{size:g}),a==="popover"&&jsx(ChevronDownIcon,{size:8,className:ro})]})});A.displayName="ActionButton";var kr=b({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var to="z9nup80",rr="z9nup83",Ss="z9nup87";var Ms=br.forwardRef(({className:e,node:t},r)=>{let o=br.useRef(null);return br.useEffect(()=>{let s=o.current;return s?.append(t),()=>{s?.contains(t)&&t.remove();}},[t]),jsx("div",{className:classNames(to,e),ref:mergeRefs(r,o)})});Ms.displayName="DomNodeRenderer";var Ls="_14uvjig0 z9nup81",Bs="_14uvjig7",Ds="_14uvjig3",Es=b({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Fs=b({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Hs="_14uvjig8",Vs=b({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var or=b({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),ao=b({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),tr=b({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),_e="nrh1eh3",he=b({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),ze=b({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),ar=b({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Ce({description:e,errorMessageProps:t,descriptionProps:r,warningMessage:o,errorMessage:s,labelPosition:a,isDisabled:n}){return e?jsx("div",{...r,className:or({isDisabled:n,labelPosition:a}),children:e}):s?jsx("div",{...t,className:or({hasError:!0,labelPosition:a}),children:s}):o?jsx("div",{className:or({isDisabled:n,labelPosition:a}),children:o}):null}var As=b({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Os="_1lnwne0";var lu={xxs:8,xs:12,sm:16,md:20,lg:24},I=br.forwardRef(({className:e,style:t,icon:r,size:o="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:a,elementType:n=a?"div":"button",...l},i)=>{!l["aria-label"]&&!l["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=br.useRef(null),{buttonProps:d,isPressed:c}=useButton({...l,elementType:n},p),{isFocusVisible:m,isFocused:u,focusProps:f}=useFocusRing(),{hoverProps:g,isHovered:y}=useHover({isDisabled:l.isDisabled}),v=filterTruthyValues({"data-block-id":l["data-block-id"],"data-focused":u,"data-focus-visible":m,"data-disabled":l.isDisabled,"data-hovered":y,"data-pressed":c});return jsxs(n,{...mergeProps(d,g,f,v),className:classNames(Ts({variant:s,size:o,isDisabled:!!l.isDisabled,isFocusVisible:m,isHovered:y,isPressed:c}),"BaselineUI-ActionIconButton",e),ref:mergeRefs(i,p),style:t,...a&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsx(r,{role:"presentation",size:lu[o]}),s==="popover"&&jsx(ChevronDownIcon,{size:8,className:ro})]})});I.displayName="ActionIconButton";var ue=br.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary",showStepper:s=!0,...a},n)=>{let l=br.useRef(null),{locale:i}=useLocale(),p=useNumberFieldState({...a,locale:i}),{hoverProps:d,isHovered:c}=useHover({isDisabled:a.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:f}=useFocusRing(),{labelProps:g,decrementButtonProps:y,inputProps:v,incrementButtonProps:_,groupProps:h,descriptionProps:x,errorMessageProps:P}=useNumberField(a,p,l),C=useMemo(()=>a.isReadOnly?ReadOnlyIcon:a.isInvalid?ErrorFilledIcon:null,[a.isInvalid,a.isReadOnly]),R=Ce({description:a.description,errorMessageProps:P,descriptionProps:x,errorMessage:a.errorMessage,labelPosition:r,isDisabled:a.isDisabled}),z=filterTruthyValues({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-hovered":c,"data-focused":f,"data-focus-visible":u,"data-invalid":a.isInvalid,"data-block-id":a["data-block-id"]});return jsxs("div",{style:t,className:classNames(ze({labelPosition:r}),"BaselineUI-NumberInput",e),...z,ref:n,children:[a.label?jsxs("div",{className:he({labelPosition:r,hasMessage:!!R}),children:[jsx("label",{...g,className:_e,children:a.label}),r==="start"&&R]}):null,jsxs("div",{className:classNames({[rr]:a.isDisabled}),children:[jsxs("div",{...mergeProps(h,d),className:classNames(ar({isHovered:c,isDisabled:!!a.isDisabled,isReadOnly:!!a.isReadOnly,validationState:a.isInvalid?"error":"valid",isFocused:f,variant:o}),{[Os]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsx("input",{...mergeProps(v,m),ref:l,className:classNames("BaselineUI-NumberInput-Input",ao({isDisabled:a.isDisabled,labelPosition:r}))}),C?jsx(C,{className:tr({validationState:"error",isReadOnly:a.isReadOnly}),size:16}):null,s?jsxs("div",{className:As({isHoveredOrFocused:c||f,isInteractive:!a.isReadOnly&&!a.isDisabled}),children:[jsx(I,{variant:"secondary",size:"xxs",icon:MinusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"}),jsx(H,{style:{height:16},orientation:"vertical"}),jsx(I,{variant:"secondary",size:"xxs",icon:PlusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),r==="top"&&R]})]})});ue.displayName="NumberInput";var io=br.forwardRef(({className:e,style:t,onChange:r,onChangeEnd:o,numberFormatOptions:s,isDisabled:a,step:n,minValue:l,maxValue:i,value:p,"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,"data-block-id":f,defaultValue:g,isReadOnly:y,label:v,id:_,includeNumberInput:h},x)=>{let P=br.useRef(null),C={onChange:r===void 0?void 0:F=>{r(F[0]);},isDisabled:a||y,step:n,minValue:l,maxValue:i,onChangeEnd:o===void 0?void 0:F=>{o(F[0]);},value:p===void 0?void 0:[p],defaultValue:g===void 0?void 0:[g],"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,id:_,label:v},R=useNumberFormatter(s),z=useSliderState({...C,numberFormatter:R}),{trackProps:w,groupProps:B,labelProps:T}=useSlider(C,z,P),N=jsx(ue,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":T.id,value:z.getThumbValue(0),formatOptions:s,onChange:F=>{z.setThumbValue(0,F);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxs("div",{...B,style:t,"data-block-id":f,className:classNames(Ls,"BaselineUI-Slider",e),children:[v?jsxs("div",{className:Ds,children:[jsx("label",{...T,className:classNames(Es({isDisabled:a,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:v}),h?N:null]}):null,jsxs("div",{className:Bs,children:[jsx("div",{...w,className:classNames(Hs,"BaselineUI-Slider-Track"),ref:mergeRefs(P,x),"data-testid":"track",children:jsx(Nu,{state:z,trackRef:P,isDisabled:a,isReadOnly:y})}),h&&!v?N:null]})]})});io.displayName="Slider";function Nu({state:e,trackRef:t,isDisabled:r,isReadOnly:o}){let s=br.useRef(null),{thumbProps:a,inputProps:n,isDragging:l}=useSliderThumb({trackRef:t,inputRef:s},e),{focusProps:i,isFocused:p,isFocusVisible:d}=useFocusRing(),{hoverProps:c,isHovered:m}=useHover({isDisabled:r}),u=filterTruthyValues({"data-disabled":r,"data-readonly":o,"data-hovered":m,"data-focus-visible":d,"data-dragging":l,"data-focused":p});return jsxs(Fragment,{children:[jsx("div",{className:classNames(Vs({isDisabled:r,isFocusVisible:d,active:l,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:a.style?.left},"data-testid":"track-highlight"}),jsx("div",{...mergeProps(a,c,u),className:classNames(Fs({isDisabled:r,isFocusVisible:d,active:l,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsx(VisuallyHidden,{children:jsx("input",{ref:s,...mergeProps(n,i)})})})]})}var Ys=b({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),Ws=b({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Xs="bpklwad",Zs=b({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),$s="bpklwa6",Qs=b({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var on=br.forwardRef(({className:e,label:t,labelPosition:r="top",statusLabel:o,style:s,"data-block-id":a,...n},l)=>{let i=br.useRef(null),p=useToggleState(n),{inputProps:d,isPressed:c}=useSwitch(n,p,i),{isFocusVisible:m,focusProps:u}=useFocusRing(),{hoverProps:f,isHovered:g}=useHover({isDisabled:n.isDisabled}),y=filterTruthyValues({"data-block-id":a,"data-focused":m,"data-disabled":n.isDisabled,"data-focus-visible":m,"data-selected":p.isSelected,"data-readonly":n.isReadOnly,"data-hovered":g,"data-pressed":c}),v=jsx("div",{className:classNames(Ys({isSelected:p.isSelected,isDisabled:!!n.isDisabled,isFocused:m,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:jsx("div",{className:classNames(Ws({isSelected:p.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxs("label",{...mergeProps(y,f),className:classNames(Zs({labelPosition:r}),"BaselineUI-Switch",e),style:s,ref:l,children:[t?jsx("span",{className:classNames(Xs,"BaselineUI-Switch-Label"),children:t}):null,jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:i})}),o?jsxs("div",{className:Qs({labelPosition:r}),children:[jsx("span",{className:classNames("BaselineUI-Switch-Status-Label",$s),children:p.isSelected?o.on:o.off}),v]}):v]})});on.displayName="Switch";var tn="_19n40yy9",an=b({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});var Yu={sm:SearchIcon,md:SearchIcon$1,lg:SearchIcon$1},ln=br.forwardRef(({className:e,size:t="md",variant:r="primary",...o},s)=>{let a=br.useRef(null),n=useSearchFieldState(o),{inputProps:l,clearButtonProps:i}=useSearchField({...o,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},n,a),{focusProps:p,isFocusVisible:d,isFocused:c}=useFocusRing({within:!0,isTextInput:!0}),m=Yu[t],u=t==="sm"?XIcon$2:XIcon$3,f=filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-disabled":o.isDisabled,"data-focus-visible":d});return jsxs("div",{...f,className:classNames(an({size:t,isFocused:c,variant:r,hasText:!!n.value,isDisabled:o.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[jsx(m,{size:t==="sm"?20:24}),jsx("input",{...mergeProps(l,p),className:tn,ref:a}),n.value!==""&&jsx(I,{icon:u,...i,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});ln.displayName="SearchInput";function Bt(e=window){let[t,r]=useState("light"),[o,s]=useState(!1),[a,n]=useState(!1),[l,i]=useState(!1);return useEffect(()=>{let p=e.matchMedia("(prefers-color-scheme: dark)"),d=c=>{r(c.matches?"dark":"light");};return p.matches&&r("dark"),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-contrast: more)"),d=c=>{s(c.matches);};return s(p.matches),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-motion: reduce)"),d=c=>{n(c.matches);};return p.matches&&n(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),useEffect(()=>{let p=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=c=>{i(c.matches);};return p.matches&&i(!0),p.addEventListener("change",d),()=>{p.addEventListener("change",d);}},[e]),{colorScheme:t,highContrast:o,reducedMotion:a,transparency:l}}var Pe=createContext({theme:lightTheme,setTheme:()=>{}});var pn="var(--hj25q10)";var co={LIGHT:{name:"light",theme:lightTheme},DARK:{name:"dark",theme:darkTheme}},ke=br.forwardRef(({theme:e="system",children:t,setTheme:r,className:o,style:s,UNSAFE_domProps:a,"data-block-id":n},l)=>{let{direction:i}=useLocale(),{colorScheme:p,reducedMotion:d,highContrast:c,transparency:m}=Bt(),{name:u,theme:f}=useMemo(()=>{switch(e){case"system":return p==="light"?co.LIGHT:co.DARK;case"light":return co.LIGHT;case"dark":return co.DARK;default:return {name:"custom",theme:e}}},[p,e]),g={"data-theme":u,"data-block-id":n,"data-reduced-motion":d,"data-high-contrast":c,"data-transparency":m},y=useMemo(()=>({theme:f,setTheme:r}),[f,r]);return jsx(Pe.Provider,{value:y,children:jsx("div",{...mergeProps(a,g),className:classNames(to,"BaselineUI-ThemeProvider",o),style:{...assignInlineVars(themeVars,f),...assignInlineVars({[pn]:i==="rtl"?"-1":"1"}),...s},ref:l,children:t})})});ke.displayName="ThemeProvider";var un=b({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),mo="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",fn=b({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),yn="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",gn="_1yep5z66x _1yep5z66y _1yep5z66z",bn="_1mdhlqv6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69i _1yep5z69j _1yep5z69k";function vn({placement:e}){let t=useReducedMotion();return useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:config.stiff})}var _n={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},hn="_1gzftth1",zn="var(--_1gzftth0)";var{color:Dt}=themeVars,fe=br.forwardRef(({className:e,style:t,state:r,overlayProps:o,underlayClassName:s,children:a,includeArrow:n=!1,offset:l=2,portalContainer:i,...p},d)=>{let{theme:c}=useContext(Pe),m=br.useRef(null),u=n?8:0,{underlayProps:f,popoverProps:g,placement:y,arrowProps:v}=usePopover({...p,offset:l+u,popoverRef:m},r),_=vn({placement:y});useEffect(()=>(p.scrollRef?.current?.addEventListener("scroll",r.close),()=>{p.scrollRef?.current?.removeEventListener("scroll",r.close);}),[p.scrollRef,r.close,p.isNonModal]);let h=y==="center"?"bottom":y;return _((x,P)=>P&&jsx(Overlay,{portalContainer:i,children:jsxs(ke,{ref:d,theme:c,style:t,className:s,UNSAFE_domProps:o,children:[jsx("div",{...f,className:"BaselineUI-Popover-Underlay"}),jsxs(animated.div,{...g,style:{...g.style,...x,...assignInlineVars({[zn]:`${p.triggerRef?.current?.offsetWidth}px`})},ref:mergeRefs(m,d),className:classNames(hn,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(C=>y?.includes(C)),children:[n?jsxs("svg",{className:classNames(_n[h],"BaselineUI-PopoverContent-Arrow"),...v,style:{...v.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Dt.border.medium}),jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Dt.background.primary.subtle,stroke:Dt.background.primary.subtle})]}):null,jsx(DismissButton,{onDismiss:r.close}),jsx("div",{style:{overflowY:"auto",maxHeight:"inherit"},children:a}),jsx(DismissButton,{onDismiss:r.close})]})]})}))});fe.displayName="PopoverContentCore";var kn="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6j8 _1yep5z6j7 _1yep5z6fm _1yep5z6jb _1yep5z6e0",Rn="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Ft=({section:e,showSelectedIcon:t,state:r})=>{let{itemProps:o,groupProps:s,headingProps:a}=useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxs(Fragment,{children:[e.key!==r.collection.getFirstKey()&&jsx(H,{elementType:"li"}),jsxs("li",{...o,children:[e.value?.title?jsx(VisuallyHidden,{children:jsx("span",{...a,children:e.value.title})}):null,jsx("ul",{...s,className:Rn,children:[...e.childNodes].map(n=>(invariant(n.type==="item"),jsx(uo,{item:n,state:r,showSelectedIcon:t},n.key)))})]})]})};Ft.displayName="MenuSection";var uo=({item:e,state:t,className:r,showSelectedIcon:o})=>{let s=br.useRef(null),a=useMenuItem({key:e.key},t,s),{isFocusVisible:n,focusProps:l}=useFocusRing();return jsx(xr,{item:e,liProps:mergeProps(a.menuItemProps,l,{className:r}),...a,isFocusVisible:n,ref:s,description:e.value?.keyboardShortcut,descriptionProps:a.keyboardShortcutProps,_state:t,showSelectedIcon:o})};uo.displayName="MenuItem";var Vt=br.forwardRef(({className:e,itemClassName:t,onContentKeyDown:r,...o},s)=>{let a=useTreeState(o),n=br.useRef(null),{menuProps:l}=useMenu(o,a,n),{keyboardProps:i}=useKeyboard({onKeyDown:r});return jsx("ul",{...mergeProps(l,i),className:classNames(kn,e),ref:mergeRefs(n,s),children:[...a.collection].map(p=>p.type==="section"?jsx(Ft,{section:p,state:a,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):jsx(uo,{item:p,state:a,className:t,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});Vt.displayName="MenuContent";br.createContext({menuTriggerProps:{}});var Nn=br.forwardRef(({isDisabled:e,contentClassName:t,state:r,placement:o="bottom start",isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:l,crossOffset:i,offset:p,triggerButton:d,portalContainer:c,...m},u)=>{let f=br.useRef(null),{menuTriggerProps:g,menuProps:y}=useMenuTrigger({isDisabled:e,type:"menu"},r,f);return jsxs(Fragment,{children:[jsx(Slot,{...mergeProps(g,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>o.includes(v)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:f,children:d}),r.isOpen?jsx(fe,{triggerRef:f,state:r,placement:o,isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:l,crossOffset:i,offset:p||2,className:classNames(mo,"BaselineUI-Menu-Popover"),portalContainer:c,children:jsx(Vt,{className:t,...y,...m,ref:u,autoFocus:r.focusStrategy||"first"})}):null]})});Nn.displayName="MenuRoot";var At=br.forwardRef((e,t)=>{let r=e.children;return jsx(Nn,{...e,ref:t,triggerButton:r,children:o=>"type"in o&&o.type==="section"?jsx(Section,{items:o.children,title:o.title,children:s=>jsx(Item,{children:s.label},s.id)},o.id):(invariant("label"in o,"Item doesn't have a label"),jsx(Item,{textValue:o.label,children:o.label},o.id))})});At.displayName="MenuBase";var Sn=br.forwardRef(({defaultOpen:e,isOpen:t,onOpenChange:r,...o},s)=>{let a=useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:r});return jsx(At,{...o,state:a,ref:s})});Sn.displayName="Menu";var Mn=b({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var yo=br.forwardRef(({className:e,style:t,children:r,variant:o="default",size:s="md",elementType:a="a",type:n="body","data-block-id":l,...i},p)=>{let d=br.useRef(null),{linkProps:c,isPressed:m}=useLink({...i,elementType:i.onPress?"span":a},d),{isFocusVisible:u,isFocused:f,focusProps:g}=useFocusRing(),{hoverProps:y,isHovered:v}=useHover({isDisabled:i.isDisabled}),_=a,h=filterTruthyValues({"data-block-id":l,"data-disabled":i.isDisabled,"data-focused":f,"data-pressed":m,"data-focus-visible":u,"data-hovered":v});return jsx(_,{...mergeProps(c,g,y,h),className:classNames(Mn({variant:o,isFocusVisible:u,isHovered:v,isDisabled:i.isDisabled,size:s,isActive:m,type:n}),"BaselineUI-Link",e),ref:mergeRefs(d,p),style:t,children:r})});yo.displayName="Link";function Bn({isDisabled:e,onValueChange:t,onChange:r,name:o,"aria-describedby":s,"aria-label":a,accept:n,multiple:l}){let i=useId(),p=useId(),d=useId();return {inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":a?void 0:i,"aria-describedby":s||d,"aria-label":a,onChange:m=>{let u=[...m.target.files||[]];t?.(u),r?.(m);},name:o,accept:n,multiple:l},labelProps:{htmlFor:p,id:i},descriptionProps:{id:d}}}async function jt({items:e}){let t=e.filter(r=>r.kind==="file").map(async r=>(invariant(r.kind==="file"),r.getFile()));return await Promise.all(t)}var Dn=b({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),En=b({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Fn=b({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Hn=b({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var jn=br.forwardRef(({className:e,label:t,description:r,icon:o,variant:s="default",...a},n)=>{let l=br.useRef(null),{inputProps:i,descriptionProps:p,labelProps:d}=Bn(a),{dropProps:c}=useDrop({ref:l,onDrop:async({items:y})=>{let v=y.filter(h=>h.kind==="file").map(async h=>(invariant(h.kind==="file"),h.getFile())),_=await Promise.all(v);a.onValueChange?.(_);}}),{focusProps:m,isFocusVisible:u}=useFocusRing(),{hoverProps:f,isHovered:g}=useHover({isDisabled:a.isDisabled});return jsxs("label",{...mergeProps(c,f,d),className:classNames(Dn({variant:s,disabled:a.isDisabled,hoveredOrFocusedOrActive:g||u}),e),ref:mergeRefs(n,l),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,i)})}),o?jsx(o,{size:20,className:Fn({disabled:a.isDisabled})}):null,jsxs("div",{children:[jsx("div",{className:Hn({disabled:a.isDisabled,hovered:g}),children:t}),r?jsx("div",{...p,className:En({disabled:a.isDisabled}),children:r}):null]})]})});jn.displayName="FileUpload";var Un="_12vfhl40 z9nup81",qn="_12vfhl41 z9nup82",Kn=b({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Gn="_12vfhl42",Yn="_12vfhl47",Wn="_12vfhl46 z9nup82",Xn="_12vfhl45",Zn=b({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var $n=br.forwardRef(({className:e,variant:t="active",showValue:r,description:o,errorMessage:s,...a},n)=>{let l=useId(),{labelProps:i,progressBarProps:p}=useProgressBar({...a,"aria-describedby":o?l:a["aria-describedby"]}),{minValue:d=0,maxValue:c=100,value:m=0,label:u}=a,f=(m-d)/(c-d),g=`${Math.round(f*100)}%`,y=jsx("output",{className:Zn({hasLabel:!!u}),children:p["aria-valuetext"]}),v=t==="error"?s:o;return jsxs("div",{...p,className:classNames(Un,e),ref:n,children:[u?jsxs("div",{className:qn,children:[jsx("label",{...i,className:Gn,children:u}),r?y:null]}):null,jsxs("div",{className:Xn,children:[jsxs("div",{className:Wn,children:[jsx("div",{className:Yn,children:jsx("div",{style:{width:g},className:Kn({variant:t})})}),!u&&r?y:null]}),v?jsx("div",{className:or({hasError:t==="error"}),id:l,children:v}):null]})]})});$n.displayName="ProgressBar";function bo({isReadOnly:e,validationState:t}){return e?ReadOnlyIcon:t==="error"?ErrorFilledIcon:t==="warning"?WarningFilledIcon:null}var lr=br.forwardRef(({className:e,validationState:t="valid",variant:r="primary",style:o,labelPosition:s="top",inputStyle:a,inputClassName:n,"data-block-id":l,...i},p)=>{let d=br.useRef(null),{inputProps:c,labelProps:m,descriptionProps:u,errorMessageProps:f,validationErrors:g}=useTextField({...i,validationState:t==="error"?"invalid":"valid"},d),y=i.errorMessage||g.join(" "),v=Ce({...i,errorMessage:y,descriptionProps:u,errorMessageProps:f,labelPosition:s});y&&(t="error");let{hoverProps:_,isHovered:h}=useHover({isDisabled:i.isDisabled}),{isFocused:x,focusProps:P,isFocusVisible:C}=useFocusRing(),R=bo({isReadOnly:i.isReadOnly,validationState:t}),z=filterTruthyValues({"data-readonly":i.isReadOnly,"data-disabled":i.isDisabled,"data-validation-state":t,"data-focused":x,"data-focus-visible":C});return jsxs("div",{className:classNames(ze({labelPosition:s}),"BaselineUI-TextInput",e),"data-block-id":l,style:o,ref:p,children:[i.label||s==="start"&&v?jsxs("div",{className:he({labelPosition:s,hasMessage:!!v}),children:[jsx("label",{...m,className:_e,children:i.label}),s==="start"&&v]}):null,jsxs("div",{className:classNames({[rr]:i.isDisabled}),children:[jsxs("div",{..._,className:ar({validationState:t,isHovered:h,isFocused:x,variant:r,isReadOnly:!!i.isReadOnly,isDisabled:!!i.isDisabled}),children:[jsx("input",{...mergeProps(c,P,z),className:classNames(ao({isDisabled:i.isDisabled,labelPosition:s}),"BaselineUI-TextInput-Input",n),style:a,ref:d}),R?jsx(R,{className:tr({validationState:t,isReadOnly:i.isReadOnly}),size:16}):null]}),s==="top"&&v]})]})});lr.displayName="TextInput";var pr=({value:e,...t})=>{let r=useNumberFormatter(t);return jsx(Fragment,{children:r.format(e)})};pr.displayName="NumberFormat";var Jn="_1yep5z6gb _1yep5z6gc _1yep5z6gd",ei=b({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),ri=b({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),oi=b({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var si=br.forwardRef(({className:e,count:t,style:r,size:o="md",icon:s,...a},n)=>{let l={isRequired:!1},i=s||(o==="md"?CheckmarkIcon$2:CheckmarkIcon$3);!a["aria-label"]&&!a["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=br.useRef(null),d=useToggleState({...a,...l}),{inputProps:c,isPressed:m,isDisabled:u,isReadOnly:f,isSelected:g}=useSwitch({...a,...l},d,p),{focusProps:y,isFocused:v,isFocusVisible:_}=useFocusRing(),{hoverProps:h,isHovered:x}=useHover({});return jsxs("label",{ref:n,style:r,className:classNames(Jn,"BaselineUI-Reaction",e),"data-block-id":a["data-block-id"],"data-focused":v,"data-focus-visible":_,"data-disabled":u,"data-hovered":x,"data-pressed":m,"data-selected":g,children:[jsx(VisuallyHidden,{children:jsx("input",{...c,...y,ref:p})}),jsxs("div",{...h,className:ei({isSelected:g,isFocusVisible:_,isHovered:x,isReadOnly:f,isDisabled:u}),children:[jsx("div",{className:oi({isDisabled:u,isReadOnly:f}),children:jsx(i,{size:o==="md"?20:16})}),jsx("div",{className:ri({isSelected:d.isSelected,isDisabled:u,isReadOnly:f,size:o}),children:jsx(pr,{value:t})})]})]})});si.displayName="Reaction";var ni=b({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),ii=b({defaultClassName:"_1jwycy87 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6cf",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6c3"},variant:{default:"_1yep5z6e8 _1yep5z6d7",inverse:"_1yep5z6bf _1yep5z6e0 _1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Kt=br.forwardRef(({children:e,state:t,overlayProps:r,arrowProps:o,placement:s,variant:a,size:n,tooltipProps:l,includeArrow:i},p)=>{let{tooltipProps:d}=useTooltip({isOpen:t.isOpen},t),c=useMemo(()=>{switch(s){case"top":return {x:0,y:4};case"bottom":return {x:0,y:-4};case"left":return {x:4,y:0};case"right":return {x:-4,y:0};default:return {x:0,y:0}}},[s]),m=useReducedMotion(),[u]=useSpring(()=>({from:{opacity:0,transform:`translate(${c.x}px, ${c.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!m})),f=s==="center"?"bottom":s;return jsxs(animated.span,{...r,style:{...u,...r.style},ref:p,"data-placement":f,children:[i?jsx("div",{className:ni({placement:f,variant:a}),...o}):null,jsx("div",{...mergeProps(d,l),className:ii({variant:a,size:n}),children:e})]})});Kt.displayName="TooltipContent";var _o=br.forwardRef(({className:e,children:t,...r},o)=>{let{theme:s}=useContext(Pe);return jsx(Overlay,{...r,children:jsx(ke,{ref:o,theme:s,className:classNames("BaselineUI-Portal",e),children:t})})});_o.displayName="Portal";function ci({ref:e,onIntersect:t,isDisabled:r,threshold:o,rootMargin:s,root:a}){let n=br.useRef(null);useEffect(()=>{if(r){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([l])=>{t(l);},{root:a?.current,rootMargin:s,threshold:o});},[t,r,a,s,o]),useEffect(()=>{let{current:l}=n;return e.current&&l?.observe(e.current),()=>l?.disconnect()},[e]);}function mi({ref:e,onResize:t,isDisabled:r}){let o=br.useRef(null),[s,a]=br.useState();return br.useEffect(()=>{if(r){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([n])=>{a(n.contentRect),t?.(n);});},[t,r,a]),br.useEffect(()=>{let{current:n}=o;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:s}}function zo({src:e,alt:t}){let[r,o]=useState(!1),[s,a]=useState(!1),[n,l]=useState(!1),i=()=>{o(!0),l(!1);},p=()=>{a(!0),l(!1);};return useEffect(()=>{if(!e)return;l(!0);let d=new Image;return d.src=e,d.addEventListener("load",i),d.addEventListener("error",p),()=>{d.removeEventListener("load",i),d.removeEventListener("error",p);}},[e]),{isLoaded:r,hasError:s,isLoading:n,imgProps:{src:r?e:void 0,alt:t}}}function Re(){let e=useRef(!0);return useEffect(()=>{e.current=!1;},[]),e.current}var ui="SET_STATE",Co="UNDO",xo="REDO",Ky=(e,t)=>{let{past:r,present:o,future:s}=e;switch(t.type){case ui:return {past:[...r,o],present:t.data,future:[]};case Co:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...s]};case xo:return {past:[...r,o],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},fi=(e={},{isDisabled:t,onAction:r})=>{let o=Re(),[s,a]=useReducer(Ky,{past:[],present:e,future:[]}),{past:n,present:l,future:i}=s,p=g=>{a({type:ui,data:g});},d=useRef(),c=()=>{d.current=Co,a({type:Co});},m=()=>{d.current=xo,a({type:xo});},u=!!n?.length,f=!!i?.length;return useGranularEffect(()=>{(d.current===Co||d.current===xo)&&(r?.(l,d.current),d.current=void 0);},[l],[r,o]),{state:l,push:t?()=>{}:p,undo:t?()=>{}:c,redo:t?()=>{}:m,pastStates:n,futureStates:i,canUndo:u,canRedo:f}};var Yt=br.createContext({messages:{}}),bi=({children:e,messages:t={},...r})=>{let o=br.useMemo(()=>({messages:t}),[t]);return jsx(I18nProvider,{...r,children:jsx(Yt.Provider,{value:o,children:e})})};bi.displayName="I18nProvider";function M(e){let{messages:t}=useContext(Yt);!e&&Wy(t)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");let r=useMessageFormatter(e?cleanKeyFromGlobImport(e):t),o=useLocale();return {formatMessage:(s,a)=>{if(typeof s=="object")try{return r(s.id,a)}catch{return console.warn(`BUI \u{1F30D}: Translation not found for key: \`${s.id.toString()}\`. The default message, i.e. \`${s.defaultMessage}\`, will be used instead.`),s.defaultMessage||s.id}else try{return r(s,a)}catch{return console.warn(`BUI \u{1F30D}: Translation not found for key: \`${s.toString()}\`. The default message, i.e. \`${s.toString()}\`, will be used instead.`),s}},locale:o}}var Y=e=>e;function Jw(e,t,r){let o=br.useRef(null);return br.useEffect(()=>{if(e)return o.current=new MutationObserver(r),o.current.observe(e,t),()=>{o.current&&o.current.disconnect();}},[e,t,r]),o.current}function _i(e,t){let[r,o]=useState(()=>{try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(a){return console.log(a),t}});return [r,a=>{try{let n=a instanceof Function?a(r):a;o(n),window.localStorage.setItem(e,JSON.stringify(n));}catch(n){console.log(n);}}]}function nI({ref:e,onSelectionChange:t,onSelectionEnd:r,isDisabled:o}){let s=br.useRef(null);usePress({ref:e,isDisabled:o,onPressEnd(){let n=getOwnerWindow(e.current).getSelection();n&&e.current?.contains(n.anchorNode)&&r?.(n);},onPressStart(){let a=getOwnerWindow(e.current);s.current=a.getSelection(),s.current&&s.current.removeAllRanges();}}),useEffect(()=>{let a=e.current;if(!a||o)return;function n(){let p=getOwnerWindow(a).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let l=getOwnerDocument(a);return l.addEventListener("selectionchange",n),()=>{l.removeEventListener("selectionchange",n);}},[e,t,o]);}function Po(e){let t=useCallback(()=>{let s=getOwnerWindow(e??document.body),a=s.matchMedia(queries.tablet),n=s.matchMedia(queries.desktop);return a.matches?"tablet":n.matches?"desktop":"mobile"},[e]),[r,o]=br.useState(t);return useLayoutEffect$1(()=>{let s=getOwnerWindow(e),a=()=>{o(t());};return s.addEventListener("resize",a),a(),()=>{s.removeEventListener("resize",a);}},[e,t]),r}var xi=br.forwardRef(({children:e,placement:t="bottom",delay:r=1e3,closeDelay:o=500,variant:s="default",size:a="md",includeArrow:n=!0,portalContainer:l,...i},p)=>{let d=br.useRef(null),c=br.useRef(null),m=!i.text||i.isDisabled,u=useTooltipTriggerState({...i,delay:r,closeDelay:o,isDisabled:m}),{triggerProps:f,tooltipProps:g}=useTooltipTrigger({...i,isDisabled:m,delay:r,closeDelay:o},u,d),{overlayProps:y,arrowProps:v,placement:_,updatePosition:h}=useOverlayPosition({arrowSize:n?13:0,targetRef:d,arrowBoundaryOffset:n?8:0,offset:n?12:2,overlayRef:c,placement:t,isOpen:u.isOpen,...i});return ci({ref:c,threshold:1,onIntersect:h,isDisabled:!u.isOpen}),mi({ref:d,onResize:h,isDisabled:!u.isOpen}),jsxs(FocusableProvider,{...f,ref:d,children:[e,u.isOpen?jsx(_o,{disableFocusManagement:!0,portalContainer:l,children:jsx(Kt,{ref:mergeRefs(p,c),state:u,arrowProps:v,overlayProps:y,placement:_,tooltipProps:g,variant:s,size:a,includeArrow:n,children:i.text})}):null]})});xi.displayName="Tooltip";var Pi="_1azy5686",ki="_1azy5685",Ri="var(--_1azy5680)",wi="_1azy5688",Ii="_1azy5689",Ti="_1azy5681 z9nup82",Ni="_1azy5682";var Si="_1azy5687";var hg={sm:16,md:20},zg={sm:[CheckFilledIcon,ErrorAltFilledIcon],md:[CheckFilledIcon$1,ErrorAltFilledIcon$1]},ko=br.forwardRef(({className:e,style:t,size:r="md",variant:o="active",...s},a)=>{let{labelProps:n,progressBarProps:l}=useProgressBar({...s,isIndeterminate:!0}),i=hg[r],p=i/2-2,d=2*p*Math.PI,c=zg[r][o==="success"?0:1];return jsxs("div",{className:classNames(Ti,e),ref:a,style:{...assignInlineVars({[Ri]:`${d}px`}),...t},children:[jsxs("div",{...l,className:Ni,children:[(o==="active"||o==="inactive")&&jsxs("svg",{height:i,width:i,viewBox:`0 0 ${i} ${i}`,children:[jsx("circle",{role:"presentation",className:Pi,cx:i/2,cy:i/2,r:p}),o==="active"&&jsx("circle",{role:"presentation",className:ki,cx:i/2,cy:i/2,r:p})]}),o==="success"&&jsx(c,{className:Si,size:i}),o==="error"&&jsx(c,{className:wi,size:i})]}),s.label?jsx("span",{...n,className:Ii,children:s.label}):null]})});ko.displayName="ProgressSpinner";var Mi=b({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});var Ng={md:20,lg:24},Bi=br.forwardRef(({className:e,style:t,iconStart:r,size:o="md",elementType:s="button",...a},n)=>{let l=br.useRef(null),i=useToggleState(a),{buttonProps:p,isPressed:d}=useToggleButton(a,i,l),{hoverProps:c,isHovered:m}=useHover({isDisabled:a.isDisabled}),{isFocusVisible:u,isFocused:f,focusProps:g}=useFocusRing(),y=filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":f,"data-focus-visible":u,"data-disabled":a.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":i.isSelected});return jsxs(s,{...mergeProps(p,c,g,y),className:classNames(Mi({isHovered:m,isFocusVisible:u,isSelected:i.isSelected,size:o,isDisabled:a.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:mergeRefs(l,n),children:[r?jsx(r,{size:Ng[o]}):null,a.label]})});Bi.displayName="ToggleButton";var Ro=b({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Di=b({defaultClassName:"_16vugd01 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),Ei=b({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});var Vi=br.forwardRef(({className:e,style:t,label:r,labelPosition:o="end","data-block-id":s,...a},n)=>{let l=br.useRef(null),i=useToggleState(a),{isFocusVisible:p,isFocused:d,focusProps:c}=useFocusRing(),{inputProps:m,isPressed:u,isDisabled:f,isSelected:g,isReadOnly:y}=useCheckbox({...a,children:r},i,l),{hoverProps:v,isHovered:_}=useHover({isDisabled:f}),h=filterTruthyValues({"data-disabled":f,"data-readonly":y,"data-hovered":_,"data-selected":g,"data-pressed":u,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":p,"data-focused":d,"data-block-id":s});return jsxs("label",{...h,className:classNames(Di({labelPosition:o}),"BaselineUI-Checkbox",e),style:t,ref:n,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(m,c),ref:l})}),jsxs("div",{...v,className:Ei({isSelected:g&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:p,isDisabled:f,isReadOnly:y,hasError:a.isInvalid,isHovered:_}),children:[g&&!a.isIndeterminate?jsx(CheckmarkIcon$1,{size:12}):null,a.isIndeterminate?jsx(MinusIcon$1,{size:12}):null]}),r?jsx("span",{className:Ro({isDisabled:f}),children:r}):null]})});Vi.displayName="Checkbox";var Ai={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var Oi=b({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),ji="_1nsi9h1b",Ui=b({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),qi="_1nsi9h1c";var a1={style:"decimal"},s1={xs:[CaretLeftIcon,CaretRightIcon],sm:[CaretLeftIcon$1,CaretRightIcon$1],md:[CaretLeftIcon$2,CaretRightIcon$2],lg:[CaretLeftIcon$3,CaretRightIcon$3]},Wi=br.forwardRef(({className:e,style:t,minValue:r=1,defaultValue:o=1,incrementAriaLabel:s,decrementAriaLabel:a,"aria-label":n,size:l="md",variant:i="floating",...p},d)=>{let{locale:c}=useLocale(),m=M(Ai),u={...p,formatOptions:a1,minValue:r,incrementAriaLabel:s||m.formatMessage("nextPage"),decrementAriaLabel:a||m.formatMessage("prevPage"),defaultValue:o,"aria-label":n||m.formatMessage("goToPage")},f=br.useRef(null),g=useNumberFieldState({...u,locale:c}),{inputProps:y,decrementButtonProps:v,incrementButtonProps:_,groupProps:h}=useNumberField({...u,onKeyDown:F=>{F.key==="Enter"&&f.current?.blur(),p.onKeyDown?.(F);}},g,f),{hoverProps:x,isHovered:P}=useHover({}),{focusProps:C,isFocused:R,isFocusVisible:z}=useFocusRing(),w=i==="floating",[B,T]=s1[l],N=filterTruthyValues({"data-focus-visible":z,"data-focused":R,"data-hovered":P,"data-block-id":p["data-block-id"]});return jsxs("div",{...mergeProps(h,x,N),className:classNames(Ui({size:l,variant:i}),"BaselineUI-Pagination",e),style:t,ref:d,children:[jsx(I,{icon:B,...v,elementType:"div",size:l,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),i==="floating"&&jsx(H,{orientation:"vertical"}),jsxs("div",{className:Oi({isFocusVisible:z,variant:i}),"aria-label":m.formatMessage("pageXofY",{arg0:y.value,arg1:g.maxValue}),children:[jsx("input",{...mergeProps(y,C),ref:f,className:classNames("BaselineUI-Pagination-Input",ji),style:{width:`${y.value?.toString().length||1}ch`}}),jsxs("span",{className:qi,children:["/ ",jsx(pr,{value:g.maxValue})]})]}),i==="floating"&&jsx(H,{orientation:"vertical"}),jsx(I,{icon:T,..._,elementType:"div",size:l,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Wi.displayName="Pagination";var Xi=({date:e,...t})=>{let r=useDateFormatter(t);return jsx(Fragment,{children:r.format(e)})};Xi.displayName="DateFormat";var wo=b({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),Zi="_1f789qjj",$i="_1f789qj0",Qi=b({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});var v1=({item:e,state:t,variant:r="neutral"})=>{let o=br.useRef(null),{focusProps:s,isFocusVisible:a}=useFocusRing({within:!0}),{rowProps:n,gridCellProps:l,removeButtonProps:i,allowsRemoving:p,isDisabled:d,isSelected:c,allowsSelection:m}=useTag({item:e},t,o),u=br.useRef(null),{buttonProps:f}=useButton(i,u),{hoverProps:g,isHovered:y}=useHover({isDisabled:d}),{hoverProps:v,isHovered:_}=useHover({isDisabled:d}),h=e.value?.icon,x=e.value?.variant??r;return jsx("div",{...mergeProps(n,s,v),ref:o,className:wo({isFocusVisible:a,variant:x,isDisabled:d,allowsRemoving:p,isSelected:c,allowsSelection:m,isHovered:_}),children:jsxs("div",{...l,className:Zi,children:[c?jsx(CheckmarkIcon$3,{size:16}):null,!c&&h?jsx(h,{size:16}):null,e.rendered,p?jsx("button",{...mergeProps(f,g),className:Qi({variant:x,isHovered:y}),children:jsx(XIcon$2,{})}):null]})})},Qt=br.forwardRef(({className:e,style:t,...r},o)=>{let s=br.useRef(null),a=useListState(r),{gridProps:n}=useTagGroup(r,a,s);return jsx("div",{...n,className:classNames($i,e),style:t,ref:mergeRefs(o,s),children:[...a.collection].map(l=>jsx(v1,{state:a,item:l,variant:r.variant},l.key))})});Qt.displayName="TagGroupBase";var ol=br.forwardRef(({items:e,...t},r)=>jsx(Qt,{...t,items:e,ref:r,children:o=>jsx(Item,{children:o.label})}));ol.displayName="TagGroup";var tl="_1yep5z6j3",al=b({defaultClassName:"_1kvz17db _1yep5z6iq _1yep5z6is",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),sl=b({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iq _1yep5z6ir",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),nl="_1yep5z6d3 _1yep5z6c6",il=b({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6iq _1yep5z6it",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),ll="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",pl=b({defaultClassName:"_1kvz17d7 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var ea=br.forwardRef(({children:e,className:t,style:r},o)=>{let{headers:s}=useContext(we),{disabledKeys:a}=useContext(we),{keyboardProps:n}=useKeyboard({onKeyDown:l=>{let i=getOwnerDocument(l.target),p=[...s?.keys()||[]].findIndex(f=>s?.get(f)?.current===i.activeElement),d=s?.get(p||0),c=s?.size||0,m=f=>{let g=s.get(f-1<0?c-1:f-1);a?.has(g?.current?.getAttribute("data-key")||"")?m(f-1):g?.current?.focus();},u=f=>{let g=s.get((f+1)%c);a?.has(g?.current?.getAttribute("data-key")||"")?u(f+1):g?.current?.focus();};if(d)switch(l.key){case"Home":{l.preventDefault(),u(-1);break}case"End":{l.preventDefault(),m(c);break}case"ArrowDown":{l.preventDefault(),u(p);break}case"ArrowUp":{l.preventDefault(),m(p);break}default:l.continuePropagation();}}});return jsx("div",{...n,style:r,className:classNames(tl,t),ref:o,children:br.Children.map(e,(l,i)=>br.cloneElement(l,{index:i}))})});ea.displayName="AccordionBase";var we=br.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),ml=br.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:s="multiple",onChange:a,className:n,style:l},i)=>{let[p,d]=br.useState(r),c=br.useRef(new Map).current,[m,u]=br.useState(s);useEffect(()=>{u(m);},[m]),useEffect(()=>{a?.(p);},[p,a]);let f=useMemo(()=>({expandedKeys:o||p,setExpandedKeys:o?()=>{}:d,disabledKeys:t,headers:c,expansionMode:m}),[o,p,t,c,m]);return jsx(we.Provider,{value:f,children:jsx(FocusScope,{children:jsx(ea,{className:n,style:l,ref:i,children:e})})})});ml.displayName="Accordion";var oa=br.forwardRef(({title:e,actions:t,controlId:r,value:o,id:s,index:a,subLabel:n,showActionsOnTriggerOnly:l},i)=>{let p=br.useRef(null),{expandedKeys:d,setExpandedKeys:c,expansionMode:m,disabledKeys:u,headers:f}=useContext(we),g=u?.has(o),y=useFocusManager();invariant(y);let{focusNext:v,focusPrevious:_}=y,{keyboardProps:h}=useKeyboard({onKeyDown:k=>{k.key==="ArrowRight"?v({wrap:!0}):k.key==="ArrowLeft"?_({wrap:!0}):k.continuePropagation();},isDisabled:g});useEffect(()=>{invariant(typeof a=="number","AccordionItem must have an index"),f?.set(a,p);},[a,f]);let x=()=>{c(k=>{let L=new Set(k);return L.has(o)?L.delete(o):(m==="single"&&L.clear(),L.add(o)),L});},{buttonProps:P}=useButton({"aria-expanded":d.has(o),"aria-controls":r,onPress:x,isDisabled:g},p),{pressProps:C}=usePress({onPress:x,isDisabled:g}),{focusProps:R,isFocusVisible:z}=useFocusRing(),{hoverProps:w,isHovered:B}=useHover({isDisabled:g}),{focusProps:T,isFocusVisible:N}=useFocusRing({within:!0}),F=d.has(o);return jsxs("h3",{...mergeProps(h,C,w,T),className:il({isFocusVisible:z,isHovered:B,isDisabled:g}),ref:i,children:[jsxs("div",{className:pl({isDisabled:!!g}),children:[jsx(ChevronRightIcon,{className:sl({isExpanded:F}),size:8}),jsx("button",{...mergeProps(P,R),id:s,"data-key":o,className:ll,ref:p,children:e})]}),t?.length?jsx("div",{"data-testid":"action-buttons",className:al({showActionsOnTriggerOnly:l,isTriggered:N||B}),children:t.map((k,L)=>jsx(I,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:g,...k},L))}):null,n?jsx("div",{className:nl,children:n}):null]})});oa.displayName="AccordionHeader";var hl=br.forwardRef(({title:e,actions:t,children:r,value:o,index:s,subLabel:a,style:n,className:l,showActionsOnTriggerOnly:i},p)=>{let d=useId(),c=useId(),{expandedKeys:m}=useContext(we),u=br.useRef(null),f=m.has(o),g=Re(),y=useReducedMotion(),v=useTransition(f?[o]:[],{from:!g&&!y&&{height:0,opacity:0},enter:()=>async _=>{await _({height:u.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:_=>_});return jsxs(Fragment,{children:[jsx(FocusScope,{children:jsx(oa,{value:o,actions:t,id:c,title:e,controlId:d,ref:p,index:s,subLabel:a,showActionsOnTriggerOnly:i})}),v(_=>jsx(animated.div,{role:"region","aria-labelledby":c,id:d,style:{..._,overflow:"hidden"},children:jsx("div",{ref:u,className:l,style:n,children:r})}))]})});hl.displayName="AccordionItem";var ta=br.forwardRef(({variant:e,isOpen:t,validationState:r="valid",...o},s)=>{let a=br.useRef(null),{buttonProps:n,isPressed:l}=useButton({...o,isDisabled:o.isDisabled||o.isReadOnly},a),{hoverProps:i,isHovered:p}=useHover({isDisabled:o.isDisabled}),{focusProps:d,isFocused:c,isFocusVisible:m}=useFocusRing(),u=bo({isReadOnly:o.isReadOnly,validationState:r});o.isReadOnly&&(n.disabled=!1);let f=filterTruthyValues({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":c,"data-focus-visible":m,"data-hovered":p,"data-pressed":l,"data-open":t});return jsxs("button",{...mergeProps(n,i,d,f),ref:mergeRefs(s,a),className:classNames(fn({isFocused:m,isDisabled:o.isDisabled}),ar({variant:e,isHovered:p,isFocused:m,validationState:r,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),"BaselineUI-Select-Button"),children:[o.children,u?jsx("span",{"aria-hidden":!0,className:classNames(tr({validationState:r,isReadOnly:!!o.isReadOnly}),gn),children:jsx(u,{size:16})}):null,jsx("span",{"aria-hidden":!0,children:jsx(ChevronDownIcon,{size:8,className:un({isOpen:t})})})]})});ta.displayName="SelectButton";var sa=br.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary","data-block-id":s,...a},n)=>{let l=br.useRef(null),i=useSelectState({...a,validationState:a.validationState==="error"?"invalid":"valid"}),{labelProps:p,triggerProps:d,valueProps:c,menuProps:m,descriptionProps:u,errorMessageProps:f}=useSelect({...a,validationState:a.validationState==="error"?"invalid":"valid"},i,l),g=Ce({...a,descriptionProps:u,errorMessageProps:f,labelPosition:r}),y=i.selectedItem?.value,v=y&&"icon"in y&&y.icon;return jsxs(Fragment,{children:[jsxs("div",{style:t,className:classNames(ze({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":s,ref:n,children:[a.label||g?jsxs("div",{className:he({labelPosition:r,hasMessage:!!g}),children:[a.label?jsx("div",{...p,className:classNames(_e,"BaselineUI-Select-Label"),children:a.label}):null,r==="start"&&g]}):null,jsx(HiddenSelect,{state:i,triggerRef:l,isDisabled:a.isDisabled,label:a.label,name:a.name}),jsx(ta,{...d,isOpen:i.isOpen,variant:o,validationState:a.validationState,ref:l,isReadOnly:a.isReadOnly,children:jsxs("span",{className:bn,children:[v?jsx(v,{size:24}):null,jsx("span",{...c,children:y?"label"in y&&y?.label:a.placeholder})]})}),r==="top"&&g]}),i.isOpen?jsx(fe,{offset:2,state:i,triggerRef:l,style:t,className:classNames(mo,"BaselineUI-Select-Popover"),...a,children:jsx(le,{...m,label:a.label,items:a.items,UNSAFE_state:i,showSelectedIcon:a.showSelectedIcon,className:yn})}):null]})});sa.displayName="SelectBase";var Lo=br.forwardRef((e,t)=>jsx(sa,{...e,ref:t,children:r=>r.type==="section"?jsx(Section,{items:r.children,title:r.id,children:o=>jsx(Item,{children:o.label},o.id)},r.id):jsx(Item,{textValue:r.label,children:r.label},r.id)}));Lo.displayName="Select";var kl="_1017q4c5",Rl=b({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),wl="_1017q4c4";var ib={sm:AvatarIcon,md:AvatarIcon$1},mr=br.forwardRef(({className:e,style:t,size:r="md",icon:o=ib[r],name:s,imgSrc:a,showInitials:n,isDisabled:l,hasNotifications:i,imgLoading:p,"data-block-id":d},c)=>{let{imgProps:m}=zo({src:a,alt:s}),u=s?.split(" ").map(f=>f[0]).join("");return jsxs("span",{className:classNames(Rl({size:r,isDisabled:l}),"BaselineUI-Avatar",e),"data-disabled":l,ref:c,style:t,"aria-disabled":l,"data-block-id":d,children:[a?jsx("img",{...m,loading:p,className:wl}):null,!n&&!a&&jsx(o,{size:r==="sm"?16:24}),n&&!a?r==="sm"?u[0]:u:null,i?jsx("div",{"data-testid":"notification",className:kl}):null]})});mr.displayName="Avatar";var Il="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",Tl=b({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wl"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wp"},variant:{primary:"_1x62fhbb _1yep5z6vm",ghost:"_1yep5z6vp"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g4"],[{variant:"primary",isSelected:!0},"_1yep5z61h2"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h3"]]}),Nl=b({defaultClassName:"_1x62fhb3 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t1 _1yep5z6t2 _1yep5z6t3"}},defaultVariants:{},compoundVariants:[]}),Sl="_1x62fhbf",Ml="_1yep5z6ja _1yep5z6j7 _1yep5z6fk _1yep5z6j9",Ll=b({defaultClassName:"_1x62fhb0 _1yep5z6j3 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1yep5z6xl",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Bl=({state:e,...t})=>{let r=br.useRef(null),{tabPanelProps:o}=useTabPanel(t,e,r),{selectedItem:s}=e,{focusProps:a,isFocusVisible:n}=useFocusRing();if(!s?.value)return null;let{className:l,style:i,"data-block-id":p}=s.value;return jsx("div",{...mergeProps(o,a),ref:r,className:classNames({[Ml]:n},"Baseline-Tabs-TabPanel",l),"data-block-id":p,style:i,children:s?.props.children})};var pa=br.forwardRef(({className:e,style:t,tabHeaderStyle:r,tabHeaderClassName:o,variant:s="primary",actions:a,onRemove:n,"data-block-id":l,...i},p)=>{let d=useTabListState({...i,selectedKey:i.selectedValue,defaultSelectedKey:i.defaultSelectedValue,disabledKeys:i.disabledValues}),c=br.useRef(null),{tabListProps:m}=useTabList({...i,selectedKey:i.selectedValue,defaultSelectedKey:i.defaultSelectedValue,disabledKeys:i.disabledValues},d,c);return jsxs("div",{className:classNames("BaselineUI-Tabs",e),style:t,ref:p,"data-block-id":l,children:[jsxs("div",{className:classNames(Ll({variant:s}),o),style:r,children:[jsx("div",{...m,className:Nl({variant:s}),ref:c,children:[...d.collection].map(u=>(invariant(u.value,"TabItem requires a value prop"),jsx(El,{item:u,state:d,onRemove:n,variant:s},u.key)))}),a?.map((u,f)=>jsx("div",{className:Il,children:jsx(I,{...u,variant:"secondary",size:"sm",className:classNames(Sl,u.className)})},f))]}),jsx(Bl,{state:d},d.selectedItem?.key)]})});pa.displayName="TabsBase";var El=({item:e,onRemove:t,state:r,variant:o})=>{let{key:s,value:a}=e,n=br.useRef(null),{tabProps:l,isSelected:i,isDisabled:p}=useTab({key:s},r,n),{hoverProps:d,isHovered:c}=useHover({});invariant(a,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:f,titleClassName:g}=a,{focusProps:y,isFocusVisible:v,isFocused:_}=useFocusRing(),{keyboardProps:h}=useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&t?t(s):P.continuePropagation();}}),x=filterTruthyValues({"data-selected":i,"data-disabled":p,"data-focused":_,"data-hovered":c,"data-focus-visible":v});return jsxs("div",{...mergeProps(h,l,d,y,x),className:classNames(Tl({isHovered:c,isSelected:i,isFocusVisible:v,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",g),style:f,ref:n,children:[u?jsx(u,{size:20}):null,m,t?jsx(I,{variant:"secondary",elementType:"div",icon:XIcon,size:"xxs",onPress:()=>{t(s);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:i||_||c?1:0}}):null]})};El.displayName="TabButton";var Hl=br.forwardRef(({children:e,...t},r)=>{let o=useMemo(()=>br.Children.map(e,s=>!s||!br.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return jsx(pa,{...t,ref:r,items:o,children:s=>jsx(Item,{title:s.title,children:s.children},s.key)})});Hl.displayName="Tabs";var Vl=({children:e,title:t,value:r})=>(invariant(r,"TabItem requires a value prop"),invariant(t,"TabItem requires a title prop"),invariant(e,"TabItem requires children"),e);Vl.displayName="TabItem";var Al={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var Ol=b({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),jl=b({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),Ul=b({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),ql=b({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Kl=b({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Gl=b({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Yl=b({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var Hb={error:{sm:ErrorAltFilledIcon,md:ErrorAltFilledIcon$1},info:{sm:InfoFilledIcon,md:InfoFilledIcon$1},success:{sm:CheckFilledIcon,md:CheckFilledIcon$1},warning:{sm:WarningFilledIcon,md:WarningFilledIcon$1}},Wl=br.forwardRef(({className:e,description:t,actionLabel:r,onAction:o,style:s,variant:a="info",title:n,arrangement:l="single",onClose:i,size:p="sm"},d)=>{let c=M(Al),m=r&&jsx(A,{variant:l==="compact"?"tertiary":"ghost",label:r,onPress:o}),u=Hb[a][p];return jsxs("div",{className:classNames(jl({variant:a,arrangement:l,hasButton:!!r||!!i,hasCloseButton:!!i}),e),style:s,role:"alert",ref:d,children:[jsxs("div",{className:Yl({arrangement:l}),children:[jsx(u,{className:Kl({variant:a}),size:16}),jsxs("div",{className:Ol({arrangement:l}),children:[jsx("h3",{className:Gl({size:p}),children:n}),jsx("section",{className:Ul({size:p}),children:t})]}),l==="compact"&&m]}),jsxs("div",{className:ql({arrangement:l}),children:[l!=="compact"&&m,i?jsx(I,{variant:"secondary",icon:CloseIcon,size:"sm",onPress:i,"aria-label":c.formatMessage("close")}):null]})]})});Wl.displayName="InlineAlert";var Xl=b({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wl",title:"_1yep5z6wl",label:"_1yep5z6wm",value:"_1yep5z6wm",helper:"_1yep5z6wn",body:"_1yep5z6wl"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61en"],[{type:"title",size:"md"},"_1yep5z61eq"],[{type:"title",size:"lg"},"_1yep5z61et"],[{type:"body",size:"sm"},"_1yep5z61fd"],[{type:"body",size:"md"},"_1yep5z61fg"],[{type:"body",size:"lg"},"_1yep5z61fg"],[{type:"subtitle",size:"sm"},"_1yep5z61f9"],[{type:"subtitle",size:"md"},"_1yep5z61fc"],[{type:"subtitle",size:"lg"},"_1yep5z61fc"],[{type:"label",size:"md"},"_1yep5z61fb"],[{type:"label",size:"lg"},"_1yep5z61fb"],[{type:"value",size:"md"},"_1yep5z61fb"],[{type:"value",size:"lg"},"_1yep5z61fb"],[{type:"helper",size:"sm"},"_1yep5z61f5"]]});var X=br.forwardRef(({elementType:e="span",type:t="title",children:r,size:o="md",...s},a)=>jsx(e,{...s,className:classNames(Xl({size:o,type:t}),"BaselineUI-Text",s.className),ref:a,children:r}));X.displayName="Text";var Zl=b({defaultClassName:"siobe20 _1yep5z6ak _1yep5z6as _1yep5z6j3 _1yep5z6bf _1yep5z6jh _1yep5z6jf _1yep5z6ey _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6xj",medium:"_1yep5z6xk"}},defaultVariants:{},compoundVariants:[]}),$l="siobe23";var Fo=br.forwardRef(({className:e,style:t,children:r,background:o="medium",title:s,action:a,"data-block-id":n,onCloseRequest:l,...i},p)=>{let{formatMessage:d}=M(),c=br.useRef(null),{dialogProps:m,titleProps:u}=useDialog(i,c);return jsxs("div",{...m,className:classNames(Zl({background:o}),"BaselineUI-Drawer",e),"data-block-id":n,style:t,ref:mergeRefs(p,c),children:[jsxs(D,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:$l,children:[jsx(X,{type:"title",size:"sm",...u,className:Ss,children:s}),jsxs(D,{children:[a?jsx(I,{...a,variant:"secondary"}):null,jsx(I,{variant:"secondary",size:"md",icon:XIcon$1,onPress:l,"aria-label":d(Gb.close)})]})]}),jsx(H,{variant:o==="subtle"?"primary":"secondary"}),r]})});Fo.displayName="Drawer";var Gb=Y({close:{id:"close",defaultMessage:"Close"}});function ep(e,t,r){let{isDisabled:o}=e,s=useReducedMotion(),[{y:a},n]=useSpring(()=>({y:0,immediate:s,config:{easing:easings.easeOutCubic}})),l=useRef(0),i=useCallback(()=>{n.start({y:l.current,onRest:()=>{t.close();}});},[n,t]),p=useCallback(c=>{c.target.closest("[data-drawer]")||i();},[i]);useGranularLayoutEffect(()=>{l.current=r.current?.offsetHeight||0,n.set({y:l.current}),n.start({y:0,immediate:!!s});},[],[n,s]);let d=a.to({range:[0,l.current/2,l.current],output:[.5,.2,0],extrapolate:"clamp"}).to(c=>`rgba(0,0,0,${c})`);return {overlayProps:{style:o?void 0:{transform:a.to(c=>`translateY(${c}px)`)}},underlayProps:{style:o?void 0:{backgroundColor:d},onClick:o?void 0:p},close:i}}var rp=b({defaultClassName:"aml2vl0 _1yep5z6ea _1yep5z6g8 _1yep5z6g9 _1yep5z6ga",variantClassNames:{enableDrawer:{false:"_1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var Ie=br.createContext({state:null,triggerProps:{},overlayProps:{}}),Ho=({children:e,...t})=>{let r=useOverlayTriggerState(t),{triggerProps:o,overlayProps:s}=useOverlayTrigger({type:"dialog"},r),a=useMemo(()=>({state:r,triggerProps:o,overlayProps:s}),[r,o,s]);return jsx(Ie.Provider,{value:a,children:e})};Ho.displayName="Modal";var fa=br.createContext({isDrawer:!1,closeDrawer:()=>{}}),dv=animated(ke),cv=({children:e,className:t,style:r,isDismissable:o=!0,isKeyboardDismissDisabled:s=!1,portalContainer:a,disableAnimation:n,enableDrawer:l=!1,"data-block-id":i})=>{let{state:p}=br.useContext(Ie),d=Po(a),c=typeof l=="boolean"&&l||l==="auto"&&d==="mobile";invariant(p,"ModalContent must be a child of Modal");let m=br.useRef(null),u=typeof o=="function"?o(c):o,f=typeof s=="function"?s(c):s,{underlayProps:g,overlayProps:y,close:v}=ep({isDisabled:!c,isDismissable:u},p,m),{modalProps:_,underlayProps:h}=useModalOverlay({isDismissable:!c,isKeyboardDismissDisabled:f},p,m),{theme:x}=useContext(Pe),P=useReducedMotion(),C=useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!P||n,config:{easing:easings.easeInBounce}}),R=useMemo(()=>({..._.style,...c?{...y.style,width:"100%"}:C}),[y.style,_.style,c,C]),z=useMemo(()=>({isDrawer:c,closeDrawer:v}),[c,v]);return jsx(Overlay,{portalContainer:a,children:jsx(fa.Provider,{value:z,children:jsx(dv,{className:classNames(rp({enableDrawer:c}),t),theme:x,UNSAFE_domProps:{...mergeProps(h,g),"data-testid":"underlay","data-block-id":i},style:{...r,...g.style},children:jsx(animated.div,{...mergeProps(_,y),style:R,ref:m,"data-drawer":c,children:e})})})})},mv=animated(cv),ya=({children:e,style:t,...r})=>{let{state:o}=br.useContext(Ie);invariant(o,"ModalContent must be a child of Modal");let s=useReducedMotion();return useTransition(o.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s||r.disableAnimation})((n,l)=>l&&jsx(mv,{...r,style:{...t,...n},children:typeof e=="function"?e({close:o.close}):e}))};var np=b({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6yh _1yep5z612y _1yep5z6130",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6uo _1yep5z6uw _1yep5z612m"}},defaultVariants:{},compoundVariants:[]});var ba=br.createContext({titleProps:{}}),pe=br.forwardRef(({children:e,className:t,style:r,size:o="md",variant:s="primary","data-block-id":a,...n},l)=>{let i=br.useRef(null),p=br.useRef(null),{isDrawer:d,closeDrawer:c}=useContext(fa),[m,u]=br.useState("");useLayoutEffect(()=>{let v=getOwnerDocument(p.current),_=n["aria-label"]||"";n["aria-labelledby"]&&(_=v.querySelector(`#${n["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),u(_);},[n]);let{dialogProps:f,titleProps:g}=useDialog(n,i),y=useMemo(()=>({titleProps:g}),[g]);return d?jsx(Fo,{title:m,onCloseRequest:c,className:t,...n,"data-drawer":!0,"data-block-id":a,ref:mergeRefs(p,l),children:e}):jsx(ba.Provider,{value:y,children:jsx("section",{...f,"data-block-id":a,ref:mergeRefs(i,l),style:r,className:classNames(np({size:d?"content":o,variant:s,isDrawer:d}),"BaselineUI-Dialog",t),children:e})})});pe.displayName="Dialog";var pp=br.forwardRef(({children:e,className:t,style:r},o)=>{let{titleProps:s}=useContext(ba),a=br.isValidElement(e)?Slot:"h3";return jsx(a,{...s,ref:o,className:t,style:r,children:e})});pp.displayName="DialogTitle";var Te={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Ao=({children:e})=>{let{triggerProps:t}=br.useContext(Ie);return jsx(Slot,{...t,children:e})};Ao.displayName="ModalTrigger";var Iv=({children:e})=>{let{state:t}=br.useContext(Ie);return jsx(Slot,{onPress:()=>t?.close(),children:e})};var Hr=br.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ae=({children:e,...t})=>{let r=br.useRef(null),o=useOverlayTriggerState(t),s=useOverlayTrigger(t,o),a=useMemo(()=>({state:o,overlayTriggerAria:s,triggerRef:r}),[o,s]);return jsx(Hr.Provider,{value:a,children:typeof e=="function"?e(o):e})};var Ne=br.forwardRef((e,t)=>{let{state:r,overlayTriggerAria:{overlayProps:o},triggerRef:s}=useContext(Hr);return invariant(s),r?.isOpen?jsx(fe,{ref:t,...e,triggerRef:e.triggerRef||s,overlayProps:o,state:r}):null});Ne.displayName="PopoverContent";var Oe=({children:e})=>{let{state:t,overlayTriggerAria:r,triggerRef:o}=useContext(Hr);invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=r;return typeof e=="function"?e({isOpen:t.isOpen,triggerProps:s,triggerRef:o}):jsx(Slot,{...mergeProps(s,{isSelected:t.isOpen}),ref:o,children:e})};var cp="_1dbkl5v",mp="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1",up="_1dbkl5e",fp=b({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6je _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j5 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wp"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),yp=b({defaultClassName:"_1dbkl50 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6ly _1yep5z6lz _1yep5z6m0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Oo="_1dbkl5t _1yep5z6ge _1yep5z6gf _1yep5z6gg _1yep5z69f _1yep5z69g _1yep5z69h",gp="_1dbkl5f z9nup87",jo="_1dbkl5u _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv",bp=b({defaultClassName:"_1dbkl5h _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j5 _1yep5z6j0",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6v1"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),vp="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j6",Uo="_1dbkl5n _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",_p="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1",qo=b({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6km _1yep5z6kn _1yep5z6ko"}},defaultVariants:{},compoundVariants:[]}),va="_1dbkl514 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",hp="_1dbkl53",zp=b({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6jf _1yep5z6ey _1yep5z6j6 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z6ye"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6u9 _1yep5z6up _1yep5z612m"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61i1"]]}),Cp=b({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6d8 _1yep5z6j5 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6it",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isFocusVisible:{true:"_1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6z3"},isDisabled:{true:"_1yep5z6wt"}},defaultVariants:{},compoundVariants:[]}),Vr="_1dbkl513",Ko="_1dbkl5o _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Go="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",_a="_1dbkl516",xp="_1dbkl515",ha="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69l _1yep5z69m _1yep5z69n",Yo=b({defaultClassName:"_1dbkl5w _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ja _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6jf _1yep5z6ji",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z612q _1yep5z6z3 _1yep5z612s"}},defaultVariants:{},compoundVariants:[]}),za="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy";var je=({color:e,isFocusVisible:t,isDisabled:r,isSelected:o,isPresentational:s})=>{let a=e&&e!==ye&&parseColor(e),n=a&&a.getChannelValue("alpha")===0,{hoverProps:l,isHovered:i}=useHover({isDisabled:r});return jsx("div",{...l,className:classNames(bp({removeBlendMode:!a,isFocusVisible:t,isDisabled:r,isSelected:o,isHovered:i&&!s&&!r}),{[kr({size:"xs"})]:n}),children:a?jsxs(Fragment,{children:[jsx("div",{className:classNames(Uo,kr({size:"xs"}))}),jsx("div",{className:Uo,style:{backgroundColor:n?void 0:a.toString("hexa")}})]}):jsx("div",{className:Uo,children:jsx(NoneIcon,{size:14})})})};var Rp=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],ur=parseColor("#000000").toFormat("hsla"),j="hsla",Or="hexa";function Ue(e){return typeof e=="string"?parseColor(e).toFormat(j):e?e.toFormat(j):null}function wp(e,t){return e?.getChannelValue("alpha")?t?.toString(Or)===e.toString(Or):!t?.getChannelValue("alpha")}function Ip(e,t,r){return t?t.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var ye="NONE";function Tp(e,t){let r=t?.map(s=>({id:parseColor(s.color).toString(Or),label:s.label}))||[],o={id:ye,label:e};return [...r,o]}var Wo=(e,{optionProps:t,isFocusVisible:r,isSelected:o},s)=>(invariant(e.value&&"label"in e.value,"Item must have label"),jsx("li",{...t,ref:s,"aria-label":e.value?.label||void 0,className:vp,children:jsx(je,{color:e.value.id,isFocusVisible:r,isSelected:o})}));var Mp=({value:e,...t})=>{let r=br.useRef(null),o=br.useRef(null),s=br.useRef(null),a=useColorAreaState({...t,value:e}),{colorAreaProps:n,gradientProps:l,xInputProps:i,yInputProps:p,thumbProps:d}=useColorArea({...t,value:e,inputXRef:r,inputYRef:o,containerRef:s},a);useEffect(()=>{r.current?.focus();},[]);let{focusProps:c,isFocusVisible:m}=useFocusRing();return jsxs("div",{ref:s,...n,className:classNames(cp,"BaselineUI-ColorInput-ColorArea"),children:[jsx("div",{...l,className:hp}),jsxs("div",{...d,className:classNames(Yo({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Ue(e)?.withChannelValue("alpha",1).toString("css")},children:[jsx("input",{ref:r,...i,...c}),jsx("input",{ref:o,...p,...c})]})]})};var Dp=({color:e,setColor:t,allowAlpha:r,...o})=>{let s=useColorFieldState({value:e,onChange:c=>{t(Ue(c)?.toFormat(j).withChannelValue("alpha",e.getChannelValue("alpha")??1)||ur);}}),a=br.useRef(null),{inputProps:n}=useColorField({...o,"aria-label":"Hex"},s,a),{focusProps:l,isFocused:i}=useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:d}=useHover({});return jsxs("div",{className:classNames(va,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsx("input",{...mergeProps(n,l,p),ref:a,className:zp({isFocused:i,isHovered:d,allowAlpha:r})}),r?jsx(Fp,{color:e,setColor:t}):null]})},Ep=({color:e,setColor:t,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:s}=useLocale();return jsxs("div",{className:classNames(va,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsx(ue,{"aria-label":e.getChannelName("red",s),value:o.getChannelValue("red"),showStepper:!1,className:Vr,onChange:a=>{t(o.withChannelValue("red",a).toFormat(j));},step:1,minValue:0,maxValue:255}),jsx(ue,{"aria-label":e.getChannelName("green",s),value:o.getChannelValue("green"),showStepper:!1,className:Vr,onChange:a=>{t(o.withChannelValue("green",a).toFormat(j));},step:1,minValue:0,maxValue:255}),jsx(ue,{"aria-label":e.getChannelName("blue",s),value:o.getChannelValue("blue"),showStepper:!1,className:Vr,onChange:a=>{t(o.withChannelValue("blue",a).toFormat(j));},step:1,minValue:0,maxValue:255}),r?jsx(Fp,{color:e,setColor:t}):null]})},n_={style:"percent",maximumFractionDigits:0},Fp=({color:e,setColor:t})=>{let{locale:r}=useLocale(),o=useCallback(s=>{t(e.withChannelValue("alpha",s));},[e,t]);return jsx(ue,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:n_,className:Vr,showStepper:!1,onChange:o,minValue:0,maxValue:1})};var ka=({channel:e,...t})=>{let{locale:r}=useLocale(),o=useColorSliderState({...t,channel:e,locale:r}),s=br.useRef(null),a=br.useRef(null),{trackProps:n,thumbProps:l,inputProps:i}=useColorSlider({...t,channel:e,trackRef:s,inputRef:a,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:p,isFocusVisible:d}=useFocusRing();return jsxs("div",{className:classNames(jo,{[kr({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:s,children:[e==="alpha"&&jsx("div",{className:za}),jsx("div",{className:jo,style:n.style}),jsxs("div",{className:classNames(Yo({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...l,children:[jsx("div",{className:za,style:{backgroundColor:"#ffffff"}}),jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:jo}),jsx(VisuallyHidden,{children:jsx("input",{ref:a,...i,...p})})]})]})};var Xo=({color:e,setColor:t,allowAlpha:r})=>{let[o,s]=br.useState("hex"),{formatMessage:a}=M(Te);return jsxs(Fragment,{children:[jsx(Mp,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),jsxs("div",{className:ha,children:[jsx(ka,{channel:"hue",value:e,onChange:t}),r?jsx(ka,{channel:"alpha",value:e,onChange:t}):null]}),jsxs("div",{className:classNames(ha,sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsx(Lo,{label:a("colorFormat"),labelPosition:"start",variant:"ghost",items:Rp,selectedKey:o,onSelectionChange:n=>{s(n);}}),o==="hex"&&jsx(Dp,{color:e,setColor:t,allowAlpha:r}),o==="rgb"&&jsx(Ep,{color:e,setColor:t,allowAlpha:r})]})]})};var Ia=({color:e,setColor:t,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:s,customColorsLabel:a,pickerMode:n,allowAlpha:l})=>{let{formatMessage:i}=M(Te),p=br.useRef(null),d=Po(p.current),[c,m]=_i(r,[]),u=br.useRef(null),[f,g]=br.useState(e),y=br.useMemo(()=>c.map(C=>({id:C,label:C,description:C})),[c]),v=useCallback(()=>{let C=n==="active"?e:f;if(c.includes(C.toString(j))){u.current?.querySelector(`[data-key='${C.toString(j)}']`)?.classList.add(_a);return}m([...c,C.toString(j)]);},[c,e,m,f,n]);useEffect(()=>{let C=u.current;function R(z){z.animationName===xp&&z.target?.classList.remove(_a);}return C?.addEventListener("animationend",R),()=>{C?.removeEventListener("animationend",R);}},[]);let _=useId(),h=jsx(I,{ref:p,variant:"secondary",size:"md","aria-label":o,icon:PlusIcon$1,onPress:n==="active"?v:void 0}),x=useCallback(C=>jsxs(pe,{size:"content",className:qo({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":i("newColor"),children:[jsx(Xo,{color:f,setColor:g,allowAlpha:l}),jsx(H,{}),jsx(D,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxs(D,{display:"inline-flex",gap:"lg",children:[jsx(A,{label:i("cancel"),size:"sm",variant:"secondary",onPress:C}),jsx(A,{label:i("add"),variant:"primary",onPress:()=>{v(),C();},size:"sm"})]})})]}),[f,v,i,l]),P=useCallback(C=>{invariant(C instanceof Set,"Key must be a set");let R=[...C][0];R&&t(parseColor(R).toFormat(j));},[t]);return jsxs(Fragment,{children:[jsx(H,{}),jsxs("div",{className:classNames(_p,"BaselineUI-ColorInput-CustomColors"),children:[jsx("span",{id:_,children:a}),jsxs(D,{display:"flex",children:[!!c.length&&c.includes(e.toString(j))&&jsx(I,{variant:"secondary",size:"md",elementType:"div",icon:MinusIcon$2,"aria-label":s,onPress:()=>{m(c.filter(C=>C!==e.toString(j)));}}),n==="active"&&h,n==="lazy"&&(d==="mobile"?jsxs(Ho,{children:[jsx(Ao,{children:h}),jsx(ya,{style:{zIndex:1e5},children:({close:C})=>x(C)})]}):jsx(Ae,{type:"dialog",children:({close:C})=>jsxs(Fragment,{children:[jsx(Oe,{children:h}),jsx(Ne,{placement:"right top",className:Ko,offset:6,children:x(C)})]})}))]})]}),!!c.length&&jsx(le,{items:y,layout:"grid","aria-labelledby":_,className:classNames(Oo,Go,sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Wo,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(j)],onSelectionChange:P})]})};var Ta=br.forwardRef(({setColor:e,color:t,triggerRef:r,autoFocus:o,presets:s,state:a},n)=>{let{formatMessage:l}=M(Te),i=useCallback(p=>{if(p instanceof Set&&p.size){let d=[...p][0],c=s.find(m=>m.id===d);invariant(c,"Preset not found"),e(c.id===ye?null:parseColor(c.id).toFormat(j)),a.close();}},[a,s,e]);return jsx("div",{className:classNames(Go,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:n,children:jsx(le,{autoFocus:o,items:s,layout:"grid","aria-label":l("colorPresets"),className:Oo,renderOption:Wo,selectionMode:"single",selectedKeys:[t?.toString(Or)||ye],onSelectionChange:i})})});Ta.displayName="ColorPresetList";var Sa=br.forwardRef((e,t)=>{let r=br.useRef(null),{hoverProps:o,isHovered:s}=useHover({isDisabled:e.isDisabled}),{buttonProps:a,isPressed:n}=useButton(e,r),{isFocusVisible:l,focusProps:i}=useFocusRing(),p=filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":l,"data-focus-visible":l,"data-disabled":e.isDisabled,"data-hovered":s,"data-pressed":n});return jsx("button",{...mergeProps(a,o,i,p),style:e.style,className:classNames(fp({isHovered:s,isFocusVisible:l||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:mergeRefs(t,r),children:e.children})});Sa.displayName="ColorInputButton";var Qp=br.forwardRef(({className:e,style:t,icon:r,...o},s)=>{let a=br.useRef(null),{hoverProps:n,isHovered:l}=useHover({isDisabled:o.isDisabled}),{buttonProps:i,isPressed:p}=useButton(o,a),{isFocusVisible:d,focusProps:c}=useFocusRing(),m=filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":o.isDisabled,"data-hovered":l,"data-pressed":p});return jsxs("button",{...mergeProps(i,n,c,m),ref:mergeRefs(s,a),style:t,className:classNames(Cp({isHovered:l||p||o.isOpen,isFocusVisible:d,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsx(r,{size:16}),jsx("div",{className:up,style:{backgroundColor:o.color}})]})});Qp.displayName="IconColorInputButton";var jr=br.forwardRef(({className:e,style:t,allowRemoval:r,allowAlpha:o=!0,presets:s,labelPosition:a="top",colorLabel:n=!0,includePicker:l=!0,onChange:i,defaultValue:p,storePickedColorKey:d="baselinePickedColor",value:c,addColorButtonLabel:m,removeColorButtonLabel:u,customColorsLabel:f,renderTriggerButton:g,pickerMode:y="active",offset:v=2,placement:_=a==="start"?"bottom end":"bottom start","data-block-id":h,...x},P)=>{let C=br.useRef(null),R=br.useRef(null),z=useOverlayTriggerState(x),{triggerProps:w,overlayProps:B}=useOverlayTrigger({type:"listbox"},z,C),[T,N]=useControlledState(c===void 0?void 0:Ue(c),Ue(p),G=>i?.(G?.toFormat("rgba")||null)),{formatMessage:F}=M(Te),k=useMemo(()=>Tp(F("noColor"),s),[s,F]),L=useMemo(()=>k.find(G=>G.id===ye?!T:T?wp(T,parseColor(G.id)):!1),[k,T]),W=useId(),ne=useMemo(()=>typeof n=="function"?n?.(T):n?Ip(T,L,F("transparent")):!1,[T,n,F,L]),ve=useMemo(()=>k.filter(G=>r||G.id!==ye),[k,r]),Q=m||F("addColor"),Z=u||F("removeColor"),K=f||F("customColors");return jsxs(Fragment,{children:[jsxs("div",{className:classNames({[mp]:a==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,style:t,ref:P,children:[x.label?jsx("label",{id:W,className:yp({labelPosition:a}),children:x.label}):null,g?.({isOpen:z.isOpen,color:T,ref:C,colorName:ne,triggerProps:w})||jsxs(Sa,{...mergeProps(w,{...x.label?{"aria-labelledby":W}:{"aria-label":x["aria-label"]}}),ref:C,isOpen:z.isOpen,isDisabled:x.isDisabled,labelPosition:a,children:[jsx(je,{isPresentational:!0,color:T?.toString("hexa")}),n?jsx("div",{className:gp,children:ne}):jsx(VisuallyHidden,{children:ne})]})]}),z.isOpen?jsx(fe,{...x,placement:_,state:z,offset:v,className:classNames(Ko,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:B,children:jsxs(pe,{size:"content",className:qo({includesCustomColorPicker:l}),ref:R,"aria-labelledby":W,"aria-label":x["aria-label"],children:[l&&y==="active"?jsxs(Fragment,{children:[jsx(Xo,{color:T||ur,setColor:N,allowAlpha:o}),jsx(Ia,{color:T||ur,setColor:N,storePickedColorKey:d,addColorButtonLabel:Q,removeColorButtonLabel:Z,customColorsLabel:K,pickerMode:y,allowAlpha:o})]}):null,!!ve.length&&jsxs(Fragment,{children:[l?jsx(H,{}):null,jsx(Ta,{autoFocus:l&&y==="active"?!1:"first",state:z,triggerRef:C,presets:ve,color:T,setColor:N})]}),l&&y==="lazy"?jsx(Ia,{color:T||ur,setColor:N,storePickedColorKey:d,addColorButtonLabel:Q,removeColorButtonLabel:Z,customColorsLabel:K,pickerMode:y,allowAlpha:o}):null]})}):null]})});jr.displayName="ColorInput";var ed={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var Jo=b({defaultClassName:"mnnh5s1 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6iq _1yep5z6it _1yep5z6j5 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq _1yep5z6yi _1yep5z612z _1yep5z6130",false:"_1yep5z612m _1yep5z6xm"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6xl"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 _1yep5z6v1"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61hc"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61i1"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61h4"]]}),rd="_1yep5z6bg",et=b({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var od=b({defaultClassName:"_1i0ytqa3 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j3 _1yep5z6j4 _1yep5z6j6",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6xu",false:"_1yep5z6xw"},isDisabled:{true:"_1i0ytqa7 _1yep5z6v1",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61hx _1yep5z61mh _1yep5z61mj"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61hd"],[{isInline:!1,isDisabled:!0},"_1yep5z61hf"]]}),td="_1i0ytqa0",rt=b({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z6xl"},isDisabled:{true:"_1i0ytqad _1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),ad=b({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var Z_={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},nd=br.forwardRef(({className:e,style:t,canvasClassName:r,canvasStyle:o,isBound:s=!0,strokeWidth:a=2,strokeColor:n="#3A87FD",onChange:l,defaultValue:i,onChangeEnd:p,enableHistory:d=!1,isInline:c=!0,isDisabled:m,placeholder:u,clearLabel:f,undoLabel:g,redoLabel:y,footerClassName:v,canvasRef:_,value:h,footerStyle:x,"data-block-id":P,"aria-label":C="Drawing canvas",description:R="This is a canvas for drawing using a mouse or touch input.",...z},w)=>{let B=M(ed),T=br.useRef(null),[N,F]=br.useState(h?Ea(h):i?Ea(i):[]),k=br.useRef((h?.length||i?.length||0)-1),[L,W]=br.useState(),ne=useId(),{labelProps:ve,fieldProps:Q}=useLabel({...z,"aria-label":C,labelElementType:"span"}),{isFocusVisible:Z,focusProps:K}=useFocusRing({within:!0}),{hoverProps:G,isHovered:ce}=useHover({isDisabled:m}),{undo:J,redo:Qe,canRedo:Je,canUndo:me,push:Le}=fi(N,{onAction:S=>{S&&(F(S),k.current=S.length-1,p?.(S.map(re=>getStroke(re,O))));},isDisabled:!d}),{keyboardProps:er}=useKeyboard({onKeyDown:S=>{S.key==="Backspace"?$r():S.key==="z"&&(S.metaKey||S.ctrlKey)&&(S.shiftKey?Je&&Qe():me&&J());}}),O=br.useMemo(()=>({...Z_,...z}),[z]),ee=useCallback(S=>{S.persist(),S.buttons===1&&(invariant(L,"svgCoordinates must be defined"),F(re=>{let V=[...re];return V[k.current]=[...V[k.current],{x:s?clamp(S.clientX-L.left,0,L.width):S.clientX-L.left,y:s?clamp(S.clientY-L.top,0,L.height):S.clientY-L.top,pressure:S.pressure}],V}));},[L,s]),Ct=useCallback(S=>{S.persist();let re=S.currentTarget.getBoundingClientRect();W(re),S.target.setPointerCapture(S.pointerId),k.current+=1,F(V=>{let $=[...V];return $[k.current]=[{x:S.clientX-re.x,y:S.clientY-re.y,pressure:S.pressure}],$});},[]),Zr=Re();useGranularEffect(()=>{Zr||l?.(N.map(S=>getStroke(S,O)));},[N],[l,O,Zr]);let $r=()=>{F([]),k.current=-1,Le([]);},xt=useCallback(()=>{p?.(N.map(S=>getStroke(S,O))),Le(N);},[N,p,O,Le]);return jsxs("div",{ref:mergeRefs(T,w),className:classNames(td,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":P,children:[z.label||d?jsxs("div",{className:ad({isInline:c}),children:[z.label?jsx(X,{type:"label",size:"sm",...ve,children:z.label}):jsx("span",{}),d?jsxs("div",{children:[jsx(I,{variant:"secondary",size:"sm",isDisabled:!me||m,icon:UndoIcon,onPress:J,"aria-label":g||B.formatMessage("undo")}),jsx(I,{variant:"secondary",size:"sm",isDisabled:!Je||m,icon:RedoIcon,onPress:Qe,"aria-label":y||B.formatMessage("redo")})]}):null]}):null,jsxs("div",{role:"application",...mergeProps(K,er,G,Q),tabIndex:m?void 0:0,className:classNames(Jo({isInline:c,isHovered:ce}),od({isFocusVisible:Z,isInline:c,isDisabled:!!m}),r),"aria-describedby":z["aria-describedby"]||ne,style:o,ref:_,children:[jsx(VisuallyHidden,{children:jsx("div",{id:ne,children:R})}),jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Ct,onPointerMove:ee,onPointerUp:xt,children:(h?Ea(h):N).map((S,re)=>jsx("path",{d:getSvgPathFromStroke(getStroke(S,O)),stroke:n,strokeWidth:a},re))})]}),u||f?jsx("div",{style:x,className:classNames(rt({isInline:c,isDisabled:m}),v),children:(N.length||!u)&&f?jsx(A,{size:"sm",variant:"ghost",label:f,isDisabled:m,onPress:$r}):jsx(A,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});nd.displayName="FreehandCanvas";var Ea=e=>e.map(t=>t.map(([r,o])=>({x:r,y:o,pressure:0})));var id="_1vac7ws0",ld=b({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function dd(e,t){let[r,o]=useState([]),s=()=>e?.flatMap(a=>[...t.querySelectorAll(a)]).map(a=>({current:a}));return useGranularEffect(()=>{o(s());},[],[s]),useGranularEffect(()=>{let a=s();o(a);},[e],[s]),r}function cd(e){let{scrollable:t,ownerDocument:r,onScroll:o}=e;useEffect(()=>{let s=getHTMLElement(t,r);if(s)return (s.style.position==="static"||!s.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),s.addEventListener("scroll",o),()=>{s.removeEventListener("scroll",o);}},[t,o,r]);}var fh=makeMoveable([Draggable,Resizable,Rotatable,Snappable]),ud=br.forwardRef(({className:e,children:t,isRotatable:r,isResizable:o,isDraggable:s,style:a,onTransform:n,onTransformStart:l,onTransformEnd:i,onDoubleClick:p,onDragStart:d,onDragEnd:c,onDrag:m,onResizeStart:u,onResizeEnd:f,onResize:g,onRotateStart:y,onRotateEnd:v,onRotate:_,onSnap:h,isSnappable:x,elementGuidelines:P,hideAnchorOnDrag:C=!0,title:R,rotationPosition:z,autoUpdate:w,bound:B,snapRotationDegrees:T,snapRotationThreshold:N,scrollableAncestor:F,renderDirections:k,stopPropagation:L,transformOrigin:W,preventDefault:ne},ve)=>{let Q=useRef(null),Z=useRef(null),[K,G]=useState(document),ce=useRef(K.createElement("div")),[J,Qe]=useState({}),[Je,me]=useState(!1),[Le,er]=useState(!1),[O,ee]=useState(),Ct=dd(P,K);useLayoutEffect(()=>{let V=ce.current;return ce.current=K.createElement("div"),()=>{V.remove();}},[K]);let{keyboardProps:Zr}=useKeyboard({onKeyDown:V=>{let $=V.shiftKey?10:1,ie=V.metaKey||V.ctrlKey;ie&&V.shiftKey&&($=45);function Be(zr,Ac="x"){ie?Z.current?.request("rotatable",{deltaRotate:zr*$},!0):Z.current?.request("draggable",Ac==="x"?{deltaX:zr*$}:{deltaY:zr*$},!0);}switch(V.key){case"ArrowRight":{Be(1);break}case"ArrowLeft":{Be(-1);break}case"ArrowUp":{Be(-1,"y");break}case"ArrowDown":Be(1,"y");}requestAnimationFrame(()=>{Z.current?.updateRect();});}});useEffect(()=>{let V=getOwnerDocument(Q.current);G(V);let $=ce.current;V.body.append(ce.current);function ie(zr){er(zr.shiftKey);}function Be(){er(!1);}return V.addEventListener("keydown",ie),V.addEventListener("keyup",Be),()=>{V.removeEventListener("keydown",ie),V.removeEventListener("keyup",Be),$.remove();}},[]),cd({scrollable:F,onScroll:()=>{Z.current?.updateRect();},ownerDocument:K});let $r=useCallback(V=>{Qe($=>({...$,...V.style})),n?.(V);},[n]),xt=useCallback(V=>{if(me(!0),Q.current?.focus(),B){let ie=getHTMLElement(B,K)?.getBoundingClientRect();ee({position:"client",left:ie?.left??0,top:ie?.top??0,right:ie?.right??0,bottom:ie?.bottom??0});}d?.(V);},[B,K,d]),S=useCallback(V=>{me(!1),c?.(V);},[c]),re=t({style:{...J.width&&{width:J.width},...J.height&&{height:J.height}}});return jsxs(Fragment,{children:[jsx("div",{role:"button",...Zr,ref:mergeRefs(Q,ve),style:{display:"inline-block",...a,...J},className:classNames(id,e),onDoubleClick:p,tabIndex:0,title:R,children:re}),createPortal(jsx(fh,{ref:Z,target:Q,draggable:s,resizable:o,rotatable:r,keepRatio:Le,throttleDrag:1,snappable:x||!!B,elementGuidelines:Ct,snapRenderThreshold:.9,className:ld({isDragging:Je&&C}),onRender:$r,onDragStart:xt,onDragEnd:S,useResizeObserver:w,useMutationObserver:w,onRenderEnd:i,onDrag:m,onResizeStart:u,onResizeEnd:f,onResize:g,onRotateStart:y,onRotateEnd:v,onRotate:_,onRenderStart:l,onSnap:h,rotationPosition:z,bounds:O,snapRotationDegrees:T,snapRotationThreshold:N,renderDirections:k,stopPropagation:L,preventDefault:ne,transformOrigin:W}),ce.current)]})});ud.displayName="Transform";var fd={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var bd=br.forwardRef(({className:e,style:t,isInline:r=!0,accept:o="image/*",defaultImageSrc:s,imageSrc:a,imageAlt:n,pickerButtonLabel:l,isDisabled:i,onDrop:p,onPaste:d,includeCheckeredBackground:c=!0,"data-block-id":m,pickerButtonStyle:u,pickerButtonClassName:f,footerClassName:g,footerStyle:y,clearLabel:v,placeholder:_,labelStyle:h,labelClassName:x,...P},C)=>{let R=br.useRef(null),z=br.useRef(null),{formatMessage:w}=M(fd),[B,T]=useControlledState(a,s||null,O=>{invariant(typeof O!="string"),P.onValueChange?.(O?[O]:[]);}),N=useMemo(()=>Ih(B||void 0),[B]),{fieldProps:F,labelProps:k}=useField(P),{dropProps:L,isDropTarget:W}=useDrop({ref:R,onDrop:async O=>{if(i)return;let ee=await jt({items:O.items});ee.length&&T(ee[0]),p?.(O);},...P}),{clipboardProps:ne}=useClipboard({onPaste:async O=>{if(i)return;let ee=await jt({items:O});ee.length&&T(ee[0]),d?.(O);},...P}),ve=()=>{T(null),z.current&&(z.current.value="");},Q={type:"file",onChange:O=>{let ee=[...O.target.files];T(ee[0]),P.onChange?.(O);},accept:o,disabled:i},{focusProps:Z,isFocused:K,isFocusVisible:G}=useFocusRing({within:!0}),{hoverProps:ce,isHovered:J}=useHover({isDisabled:i}),{imgProps:Qe,isLoading:Je,isLoaded:me}=zo({src:N,alt:n||""}),Le={label:l||w("selectImage"),onPress:()=>R.current?.click(),variant:"secondary",isDisabled:i,excludeFromTabOrder:!0,className:classNames(oo({isFocusVisible:G}),{[rd]:W&&!i},f),style:u},er=filterTruthyValues({"data-loaded":me,"data-block-id":m,"data-hovered":J,"data-focused":K,"data-drop-target":W,"data-disabled":i,"data-focus-visible":G});return jsxs(D,{...er,className:classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:C,children:[jsxs("label",{...mergeProps(L,ce,Z,k),className:classNames(Jo({isInline:r,isHovered:J,isDisabled:i,hasLoadedImage:!!N&&me,showFocusRing:W||!!N&&G}),x),style:h,ref:R,children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(F,ne,Q),ref:z})}),!N&&jsx(A,{...Le}),!!N&&(Je?jsx(ko,{}):jsx("img",{className:et({isInline:r,isDisabled:i,hasLoadedImage:!!N&&me&&c}),...Qe}))]}),_||v?jsx("div",{style:y,className:classNames(rt({isInline:r,isDisabled:i}),g),children:(N||!_)&&v?jsx(A,{size:"sm",variant:"ghost",label:v,isDisabled:i,onPress:ve}):jsx(A,{size:"sm",variant:"ghost",label:_,isDisabled:!0})}):null]})});bd.displayName="ImageDropZone";function Ih(e){return e instanceof File?URL.createObjectURL(e):e}var vd="_1vm2oh49 _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6e3",Aa="_1vm2oh48 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6hk _1yep5z6hl _1yep5z6hm",_d=b({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6j9 _1yep5z6j7 _1yep5z6fs _1yep5z6ja _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6j5 _1yep5z6ft _1yep5z6fu _1yep5z6fv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up _1yep5z6yh _1yep5z612y _1yep5z6130",false:"_1yep5z6xw"},isFocusVisible:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6v1"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61hd"],[{accent:"theme",isInline:!0},"_1yep5z61h2"],[{accent:"positive",isInline:!1},"_1yep5z61hf"],[{accent:"theme",isInline:!1},"_1yep5z61h4"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61im _1yep5z61m9 _1yep5z61mb _1yep5z61mc"],[{isHovered:!0,isInline:!0},"_1yep5z61mc _1yep5z61im _1yep5z61m9 _1yep5z61mb"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61he"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61h6"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61h3"]]});var Cd=br.forwardRef(({className:e,style:t,isDisabled:r,isInline:o=!0,imageAlt:s,imageSrc:a,svgSrc:n,textValue:l,textStyle:i,onPress:p,onDelete:d,deleteAriaLabel:c,addAriaLabel:m,accent:u="positive","data-block-id":f,...g},y)=>{let{focusProps:v,isFocused:_,isFocusVisible:h}=useFocusRing({within:!0}),{isHovered:x,hoverProps:P}=useHover({isDisabled:r}),{pressProps:C}=usePress({isDisabled:r,onPress:p});invariant(a||n||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let R=filterTruthyValues({"data-hovered":x,"data-focus-visible":h,"data-focused":_,"data-disabled":r});return jsxs("div",{...g,className:classNames(_d({isInline:o,isFocusVisible:h,isDisabled:r,isHovered:x,accent:u}),"BaselineUI-Preview",e),"data-block-id":f,"aria-label":g["aria-label"]||s||l,style:t,ref:y,children:[typeof n=="string"?jsx("button",{disabled:r,...mergeProps(P,v,C,R),className:Aa,"aria-label":m,dangerouslySetInnerHTML:{__html:n}}):jsxs("button",{...mergeProps(P,v,C,R),disabled:r,style:i,"aria-label":m,className:Aa,children:[a?jsx("img",{src:a,alt:s,className:et({isInline:o,isDisabled:r})}):null,!!n&&typeof n=="object"&&n,l]}),d?jsx(I,{isDisabled:r,className:vd,"aria-label":c,size:"xs",icon:TrashIcon,onPress:d}):null]})});Cd.displayName="Preview";var xd="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e",Pd=b({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),kd="cw3m0n7",Rd=b({defaultClassName:"cw3m0n0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),wd="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j0",Id=b({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var Kh=({label:e,description:t},{isSelected:r,isFocusVisible:o,isDisabled:s,optionLabelPosition:a})=>jsxs("div",{className:Rd({labelPosition:a}),children:[jsx("div",{className:Id({isSelected:r,isFocusVisible:o,isDisabled:s}),children:r?jsx("div",{className:kd}):null}),e?jsxs("div",{className:xd,children:[jsx("span",{className:Ro({isDisabled:s}),children:e}),t?jsx("span",{className:Pd({isDisabled:s}),children:t}):null]}):null]}),Td=({state:e,renderOption:t=Kh,item:r,optionLabelPosition:o="end",optionStyle:s,optionClassName:a,isReadOnly:n,...l})=>{let i=!!l.isDisabled||!!l.disabledValues?.includes(r.id),p=br.useRef(null),{inputProps:d,isPressed:c,isSelected:m}=useRadio({...l,isDisabled:i,children:r.label,value:r.id},e,p),{focusProps:u,isFocusVisible:f,isFocused:g}=useFocusRing(),{isHovered:y}=useHover({isDisabled:i}),v=filterTruthyValues({"data-selected":m,"data-focused":g,"data-focus-visible":f,"data-hovered":y,"data-disabled":i,"data-pressed":c,"data-read-only":n});return jsxs("label",{...v,style:s,className:classNames("BaselineUI-Radio-Item",a),children:[jsx(VisuallyHidden,{children:jsx("input",{...mergeProps(d,u),ref:p})}),t(r,{isFocusVisible:f,isSelected:m,isFocused:g,isHovered:y,isDisabled:i,optionLabelPosition:o,isReadOnly:n})]})};var nt=br.forwardRef(({className:e,style:t,optionsContainerClassName:r,optionsContainerStyle:o,items:s,labelPosition:a="top",renderOption:n,"aria-label":l,"aria-labelledby":i,"aria-describedby":p,"aria-details":d,"data-block-id":c,...m},u)=>{let f=useRadioGroupState(m),{radioGroupProps:g,labelProps:y,descriptionProps:v,errorMessageProps:_}=useRadioGroup({...m,"aria-label":l,"aria-labelledby":i,"aria-describedby":p,"aria-details":d},f),h=Ce({...m,descriptionProps:v,errorMessageProps:_,labelPosition:a}),x=filterTruthyValues({"data-orientation":m.orientation,"data-block-id":c,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return jsxs("div",{...mergeProps(g,x),className:classNames(ze({labelPosition:a}),"BaselineUI-RadioGroup",e),style:t,ref:u,children:[m.label||h?jsxs("div",{className:he({labelPosition:a,hasMessage:!!h}),children:[jsx("span",{...y,className:classNames(_e,"BaselineUI-RadioGroup-Label"),children:m.label}),a==="start"&&h]}):null,jsxs("div",{className:classNames({[rr]:m.isDisabled}),children:[jsx("div",{className:classNames(wd,r),style:o,children:s.map(P=>jsx(Td,{state:f,renderOption:n,item:P,value:P.id,...m},P.id))}),a==="top"&&h]})]})});nt.displayName="RadioGroup";var Nd=({id:e,defaultMessage:t,elementType:r=Fragment$1})=>{invariant(e||t,"`id` or `defaultMessage` is required.");let o=M();return jsx(r,{children:o.formatMessage(e)||t})};Nd.displayName="MessageFormat";var Sd=br.forwardRef(({className:e,style:t,children:r,role:o="group",isDisabled:s,...a},n)=>{let{hoverProps:l,isHovered:i}=useHover({isDisabled:s});return jsx("div",{...l,role:o,"data-hovered":i,"data-disabled":s,className:e,style:t,...a,ref:n,children:r})});Sd.displayName="Group";var Md="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Ld="_1yep5z61jj _1yep5z61jk _1yep5z61jl _1yep5z61ch _1yep5z61ci _1yep5z61cj";var Dd=br.forwardRef(({items:e,optionsContainerClassName:t,...r},o)=>{let s=useMemo(()=>e.map(a=>({id:a.color,label:a.label})),[e]);return jsx(nt,{items:s,optionsContainerClassName:classNames(Ld,t),orientation:"horizontal",renderOption:({label:a,id:n},{isSelected:l,isFocusVisible:i})=>jsxs("div",{className:Md,children:[jsx(je,{isFocusVisible:i,color:n,isSelected:l}),jsx(VisuallyHidden,{children:a})]}),...r,className:classNames(r.className,"BaselineUI-ColorPresetInput"),ref:o})});Dd.displayName="ColorPresetInput";var Ed={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var it=br.forwardRef(({className:e,style:t,"data-block-id":r,"aria-controls":o,...s},a)=>{let n=br.useRef(null),{toolbarProps:l}=useToolbar(s,n),{isFocusVisible:i,focusProps:p}=useFocusRing(),d=filterTruthyValues({"data-block-id":r,"data-focus-visible":i});return jsx("div",{...mergeProps(l,p,d),"aria-controls":o,className:classNames(Ed[s.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,ref:mergeRefs(a,n),children:s.children})});it.displayName="Toolbar";var Hd=b({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),Vd=b({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z6wt"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61m9 _1yep5z61it _1yep5z61gc"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6e1"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ma _1yep5z61m9 _1yep5z61in _1yep5z61gd"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61m9 _1yep5z61mb _1yep5z61im _1yep5z61mc"]]}),Ad=b({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1yep5z6ws"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61gb"]]}),Od=b({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61h4"],[{isSelected:!0,isDisabled:!1},"_1yep5z61h4 _1yep5z61ge"],[{isSelected:!0,isDisabled:!0},"_1yep5z61h4 _1yep5z61gc"]]}),jd=b({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6wu"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61gd"],[{isSelected:!1,isDisabled:!0},"_1yep5z61gc _1yep5z61h2"],[{isSelected:!1,isHovered:!0},"_1yep5z61h3"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ma _1yep5z61m9 _1yep5z61in"]]});var x6={xxs:8,xs:12,sm:16,md:20,lg:24},_r=br.forwardRef(({className:e,style:t,icon:r,size:o="md",variant:s="primary","data-block-id":a,...n},l)=>{let i=br.useRef(null),p=useToggleState(n),{buttonProps:d,isPressed:c}=useToggleButton(n,p,i),{hoverProps:m,isHovered:u}=useHover({isDisabled:n.isDisabled}),{isFocusVisible:f,isFocused:g,focusProps:y}=useFocusRing(),v=useMemo(()=>typeof r=="function"?r:p.isSelected?r.selected:r.unselected,[r,p.isSelected]),_={isSelected:p.isSelected,isHovered:u,isFocusVisible:f,isDisabled:!!n.isDisabled},h=filterTruthyValues({"data-hovered":u,"data-selected":p.isSelected,"data-focus-visible":f,"data-disabled":n.isDisabled,"data-block-id":a,"data-focused":g,"data-pressed":c});return jsx("button",{...mergeProps(d,m,y,h),className:classNames(s==="toolbar"&&jd(_),s==="primary"&&Vd(_),s==="secondary"&&Ad(_),s==="tertiary"&&Od(_),Hd({size:o}),"BaselineUI-ToggleIconButton",e),style:t,ref:mergeRefs(i,l),children:jsx(v,{size:x6[o]})})});_r.displayName="ToggleIconButton";var Kd="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6h8 _1yep5z6h9 _1yep5z6ha",lt="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Gd=b({defaultClassName:"f6jv6b0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6e0",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t4 _1yep5z6t5 _1yep5z6t6 _1yep5z610i _1yep5z610j _1yep5z610k",false:"_1yep5z6103 _1yep5z6104 _1yep5z6105"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61dl _1yep5z61dt _1yep5z61e1 _1yep5z61e9 _1yep5z61mj _1yep5z61mh _1yep5z61i0"]]}),pt=b({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6cb _1yep5z6d2 _1yep5z6j6",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]});var Yd=b({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6j5",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isDisabled:{true:"_1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Wd="f6jv6bi _1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0 _1yep5z6j8 _1yep5z6j7 _1yep5z6fn _1yep5z6jb",Xd="_1yep5z6he _1yep5z6hf _1yep5z6hg",Zd="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2 _1yep5z6cb _1yep5z6j3",$d=b({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6hk _1yep5z6hl _1yep5z6hm",variantClassNames:{isInline:{true:"_1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6130 _1yep5z612y _1yep5z6yh",false:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw"}},defaultVariants:{},compoundVariants:[]}),Qd="f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2",dt=b({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),ct="f6jv6b9 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1";var Ga=({value:e,defaultValue:t,onChange:r,placeholder:o,spellCheck:s,onSave:a,textBoxRef:n,isInline:l,isMinimal:i,isDisabled:p,editableContentAriaLabel:d,editorHandle:c})=>{let m=br.useRef(null),[u,f]=useControlledState(e,t||"",r),g=useCallback(z=>{f(z.currentTarget.value||"");},[f]),y=useCallback(z=>{z.currentTarget.style.height="16px",z.currentTarget.style.height=z.currentTarget.scrollHeight+"px";},[]);useGranularLayoutEffect(()=>{let z=m.current;z&&(z.style.height="16px",z.style.height=z.scrollHeight+"px");},[i],[u]),useImperativeHandle(c,()=>({setCaretPosition:z=>{m.current&&(m.current.focus(),m.current.setSelectionRange(z,z));}}));let{keyboardProps:v}=useKeyboard({onKeyDown:z=>{z.key==="Enter"&&!z.shiftKey&&(z.preventDefault(),a?.(m.current?.value||""));}}),{focusProps:_,isFocused:h,isFocusVisible:x}=useFocusRing(),{hoverProps:P,isHovered:C}=useHover({}),R=filterTruthyValues({"data-focus-visible":x,"data-hovered":C,"data-focused":h});return jsx("textarea",{...mergeProps(v,_,P,R),ref:mergeRefs(m,n),className:classNames(i?Zd:[pt(),dt({isInline:l}),Qd]),onChange:g,disabled:p,onInput:y,value:u,placeholder:o,spellCheck:s,"aria-label":d})};var Wa=(e,t)=>{let r=Editor.marks(e);return r?r[t]===!0:!1},hr=(e,t)=>{Wa(e,t)?Editor.removeMark(e,t):Editor.addMark(e,t,!0);},Me=e=>{ReactEditor.focus(e);};function Ge(e,t){let[r]=Editor.nodes(e,{match:o=>!Editor.isEditor(o)&&Element$1.isElement(o)&&"type"in o&&o.type===t});return r?.[0]}var qr=(e,t)=>{Transforms.unwrapNodes(e,{match:r=>!Editor.isEditor(r)&&Element$1.isElement(r)&&"type"in r&&r.type===t});};function j6(e){if(!e.selection)return;let{selection:t}=e,[r]=Range.edges(t),o=Editor.before(e,r,{unit:"word"}),s=Editor.after(e,r,{unit:"word"});return {anchor:o||r,focus:s||r}}var Xa=(e,t)=>{if(!e.selection)return;if(Ge(e,"link")){let a=j6(e);a&&Range.isCollapsed(a)&&Transforms.select(e,a),qr(e,"link");}let{selection:r}=e,o=r&&Range.isCollapsed(r),s={type:"link",url:t,children:o?[{text:t}]:[]};o?Transforms.insertNodes(e,s):(Transforms.wrapNodes(e,s,{split:!0}),Transforms.collapse(e,{edge:"end"}));},rc=e=>{let{isInline:t}=e;return e.isInline=r=>"type"in r&&(r.type==="link"||r.type==="span")||t(r),e},oc=e=>{let{isInline:t,isVoid:r,markableVoid:o}=e;return e.isInline=s=>"type"in s&&s.type==="mention"?!0:t(s),e.isVoid=s=>"type"in s&&s.type==="mention"?!0:r(s),e.markableVoid=s=>"type"in s&&s.type==="mention"||o(s),e},tc=(e,t)=>{let r=Ge(e,"span"),o={};if(r){let a=new Set(["type","children"]);o=Object.fromEntries(Object.keys(r).filter(n=>!a.has(n)).filter(n=>!!r[n]).map(n=>[n,r[n]])),qr(e,"span");}let s={...r,type:"span",...o,children:[]};delete s[t],Transforms.wrapNodes(e,s,{split:!0}),Transforms.collapse(e,{edge:"end"});},ac=(e,t,r)=>{if(!e.selection)return;let o=Ge(e,"span");o&&qr(e,"span");let s={...o,type:"span",[t]:r,children:[]};Transforms.wrapNodes(e,s,{split:!0}),Transforms.collapse(e,{edge:"end"});};function U6(e){return Object.entries(e).map(([t,r])=>`${kebabCase(t)}:${r}`).filter(([,t])=>!!t).join(";")}var Kr=e=>slateToHtml(e,{markMap:{bold:["strong"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:t,children:r=[]})=>new Element("a",{href:t.url},r),span:({node:t,children:r=[]})=>{let o=U6({...t.color&&{color:t.color},...t.backgroundColor&&{backgroundColor:t.backgroundColor}}),s=o?{style:o}:{};return new Element("span",s,r)},mention:({node:t})=>new Element("span",{"data-user-id":t.userId},[new Text(t.displayName)])}});function q6(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(r=>r.trim())).map(([t,r])=>[camelCase(t),r]))):{}}function Za(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:t=>({type:"link",url:t?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:t=>{let r=t?.attribs["data-user-id"];return r?{type:"mention",userId:r,displayName:t?.children[0]?.data||""}:{type:"span",...q6(t?.attribs.style||"")}}}})}function Gr(e,t=1){let{selection:r}=e;if(r){let[o]=Range.edges(r),s=Editor.before(e,o,{distance:t,unit:"character"}),a=s&&Editor.range(e,s,o);return {text:a&&Editor.string(e,a),range:a}}else return null}function sc(e){return e&&(e.text===" "||!e.range)}var lc=({isDisabled:e})=>{let{formatMessage:t}=M(),r=useSlate();return jsx(Ae,{type:"dialog",children:({close:o})=>jsxs(Fragment,{children:[jsx(Oe,{children:jsx(I,{icon:LinkIcon,size:"sm",isDisabled:e,"aria-label":t(Ye.addLink),className:lt})}),jsx(Ne,{className:sprinkles({boxShadow:"medium"}),placement:"top end",children:jsx(pe,{size:"content",style:{minWidth:240},children:jsx(W6,{close:()=>{o(),setTimeout(()=>{Me(r);},0);}})})})]})})},W6=({close:e})=>{let t=useSlate(),{formatMessage:r}=M(),o=Ge(t,"link")?.url,[s,a]=br.useState(o?"show":"add"),[n,l]=br.useState(o||""),i=jsx(D,{padding:"lg",children:jsx(lr,{label:r(Ye.link),value:n,autoFocus:!0,onChange:l,placeholder:"https://yourdomain.com"})});return jsxs(Fragment,{children:[s==="add"&&jsxs(Fragment,{children:[i,jsx(D,{display:"flex",justifyContent:"flex-end",padding:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:jsx(A,{isDisabled:!isUrl(n,!0),label:r(Ye.addLink),size:"sm",onPress:()=>{Xa(t,n),e?.();}})})]}),s==="show"&&jsxs(Fragment,{children:[jsx(D,{padding:"lg",children:jsx(X,{type:"subtitle",size:"sm",children:o})}),jsxs(D,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(A,{label:r(Ye.editLink),size:"sm",variant:"secondary",onPress:()=>{a("edit");},style:{flex:1,justifyContent:"center"}}),jsx(A,{label:r(Ye.removeLink),size:"sm",onPress:()=>{qr(t,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),s==="edit"&&jsxs(Fragment,{children:[i,jsxs(D,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsx(A,{label:r(Ye.cancel),size:"sm",variant:"secondary",onPress:()=>{a("show"),e?.();}}),jsx(A,{label:r(Ye.save),size:"sm",onPress:()=>{Xa(t,n),e?.();}})]})]})]})},Ye=Y({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var Z6=parseColor("#ffffff00").toString("hexa"),Qa=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...Qa,{label:"Transparent",color:Z6}];var yt=({nodeType:e,icon:t,ariaLabel:r,isDisabled:o})=>{let s=useSlate(),a=Wa(s,e);return jsx(_r,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":r,isDisabled:o,onPress:()=>{hr(s,e),Me(s);}})},es=({nodeType:e,"aria-label":t,isDisabled:r})=>{let o=useSlate(),s=Ge(o,"span")?.[e],a=useCallback(p=>{o?.selection&&(Transforms.setSelection(o,o.selection),Me(o),ac(o,e,p),setTimeout(()=>{invariant(o.selection),Transforms.setSelection(o,o.selection),Me(o);},0));},[o,e]),n=useCallback(()=>{o?.selection&&(Transforms.setSelection(o,o.selection),Me(o),tc(o,e),setTimeout(()=>{invariant(o.selection),Transforms.setSelection(o,o.selection),Me(o);},0));},[o,e]),l=useCallback(({ref:p,triggerProps:d})=>jsx(I,{icon:e==="color"?TextIcon:HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:r,className:lt,...d,ref:p}),[e,t,r]),i=useCallback(p=>{p?a(p.toString("rgba")):n();},[n,a]);return jsx(jr,{presets:Qa,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:l,value:s||"#000000",onChange:i,isDisabled:r})};function mc({mentionableUsers:e,mentionPopoverRef:t,editor:r}){let[o,s]=useState(null),[a,n]=useState(0),[l,i]=useState(""),p=useInteractionModality(),d=useMemo(()=>e?.map(y=>({id:y.id,label:y.displayName||y.name,description:y.description,value:y,data:{avatar:y.avatar}})),[e]),{contains:c}=useFilter({sensitivity:"base"}),m=d?.filter(y=>c(y.label,l)),u=useCallback(()=>{let{selection:y}=r,v=Gr(r,2);if(y&&Range.isCollapsed(y)){let[_]=Range.edges(y);if((v?.text?.startsWith(" ")||v?.text?.length===1)&&v?.text?.endsWith("@")){invariant(v,"lastTwoCharacters should be defined");let h=Gr(r)?.range;s(h||null),i("");}else {let h=Editor.before(r,_,{unit:"word"}),x=h&&Editor.before(r,h),P=x&&Editor.range(r,x,_),R=(P&&Editor.string(r,P))?.match(/^@(\w+)$/),z=Editor.after(r,_),w=Editor.range(r,_,z),T=Editor.string(r,w).match(/^(\s|$)/);R&&T&&P&&(s(P),i(R[1]));}return null}s(null);},[r]),f=useCallback((y=a)=>{let v=m?.[y];if(v){let _={userId:v.id,displayName:v.label,children:[{text:""}],type:"mention"};invariant(r,"Editor ref is not set"),invariant(o,"Target is not set"),Transforms.select(r,o),Transforms.insertNodes(r,_),Transforms.move(r),Transforms.insertText(r," "),n(0),s(null);}},[m,a,r,o]),g=useCallback(y=>{if(!!e?.length&&o)switch(y.key){case"ArrowDown":{y.preventDefault(),n(_=>(_+1)%(m?.length||1));break}case"ArrowUp":{y.preventDefault(),n(_=>(_-1+(m?.length||1))%(m?.length||1));break}case"Escape":{y.preventDefault(),s(null);break}case"Enter":{y.preventDefault(),f();break}}},[m?.length,e?.length,o,f]);return useLayoutEffect(()=>{let y=t.current;y&&p==="keyboard"&&y.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[a,t,p]),useInteractOutside({ref:t,onInteractOutside:()=>{s(null);}}),{triggerMention:u,matchedUsers:m,onKeyDown:g,insertMention:f,activeIndex:a,isMentionPopoverOpen:!!o,setActiveIndex:n}}var ss=br.forwardRef(({editor:e,onSave:t,value:r,defaultValue:o,onChange:s,style:a,spellCheck:n,placeholder:l,isInline:i,isDisabled:p,editableContentAriaLabel:d,containerRef:c,...m},u)=>{let f=useRef(null),g=useId(),y=useCallback(k=>jsx(hz,{...k}),[]),{formatMessage:v}=M(),_=useRef(null),h=useRef(null),{onKeyDown:x,matchedUsers:P,activeIndex:C,insertMention:R,triggerMention:z,isMentionPopoverOpen:w,setActiveIndex:B}=mc({mentionableUsers:m.mentionableUsers,mentionPopoverRef:h,editor:e}),[T,N]=useControlledState(r?Za(r):void 0,Za(o||"<p></p>"),k=>{s&&s(Kr(k));}),{keyboardProps:F}=useKeyboard({onKeyDown:k=>{x(k),k.key==="Enter"&&!k.shiftKey?(k.preventDefault(),t?.(Kr(e.children))):(k.metaKey||k.ctrlKey)&&k.key==="b"?(k.preventDefault(),hr(e,"bold")):(k.metaKey||k.ctrlKey)&&k.key==="i"?(k.preventDefault(),hr(e,"italic")):(k.metaKey||k.ctrlKey)&&k.key==="u"?(k.preventDefault(),hr(e,"underline")):k.key==="F10"&&(k.preventDefault(),f.current&&f.current.querySelector("button")?.focus());}});return useEffect(()=>{p&&ReactEditor.deselect(e);},[p,e]),useEffect(()=>{let k=_.current?.querySelector("[contenteditable=true]");if(!k)return;let L=()=>{ReactEditor.focus(e);};return k.addEventListener("focus",L),()=>{k.removeEventListener("focus",L);}},[e]),useImperativeHandle(u,()=>({startMention:()=>{let k=Gr(e,1);Transforms.insertText(e,sc(k)?"@":" @"),ReactEditor.focus(e);}})),useImperativeHandle(m.editorHandle,()=>({setCaretPosition:k=>{ReactEditor.focus(e),Transforms.move(e,{distance:k,unit:"character"});}})),jsxs(Slate,{editor:e,initialValue:T||[{type:"paragraph",children:[{text:""}]}],onValueChange:N,onChange:z,children:[jsxs(it,{className:ct,"aria-controls":g,ref:f,children:[jsxs(D,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsx(yt,{nodeType:"bold",icon:BoldIcon,ariaLabel:v(Wr.bold),isDisabled:p}),jsx(yt,{nodeType:"italic",icon:ItalicIcon,ariaLabel:v(Wr.italic),isDisabled:p}),jsx(yt,{nodeType:"underline",icon:UnderlineIcon,ariaLabel:v(Wr.underline),isDisabled:p})]}),jsx(H,{orientation:"vertical"}),jsx(es,{nodeType:"color","aria-label":v(Wr.fontColor),isDisabled:p}),jsx(H,{orientation:"vertical"}),jsx(es,{nodeType:"backgroundColor","aria-label":v(Wr.backgroundColor),isDisabled:p}),jsx(H,{orientation:"vertical"}),jsx(lc,{isDisabled:p})]}),jsx(H,{variant:"secondary"}),jsx("div",{ref:_,children:jsx(Editable,{...F,renderLeaf:y,renderElement:zz,readOnly:p,disabled:p,"data-mention-open":w,className:classNames(pt({isDisabled:p}),dt({isInline:i})),renderPlaceholder:({attributes:k,children:L})=>jsx("span",{...k,className:sprinkles({paddingY:"lg"}),children:L}),style:a,placeholder:l,spellCheck:n,id:g,"aria-label":d})}),jsxs(Ae,{isOpen:w,type:"listbox",children:[jsx(Oe,{}),jsx(Ne,{isNonModal:!0,className:Wd,triggerRef:c,placement:"bottom start",children:jsx(le,{ref:h,items:P||[],renderOption:(...k)=>Cz(...k,{index:(P||[]).findIndex(L=>L.id===k[0].key),setIndex:B,activeIndex:C}),onAction:k=>{let L=P?.findIndex(W=>W.id===k);R(L);}})})]})]})});ss.displayName="RichEditor";var hz=({children:e,attributes:t,leaf:r})=>(r.bold&&(e=jsx("strong",{children:e})),r.italic&&(e=jsx("em",{children:e})),r.underline&&(e=jsx("u",{children:e})),jsx("span",{...t,children:e})),vt=()=>jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),zz=e=>{let{attributes:t,children:r,element:o}=e;return "type"in o&&o.type==="link"?jsxs(yo,{size:"sm",...t,href:o.url,children:[jsx(vt,{}),r,jsx(vt,{})]}):"type"in o&&o.type==="span"?jsxs("span",{...t,style:{color:o.color,backgroundColor:o.backgroundColor},children:[jsx(vt,{}),r,jsx(vt,{})]}):"type"in o&&o.type==="mention"?jsxs("span",{...t,contentEditable:isChrome()?void 0:t.contentEditable,"data-user-id":o.userId,children:[r,"@",o.displayName]}):jsx("p",{...t,children:r})},Cz=({value:e,nextKey:t},{optionProps:r,isDisabled:o},s,{index:a,setIndex:n,activeIndex:l})=>{let{hoverProps:i}=useHover({isDisabled:o,onHoverStart:()=>{n(a);}});invariant(e,"Option value is not set");let{label:p,description:d,data:c}=e;return jsxs(Fragment,{children:[jsxs("li",{...mergeProps(r,i),className:Yd({isDisabled:o,isHovered:a===l}),"data-active":a===l,ref:s,children:[jsx(mr,{name:p,...c?.avatar}),jsxs(D,{display:"flex",flexDirection:"column",children:[jsx(X,{type:"subtitle",size:"sm",children:p}),jsx(X,{type:"helper",size:"sm",children:d})]})]}),t?jsx(H,{}):null]})},Wr=Y({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"}});var bc=br.forwardRef(({className:e,style:t,"data-block-id":r,enableRichText:o=!1,onCancel:s,onSave:a,isInline:n=!0,submitButtonIcon:l=ArrowUpCircleFilledIcon,submitButtonAriaLabel:i,"aria-label":p,"aria-describedby":d,"aria-labelledby":c,"aria-details":m,editableContentAriaLabel:u="Editing Area",footerButtons:f,...g},y)=>{let v=useMemo(()=>{let w=rc(withReact(withHistory(createEditor())));return g.mentionableUsers?oc(w):w},[g.mentionableUsers]),{formatMessage:_}=M(),h=useRef(null),x=useRef(null),P=!o&&g.variant==="minimal",C=useRef(null),{fieldProps:R}=useLabel({"aria-label":p,"aria-labelledby":c,"aria-describedby":d,"aria-details":m,labelElementType:"div"});P&&!g.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let z=jsx(I,{variant:"ghost","aria-label":i||_(is.save),icon:l,isDisabled:g.isDisabled,size:"md",excludeFromTabOrder:P,className:P?Xd:void 0,onPress:()=>a?.(o?Kr(v.children):h.current.value)});return jsx("div",{...R,role:"application",ref:mergeRefs(x,y),style:t,"data-block-id":r,className:classNames(Gd({isInline:n,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":g.isDisabled,children:P?jsxs(Fragment,{children:[n?jsx(mr,{className:Kd,name:g.avatarName||""}):null,jsxs("div",{className:$d({isInline:n}),children:[jsx(Ga,{isMinimal:P,textBoxRef:h,onSave:a,isInline:n,editableContentAriaLabel:u,...g}),z]})]}):jsxs(Fragment,{children:[o?jsx(ss,{containerRef:x,ref:C,editor:v,onCancel:s,onSave:a,isInline:n,editableContentAriaLabel:u,...g}):jsxs(Fragment,{children:[!n&&jsx(H,{variant:"secondary"}),jsx(Ga,{onSave:a,onCancel:s,textBoxRef:h,isInline:n,editableContentAriaLabel:u,...g})]}),jsx(H,{variant:"secondary"}),jsxs("div",{className:classNames(ct,sprinkles({justifyContent:"space-between"})),children:[jsxs(D,{paddingX:"sm",gap:"sm",display:"flex",children:[o&&g.mentionableUsers?jsx(I,{icon:AtIcon,size:"sm","aria-label":_(is.mention),onPress:()=>C.current?.startMention()}):null,f?.map((w,B)=>jsx(I,{...w,size:"sm",isDisabled:g.isDisabled||w.isDisabled},B))]}),jsxs(D,{children:[!!s&&jsx(I,{variant:"secondary",icon:CrossCircleFilledIcon,isDisabled:g.isDisabled,size:"md",onPress:s,"aria-label":_(is.cancel)}),z]})]})]})})});bc.displayName="Editor";var is=Y({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var _t=br.forwardRef(({className:e,style:t,"data-block-id":r,isMounted:o,children:s,transitions:a,elementType:n="div",...l},i)=>{let p=useTransition(o,a),d=animated[n];return p((c,m)=>m&&jsx(d,{className:e,"data-block-id":r,style:{...t,...c},...l,ref:i,children:s}))});_t.displayName="Transition";var vc="_8kqf970 _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6zr _1yep5z6zs _1yep5z6zt _1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z610i _1yep5z610j _1yep5z610k _1yep5z6ux _1yep5z6sy _1yep5z6sz _1yep5z6t0 _1yep5z612o";var zc=2,Cc=br.forwardRef(({className:e,style:t,hideForKeyboard:r,scrollRef:o,label:s,delay:a=1500,smoothScroll:n=!0,"data-block-id":l},i)=>{let p=br.useRef(null),d=useInteractionModality(),[c,m]=br.useState(!1),u=useCallback(()=>{let w=o?.current||getOwnerDocument(p.current).body;return getOwnerWindow(w).getComputedStyle(w).flexDirection==="column-reverse"?w.scrollTop+zc>=0:w.scrollTop+w.clientHeight+zc>=w.scrollHeight},[o]),[f,g]=br.useState(u),y=Re(),{buttonProps:v,isPressed:_}=useButton({onPress:()=>{let w=o?.current||getOwnerDocument(p.current).body;w.scrollTo({top:w.scrollHeight,behavior:n?"smooth":"auto"});}},p),{focusProps:h,isFocused:x,isFocusVisible:P}=useFocusRing(),{hoverProps:C,isHovered:R}=useHover({}),z=filterTruthyValues({"data-block-id":l,"data-pressed":_,"data-focus-visible":P,"data-hovered":R,"data-focused":x});return useEffect(()=>{g(u());},[u]),useEffect(()=>{let w=o?.current||getOwnerDocument(p.current).body,B="onscrollend"in getOwnerWindow(w),T=()=>{setTimeout(()=>{m(!1),g(u());},a);},N=()=>{m(!0),B||T();};return w.addEventListener("scroll",N),w.addEventListener("scrollend",T),()=>{w.removeEventListener("scroll",N),w.removeEventListener("scrollend",T);}},[o,a,u]),jsxs(_t,{isMounted:(r?d!=="keyboard":!0)&&!c&&!f,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:y},...mergeProps(v,h,C,z),className:classNames(vc,wo({isFocusVisible:P,variant:"high-contrast",isHovered:R}),"BaselineUI-ScrollControlButton",e),style:t,ref:mergeRefs(i,p),children:[jsx(ArrowDownCircleFilledIcon,{size:16}),s]})});Cc.displayName="ScrollControlButton";var ds="_1yep5z6hk _1yep5z6hl _1yep5z6hm _1yep5z6ht _1yep5z6hu _1yep5z6hv",xc=b({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"},hasNoCloseBtn:{true:"_1yep5z6js _1yep5z6jt _1yep5z6ju _1yep5z6m4 _1yep5z6m5 _1yep5z6m6 _1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6ky _1yep5z6kz _1yep5z6l0"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61cn _1yep5z61co _1yep5z61cp"]]}),Pc="_1v0p2z10";var kc=br.forwardRef(({className:e,style:t,"data-block-id":r,message:o,title:s,primaryActionLabel:a,cancelLabel:n,textInputProps:l,icon:i,iconColor:p,showCloseButton:d=!0,onPrimaryAction:c,onCancel:m,autoFocusButton:u,isPrimaryActionDisabled:f},g)=>{let y=useId(),{formatMessage:v}=M(),_=s&&jsx(X,{id:y,type:"title",size:"sm",elementType:"h3",children:s});return jsxs(pe,{className:e,style:t,"data-block-id":r,size:"sm",variant:"primary",role:"alertdialog",ref:g,"aria-labelledby":y,children:[jsxs("div",{className:xc({hasTitleAndIcon:!!(i&&s),hasNoCloseBtn:!d}),children:[jsxs(D,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[i?jsx(i,{style:{color:p},size:24}):null,!i&&_,d?jsx(I,{icon:XIcon$1,variant:"secondary",size:"md","aria-label":v(e5.close),onPress:m}):null]}),i?_:null]}),o?jsx(D,{elementType:"section",className:Pc,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:o}):null,l?jsx(D,{paddingX:"lg",paddingBottom:"lg",children:jsx(lr,{...l})}):null,n||a?jsxs(Fragment,{children:[jsx(H,{}),jsxs(D,{padding:"lg",display:"flex",gap:"xl",children:[n?jsx(A,{variant:"secondary",className:ds,label:n,onPress:m,autoFocus:u==="cancel"}):null,a?jsx(A,{className:ds,label:a,onPress:c,autoFocus:u==="primary",isDisabled:f}):null]})]}):null]})});kc.displayName="AlertDialog";var e5=Y({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var Rc="_1t55bp71",wc="_1yep5z6c6 _1yep5z6d2",Ic="_1t55bp70";var n5=s5(),Tc=br.forwardRef(({className:e,style:t,children:r,"data-block-id":o,showCaret:s},a)=>{let n=useMemo(()=>{let l=r;return (!r||Array.isArray(r)&&r.length===0)&&(l=""),n5.render(l)},[r]);return jsx("div",{className:classNames(wc,Ic,{[Rc]:s},"BaselineUI-Markdown",e),"data-block-id":o,style:t,ref:a,dangerouslySetInnerHTML:{__html:n}})});Tc.displayName="Markdown";function Lc(e){let{formatMessage:t,locale:r}=M(),[o,s]=br.useState(!1),[a,n]=br.useState(0),[l,i]=br.useState(0),[p,d]=br.useState(!1);useEffect(()=>{if(!e.current)return;let u=e.current,f=()=>{s(!1),n(0);},g=()=>{p||n(u.currentTime*100/u.duration);},y=()=>{i(u.duration);};return u.addEventListener("ended",f),u.addEventListener("timeupdate",g),u.addEventListener("loadedmetadata",y),()=>{u.removeEventListener("ended",f),u.removeEventListener("timeupdate",g),u.removeEventListener("loadedmetadata",y);}},[p,e]);let c=useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),s(!0),announce(t(Sc.playing),"polite")):(e.current.pause(),s(!1),announce(t(Sc.paused),"polite"))))();},[t,e]),m=useCallback(u=>{e.current&&(e.current.currentTime=u*e.current.duration/100,announce(p5(e.current.currentTime,r.locale),"assertive"));},[r.locale,e]);return {isPlaying:o,progress:a,duration:l,togglePlay:c,seek:m,setProgress:n,formattedCurrentTime:e.current?.currentTime?Mc(e.current?.currentTime):"00:00",formattedDuration:l?Mc(l):"00:00",setIsSliderDragging:d}}var Sc=Y({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function p5(e,t){let r=Math.floor(e/3600),o=Math.floor(e%3600/60),s=e%60,a={...r&&{hours:r},...o&&{minutes:o},seconds:Math.floor(s)};return new Intl.DurationFormat(t,{style:"long"}).format(a)}function Mc(e){let t=Math.floor(e%3600/60),r=Math.floor(e%60);return [t,r].map(o=>o.toString().padStart(2,"0")).join(":")}var Bc="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q",Dc="rta2n91 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6vp _1yep5z6t1 _1yep5z6t2 _1yep5z6t3 _1yep5z612m _1yep5z6wm",Ec="rta2n90";var Vc=br.forwardRef(({className:e,style:t,size:r="lg",sources:o,"data-block-id":s,...a},n)=>{let l=br.useRef(null),{isPlaying:i,progress:p,duration:d,togglePlay:c,seek:m,formattedDuration:u,formattedCurrentTime:f,setProgress:g,setIsSliderDragging:y}=Lc(l),{formatMessage:v}=M(),_=filterTruthyValues({"data-block-id":s,"data-state":i?"playing":"paused","data-loaded":d>0});return jsxs("div",{..._,...a,className:classNames(Bc,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:n,children:[jsx(VisuallyHidden,{children:jsx("audio",{ref:l,children:o.map(({url:h,type:x})=>jsx("source",{src:h,type:x},h))})}),jsx(_r,{icon:i?PauseIcon:PlayIcon,variant:"toolbar",isSelected:i,size:r,"aria-label":v(i?ms.pause:ms.play),style:{borderRadius:"50%"},onPress:c}),jsxs("div",{className:Dc,children:[jsx("span",{"aria-hidden":!0,children:f}),jsx(io,{"aria-label":v(ms.audioTimeline),value:p,minValue:0,maxValue:100,className:Ec,onChange:h=>{g(h),y(!0);},onChangeEnd:h=>{m(h),y(!1);}}),jsx("span",{"aria-hidden":!0,children:u})]})]})});Vc.displayName="AudioPlayer";var ms=Y({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});
47
49
 
48
- export { op as Accordion, mp as AccordionItem, V as ActionButton, I as ActionIconButton, hm as AlertDialog, dr as Avatar, L as Box, Nn as Checkbox, Vr as ColorInput, wd as ColorPresetInlineInput, Ae as ColorSwatch, Vn as DateFormat, le as Dialog, el as DialogTitle, wi as DomNodeRenderer, La as Drawer, pm as Editor, Ls as FileUpload, $l as FreehandCanvas, zd as Group, ln as I18nProvider, ql as IconColorInputButton, pd as ImageDropZone, Hp as InlineAlert, ca as Link, ne as ListBox, ym as Markdown, ks as Menu, xd as MessageFormat, Ba as Modal, nf as ModalClose, mt as ModalContent, Ea as ModalTrigger, nr as NumberFormat, ue as NumberInput, Hn as Pagination, He as Popover, Ne as PopoverContent, Ve as PopoverTrigger, ha as Portal, ud as Preview, qs as ProgressBar, za as ProgressSpinner, oo as RadioGroup, $s as Reaction, um as ScrollControlButton, as as SearchInput, Na as Select, E as Separator, Ai as Slider, $i as Switch, Np as TabItem, Tp as Tabs, Yn as TagGroup, W as Text, sr as TextInput, Pe as ThemeProvider, Pn as ToggleButton, io as ToggleIconButton, to as Toolbar, gn as Tooltip, td as Transform, pe as defineMessages, xa as useDevice, F as useI18n, fa as useImage, on as useIntersectionObserver, we as useIsFirstRender, mn as useLocalStorage, zw as useMutationObserver, tn as useResizeObserver, Tw as useTextSelection, nn as useUndoRedo, jo as useUserPreferences };
50
+ export { ml as Accordion, hl as AccordionItem, A as ActionButton, I as ActionIconButton, kc as AlertDialog, Vc as AudioPlayer, mr as Avatar, D as Box, Vi as Checkbox, jr as ColorInput, Dd as ColorPresetInlineInput, je as ColorSwatch, Xi as DateFormat, pe as Dialog, pp as DialogTitle, Ms as DomNodeRenderer, Fo as Drawer, bc as Editor, jn as FileUpload, nd as FreehandCanvas, Sd as Group, bi as I18nProvider, Qp as IconColorInputButton, bd as ImageDropZone, Wl as InlineAlert, yo as Link, le as ListBox, Tc as Markdown, Sn as Menu, Nd as MessageFormat, Ho as Modal, Iv as ModalClose, ya as ModalContent, Ao as ModalTrigger, pr as NumberFormat, ue as NumberInput, Wi as Pagination, Ae as Popover, Ne as PopoverContent, Oe as PopoverTrigger, _o as Portal, Cd as Preview, $n as ProgressBar, ko as ProgressSpinner, nt as RadioGroup, si as Reaction, Cc as ScrollControlButton, ln as SearchInput, Lo as Select, H as Separator, io as Slider, on as Switch, Vl as TabItem, Hl as Tabs, ol as TagGroup, X as Text, lr as TextInput, ke as ThemeProvider, Bi as ToggleButton, _r as ToggleIconButton, it as Toolbar, xi as Tooltip, ud as Transform, _t as Transition, Y as defineMessages, Po as useDevice, M as useI18n, zo as useImage, ci as useIntersectionObserver, Re as useIsFirstRender, _i as useLocalStorage, Jw as useMutationObserver, mi as useResizeObserver, nI as useTextSelection, fi as useUndoRedo, Bt as useUserPreferences };