@baseline-ui/core 0.41.0 → 0.42.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.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var utils=require('@baseline-ui/utils'),_t=require('react'),utils$1=require('@react-stately/utils'),reactAria=require('react-aria'),reactStately=require('react-stately'),jsxRuntime=require('react/jsx-runtime'),_24=require('@baseline-ui/icons/24'),tokens=require('@baseline-ui/tokens'),granularHooks=require('granular-hooks'),_8=require('@baseline-ui/icons/8'),_16=require('@baseline-ui/icons/16'),focus=require('@react-aria/focus'),react=require('motion/react'),Uv=require('lodash/isEmpty'),dynamic=require('@vanilla-extract/dynamic'),_20=require('@baseline-ui/icons/20'),Yz=require('react-dom'),_12=require('@baseline-ui/icons/12'),interactions=require('@react-aria/interactions'),color=require('@react-stately/color'),color$1=require('@react-aria/color'),perfectFreehand=require('perfect-freehand'),reactMoveable=require('react-moveable'),lodash=require('lodash'),toolbar=require('@react-aria/toolbar'),plateBasicMarks=require('@udecode/plate-basic-marks'),plateCommon=require('@udecode/plate-common'),plateFont=require('@udecode/plate-font'),plateParagraph=require('@udecode/plate-paragraph'),plateLink=require('@udecode/plate-link'),cn$1=require('@udecode/cn'),y1=require('dompurify'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),TR=require('markdown-it'),liveAnnouncer=require('@react-aria/live-announcer'),actiongroup=require('@react-aria/actiongroup'),reactComplexTree=require('react-complex-tree'),reactResizablePanels=require('react-resizable-panels'),toast=require('@react-stately/toast'),toast$1=require('@react-aria/toast');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var _t__default=/*#__PURE__*/_interopDefault(_t);var Uv__default=/*#__PURE__*/_interopDefault(Uv);var Yz__default=/*#__PURE__*/_interopDefault(Yz);var y1__namespace=/*#__PURE__*/_interopNamespace(y1);var TR__default=/*#__PURE__*/_interopDefault(TR);/**
1
+ 'use strict';var Ct=require('react'),utils=require('@react-stately/utils'),reactAria=require('react-aria'),reactStately=require('react-stately'),color=require('@react-stately/color'),O5=require('dompurify'),jsxRuntime=require('react/jsx-runtime'),_24=require('@baseline-ui/icons/24'),tokens=require('@baseline-ui/tokens'),granularHooks=require('granular-hooks'),_8=require('@baseline-ui/icons/8'),_16=require('@baseline-ui/icons/16'),focus=require('@react-aria/focus'),react=require('motion/react'),_v=require('lodash/isEmpty'),dynamic=require('@vanilla-extract/dynamic'),_20=require('@baseline-ui/icons/20'),uz=require('react-dom'),_12=require('@baseline-ui/icons/12'),interactions=require('@react-aria/interactions'),color$1=require('@react-aria/color'),perfectFreehand=require('perfect-freehand'),reactMoveable=require('react-moveable'),lodash=require('lodash'),toolbar=require('@react-aria/toolbar'),plateBasicMarks=require('@udecode/plate-basic-marks'),plateCommon=require('@udecode/plate-common'),plateFont=require('@udecode/plate-font'),plateParagraph=require('@udecode/plate-paragraph'),plateLink=require('@udecode/plate-link'),cn$1=require('@udecode/cn'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),Dw=require('markdown-it'),liveAnnouncer=require('@react-aria/live-announcer'),actiongroup=require('@react-aria/actiongroup'),reactComplexTree=require('react-complex-tree'),reactResizablePanels=require('react-resizable-panels'),toast=require('@react-stately/toast'),toast$1=require('@react-aria/toast');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var Ct__default=/*#__PURE__*/_interopDefault(Ct);var O5__namespace=/*#__PURE__*/_interopNamespace(O5);var _v__default=/*#__PURE__*/_interopDefault(_v);var uz__default=/*#__PURE__*/_interopDefault(uz);var Dw__default=/*#__PURE__*/_interopDefault(Dw);/**
2
2
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
3
3
  *
4
4
  * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
@@ -7,7 +7,7 @@
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- var Me=typeof document<"u"?_t__default.default.useLayoutEffect:()=>{};function Zn(e){let t=_t.useRef(null);return Me(()=>{t.current=e;},[e]),_t.useCallback((...o)=>{let r=t.current;return r?.(...o)},[])}function Jn(e){let[t,o]=_t.useState(e),r=_t.useRef(null),a=Zn(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():o(i.value);});Me(()=>{r.current&&a();});let n=Zn(i=>{r.current=i(t),a();});return [t,n]}var Er={prefix:String(Math.round(Math.random()*1e10)),current:0},Jl=_t__default.default.createContext(Er),wg=_t__default.default.createContext(false);var Ig=!!(typeof window<"u"&&window.document&&window.document.createElement),Qn=new WeakMap;function Rg(e=false){let t=_t.useContext(Jl),o=_t.useRef(null);if(o.current===null&&!e){var r,a;let n=(a=_t__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(n){let i=Qn.get(n);i==null?Qn.set(n,{id:t.current,state:n.memoizedState}):n.memoizedState!==i.state&&(t.current=i.id,Qn.delete(n));}o.current=++t.current;}return o.current}function $g(e){let t=_t.useContext(Jl);t===Er&&!Ig&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=Rg(!!e),r=t===Er&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${o}`}function Tg(e){let t=_t__default.default.useId(),[o]=_t.useState(Ql()),r=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Er.prefix}`;return e||`${r}-${t}`}var ti=typeof _t__default.default.useId=="function"?Tg:$g;function Sg(){return false}function Dg(){return true}function Mg(e){return ()=>{}}function Ql(){return typeof _t__default.default.useSyncExternalStore=="function"?_t__default.default.useSyncExternalStore(Mg,Sg,Dg):_t.useContext(wg)}var Ag=!!(typeof window<"u"&&window.document&&window.document.createElement),Je=new Map;function Lr(e){let[t,o]=_t.useState(e),r=_t.useRef(null),a=ti(t),n=_t.useCallback(i=>{r.current=i;},[]);return Ag&&(Je.has(a)&&!Je.get(a).includes(n)?Je.set(a,[...Je.get(a),n]):Je.set(a,[n])),Me(()=>{let i=a;return ()=>{Je.delete(i);}},[a]),_t.useEffect(()=>{let i=r.current;i&&(r.current=null,o(i));}),a}function oi(e,t){if(e===t)return e;let o=Je.get(e);if(o)return o.forEach(a=>a(t)),t;let r=Je.get(t);return r?(r.forEach(a=>a(e)),e):t}function ep(...e){return (...t)=>{for(let o of e)typeof o=="function"&&o(...t);}}var he=e=>{var t;return (t=e?.ownerDocument)!==null&&t!==void 0?t:document},ne=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function Fg(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ri(e){return Fg(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var Br=(e=document)=>{var t;let o=e.activeElement;for(;o&&"shadowRoot"in o&&(!((t=o.shadowRoot)===null||t===void 0)&&t.activeElement);)o=o.shadowRoot.activeElement;return o};function tp(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=tp(e[t]))&&(r&&(r+=" "),r+=o);}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function jg(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=tp(e))&&(r&&(r+=" "),r+=t);return r}var op=jg;function $e(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let a in r){let n=t[a],i=r[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=ep(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?t[a]=op(n,i):a==="id"&&n&&i?t.id=oi(n,i):t[a]=i!==void 0?i:n;}}return t}function M(...e){return e.length===1&&e[0]?e[0]:t=>{for(let o of e)typeof o=="function"?o(t):o!=null&&(o.current=t);}}var Og=new Set(["id"]),Hg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Vg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ug=/^(data-.*)$/;function ai(e,t={}){let{labelable:o,isLink:r,propNames:a}=t,n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Og.has(i)||o&&Hg.has(i)||r&&Vg.has(i)||a?.has(i)||Ug.test(i))&&(n[i]=e[i]);return n}function Ar(e){var t;return typeof window>"u"||window.navigator==null?false:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function Fe(e){let t=null;return ()=>(t==null&&(t=e()),t)}var Bo=Fe(function(){return Ar(/Firefox/i)});function oe(e){let t=_t.useRef(null);return _t.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,typeof e=="function"?e(o):e&&(e.current=o);}}),[e])}function Zg(){return typeof window.ResizeObserver<"u"}function si(e){let{ref:t,box:o,onResize:r}=e;_t.useEffect(()=>{let a=t?.current;if(a)if(Zg()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(a,{box:o}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",r,false),()=>{window.removeEventListener("resize",r,false);}},[r,t,o]);}function Qe(e){return !!e&&"label"in e&&!!e.label}function Fr(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function e6(e){return Fr(e)?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,"aria-label":e.title,children:t=>jsxRuntime.jsx(reactStately.Item,{textValue:t.label,children:t.label},t.id)},e.id):jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)}function ce(){return _t.useCallback(e=>e6(e),[])}function jr(e,t,o){let{direction:r}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(s=>[...s].map(l=>{let p=t.collection.getItem(l);return utils.invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});reactAria.useDraggableCollection(e,a,o);let n=reactStately.useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(t.collection,o)},n,o);return {collectionProps:i,dragState:a,dropState:n}}function p6(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function c6(e){var t=p6(e,"string");return typeof t=="symbol"?t:String(t)}function d6(e,t,o){return t=c6(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:true,configurable:true,writable:true}):e[t]=o,e}function lp(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r);}return o}function pp(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(o),true).forEach(function(r){d6(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):lp(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function cp(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var u6=(e,t,o)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=t[r])!==null&&a!==void 0?a:o[r]))return false}return true},z=e=>{var t=o=>{var r=e.defaultClassName,a=pp(pp({},e.defaultVariants),o);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:e.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===true?"true":"false");var p=e.variantClassNames[n][l];p&&(r+=" "+p);}}for(var[c,u]of e.compoundVariants)u6(c,a,e.defaultVariants)&&(r+=" "+u);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return cp(e.variantClassNames,o=>cp(o,r=>r.split(" ")[0]))}},t};var dp=z({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),up="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",mp=z({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),fp=z({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),yp="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",bp="_6n12k90";var gp=z({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var q=_t__default.default.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...l},p)=>{let{separatorProps:c}=reactAria.useSeparator({...l,orientation:r,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(gp({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":i,"data-block-class":s,style:t,role:a?void 0:c.role,ref:p})});q.displayName="Separator";function z6(e){return tokens.sprinkles.properties.has(e)}var D=_t__default.default.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:i}=_t.useMemo(()=>{let s={},l={};for(let p in o)z6(p)?s[p]=o[p]:l[p]=o[p];return {sprinkleProps:s,domProps:l}},[o]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:r,children:t})});D.displayName="Box";var Fo=_t__default.default.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:c,_state:u},m)=>{utils.invariant(e.value&&Qe(e.value),"Item cannot be a section");let{icon:d,label:b}=e.value,{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:t}),g=utils.filterTruthyValues({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":f,"data-pressed":c,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,g),className:utils.classNames(fp({isHovered:f,isFocused:o,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:t}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:m,children:[jsxRuntime.jsxs(D,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsxRuntime.jsx("span",{"aria-hidden":true,style:{height:24,width:24},children:r?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,d?jsxRuntime.jsx(d,{size:24}):null,jsxRuntime.jsx("span",{...l,children:b})]}),i?jsxRuntime.jsx("span",{className:mp({isDisabled:t}),...s,children:i}):null]})});Fo.displayName="DefaultRenderOption";var Ht=({dropState:e,orientation:t="vertical",dropIndicatorStyle:o,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:l,orientation:p},c)=>s?null:jsxRuntime.jsx("li",{...l,ref:c,"data-drop-target":i,className:utils.classNames(dp({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let i=_t__default.default.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=reactAria.useDropIndicator(n,e,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:t},i)};function zt(e,t,o){return typeof e=="function"?e(t,o):e}function Or(e,t,o){return typeof e=="function"?e(t,o):e}function Hr(e,t){return typeof e=="function"?e(t):e}function ci(e,t){return typeof e=="function"?e(t):e}var hp=({item:e,children:t,state:o,dragState:r,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ht,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(Ht,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};hp.displayName="DraggableListOption";var jo=_t__default.default.forwardRef(({item:e,renderOption:t=(m,d,b)=>jsxRuntime.jsx(Fo,{item:m,liProps:d.optionProps,...d,ref:b}),showSelectedIcon:o,state:r,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},u)=>{let m=_t__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,m),{value:b}=e;utils.invariant(b&&Qe(b),"ListSection should not be passed to ListOption");let y={isFocusVisible:d.isFocusVisible,isSelected:d.isSelected,isFocused:d.isFocused,isDisabled:d.isDisabled,isPressed:d.isPressed},f={style:Or(p,b,y),className:zt(c,b,y)};return a&&n?jsxRuntime.jsx(hp,{orientation:i,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:g=>t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...reactAria.mergeProps(d.optionProps,g),...f}},M(m,u))}):t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...d.optionProps,...f}},M(m,u))});jo.displayName="Option";var kp=({section:e,state:t,sectionClassName:o,sectionStyle:r,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=false,...s})=>{let l=_t__default.default.useRef(null),{itemProps:p,groupProps:c,headingProps:u}=reactAria.useListBoxSection({heading:a?n?.(e,l)||e.rendered:void 0,"aria-label":e["aria-label"]}),m=t.collection.getChildren?.(e.key);utils.invariant(m,"children must be defined");let{value:d}=e;utils.invariant(d&&Fr(d),"section must be a ListSection");let b=typeof r=="function"?r(d):r,y=typeof o=="function"?o(d):o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsxRuntime.jsx(q,{UNSAFE_omitRole:true}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...b},className:utils.classNames(bp,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?n?.(e,l)||jsxRuntime.jsx(D,{...u,className:utils.classNames("BaselineUI-ListBox-SectionHeader",yp),ref:l,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(f=>jsxRuntime.jsx(jo,{item:f,state:t,...s},f.key))})]})]})};function qr({type:e="listbox",handle:t},o,r){let a=_t.useCallback(i=>e==="listbox"?r.current?.querySelector(`[data-key="${i}"][role="option"]`):r.current?.querySelector(`[data-key="${i}"][role="row"]`),[e,r]),n=_t.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);_t.useImperativeHandle(t,()=>({scrollIntoView:n,setFocusedKey:i=>{o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,o.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=r.current?.getRootNode(),s=i&&ri(i),l=o.selectionManager.focusedKey;s&&l&&n(l);},[o.selectionManager.focusedKey],[n,r]);}var ht=_t__default.default.createContext(null),di=_t__default.default.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=true,style:a,renderOption:n,enableReorder:i=false,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:u,listBoxHandle:m,...d},b)=>{let y=_t__default.default.useRef(null),{direction:f}=reactAria.useLocale(),g=_t__default.default.useRef(null),{listBoxProps:v}=reactAria.useListBox({...d,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:u.collection,ref:g,layout:t,orientation:o,direction:f,disabledKeys:u.disabledKeys})},u,g);qr({handle:m},u,g);let{collectionProps:_,dragState:h,dropState:x}=jr({...d,onReorder:c,layout:t,orientation:o,enableReorder:i,preview:y},u,g),{isFocusVisible:I,isFocused:C,focusProps:w}=reactAria.useFocusRing(),P=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-layout":t,"data-empty":u.collection.size===0,"data-focused":C,"data-focus-visible":I,"data-orientation":o});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(v,w,P,_),className:utils.classNames(up,"BaselineUI-ListBox",e),style:a,ref:M(b,g),children:[[...u.collection].map(S=>{let k={key:S.key,state:u,dragState:h,dropState:x,renderOption:n,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:o,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,sectionClassName:d.sectionClassName,sectionStyle:d.sectionStyle,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return S.type==="section"?_t.createElement(kp,{...k,key:S.key,section:S}):_t.createElement(jo,{...k,key:S.key,item:S})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:p}):null]})});di.displayName="ListBoxCore";var Rp=_t__default.default.forwardRef((e,t)=>{let o=ce(),r=reactStately.useListState({...e,children:o});return jsxRuntime.jsx(di,{...e,ref:t,state:r})});Rp.displayName="ListBoxStandalone";var fe=_t__default.default.forwardRef((e,t)=>{let o=_t.useContext(ht);return _t.useEffect(()=>{if(!e.items&&!o)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,o]),o?jsxRuntime.jsx(di,{...e,ref:t,state:o}):jsxRuntime.jsx(Rp,{...e,ref:t})});fe.displayName="ListBox";var Gr="uf19bsf _1yep5z6la",$p=z({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var Oo=_t__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),je=({children:e,...t})=>{let o=_t__default.default.useRef(null),r=reactStately.useOverlayTriggerState(t),a=reactAria.useOverlayTrigger(t,r),n=_t.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsxRuntime.jsx(Oo.Provider,{value:n,children:e})};var Sp=z({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),Dp=z({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Mp="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",Np="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",Ep="_1gzftthd",Lp="_1gzftthc",Bp="var(--_1gzftth0)";function f3(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Ap(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}var Wr=_t__default.default.createContext({isSelected:false,ref:void 0}),Oe=({children:e,anchorRect:t})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=_t.useContext(Oo);utils.invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=r,i=_t.useMemo(()=>({...n,isSelected:o.isOpen,ref:a}),[n,o.isOpen,a]);return utils.invariant(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),utils.invariant(!t||Ap(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Wr.Provider,{value:i,children:t?jsxRuntime.jsx("div",{className:utils.classNames(Ep,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:a,tabIndex:-1},JSON.stringify(t)):e})};var xe=({label:e,tooltip:t,...o})=>({tooltipProps:_t.useMemo(()=>{let a={size:"sm",variant:"inverse",text:e,includeArrow:false,placement:"bottom start",offset:4,...o};if(typeof t=="object")return {...a,...t};if(t)return a},[e,o,t])});function Yr({tooltip:e,"aria-label":t,"aria-labelledby":o},r){let[a,n]=_t.useState(t||"");_t.useEffect(()=>{if(o){let l=he(r.current).querySelector(`#${o}`);l&&n(l.textContent||"");}else t&&n(t);},[o,r,t]);let{tooltipProps:i}=xe({label:a,tooltip:e});return {tooltipProps:i}}var Xr=e=>{let t=_t__default.default.useRef(null),{ref:o,...r}=_t.useContext(Wr)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...e,...r},t),{isFocusVisible:i,isFocused:s,focusProps:l}=reactAria.useFocusRing(),{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:$e(a,l,p),isPressed:n,ref:M(t,o||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:e.isDisabled,isFocusVisible:i}}},Zr=(e,t)=>{let o=_t__default.default.useRef(null),{ref:r,...a}=_t.useContext(Wr)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...e,...a},t,o);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:l,focusProps:p}=reactAria.useFocusRing(),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:$e(n,p,c),isPressed:i,ref:M(o,r||null),isFocusVisible:s,isFocused:l,isHovered:u,uiStateOptions:{isHovered:u,isFocused:l,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:t.isSelected}}};var Jr=z({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsg"],[{variant:"secondary",isHovered:true},"oom8bsh"],[{variant:"tertiary",isHovered:true},"oom8bsi"],[{variant:"popover",isHovered:true},"oom8bsj"],[{variant:"ghost",isHovered:true},"oom8bsk"],[{variant:"success",isHovered:true},"oom8bsl"],[{variant:"warning",isHovered:true},"oom8bsm"],[{variant:"error",isHovered:true},"oom8bsn"],[{variant:"primary",isFocusVisible:true},"oom8bso"],[{variant:"tertiary",isFocusVisible:true},"oom8bsp"],[{variant:"success",isFocusVisible:true},"oom8bsq"],[{variant:"warning",isFocusVisible:true},"oom8bsr"],[{variant:"error",isFocusVisible:true},"oom8bss"]]}),mi=z({defaultClassName:"oom8bst _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61nf"],[{variant:"ghost",isHovered:true},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61nf"],[{variant:"secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"ghost",isDisabled:true},"_1yep5z61nd"],[{variant:"popover",isDisabled:true},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:true},"_1yep5z61nd"]]});var zv={sm:16,md:20,lg:24},K=_t__default.default.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,"data-block-class":c,...u},m)=>{let{buttonProps:d,isPressed:b,ref:y,isFocusVisible:f,isFocused:g,isHovered:v,uiStateOptions:_}=Xr({...u,elementType:i,isDisabled:s}),h=zv[l],x=utils.filterTruthyValues({"data-block-id":p,"data-block-class":c,"data-disabled":s,"data-focused":g,"data-focus-visible":f,"data-hovered":v,"data-pressed":b});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,x),className:utils.classNames(Jr({isDisabled:!!s,isFocusVisible:f,isHovered:v,variant:n,size:l}),"BaselineUI-ActionButton",typeof o=="function"?o(_):o),style:typeof t=="function"?t(_):t,ref:M(m,y),children:[!!r&&jsxRuntime.jsx(r,{size:h,className:mi({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),e,!!a&&jsxRuntime.jsx(a,{size:h,className:mi({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Gr})]})});K.displayName="ActionButton";var Qr=_t__default.default.forwardRef(({className:e,style:t,node:o,"data-block-id":r,"data-block-class":a,...n},i)=>{let s=_t__default.default.useRef(null);_t__default.default.useEffect(()=>{let c=s.current;return c?.append(o),()=>{c?.contains(o)&&o.remove();}},[o]);let{pressProps:l,isPressed:p}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...l,className:e,style:t,"data-block-id":r,"data-block-class":a,"data-pressed":p,"data-testid":"dom-node-renderer",ref:M(i,s)})});Qr.displayName="DomNodeRenderer";var Up="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",qp="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Kp="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",Gp=z({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),Wp=z({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g9 _1yep5z6lp _1yep5z6la",variantClassNames:{active:{true:"_14uvjigc _1yep5z612i _1yep5z6181 _1yep5z617t"},isDisabled:{true:"_14uvjigd _1yep5z612m"},isReadOnly:{true:"_1yep5z614p _1yep5z614q _1yep5z614r"},isFocusVisible:{true:"_14uvjigf _1yep5z612i _1yep5z617d"},isHovered:{true:"_14uvjigg _1yep5z612i"}},defaultVariants:{},compoundVariants:[]}),Yp="_14uvjiga _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",Xp="_14uvjig4 _1yep5z6g3 _1yep5z6ln",Zp=z({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var Ut=z({defaultClassName:"nrh1ehr _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasError:{true:"_1yep5z610h"},labelPosition:{start:"nrh1ehu",top:"nrh1ehv"}},defaultVariants:{},compoundVariants:[]}),ea=z({defaultClassName:"nrh1ehi _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"nrh1ehj"},labelPosition:{top:"nrh1ehk",start:"nrh1ehl"}},defaultVariants:{},compoundVariants:[]}),qt=z({defaultClassName:"nrh1ehm _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"nrh1ehn",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),Kt="_1yep5z6ev _1yep5z6dy",et=z({defaultClassName:"nrh1eh3 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"nrh1eh6"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),tt=z({defaultClassName:"nrh1eh0 _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Gt=z({defaultClassName:"nrh1eh7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"nrh1eh8",error:"_1yep5z612q",warning:"nrh1eha"},isHovered:{true:"nrh1ehb"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"nrh1ehd"},variant:{primary:"nrh1ehe",ghost:"nrh1ehf"},isReadOnly:{true:"_1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61pa _1yep5z61u5 _1yep5z61u7"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_1yep5z61pm"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"nrh1ehh"],[{isReadOnly:true,isFocused:true},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"],[{isHovered:true,isFocused:false,isDisabled:false,isReadOnly:false},"_1yep5z61tg"]]});function Ce({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsxRuntime.jsx("div",{...o,className:Ut({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:e}):a?jsxRuntime.jsx("div",{...t,className:Ut({hasError:true,labelPosition:n}),"aria-disabled":i,children:a}):r?jsxRuntime.jsx("div",{className:Ut({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:r}):null}var Jp=z({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),Qp="_1lnwne0";var ec=z({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),tc=z({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});function ta({placement:e}){let t=_t.useMemo(()=>{switch(e){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:4}}},[e]);return {transitionProps:{initial:{opacity:0,transform:`translate3d(${t.x}px, ${t.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var gi=_t__default.default.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:t.isOpen},t),u=a==="center"?"bottom":a,{transitionProps:m}=ta({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(o,m),ref:p,"data-placement":u,children:[l?jsxRuntime.jsx("div",{className:ec({placement:u,variant:n}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:tc({variant:n,size:i}),children:e})]})});gi.displayName="TooltipContent";var vi=_t__default.default.createContext(void 0),oa=({portalContainer:e,children:t})=>jsxRuntime.jsx(vi.Provider,{value:e,children:t});oa.displayName="PortalContainerProvider";function nc({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let i=_t__default.default.useRef(null);_t.useEffect(()=>{if(o){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{t(s);},{root:n?.current,rootMargin:a,threshold:r});},[t,o,n,a,r]),_t.useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function ic({ref:e,onResize:t,isDisabled:o}){let r=_t__default.default.useRef(null),[a,n]=_t__default.default.useState();return _t__default.default.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([i])=>{n(i.contentRect),t?.(i);});},[t,o,n]),_t__default.default.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function Wt({src:e,alt:t}){let[o,r]=_t.useState(false),[a,n]=_t.useState(false),[i,s]=_t.useState(false),l=()=>{r(true),s(false);},p=()=>{n(true),s(false);};return _t.useEffect(()=>{if(!e)return;s(true);let c=new Image;return c.src=e,c.addEventListener("load",l),c.addEventListener("error",p),()=>{c.removeEventListener("load",l),c.removeEventListener("error",p);}},[e]),{isLoaded:o,hasError:a,isLoading:i,imgProps:{src:o?e:void 0,alt:t}}}function aa(){let e=_t.useRef(true);return _t.useEffect(()=>{e.current=false;},[]),e.current}var sc="SET_STATE",na="UNDO",ia="REDO",Av=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case sc:return {past:[...o,r],present:t.data,future:[]};case na:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case ia:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},lc=(e={},{isDisabled:t,onAction:o})=>{let r=aa(),[a,n]=_t.useReducer(Av,{past:[],present:e,future:[]}),{past:i,present:s,future:l}=a,p=y=>{n({type:sc,data:y});},c=_t.useRef(),u=()=>{c.current=na,n({type:na});},m=()=>{c.current=ia,n({type:ia});},d=!!i?.length,b=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===na||c.current===ia)&&(o?.(s,c.current),c.current=void 0);},[s],[o,r]),{state:s,push:t?()=>{}:p,undo:t?()=>{}:u,redo:t?()=>{}:m,pastStates:i,futureStates:l,canUndo:d,canRedo:b}};var zi=_t__default.default.createContext({messages:{},shouldLogMissingMessages:true,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),dc=({children:e,messages:t={},shouldLogMissingMessages:o=true,...r})=>{let a=_t.useRef(new Set),[n,i]=_t.useState(r.locale||"");_t.useEffect(()=>{a.current.clear();},[n,r.locale]);let s=_t__default.default.useMemo(()=>({messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:a,setLang:i}),[t,o,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(zi.Provider,{value:s,children:e})})};dc.displayName="I18nProvider";function A(e){let{messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:r,setLang:a}=_t.useContext(zi);_t.useEffect(()=>{!e&&Uv__default.default(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.");},[e,t]);let n=_t.useMemo(()=>e?utils.cleanKeyFromGlobImport(e):t,[e,t]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();_t.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=_t.useCallback(c=>{o&&!r.current.has(c)&&(console.log(`BUI \u{1F30D}: Translation not found for key: \`${c}\` for locale: \`${s.locale}\`. The default message, i.e. \`${c}\`, will be used instead.`),r.current.add(c));},[r,s.locale,o]),p=_t.useCallback((c,u)=>{if(typeof c=="object")try{return i(c.id,u)}catch{return l(c.id),c.defaultMessage||c.id}else try{return i(c,u)}catch{return l(c),c}},[i,l]);return _t.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var W=e=>e;function fD(e,t,o){let r=_t__default.default.useRef(null);return _t__default.default.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect();}},[e,t,o]),r.current}function bc(e,t){let[o,r]=_t.useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.log(n),t}});return [o,n=>{try{let i=n instanceof Function?n(o):n;r(i),window.localStorage.setItem(e,JSON.stringify(i));}catch(i){console.log(i);}}]}function hD({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=_t__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let i=ne(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&o?.(i);},onPressStart(){let n=ne(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),_t.useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let p=ne(n).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let s=he(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,t,r]);}var sa=_t__default.default.createContext({breakpoints:tokens.breakpoints}),e_=({children:e,breakpoints:t=tokens.breakpoints})=>{let o=_t.useMemo(()=>({breakpoints:t}),[t]);return jsxRuntime.jsx(sa.Provider,{value:o,children:e})};function Ee(e){let{breakpoints:t=tokens.breakpoints}=_t.useContext(sa),o=_t.useMemo(()=>({tablet:`screen and (min-width: ${t.tablet}px)`,desktop:`screen and (min-width: ${t.desktop}px)`}),[t]),r=_t.useCallback(()=>{let i=ne(e??typeof window>"u"?void 0:e),s=i.matchMedia(o.tablet);return i.matchMedia(o.desktop).matches?"desktop":s.matches?"tablet":"mobile"},[e,o]),[a,n]=_t__default.default.useState(r);return Me(()=>{let i=ne(e),s=()=>{n(r());};return i.addEventListener("resize",s),s(),()=>{i.removeEventListener("resize",s);}},[e,r]),a}var p_=typeof window<"u";function xi(){return p_?document.body:null}var He=_t__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0}),c_=({children:e,container:t=xi(),portalContainer:o,shouldContainOverlays:r="auto"})=>{let a=Ee(),[n,i]=_t.useState(),[s,l]=_t.useState(),p=_t.useMemo(()=>t===xi()||r==="never"?false:r==="always"?true:a!=="mobile",[r,a,t]),[c,u]=_t.useState(false),m=aa();_t.useEffect(()=>{if(!t||m)return;let y=ne(t).getComputedStyle(t),f=!!y.position&&y.position!=="static";u(f);let g=t.getBoundingClientRect();(g.width===0||g.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function v({width:h,height:x}){t&&(i(h),l(x));}let _=new ResizeObserver(h=>{for(let x of h)v({width:x.contentRect.width,height:x.contentRect.height});});return p&&(v({width:g.width,height:g.height}),_.observe(t)),t.dataset.shouldContainOverlays=p.toString(),()=>{_.disconnect(),t.dataset.shouldContainOverlays="";}},[t,m,p]);let d=_t.useMemo(()=>({container:t,portalContainer:o||t||xi(),shouldContainOverlays:p,isContainerPositioned:c,containerWidth:n,containerHeight:s}),[t,o,p,c,n,s]);return jsxRuntime.jsx(He.Provider,{value:d,children:jsxRuntime.jsx(oa,{portalContainer:d.portalContainer||void 0,children:e})})};function ye(e){let t=_t.useContext(vi),{portalContainer:o}=_t.useContext(He);return e||t||o||void 0}var hc=z({defaultClassName:"z9nup83",variantClassNames:{size:{xs:"z9nup84",sm:"z9nup85"}},defaultVariants:{},compoundVariants:[]}),xc="z9nup80",Yt="z9nup82",Cc="z9nup86";function Ci(e=typeof window>"u"?void 0:window){let[t,o]=_t.useState("light"),[r,a]=_t.useState(false),[n,i]=_t.useState(false),[s,l]=_t.useState(false);return _t.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-color-scheme: dark)"),c=u=>{o(u.matches?"dark":"light");};return p.matches&&o("dark"),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),_t.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-contrast: more)"),c=u=>{a(u.matches);};return a(p.matches),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),_t.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-reduced-motion: reduce)"),c=u=>{i(u.matches);};return p.matches&&i(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),_t.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=u=>{l(u.matches);};return p.matches&&l(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),{colorScheme:t,highContrast:r,reducedMotion:n,transparency:s}}var Xt=_t.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var Pc="var(--hj25q10)";var ca={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},da=_t__default.default.forwardRef(({theme:e="system",children:t,setTheme:o,onThemeChange:r,className:a,style:n,UNSAFE_domProps:i,"data-block-id":s,"data-block-class":l,reducedMotion:p="user",shouldHandleVirtualKeyboard:c=true},u)=>{let{direction:m}=reactAria.useLocale(),{colorScheme:d,reducedMotion:b,highContrast:y,transparency:f}=Ci(),{name:g,theme:v}=_t.useMemo(()=>{switch(e){case "system":return d==="light"?ca.LIGHT:ca.DARK;case "light":return ca.LIGHT;case "dark":return ca.DARK;default:return {name:"custom",theme:e}}},[d,e]),_=Ee(),h={"data-theme":g,"data-block-id":s,"data-block-class":l,"data-reduced-motion":p==="user"?b:p==="always","data-high-contrast":y,"data-transparency":f,"data-device":_},x=_t.useMemo(()=>({theme:v,setTheme:I=>{o?.(I),r?.(I);},shouldHandleVirtualKeyboard:c}),[v,o,r,c]);return _t.useEffect(()=>{o&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[o]),jsxRuntime.jsx(Xt.Provider,{value:x,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,h),className:utils.classNames(xc,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,v),...dynamic.assignInlineVars({[Pc]:m==="rtl"?"-1":"1"}),...n},ref:u,children:t})})})});da.displayName="ThemeProvider";function CM(){react.MotionGlobalConfig.skipAnimations=true;}function PM(){react.MotionGlobalConfig.skipAnimations=false;}var Pe=_t__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l,shouldHandleVirtualKeyboard:p}=_t.useContext(Xt),c=ye();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??c,children:jsxRuntime.jsx(da,{ref:s,theme:l,shouldHandleVirtualKeyboard:p,style:t,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:o})})});Pe.displayName="Portal";var J=_t__default.default.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:i=true,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":u,...m},d)=>{let b=_t__default.default.useRef(null),y=_t__default.default.useRef(null),f=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:o,closeDelay:r,isDisabled:f}),{triggerProps:v,tooltipProps:_}=reactAria.useTooltipTrigger({...m,isDisabled:f,delay:o,closeDelay:r},g,b),h=ye(s),{overlayProps:x,arrowProps:I,placement:C,updatePosition:w}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:b,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:y,placement:t,isOpen:g.isOpen,...m});nc({ref:y,threshold:1,onIntersect:w,isDisabled:!g.isOpen}),ic({ref:b,onResize:w,isDisabled:!g.isOpen});let P=_t__default.default.isValidElement(e)?jsxRuntime.jsx(focus.FocusableProvider,{...v,ref:b,children:e}):typeof e=="function"?e({triggerProps:v,triggerRef:b}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[P,g.isOpen?jsxRuntime.jsx(Pe,{disableFocusManagement:true,portalContainer:h,className:l,style:p,"data-block-id":c,"data-block-class":u,children:jsxRuntime.jsx(gi,{ref:M(d,y),state:g,arrowProps:I,overlayProps:x,placement:C,tooltipProps:_,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});J.displayName="Tooltip";var ma=_t__default.default.forwardRef(({elementType:e,children:t,...o},r)=>{let a=oe(r),{focusableProps:n}=focus.useFocusable(o,a);return jsxRuntime.jsx(e??"div",{ref:a,...n,children:t})});ma.displayName="Focusable";var j_={xxs:8,xs:12,sm:16,md:20,lg:24},L=_t__default.default.forwardRef((e,t)=>{let o=oe(t),{tooltipProps:r}=Yr(e,o);return r?jsxRuntime.jsx(J,{...r,children:jsxRuntime.jsx(wi,{...e,ref:o})}):jsxRuntime.jsx(wi,{...e,ref:o})});L.displayName="ActionIconButton";var wi=_t__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{let p=s["aria-label"],c=s["aria-labelledby"];_t.useEffect(()=>{!p&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[p,c]);let{buttonProps:u,isPressed:m,ref:d,isFocusVisible:b,isFocused:y,isHovered:f,uiStateOptions:g}=Xr({...s,elementType:i}),v=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":y,"data-focus-visible":b,"data-disabled":s.isDisabled,"data-hovered":f,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,v),className:utils.classNames($p({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:b,isHovered:f}),"BaselineUI-ActionIconButton",typeof e=="function"?e(g):e),ref:M(l,d),style:typeof t=="function"?t(g):t,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(o,{role:"presentation",size:j_[r]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Gr})]})});wi.displayName="ActionIconButtonCore";var Ve=_t__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=true,...n},i)=>{let s=_t__default.default.useRef(null),{locale:l}=reactAria.useLocale(),p=reactStately.useNumberFieldState({...n,locale:l}),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:d,isFocused:b}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:f,inputProps:g,incrementButtonProps:v,groupProps:_,descriptionProps:h,errorMessageProps:x}=reactAria.useNumberField(n,p,s),I=_t.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),C=Ce({description:n.description,errorMessageProps:x,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:o,isDisabled:n.isDisabled}),w=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":u,"data-focused":b,"data-focus-visible":d,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:t,className:utils.classNames(tt({labelPosition:o}),"BaselineUI-NumberInput",e),...w,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:et({labelPosition:o,hasMessage:!!C}),children:[jsxRuntime.jsx("label",{...y,className:Kt,children:n.label}),o==="start"&&C]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Yt]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,c),className:utils.classNames(Gt({isHovered:u,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:b,variant:r}),{[Qp]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",ea({isDisabled:n.isDisabled,labelPosition:o}))}),I?jsxRuntime.jsx(I,{className:qt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Jp({isHoveredOrFocused:u||b,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...f,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(q,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&C]})]})});Ve.displayName="NumberInput";var Qt=_t__default.default.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,"data-block-id":b,"data-block-class":y,defaultValue:f,isReadOnly:g,label:v,id:_,includeNumberInput:h},x)=>{let I=_t__default.default.useRef(null),C={onChange:o===void 0?void 0:R=>{o(R[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:r===void 0?void 0:R=>{r(R[0]);},value:p===void 0?void 0:[p],defaultValue:f===void 0?void 0:[f],"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,id:_,label:v},w=reactAria.useNumberFormatter(a),P=reactStately.useSliderState({...C,numberFormatter:w}),{trackProps:S,groupProps:k,labelProps:T}=reactAria.useSlider(C,P,I),$=jsxRuntime.jsx(Ve,{variant:"ghost",showStepper:false,"aria-label":c,"aria-labelledby":T.id,value:P.getThumbValue(0),formatOptions:a,onChange:R=>{P.setThumbValue(0,R);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...k,style:t,"data-block-id":b,"data-block-class":y,className:utils.classNames(Up,"BaselineUI-Slider",e),children:[v?jsxRuntime.jsxs("div",{className:Kp,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(Gp({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:v}),h?$:null]}):null,jsxRuntime.jsxs("div",{className:qp,children:[jsxRuntime.jsx("div",{...S,className:utils.classNames(Xp,"BaselineUI-Slider-Track"),ref:M(I,x),"data-testid":"track",children:jsxRuntime.jsx(sz,{state:P,trackRef:I,isDisabled:n,isReadOnly:g})}),h&&!v?$:null]})]})});Qt.displayName="Slider";function sz({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=_t__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:t,inputRef:a},e),{focusProps:l,isFocused:p,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:u,isHovered:m}=reactAria.useHover({isDisabled:o}),d=utils.filterTruthyValues({"data-disabled":o,"data-readonly":r,"data-hovered":m,"data-focus-visible":c,"data-dragging":s,"data-focused":p});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(Zp({isDisabled:o,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,u,d),className:utils.classNames(Yp,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Wp({isDisabled:o,isFocusVisible:c,active:s,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,l)})})]})]})}var Mc=z({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var te=_t__default.default.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Mc({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));te.displayName="Text";var Nc=z({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),Ec="siobe24";var ya=_t__default.default.forwardRef(({className:e,style:t,children:o,background:r="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:l,contentStyle:p,contentClassName:c,...u},m)=>{let{formatMessage:d}=A(),b=_t__default.default.useRef(null),{dialogProps:y,titleProps:f}=reactAria.useDialog(u,b),{focusProps:g,isFocusVisible:v}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(y,g),className:utils.classNames(Nc({background:r,isFocusVisible:v}),"BaselineUI-Drawer",e),"data-block-id":i,"data-block-class":s,style:t,ref:M(m,b),children:[jsxRuntime.jsxs(D,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Ec,children:[jsxRuntime.jsx(te,{type:"title",size:"sm",...f,className:Cc,children:a}),jsxRuntime.jsxs(D,{children:[n?jsxRuntime.jsx(L,{...n,variant:"secondary"}):null,jsxRuntime.jsx(L,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":d(bz.close)})]})]}),jsxRuntime.jsx(q,{variant:r==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:o})]})});ya.displayName="Drawer";var bz=W({close:{id:"close",defaultMessage:"Close"}});var Ac="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",Fc="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",jc=z({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),Oc=z({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var xt=_t__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Le=({children:e,...t})=>{let o=reactStately.useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},o),n=_t.useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsxRuntime.jsx(xt.Provider,{value:n,children:e})};Le.displayName="Modal";function Gc(e,t,o){let[r,a]=_t.useState({}),n=_t.useRef(false),[i,s]=_t.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c,containerHeight:u,portalContainer:m}=_t.useContext(He);_t.useEffect(()=>{if(!e)return;let f=ne(e),g=f.visualViewport,v=()=>{let _=o?g?.height??f.innerHeight:f.innerHeight,h=f.innerHeight-_;if(n.current=o?h>60:false,n.current){let x=utils.getActiveElement(e);x&&utils.isInputThatOpensKeyboard(x)&&x.scrollIntoView({behavior:"smooth",block:"center"});}if(t)a({maxHeight:(_||0)*.8,bottom:h});else {let x=`${_||0}px`,I=p?`min(${x}, ${u?u+"px":x})`:x;a({maxHeight:`calc(${I} - (2 * ${tokens.themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:n.current?`calc(env(safe-area-inset-top) + ${tokens.themeVars.spacing.xl})`:void 0});}};return v(),g?.addEventListener("resize",v),f.addEventListener("resize",v),()=>{g?.removeEventListener("resize",v),f.removeEventListener("resize",v);}},[e,t,p,o,u]);let d=m&&!l?.contains(m);_t.useEffect(()=>{if(!l||!p||c&&!d)return;let f=()=>{l&&s(utils.getAbsoluteBounds(l));};f();let g=new ResizeObserver(()=>{f();});return g.observe(l),()=>{g.disconnect();}},[l,p,c,d]);let b=_t.useMemo(()=>({...r,overflow:"auto",position:"relative"}),[r]),y=_t.useMemo(()=>{if(!t&&n.current)return {alignItems:"flex-start"};if(p&&(!c||d)){let f=i||(l?utils.getAbsoluteBounds(l):{x:0,y:0,height:0,width:0});return {position:"absolute",left:f.x,top:f.y,height:f.height,width:f.width}}return {}},[t,n.current,l,c,p,i,d]);return {dialogStyle:b,containerStyle:y}}var Ti=_t__default.default.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),Si=_t__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Ue=({children:e,className:t,style:o,isDismissable:r=true,isKeyboardDismissDisabled:a=false,portalContainer:n,disableAnimation:i,enableDrawer:s=false,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c,shouldAnimateOnMount:u=true})=>{let{state:m}=_t__default.default.useContext(xt),[d,b]=_t__default.default.useState(true),y=_t__default.default.useRef(null),[f,g]=_t__default.default.useState(null),{shouldHandleVirtualKeyboard:v}=_t.useContext(Xt),{shouldContainOverlays:_,container:h,portalContainer:x}=_t.useContext(He),I=Ee(),C=typeof s=="boolean"&&s||s==="auto"&&I==="mobile";utils.invariant(m,"ModalContent must be a child of Modal");let w=_t__default.default.useRef(null),P=typeof r=="function"?r(C):r,S=typeof a=="function"?a(C):a,{modalProps:k,underlayProps:T}=reactAria.useModalOverlay({isDismissable:d&&P,shouldCloseOnInteractOutside:H=>{let Q=n||x;return !h?.contains(H)&&_&&!Q?.contains(H)?false:c?.(H)??true},isKeyboardDismissDisabled:S},m,w),{dialogStyle:$,containerStyle:R}=Gc(f,C,v),N=_t.useMemo(()=>({isDrawer:C,closeDrawer:m.close,dialogStyle:$,dialogRef:y,setDialogElement:g,isWithinModal:true}),[C,m.close,$,y,g]),E=_t.useMemo(()=>({setIsPopoverSafelyClosed:b}),[b]),F={duration:.3,type:"tween",ease:"easeOut"},B={type:"spring",duration:.3},j={open:{opacity:1,transform:C?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:C?"translateY(0%)":"scale(1)"}:{opacity:0,transform:C?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:u&&!i,children:m.isOpen?jsxRuntime.jsx(Ti.Provider,{value:N,children:jsxRuntime.jsx(Si.Provider,{value:E,children:jsxRuntime.jsxs(Pe,{className:utils.classNames(jc({enableDrawer:C,shouldContainOverlays:_}),t),"data-block-id":l,"data-block-class":p,style:{...o,...R},portalContainer:n,children:[jsxRuntime.jsx(react.motion.div,{...T,variants:{open:{opacity:1},closed:{opacity:i?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:F,className:utils.classNames(Oc({shouldContainOverlays:_}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:w,"data-drawer":C,className:utils.classNames(C?Ac:Fc,"BaselineUI-Modal-Content"),variants:j,transition:C?F:B,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(m):e})]})})}):null})};var Zc="var(--cjv3et0)",Jc=z({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z6137",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});var Mi=_t__default.default.createContext({titleProps:{}}),ke=_t__default.default.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:l,...p},c)=>{let u=_t__default.default.useRef(null),m=_t__default.default.useRef(null),{containerWidth:d,shouldContainOverlays:b}=_t.useContext(He),{isDrawer:y,closeDrawer:f,dialogStyle:g,setDialogElement:v,isWithinModal:_}=_t.useContext(Ti),[h,x]=_t__default.default.useState(""),{focusProps:I,isFocusVisible:C}=reactAria.useFocusRing();_t.useLayoutEffect(()=>{let k=m.current?.getRootNode(),T=p["aria-label"]||"";p["aria-labelledby"]&&(T=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),x(T);},[p]);let{dialogProps:w,titleProps:P}=reactAria.useDialog(p,u),S=_t.useMemo(()=>({titleProps:P}),[P]);return y&&r?jsxRuntime.jsx(ya,{title:h,onCloseRequest:f,className:t,style:g,...p,"data-drawer":true,"data-block-id":i,"data-block-class":s,ref:M(m,c,k=>{v(k);}),background:l,children:e}):jsxRuntime.jsx(Mi.Provider,{value:S,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(w,I),"data-block-id":i,"data-block-class":s,"data-focus-visible":C,"data-overlay-type":_?"modal":"popover",ref:M(u,c,k=>{v(k);}),style:{...g,...o,...dynamic.assignInlineVars({[Zc]:d&&b?`${d}px`:"100vw"})},className:utils.classNames(Jc({size:y?"content":a,variant:n,isDrawer:y,isFocusVisible:C,overlayType:_?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});ke.displayName="Dialog";var ed=_t__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=_t.useContext(Mi);return _t__default.default.isValidElement(e)?_t__default.default.cloneElement(e,{...a,ref:r,className:utils.classNames(e.props.className,t),style:{...e.props.style,...o}}):jsxRuntime.jsx("h3",{...a,ref:r,className:t,style:o,children:e})});ed.displayName="DialogTitle";var{color:eo}=tokens.themeVars,od=({placement:e,arrowProps:t})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(Sp({placement:e}),"BaselineUI-PopoverContent-Arrow"),...t,style:{...t.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.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:eo.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:eo.background.primary.subtle,stroke:eo.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(Dp({placement:e}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,style:{...t.style,position:"absolute"},children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:eo.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:eo.background.primary.subtle,stroke:eo.background.primary.subtle})]})]});var Bi=_t__default.default.forwardRef(({portalClassName:e,portalStyle:t,className:o,style:r,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=false,offset:p=2,portalContainer:c,contentContainerClassName:u,contentContainerStyle:m,setPopoverStyle:d,"data-block-id":b,"data-block-class":y,popoverContainerRef:f,...g},v)=>{let _=oe(f),h=ye(c),x=l?8:0,{underlayProps:I,popoverProps:C,placement:w,arrowProps:P}=reactAria.usePopover({...g,offset:p+x,popoverRef:_,containerPadding:g.containerPadding||0},a);delete C.style?.position;let S=w==="center"?"bottom":w,k=_t.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:T}=ta({placement:w}),$=_t.useMemo(()=>({...C.style,...dynamic.assignInlineVars({[Bp]:`${g.triggerRef?.current?.offsetWidth}px`}),...ci(r,k)}),[C.style,g.triggerRef,r,k]);return _t.useEffect(()=>{d({left:C.style?.left,top:C.style?.top,zIndex:C.style?.zIndex});},[C.style?.left,C.style?.top,C.style?.zIndex,d]),jsxRuntime.jsxs(Pe,{portalContainer:h,style:t,className:e,ref:v,"data-block-id":b,"data-block-class":y,children:[!g.isNonModal&&jsxRuntime.jsx("div",{...I,className:utils.classNames(Lp,Hr(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...$e(C,T),style:$,ref:_,className:utils.classNames(Mp,Hr(o,k),"BaselineUI-Popover-ContentContainer"),"data-placement":["top","bottom","left","right"].filter(R=>w?.includes(R)),children:[l?jsxRuntime.jsx(od,{placement:S,arrowProps:P}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:ci(m,k),className:utils.classNames(Np,Hr(u,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]})});Bi.displayName="PopoverContentCore";var sd=({children:e,isOpen:t,popoverContentRef:o,portalContainer:r=document.body,style:a})=>{let[n,i]=_t.useState(false),[s,l]=_t.useState(null),p=_t.useRef(null),{setIsPopoverSafelyClosed:c}=_t.useContext(Si);_t.useEffect(()=>{t?(i(true),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(false);},300);},[t]),_t.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let u=o.current;return _t.useEffect(()=>{u&&l(u.getBoundingClientRect());},[u]),_t.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?Yz__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),r):null,e]})};var ie=_t__default.default.forwardRef(({state:e,overlayProps:t,portalContainer:o,...r},a)=>{let{state:n,overlayTriggerAria:{overlayProps:i},triggerRef:s}=_t.useContext(Oo),[l,p]=_t.useState({}),c=ye(o),u=e||n,m=r.triggerRef||s,d=t||i;utils.invariant(m);let b=_t__default.default.useRef(null);return jsxRuntime.jsx(sd,{isOpen:u?.isOpen??false,popoverContentRef:b,portalContainer:c,style:l,children:u?.isOpen?jsxRuntime.jsx(Bi,{ref:a,...r,triggerRef:m,overlayProps:d,state:u,portalContainer:c,setPopoverStyle:p,popoverContainerRef:b}):null})});ie.displayName="PopoverContent";var to=({icon:e,tooltip:t,label:o,...r})=>{let{tooltipProps:a}=xe({label:o,tooltip:t,offset:9});return jsxRuntime.jsx(J,{...a,children:({triggerProps:n,triggerRef:i})=>jsxRuntime.jsx(D,{display:"inline-flex",...n,ref:i,children:jsxRuntime.jsx(e,{...r})})})};var ud=_t__default.default.forwardRef(({className:e,style:t,onChange:o,"data-block-id":r,icon:a,formatValue:n=m=>m,tooltip:i=true,iconTooltip:s=true,popoverContentProps:l,isDisabled:p,...c},u)=>{let m=oe(u),[d,b]=utils$1.useControlledState(c.value,c.defaultValue||0,o),[y,f]=_t__default.default.useState(false),{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:x=>{(x.key==="Enter"||x.key==="Escape")&&f(false);}}),{tooltipProps:v}=xe({label:c["aria-label"],tooltip:i}),_=n(d||0),h=v?.isDisabled||c["aria-label"]?`${c["aria-label"]}, ${_}`:_.toString();return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:m,children:[a?jsxRuntime.jsx(to,{icon:a,label:c["aria-label"],tooltip:s,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(je,{type:"dialog",isOpen:y,onOpenChange:f,children:[jsxRuntime.jsx(Oe,{children:jsxRuntime.jsx(J,{...v,children:jsxRuntime.jsx(K,{label:_,variant:"popover","aria-label":h,isDisabled:p,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(ie,{placement:"bottom start",...l,children:jsxRuntime.jsx(ke,{size:"content","aria-label":h,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:true,children:jsxRuntime.jsx(D,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...g,children:jsxRuntime.jsx(Qt,{...c,onChange:x=>{b(x),o?.(x);},value:d})})})})})]})]})});ud.displayName="IconSlider";var md=z({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwac"]]}),fd=z({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),yd="bpklwad",bd=z({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),gd="bpklwa6",vd=z({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var xd=_t__default.default.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p=_t__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:u,isPressed:m}=reactAria.useSwitch({...s,children:t},c,p),{isFocusVisible:d,focusProps:b}=reactAria.useFocusRing(),{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:s.isDisabled}),g=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":d,"data-disabled":s.isDisabled,"data-focus-visible":d,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":f,"data-pressed":m}),v=jsxRuntime.jsx("div",{className:utils.classNames(md({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(fd({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(g,y),className:utils.classNames(bd({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:l,children:[t?jsxRuntime.jsx("span",{className:utils.classNames(yd,"BaselineUI-Switch-Label"),children:t}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,b),ref:p})}),r?jsxRuntime.jsxs("div",{className:vd({labelPosition:o}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",gd),children:c.isSelected?r.on:r.off}),v]}):v]})});xd.displayName="Switch";var Cd="_19n40yy9",Pd=z({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 xh={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Id=_t__default.default.forwardRef(({className:e,size:t="md",variant:o="primary","data-block-id":r,"data-block-class":a,style:n,...i},s)=>{let l=_t__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:u}=reactAria.useSearchField({...i,"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:m,isFocusVisible:d,isFocused:b}=reactAria.useFocusRing({within:true,isTextInput:true}),y=xh[t],f=t==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-focused":b,"data-disabled":i.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(Pd({size:t,isFocused:b,variant:o,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),style:n,ref:s,children:[jsxRuntime.jsx(y,{size:t==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:Cd,ref:l}),p.value!==""&&jsxRuntime.jsx(L,{icon:f,...u,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});Id.displayName="SearchInput";var Rd="xyd2ss1 _1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6ru _1yep5z6rv _1yep5z6rw _1yep5z6u6 _1yep5z6u7 _1yep5z6u8 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z6t0 _1yep5z6t1 _1yep5z6t2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z617v _1yep5z617u _1yep5z6143 _1yep5z617y _1yep5z6124",$d="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var ji=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(q,{elementType:"li"}),jsxRuntime.jsxs("li",{...r,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:$d,children:[...e.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(va,{item:i,state:o,showSelectedIcon:t},i.key)))})]})]})};ji.displayName="MenuSection";var va=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=_t__default.default.useRef(null),n=reactAria.useMenuItem({key:e.key},t,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Fo,{item:e,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:o}),...n,isFocusVisible:i,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:t,showSelectedIcon:r})};va.displayName="MenuItem";var Sd=z({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),rt="_1mdhlqvb cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",Dd=z({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup82 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"},isReadOnly:{true:"_1mdhlqv7"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6h5"],[{isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6la"]]}),Md="_1yep5z66x _1yep5z66y _1yep5z66z",Nd="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Hi=_t__default.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=reactStately.useTreeState(r),i=_t__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(r,n,i),{keyboardProps:l}=reactAria.useKeyboard({onKeyDown:o});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,l),className:utils.classNames(rt,Rd,e),ref:M(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(ji,{section:p,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):jsxRuntime.jsx(va,{item:p,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Hi.displayName="MenuContent";var _a=_t__default.default.forwardRef(({defaultOpen:e,onOpenChange:t,isOpen:o,isDisabled:r,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:u,triggerLabel:m,renderTrigger:d=({buttonProps:g,ref:v})=>jsxRuntime.jsx(K,{...g,variant:"popover",ref:v}),portalContainer:b,...y},f)=>{let g=_t__default.default.useRef(null),v=ye(b),_=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:t}),{menuTriggerProps:h,menuProps:x}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},_,g),I=ce(),C=_t.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:_.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(_.isOpen):m}),[h,r,_.isOpen,m]);return _t.useEffect(()=>{!m&&!d&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[d,m]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d({buttonProps:C,ref:g}),_.isOpen?jsxRuntime.jsx(ie,{triggerRef:g,state:_,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:u||2,className:"BaselineUI-Menu-Popover",portalContainer:v,children:jsxRuntime.jsx(Hi,{className:a,...x,...y,ref:f,autoFocus:_.focusStrategy||"first",children:I})}):null]})});_a.displayName="Menu";var za=z({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:true,isDisabled:false},"_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 Ad=_t__default.default.forwardRef(({className:e,style:t,children:o,variant:r="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":l,title:p,role:c,...u},m)=>{let d=_t__default.default.useRef(null),{linkProps:b,isPressed:y}=reactAria.useLink({...u,elementType:u.onPress?"span":n},d),{isFocusVisible:f,isFocused:g,focusProps:v}=reactAria.useFocusRing(),{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:u.isDisabled}),x=n,I=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":u.isDisabled,"data-focused":g,"data-pressed":y,"data-focus-visible":f,"data-hovered":h,role:c,title:p});return jsxRuntime.jsx(x,{...reactAria.mergeProps(b,v,_,I),className:utils.classNames(za({variant:r,isFocusVisible:f,isHovered:h,isDisabled:u.isDisabled,size:a,isActive:y,type:i}),"BaselineUI-Link",e),ref:M(d,m),style:t,children:o})});Ad.displayName="Link";function Fd({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let l=reactAria.useId(),p=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":n?void 0:l,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let d=[...m.target.files||[]];t?.(d),o?.(m);},name:r,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:c}}}async function qi({items:e}){let t=e.filter(o=>o.kind==="file").map(async o=>(utils.invariant(o.kind==="file"),o.getFile()));return await Promise.all(t)}var jd=z({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:true},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:true},"_180w5ed6"],[{variant:"default",disabled:true},"_180w5ed7"],[{variant:"inline",disabled:true},"_180w5ed8"]]}),Od=z({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Hd=z({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Vd=z({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Gd=_t__default.default.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},i)=>{let s=_t__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Fd(n),{dropProps:u}=reactAria.useDrop({ref:s,onDrop:async({items:f})=>{let g=f.filter(_=>_.kind==="file").map(async _=>(utils.invariant(_.kind==="file"),_.getFile())),v=await Promise.all(g);n.onValueChange?.(v);}}),{focusProps:m,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(u,b,c),className:utils.classNames(jd({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:y||d}),e),ref:M(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,l)})}),r?jsxRuntime.jsx(r,{size:20,className:Hd({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Vd({disabled:n.isDisabled,hovered:y}),children:t}),o?jsxRuntime.jsx("div",{...p,className:Od({disabled:n.isDisabled}),children:o}):null]})]})});Gd.displayName="FileUpload";var Wd="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",Yd="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",Xd=z({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),Zd="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",Jd="_12vfhl43 _1yep5z6g3 _1yep5z6ln",Qd="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",eu="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",tu=z({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var ou=_t__default.default.forwardRef(({className:e,style:t,variant:o="active",showValue:r,description:a,errorMessage:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=reactAria.useId(),{labelProps:u,progressBarProps:m}=reactAria.useProgressBar({...l,"aria-describedby":a?c:l["aria-describedby"]}),{minValue:d=0,maxValue:b=100,value:y=0,label:f}=l,g=(y-d)/(b-d),v=`${Math.round(g*100)}%`,_=jsxRuntime.jsx("output",{className:tu({hasLabel:!!f}),children:m["aria-valuetext"]}),h=o==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:t,className:utils.classNames(Wd,"BaselineUI-ProgressBar",e),"data-block-id":i,"data-block-class":s,ref:p,children:[f?jsxRuntime.jsxs("div",{className:Yd,children:[jsxRuntime.jsx("label",{...u,className:Zd,children:f}),r?_:null]}):null,jsxRuntime.jsxs("div",{className:eu,children:[jsxRuntime.jsxs("div",{className:Qd,children:[jsxRuntime.jsx("div",{className:Jd,children:jsxRuntime.jsx("div",{style:{width:v},className:Xd({variant:o})})}),!f&&r?_:null]}),h?jsxRuntime.jsx("div",{className:Ut({hasError:o==="error"}),id:c,children:h}):null]})]})});ou.displayName="ProgressBar";function ao({isReadOnly:e,validationState:t}){return e?_16.ReadOnlyIcon:t==="error"?_16.ErrorCircleFilledIcon:t==="warning"?_16.WarningFilledIcon:null}var Pt=_t__default.default.forwardRef(({labelPosition:e="top",className:t,style:o,labelProps:r,isDisabled:a=false,isReadOnly:n=false,label:i,message:s,"data-block-id":l,validationState:p="valid",isFocused:c=false,variant:u="primary",children:m,fieldProps:d,wrapperRef:b,wrapperClassName:y,isInvalid:f},g)=>{let{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:a}),h=ao({isReadOnly:n,validationState:p});return jsxRuntime.jsxs("div",{className:utils.classNames(tt({labelPosition:e}),t),"data-block-id":l,style:o,ref:g,children:[i||e==="start"&&s?jsxRuntime.jsxs("div",{className:et({labelPosition:e,hasMessage:!!s}),children:[jsxRuntime.jsx(D,{...r,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:i}),e==="start"&&s]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Yt]:a}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(d,v),className:utils.classNames(Gt({validationState:f?"error":p,isHovered:_,isFocused:c,variant:u,isReadOnly:n,isDisabled:a}),y),ref:b,children:[m,h?jsxRuntime.jsx(h,{className:qt({validationState:p,isReadOnly:n}),size:16}):null]}),e==="top"&&s]})]})});Pt.displayName="SharedInput";var at=_t__default.default.forwardRef(({className:e,validationState:t,variant:o="primary",labelPosition:r="top",inputStyle:a,inputClassName:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=_t__default.default.useRef(null),{inputProps:u,labelProps:m,descriptionProps:d,errorMessageProps:b,validationErrors:y}=reactAria.useTextField({...l,validationState:t?t==="error"?"invalid":"valid":void 0},c),f=l.errorMessage||y.join(" "),g=Ce({...l,errorMessage:f,descriptionProps:d,errorMessageProps:b,labelPosition:r});f&&(t="error");let{isFocused:v,focusProps:_,isFocusVisible:h}=reactAria.useFocusRing(),x=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":t,"data-focused":v,"data-focus-visible":h});return jsxRuntime.jsx(Pt,{variant:o,labelProps:m,isFocused:v,message:g,ref:p,labelPosition:r,className:utils.classNames("BaselineUI-TextInput",e),validationState:t,"data-block-id":i,"data-block-class":s,...l,children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,_,x),className:utils.classNames(ea({isDisabled:l.isDisabled,labelPosition:r}),"BaselineUI-TextInput-Input",n),style:a,ref:c})})});at.displayName="TextInput";var no=({value:e,...t})=>{let o=reactAria.useNumberFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};no.displayName="NumberFormat";var su="_1yep5z6iv _1yep5z6iw _1yep5z6ix",lu=z({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),pu=z({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61n6"],[{isSelected:true,isDisabled:true},"_1yep5z61n6"],[{isSelected:false,isDisabled:true},"_1yep5z61n4"]]}),cu=z({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var mu=_t__default.default.forwardRef(({className:e,count:t,style:o,size:r="md",icon:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p={isRequired:false},c=a||(r==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let u=_t__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:d,isPressed:b,isDisabled:y,isReadOnly:f,isSelected:g}=reactAria.useSwitch({...s,...p},m,u),{focusProps:v,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:x,isHovered:I}=reactAria.useHover({}),C=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":_,"data-focus-visible":h,"data-disabled":y,"data-hovered":I,"data-pressed":b,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:o,className:utils.classNames(su,"BaselineUI-Reaction",e),...C,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,...v,ref:u})}),jsxRuntime.jsxs("div",{...x,className:lu({isSelected:g,isFocusVisible:h,isHovered:I,isReadOnly:f,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:cu({isDisabled:y,isReadOnly:f}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:pu({isSelected:m.isSelected,isDisabled:y,isReadOnly:f,size:r}),children:jsxRuntime.jsx(no,{value:t})})]})]})});mu.displayName="Reaction";var fu="_1azy5686",yu="_1azy5685",bu="var(--_1azy5680)",gu="_1azy5688",vu="_1azy5689",_u="_1azy5681 z9nup81",zu="_1azy5682";var hu="_1azy5687";var Ax={sm:16,md:20},Fx={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},so=_t__default.default.forwardRef(({className:e,style:t,size:o="md",variant:r="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:l,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:true}),c=Ax[o],u=c/2-2,m=2*u*Math.PI,d=Fx[o][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(_u,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[bu]:`${m}px`}),...t},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:zu,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:fu,cx:c/2,cy:c/2,r:u}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:yu,cx:c/2,cy:c/2,r:u})]}),r==="success"&&jsxRuntime.jsx(d,{className:hu,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:gu,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:vu,children:i.label}):null]})});so.displayName="ProgressSpinner";var Ca=z({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),xu=z({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var qx={sm:16,md:20,lg:24},Pa=_t__default.default.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let l=reactStately.useToggleState(i),{buttonProps:p,isPressed:c,ref:u,isFocusVisible:m,isFocused:d,isHovered:b,uiStateOptions:y}=Zr(i,l),f=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":d,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":b,"data-pressed":c,"data-selected":l.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,f),className:utils.classNames(Ca({isHovered:b,isFocusVisible:m,isSelected:l.isSelected,size:r,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:M(u,s),children:[o?jsxRuntime.jsx(o,{size:qx[r],className:xu({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Pa.displayName="ToggleButton";var ka=z({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),wa=z({defaultClassName:"_16vugd00 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),Ia=z({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6f8 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lp _1yep5z6la",variantClassNames:{isIndeterminate:{true:"_1yep5z6181 _1yep5z612c"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z613a"},isDisabled:{true:"_16vugd08 _1yep5z613e"},isReadOnly:{true:"_16vugd09 _1yep5z6118 _1yep5z6184 _1yep5z6182 _1yep5z613e"},hasError:{true:"_1yep5z612q _1yep5z6184 _1yep5z6182"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61of"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isSelected:true,isDisabled:true},"_1yep5z61op _1yep5z61nf"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61u4"]]});var ku=_t__default.default.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=_t__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:u,focusProps:m}=reactAria.useFocusRing(),{inputProps:d,isPressed:b,isDisabled:y,isSelected:f,isReadOnly:g}=reactAria.useCheckbox({...i,children:o},p,l),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:y}),h=utils.filterTruthyValues({"data-disabled":y,"data-readonly":g,"data-hovered":_,"data-selected":f,"data-pressed":b,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":u,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(wa({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,m),ref:l})}),jsxRuntime.jsxs("div",{...v,className:Ia({isSelected:f&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:g,hasError:i.isInvalid,isHovered:_}),children:[f&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),o?jsxRuntime.jsx("span",{className:ka({isDisabled:y}),children:o}):null]})});ku.displayName="Checkbox";var wu={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 Iu=z({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),Ru="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",$u=z({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),Tu=z({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var z0={style:"decimal"},h0={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Eu=_t__default.default.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",hideActions:p,isDisabled:c,...u},m)=>{let{locale:d}=reactAria.useLocale(),b=A(wu),y={...u,formatOptions:z0,minValue:o,incrementAriaLabel:a||b.formatMessage("nextPage"),decrementAriaLabel:n||b.formatMessage("prevPage"),defaultValue:r,"aria-label":i||b.formatMessage("goToPage")},f=_t__default.default.useRef(null),g=reactStately.useNumberFieldState({...y,locale:d}),{inputProps:v,decrementButtonProps:_,incrementButtonProps:h,groupProps:x}=reactAria.useNumberField({...y,onKeyDown:F=>{F.key==="Enter"&&f.current?.blur(),u.onKeyDown?.(F);},isDisabled:c},g,f),{hoverProps:I,isHovered:C}=reactAria.useHover({}),{focusProps:w,isFocused:P,isFocusVisible:S}=reactAria.useFocusRing(),k=l==="floating",[T,$]=h0[s],R=utils.filterTruthyValues({"data-focus-visible":S,"data-focused":P,"data-hovered":C,"data-block-id":u["data-block-id"],"data-block-class":u["data-block-class"]}),E=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(x,I,R),className:utils.classNames($u({size:s,variant:l}),"BaselineUI-Pagination",e),style:t,ref:m,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(L,{icon:T,..._,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:E,isDisabled:c||_.isDisabled}),l==="floating"&&jsxRuntime.jsx(q,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:Iu({isFocused:P,variant:l,size:s}),"aria-label":b.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,w),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",Ru),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Tu({isDisabled:c}),children:["/ ",jsxRuntime.jsx(no,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(q,{orientation:"vertical"}),jsxRuntime.jsx(L,{icon:$,...h,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:E,isDisabled:c||h.isDisabled})]})]})});Eu.displayName="Pagination";var Lu=({date:e,...t})=>{let o=reactAria.useDateFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};Lu.displayName="DateFormat";var tr=z({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Ra=z({defaultClassName:"_1f789qj0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1f789qj1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"_1f789qj7 _1yep5z6127"},allowsRemoving:{true:"_1f789qj8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"_1f789qja"},isHovered:{true:"_1f789qjb"},size:{md:"_1f789qjc",sm:"_1f789qjd"}},defaultVariants:{},compoundVariants:[[{allowsSelection:true,isHovered:true,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:true,isHovered:true,variant:"red"},"_1yep5z61np"],[{allowsSelection:true,isHovered:true,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:true,isHovered:true,variant:"green"},"_1yep5z61nt"],[{allowsSelection:true,isHovered:true,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:true,isSelected:true,isHovered:true},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:true},"_1yep5z61oa"],[{allowsRemoving:true,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:true,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),Bu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",Au="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Fu=z({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:true,variant:"neutral"},"_1f789qj11"],[{isHovered:true,variant:"red"},"_1f789qj12"],[{isHovered:true,variant:"blue"},"_1f789qj13"],[{isHovered:true,variant:"green"},"_1f789qj14"],[{isHovered:true,variant:"high-contrast"},"_1f789qj15"]]}),$a=z({defaultClassName:"_1f789qje",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});var Vu=({item:e,state:t,variant:o="neutral",size:r="md"})=>{let a=_t__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:true}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:u,isSelected:m,allowsSelection:d}=reactAria.useTag({item:e},t,a),b=_t__default.default.useRef(null),{buttonProps:y}=reactAria.useButton(p,b),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:u}),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:u}),h=e.value?.icon,x=e.value?.data?.variant??o,I=r==="md"?_12.XIcon:_8.XIcon,C=r==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,v),ref:a,className:utils.classNames(Ra({isFocusVisible:i,variant:x,isDisabled:u,allowsRemoving:c,isSelected:m,allowsSelection:d,isHovered:_,size:r}),$a({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Bu,children:[m?jsxRuntime.jsx(C,{size:r==="md"?16:12,className:utils.classNames(tr({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&h?jsxRuntime.jsx(h,{size:r==="md"?16:12,className:utils.classNames(tr({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(D,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:e.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(y,f),className:Fu({variant:x,isHovered:g}),children:jsxRuntime.jsx(I,{size:r==="md"?12:8})}):null]})})};var Ku=_t__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,size:n="md",...i},s)=>{let l=_t.useMemo(()=>a.map(d=>({...d,data:{variant:d.variant}})),[a]),p=ce(),c=_t__default.default.useRef(null),u=reactStately.useListState({...i,items:l,children:p}),{gridProps:m}=reactAria.useTagGroup(i,u,c);return jsxRuntime.jsx("div",{...m,className:utils.classNames(Au,"BaselineUI-TagGroup",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(s,c),children:[...u.collection].map(d=>jsxRuntime.jsx(Vu,{state:u,item:d,variant:i.variant,size:n},d.key))})});Ku.displayName="TagGroup";var Gu="_1yep5z6ln",Wu=z({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Yu=z({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Xu="_1kvz17de",Zu="_1yep5z6ev _1yep5z6dy",Ju=z({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),Qu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",em=z({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Xi=_t__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=_t.useContext(nt),{disabledKeys:n}=_t.useContext(nt),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=he(s.target),p=l?Br(l):Br(),c=[...a?.keys()||[]].findIndex(y=>a?.get(y)?.current===p),u=a?.get(c||0),m=a?.size||0,d=y=>{let f=a.get(y-1<0?m-1:y-1);n?.has(f?.current?.getAttribute("data-key")||"")?d(y-1):f?.current?.focus();},b=y=>{let f=a.get((y+1)%m);n?.has(f?.current?.getAttribute("data-key")||"")?b(y+1):f?.current?.focus();};if(u)switch(s.key){case "Home":{s.preventDefault(),b(-1);break}case "End":{s.preventDefault(),d(m);break}case "ArrowDown":{s.preventDefault(),b(c);break}case "ArrowUp":{s.preventDefault(),d(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:o,className:utils.classNames(Gu,t),ref:r,children:_t__default.default.Children.map(e,(s,l)=>_t__default.default.cloneElement(s,{index:l}))})});Xi.displayName="AccordionBase";var nt=_t__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),rm=_t__default.default.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,c]=_t__default.default.useState(o),u=_t__default.default.useRef(new Map).current,[m,d]=_t__default.default.useState(a);_t.useEffect(()=>{d(a);},[a]),_t.useEffect(()=>{n?.(p);},[p,n]);let b=_t.useMemo(()=>({expandedKeys:r||p,setExpandedKeys:r?()=>{}:c,disabledKeys:t,headers:u,expansionMode:m}),[r,p,t,u,m]);return jsxRuntime.jsx(nt.Provider,{value:b,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Xi,{className:i,style:s,ref:l,children:e})})})});rm.displayName="Accordion";var Ji=_t__default.default.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=_t__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:u,expansionMode:m,disabledKeys:d,headers:b}=_t.useContext(nt),y=d?.has(r),f=reactAria.useFocusManager();utils.invariant(f);let{focusNext:g,focusPrevious:v}=f,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:R=>{R.key==="ArrowRight"?g({wrap:true}):R.key==="ArrowLeft"?v({wrap:true}):R.continuePropagation();},isDisabled:y});_t.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),b?.set(n,p);},[n,b]);let h=()=>{u(R=>{let N=new Set(R);return N.has(r)?N.delete(r):(m==="single"&&N.clear(),N.add(r)),N});},{buttonProps:x}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":o,onPress:h,isDisabled:y},p),{pressProps:I}=reactAria.usePress({onPress:h,isDisabled:y}),{focusProps:C,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:P,isHovered:S}=reactAria.useHover({isDisabled:y}),{focusProps:k,isFocusVisible:T}=reactAria.useFocusRing({within:true}),$=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,I,P,k),className:Ju({isFocusVisible:w,isHovered:S,isDisabled:y}),ref:l,children:[jsxRuntime.jsxs("div",{className:em({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Yu({isExpanded:$}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(x,C),id:a,"data-key":r,className:Qu,ref:p,children:e})]}),t?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Wu({showActionsOnTriggerOnly:s,isTriggered:T||S}),children:t.map((R,N)=>jsxRuntime.jsx(L,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:y,...R},N))}):null,i?jsxRuntime.jsx("div",{className:Zu,children:i}):null]})});Ji.displayName="AccordionHeader";var cm=_t__default.default.forwardRef(({title:e,actions:t,children:o,value:r,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let c=reactAria.useId(),u=reactAria.useId(),{expandedKeys:m}=_t.useContext(nt),d=m.has(r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ji,{value:r,actions:t,id:u,title:e,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:d?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":u,id:c,className:Xu,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsxRuntime.jsx("div",{style:i,className:s,children:o})}):null})]})});cm.displayName="AccordionItem";var nr=_t__default.default.forwardRef(({variant:e,isOpen:t,selectedIcon:o,validationState:r="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":l,"data-block-class":p,...c},u)=>{let m=_t__default.default.useRef(null),{buttonProps:d,isPressed:b}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:g,isFocused:v,isFocusVisible:_}=reactAria.useFocusRing(),h=ao({isReadOnly:c.isReadOnly,validationState:r});c.isReadOnly&&(d.disabled=false);let x=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":v,"data-focus-visible":_,"data-hovered":f,"data-pressed":b,"data-open":t,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(d,y,g,x),ref:M(u,m),className:utils.classNames(Dd({isFocused:_,isDisabled:!!c.isDisabled,isOpen:t,isHovered:f,variant:e,isReadOnly:!!c.isReadOnly}),Gt({variant:e,isHovered:f,isFocused:_,validationState:r,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[jsxRuntime.jsxs("span",{className:Nd,children:[o?jsxRuntime.jsx(o,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":true,className:utils.classNames(qt({validationState:r,isReadOnly:!!c.isReadOnly}),Md),children:jsxRuntime.jsx(h,{size:16})}):null]}),jsxRuntime.jsx("span",{"aria-hidden":true,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Sd({isOpen:t})})})]})});nr.displayName="SelectButton";var Ta=_t__default.default.createContext({state:null,popoverAnchorRef:null}),ts=_t__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:l="bottom start",triggerClassName:p,triggerStyle:c,state:u,renderTrigger:m=({buttonProps:y,selectedValue:f,valueProps:g,isOpen:v,ref:_})=>{let h=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(nr,{...y,className:p,style:c,isOpen:v,isReadOnly:d.isReadOnly,ref:_,variant:r,validationState:d.validationState,selectedIcon:h||void 0,label:f?"label"in f&&f?.label:d.placeholder,valueProps:g})},...d},b)=>{let{popoverAnchorRef:y}=_t.useContext(Ta),f=_t__default.default.useRef(null),g=ye(d.portalContainer),{labelProps:v,triggerProps:_,valueProps:h,menuProps:x,descriptionProps:I,errorMessageProps:C}=reactAria.useSelect({...d,validationState:d.validationState==="error"?"invalid":"valid"},u,f),w=Ce({...d,descriptionProps:I,errorMessageProps:C,labelPosition:o}),P=u.selectedItem?.value??null;return jsxRuntime.jsxs(ht.Provider,{value:u,children:[jsxRuntime.jsxs("div",{style:t,className:utils.classNames(tt({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":n,ref:b,children:[d.label||w?jsxRuntime.jsxs("div",{className:et({labelPosition:o,hasMessage:!!w}),children:[d.label?jsxRuntime.jsx("div",{...v,className:utils.classNames(Kt,"BaselineUI-Select-Label"),children:d.label}):null,o==="start"&&w]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:u,triggerRef:f,isDisabled:d.isDisabled,label:d.label,name:d.name}),m({buttonProps:_,selectedValue:P,valueProps:h,isOpen:u.isOpen,ref:f}),o==="top"&&w]}),u?jsxRuntime.jsx(ie,{placement:l,portalContainer:g,offset:2,state:u,triggerRef:y||f,style:t,className:"BaselineUI-Select-Popover",...d,children:jsxRuntime.jsx(fe,{...x,label:d.label,items:d.items,showSelectedIcon:d.showSelectedIcon,className:rt,optionStyle:i,optionClassName:s})}):null]})});ts.displayName="SelectCore";var ym=_t__default.default.forwardRef((e,t)=>{let o=ce(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:o});return jsxRuntime.jsx(ts,{...e,ref:t,state:r})});ym.displayName="SelectStandalone";var st=_t__default.default.forwardRef((e,t)=>{let{state:o}=_t.useContext(Ta);return _t.useEffect(()=>{utils.invariant(o||e.items,"Select: A `state` that can be passed via context or `items` are required.");},[e.items,o]),o?jsxRuntime.jsx(ts,{state:o,...e,ref:t}):jsxRuntime.jsx(ym,{...e,ref:t})});st.displayName="Select";var gm=_t__default.default.forwardRef(({className:e,style:t,variant:o,"data-block-id":r,icon:a,tooltip:n=true,iconTooltip:i=true,...s},l)=>{let p=_t__default.default.useRef(null),{tooltipProps:c}=xe({label:s["aria-label"],tooltip:n}),u=_t.useCallback(({buttonProps:m,selectedValue:d,valueProps:b,isOpen:y,ref:f})=>{let g=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(J,{...c,children:jsxRuntime.jsx(nr,{...m,isOpen:y,isReadOnly:s.isReadOnly,ref:f,variant:o,validationState:s.validationState,selectedIcon:g||void 0,label:d?"label"in d&&d?.label:s.placeholder,valueProps:b})})},[s,c,o]);return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:M(l,p),children:[a?jsxRuntime.jsx(to,{icon:a,label:s["aria-label"],tooltip:i,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(st,{...s,renderTrigger:u})]})});gm.displayName="IconSelect";var vm="_1017q4c5",_m=z({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),zm="_1017q4c4";var xC={sm:_16.AvatarIcon,md:_24.AvatarIcon},uo=_t__default.default.forwardRef(({className:e,style:t,size:o="md",icon:r=xC[o],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":c,"data-block-class":u},m)=>{let{imgProps:d}=Wt({src:n,alt:a}),b=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(_m({size:o,isDisabled:s}),"BaselineUI-Avatar",e),"data-disabled":s,ref:m,style:t,"aria-disabled":s,"data-block-id":c,"data-block-class":u,children:[n?jsxRuntime.jsx("img",{...d,loading:p,className:zm}):null,!i&&!n&&jsxRuntime.jsx(r,{size:o==="sm"?16:24}),i&&!n?o==="sm"?b[0]:b:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:vm}):null]})});uo.displayName="Avatar";var hm="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",xm=z({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61n0"],[{variant:"primary",isSelected:true},"_1yep5z61o7"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61n7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:true},"_1yep5z61o8"]]}),Cm=z({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Pm="_1x62fhbl",rs=z({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61nb"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61ng"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61nd"]]}),km="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",wm=z({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Im=({state:e,...t})=>{let o=_t__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(t,e,o),{selectedItem:a}=e,{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing();if(!a?.value)return null;let{className:s,style:l,"data-block-id":p}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(r,n),ref:o,className:utils.classNames({[km]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var is=_t__default.default.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...l},p)=>{let c=reactStately.useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),u=_t__default.default.useRef(null),{tabListProps:m}=reactAria.useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},c,u);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",e),style:t,ref:p,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(wm({variant:a}),r),style:o,children:[jsxRuntime.jsx("div",{...m,className:Cm({variant:a}),ref:u,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx($m,{item:d,state:c,onRemove:i,variant:a},d.key)))}),n?.map((d,b)=>jsxRuntime.jsx("div",{className:hm,children:jsxRuntime.jsx(L,{...d,variant:"secondary",size:"sm",className:utils.classNames(Pm,d.className)})},b))]}),jsxRuntime.jsx(Im,{state:c},c.selectedItem?.key)]})});is.displayName="TabsBase";var $m=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,i=_t__default.default.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=reactAria.useTab({key:a},o,i),{hoverProps:c,isHovered:u}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:b,titleClassName:y}=n,{focusProps:f,isFocusVisible:g,isFocused:v}=reactAria.useFocusRing(),{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:x=>{x.key==="Backspace"&&t?t(a):x.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":v,"data-hovered":u,"data-focus-visible":g});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,s,c,f,h),className:utils.classNames(xm({isHovered:u,isSelected:l,isFocusVisible:g,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",y),style:b,ref:i,children:[d?jsxRuntime.jsx(d,{size:20,className:rs({isHovered:u,isSelected:l,isDisabled:p,variant:r})}):null,m,t?jsxRuntime.jsx(L,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{t(a);},excludeFromTabOrder:true,UNSAFE_NON_INTERACTIVE:true,style:{display:"inline-flex",opacity:l||v||u?1:0},className:rs({isHovered:u,isSelected:l,isDisabled:p,variant:r})}):null]})};$m.displayName="TabButton";var Sm=_t__default.default.forwardRef(function({children:t,...o},r){let a=_t.useMemo(()=>_t__default.default.Children.map(t,n=>!n||!_t__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[t]);return jsxRuntime.jsx(is,{...o,ref:r,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});Sm.displayName="Tabs";var Dm=({children:e,title:t,value:o})=>(utils.invariant(o,"TabItem requires a value prop"),utils.invariant(t,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);Dm.displayName="TabItem";var Mm={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 Nm=z({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),Em=z({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),Lm=z({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Bm=z({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),Am=z({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Fm=z({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),jm=z({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var QC={error:{sm:_16.ErrorAltCircleFilledIcon,md:_20.ErrorAltCircleFilledIcon},info:{sm:_16.InfoCircleFilledIcon,md:_20.InfoCircleFilledIcon},success:{sm:_16.CheckmarkCircleFilledIcon,md:_20.CheckCircleFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Na=_t__default.default.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm","data-block-id":c,"data-block-class":u,elementProps:m},d)=>{let b=A(Mm),y=o&&jsxRuntime.jsx(K,{variant:s==="compact"?"tertiary":"ghost",label:o,onPress:r}),f=QC[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(Em({variant:n,arrangement:s,hasButton:!!o||!!l,hasCloseButton:!!l}),"BaselineUI-InlineAlert",e),"data-block-id":c,"data-block-class":u,style:a,role:"alert",ref:d,...m?.root,children:[jsxRuntime.jsxs("div",{className:jm({arrangement:s}),children:[jsxRuntime.jsx(f,{className:Am({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:Nm({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:Fm({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:Lm({size:p}),...m?.description,children:t})]}),s==="compact"&&y]}),jsxRuntime.jsxs("div",{className:Bm({arrangement:s}),children:[s!=="compact"&&y,l?jsxRuntime.jsx(L,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":b.formatMessage("close"),...m?.close}):null]})]})});Na.displayName="InlineAlert";var lt={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:t}=_t__default.default.useContext(xt);return jsxRuntime.jsx(interactions.PressResponder,{...t,children:e})};Ea.displayName="ModalTrigger";var iP=({children:e})=>{let{state:t}=_t__default.default.useContext(xt);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{t?.close();},children:e})};var Om="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",Hm="_1dbkl5e",Vm=z({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Um="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",qm=z({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),La="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",Km="_1dbkl5f z9nup86",Ba="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",Gm="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",Wm="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",Aa=z({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),ps="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",Ym=z({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61pb"]]}),Xm=z({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),Fa="_1dbkl5g",lr="_1dbkl5u",ja="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",cs="_1dbkl5x",Zm="_1dbkl5w",ds="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Oa=z({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),us="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Jm=z({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:true,isDisabled:true},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:true,isSelected:false},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),Qm="_1yep5z6f6",ef="_1344e9q9 _1yep5z6fl";var pt=_t__default.default.forwardRef(({color:e,isFocusVisible:t,isSelected:o,isInteractive:r,isDisabled:a,style:n,className:i,id:s,tooltip:l,isIndeterminate:p,indeterminateIcon:c=_16.HelpIcon,"data-block-id":u,"data-block-class":m,...d},b)=>{let y=e&&e!==Be&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:f}=A(),g=!y,{colorSwatchProps:v}=color$1.useColorSwatch({color:g?"#000000":e}),{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:a||!r}),x=utils.filterTruthyValues({"data-focus-visible":t,"data-selected":o,"data-hovered":h,"data-block-id":u,"data-block-class":m,"data-disabled":a,"data-interactive":r,"data-indeterminate":p}),I=g?f(tf.none):v["aria-label"],C=d["aria-label"]??I,{tooltipProps:w}=xe({tooltip:l,label:C}),P=jsxRuntime.jsx("div",{...reactAria.mergeProps(_,x,g?{}:v),style:n,"aria-label":g?f(tf.none):v["aria-label"],role:"img",className:utils.classNames(Jm({removeBlendMode:g,isFocusVisible:t,isDisabled:!!a,isSelected:!!o,isHovered:h}),"BaselineUI-ColorSwatch",i),ref:b,id:s,...d,children:jsxRuntime.jsxs(D,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:y&&!p?of(y,4):void 0,children:[g&&!p?jsxRuntime.jsx("div",{className:ef}):null,p&&c?jsxRuntime.jsx(c,{role:"presentation",size:16,className:Qm,"aria-hidden":"true"}):null]})});return w&&!a?jsxRuntime.jsx(J,{...w,children:jsxRuntime.jsx(ma,{children:P})}):P});pt.displayName="ColorSwatch";var tf=W({none:{id:"none",defaultMessage:"None"}});var af=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],dr=color.parseColor("#000000").toFormat("hsla"),ue="hsla",cr="hexa";function wt(e){return typeof e=="string"?color.parseColor(e).toFormat(ue):e?e.toFormat(ue):null}function nf(e,t){return e?.getChannelValue("alpha")?t?.toString(cr)===e.toString(cr):!t?.getChannelValue("alpha")}function sf(e,t,o){return t?.label?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var Be="NONE";function lf(e,t){let o=t?.map(a=>({id:color.parseColor(a.color).toString(cr),label:a.label}))||[],r={id:Be,label:e};return [...o,r]}var Ha=(e,{optionProps:t,isFocusVisible:o,isSelected:r},a)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...t,ref:a,className:Gm,children:jsxRuntime.jsx(pt,{color:e.value.id,isFocusVisible:o,isSelected:r,"aria-label":e.value.label,isInteractive:true})})),of=(e,t=4)=>{let o=e.getChannelValue("alpha")===0,r=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:o?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${t}px ${t}px`}};var cf=({value:e,...t})=>{let o=_t__default.default.useRef(null),r=_t__default.default.useRef(null),a=_t__default.default.useRef(null),n=color.useColorAreaState({...t,value:e}),{colorAreaProps:i,xInputProps:s,yInputProps:l,thumbProps:p}=color$1.useColorArea({...t,value:e,inputXRef:o,inputYRef:r,containerRef:a},n);_t.useEffect(()=>{o.current?.focus();},[]);let{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Om,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(Oa({isFocusVisible:u}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:wt(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:o,...s,...c}),jsxRuntime.jsx("input",{ref:r,...l,...c})]})})};var mf=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=color.useColorFieldState({value:e,onChange:u=>{t(wt(u)?.toFormat(ue).withChannelValue("alpha",e.getChannelValue("alpha")??1)||dr);}}),n=_t__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=reactAria.useFocusRing({isTextInput:true}),{hoverProps:p,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(ps,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Ym({isFocused:l,isHovered:c,allowAlpha:o})}),o?jsxRuntime.jsx(yf,{color:e,setColor:t}):null]})},ff=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(ps,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:false,className:lr,onChange:n=>{t(r.withChannelValue("red",n).toFormat(ue));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:false,className:lr,onChange:n=>{t(r.withChannelValue("green",n).toFormat(ue));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:false,className:lr,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(ue));},step:1,minValue:0,maxValue:255}),o?jsxRuntime.jsx(yf,{color:e,setColor:t}):null]})},SP={style:"percent",maximumFractionDigits:0},yf=({color:e,setColor:t})=>{let{locale:o}=reactAria.useLocale(),r=_t.useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:SP,className:lr,showStepper:false,onChange:r,minValue:0,maxValue:1})};var bs=({channel:e,...t})=>{let{locale:o}=reactAria.useLocale(),r=color.useColorSliderState({...t,channel:e,locale:o}),a=_t__default.default.useRef(null),n=_t__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=color$1.useColorSlider({...t,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Ba,{[hc({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:us}),jsxRuntime.jsx("div",{className:Ba,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Oa({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:us,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Ba}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var Va=({color:e,setColor:t,allowAlpha:o,onChangeEnd:r})=>{let[a,n]=_t__default.default.useState("hex"),{formatMessage:i}=A(lt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(cf,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),jsxRuntime.jsxs("div",{className:ds,children:[jsxRuntime.jsx(bs,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),o?jsxRuntime.jsx(bs,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(ds,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(st,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:af,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(mf,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o}),a==="rgb"&&jsxRuntime.jsx(ff,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o})]})]})};var xf=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=A(lt),c=_t__default.default.useRef(null),u=Ee(c.current),[m,d]=bc(o,[]),b=_t__default.default.useRef(null),[y,f]=_t__default.default.useState(e),g=_t__default.default.useMemo(()=>m.map(C=>({id:C,label:color.parseColor(C).getColorName(l),description:C})),[m,l]),v=_t.useCallback(()=>{let C=i==="active"?e:y;if(m.includes(C.toString(ue))){b.current?.querySelector(`[data-key='${C.toString(ue)}']`)?.classList.add(cs);return}d([...m,C.toString(ue)]);},[m,e,d,y,i]);_t.useEffect(()=>{let C=b.current;function w(P){P.animationName===Zm&&P.target?.classList.remove(cs);}return C?.addEventListener("animationend",w),()=>{C?.removeEventListener("animationend",w);}},[]);let _=reactAria.useId(),h=jsxRuntime.jsx(L,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:i==="active"?v:void 0}),x=_t.useCallback(C=>jsxRuntime.jsxs(ke,{size:"content",className:Aa({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(Va,{color:y,setColor:f,allowAlpha:s}),jsxRuntime.jsx(q,{}),jsxRuntime.jsx(D,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(D,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(K,{label:p("cancel"),size:"sm",variant:"secondary",onPress:C}),jsxRuntime.jsx(K,{label:p("add"),variant:"primary",onPress:()=>{v(),C();},size:"sm"})]})})]}),[y,v,p,s]),I=_t.useCallback(C=>{utils.invariant(C instanceof Set,"Key must be a set");let w=[...C][0];w&&t(color.parseColor(w).toFormat(ue));},[t]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(q,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Wm,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:_,children:n}),jsxRuntime.jsxs(D,{display:"flex",children:[!!m.length&&m.includes(e.toString(ue))&&jsxRuntime.jsx(L,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(m.filter(C=>C!==e.toString(ue)));}}),i==="active"&&h,i==="lazy"&&(u==="mobile"?jsxRuntime.jsxs(Le,{children:[jsxRuntime.jsx(Ea,{children:h}),jsxRuntime.jsx(Ue,{style:{zIndex:1e5},children:({close:C})=>x(C)})]}):jsxRuntime.jsxs(je,{type:"dialog",children:[jsxRuntime.jsx(Oe,{children:h}),jsxRuntime.jsx(ie,{placement:"right top",className:Fa,offset:6,children:({close:C})=>x(C)})]}))]})]}),!!m.length&&jsxRuntime.jsx(fe,{items:g,layout:"grid","aria-labelledby":_,className:utils.classNames(La,ja,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ha,ref:b,autoFocus:false,selectionMode:"single",selectedKeys:[e.toString(ue)],onSelectionChange:I})]})};var _s=_t__default.default.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=A(lt),l=_t.useCallback(p=>{if(p instanceof Set&&p.size){let c=[...p][0],u=a.find(m=>m.id===c);utils.invariant(u,"Preset not found"),e(u.id===Be?null:color.parseColor(u.id).toFormat(ue)),n.close();}},[n,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(ja,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(fe,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:La,renderOption:Ha,selectionMode:"single",selectedKeys:[t?.toString(cr)||Be],onSelectionChange:l})})});_s.displayName="ColorPresetList";var mr=_t__default.default.forwardRef(({color:e,colorLabel:t,colorName:o,isIndeterminate:r,indeterminateIcon:a,...n},i)=>{let s=_t__default.default.useRef(null),{hoverProps:l,isHovered:p}=reactAria.useHover({isDisabled:n.isDisabled}),{buttonProps:c,isPressed:u}=reactAria.useButton(n,s),{isFocusVisible:m,focusProps:d}=reactAria.useFocusRing(),b=utils.filterTruthyValues({"data-block-id":n["data-block-id"],"data-focused":m,"data-focus-visible":m,"data-disabled":n.isDisabled,"data-hovered":p,"data-pressed":u}),y=Lr(),f=Lr();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(c,l,d,b),style:n.style,className:utils.classNames(Vm({isHovered:p,isFocusVisible:m||n.isOpen,isDisabled:n.isDisabled,labelPosition:n.labelPosition}),"BaselineUI-ColorInputButton",n.className),ref:M(i,s),id:y,"aria-labelledby":n["aria-labelledby"]||`${y} ${f}`,children:[jsxRuntime.jsx(pt,{color:e?.toString("hexa"),isIndeterminate:r,indeterminateIcon:a}),t?jsxRuntime.jsx("div",{className:Km,id:f,"aria-hidden":"true",children:o}):typeof o=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:o})]})});mr.displayName="ColorInputButton";var Ka=_t__default.default.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=_t__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(r,n),{isFocusVisible:c,focusProps:u}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":s,"data-pressed":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,u,m),ref:M(a,n),style:t,className:utils.classNames(Xm({isHovered:s||p||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton","BaselineUI-IconColorInput-Button",e),children:[jsxRuntime.jsx(o,{size:16}),jsxRuntime.jsx("div",{className:Hm,style:{backgroundColor:r.color||void 0}})]})});Ka.displayName="IconColorInputButton";function Df({colorLabel:e,color:t,presets:o,isIndeterminate:r}){let{formatMessage:a}=A(),{locale:n}=reactAria.useLocale(),i=_t.useMemo(()=>r?{id:"indeterminate",label:a(Sf.indeterminate)}:o.find(p=>p.id===Be?!t:t?nf(t,color.parseColor(p.id)):false),[o,t,r,a]),s=_t.useMemo(()=>{if(typeof e=="function")return e?.(t,{isIndeterminate:!!r});if(typeof e=="boolean")return e?sf(t,i,a(Sf.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,e,a,i,r]),l=_t.useMemo(()=>{if(i?.label)return i.label;t?.getColorName(n);},[t,n,i?.label]);return {colorName:s,humanReadableName:l}}var Sf=W({transparent:{defaultMessage:"Transparent",id:"transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"indeterminate"}});var yo=_t__default.default.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=true,presets:a,labelPosition:n="top",colorLabel:i=true,includePicker:s=true,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:u="baselinePickedColor",value:m,addColorButtonLabel:d,removeColorButtonLabel:b,customColorsLabel:y,renderTriggerButton:f=({isOpen:S,color:k,ref:T,colorName:$,triggerProps:R,labelId:N,isIndeterminate:E,indeterminateIcon:F})=>jsxRuntime.jsx(mr,{...reactAria.mergeProps(R,{...w.label?{"aria-labelledby":N}:{"aria-label":w["aria-label"]}}),ref:T,isOpen:S,isDisabled:w.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:$,isIndeterminate:E,indeterminateIcon:F}),pickerMode:g="active",offset:v=2,placement:_=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":x,isIndeterminate:I,indeterminateIcon:C,...w},P)=>{let S=_t__default.default.useRef(null),k=_t__default.default.useRef(null),T=reactStately.useOverlayTriggerState(w),{triggerProps:$,overlayProps:R}=reactAria.useOverlayTrigger({type:"listbox"},T,S),N=ye(w.portalContainer),[E,F]=utils$1.useControlledState(m===void 0?void 0:wt(m),wt(c),Y=>l?.(Y?.toFormat("rgba")||null)),{formatMessage:B}=A(lt),j=_t.useMemo(()=>lf(B(Ga.noColor),a),[a,B]),O=reactAria.useId(),{colorName:H}=Df({colorLabel:i,color:E,presets:j,isIndeterminate:I}),Q=_t.useMemo(()=>j.filter(Y=>o||Y.id!==Be),[j,o]),V=d||B(Ga.addColor),U=b||B(Ga.removeColor),re=y||B(Ga.customColors),pe=jsxRuntime.jsx(xf,{color:E||dr,setColor:Y=>{F(Y),p?.(Y?.toFormat("rgba")||null);},storePickedColorKey:u,addColorButtonLabel:V,removeColorButtonLabel:U,customColorsLabel:re,pickerMode:g,allowAlpha:r});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[Um]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,"data-block-class":x,style:t,ref:P,children:[w.label?jsxRuntime.jsx("label",{id:O,className:qm({labelPosition:n}),children:w.label}):null,f({isOpen:T.isOpen,color:E,ref:S,colorName:H,triggerProps:$,labelId:O,isIndeterminate:I,indeterminateIcon:C})]}),jsxRuntime.jsx(ie,{...w,portalContainer:N,placement:_,state:T,offset:v,className:utils.classNames(Fa,"BaselineUI-ColorInput-Popover"),triggerRef:S,overlayProps:R,children:jsxRuntime.jsxs(ke,{size:"content",className:Aa({includesCustomColorPicker:s}),ref:k,"aria-labelledby":O,"aria-label":w["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Va,{color:E||dr,setColor:F,allowAlpha:r,onChangeEnd:Y=>{p?.(Y?.toFormat("rgba")||null);}}),pe]}):null,!!Q.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(q,{}):null,jsxRuntime.jsx(_s,{autoFocus:s&&g==="active"?false:"first",state:T,triggerRef:S,presets:Q,color:E,setColor:Y=>{F(Y),p?.(Y?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?pe:null]})})]})});yo.displayName="ColorInput";var Ga=W({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var Lf=_t__default.default.forwardRef(({className:e,style:t,icon:o,variant:r="standard","data-block-id":a,tooltip:n=true,iconTooltip:i=true,...s},l)=>{let p=_t__default.default.useRef(null),{tooltipProps:c}=xe({label:s["aria-label"],tooltip:n}),u=_t.useCallback(({isOpen:m,color:d,ref:b,colorName:y,triggerProps:f,isIndeterminate:g,indeterminateIcon:v})=>jsxRuntime.jsx(J,{...c,children:r==="standard"?jsxRuntime.jsx(mr,{...f,"aria-label":s["aria-label"],ref:b,isOpen:m,isDisabled:s.isDisabled,color:d,colorLabel:false,colorName:y,isIndeterminate:g,indeterminateIcon:v}):jsxRuntime.jsx(Ka,{...f,isOpen:m,icon:_20.TextIcon,color:d?.toString("hexa"),ref:b,isDisabled:s.isDisabled,"aria-label":s["aria-label"],isIndeterminate:g,indeterminateIcon:v})}),[s,c,r]);return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:r==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",e),"data-block-id":a,style:t,ref:M(l,p),children:[r==="standard"&&o?jsxRuntime.jsx(to,{icon:o,label:s["aria-label"],tooltip:i,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(yo,{...s,colorLabel:false,renderTriggerButton:u})]})});Lf.displayName="IconColorInput";var Bf={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 Wa=z({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:true,hasLoadedImage:false},"_1yep5z61oh"],[{isHovered:true,hasLoadedImage:true},"mnnh5s9"],[{isInline:true,isDisabled:true},"_1yep5z61pb"],[{hasLoadedImage:true,includeCheckeredBackground:true},"_1yep5z61o9"]]}),Af="_1yep5z6d8",Ya=z({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Ff=z({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:true,isFocusVisible:true},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:false,isFocusVisible:true},"_1i0ytqaa"],[{isInline:true,isDisabled:true},"_1yep5z61oi"],[{isInline:false,isDisabled:true},"_1yep5z61ok"]]}),jf="_1i0ytqa0",Xa=z({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),Of=z({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function Hf({line:e,options:t}){let o=_t.useRef([]),r=_t.useMemo(()=>{let a=Math.ceil(e.length/bo),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!o.current[i])){let p=e.slice(i*bo-(i>0?1:0),i*bo+bo);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,u,m])=>({x:c,y:u,pressure:m})),t)),p.length>=(i>0?bo+1:bo)&&(o.current[i]=n);}return n},[e,t]);return [...o.current,r]}var bo=60*3;var D2={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:true},end:{taper:0,easing:e=>e,cap:true},simulatePressure:false},Uf=_t__default.default.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:a=true,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=false,isInline:u=true,isDisabled:m,placeholder:d,clearLabel:b,undoLabel:y,redoLabel:f,footerClassName:g,canvasRef:v,value:_,footerStyle:h,"data-block-id":x,"data-block-class":I,"aria-label":C="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...P},S)=>{let k=A(Bf),T=_t__default.default.useRef(null),[$,R]=_t__default.default.useState(_||l||[]),N=_t__default.default.useMemo(()=>({...D2,...P}),[P]),[E,F]=_t__default.default.useState(),B=reactAria.useId(),{labelProps:j,fieldProps:O}=reactAria.useLabel({...P,"aria-label":C,labelElementType:"span"}),{isFocusVisible:H,focusProps:Q}=reactAria.useFocusRing({within:true}),{hoverProps:V,isHovered:U}=reactAria.useHover({isDisabled:m}),{undo:re,redo:pe,canRedo:Y,canUndo:be,push:_e}=lc($,{onAction:Z=>{Z&&(R(Z),p?.(Z));},isDisabled:!c}),{keyboardProps:Re}=reactAria.useKeyboard({onKeyDown:Z=>{Z.key==="Backspace"?Ot():Z.key==="z"&&(Z.metaKey||Z.ctrlKey)&&(Z.shiftKey?Y&&pe():be&&re());}}),[ae,ge]=_t.useState(false),Eo=_t.useCallback(Z=>{let G=Z.currentTarget.getBoundingClientRect();F(G),Z.target.setPointerCapture(Z.pointerId);let de=[Z.clientX-G.x,Z.clientY-G.y,Z.pressure];R(ee=>[...ee,[de]]),ge(true);},[]),Ft=_t.useCallback(Z=>{if(Z.buttons!==1||!E)return;let de=Gf(Z.nativeEvent).map(ee=>[a?utils$1.clamp(ee.clientX-E.left,0,E.width):ee.clientX-E.left,a?utils$1.clamp(ee.clientY-E.top,0,E.height):ee.clientY-E.top,ee.pressure]);R(ee=>{let ze=[...ee];return ze[ee.length-1]=[...ze[ee.length-1],...de],ze});},[E,a]),jt=()=>{E&&(p?.($),_e($),ge(false));};_t.useEffect(()=>{s?.($);},[$,s]);let Ot=()=>{R([]),s?.([]),_e([]);};return jsxRuntime.jsxs("div",{ref:M(T,S),className:utils.classNames(jf,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":x,"data-block-class":I,children:[P.label||c?jsxRuntime.jsxs("div",{className:Of({isInline:u}),children:[P.label?jsxRuntime.jsx(te,{type:"label",size:"sm",...j,children:P.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!be||m,icon:_16.UndoIcon,onPress:re,"aria-label":y||k.formatMessage("undo")}),jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!Y||m,icon:_16.RedoIcon,onPress:pe,"aria-label":f||k.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(Q,Re,V,O),tabIndex:m?void 0:0,className:utils.classNames(Wa({isInline:u,isHovered:U}),Ff({isFocusVisible:H,isInline:u,isDisabled:!!m}),o),"aria-describedby":P["aria-describedby"]||B,style:r,ref:v,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:B,children:w})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Eo,onPointerMove:Ft,onPointerUp:jt,children:(_||$).map((Z,G,de)=>G<de.length-1||!ae?jsxRuntime.jsx(qf,{line:Z,options:N,strokeColor:i,strokeWidth:n},G):jsxRuntime.jsx(Kf,{line:Z,options:N,strokeColor:i,strokeWidth:n},G))})]}),d||b?jsxRuntime.jsx("div",{style:h,className:utils.classNames(Xa({isInline:u,isDisabled:m}),g),children:($.length||!d)&&b?jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:b,isDisabled:m,onPress:Ot}):jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:d,isDisabled:true})}):null]})});Uf.displayName="FreehandCanvas";var qf=_t__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=_t.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(e.map(([n,i,s])=>({x:n,y:i,pressure:s})),t)),[e,t]);return jsxRuntime.jsx("path",{d:a,stroke:o,strokeWidth:r})});qf.displayName="Stroke";var Kf=_t__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=Hf({line:e,options:t});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:o,strokeWidth:r},i))})});Kf.displayName="SplitStroke";function Gf(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(o=>Gf(o)):[e]}return [e]}var Wf="_1vac7ws0",Yf=z({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Zf(e,t){let[o,r]=_t.useState([]),a=()=>e?.flatMap(n=>[...t.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();r(n);},[e],[a]),o}function Jf(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;_t.useEffect(()=>{let a=utils.getHTMLElement(t,o);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[t,r,o]);}var Y2=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),ey=_t__default.default.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:c,onDragEnd:u,onDrag:m,onResizeStart:d,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:v,onSnap:_,isSnappable:h,elementGuidelines:x,hideAnchorOnDrag:I=true,title:C,rotationPosition:w,autoUpdate:P,bound:S,snapRotationDegrees:k,snapRotationThreshold:T,scrollableAncestor:$,renderDirections:R,stopPropagation:N,transformOrigin:E,preventDefault:F},B)=>{let j=_t.useRef(null),O=_t.useRef(null),[H,Q]=_t.useState(document),V=_t.useRef(H.createElement("div")),[U,re]=_t.useState({}),[pe,Y]=_t.useState(false),[be,_e]=_t.useState(false),[Re,ae]=_t.useState(),ge=Zf(x,H);_t.useLayoutEffect(()=>{let G=V.current;return V.current=H.createElement("div"),()=>{G.remove();}},[H]);let{keyboardProps:Eo}=reactAria.useKeyboard({onKeyDown:G=>{let de=G.shiftKey?10:1,ee=G.metaKey||G.ctrlKey;ee&&G.shiftKey&&(de=45);function ze(Ze,Lo="x"){ee?O.current?.request("rotatable",{deltaRotate:Ze*de},true):O.current?.request("draggable",Lo==="x"?{deltaX:Ze*de}:{deltaY:Ze*de},true);}switch(G.key){case "ArrowRight":{ze(1);break}case "ArrowLeft":{ze(-1);break}case "ArrowUp":{ze(-1,"y");break}case "ArrowDown":ze(1,"y");}requestAnimationFrame(()=>{O.current?.updateRect();});}});_t.useEffect(()=>{let G=he(j.current);Q(G);let de=V.current;G.body.append(V.current);function ee(Ze){_e(Ze.shiftKey);}function ze(){_e(false);}return G.addEventListener("keydown",ee),G.addEventListener("keyup",ze),()=>{G.removeEventListener("keydown",ee),G.removeEventListener("keyup",ze),de.remove();}},[]),Jf({scrollable:$,onScroll:()=>{O.current?.updateRect();},ownerDocument:H});let Ft=_t.useCallback(G=>{re(de=>({...de,...G.style})),i?.(G);},[i]),jt=_t.useCallback(G=>{if(Y(true),j.current?.focus(),S){let ee=utils.getHTMLElement(S,H)?.getBoundingClientRect();ae({position:"client",left:ee?.left??0,top:ee?.top??0,right:ee?.right??0,bottom:ee?.bottom??0});}c?.(G);},[S,H,c]),Ot=_t.useCallback(G=>{Y(false),u?.(G);},[u]),Z=t({style:{...U.width&&{width:U.width},...U.height&&{height:U.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Eo,ref:M(j,B),style:{display:"inline-block",...n,...U},className:utils.classNames(Wf,e),onDoubleClick:p,tabIndex:0,title:C,children:Z}),Yz.createPortal(jsxRuntime.jsx(Y2,{ref:O,target:j,draggable:a,resizable:r,rotatable:o,keepRatio:be,throttleDrag:1,snappable:h||!!S,elementGuidelines:ge,snapRenderThreshold:.9,className:Yf({isDragging:pe&&I}),onRender:Ft,onDragStart:jt,onDragEnd:Ot,useResizeObserver:P,useMutationObserver:P,onRenderEnd:l,onDrag:m,onResizeStart:d,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:v,onRenderStart:s,onSnap:_,rotationPosition:w,bounds:Re,snapRotationDegrees:k,snapRotationThreshold:T,renderDirections:R,stopPropagation:N,preventDefault:F,transformOrigin:E}),V.current)]})});ey.displayName="Transform";var ty={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 ay=_t__default.default.forwardRef(({className:e,style:t,isInline:o=true,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:u=true,"data-block-id":m,"data-block-class":d,pickerButtonStyle:b,pickerButtonClassName:y,footerClassName:f,footerStyle:g,clearLabel:v,placeholder:_,labelStyle:h,labelClassName:x,...I},C)=>{let w=_t__default.default.useRef(null),P=_t__default.default.useRef(null),{formatMessage:S}=A(ty),[k,T]=utils$1.useControlledState(n,a||null,ae=>{utils.invariant(typeof ae!="string"),I.onValueChange?.(ae?[ae]:[]);}),$=_t.useMemo(()=>pk(k||void 0),[k]),{fieldProps:R,labelProps:N}=reactAria.useField(I),{dropProps:E,isDropTarget:F}=reactAria.useDrop({ref:w,onDrop:async ae=>{if(l)return;let ge=await qi({items:ae.items});ge.length&&T(ge[0]),p?.(ae);},...I}),{clipboardProps:B}=reactAria.useClipboard({onPaste:async ae=>{if(l)return;let ge=await qi({items:ae});ge.length&&T(ge[0]),c?.(ae);},...I}),j=()=>{T(null),P.current&&(P.current.value="");},O={type:"file",onChange:ae=>{let ge=[...ae.target.files];T(ge[0]),I.onChange?.(ae);},accept:r,disabled:l},{focusProps:H,isFocused:Q,isFocusVisible:V}=reactAria.useFocusRing({within:true}),{hoverProps:U,isHovered:re}=reactAria.useHover({isDisabled:l}),{imgProps:pe,isLoading:Y,isLoaded:be}=Wt({src:$,alt:i||""}),_e={label:s||S("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:true,className:utils.classNames(Jr({isFocusVisible:V}),{[Af]:F&&!l},y),style:b},Re=utils.filterTruthyValues({"data-loaded":be,"data-block-id":m,"data-block-class":d,"data-hovered":re,"data-focused":Q,"data-drop-target":F,"data-disabled":l,"data-focus-visible":V});return jsxRuntime.jsxs(D,{...Re,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:C,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(E,U,H,N),className:utils.classNames(Wa({isInline:o,isHovered:re,isDisabled:l,hasLoadedImage:!!$&&be,showFocusRing:F||!!$&&V}),x),style:h,ref:w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(R,B,O),ref:P})}),!$&&jsxRuntime.jsx(K,{..._e}),!!$&&(Y?jsxRuntime.jsx(so,{}):jsxRuntime.jsx("img",{className:Ya({isInline:o,isDisabled:l,hasLoadedImage:!!$&&be&&u}),...pe}))]}),_||v?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Xa({isInline:o,isDisabled:l}),f),children:($||!_)&&v?jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:v,isDisabled:l,onPress:j}):jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:_,isDisabled:true})}):null]})});ay.displayName="ImageDropZone";function pk(e){return e instanceof File?URL.createObjectURL(e):e}var ny="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",Is="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",iy=z({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61oi"],[{accent:"theme",isInline:true},"_1yep5z61o7"],[{accent:"positive",isInline:false},"_1yep5z61ok"],[{accent:"theme",isInline:false},"_1yep5z61o9"],[{isFocusVisible:true,isInline:true},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:true,isInline:true},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61oj"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61ob"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61o8"]]});var py=_t__default.default.forwardRef(({className:e,style:t,isDisabled:o,isInline:r=true,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:u,addAriaLabel:m,accent:d="positive","data-block-id":b,"data-block-class":y,...f},g)=>{let{focusProps:v,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing({within:true}),{isHovered:x,hoverProps:I}=reactAria.useHover({isDisabled:o}),{pressProps:C}=reactAria.usePress({isDisabled:o,onPress:p});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let w=utils.filterTruthyValues({"data-hovered":x,"data-focus-visible":h,"data-focused":_,"data-disabled":o});return jsxRuntime.jsxs("div",{...f,className:utils.classNames(iy({isInline:r,isFocusVisible:h,isDisabled:o,isHovered:x,accent:d}),"BaselineUI-Preview",e),"data-block-id":b,"data-block-class":y,"aria-label":f["aria-label"]||a||s,style:t,ref:g,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:o,...reactAria.mergeProps(I,v,C,w),className:Is,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(I,v,C,w),disabled:o,style:l,"aria-label":m,className:Is,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:Ya({isInline:r,isDisabled:o})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(L,{isDisabled:o,className:ny,"aria-label":u,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});py.displayName="Preview";var cy="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",dy=z({defaultClassName:"cw3m0n5 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),uy="cw3m0n4",my="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",fy=z({defaultClassName:"cw3m0n0 _1yep5z61j6 _1yep5z61j7 _1yep5z61j8 _1yep5z61ju _1yep5z61jv _1yep5z61jw _1yep5z61ki _1yep5z61kj _1yep5z61kk _1yep5z61l6 _1yep5z61l7 _1yep5z61l8 _1yep5z61nb _1yep5z61tg",variantClassNames:{isHovered:{true:"cw3m0n1"},isReadOnly:{true:"cw3m0n2"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isReadOnly:false},"cw3m0n3"]]});var kk=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n,isHovered:i,isReadOnly:s})=>jsxRuntime.jsxs("div",{className:wa({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:utils.classNames(Ia({isSelected:o,isFocusVisible:r,isDisabled:a,isReadOnly:s,isHovered:i}),fy({isHovered:i})),children:o?jsxRuntime.jsx("div",{className:uy}):null}),e?jsxRuntime.jsxs("div",{className:cy,children:[jsxRuntime.jsx("span",{className:ka({isDisabled:a}),children:e}),t?jsxRuntime.jsx("span",{className:dy({isDisabled:a}),children:t}):null]}):null]}),by=({state:e,renderOption:t=kk,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(o.id),p=_t__default.default.useRef(null),{inputProps:c,isPressed:u,isSelected:m}=reactAria.useRadio({...s,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:d,isFocusVisible:b,isFocused:y}=reactAria.useFocusRing(),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:l}),v=utils.filterTruthyValues({"data-selected":m,"data-focused":y,"data-focus-visible":b,"data-hovered":g,"data-disabled":l,"data-pressed":u,"data-read-only":i});return jsxRuntime.jsxs("label",{...f,...v,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:p})}),t(o,{isFocusVisible:b,isSelected:m,isFocused:y,isHovered:g,isDisabled:l,optionLabelPosition:r,isReadOnly:i})]})};var vy=_t__default.default.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c,"data-block-id":u,"data-block-class":m,...d},b)=>{let y=reactStately.useRadioGroupState(d),{radioGroupProps:f,labelProps:g,descriptionProps:v,errorMessageProps:_}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},y),h=Ce({...d,descriptionProps:v,errorMessageProps:_,labelPosition:n}),x=utils.filterTruthyValues({"data-orientation":d.orientation,"data-block-id":u,"data-block-class":m,"data-disabled":d.isDisabled,"data-readonly":d.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(f,x),className:utils.classNames(tt({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:b,children:[d.label||h?jsxRuntime.jsxs("div",{className:et({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Kt,"BaselineUI-RadioGroup-Label"),children:d.label}),n==="start"&&h]}):null,jsxRuntime.jsx("div",{className:utils.classNames(my,{[Yt]:d.isDisabled},o),style:r,children:a.map(I=>jsxRuntime.jsx(by,{state:y,renderOption:i,item:I,...d,value:I.id},I.id))}),n==="top"&&h]})});vy.displayName="RadioGroup";var _y=({id:e,defaultMessage:t,elementType:o=_t.Fragment})=>{utils.invariant(e||t,"`id` or `defaultMessage` is required.");let r=A();return jsxRuntime.jsx(o,{children:r.formatMessage(e)||t})};_y.displayName="MessageFormat";var zy=_t__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,role:n="group",isDisabled:i,...s},l)=>{let{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":r,"data-block-class":a,className:e,style:t,...s,ref:l,children:o})});zy.displayName="Group";var Ds="UNSUPPORTED_IN_MENU";function Cy(e){return _t.useMemo(()=>_t__default.default.Children.toArray(e).map(t=>{let o=t,r=lodash.uniqueId("item"),a=vr(o,je),n=xy(o),i,s;if(a){let g=vr(a,Oe);utils.invariant(g),i=xy(g),s=vr(a,ie).props.children;}else n?i=n:i=o;let{onPress:l,label:p,"aria-label":c,iconStart:u,isDisabled:m,icon:d}=i.props,b=p||c||Ds;utils.invariant(typeof b=="string","ActionGroup children must have a string label");let y=`${r}-${b}`;return _t.createElement(reactStately.Item,{...{key:y,onPress:l,textValue:b,"aria-label":c,icon:u||d,dialogContent:s,isDisabled:m},key:y},o)}),[e])}function vr(e,t){return t?lodash.flatMapDeep(_t__default.default.Children.toArray(e),r=>_t__default.default.isValidElement(r)&&r.props.children?[r,..._t__default.default.Children.toArray(r.props.children)]:[r]).find(r=>_t__default.default.isValidElement(r)&&r.type===t):void 0}function xy(e){return vr(e,K)||vr(e,L)}var Py="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",ky={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var Vk=new Set(["text","search","password","tel","url"]);function Qa(e,t){let{toolbarProps:o}=toolbar.useToolbar(e,t);return {toolbarProps:{...o,onKeyDownCapture:r=>{if(r.target instanceof HTMLInputElement&&Vk.has(r.target.type)){let a=r.target.selectionStart===0,n=r.target.selectionEnd===r.target.value.length;(a&&r.key==="ArrowLeft"||n&&r.key==="ArrowRight")&&o.onKeyDownCapture?.(r);return}o.onKeyDownCapture?.(r);}}}}var Ns=_t__default.default.forwardRef(({className:e,style:t,children:o,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...l},p)=>{let{formatMessage:c}=A(),[u,m]=_t.useState(),d=Cy(o),b=reactStately.useListState({...l,children:d}),y=oe(p),f=_t.useRef(null),[{visibleItems:g,isMeasuring:v},_]=Jn({visibleItems:b.collection.size,isMeasuring:false}),h=_t.useCallback(()=>{let T=$=>{if(f.current&&y.current){let R=[...f.current.children],N=y.current.getBoundingClientRect().width,E=$<b.collection.size,F=0,B=0;if(E){let j=R.pop();j&&(F+=$y(j,false,true));}for(let[j,O]of R.entries())if(F+=$y(O,j===0,j===R.length-1),Math.round(F)<=Math.round(N))B++;else break;return B}return $};_(function*(){yield {visibleItems:b.collection.size,isMeasuring:true};let $=T(b.collection.size),R=$<b.collection.size&&$>0;yield {visibleItems:$,isMeasuring:R},R&&(yield {visibleItems:T($),isMeasuring:false});});},[_,y,b.collection.size]),x=_t.useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);si({ref:x,onResize:h}),Me(h,[b.collection,h]);let{toolbarProps:I}=Qa(l,y),C=[...b.collection],w=C.slice(0,g),P=C.slice(g).filter(T=>T.textValue!==Ds),S=P.length>0;_t.useEffect(()=>{m(void 0);},[P.length]),_t.useEffect(()=>{l.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[l.orientation]);let{keyboardProps:k}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(I,k),className:e,"data-block-id":a,"data-block-class":n,"data-collapse":true,style:{...t,flexBasis:v?"100%":void 0},ref:y,children:jsxRuntime.jsxs("div",{ref:f,className:Py,children:[w.map(T=>T.rendered),S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!v&&i?jsxRuntime.jsx(D,{flexGrow:1}):null,jsxRuntime.jsx(_a,{placement:"bottom end",renderTrigger:({buttonProps:T,ref:$})=>jsxRuntime.jsx(L,{...T,size:"md",icon:_24.MoreIcon,"aria-label":c(Qk.more),variant:"toolbar",ref:$,tooltip:true}),...r,disabledKeys:P.filter(T=>T.props?.isDisabled).map(T=>T.key),items:P.map(T=>{let $=T.textValue||T["aria-label"];return utils.invariant($,"ActionItem must have a label"),{id:T.key,label:$,icon:T.props.icon}}),onAction:T=>{let $=b.collection.getItem(T);utils.invariant($,"Item not found");let{onPress:R,dialogContent:N}=$.props;R?.(),m(N);}})]}):null]})}),jsxRuntime.jsx(Le,{isOpen:!!u,onOpenChange:T=>{T||m(void 0);},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:1e5},children:u?_t__default.default.cloneElement(u,{inheritDrawer:true}):null})})]})});Ns.displayName="CollapsibleToolbar";function $y(e,t,o){let a=ne(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:Ty(a.marginLeft))+(o?0:Ty(a.marginRight))}function Ty(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Qk=W({more:{id:"more",defaultMessage:"More"}});var Es=_t__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=_t__default.default.useRef(null),{toolbarProps:p}=Qa(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:utils.classNames(ky[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(s,l),children:i.children})});Es.displayName="WrappedToolbar";var en=_t__default.default.forwardRef((e,t)=>{let o=e.isCollapsible?Ns:Es;return jsxRuntime.jsx(o,{...e,ref:t})});en.displayName="Toolbar";var Dy=z({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),My=z({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6g3"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),Ny=z({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),Ey=z({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),Ly=z({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61nf"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61nd"],[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:false,isFocusVisible:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var uw={xxs:8,xs:12,sm:16,md:20,lg:24},Ie=_t__default.default.forwardRef((e,t)=>{let o=oe(t),{tooltipProps:r}=Yr(e,o);return r?jsxRuntime.jsx(J,{...r,children:jsxRuntime.jsx(Ls,{...e,ref:t})}):jsxRuntime.jsx(Ls,{...e,ref:t})});Ie.displayName="ToggleIconButton";var Ls=_t__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},l)=>{let p=reactStately.useToggleState(s),{buttonProps:c,isPressed:u,ref:m,isFocusVisible:d,isFocused:b,isHovered:y,uiStateOptions:f}=Zr(s,p),g=_t.useMemo(()=>typeof o=="function"?o:p.isSelected?o.selected:o.unselected,[o,p.isSelected]),v={isSelected:p.isSelected,isHovered:y,isFocusVisible:d,isDisabled:!!s.isDisabled},_=utils.filterTruthyValues({"data-hovered":y,"data-selected":p.isSelected,"data-focus-visible":d,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":b,"data-pressed":u});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,_),className:utils.classNames(a==="toolbar"&&Ly(v),a==="primary"&&My(v),a==="secondary"&&Ny(v),a==="tertiary"&&Ey(v),Dy({size:r}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(f):e),style:typeof t=="function"?t(f):t,ref:M(m,l),children:jsxRuntime.jsx(g,{size:uw[r]})})});Ls.displayName="ToggleIconButtonCore";var Ay="f6jv6bl",Fy="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",_o="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",jy=z({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:true,isMinimal:false},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),tn=z({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Oy="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",Hy="f6jv6bj";var Vy="f6jv6bm _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",Uy=z({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),qy="_1yep5z6jy _1yep5z6jz _1yep5z6k0",Ky="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",Gy=z({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),Wy="f6jv6bk",Yy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",on=z({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),rn="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",zr="f6jv6bn";var Zy=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:hr}}=tokens.layoutSprinkleValues,Jy=({isOpen:e,onClose:t})=>{let{formatMessage:o}=A(),r=reactAria.useId();return jsxRuntime.jsx(Le,{isOpen:e,onOpenChange:a=>{a||t();},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(ke,{"aria-labelledby":r,className:Oy,drawerBackground:"subtle",children:[jsxRuntime.jsxs(D,{paddingLeft:hr.padding.horizontal.lg,paddingRight:hr.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:Hy,children:[jsxRuntime.jsx(te,{id:r,elementType:"h3",type:"title",size:"md",children:o(xr.help)}),jsxRuntime.jsx(L,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":o(xr.close),onPress:t})]}),jsxRuntime.jsx(q,{className:Wy}),jsxRuntime.jsxs(D,{paddingX:hr.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(D,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:hr.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(xr.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(xr.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Zy.map(([a,n],i)=>jsxRuntime.jsxs(_t.Fragment,{children:[jsxRuntime.jsxs(D,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:hr.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(te,{type:"subtitle",size:"sm",role:"cell",children:o(xr[lodash.camelCase(a)])}),jsxRuntime.jsx(te,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,true)})]}),i!==Zy.length-1&&jsxRuntime.jsx(q,{})]},a))})]})]})})})},xr=W({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var an=_t__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,placeholder:r,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:l,editableContentAriaLabel:p,editorHandle:c,autoFocus:u,saveOnEnter:m,onSave:d},b)=>{let y=_t__default.default.useRef(null),[f,g]=utils$1.useControlledState(e,t||"",o),v=_t.useCallback(k=>{g(k.currentTarget.value||"");},[g]),_=_t.useCallback(k=>{(m&&k.key==="Enter"&&!k.shiftKey||(k.ctrlKey||k.metaKey)&&k.key==="Enter")&&(k.preventDefault(),d());},[m,d]);_t.useImperativeHandle(b,()=>({clear:()=>{g("");}}));let h=_t.useCallback(k=>{k.currentTarget.style.height="16px",k.currentTarget.style.height=k.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let k=y.current;k&&(k.style.height="16px",k.style.height=k.scrollHeight+"px");},[s],[f]),_t.useImperativeHandle(c,()=>({setCaretPosition:k=>{y.current&&(y.current.focus(),y.current.setSelectionRange(k,k));},focus:()=>{y.current&&y.current.focus();}}));let{focusProps:x,isFocused:I,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:w,isHovered:P}=reactAria.useHover({}),S=utils.filterTruthyValues({"data-focus-visible":C,"data-hovered":P,"data-focused":I});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(x,w,S),ref:M(y,n),className:utils.classNames(s?Ky:[tn(),on({isInline:i}),Yy]),autoFocus:u,onChange:v,disabled:l,onInput:h,value:f,placeholder:r,spellCheck:a,"aria-label":p,onKeyDown:_})});an.displayName="PlainEditor";var kr="mention",nn="mention_input",c1=_t__default.default.forwardRef(({onCancel:e,editor:t,element:o,onSelectionChange:r},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=_t.useContext(ln),l=slateReact.useSelected(),[p,c]=_t.useState(""),{contains:u}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=A(),d=_t.useMemo(()=>{let R=i.filter(N=>p===""||u(N.displayName,p)).map(N=>({id:N.id,label:N.displayName,data:N}));return s?lodash.take(R,s):R},[i,s,p,u]),b=_t.useCallback(R=>jsxRuntime.jsx(reactStately.Item,{children:R.label},R.id),[]),y=_t.useCallback((R=false)=>{let N=plateCommon.findNodePath(t,o);N&&(plateCommon.removeNodes(t,{at:N}),R&&plateCommon.focusEditor(t));},[t,o]),f=reactStately.useComboBoxState({items:d,children:b,menuTrigger:"focus",onSelectionChange:R=>{y(true),r?.(R);}}),g=_t__default.default.useRef(null),v=_t__default.default.useRef(null),_=_t__default.default.useRef(null),h=_t__default.default.useRef(null),x=plateCombobox.useHTMLInputCursorState(v);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{f.close();}});let{inputProps:I,listBoxProps:C}=reactAria.useComboBox({defaultItems:d,inputRef:v,buttonRef:g,listBoxRef:_,popoverRef:h,menuTrigger:"focus","aria-label":m(Ww.mention)},f);_t.useEffect(()=>{v.current?.focus();},[]);let w=_t.useCallback((R="manual",N=false)=>{y(N),e?.(R,f.inputValue);},[e,y,f.inputValue]),P=_t.useRef(l);_t.useEffect(()=>{P.current&&!l&&w("deselect"),P.current=l;},[l,w]);let S=x?.atStart??false,k=x?.atEnd??false,T=_t.useCallback(R=>{R.key==="Backspace"&&S?w("backspace",true):R.key==="Escape"?w("escape",true):R.key==="ArrowLeft"&&S?w("arrowLeft",true):R.key==="ArrowRight"&&k&&w("arrowRight",true);let N=plateCommon.Hotkeys.isUndo(R)&&t.history.undos.length>0,E=plateCommon.Hotkeys.isRedo(R)&&t.history.redos.length>0;(N||E)&&(R.preventDefault(),t[N?"undo":"redo"](),plateCommon.focusEditor(t));},[S,k,w,t]),$=_t.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let R=ne(v.current),N=v.current?R?.getComputedStyle(v.current).font:void 0;return {width:N?utils.getTextDimensions({text:f.inputValue,font:N}).width+10:"4ch"}}},[f.inputValue]);return jsxRuntime.jsxs(ht.Provider,{value:f,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(I,{onKeyDown:T,onBlur:()=>{w("blur",true);},onChange:R=>{c(R.target.value);}}),style:$,className:Vy,ref:M(a,v)}),jsxRuntime.jsx(ie,{triggerRef:n,isNonModal:true,ref:h,state:f,crossOffset:-2,children:jsxRuntime.jsx(fe,{...C,items:void 0,autoFocus:"first",ref:_,className:utils.classNames(rt,tokens.sprinkles({width:"full"})),renderOption:u1})})]})});c1.displayName="MentionInputContentElement";var Os=cn$1.withRef(({className:e,...t},o)=>{let{children:r,editor:a,element:n}=t,{items:i}=_t.useContext(ln),s=_t.useRef(null),[l,p]=_t.useState(null);_t.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let d=plateCommon.getPointBefore(a,m);if(!d)return;let b=plateCommon.createPointRef(a,d);return p(b),()=>{b.unref();}},[a,n]);let c=_t.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Bo()&&m&&plateCommon.focusEditor(a);},[a]),u=_t.useCallback(m=>{if(!m)return;let d=s.current?.getRootNode()instanceof ShadowRoot,b=i.find(f=>f.id===m);utils.invariant(b,"User not found");let y={type:kr,value:b.id,displayName:b.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:false,className:e,ref:o,...t,children:[jsxRuntime.jsx(c1,{onCancel:(m,d)=>{m!=="backspace"&&plateCommon.insertText(a,"@"+d,{at:l?.current??void 0}),(m==="arrowLeft"||m==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:m==="arrowLeft"});},onSelectionChange:u,ref:s,element:n,editor:a}),r]})});Os.displayName="MentionInputElement";var Hs=cn$1.withRef(({className:e,onClick:t,children:o,...r},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:false,"data-user-id":n.value,onClick:plateCommon.getHandler(t,n),ref:a,...r,children:["@",n.displayName,o]})});Hs.displayName="MentionElement";var d1=(e,{options:{trigger:t,triggerPreviousCharPattern:o,triggerQuery:r}})=>{let{insertText:a}=e,n=i=>i===t;return e.insertText=i=>{if(!e.selection||!n(i)||r&&!r(e)){a(i);return}let s=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(o?.test(s)){sn(e);return}a(i);},e},Ww=W({mention:{defaultMessage:"Mention",id:"mention"}});function f1({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("p",{children:t})})}function cI(e){return Object.entries(e).map(([t,o])=>`${lodash.kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}function dI(e){return "text"in e}function uI(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function wr(e){if(!e)return "";function t(o){if(dI(o)){let a=uI(o.text);return o.bold&&(a=`<b>${a}</b>`),o.italic&&(a=`<i>${a}</i>`),o.underline&&(a=`<u>${a}</u>`),(o.color||o.backgroundColor)&&(a=`<span style="${cI(utils.filterTruthyValues({color:o.color||void 0,backgroundColor:o.backgroundColor||void 0}))}">${a}</span>`),a}let r=o.children?.map(wr).join("");switch(o.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${o.url}">${r}</a>`;case kr:return `<span data-user-id="${o.value}">${o.displayName}</span>`;default:return r}}return Array.isArray(e)?e.map(o=>t(o)).join(""):t(e)}function mI(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(o=>o.trim())).map(([t,o])=>[lodash.camelCase(t),o]))):{}}function Gs(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=new DOMParser().parseFromString(y1__namespace.default.sanitize(e),"text/html"),o=t.querySelectorAll("[style]");for(let a of o)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let r=t.querySelectorAll("br");for(let a of r)a.outerHTML=a.closest("p")?`
11
- `:"<p>";return g1(t.body)}function g1(e,t){if(e.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let o={...t};switch(e.nodeName.toUpperCase()){case "B":{o.bold=true;break}case "I":{o.italic=true;break}case "EM":{o.italic=true;break}case "U":{o.underline=true;break}case "SPAN":{let a=mI(e.getAttribute("style")||"");a["text-decoration"]==="underline"&&(o.underline=true),a.color&&(o.color=a.color),a.backgroundColor&&(o.backgroundColor=a.backgroundColor);break}}let r=[...e.childNodes].flatMap(a=>g1(a,o));switch(r.length===0&&r.push(slateHyperscript.jsx("text",o,"")),e.nodeName.toUpperCase()){case "BR":return slateHyperscript.jsx("text",t,`
12
- `);case "SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:kr,value:a,displayName:e.textContent},{text:""}):r}case "P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},r);case "A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:e.getAttribute("href")},r);default:return r}}function v1(e){let t=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[o]=t||[{url:""}];return o?.url}function sn(e){let t={children:[{text:" "}],type:nn};e.insertNode(t);}var fI=plateCommon.createPluginFactory({isElement:true,isInline:true,isMarkableVoid:true,isVoid:true,key:kr,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:true,isInline:true,isVoid:true,key:nn}],withOverrides:d1}),_1=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:f1}),plateBasicMarks.createBoldPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:z1}),fI({component:Hs})],{components:{[nn]:Os}});var St={Add:"add",Edit:"edit",Show:"show"},P1=({isDisabled:e})=>{let{formatMessage:t}=A(),o=plateCommon.useEditorRef();return jsxRuntime.jsxs(je,{type:"dialog",children:[jsxRuntime.jsx(Oe,{children:jsxRuntime.jsx(L,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":t(Dt.addLink),className:_o,preventFocusOnPress:true})}),jsxRuntime.jsx(ie,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(ke,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(xI,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(o,o.selection);},0);}})})})]})},xI=({close:e})=>{let t=plateCommon.useEditorRef(),{formatMessage:o}=A(),r=plateCommon.useEditorSelector(p=>v1(p),[]),[a,n]=_t__default.default.useState(r?St.Show:St.Add),[i,s]=_t__default.default.useState(r||""),l=jsxRuntime.jsx(D,{padding:"lg",children:jsxRuntime.jsx(at,{label:o(Dt.link),value:i,autoFocus:true,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===St.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(D,{display:"flex",justifyContent:"flex-end",padding:"lg",className:Ay,children:jsxRuntime.jsx(K,{isDisabled:!utils.isUrl(i,true),label:o(Dt.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();},preventFocusOnPress:true})})]}),a===St.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(D,{padding:"lg",children:jsxRuntime.jsx(te,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(D,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(K,{label:o(Dt.editLink),size:"sm",variant:"secondary",onPress:()=>{n(St.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(K,{label:o(Dt.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(t),e?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),a===St.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(D,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(K,{label:o(Dt.cancel),size:"sm",variant:"secondary",onPress:()=>{n(St.Show),e?.();}}),jsxRuntime.jsx(K,{label:o(Dt.save),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();}})]})]})]})};function z1({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("a",{className:za({size:"sm"}),children:t})})}var Dt=W({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 PI=color.parseColor("#ffffff00").toString("hexa"),Ws=[{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"}];[...Ws,{label:"Transparent",color:PI}];var cn=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,e),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(Ie,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{plateCommon.toggleMark(n,{key:e});},preventFocusOnPress:true})},Xs=({nodeType:e,"aria-label":t,isDisabled:o})=>{let{updateColor:r,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),i=_t.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(L,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:o,className:_o,preventFocusOnPress:true,...p,ref:l}),[e,t,o]),s=_t.useCallback(l=>{l?r(l.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(yo,{presets:Ws,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:o})};var eR=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],ln=_t__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Qs=_t__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,style:r,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:l,containerRef:p,onHelpDialogOpenRequest:c,mentionableUsers:u,editorHandle:m,maxMentionableUsersSuggestions:d,autoFocus:b,editorRef:y,saveOnEnter:f,onSave:g},v)=>{let _=_t.useRef(null),h=reactAria.useId(),{formatMessage:x}=A(),I=_t.useRef(null),C=I.current,w=_t.useRef(null),P=_t.useMemo(()=>C?.getRootNode()instanceof ShadowRoot,[C]),[S,k]=utils$1.useControlledState(e?Gs(e):void 0,Gs(t||"<p></p>"),R=>{o&&o(wr(R));}),{keyboardProps:T}=reactAria.useKeyboard({onKeyDown:R=>{(f&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),g()),R.altKey&&R.key==="F10"?(R.preventDefault(),_.current&&_.current.querySelector("button")?.focus()):R.continuePropagation(),Bo()&&P&&w.current&&plateCommon.focusEditor(w.current);}});_t.useEffect(()=>{s&&w.current&&plateCommon.deselect(w.current);},[s]),_t.useImperativeHandle(v,()=>({startMention:()=>{w.current&&!I.current?.querySelector("input[role='combobox']")&&sn(w.current);}})),_t.useImperativeHandle(m,()=>({setCaretPosition:R=>{w.current&&(plateCommon.focusEditor(w.current),plateCommon.moveSelection(w.current,{distance:R,unit:"character"}));},focus:()=>{w.current&&plateCommon.focusEditor(w.current);}}));let $=_t.useMemo(()=>({items:u||[],containerRef:p,maxMentionableUsersSuggestions:d}),[u,p,d]);return jsxRuntime.jsx(ln.Provider,{value:$,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:S||eR,plugins:_1,editorRef:M(w,y||null),onChange:R=>{k(R);},children:[jsxRuntime.jsxs(en,{className:rn,"aria-controls":h,ref:_,children:[jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:x(Co.bold),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:x(Co.italic),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:x(Co.underline),isDisabled:s})]}),jsxRuntime.jsx(q,{orientation:"vertical",className:zr}),jsxRuntime.jsx(Xs,{nodeType:plateFont.MARK_COLOR,"aria-label":x(Co.fontColor),isDisabled:s}),jsxRuntime.jsx(q,{orientation:"vertical",className:zr}),jsxRuntime.jsx(Xs,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":x(Co.backgroundColor),isDisabled:s}),jsxRuntime.jsx(q,{orientation:"vertical",className:zr}),jsxRuntime.jsx(P1,{isDisabled:s}),jsxRuntime.jsx(q,{orientation:"vertical",className:zr}),jsxRuntime.jsx(L,{className:_o,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":x(Co.help),onPress:c})]}),jsxRuntime.jsx(q,{variant:"secondary"}),jsxRuntime.jsx("div",{...T,ref:I,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:r,placeholder:n,autoFocus:b,spellCheck:a,"aria-label":l,className:utils.classNames(tn({isDisabled:s}),on({isInline:i})),renderPlaceholder:({attributes:R,children:N})=>jsxRuntime.jsx("span",{...R,className:tokens.sprinkles({paddingY:"lg"}),children:N})})})]})})});Qs.displayName="RichEditor";var u1=({key:e,value:t},{isDisabled:o,optionProps:r,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:o}),{label:l,data:p}=t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,s),className:Uy({isDisabled:o,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(uo,{name:l,...p?.avatar}),jsxRuntime.jsxs(D,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(te,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(te,{type:"helper",size:"sm",children:p?.description})]})]}),e===n.collection.getLastKey()?null:jsxRuntime.jsx(q,{})]})},Co=W({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"},help:{defaultMessage:"Help",id:"help"}});var T1=_t__default.default.memo(_t__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,enableRichText:a=false,onCancel:n,onSave:i,isInline:s=true,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":u,"aria-describedby":m,"aria-labelledby":d,"aria-details":b,editableContentAriaLabel:y="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:v,..._},h)=>{let x=_t.useRef(null),{formatMessage:I}=A(),C=_t.useRef(null),w=_t.useRef(null),P=_t.useRef(null),S=!a&&_.variant==="minimal",k=_t.useRef(null),[T,$]=_t__default.default.useState(_.value||_.defaultValue),R=_.isDisabled||_.isSaveDisabled||!utils.getPlainText(T||""),{fieldProps:N}=reactAria.useLabel({"aria-label":u,"aria-labelledby":d,"aria-describedby":m,"aria-details":b,labelElementType:"div"});S&&!_.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let E=_t.useCallback(()=>{$(""),a?x.current?.reset():w.current?.clear();},[a]),F=_t.useCallback(()=>{R||(i?.(a?wr(x.current?.children):C.current.value),v&&E());},[E,v,a,i,R]),B=jsxRuntime.jsx(L,{variant:"ghost","aria-label":p||I(tl.save),icon:l,isDisabled:R,size:"md",excludeFromTabOrder:S,className:S?qy:void 0,onPress:F,preventFocusOnPress:true}),[j,O]=_t__default.default.useState(false),{keyboardProps:H}=reactAria.useKeyboard({onKeyDown:V=>{(V.metaKey||V.ctrlKey)&&V.shiftKey&&V.key==="h"&&(V.preventDefault(),O(true));}}),Q=_t.useCallback(V=>{$(V),_.onChange?.(V);},[_]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(N,a?H:{}),role:"application",ref:M(P,h),style:t,"data-block-id":o,"data-block-class":r,className:utils.classNames(jy({isInline:s,isMinimal:S}),"BaselineUI-Editor",e),"aria-disabled":_.isDisabled,children:[S?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(uo,{className:Fy,name:_.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Gy({isInline:s}),children:[jsxRuntime.jsx(an,{isMinimal:S,textBoxRef:C,isInline:s,editableContentAriaLabel:y,..._,onChange:Q,onSave:F}),B]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Qs,{containerRef:P,ref:k,editorRef:x,isInline:s,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{O(true);},..._,onChange:Q,onSave:F}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(q,{variant:"secondary"}),jsxRuntime.jsx(an,{onCancel:n,textBoxRef:C,ref:w,isInline:s,editableContentAriaLabel:y,..._,onChange:V=>{$(V),_.onChange?.(V);},onSave:F})]}),jsxRuntime.jsx(q,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(rn,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(D,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&_.mentionableUsers?jsxRuntime.jsx(L,{icon:_20.AtIcon,size:"sm","aria-label":I(tl.mention),onPress:()=>k.current?.startMention(),preventFocusOnPress:true}):null,f?.map(({type:V,props:U},re)=>V==="action"?jsxRuntime.jsx(L,{...U,size:"sm",isDisabled:_.isDisabled||U.isDisabled},re):jsxRuntime.jsx(Ie,{...U,size:"sm",variant:"tertiary",isDisabled:_.isDisabled||U.isDisabled},re))]}),jsxRuntime.jsxs(D,{children:[!!n&&jsxRuntime.jsx(L,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:_.isDisabled,size:"md",onPress:()=>{n(),g&&E();},"aria-label":c||I(tl.cancel)}),B]})]})]}),jsxRuntime.jsx(Jy,{isOpen:j,onClose:()=>{O(false);}})]})}));T1.displayName="Editor";var tl=W({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var S1="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var M1=2,E1=_t__default.default.forwardRef(({className:e,style:t,hideForKeyboard:o,scrollRef:r,label:a,delay:n=1500,smoothScroll:i=true,"data-block-id":s,"data-block-class":l},p)=>{let c=_t__default.default.useRef(null),u=interactions.useInteractionModality(),[m,d]=_t__default.default.useState(false),b=_t.useCallback(()=>{let P=r?.current||he(c.current).body;return ne(P).getComputedStyle(P).flexDirection==="column-reverse"?P.scrollTop+M1>=0:P.scrollTop+P.clientHeight+M1>=P.scrollHeight},[r]),[y,f]=_t__default.default.useState(b),{buttonProps:g,isPressed:v}=reactAria.useButton({onPress:()=>{let P=r?.current||he(c.current).body;P.scrollTo({top:P.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:_,isFocused:h,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:I,isHovered:C}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":v,"data-focus-visible":x,"data-hovered":C,"data-focused":h});return _t.useEffect(()=>{f(b());},[b]),_t.useEffect(()=>{let P=r?.current||he(c.current).body,S="onscrollend"in ne(P),k=()=>{setTimeout(()=>{d(false),f(b());},n);},T=()=>{d(true),S||k();};return P.addEventListener("scroll",T),P.addEventListener("scrollend",k),()=>{P.removeEventListener("scroll",T),P.removeEventListener("scrollend",k);}},[r,n,b]),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:(!o||u!=="keyboard")&&!m&&!y?jsxRuntime.jsxs(react.motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...reactAria.mergeProps(g,_,I,w),className:utils.classNames(S1,Ra({isFocusVisible:x,variant:"high-contrast",isHovered:C}),$a({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:M(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:tr({variant:"high-contrast"})}),a]}):null})});E1.displayName="ScrollControlButton";var rl="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",L1=z({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:true,hasNoCloseBtn:true},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),B1="_1v0p2z10";var mn=_t__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:l,icon:p,iconColor:c,showCloseButton:u=true,onPrimaryAction:m,onCancel:d,autoFocusButton:b,isPrimaryActionDisabled:y},f)=>{let g=reactAria.useId(),{formatMessage:v}=A(),_=n&&jsxRuntime.jsx(te,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(ke,{className:e,style:t,"data-block-id":o,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:f,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:L1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!u}),children:[jsxRuntime.jsxs(D,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[p?jsxRuntime.jsx(p,{style:{color:c},size:24}):null,!p&&_,u?jsxRuntime.jsx(L,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":v(kR.close),onPress:d}):null]}),p?_:null]}),a?jsxRuntime.jsx(D,{elementType:"section",className:B1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,l?jsxRuntime.jsx(D,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(at,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(q,{}),jsxRuntime.jsxs(D,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(K,{variant:"secondary",className:rl,label:s,onPress:d,autoFocus:b==="cancel"}):null,i?jsxRuntime.jsx(K,{className:rl,label:i,onPress:m,autoFocus:b==="primary",isDisabled:y}):null]})]}):null]})});mn.displayName="AlertDialog";var kR=W({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var A1="_1t55bp71",F1="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",j1="_1t55bp70";var SR=TR__default.default(),O1=_t__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,showCaret:n},i)=>{let s=_t.useMemo(()=>{let l=o;return (!o||Array.isArray(o)&&o.length===0)&&(l=""),SR.render(l)},[o]);return jsxRuntime.jsx("div",{className:utils.classNames(F1,j1,{[A1]:n},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:t,ref:i,dangerouslySetInnerHTML:{__html:s}})});O1.displayName="Markdown";function q1(e){let{formatMessage:t,locale:o}=A(),[r,a]=_t__default.default.useState(false),[n,i]=_t__default.default.useState(0),[s,l]=_t__default.default.useState(0),[p,c]=_t__default.default.useState(false);_t.useEffect(()=>{if(!e.current)return;let d=e.current,b=()=>{a(false),i(0);},y=()=>{p||i(d.currentTime*100/d.duration);},f=()=>{l(d.duration);};return d.addEventListener("ended",b),d.addEventListener("timeupdate",y),d.addEventListener("loadedmetadata",f),()=>{d.removeEventListener("ended",b),d.removeEventListener("timeupdate",y),d.removeEventListener("loadedmetadata",f);}},[p,e]);let u=_t.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(true),liveAnnouncer.announce(t(V1.playing),"polite")):(e.current.pause(),a(false),liveAnnouncer.announce(t(V1.paused),"polite"))))();},[t,e]),m=_t.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(NR(e.current.currentTime,o.locale),"assertive"));},[o.locale,e]);return {isPlaying:r,progress:n,duration:s,togglePlay:u,seek:m,setProgress:i,formattedCurrentTime:e.current?.currentTime?U1(e.current?.currentTime):"00:00",formattedDuration:s?U1(s):"00:00",setIsSliderDragging:c}}var V1=W({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function NR(e,t){let o=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...o&&{hours:o},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(t,{style:"long"}).format(n)}function U1(e){let t=Math.floor(e%3600/60),o=Math.floor(e%60);return [t,o].map(r=>r.toString().padStart(2,"0")).join(":")}var K1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",G1="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",W1="rta2n90";var Z1=_t__default.default.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=_t__default.default.useRef(null),{isPlaying:p,progress:c,duration:u,togglePlay:m,seek:d,formattedDuration:b,formattedCurrentTime:y,setProgress:f,setIsSliderDragging:g}=q1(l),{formatMessage:v}=A(),_=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":p?"playing":"paused","data-loaded":u>0});return jsxRuntime.jsxs("div",{..._,...i,className:utils.classNames(K1,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:l,children:r.map(({url:h,type:x})=>jsxRuntime.jsx("source",{src:h,type:x},h))})}),jsxRuntime.jsx(Ie,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:o,"aria-label":v(p?nl.pause:nl.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:G1,children:[jsxRuntime.jsx("span",{"aria-hidden":true,children:y}),jsxRuntime.jsx(Qt,{"aria-label":v(nl.audioTimeline),value:c,minValue:0,maxValue:100,className:W1,onChange:h=>{f(h),g(true);},onChangeEnd:h=>{d(h),g(false);}}),jsxRuntime.jsx("span",{"aria-hidden":true,children:b})]})]})});Z1.displayName="AudioPlayer";var nl=W({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var J1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",Q1="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",eb="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",yn=z({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),tb="_1w920rnb _1yep5z6lo",ob=z({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ar _1yep5z6as _1yep5z6at _1yep5z6bf _1yep5z6bg _1yep5z6bh _1yep5z6c3 _1yep5z6c4 _1yep5z6c5 _1yep5z6cr _1yep5z6cs _1yep5z6ct _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),rb="_1w920rnc";var bn=({items:e,ulRef:t,containerClassName:o,previewClassName:r,itemDataAttribute:a,showCount:n=false})=>{let{length:i}=e,s=_t__default.default.useRef(null);return _t.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(o)?.querySelector(`[${a}='${e?.at(-1)?.key}']`)?.cloneNode(true);utils.invariant(l,"Node is not defined."),s.current?.prepend(l);},[e,t,o,a]),jsxRuntime.jsx("div",{className:r,ref:s,children:n&&i>1?jsxRuntime.jsx(D,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:rb,children:i}):null})};function nb(e,t){return e.find(o=>o.id===t)}function ib(e,t,o){let r=[...e],a=r.filter(s=>o.has(s.id)),n=r.filter(s=>!o.has(s.id)),i=n.findIndex(s=>s.id===t);return n.flatMap((s,l)=>l===i?[...a,s]:s)}function sb(e,t,o){let r=[...e],a=r.filter(s=>o.has(s.id)),n=r.filter(s=>!o.has(s.id)),i=n.findIndex(s=>s.id===t);return n.flatMap((s,l)=>l===i?[s,...a]:s)}function il(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function gn(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}function lb(){let[e,t]=_t.useState(false);return _t.useEffect(()=>{let o=window.matchMedia("(pointer: coarse)");t(o.matches);let r=a=>{t(a.matches);};return o.addEventListener("change",r),()=>{o.removeEventListener("change",r);}},[]),e}var cb=_t__default.default.forwardRef(({id:e,className:t,children:o,style:r,isDisabled:a,onTruncatedChange:n,onHoverChange:i},s)=>{let l=_t.useRef(null),{buttonProps:p}=reactAria.useButton({elementType:"span",isDisabled:a},l);_t.useLayoutEffect(()=>{l.current&&n?.(l.current.scrollWidth>l.current.clientWidth);},[o,n]);let{hoverProps:c}=reactAria.useHover({isDisabled:a,onHoverChange:i});return jsxRuntime.jsx("span",{...$e(p,c),className:utils.classNames(t,"BaselineUI-AdaptiveText"),id:e,tabIndex:-1,ref:M(l,s),style:r,role:void 0,children:o})});cb.displayName="Label";var pl=_t__default.default.memo(_t__default.default.forwardRef(({children:e,isOpen:t,isDisabled:o,...r},a)=>{let[n,i]=_t.useState(false),[s,l]=_t.useState(false),p=lb(),c=o||!s||p;return jsxRuntime.jsx(J,{text:e,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||t)&&s,isDisabled:c,children:jsxRuntime.jsx(cb,{...r,isDisabled:c,onTruncatedChange:l,onHoverChange:i,ref:a,children:e})})}));pl.displayName="AdaptiveText";var o$=({fit:e,item:t,deleteElement:o})=>{let{formatMessage:r}=A(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Wt({src:t.data?.src,alt:t.data?.alt??""});return i?jsxRuntime.jsx(so,{"aria-label":r($r.loading)}):jsxRuntime.jsx(react.motion.div,{role:"img",initial:{opacity:a?1:0},animate:{opacity:1},exit:{opacity:a?1:0},"aria-label":n.alt,style:{backgroundImage:`url(${n.src})`,backgroundSize:e},className:tb,children:o})},mb=({item:e,options:{optionProps:t,isFocusVisible:o,isSelected:r,isFocused:a,isDisabled:n,isPressed:i},liRef:s,fit:l="contain",onDelete:p,className:c,imageClassName:u,imageLabelClassName:m,imageDimensions:d,style:b,layoutTransition:y=true,renderImage:f=(g,{deleteElement:v})=>jsxRuntime.jsx(o$,{item:g,deleteElement:v,fit:l})})=>{let g=reactAria.useId(),{formatMessage:v}=A(),{value:_}=e;utils.invariant(_&&Qe(_),"Expected value to be a list option");let h=p?jsxRuntime.jsx("div",{className:J1,children:jsxRuntime.jsx(L,{"aria-label":v($r.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(_.id);},UNSAFE_NON_INTERACTIVE:true})}):null,x=gn([_])[0],I=_t.useCallback($=>{let R={},N=typeof $=="function"?$(x,{isSelected:r}):$;return N&&(R.width=typeof N.width=="string"?dl[N.width]:N.width,R.aspectRatio="height"in N?`${R.width} / ${N.height}`:N?.aspectRatio?.toString()),R},[x,r]),C=_t.useMemo(()=>({isFocusVisible:o,isSelected:r,isFocused:a,isDisabled:n,isPressed:i}),[o,r,a,n,i]),w=react.useReducedMotion(),P=typeof y=="boolean"?y:!w,S=typeof y=="object"?y:void 0,k=P?react.motion.li:"li",T=I(d);return jsxRuntime.jsxs(k,{...reactAria.mergeProps(t,P?{layout:true,transition:S}:void 0),ref:s,className:utils.classNames(Q1,zt(c,x,C)),"aria-labelledby":g,style:Or(b,x,C),children:[jsxRuntime.jsx(D,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsxRuntime.jsx("div",{className:utils.classNames(yn({isFocusVisible:o,isSelected:r,isLoading:true}),zt(u,x,C)),style:T,"data-image-key":_.id,children:f(_,{deleteElement:h??void 0,onDelete:p})})}),jsxRuntime.jsx(pl,{id:g,className:utils.classNames(ob({isFocusVisible:o,isSelected:r}),m),style:{maxWidth:T.width},isOpen:o,children:_.label})]})};var p$={width:0,display:"block"},bb={src:"src",alt:"alt"},dl={sm:102,md:170},gb=_t__default.default.forwardRef(({className:e,style:t,fit:o="cover",onReorder:r,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=dl.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:u,imageContainerClassName:m,imageClassName:d,labelClassName:b,onListChange:y,renderImage:f,layoutTransition:g,imageDimensions:v={width:s,aspectRatio:l},imageContainerStyle:_,...h},x)=>{let I=_t__default.default.useRef(null),[C,w]=_t.useState([]),{formatMessage:P}=A();_t.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[S,k]=utils$1.useControlledState(h.selectedKeys,h.defaultSelectedKeys??[],h.onSelectionChange),[T,$]=utils$1.useControlledState(p?il(p):void 0,il(c),y?B=>{y?.(gn(B));}:void 0),R=_t.useCallback(B=>{let j=B.target.key,O=B.keys;if(B.target.dropPosition==="before"){let H=ib(T,j,O);$(H);}else if(B.target.dropPosition==="after"){let H=sb(T,j,O);$(H);}r?.(B);},[T,r,$]),N=_t.useCallback(()=>{i&&C.length&&($(T.filter(B=>!C.includes(B.id))),i(new Set(C)),w([]));},[C,T,i,$]),E=_t.useCallback((B,j,O)=>{let{value:H}=B;utils.invariant(Qe(H));let Q={id:H.id,label:H.label,src:H.data?.src,alt:H.data?.alt};return jsxRuntime.jsx(mb,{item:B,options:j,liRef:O,fit:o,onDelete:i?V=>{w([V]);}:void 0,renderImage:f,className:zt(m,Q,j),imageClassName:d,imageLabelClassName:b,imageDimensions:v,style:_,layoutTransition:g})},[o,i,f,m,d,b,v,_,g]),{keyboardProps:F}=reactAria.useKeyboard({onKeyDown(B){if(u?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...S].length)w([...S]);else {let O=B.target.dataset.key;w([O]);}}}});return jsxRuntime.jsxs("div",{...F,ref:x,style:t,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(fe,{...h,selectedKeys:S,items:T,onReorder:R,layout:"grid",orientation:"vertical",className:eb,ref:I,dropIndicatorStyle:p$,renderOption:E,renderDragPreview:B=>jsxRuntime.jsx(bn,{items:B,ulRef:I,containerClassName:".BaselineUI-ImageGallery",previewClassName:yn(),itemDataAttribute:"data-image-key",showCount:true}),onSelectionChange:k,getItems:B=>[...B].map(j=>{let O=nb(T,j);return {[bb.src]:O?.src||"",[bb.alt]:O?.alt||"",key:j}})}),jsxRuntime.jsx(Le,{isOpen:!![...C].length,onOpenChange:B=>{B||w([]);},children:jsxRuntime.jsx(Ue,{isDismissable:true,children:jsxRuntime.jsx(mn,{showCloseButton:false,title:"Are you sure you want to delete this item?",primaryActionLabel:P($r.delete),cancelLabel:P($r.cancel),onCancel:()=>{w([]);},onPrimaryAction:N,autoFocusButton:"cancel"})})})]})});gb.displayName="ImageGallery";var $r=W({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var vb="_1sexph00",_b="_1sexph02",zb="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var hb=_t__default.default.forwardRef(({className:e,style:t,items:o,"data-block-id":r,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:l=true,excludeFromTabOrder:p,onPress:c,onButtonAction:u,isSelected:m,defaultSelected:d,onButtonSelectionChange:b,moreAriaLabel:y,optionStyle:f,optionClassName:g,triggerClassName:v,triggerStyle:_,tooltipProps:h,buttonBehaviour:x="toggle",...I},C)=>{let{formatMessage:w}=A(),P=ce(),S=reactStately.useSelectState({items:o,...I,defaultSelectedKey:I.defaultSelectedKey||o?.[0]?.id,children:P,validationState:I.validationState==="error"?"invalid":"valid"}),k=_t.useMemo(()=>typeof x=="function"?x(S.selectedKey):x,[x,S.selectedKey]),[T,$]=utils$1.useControlledState(m,!!d,U=>{b?.({isSelected:U,selectedKey:S.selectedKey});}),{hoverProps:R,isHovered:N}=reactAria.useHover({isDisabled:s}),E=_t.useMemo(()=>{let U=S.collection.getItem(S.selectedKey),re=U?.textValue||U?.["aria-label"],pe=U?.value,Y=pe?.icon,be=k==="toggle",_e=s||S.disabledKeys.has(S.selectedKey),Re={size:i,...be&&{isSelected:T},onPress:ae=>{be&&$(!T),c?.(ae),u?.({isSelected:be?!T:false,selectedKey:S.selectedKey,buttonBehaviour:k});},isDisabled:_e,excludeFromTabOrder:p,className:utils.classNames(typeof g=="function"?g(pe,{isButton:true,isSelected:T}):g,"BaselineUI-ButtonSelect-Button"),style:typeof f=="function"?f(pe,{isButton:true,isSelected:T}):f};return n&&Y?jsxRuntime.jsx(J,{variant:"inverse",size:"sm",includeArrow:false,text:re,placement:"bottom start",offset:4,...typeof h=="function"?h("button"):h,children:k==="action"?jsxRuntime.jsx(L,{icon:Y,"aria-label":re,variant:"toolbar",...Re}):jsxRuntime.jsx(Ie,{icon:Y,"aria-label":re,variant:"toolbar",...Re})}):k==="toggle"?jsxRuntime.jsx(Pa,{iconStart:Y,label:re,variant:"toolbar",...Re}):jsxRuntime.jsx(K,{label:re,variant:"toolbar",...Re})},[p,n,T,s,c,g,f,$,i,S.collection,S.disabledKeys,S.selectedKey,h,k,u]),F=I["aria-label"],B=_t.useCallback(({buttonProps:U,ref:re})=>{delete U["aria-labelledby"];let pe=y||`${w(v$.more)} ${F}`;return jsxRuntime.jsx(J,{variant:"inverse",size:"sm",includeArrow:false,text:pe,placement:"bottom start",offset:4,...h,children:jsxRuntime.jsx(interactions.PressResponder,{...U,children:jsxRuntime.jsx(L,{"aria-label":pe,ref:re,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Y})=>utils.classNames(Ca({isSelected:T&&k==="toggle",isFocusVisible:Y}),zb,v,"BaselineUI-ButtonSelect-Trigger"),style:_,isDisabled:s,excludeFromTabOrder:p})})})},[F,k,p,w,T,s,y,i,h,v,_]),j=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":N,"data-selected":T,"data-disabled":s,"data-expanded":S.isOpen,"data-button-behaviour":k}),O=oe(C),H=_t.useMemo(()=>({state:S,popoverAnchorRef:O}),[S,O]),Q=_t.useCallback(U=>typeof g=="function"?g(U,{isButton:false,isSelected:S.selectionManager.isSelected(U.id)}):g,[g,S.selectionManager]),V=_t.useCallback(U=>typeof f=="function"?f(U,{isButton:false,isSelected:S.selectionManager.isSelected(U.id)}):f,[f,S.selectionManager]);return jsxRuntime.jsx(Ta.Provider,{value:H,children:jsxRuntime.jsxs(D,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(vb,"BaselineUI-ButtonSelect",e),"aria-label":I["aria-label"],"aria-labelledby":I["aria-labelledby"],"aria-describedby":I["aria-describedby"],"aria-details":I["aria-details"],style:t,ref:O,...j,children:[E,jsxRuntime.jsx(st,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:o,...I,optionClassName:Q,optionStyle:V,variant:"ghost",renderTrigger:B,className:utils.classNames(_b,"BaselineUI-ButtonSelect-Select")})]})})});hb.displayName="ButtonSelect";var v$=W({more:{id:"more",defaultMessage:"More"}});var xb=z({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Cb=z({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),Pb=z({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),kb=z({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),wb=z({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Ib=z({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),Rb=z({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isHovered:true},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isOpen:true},"_1yep5z61qi _1yep5z61tw"]]});function $b({allowsCustomValue:e,onValueChange:t,inputValue:o},r,a,n,i){let[s,l]=_t.useState(null),p=_t.useRef(false);_t.useEffect(()=>{if(!t)return;let u=a.current,m=d=>{l(d.target);};return u?.addEventListener("focusin",m),()=>{u?.removeEventListener("focusin",m);}},[t,a,r.selectedKey]),granularHooks.useGranularEffect(()=>{r.selectedKey&&(t?.({value:r.selectedItem?.textValue,key:r.selectedKey}),p.current=false);},[r.selectedKey],[t,r.selectedItem]),reactAria.useInteractOutside({ref:n,isDisabled:!t,onInteractOutside:u=>{!i.current?.contains(u.target)&&s===n.current&&e&&p.current&&(t?.({value:n.current?.value,key:null}),p.current=false);}}),_t.useEffect(()=>{if(!t)return;let u=n.current,m=()=>{p.current=true;};return u?.addEventListener("input",m),()=>{u?.removeEventListener("input",m);}},[n,t]),_t.useEffect(()=>{p.current=false;},[o]);let{keyboardProps:c}=reactAria.useKeyboard({isDisabled:!t,onKeyDown:u=>{e&&u.key==="Enter"&&p.current?(t?.({value:n.current?.value,key:null}),p.current=false):u.key==="Escape"&&r.close(),u.continuePropagation();}});return {inputProps:c}}var Sb=_t__default.default.forwardRef(({className:e,style:t,inputStyle:o,inputClassName:r,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:l=false,onSelectionChange:p,onInputChange:c,isInvalid:u=false,labelPosition:m="top",validationState:d="valid",variant:b="primary",toggleLabel:y,renderOption:f,showIcon:g=true,filter:v,minValue:_,maxValue:h,inputType:x="text",onInputSubmit:I,onValueChange:C,tooltip:w,...P},S)=>{let k=reactAria.useObjectRef(S),{contains:T}=reactAria.useFilter({sensitivity:"base"}),$=ce(),R=reactStately.useComboBoxState({...P,defaultFilter:v||T,defaultItems:s,onSelectionChange:p,onInputChange:c,children:$,validationState:u?"invalid":"valid"}),N=_t__default.default.useRef(null),E=_t__default.default.useRef(null),F=_t__default.default.useRef(null),B=_t__default.default.useRef(null),j=_t__default.default.useRef(null),{inputProps:O}=$b({onValueChange:C,allowsCustomValue:P.allowsCustomValue,inputValue:P.inputValue},R,k,E,B),{buttonProps:H,inputProps:Q,listBoxProps:V,labelProps:U,errorMessageProps:re,descriptionProps:pe,validationErrors:Y}=reactAria.useComboBox({...P,inputRef:E,defaultItems:s,buttonRef:N,listBoxRef:F,popoverRef:B,validationState:d==="error"?"invalid":"valid"},R),be=P.errorMessage||Y.join(" "),_e=Ce({...P,errorMessage:be,descriptionProps:pe,errorMessageProps:re,labelPosition:m});be&&(d="error");let{hoverProps:Re,isHovered:ae}=reactAria.useHover({isDisabled:P.isDisabled}),{isFocused:ge,focusProps:Eo,isFocusVisible:Ft}=reactAria.useFocusRing(),jt=ao({isReadOnly:P.isReadOnly,validationState:d}),Ot=utils.filterTruthyValues({"data-read-only":P.isReadOnly,"data-disabled":P.isDisabled,"data-validation-state":d,"data-focused":ge,"data-focus-visible":Ft}),{labelProps:Z,fieldProps:G}=reactAria.useLabel({label:i,"aria-label":P["aria-label"],"aria-labelledby":P["aria-labelledby"],"aria-describedby":P["aria-describedby"],"aria-details":P["aria-details"]}),{keyboardProps:de}=reactAria.useKeyboard({onKeyDown:Lo=>{P.allowsCustomValue&&Lo.key==="Enter"&&I?.(Q.value?.toString()??"");}}),{focusProps:ee}=reactAria.useFocus({onBlur:()=>{P.allowsCustomValue&&Q.value&&I?.(Q.value?.toString()??"");}}),{tooltipProps:ze}=xe({tooltip:w,label:P["aria-label"]}),Ze=Lo=>{let{triggerProps:gg,triggerRef:vg}=Lo??{};return jsxRuntime.jsxs("div",{className:utils.classNames(xb({labelPosition:m}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:t,ref:k,children:[i||m==="start"&&_e?jsxRuntime.jsxs("div",{className:Ib({labelPosition:m,hasMessage:!!_e}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(U,Z),className:wb({isDisabled:P.isDisabled}),children:i}),m==="start"&&_e]}):null,jsxRuntime.jsxs("div",{...Re,className:kb({validationState:d,isHovered:ae,isFocused:ge,variant:b,isReadOnly:!!P.isReadOnly,isDisabled:!!P.isDisabled}),ref:j,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(gg,Q,O,Eo,Ot,G,ee,de,x==="number"?{type:"number",min:_,max:h,onKeyDown:Xn=>{(Xn.key==="ArrowUp"||Xn.key==="ArrowDown")&&Xn.preventDefault();}}:null),id:P.id,ref:M(vg,E),className:utils.classNames(Cb({isDisabled:P.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",r),style:o}),jt&&g?jsxRuntime.jsx(jt,{className:Pb({validationState:d,isReadOnly:P.isReadOnly}),size:16}):null,jsxRuntime.jsx(K,{...H,ref:N,variant:"popover",label:y,className:Rb({isFocusVisible:!P.isDisabled&&!P.isReadOnly&&Ft,isHovered:!P.isDisabled&&!P.isReadOnly&&ae,isOpen:R.isOpen})})]}),m==="top"&&_e]})};return jsxRuntime.jsxs(ht.Provider,{value:R,children:[ze?jsxRuntime.jsx(J,{...ze,children:Ze}):Ze(),jsxRuntime.jsx(ie,{ref:B,triggerRef:j,state:R,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(fe,{...V,items:s,ref:F,renderOption:f,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(rt,"BaselineUI-ComboBox-ListBox")})})]})});Sb.displayName="ComboBox";var Db=z({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var vl=_t__default.default.forwardRef(({enableReorder:e,...t},o)=>e?jsxRuntime.jsx(Mb,{ref:o,...t}):jsxRuntime.jsx(_l,{ref:o,...t}));vl.displayName="GridListItem";var _l=_t__default.default.forwardRef(({item:e,state:t,dropState:o,renderGridItem:r,dragHandleProps:a},n)=>{let i=oe(n),s=reactAria.useGridListItem({node:e},t,i),l=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:p}=reactAria.useGridListSelectionCheckbox({key:e.key},t),c={...s,checkBoxProps:l?p:void 0,dragHandleProps:a};return jsxRuntime.jsxs("div",{"data-grid-list-item-key":e.key,children:[o?jsxRuntime.jsx(Ht,{target:{type:"item",key:e.key,dropPosition:"before"},dropState:o}):null,r?r(e,c,i):null,o&&t.collection.getKeyAfter(e.key)==null?jsxRuntime.jsx(Ht,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:o}):null]},e.key)});_l.displayName="BaseGridListItem";var Mb=_t__default.default.forwardRef(({dragState:e,item:t,...o},r)=>{let a=reactAria.useDraggableItem({key:t.key,hasDragButton:true},e);return jsxRuntime.jsx(_l,{item:t,dragHandleProps:a,ref:r,...o})});Mb.displayName="DraggableGridListItem";var q$=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},Eb=_t__default.default.forwardRef(({className:e,style:t,isEditing:o=false,"data-block-id":r,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=false,layout:l="stack",orientation:p="vertical",renderGridItem:c,...u},m)=>{let d=ce(),b=reactStately.useListState({...u,children:d}),y=_t__default.default.useRef(null),f=oe(m),{gridProps:g}=reactAria.useGridList(u,b,f);qr({handle:n,type:"gridlist"},b,f);let{collectionProps:v,dragState:_,dropState:h}=jr({...u,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:y,getItems:C=>[...C].map(w=>{let P=b.collection.getItem(w);return utils.invariant(P,"Expected item to be defined."),{key:P.key.toString()}})},b,f),x=o?q$:g.onKeyDownCapture,I={state:b,dragState:_,dropState:h,enableReorder:s,renderGridItem:c};return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(g,v),className:utils.classNames("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":a,style:t,ref:f,"aria-rowcount":b.collection.size,onKeyDownCapture:x,children:[[...b.collection].map(C=>jsxRuntime.jsx(vl,{item:C,...I},C.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:C=>jsxRuntime.jsx(bn,{items:C,ulRef:f,containerClassName:".BaselineUI-GridList",previewClassName:Db(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});Eb.displayName="GridList";var Lb="_1yep5z6f5",Bb="_1dc3b8m0";var Ab=_t__default.default.forwardRef(({className:e,selectionMode:t,style:o,"data-block-id":r,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...l},p)=>{let c=oe(p),u=ce(),m=reactStately.useListState({...l,selectionMode:t,suppressTextValueWarning:true,children:u}),{actionGroupProps:d}=actiongroup.useActionGroup({...l,selectionMode:t,children:u},m,c),b=[...m.collection].map(y=>(utils.invariant(y.value),jsxRuntime.jsx(eT,{item:y,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},y.key)));return i?jsxRuntime.jsxs(D,{...d,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:[jsxRuntime.jsx(i,{"aria-hidden":"true",size:24,className:Lb}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:b})]}):jsxRuntime.jsx(D,{...d,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:b})});Ab.displayName="ActionGroup";var eT=({item:e,state:t,tooltipProps:o,renderActionItem:r,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:e.key},t),s=n||t.selectionManager.isDisabled(e.key),l=t.selectionManager.isSelected(e.key);utils.invariant(e.value);let{icon:p}=e.value;utils.invariant(p);let c=_t.useMemo(()=>(utils.invariant(e.value),typeof o=="function"?o(e.value):o),[o,e.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(e.key);}}),children:jsxRuntime.jsx(J,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...c,children:r?.(e,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(L,{variant:"tertiary",icon:p,"aria-label":e.textValue,size:"sm",isDisabled:s,className:utils.classNames({[Bb]:l},"BaselineUI-ActionGroup-Item")})})})};var Fb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",jb="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var Hb=_t__default.default.forwardRef(({className:e,style:t,items:o,optionsContainerClassName:r,label:a,icon:n,value:i,defaultValue:s,onChange:l,isDisabled:p,optionClassName:c,optionStyle:u,labelPosition:m="top","data-block-id":d,"data-block-class":b,shouldFocusWrap:y,tooltip:f=true,...g},v)=>{let _=_t.useMemo(()=>o.map(x=>({id:x.color,label:x.label})),[o]),h=reactAria.useId();return _t.useEffect(()=>{!a&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,g]),jsxRuntime.jsxs(D,{...ai(g),className:utils.classNames("BaselineUI-ColorSwatchPicker",e),"data-block-id":d,"data-block-class":b,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:v,children:[n||a?jsxRuntime.jsxs(D,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(te,{id:h,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(fe,{className:utils.classNames(jb,r),selectionMode:"single",items:_,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?_.map(x=>x.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:x=>{l?.([...x][0]);},optionClassName:c,optionStyle:u,renderOption:({key:x,textValue:I},{isSelected:C,isFocusVisible:w,isDisabled:P,optionProps:S},k)=>jsxRuntime.jsx("li",{...S,"data-disabled":P,className:utils.classNames(Fb,S.className),ref:k,children:jsxRuntime.jsx(pt,{isFocusVisible:w,color:x,isSelected:C,"aria-label":I,isInteractive:true,isDisabled:P,tooltip:f})}),shouldFocusWrap:y,...g,"aria-labelledby":a?h:g["aria-labelledby"]})]})});Hb.displayName="ColorSwatchPicker";var Vb=z({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),hn="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var Cl="\u2013";function xn({segment:e,state:t}){let o=_t__default.default.useRef(null),{segmentProps:r}=reactAria.useDateSegment(e,t,o),{focusProps:a,isFocused:n}=reactAria.useFocusRing(),i=_t.useMemo(()=>{let{text:s,type:l}=e;switch(l){case "hour":return s.replaceAll(Cl,"H");case "minute":return s.replaceAll(Cl,"M");case "second":return s.replaceAll(Cl,"S");default:return s}},[e]);return jsxRuntime.jsx(D,{...reactAria.mergeProps(r,a),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:n?"support.info.subtle":void 0,ref:o,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:Vb({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?i:e.text})}var qb=_t__default.default.forwardRef(({className:e,labelPosition:t,"data-block-id":o,"data-block-class":r,...a},n)=>{let{locale:i}=reactAria.useLocale(),s={...a,validationState:void 0,isInvalid:a.validationState==="error"||void 0},l=reactStately.useTimeFieldState({...s,locale:i}),p=_t__default.default.useRef(null),{labelProps:c,fieldProps:u,descriptionProps:m,errorMessageProps:d,validationErrors:b,isInvalid:y,inputProps:f}=reactAria.useTimeField(s,l,p),g=a.errorMessage||b.join(" "),v=Ce({...a,errorMessage:g,descriptionProps:m,errorMessageProps:d,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(Pt,{className:utils.classNames("BaselineUI-TimeField",e),labelProps:c,fieldProps:u,ref:n,wrapperRef:p,wrapperClassName:hn,labelPosition:t,message:v,isFocused:h,"data-block-id":o,"data-block-class":r,isInvalid:y,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...f})}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((x,I)=>jsxRuntime.jsx(xn,{segment:x,state:l},I))})]})});qb.displayName="TimeField";var Kb="_10dw1p96",Gb="_10dw1p95",Wb=z({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx"]]});function Zb(e,t){if(typeof e=="function"&&!e.prototype?.isReactComponent){let o=e(t);return _t.isValidElement(o)?e:o}return e}var Jb=({context:e,depth:t,children:o,item:r,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:l,primaryActionAriaLabel:p,secondaryActionAriaLabel:c,onRename:u,onAction:m,renderItemTitle:d=b=>b.data.label})=>{let{formatMessage:b}=A(),{hoverProps:y,isHovered:f}=reactAria.useHover({}),g=_t.useRef(null),{onKeyDown:v,..._}=e.interactiveElementProps;delete _.onFocus,delete _.onClick;let h=focus.createFocusManager(g),x=_t.useCallback($=>{if($.key==="ArrowRight"&&(e.isExpanded||!r.children?.length))g.current?.setAttribute("tabindex","-1"),$.preventDefault(),$.stopPropagation(),h.focusNext();else switch($.key){case "ArrowLeft":{h.focusPrevious()?($.preventDefault(),$.stopPropagation()):(v?.($),e.focusItem(true));break}case "Enter":{e.toggleExpandedState();break}default:v?.($);}},[e,h,v,r,g]),I=_t.useMemo(()=>{let $=Zb(s,r.index),R=Zb(l,r.index),N=typeof p=="function"?p(r.index):p,E=typeof c=="function"?c(r.index):c;return $||R?jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",children:[$?jsxRuntime.jsx(Ie,{icon:$,"aria-label":N,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(r.index);},tooltip:true}):null,R?jsxRuntime.jsx(Ie,{icon:R,"aria-label":E,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(r.index);},tooltip:true}):null]}):null},[s,r.index,l,p,c,a,n]),C=_t.useCallback($=>{$.key==="Enter"?(u?.({key:r.index,value:$.target.value}),e.stopRenamingItem()):$.key==="Escape"?(e.stopRenamingItem(),g.current?.setAttribute("tabindex","0"),g.current?.focus()):$.key!=="ArrowRight"&&$.key!=="ArrowLeft"&&$.key!=="ArrowUp"&&$.key!=="ArrowDown"&&!$.metaKey&&$.continuePropagation();},[r.index,e,u,g]),w=r.data.icon,P=!!u,{pressProps:S}=reactAria.usePress({onPress:()=>{m?.(r.index);}}),{isFocusVisible:k,focusProps:T}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:x,onFocus:()=>{e.focusItem(false);}},S,T,y,e.itemContainerWithoutChildrenProps,_),className:utils.classNames(Gb,Wb({isHovered:f,isSelected:e.isSelected,isFocusVisible:k,isRenaming:e.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":r.index,"data-expanded":r.isFolder?e.isExpanded:void 0,"aria-expanded":r.isFolder?e.isExpanded:void 0,"data-selected":e.isSelected,"aria-selected":e.isSelected,"data-depth":t,"aria-level":t+1,"aria-posinset":r.data.posInset,"aria-setsize":r.data.setSize,"aria-label":r.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:g,children:jsxRuntime.jsxs(D,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?I:null,jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(D,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${t*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(L,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState();},"aria-label":b(e.isExpanded?kl.collapse:kl.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:utils.classNames(Kb,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:true}),w?jsxRuntime.jsx(w,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(D,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:$=>{P&&($.stopPropagation(),$.preventDefault(),e.startRenamingItem());},children:[e.isRenaming?jsxRuntime.jsx("div",{onClick:$=>{$.stopPropagation();},children:jsxRuntime.jsx(at,{defaultValue:r.data.label,autoFocus:true,onBlur:$=>{u?.({key:r.index,value:$.target.value}),e.stopRenamingItem();},"aria-label":b(kl.rename),onKeyDown:C,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(te,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:d(r)}),r.data.description?jsxRuntime.jsx(te,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),i==="end"?I:null]})}),o]})},kl=W({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function AT(e,{posInset:t,setSize:o}){return {index:e.id,children:e.children?e.children.map(r=>r.id):[],data:{label:e.label,description:e.description,icon:e.icon,...e.data,posInset:t,setSize:o},isFolder:!!e.children?.length}}function FT(e,t){let o={};function r(a,n,i){if(o[a.id]=t(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)r(a.children[s],s+1,a.children.length);}return r(e,0,0),o}var o5=_t__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,actionsPosition:m="start",onRename:d,onAction:b,renderItemTitle:y,...f},g)=>{let v=ce(),_=_t.useRef(null),h=reactStately.useTreeState({...f,selectionMode:"multiple",items:a.children,children:v}),x=_t.useMemo(()=>Object.fromEntries(Object.entries(FT(a,AT)).map(([k,T])=>[k,{...T,canRename:!!d}])),[a,d]),I=reactAria.useId(),[C,w]=_t__default.default.useState(a.children?.[0]?.id??""),P=_t.useRef(C),S=_t.useMemo(()=>({[`tree-${I}`]:{focusedItem:C,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[C,h.expandedKeys,h.selectionManager.selectedKeys,I]);return _t.useEffect(()=>{if(!_.current)return;let k=_.current.getRootNode(),T=k instanceof ShadowRoot,$=_.current?.contains(k?.activeElement??null);T&&$&&k?.querySelector(`[data-rct-item-id="${C}"]`)?.focus();},[C]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:x,getItemTitle:k=>k.data?.label,viewState:S,onExpandItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys,k.index])),f.onExpand?.(k.index.toString());},onFocusItem:k=>{w(k.index),k.index&&(P.current=k.index);},onCollapseItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(T=>T!==k.index))),f.onCollapse?.(k.index.toString());},onSelectItems:k=>{h.selectionManager.setSelectedKeys(new Set(k));},renderItem:k=>jsxRuntime.jsx(Jb,{...k,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,onRename:d,onAction:b,renderItemTitle:y}),renderLiveDescriptorContainer:({children:k})=>jsxRuntime.jsx(Pe,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:k})}),renderTreeContainer:({containerProps:k,children:T})=>jsxRuntime.jsx("div",{...$e(k,{onBlur:$=>{$.currentTarget.contains($.relatedTarget)||$.currentTarget.querySelector(`[data-key="${P.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":o,"data-block-class":r,style:{...t,...k.style},className:utils.classNames(e,"BaselineUI-TreeView"),ref:M(g,k.ref,_),role:"treegrid",children:T}),renderItemsContainer:({children:k})=>k,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${I}`,rootItem:n,treeLabel:f["aria-label"],treeLabelledBy:f["aria-labelledby"]})})});o5.displayName="TreeView";var KT=_t.forwardRef(({className:e,isCollapsible:t=false,...o},r)=>{let a=_t.useRef(null),n=reactAria.useId();return _t.useImperativeHandle(r,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",e),collapsible:t,ref:a,id:n,...o})});KT.displayName="Panel";var QT=_t.forwardRef(({className:e,...t},o)=>{let r=_t.useRef(null);return _t.useImperativeHandle(o,()=>({setLayout:r.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",e),ref:r,...t})});QT.displayName="PanelGroup";var r5="_6abhjk0";var r4=({className:e,isDisabled:t=false,...o})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:t,className:utils.classNames(r5,"BaselineUI-PanelResizeHandle",e),...o});r4.displayName="PanelResizeHandle";var a5=z({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),n5="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var p4=()=>{};function c4({state:e,...t}){let o=_t__default.default.useRef(null),{toastProps:r,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(t,e,o),l=_t.useMemo(()=>({root:r,title:n,content:a,description:i,close:s}),[r,n,a,i,s]),{canClose:p=true,...c}=t.toast.content;return jsxRuntime.jsx(Na,{elementProps:l,...c,className:utils.classNames(a5({variant:c.variant||"info"}),c.className),onClose:p?p4:void 0})}var s5=_t__default.default.forwardRef(({state:e,style:t,className:o,...r},a)=>{let n=oe(a),{regionProps:i}=toast$1.useToastRegion(r,e,n),s={zIndex:1,...t,...i.style};return jsxRuntime.jsx("div",{...i,ref:n,className:utils.classNames(n5,o),style:s,children:e.visibleToasts.map(l=>jsxRuntime.jsx(c4,{toast:l,state:e},l.key))})});s5.displayName="ToastRegion";var l5=_t__default.default.forwardRef(({toastQueue:e,portalContainer:t,...o},r)=>{let a=toast.useToastQueue(e),n=ye(t);return a.visibleToasts.length>0?jsxRuntime.jsx(Pe,{portalContainer:n,ref:r,children:jsxRuntime.jsx(s5,{state:a,...o})}):null});l5.displayName="GlobalToastRegion";function We(e,t){return e-t*Math.floor(e/t)}var p5=1721426;function mt(e,t,o,r){t=ft(e,t);let a=t-1,n=-2;return o<=2?n=0:Ye(t)&&(n=-1),p5-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*o-362)/12+n+r)}function Ye(e){return e%4===0&&(e%100!==0||e%400===0)}function ft(e,t){return e==="BC"?1-t:t}function Bt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var d4={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},le=class{fromJulianDay(t){let o=t,r=o-p5,a=Math.floor(r/146097),n=We(r,146097),i=Math.floor(n/36524),s=We(n,36524),l=Math.floor(s/1461),p=We(s,1461),c=Math.floor(p/365),u=a*400+i*100+l*4+c+(i!==4&&c!==4?1:0),[m,d]=Bt(u),b=o-mt(m,d,1,1),y=2;o<mt(m,d,3,1)?y=0:Ye(d)&&(y=1);let f=Math.floor(((b+y)*12+373)/367),g=o-mt(m,d,f,1)+1;return new X(m,d,f,g)}toJulianDay(t){return mt(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return d4[Ye(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ye(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function Rl(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function d5(e,t){return c5(e)-c5(t)}function c5(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Il=null;function $l(){return Il==null&&(Il=new Intl.DateTimeFormat().resolvedOptions().timeZone),Il}function Tl(e){e=kn(e,new le);let t=ft(e.era,e.year);return y5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function y5(e,t,o,r,a,n,i){let s=new Date;return s.setUTCHours(r,a,n,i),s.setUTCFullYear(e,t-1,o),s.getTime()}function u5(e,t){if(t==="UTC")return 0;if(e>0&&t===$l())return new Date(e).getTimezoneOffset()*-6e4;let{year:o,month:r,day:a,hour:n,minute:i,second:s}=b5(e,t);return y5(o,r,a,n,i,s,0)-Math.floor(e/1e3)*1e3}var m5=new Map;function b5(e,t){let o=m5.get(t);o||(o=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),m5.set(t,o));let r=o.formatToParts(new Date(e)),a={};for(let n of r)n.type!=="literal"&&(a[n.type]=n.value);return {year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}var f5=864e5;function u4(e,t,o,r){return (o===r?[o]:[o,r]).filter(n=>m4(e,t,n))}function m4(e,t,o){let r=b5(o,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function g5(e,t,o="compatible"){let r=Pn(e);if(t==="UTC")return Tl(r);if(t===$l()&&o==="compatible"){r=kn(r,new le);let l=new Date,p=ft(r.era,r.year);return l.setFullYear(p,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let a=Tl(r),n=u5(a-f5,t),i=u5(a+f5,t),s=u4(r,t,a-n,a-i);if(s.length===1)return s[0];if(s.length>1)switch(o){case "compatible":case "earlier":return s[0];case "later":return s[s.length-1];case "reject":throw new RangeError("Multiple possible absolute times found")}switch(o){case "earlier":return Math.min(a-n,a-i);case "compatible":case "later":return Math.max(a-n,a-i);case "reject":throw new RangeError("No such absolute time found")}}function Sl(e,t,o="compatible"){return new Date(g5(e,t,o))}function Pn(e,t){let o=0,r=0,a=0,n=0;if("timeZone"in e)({hour:o,minute:r,second:a,millisecond:n}=e);else if("hour"in e&&true)return e;return new wn(e.calendar,e.era,e.year,e.month,e.day,o,r,a,n)}function kn(e,t){if(e.calendar.identifier===t.identifier)return e;let o=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=o.era,r.year=o.year,r.month=o.month,r.day=o.day,yt(r),r}function Rn(e,t){let o=e.copy(),r="hour"in o?g4(o,t):0;Dl(o,t.years||0),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e),o.month+=t.months||0,Ml(o),v5(o),o.day+=(t.weeks||0)*7,o.day+=t.days||0,o.day+=r,f4(o),o.calendar.balanceDate&&o.calendar.balanceDate(o),o.year<1&&(o.year=1,o.month=1,o.day=1);let a=o.calendar.getYearsInEra(o);if(o.year>a){var n,i;let l=(n=(i=o.calendar).isInverseEra)===null||n===void 0?void 0:n.call(i,o);o.year=a,o.month=l?1:o.calendar.getMonthsInYear(o),o.day=l?1:o.calendar.getDaysInMonth(o);}o.month<1&&(o.month=1,o.day=1);let s=o.calendar.getMonthsInYear(o);return o.month>s&&(o.month=s,o.day=o.calendar.getDaysInMonth(o)),o.day=Math.max(1,Math.min(o.calendar.getDaysInMonth(o),o.day)),o}function Dl(e,t){var o,r;!((o=(r=e.calendar).isInverseEra)===null||o===void 0)&&o.call(r,e)&&(t=-t),e.year+=t;}function Ml(e){for(;e.month<1;)Dl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Dl(e,1);}function f4(e){for(;e.day<1;)e.month--,Ml(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Ml(e);}function v5(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day));}function yt(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),v5(e);}function y4(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function Nl(e,t){return Rn(e,y4(t))}function El(e,t){let o=e.copy();return t.era!=null&&(o.era=t.era),t.year!=null&&(o.year=t.year),t.month!=null&&(o.month=t.month),t.day!=null&&(o.day=t.day),yt(o),o}function _5(e,t){let o=e.copy();return t.hour!=null&&(o.hour=t.hour),t.minute!=null&&(o.minute=t.minute),t.second!=null&&(o.second=t.second),t.millisecond!=null&&(o.millisecond=t.millisecond),z5(o),o}function b4(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=In(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=In(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=In(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=In(e.hour,24),t}function z5(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23));}function In(e,t){let o=e%t;return o<0&&(o+=t),o}function g4(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,b4(e)}function Ll(e,t,o,r){let a=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=bt(l,o,0,s.length-1,r?.round),a.era=s[l],yt(a);break}case "year":var n,i;!((n=(i=a.calendar).isInverseEra)===null||n===void 0)&&n.call(i,a)&&(o=-o),a.year=bt(e.year,o,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case "month":a.month=bt(e.month,o,1,e.calendar.getMonthsInYear(e),r?.round);break;case "day":a.day=bt(e.day,o,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),yt(a),a}function h5(e,t,o,r){let a=e.copy();switch(t){case "hour":{let n=e.hour,i=0,s=23;if(r?.hourCycle===12){let l=n>=12;i=l?12:0,s=l?23:11;}a.hour=bt(n,o,i,s,r?.round);break}case "minute":a.minute=bt(e.minute,o,0,59,r?.round);break;case "second":a.second=bt(e.second,o,0,59,r?.round);break;case "millisecond":a.millisecond=bt(e.millisecond,o,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return a}function bt(e,t,o,r,a=false){if(a){e+=Math.sign(t),e<o&&(e=r);let n=Math.abs(t);t>0?e=Math.ceil(e/n)*n:e=Math.floor(e/n)*n,e>r&&(e=o);}else e+=t,e<o?e=r-(o-e-1):e>r&&(e=o+(e-r-1));return e}function x5(e){return `${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Bl(e){let t=kn(e,new le),o;return t.era==="BC"?o=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):o=String(t.year).padStart(4,"0"),`${o}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function C5(e){return `${Bl(e)}T${x5(e)}`}function P5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Al(e,t,o){P5(e,t),t.set(e,o);}function k5(e){let t=typeof e[0]=="object"?e.shift():new le,o;if(typeof e[0]=="string")o=e.shift();else {let i=t.getEras();o=i[i.length-1];}let r=e.shift(),a=e.shift(),n=e.shift();return [t,o,r,a,n]}var _4=new WeakMap,X=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return Rn(this,t)}subtract(t){return Nl(this,t)}set(t){return El(this,t)}cycle(t,o,r){return Ll(this,t,o,r)}toDate(t){return Sl(this,t)}toString(){return Bl(this)}compare(t){return Rl(this,t)}constructor(...t){Al(this,_4,{writable:true,value:void 0});let[o,r,a,n,i]=k5(t);this.calendar=o,this.era=r,this.year=a,this.month=n,this.day=i,yt(this);}};var z4=new WeakMap,wn=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Rn(this,t)}subtract(t){return Nl(this,t)}set(t){return El(_5(this,t),t)}cycle(t,o,r){switch(t){case "era":case "year":case "month":case "day":return Ll(this,t,o,r);default:return h5(this,t,o,r)}}toDate(t,o){return Sl(this,t,o)}toString(){return C5(this)}compare(t){let o=Rl(this,t);return o===0?d5(this,Pn(t)):o}constructor(...t){Al(this,z4,{writable:true,value:void 0});let[o,r,a,n,i]=k5(t);this.calendar=o,this.era=r,this.year=a,this.month=n,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,yt(this);}};var $o=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],h4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],$n=[1867,1911,1925,1988,2018],gt=["meiji","taisho","showa","heisei","reiwa"];function w5(e){let t=$o.findIndex(([o,r,a])=>e.year<o||e.year===o&&e.month<r||e.year===o&&e.month===r&&e.day<a);return t===-1?$o.length-1:t===0?0:t-1}function Fl(e){let t=$n[gt.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new X(e.year+t,e.month,e.day)}var Tn=class extends le{fromJulianDay(t){let o=super.fromJulianDay(t),r=w5(o);return new X(this,gt[r],o.year-$n[r],o.month,o.day)}toJulianDay(t){return super.toJulianDay(Fl(t))}balanceDate(t){let o=Fl(t),r=w5(o);gt[r]!==t.era&&(t.era=gt[r],t.year=o.year-$n[r]),this.constrainDate(t);}constrainDate(t){let o=gt.indexOf(t.era),r=h4[o];if(r!=null){let[a,n,i]=r,s=a-$n[o];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)));}if(t.year===1&&o>=0){let[,a,n]=$o[o];t.month=Math.max(a,t.month),t.month===a&&(t.day=Math.max(n,t.day));}}getEras(){return gt}getYearsInEra(t){let o=gt.indexOf(t.era),r=$o[o],a=$o[o+1];if(a==null)return 9999-r[0]+1;let n=a[0]-r[0];return (t.month<a[1]||t.month===a[1]&&t.day<a[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Fl(t))}getMinimumMonthInYear(t){let o=I5(t);return o?o[1]:1}getMinimumDayInMonth(t){let o=I5(t);return o&&t.month===o[1]?o[2]:1}constructor(...t){super(...t),this.identifier="japanese";}};function I5(e){if(e.year===1){let t=gt.indexOf(e.era);return $o[t]}}var $5=-543,Sn=class extends le{fromJulianDay(t){let o=super.fromJulianDay(t),r=ft(o.era,o.year);return new X(this,r-$5,o.month,o.day)}toJulianDay(t){return super.toJulianDay(R5(t))}getEras(){return ["BE"]}getDaysInMonth(t){return super.getDaysInMonth(R5(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist";}};function R5(e){let[t,o]=Bt(e.year+$5);return new X(t,o,e.month,e.day)}var Dn=1911;function D5(e){return e.era==="minguo"?e.year+Dn:1-e.year+Dn}function T5(e){let t=e-Dn;return t>0?["minguo",t]:["before_minguo",1-t]}var Mn=class extends le{fromJulianDay(t){let o=super.fromJulianDay(t),r=ft(o.era,o.year),[a,n]=T5(r);return new X(this,a,n,o.month,o.day)}toJulianDay(t){return super.toJulianDay(S5(t))}getEras(){return ["before_minguo","minguo"]}balanceDate(t){let[o,r]=T5(D5(t));t.era=o,t.year=r;}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(S5(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Dn}constructor(...t){super(...t),this.identifier="roc";}};function S5(e){let[t,o]=Bt(D5(e));return new X(t,o,e.month,e.day)}var M5=1948320,N5=[0,31,62,93,124,155,186,216,246,276,306,336],Nn=class{fromJulianDay(t){let o=t-M5,r=1+Math.floor((33*o+3)/12053),a=365*(r-1)+Math.floor((8*r+21)/33),n=o-a,i=n<216?Math.floor(n/31):Math.floor((n-6)/30),s=n-N5[i]+1;return new X(this,r,i+1,s)}toJulianDay(t){let o=M5-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return o+=N5[t.month-1],o+=t.day,o}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||We(25*t.year+11,33)<8?30:29}getEras(){return ["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian";}};var jl=78,E5=80,En=class extends le{fromJulianDay(t){let o=super.fromJulianDay(t),r=o.year-jl,a=t-mt(o.era,o.year,1,1),n;a<E5?(r--,n=Ye(o.year-1)?31:30,a+=n+155+90+10):(n=Ye(o.year)?31:30,a-=E5);let i,s;if(a<n)i=1,s=a+1;else {let l=a-n;l<155?(i=Math.floor(l/31)+2,s=l%31+1):(l-=155,i=Math.floor(l/30)+7,s=l%30+1);}return new X(this,r,i,s)}toJulianDay(t){let o=t.year+jl,[r,a]=Bt(o),n,i;return Ye(a)?(n=31,i=mt(r,a,3,21)):(n=30,i=mt(r,a,3,22)),t.month===1?i+t.day-1:(i+=n+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&Ye(t.year+jl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return ["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian";}};var Bn=1948440,L5=1948439,De=1300,To=1600,x4=460322;function An(e,t,o,r){return r+Math.ceil(29.5*(o-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function j5(e,t,o){let r=Math.floor((30*(o-t)+10646)/10631),a=Math.min(12,Math.ceil((o-(29+An(t,r,1,1)))/29.5)+1),n=o-An(t,r,a,1)+1;return new X(e,r,a,n)}function B5(e){return (14+11*e)%30<11}var Do=class{fromJulianDay(t){return j5(this,Bn,t)}toJulianDay(t){return An(Bn,t.year,t.month,t.day)}getDaysInMonth(t){let o=29+t.month%2;return t.month===12&&B5(t.year)&&o++,o}getMonthsInYear(){return 12}getDaysInYear(t){return B5(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return ["AH"]}constructor(){this.identifier="islamic-civil";}},Fn=class extends Do{fromJulianDay(t){return j5(this,L5,t)}toJulianDay(t){return An(L5,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla";}},C4="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Ol,So;function Ln(e){return x4+So[e-De]}function Mr(e,t){let o=e-De,r=1<<11-(t-1);return (Ol[o]&r)===0?29:30}function A5(e,t){let o=Ln(e);for(let r=1;r<t;r++)o+=Mr(e,r);return o}function F5(e){return So[e+1-De]-So[e-De]}var jn=class extends Do{fromJulianDay(t){let o=t-Bn,r=Ln(De),a=Ln(To);if(o<r||o>a)return super.fromJulianDay(t);{let n=De-1,i=1,s=1;for(;s>0;){n++,s=o-Ln(n)+1;let l=F5(n);if(s===l){i=12;break}else if(s<l){let p=Mr(n,i);for(i=1;s>p;)s-=p,i++,p=Mr(n,i);break}}return new X(this,n,i,o-A5(n,i)+1)}}toJulianDay(t){return t.year<De||t.year>To?super.toJulianDay(t):Bn+A5(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<De||t.year>To?super.getDaysInMonth(t):Mr(t.year,t.month)}getDaysInYear(t){return t.year<De||t.year>To?super.getDaysInYear(t):F5(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ol||(Ol=new Uint16Array(Uint8Array.from(atob(C4),t=>t.charCodeAt(0)).buffer)),!So){So=new Uint32Array(To-De+1);let t=0;for(let o=De;o<=To;o++){So[o-De]=t;for(let r=1;r<=12;r++)t+=Mr(o,r);}}}};var O5=347997,H5=1080,V5=24*H5,P4=29,k4=12*H5+793,w4=P4*V5+k4;function At(e){return We(e*7+1,19)<7}function Hn(e){let t=Math.floor((235*e-234)/19),o=12084+13753*t,r=t*29+Math.floor(o/25920);return We(3*(r+1),7)<3&&(r+=1),r}function I4(e){let t=Hn(e-1),o=Hn(e);return Hn(e+1)-o===356?2:o-t===382?1:0}function Nr(e){return Hn(e)+I4(e)}function U5(e){return Nr(e+1)-Nr(e)}function R4(e){let t=U5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function On(e,t){if(t>=6&&!At(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let o=R4(e);return t===2?o===2?30:29:t===3?o===0?29:30:t===6?At(e)?30:0:30}var Vn=class{fromJulianDay(t){let o=t-O5,r=o*V5/w4,a=Math.floor((19*r+234)/235)+1,n=Nr(a),i=Math.floor(o-n);for(;i<1;)a--,n=Nr(a),i=Math.floor(o-n);let s=1,l=0;for(;l<i;)l+=On(a,s),s++;s--,l-=On(a,s);let p=i-l;return new X(this,a,s,p)}toJulianDay(t){let o=Nr(t.year);for(let r=1;r<t.month;r++)o+=On(t.year,r);return o+t.day+O5}getDaysInMonth(t){return On(t.year,t.month)}getMonthsInYear(t){return At(t.year)?13:12}getDaysInYear(t){return U5(t.year)}getYearsInEra(){return 9999}getEras(){return ["AM"]}balanceYearMonth(t,o){o.year!==t.year&&(At(o.year)&&!At(t.year)&&o.month>6?t.month--:!At(o.year)&&At(t.year)&&o.month>6&&t.month++);}constructor(){this.identifier="hebrew";}};var Hl=1723856,q5=1824665,Vl=5500;function Un(e,t,o,r){return e+365*t+Math.floor(t/4)+30*(o-1)+r-1}function Ul(e,t){let o=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Un(e,o,1,1))/30),a=t+1-Un(e,o,r,1);return [o,r,a]}function K5(e){return Math.floor(e%4/3)}function G5(e,t){return t%13!==0?30:K5(e)+5}var Mo=class{fromJulianDay(t){let[o,r,a]=Ul(Hl,t),n="AM";return o<=0&&(n="AA",o+=Vl),new X(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="AA"&&(o-=Vl),Un(Hl,o,t.month,t.day)}getDaysInMonth(t){return G5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+K5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return ["AA","AM"]}constructor(){this.identifier="ethiopic";}},qn=class extends Mo{fromJulianDay(t){let[o,r,a]=Ul(Hl,t);return o+=Vl,new X(this,"AA",o,r,a)}getEras(){return ["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa";}},Kn=class extends Mo{fromJulianDay(t){let[o,r,a]=Ul(q5,t),n="CE";return o<=0&&(n="BCE",o=1-o),new X(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="BCE"&&(o=1-o),Un(q5,o,t.month,t.day)}getDaysInMonth(t){let o=t.year;return t.era==="BCE"&&(o=1-o),G5(o,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year);}getEras(){return ["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic";}};function ql(e){switch(e){case "buddhist":return new Sn;case "ethiopic":return new Mo;case "ethioaa":return new qn;case "coptic":return new Kn;case "hebrew":return new Vn;case "indian":return new En;case "islamic-civil":return new Do;case "islamic-tbla":return new Fn;case "islamic-umalqura":return new jn;case "japanese":return new Tn;case "persian":return new Nn;case "roc":return new Mn;case "gregory":default:return new le}}var Y5=_t__default.default.forwardRef(({className:e,labelPosition:t,"data-block-id":o,"data-block-class":r,...a},n)=>{let{locale:i}=reactAria.useLocale(),s={...a,validationState:void 0,isInvalid:a.validationState==="error"||void 0},l=reactStately.useDateFieldState({...s,locale:i,createCalendar:ql}),p=_t__default.default.useRef(null),{labelProps:c,fieldProps:u,validationErrors:m,descriptionProps:d,inputProps:b,errorMessageProps:y,isInvalid:f}=reactAria.useDateField(s,l,p),g=a.errorMessage||m.join(" "),v=Ce({...a,errorMessage:g,descriptionProps:d,errorMessageProps:y,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(Pt,{className:utils.classNames("BaselineUI-DateField",e),labelProps:c,fieldProps:u,ref:n,wrapperRef:p,wrapperClassName:hn,labelPosition:t,message:v,isFocused:h,"data-block-id":o,"data-block-class":r,isInvalid:f,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...b})}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((x,I)=>jsxRuntime.jsx(xn,{segment:x,state:l},I))})]})});Y5.displayName="DateField";var X5={x:0,y:0},A4={node:null,setNode:()=>{},coordinates:X5,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:false},Xe=_t__default.default.createContext(A4),Z5=({children:e,isDisabled:t=false,coordinates:o,onMove:r})=>{let[a,n]=_t__default.default.useState(null),i=_t__default.default.useRef(null),[s,l]=utils$1.useControlledState(o,X5,u=>{r?.({coordinates:u,boundingRect:i.current});}),p=reactAria.useId(),c=_t__default.default.useMemo(()=>({node:a,setNode:n,coordinates:s,setCoordinates:l,displayId:p,boundsRef:i,isDisabled:t}),[a,s,p,l,n,i,t]);return jsxRuntime.jsx(Xe.Provider,{value:c,children:e})};Z5.displayName="Magnifier";var J5="_1yep5z6f6",Q5=z({defaultClassName:"_1aj2a4v6",variantClassNames:{isDisabled:{true:"_1aj2a4v7",false:"_1aj2a4v8"},isIndicatorVisible:{true:"_1aj2a4v9",false:"_1aj2a4va"}},defaultVariants:{},compoundVariants:[[{isDisabled:false,isIndicatorVisible:true},"_1aj2a4vb"],[{isDisabled:false,isIndicatorVisible:false},"_1aj2a4vc"]]}),eg="_1aj2a4vd",tg="_1aj2a4v1",og="_1aj2a4v4",Kl="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",rg="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",ag="_1aj2a4v0",ng="_1aj2a4v5";var sg=e=>jsxRuntime.jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:tokens.themeVars.color.background.positive.subtle}),jsxRuntime.jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:tokens.themeVars.color.background.positive.interactive.enabled})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsxRuntime.jsx("feOffset",{}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:2}),jsxRuntime.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsxRuntime.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsxRuntime.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]});function lg({coordinates:e,setCoordinates:t,boundsRef:o,onKeyDown:r,onKeyUp:a}){let{isDisabled:n}=_t.useContext(Xe);return reactAria.useKeyboard({isDisabled:n,onKeyDown:i=>{r?.(i);let s=i.shiftKey?10:1,l=o.current;if(!l)return;let p;switch(i.key){case "ArrowRight":{i.preventDefault(),p={x:lodash.clamp(e.x+s,0,l.width),y:lodash.clamp(e.y,0,l.height)};break}case "ArrowLeft":{i.preventDefault(),p={x:lodash.clamp(e.x-s,0,l.width),y:lodash.clamp(e.y,0,l.height)};break}case "ArrowDown":{i.preventDefault(),p={x:lodash.clamp(e.x,0,l.width),y:lodash.clamp(e.y+s,0,l.height)};break}case "ArrowUp":{i.preventDefault(),p={x:lodash.clamp(e.x,0,l.width),y:lodash.clamp(e.y-s,0,l.height)};break}}p&&t(p);},onKeyUp:a})}var cg=_t__default.default.forwardRef(({children:e,onPress:t,className:o,style:r,"data-block-id":a,"data-block-class":n,onFocusChange:i,onBlur:s,onFocus:l,onKeyDown:p,onKeyUp:c,...u},m)=>{let{setNode:d,setCoordinates:b,coordinates:y,displayId:f,boundsRef:g,isDisabled:v}=_t.useContext(Xe),_=_t.useRef(null),[h,x]=_t.useState(false),I=interactions.useInteractionModality(),C=Ee();_t.useEffect(()=>{let E=_.current;if(!E||v)return;let F=j=>{let O=E.getBoundingClientRect();g.current=O;let H="clientX"in j?j.clientX:j.touches[0].clientX,Q="clientY"in j?j.clientY:j.touches[0].clientY,V={x:lodash.clamp(H-O.left,0,O.width),y:lodash.clamp(Q-O.top,0,O.height)};b(V),x(true);},B=()=>{x(false);};return E.addEventListener("mousemove",F),E.addEventListener("touchmove",F),E.addEventListener("mouseleave",B),()=>{E.removeEventListener("mousemove",F),E.removeEventListener("touchmove",F),E.removeEventListener("mouseleave",B);}},[b,g,v]);let{pressProps:w}=reactAria.usePress({isDisabled:v,onPress:E=>{E.pointerType==="keyboard"?t?.({...E,x:y.x,y:y.y}):t?.(E);}}),{focusProps:P,isFocusVisible:S,isFocused:k}=reactAria.useFocusRing(),{focusProps:T}=interactions.useFocus({isDisabled:v,onFocusChange:E=>{if(I==="keyboard")if(E){x(true);let F=_.current?.getBoundingClientRect();if(!F)return;g.current=F,b({x:lodash.clamp(F.width/2,0,F.width),y:lodash.clamp(F.height/2,0,F.height)});}else x(false);i?.(E);},onFocus:l,onBlur:s}),{keyboardProps:$}=lg({coordinates:y,setCoordinates:b,boundsRef:g,onKeyDown:p,onKeyUp:c}),R=_t.useMemo(()=>_.current?utils.getAbsolutePosition(_.current,y):{x:0,y:0},[y]);interactions.useInteractOutside({isDisabled:v,ref:_,onInteractOutside:()=>{x(false);}});let N=_t.useMemo(()=>h&&!v&&(C==="mobile"||I==="keyboard"),[h,v,C,I]);return jsxRuntime.jsxs("div",{ref:M(m,_),className:utils.classNames(eg,"BaselineUI-Magnifier-Content",o),style:r,"data-block-id":a,"data-block-class":n,"aria-controls":f,role:"application",...u,children:[N?jsxRuntime.jsx(Pe,{children:jsxRuntime.jsx(sg,{style:{left:R.x,top:R.y},className:utils.classNames(ag,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...$e(w,P,$,T),ref:d,className:utils.classNames(Q5({isDisabled:v,isIndicatorVisible:N}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":S,"data-focused":k,tabIndex:v?void 0:0,children:e})]})});cg.displayName="MagnifierContent";function a8(e){let t=[];for(let o=0;o<e.length;o++){let r=e[o],a=e.getPropertyValue(r);a&&t.push(`${r}: ${a}`);}for(let o of e)if(o.startsWith("--")){let r=e.getPropertyValue(o);r&&t.push(`${o}: ${r}`);}return t.join("; ")}function dg(e){let[t,o]=_t.useState(null),{isDisabled:r}=_t.useContext(Xe);return _t.useEffect(()=>{if(!e||r)return;let a=e,n=ne(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(true);c.style.cssText=a8(p);let u=a.getBoundingClientRect();c.style.setProperty("width",`${u.width}px`),c.style.setProperty("height",`${u.height}px`),c.style.setProperty("position","static"),c.style.setProperty("margin","0"),c.style.setProperty("left","0"),c.style.setProperty("top","0"),c.style.setProperty("transform","none"),c.style.removeProperty("-webkit-text-fill-color"),c.style.removeProperty("-webkit-text-stroke-color"),c.removeAttribute("aria-controls"),c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true");let m=utils.findFocusableElements(c);if(m)for(let d of m)d.setAttribute("tabindex","-1");"scrollTop"in a&&(c.scrollTop=a.scrollTop),"scrollLeft"in a&&(c.scrollLeft=a.scrollLeft),o(c);}i();let s=new ResizeObserver(i),l=new MutationObserver(i);return s.observe(a),l.observe(a,{attributes:true,childList:true,subtree:true,characterData:true}),()=>{s.disconnect(),l.disconnect();}},[e,r]),t}var mg=8,fg=7,yg=7,bg=_t__default.default.forwardRef(({className:e,style:t,description:o,scale:r=2,"data-block-id":a,"data-block-class":n},i)=>{let{coordinates:s,node:l,boundsRef:p,displayId:c,isDisabled:u}=_t.useContext(Xe),m=dg(l),d=_t.useMemo(()=>typeof o=="function"?o({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):o,[o,s,p]),b=_t.useMemo(()=>p.current?{x:s.x/p.current.width,y:s.y/p.current.height}:{x:0,y:0},[p,s]);return jsxRuntime.jsxs(D,{ref:i,className:utils.classNames(tg,"BaselineUI-Magnifier-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:d?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:c,"data-block-id":a,"data-block-class":n,role:"complementary",children:[jsxRuntime.jsxs("div",{className:rg,children:[m&&!u?jsxRuntime.jsx(Qr,{node:m,style:{transform:`scale(${r}) translate(calc(-${b.x*100}% + ${mg*fg/(2*r)}px), calc(-${b.y*100}% + ${mg*yg/(2*r)}px))`},className:utils.classNames(ng,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:fg*yg}).map((y,f)=>f===24?jsxRuntime.jsx("div",{className:utils.classNames(Kl,og)},f):jsxRuntime.jsx("div",{className:Kl},f))]}),d?.length?jsxRuntime.jsx(D,{display:"flex",gap:"lg",flexDirection:"column",children:d?.map(({label:y,icon:f},g)=>jsxRuntime.jsxs(D,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsxRuntime.jsx(f,{size:12,className:J5}),jsxRuntime.jsx(te,{type:"label",size:"sm",children:y})]},y+g))}):null]})});bg.displayName="MagnifierDisplay";
13
- Object.defineProperty(exports,"useCollator",{enumerable:true,get:function(){return reactAria.useCollator}});Object.defineProperty(exports,"useDateFormatter",{enumerable:true,get:function(){return reactAria.useDateFormatter}});Object.defineProperty(exports,"useNumberFormatter",{enumerable:true,get:function(){return reactAria.useNumberFormatter}});Object.defineProperty(exports,"MotionGlobalConfig",{enumerable:true,get:function(){return react.MotionGlobalConfig}});Object.defineProperty(exports,"ToastQueue",{enumerable:true,get:function(){return toast.ToastQueue}});exports.Accordion=rm;exports.AccordionItem=cm;exports.ActionButton=K;exports.ActionGroup=Ab;exports.ActionGroupItem=eT;exports.ActionIconButton=L;exports.AlertDialog=mn;exports.AudioPlayer=Z1;exports.Avatar=uo;exports.Box=D;exports.ButtonSelect=hb;exports.Checkbox=ku;exports.ColorInput=yo;exports.ColorSwatch=pt;exports.ColorSwatchPicker=Hb;exports.ComboBox=Sb;exports.DateField=Y5;exports.DateFormat=Lu;exports.DeviceProvider=e_;exports.DeviceProviderContext=sa;exports.Dialog=ke;exports.DialogTitle=ed;exports.DomNodeRenderer=Qr;exports.Drawer=ya;exports.Editor=T1;exports.FileUpload=Gd;exports.Focusable=ma;exports.FrameProvider=c_;exports.FreehandCanvas=Uf;exports.GlobalToastRegion=l5;exports.GridList=Eb;exports.Group=zy;exports.I18nProvider=dc;exports.IconColorInput=Lf;exports.IconColorInputButton=Ka;exports.IconSelect=gm;exports.IconSlider=ud;exports.ImageDropZone=ay;exports.ImageGallery=gb;exports.InlineAlert=Na;exports.Link=Ad;exports.ListBox=fe;exports.Magnifier=Z5;exports.MagnifierContent=cg;exports.MagnifierDisplay=bg;exports.Markdown=O1;exports.Menu=_a;exports.MessageFormat=_y;exports.Modal=Le;exports.ModalClose=iP;exports.ModalContent=Ue;exports.ModalTrigger=Ea;exports.NumberFormat=no;exports.NumberInput=Ve;exports.Pagination=Eu;exports.Panel=KT;exports.PanelGroup=QT;exports.PanelResizeHandle=r4;exports.Popover=je;exports.PopoverContent=ie;exports.PopoverTrigger=Oe;exports.Portal=Pe;exports.PortalContainerProvider=oa;exports.Preview=py;exports.ProgressBar=ou;exports.ProgressSpinner=so;exports.RadioGroup=vy;exports.Reaction=mu;exports.ScrollControlButton=E1;exports.SearchInput=Id;exports.Select=st;exports.Separator=q;exports.Slider=Qt;exports.Switch=xd;exports.TabItem=Dm;exports.Tabs=Sm;exports.TagGroup=Ku;exports.Text=te;exports.TextInput=at;exports.ThemeProvider=da;exports.TimeField=qb;exports.ToggleButton=Pa;exports.ToggleIconButton=Ie;exports.Toolbar=en;exports.Tooltip=J;exports.Transform=ey;exports.TreeView=o5;exports.defineMessages=W;exports.disableAnimations=CM;exports.enableAnimations=PM;exports.isInsideOverlayContent=f3;exports.isRect=Ap;exports.useDevice=Ee;exports.useI18n=A;exports.useImage=Wt;exports.useIntersectionObserver=nc;exports.useIsFirstRender=aa;exports.useLocalStorage=bc;exports.useMutationObserver=fD;exports.usePortalContainer=ye;exports.useResizeObserver=ic;exports.useTextSelection=hD;exports.useUndoRedo=lc;exports.useUserPreferences=Ci;
10
+ var Le=typeof document<"u"?Ct__default.default.useLayoutEffect:()=>{};function ti(e){let t=Ct.useRef(null);return Le(()=>{t.current=e;},[e]),Ct.useCallback((...o)=>{let r=t.current;return r?.(...o)},[])}function oi(e){let[t,o]=Ct.useState(e),r=Ct.useRef(null),a=ti(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():o(i.value);});Le(()=>{r.current&&a();});let n=ti(i=>{r.current=i(t),a();});return [t,n]}var Fr={prefix:String(Math.round(Math.random()*1e10)),current:0},Vl=Ct__default.default.createContext(Fr),d5=Ct__default.default.createContext(false);var u5=!!(typeof window<"u"&&window.document&&window.document.createElement),ri=new WeakMap;function m5(e=false){let t=Ct.useContext(Vl),o=Ct.useRef(null);if(o.current===null&&!e){var r,a;let n=(a=Ct__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(n){let i=ri.get(n);i==null?ri.set(n,{id:t.current,state:n.memoizedState}):n.memoizedState!==i.state&&(t.current=i.id,ri.delete(n));}o.current=++t.current;}return o.current}function f5(e){let t=Ct.useContext(Vl);t===Fr&&!u5&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=m5(!!e),r=t===Fr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${o}`}function y5(e){let t=Ct__default.default.useId(),[o]=Ct.useState(Ul()),r=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fr.prefix}`;return e||`${r}-${t}`}var ni=typeof Ct__default.default.useId=="function"?y5:f5;function b5(){return false}function g5(){return true}function v5(e){return ()=>{}}function Ul(){return typeof Ct__default.default.useSyncExternalStore=="function"?Ct__default.default.useSyncExternalStore(v5,b5,g5):Ct.useContext(d5)}var C5=!!(typeof window<"u"&&window.document&&window.document.createElement),tt=new Map;function Or(e){let[t,o]=Ct.useState(e),r=Ct.useRef(null),a=ni(t),n=Ct.useCallback(i=>{r.current=i;},[]);return C5&&(tt.has(a)&&!tt.get(a).includes(n)?tt.set(a,[...tt.get(a),n]):tt.set(a,[n])),Le(()=>{let i=a;return ()=>{tt.delete(i);}},[a]),Ct.useEffect(()=>{let i=r.current;i&&(r.current=null,o(i));}),a}function ii(e,t){if(e===t)return e;let o=tt.get(e);if(o)return o.forEach(a=>a(t)),t;let r=tt.get(t);return r?(r.forEach(a=>a(e)),e):t}function ql(...e){return (...t)=>{for(let o of e)typeof o=="function"&&o(...t);}}var ye=e=>{var t;return (t=e?.ownerDocument)!==null&&t!==void 0?t:document},le=e=>e&&"window"in e&&e.window===e?e:ye(e).defaultView||window;function P5(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function si(e){return P5(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}var jr=(e=document)=>{var t;let o=e.activeElement;for(;o&&"shadowRoot"in o&&(!((t=o.shadowRoot)===null||t===void 0)&&t.activeElement);)o=o.shadowRoot.activeElement;return o};function Kl(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Kl(e[t]))&&(r&&(r+=" "),r+=o);}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function k5(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Kl(e))&&(r&&(r+=" "),r+=t);return r}var Gl=k5;function De(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let a in r){let n=t[a],i=r[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=ql(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?t[a]=Gl(n,i):a==="id"&&n&&i?t.id=ii(n,i):t[a]=i!==void 0?i:n;}}return t}function E(...e){return e.length===1&&e[0]?e[0]:t=>{for(let o of e)typeof o=="function"?o(t):o!=null&&(o.current=t);}}var w5=new Set(["id"]),I5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),R5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),T5=/^(data-.*)$/;function li(e,t={}){let{labelable:o,isLink:r,propNames:a}=t,n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(w5.has(i)||o&&I5.has(i)||r&&R5.has(i)||a?.has(i)||T5.test(i))&&(n[i]=e[i]);return n}function Hr(e){var t;return typeof window>"u"||window.navigator==null?false:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function pi(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):false}function He(e){let t=null;return ()=>(t==null&&(t=e()),t)}var jo=He(function(){return pi(/^Mac/i)}),Ho=He(function(){return Hr(/Firefox/i)});function pe(e){let t=Ct.useRef(null);return Ct.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,typeof e=="function"?e(o):e&&(e.current=o);}}),[e])}function L5(){return typeof window.ResizeObserver<"u"}function ci(e){let{ref:t,box:o,onResize:r}=e;Ct.useEffect(()=>{let a=t?.current;if(a)if(L5()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(a,{box:o}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",r,false),()=>{window.removeEventListener("resize",r,false);}},[r,t,o]);}function oS(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Jl(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}function L(e,t){if(!e)throw new Error(t||"Invariant failed")}function f(...e){let t=e.filter(Boolean),o=[];for(let r of t)if(Array.isArray(r))o.push(f(...r));else if(typeof r=="object"){let a=Object.keys(r);for(let n of a)r[n]&&o.push(n);}else typeof r=="string"&&o.push(r);return o.join(" ")}function Ur(e,t){if(!e)return null;if(typeof e=="string")return t.querySelector(e);if(e instanceof HTMLElement)return e;if("current"in e)return e.current}function Vr({text:e,fontSize:t=16,fontFamily:o="Arial",fontWeight:r="normal",fontStyle:a="normal",font:n}){let s=document.createElement("canvas").getContext("2d");if(!s)return {width:0,height:0};s.font=n||`${a} ${r} ${t}px ${o}`;let l=s.measureText(e);return {width:l.width,height:l.actualBoundingBoxAscent+l.actualBoundingBoxDescent}}function lS({text:e,maxWidth:t,initialFontSize:o=50,fontFamily:r="Arial",fontWeight:a="normal",fontStyle:n="normal"}){let{width:i}=Vr({text:e,fontSize:o,fontFamily:r,fontWeight:a,fontStyle:n}),s=o,l=i;for(;l>t;)s-=.5,l=Vr({text:e,fontSize:s,fontFamily:r,fontWeight:a,fontStyle:n}).width;return Math.max(s,1)}var Ql=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function pS(e){return Ql.some(t=>e.matches(t))}function ep(e){return e.querySelectorAll(Ql.join(", "))}function tp(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t.activeElement:null}var B5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function op(e){return e instanceof HTMLInputElement&&!B5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function qr(e){let t=e.getBoundingClientRect(),o=le(e),a=e.getRootNode()instanceof ShadowRoot?e.getRootNode().host.getBoundingClientRect():{left:0,top:0};return {x:t.left+o.scrollX-a.left,y:t.top+o.scrollY-a.top,width:t.width,height:t.height}}function rp(e,t){let o=qr(e);return {x:o.x+(t?.x??0),y:o.y+(t?.y??0)}}var Kr=(e,t)=>(e+t)/2;function Gr(e,t=true){if(!e.length)return "";let o=e.length;if(o<4)return "";let r=e[0],a=e[1],n=e[2],i=`M${r[0].toFixed(2)},${r[1].toFixed(2)} Q${a[0].toFixed(2)},${a[1].toFixed(2)} ${Kr(a[0],n[0]).toFixed(2)},${Kr(a[1],n[1]).toFixed(2)} T`;for(let s=2,l=o-1;s<l;s++)r=e[s],a=e[s+1],i+=`${Kr(r[0],a[0]).toFixed(2)},${Kr(r[1],a[1]).toFixed(2)} `;return t&&(i+="Z"),i}function A5(e){return e.split("/").pop()?.split(".").shift()}function ap(e){let t={};for(let o of Object.keys(e)){let r=A5(o)??"";t[r]=e[o];}return t}function A(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>!!t))}function bS(e,t){L(t>=0&&t<=100,"Percent must be between 0 and 100");let o=color.parseColor(e),r=o.getChannelValue("red"),a=o.getChannelValue("green"),n=o.getChannelValue("blue"),i=Math.round(r+(255-r)*t/100),s=Math.round(a+(255-a)*t/100),l=Math.round(n+(255-n)*t/100);return `#${i.toString(16)}${s.toString(16)}${l.toString(16)}`}function ui(e,t){if(e=e.trim(),e.includes(" "))return false;try{return new URL(e),!0}catch{return t?ui(`https://${e}`):false}}function np(e,t=false){return jo()?e.replace("Ctrl+",t?"\u2318":"Cmd+").replace("Alt+",t?"\u2325":"Option+").replace("Shift+",t?"\u21E7":"Shift+").replace("Enter+",t?"\u21A9":"Enter+").replace("Space+",t?"\u2423":"Space+").replace("Enter",t?"\u21A9":"Enter"):e}var ip=e=>new DOMParser().parseFromString(O5__namespace.default.sanitize(e),"text/html").body.textContent||"";function ot(e){return !!e&&"label"in e&&!!e.label}function Wr(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function V5(e){return Wr(e)?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,"aria-label":e.title,children:t=>jsxRuntime.jsx(reactStately.Item,{textValue:t.label,children:t.label},t.id)},e.id):jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)}function be(){return Ct.useCallback(e=>V5(e),[])}function Yr(e,t,o){let{direction:r}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(s=>[...s].map(l=>{let p=t.collection.getItem(l);return L(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});reactAria.useDraggableCollection(e,a,o);let n=reactStately.useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(t.collection,o)},n,o);return {collectionProps:i,dragState:a,dropState:n}}function Z5(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function J5(e){var t=Z5(e,"string");return typeof t=="symbol"?t:String(t)}function Q5(e,t,o){return t=J5(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:true,configurable:true,writable:true}):e[t]=o,e}function lp(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r);}return o}function pp(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?lp(Object(o),true).forEach(function(r){Q5(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):lp(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function cp(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var e6=(e,t,o)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=t[r])!==null&&a!==void 0?a:o[r]))return false}return true},x=e=>{var t=o=>{var r=e.defaultClassName,a=pp(pp({},e.defaultVariants),o);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:e.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===true?"true":"false");var p=e.variantClassNames[n][l];p&&(r+=" "+p);}}for(var[c,m]of e.compoundVariants)e6(c,a,e.defaultVariants)&&(r+=" "+m);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return cp(e.variantClassNames,o=>cp(o,r=>r.split(" ")[0]))}},t};var dp=x({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),up="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",mp=x({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),fp=x({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup82 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),yp="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",bp="_6n12k90";var gp=x({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var W=Ct__default.default.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...l},p)=>{let{separatorProps:c}=reactAria.useSeparator({...l,orientation:r,elementType:n});return jsxRuntime.jsx(n,{...c,className:f(gp({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":i,"data-block-class":s,style:t,role:a?void 0:c.role,ref:p})});W.displayName="Separator";function i6(e){return tokens.sprinkles.properties.has(e)}var M=Ct__default.default.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:i}=Ct.useMemo(()=>{let s={},l={};for(let p in o)i6(p)?s[p]=o[p]:l[p]=o[p];return {sprinkleProps:s,domProps:l}},[o]);return jsxRuntime.jsx(a,{...i,className:f(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:r,children:t})});M.displayName="Box";var Uo=Ct__default.default.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:c,_state:m},u)=>{L(e.value&&ot(e.value),"Item cannot be a section");let{icon:d,label:g}=e.value,{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:t}),v=A({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":y,"data-pressed":c,"data-focus-visible":o,"data-selection-mode":m.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,b,v),className:f(fp({isHovered:y,isFocused:o,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:t}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:u,children:[jsxRuntime.jsxs(M,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsxRuntime.jsx("span",{"aria-hidden":true,style:{height:24,width:24},children:r?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,d?jsxRuntime.jsx(d,{size:24}):null,jsxRuntime.jsx("span",{...l,children:g})]}),i?jsxRuntime.jsx("span",{className:mp({isDisabled:t}),...s,children:i}):null]})});Uo.displayName="DefaultRenderOption";var Gt=({dropState:e,orientation:t="vertical",dropIndicatorStyle:o,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:l,orientation:p},c)=>s?null:jsxRuntime.jsx("li",{...l,ref:c,"data-drop-target":i,className:f(dp({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let i=Ct__default.default.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=reactAria.useDropIndicator(n,e,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:t},i)};function Pt(e,t,o){return typeof e=="function"?e(t,o):e}function Xr(e,t,o){return typeof e=="function"?e(t,o):e}function Zr(e,t){return typeof e=="function"?e(t):e}function fi(e,t){return typeof e=="function"?e(t):e}var hp=({item:e,children:t,state:o,dragState:r,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Gt,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(Gt,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};hp.displayName="DraggableListOption";var qo=Ct__default.default.forwardRef(({item:e,renderOption:t=(u,d,g)=>jsxRuntime.jsx(Uo,{item:u,liProps:d.optionProps,...d,ref:g}),showSelectedIcon:o,state:r,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},m)=>{let u=Ct__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,u),{value:g}=e;L(g&&ot(g),"ListSection should not be passed to ListOption");let b={isFocusVisible:d.isFocusVisible,isSelected:d.isSelected,isFocused:d.isFocused,isDisabled:d.isDisabled,isPressed:d.isPressed},y={style:Xr(p,g,b),className:Pt(c,g,b)};return a&&n?jsxRuntime.jsx(hp,{orientation:i,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:v=>t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...reactAria.mergeProps(d.optionProps,v),...y}},E(u,m))}):t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...d.optionProps,...y}},E(u,m))});qo.displayName="Option";var Cp=({section:e,state:t,sectionClassName:o,sectionStyle:r,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=false,...s})=>{let l=Ct__default.default.useRef(null),{itemProps:p,groupProps:c,headingProps:m}=reactAria.useListBoxSection({heading:a?n?.(e,l)||e.rendered:void 0,"aria-label":e["aria-label"]}),u=t.collection.getChildren?.(e.key);L(u,"children must be defined");let{value:d}=e;L(d&&Wr(d),"section must be a ListSection");let g=typeof r=="function"?r(d):r,b=typeof o=="function"?o(d):o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsxRuntime.jsx(W,{UNSAFE_omitRole:true}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...g},className:f(bp,b,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?n?.(e,l)||jsxRuntime.jsx(M,{...m,className:f("BaselineUI-ListBox-SectionHeader",yp),ref:l,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...u].map(y=>jsxRuntime.jsx(qo,{item:y,state:t,...s},y.key))})]})]})};function ea({type:e="listbox",handle:t},o,r){let a=Ct.useCallback(i=>e==="listbox"?r.current?.querySelector(`[data-key="${i}"][role="option"]`):r.current?.querySelector(`[data-key="${i}"][role="row"]`),[e,r]),n=Ct.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);Ct.useImperativeHandle(t,()=>({scrollIntoView:n,setFocusedKey:i=>{o.selectionManager.setFocused(true),o.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,o.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=r.current?.getRootNode(),s=i&&si(i),l=o.selectionManager.focusedKey;s&&l&&n(l);},[o.selectionManager.focusedKey],[n,r]);}var kt=Ct__default.default.createContext(null),yi=Ct__default.default.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=true,style:a,renderOption:n,enableReorder:i=false,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:m,listBoxHandle:u,...d},g)=>{let b=Ct__default.default.useRef(null),{direction:y}=reactAria.useLocale(),v=Ct__default.default.useRef(null),{listBoxProps:z}=reactAria.useListBox({...d,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:m.collection,ref:v,layout:t,orientation:o,direction:y,disabledKeys:m.disabledKeys})},m,v);ea({handle:u},m,v);let{collectionProps:_,dragState:h,dropState:C}=Yr({...d,onReorder:c,layout:t,orientation:o,enableReorder:i,preview:b},m,v),{isFocusVisible:T,isFocused:P,focusProps:$}=reactAria.useFocusRing(),w=A({"data-block-id":s,"data-block-class":l,"data-layout":t,"data-empty":m.collection.size===0,"data-focused":P,"data-focus-visible":T,"data-orientation":o});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(z,$,w,_),className:f(up,"BaselineUI-ListBox",e),style:a,ref:E(g,v),children:[[...m.collection].map(D=>{let k={key:D.key,state:m,dragState:h,dropState:C,renderOption:n,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:o,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,sectionClassName:d.sectionClassName,sectionStyle:d.sectionStyle,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return D.type==="section"?Ct.createElement(Cp,{...k,key:D.key,section:D}):Ct.createElement(qo,{...k,key:D.key,item:D})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:p}):null]})});yi.displayName="ListBoxCore";var wp=Ct__default.default.forwardRef((e,t)=>{let o=be(),r=reactStately.useListState({...e,children:o});return jsxRuntime.jsx(yi,{...e,ref:t,state:r})});wp.displayName="ListBoxStandalone";var ze=Ct__default.default.forwardRef((e,t)=>{let o=Ct.useContext(kt);return Ct.useEffect(()=>{if(!e.items&&!o)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,o]),o?jsxRuntime.jsx(yi,{...e,ref:t,state:o}):jsxRuntime.jsx(wp,{...e,ref:t})});ze.displayName="ListBox";var oa="uf19bsf _1yep5z6la",Ip=x({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"primary",isHovered:true,isFocusVisible:false},"_1yep5z61o9"],[{variant:"secondary",isHovered:true,isFocusVisible:false},"_1yep5z61nc"],[{variant:"tertiary",isHovered:true,isFocusVisible:false},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:true,isFocusVisible:false},"_1yep5z61nh"],[{variant:"popover",isHovered:true,isFocusVisible:false},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:false},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var Ko=Ct__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ve=({children:e,...t})=>{let o=Ct__default.default.useRef(null),r=reactStately.useOverlayTriggerState(t),a=reactAria.useOverlayTrigger(t,r),n=Ct.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsxRuntime.jsx(Ko.Provider,{value:n,children:e})};var Tp=x({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),$p=x({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Sp="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",Dp="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",Mp="_1gzftthd",Np="_1gzftthc",Ep="var(--_1gzftth0)";var ra=Ct__default.default.createContext({isSelected:false,ref:void 0}),Ue=({children:e,anchorRect:t})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=Ct.useContext(Ko);L(o,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=r,i=Ct.useMemo(()=>({...n,isSelected:o.isOpen,ref:a}),[n,o.isOpen,a]);return L(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),L(!t||Jl(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(ra.Provider,{value:i,children:t?jsxRuntime.jsx("div",{className:f(Mp,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:a,tabIndex:-1},JSON.stringify(t)):e})};var we=({label:e,tooltip:t,...o})=>({tooltipProps:Ct.useMemo(()=>{let a={size:"sm",variant:"inverse",text:e,includeArrow:false,placement:"bottom start",offset:4,...o};if(typeof t=="object")return {...a,...t};if(t)return a},[e,o,t])});function aa({tooltip:e,"aria-label":t,"aria-labelledby":o},r){let[a,n]=Ct.useState(t||"");Ct.useEffect(()=>{if(o){let l=ye(r.current).querySelector(`#${o}`);l&&n(l.textContent||"");}else t&&n(t);},[o,r,t]);let{tooltipProps:i}=we({label:a,tooltip:e});return {tooltipProps:i}}var na=e=>{let t=Ct__default.default.useRef(null),{ref:o,...r}=Ct.useContext(ra)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...e,...r},t),{isFocusVisible:i,isFocused:s,focusProps:l}=reactAria.useFocusRing(),{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:De(a,l,p),isPressed:n,ref:E(t,o||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:e.isDisabled,isFocusVisible:i}}},ia=(e,t)=>{let o=Ct__default.default.useRef(null),{ref:r,...a}=Ct.useContext(ra)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...e,...a},t,o);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:l,focusProps:p}=reactAria.useFocusRing(),{hoverProps:c,isHovered:m}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:De(n,p,c),isPressed:i,ref:E(o,r||null),isFocusVisible:s,isFocused:l,isHovered:m,uiStateOptions:{isHovered:m,isFocused:l,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:t.isSelected}}};var sa=x({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"oom8bsg"],[{variant:"secondary",isHovered:true},"oom8bsh"],[{variant:"tertiary",isHovered:true},"oom8bsi"],[{variant:"popover",isHovered:true},"oom8bsj"],[{variant:"ghost",isHovered:true},"oom8bsk"],[{variant:"success",isHovered:true},"oom8bsl"],[{variant:"warning",isHovered:true},"oom8bsm"],[{variant:"error",isHovered:true},"oom8bsn"],[{variant:"primary",isFocusVisible:true},"oom8bso"],[{variant:"tertiary",isFocusVisible:true},"oom8bsp"],[{variant:"success",isFocusVisible:true},"oom8bsq"],[{variant:"warning",isFocusVisible:true},"oom8bsr"],[{variant:"error",isFocusVisible:true},"oom8bss"]]}),bi=x({defaultClassName:"oom8bst _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:true},"_1yep5z61nf"],[{variant:"ghost",isHovered:true},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:true},"_1yep5z61nf"],[{variant:"secondary",isDisabled:true},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:true},"_1yep5z61nd"],[{variant:"ghost",isDisabled:true},"_1yep5z61nd"],[{variant:"popover",isDisabled:true},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:true},"_1yep5z61nd"]]});var X6={sm:16,md:20,lg:24},X=Ct__default.default.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,"data-block-class":c,...m},u)=>{let{buttonProps:d,isPressed:g,ref:b,isFocusVisible:y,isFocused:v,isHovered:z,uiStateOptions:_}=na({...m,elementType:i,isDisabled:s}),h=X6[l],C=A({"data-block-id":p,"data-block-class":c,"data-disabled":s,"data-focused":v,"data-focus-visible":y,"data-hovered":z,"data-pressed":g});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,C),className:f(sa({isDisabled:!!s,isFocusVisible:y,isHovered:z,variant:n,size:l}),"BaselineUI-ActionButton",typeof o=="function"?o(_):o),style:typeof t=="function"?t(_):t,ref:E(u,b),children:[!!r&&jsxRuntime.jsx(r,{size:h,className:bi({variant:n,isDisabled:s,isFocusVisible:y,isHovered:z})}),e,!!a&&jsxRuntime.jsx(a,{size:h,className:bi({variant:n,isDisabled:s,isFocusVisible:y,isHovered:z})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:oa})]})});X.displayName="ActionButton";var la=Ct__default.default.forwardRef(({className:e,style:t,node:o,"data-block-id":r,"data-block-class":a,...n},i)=>{let s=Ct__default.default.useRef(null);Ct__default.default.useEffect(()=>{let c=s.current;return c?.append(o),()=>{c?.contains(o)&&o.remove();}},[o]);let{pressProps:l,isPressed:p}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...l,className:e,style:t,"data-block-id":r,"data-block-class":a,"data-pressed":p,"data-testid":"dom-node-renderer",ref:E(i,s)})});la.displayName="DomNodeRenderer";var jp="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",Hp="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Vp="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",Up=x({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),qp=x({defaultClassName:"_14uvjigb _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g9 _1yep5z6lp _1yep5z6la",variantClassNames:{active:{true:"_14uvjigc _1yep5z612i _1yep5z6181 _1yep5z617t"},isDisabled:{true:"_14uvjigd _1yep5z612m"},isReadOnly:{true:"_1yep5z614p _1yep5z614q _1yep5z614r"},isFocusVisible:{true:"_14uvjigf _1yep5z612i _1yep5z617d"},isHovered:{true:"_14uvjigg _1yep5z612i"}},defaultVariants:{},compoundVariants:[]}),Kp="_14uvjiga _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",Gp="_14uvjig4 _1yep5z6g3 _1yep5z6ln",Wp=x({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var Yt=x({defaultClassName:"nrh1ehr _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasError:{true:"_1yep5z610h"},labelPosition:{start:"nrh1ehu",top:"nrh1ehv"}},defaultVariants:{},compoundVariants:[]}),pa=x({defaultClassName:"nrh1ehi _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"nrh1ehj"},labelPosition:{top:"nrh1ehk",start:"nrh1ehl"}},defaultVariants:{},compoundVariants:[]}),Xt=x({defaultClassName:"nrh1ehm _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"nrh1ehn",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),Zt="_1yep5z6ev _1yep5z6dy",rt=x({defaultClassName:"nrh1eh3 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"nrh1eh6"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),at=x({defaultClassName:"nrh1eh0 _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Jt=x({defaultClassName:"nrh1eh7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"nrh1eh8",error:"_1yep5z612q",warning:"nrh1eha"},isHovered:{true:"nrh1ehb"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"nrh1ehd"},variant:{primary:"nrh1ehe",ghost:"nrh1ehf"},isReadOnly:{true:"_1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61pa _1yep5z61u5 _1yep5z61u7"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_1yep5z61pm"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"nrh1ehh"],[{isReadOnly:true,isFocused:true},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"],[{isHovered:true,isFocused:false,isDisabled:false,isReadOnly:false},"_1yep5z61tg"]]});function Ie({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsxRuntime.jsx("div",{...o,className:Yt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:e}):a?jsxRuntime.jsx("div",{...t,className:Yt({hasError:true,labelPosition:n}),"aria-disabled":i,children:a}):r?jsxRuntime.jsx("div",{className:Yt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:r}):null}var Yp=x({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),Xp="_1lnwne0";var Zp=x({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Jp=x({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});function ca({placement:e}){let t=Ct.useMemo(()=>{switch(e){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:4}}},[e]);return {transitionProps:{initial:{opacity:0,transform:`translate3d(${t.x}px, ${t.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var zi=Ct__default.default.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:t.isOpen},t),m=a==="center"?"bottom":a,{transitionProps:u}=ca({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(o,u),ref:p,"data-placement":m,children:[l?jsxRuntime.jsx("div",{className:Zp({placement:m,variant:n}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:Jp({variant:n,size:i}),children:e})]})});zi.displayName="TooltipContent";var hi=Ct__default.default.createContext(void 0),da=({portalContainer:e,children:t})=>jsxRuntime.jsx(hi.Provider,{value:e,children:t});da.displayName="PortalContainerProvider";function oc({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let i=Ct__default.default.useRef(null);Ct.useEffect(()=>{if(o){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{t(s);},{root:n?.current,rootMargin:a,threshold:r});},[t,o,n,a,r]),Ct.useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function rc({ref:e,onResize:t,isDisabled:o}){let r=Ct__default.default.useRef(null),[a,n]=Ct__default.default.useState();return Ct__default.default.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([i])=>{n(i.contentRect),t?.(i);});},[t,o,n]),Ct__default.default.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function Qt({src:e,alt:t}){let[o,r]=Ct.useState(false),[a,n]=Ct.useState(false),[i,s]=Ct.useState(false),l=()=>{r(true),s(false);},p=()=>{n(true),s(false);};return Ct.useEffect(()=>{if(!e)return;s(true);let c=new Image;return c.src=e,c.addEventListener("load",l),c.addEventListener("error",p),()=>{c.removeEventListener("load",l),c.removeEventListener("error",p);}},[e]),{isLoaded:o,hasError:a,isLoading:i,imgProps:{src:o?e:void 0,alt:t}}}function ma(){let e=Ct.useRef(true);return Ct.useEffect(()=>{e.current=false;},[]),e.current}var ac="SET_STATE",fa="UNDO",ya="REDO",fv=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case ac:return {past:[...o,r],present:t.data,future:[]};case fa:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case ya:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},nc=(e={},{isDisabled:t,onAction:o})=>{let r=ma(),[a,n]=Ct.useReducer(fv,{past:[],present:e,future:[]}),{past:i,present:s,future:l}=a,p=b=>{n({type:ac,data:b});},c=Ct.useRef(),m=()=>{c.current=fa,n({type:fa});},u=()=>{c.current=ya,n({type:ya});},d=!!i?.length,g=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===fa||c.current===ya)&&(o?.(s,c.current),c.current=void 0);},[s],[o,r]),{state:s,push:t?()=>{}:p,undo:t?()=>{}:m,redo:t?()=>{}:u,pastStates:i,futureStates:l,canUndo:d,canRedo:g}};var Ci=Ct__default.default.createContext({messages:{},shouldLogMissingMessages:true,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),lc=({children:e,messages:t={},shouldLogMissingMessages:o=true,...r})=>{let a=Ct.useRef(new Set),[n,i]=Ct.useState(r.locale||"");Ct.useEffect(()=>{a.current.clear();},[n,r.locale]);let s=Ct__default.default.useMemo(()=>({messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:a,setLang:i}),[t,o,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(Ci.Provider,{value:s,children:e})})};lc.displayName="I18nProvider";function H(e){let{messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:r,setLang:a}=Ct.useContext(Ci);Ct.useEffect(()=>{!e&&_v__default.default(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.");},[e,t]);let n=Ct.useMemo(()=>e?ap(e):t,[e,t]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();Ct.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=Ct.useCallback(c=>{o&&!r.current.has(c)&&(console.log(`BUI \u{1F30D}: Translation not found for key: \`${c}\` for locale: \`${s.locale}\`. The default message, i.e. \`${c}\`, will be used instead.`),r.current.add(c));},[r,s.locale,o]),p=Ct.useCallback((c,m)=>{if(typeof c=="object")try{return i(c.id,m)}catch{return l(c.id),c.defaultMessage||c.id}else try{return i(c,m)}catch{return l(c),c}},[i,l]);return Ct.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var J=e=>e;function A3(e,t,o){let r=Ct__default.default.useRef(null);return Ct__default.default.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect();}},[e,t,o]),r.current}function mc(e,t){let[o,r]=Ct.useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.log(n),t}});return [o,n=>{try{let i=n instanceof Function?n(o):n;r(i),window.localStorage.setItem(e,JSON.stringify(i));}catch(i){console.log(i);}}]}function q3({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=Ct__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let i=le(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&o?.(i);},onPressStart(){let n=le(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),Ct.useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let p=le(n).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let s=ye(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,t,r]);}var ba=Ct__default.default.createContext({breakpoints:tokens.breakpoints}),Tv=({children:e,breakpoints:t=tokens.breakpoints})=>{let o=Ct.useMemo(()=>({breakpoints:t}),[t]);return jsxRuntime.jsx(ba.Provider,{value:o,children:e})};function Ae(e){let{breakpoints:t=tokens.breakpoints}=Ct.useContext(ba),o=Ct.useMemo(()=>({tablet:`screen and (min-width: ${t.tablet}px)`,desktop:`screen and (min-width: ${t.desktop}px)`}),[t]),r=Ct.useCallback(()=>{let i=le(e??typeof window>"u"?void 0:e),s=i.matchMedia(o.tablet);return i.matchMedia(o.desktop).matches?"desktop":s.matches?"tablet":"mobile"},[e,o]),[a,n]=Ct__default.default.useState(r);return Le(()=>{let i=le(e),s=()=>{n(r());};return i.addEventListener("resize",s),s(),()=>{i.removeEventListener("resize",s);}},[e,r]),a}var Av=typeof window<"u";function ki(){return Av?document.body:null}var qe=Ct__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0}),Fv=({children:e,container:t=ki(),portalContainer:o,shouldContainOverlays:r="auto"})=>{let a=Ae(),[n,i]=Ct.useState(),[s,l]=Ct.useState(),p=Ct.useMemo(()=>t===ki()||r==="never"?false:r==="always"?true:a!=="mobile",[r,a,t]),[c,m]=Ct.useState(false),u=ma();Ct.useEffect(()=>{if(!t||u)return;let b=le(t).getComputedStyle(t),y=!!b.position&&b.position!=="static";m(y);let v=t.getBoundingClientRect();(v.width===0||v.height===0)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");function z({width:h,height:C}){t&&(i(h),l(C));}let _=new ResizeObserver(h=>{for(let C of h)z({width:C.contentRect.width,height:C.contentRect.height});});return p&&(z({width:v.width,height:v.height}),_.observe(t)),t.dataset.shouldContainOverlays=p.toString(),()=>{_.disconnect(),t.dataset.shouldContainOverlays="";}},[t,u,p]);let d=Ct.useMemo(()=>({container:t,portalContainer:o||t||ki(),shouldContainOverlays:p,isContainerPositioned:c,containerWidth:n,containerHeight:s}),[t,o,p,c,n,s]);return jsxRuntime.jsx(qe.Provider,{value:d,children:jsxRuntime.jsx(da,{portalContainer:d.portalContainer||void 0,children:e})})};function he(e){let t=Ct.useContext(hi),{portalContainer:o}=Ct.useContext(qe);return e||t||o||void 0}var vc=x({defaultClassName:"z9nup83",variantClassNames:{size:{xs:"z9nup84",sm:"z9nup85"}},defaultVariants:{},compoundVariants:[]}),_c="z9nup80",eo="z9nup82",zc="z9nup86";function wi(e=typeof window>"u"?void 0:window){let[t,o]=Ct.useState("light"),[r,a]=Ct.useState(false),[n,i]=Ct.useState(false),[s,l]=Ct.useState(false);return Ct.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-color-scheme: dark)"),c=m=>{o(m.matches?"dark":"light");};return p.matches&&o("dark"),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),Ct.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-contrast: more)"),c=m=>{a(m.matches);};return a(p.matches),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),Ct.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-reduced-motion: reduce)"),c=m=>{i(m.matches);};return p.matches&&i(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),Ct.useEffect(()=>{if(!e)return;let p=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=m=>{l(m.matches);};return p.matches&&l(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[e]),{colorScheme:t,highContrast:r,reducedMotion:n,transparency:s}}var to=Ct.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var hc="var(--hj25q10)";var _a={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},za=Ct__default.default.forwardRef(({theme:e="system",children:t,setTheme:o,onThemeChange:r,className:a,style:n,UNSAFE_domProps:i,"data-block-id":s,"data-block-class":l,reducedMotion:p="user",shouldHandleVirtualKeyboard:c=true},m)=>{let{direction:u}=reactAria.useLocale(),{colorScheme:d,reducedMotion:g,highContrast:b,transparency:y}=wi(),{name:v,theme:z}=Ct.useMemo(()=>{switch(e){case "system":return d==="light"?_a.LIGHT:_a.DARK;case "light":return _a.LIGHT;case "dark":return _a.DARK;default:return {name:"custom",theme:e}}},[d,e]),_=Ae(),h={"data-theme":v,"data-block-id":s,"data-block-class":l,"data-reduced-motion":p==="user"?g:p==="always","data-high-contrast":b,"data-transparency":y,"data-device":_},C=Ct.useMemo(()=>({theme:z,setTheme:T=>{o?.(T),r?.(T);},shouldHandleVirtualKeyboard:c}),[z,o,r,c]);return Ct.useEffect(()=>{o&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[o]),jsxRuntime.jsx(to.Provider,{value:C,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,h),className:f(_c,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,z),...dynamic.assignInlineVars({[hc]:u==="rtl"?"-1":"1"}),...n},ref:m,children:t})})})});za.displayName="ThemeProvider";function G9(){react.MotionGlobalConfig.skipAnimations=true;}function W9(){react.MotionGlobalConfig.skipAnimations=false;}var Re=Ct__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l,shouldHandleVirtualKeyboard:p}=Ct.useContext(to),c=he();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??c,children:jsxRuntime.jsx(za,{ref:s,theme:l,shouldHandleVirtualKeyboard:p,style:t,className:f("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:o})})});Re.displayName="Portal";var re=Ct__default.default.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:i=true,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":m,...u},d)=>{let g=Ct__default.default.useRef(null),b=Ct__default.default.useRef(null),y=!u.text||u.isDisabled,v=reactStately.useTooltipTriggerState({...u,delay:o,closeDelay:r,isDisabled:y}),{triggerProps:z,tooltipProps:_}=reactAria.useTooltipTrigger({...u,isDisabled:y,delay:o,closeDelay:r},v,g),h=he(s),{overlayProps:C,arrowProps:T,placement:P,updatePosition:$}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:g,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:b,placement:t,isOpen:v.isOpen,...u});oc({ref:b,threshold:1,onIntersect:$,isDisabled:!v.isOpen}),rc({ref:g,onResize:$,isDisabled:!v.isOpen});let w=Ct__default.default.isValidElement(e)?jsxRuntime.jsx(focus.FocusableProvider,{...z,ref:g,children:e}):typeof e=="function"?e({triggerProps:z,triggerRef:g}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w,v.isOpen?jsxRuntime.jsx(Re,{disableFocusManagement:true,portalContainer:h,className:l,style:p,"data-block-id":c,"data-block-class":m,children:jsxRuntime.jsx(zi,{ref:E(d,b),state:v,arrowProps:T,overlayProps:C,placement:P,tooltipProps:_,variant:a,size:n,includeArrow:i,children:u.text})}):null]})});re.displayName="Tooltip";var xa=Ct__default.default.forwardRef(({elementType:e,children:t,...o},r)=>{let a=pe(r),{focusableProps:n}=focus.useFocusable(o,a);return jsxRuntime.jsx(e??"div",{ref:a,...n,children:t})});xa.displayName="Focusable";var d_={xxs:8,xs:12,sm:16,md:20,lg:24},F=Ct__default.default.forwardRef((e,t)=>{let o=pe(t),{tooltipProps:r}=aa(e,o);return r?jsxRuntime.jsx(re,{...r,children:jsxRuntime.jsx(Ti,{...e,ref:o})}):jsxRuntime.jsx(Ti,{...e,ref:o})});F.displayName="ActionIconButton";var Ti=Ct__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{let p=s["aria-label"],c=s["aria-labelledby"];Ct.useEffect(()=>{!p&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[p,c]);let{buttonProps:m,isPressed:u,ref:d,isFocusVisible:g,isFocused:b,isHovered:y,uiStateOptions:v}=na({...s,elementType:i}),z=A({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":b,"data-focus-visible":g,"data-disabled":s.isDisabled,"data-hovered":y,"data-pressed":u});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(m,z),className:f(Ip({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:g,isHovered:y}),"BaselineUI-ActionIconButton",typeof e=="function"?e(v):e),ref:E(l,d),style:typeof t=="function"?t(v):t,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(o,{role:"presentation",size:d_[r]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:oa})]})});Ti.displayName="ActionIconButtonCore";var Ke=Ct__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=true,...n},i)=>{let s=Ct__default.default.useRef(null),{locale:l}=reactAria.useLocale(),p=reactStately.useNumberFieldState({...n,locale:l}),{hoverProps:c,isHovered:m}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:u,isFocusVisible:d,isFocused:g}=reactAria.useFocusRing(),{labelProps:b,decrementButtonProps:y,inputProps:v,incrementButtonProps:z,groupProps:_,descriptionProps:h,errorMessageProps:C}=reactAria.useNumberField(n,p,s),T=Ct.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),P=Ie({description:n.description,errorMessageProps:C,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:o,isDisabled:n.isDisabled}),$=A({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":m,"data-focused":g,"data-focus-visible":d,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:t,className:f(at({labelPosition:o}),"BaselineUI-NumberInput",e),...$,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:rt({labelPosition:o,hasMessage:!!P}),children:[jsxRuntime.jsx("label",{...b,className:Zt,children:n.label}),o==="start"&&P]}):null,jsxRuntime.jsxs("div",{className:f({[eo]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,c),className:f(Jt({isHovered:m,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:g,variant:r}),{[Xp]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,u),ref:s,className:f("BaselineUI-NumberInput-Input",pa({isDisabled:n.isDisabled,labelPosition:o}))}),T?jsxRuntime.jsx(T,{className:Xt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Yp({isHoveredOrFocused:m||g,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(F,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(W,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(F,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...z,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&P]})]})});Ke.displayName="NumberInput";var ro=Ct__default.default.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":c,"aria-labelledby":m,"aria-details":u,"aria-describedby":d,"data-block-id":g,"data-block-class":b,defaultValue:y,isReadOnly:v,label:z,id:_,includeNumberInput:h},C)=>{let T=Ct__default.default.useRef(null),P={onChange:o===void 0?void 0:R=>{o(R[0]);},isDisabled:n||v,step:i,minValue:s,maxValue:l,onChangeEnd:r===void 0?void 0:R=>{r(R[0]);},value:p===void 0?void 0:[p],defaultValue:y===void 0?void 0:[y],"aria-label":c,"aria-labelledby":m,"aria-details":u,"aria-describedby":d,id:_,label:z},$=reactAria.useNumberFormatter(a),w=reactStately.useSliderState({...P,numberFormatter:$}),{trackProps:D,groupProps:k,labelProps:S}=reactAria.useSlider(P,w,T),I=jsxRuntime.jsx(Ke,{variant:"ghost",showStepper:false,"aria-label":c,"aria-labelledby":S.id,value:w.getThumbValue(0),formatOptions:a,onChange:R=>{w.setThumbValue(0,R);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...k,style:t,"data-block-id":g,"data-block-class":b,className:f(jp,"BaselineUI-Slider",e),children:[z?jsxRuntime.jsxs("div",{className:Vp,children:[jsxRuntime.jsx("label",{...S,className:f(Up({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:z}),h?I:null]}):null,jsxRuntime.jsxs("div",{className:Hp,children:[jsxRuntime.jsx("div",{...D,className:f(Gp,"BaselineUI-Slider-Track"),ref:E(T,C),"data-testid":"track",children:jsxRuntime.jsx($_,{state:w,trackRef:T,isDisabled:n,isReadOnly:v})}),h&&!z?I:null]})]})});ro.displayName="Slider";function $_({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=Ct__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:t,inputRef:a},e),{focusProps:l,isFocused:p,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:m,isHovered:u}=reactAria.useHover({isDisabled:o}),d=A({"data-disabled":o,"data-readonly":r,"data-hovered":u,"data-focus-visible":c,"data-dragging":s,"data-focused":p});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:f(Wp({isDisabled:o,isFocusVisible:c,active:s,isHovered:u}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,m,d),className:f(Kp,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:f(qp({isDisabled:o,isFocusVisible:c,active:s,isReadOnly:r,isHovered:u}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,l)})})]})]})}var $c=x({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]});var ie=Ct__default.default.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsxRuntime.jsx(e,{...a,className:f($c({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));ie.displayName="Text";var Sc=x({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),Dc="siobe24";var Ca=Ct__default.default.forwardRef(({className:e,style:t,children:o,background:r="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:l,contentStyle:p,contentClassName:c,...m},u)=>{let{formatMessage:d}=H(),g=Ct__default.default.useRef(null),{dialogProps:b,titleProps:y}=reactAria.useDialog(m,g),{focusProps:v,isFocusVisible:z}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,v),className:f(Sc({background:r,isFocusVisible:z}),"BaselineUI-Drawer",e),"data-block-id":i,"data-block-class":s,style:t,ref:E(u,g),children:[jsxRuntime.jsxs(M,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Dc,children:[jsxRuntime.jsx(ie,{type:"title",size:"sm",...y,className:zc,children:a}),jsxRuntime.jsxs(M,{children:[n?jsxRuntime.jsx(F,{...n,variant:"secondary"}):null,jsxRuntime.jsx(F,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":d(A_.close)})]})]}),jsxRuntime.jsx(W,{variant:r==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(M,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:f(c,"BaselineUI-Drawer-Content"),children:o})]})});Ca.displayName="Drawer";var A_=J({close:{id:"close",defaultMessage:"Close"}});var Nc="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",Ec="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Lc=x({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),Bc=x({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var wt=Ct__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Fe=({children:e,...t})=>{let o=reactStately.useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},o),n=Ct.useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsxRuntime.jsx(wt.Provider,{value:n,children:e})};Fe.displayName="Modal";function Hc(e,t,o){let[r,a]=Ct.useState({}),n=Ct.useRef(false),[i,s]=Ct.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c,containerHeight:m,portalContainer:u}=Ct.useContext(qe);Ct.useEffect(()=>{if(!e)return;let y=le(e),v=y.visualViewport,z=()=>{let _=o?v?.height??y.innerHeight:y.innerHeight,h=y.innerHeight-_;if(n.current=o?h>60:false,n.current){let C=tp(e);C&&op(C)&&C.scrollIntoView({behavior:"smooth",block:"center"});}if(t)a({maxHeight:(_||0)*.8,bottom:h});else {let C=`${_||0}px`,T=p?`min(${C}, ${m?m+"px":C})`:C;a({maxHeight:`calc(${T} - (2 * ${tokens.themeVars.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:n.current?`calc(env(safe-area-inset-top) + ${tokens.themeVars.spacing.xl})`:void 0});}};return z(),v?.addEventListener("resize",z),y.addEventListener("resize",z),()=>{v?.removeEventListener("resize",z),y.removeEventListener("resize",z);}},[e,t,p,o,m]);let d=u&&!l?.contains(u);Ct.useEffect(()=>{if(!l||!p||c&&!d)return;let y=()=>{l&&s(qr(l));};y();let v=new ResizeObserver(()=>{y();});return v.observe(l),()=>{v.disconnect();}},[l,p,c,d]);let g=Ct.useMemo(()=>({...r,overflow:"auto",position:"relative"}),[r]),b=Ct.useMemo(()=>{if(!t&&n.current)return {alignItems:"flex-start"};if(p&&(!c||d)){let y=i||(l?qr(l):{x:0,y:0,height:0,width:0});return {position:"absolute",left:y.x,top:y.y,height:y.height,width:y.width}}return {}},[t,n.current,l,c,p,i,d]);return {dialogStyle:g,containerStyle:b}}var Di=Ct__default.default.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),Mi=Ct__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Ge=({children:e,className:t,style:o,isDismissable:r=true,isKeyboardDismissDisabled:a=false,portalContainer:n,disableAnimation:i,enableDrawer:s=false,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c,shouldAnimateOnMount:m=true})=>{let{state:u}=Ct__default.default.useContext(wt),[d,g]=Ct__default.default.useState(true),b=Ct__default.default.useRef(null),[y,v]=Ct__default.default.useState(null),{shouldHandleVirtualKeyboard:z}=Ct.useContext(to),{shouldContainOverlays:_,container:h,portalContainer:C}=Ct.useContext(qe),T=Ae(),P=typeof s=="boolean"&&s||s==="auto"&&T==="mobile";L(u,"ModalContent must be a child of Modal");let $=Ct__default.default.useRef(null),w=typeof r=="function"?r(P):r,D=typeof a=="function"?a(P):a,{modalProps:k,underlayProps:S}=reactAria.useModalOverlay({isDismissable:d&&w,shouldCloseOnInteractOutside:G=>{let ee=n||C;return !h?.contains(G)&&_&&!ee?.contains(G)?false:c?.(G)??true},isKeyboardDismissDisabled:D},u,$),{dialogStyle:I,containerStyle:R}=Hc(y,P,z),N=Ct.useMemo(()=>({isDrawer:P,closeDrawer:u.close,dialogStyle:I,dialogRef:b,setDialogElement:v,isWithinModal:true}),[P,u.close,I,b,v]),B=Ct.useMemo(()=>({setIsPopoverSafelyClosed:g}),[g]),j={duration:.3,type:"tween",ease:"easeOut"},O={type:"spring",duration:.3},V={open:{opacity:1,transform:P?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:P?"translateY(0%)":"scale(1)"}:{opacity:0,transform:P?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:m&&!i,children:u.isOpen?jsxRuntime.jsx(Di.Provider,{value:N,children:jsxRuntime.jsx(Mi.Provider,{value:B,children:jsxRuntime.jsxs(Re,{className:f(Lc({enableDrawer:P,shouldContainOverlays:_}),t),"data-block-id":l,"data-block-class":p,style:{...o,...R},portalContainer:n,children:[jsxRuntime.jsx(react.motion.div,{...S,variants:{open:{opacity:1},closed:{opacity:i?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:j,className:f(Bc({shouldContainOverlays:_}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:$,"data-drawer":P,className:f(P?Nc:Ec,"BaselineUI-Modal-Content"),variants:V,transition:P?j:O,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(u):e})]})})}):null})};var Kc="var(--cjv3et0)",Gc=x({defaultClassName:"cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et2",md:"cjv3et3",lg:"cjv3et4",content:"cjv3et5"},variant:{primary:"_1yep5z6137",ghost:"cjv3et7"},overlayType:{modal:"cjv3et8",popover:"cjv3et9"},isDrawer:{true:"cjv3eta _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});var Ei=Ct__default.default.createContext({titleProps:{}}),Te=Ct__default.default.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:l,...p},c)=>{let m=Ct__default.default.useRef(null),u=Ct__default.default.useRef(null),{containerWidth:d,shouldContainOverlays:g}=Ct.useContext(qe),{isDrawer:b,closeDrawer:y,dialogStyle:v,setDialogElement:z,isWithinModal:_}=Ct.useContext(Di),[h,C]=Ct__default.default.useState(""),{focusProps:T,isFocusVisible:P}=reactAria.useFocusRing();Ct.useLayoutEffect(()=>{let k=u.current?.getRootNode(),S=p["aria-label"]||"";p["aria-labelledby"]&&(S=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),C(S);},[p]);let{dialogProps:$,titleProps:w}=reactAria.useDialog(p,m),D=Ct.useMemo(()=>({titleProps:w}),[w]);return b&&r?jsxRuntime.jsx(Ca,{title:h,onCloseRequest:y,className:t,style:v,...p,"data-drawer":true,"data-block-id":i,"data-block-class":s,ref:E(u,c,k=>{z(k);}),background:l,children:e}):jsxRuntime.jsx(Ei.Provider,{value:D,children:jsxRuntime.jsx("section",{...reactAria.mergeProps($,T),"data-block-id":i,"data-block-class":s,"data-focus-visible":P,"data-overlay-type":_?"modal":"popover",ref:E(m,c,k=>{z(k);}),style:{...v,...o,...dynamic.assignInlineVars({[Kc]:d&&g?`${d}px`:"100vw"})},className:f(Gc({size:b?"content":a,variant:n,isDrawer:b,isFocusVisible:P,overlayType:_?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});Te.displayName="Dialog";var Yc=Ct__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=Ct.useContext(Ei);return Ct__default.default.isValidElement(e)?Ct__default.default.cloneElement(e,{...a,ref:r,className:f(e.props.className,t),style:{...e.props.style,...o}}):jsxRuntime.jsx("h3",{...a,ref:r,className:t,style:o,children:e})});Yc.displayName="DialogTitle";var{color:ao}=tokens.themeVars,Xc=({placement:e,arrowProps:t})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:f(Tp({placement:e}),"BaselineUI-PopoverContent-Arrow"),...t,style:{...t.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.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:ao.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:ao.background.primary.subtle,stroke:ao.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:f($p({placement:e}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,style:{...t.style,position:"absolute"},children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:ao.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:ao.background.primary.subtle,stroke:ao.background.primary.subtle})]})]});var Ai=Ct__default.default.forwardRef(({portalClassName:e,portalStyle:t,className:o,style:r,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=false,offset:p=2,portalContainer:c,contentContainerClassName:m,contentContainerStyle:u,setPopoverStyle:d,"data-block-id":g,"data-block-class":b,popoverContainerRef:y,...v},z)=>{let _=pe(y),h=he(c),C=l?8:0,{underlayProps:T,popoverProps:P,placement:$,arrowProps:w}=reactAria.usePopover({...v,offset:p+C,popoverRef:_,containerPadding:v.containerPadding||0},a);delete P.style?.position;let D=$==="center"?"bottom":$,k=Ct.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:S}=ca({placement:$}),I=Ct.useMemo(()=>({...P.style,...dynamic.assignInlineVars({[Ep]:`${v.triggerRef?.current?.offsetWidth}px`}),...fi(r,k)}),[P.style,v.triggerRef,r,k]);return Ct.useEffect(()=>{d({left:P.style?.left,top:P.style?.top,zIndex:P.style?.zIndex});},[P.style?.left,P.style?.top,P.style?.zIndex,d]),jsxRuntime.jsxs(Re,{portalContainer:h,style:t,className:e,ref:z,"data-block-id":g,"data-block-class":b,children:[!v.isNonModal&&jsxRuntime.jsx("div",{...T,className:f(Np,Zr(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...De(P,S),style:I,ref:_,className:f(Sp,Zr(o,k),"BaselineUI-Popover-ContentContainer"),"data-placement":["top","bottom","left","right"].filter(R=>$?.includes(R)),children:[l?jsxRuntime.jsx(Xc,{placement:D,arrowProps:w}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:fi(u,k),className:f(Dp,Zr(m,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]})});Ai.displayName="PopoverContentCore";var td=({children:e,isOpen:t,popoverContentRef:o,portalContainer:r=document.body,style:a})=>{let[n,i]=Ct.useState(false),[s,l]=Ct.useState(null),p=Ct.useRef(null),{setIsPopoverSafelyClosed:c}=Ct.useContext(Mi);Ct.useEffect(()=>{t?(i(true),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(false);},300);},[t]),Ct.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let m=o.current;return Ct.useEffect(()=>{m&&l(m.getBoundingClientRect());},[m]),Ct.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?uz__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),r):null,e]})};var ue=Ct__default.default.forwardRef(({state:e,overlayProps:t,portalContainer:o,...r},a)=>{let{state:n,overlayTriggerAria:{overlayProps:i},triggerRef:s}=Ct.useContext(Ko),[l,p]=Ct.useState({}),c=he(o),m=e||n,u=r.triggerRef||s,d=t||i;L(u);let g=Ct__default.default.useRef(null);return jsxRuntime.jsx(td,{isOpen:m?.isOpen??false,popoverContentRef:g,portalContainer:c,style:l,children:m?.isOpen?jsxRuntime.jsx(Ai,{ref:a,...r,triggerRef:u,overlayProps:d,state:m,portalContainer:c,setPopoverStyle:p,popoverContainerRef:g}):null})});ue.displayName="PopoverContent";var no=({icon:e,tooltip:t,label:o,...r})=>{let{tooltipProps:a}=we({label:o,tooltip:t,offset:9});return jsxRuntime.jsx(re,{...a,children:({triggerProps:n,triggerRef:i})=>jsxRuntime.jsx(M,{display:"inline-flex",...n,ref:i,children:jsxRuntime.jsx(e,{...r})})})};var id=Ct__default.default.forwardRef(({className:e,style:t,onChange:o,"data-block-id":r,icon:a,formatValue:n=u=>u,tooltip:i=true,iconTooltip:s=true,popoverContentProps:l,isDisabled:p,...c},m)=>{let u=pe(m),[d,g]=utils.useControlledState(c.value,c.defaultValue||0,o),[b,y]=Ct__default.default.useState(false),{keyboardProps:v}=reactAria.useKeyboard({onKeyDown:C=>{(C.key==="Enter"||C.key==="Escape")&&y(false);}}),{tooltipProps:z}=we({label:c["aria-label"],tooltip:i}),_=n(d||0),h=z?.isDisabled||c["aria-label"]?`${c["aria-label"]}, ${_}`:_.toString();return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:f("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:u,children:[a?jsxRuntime.jsx(no,{icon:a,label:c["aria-label"],tooltip:s,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Ve,{type:"dialog",isOpen:b,onOpenChange:y,children:[jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx(re,{...z,children:jsxRuntime.jsx(X,{label:_,variant:"popover","aria-label":h,isDisabled:p,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(ue,{placement:"bottom start",...l,children:jsxRuntime.jsx(Te,{size:"content","aria-label":h,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:true,children:jsxRuntime.jsx(M,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...v,children:jsxRuntime.jsx(ro,{...c,onChange:C=>{g(C),o?.(C);},value:d})})})})})]})]})});id.displayName="IconSlider";var sd=x({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"bpklwac"]]}),ld=x({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),pd="bpklwad",cd=x({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),dd="bpklwa6",ud=x({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var bd=Ct__default.default.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p=Ct__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:m,isPressed:u}=reactAria.useSwitch({...s,children:t},c,p),{isFocusVisible:d,focusProps:g}=reactAria.useFocusRing(),{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:s.isDisabled}),v=A({"data-block-id":n,"data-block-class":i,"data-focused":d,"data-disabled":s.isDisabled,"data-focus-visible":d,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":y,"data-pressed":u}),z=jsxRuntime.jsx("div",{className:f(sd({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:f(ld({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(v,b),className:f(cd({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:l,children:[t?jsxRuntime.jsx("span",{className:f(pd,"BaselineUI-Switch-Label"),children:t}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,g),ref:p})}),r?jsxRuntime.jsxs("div",{className:ud({labelPosition:o}),children:[jsxRuntime.jsx("span",{className:f("BaselineUI-Switch-Status-Label",dd),children:c.isSelected?r.on:r.off}),z]}):z]})});bd.displayName="Switch";var gd="_19n40yy9",vd=x({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 Nz={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},hd=Ct__default.default.forwardRef(({className:e,size:t="md",variant:o="primary","data-block-id":r,"data-block-class":a,style:n,...i},s)=>{let l=Ct__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:m}=reactAria.useSearchField({...i,"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:u,isFocusVisible:d,isFocused:g}=reactAria.useFocusRing({within:true,isTextInput:true}),b=Nz[t],y=t==="sm"?_12.XIcon:_16.XIcon,v=A({"data-block-id":r,"data-block-class":a,"data-focused":g,"data-disabled":i.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...v,className:f(vd({size:t,isFocused:g,variant:o,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),style:n,ref:s,children:[jsxRuntime.jsx(b,{size:t==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,u),className:gd,ref:l}),p.value!==""&&jsxRuntime.jsx(F,{icon:y,...m,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});hd.displayName="SearchInput";var xd="xyd2ss1 _1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6ru _1yep5z6rv _1yep5z6rw _1yep5z6u6 _1yep5z6u7 _1yep5z6u8 _1yep5z6vc _1yep5z6vd _1yep5z6ve _1yep5z6t0 _1yep5z6t1 _1yep5z6t2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z617v _1yep5z617u _1yep5z6143 _1yep5z617y _1yep5z6124",Cd="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var ji=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(W,{elementType:"li"}),jsxRuntime.jsxs("li",{...r,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:Cd,children:[...e.childNodes].map(i=>(L(i.type==="item"),jsxRuntime.jsx(wa,{item:i,state:o,showSelectedIcon:t},i.key)))})]})]})};ji.displayName="MenuSection";var wa=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=Ct__default.default.useRef(null),n=reactAria.useMenuItem({key:e.key},t,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Uo,{item:e,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:o}),...n,isFocusVisible:i,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:t,showSelectedIcon:r})};wa.displayName="MenuItem";var kd=x({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),it="_1mdhlqvb cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",wd=x({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup82 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"},isReadOnly:{true:"_1mdhlqv7"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6h5"],[{isHovered:true,isReadOnly:false,isDisabled:false},"_1yep5z6la"]]}),Id="_1yep5z66x _1yep5z66y _1yep5z66z",Rd="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Vi=Ct__default.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=reactStately.useTreeState(r),i=Ct__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(r,n,i),{keyboardProps:l}=reactAria.useKeyboard({onKeyDown:o});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,l),className:f(it,xd,e),ref:E(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(ji,{section:p,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):jsxRuntime.jsx(wa,{item:p,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Vi.displayName="MenuContent";var Ia=Ct__default.default.forwardRef(({defaultOpen:e,onOpenChange:t,isOpen:o,isDisabled:r,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:m,triggerLabel:u,renderTrigger:d=({buttonProps:v,ref:z})=>jsxRuntime.jsx(X,{...v,variant:"popover",ref:z}),portalContainer:g,...b},y)=>{let v=Ct__default.default.useRef(null),z=he(g),_=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:t}),{menuTriggerProps:h,menuProps:C}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},_,v),T=be(),P=Ct.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:_.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof u=="function"?u(_.isOpen):u}),[h,r,_.isOpen,u]);return Ct.useEffect(()=>{!u&&!d&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[d,u]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d({buttonProps:P,ref:v}),_.isOpen?jsxRuntime.jsx(ue,{triggerRef:v,state:_,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:m||2,className:"BaselineUI-Menu-Popover",portalContainer:z,children:jsxRuntime.jsx(Vi,{className:a,...C,...b,ref:y,autoFocus:_.focusStrategy||"first",children:T})}):null]})});Ia.displayName="Menu";var Ra=x({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:true,isDisabled:false},"_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 Dd=Ct__default.default.forwardRef(({className:e,style:t,children:o,variant:r="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":l,title:p,role:c,...m},u)=>{let d=Ct__default.default.useRef(null),{linkProps:g,isPressed:b}=reactAria.useLink({...m,elementType:m.onPress?"span":n},d),{isFocusVisible:y,isFocused:v,focusProps:z}=reactAria.useFocusRing(),{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:m.isDisabled}),C=n,T=A({"data-block-id":s,"data-block-class":l,"data-disabled":m.isDisabled,"data-focused":v,"data-pressed":b,"data-focus-visible":y,"data-hovered":h,role:c,title:p});return jsxRuntime.jsx(C,{...reactAria.mergeProps(g,z,_,T),className:f(Ra({variant:r,isFocusVisible:y,isHovered:h,isDisabled:m.isDisabled,size:a,isActive:b,type:i}),"BaselineUI-Link",e),ref:E(d,u),style:t,children:o})});Dd.displayName="Link";function Md({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let l=reactAria.useId(),p=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":n?void 0:l,"aria-describedby":a||c,"aria-label":n,onChange:u=>{let d=[...u.target.files||[]];t?.(d),o?.(u);},name:r,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:c}}}async function Ki({items:e}){let t=e.filter(o=>o.kind==="file").map(async o=>(L(o.kind==="file"),o.getFile()));return await Promise.all(t)}var Nd=x({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:true},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:true},"_180w5ed6"],[{variant:"default",disabled:true},"_180w5ed7"],[{variant:"inline",disabled:true},"_180w5ed8"]]}),Ed=x({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Ld=x({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Bd=x({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var jd=Ct__default.default.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},i)=>{let s=Ct__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Md(n),{dropProps:m}=reactAria.useDrop({ref:s,onDrop:async({items:y})=>{let v=y.filter(_=>_.kind==="file").map(async _=>(L(_.kind==="file"),_.getFile())),z=await Promise.all(v);n.onValueChange?.(z);}}),{focusProps:u,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:g,isHovered:b}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(m,g,c),className:f(Nd({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:b||d}),e),ref:E(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,l)})}),r?jsxRuntime.jsx(r,{size:20,className:Ld({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Bd({disabled:n.isDisabled,hovered:b}),children:t}),o?jsxRuntime.jsx("div",{...p,className:Ed({disabled:n.isDisabled}),children:o}):null]})]})});jd.displayName="FileUpload";var Hd="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",Vd="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",Ud=x({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),qd="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",Kd="_12vfhl43 _1yep5z6g3 _1yep5z6ln",Gd="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Wd="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",Yd=x({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var Xd=Ct__default.default.forwardRef(({className:e,style:t,variant:o="active",showValue:r,description:a,errorMessage:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=reactAria.useId(),{labelProps:m,progressBarProps:u}=reactAria.useProgressBar({...l,"aria-describedby":a?c:l["aria-describedby"]}),{minValue:d=0,maxValue:g=100,value:b=0,label:y}=l,v=(b-d)/(g-d),z=`${Math.round(v*100)}%`,_=jsxRuntime.jsx("output",{className:Yd({hasLabel:!!y}),children:u["aria-valuetext"]}),h=o==="error"?n:a;return jsxRuntime.jsxs("div",{...u,style:t,className:f(Hd,"BaselineUI-ProgressBar",e),"data-block-id":i,"data-block-class":s,ref:p,children:[y?jsxRuntime.jsxs("div",{className:Vd,children:[jsxRuntime.jsx("label",{...m,className:qd,children:y}),r?_:null]}):null,jsxRuntime.jsxs("div",{className:Wd,children:[jsxRuntime.jsxs("div",{className:Gd,children:[jsxRuntime.jsx("div",{className:Kd,children:jsxRuntime.jsx("div",{style:{width:z},className:Ud({variant:o})})}),!y&&r?_:null]}),h?jsxRuntime.jsx("div",{className:Yt({hasError:o==="error"}),id:c,children:h}):null]})]})});Xd.displayName="ProgressBar";function lo({isReadOnly:e,validationState:t}){return e?_16.ReadOnlyIcon:t==="error"?_16.ErrorCircleFilledIcon:t==="warning"?_16.WarningFilledIcon:null}var Rt=Ct__default.default.forwardRef(({labelPosition:e="top",className:t,style:o,labelProps:r,isDisabled:a=false,isReadOnly:n=false,label:i,message:s,"data-block-id":l,validationState:p="valid",isFocused:c=false,variant:m="primary",children:u,fieldProps:d,wrapperRef:g,wrapperClassName:b,isInvalid:y},v)=>{let{hoverProps:z,isHovered:_}=reactAria.useHover({isDisabled:a}),h=lo({isReadOnly:n,validationState:p});return jsxRuntime.jsxs("div",{className:f(at({labelPosition:e}),t),"data-block-id":l,style:o,ref:v,children:[i||e==="start"&&s?jsxRuntime.jsxs("div",{className:rt({labelPosition:e,hasMessage:!!s}),children:[jsxRuntime.jsx(M,{...r,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:i}),e==="start"&&s]}):null,jsxRuntime.jsxs("div",{className:f({[eo]:a}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(d,z),className:f(Jt({validationState:y?"error":p,isHovered:_,isFocused:c,variant:m,isReadOnly:n,isDisabled:a}),b),ref:g,children:[u,h?jsxRuntime.jsx(h,{className:Xt({validationState:p,isReadOnly:n}),size:16}):null]}),e==="top"&&s]})]})});Rt.displayName="SharedInput";var st=Ct__default.default.forwardRef(({className:e,validationState:t,variant:o="primary",labelPosition:r="top",inputStyle:a,inputClassName:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=Ct__default.default.useRef(null),{inputProps:m,labelProps:u,descriptionProps:d,errorMessageProps:g,validationErrors:b}=reactAria.useTextField({...l,validationState:t?t==="error"?"invalid":"valid":void 0},c),y=l.errorMessage||b.join(" "),v=Ie({...l,errorMessage:y,descriptionProps:d,errorMessageProps:g,labelPosition:r});y&&(t="error");let{isFocused:z,focusProps:_,isFocusVisible:h}=reactAria.useFocusRing(),C=A({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":t,"data-focused":z,"data-focus-visible":h});return jsxRuntime.jsx(Rt,{variant:o,labelProps:u,isFocused:z,message:v,ref:p,labelPosition:r,className:f("BaselineUI-TextInput",e),validationState:t,"data-block-id":i,"data-block-class":s,...l,children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,_,C),className:f(pa({isDisabled:l.isDisabled,labelPosition:r}),"BaselineUI-TextInput-Input",n),style:a,ref:c})})});st.displayName="TextInput";var po=({value:e,...t})=>{let o=reactAria.useNumberFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};po.displayName="NumberFormat";var eu="_1yep5z6iv _1yep5z6iw _1yep5z6ix",tu=x({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup82"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true,isReadOnly:false},"_9b1tml7"],[{isSelected:true,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml8"],[{isSelected:false,isHovered:true,isDisabled:false,isReadOnly:false},"_9b1tml9"],[{isSelected:true,isDisabled:true},"_9b1tmla"],[{isSelected:true,isReadOnly:true},"_9b1tmlb"]]}),ou=x({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61n6"],[{isSelected:true,isDisabled:true},"_1yep5z61n6"],[{isSelected:false,isDisabled:true},"_1yep5z61n4"]]}),ru=x({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var iu=Ct__default.default.forwardRef(({className:e,count:t,style:o,size:r="md",icon:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p={isRequired:false},c=a||(r==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let m=Ct__default.default.useRef(null),u=reactStately.useToggleState({...s,...p}),{inputProps:d,isPressed:g,isDisabled:b,isReadOnly:y,isSelected:v}=reactAria.useSwitch({...s,...p},u,m),{focusProps:z,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:C,isHovered:T}=reactAria.useHover({}),P=A({"data-block-id":n,"data-block-class":i,"data-focused":_,"data-focus-visible":h,"data-disabled":b,"data-hovered":T,"data-pressed":g,"data-selected":v});return jsxRuntime.jsxs("label",{ref:l,style:o,className:f(eu,"BaselineUI-Reaction",e),...P,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,...z,ref:m})}),jsxRuntime.jsxs("div",{...C,className:tu({isSelected:v,isFocusVisible:h,isHovered:T,isReadOnly:y,isDisabled:b}),children:[jsxRuntime.jsx("div",{className:ru({isDisabled:b,isReadOnly:y}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:ou({isSelected:u.isSelected,isDisabled:b,isReadOnly:y,size:r}),children:jsxRuntime.jsx(po,{value:t})})]})]})});iu.displayName="Reaction";var su="_1azy5686",lu="_1azy5685",pu="var(--_1azy5680)",cu="_1azy5688",du="_1azy5689",uu="_1azy5681 z9nup81",mu="_1azy5682";var fu="_1azy5687";var Ah={sm:16,md:20},Fh={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},uo=Ct__default.default.forwardRef(({className:e,style:t,size:o="md",variant:r="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:l,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:true}),c=Ah[o],m=c/2-2,u=2*m*Math.PI,d=Fh[o][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:f(uu,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[pu]:`${u}px`}),...t},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:mu,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:su,cx:c/2,cy:c/2,r:m}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:lu,cx:c/2,cy:c/2,r:m})]}),r==="success"&&jsxRuntime.jsx(d,{className:fu,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:cu,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:du,children:i.label}):null]})});uo.displayName="ProgressSpinner";var Sa=x({defaultClassName:"_5uw3kp0 oom8bs0 z9nup81",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isFocusVisible:true},"_5uw3kpa"],[{isSelected:true,isDisabled:true},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),yu=x({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var Vh={sm:16,md:20,lg:24},Da=Ct__default.default.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let l=reactStately.useToggleState(i),{buttonProps:p,isPressed:c,ref:m,isFocusVisible:u,isFocused:d,isHovered:g,uiStateOptions:b}=ia(i,l),y=A({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":d,"data-focus-visible":u,"data-disabled":i.isDisabled,"data-hovered":g,"data-pressed":c,"data-selected":l.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,y),className:f(Sa({isHovered:g,isFocusVisible:u,isSelected:l.isSelected,size:r,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof e=="function"?e(b):e),style:typeof t=="function"?t(b):t,ref:E(m,s),children:[o?jsxRuntime.jsx(o,{size:Vh[r],className:yu({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Da.displayName="ToggleButton";var Ma=x({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Na=x({defaultClassName:"_16vugd00 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),Ea=x({defaultClassName:"_16vugd03 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6m1 _1yep5z6lz _1yep5z6h6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6f8 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lp _1yep5z6la",variantClassNames:{isIndeterminate:{true:"_1yep5z6181 _1yep5z612c"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd06"},isHovered:{true:"_1yep5z613a"},isDisabled:{true:"_16vugd08 _1yep5z613e"},isReadOnly:{true:"_16vugd09 _1yep5z6118 _1yep5z6184 _1yep5z6182 _1yep5z613e"},hasError:{true:"_1yep5z612q _1yep5z6184 _1yep5z6182"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false,isReadOnly:false},"_1yep5z61of"],[{isSelected:true,isDisabled:false,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isSelected:true,isDisabled:true},"_1yep5z61op _1yep5z61nf"],[{isSelected:true,isDisabled:true,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:true,isReadOnly:false,hasError:false},"_1yep5z61u4"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false},"_1yep5z61ol _1yep5z61nf"],[{isHovered:true,isSelected:false,isIndeterminate:true,isReadOnly:false,hasError:false},"_1yep5z61u4"]]});var vu=Ct__default.default.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=Ct__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:m,focusProps:u}=reactAria.useFocusRing(),{inputProps:d,isPressed:g,isDisabled:b,isSelected:y,isReadOnly:v}=reactAria.useCheckbox({...i,children:o},p,l),{hoverProps:z,isHovered:_}=reactAria.useHover({isDisabled:b}),h=A({"data-disabled":b,"data-readonly":v,"data-hovered":_,"data-selected":y,"data-pressed":g,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":m,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{...h,className:f(Na({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:l})}),jsxRuntime.jsxs("div",{...z,className:Ea({isSelected:y&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:b,isReadOnly:v,hasError:i.isInvalid,isHovered:_}),children:[y&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),o?jsxRuntime.jsx("span",{className:Ma({isDisabled:b}),children:o}):null]})});vu.displayName="Checkbox";var _u={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 zu=x({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),hu="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",xu=x({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),Cu=x({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var yx={style:"decimal"},bx={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Iu=Ct__default.default.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",hideActions:p,isDisabled:c,...m},u)=>{let{locale:d}=reactAria.useLocale(),g=H(_u),b={...m,formatOptions:yx,minValue:o,incrementAriaLabel:a||g.formatMessage("nextPage"),decrementAriaLabel:n||g.formatMessage("prevPage"),defaultValue:r,"aria-label":i||g.formatMessage("goToPage")},y=Ct__default.default.useRef(null),v=reactStately.useNumberFieldState({...b,locale:d}),{inputProps:z,decrementButtonProps:_,incrementButtonProps:h,groupProps:C}=reactAria.useNumberField({...b,onKeyDown:j=>{j.key==="Enter"&&y.current?.blur(),m.onKeyDown?.(j);},isDisabled:c},v,y),{hoverProps:T,isHovered:P}=reactAria.useHover({}),{focusProps:$,isFocused:w,isFocusVisible:D}=reactAria.useFocusRing(),k=l==="floating",[S,I]=bx[s],R=A({"data-focus-visible":D,"data-focused":w,"data-hovered":P,"data-block-id":m["data-block-id"],"data-block-class":m["data-block-class"]}),B=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(C,T,R),className:f(xu({size:s,variant:l}),"BaselineUI-Pagination",e),style:t,ref:u,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(F,{icon:S,..._,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:B,isDisabled:c||_.isDisabled}),l==="floating"&&jsxRuntime.jsx(W,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:zu({isFocused:w,variant:l,size:s}),"aria-label":g.formatMessage("pageXofY",{arg0:z.value,arg1:v.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(z,$),ref:y,className:f("BaselineUI-Pagination-Input",hu),style:{width:`${z.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Cu({isDisabled:c}),children:["/ ",jsxRuntime.jsx(po,{value:v.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(W,{orientation:"vertical"}),jsxRuntime.jsx(F,{icon:I,...h,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:B,isDisabled:c||h.isDisabled})]})]})});Iu.displayName="Pagination";var Ru=({date:e,...t})=>{let o=reactAria.useDateFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};Ru.displayName="DateFormat";var nr=x({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),La=x({defaultClassName:"_1f789qj0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1f789qj1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"_1f789qj7 _1yep5z6127"},allowsRemoving:{true:"_1f789qj8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"_1f789qja"},isHovered:{true:"_1f789qjb"},size:{md:"_1f789qjc",sm:"_1f789qjd"}},defaultVariants:{},compoundVariants:[[{allowsSelection:true,isHovered:true,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:true,isHovered:true,variant:"red"},"_1yep5z61np"],[{allowsSelection:true,isHovered:true,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:true,isHovered:true,variant:"green"},"_1yep5z61nt"],[{allowsSelection:true,isHovered:true,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:true,isSelected:true,isHovered:true},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:true},"_1yep5z61oa"],[{allowsRemoving:true,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:true,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),Tu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",$u="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Su=x({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:true,variant:"neutral"},"_1f789qj11"],[{isHovered:true,variant:"red"},"_1f789qj12"],[{isHovered:true,variant:"blue"},"_1f789qj13"],[{isHovered:true,variant:"green"},"_1f789qj14"],[{isHovered:true,variant:"high-contrast"},"_1f789qj15"]]}),Ba=x({defaultClassName:"_1f789qje",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]});var Eu=({item:e,state:t,variant:o="neutral",size:r="md"})=>{let a=Ct__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:true}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:m,isSelected:u,allowsSelection:d}=reactAria.useTag({item:e},t,a),g=Ct__default.default.useRef(null),{buttonProps:b}=reactAria.useButton(p,g),{hoverProps:y,isHovered:v}=reactAria.useHover({isDisabled:m}),{hoverProps:z,isHovered:_}=reactAria.useHover({isDisabled:m}),h=e.value?.icon,C=e.value?.data?.variant??o,T=r==="md"?_12.XIcon:_8.XIcon,P=r==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,z),ref:a,className:f(La({isFocusVisible:i,variant:C,isDisabled:m,allowsRemoving:c,isSelected:u,allowsSelection:d,isHovered:_,size:r}),Ba({variant:C,isDisabled:m,isSelected:u}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Tu,children:[u?jsxRuntime.jsx(P,{size:r==="md"?16:12,className:f(nr({variant:C,isDisabled:m,isSelected:u}),"BaselineUI-Tag-Icon")}):null,!u&&h?jsxRuntime.jsx(h,{size:r==="md"?16:12,className:f(nr({variant:C,isDisabled:m,isSelected:u}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(M,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:e.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(b,y),className:Su({variant:C,isHovered:v}),children:jsxRuntime.jsx(T,{size:r==="md"?12:8})}):null]})})};var Au=Ct__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,size:n="md",...i},s)=>{let l=Ct.useMemo(()=>a.map(d=>({...d,data:{variant:d.variant}})),[a]),p=be(),c=Ct__default.default.useRef(null),m=reactStately.useListState({...i,items:l,children:p}),{gridProps:u}=reactAria.useTagGroup(i,m,c);return jsxRuntime.jsx("div",{...u,className:f($u,"BaselineUI-TagGroup",e),style:t,"data-block-id":o,"data-block-class":r,ref:E(s,c),children:[...m.collection].map(d=>jsxRuntime.jsx(Eu,{state:m,item:d,variant:i.variant,size:n},d.key))})});Au.displayName="TagGroup";var Fu="_1yep5z6ln",Ou=x({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),ju=x({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Hu="_1kvz17de",Vu="_1yep5z6ev _1yep5z6dy",Uu=x({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup82"}},defaultVariants:{},compoundVariants:[]}),qu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Ku=x({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Yi=Ct__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=Ct.useContext(lt),{disabledKeys:n}=Ct.useContext(lt),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=ye(s.target),p=l?jr(l):jr(),c=[...a?.keys()||[]].findIndex(b=>a?.get(b)?.current===p),m=a?.get(c||0),u=a?.size||0,d=b=>{let y=a.get(b-1<0?u-1:b-1);n?.has(y?.current?.getAttribute("data-key")||"")?d(b-1):y?.current?.focus();},g=b=>{let y=a.get((b+1)%u);n?.has(y?.current?.getAttribute("data-key")||"")?g(b+1):y?.current?.focus();};if(m)switch(s.key){case "Home":{s.preventDefault(),g(-1);break}case "End":{s.preventDefault(),d(u);break}case "ArrowDown":{s.preventDefault(),g(c);break}case "ArrowUp":{s.preventDefault(),d(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:o,className:f(Fu,t),ref:r,children:Ct__default.default.Children.map(e,(s,l)=>Ct__default.default.cloneElement(s,{index:l}))})});Yi.displayName="AccordionBase";var lt=Ct__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Yu=Ct__default.default.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,c]=Ct__default.default.useState(o),m=Ct__default.default.useRef(new Map).current,[u,d]=Ct__default.default.useState(a);Ct.useEffect(()=>{d(a);},[a]),Ct.useEffect(()=>{n?.(p);},[p,n]);let g=Ct.useMemo(()=>({expandedKeys:r||p,setExpandedKeys:r?()=>{}:c,disabledKeys:t,headers:m,expansionMode:u}),[r,p,t,m,u]);return jsxRuntime.jsx(lt.Provider,{value:g,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Yi,{className:i,style:s,ref:l,children:e})})})});Yu.displayName="Accordion";var Zi=Ct__default.default.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=Ct__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:m,expansionMode:u,disabledKeys:d,headers:g}=Ct.useContext(lt),b=d?.has(r),y=reactAria.useFocusManager();L(y);let{focusNext:v,focusPrevious:z}=y,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:R=>{R.key==="ArrowRight"?v({wrap:true}):R.key==="ArrowLeft"?z({wrap:true}):R.continuePropagation();},isDisabled:b});Ct.useEffect(()=>{L(typeof n=="number","AccordionItem must have an index"),g?.set(n,p);},[n,g]);let h=()=>{m(R=>{let N=new Set(R);return N.has(r)?N.delete(r):(u==="single"&&N.clear(),N.add(r)),N});},{buttonProps:C}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":o,onPress:h,isDisabled:b},p),{pressProps:T}=reactAria.usePress({onPress:h,isDisabled:b}),{focusProps:P,isFocusVisible:$}=reactAria.useFocusRing(),{hoverProps:w,isHovered:D}=reactAria.useHover({isDisabled:b}),{focusProps:k,isFocusVisible:S}=reactAria.useFocusRing({within:true}),I=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,T,w,k),className:Uu({isFocusVisible:$,isHovered:D,isDisabled:b}),ref:l,children:[jsxRuntime.jsxs("div",{className:Ku({isDisabled:!!b}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:ju({isExpanded:I}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(C,P),id:a,"data-key":r,className:qu,ref:p,children:e})]}),t?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Ou({showActionsOnTriggerOnly:s,isTriggered:S||D}),children:t.map((R,N)=>jsxRuntime.jsx(F,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:b,...R},N))}):null,i?jsxRuntime.jsx("div",{className:Vu,children:i}):null]})});Zi.displayName="AccordionHeader";var tm=Ct__default.default.forwardRef(({title:e,actions:t,children:o,value:r,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let c=reactAria.useId(),m=reactAria.useId(),{expandedKeys:u}=Ct.useContext(lt),d=u.has(r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Zi,{value:r,actions:t,id:m,title:e,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:d?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":m,id:c,className:Hu,variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:jsxRuntime.jsx("div",{style:i,className:s,children:o})}):null})]})});tm.displayName="AccordionItem";var pr=Ct__default.default.forwardRef(({variant:e,isOpen:t,selectedIcon:o,validationState:r="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":l,"data-block-class":p,...c},m)=>{let u=Ct__default.default.useRef(null),{buttonProps:d,isPressed:g}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},u),{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:v,isFocused:z,isFocusVisible:_}=reactAria.useFocusRing(),h=lo({isReadOnly:c.isReadOnly,validationState:r});c.isReadOnly&&(d.disabled=false);let C=A({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":z,"data-focus-visible":_,"data-hovered":y,"data-pressed":g,"data-open":t,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(d,b,v,C),ref:E(m,u),className:f(wd({isFocused:_,isDisabled:!!c.isDisabled,isOpen:t,isHovered:y,variant:e,isReadOnly:!!c.isReadOnly}),Jt({variant:e,isHovered:y,isFocused:_,validationState:r,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[jsxRuntime.jsxs("span",{className:Rd,children:[o?jsxRuntime.jsx(o,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":true,className:f(Xt({validationState:r,isReadOnly:!!c.isReadOnly}),Id),children:jsxRuntime.jsx(h,{size:16})}):null]}),jsxRuntime.jsx("span",{"aria-hidden":true,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:kd({isOpen:t})})})]})});pr.displayName="SelectButton";var Aa=Ct__default.default.createContext({state:null,popoverAnchorRef:null}),es=Ct__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:l="bottom start",triggerClassName:p,triggerStyle:c,state:m,renderTrigger:u=({buttonProps:b,selectedValue:y,valueProps:v,isOpen:z,ref:_})=>{let h=y&&"icon"in y&&y.icon;return jsxRuntime.jsx(pr,{...b,className:p,style:c,isOpen:z,isReadOnly:d.isReadOnly,ref:_,variant:r,validationState:d.validationState,selectedIcon:h||void 0,label:y?"label"in y&&y?.label:d.placeholder,valueProps:v})},...d},g)=>{let{popoverAnchorRef:b}=Ct.useContext(Aa),y=Ct__default.default.useRef(null),v=he(d.portalContainer),{labelProps:z,triggerProps:_,valueProps:h,menuProps:C,descriptionProps:T,errorMessageProps:P}=reactAria.useSelect({...d,validationState:d.validationState==="error"?"invalid":"valid"},m,y),$=Ie({...d,descriptionProps:T,errorMessageProps:P,labelPosition:o}),w=m.selectedItem?.value??null;return jsxRuntime.jsxs(kt.Provider,{value:m,children:[jsxRuntime.jsxs("div",{style:t,className:f(at({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":n,ref:g,children:[d.label||$?jsxRuntime.jsxs("div",{className:rt({labelPosition:o,hasMessage:!!$}),children:[d.label?jsxRuntime.jsx("div",{...z,className:f(Zt,"BaselineUI-Select-Label"),children:d.label}):null,o==="start"&&$]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:m,triggerRef:y,isDisabled:d.isDisabled,label:d.label,name:d.name}),u({buttonProps:_,selectedValue:w,valueProps:h,isOpen:m.isOpen,ref:y}),o==="top"&&$]}),m?jsxRuntime.jsx(ue,{placement:l,portalContainer:v,offset:2,state:m,triggerRef:b||y,style:t,className:"BaselineUI-Select-Popover",...d,children:jsxRuntime.jsx(ze,{...C,label:d.label,items:d.items,showSelectedIcon:d.showSelectedIcon,className:it,optionStyle:i,optionClassName:s})}):null]})});es.displayName="SelectCore";var am=Ct__default.default.forwardRef((e,t)=>{let o=be(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:o});return jsxRuntime.jsx(es,{...e,ref:t,state:r})});am.displayName="SelectStandalone";var ct=Ct__default.default.forwardRef((e,t)=>{let{state:o}=Ct.useContext(Aa);return Ct.useEffect(()=>{L(o||e.items,"Select: A `state` that can be passed via context or `items` are required.");},[e.items,o]),o?jsxRuntime.jsx(es,{state:o,...e,ref:t}):jsxRuntime.jsx(am,{...e,ref:t})});ct.displayName="Select";var im=Ct__default.default.forwardRef(({className:e,style:t,variant:o,"data-block-id":r,icon:a,tooltip:n=true,iconTooltip:i=true,...s},l)=>{let p=Ct__default.default.useRef(null),{tooltipProps:c}=we({label:s["aria-label"],tooltip:n}),m=Ct.useCallback(({buttonProps:u,selectedValue:d,valueProps:g,isOpen:b,ref:y})=>{let v=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(re,{...c,children:jsxRuntime.jsx(pr,{...u,isOpen:b,isReadOnly:s.isReadOnly,ref:y,variant:o,validationState:s.validationState,selectedIcon:v||void 0,label:d?"label"in d&&d?.label:s.placeholder,valueProps:g})})},[s,c,o]);return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:f("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:E(l,p),children:[a?jsxRuntime.jsx(no,{icon:a,label:s["aria-label"],tooltip:i,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(ct,{...s,renderTrigger:m})]})});im.displayName="IconSelect";var sm="_1017q4c5",lm=x({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),pm="_1017q4c4";var d0={sm:_16.AvatarIcon,md:_24.AvatarIcon},bo=Ct__default.default.forwardRef(({className:e,style:t,size:o="md",icon:r=d0[o],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":c,"data-block-class":m},u)=>{let{imgProps:d}=Qt({src:n,alt:a}),g=a?.split(" ").map(b=>b[0]).join("");return jsxRuntime.jsxs("span",{className:f(lm({size:o,isDisabled:s}),"BaselineUI-Avatar",e),"data-disabled":s,ref:u,style:t,"aria-disabled":s,"data-block-id":c,"data-block-class":m,children:[n?jsxRuntime.jsx("img",{...d,loading:p,className:pm}):null,!i&&!n&&jsxRuntime.jsx(r,{size:o==="sm"?16:24}),i&&!n?o==="sm"?g[0]:g:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:sm}):null]})});bo.displayName="Avatar";var cm="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",dm=x({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61n0"],[{variant:"primary",isSelected:true},"_1yep5z61o7"],[{variant:"ghost",isSelected:true,isFocusVisible:false},"_1x62fhbd"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61n7"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:true},"_1yep5z61o8"]]}),um=x({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),mm="_1x62fhbl",os=x({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:true,isDisabled:false},"_1yep5z61nb"],[{variant:"ghost",isSelected:true,isDisabled:false},"_1yep5z61ng"],[{variant:"ghost",isDisabled:true,isSelected:true},"_1yep5z61nd"]]}),fm="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",ym=x({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var bm=({state:e,...t})=>{let o=Ct__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(t,e,o),{selectedItem:a}=e,{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing();if(!a?.value)return null;let{className:s,style:l,"data-block-id":p}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(r,n),ref:o,className:f({[fm]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var ns=Ct__default.default.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...l},p)=>{let c=reactStately.useTabListState({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),m=Ct__default.default.useRef(null),{tabListProps:u}=reactAria.useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},c,m);return jsxRuntime.jsxs("div",{className:f("BaselineUI-Tabs",e),style:t,ref:p,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:f(ym({variant:a}),r),style:o,children:[jsxRuntime.jsx("div",{...u,className:um({variant:a}),ref:m,children:[...c.collection].map(d=>(L(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(gm,{item:d,state:c,onRemove:i,variant:a},d.key)))}),n?.map((d,g)=>jsxRuntime.jsx("div",{className:cm,children:jsxRuntime.jsx(F,{...d,variant:"secondary",size:"sm",className:f(mm,d.className)})},g))]}),jsxRuntime.jsx(bm,{state:c},c.selectedItem?.key)]})});ns.displayName="TabsBase";var gm=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,i=Ct__default.default.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=reactAria.useTab({key:a},o,i),{hoverProps:c,isHovered:m}=reactAria.useHover({});L(n,"TabButton requires a value prop");let{title:u,icon:d,titleStyle:g,titleClassName:b}=n,{focusProps:y,isFocusVisible:v,isFocused:z}=reactAria.useFocusRing(),{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="Backspace"&&t?t(a):C.continuePropagation();}}),h=A({"data-selected":l,"data-disabled":p,"data-focused":z,"data-hovered":m,"data-focus-visible":v});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,s,c,y,h),className:f(dm({isHovered:m,isSelected:l,isFocusVisible:v,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",b),style:g,ref:i,children:[d?jsxRuntime.jsx(d,{size:20,className:os({isHovered:m,isSelected:l,isDisabled:p,variant:r})}):null,u,t?jsxRuntime.jsx(F,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{t(a);},excludeFromTabOrder:true,UNSAFE_NON_INTERACTIVE:true,style:{display:"inline-flex",opacity:l||z||m?1:0},className:os({isHovered:m,isSelected:l,isDisabled:p,variant:r})}):null]})};gm.displayName="TabButton";var _m=Ct__default.default.forwardRef(function({children:t,...o},r){let a=Ct.useMemo(()=>Ct__default.default.Children.map(t,n=>!n||!Ct__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[t]);return jsxRuntime.jsx(ns,{...o,ref:r,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});_m.displayName="Tabs";var zm=({children:e,title:t,value:o})=>(L(o,"TabItem requires a value prop"),L(t,"TabItem requires a title prop"),L(e,"TabItem requires children"),e);zm.displayName="TabItem";var hm={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 xm=x({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),Cm=x({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:false,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:true,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:true,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),Pm=x({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),km=x({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),wm=x({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Im=x({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Rm=x({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]});var F0={error:{sm:_16.ErrorAltCircleFilledIcon,md:_20.ErrorAltCircleFilledIcon},info:{sm:_16.InfoCircleFilledIcon,md:_20.InfoCircleFilledIcon},success:{sm:_16.CheckmarkCircleFilledIcon,md:_20.CheckCircleFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},ja=Ct__default.default.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm","data-block-id":c,"data-block-class":m,elementProps:u},d)=>{let g=H(hm),b=o&&jsxRuntime.jsx(X,{variant:s==="compact"?"tertiary":"ghost",label:o,onPress:r}),y=F0[n][p];return jsxRuntime.jsxs("div",{className:f(Cm({variant:n,arrangement:s,hasButton:!!o||!!l,hasCloseButton:!!l}),"BaselineUI-InlineAlert",e),"data-block-id":c,"data-block-class":m,style:a,role:"alert",ref:d,...u?.root,children:[jsxRuntime.jsxs("div",{className:Rm({arrangement:s}),children:[jsxRuntime.jsx(y,{className:wm({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:xm({arrangement:s}),...u?.content,children:[jsxRuntime.jsx("h3",{className:Im({size:p}),...u?.title,children:i}),jsxRuntime.jsx("section",{className:Pm({size:p}),...u?.description,children:t})]}),s==="compact"&&b]}),jsxRuntime.jsxs("div",{className:km({arrangement:s}),children:[s!=="compact"&&b,l?jsxRuntime.jsx(F,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":g.formatMessage("close"),...u?.close}):null]})]})});ja.displayName="InlineAlert";var dt={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 Ha=({children:e})=>{let{triggerProps:t}=Ct__default.default.useContext(wt);return jsxRuntime.jsx(interactions.PressResponder,{...t,children:e})};Ha.displayName="ModalTrigger";var K0=({children:e})=>{let{state:t}=Ct__default.default.useContext(wt);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{t?.close();},children:e})};var Tm="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",$m="_1dbkl5e",Sm=x({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup82 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Dm="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",Mm=x({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Va="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",Nm="_1dbkl5f z9nup86",Ua="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",Em="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",Lm="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",qa=x({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),ss="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",Bm=x({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isFocused:false},"_1yep5z61pb"]]}),Am=x({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),Ka="_1dbkl5g",ur="_1dbkl5u",Ga="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",ls="_1dbkl5x",Fm="_1dbkl5w",ps="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Wa=x({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),cs="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Om=x({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isFocusVisible:true},"_1344e9q6"],[{isSelected:true,isFocusVisible:true},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:true,isDisabled:true},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:true,isSelected:false},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),jm="_1yep5z6f6",Hm="_1344e9q9 _1yep5z6fl";var ut=Ct__default.default.forwardRef(({color:e,isFocusVisible:t,isSelected:o,isInteractive:r,isDisabled:a,style:n,className:i,id:s,tooltip:l,isIndeterminate:p,indeterminateIcon:c=_16.HelpIcon,"data-block-id":m,"data-block-class":u,...d},g)=>{let b=e&&e!==Oe&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:y}=H(),v=!b,{colorSwatchProps:z}=color$1.useColorSwatch({color:v?"#000000":e}),{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:a||!r}),C=A({"data-focus-visible":t,"data-selected":o,"data-hovered":h,"data-block-id":m,"data-block-class":u,"data-disabled":a,"data-interactive":r,"data-indeterminate":p}),T=v?y(Vm.none):z["aria-label"],P=d["aria-label"]??T,{tooltipProps:$}=we({tooltip:l,label:P}),w=jsxRuntime.jsx("div",{...reactAria.mergeProps(_,C,v?{}:z),style:n,"aria-label":v?y(Vm.none):z["aria-label"],role:"img",className:f(Om({removeBlendMode:v,isFocusVisible:t,isDisabled:!!a,isSelected:!!o,isHovered:h}),"BaselineUI-ColorSwatch",i),ref:g,id:s,...d,children:jsxRuntime.jsxs(M,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:b&&!p?Um(b,4):void 0,children:[v&&!p?jsxRuntime.jsx("div",{className:Hm}):null,p&&c?jsxRuntime.jsx(c,{role:"presentation",size:16,className:jm,"aria-hidden":"true"}):null]})});return $&&!a?jsxRuntime.jsx(re,{...$,children:jsxRuntime.jsx(xa,{children:w})}):w});ut.displayName="ColorSwatch";var Vm=J({none:{id:"none",defaultMessage:"None"}});var Km=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],yr=color.parseColor("#000000").toFormat("hsla"),ve="hsla",fr="hexa";function $t(e){return typeof e=="string"?color.parseColor(e).toFormat(ve):e?e.toFormat(ve):null}function Gm(e,t){return e?.getChannelValue("alpha")?t?.toString(fr)===e.toString(fr):!t?.getChannelValue("alpha")}function Wm(e,t,o){return t?.label?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var Oe="NONE";function Ym(e,t){let o=t?.map(a=>({id:color.parseColor(a.color).toString(fr),label:a.label}))||[],r={id:Oe,label:e};return [...o,r]}var Ya=(e,{optionProps:t,isFocusVisible:o,isSelected:r},a)=>(L(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...t,ref:a,className:Em,children:jsxRuntime.jsx(ut,{color:e.value.id,isFocusVisible:o,isSelected:r,"aria-label":e.value.label,isInteractive:true})})),Um=(e,t=4)=>{let o=e.getChannelValue("alpha")===0,r=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:o?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${t}px ${t}px`}};var Xm=({value:e,...t})=>{let o=Ct__default.default.useRef(null),r=Ct__default.default.useRef(null),a=Ct__default.default.useRef(null),n=color.useColorAreaState({...t,value:e}),{colorAreaProps:i,xInputProps:s,yInputProps:l,thumbProps:p}=color$1.useColorArea({...t,value:e,inputXRef:o,inputYRef:r,containerRef:a},n);Ct.useEffect(()=>{o.current?.focus();},[]);let{focusProps:c,isFocusVisible:m}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:f(Tm,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:f(Wa({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:$t(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:o,...s,...c}),jsxRuntime.jsx("input",{ref:r,...l,...c})]})})};var Jm=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=color.useColorFieldState({value:e,onChange:m=>{t($t(m)?.toFormat(ve).withChannelValue("alpha",e.getChannelValue("alpha")??1)||yr);}}),n=Ct__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=reactAria.useFocusRing({isTextInput:true}),{hoverProps:p,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:f(ss,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Bm({isFocused:l,isHovered:c,allowAlpha:o})}),o?jsxRuntime.jsx(ef,{color:e,setColor:t}):null]})},Qm=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:f(ss,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[jsxRuntime.jsx(Ke,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:false,className:ur,onChange:n=>{t(r.withChannelValue("red",n).toFormat(ve));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ke,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:false,className:ur,onChange:n=>{t(r.withChannelValue("green",n).toFormat(ve));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ke,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:false,className:ur,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(ve));},step:1,minValue:0,maxValue:255}),o?jsxRuntime.jsx(ef,{color:e,setColor:t}):null]})},fC={style:"percent",maximumFractionDigits:0},ef=({color:e,setColor:t})=>{let{locale:o}=reactAria.useLocale(),r=Ct.useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsxRuntime.jsx(Ke,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:fC,className:ur,showStepper:false,onChange:r,minValue:0,maxValue:1})};var fs=({channel:e,...t})=>{let{locale:o}=reactAria.useLocale(),r=color.useColorSliderState({...t,channel:e,locale:o}),a=Ct__default.default.useRef(null),n=Ct__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=color$1.useColorSlider({...t,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:f(Ua,{[vc({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:cs}),jsxRuntime.jsx("div",{className:Ua,style:i.style}),jsxRuntime.jsxs("div",{className:f(Wa({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:cs,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Ua}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var Xa=({color:e,setColor:t,allowAlpha:o,onChangeEnd:r})=>{let[a,n]=Ct__default.default.useState("hex"),{formatMessage:i}=H(dt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xm,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),jsxRuntime.jsxs("div",{className:ps,children:[jsxRuntime.jsx(fs,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),o?jsxRuntime.jsx(fs,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),jsxRuntime.jsxs("div",{className:f(ps,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(ct,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Km,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(Jm,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o}),a==="rgb"&&jsxRuntime.jsx(Qm,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o})]})]})};var nf=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=H(dt),c=Ct__default.default.useRef(null),m=Ae(c.current),[u,d]=mc(o,[]),g=Ct__default.default.useRef(null),[b,y]=Ct__default.default.useState(e),v=Ct__default.default.useMemo(()=>u.map(P=>({id:P,label:color.parseColor(P).getColorName(l),description:P})),[u,l]),z=Ct.useCallback(()=>{let P=i==="active"?e:b;if(u.includes(P.toString(ve))){g.current?.querySelector(`[data-key='${P.toString(ve)}']`)?.classList.add(ls);return}d([...u,P.toString(ve)]);},[u,e,d,b,i]);Ct.useEffect(()=>{let P=g.current;function $(w){w.animationName===Fm&&w.target?.classList.remove(ls);}return P?.addEventListener("animationend",$),()=>{P?.removeEventListener("animationend",$);}},[]);let _=reactAria.useId(),h=jsxRuntime.jsx(F,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:i==="active"?z:void 0}),C=Ct.useCallback(P=>jsxRuntime.jsxs(Te,{size:"content",className:qa({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(Xa,{color:b,setColor:y,allowAlpha:s}),jsxRuntime.jsx(W,{}),jsxRuntime.jsx(M,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(M,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(X,{label:p("cancel"),size:"sm",variant:"secondary",onPress:P}),jsxRuntime.jsx(X,{label:p("add"),variant:"primary",onPress:()=>{z(),P();},size:"sm"})]})})]}),[b,z,p,s]),T=Ct.useCallback(P=>{L(P instanceof Set,"Key must be a set");let $=[...P][0];$&&t(color.parseColor($).toFormat(ve));},[t]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(W,{}),jsxRuntime.jsxs("div",{className:f(Lm,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:_,children:n}),jsxRuntime.jsxs(M,{display:"flex",children:[!!u.length&&u.includes(e.toString(ve))&&jsxRuntime.jsx(F,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(u.filter(P=>P!==e.toString(ve)));}}),i==="active"&&h,i==="lazy"&&(m==="mobile"?jsxRuntime.jsxs(Fe,{children:[jsxRuntime.jsx(Ha,{children:h}),jsxRuntime.jsx(Ge,{style:{zIndex:1e5},children:({close:P})=>C(P)})]}):jsxRuntime.jsxs(Ve,{type:"dialog",children:[jsxRuntime.jsx(Ue,{children:h}),jsxRuntime.jsx(ue,{placement:"right top",className:Ka,offset:6,children:({close:P})=>C(P)})]}))]})]}),!!u.length&&jsxRuntime.jsx(ze,{items:v,layout:"grid","aria-labelledby":_,className:f(Va,Ga,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ya,ref:g,autoFocus:false,selectionMode:"single",selectedKeys:[e.toString(ve)],onSelectionChange:T})]})};var gs=Ct__default.default.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=H(dt),l=Ct.useCallback(p=>{if(p instanceof Set&&p.size){let c=[...p][0],m=a.find(u=>u.id===c);L(m,"Preset not found"),e(m.id===Oe?null:color.parseColor(m.id).toFormat(ve)),n.close();}},[n,a,e]);return jsxRuntime.jsx("div",{className:f(Ga,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(ze,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Va,renderOption:Ya,selectionMode:"single",selectedKeys:[t?.toString(fr)||Oe],onSelectionChange:l})})});gs.displayName="ColorPresetList";var gr=Ct__default.default.forwardRef(({color:e,colorLabel:t,colorName:o,isIndeterminate:r,indeterminateIcon:a,...n},i)=>{let s=Ct__default.default.useRef(null),{hoverProps:l,isHovered:p}=reactAria.useHover({isDisabled:n.isDisabled}),{buttonProps:c,isPressed:m}=reactAria.useButton(n,s),{isFocusVisible:u,focusProps:d}=reactAria.useFocusRing(),g=A({"data-block-id":n["data-block-id"],"data-focused":u,"data-focus-visible":u,"data-disabled":n.isDisabled,"data-hovered":p,"data-pressed":m}),b=Or(),y=Or();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(c,l,d,g),style:n.style,className:f(Sm({isHovered:p,isFocusVisible:u||n.isOpen,isDisabled:n.isDisabled,labelPosition:n.labelPosition}),"BaselineUI-ColorInputButton",n.className),ref:E(i,s),id:b,"aria-labelledby":n["aria-labelledby"]||`${b} ${y}`,children:[jsxRuntime.jsx(ut,{color:e?.toString("hexa"),isIndeterminate:r,indeterminateIcon:a}),t?jsxRuntime.jsx("div",{className:Nm,id:y,"aria-hidden":"true",children:o}):typeof o=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:o})]})});gr.displayName="ColorInputButton";var Qa=Ct__default.default.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=Ct__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(r,n),{isFocusVisible:c,focusProps:m}=reactAria.useFocusRing(),u=A({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":s,"data-pressed":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,m,u),ref:E(a,n),style:t,className:f(Am({isHovered:s||p||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton","BaselineUI-IconColorInput-Button",e),children:[jsxRuntime.jsx(o,{size:16}),jsxRuntime.jsx("div",{className:$m,style:{backgroundColor:r.color||void 0}})]})});Qa.displayName="IconColorInputButton";function ff({colorLabel:e,color:t,presets:o,isIndeterminate:r}){let{formatMessage:a}=H(),{locale:n}=reactAria.useLocale(),i=Ct.useMemo(()=>r?{id:"indeterminate",label:a(mf.indeterminate)}:o.find(p=>p.id===Oe?!t:t?Gm(t,color.parseColor(p.id)):false),[o,t,r,a]),s=Ct.useMemo(()=>{if(typeof e=="function")return e?.(t,{isIndeterminate:!!r});if(typeof e=="boolean")return e?Wm(t,i,a(mf.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,e,a,i,r]),l=Ct.useMemo(()=>{if(i?.label)return i.label;t?.getColorName(n);},[t,n,i?.label]);return {colorName:s,humanReadableName:l}}var mf=J({transparent:{defaultMessage:"Transparent",id:"transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"indeterminate"}});var _o=Ct__default.default.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=true,presets:a,labelPosition:n="top",colorLabel:i=true,includePicker:s=true,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:m="baselinePickedColor",value:u,addColorButtonLabel:d,removeColorButtonLabel:g,customColorsLabel:b,renderTriggerButton:y=({isOpen:D,color:k,ref:S,colorName:I,triggerProps:R,labelId:N,isIndeterminate:B,indeterminateIcon:j})=>jsxRuntime.jsx(gr,{...reactAria.mergeProps(R,{...$.label?{"aria-labelledby":N}:{"aria-label":$["aria-label"]}}),ref:S,isOpen:D,isDisabled:$.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:I,isIndeterminate:B,indeterminateIcon:j}),pickerMode:v="active",offset:z=2,placement:_=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":C,isIndeterminate:T,indeterminateIcon:P,...$},w)=>{let D=Ct__default.default.useRef(null),k=Ct__default.default.useRef(null),S=reactStately.useOverlayTriggerState($),{triggerProps:I,overlayProps:R}=reactAria.useOverlayTrigger({type:"listbox"},S,D),N=he($.portalContainer),[B,j]=utils.useControlledState(u===void 0?void 0:$t(u),$t(c),Q=>l?.(Q?.toFormat("rgba")||null)),{formatMessage:O}=H(dt),V=Ct.useMemo(()=>Ym(O(en.noColor),a),[a,O]),U=reactAria.useId(),{colorName:G}=ff({colorLabel:i,color:B,presets:V,isIndeterminate:T}),ee=Ct.useMemo(()=>V.filter(Q=>o||Q.id!==Oe),[V,o]),K=d||O(en.addColor),Y=g||O(en.removeColor),ae=b||O(en.customColors),ce=jsxRuntime.jsx(nf,{color:B||yr,setColor:Q=>{j(Q),p?.(Q?.toFormat("rgba")||null);},storePickedColorKey:m,addColorButtonLabel:K,removeColorButtonLabel:Y,customColorsLabel:ae,pickerMode:v,allowAlpha:r});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:f({[Dm]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,"data-block-class":C,style:t,ref:w,children:[$.label?jsxRuntime.jsx("label",{id:U,className:Mm({labelPosition:n}),children:$.label}):null,y({isOpen:S.isOpen,color:B,ref:D,colorName:G,triggerProps:I,labelId:U,isIndeterminate:T,indeterminateIcon:P})]}),jsxRuntime.jsx(ue,{...$,portalContainer:N,placement:_,state:S,offset:z,className:f(Ka,"BaselineUI-ColorInput-Popover"),triggerRef:D,overlayProps:R,children:jsxRuntime.jsxs(Te,{size:"content",className:qa({includesCustomColorPicker:s}),ref:k,"aria-labelledby":U,"aria-label":$["aria-label"],children:[s&&v==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xa,{color:B||yr,setColor:j,allowAlpha:r,onChangeEnd:Q=>{p?.(Q?.toFormat("rgba")||null);}}),ce]}):null,!!ee.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&v==="active"?jsxRuntime.jsx(W,{}):null,jsxRuntime.jsx(gs,{autoFocus:s&&v==="active"?false:"first",state:S,triggerRef:D,presets:ee,color:B,setColor:Q=>{j(Q),p?.(Q?.toFormat("rgba")||null);}})]}),s&&v==="lazy"?ce:null]})})]})});_o.displayName="ColorInput";var en=J({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var gf=Ct__default.default.forwardRef(({className:e,style:t,icon:o,variant:r="standard","data-block-id":a,tooltip:n=true,iconTooltip:i=true,...s},l)=>{let p=Ct__default.default.useRef(null),{tooltipProps:c}=we({label:s["aria-label"],tooltip:n}),m=Ct.useCallback(({isOpen:u,color:d,ref:g,colorName:b,triggerProps:y,isIndeterminate:v,indeterminateIcon:z})=>jsxRuntime.jsx(re,{...c,children:r==="standard"?jsxRuntime.jsx(gr,{...y,"aria-label":s["aria-label"],ref:g,isOpen:u,isDisabled:s.isDisabled,color:d,colorLabel:false,colorName:b,isIndeterminate:v,indeterminateIcon:z}):jsxRuntime.jsx(Qa,{...y,isOpen:u,icon:_20.TextIcon,color:d?.toString("hexa"),ref:g,isDisabled:s.isDisabled,"aria-label":s["aria-label"],isIndeterminate:v,indeterminateIcon:z})}),[s,c,r]);return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:r==="standard"?"md":"none",alignItems:"center",className:f("BaselineUI-IconColorInput",e),"data-block-id":a,style:t,ref:E(l,p),children:[r==="standard"&&o?jsxRuntime.jsx(no,{icon:o,label:s["aria-label"],tooltip:i,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(_o,{...s,colorLabel:false,renderTriggerButton:m})]})});gf.displayName="IconColorInput";var vf={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 tn=x({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:true,hasLoadedImage:false},"_1yep5z61oh"],[{isHovered:true,hasLoadedImage:true},"mnnh5s9"],[{isInline:true,isDisabled:true},"_1yep5z61pb"],[{hasLoadedImage:true,includeCheckeredBackground:true},"_1yep5z61o9"]]}),_f="_1yep5z6d8",on=x({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var zf=x({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:true,isFocusVisible:true},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:false,isFocusVisible:true},"_1i0ytqaa"],[{isInline:true,isDisabled:true},"_1yep5z61oi"],[{isInline:false,isDisabled:true},"_1yep5z61ok"]]}),hf="_1i0ytqa0",rn=x({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),xf=x({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function Cf({line:e,options:t}){let o=Ct.useRef([]),r=Ct.useMemo(()=>{let a=Math.ceil(e.length/zo),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!o.current[i])){let p=e.slice(i*zo-(i>0?1:0),i*zo+zo);n=Gr(perfectFreehand.getStroke(p.map(([c,m,u])=>({x:c,y:m,pressure:u})),t)),p.length>=(i>0?zo+1:zo)&&(o.current[i]=n);}return n},[e,t]);return [...o.current,r]}var zo=60*3;var lP={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:true},end:{taper:0,easing:e=>e,cap:true},simulatePressure:false},kf=Ct__default.default.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:a=true,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=false,isInline:m=true,isDisabled:u,placeholder:d,clearLabel:g,undoLabel:b,redoLabel:y,footerClassName:v,canvasRef:z,value:_,footerStyle:h,"data-block-id":C,"data-block-class":T,"aria-label":P="Drawing canvas",description:$="This is a canvas for drawing using a mouse or touch input.",...w},D)=>{let k=H(vf),S=Ct__default.default.useRef(null),[I,R]=Ct__default.default.useState(_||l||[]),N=Ct__default.default.useMemo(()=>({...lP,...w}),[w]),[B,j]=Ct__default.default.useState(),O=reactAria.useId(),{labelProps:V,fieldProps:U}=reactAria.useLabel({...w,"aria-label":P,labelElementType:"span"}),{isFocusVisible:G,focusProps:ee}=reactAria.useFocusRing({within:true}),{hoverProps:K,isHovered:Y}=reactAria.useHover({isDisabled:u}),{undo:ae,redo:ce,canRedo:Q,canUndo:q,push:de}=nc(I,{onAction:oe=>{oe&&(R(oe),p?.(oe));},isDisabled:!c}),{keyboardProps:xe}=reactAria.useKeyboard({onKeyDown:oe=>{oe.key==="Backspace"?Kt():oe.key==="z"&&(oe.metaKey||oe.ctrlKey)&&(oe.shiftKey?Q&&ce():q&&ae());}}),[se,Ce]=Ct.useState(false),Fo=Ct.useCallback(oe=>{let Z=oe.currentTarget.getBoundingClientRect();j(Z),oe.target.setPointerCapture(oe.pointerId);let ge=[oe.clientX-Z.x,oe.clientY-Z.y,oe.pressure];R(ne=>[...ne,[ge]]),Ce(true);},[]),Ut=Ct.useCallback(oe=>{if(oe.buttons!==1||!B)return;let ge=Rf(oe.nativeEvent).map(ne=>[a?utils.clamp(ne.clientX-B.left,0,B.width):ne.clientX-B.left,a?utils.clamp(ne.clientY-B.top,0,B.height):ne.clientY-B.top,ne.pressure]);R(ne=>{let ke=[...ne];return ke[ne.length-1]=[...ke[ne.length-1],...ge],ke});},[B,a]),qt=()=>{B&&(p?.(I),de(I),Ce(false));};Ct.useEffect(()=>{s?.(I);},[I,s]);let Kt=()=>{R([]),s?.([]),de([]);};return jsxRuntime.jsxs("div",{ref:E(S,D),className:f(hf,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":u,"data-block-id":C,"data-block-class":T,children:[w.label||c?jsxRuntime.jsxs("div",{className:xf({isInline:m}),children:[w.label?jsxRuntime.jsx(ie,{type:"label",size:"sm",...V,children:w.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(F,{variant:"secondary",size:"sm",isDisabled:!q||u,icon:_16.UndoIcon,onPress:ae,"aria-label":b||k.formatMessage("undo")}),jsxRuntime.jsx(F,{variant:"secondary",size:"sm",isDisabled:!Q||u,icon:_16.RedoIcon,onPress:ce,"aria-label":y||k.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(ee,xe,K,U),tabIndex:u?void 0:0,className:f(tn({isInline:m,isHovered:Y}),zf({isFocusVisible:G,isInline:m,isDisabled:!!u}),o),"aria-describedby":w["aria-describedby"]||O,style:r,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:O,children:$})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Fo,onPointerMove:Ut,onPointerUp:qt,children:(_||I).map((oe,Z,ge)=>Z<ge.length-1||!se?jsxRuntime.jsx(wf,{line:oe,options:N,strokeColor:i,strokeWidth:n},Z):jsxRuntime.jsx(If,{line:oe,options:N,strokeColor:i,strokeWidth:n},Z))})]}),d||g?jsxRuntime.jsx("div",{style:h,className:f(rn({isInline:m,isDisabled:u}),v),children:(I.length||!d)&&g?jsxRuntime.jsx(X,{size:"sm",variant:"ghost",label:g,isDisabled:u,onPress:Kt}):jsxRuntime.jsx(X,{size:"sm",variant:"ghost",label:d,isDisabled:true})}):null]})});kf.displayName="FreehandCanvas";var wf=Ct__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=Ct.useMemo(()=>Gr(perfectFreehand.getStroke(e.map(([n,i,s])=>({x:n,y:i,pressure:s})),t)),[e,t]);return jsxRuntime.jsx("path",{d:a,stroke:o,strokeWidth:r})});wf.displayName="Stroke";var If=Ct__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=Cf({line:e,options:t});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:o,strokeWidth:r},i))})});If.displayName="SplitStroke";function Rf(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(o=>Rf(o)):[e]}return [e]}var Tf="_1vac7ws0",$f=x({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Df(e,t){let[o,r]=Ct.useState([]),a=()=>e?.flatMap(n=>[...t.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();r(n);},[e],[a]),o}function Mf(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;Ct.useEffect(()=>{let a=Ur(t,o);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[t,r,o]);}var xP=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Ef=Ct__default.default.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:c,onDragEnd:m,onDrag:u,onResizeStart:d,onResizeEnd:g,onResize:b,onRotateStart:y,onRotateEnd:v,onRotate:z,onSnap:_,isSnappable:h,elementGuidelines:C,hideAnchorOnDrag:T=true,title:P,rotationPosition:$,autoUpdate:w,bound:D,snapRotationDegrees:k,snapRotationThreshold:S,scrollableAncestor:I,renderDirections:R,stopPropagation:N,transformOrigin:B,preventDefault:j},O)=>{let V=Ct.useRef(null),U=Ct.useRef(null),[G,ee]=Ct.useState(document),K=Ct.useRef(G.createElement("div")),[Y,ae]=Ct.useState({}),[ce,Q]=Ct.useState(false),[q,de]=Ct.useState(false),[xe,se]=Ct.useState(),Ce=Df(C,G);Ct.useLayoutEffect(()=>{let Z=K.current;return K.current=G.createElement("div"),()=>{Z.remove();}},[G]);let{keyboardProps:Fo}=reactAria.useKeyboard({onKeyDown:Z=>{let ge=Z.shiftKey?10:1,ne=Z.metaKey||Z.ctrlKey;ne&&Z.shiftKey&&(ge=45);function ke(et,Oo="x"){ne?U.current?.request("rotatable",{deltaRotate:et*ge},true):U.current?.request("draggable",Oo==="x"?{deltaX:et*ge}:{deltaY:et*ge},true);}switch(Z.key){case "ArrowRight":{ke(1);break}case "ArrowLeft":{ke(-1);break}case "ArrowUp":{ke(-1,"y");break}case "ArrowDown":ke(1,"y");}requestAnimationFrame(()=>{U.current?.updateRect();});}});Ct.useEffect(()=>{let Z=ye(V.current);ee(Z);let ge=K.current;Z.body.append(K.current);function ne(et){de(et.shiftKey);}function ke(){de(false);}return Z.addEventListener("keydown",ne),Z.addEventListener("keyup",ke),()=>{Z.removeEventListener("keydown",ne),Z.removeEventListener("keyup",ke),ge.remove();}},[]),Mf({scrollable:I,onScroll:()=>{U.current?.updateRect();},ownerDocument:G});let Ut=Ct.useCallback(Z=>{ae(ge=>({...ge,...Z.style})),i?.(Z);},[i]),qt=Ct.useCallback(Z=>{if(Q(true),V.current?.focus(),D){let ne=Ur(D,G)?.getBoundingClientRect();se({position:"client",left:ne?.left??0,top:ne?.top??0,right:ne?.right??0,bottom:ne?.bottom??0});}c?.(Z);},[D,G,c]),Kt=Ct.useCallback(Z=>{Q(false),m?.(Z);},[m]),oe=t({style:{...Y.width&&{width:Y.width},...Y.height&&{height:Y.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Fo,ref:E(V,O),style:{display:"inline-block",...n,...Y},className:f(Tf,e),onDoubleClick:p,tabIndex:0,title:P,children:oe}),uz.createPortal(jsxRuntime.jsx(xP,{ref:U,target:V,draggable:a,resizable:r,rotatable:o,keepRatio:q,throttleDrag:1,snappable:h||!!D,elementGuidelines:Ce,snapRenderThreshold:.9,className:$f({isDragging:ce&&T}),onRender:Ut,onDragStart:qt,onDragEnd:Kt,useResizeObserver:w,useMutationObserver:w,onRenderEnd:l,onDrag:u,onResizeStart:d,onResizeEnd:g,onResize:b,onRotateStart:y,onRotateEnd:v,onRotate:z,onRenderStart:s,onSnap:_,rotationPosition:$,bounds:xe,snapRotationDegrees:k,snapRotationThreshold:S,renderDirections:R,stopPropagation:N,preventDefault:j,transformOrigin:B}),K.current)]})});Ef.displayName="Transform";var Lf={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 Ff=Ct__default.default.forwardRef(({className:e,style:t,isInline:o=true,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:m=true,"data-block-id":u,"data-block-class":d,pickerButtonStyle:g,pickerButtonClassName:b,footerClassName:y,footerStyle:v,clearLabel:z,placeholder:_,labelStyle:h,labelClassName:C,...T},P)=>{let $=Ct__default.default.useRef(null),w=Ct__default.default.useRef(null),{formatMessage:D}=H(Lf),[k,S]=utils.useControlledState(n,a||null,se=>{L(typeof se!="string"),T.onValueChange?.(se?[se]:[]);}),I=Ct.useMemo(()=>NP(k||void 0),[k]),{fieldProps:R,labelProps:N}=reactAria.useField(T),{dropProps:B,isDropTarget:j}=reactAria.useDrop({ref:$,onDrop:async se=>{if(l)return;let Ce=await Ki({items:se.items});Ce.length&&S(Ce[0]),p?.(se);},...T}),{clipboardProps:O}=reactAria.useClipboard({onPaste:async se=>{if(l)return;let Ce=await Ki({items:se});Ce.length&&S(Ce[0]),c?.(se);},...T}),V=()=>{S(null),w.current&&(w.current.value="");},U={type:"file",onChange:se=>{let Ce=[...se.target.files];S(Ce[0]),T.onChange?.(se);},accept:r,disabled:l},{focusProps:G,isFocused:ee,isFocusVisible:K}=reactAria.useFocusRing({within:true}),{hoverProps:Y,isHovered:ae}=reactAria.useHover({isDisabled:l}),{imgProps:ce,isLoading:Q,isLoaded:q}=Qt({src:I,alt:i||""}),de={label:s||D("selectImage"),onPress:()=>$.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:true,className:f(sa({isFocusVisible:K}),{[_f]:j&&!l},b),style:g},xe=A({"data-loaded":q,"data-block-id":u,"data-block-class":d,"data-hovered":ae,"data-focused":ee,"data-drop-target":j,"data-disabled":l,"data-focus-visible":K});return jsxRuntime.jsxs(M,{...xe,className:f("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:P,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(B,Y,G,N),className:f(tn({isInline:o,isHovered:ae,isDisabled:l,hasLoadedImage:!!I&&q,showFocusRing:j||!!I&&K}),C),style:h,ref:$,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(R,O,U),ref:w})}),!I&&jsxRuntime.jsx(X,{...de}),!!I&&(Q?jsxRuntime.jsx(uo,{}):jsxRuntime.jsx("img",{className:on({isInline:o,isDisabled:l,hasLoadedImage:!!I&&q&&m}),...ce}))]}),_||z?jsxRuntime.jsx("div",{style:v,className:f(rn({isInline:o,isDisabled:l}),y),children:(I||!_)&&z?jsxRuntime.jsx(X,{size:"sm",variant:"ghost",label:z,isDisabled:l,onPress:V}):jsxRuntime.jsx(X,{size:"sm",variant:"ghost",label:_,isDisabled:true})}):null]})});Ff.displayName="ImageDropZone";function NP(e){return e instanceof File?URL.createObjectURL(e):e}var Of="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",Ps="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",jf=x({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup82 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:true},"_1yep5z61oi"],[{accent:"theme",isInline:true},"_1yep5z61o7"],[{accent:"positive",isInline:false},"_1yep5z61ok"],[{accent:"theme",isInline:false},"_1yep5z61o9"],[{isFocusVisible:true,isInline:true},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:true,isInline:true},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:true,isInline:false,accent:"positive"},"_1yep5z61oj"],[{isHovered:true,isInline:false,accent:"theme"},"_1yep5z61ob"],[{isHovered:true,isInline:true,accent:"theme"},"_1yep5z61o8"]]});var Uf=Ct__default.default.forwardRef(({className:e,style:t,isDisabled:o,isInline:r=true,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:m,addAriaLabel:u,accent:d="positive","data-block-id":g,"data-block-class":b,...y},v)=>{let{focusProps:z,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing({within:true}),{isHovered:C,hoverProps:T}=reactAria.useHover({isDisabled:o}),{pressProps:P}=reactAria.usePress({isDisabled:o,onPress:p});L(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let $=A({"data-hovered":C,"data-focus-visible":h,"data-focused":_,"data-disabled":o});return jsxRuntime.jsxs("div",{...y,className:f(jf({isInline:r,isFocusVisible:h,isDisabled:o,isHovered:C,accent:d}),"BaselineUI-Preview",e),"data-block-id":g,"data-block-class":b,"aria-label":y["aria-label"]||a||s,style:t,ref:v,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:o,...reactAria.mergeProps(T,z,P,$),className:Ps,"aria-label":u,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(T,z,P,$),disabled:o,style:l,"aria-label":u,className:Ps,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:on({isInline:r,isDisabled:o})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(F,{isDisabled:o,className:Of,"aria-label":m,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});Uf.displayName="Preview";var qf="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",Kf=x({defaultClassName:"cw3m0n5 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Gf="cw3m0n4",Wf="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",Yf=x({defaultClassName:"cw3m0n0 _1yep5z61j6 _1yep5z61j7 _1yep5z61j8 _1yep5z61ju _1yep5z61jv _1yep5z61jw _1yep5z61ki _1yep5z61kj _1yep5z61kk _1yep5z61l6 _1yep5z61l7 _1yep5z61l8 _1yep5z61nb _1yep5z61tg",variantClassNames:{isHovered:{true:"cw3m0n1"},isReadOnly:{true:"cw3m0n2"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isReadOnly:false},"cw3m0n3"]]});var KP=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n,isHovered:i,isReadOnly:s})=>jsxRuntime.jsxs("div",{className:Na({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:f(Ea({isSelected:o,isFocusVisible:r,isDisabled:a,isReadOnly:s,isHovered:i}),Yf({isHovered:i})),children:o?jsxRuntime.jsx("div",{className:Gf}):null}),e?jsxRuntime.jsxs("div",{className:qf,children:[jsxRuntime.jsx("span",{className:Ma({isDisabled:a}),children:e}),t?jsxRuntime.jsx("span",{className:Kf({isDisabled:a}),children:t}):null]}):null]}),Xf=({state:e,renderOption:t=KP,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(o.id),p=Ct__default.default.useRef(null),{inputProps:c,isPressed:m,isSelected:u}=reactAria.useRadio({...s,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:d,isFocusVisible:g,isFocused:b}=reactAria.useFocusRing(),{hoverProps:y,isHovered:v}=reactAria.useHover({isDisabled:l}),z=A({"data-selected":u,"data-focused":b,"data-focus-visible":g,"data-hovered":v,"data-disabled":l,"data-pressed":m,"data-read-only":i});return jsxRuntime.jsxs("label",{...y,...z,style:a,className:f("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:p})}),t(o,{isFocusVisible:g,isSelected:u,isFocused:b,isHovered:v,isDisabled:l,optionLabelPosition:r,isReadOnly:i})]})};var Jf=Ct__default.default.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c,"data-block-id":m,"data-block-class":u,...d},g)=>{let b=reactStately.useRadioGroupState(d),{radioGroupProps:y,labelProps:v,descriptionProps:z,errorMessageProps:_}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},b),h=Ie({...d,descriptionProps:z,errorMessageProps:_,labelPosition:n}),C=A({"data-orientation":d.orientation,"data-block-id":m,"data-block-class":u,"data-disabled":d.isDisabled,"data-readonly":d.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(y,C),className:f(at({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:g,children:[d.label||h?jsxRuntime.jsxs("div",{className:rt({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...v,className:f(Zt,"BaselineUI-RadioGroup-Label"),children:d.label}),n==="start"&&h]}):null,jsxRuntime.jsx("div",{className:f(Wf,{[eo]:d.isDisabled},o),style:r,children:a.map(T=>jsxRuntime.jsx(Xf,{state:b,renderOption:i,item:T,...d,value:T.id},T.id))}),n==="top"&&h]})});Jf.displayName="RadioGroup";var Qf=({id:e,defaultMessage:t,elementType:o=Ct.Fragment})=>{L(e||t,"`id` or `defaultMessage` is required.");let r=H();return jsxRuntime.jsx(o,{children:r.formatMessage(e)||t})};Qf.displayName="MessageFormat";var ey=Ct__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,role:n="group",isDisabled:i,...s},l)=>{let{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":r,"data-block-class":a,className:e,style:t,...s,ref:l,children:o})});ey.displayName="Group";var Rs="UNSUPPORTED_IN_MENU";function oy(e){return Ct.useMemo(()=>Ct__default.default.Children.toArray(e).map(t=>{let o=t,r=lodash.uniqueId("item"),a=xr(o,Ve),n=ty(o),i,s;if(a){let v=xr(a,Ue);L(v),i=ty(v),s=xr(a,ue).props.children;}else n?i=n:i=o;let{onPress:l,label:p,"aria-label":c,iconStart:m,isDisabled:u,icon:d}=i.props,g=p||c||Rs;L(typeof g=="string","ActionGroup children must have a string label");let b=`${r}-${g}`;return Ct.createElement(reactStately.Item,{...{key:b,onPress:l,textValue:g,"aria-label":c,icon:m||d,dialogContent:s,isDisabled:u},key:b},o)}),[e])}function xr(e,t){return t?lodash.flatMapDeep(Ct__default.default.Children.toArray(e),r=>Ct__default.default.isValidElement(r)&&r.props.children?[r,...Ct__default.default.Children.toArray(r.props.children)]:[r]).find(r=>Ct__default.default.isValidElement(r)&&r.type===t):void 0}function ty(e){return xr(e,X)||xr(e,F)}var ry="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",ay={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var l2=new Set(["text","search","password","tel","url"]);function nn(e,t){let{toolbarProps:o}=toolbar.useToolbar(e,t);return {toolbarProps:{...o,onKeyDownCapture:r=>{if(r.target instanceof HTMLInputElement&&l2.has(r.target.type)){let a=r.target.selectionStart===0,n=r.target.selectionEnd===r.target.value.length;(a&&r.key==="ArrowLeft"||n&&r.key==="ArrowRight")&&o.onKeyDownCapture?.(r);return}o.onKeyDownCapture?.(r);}}}}var $s=Ct__default.default.forwardRef(({className:e,style:t,children:o,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...l},p)=>{let{formatMessage:c}=H(),[m,u]=Ct.useState(),d=oy(o),g=reactStately.useListState({...l,children:d}),b=pe(p),y=Ct.useRef(null),[{visibleItems:v,isMeasuring:z},_]=oi({visibleItems:g.collection.size,isMeasuring:false}),h=Ct.useCallback(()=>{let S=I=>{if(y.current&&b.current){let R=[...y.current.children],N=b.current.getBoundingClientRect().width,B=I<g.collection.size,j=0,O=0;if(B){let V=R.pop();V&&(j+=sy(V,false,true));}for(let[V,U]of R.entries())if(j+=sy(U,V===0,V===R.length-1),Math.round(j)<=Math.round(N))O++;else break;return O}return I};_(function*(){yield {visibleItems:g.collection.size,isMeasuring:true};let I=S(g.collection.size),R=I<g.collection.size&&I>0;yield {visibleItems:I,isMeasuring:R},R&&(yield {visibleItems:S(I),isMeasuring:false});});},[_,b,g.collection.size]),C=Ct.useMemo(()=>({get current(){return b.current?.parentElement}}),[b]);ci({ref:C,onResize:h}),Le(h,[g.collection,h]);let{toolbarProps:T}=nn(l,b),P=[...g.collection],$=P.slice(0,v),w=P.slice(v).filter(S=>S.textValue!==Rs),D=w.length>0;Ct.useEffect(()=>{u(void 0);},[w.length]),Ct.useEffect(()=>{l.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[l.orientation]);let{keyboardProps:k}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(T,k),className:e,"data-block-id":a,"data-block-class":n,"data-collapse":true,style:{...t,flexBasis:z?"100%":void 0},ref:b,children:jsxRuntime.jsxs("div",{ref:y,className:ry,children:[$.map(S=>S.rendered),D?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!z&&i?jsxRuntime.jsx(M,{flexGrow:1}):null,jsxRuntime.jsx(Ia,{placement:"bottom end",renderTrigger:({buttonProps:S,ref:I})=>jsxRuntime.jsx(F,{...S,size:"md",icon:_24.MoreIcon,"aria-label":c(v2.more),variant:"toolbar",ref:I,tooltip:true}),...r,disabledKeys:w.filter(S=>S.props?.isDisabled).map(S=>S.key),items:w.map(S=>{let I=S.textValue||S["aria-label"];return L(I,"ActionItem must have a label"),{id:S.key,label:I,icon:S.props.icon}}),onAction:S=>{let I=g.collection.getItem(S);L(I,"Item not found");let{onPress:R,dialogContent:N}=I.props;R?.(),u(N);}})]}):null]})}),jsxRuntime.jsx(Fe,{isOpen:!!m,onOpenChange:S=>{S||u(void 0);},children:jsxRuntime.jsx(Ge,{enableDrawer:"auto",style:{zIndex:1e5},children:m?Ct__default.default.cloneElement(m,{inheritDrawer:true}):null})})]})});$s.displayName="CollapsibleToolbar";function sy(e,t,o){let a=le(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:ly(a.marginLeft))+(o?0:ly(a.marginRight))}function ly(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var v2=J({more:{id:"more",defaultMessage:"More"}});var Ss=Ct__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=Ct__default.default.useRef(null),{toolbarProps:p}=nn(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:f(ay[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":r,ref:E(s,l),children:i.children})});Ss.displayName="WrappedToolbar";var sn=Ct__default.default.forwardRef((e,t)=>{let o=e.isCollapsible?$s:Ss;return jsxRuntime.jsx(o,{...e,ref:t})});sn.displayName="Toolbar";var cy=x({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),dy=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup82 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:false,isHovered:true,isDisabled:false},"_1yep5z6g3"],[{isSelected:false,isFocusVisible:true,isDisabled:false},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true,isDisabled:false},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:true,isFocusVisible:false,isDisabled:false},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),uy=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),my=x({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup82 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),fy=x({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup82 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:false},"_1j5skr7c _1yep5z61nf"],[{isSelected:false,isDisabled:true},"_1j5skr7d _1yep5z61nd"],[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:false,isFocusVisible:true},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:true,isFocusVisible:true},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var R2={xxs:8,xs:12,sm:16,md:20,lg:24},Se=Ct__default.default.forwardRef((e,t)=>{let o=pe(t),{tooltipProps:r}=aa(e,o);return r?jsxRuntime.jsx(re,{...r,children:jsxRuntime.jsx(Ds,{...e,ref:t})}):jsxRuntime.jsx(Ds,{...e,ref:t})});Se.displayName="ToggleIconButton";var Ds=Ct__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},l)=>{let p=reactStately.useToggleState(s),{buttonProps:c,isPressed:m,ref:u,isFocusVisible:d,isFocused:g,isHovered:b,uiStateOptions:y}=ia(s,p),v=Ct.useMemo(()=>typeof o=="function"?o:p.isSelected?o.selected:o.unselected,[o,p.isSelected]),z={isSelected:p.isSelected,isHovered:b,isFocusVisible:d,isDisabled:!!s.isDisabled},_=A({"data-hovered":b,"data-selected":p.isSelected,"data-focus-visible":d,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":g,"data-pressed":m});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,_),className:f(a==="toolbar"&&fy(z),a==="primary"&&dy(z),a==="secondary"&&uy(z),a==="tertiary"&&my(z),cy({size:r}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:E(u,l),children:jsxRuntime.jsx(v,{size:R2[r]})})});Ds.displayName="ToggleIconButtonCore";var by="f6jv6bl",gy="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",Co="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",vy=x({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:true,isMinimal:false},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),ln=x({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),_y="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",zy="f6jv6bj";var hy="f6jv6bm _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",xy=x({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),Cy="_1yep5z6jy _1yep5z6jz _1yep5z6k0",Py="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",ky=x({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),wy="f6jv6bk",Iy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",pn=x({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),cn="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",Pr="f6jv6bn";var Ty=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:kr}}=tokens.layoutSprinkleValues,$y=({isOpen:e,onClose:t})=>{let{formatMessage:o}=H(),r=reactAria.useId();return jsxRuntime.jsx(Fe,{isOpen:e,onOpenChange:a=>{a||t();},children:jsxRuntime.jsx(Ge,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(Te,{"aria-labelledby":r,className:_y,drawerBackground:"subtle",children:[jsxRuntime.jsxs(M,{paddingLeft:kr.padding.horizontal.lg,paddingRight:kr.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:zy,children:[jsxRuntime.jsx(ie,{id:r,elementType:"h3",type:"title",size:"md",children:o(wr.help)}),jsxRuntime.jsx(F,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":o(wr.close),onPress:t})]}),jsxRuntime.jsx(W,{className:wy}),jsxRuntime.jsxs(M,{paddingX:kr.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(M,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:kr.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(wr.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(wr.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Ty.map(([a,n],i)=>jsxRuntime.jsxs(Ct.Fragment,{children:[jsxRuntime.jsxs(M,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:kr.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(ie,{type:"subtitle",size:"sm",role:"cell",children:o(wr[lodash.camelCase(a)])}),jsxRuntime.jsx(ie,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:np(n,true)})]}),i!==Ty.length-1&&jsxRuntime.jsx(W,{})]},a))})]})]})})})},wr=J({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var dn=Ct__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,placeholder:r,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:l,editableContentAriaLabel:p,editorHandle:c,autoFocus:m,saveOnEnter:u,onSave:d},g)=>{let b=Ct__default.default.useRef(null),[y,v]=utils.useControlledState(e,t||"",o),z=Ct.useCallback(k=>{v(k.currentTarget.value||"");},[v]),_=Ct.useCallback(k=>{(u&&k.key==="Enter"&&!k.shiftKey||(k.ctrlKey||k.metaKey)&&k.key==="Enter")&&(k.preventDefault(),d());},[u,d]);Ct.useImperativeHandle(g,()=>({clear:()=>{v("");}}));let h=Ct.useCallback(k=>{k.currentTarget.style.height="16px",k.currentTarget.style.height=k.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let k=b.current;k&&(k.style.height="16px",k.style.height=k.scrollHeight+"px");},[s],[y]),Ct.useImperativeHandle(c,()=>({setCaretPosition:k=>{b.current&&(b.current.focus(),b.current.setSelectionRange(k,k));},focus:()=>{b.current&&b.current.focus();}}));let{focusProps:C,isFocused:T,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:$,isHovered:w}=reactAria.useHover({}),D=A({"data-focus-visible":P,"data-hovered":w,"data-focused":T});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(C,$,D),ref:E(b,n),className:f(s?Py:[ln(),pn({isInline:i}),Iy]),autoFocus:m,onChange:z,disabled:l,onInput:h,value:y,placeholder:r,spellCheck:a,"aria-label":p,onKeyDown:_})});dn.displayName="PlainEditor";var Tr="mention",un="mention_input",Hy=Ct__default.default.forwardRef(({onCancel:e,editor:t,element:o,onSelectionChange:r},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=Ct.useContext(fn),l=slateReact.useSelected(),[p,c]=Ct.useState(""),{contains:m}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:u}=H(),d=Ct.useMemo(()=>{let R=i.filter(N=>p===""||m(N.displayName,p)).map(N=>({id:N.id,label:N.displayName,data:N}));return s?lodash.take(R,s):R},[i,s,p,m]),g=Ct.useCallback(R=>jsxRuntime.jsx(reactStately.Item,{children:R.label},R.id),[]),b=Ct.useCallback((R=false)=>{let N=plateCommon.findNodePath(t,o);N&&(plateCommon.removeNodes(t,{at:N}),R&&plateCommon.focusEditor(t));},[t,o]),y=reactStately.useComboBoxState({items:d,children:g,menuTrigger:"focus",onSelectionChange:R=>{b(true),r?.(R);}}),v=Ct__default.default.useRef(null),z=Ct__default.default.useRef(null),_=Ct__default.default.useRef(null),h=Ct__default.default.useRef(null),C=plateCombobox.useHTMLInputCursorState(z);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{y.close();}});let{inputProps:T,listBoxProps:P}=reactAria.useComboBox({defaultItems:d,inputRef:z,buttonRef:v,listBoxRef:_,popoverRef:h,menuTrigger:"focus","aria-label":u(ak.mention)},y);Ct.useEffect(()=>{z.current?.focus();},[]);let $=Ct.useCallback((R="manual",N=false)=>{b(N),e?.(R,y.inputValue);},[e,b,y.inputValue]),w=Ct.useRef(l);Ct.useEffect(()=>{w.current&&!l&&$("deselect"),w.current=l;},[l,$]);let D=C?.atStart??false,k=C?.atEnd??false,S=Ct.useCallback(R=>{R.key==="Backspace"&&D?$("backspace",true):R.key==="Escape"?$("escape",true):R.key==="ArrowLeft"&&D?$("arrowLeft",true):R.key==="ArrowRight"&&k&&$("arrowRight",true);let N=plateCommon.Hotkeys.isUndo(R)&&t.history.undos.length>0,B=plateCommon.Hotkeys.isRedo(R)&&t.history.redos.length>0;(N||B)&&(R.preventDefault(),t[N?"undo":"redo"](),plateCommon.focusEditor(t));},[D,k,$,t]),I=Ct.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let R=le(z.current),N=z.current?R?.getComputedStyle(z.current).font:void 0;return {width:N?Vr({text:y.inputValue,font:N}).width+10:"4ch"}}},[y.inputValue]);return jsxRuntime.jsxs(kt.Provider,{value:y,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(T,{onKeyDown:S,onBlur:()=>{$("blur",true);},onChange:R=>{c(R.target.value);}}),style:I,className:hy,ref:E(a,z)}),jsxRuntime.jsx(ue,{triggerRef:n,isNonModal:true,ref:h,state:y,crossOffset:-2,children:jsxRuntime.jsx(ze,{...P,items:void 0,autoFocus:"first",ref:_,className:f(it,tokens.sprinkles({width:"full"})),renderOption:Uy})})]})});Hy.displayName="MentionInputContentElement";var Bs=cn$1.withRef(({className:e,...t},o)=>{let{children:r,editor:a,element:n}=t,{items:i}=Ct.useContext(fn),s=Ct.useRef(null),[l,p]=Ct.useState(null);Ct.useEffect(()=>{let u=plateCommon.findNodePath(a,n);if(!u)return;let d=plateCommon.getPointBefore(a,u);if(!d)return;let g=plateCommon.createPointRef(a,d);return p(g),()=>{g.unref();}},[a,n]);let c=Ct.useCallback(()=>{let u=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Ho()&&u&&plateCommon.focusEditor(a);},[a]),m=Ct.useCallback(u=>{if(!u)return;let d=s.current?.getRootNode()instanceof ShadowRoot,g=i.find(y=>y.id===u);L(g,"User not found");let b={type:Tr,value:g.id,displayName:g.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[b,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:false,className:e,ref:o,...t,children:[jsxRuntime.jsx(Hy,{onCancel:(u,d)=>{u!=="backspace"&&plateCommon.insertText(a,"@"+d,{at:l?.current??void 0}),(u==="arrowLeft"||u==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:u==="arrowLeft"});},onSelectionChange:m,ref:s,element:n,editor:a}),r]})});Bs.displayName="MentionInputElement";var As=cn$1.withRef(({className:e,onClick:t,children:o,...r},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:false,"data-user-id":n.value,onClick:plateCommon.getHandler(t,n),ref:a,...r,children:["@",n.displayName,o]})});As.displayName="MentionElement";var Vy=(e,{options:{trigger:t,triggerPreviousCharPattern:o,triggerQuery:r}})=>{let{insertText:a}=e,n=i=>i===t;return e.insertText=i=>{if(!e.selection||!n(i)||r&&!r(e)){a(i);return}let s=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(o?.test(s)){mn(e);return}a(i);},e},ak=J({mention:{defaultMessage:"Mention",id:"mention"}});function Ky({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("p",{children:t})})}function _k(e){return Object.entries(e).map(([t,o])=>`${lodash.kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}function zk(e){return "text"in e}function hk(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function $r(e){if(!e)return "";function t(o){if(zk(o)){let a=hk(o.text);return o.bold&&(a=`<b>${a}</b>`),o.italic&&(a=`<i>${a}</i>`),o.underline&&(a=`<u>${a}</u>`),(o.color||o.backgroundColor)&&(a=`<span style="${_k(A({color:o.color||void 0,backgroundColor:o.backgroundColor||void 0}))}">${a}</span>`),a}let r=o.children?.map($r).join("");switch(o.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${o.url}">${r}</a>`;case Tr:return `<span data-user-id="${o.value}">${o.displayName}</span>`;default:return r}}return Array.isArray(e)?e.map(o=>t(o)).join(""):t(e)}function xk(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(o=>o.trim())).map(([t,o])=>[lodash.camelCase(t),o]))):{}}function Vs(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=new DOMParser().parseFromString(O5__namespace.default.sanitize(e),"text/html"),o=t.querySelectorAll("[style]");for(let a of o)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let r=t.querySelectorAll("br");for(let a of r)a.outerHTML=a.closest("p")?`
11
+ `:"<p>";return Yy(t.body)}function Yy(e,t){if(e.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let o={...t};switch(e.nodeName.toUpperCase()){case "B":{o.bold=true;break}case "I":{o.italic=true;break}case "EM":{o.italic=true;break}case "U":{o.underline=true;break}case "SPAN":{let a=xk(e.getAttribute("style")||"");a["text-decoration"]==="underline"&&(o.underline=true),a.color&&(o.color=a.color),a.backgroundColor&&(o.backgroundColor=a.backgroundColor);break}}let r=[...e.childNodes].flatMap(a=>Yy(a,o));switch(r.length===0&&r.push(slateHyperscript.jsx("text",o,"")),e.nodeName.toUpperCase()){case "BR":return slateHyperscript.jsx("text",t,`
12
+ `);case "SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:Tr,value:a,displayName:e.textContent},{text:""}):r}case "P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},r);case "A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:e.getAttribute("href")},r);default:return r}}function Xy(e){let t=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[o]=t||[{url:""}];return o?.url}function mn(e){let t={children:[{text:" "}],type:un};e.insertNode(t);}var Ck=plateCommon.createPluginFactory({isElement:true,isInline:true,isMarkableVoid:true,isVoid:true,key:Tr,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:true,isInline:true,isVoid:true,key:un}],withOverrides:Vy}),Zy=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Ky}),plateBasicMarks.createBoldPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:Jy}),Ck({component:As})],{components:{[un]:Bs}});var Et={Add:"add",Edit:"edit",Show:"show"},o1=({isDisabled:e})=>{let{formatMessage:t}=H(),o=plateCommon.useEditorRef();return jsxRuntime.jsxs(Ve,{type:"dialog",children:[jsxRuntime.jsx(Ue,{children:jsxRuntime.jsx(F,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":t(Lt.addLink),className:Co,preventFocusOnPress:true})}),jsxRuntime.jsx(ue,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(Te,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx($k,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(o,o.selection);},0);}})})})]})},$k=({close:e})=>{let t=plateCommon.useEditorRef(),{formatMessage:o}=H(),r=plateCommon.useEditorSelector(p=>Xy(p),[]),[a,n]=Ct__default.default.useState(r?Et.Show:Et.Add),[i,s]=Ct__default.default.useState(r||""),l=jsxRuntime.jsx(M,{padding:"lg",children:jsxRuntime.jsx(st,{label:o(Lt.link),value:i,autoFocus:true,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===Et.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(M,{display:"flex",justifyContent:"flex-end",padding:"lg",className:by,children:jsxRuntime.jsx(X,{isDisabled:!ui(i,true),label:o(Lt.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();},preventFocusOnPress:true})})]}),a===Et.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{padding:"lg",children:jsxRuntime.jsx(ie,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(M,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(X,{label:o(Lt.editLink),size:"sm",variant:"secondary",onPress:()=>{n(Et.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(X,{label:o(Lt.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(t),e?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),a===Et.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(M,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(X,{label:o(Lt.cancel),size:"sm",variant:"secondary",onPress:()=>{n(Et.Show),e?.();}}),jsxRuntime.jsx(X,{label:o(Lt.save),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();}})]})]})]})};function Jy({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("a",{className:Ra({size:"sm"}),children:t})})}var Lt=J({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 Dk=color.parseColor("#ffffff00").toString("hexa"),Us=[{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"}];[...Us,{label:"Transparent",color:Dk}];var bn=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,e),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(Se,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{plateCommon.toggleMark(n,{key:e});},preventFocusOnPress:true})},Ks=({nodeType:e,"aria-label":t,isDisabled:o})=>{let{updateColor:r,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),i=Ct.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(F,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:o,className:Co,preventFocusOnPress:true,...p,ref:l}),[e,t,o]),s=Ct.useCallback(l=>{l?r(l.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(_o,{presets:Us,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:o})};var sw=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],fn=Ct__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Ys=Ct__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,style:r,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:l,containerRef:p,onHelpDialogOpenRequest:c,mentionableUsers:m,editorHandle:u,maxMentionableUsersSuggestions:d,autoFocus:g,editorRef:b,saveOnEnter:y,onSave:v},z)=>{let _=Ct.useRef(null),h=reactAria.useId(),{formatMessage:C}=H(),T=Ct.useRef(null),P=T.current,$=Ct.useRef(null),w=Ct.useMemo(()=>P?.getRootNode()instanceof ShadowRoot,[P]),[D,k]=utils.useControlledState(e?Vs(e):void 0,Vs(t||"<p></p>"),R=>{o&&o($r(R));}),{keyboardProps:S}=reactAria.useKeyboard({onKeyDown:R=>{(y&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),v()),R.altKey&&R.key==="F10"?(R.preventDefault(),_.current&&_.current.querySelector("button")?.focus()):R.continuePropagation(),Ho()&&w&&$.current&&plateCommon.focusEditor($.current);}});Ct.useEffect(()=>{s&&$.current&&plateCommon.deselect($.current);},[s]),Ct.useImperativeHandle(z,()=>({startMention:()=>{$.current&&!T.current?.querySelector("input[role='combobox']")&&mn($.current);}})),Ct.useImperativeHandle(u,()=>({setCaretPosition:R=>{$.current&&(plateCommon.focusEditor($.current),plateCommon.moveSelection($.current,{distance:R,unit:"character"}));},focus:()=>{$.current&&plateCommon.focusEditor($.current);}}));let I=Ct.useMemo(()=>({items:m||[],containerRef:p,maxMentionableUsersSuggestions:d}),[m,p,d]);return jsxRuntime.jsx(fn.Provider,{value:I,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:D||sw,plugins:Zy,editorRef:E($,b||null),onChange:R=>{k(R);},children:[jsxRuntime.jsxs(sn,{className:cn,"aria-controls":h,ref:_,children:[jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(bn,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:C(Io.bold),isDisabled:s}),jsxRuntime.jsx(bn,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:C(Io.italic),isDisabled:s}),jsxRuntime.jsx(bn,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:C(Io.underline),isDisabled:s})]}),jsxRuntime.jsx(W,{orientation:"vertical",className:Pr}),jsxRuntime.jsx(Ks,{nodeType:plateFont.MARK_COLOR,"aria-label":C(Io.fontColor),isDisabled:s}),jsxRuntime.jsx(W,{orientation:"vertical",className:Pr}),jsxRuntime.jsx(Ks,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":C(Io.backgroundColor),isDisabled:s}),jsxRuntime.jsx(W,{orientation:"vertical",className:Pr}),jsxRuntime.jsx(o1,{isDisabled:s}),jsxRuntime.jsx(W,{orientation:"vertical",className:Pr}),jsxRuntime.jsx(F,{className:Co,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":C(Io.help),onPress:c})]}),jsxRuntime.jsx(W,{variant:"secondary"}),jsxRuntime.jsx("div",{...S,ref:T,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:r,placeholder:n,autoFocus:g,spellCheck:a,"aria-label":l,className:f(ln({isDisabled:s}),pn({isInline:i})),renderPlaceholder:({attributes:R,children:N})=>jsxRuntime.jsx("span",{...R,className:tokens.sprinkles({paddingY:"lg"}),children:N})})})]})})});Ys.displayName="RichEditor";var Uy=({key:e,value:t},{isDisabled:o,optionProps:r,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:o}),{label:l,data:p}=t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,s),className:xy({isDisabled:o,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(bo,{name:l,...p?.avatar}),jsxRuntime.jsxs(M,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(ie,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(ie,{type:"helper",size:"sm",children:p?.description})]})]}),e===n.collection.getLastKey()?null:jsxRuntime.jsx(W,{})]})},Io=J({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"},help:{defaultMessage:"Help",id:"help"}});var s1=Ct__default.default.memo(Ct__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,enableRichText:a=false,onCancel:n,onSave:i,isInline:s=true,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":m,"aria-describedby":u,"aria-labelledby":d,"aria-details":g,editableContentAriaLabel:b="Editing Area",footerButtons:y,clearOnCancel:v,clearOnSave:z,..._},h)=>{let C=Ct.useRef(null),{formatMessage:T}=H(),P=Ct.useRef(null),$=Ct.useRef(null),w=Ct.useRef(null),D=!a&&_.variant==="minimal",k=Ct.useRef(null),[S,I]=Ct__default.default.useState(_.value||_.defaultValue),R=_.isDisabled||_.isSaveDisabled||!ip(S||""),{fieldProps:N}=reactAria.useLabel({"aria-label":m,"aria-labelledby":d,"aria-describedby":u,"aria-details":g,labelElementType:"div"});D&&!_.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let B=Ct.useCallback(()=>{I(""),a?C.current?.reset():$.current?.clear();},[a]),j=Ct.useCallback(()=>{R||(i?.(a?$r(C.current?.children):P.current.value),z&&B());},[B,z,a,i,R]),O=jsxRuntime.jsx(F,{variant:"ghost","aria-label":p||T(Zs.save),icon:l,isDisabled:R,size:"md",excludeFromTabOrder:D,className:D?Cy:void 0,onPress:j,preventFocusOnPress:true}),[V,U]=Ct__default.default.useState(false),{keyboardProps:G}=reactAria.useKeyboard({onKeyDown:K=>{(K.metaKey||K.ctrlKey)&&K.shiftKey&&K.key==="h"&&(K.preventDefault(),U(true));}}),ee=Ct.useCallback(K=>{I(K),_.onChange?.(K);},[_]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(N,a?G:{}),role:"application",ref:E(w,h),style:t,"data-block-id":o,"data-block-class":r,className:f(vy({isInline:s,isMinimal:D}),"BaselineUI-Editor",e),"aria-disabled":_.isDisabled,children:[D?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(bo,{className:gy,name:_.avatarName||""}):null,jsxRuntime.jsxs("div",{className:ky({isInline:s}),children:[jsxRuntime.jsx(dn,{isMinimal:D,textBoxRef:P,isInline:s,editableContentAriaLabel:b,..._,onChange:ee,onSave:j}),O]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Ys,{containerRef:w,ref:k,editorRef:C,isInline:s,editableContentAriaLabel:b,onHelpDialogOpenRequest:()=>{U(true);},..._,onChange:ee,onSave:j}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(W,{variant:"secondary"}),jsxRuntime.jsx(dn,{onCancel:n,textBoxRef:P,ref:$,isInline:s,editableContentAriaLabel:b,..._,onChange:K=>{I(K),_.onChange?.(K);},onSave:j})]}),jsxRuntime.jsx(W,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:f(cn,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(M,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&_.mentionableUsers?jsxRuntime.jsx(F,{icon:_20.AtIcon,size:"sm","aria-label":T(Zs.mention),onPress:()=>k.current?.startMention(),preventFocusOnPress:true}):null,y?.map(({type:K,props:Y},ae)=>K==="action"?jsxRuntime.jsx(F,{...Y,size:"sm",isDisabled:_.isDisabled||Y.isDisabled},ae):jsxRuntime.jsx(Se,{...Y,size:"sm",variant:"tertiary",isDisabled:_.isDisabled||Y.isDisabled},ae))]}),jsxRuntime.jsxs(M,{children:[!!n&&jsxRuntime.jsx(F,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:_.isDisabled,size:"md",onPress:()=>{n(),v&&B();},"aria-label":c||T(Zs.cancel)}),O]})]})]}),jsxRuntime.jsx($y,{isOpen:V,onClose:()=>{U(false);}})]})}));s1.displayName="Editor";var Zs=J({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var l1="_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101";var c1=2,u1=Ct__default.default.forwardRef(({className:e,style:t,hideForKeyboard:o,scrollRef:r,label:a,delay:n=1500,smoothScroll:i=true,"data-block-id":s,"data-block-class":l},p)=>{let c=Ct__default.default.useRef(null),m=interactions.useInteractionModality(),[u,d]=Ct__default.default.useState(false),g=Ct.useCallback(()=>{let w=r?.current||ye(c.current).body;return le(w).getComputedStyle(w).flexDirection==="column-reverse"?w.scrollTop+c1>=0:w.scrollTop+w.clientHeight+c1>=w.scrollHeight},[r]),[b,y]=Ct__default.default.useState(g),{buttonProps:v,isPressed:z}=reactAria.useButton({onPress:()=>{let w=r?.current||ye(c.current).body;w.scrollTo({top:w.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:_,isFocused:h,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:T,isHovered:P}=reactAria.useHover({}),$=A({"data-block-id":s,"data-block-class":l,"data-pressed":z,"data-focus-visible":C,"data-hovered":P,"data-focused":h});return Ct.useEffect(()=>{y(g());},[g]),Ct.useEffect(()=>{let w=r?.current||ye(c.current).body,D="onscrollend"in le(w),k=()=>{setTimeout(()=>{d(false),y(g());},n);},S=()=>{d(true),D||k();};return w.addEventListener("scroll",S),w.addEventListener("scrollend",k),()=>{w.removeEventListener("scroll",S),w.removeEventListener("scrollend",k);}},[r,n,g]),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:(!o||m!=="keyboard")&&!u&&!b?jsxRuntime.jsxs(react.motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...reactAria.mergeProps(v,_,T,$),className:f(l1,La({isFocusVisible:C,variant:"high-contrast",isHovered:P}),Ba({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:E(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:nr({variant:"high-contrast"})}),a]}):null})});u1.displayName="ScrollControlButton";var Qs="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",m1=x({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:true,hasNoCloseBtn:true},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),f1="_1v0p2z10";function y1({ariaProps:e,fallbackLabelId:t,fallbackDescriptionId:o}){let r={...e};return t&&!r["aria-labelledby"]&&!r["aria-label"]&&(r["aria-labelledby"]=t),o&&!r["aria-describedby"]&&!r["aria-details"]&&(r["aria-describedby"]=o),r}var _n=Ct__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:l,icon:p,iconColor:c,showCloseButton:m=true,onPrimaryAction:u,onCancel:d,autoFocusButton:g,isPrimaryActionDisabled:b,...y},v)=>{let z=reactAria.useId(),_=reactAria.useId(),{formatMessage:h}=H(),C=n&&jsxRuntime.jsx(ie,{type:"title",size:"sm",elementType:"h3",id:z,children:n}),T=y1({ariaProps:y,fallbackLabelId:n?z:void 0,fallbackDescriptionId:a?_:void 0});return jsxRuntime.jsxs(Te,{...T,className:e,style:t,"data-block-id":o,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:v,children:[jsxRuntime.jsxs("div",{className:m1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!m}),children:[jsxRuntime.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[p?jsxRuntime.jsx(p,{style:{color:c},size:24}):null,!p&&C,m?jsxRuntime.jsx(F,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":h(Rw.close),onPress:d}):null]}),p?C:null]}),a?jsxRuntime.jsx(M,{elementType:"section",className:f1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",id:_,children:a}):null,l?jsxRuntime.jsx(M,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(st,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(W,{}),jsxRuntime.jsxs(M,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(X,{variant:"secondary",className:Qs,label:s,onPress:d,autoFocus:g==="cancel"}):null,i?jsxRuntime.jsx(X,{className:Qs,label:i,onPress:u,autoFocus:g==="primary",isDisabled:b}):null]})]}):null]})});_n.displayName="AlertDialog";var Rw=J({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var g1="_1t55bp71",v1="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",_1="_1t55bp70";var Mw=Dw__default.default(),z1=Ct__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,showCaret:n},i)=>{let s=Ct.useMemo(()=>{let l=o;return (!o||Array.isArray(o)&&o.length===0)&&(l=""),Mw.render(l)},[o]);return jsxRuntime.jsx("div",{className:f(v1,_1,{[g1]:n},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:t,ref:i,dangerouslySetInnerHTML:{__html:s}})});z1.displayName="Markdown";function P1(e){let{formatMessage:t,locale:o}=H(),[r,a]=Ct__default.default.useState(false),[n,i]=Ct__default.default.useState(0),[s,l]=Ct__default.default.useState(0),[p,c]=Ct__default.default.useState(false);Ct.useEffect(()=>{if(!e.current)return;let d=e.current,g=()=>{a(false),i(0);},b=()=>{p||i(d.currentTime*100/d.duration);},y=()=>{l(d.duration);};return d.addEventListener("ended",g),d.addEventListener("timeupdate",b),d.addEventListener("loadedmetadata",y),()=>{d.removeEventListener("ended",g),d.removeEventListener("timeupdate",b),d.removeEventListener("loadedmetadata",y);}},[p,e]);let m=Ct.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(true),liveAnnouncer.announce(t(x1.playing),"polite")):(e.current.pause(),a(false),liveAnnouncer.announce(t(x1.paused),"polite"))))();},[t,e]),u=Ct.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(Lw(e.current.currentTime,o.locale),"assertive"));},[o.locale,e]);return {isPlaying:r,progress:n,duration:s,togglePlay:m,seek:u,setProgress:i,formattedCurrentTime:e.current?.currentTime?C1(e.current?.currentTime):"00:00",formattedDuration:s?C1(s):"00:00",setIsSliderDragging:c}}var x1=J({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function Lw(e,t){let o=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...o&&{hours:o},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(t,{style:"long"}).format(n)}function C1(e){let t=Math.floor(e%3600/60),o=Math.floor(e%60);return [t,o].map(r=>r.toString().padStart(2,"0")).join(":")}var k1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",w1="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",I1="rta2n90";var $1=Ct__default.default.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=Ct__default.default.useRef(null),{isPlaying:p,progress:c,duration:m,togglePlay:u,seek:d,formattedDuration:g,formattedCurrentTime:b,setProgress:y,setIsSliderDragging:v}=P1(l),{formatMessage:z}=H(),_=A({"data-block-id":a,"data-block-class":n,"data-state":p?"playing":"paused","data-loaded":m>0});return jsxRuntime.jsxs("div",{..._,...i,className:f(k1,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:l,children:r.map(({url:h,type:C})=>jsxRuntime.jsx("source",{src:h,type:C},h))})}),jsxRuntime.jsx(Se,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:o,"aria-label":z(p?tl.pause:tl.play),style:{borderRadius:"50%"},onPress:u}),jsxRuntime.jsxs("div",{className:w1,children:[jsxRuntime.jsx("span",{"aria-hidden":true,children:b}),jsxRuntime.jsx(ro,{"aria-label":z(tl.audioTimeline),value:c,minValue:0,maxValue:100,className:I1,onChange:h=>{y(h),v(true);},onChangeEnd:h=>{d(h),v(false);}}),jsxRuntime.jsx("span",{"aria-hidden":true,children:g})]})]})});$1.displayName="AudioPlayer";var tl=J({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var S1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",D1="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",M1="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",hn=x({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),N1="_1w920rnb _1yep5z6lo",E1=x({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ar _1yep5z6as _1yep5z6at _1yep5z6bf _1yep5z6bg _1yep5z6bh _1yep5z6c3 _1yep5z6c4 _1yep5z6c5 _1yep5z6cr _1yep5z6cs _1yep5z6ct _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),L1="_1w920rnc";var xn=({items:e,ulRef:t,containerClassName:o,previewClassName:r,itemDataAttribute:a,showCount:n=false})=>{let{length:i}=e,s=Ct__default.default.useRef(null);return Ct.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(o)?.querySelector(`[${a}='${e?.at(-1)?.key}']`)?.cloneNode(true);L(l,"Node is not defined."),s.current?.prepend(l);},[e,t,o,a]),jsxRuntime.jsx("div",{className:r,ref:s,children:n&&i>1?jsxRuntime.jsx(M,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:L1,children:i}):null})};function A1(e,t){return e.find(o=>o.id===t)}function F1(e,t,o){let r=[...e],a=r.filter(s=>o.has(s.id)),n=r.filter(s=>!o.has(s.id)),i=n.findIndex(s=>s.id===t);return n.flatMap((s,l)=>l===i?[...a,s]:s)}function O1(e,t,o){let r=[...e],a=r.filter(s=>o.has(s.id)),n=r.filter(s=>!o.has(s.id)),i=n.findIndex(s=>s.id===t);return n.flatMap((s,l)=>l===i?[s,...a]:s)}function ol(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function Cn(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}function j1(){let[e,t]=Ct.useState(false);return Ct.useEffect(()=>{let o=window.matchMedia("(pointer: coarse)");t(o.matches);let r=a=>{t(a.matches);};return o.addEventListener("change",r),()=>{o.removeEventListener("change",r);}},[]),e}var V1=Ct__default.default.forwardRef(({id:e,className:t,children:o,style:r,isDisabled:a,onTruncatedChange:n,onHoverChange:i},s)=>{let l=Ct.useRef(null),{buttonProps:p}=reactAria.useButton({elementType:"span",isDisabled:a},l);Ct.useLayoutEffect(()=>{l.current&&n?.(l.current.scrollWidth>l.current.clientWidth);},[o,n]);let{hoverProps:c}=reactAria.useHover({isDisabled:a,onHoverChange:i});return jsxRuntime.jsx("span",{...De(p,c),className:f(t,"BaselineUI-AdaptiveText"),id:e,tabIndex:-1,ref:E(l,s),style:r,role:void 0,children:o})});V1.displayName="Label";var nl=Ct__default.default.memo(Ct__default.default.forwardRef(({children:e,isOpen:t,isDisabled:o,...r},a)=>{let[n,i]=Ct.useState(false),[s,l]=Ct.useState(false),p=j1(),c=o||!s||p;return jsxRuntime.jsx(re,{text:e,variant:"inverse",includeArrow:false,size:"sm",placement:"bottom start",isOpen:(n||t)&&s,isDisabled:c,children:jsxRuntime.jsx(V1,{...r,isDisabled:c,onTruncatedChange:l,onHoverChange:i,ref:a,children:e})})}));nl.displayName="AdaptiveText";var Qw=({fit:e,item:t,deleteElement:o})=>{let{formatMessage:r}=H(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Qt({src:t.data?.src,alt:t.data?.alt??""});return i?jsxRuntime.jsx(uo,{"aria-label":r(Mr.loading)}):jsxRuntime.jsx(react.motion.div,{role:"img",initial:{opacity:a?1:0},animate:{opacity:1},exit:{opacity:a?1:0},"aria-label":n.alt,style:{backgroundImage:`url(${n.src})`,backgroundSize:e},className:N1,children:o})},K1=({item:e,options:{optionProps:t,isFocusVisible:o,isSelected:r,isFocused:a,isDisabled:n,isPressed:i},liRef:s,fit:l="contain",onDelete:p,className:c,imageClassName:m,imageLabelClassName:u,imageDimensions:d,style:g,layoutTransition:b=true,renderImage:y=(v,{deleteElement:z})=>jsxRuntime.jsx(Qw,{item:v,deleteElement:z,fit:l})})=>{let v=reactAria.useId(),{formatMessage:z}=H(),{value:_}=e;L(_&&ot(_),"Expected value to be a list option");let h=p?jsxRuntime.jsx("div",{className:S1,children:jsxRuntime.jsx(F,{"aria-label":z(Mr.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(_.id);},UNSAFE_NON_INTERACTIVE:true})}):null,C=Cn([_])[0],T=Ct.useCallback(I=>{let R={},N=typeof I=="function"?I(C,{isSelected:r}):I;return N&&(R.width=typeof N.width=="string"?il[N.width]:N.width,R.aspectRatio="height"in N?`${R.width} / ${N.height}`:N?.aspectRatio?.toString()),R},[C,r]),P=Ct.useMemo(()=>({isFocusVisible:o,isSelected:r,isFocused:a,isDisabled:n,isPressed:i}),[o,r,a,n,i]),$=react.useReducedMotion(),w=typeof b=="boolean"?b:!$,D=typeof b=="object"?b:void 0,k=w?react.motion.li:"li",S=T(d);return jsxRuntime.jsxs(k,{...reactAria.mergeProps(t,w?{layout:true,transition:D}:void 0),ref:s,className:f(D1,Pt(c,C,P)),"aria-labelledby":v,style:Xr(g,C,P),children:[jsxRuntime.jsx(M,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsxRuntime.jsx("div",{className:f(hn({isFocusVisible:o,isSelected:r,isLoading:true}),Pt(m,C,P)),style:S,"data-image-key":_.id,children:y(_,{deleteElement:h??void 0,onDelete:p})})}),jsxRuntime.jsx(nl,{id:v,className:f(E1({isFocusVisible:o,isSelected:r}),u),style:{maxWidth:S.width},isOpen:o,children:_.label})]})};var aI={width:0,display:"block"},Y1={src:"src",alt:"alt"},il={sm:102,md:170},X1=Ct__default.default.forwardRef(({className:e,style:t,fit:o="cover",onReorder:r,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=il.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:m,imageContainerClassName:u,imageClassName:d,labelClassName:g,onListChange:b,renderImage:y,layoutTransition:v,imageDimensions:z={width:s,aspectRatio:l},imageContainerStyle:_,...h},C)=>{let T=Ct__default.default.useRef(null),[P,$]=Ct.useState([]),{formatMessage:w}=H();Ct.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[D,k]=utils.useControlledState(h.selectedKeys,h.defaultSelectedKeys??[],h.onSelectionChange),[S,I]=utils.useControlledState(p?ol(p):void 0,ol(c),b?O=>{b?.(Cn(O));}:void 0),R=Ct.useCallback(O=>{let V=O.target.key,U=O.keys;if(O.target.dropPosition==="before"){let G=F1(S,V,U);I(G);}else if(O.target.dropPosition==="after"){let G=O1(S,V,U);I(G);}r?.(O);},[S,r,I]),N=Ct.useCallback(()=>{i&&P.length&&(I(S.filter(O=>!P.includes(O.id))),i(new Set(P)),$([]));},[P,S,i,I]),B=Ct.useCallback((O,V,U)=>{let{value:G}=O;L(ot(G));let ee={id:G.id,label:G.label,src:G.data?.src,alt:G.data?.alt};return jsxRuntime.jsx(K1,{item:O,options:V,liRef:U,fit:o,onDelete:i?K=>{$([K]);}:void 0,renderImage:y,className:Pt(u,ee,V),imageClassName:d,imageLabelClassName:g,imageDimensions:z,style:_,layoutTransition:v})},[o,i,y,u,d,g,z,_,v]),{keyboardProps:j}=reactAria.useKeyboard({onKeyDown(O){if(m?.(O),O.key==="Backspace"||O.key==="Delete"){if(!i)return;if([...D].length)$([...D]);else {let U=O.target.dataset.key;$([U]);}}}});return jsxRuntime.jsxs("div",{...j,ref:C,style:t,className:f("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(ze,{...h,selectedKeys:D,items:S,onReorder:R,layout:"grid",orientation:"vertical",className:M1,ref:T,dropIndicatorStyle:aI,renderOption:B,renderDragPreview:O=>jsxRuntime.jsx(xn,{items:O,ulRef:T,containerClassName:".BaselineUI-ImageGallery",previewClassName:hn(),itemDataAttribute:"data-image-key",showCount:true}),onSelectionChange:k,getItems:O=>[...O].map(V=>{let U=A1(S,V);return {[Y1.src]:U?.src||"",[Y1.alt]:U?.alt||"",key:V}})}),jsxRuntime.jsx(Fe,{isOpen:!![...P].length,onOpenChange:O=>{O||$([]);},children:jsxRuntime.jsx(Ge,{isDismissable:true,children:jsxRuntime.jsx(_n,{showCloseButton:false,title:"Are you sure you want to delete this item?",primaryActionLabel:w(Mr.delete),cancelLabel:w(Mr.cancel),onCancel:()=>{$([]);},onPrimaryAction:N,autoFocusButton:"cancel"})})})]})});X1.displayName="ImageGallery";var Mr=J({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var Z1="_1sexph00",J1="_1sexph02",Q1="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var eb=Ct__default.default.forwardRef(({className:e,style:t,items:o,"data-block-id":r,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:l=true,excludeFromTabOrder:p,onPress:c,onButtonAction:m,isSelected:u,defaultSelected:d,onButtonSelectionChange:g,moreAriaLabel:b,optionStyle:y,optionClassName:v,triggerClassName:z,triggerStyle:_,tooltipProps:h,buttonBehaviour:C="toggle",...T},P)=>{let{formatMessage:$}=H(),w=be(),D=reactStately.useSelectState({items:o,...T,defaultSelectedKey:T.defaultSelectedKey||o?.[0]?.id,children:w,validationState:T.validationState==="error"?"invalid":"valid"}),k=Ct.useMemo(()=>typeof C=="function"?C(D.selectedKey):C,[C,D.selectedKey]),[S,I]=utils.useControlledState(u,!!d,Y=>{g?.({isSelected:Y,selectedKey:D.selectedKey});}),{hoverProps:R,isHovered:N}=reactAria.useHover({isDisabled:s}),B=Ct.useMemo(()=>{let Y=D.collection.getItem(D.selectedKey),ae=Y?.textValue||Y?.["aria-label"],ce=Y?.value,Q=ce?.icon,q=k==="toggle",de=s||D.disabledKeys.has(D.selectedKey),xe={size:i,...q&&{isSelected:S},onPress:se=>{q&&I(!S),c?.(se),m?.({isSelected:q?!S:false,selectedKey:D.selectedKey,buttonBehaviour:k});},isDisabled:de,excludeFromTabOrder:p,className:f(typeof v=="function"?v(ce,{isButton:true,isSelected:S}):v,"BaselineUI-ButtonSelect-Button"),style:typeof y=="function"?y(ce,{isButton:true,isSelected:S}):y};return n&&Q?jsxRuntime.jsx(re,{variant:"inverse",size:"sm",includeArrow:false,text:ae,placement:"bottom start",offset:4,...typeof h=="function"?h("button"):h,children:k==="action"?jsxRuntime.jsx(F,{icon:Q,"aria-label":ae,variant:"toolbar",...xe}):jsxRuntime.jsx(Se,{icon:Q,"aria-label":ae,variant:"toolbar",...xe})}):k==="toggle"?jsxRuntime.jsx(Da,{iconStart:Q,label:ae,variant:"toolbar",...xe}):jsxRuntime.jsx(X,{label:ae,variant:"toolbar",...xe})},[p,n,S,s,c,v,y,I,i,D.collection,D.disabledKeys,D.selectedKey,h,k,m]),j=T["aria-label"],O=Ct.useCallback(({buttonProps:Y,ref:ae})=>{delete Y["aria-labelledby"];let ce=b||`${$(uI.more)} ${j}`;return jsxRuntime.jsx(re,{variant:"inverse",size:"sm",includeArrow:false,text:ce,placement:"bottom start",offset:4,...h,children:jsxRuntime.jsx(interactions.PressResponder,{...Y,children:jsxRuntime.jsx(F,{"aria-label":ce,ref:ae,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Q})=>f(Sa({isSelected:S&&k==="toggle",isFocusVisible:Q}),Q1,z,"BaselineUI-ButtonSelect-Trigger"),style:_,isDisabled:s,excludeFromTabOrder:p})})})},[j,k,p,$,S,s,b,i,h,z,_]),V=A({"data-block-id":r,"data-block-class":a,"data-hovered":N,"data-selected":S,"data-disabled":s,"data-expanded":D.isOpen,"data-button-behaviour":k}),U=pe(P),G=Ct.useMemo(()=>({state:D,popoverAnchorRef:U}),[D,U]),ee=Ct.useCallback(Y=>typeof v=="function"?v(Y,{isButton:false,isSelected:D.selectionManager.isSelected(Y.id)}):v,[v,D.selectionManager]),K=Ct.useCallback(Y=>typeof y=="function"?y(Y,{isButton:false,isSelected:D.selectionManager.isSelected(Y.id)}):y,[y,D.selectionManager]);return jsxRuntime.jsx(Aa.Provider,{value:G,children:jsxRuntime.jsxs(M,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:f(Z1,"BaselineUI-ButtonSelect",e),"aria-label":T["aria-label"],"aria-labelledby":T["aria-labelledby"],"aria-describedby":T["aria-describedby"],"aria-details":T["aria-details"],style:t,ref:U,...V,children:[B,jsxRuntime.jsx(ct,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:o,...T,optionClassName:ee,optionStyle:K,variant:"ghost",renderTrigger:O,className:f(J1,"BaselineUI-ButtonSelect-Select")})]})})});eb.displayName="ButtonSelect";var uI=J({more:{id:"more",defaultMessage:"More"}});var tb=x({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),ob=x({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),rb=x({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),ab=x({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"_18v88n1n"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"_1yep5z61pb"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"_1yep5z61pb"],[{isReadOnly:true,variant:"primary",isFocused:false},"_18v88n1o"]]}),nb=x({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),ib=x({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),sb=x({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isHovered:true},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isOpen:true},"_1yep5z61qi _1yep5z61tw"]]});function lb({allowsCustomValue:e,onValueChange:t,inputValue:o},r,a,n,i){let[s,l]=Ct.useState(null),p=Ct.useRef(false);Ct.useEffect(()=>{if(!t)return;let m=a.current,u=d=>{l(d.target);};return m?.addEventListener("focusin",u),()=>{m?.removeEventListener("focusin",u);}},[t,a,r.selectedKey]),granularHooks.useGranularEffect(()=>{r.selectedKey&&(t?.({value:r.selectedItem?.textValue,key:r.selectedKey}),p.current=false);},[r.selectedKey],[t,r.selectedItem]),reactAria.useInteractOutside({ref:n,isDisabled:!t,onInteractOutside:m=>{!i.current?.contains(m.target)&&s===n.current&&e&&p.current&&(t?.({value:n.current?.value,key:null}),p.current=false);}}),Ct.useEffect(()=>{if(!t)return;let m=n.current,u=()=>{p.current=true;};return m?.addEventListener("input",u),()=>{m?.removeEventListener("input",u);}},[n,t]),Ct.useEffect(()=>{p.current=false;},[o]);let{keyboardProps:c}=reactAria.useKeyboard({isDisabled:!t,onKeyDown:m=>{e&&m.key==="Enter"&&p.current?(t?.({value:n.current?.value,key:null}),p.current=false):m.key==="Escape"&&r.close(),m.continuePropagation();}});return {inputProps:c}}var cb=Ct__default.default.forwardRef(({className:e,style:t,inputStyle:o,inputClassName:r,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:l=false,onSelectionChange:p,onInputChange:c,isInvalid:m=false,labelPosition:u="top",validationState:d="valid",variant:g="primary",toggleLabel:b,renderOption:y,showIcon:v=true,filter:z,minValue:_,maxValue:h,inputType:C="text",onInputSubmit:T,onValueChange:P,tooltip:$,...w},D)=>{let k=reactAria.useObjectRef(D),{contains:S}=reactAria.useFilter({sensitivity:"base"}),I=be(),R=reactStately.useComboBoxState({...w,defaultFilter:z||S,defaultItems:s,onSelectionChange:p,onInputChange:c,children:I,validationState:m?"invalid":"valid"}),N=Ct__default.default.useRef(null),B=Ct__default.default.useRef(null),j=Ct__default.default.useRef(null),O=Ct__default.default.useRef(null),V=Ct__default.default.useRef(null),{inputProps:U}=lb({onValueChange:P,allowsCustomValue:w.allowsCustomValue,inputValue:w.inputValue},R,k,B,O),{buttonProps:G,inputProps:ee,listBoxProps:K,labelProps:Y,errorMessageProps:ae,descriptionProps:ce,validationErrors:Q}=reactAria.useComboBox({...w,inputRef:B,defaultItems:s,buttonRef:N,listBoxRef:j,popoverRef:O,validationState:d==="error"?"invalid":"valid"},R),q=w.errorMessage||Q.join(" "),de=Ie({...w,errorMessage:q,descriptionProps:ce,errorMessageProps:ae,labelPosition:u});q&&(d="error");let{hoverProps:xe,isHovered:se}=reactAria.useHover({isDisabled:w.isDisabled}),{isFocused:Ce,focusProps:Fo,isFocusVisible:Ut}=reactAria.useFocusRing(),qt=lo({isReadOnly:w.isReadOnly,validationState:d}),Kt=A({"data-read-only":w.isReadOnly,"data-disabled":w.isDisabled,"data-validation-state":d,"data-focused":Ce,"data-focus-visible":Ut}),{labelProps:oe,fieldProps:Z}=reactAria.useLabel({label:i,"aria-label":w["aria-label"],"aria-labelledby":w["aria-labelledby"],"aria-describedby":w["aria-describedby"],"aria-details":w["aria-details"]}),{keyboardProps:ge}=reactAria.useKeyboard({onKeyDown:Oo=>{w.allowsCustomValue&&Oo.key==="Enter"&&T?.(ee.value?.toString()??"");}}),{focusProps:ne}=reactAria.useFocus({onBlur:()=>{w.allowsCustomValue&&ee.value&&T?.(ee.value?.toString()??"");}}),{tooltipProps:ke}=we({tooltip:$,label:w["aria-label"]}),et=Oo=>{let{triggerProps:o5,triggerRef:r5}=Oo??{};return jsxRuntime.jsxs("div",{className:f(tb({labelPosition:u}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:t,ref:k,children:[i||u==="start"&&de?jsxRuntime.jsxs("div",{className:ib({labelPosition:u,hasMessage:!!de}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(Y,oe),className:nb({isDisabled:w.isDisabled}),children:i}),u==="start"&&de]}):null,jsxRuntime.jsxs("div",{...xe,className:ab({validationState:d,isHovered:se,isFocused:Ce,variant:g,isReadOnly:!!w.isReadOnly,isDisabled:!!w.isDisabled}),ref:V,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(o5,ee,U,Fo,Kt,Z,ne,ge,C==="number"?{type:"number",min:_,max:h,onKeyDown:ei=>{(ei.key==="ArrowUp"||ei.key==="ArrowDown")&&ei.preventDefault();}}:null),id:w.id,ref:E(r5,B),className:f(ob({isDisabled:w.isDisabled,labelPosition:u}),"BaselineUI-ComboBox-Input",r),style:o}),qt&&v?jsxRuntime.jsx(qt,{className:rb({validationState:d,isReadOnly:w.isReadOnly}),size:16}):null,jsxRuntime.jsx(X,{...G,ref:N,variant:"popover",label:b,className:sb({isFocusVisible:!w.isDisabled&&!w.isReadOnly&&Ut,isHovered:!w.isDisabled&&!w.isReadOnly&&se,isOpen:R.isOpen})})]}),u==="top"&&de]})};return jsxRuntime.jsxs(kt.Provider,{value:R,children:[ke?jsxRuntime.jsx(re,{...ke,children:et}):et(),jsxRuntime.jsx(ue,{ref:O,triggerRef:V,state:R,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(ze,{...K,items:s,ref:j,renderOption:y,selectionMode:"single",showSelectedIcon:l,className:f(it,"BaselineUI-ComboBox-ListBox")})})]})});cb.displayName="ComboBox";var db=x({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var ul=Ct__default.default.forwardRef(({enableReorder:e,...t},o)=>e?jsxRuntime.jsx(ub,{ref:o,...t}):jsxRuntime.jsx(ml,{ref:o,...t}));ul.displayName="GridListItem";var ml=Ct__default.default.forwardRef(({item:e,state:t,dropState:o,renderGridItem:r,dragHandleProps:a},n)=>{let i=pe(n),s=reactAria.useGridListItem({node:e},t,i),l=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:p}=reactAria.useGridListSelectionCheckbox({key:e.key},t),c={...s,checkBoxProps:l?p:void 0,dragHandleProps:a};return jsxRuntime.jsxs("div",{"data-grid-list-item-key":e.key,children:[o?jsxRuntime.jsx(Gt,{target:{type:"item",key:e.key,dropPosition:"before"},dropState:o}):null,r?r(e,c,i):null,o&&t.collection.getKeyAfter(e.key)==null?jsxRuntime.jsx(Gt,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:o}):null]},e.key)});ml.displayName="BaseGridListItem";var ub=Ct__default.default.forwardRef(({dragState:e,item:t,...o},r)=>{let a=reactAria.useDraggableItem({key:t.key,hasDragButton:true},e);return jsxRuntime.jsx(ml,{item:t,dragHandleProps:a,ref:r,...o})});ub.displayName="DraggableGridListItem";var LI=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},fb=Ct__default.default.forwardRef(({className:e,style:t,isEditing:o=false,"data-block-id":r,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=false,layout:l="stack",orientation:p="vertical",renderGridItem:c,...m},u)=>{let d=be(),g=reactStately.useListState({...m,children:d}),b=Ct__default.default.useRef(null),y=pe(u),{gridProps:v}=reactAria.useGridList(m,g,y);ea({handle:n,type:"gridlist"},g,y);let{collectionProps:z,dragState:_,dropState:h}=Yr({...m,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:b,getItems:P=>[...P].map($=>{let w=g.collection.getItem($);return L(w,"Expected item to be defined."),{key:w.key.toString()}})},g,y),C=o?LI:v.onKeyDownCapture,T={state:g,dragState:_,dropState:h,enableReorder:s,renderGridItem:c};return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(v,z),className:f("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":a,style:t,ref:y,"aria-rowcount":g.collection.size,onKeyDownCapture:C,children:[[...g.collection].map(P=>jsxRuntime.jsx(ul,{item:P,...T},P.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:P=>jsxRuntime.jsx(xn,{items:P,ulRef:y,containerClassName:".BaselineUI-GridList",previewClassName:db(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});fb.displayName="GridList";var yb="_1yep5z6f5",bb="_1dc3b8m0";var gb=Ct__default.default.forwardRef(({className:e,selectionMode:t,style:o,"data-block-id":r,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...l},p)=>{let c=pe(p),m=be(),u=reactStately.useListState({...l,selectionMode:t,suppressTextValueWarning:true,children:m}),{actionGroupProps:d}=actiongroup.useActionGroup({...l,selectionMode:t,children:m},u,c),g=[...u.collection].map(b=>(L(b.value),jsxRuntime.jsx(qI,{item:b,state:u,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},b.key)));return i?jsxRuntime.jsxs(M,{...d,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:f("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:[jsxRuntime.jsx(i,{"aria-hidden":"true",size:24,className:yb}),jsxRuntime.jsx(M,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:g})]}):jsxRuntime.jsx(M,{...d,display:"flex",flexDirection:"row",gap:"xs",className:f("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:g})});gb.displayName="ActionGroup";var qI=({item:e,state:t,tooltipProps:o,renderActionItem:r,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:e.key},t),s=n||t.selectionManager.isDisabled(e.key),l=t.selectionManager.isSelected(e.key);L(e.value);let{icon:p}=e.value;L(p);let c=Ct.useMemo(()=>(L(e.value),typeof o=="function"?o(e.value):o),[o,e.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(e.key);}}),children:jsxRuntime.jsx(re,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...c,children:r?.(e,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(F,{variant:"tertiary",icon:p,"aria-label":e.textValue,size:"sm",isDisabled:s,className:f({[bb]:l},"BaselineUI-ActionGroup-Item")})})})};var vb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",_b="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var hb=Ct__default.default.forwardRef(({className:e,style:t,items:o,optionsContainerClassName:r,label:a,icon:n,value:i,defaultValue:s,onChange:l,isDisabled:p,optionClassName:c,optionStyle:m,labelPosition:u="top","data-block-id":d,"data-block-class":g,shouldFocusWrap:b,tooltip:y=true,...v},z)=>{let _=Ct.useMemo(()=>o.map(C=>({id:C.color,label:C.label})),[o]),h=reactAria.useId();return Ct.useEffect(()=>{!a&&!v["aria-label"]&&!v["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,v]),jsxRuntime.jsxs(M,{...li(v),className:f("BaselineUI-ColorSwatchPicker",e),"data-block-id":d,"data-block-class":g,display:"flex",flexDirection:u==="top"?"column":"row",alignItems:u==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:z,children:[n||a?jsxRuntime.jsxs(M,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(ie,{id:h,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(ze,{className:f(_b,r),selectionMode:"single",items:_,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?_.map(C=>C.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:C=>{l?.([...C][0]);},optionClassName:c,optionStyle:m,renderOption:({key:C,textValue:T},{isSelected:P,isFocusVisible:$,isDisabled:w,optionProps:D},k)=>jsxRuntime.jsx("li",{...D,"data-disabled":w,className:f(vb,D.className),ref:k,children:jsxRuntime.jsx(ut,{isFocusVisible:$,color:C,isSelected:P,"aria-label":T,isInteractive:true,isDisabled:w,tooltip:y})}),shouldFocusWrap:b,...v,"aria-labelledby":a?h:v["aria-labelledby"]})]})});hb.displayName="ColorSwatchPicker";var xb=x({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),kn="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var yl="\u2013";function wn({segment:e,state:t}){let o=Ct__default.default.useRef(null),{segmentProps:r}=reactAria.useDateSegment(e,t,o),{focusProps:a,isFocused:n}=reactAria.useFocusRing(),i=Ct.useMemo(()=>{let{text:s,type:l}=e;switch(l){case "hour":return s.replaceAll(yl,"H");case "minute":return s.replaceAll(yl,"M");case "second":return s.replaceAll(yl,"S");default:return s}},[e]);return jsxRuntime.jsx(M,{...reactAria.mergeProps(r,a),typography:"label.md.medium",color:e.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:n?"support.info.subtle":void 0,ref:o,marginLeft:e.type==="timeZoneName"?"xs":void 0,className:xb({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?i:e.text})}var Pb=Ct__default.default.forwardRef(({className:e,labelPosition:t,"data-block-id":o,"data-block-class":r,...a},n)=>{let{locale:i}=reactAria.useLocale(),s={...a,validationState:void 0,isInvalid:a.validationState==="error"||void 0},l=reactStately.useTimeFieldState({...s,locale:i}),p=Ct__default.default.useRef(null),{labelProps:c,fieldProps:m,descriptionProps:u,errorMessageProps:d,validationErrors:g,isInvalid:b,inputProps:y}=reactAria.useTimeField(s,l,p),v=a.errorMessage||g.join(" "),z=Ie({...a,errorMessage:v,descriptionProps:u,errorMessageProps:d,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(Rt,{className:f("BaselineUI-TimeField",e),labelProps:c,fieldProps:m,ref:n,wrapperRef:p,wrapperClassName:kn,labelPosition:t,message:z,isFocused:h,"data-block-id":o,"data-block-class":r,isInvalid:b,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...y})}),jsxRuntime.jsx(M,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((C,T)=>jsxRuntime.jsx(wn,{segment:C,state:l},T))})]})});Pb.displayName="TimeField";var kb="_10dw1p96",wb="_10dw1p95",Ib=x({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u"}},defaultVariants:{},compoundVariants:[[{isHovered:true,isSelected:false,isRenaming:false},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx"]]});function $b(e,t){if(typeof e=="function"&&!e.prototype?.isReactComponent){let o=e(t);return Ct.isValidElement(o)?e:o}return e}var Sb=({context:e,depth:t,children:o,item:r,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:l,primaryActionAriaLabel:p,secondaryActionAriaLabel:c,onRename:m,onAction:u,renderItemTitle:d=g=>g.data.label})=>{let{formatMessage:g}=H(),{hoverProps:b,isHovered:y}=reactAria.useHover({}),v=Ct.useRef(null),{onKeyDown:z,..._}=e.interactiveElementProps;delete _.onFocus,delete _.onClick;let h=focus.createFocusManager(v),C=Ct.useCallback(I=>{if(I.key==="ArrowRight"&&(e.isExpanded||!r.children?.length))v.current?.setAttribute("tabindex","-1"),I.preventDefault(),I.stopPropagation(),h.focusNext();else switch(I.key){case "ArrowLeft":{h.focusPrevious()?(I.preventDefault(),I.stopPropagation()):(z?.(I),e.focusItem(true));break}case "Enter":{e.toggleExpandedState();break}default:z?.(I);}},[e,h,z,r,v]),T=Ct.useMemo(()=>{let I=$b(s,r.index),R=$b(l,r.index),N=typeof p=="function"?p(r.index):p,B=typeof c=="function"?c(r.index):c;return I||R?jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",children:[I?jsxRuntime.jsx(Se,{icon:I,"aria-label":N,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(r.index);},tooltip:true}):null,R?jsxRuntime.jsx(Se,{icon:R,"aria-label":B,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(r.index);},tooltip:true}):null]}):null},[s,r.index,l,p,c,a,n]),P=Ct.useCallback(I=>{I.key==="Enter"?(m?.({key:r.index,value:I.target.value}),e.stopRenamingItem()):I.key==="Escape"?(e.stopRenamingItem(),v.current?.setAttribute("tabindex","0"),v.current?.focus()):I.key!=="ArrowRight"&&I.key!=="ArrowLeft"&&I.key!=="ArrowUp"&&I.key!=="ArrowDown"&&!I.metaKey&&I.continuePropagation();},[r.index,e,m,v]),$=r.data.icon,w=!!m,{pressProps:D}=reactAria.usePress({onPress:()=>{u?.(r.index);}}),{isFocusVisible:k,focusProps:S}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:C,onFocus:()=>{e.focusItem(false);}},D,S,b,e.itemContainerWithoutChildrenProps,_),className:f(wb,Ib({isHovered:y,isSelected:e.isSelected,isFocusVisible:k,isRenaming:e.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":r.index,"data-expanded":r.isFolder?e.isExpanded:void 0,"aria-expanded":r.isFolder?e.isExpanded:void 0,"data-selected":e.isSelected,"aria-selected":e.isSelected,"data-depth":t,"aria-level":t+1,"aria-posinset":r.data.posInset,"aria-setsize":r.data.setSize,"aria-label":r.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:v,children:jsxRuntime.jsxs(M,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?T:null,jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(M,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${t*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(F,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState();},"aria-label":g(e.isExpanded?bl.collapse:bl.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:f(kb,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:true}),$?jsxRuntime.jsx($,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(M,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:I=>{w&&(I.stopPropagation(),I.preventDefault(),e.startRenamingItem());},children:[e.isRenaming?jsxRuntime.jsx("div",{onClick:I=>{I.stopPropagation();},children:jsxRuntime.jsx(st,{defaultValue:r.data.label,autoFocus:true,onBlur:I=>{m?.({key:r.index,value:I.target.value}),e.stopRenamingItem();},"aria-label":g(bl.rename),onKeyDown:P,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(ie,{type:"label",size:"sm",className:f(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:d(r)}),r.data.description?jsxRuntime.jsx(ie,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),i==="end"?T:null]})}),o]})},bl=J({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function IR(e,{posInset:t,setSize:o}){return {index:e.id,children:e.children?e.children.map(r=>r.id):[],data:{label:e.label,description:e.description,icon:e.icon,...e.data,posInset:t,setSize:o},isFolder:!!e.children?.length}}function RR(e,t){let o={};function r(a,n,i){if(o[a.id]=t(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)r(a.children[s],s+1,a.children.length);}return r(e,0,0),o}var Eb=Ct__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:m,actionsPosition:u="start",onRename:d,onAction:g,renderItemTitle:b,...y},v)=>{let z=be(),_=Ct.useRef(null),h=reactStately.useTreeState({...y,selectionMode:"multiple",items:a.children,children:z}),C=Ct.useMemo(()=>Object.fromEntries(Object.entries(RR(a,IR)).map(([k,S])=>[k,{...S,canRename:!!d}])),[a,d]),T=reactAria.useId(),[P,$]=Ct__default.default.useState(a.children?.[0]?.id??""),w=Ct.useRef(P),D=Ct.useMemo(()=>({[`tree-${T}`]:{focusedItem:P,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[P,h.expandedKeys,h.selectionManager.selectedKeys,T]);return Ct.useEffect(()=>{if(!_.current)return;let k=_.current.getRootNode(),S=k instanceof ShadowRoot,I=_.current?.contains(k?.activeElement??null);S&&I&&k?.querySelector(`[data-rct-item-id="${P}"]`)?.focus();},[P]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:C,getItemTitle:k=>k.data?.label,viewState:D,onExpandItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys,k.index])),y.onExpand?.(k.index.toString());},onFocusItem:k=>{$(k.index),k.index&&(w.current=k.index);},onCollapseItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(S=>S!==k.index))),y.onCollapse?.(k.index.toString());},onSelectItems:k=>{h.selectionManager.setSelectedKeys(new Set(k));},renderItem:k=>jsxRuntime.jsx(Sb,{...k,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:u,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:m,onRename:d,onAction:g,renderItemTitle:b}),renderLiveDescriptorContainer:({children:k})=>jsxRuntime.jsx(Re,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:k})}),renderTreeContainer:({containerProps:k,children:S})=>jsxRuntime.jsx("div",{...De(k,{onBlur:I=>{I.currentTarget.contains(I.relatedTarget)||I.currentTarget.querySelector(`[data-key="${w.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":o,"data-block-class":r,style:{...t,...k.style},className:f(e,"BaselineUI-TreeView"),ref:E(v,k.ref,_),role:"treegrid",children:S}),renderItemsContainer:({children:k})=>k,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${T}`,rootItem:n,treeLabel:y["aria-label"],treeLabelledBy:y["aria-labelledby"]})})});Eb.displayName="TreeView";var NR=Ct.forwardRef(({className:e,isCollapsible:t=false,...o},r)=>{let a=Ct.useRef(null),n=reactAria.useId();return Ct.useImperativeHandle(r,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:f("BaselineUI-Panel",e),collapsible:t,ref:a,id:n,...o})});NR.displayName="Panel";var OR=Ct.forwardRef(({className:e,...t},o)=>{let r=Ct.useRef(null);return Ct.useImperativeHandle(o,()=>({setLayout:r.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:f("BaselineUI-PanelGroup",e),ref:r,...t})});OR.displayName="PanelGroup";var Lb="_6abhjk0";var VR=({className:e,isDisabled:t=false,...o})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:t,className:f(Lb,"BaselineUI-PanelResizeHandle",e),...o});VR.displayName="PanelResizeHandle";var Bb=x({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),Ab="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var YR=()=>{};function XR({state:e,...t}){let o=Ct__default.default.useRef(null),{toastProps:r,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(t,e,o),l=Ct.useMemo(()=>({root:r,title:n,content:a,description:i,close:s}),[r,n,a,i,s]),{canClose:p=true,...c}=t.toast.content;return jsxRuntime.jsx(ja,{elementProps:l,...c,className:f(Bb({variant:c.variant||"info"}),c.className),onClose:p?YR:void 0})}var Fb=Ct__default.default.forwardRef(({state:e,style:t,className:o,...r},a)=>{let n=pe(a),{regionProps:i}=toast$1.useToastRegion(r,e,n),s={zIndex:1,...t,...i.style};return jsxRuntime.jsx("div",{...i,ref:n,className:f(Ab,o),style:s,children:e.visibleToasts.map(l=>jsxRuntime.jsx(XR,{toast:l,state:e},l.key))})});Fb.displayName="ToastRegion";var Ob=Ct__default.default.forwardRef(({toastQueue:e,portalContainer:t,...o},r)=>{let a=toast.useToastQueue(e),n=he(t);return a.visibleToasts.length>0?jsxRuntime.jsx(Re,{portalContainer:n,ref:r,children:jsxRuntime.jsx(Fb,{state:a,...o})}):null});Ob.displayName="GlobalToastRegion";function Ze(e,t){return e-t*Math.floor(e/t)}var jb=1721426;function bt(e,t,o,r){t=gt(e,t);let a=t-1,n=-2;return o<=2?n=0:Je(t)&&(n=-1),jb-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*o-362)/12+n+r)}function Je(e){return e%4===0&&(e%100!==0||e%400===0)}function gt(e,t){return e==="BC"?1-t:t}function jt(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var ZR={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},fe=class{fromJulianDay(t){let o=t,r=o-jb,a=Math.floor(r/146097),n=Ze(r,146097),i=Math.floor(n/36524),s=Ze(n,36524),l=Math.floor(s/1461),p=Ze(s,1461),c=Math.floor(p/365),m=a*400+i*100+l*4+c+(i!==4&&c!==4?1:0),[u,d]=jt(m),g=o-bt(u,d,1,1),b=2;o<bt(u,d,3,1)?b=0:Je(d)&&(b=1);let y=Math.floor(((g+b)*12+373)/367),v=o-bt(u,d,y,1)+1;return new te(u,d,y,v)}toJulianDay(t){return bt(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return ZR[Je(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Je(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return ["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year);}constructor(){this.identifier="gregory";}};function _l(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Vb(e,t){return Hb(e)-Hb(t)}function Hb(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var vl=null;function zl(){return vl==null&&(vl=new Intl.DateTimeFormat().resolvedOptions().timeZone),vl}function hl(e){e=Tn(e,new fe);let t=gt(e.era,e.year);return Gb(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Gb(e,t,o,r,a,n,i){let s=new Date;return s.setUTCHours(r,a,n,i),s.setUTCFullYear(e,t-1,o),s.getTime()}function Ub(e,t){if(t==="UTC")return 0;if(e>0&&t===zl())return new Date(e).getTimezoneOffset()*-6e4;let{year:o,month:r,day:a,hour:n,minute:i,second:s}=Wb(e,t);return Gb(o,r,a,n,i,s,0)-Math.floor(e/1e3)*1e3}var qb=new Map;function Wb(e,t){let o=qb.get(t);o||(o=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),qb.set(t,o));let r=o.formatToParts(new Date(e)),a={};for(let n of r)n.type!=="literal"&&(a[n.type]=n.value);return {year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}var Kb=864e5;function JR(e,t,o,r){return (o===r?[o]:[o,r]).filter(n=>QR(e,t,n))}function QR(e,t,o){let r=Wb(o,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Yb(e,t,o="compatible"){let r=Rn(e);if(t==="UTC")return hl(r);if(t===zl()&&o==="compatible"){r=Tn(r,new fe);let l=new Date,p=gt(r.era,r.year);return l.setFullYear(p,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let a=hl(r),n=Ub(a-Kb,t),i=Ub(a+Kb,t),s=JR(r,t,a-n,a-i);if(s.length===1)return s[0];if(s.length>1)switch(o){case "compatible":case "earlier":return s[0];case "later":return s[s.length-1];case "reject":throw new RangeError("Multiple possible absolute times found")}switch(o){case "earlier":return Math.min(a-n,a-i);case "compatible":case "later":return Math.max(a-n,a-i);case "reject":throw new RangeError("No such absolute time found")}}function xl(e,t,o="compatible"){return new Date(Yb(e,t,o))}function Rn(e,t){let o=0,r=0,a=0,n=0;if("timeZone"in e)({hour:o,minute:r,second:a,millisecond:n}=e);else if("hour"in e&&true)return e;return new $n(e.calendar,e.era,e.year,e.month,e.day,o,r,a,n)}function Tn(e,t){if(e.calendar.identifier===t.identifier)return e;let o=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=o.era,r.year=o.year,r.month=o.month,r.day=o.day,vt(r),r}function Dn(e,t){let o=e.copy(),r="hour"in o?rT(o,t):0;Cl(o,t.years||0),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e),o.month+=t.months||0,Pl(o),Xb(o),o.day+=(t.weeks||0)*7,o.day+=t.days||0,o.day+=r,eT(o),o.calendar.balanceDate&&o.calendar.balanceDate(o),o.year<1&&(o.year=1,o.month=1,o.day=1);let a=o.calendar.getYearsInEra(o);if(o.year>a){var n,i;let l=(n=(i=o.calendar).isInverseEra)===null||n===void 0?void 0:n.call(i,o);o.year=a,o.month=l?1:o.calendar.getMonthsInYear(o),o.day=l?1:o.calendar.getDaysInMonth(o);}o.month<1&&(o.month=1,o.day=1);let s=o.calendar.getMonthsInYear(o);return o.month>s&&(o.month=s,o.day=o.calendar.getDaysInMonth(o)),o.day=Math.max(1,Math.min(o.calendar.getDaysInMonth(o),o.day)),o}function Cl(e,t){var o,r;!((o=(r=e.calendar).isInverseEra)===null||o===void 0)&&o.call(r,e)&&(t=-t),e.year+=t;}function Pl(e){for(;e.month<1;)Cl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Cl(e,1);}function eT(e){for(;e.day<1;)e.month--,Pl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Pl(e);}function Xb(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day));}function vt(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Xb(e);}function tT(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function kl(e,t){return Dn(e,tT(t))}function wl(e,t){let o=e.copy();return t.era!=null&&(o.era=t.era),t.year!=null&&(o.year=t.year),t.month!=null&&(o.month=t.month),t.day!=null&&(o.day=t.day),vt(o),o}function Zb(e,t){let o=e.copy();return t.hour!=null&&(o.hour=t.hour),t.minute!=null&&(o.minute=t.minute),t.second!=null&&(o.second=t.second),t.millisecond!=null&&(o.millisecond=t.millisecond),Jb(o),o}function oT(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Sn(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Sn(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Sn(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Sn(e.hour,24),t}function Jb(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23));}function Sn(e,t){let o=e%t;return o<0&&(o+=t),o}function rT(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,oT(e)}function Il(e,t,o,r){let a=e.copy();switch(t){case "era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=_t(l,o,0,s.length-1,r?.round),a.era=s[l],vt(a);break}case "year":var n,i;!((n=(i=a.calendar).isInverseEra)===null||n===void 0)&&n.call(i,a)&&(o=-o),a.year=_t(e.year,o,-1/0,9999,r?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e);break;case "month":a.month=_t(e.month,o,1,e.calendar.getMonthsInYear(e),r?.round);break;case "day":a.day=_t(e.day,o,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(a),vt(a),a}function Qb(e,t,o,r){let a=e.copy();switch(t){case "hour":{let n=e.hour,i=0,s=23;if(r?.hourCycle===12){let l=n>=12;i=l?12:0,s=l?23:11;}a.hour=_t(n,o,i,s,r?.round);break}case "minute":a.minute=_t(e.minute,o,0,59,r?.round);break;case "second":a.second=_t(e.second,o,0,59,r?.round);break;case "millisecond":a.millisecond=_t(e.millisecond,o,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return a}function _t(e,t,o,r,a=false){if(a){e+=Math.sign(t),e<o&&(e=r);let n=Math.abs(t);t>0?e=Math.ceil(e/n)*n:e=Math.floor(e/n)*n,e>r&&(e=o);}else e+=t,e<o?e=r-(o-e-1):e>r&&(e=o+(e-r-1));return e}function eg(e){return `${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Rl(e){let t=Tn(e,new fe),o;return t.era==="BC"?o=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):o=String(t.year).padStart(4,"0"),`${o}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function tg(e){return `${Rl(e)}T${eg(e)}`}function og(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Tl(e,t,o){og(e,t),t.set(e,o);}function rg(e){let t=typeof e[0]=="object"?e.shift():new fe,o;if(typeof e[0]=="string")o=e.shift();else {let i=t.getEras();o=i[i.length-1];}let r=e.shift(),a=e.shift(),n=e.shift();return [t,o,r,a,n]}var nT=new WeakMap,te=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return Dn(this,t)}subtract(t){return kl(this,t)}set(t){return wl(this,t)}cycle(t,o,r){return Il(this,t,o,r)}toDate(t){return xl(this,t)}toString(){return Rl(this)}compare(t){return _l(this,t)}constructor(...t){Tl(this,nT,{writable:true,value:void 0});let[o,r,a,n,i]=rg(t);this.calendar=o,this.era=r,this.year=a,this.month=n,this.day=i,vt(this);}};var iT=new WeakMap,$n=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Dn(this,t)}subtract(t){return kl(this,t)}set(t){return wl(Zb(this,t),t)}cycle(t,o,r){switch(t){case "era":case "year":case "month":case "day":return Il(this,t,o,r);default:return Qb(this,t,o,r)}}toDate(t,o){return xl(this,t,o)}toString(){return tg(this)}compare(t){let o=_l(this,t);return o===0?Vb(this,Rn(t)):o}constructor(...t){Tl(this,iT,{writable:true,value:void 0});let[o,r,a,n,i]=rg(t);this.calendar=o,this.era=r,this.year=a,this.month=n,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,vt(this);}};var Mo=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],sT=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Mn=[1867,1911,1925,1988,2018],zt=["meiji","taisho","showa","heisei","reiwa"];function ag(e){let t=Mo.findIndex(([o,r,a])=>e.year<o||e.year===o&&e.month<r||e.year===o&&e.month===r&&e.day<a);return t===-1?Mo.length-1:t===0?0:t-1}function $l(e){let t=Mn[zt.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new te(e.year+t,e.month,e.day)}var Nn=class extends fe{fromJulianDay(t){let o=super.fromJulianDay(t),r=ag(o);return new te(this,zt[r],o.year-Mn[r],o.month,o.day)}toJulianDay(t){return super.toJulianDay($l(t))}balanceDate(t){let o=$l(t),r=ag(o);zt[r]!==t.era&&(t.era=zt[r],t.year=o.year-Mn[r]),this.constrainDate(t);}constrainDate(t){let o=zt.indexOf(t.era),r=sT[o];if(r!=null){let[a,n,i]=r,s=a-Mn[o];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)));}if(t.year===1&&o>=0){let[,a,n]=Mo[o];t.month=Math.max(a,t.month),t.month===a&&(t.day=Math.max(n,t.day));}}getEras(){return zt}getYearsInEra(t){let o=zt.indexOf(t.era),r=Mo[o],a=Mo[o+1];if(a==null)return 9999-r[0]+1;let n=a[0]-r[0];return (t.month<a[1]||t.month===a[1]&&t.day<a[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth($l(t))}getMinimumMonthInYear(t){let o=ng(t);return o?o[1]:1}getMinimumDayInMonth(t){let o=ng(t);return o&&t.month===o[1]?o[2]:1}constructor(...t){super(...t),this.identifier="japanese";}};function ng(e){if(e.year===1){let t=zt.indexOf(e.era);return Mo[t]}}var sg=-543,En=class extends fe{fromJulianDay(t){let o=super.fromJulianDay(t),r=gt(o.era,o.year);return new te(this,r-sg,o.month,o.day)}toJulianDay(t){return super.toJulianDay(ig(t))}getEras(){return ["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ig(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist";}};function ig(e){let[t,o]=jt(e.year+sg);return new te(t,o,e.month,e.day)}var Ln=1911;function cg(e){return e.era==="minguo"?e.year+Ln:1-e.year+Ln}function lg(e){let t=e-Ln;return t>0?["minguo",t]:["before_minguo",1-t]}var Bn=class extends fe{fromJulianDay(t){let o=super.fromJulianDay(t),r=gt(o.era,o.year),[a,n]=lg(r);return new te(this,a,n,o.month,o.day)}toJulianDay(t){return super.toJulianDay(pg(t))}getEras(){return ["before_minguo","minguo"]}balanceDate(t){let[o,r]=lg(cg(t));t.era=o,t.year=r;}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(pg(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ln}constructor(...t){super(...t),this.identifier="roc";}};function pg(e){let[t,o]=jt(cg(e));return new te(t,o,e.month,e.day)}var dg=1948320,ug=[0,31,62,93,124,155,186,216,246,276,306,336],An=class{fromJulianDay(t){let o=t-dg,r=1+Math.floor((33*o+3)/12053),a=365*(r-1)+Math.floor((8*r+21)/33),n=o-a,i=n<216?Math.floor(n/31):Math.floor((n-6)/30),s=n-ug[i]+1;return new te(this,r,i+1,s)}toJulianDay(t){let o=dg-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return o+=ug[t.month-1],o+=t.day,o}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ze(25*t.year+11,33)<8?30:29}getEras(){return ["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian";}};var Sl=78,mg=80,Fn=class extends fe{fromJulianDay(t){let o=super.fromJulianDay(t),r=o.year-Sl,a=t-bt(o.era,o.year,1,1),n;a<mg?(r--,n=Je(o.year-1)?31:30,a+=n+155+90+10):(n=Je(o.year)?31:30,a-=mg);let i,s;if(a<n)i=1,s=a+1;else {let l=a-n;l<155?(i=Math.floor(l/31)+2,s=l%31+1):(l-=155,i=Math.floor(l/30)+7,s=l%30+1);}return new te(this,r,i,s)}toJulianDay(t){let o=t.year+Sl,[r,a]=jt(o),n,i;return Je(a)?(n=31,i=bt(r,a,3,21)):(n=30,i=bt(r,a,3,22)),t.month===1?i+t.day-1:(i+=n+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&Je(t.year+Sl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return ["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian";}};var jn=1948440,fg=1948439,Ee=1300,No=1600,lT=460322;function Hn(e,t,o,r){return r+Math.ceil(29.5*(o-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function vg(e,t,o){let r=Math.floor((30*(o-t)+10646)/10631),a=Math.min(12,Math.ceil((o-(29+Hn(t,r,1,1)))/29.5)+1),n=o-Hn(t,r,a,1)+1;return new te(e,r,a,n)}function yg(e){return (14+11*e)%30<11}var Lo=class{fromJulianDay(t){return vg(this,jn,t)}toJulianDay(t){return Hn(jn,t.year,t.month,t.day)}getDaysInMonth(t){let o=29+t.month%2;return t.month===12&&yg(t.year)&&o++,o}getMonthsInYear(){return 12}getDaysInYear(t){return yg(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return ["AH"]}constructor(){this.identifier="islamic-civil";}},Vn=class extends Lo{fromJulianDay(t){return vg(this,fg,t)}toJulianDay(t){return Hn(fg,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla";}},pT="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Dl,Eo;function On(e){return lT+Eo[e-Ee]}function Br(e,t){let o=e-Ee,r=1<<11-(t-1);return (Dl[o]&r)===0?29:30}function bg(e,t){let o=On(e);for(let r=1;r<t;r++)o+=Br(e,r);return o}function gg(e){return Eo[e+1-Ee]-Eo[e-Ee]}var Un=class extends Lo{fromJulianDay(t){let o=t-jn,r=On(Ee),a=On(No);if(o<r||o>a)return super.fromJulianDay(t);{let n=Ee-1,i=1,s=1;for(;s>0;){n++,s=o-On(n)+1;let l=gg(n);if(s===l){i=12;break}else if(s<l){let p=Br(n,i);for(i=1;s>p;)s-=p,i++,p=Br(n,i);break}}return new te(this,n,i,o-bg(n,i)+1)}}toJulianDay(t){return t.year<Ee||t.year>No?super.toJulianDay(t):jn+bg(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ee||t.year>No?super.getDaysInMonth(t):Br(t.year,t.month)}getDaysInYear(t){return t.year<Ee||t.year>No?super.getDaysInYear(t):gg(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Dl||(Dl=new Uint16Array(Uint8Array.from(atob(pT),t=>t.charCodeAt(0)).buffer)),!Eo){Eo=new Uint32Array(No-Ee+1);let t=0;for(let o=Ee;o<=No;o++){Eo[o-Ee]=t;for(let r=1;r<=12;r++)t+=Br(o,r);}}}};var _g=347997,zg=1080,hg=24*zg,cT=29,dT=12*zg+793,uT=cT*hg+dT;function Ht(e){return Ze(e*7+1,19)<7}function Kn(e){let t=Math.floor((235*e-234)/19),o=12084+13753*t,r=t*29+Math.floor(o/25920);return Ze(3*(r+1),7)<3&&(r+=1),r}function mT(e){let t=Kn(e-1),o=Kn(e);return Kn(e+1)-o===356?2:o-t===382?1:0}function Ar(e){return Kn(e)+mT(e)}function xg(e){return Ar(e+1)-Ar(e)}function fT(e){let t=xg(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function qn(e,t){if(t>=6&&!Ht(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let o=fT(e);return t===2?o===2?30:29:t===3?o===0?29:30:t===6?Ht(e)?30:0:30}var Gn=class{fromJulianDay(t){let o=t-_g,r=o*hg/uT,a=Math.floor((19*r+234)/235)+1,n=Ar(a),i=Math.floor(o-n);for(;i<1;)a--,n=Ar(a),i=Math.floor(o-n);let s=1,l=0;for(;l<i;)l+=qn(a,s),s++;s--,l-=qn(a,s);let p=i-l;return new te(this,a,s,p)}toJulianDay(t){let o=Ar(t.year);for(let r=1;r<t.month;r++)o+=qn(t.year,r);return o+t.day+_g}getDaysInMonth(t){return qn(t.year,t.month)}getMonthsInYear(t){return Ht(t.year)?13:12}getDaysInYear(t){return xg(t.year)}getYearsInEra(){return 9999}getEras(){return ["AM"]}balanceYearMonth(t,o){o.year!==t.year&&(Ht(o.year)&&!Ht(t.year)&&o.month>6?t.month--:!Ht(o.year)&&Ht(t.year)&&o.month>6&&t.month++);}constructor(){this.identifier="hebrew";}};var Ml=1723856,Cg=1824665,Nl=5500;function Wn(e,t,o,r){return e+365*t+Math.floor(t/4)+30*(o-1)+r-1}function El(e,t){let o=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Wn(e,o,1,1))/30),a=t+1-Wn(e,o,r,1);return [o,r,a]}function Pg(e){return Math.floor(e%4/3)}function kg(e,t){return t%13!==0?30:Pg(e)+5}var Bo=class{fromJulianDay(t){let[o,r,a]=El(Ml,t),n="AM";return o<=0&&(n="AA",o+=Nl),new te(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="AA"&&(o-=Nl),Wn(Ml,o,t.month,t.day)}getDaysInMonth(t){return kg(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Pg(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return ["AA","AM"]}constructor(){this.identifier="ethiopic";}},Yn=class extends Bo{fromJulianDay(t){let[o,r,a]=El(Ml,t);return o+=Nl,new te(this,"AA",o,r,a)}getEras(){return ["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa";}},Xn=class extends Bo{fromJulianDay(t){let[o,r,a]=El(Cg,t),n="CE";return o<=0&&(n="BCE",o=1-o),new te(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="BCE"&&(o=1-o),Wn(Cg,o,t.month,t.day)}getDaysInMonth(t){let o=t.year;return t.era==="BCE"&&(o=1-o),kg(o,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year);}getEras(){return ["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic";}};function Ll(e){switch(e){case "buddhist":return new En;case "ethiopic":return new Bo;case "ethioaa":return new Yn;case "coptic":return new Xn;case "hebrew":return new Gn;case "indian":return new Fn;case "islamic-civil":return new Lo;case "islamic-tbla":return new Vn;case "islamic-umalqura":return new Un;case "japanese":return new Nn;case "persian":return new An;case "roc":return new Bn;case "gregory":default:return new fe}}var Ig=Ct__default.default.forwardRef(({className:e,labelPosition:t,"data-block-id":o,"data-block-class":r,...a},n)=>{let{locale:i}=reactAria.useLocale(),s={...a,validationState:void 0,isInvalid:a.validationState==="error"||void 0},l=reactStately.useDateFieldState({...s,locale:i,createCalendar:Ll}),p=Ct__default.default.useRef(null),{labelProps:c,fieldProps:m,validationErrors:u,descriptionProps:d,inputProps:g,errorMessageProps:b,isInvalid:y}=reactAria.useDateField(s,l,p),v=a.errorMessage||u.join(" "),z=Ie({...a,errorMessage:v,descriptionProps:d,errorMessageProps:b,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(Rt,{className:f("BaselineUI-DateField",e),labelProps:c,fieldProps:m,ref:n,wrapperRef:p,wrapperClassName:kn,labelPosition:t,message:z,isFocused:h,"data-block-id":o,"data-block-class":r,isInvalid:y,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...g})}),jsxRuntime.jsx(M,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((C,T)=>jsxRuntime.jsx(wn,{segment:C,state:l},T))})]})});Ig.displayName="DateField";var Rg={x:0,y:0},CT={node:null,setNode:()=>{},coordinates:Rg,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:false},Qe=Ct__default.default.createContext(CT),Tg=({children:e,isDisabled:t=false,coordinates:o,onMove:r})=>{let[a,n]=Ct__default.default.useState(null),i=Ct__default.default.useRef(null),[s,l]=utils.useControlledState(o,Rg,m=>{r?.({coordinates:m,boundingRect:i.current});}),p=reactAria.useId(),c=Ct__default.default.useMemo(()=>({node:a,setNode:n,coordinates:s,setCoordinates:l,displayId:p,boundsRef:i,isDisabled:t}),[a,s,p,l,n,i,t]);return jsxRuntime.jsx(Qe.Provider,{value:c,children:e})};Tg.displayName="Magnifier";var $g="_1yep5z6f6",Sg=x({defaultClassName:"_1aj2a4v6",variantClassNames:{isDisabled:{true:"_1aj2a4v7",false:"_1aj2a4v8"},isIndicatorVisible:{true:"_1aj2a4v9",false:"_1aj2a4va"}},defaultVariants:{},compoundVariants:[[{isDisabled:false,isIndicatorVisible:true},"_1aj2a4vb"],[{isDisabled:false,isIndicatorVisible:false},"_1aj2a4vc"]]}),Dg="_1aj2a4vd",Mg="_1aj2a4v1",Ng="_1aj2a4v4",Bl="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",Eg="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",Lg="_1aj2a4v0",Bg="_1aj2a4v5";var Fg=e=>jsxRuntime.jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsxs("g",{filter:"url(#filter0_d_11407_457970)",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:tokens.themeVars.color.background.positive.subtle}),jsxRuntime.jsx("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:tokens.themeVars.color.background.positive.interactive.enabled})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),jsxRuntime.jsx("feOffset",{}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:2}),jsxRuntime.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),jsxRuntime.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),jsxRuntime.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]});function Og({coordinates:e,setCoordinates:t,boundsRef:o,onKeyDown:r,onKeyUp:a}){let{isDisabled:n}=Ct.useContext(Qe);return reactAria.useKeyboard({isDisabled:n,onKeyDown:i=>{r?.(i);let s=i.shiftKey?10:1,l=o.current;if(!l)return;let p;switch(i.key){case "ArrowRight":{i.preventDefault(),p={x:lodash.clamp(e.x+s,0,l.width),y:lodash.clamp(e.y,0,l.height)};break}case "ArrowLeft":{i.preventDefault(),p={x:lodash.clamp(e.x-s,0,l.width),y:lodash.clamp(e.y,0,l.height)};break}case "ArrowDown":{i.preventDefault(),p={x:lodash.clamp(e.x,0,l.width),y:lodash.clamp(e.y+s,0,l.height)};break}case "ArrowUp":{i.preventDefault(),p={x:lodash.clamp(e.x,0,l.width),y:lodash.clamp(e.y-s,0,l.height)};break}}p&&t(p);},onKeyUp:a})}var Hg=Ct__default.default.forwardRef(({children:e,onPress:t,className:o,style:r,"data-block-id":a,"data-block-class":n,onFocusChange:i,onBlur:s,onFocus:l,onKeyDown:p,onKeyUp:c,...m},u)=>{let{setNode:d,setCoordinates:g,coordinates:b,displayId:y,boundsRef:v,isDisabled:z}=Ct.useContext(Qe),_=Ct.useRef(null),[h,C]=Ct.useState(false),T=interactions.useInteractionModality(),P=Ae();Ct.useEffect(()=>{let B=_.current;if(!B||z)return;let j=V=>{let U=B.getBoundingClientRect();v.current=U;let G="clientX"in V?V.clientX:V.touches[0].clientX,ee="clientY"in V?V.clientY:V.touches[0].clientY,K={x:lodash.clamp(G-U.left,0,U.width),y:lodash.clamp(ee-U.top,0,U.height)};g(K),C(true);},O=()=>{C(false);};return B.addEventListener("mousemove",j),B.addEventListener("touchmove",j),B.addEventListener("mouseleave",O),()=>{B.removeEventListener("mousemove",j),B.removeEventListener("touchmove",j),B.removeEventListener("mouseleave",O);}},[g,v,z]);let{pressProps:$}=reactAria.usePress({isDisabled:z,onPress:B=>{B.pointerType==="keyboard"?t?.({...B,x:b.x,y:b.y}):t?.(B);}}),{focusProps:w,isFocusVisible:D,isFocused:k}=reactAria.useFocusRing(),{focusProps:S}=interactions.useFocus({isDisabled:z,onFocusChange:B=>{if(T==="keyboard")if(B){C(true);let j=_.current?.getBoundingClientRect();if(!j)return;v.current=j,g({x:lodash.clamp(j.width/2,0,j.width),y:lodash.clamp(j.height/2,0,j.height)});}else C(false);i?.(B);},onFocus:l,onBlur:s}),{keyboardProps:I}=Og({coordinates:b,setCoordinates:g,boundsRef:v,onKeyDown:p,onKeyUp:c}),R=Ct.useMemo(()=>_.current?rp(_.current,b):{x:0,y:0},[b]);interactions.useInteractOutside({isDisabled:z,ref:_,onInteractOutside:()=>{C(false);}});let N=Ct.useMemo(()=>h&&!z&&(P==="mobile"||T==="keyboard"),[h,z,P,T]);return jsxRuntime.jsxs("div",{ref:E(u,_),className:f(Dg,"BaselineUI-Magnifier-Content",o),style:r,"data-block-id":a,"data-block-class":n,"aria-controls":y,role:"application",...m,children:[N?jsxRuntime.jsx(Re,{children:jsxRuntime.jsx(Fg,{style:{left:R.x,top:R.y},className:f(Lg,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...De($,w,I,S),ref:d,className:f(Sg({isDisabled:z,isIndicatorVisible:N}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":D,"data-focused":k,tabIndex:z?void 0:0,children:e})]})});Hg.displayName="MagnifierContent";function jT(e){let t=[];for(let o=0;o<e.length;o++){let r=e[o],a=e.getPropertyValue(r);a&&t.push(`${r}: ${a}`);}for(let o of e)if(o.startsWith("--")){let r=e.getPropertyValue(o);r&&t.push(`${o}: ${r}`);}return t.join("; ")}function Vg(e){let[t,o]=Ct.useState(null),{isDisabled:r}=Ct.useContext(Qe);return Ct.useEffect(()=>{if(!e||r)return;let a=e,n=le(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(true);c.style.cssText=jT(p);let m=a.getBoundingClientRect();c.style.setProperty("width",`${m.width}px`),c.style.setProperty("height",`${m.height}px`),c.style.setProperty("position","static"),c.style.setProperty("margin","0"),c.style.setProperty("left","0"),c.style.setProperty("top","0"),c.style.setProperty("transform","none"),c.style.removeProperty("-webkit-text-fill-color"),c.style.removeProperty("-webkit-text-stroke-color"),c.removeAttribute("aria-controls"),c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true");let u=ep(c);if(u)for(let d of u)d.setAttribute("tabindex","-1");"scrollTop"in a&&(c.scrollTop=a.scrollTop),"scrollLeft"in a&&(c.scrollLeft=a.scrollLeft),o(c);}i();let s=new ResizeObserver(i),l=new MutationObserver(i);return s.observe(a),l.observe(a,{attributes:true,childList:true,subtree:true,characterData:true}),()=>{s.disconnect(),l.disconnect();}},[e,r]),t}var qg=8,Kg=7,Gg=7,Wg=Ct__default.default.forwardRef(({className:e,style:t,description:o,scale:r=2,"data-block-id":a,"data-block-class":n},i)=>{let{coordinates:s,node:l,boundsRef:p,displayId:c,isDisabled:m}=Ct.useContext(Qe),u=Vg(l),d=Ct.useMemo(()=>typeof o=="function"?o({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):o,[o,s,p]),g=Ct.useMemo(()=>p.current?{x:s.x/p.current.width,y:s.y/p.current.height}:{x:0,y:0},[p,s]);return jsxRuntime.jsxs(M,{ref:i,className:f(Mg,"BaselineUI-Magnifier-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:d?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:c,"data-block-id":a,"data-block-class":n,role:"complementary",children:[jsxRuntime.jsxs("div",{className:Eg,children:[u&&!m?jsxRuntime.jsx(la,{node:u,style:{transform:`scale(${r}) translate(calc(-${g.x*100}% + ${qg*Kg/(2*r)}px), calc(-${g.y*100}% + ${qg*Gg/(2*r)}px))`},className:f(Bg,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:Kg*Gg}).map((b,y)=>y===24?jsxRuntime.jsx("div",{className:f(Bl,Ng)},y):jsxRuntime.jsx("div",{className:Bl},y))]}),d?.length?jsxRuntime.jsx(M,{display:"flex",gap:"lg",flexDirection:"column",children:d?.map(({label:b,icon:y},v)=>jsxRuntime.jsxs(M,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsxRuntime.jsx(y,{size:12,className:$g}),jsxRuntime.jsx(ie,{type:"label",size:"sm",children:b})]},b+v))}):null]})});Wg.displayName="MagnifierDisplay";var qT=(e,t)=>{e.setAttribute("height",typeof t=="number"?`${t}px`:t),e.setAttribute("width",typeof t=="number"?`${t}px`:t);},KT=(e,t,o)=>{let r=e.querySelector("title"),a=ye(e);if(r)r.textContent=t,r.setAttribute("id",o);else {let n=a.createElement("title");n.textContent=t,n.setAttribute("id",o),e.prepend(n);}},GT=(e,t)=>{t&&e.classList.add(t);},WT=(e,t)=>{let o=t.createElement("span");o.innerHTML=O5__namespace.default.sanitize(e);let r=o.querySelector("svg");return L(r,"Icon: svg prop must be a valid svg string"),r},YT=Ct__default.default.forwardRef(({size:e,title:t,className:o,style:r,color:a,...n},i)=>{let s=Ct.useId(),l=Ct__default.default.useRef(null),p="svg"in n?n.svg:void 0,c=Ct__default.default.useMemo(()=>{if(p){let m=ye(l.current),u=WT(p,m);return e&&qT(u,e),t&&KT(u,t,s),GT(u,o),u.outerHTML}},[p,e,t,o,s]);return jsxRuntime.jsx("span",{className:o,ref:E(i,l),style:{display:"contents",...r,color:a},dangerouslySetInnerHTML:c?{__html:c}:void 0})});YT.displayName="Icon";var Xg=x({defaultClassName:"_1bwul1t8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"_1bwul1t9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"_1bwul1ta _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"_1bwul1tb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),Hl=x({defaultClassName:"_1bwul1t3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Zg={xs:"_1bwul1t0",sm:"_1bwul1t1",md:"_1bwul1t2"};var t5=Ct__default.default.forwardRef(({className:e,style:t,size:o="md",isDisabled:r,decrementAriaLabel:a,incrementAriaLabel:n,"data-block-id":i,"data-block-class":s,label:l,onChange:p,onBlur:c,onKeyDown:m,minValue:u=Number.NEGATIVE_INFINITY,maxValue:d=Number.POSITIVE_INFINITY,defaultValue:g,value:b,description:y=P=>`${P} / ${d}`,onInputChange:v,onChangeSuccess:z,step:_=1,valueToLabelMap:h,...C},T)=>{let P=interactions.useInteractionModality(),$=Ct__default.default.useRef(null),w=reactAria.useId(),D=reactAria.useId(),k=Ct.useCallback(q=>h?h.get(q)??q.toString():q.toString(),[h]),S=Ct.useCallback(q=>{if(h){let xe=[...h.entries()].find(([,se])=>se===q);if(xe)return xe[0]}return Number.parseInt(q)},[h]),[I,R]=utils.useControlledState(b,g??1,z),[N,B]=Ct.useState(k(I)??""),j=I<=u||r,O=I>=d||r,V=Ct.useCallback(q=>{if(!q)return;p?.(q);let de=S(q);if(Number.isNaN(de)){B(k(I)??"");return}de>=u&&de<=d&&!r&&!C.isReadOnly?R(de):B(k(I));},[p,S,u,d,r,C.isReadOnly,k,I,R]),U=Ct.useCallback(q=>q>=u&&q<=d,[u,d]),G=Ct.useCallback(q=>{V(N),c?.(q);},[N,V,c]),ee=Ct.useCallback(()=>{if(O)return;let q=Math.min(I+_,d);U(q)&&R(q);},[I,O,U,d,R,_]),K=Ct.useCallback(()=>{if(j)return;let q=Math.max(I-_,u);U(q)&&R(q);},[I,j,U,u,R,_]),Y=Ct.useCallback(q=>{if(!(r||C.isReadOnly)){switch(q.key){case "Enter":{V(N);break}case "ArrowUp":{ee();break}case "ArrowDown":{K();break}}m?.(q);}},[r,C.isReadOnly,m,V,N,ee,K]);granularHooks.useGranularEffect(()=>{B(k(I));},[I],[k]);let{inputProps:ae}=reactAria.useTextField({...C,value:N?.toString(),isDisabled:r,onBlur:G,onChange:q=>{B(q),v?.(q);},onKeyDown:Y,"aria-labelledby":w,"aria-describedby":D},$),ce=P==="keyboard",Q=typeof y=="function"?y(I):y;return jsxRuntime.jsxs(M,{className:f(Zg[o],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":i,"data-block-class":s,style:t,ref:T,"aria-disabled":r,children:[jsxRuntime.jsx("span",{id:w,className:Hl({size:o,isDisabled:r}),children:l}),jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[jsxRuntime.jsx(F,{icon:_24.CaretLeftIcon,elementType:"div",size:o,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",UNSAFE_NON_INTERACTIVE:ce,isDisabled:r||j||C.isReadOnly,excludeFromTabOrder:true,onPress:K,"aria-label":a,tooltip:true}),jsxRuntime.jsx(W,{orientation:"vertical"}),jsxRuntime.jsx("input",{...ae,className:Xg({size:o}),min:u,max:d}),jsxRuntime.jsx(W,{orientation:"vertical"}),jsxRuntime.jsx(F,{icon:_24.CaretRightIcon,elementType:"div",size:o,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",UNSAFE_NON_INTERACTIVE:ce,isDisabled:r||O||C.isReadOnly,excludeFromTabOrder:true,onPress:ee,"aria-label":n,tooltip:true})]}),Q?jsxRuntime.jsx("span",{id:D,className:Hl({size:o,isDisabled:r}),children:Q}):null]})});t5.displayName="TaggedPagination";
13
+ Object.defineProperty(exports,"useCollator",{enumerable:true,get:function(){return reactAria.useCollator}});Object.defineProperty(exports,"useDateFormatter",{enumerable:true,get:function(){return reactAria.useDateFormatter}});Object.defineProperty(exports,"useId",{enumerable:true,get:function(){return reactAria.useId}});Object.defineProperty(exports,"useNumberFormatter",{enumerable:true,get:function(){return reactAria.useNumberFormatter}});Object.defineProperty(exports,"MotionGlobalConfig",{enumerable:true,get:function(){return react.MotionGlobalConfig}});Object.defineProperty(exports,"ToastQueue",{enumerable:true,get:function(){return toast.ToastQueue}});exports.Accordion=Yu;exports.AccordionItem=tm;exports.ActionButton=X;exports.ActionGroup=gb;exports.ActionGroupItem=qI;exports.ActionIconButton=F;exports.AlertDialog=_n;exports.AudioPlayer=$1;exports.Avatar=bo;exports.Box=M;exports.ButtonSelect=eb;exports.Checkbox=vu;exports.ColorInput=_o;exports.ColorSwatch=ut;exports.ColorSwatchPicker=hb;exports.ComboBox=cb;exports.DateField=Ig;exports.DateFormat=Ru;exports.DeviceProvider=Tv;exports.DeviceProviderContext=ba;exports.Dialog=Te;exports.DialogTitle=Yc;exports.DomNodeRenderer=la;exports.Drawer=Ca;exports.Editor=s1;exports.FileUpload=jd;exports.Focusable=xa;exports.FrameProvider=Fv;exports.FreehandCanvas=kf;exports.GlobalToastRegion=Ob;exports.GridList=fb;exports.Group=ey;exports.I18nProvider=lc;exports.Icon=YT;exports.IconColorInput=gf;exports.IconColorInputButton=Qa;exports.IconSelect=im;exports.IconSlider=id;exports.ImageDropZone=Ff;exports.ImageGallery=X1;exports.InlineAlert=ja;exports.Link=Dd;exports.ListBox=ze;exports.Magnifier=Tg;exports.MagnifierContent=Hg;exports.MagnifierDisplay=Wg;exports.Markdown=z1;exports.Menu=Ia;exports.MessageFormat=Qf;exports.Modal=Fe;exports.ModalClose=K0;exports.ModalContent=Ge;exports.ModalTrigger=Ha;exports.NumberFormat=po;exports.NumberInput=Ke;exports.Pagination=Iu;exports.Panel=NR;exports.PanelGroup=OR;exports.PanelResizeHandle=VR;exports.Popover=Ve;exports.PopoverContent=ue;exports.PopoverTrigger=Ue;exports.Portal=Re;exports.PortalContainerProvider=da;exports.Preview=Uf;exports.ProgressBar=Xd;exports.ProgressSpinner=uo;exports.RadioGroup=Jf;exports.Reaction=iu;exports.ScrollControlButton=u1;exports.SearchInput=hd;exports.Select=ct;exports.Separator=W;exports.Slider=ro;exports.Switch=bd;exports.TabItem=zm;exports.Tabs=_m;exports.TagGroup=Au;exports.TaggedPagination=t5;exports.Text=ie;exports.TextInput=st;exports.ThemeProvider=za;exports.TimeField=Pb;exports.ToggleButton=Da;exports.ToggleIconButton=Se;exports.Toolbar=sn;exports.Tooltip=re;exports.Transform=Ef;exports.TreeView=Eb;exports.calculateFontSizeToFitWidth=lS;exports.classNames=f;exports.cleanKeyFromGlobImport=ap;exports.defineMessages=J;exports.disableAnimations=G9;exports.enableAnimations=W9;exports.filterTruthyValues=A;exports.findFocusableElements=ep;exports.getAbsoluteBounds=qr;exports.getAbsolutePosition=rp;exports.getActiveElement=tp;exports.getHTMLElement=Ur;exports.getOsSpecificKeyboardShortcutLabel=np;exports.getOwnerDocument=ye;exports.getPlainText=ip;exports.getSvgPathFromStroke=Gr;exports.getTextDimensions=Vr;exports.invariant=L;exports.isFocusableElement=pS;exports.isInputThatOpensKeyboard=op;exports.isInsideOverlayContent=oS;exports.isRect=Jl;exports.isUrl=ui;exports.lightenColor=bS;exports.mergeRefs=E;exports.useDevice=Ae;exports.useI18n=H;exports.useImage=Qt;exports.useIntersectionObserver=oc;exports.useIsFirstRender=ma;exports.useLocalStorage=mc;exports.useMutationObserver=A3;exports.usePortalContainer=he;exports.useResizeObserver=rc;exports.useTextSelection=q3;exports.useUndoRedo=nc;exports.useUserPreferences=wi;