@baseline-ui/core 0.39.0 → 0.40.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/Acknowledgements.md +8 -36
- package/dist/index.css +1 -1
- package/dist/index.d.mts +121 -67
- package/dist/index.d.ts +121 -67
- package/dist/index.js +5 -8
- package/dist/index.mjs +5 -8
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var utils=require('@baseline-ui/utils'),
|
|
1
|
+
'use strict';var utils=require('@baseline-ui/utils'),ht=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'),Fv=require('lodash/isEmpty'),dynamic=require('@vanilla-extract/dynamic'),_20=require('@baseline-ui/icons/20'),Bz=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'),c1=require('dompurify'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),wR=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 ht__default=/*#__PURE__*/_interopDefault(ht);var Fv__default=/*#__PURE__*/_interopDefault(Fv);var Bz__default=/*#__PURE__*/_interopDefault(Bz);var c1__namespace=/*#__PURE__*/_interopNamespace(c1);var wR__default=/*#__PURE__*/_interopDefault(wR);/**
|
|
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,10 +7,7 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var wh=Object.create;var wp=Object.defineProperty;var kh=Object.getOwnPropertyDescriptor;var Ih=Object.getOwnPropertyNames;var Sh=Object.getPrototypeOf,Rh=Object.prototype.hasOwnProperty;var kp=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var $h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ih(e))!Rh.call(r,a)&&a!==t&&wp(r,a,{get:()=>e[a],enumerable:!(o=kh(e,a))||o.enumerable});return r};var yi=(r,e,t)=>(t=r!=null?wh(Sh(r)):{},$h(!r||!r.__esModule?wp(t,"default",{value:r,enumerable:true}):t,r));var Wi=kp((bB,xd)=>{var N_={},L_=N_.hasOwnProperty,A_=function(e,t){if(!e)return t;var o={};for(var a in t)o[a]=L_.call(e,a)?e[a]:t[a];return o},B_=/[ -,\.\/:-@\[-\^`\{-~]/,O_=/[ -,\.\/:-@\[\]\^`\{-~]/,F_=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ki=function r(e,t){t=A_(t,r.options),t.quotes!="single"&&t.quotes!="double"&&(t.quotes="single");for(var o=t.quotes=="double"?'"':"'",a=t.isIdentifier,n=e.charAt(0),i="",s=0,l=e.length;s<l;){var p=e.charAt(s++),c=p.charCodeAt(),d=void 0;if(c<32||c>126){if(c>=55296&&c<=56319&&s<l){var m=e.charCodeAt(s++);(m&64512)==56320?c=((c&1023)<<10)+(m&1023)+65536:s--;}d="\\"+c.toString(16).toUpperCase()+" ";}else t.escapeEverything?B_.test(p)?d="\\"+p:d="\\"+c.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(p)?d="\\"+c.toString(16).toUpperCase()+" ":p=="\\"||!a&&(p=='"'&&o==p||p=="'"&&o==p)||a&&O_.test(p)?d="\\"+p:d=p;i+=d;}return a&&(/^-[-\d]/.test(i)?i="\\-"+i.slice(1):/\d/.test(n)&&(i="\\3"+n+" "+i.slice(1))),i=i.replace(F_,function(u,b,y){return b&&b.length%2?u:(b||"")+y}),!a&&t.wrap?o+i+o:i};Ki.options={escapeEverything:false,isIdentifier:false,quotes:"single",wrap:false};Ki.version="3.0.0";xd.exports=Ki;});var Xd=kp((lO,Zd)=>{var Fz=function(e){return jz(e)&&!Hz(e)};function jz(r){return !!r&&typeof r=="object"}function Hz(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||qz(r)}var Vz=typeof Symbol=="function"&&Symbol.for,Uz=Vz?Symbol.for("react.element"):60103;function qz(r){return r.$$typeof===Uz}function Gz(r){return Array.isArray(r)?[]:{}}function no(r,e){return e.clone!==false&&e.isMergeableObject(r)?dr(Gz(r),r,e):r}function Kz(r,e,t){return r.concat(e).map(function(o){return no(o,t)})}function Wz(r,e){if(!e.customMerge)return dr;var t=e.customMerge(r);return typeof t=="function"?t:dr}function Yz(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Wd(r){return Object.keys(r).concat(Yz(r))}function Yd(r,e){try{return e in r}catch{return false}}function Zz(r,e){return Yd(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function Xz(r,e,t){var o={};return t.isMergeableObject(r)&&Wd(r).forEach(function(a){o[a]=no(r[a],t);}),Wd(e).forEach(function(a){Zz(r,a)||(Yd(r,a)&&t.isMergeableObject(e[a])?o[a]=Wz(a,t)(r[a],e[a],t):o[a]=no(e[a],t));}),o}function dr(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Kz,t.isMergeableObject=t.isMergeableObject||Fz,t.cloneUnlessOtherwiseSpecified=no;var o=Array.isArray(e),a=Array.isArray(r),n=o===a;return n?o?t.arrayMerge(r,e,t):Xz(r,e,t):no(e,t)}dr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(o,a){return dr(o,a,t)},{})};var Jz=dr;Zd.exports=Jz;});var Te=typeof document<"u"?wt__default.default.useLayoutEffect:()=>{};function bi(r){let e=wt.useRef(null);return Te(()=>{e.current=r;},[r]),wt.useCallback((...t)=>{let o=e.current;return o?.(...t)},[])}function gi(r){let[e,t]=wt.useState(r),o=wt.useRef(null),a=bi(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}e===i.value?a():t(i.value);});Te(()=>{o.current&&a();});let n=bi(i=>{o.current=i(e),a();});return [e,n]}var Xo={prefix:String(Math.round(Math.random()*1e10)),current:0},Ip=wt__default.default.createContext(Xo),Bh=wt__default.default.createContext(false);var Oh=!!(typeof window<"u"&&window.document&&window.document.createElement),vi=new WeakMap;function Fh(r=false){let e=wt.useContext(Ip),t=wt.useRef(null);if(t.current===null&&!r){var o,a;let n=(a=wt__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(n){let i=vi.get(n);i==null?vi.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==i.state&&(e.current=i.id,vi.delete(n));}t.current=++e.current;}return t.current}function jh(r){let e=wt.useContext(Ip);e===Xo&&!Oh&&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 t=Fh(!!r),o=e===Xo&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return r||`${o}-${t}`}function Hh(r){let e=wt__default.default.useId(),[t]=wt.useState(Sp()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Xo.prefix}`;return r||`${o}-${e}`}var _i=typeof wt__default.default.useId=="function"?Hh:jh;function Vh(){return false}function Uh(){return true}function qh(r){return ()=>{}}function Sp(){return typeof wt__default.default.useSyncExternalStore=="function"?wt__default.default.useSyncExternalStore(qh,Vh,Uh):wt.useContext(Bh)}var Zh=!!(typeof window<"u"&&window.document&&window.document.createElement),Qe=new Map;function Jo(r){let[e,t]=wt.useState(r),o=wt.useRef(null),a=_i(e),n=wt.useCallback(i=>{o.current=i;},[]);return Zh&&(Qe.has(a)&&!Qe.get(a).includes(n)?Qe.set(a,[...Qe.get(a),n]):Qe.set(a,[n])),Te(()=>{let i=a;return ()=>{Qe.delete(i);}},[a]),wt.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i));}),a}function zi(r,e){if(r===e)return r;let t=Qe.get(r);if(t)return t.forEach(a=>a(e)),e;let o=Qe.get(e);return o?(o.forEach(a=>a(r)),r):e}function Rp(...r){return (...e)=>{for(let t of r)typeof t=="function"&&t(...e);}}var be=r=>{var e;return (e=r?.ownerDocument)!==null&&e!==void 0?e:document},re=r=>r&&"window"in r&&r.window===r?r:be(r).defaultView||window;function Xh(r){return r!==null&&typeof r=="object"&&"nodeType"in r&&typeof r.nodeType=="number"}function xi(r){return Xh(r)&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r}var Qo=(r=document)=>{var e;let t=r.activeElement;for(;t&&"shadowRoot"in t&&(!((e=t.shadowRoot)===null||e===void 0)&&e.activeElement);)t=t.shadowRoot.activeElement;return t};function $p(r){var e,t,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(e=0;e<a;e++)r[e]&&(t=$p(r[e]))&&(o&&(o+=" "),o+=t);}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function Jh(){for(var r,e,t=0,o="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=$p(r))&&(o&&(o+=" "),o+=e);return o}var Tp=Jh;function et(...r){let e={...r[0]};for(let t=1;t<r.length;t++){let o=r[t];for(let a in o){let n=e[a],i=o[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?e[a]=Rp(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?e[a]=Tp(n,i):a==="id"&&n&&i?e.id=zi(n,i):e[a]=i!==void 0?i:n;}}return e}function M(...r){return r.length===1&&r[0]?r[0]:e=>{for(let t of r)typeof t=="function"?t(e):t!=null&&(t.current=e);}}var Qh=new Set(["id"]),e5=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),t5=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),r5=/^(data-.*)$/;function Ci(r,e={}){let{labelable:t,isLink:o,propNames:a}=e,n={};for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(Qh.has(i)||t&&e5.has(i)||o&&t5.has(i)||a?.has(i)||r5.test(i))&&(n[i]=r[i]);return n}function ea(r){var e;return typeof window>"u"||window.navigator==null?false:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>r.test(t.brand)))||r.test(window.navigator.userAgent)}function Fe(r){let e=null;return ()=>(e==null&&(e=r()),e)}var Kr=Fe(function(){return ea(/Firefox/i)});function oe(r){let e=wt.useRef(null);return wt.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof r=="function"?r(t):r&&(r.current=t);}}),[r])}function p5(){return typeof window.ResizeObserver<"u"}function ki(r){let{ref:e,box:t,onResize:o}=r;wt.useEffect(()=>{let a=e?.current;if(a)if(p5()){let n=new window.ResizeObserver(i=>{i.length&&o();});return n.observe(a,{box:t}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",o,false),()=>{window.removeEventListener("resize",o,false);}},[o,e,t]);}function tt(r){return !!r&&"label"in r&&!!r.label}function ta(r){return !!r&&"children"in r&&!!r.children&&"title"in r}function u5(r){return ta(r)?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.title,"aria-label":r.title,children:e=>jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)},r.id):jsxRuntime.jsx(reactStately.Item,{textValue:r.label,children:r.label},r.id)}function pe(){return wt.useCallback(r=>u5(r),[])}function ra(r,e,t){let{direction:o}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager,isDisabled:!r.enableReorder,getItems:r.getItems||(s=>[...s].map(l=>{let p=e.collection.getItem(l);return utils.invariant(p,"Expected item to be defined."),{"text/plain":p.textValue}}))});reactAria.useDraggableCollection(r,a,t);let n=reactStately.useDroppableCollectionState({...r,collection:e.collection,selectionManager:e.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...r,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:e.collection,disabledKeys:e.disabledKeys,ref:t,orientation:r.orientation,layout:r.layout,direction:o}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(e.collection,t)},n,t);return {collectionProps:i,dragState:a,dropState:n}}function z5(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function x5(r){var e=z5(r,"string");return typeof e=="symbol"?e:String(e)}function C5(r,e,t){return e=x5(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function Ap(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function Bp(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ap(Object(t),true).forEach(function(o){C5(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ap(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function Op(r,e){var t={};for(var o in r)t[o]=e(r[o],o);return t}var P5=(r,e,t)=>{for(var o of Object.keys(r)){var a;if(r[o]!==((a=e[o])!==null&&a!==void 0?a:t[o]))return false}return true},x=r=>{var e=t=>{var o=r.defaultClassName,a=Bp(Bp({},r.defaultVariants),t);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:r.defaultVariants[n];if(s!=null){var l=s;typeof l=="boolean"&&(l=l===true?"true":"false");var p=r.variantClassNames[n][l];p&&(o+=" "+p);}}for(var[c,d]of r.compoundVariants)P5(c,a,r.defaultVariants)&&(o+=" "+d);return o};return e.variants=()=>Object.keys(r.variantClassNames),e.classNames={get base(){return r.defaultClassName.split(" ")[0]},get variants(){return Op(r.variantClassNames,t=>Op(t,o=>o.split(" ")[0]))}},e};var Fp=x({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),jp="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",Hp=x({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Vp=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:"z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Up="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",qp="_6n12k90";var Gp=x({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var U=wt__default.default.forwardRef(({className:r,style:e,variant:t="primary",orientation:o="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...l},p)=>{let{separatorProps:c}=reactAria.useSeparator({...l,orientation:o,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(Gp({isVertical:o==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",r),"data-orientation":o,"data-block-id":i,"data-block-class":s,style:e,role:a?void 0:c.role,ref:p})});U.displayName="Separator";function D5(r){return tokens.sprinkles.properties.has(r)}var D=wt__default.default.forwardRef(({elementType:r="div",children:e,...t},o)=>{let a=r,{sprinkleProps:n,domProps:i}=wt.useMemo(()=>{let s={},l={};for(let p in t)D5(p)?s[p]=t[p]:l[p]=t[p];return {sprinkleProps:s,domProps:l}},[t]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:o,children:e})});D.displayName="Box";var Yr=wt__default.default.forwardRef(({item:r,isDisabled:e,isFocusVisible:t,isSelected:o,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:l,isFocused:p,isPressed:c,_state:d},m)=>{utils.invariant(r.value&&tt(r.value),"Item cannot be a section");let{icon:u,label:b}=r.value,{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:e}),g=utils.filterTruthyValues({"data-selected":o,"data-disabled":e,"data-focused":p,"data-hovered":f,"data-pressed":c,"data-focus-visible":t,"data-selection-mode":d.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,g),className:utils.classNames(Vp({isHovered:f,isFocused:t,isFirstChild:d.collection.getFirstKey()===r.key,isLastChild:d.collection.getLastKey()===r.key,isDisabled:e}),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:o?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,u?jsxRuntime.jsx(u,{size:24}):null,jsxRuntime.jsx("span",{...l,children:b})]}),i?jsxRuntime.jsx("span",{className:Hp({isDisabled:e}),...s,children:i}):null]})});Yr.displayName="DefaultRenderOption";var Wt=({dropState:r,orientation:e="vertical",dropIndicatorStyle:t,dropIndicatorClassName:o,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(Fp({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",o),style:t}),...n})=>{let i=wt__default.default.useRef(null),{dropIndicatorProps:s,isHidden:l,isDropTarget:p}=reactAria.useDropIndicator(n,r,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:l,isDropTarget:p,orientation:e},i)};function rt(r,e,t){return typeof r=="function"?r(e,t):r}function oa(r,e,t){return typeof r=="function"?r(e,t):r}function aa(r,e){return typeof r=="function"?r(e):r}function Ri(r,e){return typeof r=="function"?r(e):r}var Zp=({item:r,children:e,state:t,dragState:o,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:r.key},o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Wt,{target:{type:"item",key:r.key,dropPosition:"before"},...a}),e(n),t.collection.getKeyAfter(r.key)==null&&jsxRuntime.jsx(Wt,{target:{type:"item",key:r.key,dropPosition:"after"},...a})]})};Zp.displayName="DraggableListOption";var Zr=wt__default.default.forwardRef(({item:r,renderOption:e=(m,u,b)=>jsxRuntime.jsx(Yr,{item:m,liProps:u.optionProps,...u,ref:b}),showSelectedIcon:t,state:o,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},d)=>{let m=wt__default.default.useRef(null),u=reactAria.useOption({key:r.key},o,m),{value:b}=r;utils.invariant(b&&tt(b),"ListSection should not be passed to ListOption");let y={isFocusVisible:u.isFocusVisible,isSelected:u.isSelected,isFocused:u.isFocused,isDisabled:u.isDisabled,isPressed:u.isPressed},f={style:oa(p,b,y),className:rt(c,b,y)};return a&&n?jsxRuntime.jsx(Zp,{orientation:i,state:o,item:r,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:l,children:g=>e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...reactAria.mergeProps(u.optionProps,g),...f}},M(m,d))}):e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...u.optionProps,...f}},M(m,d))});Zr.displayName="Option";var ec=({section:r,state:e,sectionClassName:t,sectionStyle:o,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=false,...s})=>{let l=wt__default.default.useRef(null),{itemProps:p,groupProps:c,headingProps:d}=reactAria.useListBoxSection({heading:a?n?.(r,l)||r.rendered:void 0,"aria-label":r["aria-label"]}),m=e.collection.getChildren?.(r.key);utils.invariant(m,"children must be defined");let{value:u}=r;utils.invariant(u&&ta(u),"section must be a ListSection");let b=typeof o=="function"?o(u):o,y=typeof t=="function"?t(u):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key===e.collection.getFirstKey()?null:jsxRuntime.jsx(U,{UNSAFE_omitRole:true}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...b},className:utils.classNames(qp,y,"BaselineUI-ListBox-Section"),children:[r.rendered&&a?n?.(r,l)||jsxRuntime.jsx(D,{...d,className:utils.classNames("BaselineUI-ListBox-SectionHeader",Up),ref:l,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:r.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(f=>jsxRuntime.jsx(Zr,{item:f,state:e,...s},f.key))})]})]})};function sa({type:r="listbox",handle:e},t,o){let a=wt.useCallback(i=>r==="listbox"?o.current?.querySelector(`[data-key="${i}"][role="option"]`):o.current?.querySelector(`[data-key="${i}"][role="row"]`),[r,o]),n=wt.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);wt.useImperativeHandle(e,()=>({scrollIntoView:n,setFocusedKey:i=>{t.selectionManager.setFocused(true),t.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,t.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=o.current?.getRootNode(),s=i&&xi(i),l=t.selectionManager.focusedKey;s&&l&&n(l);},[t.selectionManager.focusedKey],[n,o]);}var kt=wt__default.default.createContext(null),$i=wt__default.default.forwardRef(({className:r,layout:e="stack",orientation:t="vertical",showSelectedIcon:o=true,style:a,renderOption:n,enableReorder:i=false,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:d,listBoxHandle:m,...u},b)=>{let y=wt__default.default.useRef(null),{direction:f}=reactAria.useLocale(),g=wt__default.default.useRef(null),{listBoxProps:v}=reactAria.useListBox({...u,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:d.collection,ref:g,layout:e,orientation:t,direction:f,disabledKeys:d.disabledKeys})},d,g);sa({handle:m},d,g);let{collectionProps:h,dragState:_,dropState:z}=ra({...u,onReorder:c,layout:e,orientation:t,enableReorder:i,preview:y},d,g),{isFocusVisible:P,isFocused:w,focusProps:C}=reactAria.useFocusRing(),k=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-layout":e,"data-empty":d.collection.size===0,"data-focused":w,"data-focus-visible":P,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(v,C,k,h),className:utils.classNames(jp,"BaselineUI-ListBox",r),style:a,ref:M(b,g),children:[[...d.collection].map($=>{let R={key:$.key,state:d,dragState:_,dropState:z,renderOption:n,renderDropIndicator:u.renderDropIndicator,renderSectionHeader:u.renderSectionHeader,showSelectedIcon:o,orientation:t,dropIndicatorStyle:u.dropIndicatorStyle,dropIndicatorClassName:u.dropIndicatorClassName,optionStyle:u.optionStyle,optionClassName:u.optionClassName,sectionClassName:u.sectionClassName,sectionStyle:u.sectionStyle,showSectionHeader:u.showSectionHeader,withSectionHeaderPadding:u.withSectionHeaderPadding};return $.type==="section"?wt.createElement(ec,{...R,key:$.key,section:$}):wt.createElement(Zr,{...R,key:$.key,item:$})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:p}):null]})});$i.displayName="ListBoxCore";var oc=wt__default.default.forwardRef((r,e)=>{let t=pe(),o=reactStately.useListState({...r,children:t});return jsxRuntime.jsx($i,{...r,ref:e,state:o})});oc.displayName="ListBoxStandalone";var me=wt__default.default.forwardRef((r,e)=>{let t=wt.useContext(kt);return wt.useEffect(()=>{if(!r.items&&!t)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[r.items,t]),t?jsxRuntime.jsx($i,{...r,ref:e,state:t}):jsxRuntime.jsx(oc,{...r,ref:e})});me.displayName="ListBox";var pa="uf19bsf _1yep5z6la",ac=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 Xr=wt__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),je=({children:r,...e})=>{let t=wt__default.default.useRef(null),o=reactStately.useOverlayTriggerState(e),a=reactAria.useOverlayTrigger(e,o),n=wt.useMemo(()=>({state:o,overlayTriggerAria:a,triggerRef:t}),[o,a]);return jsxRuntime.jsx(Xr.Provider,{value:n,children:r})};var ic=x({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),sc=x({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),lc="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",pc="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",cc="_1gzftthd",dc="_1gzftthc",uc="var(--_1gzftth0)";function GD(r){return r.closest(".BaselineUI-Portal")||r.closest(".BaselineUI-Popover-Content")}function mc(r){return typeof r=="object"&&typeof r.left=="number"&&typeof r.top=="number"&&(typeof r.width=="number"||r.width===void 0)&&(typeof r.height=="number"||r.height===void 0)}var ca=wt__default.default.createContext({isSelected:false,ref:void 0}),He=({children:r,anchorRect:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:a}=wt.useContext(Xr);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=o,i=wt.useMemo(()=>({...n,isSelected:t.isOpen,ref:a}),[n,t.isOpen,a]);return utils.invariant(!e&&r||e&&!r,"Either one of anchorRect or children has to be provided."),utils.invariant(!e||mc(e),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(ca.Provider,{value:i,children:e?jsxRuntime.jsx("div",{className:utils.classNames(cc,"BaselineUI-PopoverTrigger-Hidden"),style:e,ref:a,tabIndex:-1},JSON.stringify(e)):r})};var da=({label:r,tooltip:e})=>({tooltipProps:wt.useMemo(()=>{let o={size:"sm",variant:"inverse",text:r,includeArrow:false,placement:"bottom start",offset:4};if(typeof e=="object")return {...o,...e};if(e)return o},[r,e])});function ua({tooltip:r,"aria-label":e,"aria-labelledby":t},o){let[a,n]=wt.useState(e||"");wt.useEffect(()=>{if(t){let l=be(o.current).querySelector(`#${t}`);l&&n(l.textContent||"");}else e&&n(e);},[t,o,e]);let{tooltipProps:i}=da({label:a,tooltip:r});return {tooltipProps:i}}var ma=r=>{let e=wt__default.default.useRef(null),{ref:t,...o}=wt.useContext(ca)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...r,...o},e),{isFocusVisible:i,isFocused:s,focusProps:l}=reactAria.useFocusRing(),{hoverProps:p,isHovered:c}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:et(a,l,p),isPressed:n,ref:M(e,t||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:r.isDisabled,isFocusVisible:i}}},fa=(r,e)=>{let t=wt__default.default.useRef(null),{ref:o,...a}=wt.useContext(ca)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...r,...a},e,t);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:l,focusProps:p}=reactAria.useFocusRing(),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:r.isDisabled});return {buttonProps:et(n,p,c),isPressed:i,ref:M(t,o||null),isFocusVisible:s,isFocused:l,isHovered:d,uiStateOptions:{isHovered:d,isFocused:l,isPressed:i,isDisabled:r.isDisabled,isFocusVisible:s,isSelected:e.isSelected}}};var ya=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"]]}),Di=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 D6={sm:16,md:20,lg:24},K=wt__default.default.forwardRef(({label:r,style:e,className:t,iconStart:o,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:l="sm","data-block-id":p,"data-block-class":c,...d},m)=>{let{buttonProps:u,isPressed:b,ref:y,isFocusVisible:f,isFocused:g,isHovered:v,uiStateOptions:h}=ma({...d,elementType:i,isDisabled:s}),_=D6[l],z=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(u,z),className:utils.classNames(ya({isDisabled:!!s,isFocusVisible:f,isHovered:v,variant:n,size:l}),"BaselineUI-ActionButton",typeof t=="function"?t(h):t),style:typeof e=="function"?e(h):e,ref:M(m,y),children:[!!o&&jsxRuntime.jsx(o,{size:_,className:Di({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),r,!!a&&jsxRuntime.jsx(a,{size:_,className:Di({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:pa})]})});K.displayName="ActionButton";var ba=wt__default.default.forwardRef(({className:r,style:e,node:t,"data-block-id":o,"data-block-class":a,...n},i)=>{let s=wt__default.default.useRef(null);wt__default.default.useEffect(()=>{let c=s.current;return c?.append(t),()=>{c?.contains(t)&&t.remove();}},[t]);let{pressProps:l,isPressed:p}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...l,className:r,style:e,"data-block-id":o,"data-block-class":a,"data-pressed":p,"data-testid":"dom-node-renderer",ref:M(i,s)})});ba.displayName="DomNodeRenderer";var hc="_14uvjig0 z9nup81",_c="_14uvjig7",zc="_14uvjig3",xc=x({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Cc=x({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Pc="_14uvjige _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",wc="_14uvjig8",kc=x({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Zt=x({defaultClassName:"nrh1ehy",variantClassNames:{isDisabled:{true:"nrh1ehz"},hasError:{true:"nrh1eh10"},labelPosition:{start:"nrh1eh11",top:"nrh1eh12"}},defaultVariants:{},compoundVariants:[]}),ga=x({defaultClassName:"nrh1ehp",variantClassNames:{isDisabled:{true:"nrh1ehq"},labelPosition:{top:"nrh1ehr",start:"nrh1ehs"}},defaultVariants:{},compoundVariants:[]}),Xt=x({defaultClassName:"nrh1eht",variantClassNames:{validationState:{valid:"nrh1ehu",error:"nrh1ehv",warning:"nrh1ehw"},isReadOnly:{true:"nrh1ehx"}},defaultVariants:{},compoundVariants:[]}),Jt="nrh1eh3",ot=x({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:false},"nrh1eh8"]]}),at=x({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Qt=x({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:true,isFocused:false,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:false,isHovered:false,validationState:"valid"},"nrh1ehk"],[{isHovered:true,validationState:"valid",isDisabled:false,isReadOnly:false,isFocused:false,variant:"primary"},"nrh1ehl"],[{isHovered:true,validationState:"warning",isDisabled:false,isReadOnly:false,isFocused:false},"nrh1ehm"],[{isReadOnly:true,variant:"primary",isFocused:false},"nrh1ehn"],[{isReadOnly:true,isFocused:true},"nrh1eho"]]});function ge({description:r,errorMessageProps:e,descriptionProps:t,warningMessage:o,errorMessage:a,labelPosition:n,isDisabled:i}){return r?jsxRuntime.jsx("div",{...t,className:Zt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:r}):a?jsxRuntime.jsx("div",{...e,className:Zt({hasError:true,labelPosition:n}),"aria-disabled":i,children:a}):o?jsxRuntime.jsx("div",{className:Zt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:o}):null}var Ic=x({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),Sc="_1lnwne0";var Rc=x({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),$c=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 va({placement:r}){let e=wt.useMemo(()=>{switch(r){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}}},[r]);return {transitionProps:{initial:{opacity:0,transform:`translate3d(${e.x}px, ${e.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var Li=wt__default.default.forwardRef(({children:r,state:e,overlayProps:t,arrowProps:o,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:l},p)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:e.isOpen},e),d=a==="center"?"bottom":a,{transitionProps:m}=va({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(t,m),ref:p,"data-placement":d,children:[l?jsxRuntime.jsx("div",{className:Rc({placement:d,variant:n}),...o}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:$c({variant:n,size:i}),children:r})]})});Li.displayName="TooltipContent";var Ai=wt__default.default.createContext(void 0),ha=({portalContainer:r,children:e})=>jsxRuntime.jsx(Ai.Provider,{value:r,children:e});ha.displayName="PortalContainerProvider";var _a="var(--lz9qs1)",Mc="var(--lz9qs0)";function Nc({ref:r,onIntersect:e,isDisabled:t,threshold:o,rootMargin:a,root:n}){let i=wt__default.default.useRef(null);wt.useEffect(()=>{if(t){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{e(s);},{root:n?.current,rootMargin:a,threshold:o});},[e,t,n,a,o]),wt.useEffect(()=>{let{current:s}=i;return r.current&&s?.observe(r.current),()=>s?.disconnect()},[r]);}function Lc({ref:r,onResize:e,isDisabled:t}){let o=wt__default.default.useRef(null),[a,n]=wt__default.default.useState();return wt__default.default.useEffect(()=>{if(t){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([i])=>{n(i.contentRect),e?.(i);});},[e,t,n]),wt__default.default.useEffect(()=>{let{current:i}=o;return r.current&&i?.observe(r.current),()=>i?.disconnect()},[r]),{size:a}}function er({src:r,alt:e}){let[t,o]=wt.useState(false),[a,n]=wt.useState(false),[i,s]=wt.useState(false),l=()=>{o(true),s(false);},p=()=>{n(true),s(false);};return wt.useEffect(()=>{if(!r)return;s(true);let c=new Image;return c.src=r,c.addEventListener("load",l),c.addEventListener("error",p),()=>{c.removeEventListener("load",l),c.removeEventListener("error",p);}},[r]),{isLoaded:t,hasError:a,isLoading:i,imgProps:{src:t?r:void 0,alt:e}}}function xa(){let r=wt.useRef(true);return wt.useEffect(()=>{r.current=false;},[]),r.current}var Ac="SET_STATE",Ca="UNDO",Pa="REDO",Z6=(r,e)=>{let{past:t,present:o,future:a}=r;switch(e.type){case Ac:return {past:[...t,o],present:e.data,future:[]};case Ca:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[o,...a]};case Pa:return {past:[...t,o],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},Bc=(r={},{isDisabled:e,onAction:t})=>{let o=xa(),[a,n]=wt.useReducer(Z6,{past:[],present:r,future:[]}),{past:i,present:s,future:l}=a,p=y=>{n({type:Ac,data:y});},c=wt.useRef(),d=()=>{c.current=Ca,n({type:Ca});},m=()=>{c.current=Pa,n({type:Pa});},u=!!i?.length,b=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===Ca||c.current===Pa)&&(t?.(s,c.current),c.current=void 0);},[s],[t,o]),{state:s,push:e?()=>{}:p,undo:e?()=>{}:d,redo:e?()=>{}:m,pastStates:i,futureStates:l,canUndo:u,canRedo:b}};var Oi=wt__default.default.createContext({messages:{},shouldLogMissingMessages:true,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),jc=({children:r,messages:e={},shouldLogMissingMessages:t=true,...o})=>{let a=wt.useRef(new Set),[n,i]=wt.useState(o.locale||"");wt.useEffect(()=>{a.current.clear();},[n,o.locale]);let s=wt__default.default.useMemo(()=>({messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:a,setLang:i}),[e,t,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...o,children:jsxRuntime.jsx(Oi.Provider,{value:s,children:r})})};jc.displayName="I18nProvider";function A(r){let{messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:o,setLang:a}=wt.useContext(Oi);wt.useEffect(()=>{!r&&r0__default.default(e)&&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.");},[r,e]);let n=wt.useMemo(()=>r?utils.cleanKeyFromGlobImport(r):e,[r,e]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();wt.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=wt.useCallback(c=>{t&&!o.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.`),o.current.add(c));},[o,s.locale,t]),p=wt.useCallback((c,d)=>{if(typeof c=="object")try{return i(c.id,d)}catch{return l(c.id),c.defaultMessage||c.id}else try{return i(c,d)}catch{return l(c),c}},[i,l]);return wt.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var G=r=>r;function YE(r,e,t){let o=wt__default.default.useRef(null);return wt__default.default.useEffect(()=>{if(r)return o.current=new MutationObserver(t),o.current.observe(r,e),()=>{o.current&&o.current.disconnect();}},[r,e,t]),o.current}function Gc(r,e){let[t,o]=wt.useState(()=>{try{let n=window.localStorage.getItem(r);return n?JSON.parse(n):e}catch(n){return console.log(n),e}});return [t,n=>{try{let i=n instanceof Function?n(t):n;o(i),window.localStorage.setItem(r,JSON.stringify(i));}catch(i){console.log(i);}}]}function rN({ref:r,onSelectionChange:e,onSelectionEnd:t,isDisabled:o}){let a=wt__default.default.useRef(null);reactAria.usePress({ref:r,isDisabled:o,onPressEnd(){let i=re(r.current).getSelection();i&&r.current?.contains(i.anchorNode)&&t?.(i);},onPressStart(){let n=re(r.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),wt.useEffect(()=>{let n=r.current;if(!n||o)return;function i(){let p=re(n).getSelection();p&&r.current?.contains(p.anchorNode)&&e(p);}let s=be(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[r,e,o]);}var wa=wt__default.default.createContext({breakpoints:tokens.breakpoints}),u0=({children:r,breakpoints:e=tokens.breakpoints})=>{let t=wt.useMemo(()=>({breakpoints:e}),[e]);return jsxRuntime.jsx(wa.Provider,{value:t,children:r})};function Ne(r){let{breakpoints:e=tokens.breakpoints}=wt.useContext(wa),t=wt.useMemo(()=>({tablet:`screen and (min-width: ${e.tablet}px)`,desktop:`screen and (min-width: ${e.desktop}px)`}),[e]),o=wt.useCallback(()=>{let i=re(r??typeof window>"u"?void 0:r),s=i.matchMedia(t.tablet);return i.matchMedia(t.desktop).matches?"desktop":s.matches?"tablet":"mobile"},[r,t]),[a,n]=wt__default.default.useState(o);return Te(()=>{let i=re(r),s=()=>{n(o());};return i.addEventListener("resize",s),s(),()=>{i.removeEventListener("resize",s);}},[r,o]),a}var C0=typeof window<"u";function Fi(){return C0?document.body:null}var It=wt__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false}),P0=({children:r,container:e=Fi(),portalContainer:t,shouldContainOverlays:o="auto"})=>{let a=Ne(),n=wt.useMemo(()=>e===Fi()||o==="never"?false:o==="always"?true:a!=="mobile",[o,a,e]),[i,s]=wt.useState(false),l=xa();wt.useEffect(()=>{if(!e||l)return;let d=re(e).getComputedStyle(e),m=!!d.position&&d.position!=="static";s(m);let u=e.getBoundingClientRect();(u.width===0||u.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 b({width:f,height:g}){e&&dynamic.setElementVars(e,{[Mc]:f,[_a]:g});}let y=new ResizeObserver(f=>{for(let g of f)b({width:`${g.contentRect.width}px`,height:`${g.contentRect.height}px`});});return n&&(b({width:`${u.width}px`,height:`${u.height}px`}),y.observe(e)),e.dataset.shouldContainOverlays=n.toString(),()=>{y.disconnect(),b({width:"",height:""}),e.dataset.shouldContainOverlays="";}},[e,l,n]);let p=wt.useMemo(()=>({container:e,portalContainer:t||e||Fi(),shouldContainOverlays:n,isContainerPositioned:i}),[e,t,n,i]);return jsxRuntime.jsx(It.Provider,{value:p,children:jsxRuntime.jsx(ha,{portalContainer:p.portalContainer||void 0,children:r})})};function ve(r){let e=wt.useContext(Ai),{portalContainer:t}=wt.useContext(It);return r||e||t||void 0}var Xc=x({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Jc="z9nup80",tr="z9nup83",Qc="z9nup87";function ji(r=typeof window>"u"?void 0:window){let[e,t]=wt.useState("light"),[o,a]=wt.useState(false),[n,i]=wt.useState(false),[s,l]=wt.useState(false);return wt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-color-scheme: dark)"),c=d=>{t(d.matches?"dark":"light");};return p.matches&&t("dark"),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),wt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-contrast: more)"),c=d=>{a(d.matches);};return a(p.matches),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),wt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-motion: reduce)"),c=d=>{i(d.matches);};return p.matches&&i(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),wt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-transparency: reduce)"),c=d=>{l(d.matches);};return p.matches&&l(true),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),{colorScheme:e,highContrast:o,reducedMotion:n,transparency:s}}var rr=wt.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var ed="var(--hj25q10)";var Sa={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},Ra=wt__default.default.forwardRef(({theme:r="system",children:e,setTheme:t,onThemeChange:o,className:a,style:n,UNSAFE_domProps:i,"data-block-id":s,"data-block-class":l,reducedMotion:p="user",shouldHandleVirtualKeyboard:c=true},d)=>{let{direction:m}=reactAria.useLocale(),{colorScheme:u,reducedMotion:b,highContrast:y,transparency:f}=ji(),{name:g,theme:v}=wt.useMemo(()=>{switch(r){case "system":return u==="light"?Sa.LIGHT:Sa.DARK;case "light":return Sa.LIGHT;case "dark":return Sa.DARK;default:return {name:"custom",theme:r}}},[u,r]),h=Ne(),_={"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":h},z=wt.useMemo(()=>({theme:v,setTheme:P=>{t?.(P),o?.(P);},shouldHandleVirtualKeyboard:c}),[v,t,o,c]);return wt.useEffect(()=>{t&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.");},[t]),jsxRuntime.jsx(rr.Provider,{value:z,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,_),className:utils.classNames(Jc,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,v),...dynamic.assignInlineVars({[ed]:m==="rtl"?"-1":"1"}),...n},ref:d,children:e})})})});Ra.displayName="ThemeProvider";function iL(){react.MotionGlobalConfig.skipAnimations=true;}function sL(){react.MotionGlobalConfig.skipAnimations=false;}var he=wt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l}=wt.useContext(rr),p=ve();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??p,children:jsxRuntime.jsx(Ra,{ref:s,theme:l,style:e,className:utils.classNames("BaselineUI-Portal",r),"data-block-id":o,"data-block-class":a,children:t})})});he.displayName="Portal";var ie=wt__default.default.forwardRef(({children:r,placement:e="bottom",delay:t=1e3,closeDelay:o=500,variant:a="default",size:n="md",includeArrow:i=true,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":d,...m},u)=>{let b=wt__default.default.useRef(null),y=wt__default.default.useRef(null),f=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:t,closeDelay:o,isDisabled:f}),{triggerProps:v,tooltipProps:h}=reactAria.useTooltipTrigger({...m,isDisabled:f,delay:t,closeDelay:o},g,b),_=ve(s),{overlayProps:z,arrowProps:P,placement:w,updatePosition:C}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:b,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:y,placement:e,isOpen:g.isOpen,...m});return Nc({ref:y,threshold:1,onIntersect:C,isDisabled:!g.isOpen}),Lc({ref:b,onResize:C,isDisabled:!g.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...v,ref:b,children:[r,g.isOpen?jsxRuntime.jsx(he,{disableFocusManagement:true,portalContainer:_,className:l,style:p,"data-block-id":c,"data-block-class":d,children:jsxRuntime.jsx(Li,{ref:M(u,y),state:g,arrowProps:P,overlayProps:z,placement:w,tooltipProps:h,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});ie.displayName="Tooltip";var $a=wt__default.default.forwardRef(({elementType:r,children:e,...t},o)=>{let a=oe(o),{focusableProps:n}=focus.useFocusable(t,a);return jsxRuntime.jsx(r??"div",{ref:a,...n,children:e})});$a.displayName="Focusable";var Q0={xxs:8,xs:12,sm:16,md:20,lg:24},L=wt__default.default.forwardRef((r,e)=>{let t=oe(e),{tooltipProps:o}=ua(r,t);return o?jsxRuntime.jsx(ie,{...o,children:jsxRuntime.jsx(Ui,{...r,ref:t})}):jsxRuntime.jsx(Ui,{...r,ref:t})});L.displayName="ActionIconButton";var Ui=wt__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},l)=>{let p=s["aria-label"],c=s["aria-labelledby"];wt.useEffect(()=>{!p&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[p,c]);let{buttonProps:d,isPressed:m,ref:u,isFocusVisible:b,isFocused:y,isHovered:f,uiStateOptions:g}=ma({...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(d,v),className:utils.classNames(ac({variant:a,size:o,isDisabled:!!s.isDisabled,isFocusVisible:b,isHovered:f}),"BaselineUI-ActionIconButton",typeof r=="function"?r(g):r),ref:M(l,u),style:typeof e=="function"?e(g):e,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(t,{role:"presentation",size:Q0[o]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:pa})]})});Ui.displayName="ActionIconButtonCore";var Ve=wt__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary",showStepper:a=true,...n},i)=>{let s=wt__default.default.useRef(null),{locale:l}=reactAria.useLocale(),p=reactStately.useNumberFieldState({...n,locale:l}),{hoverProps:c,isHovered:d}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:b}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:f,inputProps:g,incrementButtonProps:v,groupProps:h,descriptionProps:_,errorMessageProps:z}=reactAria.useNumberField(n,p,s),P=wt.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),w=ge({description:n.description,errorMessageProps:z,descriptionProps:_,errorMessage:n.errorMessage,labelPosition:t,isDisabled:n.isDisabled}),C=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":d,"data-focused":b,"data-focus-visible":u,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:e,className:utils.classNames(at({labelPosition:t}),"BaselineUI-NumberInput",r),...C,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:ot({labelPosition:t,hasMessage:!!w}),children:[jsxRuntime.jsx("label",{...y,className:Jt,children:n.label}),t==="start"&&w]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[tr]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(h,c),className:utils.classNames(Qt({isHovered:d,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:b,variant:o}),{[Sc]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",ga({isDisabled:n.isDisabled,labelPosition:t}))}),P?jsxRuntime.jsx(P,{className:Xt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Ic({isHoveredOrFocused:d||b,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...f,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(U,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&w]})]})});Ve.displayName="NumberInput";var nr=wt__default.default.forwardRef(({className:r,style:e,onChange:t,onChangeEnd:o,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:l,value:p,"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,"data-block-id":b,"data-block-class":y,defaultValue:f,isReadOnly:g,label:v,id:h,includeNumberInput:_},z)=>{let P=wt__default.default.useRef(null),w={onChange:t===void 0?void 0:S=>{t(S[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:o===void 0?void 0:S=>{o(S[0]);},value:p===void 0?void 0:[p],defaultValue:f===void 0?void 0:[f],"aria-label":c,"aria-labelledby":d,"aria-details":m,"aria-describedby":u,id:h,label:v},C=reactAria.useNumberFormatter(a),k=reactStately.useSliderState({...w,numberFormatter:C}),{trackProps:$,groupProps:R,labelProps:T}=reactAria.useSlider(w,k,P),I=jsxRuntime.jsx(Ve,{variant:"ghost",showStepper:false,"aria-label":c,"aria-labelledby":T.id,value:k.getThumbValue(0),formatOptions:a,onChange:S=>{k.setThumbValue(0,S);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...R,style:e,"data-block-id":b,"data-block-class":y,className:utils.classNames(hc,"BaselineUI-Slider",r),children:[v?jsxRuntime.jsxs("div",{className:zc,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(xc({isDisabled:n,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:v}),_?I:null]}):null,jsxRuntime.jsxs("div",{className:_c,children:[jsxRuntime.jsx("div",{...$,className:utils.classNames(wc,"BaselineUI-Slider-Track"),ref:M(P,z),"data-testid":"track",children:jsxRuntime.jsx(__,{state:k,trackRef:P,isDisabled:n,isReadOnly:g})}),_&&!v?I:null]})]})});nr.displayName="Slider";function __({state:r,trackRef:e,isDisabled:t,isReadOnly:o}){let a=wt__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:e,inputRef:a},r),{focusProps:l,isFocused:p,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:d,isHovered:m}=reactAria.useHover({isDisabled:t}),u=utils.filterTruthyValues({"data-disabled":t,"data-readonly":o,"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(kc({isDisabled:t,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,d,u),className:utils.classNames(Pc,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Cc({isDisabled:t,isFocusVisible:c,active:s,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,l)})})]})]})}var cd=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 Q=wt__default.default.forwardRef(({elementType:r="span",type:e="title",children:t,size:o="md",...a},n)=>jsxRuntime.jsx(r,{...a,className:utils.classNames(cd({size:o,type:e}),"BaselineUI-Text",a.className),ref:n,children:t}));Q.displayName="Text";var dd=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:[]}),ud="siobe24";var Da=wt__default.default.forwardRef(({className:r,style:e,children:t,background:o="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:l,contentStyle:p,contentClassName:c,...d},m)=>{let{formatMessage:u}=A(),b=wt__default.default.useRef(null),{dialogProps:y,titleProps:f}=reactAria.useDialog(d,b),{focusProps:g,isFocusVisible:v}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(y,g),className:utils.classNames(dd({background:o,isFocusVisible:v}),"BaselineUI-Drawer",r),"data-block-id":i,"data-block-class":s,style:e,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:ud,children:[jsxRuntime.jsx(Q,{type:"title",size:"sm",...f,className:Qc,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":u(R_.close)})]})]}),jsxRuntime.jsx(U,{variant:o==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:t})]})});Da.displayName="Drawer";var R_=G({close:{id:"close",defaultMessage:"Close"}});var yd="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",bd="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",gd=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:[]}),vd=x({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var St=wt__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Le=({children:r,...e})=>{let t=reactStately.useOverlayTriggerState(e),{triggerProps:o,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),n=wt.useMemo(()=>({state:t,triggerProps:o,overlayProps:a}),[t,o,a]);return jsxRuntime.jsx(St.Provider,{value:n,children:r})};Le.displayName="Modal";yi(Wi());var Pd=false,wd=r=>{Pd||V_(r);},V_=r=>{if(!r)throw new Error('No adapter provided when calling "setAdapter"');Pd=true;};var ee;(function(r){r.Attribute="attribute",r.Pseudo="pseudo",r.PseudoElement="pseudo-element",r.Tag="tag",r.Universal="universal",r.Adjacent="adjacent",r.Child="child",r.Descendant="descendant",r.Parent="parent",r.Sibling="sibling",r.ColumnCombinator="column-combinator";})(ee||(ee={}));var Pe;(function(r){r.Any="any",r.Element="element",r.End="end",r.Equals="equals",r.Exists="exists",r.Hyphen="hyphen",r.Not="not",r.Start="start";})(Pe||(Pe={}));new Map([[126,Pe.Element],[94,Pe.Start],[36,Pe.End],[42,Pe.Any],[33,Pe.Not],[124,Pe.Hyphen]]);function $d(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,o);}return t}function Td(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$d(Object(t),true).forEach(function(o){Y_(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):$d(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function Y_(r,e,t){return e=Z_(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:true,configurable:true,writable:true}):r[e]=t,r}function Z_(r){var e=X_(r,"string");return typeof e=="symbol"?e:String(e)}function X_(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}Dd({});function Dd(r){return e.withOptions=t=>Dd(Td(Td({},r),t)),e;function e(t,...o){let a=typeof t=="string"?[t]:t.raw,{escapeSpecialCharacters:n=Array.isArray(t)}=r,i="";for(let p=0;p<a.length;p++){let c=a[p];n&&(c=c.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=c,p<o.length&&(i+=o[p]);}let s=i.split(`
|
|
11
|
-
|
|
12
|
-
`);}return i=i.trim(),n&&(i=i.replace(/\\n/g,`
|
|
13
|
-
`)),i}}var jd={":-moz-any-link":true,":-moz-full-screen":true,":-moz-placeholder":true,":-moz-read-only":true,":-moz-read-write":true,":-ms-fullscreen":true,":-ms-input-placeholder":true,":-webkit-any-link":true,":-webkit-full-screen":true,"::-moz-color-swatch":true,"::-moz-list-bullet":true,"::-moz-list-number":true,"::-moz-page-sequence":true,"::-moz-page":true,"::-moz-placeholder":true,"::-moz-progress-bar":true,"::-moz-range-progress":true,"::-moz-range-thumb":true,"::-moz-range-track":true,"::-moz-scrolled-page-sequence":true,"::-moz-selection":true,"::-ms-backdrop":true,"::-ms-browse":true,"::-ms-check":true,"::-ms-clear":true,"::-ms-fill-lower":true,"::-ms-fill-upper":true,"::-ms-fill":true,"::-ms-reveal":true,"::-ms-thumb":true,"::-ms-ticks-after":true,"::-ms-ticks-before":true,"::-ms-tooltip":true,"::-ms-track":true,"::-ms-value":true,"::-webkit-backdrop":true,"::-webkit-calendar-picker-indicator":true,"::-webkit-inner-spin-button":true,"::-webkit-input-placeholder":true,"::-webkit-meter-bar":true,"::-webkit-meter-even-less-good-value":true,"::-webkit-meter-inner-element":true,"::-webkit-meter-optimum-value":true,"::-webkit-meter-suboptimum-value":true,"::-webkit-outer-spin-button":true,"::-webkit-progress-bar":true,"::-webkit-progress-inner-element":true,"::-webkit-progress-inner-value":true,"::-webkit-progress-value":true,"::-webkit-resizer":true,"::-webkit-scrollbar-button":true,"::-webkit-scrollbar-corner":true,"::-webkit-scrollbar-thumb":true,"::-webkit-scrollbar-track-piece":true,"::-webkit-scrollbar-track":true,"::-webkit-scrollbar":true,"::-webkit-search-cancel-button":true,"::-webkit-search-results-button":true,"::-webkit-slider-runnable-track":true,"::-webkit-slider-thumb":true,"::after":true,"::backdrop":true,"::before":true,"::cue":true,"::file-selector-button":true,"::first-letter":true,"::first-line":true,"::grammar-error":true,"::marker":true,"::placeholder":true,"::selection":true,"::spelling-error":true,"::target-text":true,"::view-transition-group":true,"::view-transition-image-pair":true,"::view-transition-new":true,"::view-transition-old":true,"::view-transition":true,":active":true,":after":true,":any-link":true,":before":true,":blank":true,":checked":true,":default":true,":defined":true,":disabled":true,":empty":true,":enabled":true,":first-child":true,":first-letter":true,":first-line":true,":first-of-type":true,":first":true,":focus-visible":true,":focus-within":true,":focus":true,":fullscreen":true,":hover":true,":in-range":true,":indeterminate":true,":invalid":true,":last-child":true,":last-of-type":true,":left":true,":link":true,":only-child":true,":only-of-type":true,":optional":true,":out-of-range":true,":placeholder-shown":true,":read-only":true,":read-write":true,":required":true,":right":true,":root":true,":scope":true,":target":true,":valid":true,":visited":true},Cz=Object.keys(jd);[...Cz,"@layer","@media","@supports","@container","selectors"];var pr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,qd=new Set,as=typeof process=="object"&&process?process:{},Gd=(r,e,t,o)=>{typeof as.emitWarning=="function"?as.emitWarning(r,e,t,o):console.error(`[${t}] ${e}: ${r}`);},Oa=globalThis.AbortController,Ud=globalThis.AbortSignal;if(typeof Oa>"u"){Ud=class{onabort;_onabort=[];reason;aborted=false;addEventListener(o,a){this._onabort.push(a);}},Oa=class{constructor(){e();}signal=new Ud;abort(o){if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=true;for(let a of this.signal._onabort)a(o);this.signal.onabort?.(o);}}};let r=as.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{r&&(r=false,Gd("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}var Dz=r=>!qd.has(r),st=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),Kd=r=>st(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?cr:null:null,cr=class extends Array{constructor(e){super(e),this.fill(0);}},ns=class r{heap;length;static#l=false;static create(e){let t=Kd(e);if(!t)return [];r.#l=true;let o=new r(e,t);return r.#l=false,o}constructor(e,t){if(!r.#l)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},Fa=class r{#l;#d;#y;#b;#$;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#g;#o;#r;#e;#p;#u;#s;#n;#v;#i;#h;#_;#m;#z;#k;#c;static unsafeExposeInternals(e){return {starts:e.#_,ttls:e.#m,sizes:e.#h,keyMap:e.#o,keyList:e.#r,valList:e.#e,next:e.#p,prev:e.#u,get head(){return e.#s},get tail(){return e.#n},free:e.#v,isBackgroundFetch:t=>e.#t(t),backgroundFetch:(t,o,a,n)=>e.#E(t,o,a,n),moveToTail:t=>e.#R(t),indexes:t=>e.#x(t),rindexes:t=>e.#C(t),isStale:t=>e.#f(t)}}get max(){return this.#l}get maxSize(){return this.#d}get calculatedSize(){return this.#g}get size(){return this.#a}get fetchMethod(){return this.#$}get memoMethod(){return this.#T}get dispose(){return this.#y}get disposeAfter(){return this.#b}constructor(e){let{max:t=0,ttl:o,ttlResolution:a=1,ttlAutopurge:n,updateAgeOnGet:i,updateAgeOnHas:s,allowStale:l,dispose:p,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:m,maxSize:u=0,maxEntrySize:b=0,sizeCalculation:y,fetchMethod:f,memoMethod:g,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:h,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:z,ignoreFetchAbort:P}=e;if(t!==0&&!st(t))throw new TypeError("max option must be a nonnegative integer");let w=t?Kd(t):Array;if(!w)throw new Error("invalid max value: "+t);if(this.#l=t,this.#d=u,this.maxEntrySize=b||this.#d,this.sizeCalculation=y,this.sizeCalculation){if(!this.#d&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=g,f!==void 0&&typeof f!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#$=f,this.#k=!!f,this.#o=new Map,this.#r=new Array(t).fill(void 0),this.#e=new Array(t).fill(void 0),this.#p=new w(t),this.#u=new w(t),this.#s=0,this.#n=0,this.#v=ns.create(t),this.#a=0,this.#g=0,typeof p=="function"&&(this.#y=p),typeof c=="function"?(this.#b=c,this.#i=[]):(this.#b=void 0,this.#i=void 0),this.#z=!!this.#y,this.#c=!!this.#b,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!_,this.allowStaleOnFetchAbort=!!z,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#d!==0&&!st(this.#d))throw new TypeError("maxSize must be a positive integer if specified");if(!st(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!h,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!s,this.ttlResolution=st(a)||a===0?a:1,this.ttlAutopurge=!!n,this.ttl=o||0,this.ttl){if(!st(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N();}if(this.#l===0&&this.ttl===0&&this.#d===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#l&&!this.#d){let C="LRU_CACHE_UNBOUNDED";Dz(C)&&(qd.add(C),Gd("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",C,r));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#N(){let e=new cr(this.#l),t=new cr(this.#l);this.#m=e,this.#_=t,this.#L=(n,i,s=pr.now())=>{if(t[n]=i!==0?s:0,e[n]=i,i!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#f(n)&&this.#P(this.#r[n],"expire");},i+1);l.unref&&l.unref();}},this.#I=n=>{t[n]=e[n]!==0?pr.now():0;},this.#w=(n,i)=>{if(e[i]){let s=e[i],l=t[i];if(!s||!l)return;n.ttl=s,n.start=l,n.now=o||a();let p=n.now-l;n.remainingTTL=s-p;}};let o=0,a=()=>{let n=pr.now();if(this.ttlResolution>0){o=n;let i=setTimeout(()=>o=0,this.ttlResolution);i.unref&&i.unref();}return n};this.getRemainingTTL=n=>{let i=this.#o.get(n);if(i===void 0)return 0;let s=e[i],l=t[i];if(!s||!l)return 1/0;let p=(o||a())-l;return s-p},this.#f=n=>{let i=t[n],s=e[n];return !!s&&!!i&&(o||a())-i>s};}#I=()=>{};#w=()=>{};#L=()=>{};#f=()=>false;#j(){let e=new cr(this.#l);this.#g=0,this.#h=e,this.#S=t=>{this.#g-=e[t],e[t]=0;},this.#A=(t,o,a,n)=>{if(this.#t(o))return 0;if(!st(a))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(a=n(o,t),!st(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a},this.#D=(t,o,a)=>{if(e[t]=o,this.#d){let n=this.#d-e[t];for(;this.#g>n;)this.#M(true);}this.#g+=e[t],a&&(a.entrySize=o,a.totalCalculatedSize=this.#g);};}#S=e=>{};#D=(e,t,o)=>{};#A=(e,t,o,a)=>{if(o||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#x({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#n;!(!this.#B(t)||((e||!this.#f(t))&&(yield t),t===this.#s));)t=this.#u[t];}*#C({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#s;!(!this.#B(t)||((e||!this.#f(t))&&(yield t),t===this.#n));)t=this.#p[t];}#B(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){for(let e of this.#x())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*rentries(){for(let e of this.#C())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#t(this.#e[e])&&(yield [this.#r[e],this.#e[e]]);}*keys(){for(let e of this.#x()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*rkeys(){for(let e of this.#C()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*values(){for(let e of this.#x())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#C())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let o of this.#x()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;if(n!==void 0&&e(n,this.#r[o],this))return this.get(this.#r[o],t)}}forEach(e,t=this){for(let o of this.#x()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}rforEach(e,t=this){for(let o of this.#C()){let a=this.#e[o],n=this.#t(a)?a.__staleWhileFetching:a;n!==void 0&&e.call(t,n,this.#r[o],this);}}purgeStale(){let e=false;for(let t of this.#C({allowStale:true}))this.#f(t)&&(this.#P(this.#r[t],"expire"),e=true);return e}info(e){let t=this.#o.get(e);if(t===void 0)return;let o=this.#e[t],a=this.#t(o)?o.__staleWhileFetching:o;if(a===void 0)return;let n={value:a};if(this.#m&&this.#_){let i=this.#m[t],s=this.#_[t];if(i&&s){let l=i-(pr.now()-s);n.ttl=l,n.start=Date.now();}}return this.#h&&(n.size=this.#h[t]),n}dump(){let e=[];for(let t of this.#x({allowStale:true})){let o=this.#r[t],a=this.#e[t],n=this.#t(a)?a.__staleWhileFetching:a;if(n===void 0||o===void 0)continue;let i={value:n};if(this.#m&&this.#_){i.ttl=this.#m[t];let s=pr.now()-this.#_[t];i.start=Math.floor(Date.now()-s);}this.#h&&(i.size=this.#h[t]),e.unshift([o,i]);}return e}load(e){this.clear();for(let[t,o]of e){if(o.start){let a=Date.now()-o.start;o.start=pr.now()-a;}this.set(t,o.value,o);}}set(e,t,o={}){if(t===void 0)return this.delete(e),this;let{ttl:a=this.ttl,start:n,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=o,{noUpdateTTL:p=this.noUpdateTTL}=o,c=this.#A(e,t,o.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=true),this.#P(e,"set"),this;let d=this.#a===0?void 0:this.#o.get(e);if(d===void 0)d=this.#a===0?this.#n:this.#v.length!==0?this.#v.pop():this.#a===this.#l?this.#M(false):this.#a,this.#r[d]=e,this.#e[d]=t,this.#o.set(e,d),this.#p[this.#n]=d,this.#u[d]=this.#n,this.#n=d,this.#a++,this.#D(d,c,l),l&&(l.set="add"),p=false;else {this.#R(d);let m=this.#e[d];if(t!==m){if(this.#k&&this.#t(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:u}=m;u!==void 0&&!i&&(this.#z&&this.#y?.(u,e,"set"),this.#c&&this.#i?.push([u,e,"set"]));}else i||(this.#z&&this.#y?.(m,e,"set"),this.#c&&this.#i?.push([m,e,"set"]));if(this.#S(d),this.#D(d,c,l),this.#e[d]=t,l){l.set="replace";let u=m&&this.#t(m)?m.__staleWhileFetching:m;u!==void 0&&(l.oldValue=u);}}else l&&(l.set="update");}if(a!==0&&!this.#m&&this.#N(),this.#m&&(p||this.#L(d,a,n),l&&this.#w(l,d)),!i&&this.#c&&this.#i){let m=this.#i,u;for(;u=m?.shift();)this.#b?.(...u);}return this}pop(){try{for(;this.#a;){let e=this.#e[this.#s];if(this.#M(!0),this.#t(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#i){let e=this.#i,t;for(;t=e?.shift();)this.#b?.(...t);}}}#M(e){let t=this.#s,o=this.#r[t],a=this.#e[t];return this.#k&&this.#t(a)?a.__abortController.abort(new Error("evicted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(a,o,"evict"),this.#c&&this.#i?.push([a,o,"evict"])),this.#S(t),e&&(this.#r[t]=void 0,this.#e[t]=void 0,this.#v.push(t)),this.#a===1?(this.#s=this.#n=0,this.#v.length=0):this.#s=this.#p[t],this.#o.delete(o),this.#a--,t}has(e,t={}){let{updateAgeOnHas:o=this.updateAgeOnHas,status:a}=t,n=this.#o.get(e);if(n!==void 0){let i=this.#e[n];if(this.#t(i)&&i.__staleWhileFetching===void 0)return false;if(this.#f(n))a&&(a.has="stale",this.#w(a,n));else return o&&this.#I(n),a&&(a.has="hit",this.#w(a,n)),true}else a&&(a.has="miss");return false}peek(e,t={}){let{allowStale:o=this.allowStale}=t,a=this.#o.get(e);if(a===void 0||!o&&this.#f(a))return;let n=this.#e[a];return this.#t(n)?n.__staleWhileFetching:n}#E(e,t,o,a){let n=t===void 0?void 0:this.#e[t];if(this.#t(n))return n;let i=new Oa,{signal:s}=o;s?.addEventListener("abort",()=>i.abort(s.reason),{signal:i.signal});let l={signal:i.signal,options:o,context:a},p=(y,f=false)=>{let{aborted:g}=i.signal,v=o.ignoreFetchAbort&&y!==void 0;if(o.status&&(g&&!f?(o.status.fetchAborted=true,o.status.fetchError=i.signal.reason,v&&(o.status.fetchAbortIgnored=true)):o.status.fetchResolved=true),g&&!v&&!f)return d(i.signal.reason);let h=u;return this.#e[t]===u&&(y===void 0?h.__staleWhileFetching?this.#e[t]=h.__staleWhileFetching:this.#P(e,"fetch"):(o.status&&(o.status.fetchUpdated=true),this.set(e,y,l.options))),y},c=y=>(o.status&&(o.status.fetchRejected=true,o.status.fetchError=y),d(y)),d=y=>{let{aborted:f}=i.signal,g=f&&o.allowStaleOnFetchAbort,v=g||o.allowStaleOnFetchRejection,h=v||o.noDeleteOnFetchRejection,_=u;if(this.#e[t]===u&&(!h||_.__staleWhileFetching===void 0?this.#P(e,"fetch"):g||(this.#e[t]=_.__staleWhileFetching)),v)return o.status&&_.__staleWhileFetching!==void 0&&(o.status.returnedStale=true),_.__staleWhileFetching;if(_.__returned===_)throw y},m=(y,f)=>{let g=this.#$?.(e,n,l);g&&g instanceof Promise&&g.then(v=>y(v===void 0?void 0:v),f),i.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(y(void 0),o.allowStaleOnFetchAbort&&(y=v=>p(v,true)));});};o.status&&(o.status.fetchDispatched=true);let u=new Promise(m).then(p,c),b=Object.assign(u,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,b,{...l.options,status:void 0}),t=this.#o.get(e)):this.#e[t]=b,b}#t(e){if(!this.#k)return false;let t=e;return !!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof Oa}async fetch(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:y,forceRefresh:f=false,status:g,signal:v}=t;if(!this.#k)return g&&(g.fetch="get"),this.get(e,{allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,status:g});let h={allowStale:o,updateAgeOnGet:a,noDeleteOnStaleGet:n,ttl:i,noDisposeOnSet:s,size:l,sizeCalculation:p,noUpdateTTL:c,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:b,ignoreFetchAbort:u,status:g,signal:v},_=this.#o.get(e);if(_===void 0){g&&(g.fetch="miss");let z=this.#E(e,_,h,y);return z.__returned=z}else {let z=this.#e[_];if(this.#t(z)){let $=o&&z.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",$&&(g.returnedStale=true)),$?z.__staleWhileFetching:z.__returned=z}let P=this.#f(_);if(!f&&!P)return g&&(g.fetch="hit"),this.#R(_),a&&this.#I(_),g&&this.#w(g,_),z;let w=this.#E(e,_,h,y),k=w.__staleWhileFetching!==void 0&&o;return g&&(g.fetch=P?"stale":"refresh",k&&P&&(g.returnedStale=true)),k?w.__staleWhileFetching:w.__returned=w}}async forceFetch(e,t={}){let o=await this.fetch(e,t);if(o===void 0)throw new Error("fetch() returned undefined");return o}memo(e,t={}){let o=this.#T;if(!o)throw new Error("no memoMethod provided to constructor");let{context:a,forceRefresh:n,...i}=t,s=this.get(e,i);if(!n&&s!==void 0)return s;let l=o(e,s,{options:i,context:a});return this.set(e,l,i),l}get(e,t={}){let{allowStale:o=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:i}=t,s=this.#o.get(e);if(s!==void 0){let l=this.#e[s],p=this.#t(l);return i&&this.#w(i,s),this.#f(s)?(i&&(i.get="stale"),p?(i&&o&&l.__staleWhileFetching!==void 0&&(i.returnedStale=true),o?l.__staleWhileFetching:void 0):(n||this.#P(e,"expire"),i&&o&&(i.returnedStale=true),o?l:void 0)):(i&&(i.get="hit"),p?l.__staleWhileFetching:(this.#R(s),a&&this.#I(s),l))}else i&&(i.get="miss");}#O(e,t){this.#u[t]=e,this.#p[e]=t;}#R(e){e!==this.#n&&(e===this.#s?this.#s=this.#p[e]:this.#O(this.#u[e],this.#p[e]),this.#O(this.#n,e),this.#n=e);}delete(e){return this.#P(e,"delete")}#P(e,t){let o=false;if(this.#a!==0){let a=this.#o.get(e);if(a!==void 0)if(o=true,this.#a===1)this.#F(t);else {this.#S(a);let n=this.#e[a];if(this.#t(n)?n.__abortController.abort(new Error("deleted")):(this.#z||this.#c)&&(this.#z&&this.#y?.(n,e,t),this.#c&&this.#i?.push([n,e,t])),this.#o.delete(e),this.#r[a]=void 0,this.#e[a]=void 0,a===this.#n)this.#n=this.#u[a];else if(a===this.#s)this.#s=this.#p[a];else {let i=this.#u[a];this.#p[i]=this.#p[a];let s=this.#p[a];this.#u[s]=this.#u[a];}this.#a--,this.#v.push(a);}}if(this.#c&&this.#i?.length){let a=this.#i,n;for(;n=a?.shift();)this.#b?.(...n);}return o}clear(){return this.#F("delete")}#F(e){for(let t of this.#C({allowStale:true})){let o=this.#e[t];if(this.#t(o))o.__abortController.abort(new Error("deleted"));else {let a=this.#r[t];this.#z&&this.#y?.(o,a,e),this.#c&&this.#i?.push([o,a,e]);}}if(this.#o.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#m&&this.#_&&(this.#m.fill(0),this.#_.fill(0)),this.#h&&this.#h.fill(0),this.#s=0,this.#n=0,this.#v.length=0,this.#g=0,this.#a=0,this.#c&&this.#i){let t=this.#i,o;for(;o=t?.shift();)this.#b?.(...o);}}};yi(Wi());yi(Xd());var tx={};typeof window<"u"&&wd(tx);var eu=(r,e)=>{for(var t=e-1;t>=0;){if(r[t]==="/")return t;t--;}return -1},rx=r=>{var e,t=r.lastIndexOf(".css");if(t===-1)return "";var o=eu(r,t);if(e=r.slice(o+1,t),o===-1)return e;var a=eu(r,o-1),n=r.slice(a+1,o),i=e!=="index"?e:n;return i},ox=()=>{var r=new Fa({max:500});return e=>{var t=r.get(e);if(t)return t;var o=rx(e);return r.set(e,o),o}};ox();function ax(r){if(typeof r!="string"||!/^var\(--.*\)$/.test(r))throw new Error("Invalid variable name: ".concat(r))}function tu(){for(var r="",e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reverse().forEach(a=>{r===""?r=String(a):(ax(a),r=a.replace(/\)$/,", ".concat(r,")")));}),r}function su(r,e,t){let[o,a]=wt.useState({}),n=wt.useRef(false),[i,s]=wt.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c}=wt.useContext(It);wt.useEffect(()=>{if(!r||!t)return;let u=re(r),b=u.visualViewport,y=()=>{let f=b?.height,g=u.innerHeight-(f||0);if(n.current=g>60,n.current){let v=utils.getActiveElement(r);v&&utils.isInputThatOpensKeyboard(v)&&v.scrollIntoView({behavior:"smooth",block:"center"});}if(e)a({maxHeight:(f||0)*.8,bottom:g});else {let v=`${f||0}px`,h=p?`min(${v}, ${tu(_a,v)})`:v;a({maxHeight:`calc(${h} - (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 y(),b?.addEventListener("resize",y),u.addEventListener("resize",y),()=>{b?.removeEventListener("resize",y),u.removeEventListener("resize",y);}},[r,e,p,t]),wt.useEffect(()=>{if(!l||!p||c)return;let u=()=>{l&&s(utils.getAbsoluteBounds(l));};u();let b=new ResizeObserver(()=>{u();});return b.observe(l),()=>{b.disconnect();}},[l,p,c]);let d=wt.useMemo(()=>({...o,overflow:"auto",position:"relative"}),[o]),m=wt.useMemo(()=>{if(!e&&n.current)return {alignItems:"flex-start"};if(p&&!c){let u=i||(l?utils.getAbsoluteBounds(l):{x:0,y:0,height:0,width:0});return {position:"absolute",left:u.x,top:u.y,height:u.height,width:u.width}}return {}},[e,n.current,l,c,p,i]);return {dialogStyle:d,containerStyle:m}}var ds=wt__default.default.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),us=wt__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Ue=({children:r,className:e,style:t,isDismissable:o=true,isKeyboardDismissDisabled:a=false,portalContainer:n,disableAnimation:i,enableDrawer:s=false,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c})=>{let{state:d}=wt__default.default.useContext(St),[m,u]=wt__default.default.useState(true),b=wt__default.default.useRef(null),[y,f]=wt__default.default.useState(null),{shouldHandleVirtualKeyboard:g}=wt.useContext(rr),{shouldContainOverlays:v,container:h}=wt.useContext(It),_=Ne(),z=typeof s=="boolean"&&s||s==="auto"&&_==="mobile";utils.invariant(d,"ModalContent must be a child of Modal");let P=wt__default.default.useRef(null),w=typeof o=="function"?o(z):o,C=typeof a=="function"?a(z):a,{modalProps:k,underlayProps:$}=reactAria.useModalOverlay({isDismissable:m&&w,shouldCloseOnInteractOutside:B=>!h?.contains(B)&&v?false:c?.(B)??true,isKeyboardDismissDisabled:C},d,P),{dialogStyle:R,containerStyle:T}=su(y,z,g),I=wt.useMemo(()=>({isDrawer:z,closeDrawer:d.close,dialogStyle:R,dialogRef:b,setDialogElement:f,isWithinModal:true}),[z,d.close,R,b,f]),S=wt.useMemo(()=>({setIsPopoverSafelyClosed:u}),[u]),E={duration:.3,type:"tween",ease:"easeOut"},N={type:"spring",duration:.3},O={open:{opacity:1,transform:z?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:z?"translateY(0%)":"scale(1)"}:{opacity:0,transform:z?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:d.isOpen?jsxRuntime.jsx(ds.Provider,{value:I,children:jsxRuntime.jsx(us.Provider,{value:S,children:jsxRuntime.jsxs(he,{className:utils.classNames(gd({enableDrawer:z,shouldContainOverlays:v}),e),"data-block-id":l,"data-block-class":p,style:{...t,...T},portalContainer:n,children:[jsxRuntime.jsx(react.motion.div,{...$,variants:{open:{opacity:1},closed:{opacity:i?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:E,className:utils.classNames(vd({shouldContainOverlays:v}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:P,"data-drawer":z,className:utils.classNames(z?yd:bd,"BaselineUI-Modal-Content"),variants:O,transition:z?E:N,initial:"closed",animate:"open",exit:"closed",children:typeof r=="function"?r(d):r})]})})}):null})};var du=x({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6137",ghost:"cjv3et6"},overlayType:{modal:"cjv3et7",popover:"cjv3et8"},isDrawer:{true:"cjv3et9 _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]});var fs=wt__default.default.createContext({titleProps:{}}),ze=wt__default.default.forwardRef(({children:r,className:e,style:t,inheritDrawer:o,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:l,...p},c)=>{let d=wt__default.default.useRef(null),m=wt__default.default.useRef(null),{isDrawer:u,closeDrawer:b,dialogStyle:y,setDialogElement:f,isWithinModal:g}=wt.useContext(ds),[v,h]=wt__default.default.useState(""),{focusProps:_,isFocusVisible:z}=reactAria.useFocusRing();wt.useLayoutEffect(()=>{let k=m.current?.getRootNode(),$=p["aria-label"]||"";p["aria-labelledby"]&&($=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),h($);},[p]);let{dialogProps:P,titleProps:w}=reactAria.useDialog(p,d),C=wt.useMemo(()=>({titleProps:w}),[w]);return u&&o?jsxRuntime.jsx(Da,{title:v,onCloseRequest:b,className:e,style:y,...p,"data-drawer":true,"data-block-id":i,"data-block-class":s,ref:M(m,c,k=>{f(k);}),background:l,children:r}):jsxRuntime.jsx(fs.Provider,{value:C,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(P,_),"data-block-id":i,"data-block-class":s,"data-focus-visible":z,"data-overlay-type":g?"modal":"popover",ref:M(d,c,k=>{f(k);}),style:{...y,...t},className:utils.classNames(du({size:u?"content":a,variant:n,isDrawer:u,isFocusVisible:z,overlayType:g?"modal":"popover"}),"BaselineUI-Dialog",e),children:r})})});ze.displayName="Dialog";var uu=wt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{titleProps:a}=wt.useContext(fs);return wt__default.default.isValidElement(r)?wt__default.default.cloneElement(r,{...a,ref:o,className:utils.classNames(r.props.className,e),style:{...r.props.style,...t}}):jsxRuntime.jsx("h3",{...a,ref:o,className:e,style:t,children:r})});uu.displayName="DialogTitle";var fu=({children:r,isOpen:e,popoverContentRef:t,portalContainer:o=document.body,style:a})=>{let[n,i]=wt.useState(false),[s,l]=wt.useState(null),p=wt.useRef(null),{setIsPopoverSafelyClosed:c}=wt.useContext(us);wt.useEffect(()=>{e?(i(true),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(false);},300);},[e]),wt.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let d=t.current;return wt.useEffect(()=>{d&&l(d.getBoundingClientRect());},[d]),wt.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?wx__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"}),o):null,r]})};var{color:ur}=tokens.themeVars,we=wt__default.default.forwardRef(({portalClassName:r,portalStyle:e,className:t,style:o,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=false,offset:p=2,portalContainer:c,contentContainerClassName:d,contentContainerStyle:m,"data-block-id":u,"data-block-class":b,...y},f)=>{let g=wt__default.default.useRef(null),v=ve(c),h=l?8:0,{underlayProps:_,popoverProps:z,placement:P,arrowProps:w}=reactAria.usePopover({...y,offset:p+h,popoverRef:g,containerPadding:y.containerPadding||0},a);delete z.style?.position;let C=P==="center"?"bottom":P,k=wt.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:$}=va({placement:P}),R=wt.useMemo(()=>({...z.style,...dynamic.assignInlineVars({[uc]:`${y.triggerRef?.current?.offsetWidth}px`}),...Ri(o,k)}),[z.style,y.triggerRef,o,k]);return jsxRuntime.jsx(fu,{isOpen:a.isOpen,popoverContentRef:g,portalContainer:v,style:z.style,children:a.isOpen?jsxRuntime.jsxs(he,{portalContainer:v,style:e,className:r,ref:f,"data-block-id":u,"data-block-class":b,children:[!y.isNonModal&&jsxRuntime.jsx("div",{..._,className:utils.classNames(dc,aa(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...reactAria.mergeProps(z,$),style:R,ref:M(g,f),className:utils.classNames(lc,"BaselineUI-Popover-ContentContainer",aa(t,k)),"data-placement":["top","bottom","left","right"].filter(T=>P?.includes(T)),children:[l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(ic({placement:C}),"BaselineUI-PopoverContent-Arrow"),...w,style:{...w.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:ur.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:ur.background.primary.subtle,stroke:ur.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(sc({placement:C}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...w,style:{...w.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:ur.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:ur.background.primary.subtle,stroke:ur.background.primary.subtle})]})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:Ri(m,k),className:utils.classNames(pc,aa(d,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]}):null})});we.displayName="PopoverContentCore";var Ae=wt__default.default.forwardRef((r,e)=>{let{state:t,overlayTriggerAria:{overlayProps:o},triggerRef:a}=wt.useContext(Xr);return utils.invariant(a),t?jsxRuntime.jsx(we,{ref:e,...r,triggerRef:r.triggerRef||a,overlayProps:o,state:t}):null});Ae.displayName="PopoverContent";var _u=wt__default.default.forwardRef(({className:r,style:e,onChange:t,"data-block-id":o,icon:a,formatValue:n=d=>d,tooltipProps:i,popoverContentProps:s,isDisabled:l,...p},c)=>{let d=oe(c),[m,u]=utils$1.useControlledState(p.value,p.defaultValue||0,t),[b,y]=wt__default.default.useState(false),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:h=>{(h.key==="Enter"||h.key==="Escape")&&y(false);}}),g=n(m||0),v=i?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${g}`:g.toString();return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",r),"data-block-id":o,style:e,ref:d,children:[a?jsxRuntime.jsx(a,{"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(je,{type:"dialog",isOpen:b,onOpenChange:y,children:[jsxRuntime.jsx(He,{children:jsxRuntime.jsx(ie,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:false,isDisabled:l,...i,children:jsxRuntime.jsx(K,{label:g,variant:"popover","aria-label":v,isDisabled:l,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(Ae,{placement:"bottom start",...s,children:jsxRuntime.jsx(ze,{size:"content","aria-label":v,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:true,children:jsxRuntime.jsx(D,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsxRuntime.jsx(nr,{...p,onChange:h=>{u(h),t?.(h);},value:m})})})})})]})]})});_u.displayName="IconSlider";var zu=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"]]}),xu=x({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Cu="bpklwad",Pu=x({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),wu="bpklwa6",ku=x({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var $u=wt__default.default.forwardRef(({className:r,label:e,labelPosition:t="top",statusLabel:o,style:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p=wt__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch({...s,children:e},c,p),{isFocusVisible:u,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":u,"data-disabled":s.isDisabled,"data-focus-visible":u,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":f,"data-pressed":m}),v=jsxRuntime.jsx("div",{className:utils.classNames(zu({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:u,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(xu({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(Pu({labelPosition:t}),"BaselineUI-Switch",r),style:a,ref:l,children:[e?jsxRuntime.jsx("span",{className:utils.classNames(Cu,"BaselineUI-Switch-Label"),children:e}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,b),ref:p})}),o?jsxRuntime.jsxs("div",{className:ku({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",wu),children:c.isSelected?o.on:o.off}),v]}):v]})});$u.displayName="Switch";var Tu="_19n40yy9",Du=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 nC={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Nu=wt__default.default.forwardRef(({className:r,size:e="md",variant:t="primary","data-block-id":o,"data-block-class":a,style:n,...i},s)=>{let l=wt__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:d}=reactAria.useSearchField({...i,"aria-haspopup":false,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:m,isFocusVisible:u,isFocused:b}=reactAria.useFocusRing({within:true,isTextInput:true}),y=nC[e],f=e==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-focused":b,"data-disabled":i.isDisabled,"data-focus-visible":u});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(Du({size:e,isFocused:b,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",r),style:n,ref:s,children:[jsxRuntime.jsx(y,{size:e==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:Tu,ref:l}),p.value!==""&&jsxRuntime.jsx(L,{icon:f,...d,size:e==="sm"?"xs":"sm",variant:"secondary"})]})});Nu.displayName="SearchInput";var Lu="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ls _1yep5z6lr _1yep5z6i0 _1yep5z6lv _1yep5z6g1",Au="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var gs=({section:r,showSelectedIcon:e,state:t})=>{let{itemProps:o,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:r.value?.title,"aria-label":r["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key!==t.collection.getFirstKey()&&jsxRuntime.jsx(U,{elementType:"li"}),jsxRuntime.jsxs("li",{...o,children:[r.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:r.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:Au,children:[...r.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(Ha,{item:i,state:t,showSelectedIcon:e},i.key)))})]})]})};gs.displayName="MenuSection";var Ha=({item:r,state:e,className:t,showSelectedIcon:o})=>{let a=wt__default.default.useRef(null),n=reactAria.useMenuItem({key:r.key},e,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Yr,{item:r,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:t}),...n,isFocusVisible:i,ref:a,description:r.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:e,showSelectedIcon:o})};Ha.displayName="MenuItem";var hs=wt__default.default.forwardRef(({className:r,itemClassName:e,onContentKeyDown:t,...o},a)=>{let n=reactStately.useTreeState(o),i=wt__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(o,n,i),{keyboardProps:l}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,l),className:utils.classNames(Lu,r),ref:M(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(gs,{section:p,state:n,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):jsxRuntime.jsx(Ha,{item:p,state:n,className:e,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});hs.displayName="MenuContent";var Fu=x({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),lt="_1mdhlqvb cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et4",ju=x({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:true},"_1mdhlqv7"]]}),Hu="_1yep5z66x _1yep5z66y _1yep5z66z",Vu="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Va=wt__default.default.forwardRef(({defaultOpen:r,onOpenChange:e,isOpen:t,isDisabled:o,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d,triggerLabel:m,renderTrigger:u=({buttonProps:g,ref:v})=>jsxRuntime.jsx(K,{...g,variant:"popover",ref:v}),portalContainer:b,...y},f)=>{let g=wt__default.default.useRef(null),v=ve(b),h=reactStately.useMenuTriggerState({defaultOpen:r,isOpen:t,onOpenChange:e}),{menuTriggerProps:_,menuProps:z}=reactAria.useMenuTrigger({isDisabled:o,type:"menu"},h,g),P=pe(),w=wt.useMemo(()=>reactAria.mergeProps(_,{isDisabled:o,isSelected:h.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(h.isOpen):m}),[_,o,h.isOpen,m]);return wt.useEffect(()=>{!m&&!u&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[u,m]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u({buttonProps:w,ref:g}),jsxRuntime.jsx(we,{triggerRef:g,state:h,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:l,boundaryElement:p,crossOffset:c,offset:d||2,className:"BaselineUI-Menu-Popover",portalContainer:v,children:jsxRuntime.jsx(hs,{className:utils.classNames(lt,a),...z,...y,ref:f,autoFocus:h.focusStrategy||"first",children:P})})]})});Va.displayName="Menu";var Ua=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 Gu=wt__default.default.forwardRef(({className:r,style:e,children:t,variant:o="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":l,title:p,role:c,...d},m)=>{let u=wt__default.default.useRef(null),{linkProps:b,isPressed:y}=reactAria.useLink({...d,elementType:d.onPress?"span":n},u),{isFocusVisible:f,isFocused:g,focusProps:v}=reactAria.useFocusRing(),{hoverProps:h,isHovered:_}=reactAria.useHover({isDisabled:d.isDisabled}),z=n,P=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":d.isDisabled,"data-focused":g,"data-pressed":y,"data-focus-visible":f,"data-hovered":_,role:c,title:p});return jsxRuntime.jsx(z,{...reactAria.mergeProps(b,v,h,P),className:utils.classNames(Ua({variant:o,isFocusVisible:f,isHovered:_,isDisabled:d.isDisabled,size:a,isActive:y,type:i}),"BaselineUI-Link",r),ref:M(u,m),style:e,children:t})});Gu.displayName="Link";function Ku({isDisabled:r,onValueChange:e,onChange:t,name:o,"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:!!r,"aria-labelledby":n?void 0:l,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let u=[...m.target.files||[]];e?.(u),t?.(m);},name:o,accept:i,multiple:s},labelProps:{htmlFor:p,id:l},descriptionProps:{id:c}}}async function xs({items:r}){let e=r.filter(t=>t.kind==="file").map(async t=>(utils.invariant(t.kind==="file"),t.getFile()));return await Promise.all(e)}var Wu=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"]]}),Yu=x({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Zu=x({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Xu=x({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var tm=wt__default.default.forwardRef(({className:r,label:e,description:t,icon:o,variant:a="default",...n},i)=>{let s=wt__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Ku(n),{dropProps:d}=reactAria.useDrop({ref:s,onDrop:async({items:f})=>{let g=f.filter(h=>h.kind==="file").map(async h=>(utils.invariant(h.kind==="file"),h.getFile())),v=await Promise.all(g);n.onValueChange?.(v);}}),{focusProps:m,isFocusVisible:u}=reactAria.useFocusRing(),{hoverProps:b,isHovered:y}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(d,b,c),className:utils.classNames(Wu({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:y||u}),r),ref:M(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,l)})}),o?jsxRuntime.jsx(o,{size:20,className:Zu({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Xu({disabled:n.isDisabled,hovered:y}),children:e}),t?jsxRuntime.jsx("div",{...p,className:Yu({disabled:n.isDisabled}),children:t}):null]})]})});tm.displayName="FileUpload";var rm="_12vfhl40 z9nup81",om="_12vfhl41 z9nup82",am=x({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),nm="_12vfhl42",im="_12vfhl47",sm="_12vfhl46 z9nup82",lm="_12vfhl45",pm=x({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var cm=wt__default.default.forwardRef(({className:r,style:e,variant:t="active",showValue:o,description:a,errorMessage:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=reactAria.useId(),{labelProps:d,progressBarProps:m}=reactAria.useProgressBar({...l,"aria-describedby":a?c:l["aria-describedby"]}),{minValue:u=0,maxValue:b=100,value:y=0,label:f}=l,g=(y-u)/(b-u),v=`${Math.round(g*100)}%`,h=jsxRuntime.jsx("output",{className:pm({hasLabel:!!f}),children:m["aria-valuetext"]}),_=t==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:e,className:utils.classNames(rm,"BaselineUI-ProgressBar",r),"data-block-id":i,"data-block-class":s,ref:p,children:[f?jsxRuntime.jsxs("div",{className:om,children:[jsxRuntime.jsx("label",{...d,className:nm,children:f}),o?h:null]}):null,jsxRuntime.jsxs("div",{className:lm,children:[jsxRuntime.jsxs("div",{className:sm,children:[jsxRuntime.jsx("div",{className:im,children:jsxRuntime.jsx("div",{style:{width:v},className:am({variant:t})})}),!f&&o?h:null]}),_?jsxRuntime.jsx("div",{className:Zt({hasError:t==="error"}),id:c,children:_}):null]})]})});cm.displayName="ProgressBar";function yr({isReadOnly:r,validationState:e}){return r?_16.ReadOnlyIcon:e==="error"?_16.ErrorCircleFilledIcon:e==="warning"?_16.WarningFilledIcon:null}var $t=wt__default.default.forwardRef(({labelPosition:r="top",className:e,style:t,labelProps:o,isDisabled:a,isReadOnly:n,label:i,message:s,"data-block-id":l,validationState:p="valid",isFocused:c,variant:d="primary",children:m,fieldProps:u,wrapperRef:b,wrapperClassName:y,isInvalid:f},g)=>{let{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:a}),_=yr({isReadOnly:n,validationState:p});return jsxRuntime.jsxs("div",{className:utils.classNames(at({labelPosition:r}),e),"data-block-id":l,style:t,ref:g,children:[i||r==="start"&&s?jsxRuntime.jsxs("div",{className:ot({labelPosition:r,hasMessage:!!s}),children:[jsxRuntime.jsx(D,{...o,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:i}),r==="start"&&s]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[tr]:a}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(u,v),className:utils.classNames(Qt({validationState:f?"error":p,isHovered:h,isFocused:c,variant:d,isReadOnly:n,isDisabled:a}),y),ref:b,children:[m,_?jsxRuntime.jsx(_,{className:Xt({validationState:p,isReadOnly:n}),size:16}):null]}),r==="top"&&s]})]})});$t.displayName="SharedInput";var pt=wt__default.default.forwardRef(({className:r,validationState:e,variant:t="primary",labelPosition:o="top",inputStyle:a,inputClassName:n,"data-block-id":i,"data-block-class":s,...l},p)=>{let c=wt__default.default.useRef(null),{inputProps:d,labelProps:m,descriptionProps:u,errorMessageProps:b,validationErrors:y}=reactAria.useTextField({...l,validationState:e?e==="error"?"invalid":"valid":void 0},c),f=l.errorMessage||y.join(" "),g=ge({...l,errorMessage:f,descriptionProps:u,errorMessageProps:b,labelPosition:o});f&&(e="error");let{isFocused:v,focusProps:h,isFocusVisible:_}=reactAria.useFocusRing(),z=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":e,"data-focused":v,"data-focus-visible":_});return jsxRuntime.jsx($t,{variant:t,labelProps:m,isFocused:v,message:g,ref:p,labelPosition:o,className:utils.classNames("BaselineUI-TextInput",r),validationState:e,"data-block-id":i,"data-block-class":s,...l,children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,h,z),className:utils.classNames(ga({isDisabled:l.isDisabled,labelPosition:o}),"BaselineUI-TextInput-Input",n),style:a,ref:c})})});pt.displayName="TextInput";var br=({value:r,...e})=>{let t=reactAria.useNumberFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};br.displayName="NumberFormat";var ym="_1yep5z6iv _1yep5z6iw _1yep5z6ix",bm=x({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},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"]]}),gm=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"]]}),vm=x({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var zm=wt__default.default.forwardRef(({className:r,count:e,style:t,size:o="md",icon:a,"data-block-id":n,"data-block-class":i,...s},l)=>{let p={isRequired:false},c=a||(o==="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 d=wt__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:u,isPressed:b,isDisabled:y,isReadOnly:f,isSelected:g}=reactAria.useSwitch({...s,...p},m,d),{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing(),{hoverProps:z,isHovered:P}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":h,"data-focus-visible":_,"data-disabled":y,"data-hovered":P,"data-pressed":b,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:t,className:utils.classNames(ym,"BaselineUI-Reaction",r),...w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...u,...v,ref:d})}),jsxRuntime.jsxs("div",{...z,className:bm({isSelected:g,isFocusVisible:_,isHovered:P,isReadOnly:f,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:vm({isDisabled:y,isReadOnly:f}),children:jsxRuntime.jsx(c,{size:o==="md"?20:16})}),jsxRuntime.jsx("div",{className:gm({isSelected:m.isSelected,isDisabled:y,isReadOnly:f,size:o}),children:jsxRuntime.jsx(br,{value:e})})]})]})});zm.displayName="Reaction";var xm="_1azy5686",Cm="_1azy5685",Pm="var(--_1azy5680)",wm="_1azy5688",km="_1azy5689",Im="_1azy5681 z9nup82",Sm="_1azy5682";var Rm="_1azy5687";var xP={sm:16,md:20},CP={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},vr=wt__default.default.forwardRef(({className:r,style:e,size:t="md",variant:o="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:l,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:true}),c=xP[t],d=c/2-2,m=2*d*Math.PI,u=CP[t][o==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(Im,"BaselineUI-ProgressSpinner",r),ref:s,style:{...dynamic.assignInlineVars({[Pm]:`${m}px`}),...e},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:Sm,children:[(o==="active"||o==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:xm,cx:c/2,cy:c/2,r:d}),o==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:Cm,cx:c/2,cy:c/2,r:d})]}),o==="success"&&jsxRuntime.jsx(u,{className:Rm,size:c}),o==="error"&&jsxRuntime.jsx(u,{className:wm,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:km,children:i.label}):null]})});vr.displayName="ProgressSpinner";var Ka=x({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",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"]]}),$m=x({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var RP={sm:16,md:20,lg:24},Wa=wt__default.default.forwardRef(({className:r,style:e,iconStart:t,size:o="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let l=reactStately.useToggleState(i),{buttonProps:p,isPressed:c,ref:d,isFocusVisible:m,isFocused:u,isHovered:b,uiStateOptions:y}=fa(i,l),f=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":u,"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(Ka({isHovered:b,isFocusVisible:m,isSelected:l.isSelected,size:o,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof r=="function"?r(y):r),style:typeof e=="function"?e(y):e,ref:M(d,s),children:[t?jsxRuntime.jsx(t,{size:RP[o],className:$m({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Wa.displayName="ToggleButton";var Ya=x({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),Tm=x({defaultClassName:"_16vugd02 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),Dm=x({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:true,isDisabled:true},"_16vugd0e"]]});var Nm=wt__default.default.forwardRef(({className:r,style:e,label:t,labelPosition:o="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=wt__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:u,isPressed:b,isDisabled:y,isSelected:f,isReadOnly:g}=reactAria.useCheckbox({...i,children:t},p,l),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:y}),_=utils.filterTruthyValues({"data-disabled":y,"data-readonly":g,"data-hovered":h,"data-selected":f,"data-pressed":b,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":d,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{..._,className:utils.classNames(Tm({labelPosition:o}),"BaselineUI-Checkbox",r),style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,m),ref:l})}),jsxRuntime.jsxs("div",{...v,className:Dm({isSelected:f&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:g,hasError:i.isInvalid,isHovered:h}),children:[f&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:Ya({isDisabled:y}),children:t}):null]})});Nm.displayName="Checkbox";var Lm={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 Am=x({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),Bm="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",Om=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:[]}),Fm=x({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var aw={style:"decimal"},nw={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},qm=wt__default.default.forwardRef(({className:r,style:e,minValue:t=1,defaultValue:o=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:l="floating",hideActions:p,isDisabled:c,...d},m)=>{let{locale:u}=reactAria.useLocale(),b=A(Lm),y={...d,formatOptions:aw,minValue:t,incrementAriaLabel:a||b.formatMessage("nextPage"),decrementAriaLabel:n||b.formatMessage("prevPage"),defaultValue:o,"aria-label":i||b.formatMessage("goToPage")},f=wt__default.default.useRef(null),g=reactStately.useNumberFieldState({...y,locale:u}),{inputProps:v,decrementButtonProps:h,incrementButtonProps:_,groupProps:z}=reactAria.useNumberField({...y,onKeyDown:O=>{O.key==="Enter"&&f.current?.blur(),d.onKeyDown?.(O);},isDisabled:c},g,f),{hoverProps:P,isHovered:w}=reactAria.useHover({}),{focusProps:C,isFocused:k,isFocusVisible:$}=reactAria.useFocusRing(),R=l==="floating",[T,I]=nw[s],S=utils.filterTruthyValues({"data-focus-visible":$,"data-focused":k,"data-hovered":w,"data-block-id":d["data-block-id"],"data-block-class":d["data-block-class"]}),N=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(z,P,S),className:utils.classNames(Om({size:s,variant:l}),"BaselineUI-Pagination",r),style:e,ref:m,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(L,{icon:T,...h,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:N,isDisabled:c||h.isDisabled}),l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:Am({isFocused:k,variant:l,size:s}),"aria-label":b.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,C),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",Bm),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Fm({isDisabled:c}),children:["/ ",jsxRuntime.jsx(br,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"}),jsxRuntime.jsx(L,{icon:I,..._,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:N,isDisabled:c||_.isDisabled})]})]})});qm.displayName="Pagination";var Gm=({date:r,...e})=>{let t=reactAria.useDateFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};Gm.displayName="DateFormat";var go=x({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Za=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"]]}),Km="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",Wm="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Ym=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"]]}),Xa=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 Qm=({item:r,state:e,variant:t="neutral",size:o="md"})=>{let a=wt__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:true}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:d,isSelected:m,allowsSelection:u}=reactAria.useTag({item:r},e,a),b=wt__default.default.useRef(null),{buttonProps:y}=reactAria.useButton(p,b),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:d}),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:d}),_=r.value?.icon,z=r.value?.data?.variant??t,P=o==="md"?_12.XIcon:_8.XIcon,w=o==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,v),ref:a,className:utils.classNames(Za({isFocusVisible:i,variant:z,isDisabled:d,allowsRemoving:c,isSelected:m,allowsSelection:u,isHovered:h,size:o}),Xa({variant:z,isDisabled:d,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Km,children:[m?jsxRuntime.jsx(w,{size:o==="md"?16:12,className:utils.classNames(go({variant:z,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&_?jsxRuntime.jsx(_,{size:o==="md"?16:12,className:utils.classNames(go({variant:z,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(D,{paddingY:o==="md"?"sm":"none",typography:o==="sm"?"label.sm.medium":"label.md.medium",children:r.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(y,f),className:Ym({variant:z,isHovered:g}),children:jsxRuntime.jsx(P,{size:o==="md"?12:8})}):null]})})};var rf=wt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,size:n="md",...i},s)=>{let l=wt.useMemo(()=>a.map(u=>({...u,data:{variant:u.variant}})),[a]),p=pe(),c=wt__default.default.useRef(null),d=reactStately.useListState({...i,items:l,children:p}),{gridProps:m}=reactAria.useTagGroup(i,d,c);return jsxRuntime.jsx("div",{...m,className:utils.classNames(Wm,"BaselineUI-TagGroup",r),style:e,"data-block-id":t,"data-block-class":o,ref:M(s,c),children:[...d.collection].map(u=>jsxRuntime.jsx(Qm,{state:d,item:u,variant:i.variant,size:n},u.key))})});rf.displayName="TagGroup";var of="_1yep5z6ln",af=x({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),nf=x({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),sf="_1kvz17de",lf="_1yep5z6ev _1yep5z6dy",pf=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:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),cf="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",df=x({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Is=wt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{headers:a}=wt.useContext(ct),{disabledKeys:n}=wt.useContext(ct),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=be(s.target),p=l?Qo(l):Qo(),c=[...a?.keys()||[]].findIndex(y=>a?.get(y)?.current===p),d=a?.get(c||0),m=a?.size||0,u=y=>{let f=a.get(y-1<0?m-1:y-1);n?.has(f?.current?.getAttribute("data-key")||"")?u(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(d)switch(s.key){case "Home":{s.preventDefault(),b(-1);break}case "End":{s.preventDefault(),u(m);break}case "ArrowDown":{s.preventDefault(),b(c);break}case "ArrowUp":{s.preventDefault(),u(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:t,className:utils.classNames(of,e),ref:o,children:wt__default.default.Children.map(r,(s,l)=>wt__default.default.cloneElement(s,{index:l}))})});Is.displayName="AccordionBase";var ct=wt__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),ff=wt__default.default.forwardRef(({children:r,disabledKeys:e,defaultExpandedKeys:t=new Set,expandedKeys:o,expansionMode:a="multiple",onChange:n,className:i,style:s},l)=>{let[p,c]=wt__default.default.useState(t),d=wt__default.default.useRef(new Map).current,[m,u]=wt__default.default.useState(a);wt.useEffect(()=>{u(a);},[a]),wt.useEffect(()=>{n?.(p);},[p,n]);let b=wt.useMemo(()=>({expandedKeys:o||p,setExpandedKeys:o?()=>{}:c,disabledKeys:e,headers:d,expansionMode:m}),[o,p,e,d,m]);return jsxRuntime.jsx(ct.Provider,{value:b,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Is,{className:i,style:s,ref:l,children:r})})})});ff.displayName="Accordion";var Rs=wt__default.default.forwardRef(({title:r,actions:e,controlId:t,value:o,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=wt__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:d,expansionMode:m,disabledKeys:u,headers:b}=wt.useContext(ct),y=u?.has(o),f=reactAria.useFocusManager();utils.invariant(f);let{focusNext:g,focusPrevious:v}=f,{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:S=>{S.key==="ArrowRight"?g({wrap:true}):S.key==="ArrowLeft"?v({wrap:true}):S.continuePropagation();},isDisabled:y});wt.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),b?.set(n,p);},[n,b]);let _=()=>{d(S=>{let E=new Set(S);return E.has(o)?E.delete(o):(m==="single"&&E.clear(),E.add(o)),E});},{buttonProps:z}=reactAria.useButton({"aria-expanded":c.has(o),"aria-controls":t,onPress:_,isDisabled:y},p),{pressProps:P}=reactAria.usePress({onPress:_,isDisabled:y}),{focusProps:w,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:k,isHovered:$}=reactAria.useHover({isDisabled:y}),{focusProps:R,isFocusVisible:T}=reactAria.useFocusRing({within:true}),I=c.has(o);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(h,P,k,R),className:pf({isFocusVisible:C,isHovered:$,isDisabled:y}),ref:l,children:[jsxRuntime.jsxs("div",{className:df({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:nf({isExpanded:I}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(z,w),id:a,"data-key":o,className:cf,ref:p,children:r})]}),e?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:af({showActionsOnTriggerOnly:s,isTriggered:T||$}),children:e.map((S,E)=>jsxRuntime.jsx(L,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:y,...S},E))}):null,i?jsxRuntime.jsx("div",{className:lf,children:i}):null]})});Rs.displayName="AccordionHeader";var zf=wt__default.default.forwardRef(({title:r,actions:e,children:t,value:o,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:l},p)=>{let c=reactAria.useId(),d=reactAria.useId(),{expandedKeys:m}=wt.useContext(ct),u=m.has(o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Rs,{value:o,actions:e,id:d,title:r,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:u?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":d,id:c,className:sf,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:t})}):null})]})});zf.displayName="AccordionItem";var zo=wt__default.default.forwardRef(({variant:r,isOpen:e,selectedIcon:t,validationState:o="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":l,"data-block-class":p,...c},d)=>{let m=wt__default.default.useRef(null),{buttonProps:u,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:h}=reactAria.useFocusRing(),_=yr({isReadOnly:c.isReadOnly,validationState:o});c.isReadOnly&&(u.disabled=false);let z=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":v,"data-focus-visible":h,"data-hovered":f,"data-pressed":b,"data-open":e,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(u,y,g,z),ref:M(d,m),className:utils.classNames(ju({isFocused:h,isDisabled:c.isDisabled,isOpen:e,isHovered:f,variant:r}),Qt({variant:r,isHovered:f,isFocused:h,validationState:o,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs("span",{className:Vu,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),_?jsxRuntime.jsx("span",{"aria-hidden":true,className:utils.classNames(Xt({validationState:o,isReadOnly:!!c.isReadOnly}),Hu),children:jsxRuntime.jsx(_,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":true,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Fu({isOpen:e})})})]})});zo.displayName="SelectButton";var Ja=wt__default.default.createContext({state:null,popoverAnchorRef:null}),Ts=wt__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:l="bottom start",triggerClassName:p,triggerStyle:c,state:d,renderTrigger:m=({buttonProps:y,selectedValue:f,valueProps:g,isOpen:v,ref:h})=>{let _=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(zo,{...y,className:p,style:c,isOpen:v,isReadOnly:u.isReadOnly,ref:h,variant:o,validationState:u.validationState,selectedIcon:_||void 0,label:f?"label"in f&&f?.label:u.placeholder,valueProps:g})},...u},b)=>{let{popoverAnchorRef:y}=wt.useContext(Ja),f=wt__default.default.useRef(null),g=ve(u.portalContainer),{labelProps:v,triggerProps:h,valueProps:_,menuProps:z,descriptionProps:P,errorMessageProps:w}=reactAria.useSelect({...u,validationState:u.validationState==="error"?"invalid":"valid"},d,f),C=ge({...u,descriptionProps:P,errorMessageProps:w,labelPosition:t}),k=d.selectedItem?.value??null;return jsxRuntime.jsxs(kt.Provider,{value:d,children:[jsxRuntime.jsxs("div",{style:e,className:utils.classNames(at({labelPosition:t}),"BaselineUI-Select",r),"data-block-id":a,"data-block-class":n,ref:b,children:[u.label||C?jsxRuntime.jsxs("div",{className:ot({labelPosition:t,hasMessage:!!C}),children:[u.label?jsxRuntime.jsx("div",{...v,className:utils.classNames(Jt,"BaselineUI-Select-Label"),children:u.label}):null,t==="start"&&C]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:d,triggerRef:f,isDisabled:u.isDisabled,label:u.label,name:u.name}),m({buttonProps:h,selectedValue:k,valueProps:_,isOpen:d.isOpen,ref:f}),t==="top"&&C]}),d?jsxRuntime.jsx(we,{placement:l,portalContainer:g,offset:2,state:d,triggerRef:y||f,style:e,className:"BaselineUI-Select-Popover",...u,children:jsxRuntime.jsx(me,{...z,label:u.label,items:u.items,showSelectedIcon:u.showSelectedIcon,className:lt,optionStyle:i,optionClassName:s})}):null]})});Ts.displayName="SelectCore";var If=wt__default.default.forwardRef((r,e)=>{let t=pe(),o=reactStately.useSelectState({...r,validationState:r.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(Ts,{...r,ref:e,state:o})});If.displayName="SelectStandalone";var ut=wt__default.default.forwardRef((r,e)=>{let{state:t}=wt.useContext(Ja);return wt.useEffect(()=>{utils.invariant(t||r.items,"Select: A `state` that can be passed via context or `items` are required.");},[r.items,t]),t?jsxRuntime.jsx(Ts,{state:t,...r,ref:e}):jsxRuntime.jsx(If,{...r,ref:e})});ut.displayName="Select";var Rf=wt__default.default.forwardRef(({className:r,style:e,variant:t,"data-block-id":o,icon:a,tooltipProps:n,...i},s)=>{let l=wt__default.default.useRef(null),p=wt.useCallback(({buttonProps:c,selectedValue:d,valueProps:m,isOpen:u,ref:b})=>{let y=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(ie,{variant:"inverse",size:"sm",includeArrow:false,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(zo,{...c,isOpen:u,isReadOnly:i.isReadOnly,ref:b,variant:t,validationState:i.validationState,selectedIcon:y||void 0,label:d?"label"in d&&d?.label:i.placeholder,valueProps:m})})},[i,n,t]);return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",r),"data-block-id":o,style:e,ref:M(s,l),children:[a?jsxRuntime.jsx(a,{"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(ut,{...i,renderTrigger:p})]})});Rf.displayName="IconSelect";var $f="_1017q4c5",Tf=x({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Df="_1017q4c4";var i2={sm:_16.AvatarIcon,md:_24.AvatarIcon},xr=wt__default.default.forwardRef(({className:r,style:e,size:t="md",icon:o=i2[t],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:l,imgLoading:p,"data-block-id":c,"data-block-class":d},m)=>{let{imgProps:u}=er({src:n,alt:a}),b=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(Tf({size:t,isDisabled:s}),"BaselineUI-Avatar",r),"data-disabled":s,ref:m,style:e,"aria-disabled":s,"data-block-id":c,"data-block-class":d,children:[n?jsxRuntime.jsx("img",{...u,loading:p,className:Df}):null,!i&&!n&&jsxRuntime.jsx(o,{size:t==="sm"?16:24}),i&&!n?t==="sm"?b[0]:b:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:$f}):null]})});xr.displayName="Avatar";var Mf="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",Ef=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"]]}),Nf=x({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Lf="_1x62fhbl",Ms=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"]]}),Af="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",Bf=x({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Of=({state:r,...e})=>{let t=wt__default.default.useRef(null),{tabPanelProps:o}=reactAria.useTabPanel(e,r,t),{selectedItem:a}=r,{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(o,n),ref:t,className:utils.classNames({[Af]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var Ls=wt__default.default.forwardRef(({className:r,style:e,tabHeaderStyle:t,tabHeaderClassName:o,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}),d=wt__default.default.useRef(null),{tabListProps:m}=reactAria.useTabList({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},c,d);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",r),style:e,ref:p,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(Bf({variant:a}),o),style:t,children:[jsxRuntime.jsx("div",{...m,className:Nf({variant:a}),ref:d,children:[...c.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(jf,{item:u,state:c,onRemove:i,variant:a},u.key)))}),n?.map((u,b)=>jsxRuntime.jsx("div",{className:Mf,children:jsxRuntime.jsx(L,{...u,variant:"secondary",size:"sm",className:utils.classNames(Lf,u.className)})},b))]}),jsxRuntime.jsx(Of,{state:c},c.selectedItem?.key)]})});Ls.displayName="TabsBase";var jf=({item:r,onRemove:e,state:t,variant:o})=>{let{key:a,value:n}=r,i=wt__default.default.useRef(null),{tabProps:s,isSelected:l,isDisabled:p}=reactAria.useTab({key:a},t,i),{hoverProps:c,isHovered:d}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:b,titleClassName:y}=n,{focusProps:f,isFocusVisible:g,isFocused:v}=reactAria.useFocusRing(),{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:z=>{z.key==="Backspace"&&e?e(a):z.continuePropagation();}}),_=utils.filterTruthyValues({"data-selected":l,"data-disabled":p,"data-focused":v,"data-hovered":d,"data-focus-visible":g});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(h,s,c,f,_),className:utils.classNames(Ef({isHovered:d,isSelected:l,isFocusVisible:g,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",y),style:b,ref:i,children:[u?jsxRuntime.jsx(u,{size:20,className:Ms({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null,m,e?jsxRuntime.jsx(L,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{e(a);},excludeFromTabOrder:true,UNSAFE_NON_INTERACTIVE:true,style:{display:"inline-flex",opacity:l||v||d?1:0},className:Ms({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null]})};jf.displayName="TabButton";var Vf=wt__default.default.forwardRef(function({children:e,...t},o){let a=wt.useMemo(()=>wt__default.default.Children.map(e,n=>!n||!wt__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(Ls,{...t,ref:o,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});Vf.displayName="Tabs";var Uf=({children:r,title:e,value:t})=>(utils.invariant(t,"TabItem requires a value prop"),utils.invariant(e,"TabItem requires a title prop"),utils.invariant(r,"TabItem requires children"),r);Uf.displayName="TabItem";var qf={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 Gf=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:[]}),Kf=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"]]}),Wf=x({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Yf=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:[]}),Zf=x({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Xf=x({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Jf=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 A2={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}},rn=wt__default.default.forwardRef(({className:r,description:e,actionLabel:t,onAction:o,style:a,variant:n="info",title:i,arrangement:s="single",onClose:l,size:p="sm","data-block-id":c,"data-block-class":d,elementProps:m},u)=>{let b=A(qf),y=t&&jsxRuntime.jsx(K,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:o}),f=A2[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(Kf({variant:n,arrangement:s,hasButton:!!t||!!l,hasCloseButton:!!l}),"BaselineUI-InlineAlert",r),"data-block-id":c,"data-block-class":d,style:a,role:"alert",ref:u,...m?.root,children:[jsxRuntime.jsxs("div",{className:Jf({arrangement:s}),children:[jsxRuntime.jsx(f,{className:Zf({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:Gf({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:Xf({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:Wf({size:p}),...m?.description,children:e})]}),s==="compact"&&y]}),jsxRuntime.jsxs("div",{className:Yf({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]})]})});rn.displayName="InlineAlert";var mt={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 on=({children:r})=>{let{triggerProps:e}=wt__default.default.useContext(St);return jsxRuntime.jsx(interactions.PressResponder,{...e,children:r})};on.displayName="ModalTrigger";var U2=({children:r})=>{let{state:e}=wt__default.default.useContext(St);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{e?.close();},children:r})};var Qf="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",ey="_1dbkl5e",ty=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:"z9nup83 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),ry="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",oy=x({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),an="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",ay="_1dbkl5f z9nup87",nn="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",ny="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",iy="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",sn=x({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),Os="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",sy=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"]]}),ly=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:[]}),Po="_1dbkl5u",ln="_1dbkl5g",pn="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",Fs="_1dbkl5x",py="_1dbkl5w",js="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",cn=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:[]}),Hs="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var cy=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"]]}),dy="_1344e9q9 _1yep5z6fl";var ft=wt__default.default.forwardRef(({color:r,isFocusVisible:e,isSelected:t,isInteractive:o,isDisabled:a,style:n,className:i,id:s,tooltip:l,"data-block-id":p,"data-block-class":c,...d},m)=>{let u=r&&r!==Be&&(typeof r=="string"?color.parseColor(r):r),{formatMessage:b}=A(),y=!u,{colorSwatchProps:f}=color$1.useColorSwatch({color:y?"#000000":r}),{hoverProps:g,isHovered:v}=reactAria.useHover({isDisabled:a||!o}),h=utils.filterTruthyValues({"data-focus-visible":e,"data-selected":t,"data-hovered":v,"data-block-id":p,"data-block-class":c,"data-disabled":a,"data-interactive":o}),_=y?b(uy.none):f["aria-label"],z=d["aria-label"]??_,{tooltipProps:P}=da({tooltip:l,label:z}),w=jsxRuntime.jsx("div",{...reactAria.mergeProps(g,h,y?{}:f),style:n,"aria-label":y?b(uy.none):f["aria-label"],role:"img",className:utils.classNames(cy({removeBlendMode:y,isFocusVisible:e,isDisabled:!!a,isSelected:!!t,isHovered:v}),"BaselineUI-ColorSwatch",i),ref:m,id:s,...d,children:jsxRuntime.jsx(D,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:u?my(u,4):void 0,children:y?jsxRuntime.jsx("div",{className:dy}):null})});return P&&!a?jsxRuntime.jsx(ie,{...P,children:jsxRuntime.jsx($a,{children:w})}):w});ft.displayName="ColorSwatch";var uy=G({none:{id:"none",defaultMessage:"None"}});var yy=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Io=color.parseColor("#000000").toFormat("hsla"),de="hsla",ko="hexa";function Dt(r){return typeof r=="string"?color.parseColor(r).toFormat(de):r?r.toFormat(de):null}function by(r,e){return r?.getChannelValue("alpha")?e?.toString(ko)===r.toString(ko):!e?.getChannelValue("alpha")}function gy(r,e,t){return e?.label?e.label:r?.getChannelValue("alpha")===0?t:r?.toString("rgba")}var Be="NONE";function vy(r,e){let t=e?.map(a=>({id:color.parseColor(a.color).toString(ko),label:a.label}))||[],o={id:Be,label:r};return [...t,o]}var dn=(r,{optionProps:e,isFocusVisible:t,isSelected:o},a)=>(utils.invariant(r.value&&"label"in r.value,"Item must have label"),jsxRuntime.jsx("li",{...e,ref:a,className:ny,children:jsxRuntime.jsx(ft,{color:r.value.id,isFocusVisible:t,isSelected:o,"aria-label":r.value.label,isInteractive:true})})),my=(r,e=4)=>{let t=r.getChannelValue("alpha")===0,o=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:t?o:`linear-gradient(${r.toString("hexa")}, ${r.toString("hexa")}), ${o}`,backgroundSize:`${e}px ${e}px`}};var _y=({value:r,...e})=>{let t=wt__default.default.useRef(null),o=wt__default.default.useRef(null),a=wt__default.default.useRef(null),n=color.useColorAreaState({...e,value:r}),{colorAreaProps:i,xInputProps:s,yInputProps:l,thumbProps:p}=color$1.useColorArea({...e,value:r,inputXRef:t,inputYRef:o,containerRef:a},n);wt.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Qf,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(cn({isFocusVisible:d}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:Dt(r)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:o,...l,...c})]})})};var Cy=({color:r,setColor:e,allowAlpha:t,...o})=>{let a=color.useColorFieldState({value:r,onChange:d=>{e(Dt(d)?.toFormat(de).withChannelValue("alpha",r.getChannelValue("alpha")??1)||Io);}}),n=wt__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...o,"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(Os,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:sy({isFocused:l,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(wy,{color:r,setColor:e}):null]})},Py=({color:r,setColor:e,allowAlpha:t})=>{let o=r.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(Os,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Ve,{"aria-label":r.getChannelName("red",a),value:o.getChannelValue("red"),showStepper:false,className:Po,onChange:n=>{e(o.withChannelValue("red",n).toFormat(de));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":r.getChannelName("green",a),value:o.getChannelValue("green"),showStepper:false,className:Po,onChange:n=>{e(o.withChannelValue("green",n).toFormat(de));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":r.getChannelName("blue",a),value:o.getChannelValue("blue"),showStepper:false,className:Po,onChange:n=>{e(o.withChannelValue("blue",n).toFormat(de));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(wy,{color:r,setColor:e}):null]})},mk={style:"percent",maximumFractionDigits:0},wy=({color:r,setColor:e})=>{let{locale:t}=reactAria.useLocale(),o=wt.useCallback(a=>{e(r.withChannelValue("alpha",a));},[r,e]);return jsxRuntime.jsx(Ve,{"aria-label":r.getChannelName("alpha",t),value:r.getChannelValue("alpha"),formatOptions:mk,className:Po,showStepper:false,onChange:o,minValue:0,maxValue:1})};var Gs=({channel:r,...e})=>{let{locale:t}=reactAria.useLocale(),o=color.useColorSliderState({...e,channel:r,locale:t}),a=wt__default.default.useRef(null),n=wt__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:l}=color$1.useColorSlider({...e,channel:r,trackRef:a,inputRef:n,"aria-label":o.value.getChannelName(r,t)},o),{focusProps:p,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(nn,{[Xc({size:"xs"})]:r==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":r,...i,ref:a,children:[r==="alpha"&&jsxRuntime.jsx("div",{className:Hs}),jsxRuntime.jsx("div",{className:nn,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(cn({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:Hs,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:nn}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var un=({color:r,setColor:e,allowAlpha:t,onChangeEnd:o})=>{let[a,n]=wt__default.default.useState("hex"),{formatMessage:i}=A(mt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(_y,{value:r,xChannel:"saturation",yChannel:"lightness",onChange:e,onChangeEnd:o}),jsxRuntime.jsxs("div",{className:js,children:[jsxRuntime.jsx(Gs,{channel:"hue",value:r,onChange:e,onChangeEnd:o}),t?jsxRuntime.jsx(Gs,{channel:"alpha",value:r,onChange:e,onChangeEnd:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(js,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(ut,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:yy,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(Cy,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t}),a==="rgb"&&jsxRuntime.jsx(Py,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t})]})]})};var Dy=({color:r,setColor:e,storePickedColorKey:t,addColorButtonLabel:o,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=A(mt),c=wt__default.default.useRef(null),d=Ne(c.current),[m,u]=Gc(t,[]),b=wt__default.default.useRef(null),[y,f]=wt__default.default.useState(r),g=wt__default.default.useMemo(()=>m.map(w=>({id:w,label:color.parseColor(w).getColorName(l),description:w})),[m,l]),v=wt.useCallback(()=>{let w=i==="active"?r:y;if(m.includes(w.toString(de))){b.current?.querySelector(`[data-key='${w.toString(de)}']`)?.classList.add(Fs);return}u([...m,w.toString(de)]);},[m,r,u,y,i]);wt.useEffect(()=>{let w=b.current;function C(k){k.animationName===py&&k.target?.classList.remove(Fs);}return w?.addEventListener("animationend",C),()=>{w?.removeEventListener("animationend",C);}},[]);let h=reactAria.useId(),_=jsxRuntime.jsx(L,{ref:c,variant:"secondary",size:"md","aria-label":o,icon:_20.PlusIcon,onPress:i==="active"?v:void 0}),z=wt.useCallback(w=>jsxRuntime.jsxs(ze,{size:"content",className:sn({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(un,{color:y,setColor:f,allowAlpha:s}),jsxRuntime.jsx(U,{}),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:w}),jsxRuntime.jsx(K,{label:p("add"),variant:"primary",onPress:()=>{v(),w();},size:"sm"})]})})]}),[y,v,p,s]),P=wt.useCallback(w=>{utils.invariant(w instanceof Set,"Key must be a set");let C=[...w][0];C&&e(color.parseColor(C).toFormat(de));},[e]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs("div",{className:utils.classNames(iy,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:h,children:n}),jsxRuntime.jsxs(D,{display:"flex",children:[!!m.length&&m.includes(r.toString(de))&&jsxRuntime.jsx(L,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{u(m.filter(w=>w!==r.toString(de)));}}),i==="active"&&_,i==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Le,{children:[jsxRuntime.jsx(on,{children:_}),jsxRuntime.jsx(Ue,{style:{zIndex:1e5},children:({close:w})=>z(w)})]}):jsxRuntime.jsxs(je,{type:"dialog",children:[jsxRuntime.jsx(He,{children:_}),jsxRuntime.jsx(Ae,{placement:"right top",className:ln,offset:6,children:({close:w})=>z(w)})]}))]})]}),!!m.length&&jsxRuntime.jsx(me,{items:g,layout:"grid","aria-labelledby":h,className:utils.classNames(an,pn,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:dn,ref:b,autoFocus:false,selectionMode:"single",selectedKeys:[r.toString(de)],onSelectionChange:P})]})};var Ys=wt__default.default.forwardRef(({setColor:r,color:e,triggerRef:t,autoFocus:o,presets:a,state:n},i)=>{let{formatMessage:s}=A(mt),l=wt.useCallback(p=>{if(p instanceof Set&&p.size){let c=[...p][0],d=a.find(m=>m.id===c);utils.invariant(d,"Preset not found"),r(d.id===Be?null:color.parseColor(d.id).toFormat(de)),n.close();}},[n,a,r]);return jsxRuntime.jsx("div",{className:utils.classNames(pn,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(me,{autoFocus:o,items:a,layout:"grid","aria-label":s("colorPresets"),className:an,renderOption:dn,selectionMode:"single",selectedKeys:[e?.toString(ko)||Be],onSelectionChange:l})})});Ys.displayName="ColorPresetList";var Ro=wt__default.default.forwardRef(({color:r,colorLabel:e,colorName:t,...o},a)=>{let n=wt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p}),u=Jo(),b=Jo();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),style:o.style,className:utils.classNames(ty({isHovered:s,isFocusVisible:c||o.isOpen,isDisabled:o.isDisabled,labelPosition:o.labelPosition}),"BaselineUI-ColorInputButton",o.className),ref:M(a,n),id:u,"aria-labelledby":o["aria-labelledby"]||`${u} ${b}`,children:[jsxRuntime.jsx(ft,{color:r?.toString("hexa")}),e?jsxRuntime.jsx("div",{className:ay,id:b,"aria-hidden":"true",children:t}):typeof t=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});Ro.displayName="ColorInputButton";var yn=wt__default.default.forwardRef(({className:r,style:e,icon:t,...o},a)=>{let n=wt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:o.isDisabled}),{buttonProps:l,isPressed:p}=reactAria.useButton(o,n),{isFocusVisible:c,focusProps:d}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":o["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":o.isDisabled,"data-hovered":s,"data-pressed":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),ref:M(a,n),style:e,className:utils.classNames(ly({isHovered:s||p||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton",r),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:ey,style:{backgroundColor:o.color||void 0}})]})});yn.displayName="IconColorInputButton";function jy({colorLabel:r,color:e,presets:t}){let{formatMessage:o}=A(),{locale:a}=reactAria.useLocale(),n=wt.useMemo(()=>t.find(l=>l.id===Be?!e:e?by(e,color.parseColor(l.id)):false),[t,e]),i=wt.useMemo(()=>typeof r=="function"?r?.(e):r?gy(e,n,o(Ok.transparent)):false,[e,r,o,n]),s=wt.useMemo(()=>{if(n?.label)return n.label;e?.getColorName(a);},[e,a,n?.label]);return {colorName:i,humanReadableName:s}}var Ok=G({transparent:{defaultMessage:"Transparent",id:"transparent"}});var wr=wt__default.default.forwardRef(({className:r,style:e,allowRemoval:t,allowAlpha:o=true,presets:a,labelPosition:n="top",colorLabel:i=true,includePicker:s=true,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:u,removeColorButtonLabel:b,customColorsLabel:y,renderTriggerButton:f=({isOpen:C,color:k,ref:$,colorName:R,triggerProps:T,labelId:I})=>jsxRuntime.jsx(Ro,{...reactAria.mergeProps(T,{...P.label?{"aria-labelledby":I}:{"aria-label":P["aria-label"]}}),ref:$,isOpen:C,isDisabled:P.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:R}),pickerMode:g="active",offset:v=2,placement:h=n==="start"?"bottom end":"bottom start","data-block-id":_,"data-block-class":z,...P},w)=>{let C=wt__default.default.useRef(null),k=wt__default.default.useRef(null),$=reactStately.useOverlayTriggerState(P),{triggerProps:R,overlayProps:T}=reactAria.useOverlayTrigger({type:"listbox"},$,C),I=ve(P.portalContainer),[S,E]=utils$1.useControlledState(m===void 0?void 0:Dt(m),Dt(c),Y=>l?.(Y?.toFormat("rgba")||null)),{formatMessage:N}=A(mt),O=wt.useMemo(()=>vy(N(bn.noColor),a),[a,N]),B=reactAria.useId(),{colorName:H}=jy({colorLabel:i,color:S,presets:O}),V=wt.useMemo(()=>O.filter(Y=>t||Y.id!==Be),[O,t]),F=u||N(bn.addColor),te=b||N(bn.removeColor),j=y||N(bn.customColors),J=jsxRuntime.jsx(Dy,{color:S||Io,setColor:Y=>{E(Y),p?.(Y?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:F,removeColorButtonLabel:te,customColorsLabel:j,pickerMode:g,allowAlpha:o});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[ry]:n==="start"},"BaselineUI-ColorInput-Trigger",r),"data-block-id":_,"data-block-class":z,style:e,ref:w,children:[P.label?jsxRuntime.jsx("label",{id:B,className:oy({labelPosition:n}),children:P.label}):null,f({isOpen:$.isOpen,color:S,ref:C,colorName:H,triggerProps:R,labelId:B})]}),jsxRuntime.jsx(we,{...P,portalContainer:I,placement:h,state:$,offset:v,className:utils.classNames(ln,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:T,children:jsxRuntime.jsxs(ze,{size:"content",className:sn({includesCustomColorPicker:s}),ref:k,"aria-labelledby":B,"aria-label":P["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(un,{color:S||Io,setColor:E,allowAlpha:o,onChangeEnd:Y=>{p?.(Y?.toFormat("rgba")||null);}}),J]}):null,!!V.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(U,{}):null,jsxRuntime.jsx(Ys,{autoFocus:s&&g==="active"?false:"first",state:$,triggerRef:C,presets:V,color:S,setColor:Y=>{E(Y),p?.(Y?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?J:null]})})]})});wr.displayName="ColorInput";var bn=G({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 qy=wt__default.default.forwardRef(({className:r,style:e,icon:t,variant:o="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let l=wt__default.default.useRef(null),p=wt.useCallback(({isOpen:c,color:d,ref:m,colorName:u,triggerProps:b})=>jsxRuntime.jsx(ie,{variant:"inverse",size:"sm",includeArrow:false,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:o==="standard"?jsxRuntime.jsx(Ro,{...b,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:d,colorLabel:false,colorName:u}):jsxRuntime.jsx(yn,{...b,isOpen:c,icon:_20.TextIcon,color:d?.toString("hexa"),ref:m,isDisabled:i.isDisabled,"aria-label":i["aria-label"]})}),[i,n,o]);return jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",gap:"md",paddingX:o==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",r),"data-block-id":a,style:e,ref:M(s,l),children:[o==="standard"&&t?jsxRuntime.jsx(t,{"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(wr,{...i,colorLabel:false,renderTriggerButton:p})]})});qy.displayName="IconColorInput";var Gy={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 gn=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"]]}),Ky="_1yep5z6d8",vn=x({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Wy=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"]]}),Yy="_1i0ytqa0",hn=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:[]}),Zy=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 Xy({line:r,options:e}){let t=wt.useRef([]),o=wt.useMemo(()=>{let a=Math.ceil(r.length/kr),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!t.current[i])){let p=r.slice(i*kr-(i>0?1:0),i*kr+kr);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,d,m])=>({x:c,y:d,pressure:m})),e)),p.length>=(i>0?kr+1:kr)&&(t.current[i]=n);}return n},[r,e]);return [...t.current,o]}var kr=60*3;var yI={size:1,thinning:0,smoothing:0,streamline:0,easing:r=>r,start:{taper:0,easing:r=>r,cap:true},end:{taper:0,easing:r=>r,cap:true},simulatePressure:false},Qy=wt__default.default.forwardRef(({className:r,style:e,canvasClassName:t,canvasStyle:o,isBound:a=true,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=false,isInline:d=true,isDisabled:m,placeholder:u,clearLabel:b,undoLabel:y,redoLabel:f,footerClassName:g,canvasRef:v,value:h,footerStyle:_,"data-block-id":z,"data-block-class":P,"aria-label":w="Drawing canvas",description:C="This is a canvas for drawing using a mouse or touch input.",...k},$)=>{let R=A(Gy),T=wt__default.default.useRef(null),[I,S]=wt__default.default.useState(h||l||[]),E=wt__default.default.useMemo(()=>({...yI,...k}),[k]),[N,O]=wt__default.default.useState(),B=reactAria.useId(),{labelProps:H,fieldProps:V}=reactAria.useLabel({...k,"aria-label":w,labelElementType:"span"}),{isFocusVisible:F,focusProps:te}=reactAria.useFocusRing({within:true}),{hoverProps:j,isHovered:J}=reactAria.useHover({isDisabled:m}),{undo:Y,redo:Me,canRedo:Ee,canUndo:Ce,push:Oe}=Bc(I,{onAction:X=>{X&&(S(X),p?.(X));},isDisabled:!c}),{keyboardProps:Je}=reactAria.useKeyboard({onKeyDown:X=>{X.key==="Backspace"?Kt():X.key==="z"&&(X.metaKey||X.ctrlKey)&&(X.shiftKey?Ee&&Me():Ce&&Y());}}),[ne,ye]=wt.useState(false),qt=wt.useCallback(X=>{let q=X.currentTarget.getBoundingClientRect();O(q),X.target.setPointerCapture(X.pointerId);let ce=[X.clientX-q.x,X.clientY-q.y,X.pressure];S(W=>[...W,[ce]]),ye(true);},[]),Gt=wt.useCallback(X=>{if(X.buttons!==1||!N)return;let ce=r1(X.nativeEvent).map(W=>[a?utils$1.clamp(W.clientX-N.left,0,N.width):W.clientX-N.left,a?utils$1.clamp(W.clientY-N.top,0,N.height):W.clientY-N.top,W.pressure]);S(W=>{let $e=[...W];return $e[W.length-1]=[...$e[W.length-1],...ce],$e});},[N,a]),qr=()=>{N&&(p?.(I),Oe(I),ye(false));};wt.useEffect(()=>{s?.(I);},[I,s]);let Kt=()=>{S([]),s?.([]),Oe([]);};return jsxRuntime.jsxs("div",{ref:M(T,$),className:utils.classNames(Yy,"BaselineUI-FreehandCanvas",r),style:e,"aria-disabled":m,"data-block-id":z,"data-block-class":P,children:[k.label||c?jsxRuntime.jsxs("div",{className:Zy({isInline:d}),children:[k.label?jsxRuntime.jsx(Q,{type:"label",size:"sm",...H,children:k.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!Ce||m,icon:_16.UndoIcon,onPress:Y,"aria-label":y||R.formatMessage("undo")}),jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!Ee||m,icon:_16.RedoIcon,onPress:Me,"aria-label":f||R.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(te,Je,j,V),tabIndex:m?void 0:0,className:utils.classNames(gn({isInline:d,isHovered:J}),Wy({isFocusVisible:F,isInline:d,isDisabled:!!m}),t),"aria-describedby":k["aria-describedby"]||B,style:o,ref:v,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:B,children:C})}),jsxRuntime.jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:qt,onPointerMove:Gt,onPointerUp:qr,children:(h||I).map((X,q,ce)=>q<ce.length-1||!ne?jsxRuntime.jsx(e1,{line:X,options:E,strokeColor:i,strokeWidth:n},q):jsxRuntime.jsx(t1,{line:X,options:E,strokeColor:i,strokeWidth:n},q))})]}),u||b?jsxRuntime.jsx("div",{style:_,className:utils.classNames(hn({isInline:d,isDisabled:m}),g),children:(I.length||!u)&&b?jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:b,isDisabled:m,onPress:Kt}):jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:u,isDisabled:true})}):null]})});Qy.displayName="FreehandCanvas";var e1=wt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=wt.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(r.map(([n,i,s])=>({x:n,y:i,pressure:s})),e)),[r,e]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:o})});e1.displayName="Stroke";var t1=wt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=Xy({line:r,options:e});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:o},i))})});t1.displayName="SplitStroke";function r1(r){if(typeof r.getCoalescedEvents=="function"){let e=r.getCoalescedEvents();return e.length>0?e.flatMap(t=>r1(t)):[r]}return [r]}var o1="_1vac7ws0",a1=x({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function i1(r,e){let[t,o]=wt.useState([]),a=()=>r?.flatMap(n=>[...e.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{o(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();o(n);},[r],[a]),t}function s1(r){let{scrollable:e,ownerDocument:t,onScroll:o}=r;wt.useEffect(()=>{let a=utils.getHTMLElement(e,t);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",o),()=>{a.removeEventListener("scroll",o);}},[e,o,t]);}var DI=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),p1=wt__default.default.forwardRef(({className:r,children:e,isRotatable:t,isResizable:o,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:l,onDoubleClick:p,onDragStart:c,onDragEnd:d,onDrag:m,onResizeStart:u,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:v,onSnap:h,isSnappable:_,elementGuidelines:z,hideAnchorOnDrag:P=true,title:w,rotationPosition:C,autoUpdate:k,bound:$,snapRotationDegrees:R,snapRotationThreshold:T,scrollableAncestor:I,renderDirections:S,stopPropagation:E,transformOrigin:N,preventDefault:O},B)=>{let H=wt.useRef(null),V=wt.useRef(null),[F,te]=wt.useState(document),j=wt.useRef(F.createElement("div")),[J,Y]=wt.useState({}),[Me,Ee]=wt.useState(false),[Ce,Oe]=wt.useState(false),[Je,ne]=wt.useState(),ye=i1(z,F);wt.useLayoutEffect(()=>{let q=j.current;return j.current=F.createElement("div"),()=>{q.remove();}},[F]);let{keyboardProps:qt}=reactAria.useKeyboard({onKeyDown:q=>{let ce=q.shiftKey?10:1,W=q.metaKey||q.ctrlKey;W&&q.shiftKey&&(ce=45);function $e(Gr,Ph="x"){W?V.current?.request("rotatable",{deltaRotate:Gr*ce},true):V.current?.request("draggable",Ph==="x"?{deltaX:Gr*ce}:{deltaY:Gr*ce},true);}switch(q.key){case "ArrowRight":{$e(1);break}case "ArrowLeft":{$e(-1);break}case "ArrowUp":{$e(-1,"y");break}case "ArrowDown":$e(1,"y");}requestAnimationFrame(()=>{V.current?.updateRect();});}});wt.useEffect(()=>{let q=be(H.current);te(q);let ce=j.current;q.body.append(j.current);function W(Gr){Oe(Gr.shiftKey);}function $e(){Oe(false);}return q.addEventListener("keydown",W),q.addEventListener("keyup",$e),()=>{q.removeEventListener("keydown",W),q.removeEventListener("keyup",$e),ce.remove();}},[]),s1({scrollable:I,onScroll:()=>{V.current?.updateRect();},ownerDocument:F});let Gt=wt.useCallback(q=>{Y(ce=>({...ce,...q.style})),i?.(q);},[i]),qr=wt.useCallback(q=>{if(Ee(true),H.current?.focus(),$){let W=utils.getHTMLElement($,F)?.getBoundingClientRect();ne({position:"client",left:W?.left??0,top:W?.top??0,right:W?.right??0,bottom:W?.bottom??0});}c?.(q);},[$,F,c]),Kt=wt.useCallback(q=>{Ee(false),d?.(q);},[d]),X=e({style:{...J.width&&{width:J.width},...J.height&&{height:J.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...qt,ref:M(H,B),style:{display:"inline-block",...n,...J},className:utils.classNames(o1,r),onDoubleClick:p,tabIndex:0,title:w,children:X}),wx.createPortal(jsxRuntime.jsx(DI,{ref:V,target:H,draggable:a,resizable:o,rotatable:t,keepRatio:Ce,throttleDrag:1,snappable:_||!!$,elementGuidelines:ye,snapRenderThreshold:.9,className:a1({isDragging:Me&&P}),onRender:Gt,onDragStart:qr,onDragEnd:Kt,useResizeObserver:k,useMutationObserver:k,onRenderEnd:l,onDrag:m,onResizeStart:u,onResizeEnd:b,onResize:y,onRotateStart:f,onRotateEnd:g,onRotate:v,onRenderStart:s,onSnap:h,rotationPosition:C,bounds:Je,snapRotationDegrees:R,snapRotationThreshold:T,renderDirections:S,stopPropagation:E,preventDefault:O,transformOrigin:N}),j.current)]})});p1.displayName="Transform";var c1={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 m1=wt__default.default.forwardRef(({className:r,style:e,isInline:t=true,accept:o="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:d=true,"data-block-id":m,"data-block-class":u,pickerButtonStyle:b,pickerButtonClassName:y,footerClassName:f,footerStyle:g,clearLabel:v,placeholder:h,labelStyle:_,labelClassName:z,...P},w)=>{let C=wt__default.default.useRef(null),k=wt__default.default.useRef(null),{formatMessage:$}=A(c1),[R,T]=utils$1.useControlledState(n,a||null,ne=>{utils.invariant(typeof ne!="string"),P.onValueChange?.(ne?[ne]:[]);}),I=wt.useMemo(()=>GI(R||void 0),[R]),{fieldProps:S,labelProps:E}=reactAria.useField(P),{dropProps:N,isDropTarget:O}=reactAria.useDrop({ref:C,onDrop:async ne=>{if(l)return;let ye=await xs({items:ne.items});ye.length&&T(ye[0]),p?.(ne);},...P}),{clipboardProps:B}=reactAria.useClipboard({onPaste:async ne=>{if(l)return;let ye=await xs({items:ne});ye.length&&T(ye[0]),c?.(ne);},...P}),H=()=>{T(null),k.current&&(k.current.value="");},V={type:"file",onChange:ne=>{let ye=[...ne.target.files];T(ye[0]),P.onChange?.(ne);},accept:o,disabled:l},{focusProps:F,isFocused:te,isFocusVisible:j}=reactAria.useFocusRing({within:true}),{hoverProps:J,isHovered:Y}=reactAria.useHover({isDisabled:l}),{imgProps:Me,isLoading:Ee,isLoaded:Ce}=er({src:I,alt:i||""}),Oe={label:s||$("selectImage"),onPress:()=>C.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:true,className:utils.classNames(ya({isFocusVisible:j}),{[Ky]:O&&!l},y),style:b},Je=utils.filterTruthyValues({"data-loaded":Ce,"data-block-id":m,"data-block-class":u,"data-hovered":Y,"data-focused":te,"data-drop-target":O,"data-disabled":l,"data-focus-visible":j});return jsxRuntime.jsxs(D,{...Je,className:utils.classNames("BaselineUI-ImageDropZone",r),display:"flex",flexDirection:"column",alignItems:"center",style:e,ref:w,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(N,J,F,E),className:utils.classNames(gn({isInline:t,isHovered:Y,isDisabled:l,hasLoadedImage:!!I&&Ce,showFocusRing:O||!!I&&j}),z),style:_,ref:C,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(S,B,V),ref:k})}),!I&&jsxRuntime.jsx(K,{...Oe}),!!I&&(Ee?jsxRuntime.jsx(vr,{}):jsxRuntime.jsx("img",{className:vn({isInline:t,isDisabled:l,hasLoadedImage:!!I&&Ce&&d}),...Me}))]}),h||v?jsxRuntime.jsx("div",{style:g,className:utils.classNames(hn({isInline:t,isDisabled:l}),f),children:(I||!h)&&v?jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:v,isDisabled:l,onPress:H}):jsxRuntime.jsx(K,{size:"sm",variant:"ghost",label:h,isDisabled:true})}):null]})});m1.displayName="ImageDropZone";function GI(r){return r instanceof File?URL.createObjectURL(r):r}var f1="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",ol="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",y1=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 z9nup83 _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 v1=wt__default.default.forwardRef(({className:r,style:e,isDisabled:t,isInline:o=true,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:d,addAriaLabel:m,accent:u="positive","data-block-id":b,"data-block-class":y,...f},g)=>{let{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing({within:true}),{isHovered:z,hoverProps:P}=reactAria.useHover({isDisabled:t}),{pressProps:w}=reactAria.usePress({isDisabled:t,onPress:p});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let C=utils.filterTruthyValues({"data-hovered":z,"data-focus-visible":_,"data-focused":h,"data-disabled":t});return jsxRuntime.jsxs("div",{...f,className:utils.classNames(y1({isInline:o,isFocusVisible:_,isDisabled:t,isHovered:z,accent:u}),"BaselineUI-Preview",r),"data-block-id":b,"data-block-class":y,"aria-label":f["aria-label"]||a||s,style:e,ref:g,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(P,v,w,C),className:ol,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(P,v,w,C),disabled:t,style:l,"aria-label":m,className:ol,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:vn({isInline:o,isDisabled:t})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(L,{isDisabled:t,className:f1,"aria-label":d,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});v1.displayName="Preview";var h1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",_1=x({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),z1="cw3m0n7",x1=x({defaultClassName:"cw3m0n0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),C1="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",P1=x({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var pS=({label:r,description:e},{isSelected:t,isFocusVisible:o,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:x1({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:P1({isSelected:t,isFocusVisible:o,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:z1}):null}),r?jsxRuntime.jsxs("div",{className:h1,children:[jsxRuntime.jsx("span",{className:Ya({isDisabled:a}),children:r}),e?jsxRuntime.jsx("span",{className:_1({isDisabled:a}),children:e}):null]}):null]}),w1=({state:r,renderOption:e=pS,item:t,optionLabelPosition:o="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(t.id),p=wt__default.default.useRef(null),{inputProps:c,isPressed:d,isSelected:m}=reactAria.useRadio({...s,isDisabled:l,children:t.label,value:t.id},r,p),{focusProps:u,isFocusVisible:b,isFocused:y}=reactAria.useFocusRing(),{isHovered:f}=reactAria.useHover({isDisabled:l}),g=utils.filterTruthyValues({"data-selected":m,"data-focused":y,"data-focus-visible":b,"data-hovered":f,"data-disabled":l,"data-pressed":d,"data-read-only":i});return jsxRuntime.jsxs("label",{...g,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,u),ref:p})}),e(t,{isFocusVisible:b,isSelected:m,isFocused:y,isHovered:f,isDisabled:l,optionLabelPosition:o,isReadOnly:i})]})};var I1=wt__default.default.forwardRef(({className:r,style:e,optionsContainerClassName:t,optionsContainerStyle:o,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c,"data-block-id":d,"data-block-class":m,...u},b)=>{let y=reactStately.useRadioGroupState(u),{radioGroupProps:f,labelProps:g,descriptionProps:v,errorMessageProps:h}=reactAria.useRadioGroup({...u,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},y),_=ge({...u,descriptionProps:v,errorMessageProps:h,labelPosition:n}),z=utils.filterTruthyValues({"data-orientation":u.orientation,"data-block-id":d,"data-block-class":m,"data-disabled":u.isDisabled,"data-readonly":u.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(f,z),className:utils.classNames(at({labelPosition:n}),"BaselineUI-RadioGroup",r),style:e,ref:b,children:[u.label||_?jsxRuntime.jsxs("div",{className:ot({labelPosition:n,hasMessage:!!_}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Jt,"BaselineUI-RadioGroup-Label"),children:u.label}),n==="start"&&_]}):null,jsxRuntime.jsx("div",{className:utils.classNames(C1,{[tr]:u.isDisabled},t),style:o,children:a.map(P=>jsxRuntime.jsx(w1,{state:y,renderOption:i,item:P,...u,value:P.id},P.id))}),n==="top"&&_]})});I1.displayName="RadioGroup";var S1=({id:r,defaultMessage:e,elementType:t=wt.Fragment})=>{utils.invariant(r||e,"`id` or `defaultMessage` is required.");let o=A();return jsxRuntime.jsx(t,{children:o.formatMessage(r)||e})};S1.displayName="MessageFormat";var R1=wt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"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":o,"data-block-class":a,className:r,style:e,...s,ref:l,children:t})});R1.displayName="Group";var ll="UNSUPPORTED_IN_MENU";function D1(r){return wt.useMemo(()=>wt__default.default.Children.toArray(r).map(e=>{let t=e,o=lodash.uniqueId("item"),a=Eo(t,je),n=T1(t),i,s;if(a){let g=Eo(a,He);utils.invariant(g),i=T1(g),s=Eo(a,Ae).props.children;}else n?i=n:i=t;let{onPress:l,label:p,"aria-label":c,iconStart:d,isDisabled:m,icon:u}=i.props,b=p||c||ll;utils.invariant(typeof b=="string","ActionGroup children must have a string label");let y=`${o}-${b}`;return wt.createElement(reactStately.Item,{...{key:y,onPress:l,textValue:b,"aria-label":c,icon:d||u,dialogContent:s,isDisabled:m},key:y},t)}),[r])}function Eo(r,e){return e?lodash.flatMapDeep(wt__default.default.Children.toArray(r),o=>wt__default.default.isValidElement(o)&&o.props.children?[o,...wt__default.default.Children.toArray(o.props.children)]:[o]).find(o=>wt__default.default.isValidElement(o)&&o.type===e):void 0}function T1(r){return Eo(r,K)||Eo(r,L)}var M1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",E1={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var cl=wt__default.default.forwardRef(({className:r,style:e,children:t,collapsibleMenuProps:o,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...l},p)=>{let{formatMessage:c}=A(),[d,m]=wt.useState(),u=D1(t),b=reactStately.useListState({...l,children:u}),y=oe(p),f=wt.useRef(null),[{visibleItems:g,isMeasuring:v},h]=gi({visibleItems:b.collection.size,isMeasuring:false}),_=wt.useCallback(()=>{let T=I=>{if(f.current&&y.current){let S=[...f.current.children],E=y.current.getBoundingClientRect().width,N=I<b.collection.size,O=0,B=0;if(N){let H=S.pop();H&&(O+=B1(H,false,true));}for(let[H,V]of S.entries())if(O+=B1(V,H===0,H===S.length-1),Math.round(O)<=Math.round(E))B++;else break;return B}return I};h(function*(){yield {visibleItems:b.collection.size,isMeasuring:true};let I=T(b.collection.size),S=I<b.collection.size&&I>0;yield {visibleItems:I,isMeasuring:S},S&&(yield {visibleItems:T(I),isMeasuring:false});});},[h,y,b.collection.size]),z=wt.useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);ki({ref:z,onResize:_}),Te(_,[b.collection,_]);let{toolbarProps:P}=toolbar.useToolbar(l,y),w=[...b.collection],C=w.slice(0,g),k=w.slice(g).filter(T=>T.textValue!==ll),$=k.length>0;wt.useEffect(()=>{m(void 0);},[k.length]),wt.useEffect(()=>{l.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[l.orientation]);let{keyboardProps:R}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(P,R),className:r,"data-block-id":a,"data-block-class":n,"data-collapse":true,style:{...e,flexBasis:v?"100%":void 0},ref:y,children:jsxRuntime.jsxs("div",{ref:f,className:M1,children:[C.map(T=>T.rendered),$?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!v&&i?jsxRuntime.jsx(D,{flexGrow:1}):null,jsxRuntime.jsx(Va,{placement:"bottom end",renderTrigger:({buttonProps:T,ref:I})=>jsxRuntime.jsx(L,{...T,size:"md",icon:_24.MoreIcon,"aria-label":c(LS.more),variant:"toolbar",ref:I,tooltip:true}),...o,disabledKeys:k.filter(T=>T.props?.isDisabled).map(T=>T.key),items:k.map(T=>{let I=T.textValue||T["aria-label"];return utils.invariant(I,"ActionItem must have a label"),{id:T.key,label:I,icon:T.props.icon}}),onAction:T=>{let I=b.collection.getItem(T);utils.invariant(I,"Item not found");let{onPress:S,dialogContent:E}=I.props;S?.(),m(E);}})]}):null]})}),jsxRuntime.jsx(Le,{isOpen:!!d,onOpenChange:T=>{T||m(void 0);},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:1e5},children:d?wt__default.default.cloneElement(d,{inheritDrawer:true}):null})})]})});cl.displayName="CollapsibleToolbar";function B1(r,e,t){let a=re(r).getComputedStyle(r);return r.getBoundingClientRect().width+(e?0:O1(a.marginLeft))+(t?0:O1(a.marginRight))}function O1(r){let e=Number.parseInt(r,10);return Number.isNaN(e)?0:e}var LS=G({more:{id:"more",defaultMessage:"More"}});var dl=wt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=wt__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:utils.classNames(E1[i.orientation||"horizontal"],"BaselineUI-Toolbar",r),style:e,"data-block-id":t,"data-block-class":o,ref:M(s,l),children:i.children})});dl.displayName="WrappedToolbar";var xn=wt__default.default.forwardRef((r,e)=>{let t=r.isCollapsible?cl:dl;return jsxRuntime.jsx(t,{...r,ref:e})});xn.displayName="Toolbar";var j1=x({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),H1=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:"z9nup83 _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"]]}),V1=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:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61nc"]]}),U1=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:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:false,isHovered:true},"_1yep5z61o9"],[{isSelected:true,isDisabled:false},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:true,isDisabled:true},"_1yep5z61o9 _1yep5z61nd"]]}),q1=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 z9nup83 _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 ZS={xxs:8,xs:12,sm:16,md:20,lg:24},ke=wt__default.default.forwardRef((r,e)=>{let t=oe(e),{tooltipProps:o}=ua(r,t);return o?jsxRuntime.jsx(ie,{...o,children:jsxRuntime.jsx(ul,{...r,ref:e})}):jsxRuntime.jsx(ul,{...r,ref:e})});ke.displayName="ToggleIconButton";var ul=wt__default.default.forwardRef(({className:r,style:e,icon:t,size:o="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},l)=>{let p=reactStately.useToggleState(s),{buttonProps:c,isPressed:d,ref:m,isFocusVisible:u,isFocused:b,isHovered:y,uiStateOptions:f}=fa(s,p),g=wt.useMemo(()=>typeof t=="function"?t:p.isSelected?t.selected:t.unselected,[t,p.isSelected]),v={isSelected:p.isSelected,isHovered:y,isFocusVisible:u,isDisabled:!!s.isDisabled},h=utils.filterTruthyValues({"data-hovered":y,"data-selected":p.isSelected,"data-focus-visible":u,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":b,"data-pressed":d});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,h),className:utils.classNames(a==="toolbar"&&q1(v),a==="primary"&&H1(v),a==="secondary"&&V1(v),a==="tertiary"&&U1(v),j1({size:o}),"BaselineUI-ToggleIconButton",typeof r=="function"?r(f):r),style:typeof e=="function"?e(f):e,ref:M(m,l),children:jsxRuntime.jsx(g,{size:ZS[o]})})});ul.displayName="ToggleIconButtonCore";var K1="f6jv6bl",W1="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",Rr="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Y1=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"]]}),Cn=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:[]}),Z1="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",X1="f6jv6bj";var J1="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",Q1=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:[]}),eb="_1yep5z6jy _1yep5z6jz _1yep5z6k0",tb="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",rb=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:[]}),ob="f6jv6bk",ab="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",Pn=x({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),wn="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",Lo="f6jv6bn";var ib=[["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:Ao}}=tokens.layoutSprinkleValues,sb=({isOpen:r,onClose:e})=>{let{formatMessage:t}=A(),o=reactAria.useId();return jsxRuntime.jsx(Le,{isOpen:r,onOpenChange:a=>{a||e();},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(ze,{"aria-labelledby":o,className:Z1,drawerBackground:"subtle",children:[jsxRuntime.jsxs(D,{paddingLeft:Ao.padding.horizontal.lg,paddingRight:Ao.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:X1,children:[jsxRuntime.jsx(Q,{id:o,elementType:"h3",type:"title",size:"md",children:t(Bo.help)}),jsxRuntime.jsx(L,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(Bo.close),onPress:e})]}),jsxRuntime.jsx(U,{className:ob}),jsxRuntime.jsxs(D,{paddingX:Ao.padding.horizontal.lg,role:"table","aria-labelledby":o,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:Ao.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(Bo.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(Bo.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:ib.map(([a,n],i)=>jsxRuntime.jsxs(wt.Fragment,{children:[jsxRuntime.jsxs(D,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Ao.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",role:"cell",children:t(Bo[lodash.camelCase(a)])}),jsxRuntime.jsx(Q,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,true)})]}),i!==ib.length-1&&jsxRuntime.jsx(U,{})]},a))})]})]})})})},Bo=G({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 kn=wt__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,placeholder:o,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:l,editableContentAriaLabel:p,editorHandle:c,autoFocus:d,saveOnEnter:m,onSave:u},b)=>{let y=wt__default.default.useRef(null),[f,g]=utils$1.useControlledState(r,e||"",t),v=wt.useCallback(R=>{g(R.currentTarget.value||"");},[g]),h=wt.useCallback(R=>{(m&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),u());},[m,u]);wt.useImperativeHandle(b,()=>({clear:()=>{g("");}}));let _=wt.useCallback(R=>{R.currentTarget.style.height="16px",R.currentTarget.style.height=R.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let R=y.current;R&&(R.style.height="16px",R.style.height=R.scrollHeight+"px");},[s],[f]),wt.useImperativeHandle(c,()=>({setCaretPosition:R=>{y.current&&(y.current.focus(),y.current.setSelectionRange(R,R));},focus:()=>{y.current&&y.current.focus();}}));let{focusProps:z,isFocused:P,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:C,isHovered:k}=reactAria.useHover({}),$=utils.filterTruthyValues({"data-focus-visible":w,"data-hovered":k,"data-focused":P});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(z,C,$),ref:M(y,n),className:utils.classNames(s?tb:[Cn(),Pn({isInline:i}),ab]),autoFocus:d,onChange:v,disabled:l,onInput:_,value:f,placeholder:o,spellCheck:a,"aria-label":p,onKeyDown:h})});kn.displayName="PlainEditor";var jo="mention",In="mention_input",hb=wt__default.default.forwardRef(({onCancel:r,editor:e,element:t,onSelectionChange:o},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=wt.useContext(Rn),l=slateReact.useSelected(),[p,c]=wt.useState(""),{contains:d}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=A(),u=wt.useMemo(()=>{let S=i.filter(E=>p===""||d(E.displayName,p)).map(E=>({id:E.id,label:E.displayName,data:E}));return s?lodash.take(S,s):S},[i,s,p,d]),b=wt.useCallback(S=>jsxRuntime.jsx(reactStately.Item,{children:S.label},S.id),[]),y=wt.useCallback((S=false)=>{let E=plateCommon.findNodePath(e,t);E&&(plateCommon.removeNodes(e,{at:E}),S&&plateCommon.focusEditor(e));},[e,t]),f=reactStately.useComboBoxState({items:u,children:b,menuTrigger:"focus",onSelectionChange:S=>{y(true),o?.(S);}}),g=wt__default.default.useRef(null),v=wt__default.default.useRef(null),h=wt__default.default.useRef(null),_=wt__default.default.useRef(null),z=plateCombobox.useHTMLInputCursorState(v);reactAria.useInteractOutside({ref:_,onInteractOutside:()=>{f.close();}});let{inputProps:P,listBoxProps:w}=reactAria.useComboBox({defaultItems:u,inputRef:v,buttonRef:g,listBoxRef:h,popoverRef:_,menuTrigger:"focus","aria-label":m(DR.mention)},f);wt.useEffect(()=>{v.current?.focus();},[]);let C=wt.useCallback((S="manual",E=false)=>{y(E),r?.(S,f.inputValue);},[r,y,f.inputValue]),k=wt.useRef(l);wt.useEffect(()=>{k.current&&!l&&C("deselect"),k.current=l;},[l,C]);let $=z?.atStart??false,R=z?.atEnd??false,T=wt.useCallback(S=>{S.key==="Backspace"&&$?C("backspace",true):S.key==="Escape"?C("escape",true):S.key==="ArrowLeft"&&$?C("arrowLeft",true):S.key==="ArrowRight"&&R&&C("arrowRight",true);let E=plateCommon.Hotkeys.isUndo(S)&&e.history.undos.length>0,N=plateCommon.Hotkeys.isRedo(S)&&e.history.redos.length>0;(E||N)&&(S.preventDefault(),e[E?"undo":"redo"](),plateCommon.focusEditor(e));},[$,R,C,e]),I=wt.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let S=re(v.current),E=v.current?S?.getComputedStyle(v.current).font:void 0;return {width:E?utils.getTextDimensions({text:f.inputValue,font:E}).width+10:"4ch"}}},[f.inputValue]);return jsxRuntime.jsxs(kt.Provider,{value:f,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(P,{onKeyDown:T,onBlur:()=>{C("blur",true);},onChange:S=>{c(S.target.value);}}),style:I,className:J1,ref:M(a,v)}),jsxRuntime.jsx(we,{triggerRef:n,isNonModal:true,ref:_,state:f,crossOffset:-2,children:jsxRuntime.jsx(me,{...w,items:void 0,autoFocus:"first",ref:h,className:utils.classNames(lt,tokens.sprinkles({width:"full"})),renderOption:zb})})]})});hb.displayName="MentionInputContentElement";var gl=cn$1.withRef(({className:r,...e},t)=>{let{children:o,editor:a,element:n}=e,{items:i}=wt.useContext(Rn),s=wt.useRef(null),[l,p]=wt.useState(null);wt.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let u=plateCommon.getPointBefore(a,m);if(!u)return;let b=plateCommon.createPointRef(a,u);return p(b),()=>{b.unref();}},[a,n]);let c=wt.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Kr()&&m&&plateCommon.focusEditor(a);},[a]),d=wt.useCallback(m=>{if(!m)return;let u=s.current?.getRootNode()instanceof ShadowRoot,b=i.find(f=>f.id===m);utils.invariant(b,"User not found");let y={type:jo,value:b.id,displayName:b.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),u?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:false,className:r,ref:t,...e,children:[jsxRuntime.jsx(hb,{onCancel:(m,u)=>{m!=="backspace"&&plateCommon.insertText(a,"@"+u,{at:l?.current??void 0}),(m==="arrowLeft"||m==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:m==="arrowLeft"});},onSelectionChange:d,ref:s,element:n,editor:a}),o]})});gl.displayName="MentionInputElement";var vl=cn$1.withRef(({className:r,onClick:e,children:t,...o},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:r,contentEditable:false,"data-user-id":n.value,onClick:plateCommon.getHandler(e,n),ref:a,...o,children:["@",n.displayName,t]})});vl.displayName="MentionElement";var _b=(r,{options:{trigger:e,triggerPreviousCharPattern:t,triggerQuery:o}})=>{let{insertText:a}=r,n=i=>i===e;return r.insertText=i=>{if(!r.selection||!n(i)||o&&!o(r)){a(i);return}let s=plateCommon.getEditorString(r,plateCommon.getRange(r,r.selection,plateCommon.getPointBefore(r,r.selection)));if(t?.test(s)){Sn(r);return}a(i);},r},DR=G({mention:{defaultMessage:"Mention",id:"mention"}});function Cb({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:r,...t,children:jsxRuntime.jsx("p",{children:e})})}function WR(r){return Object.entries(r).map(([e,t])=>`${lodash.kebabCase(e)}:${t}`).filter(([,e])=>!!e).join(";")}function YR(r){return "text"in r}function ZR(r){return r.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Ho(r){if(!r)return "";function e(t){if(YR(t)){let a=ZR(t.text);return t.bold&&(a=`<b>${a}</b>`),t.italic&&(a=`<i>${a}</i>`),t.underline&&(a=`<u>${a}</u>`),(t.color||t.backgroundColor)&&(a=`<span style="${WR(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let o=t.children?.map(Ho).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${o}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${o}</a>`;case jo:return `<span data-user-id="${t.value}">${t.displayName}</span>`;default:return o}}return Array.isArray(r)?r.map(t=>e(t)).join(""):e(r)}function XR(r){return r?(r=r.trim(),r.endsWith(";")&&(r=r.slice(0,-1)),Object.fromEntries(r.split(";").map(e=>e.split(":").map(t=>t.trim())).map(([e,t])=>[lodash.camelCase(e),t]))):{}}function Cl(r){r.startsWith("<p>")||(r=`<p>${r}</p>`);let e=new DOMParser().parseFromString(Pb__namespace.default.sanitize(r),"text/html"),t=e.querySelectorAll("[style]");for(let a of t)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 o=e.querySelectorAll("br");for(let a of o)a.outerHTML=a.closest("p")?`
|
|
14
|
-
`:"<p>";return kb(e.body)}function kb(r,e){if(r.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",e,r.textContent);if(r.nodeType!==Node.ELEMENT_NODE)return null;let t={...e};switch(r.nodeName.toUpperCase()){case "B":{t.bold=true;break}case "I":{t.italic=true;break}case "EM":{t.italic=true;break}case "U":{t.underline=true;break}case "SPAN":{let a=XR(r.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=true),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let o=[...r.childNodes].flatMap(a=>kb(a,t));switch(o.length===0&&o.push(slateHyperscript.jsx("text",t,"")),r.nodeName.toUpperCase()){case "BR":return slateHyperscript.jsx("text",e,`
|
|
15
|
-
`);case "SPAN":{let a=r.dataset.userId;return a?slateHyperscript.jsx("element",{type:jo,value:a,displayName:r.textContent},{text:""}):o}case "P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},o);case "A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:r.getAttribute("href")},o);default:return o}}function Ib(r){let e=plateCommon.findNode(r,{match:{type:plateCommon.getPluginType(r,plateLink.ELEMENT_LINK)}}),[t]=e||[{url:""}];return t?.url}function Sn(r){let e={children:[{text:" "}],type:In};r.insertNode(e);}var JR=plateCommon.createPluginFactory({isElement:true,isInline:true,isMarkableVoid:true,isVoid:true,key:jo,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:true,isInline:true,isVoid:true,key:In}],withOverrides:_b}),Sb=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Cb}),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:Rb}),JR({component:vl})],{components:{[In]:gl}});var At={Add:"add",Edit:"edit",Show:"show"},Mb=({isDisabled:r})=>{let{formatMessage:e}=A(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(je,{type:"dialog",children:[jsxRuntime.jsx(He,{children:jsxRuntime.jsx(L,{icon:_20.LinkIcon,size:"sm",isDisabled:r,"aria-label":e(Bt.addLink),className:Rr,preventFocusOnPress:true})}),jsxRuntime.jsx(Ae,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:o})=>jsxRuntime.jsx(ze,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(i$,{close:()=>{o(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},i$=({close:r})=>{let e=plateCommon.useEditorRef(),{formatMessage:t}=A(),o=plateCommon.useEditorSelector(p=>Ib(p),[]),[a,n]=wt__default.default.useState(o?At.Show:At.Add),[i,s]=wt__default.default.useState(o||""),l=jsxRuntime.jsx(D,{padding:"lg",children:jsxRuntime.jsx(pt,{label:t(Bt.link),value:i,autoFocus:true,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===At.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(D,{display:"flex",justifyContent:"flex-end",padding:"lg",className:K1,children:jsxRuntime.jsx(K,{isDisabled:!utils.isUrl(i,true),label:t(Bt.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:true}),r?.();},preventFocusOnPress:true})})]}),a===At.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(D,{padding:"lg",children:jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:o})}),jsxRuntime.jsxs(D,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(K,{label:t(Bt.editLink),size:"sm",variant:"secondary",onPress:()=>{n(At.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(K,{label:t(Bt.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(e),r?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),a===At.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:t(Bt.cancel),size:"sm",variant:"secondary",onPress:()=>{n(At.Show),r?.();}}),jsxRuntime.jsx(K,{label:t(Bt.save),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:true}),r?.();}})]})]})]})};function Rb({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:r,...t,children:jsxRuntime.jsx("a",{className:Ua({size:"sm"}),children:e})})}var Bt=G({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 l$=color.parseColor("#ffffff00").toString("hexa"),Pl=[{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"}];[...Pl,{label:"Transparent",color:l$}];var Tn=({nodeType:r,icon:e,ariaLabel:t,isDisabled:o})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,r),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(ke,{variant:"tertiary",isSelected:a,size:"sm",icon:e,"aria-label":t,isDisabled:o,onPress:()=>{plateCommon.toggleMark(n,{key:r});},preventFocusOnPress:true})},kl=({nodeType:r,"aria-label":e,isDisabled:t})=>{let{updateColor:o,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:r}),i=wt.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(L,{icon:r==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":e,size:"md",variant:"popover",isDisabled:t,className:Rr,preventFocusOnPress:true,...p,ref:l}),[r,e,t]),s=wt.useCallback(l=>{l?o(l.toString("rgba")):a();},[a,o]);return jsxRuntime.jsx(wr,{presets:Pl,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:t})};var B$=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],Rn=wt__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Rl=wt__default.default.forwardRef(({value:r,defaultValue:e,onChange:t,style:o,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:l,containerRef:p,onHelpDialogOpenRequest:c,mentionableUsers:d,editorHandle:m,maxMentionableUsersSuggestions:u,autoFocus:b,editorRef:y,saveOnEnter:f,onSave:g},v)=>{let h=wt.useRef(null),_=reactAria.useId(),{formatMessage:z}=A(),P=wt.useRef(null),w=P.current,C=wt.useRef(null),k=wt.useMemo(()=>w?.getRootNode()instanceof ShadowRoot,[w]),[$,R]=utils$1.useControlledState(r?Cl(r):void 0,Cl(e||"<p></p>"),S=>{t&&t(Ho(S));}),{keyboardProps:T}=reactAria.useKeyboard({onKeyDown:S=>{(f&&S.key==="Enter"&&!S.shiftKey||(S.ctrlKey||S.metaKey)&&S.key==="Enter")&&(S.preventDefault(),g()),S.altKey&&S.key==="F10"?(S.preventDefault(),h.current&&h.current.querySelector("button")?.focus()):S.continuePropagation(),Kr()&&k&&C.current&&plateCommon.focusEditor(C.current);}});wt.useEffect(()=>{s&&C.current&&plateCommon.deselect(C.current);},[s]),wt.useImperativeHandle(v,()=>({startMention:()=>{C.current&&!P.current?.querySelector("input[role='combobox']")&&Sn(C.current);}})),wt.useImperativeHandle(m,()=>({setCaretPosition:S=>{C.current&&(plateCommon.focusEditor(C.current),plateCommon.moveSelection(C.current,{distance:S,unit:"character"}));},focus:()=>{C.current&&plateCommon.focusEditor(C.current);}}));let I=wt.useMemo(()=>({items:d||[],containerRef:p,maxMentionableUsersSuggestions:u}),[d,p,u]);return jsxRuntime.jsx(Rn.Provider,{value:I,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:$||B$,plugins:Sb,editorRef:M(C,y||null),onChange:S=>{R(S);},children:[jsxRuntime.jsxs(xn,{className:wn,"aria-controls":_,ref:h,children:[jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(Tn,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:z(Mr.bold),isDisabled:s}),jsxRuntime.jsx(Tn,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:z(Mr.italic),isDisabled:s}),jsxRuntime.jsx(Tn,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:z(Mr.underline),isDisabled:s})]}),jsxRuntime.jsx(U,{orientation:"vertical",className:Lo}),jsxRuntime.jsx(kl,{nodeType:plateFont.MARK_COLOR,"aria-label":z(Mr.fontColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Lo}),jsxRuntime.jsx(kl,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":z(Mr.backgroundColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Lo}),jsxRuntime.jsx(Mb,{isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Lo}),jsxRuntime.jsx(L,{className:Rr,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":z(Mr.help),onPress:c})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx("div",{...T,ref:P,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:_,disabled:s,readOnly:s,style:o,placeholder:n,autoFocus:b,spellCheck:a,"aria-label":l,className:utils.classNames(Cn({isDisabled:s}),Pn({isInline:i})),renderPlaceholder:({attributes:S,children:E})=>jsxRuntime.jsx("span",{...S,className:tokens.sprinkles({paddingY:"lg"}),children:E})})})]})})});Rl.displayName="RichEditor";var zb=({key:r,value:e},{isDisabled:t,optionProps:o,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:t}),{label:l,data:p}=e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(o,s),className:Q1({isDisabled:t,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(xr,{name:l,...p?.avatar}),jsxRuntime.jsxs(D,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(Q,{type:"helper",size:"sm",children:p?.description})]})]}),r===n.collection.getLastKey()?null:jsxRuntime.jsx(U,{})]})},Mr=G({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 Ob=wt__default.default.memo(wt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,enableRichText:a=false,onCancel:n,onSave:i,isInline:s=true,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":d,"aria-describedby":m,"aria-labelledby":u,"aria-details":b,editableContentAriaLabel:y="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:v,...h},_)=>{let z=wt.useRef(null),{formatMessage:P}=A(),w=wt.useRef(null),C=wt.useRef(null),k=wt.useRef(null),$=!a&&h.variant==="minimal",R=wt.useRef(null),[T,I]=wt__default.default.useState(h.value||h.defaultValue),S=h.isDisabled||h.isSaveDisabled||!utils.getPlainText(T||""),{fieldProps:E}=reactAria.useLabel({"aria-label":d,"aria-labelledby":u,"aria-describedby":m,"aria-details":b,labelElementType:"div"});$&&!h.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let N=wt.useCallback(()=>{I(""),a?z.current?.reset():C.current?.clear();},[a]),O=wt.useCallback(()=>{S||(i?.(a?Ho(z.current?.children):w.current.value),v&&N());},[N,v,a,i,S]),B=jsxRuntime.jsx(L,{variant:"ghost","aria-label":p||P(Tl.save),icon:l,isDisabled:S,size:"md",excludeFromTabOrder:$,className:$?eb:void 0,onPress:O,preventFocusOnPress:true}),[H,V]=wt__default.default.useState(false),{keyboardProps:F}=reactAria.useKeyboard({onKeyDown:j=>{(j.metaKey||j.ctrlKey)&&j.shiftKey&&j.key==="h"&&(j.preventDefault(),V(true));}}),te=wt.useCallback(j=>{I(j),h.onChange?.(j);},[h]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(E,a?F:{}),role:"application",ref:M(k,_),style:e,"data-block-id":t,"data-block-class":o,className:utils.classNames(Y1({isInline:s,isMinimal:$}),"BaselineUI-Editor",r),"aria-disabled":h.isDisabled,children:[$?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(xr,{className:W1,name:h.avatarName||""}):null,jsxRuntime.jsxs("div",{className:rb({isInline:s}),children:[jsxRuntime.jsx(kn,{isMinimal:$,textBoxRef:w,isInline:s,editableContentAriaLabel:y,...h,onChange:te,onSave:O}),B]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Rl,{containerRef:k,ref:R,editorRef:z,isInline:s,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{V(true);},...h,onChange:te,onSave:O}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx(kn,{onCancel:n,textBoxRef:w,ref:C,isInline:s,editableContentAriaLabel:y,...h,onChange:j=>{I(j),h.onChange?.(j);},onSave:O})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(wn,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(D,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&h.mentionableUsers?jsxRuntime.jsx(L,{icon:_20.AtIcon,size:"sm","aria-label":P(Tl.mention),onPress:()=>R.current?.startMention(),preventFocusOnPress:true}):null,f?.map(({type:j,props:J},Y)=>j==="action"?jsxRuntime.jsx(L,{...J,size:"sm",isDisabled:h.isDisabled||J.isDisabled},Y):jsxRuntime.jsx(ke,{...J,size:"sm",variant:"tertiary",isDisabled:h.isDisabled||J.isDisabled},Y))]}),jsxRuntime.jsxs(D,{children:[!!n&&jsxRuntime.jsx(L,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:h.isDisabled,size:"md",onPress:()=>{n(),g&&N();},"aria-label":c||P(Tl.cancel)}),B]})]})]}),jsxRuntime.jsx(sb,{isOpen:H,onClose:()=>{V(false);}})]})}));Ob.displayName="Editor";var Tl=G({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var Fb="_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 Hb=2,Ub=wt__default.default.forwardRef(({className:r,style:e,hideForKeyboard:t,scrollRef:o,label:a,delay:n=1500,smoothScroll:i=true,"data-block-id":s,"data-block-class":l},p)=>{let c=wt__default.default.useRef(null),d=interactions.useInteractionModality(),[m,u]=wt__default.default.useState(false),b=wt.useCallback(()=>{let k=o?.current||be(c.current).body;return re(k).getComputedStyle(k).flexDirection==="column-reverse"?k.scrollTop+Hb>=0:k.scrollTop+k.clientHeight+Hb>=k.scrollHeight},[o]),[y,f]=wt__default.default.useState(b),{buttonProps:g,isPressed:v}=reactAria.useButton({onPress:()=>{let k=o?.current||be(c.current).body;k.scrollTo({top:k.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:h,isFocused:_,isFocusVisible:z}=reactAria.useFocusRing(),{hoverProps:P,isHovered:w}=reactAria.useHover({}),C=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":v,"data-focus-visible":z,"data-hovered":w,"data-focused":_});return wt.useEffect(()=>{f(b());},[b]),wt.useEffect(()=>{let k=o?.current||be(c.current).body,$="onscrollend"in re(k),R=()=>{setTimeout(()=>{u(false),f(b());},n);},T=()=>{u(true),$||R();};return k.addEventListener("scroll",T),k.addEventListener("scrollend",R),()=>{k.removeEventListener("scroll",T),k.removeEventListener("scrollend",R);}},[o,n,b]),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:(!t||d!=="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,h,P,C),className:utils.classNames(Fb,Za({isFocusVisible:z,variant:"high-contrast",isHovered:w}),Xa({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",r),style:e,ref:M(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:go({variant:"high-contrast"})}),a]}):null})});Ub.displayName="ScrollControlButton";var Ml="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",qb=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"]]}),Gb="_1v0p2z10";var En=wt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:l,icon:p,iconColor:c,showCloseButton:d=true,onPrimaryAction:m,onCancel:u,autoFocusButton:b,isPrimaryActionDisabled:y},f)=>{let g=reactAria.useId(),{formatMessage:v}=A(),h=n&&jsxRuntime.jsx(Q,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(ze,{className:r,style:e,"data-block-id":t,"data-block-class":o,size:"sm",variant:"primary",role:"alertdialog",ref:f,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:qb({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!d}),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&&h,d?jsxRuntime.jsx(L,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":v(p4.close),onPress:u}):null]}),p?h:null]}),a?jsxRuntime.jsx(D,{elementType:"section",className:Gb,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(pt,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs(D,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(K,{variant:"secondary",className:Ml,label:s,onPress:u,autoFocus:b==="cancel"}):null,i?jsxRuntime.jsx(K,{className:Ml,label:i,onPress:m,autoFocus:b==="primary",isDisabled:y}):null]})]}):null]})});En.displayName="AlertDialog";var p4=G({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var Kb="_1t55bp71",Wb="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",Yb="_1t55bp70";var y4=f4__default.default(),Zb=wt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,showCaret:n},i)=>{let s=wt.useMemo(()=>{let l=t;return (!t||Array.isArray(t)&&t.length===0)&&(l=""),y4.render(l)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(Wb,Yb,{[Kb]:n},"BaselineUI-Markdown",r),"data-block-id":o,"data-block-class":a,style:e,ref:i,dangerouslySetInnerHTML:{__html:s}})});Zb.displayName="Markdown";function eg(r){let{formatMessage:e,locale:t}=A(),[o,a]=wt__default.default.useState(false),[n,i]=wt__default.default.useState(0),[s,l]=wt__default.default.useState(0),[p,c]=wt__default.default.useState(false);wt.useEffect(()=>{if(!r.current)return;let u=r.current,b=()=>{a(false),i(0);},y=()=>{p||i(u.currentTime*100/u.duration);},f=()=>{l(u.duration);};return u.addEventListener("ended",b),u.addEventListener("timeupdate",y),u.addEventListener("loadedmetadata",f),()=>{u.removeEventListener("ended",b),u.removeEventListener("timeupdate",y),u.removeEventListener("loadedmetadata",f);}},[p,r]);let d=wt.useCallback(()=>{(async()=>r.current&&(r.current.paused?(await r.current.play(),a(true),liveAnnouncer.announce(e(Jb.playing),"polite")):(r.current.pause(),a(false),liveAnnouncer.announce(e(Jb.paused),"polite"))))();},[e,r]),m=wt.useCallback(u=>{r.current&&(r.current.currentTime=u*r.current.duration/100,liveAnnouncer.announce(v4(r.current.currentTime,t.locale),"assertive"));},[t.locale,r]);return {isPlaying:o,progress:n,duration:s,togglePlay:d,seek:m,setProgress:i,formattedCurrentTime:r.current?.currentTime?Qb(r.current?.currentTime):"00:00",formattedDuration:s?Qb(s):"00:00",setIsSliderDragging:c}}var Jb=G({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function v4(r,e){let t=Math.floor(r/3600),o=Math.floor(r%3600/60),a=r%60,n={...t&&{hours:t},...o&&{minutes:o},seconds:Math.floor(a)};return new Intl.DurationFormat(e,{style:"long"}).format(n)}function Qb(r){let e=Math.floor(r%3600/60),t=Math.floor(r%60);return [e,t].map(o=>o.toString().padStart(2,"0")).join(":")}var tg="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",rg="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",og="rta2n90";var ig=wt__default.default.forwardRef(({className:r,style:e,size:t="lg",sources:o,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=wt__default.default.useRef(null),{isPlaying:p,progress:c,duration:d,togglePlay:m,seek:u,formattedDuration:b,formattedCurrentTime:y,setProgress:f,setIsSliderDragging:g}=eg(l),{formatMessage:v}=A(),h=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":p?"playing":"paused","data-loaded":d>0});return jsxRuntime.jsxs("div",{...h,...i,className:utils.classNames(tg,"BaselineUI-AudioPlayer",r),role:"group",style:e,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:l,children:o.map(({url:_,type:z})=>jsxRuntime.jsx("source",{src:_,type:z},_))})}),jsxRuntime.jsx(ke,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:t,"aria-label":v(p?Nl.pause:Nl.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:rg,children:[jsxRuntime.jsx("span",{"aria-hidden":true,children:y}),jsxRuntime.jsx(nr,{"aria-label":v(Nl.audioTimeline),value:c,minValue:0,maxValue:100,className:og,onChange:_=>{f(_),g(true);},onChangeEnd:_=>{u(_),g(false);}}),jsxRuntime.jsx("span",{"aria-hidden":true,children:b})]})]})});ig.displayName="AudioPlayer";var Nl=G({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var sg="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",lg="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",pg="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",Ln=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"]]}),cg="_1w920rnb _1yep5z6lo",dg=x({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:true,isSelected:true},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),ug="_1w920rnc";var An=({items:r,ulRef:e,containerClassName:t,previewClassName:o,itemDataAttribute:a,showCount:n=false})=>{let{length:i}=r,s=wt__default.default.useRef(null);return wt.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(t)?.querySelector(`[${a}='${r?.at(-1)?.key}']`)?.cloneNode(true);utils.invariant(l,"Node is not defined."),s.current?.prepend(l);},[r,e,t,a]),jsxRuntime.jsx("div",{className:o,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:ug,children:i}):null})};function fg(r,e){return r.find(t=>t.id===e)}function yg(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[...a,s]:s)}function bg(r,e,t){let o=[...r],a=o.filter(s=>t.has(s.id)),n=o.filter(s=>!t.has(s.id)),i=n.findIndex(s=>s.id===e);return n.flatMap((s,l)=>l===i?[s,...a]:s)}function Ll(r){return r.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function Bn(r){return r.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var M4=({fit:r,item:e,deleteElement:t})=>{let{formatMessage:o}=A(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=er({src:e.data?.src,alt:e.data?.alt??""});return i?jsxRuntime.jsx(vr,{"aria-label":o(qo.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:r},className:cg,children:t})},hg=({item:r,options:{optionProps:e,isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i},liRef:s,fit:l="contain",onDelete:p,className:c,imageClassName:d,imageLabelClassName:m,imageDimensions:u,style:b,layoutTransition:y=true,renderImage:f=(g,{deleteElement:v})=>jsxRuntime.jsx(M4,{item:g,deleteElement:v,fit:l})})=>{let g=reactAria.useId(),{formatMessage:v}=A(),{value:h}=r;utils.invariant(h&&tt(h),"Expected value to be a list option");let _=p?jsxRuntime.jsx("div",{className:sg,children:jsxRuntime.jsx(L,{"aria-label":v(qo.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(h.id);},UNSAFE_NON_INTERACTIVE:true})}):null,z=Bn([h])[0],P=wt.useCallback(T=>{let I={},S=typeof T=="function"?T(z,{isSelected:o}):T;return S&&(I.width=typeof S.width=="string"?Bl[S.width]:S.width,I.aspectRatio="height"in S?`${I.width} / ${S.height}`:S?.aspectRatio?.toString()),I},[z,o]),w=wt.useMemo(()=>({isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i}),[t,o,a,n,i]),C=react.useReducedMotion(),k=typeof y=="boolean"?y:!C,$=typeof y=="object"?y:void 0,R=k?react.motion.li:"li";return jsxRuntime.jsxs(R,{...reactAria.mergeProps(e,k?{layout:true,transition:$}:void 0),ref:s,className:utils.classNames(lg,rt(c,z,w)),"aria-labelledby":g,style:oa(b,z,w),children:[jsxRuntime.jsx(D,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(Ln({isFocusVisible:t,isSelected:o,isLoading:true}),rt(d,z,w)),style:P(u),"data-image-key":h.id,children:f(h,{deleteElement:_??void 0,onDelete:p})})}),jsxRuntime.jsx("span",{id:g,className:utils.classNames(dg({isFocusVisible:t,isSelected:o}),rt(m,z,w)),children:h.label})]})};var F4={width:0,display:"block"},xg={src:"src",alt:"alt"},Bl={sm:102,md:170},Cg=wt__default.default.forwardRef(({className:r,style:e,fit:t="cover",onReorder:o,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=Bl.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:d,imageContainerClassName:m,imageClassName:u,labelClassName:b,onListChange:y,renderImage:f,layoutTransition:g,imageDimensions:v={width:s,aspectRatio:l},imageContainerStyle:h,..._},z)=>{let P=wt__default.default.useRef(null),[w,C]=wt.useState([]),{formatMessage:k}=A();wt.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[$,R]=utils$1.useControlledState(_.selectedKeys,_.defaultSelectedKeys??[],_.onSelectionChange),[T,I]=utils$1.useControlledState(p?Ll(p):void 0,Ll(c),y?B=>{y?.(Bn(B));}:void 0),S=wt.useCallback(B=>{let H=B.target.key,V=B.keys;if(B.target.dropPosition==="before"){let F=yg(T,H,V);I(F);}else if(B.target.dropPosition==="after"){let F=bg(T,H,V);I(F);}o?.(B);},[T,o,I]),E=wt.useCallback(()=>{i&&w.length&&(I(T.filter(B=>!w.includes(B.id))),i(new Set(w)),C([]));},[w,T,i,I]),N=wt.useCallback((B,H,V)=>{let{value:F}=B;utils.invariant(tt(F));let te={id:F.id,label:F.label,src:F.data?.src,alt:F.data?.alt};return jsxRuntime.jsx(hg,{item:B,options:H,liRef:V,fit:t,onDelete:i?j=>{C([j]);}:void 0,renderImage:f,className:rt(m,te,H),imageClassName:u,imageLabelClassName:b,imageDimensions:v,style:h,layoutTransition:g})},[t,i,f,m,u,b,v,h,g]),{keyboardProps:O}=reactAria.useKeyboard({onKeyDown(B){if(d?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...$].length)C([...$]);else {let V=B.target.dataset.key;C([V]);}}}});return jsxRuntime.jsxs("div",{...O,ref:z,style:e,className:utils.classNames("BaselineUI-ImageGallery",r),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(me,{..._,selectedKeys:$,items:T,onReorder:S,layout:"grid",orientation:"vertical",className:pg,ref:P,dropIndicatorStyle:F4,renderOption:N,renderDragPreview:B=>jsxRuntime.jsx(An,{items:B,ulRef:P,containerClassName:".BaselineUI-ImageGallery",previewClassName:Ln(),itemDataAttribute:"data-image-key",showCount:true}),onSelectionChange:R,getItems:B=>[...B].map(H=>{let V=fg(T,H);return {[xg.src]:V?.src||"",[xg.alt]:V?.alt||"",key:H}})}),jsxRuntime.jsx(Le,{isOpen:!![...w].length,onOpenChange:B=>{B||C([]);},children:jsxRuntime.jsx(Ue,{isDismissable:true,children:jsxRuntime.jsx(En,{showCloseButton:false,title:"Are you sure you want to delete this item?",primaryActionLabel:k(qo.delete),cancelLabel:k(qo.cancel),onCancel:()=>{C([]);},onPrimaryAction:E,autoFocusButton:"cancel"})})})]})});Cg.displayName="ImageGallery";var qo=G({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var Pg="_1sexph00",wg="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var Sg=wt__default.default.forwardRef(({className:r,style:e,items:t,"data-block-id":o,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:l=true,excludeFromTabOrder:p,onPress:c,isSelected:d,defaultSelected:m,onButtonSelectionChange:u,moreAriaLabel:b,optionStyle:y,optionClassName:f,triggerClassName:g,triggerStyle:v,tooltipProps:h,..._},z)=>{let{formatMessage:P}=A(),w=pe(),C=reactStately.useSelectState({items:t,..._,defaultSelectedKey:_.defaultSelectedKey||t?.[0]?.id,children:w,validationState:_.validationState==="error"?"invalid":"valid"}),[k,$]=utils$1.useControlledState(d,!!m,F=>{u?.({isSelected:F,selectedKey:C.selectedKey});}),{hoverProps:R,isHovered:T}=reactAria.useHover({isDisabled:s}),I=wt.useMemo(()=>{let F=C.collection.getItem(C.selectedKey),te=F?.textValue||F?.["aria-label"],j=F?.value,J=j?.icon,Y={size:i,isSelected:k,onPress:Me=>{$(!k),c?.(Me);},isDisabled:s,excludeFromTabOrder:p,className:typeof f=="function"?f(j,{isButton:true,isSelected:k}):f,style:typeof y=="function"?y(j,{isButton:true,isSelected:k}):y};return n&&J?jsxRuntime.jsx(ie,{variant:"inverse",size:"sm",includeArrow:false,text:te,placement:"bottom start",offset:4,...typeof h=="function"?h("button"):h,children:jsxRuntime.jsx(ke,{icon:J,"aria-label":te,variant:"toolbar",...Y})}):jsxRuntime.jsx(Wa,{iconStart:J,label:te,variant:"toolbar",...Y})},[p,n,k,s,c,f,y,$,i,C.collection,C.selectedKey,h]),S=_["aria-label"],E=wt.useCallback(({buttonProps:F,ref:te})=>{delete F["aria-labelledby"];let j=b||`${P(Y4.more)} ${S}`;return jsxRuntime.jsx(ie,{variant:"inverse",size:"sm",includeArrow:false,text:j,placement:"bottom start",offset:4,...h,children:jsxRuntime.jsx(interactions.PressResponder,{...F,children:jsxRuntime.jsx(L,{"aria-label":j,ref:te,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:J})=>utils.classNames(Ka({isSelected:k,isFocusVisible:J}),wg,g),style:v,isDisabled:s,excludeFromTabOrder:p})})})},[S,p,P,k,s,b,i,h,g,v]),N=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-hovered":T,"data-selected":k,"data-disabled":s,"data-expanded":C.isOpen}),O=oe(z),B=wt.useMemo(()=>({state:C,popoverAnchorRef:O}),[C,O]),H=wt.useCallback(F=>typeof f=="function"?f(F,{isButton:false,isSelected:C.selectionManager.isSelected(F.id)}):f,[f,C.selectionManager]),V=wt.useCallback(F=>typeof y=="function"?y(F,{isButton:false,isSelected:C.selectionManager.isSelected(F.id)}):y,[y,C.selectionManager]);return jsxRuntime.jsx(Ja.Provider,{value:B,children:jsxRuntime.jsxs(D,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(Pg,"BaselineUI-ButtonSelect",r),"aria-label":_["aria-label"],"aria-labelledby":_["aria-labelledby"],"aria-describedby":_["aria-describedby"],"aria-details":_["aria-details"],style:e,ref:O,...N,children:[I,jsxRuntime.jsx(ut,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:t,..._,style:{width:20},optionClassName:H,optionStyle:V,variant:"ghost",renderTrigger:E})]})})});Sg.displayName="ButtonSelect";var Y4=G({more:{id:"more",defaultMessage:"More"}});var Rg=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:[]}),$g=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:[]}),Tg=x({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),Dg=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"]]}),Mg=x({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Eg=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"]]}),Ng=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 Lg({allowsCustomValue:r,onValueChange:e,inputValue:t},o,a,n,i){let[s,l]=wt.useState(null),p=wt.useRef(false);wt.useEffect(()=>{if(!e)return;let d=a.current,m=u=>{l(u.target);};return d?.addEventListener("focusin",m),()=>{d?.removeEventListener("focusin",m);}},[e,a,o.selectedKey]),granularHooks.useGranularEffect(()=>{o.selectedKey&&(e?.({value:o.selectedItem?.textValue,key:o.selectedKey}),p.current=false);},[o.selectedKey],[e,o.selectedItem]),reactAria.useInteractOutside({ref:n,isDisabled:!e,onInteractOutside:d=>{!i.current?.contains(d.target)&&s===n.current&&r&&p.current&&(e?.({value:n.current?.value,key:null}),p.current=false);}}),wt.useEffect(()=>{if(!e)return;let d=n.current,m=()=>{p.current=true;};return d?.addEventListener("input",m),()=>{d?.removeEventListener("input",m);}},[n,e]),wt.useEffect(()=>{p.current=false;},[t]);let{keyboardProps:c}=reactAria.useKeyboard({isDisabled:!e,onKeyDown:d=>{r&&d.key==="Enter"&&p.current?(e?.({value:n.current?.value,key:null}),p.current=false):d.key==="Escape"&&o.close(),d.continuePropagation();}});return {inputProps:c}}var Bg=wt__default.default.forwardRef(({className:r,style:e,inputStyle:t,inputClassName:o,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:l=false,onSelectionChange:p,onInputChange:c,isInvalid:d=false,labelPosition:m="top",validationState:u="valid",variant:b="primary",toggleLabel:y,renderOption:f,showIcon:g=true,filter:v,minValue:h,maxValue:_,inputType:z="text",onInputSubmit:P,onValueChange:w,...C},k)=>{let $=reactAria.useObjectRef(k),{contains:R}=reactAria.useFilter({sensitivity:"base"}),T=pe(),I=reactStately.useComboBoxState({...C,defaultFilter:v||R,defaultItems:s,onSelectionChange:p,onInputChange:c,children:T,validationState:d?"invalid":"valid"}),S=wt__default.default.useRef(null),E=wt__default.default.useRef(null),N=wt__default.default.useRef(null),O=wt__default.default.useRef(null),B=wt__default.default.useRef(null),{inputProps:H}=Lg({onValueChange:w,allowsCustomValue:C.allowsCustomValue,inputValue:C.inputValue},I,$,E,O),{buttonProps:V,inputProps:F,listBoxProps:te,labelProps:j,errorMessageProps:J,descriptionProps:Y,validationErrors:Me}=reactAria.useComboBox({...C,inputRef:E,defaultItems:s,buttonRef:S,listBoxRef:N,popoverRef:O,validationState:u==="error"?"invalid":"valid"},I),Ee=C.errorMessage||Me.join(" "),Ce=ge({...C,errorMessage:Ee,descriptionProps:Y,errorMessageProps:J,labelPosition:m});Ee&&(u="error");let{hoverProps:Oe,isHovered:Je}=reactAria.useHover({isDisabled:C.isDisabled}),{isFocused:ne,focusProps:ye,isFocusVisible:qt}=reactAria.useFocusRing(),Gt=yr({isReadOnly:C.isReadOnly,validationState:u}),qr=utils.filterTruthyValues({"data-read-only":C.isReadOnly,"data-disabled":C.isDisabled,"data-validation-state":u,"data-focused":ne,"data-focus-visible":qt}),{labelProps:Kt,fieldProps:X}=reactAria.useLabel({label:i,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"aria-describedby":C["aria-describedby"],"aria-details":C["aria-details"]}),{keyboardProps:q}=reactAria.useKeyboard({onKeyDown:W=>{C.allowsCustomValue&&W.key==="Enter"&&P?.(F.value?.toString()??"");}}),{focusProps:ce}=reactAria.useFocus({onBlur:()=>{C.allowsCustomValue&&F.value&&P?.(F.value?.toString()??"");}});return jsxRuntime.jsx(kt.Provider,{value:I,children:jsxRuntime.jsxs("div",{className:utils.classNames(Rg({labelPosition:m}),r,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:e,ref:$,children:[i||m==="start"&&Ce?jsxRuntime.jsxs("div",{className:Eg({labelPosition:m,hasMessage:!!Ce}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(j,Kt),className:Mg({isDisabled:C.isDisabled}),children:i}),m==="start"&&Ce]}):null,jsxRuntime.jsxs("div",{...Oe,className:Dg({validationState:u,isHovered:Je,isFocused:ne,variant:b,isReadOnly:!!C.isReadOnly,isDisabled:!!C.isDisabled}),ref:B,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(F,H,ye,qr,X,ce,q,z==="number"?{type:"number",min:h,max:_,onKeyDown:W=>{(W.key==="ArrowUp"||W.key==="ArrowDown")&&W.preventDefault();}}:null),id:C.id,ref:E,className:utils.classNames($g({isDisabled:C.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",o),style:t}),Gt&&g?jsxRuntime.jsx(Gt,{className:Tg({validationState:u,isReadOnly:C.isReadOnly}),size:16}):null,jsxRuntime.jsx(K,{...V,ref:S,variant:"popover",label:y,className:Ng({isFocusVisible:!C.isDisabled&&!C.isReadOnly&&qt,isHovered:!C.isDisabled&&!C.isReadOnly&&Je,isOpen:I.isOpen})})]}),jsxRuntime.jsx(we,{ref:O,triggerRef:B,state:I,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(me,{...te,items:s,ref:N,renderOption:f,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(lt,"BaselineUI-ComboBox-ListBox")})}),m==="top"&&Ce]})})});Bg.displayName="ComboBox";var Og=x({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var ql=wt__default.default.forwardRef(({enableReorder:r,...e},t)=>r?jsxRuntime.jsx(Fg,{ref:t,...e}):jsxRuntime.jsx(Gl,{ref:t,...e}));ql.displayName="GridListItem";var Gl=wt__default.default.forwardRef(({item:r,state:e,dropState:t,renderGridItem:o,dragHandleProps:a},n)=>{let i=oe(n),s=reactAria.useGridListItem({node:r},e,i),l=e.selectionManager.selectionMode!=="none"&&e.selectionManager.selectionBehavior==="toggle",{checkboxProps:p}=reactAria.useGridListSelectionCheckbox({key:r.key},e),c={...s,checkBoxProps:l?p:void 0,dragHandleProps:a};return jsxRuntime.jsxs("div",{"data-grid-list-item-key":r.key,children:[t?jsxRuntime.jsx(Wt,{target:{type:"item",key:r.key,dropPosition:"before"},dropState:t}):null,o?o(r,c,i):null,t&&e.collection.getKeyAfter(r.key)==null?jsxRuntime.jsx(Wt,{target:{type:"item",key:r.key,dropPosition:"after"},dropState:t}):null]},r.key)});Gl.displayName="BaseGridListItem";var Fg=wt__default.default.forwardRef(({dragState:r,item:e,...t},o)=>{let a=reactAria.useDraggableItem({key:e.key,hasDragButton:true},r);return jsxRuntime.jsx(Gl,{item:e,dragHandleProps:a,ref:o,...t})});Fg.displayName="DraggableGridListItem";var xT=r=>{r.key==="Enter"||r.key==="Escape"||r.stopPropagation();},Hg=wt__default.default.forwardRef(({className:r,style:e,isEditing:t=false,"data-block-id":o,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=false,layout:l="stack",orientation:p="vertical",renderGridItem:c,...d},m)=>{let u=pe(),b=reactStately.useListState({...d,children:u}),y=wt__default.default.useRef(null),f=oe(m),{gridProps:g}=reactAria.useGridList(d,b,f);sa({handle:n,type:"gridlist"},b,f);let{collectionProps:v,dragState:h,dropState:_}=ra({...d,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:y,getItems:w=>[...w].map(C=>{let k=b.collection.getItem(C);return utils.invariant(k,"Expected item to be defined."),{key:k.key.toString()}})},b,f),z=t?xT:g.onKeyDownCapture,P={state:b,dragState:h,dropState:_,enableReorder:s,renderGridItem:c};return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(g,v),className:utils.classNames("BaselineUI-GridList",r),"data-block-id":o,"data-block-class":a,style:e,ref:f,"aria-rowcount":b.collection.size,onKeyDownCapture:z,children:[[...b.collection].map(w=>jsxRuntime.jsx(ql,{item:w,...P},w.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:w=>jsxRuntime.jsx(An,{items:w,ulRef:f,containerClassName:".BaselineUI-GridList",previewClassName:Og(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});Hg.displayName="GridList";var Vg="_1yep5z6f5",Ug="_1dc3b8m0";var qg=wt__default.default.forwardRef(({className:r,selectionMode:e,style:t,"data-block-id":o,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...l},p)=>{let c=oe(p),d=pe(),m=reactStately.useListState({...l,selectionMode:e,suppressTextValueWarning:true,children:d}),{actionGroupProps:u}=actiongroup.useActionGroup({...l,selectionMode:e,children:d},m,c),b=[...m.collection].map(y=>(utils.invariant(y.value),jsxRuntime.jsx(TT,{item:y,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},y.key)));return i?jsxRuntime.jsxs(D,{...u,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:[jsxRuntime.jsx(i,{"aria-hidden":"true",size:24,className:Vg}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:b})]}):jsxRuntime.jsx(D,{...u,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",r),"data-block-id":o,"data-block-class":a,style:t,ref:c,children:b})});qg.displayName="ActionGroup";var TT=({item:r,state:e,tooltipProps:t,renderActionItem:o,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:r.key},e),s=n||e.selectionManager.isDisabled(r.key),l=e.selectionManager.isSelected(r.key);utils.invariant(r.value);let{icon:p}=r.value;utils.invariant(p);let c=wt.useMemo(()=>(utils.invariant(r.value),typeof t=="function"?t(r.value):t),[t,r.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(r.key);}}),children:jsxRuntime.jsx(ie,{text:r.textValue,size:"sm",variant:"inverse",includeArrow:false,offset:4,...c,children:o?.(r,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(L,{variant:"tertiary",icon:p,"aria-label":r.textValue,size:"sm",isDisabled:s,className:utils.classNames({[Ug]:l},"BaselineUI-ActionGroup-Item")})})})};var Gg="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Kg="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var Yg=wt__default.default.forwardRef(({className:r,style:e,items:t,optionsContainerClassName:o,label:a,icon:n,value:i,defaultValue:s,onChange:l,isDisabled:p,optionClassName:c,optionStyle:d,labelPosition:m="top","data-block-id":u,"data-block-class":b,shouldFocusWrap:y,tooltip:f=true,...g},v)=>{let h=wt.useMemo(()=>t.map(z=>({id:z.color,label:z.label})),[t]),_=reactAria.useId();return wt.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,{...Ci(g),className:utils.classNames("BaselineUI-ColorSwatchPicker",r),"data-block-id":u,"data-block-class":b,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:e,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(Q,{id:_,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(me,{className:utils.classNames(Kg,o),selectionMode:"single",items:h,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?h.map(z=>z.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:z=>{l?.([...z][0]);},optionClassName:c,optionStyle:d,renderOption:({key:z,textValue:P},{isSelected:w,isFocusVisible:C,isDisabled:k,optionProps:$},R)=>jsxRuntime.jsx("li",{...$,"data-disabled":k,className:utils.classNames(Gg,$.className),ref:R,children:jsxRuntime.jsx(ft,{isFocusVisible:C,color:z,isSelected:w,"aria-label":P,isInteractive:true,isDisabled:k,tooltip:f})}),shouldFocusWrap:y,...g,"aria-labelledby":a?_:g["aria-labelledby"]})]})});Yg.displayName="ColorSwatchPicker";var Zg=x({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),Fn="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var Zl="\u2013";function jn({segment:r,state:e}){let t=wt__default.default.useRef(null),{segmentProps:o}=reactAria.useDateSegment(r,e,t),{focusProps:a,isFocused:n}=reactAria.useFocusRing(),i=wt.useMemo(()=>{let{text:s,type:l}=r;switch(l){case "hour":return s.replaceAll(Zl,"H");case "minute":return s.replaceAll(Zl,"M");case "second":return s.replaceAll(Zl,"S");default:return s}},[r]);return jsxRuntime.jsx(D,{...reactAria.mergeProps(o,a),typography:"label.md.medium",color:r.isPlaceholder?"text.placeholder":"text.primary",backgroundColor:n?"support.info.subtle":void 0,ref:t,marginLeft:r.type==="timeZoneName"?"xs":void 0,className:Zg({isSeparator:r.text===":"||r.text==="/"}),children:r.isPlaceholder?i:r.text})}var Jg=wt__default.default.forwardRef(({className:r,labelPosition:e,"data-block-id":t,"data-block-class":o,...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=wt__default.default.useRef(null),{labelProps:c,fieldProps:d,descriptionProps:m,errorMessageProps:u,validationErrors:b,isInvalid:y,inputProps:f}=reactAria.useTimeField(s,l,p),g=a.errorMessage||b.join(" "),v=ge({...a,errorMessage:g,descriptionProps:m,errorMessageProps:u,labelPosition:e}),{focusProps:h,isFocused:_}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs($t,{className:utils.classNames("BaselineUI-TimeField",r),labelProps:c,fieldProps:d,ref:n,wrapperRef:p,wrapperClassName:Fn,labelPosition:e,message:v,isFocused:_,"data-block-id":t,"data-block-class":o,isInvalid:y,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...f})}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",paddingRight:"md",...h,children:l.segments.map((z,P)=>jsxRuntime.jsx(jn,{segment:z,state:l},P))})]})});Jg.displayName="TimeField";var Qg="_10dw1p96",ev="_10dw1p95",tv=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 av(r,e){if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(e);return wt.isValidElement(t)?r:t}return r}var nv=({context:r,depth:e,children:t,item:o,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:l,primaryActionAriaLabel:p,secondaryActionAriaLabel:c,onRename:d,onAction:m,renderItemTitle:u=b=>b.data.label})=>{let{formatMessage:b}=A(),{hoverProps:y,isHovered:f}=reactAria.useHover({}),g=wt.useRef(null),{onKeyDown:v,...h}=r.interactiveElementProps;delete h.onFocus,delete h.onClick;let _=focus.createFocusManager(g),z=wt.useCallback(I=>{if(I.key==="ArrowRight"&&(r.isExpanded||!o.children?.length))g.current?.setAttribute("tabindex","-1"),I.preventDefault(),I.stopPropagation(),_.focusNext();else switch(I.key){case "ArrowLeft":{_.focusPrevious()?(I.preventDefault(),I.stopPropagation()):(v?.(I),r.focusItem(true));break}case "Enter":{r.toggleExpandedState();break}default:v?.(I);}},[r,_,v,o,g]),P=wt.useMemo(()=>{let I=av(s,o.index),S=av(l,o.index),E=typeof p=="function"?p(o.index):p,N=typeof c=="function"?c(o.index):c;return I||S?jsxRuntime.jsxs(D,{display:"flex",flexDirection:"row",children:[I?jsxRuntime.jsx(ke,{icon:I,"aria-label":E,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(o.index);},tooltip:true}):null,S?jsxRuntime.jsx(ke,{icon:S,"aria-label":N,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{n?.(o.index);},tooltip:true}):null]}):null},[s,o.index,l,p,c,a,n]),w=wt.useCallback(I=>{I.key==="Enter"?(d?.({key:o.index,value:I.target.value}),r.stopRenamingItem()):I.key==="Escape"?(r.stopRenamingItem(),g.current?.setAttribute("tabindex","0"),g.current?.focus()):I.key!=="ArrowRight"&&I.key!=="ArrowLeft"&&I.key!=="ArrowUp"&&I.key!=="ArrowDown"&&!I.metaKey&&I.continuePropagation();},[o.index,r,d,g]),C=o.data.icon,k=!!d,{pressProps:$}=reactAria.usePress({onPress:()=>{m?.(o.index);}}),{isFocusVisible:R,focusProps:T}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:z,onFocus:()=>{r.focusItem(false);}},$,T,y,r.itemContainerWithoutChildrenProps,h),className:utils.classNames(ev,tv({isHovered:f,isSelected:r.isSelected,isFocusVisible:R,isRenaming:r.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":o.index,"data-expanded":o.isFolder?r.isExpanded:void 0,"aria-expanded":o.isFolder?r.isExpanded:void 0,"data-selected":r.isSelected,"aria-selected":r.isSelected,"data-depth":e,"aria-level":e+1,"aria-posinset":o.data.posInset,"aria-setsize":o.data.setSize,"aria-label":o.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"?P: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(${e*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(L,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{r.toggleExpandedState();},"aria-label":b(r.isExpanded?Jl.collapse:Jl.expand),style:{visibility:o.children?.length?"visible":"hidden"},className:utils.classNames(Qg,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:true}),C?jsxRuntime.jsx(C,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(D,{paddingLeft:"sm",paddingY:r.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:I=>{k&&(I.stopPropagation(),I.preventDefault(),r.startRenamingItem());},children:[r.isRenaming?jsxRuntime.jsx("div",{onClick:I=>{I.stopPropagation();},children:jsxRuntime.jsx(pt,{defaultValue:o.data.label,autoFocus:true,onBlur:I=>{d?.({key:o.index,value:I.target.value}),r.stopRenamingItem();},"aria-label":b(Jl.rename),onKeyDown:w,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(Q,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:u(o)}),o.data.description?jsxRuntime.jsx(Q,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:o.data.description}):null]})]}),i==="end"?P:null]})}),t]})},Jl=G({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function y9(r,{posInset:e,setSize:t}){return {index:r.id,children:r.children?r.children.map(o=>o.id):[],data:{label:r.label,description:r.description,icon:r.icon,...r.data,posInset:e,setSize:t},isFolder:!!r.children?.length}}function b9(r,e){let t={};function o(a,n,i){if(t[a.id]=e(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)o(a.children[s],s+1,a.children.length);}return o(r,0,0),t}var pv=wt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,actionsPosition:m="start",onRename:u,onAction:b,renderItemTitle:y,...f},g)=>{let v=pe(),h=wt.useRef(null),_=reactStately.useTreeState({...f,selectionMode:"multiple",items:a.children,children:v}),z=wt.useMemo(()=>Object.fromEntries(Object.entries(b9(a,y9)).map(([R,T])=>[R,{...T,canRename:!!u}])),[a,u]),P=reactAria.useId(),[w,C]=wt__default.default.useState(a.children?.[0]?.id??""),k=wt.useRef(w),$=wt.useMemo(()=>({[`tree-${P}`]:{focusedItem:w,expandedItems:[..._.expandedKeys],selectedItems:[..._.selectionManager.selectedKeys]}}),[w,_.expandedKeys,_.selectionManager.selectedKeys,P]);return wt.useEffect(()=>{if(!h.current)return;let R=h.current.getRootNode(),T=R instanceof ShadowRoot,I=h.current?.contains(R?.activeElement??null);T&&I&&R?.querySelector(`[data-rct-item-id="${w}"]`)?.focus();},[w]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:z,getItemTitle:R=>R.data?.label,viewState:$,onExpandItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys,R.index])),f.onExpand?.(R.index.toString());},onFocusItem:R=>{C(R.index),R.index&&(k.current=R.index);},onCollapseItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys].filter(T=>T!==R.index))),f.onCollapse?.(R.index.toString());},onSelectItems:R=>{_.selectionManager.setSelectedKeys(new Set(R));},renderItem:R=>jsxRuntime.jsx(nv,{...R,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,onRename:u,onAction:b,renderItemTitle:y}),renderLiveDescriptorContainer:({children:R})=>jsxRuntime.jsx(he,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:R})}),renderTreeContainer:({containerProps:R,children:T})=>jsxRuntime.jsx("div",{...et(R,{onBlur:I=>{I.currentTarget.contains(I.relatedTarget)||I.currentTarget.querySelector(`[data-key="${k.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":t,"data-block-class":o,style:{...e,...R.style},className:utils.classNames(r,"BaselineUI-TreeView"),ref:M(g,R.ref,h),role:"treegrid",children:T}),renderItemsContainer:({children:R})=>R,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${P}`,rootItem:n,treeLabel:f["aria-label"],treeLabelledBy:f["aria-labelledby"]})})});pv.displayName="TreeView";var C9=wt.forwardRef(({className:r,isCollapsible:e=false,...t},o)=>{let a=wt.useRef(null),n=reactAria.useId();return wt.useImperativeHandle(o,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",r),collapsible:e,ref:a,id:n,...t})});C9.displayName="Panel";var $9=wt.forwardRef(({className:r,...e},t)=>{let o=wt.useRef(null);return wt.useImperativeHandle(t,()=>({setLayout:o.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",r),ref:o,...e})});$9.displayName="PanelGroup";var cv="_6abhjk0";var E9=({className:r,isDisabled:e=false,...t})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:e,className:utils.classNames(cv,"BaselineUI-PanelResizeHandle",r),...t});E9.displayName="PanelResizeHandle";var dv=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:[]}),uv="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var F9=()=>{};function j9({state:r,...e}){let t=wt__default.default.useRef(null),{toastProps:o,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(e,r,t),l=wt.useMemo(()=>({root:o,title:n,content:a,description:i,close:s}),[o,n,a,i,s]),{canClose:p=true,...c}=e.toast.content;return jsxRuntime.jsx(rn,{elementProps:l,...c,className:utils.classNames(dv({variant:c.variant||"info"}),c.className),onClose:p?F9:void 0})}var fv=wt__default.default.forwardRef(({state:r,style:e,className:t,...o},a)=>{let n=oe(a),{regionProps:i}=toast$1.useToastRegion(o,r,n),s={zIndex:1,...e,...i.style};return jsxRuntime.jsx("div",{...i,ref:n,className:utils.classNames(uv,t),style:s,children:r.visibleToasts.map(l=>jsxRuntime.jsx(j9,{toast:l,state:r},l.key))})});fv.displayName="ToastRegion";var yv=wt__default.default.forwardRef(({toastQueue:r,portalContainer:e,...t},o)=>{let a=toast.useToastQueue(r),n=ve(e);return a.visibleToasts.length>0?jsxRuntime.jsx(he,{portalContainer:n,ref:o,children:jsxRuntime.jsx(fv,{state:a,...t})}):null});yv.displayName="GlobalToastRegion";function Ye(r,e){return r-e*Math.floor(r/e)}var bv=1721426;function ht(r,e,t,o){e=_t(r,e);let a=e-1,n=-2;return t<=2?n=0:Ze(e)&&(n=-1),bv-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*t-362)/12+n+o)}function Ze(r){return r%4===0&&(r%100!==0||r%400===0)}function _t(r,e){return r==="BC"?1-e:e}function Vt(r){let e="AD";return r<=0&&(e="BC",r=1-r),[e,r]}var H9={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(e){let t=e,o=t-bv,a=Math.floor(o/146097),n=Ye(o,146097),i=Math.floor(n/36524),s=Ye(n,36524),l=Math.floor(s/1461),p=Ye(s,1461),c=Math.floor(p/365),d=a*400+i*100+l*4+c+(i!==4&&c!==4?1:0),[m,u]=Vt(d),b=t-ht(m,u,1,1),y=2;t<ht(m,u,3,1)?y=0:Ze(u)&&(y=1);let f=Math.floor(((b+y)*12+373)/367),g=t-ht(m,u,f,1)+1;return new Z(m,u,f,g)}toJulianDay(e){return ht(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return H9[Ze(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Ze(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return ["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year);}constructor(){this.identifier="gregory";}};function tp(r,e){return r.calendar.toJulianDay(r)-e.calendar.toJulianDay(e)}function vv(r,e){return gv(r)-gv(e)}function gv(r){return r.hour*36e5+r.minute*6e4+r.second*1e3+r.millisecond}var ep=null;function rp(){return ep==null&&(ep=new Intl.DateTimeFormat().resolvedOptions().timeZone),ep}function op(r){r=Un(r,new le);let e=_t(r.era,r.year);return xv(e,r.month,r.day,r.hour,r.minute,r.second,r.millisecond)}function xv(r,e,t,o,a,n,i){let s=new Date;return s.setUTCHours(o,a,n,i),s.setUTCFullYear(r,e-1,t),s.getTime()}function hv(r,e){if(e==="UTC")return 0;if(r>0&&e===rp())return new Date(r).getTimezoneOffset()*-6e4;let{year:t,month:o,day:a,hour:n,minute:i,second:s}=Cv(r,e);return xv(t,o,a,n,i,s,0)-Math.floor(r/1e3)*1e3}var _v=new Map;function Cv(r,e){let t=_v.get(e);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:false,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),_v.set(e,t));let o=t.formatToParts(new Date(r)),a={};for(let n of o)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 zv=864e5;function V9(r,e,t,o){return (t===o?[t]:[t,o]).filter(n=>U9(r,e,n))}function U9(r,e,t){let o=Cv(t,e);return r.year===o.year&&r.month===o.month&&r.day===o.day&&r.hour===o.hour&&r.minute===o.minute&&r.second===o.second}function Pv(r,e,t="compatible"){let o=Vn(r);if(e==="UTC")return op(o);if(e===rp()&&t==="compatible"){o=Un(o,new le);let l=new Date,p=_t(o.era,o.year);return l.setFullYear(p,o.month-1,o.day),l.setHours(o.hour,o.minute,o.second,o.millisecond),l.getTime()}let a=op(o),n=hv(a-zv,e),i=hv(a+zv,e),s=V9(o,e,a-n,a-i);if(s.length===1)return s[0];if(s.length>1)switch(t){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(t){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 ap(r,e,t="compatible"){return new Date(Pv(r,e,t))}function Vn(r,e){let t=0,o=0,a=0,n=0;if("timeZone"in r)({hour:t,minute:o,second:a,millisecond:n}=r);else if("hour"in r&&true)return r;return new qn(r.calendar,r.era,r.year,r.month,r.day,t,o,a,n)}function Un(r,e){if(r.calendar.identifier===e.identifier)return r;let t=e.fromJulianDay(r.calendar.toJulianDay(r)),o=r.copy();return o.calendar=e,o.era=t.era,o.year=t.year,o.month=t.month,o.day=t.day,zt(o),o}function Kn(r,e){let t=r.copy(),o="hour"in t?W9(t,e):0;np(t,e.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,r),t.month+=e.months||0,ip(t),wv(t),t.day+=(e.weeks||0)*7,t.day+=e.days||0,t.day+=o,q9(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let a=t.calendar.getYearsInEra(t);if(t.year>a){var n,i;let l=(n=(i=t.calendar).isInverseEra)===null||n===void 0?void 0:n.call(i,t);t.year=a,t.month=l?1:t.calendar.getMonthsInYear(t),t.day=l?1:t.calendar.getDaysInMonth(t);}t.month<1&&(t.month=1,t.day=1);let s=t.calendar.getMonthsInYear(t);return t.month>s&&(t.month=s,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function np(r,e){var t,o;!((t=(o=r.calendar).isInverseEra)===null||t===void 0)&&t.call(o,r)&&(e=-e),r.year+=e;}function ip(r){for(;r.month<1;)np(r,-1),r.month+=r.calendar.getMonthsInYear(r);let e=0;for(;r.month>(e=r.calendar.getMonthsInYear(r));)r.month-=e,np(r,1);}function q9(r){for(;r.day<1;)r.month--,ip(r),r.day+=r.calendar.getDaysInMonth(r);for(;r.day>r.calendar.getDaysInMonth(r);)r.day-=r.calendar.getDaysInMonth(r),r.month++,ip(r);}function wv(r){r.month=Math.max(1,Math.min(r.calendar.getMonthsInYear(r),r.month)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day));}function zt(r){r.calendar.constrainDate&&r.calendar.constrainDate(r),r.year=Math.max(1,Math.min(r.calendar.getYearsInEra(r),r.year)),wv(r);}function G9(r){let e={};for(let t in r)typeof r[t]=="number"&&(e[t]=-r[t]);return e}function sp(r,e){return Kn(r,G9(e))}function lp(r,e){let t=r.copy();return e.era!=null&&(t.era=e.era),e.year!=null&&(t.year=e.year),e.month!=null&&(t.month=e.month),e.day!=null&&(t.day=e.day),zt(t),t}function kv(r,e){let t=r.copy();return e.hour!=null&&(t.hour=e.hour),e.minute!=null&&(t.minute=e.minute),e.second!=null&&(t.second=e.second),e.millisecond!=null&&(t.millisecond=e.millisecond),Iv(t),t}function K9(r){r.second+=Math.floor(r.millisecond/1e3),r.millisecond=Gn(r.millisecond,1e3),r.minute+=Math.floor(r.second/60),r.second=Gn(r.second,60),r.hour+=Math.floor(r.minute/60),r.minute=Gn(r.minute,60);let e=Math.floor(r.hour/24);return r.hour=Gn(r.hour,24),e}function Iv(r){r.millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23));}function Gn(r,e){let t=r%e;return t<0&&(t+=e),t}function W9(r,e){return r.hour+=e.hours||0,r.minute+=e.minutes||0,r.second+=e.seconds||0,r.millisecond+=e.milliseconds||0,K9(r)}function pp(r,e,t,o){let a=r.copy();switch(e){case "era":{let s=r.calendar.getEras(),l=s.indexOf(r.era);if(l<0)throw new Error("Invalid era: "+r.era);l=xt(l,t,0,s.length-1,o?.round),a.era=s[l],zt(a);break}case "year":var n,i;!((n=(i=a.calendar).isInverseEra)===null||n===void 0)&&n.call(i,a)&&(t=-t),a.year=xt(r.year,t,-1/0,9999,o?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,r);break;case "month":a.month=xt(r.month,t,1,r.calendar.getMonthsInYear(r),o?.round);break;case "day":a.day=xt(r.day,t,1,r.calendar.getDaysInMonth(r),o?.round);break;default:throw new Error("Unsupported field "+e)}return r.calendar.balanceDate&&r.calendar.balanceDate(a),zt(a),a}function Sv(r,e,t,o){let a=r.copy();switch(e){case "hour":{let n=r.hour,i=0,s=23;if(o?.hourCycle===12){let l=n>=12;i=l?12:0,s=l?23:11;}a.hour=xt(n,t,i,s,o?.round);break}case "minute":a.minute=xt(r.minute,t,0,59,o?.round);break;case "second":a.second=xt(r.second,t,0,59,o?.round);break;case "millisecond":a.millisecond=xt(r.millisecond,t,0,999,o?.round);break;default:throw new Error("Unsupported field "+e)}return a}function xt(r,e,t,o,a=false){if(a){r+=Math.sign(e),r<t&&(r=o);let n=Math.abs(e);e>0?r=Math.ceil(r/n)*n:r=Math.floor(r/n)*n,r>o&&(r=t);}else r+=e,r<t?r=o-(t-r-1):r>o&&(r=t+(r-o-1));return r}function Rv(r){return `${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}:${String(r.second).padStart(2,"0")}${r.millisecond?String(r.millisecond/1e3).slice(1):""}`}function cp(r){let e=Un(r,new le),t;return e.era==="BC"?t=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):t=String(e.year).padStart(4,"0"),`${t}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function $v(r){return `${cp(r)}T${Rv(r)}`}function Tv(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dp(r,e,t){Tv(r,e),e.set(r,t);}function Dv(r){let e=typeof r[0]=="object"?r.shift():new le,t;if(typeof r[0]=="string")t=r.shift();else {let i=e.getEras();t=i[i.length-1];}let o=r.shift(),a=r.shift(),n=r.shift();return [e,t,o,a,n]}var Z9=new WeakMap,Z=class r{copy(){return this.era?new r(this.calendar,this.era,this.year,this.month,this.day):new r(this.calendar,this.year,this.month,this.day)}add(e){return Kn(this,e)}subtract(e){return sp(this,e)}set(e){return lp(this,e)}cycle(e,t,o){return pp(this,e,t,o)}toDate(e){return ap(this,e)}toString(){return cp(this)}compare(e){return tp(this,e)}constructor(...e){dp(this,Z9,{writable:true,value:void 0});let[t,o,a,n,i]=Dv(e);this.calendar=t,this.era=o,this.year=a,this.month=n,this.day=i,zt(this);}};var X9=new WeakMap,qn=class r{copy(){return this.era?new r(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new r(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Kn(this,e)}subtract(e){return sp(this,e)}set(e){return lp(kv(this,e),e)}cycle(e,t,o){switch(e){case "era":case "year":case "month":case "day":return pp(this,e,t,o);default:return Sv(this,e,t,o)}}toDate(e,t){return ap(this,e,t)}toString(){return $v(this)}compare(e){let t=tp(this,e);return t===0?vv(this,Vn(e)):t}constructor(...e){dp(this,X9,{writable:true,value:void 0});let[t,o,a,n,i]=Dv(e);this.calendar=t,this.era=o,this.year=a,this.month=n,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,zt(this);}};var Or=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],J9=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Wn=[1867,1911,1925,1988,2018],Ct=["meiji","taisho","showa","heisei","reiwa"];function Mv(r){let e=Or.findIndex(([t,o,a])=>r.year<t||r.year===t&&r.month<o||r.year===t&&r.month===o&&r.day<a);return e===-1?Or.length-1:e===0?0:e-1}function up(r){let e=Wn[Ct.indexOf(r.era)];if(!e)throw new Error("Unknown era: "+r.era);return new Z(r.year+e,r.month,r.day)}var Yn=class extends le{fromJulianDay(e){let t=super.fromJulianDay(e),o=Mv(t);return new Z(this,Ct[o],t.year-Wn[o],t.month,t.day)}toJulianDay(e){return super.toJulianDay(up(e))}balanceDate(e){let t=up(e),o=Mv(t);Ct[o]!==e.era&&(e.era=Ct[o],e.year=t.year-Wn[o]),this.constrainDate(e);}constrainDate(e){let t=Ct.indexOf(e.era),o=J9[t];if(o!=null){let[a,n,i]=o,s=a-Wn[t];e.year=Math.max(1,Math.min(s,e.year)),e.year===s&&(e.month=Math.min(n,e.month),e.month===n&&(e.day=Math.min(i,e.day)));}if(e.year===1&&t>=0){let[,a,n]=Or[t];e.month=Math.max(a,e.month),e.month===a&&(e.day=Math.max(n,e.day));}}getEras(){return Ct}getYearsInEra(e){let t=Ct.indexOf(e.era),o=Or[t],a=Or[t+1];if(a==null)return 9999-o[0]+1;let n=a[0]-o[0];return (e.month<a[1]||e.month===a[1]&&e.day<a[2])&&n++,n}getDaysInMonth(e){return super.getDaysInMonth(up(e))}getMinimumMonthInYear(e){let t=Ev(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Ev(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese";}};function Ev(r){if(r.year===1){let e=Ct.indexOf(r.era);return Or[e]}}var Lv=-543,Zn=class extends le{fromJulianDay(e){let t=super.fromJulianDay(e),o=_t(t.era,t.year);return new Z(this,o-Lv,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Nv(e))}getEras(){return ["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Nv(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist";}};function Nv(r){let[e,t]=Vt(r.year+Lv);return new Z(e,t,r.month,r.day)}var Xn=1911;function Ov(r){return r.era==="minguo"?r.year+Xn:1-r.year+Xn}function Av(r){let e=r-Xn;return e>0?["minguo",e]:["before_minguo",1-e]}var Jn=class extends le{fromJulianDay(e){let t=super.fromJulianDay(e),o=_t(t.era,t.year),[a,n]=Av(o);return new Z(this,a,n,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Bv(e))}getEras(){return ["before_minguo","minguo"]}balanceDate(e){let[t,o]=Av(Ov(e));e.era=t,e.year=o;}isInverseEra(e){return e.era==="before_minguo"}getDaysInMonth(e){return super.getDaysInMonth(Bv(e))}getYearsInEra(e){return e.era==="before_minguo"?9999:9999-Xn}constructor(...e){super(...e),this.identifier="roc";}};function Bv(r){let[e,t]=Vt(Ov(r));return new Z(e,t,r.month,r.day)}var Fv=1948320,jv=[0,31,62,93,124,155,186,216,246,276,306,336],Qn=class{fromJulianDay(e){let t=e-Fv,o=1+Math.floor((33*t+3)/12053),a=365*(o-1)+Math.floor((8*o+21)/33),n=t-a,i=n<216?Math.floor(n/31):Math.floor((n-6)/30),s=n-jv[i]+1;return new Z(this,o,i+1,s)}toJulianDay(e){let t=Fv-1+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=jv[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||Ye(25*e.year+11,33)<8?30:29}getEras(){return ["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian";}};var mp=78,Hv=80,ei=class extends le{fromJulianDay(e){let t=super.fromJulianDay(e),o=t.year-mp,a=e-ht(t.era,t.year,1,1),n;a<Hv?(o--,n=Ze(t.year-1)?31:30,a+=n+155+90+10):(n=Ze(t.year)?31:30,a-=Hv);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 Z(this,o,i,s)}toJulianDay(e){let t=e.year+mp,[o,a]=Vt(t),n,i;return Ze(a)?(n=31,i=ht(o,a,3,21)):(n=30,i=ht(o,a,3,22)),e.month===1?i+e.day-1:(i+=n+Math.min(e.month-2,5)*31,e.month>=8&&(i+=(e.month-7)*30),i+=e.day-1,i)}getDaysInMonth(e){return e.month===1&&Ze(e.year+mp)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return ["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian";}};var ri=1948440,Vv=1948439,Re=1300,Fr=1600,Q9=460322;function oi(r,e,t,o){return o+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+r-1}function Kv(r,e,t){let o=Math.floor((30*(t-e)+10646)/10631),a=Math.min(12,Math.ceil((t-(29+oi(e,o,1,1)))/29.5)+1),n=t-oi(e,o,a,1)+1;return new Z(r,o,a,n)}function Uv(r){return (14+11*r)%30<11}var Hr=class{fromJulianDay(e){return Kv(this,ri,e)}toJulianDay(e){return oi(ri,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return e.month===12&&Uv(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Uv(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return ["AH"]}constructor(){this.identifier="islamic-civil";}},ai=class extends Hr{fromJulianDay(e){return Kv(this,Vv,e)}toJulianDay(e){return oi(Vv,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla";}},e3="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",fp,jr;function ti(r){return Q9+jr[r-Re]}function Yo(r,e){let t=r-Re,o=1<<11-(e-1);return (fp[t]&o)===0?29:30}function qv(r,e){let t=ti(r);for(let o=1;o<e;o++)t+=Yo(r,o);return t}function Gv(r){return jr[r+1-Re]-jr[r-Re]}var ni=class extends Hr{fromJulianDay(e){let t=e-ri,o=ti(Re),a=ti(Fr);if(t<o||t>a)return super.fromJulianDay(e);{let n=Re-1,i=1,s=1;for(;s>0;){n++,s=t-ti(n)+1;let l=Gv(n);if(s===l){i=12;break}else if(s<l){let p=Yo(n,i);for(i=1;s>p;)s-=p,i++,p=Yo(n,i);break}}return new Z(this,n,i,t-qv(n,i)+1)}}toJulianDay(e){return e.year<Re||e.year>Fr?super.toJulianDay(e):ri+qv(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Re||e.year>Fr?super.getDaysInMonth(e):Yo(e.year,e.month)}getDaysInYear(e){return e.year<Re||e.year>Fr?super.getDaysInYear(e):Gv(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",fp||(fp=new Uint16Array(Uint8Array.from(atob(e3),e=>e.charCodeAt(0)).buffer)),!jr){jr=new Uint32Array(Fr-Re+1);let e=0;for(let t=Re;t<=Fr;t++){jr[t-Re]=e;for(let o=1;o<=12;o++)e+=Yo(t,o);}}}};var Wv=347997,Yv=1080,Zv=24*Yv,t3=29,r3=12*Yv+793,o3=t3*Zv+r3;function Ut(r){return Ye(r*7+1,19)<7}function si(r){let e=Math.floor((235*r-234)/19),t=12084+13753*e,o=e*29+Math.floor(t/25920);return Ye(3*(o+1),7)<3&&(o+=1),o}function a3(r){let e=si(r-1),t=si(r);return si(r+1)-t===356?2:t-e===382?1:0}function Zo(r){return si(r)+a3(r)}function Xv(r){return Zo(r+1)-Zo(r)}function n3(r){let e=Xv(r);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function ii(r,e){if(e>=6&&!Ut(r)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let t=n3(r);return e===2?t===2?30:29:e===3?t===0?29:30:e===6?Ut(r)?30:0:30}var li=class{fromJulianDay(e){let t=e-Wv,o=t*Zv/o3,a=Math.floor((19*o+234)/235)+1,n=Zo(a),i=Math.floor(t-n);for(;i<1;)a--,n=Zo(a),i=Math.floor(t-n);let s=1,l=0;for(;l<i;)l+=ii(a,s),s++;s--,l-=ii(a,s);let p=i-l;return new Z(this,a,s,p)}toJulianDay(e){let t=Zo(e.year);for(let o=1;o<e.month;o++)t+=ii(e.year,o);return t+e.day+Wv}getDaysInMonth(e){return ii(e.year,e.month)}getMonthsInYear(e){return Ut(e.year)?13:12}getDaysInYear(e){return Xv(e.year)}getYearsInEra(){return 9999}getEras(){return ["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Ut(t.year)&&!Ut(e.year)&&t.month>6?e.month--:!Ut(t.year)&&Ut(e.year)&&t.month>6&&e.month++);}constructor(){this.identifier="hebrew";}};var yp=1723856,Jv=1824665,bp=5500;function pi(r,e,t,o){return r+365*e+Math.floor(e/4)+30*(t-1)+o-1}function gp(r,e){let t=Math.floor(4*(e-r)/1461),o=1+Math.floor((e-pi(r,t,1,1))/30),a=e+1-pi(r,t,o,1);return [t,o,a]}function Qv(r){return Math.floor(r%4/3)}function eh(r,e){return e%13!==0?30:Qv(r)+5}var Vr=class{fromJulianDay(e){let[t,o,a]=gp(yp,e),n="AM";return t<=0&&(n="AA",t+=bp),new Z(this,n,t,o,a)}toJulianDay(e){let t=e.year;return e.era==="AA"&&(t-=bp),pi(yp,t,e.month,e.day)}getDaysInMonth(e){return eh(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Qv(e.year)}getYearsInEra(e){return e.era==="AA"?9999:9991}getEras(){return ["AA","AM"]}constructor(){this.identifier="ethiopic";}},ci=class extends Vr{fromJulianDay(e){let[t,o,a]=gp(yp,e);return t+=bp,new Z(this,"AA",t,o,a)}getEras(){return ["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa";}},di=class extends Vr{fromJulianDay(e){let[t,o,a]=gp(Jv,e),n="CE";return t<=0&&(n="BCE",t=1-t),new Z(this,n,t,o,a)}toJulianDay(e){let t=e.year;return e.era==="BCE"&&(t=1-t),pi(Jv,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return e.era==="BCE"&&(t=1-t),eh(t,e.month)}isInverseEra(e){return e.era==="BCE"}balanceDate(e){e.year<=0&&(e.era=e.era==="BCE"?"CE":"BCE",e.year=1-e.year);}getEras(){return ["BCE","CE"]}getYearsInEra(e){return e.era==="BCE"?9999:9715}constructor(...e){super(...e),this.identifier="coptic";}};function vp(r){switch(r){case "buddhist":return new Zn;case "ethiopic":return new Vr;case "ethioaa":return new ci;case "coptic":return new di;case "hebrew":return new li;case "indian":return new ei;case "islamic-civil":return new Hr;case "islamic-tbla":return new ai;case "islamic-umalqura":return new ni;case "japanese":return new Yn;case "persian":return new Qn;case "roc":return new Jn;case "gregory":default:return new le}}var rh=wt__default.default.forwardRef(({className:r,labelPosition:e,"data-block-id":t,"data-block-class":o,...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:vp}),p=wt__default.default.useRef(null),{labelProps:c,fieldProps:d,validationErrors:m,descriptionProps:u,inputProps:b,errorMessageProps:y,isInvalid:f}=reactAria.useDateField(s,l,p),g=a.errorMessage||m.join(" "),v=ge({...a,errorMessage:g,descriptionProps:u,errorMessageProps:y,labelPosition:e}),{focusProps:h,isFocused:_}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs($t,{className:utils.classNames("BaselineUI-DateField",r),labelProps:c,fieldProps:d,ref:n,wrapperRef:p,wrapperClassName:Fn,labelPosition:e,message:v,isFocused:_,"data-block-id":t,"data-block-class":o,isInvalid:f,...a,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...b})}),jsxRuntime.jsx(D,{display:"flex",flexDirection:"row",paddingRight:"md",...h,children:l.segments.map((z,P)=>jsxRuntime.jsx(jn,{segment:z,state:l},P))})]})});rh.displayName="DateField";var oh={x:0,y:0},y3={node:null,setNode:()=>{},coordinates:oh,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:false},Xe=wt__default.default.createContext(y3),ah=({children:r,isDisabled:e=false,coordinates:t,onMove:o})=>{let[a,n]=wt__default.default.useState(null),i=wt__default.default.useRef(null),[s,l]=utils$1.useControlledState(t,oh,d=>{o?.({coordinates:d,boundingRect:i.current});}),p=reactAria.useId(),c=wt__default.default.useMemo(()=>({node:a,setNode:n,coordinates:s,setCoordinates:l,displayId:p,boundsRef:i,isDisabled:e}),[a,s,p,l,n,i,e]);return jsxRuntime.jsx(Xe.Provider,{value:c,children:r})};ah.displayName="Magnifier";var nh="_1yep5z6f6",ih=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"]]}),sh="_1aj2a4vd",lh="_1aj2a4v1",ph="_1aj2a4v4",hp="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",ch="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",dh="_1aj2a4v0",uh="_1aj2a4v5";var fh=r=>jsxRuntime.jsxs("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,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 yh({coordinates:r,setCoordinates:e,boundsRef:t,onKeyDown:o,onKeyUp:a}){let{isDisabled:n}=wt.useContext(Xe);return reactAria.useKeyboard({isDisabled:n,onKeyDown:i=>{o?.(i);let s=i.shiftKey?10:1,l=t.current;if(!l)return;let p;switch(i.key){case "ArrowRight":{i.preventDefault(),p={x:lodash.clamp(r.x+s,0,l.width),y:lodash.clamp(r.y,0,l.height)};break}case "ArrowLeft":{i.preventDefault(),p={x:lodash.clamp(r.x-s,0,l.width),y:lodash.clamp(r.y,0,l.height)};break}case "ArrowDown":{i.preventDefault(),p={x:lodash.clamp(r.x,0,l.width),y:lodash.clamp(r.y+s,0,l.height)};break}case "ArrowUp":{i.preventDefault(),p={x:lodash.clamp(r.x,0,l.width),y:lodash.clamp(r.y-s,0,l.height)};break}}p&&e(p);},onKeyUp:a})}var gh=wt__default.default.forwardRef(({children:r,onPress:e,className:t,style:o,"data-block-id":a,"data-block-class":n,onFocusChange:i,onBlur:s,onFocus:l,onKeyDown:p,onKeyUp:c,...d},m)=>{let{setNode:u,setCoordinates:b,coordinates:y,displayId:f,boundsRef:g,isDisabled:v}=wt.useContext(Xe),h=wt.useRef(null),[_,z]=wt.useState(false),P=interactions.useInteractionModality(),w=Ne();wt.useEffect(()=>{let N=h.current;if(!N||v)return;let O=H=>{let V=N.getBoundingClientRect();g.current=V;let F="clientX"in H?H.clientX:H.touches[0].clientX,te="clientY"in H?H.clientY:H.touches[0].clientY,j={x:lodash.clamp(F-V.left,0,V.width),y:lodash.clamp(te-V.top,0,V.height)};b(j),z(true);},B=()=>{z(false);};return N.addEventListener("mousemove",O),N.addEventListener("touchmove",O),N.addEventListener("mouseleave",B),()=>{N.removeEventListener("mousemove",O),N.removeEventListener("touchmove",O),N.removeEventListener("mouseleave",B);}},[b,g,v]);let{pressProps:C}=reactAria.usePress({isDisabled:v,onPress:N=>{N.pointerType==="keyboard"?e?.({...N,x:y.x,y:y.y}):e?.(N);}}),{focusProps:k,isFocusVisible:$,isFocused:R}=reactAria.useFocusRing(),{focusProps:T}=interactions.useFocus({isDisabled:v,onFocusChange:N=>{if(P==="keyboard")if(N){z(true);let O=h.current?.getBoundingClientRect();if(!O)return;g.current=O,b({x:lodash.clamp(O.width/2,0,O.width),y:lodash.clamp(O.height/2,0,O.height)});}else z(false);i?.(N);},onFocus:l,onBlur:s}),{keyboardProps:I}=yh({coordinates:y,setCoordinates:b,boundsRef:g,onKeyDown:p,onKeyUp:c}),S=wt.useMemo(()=>h.current?utils.getAbsolutePosition(h.current,y):{x:0,y:0},[y]);interactions.useInteractOutside({isDisabled:v,ref:h,onInteractOutside:()=>{z(false);}});let E=wt.useMemo(()=>_&&!v&&(w==="mobile"||P==="keyboard"),[_,v,w,P]);return jsxRuntime.jsxs("div",{ref:M(m,h),className:utils.classNames(sh,"BaselineUI-Magnifier-Content",t),style:o,"data-block-id":a,"data-block-class":n,"aria-controls":f,role:"application",...d,children:[E?jsxRuntime.jsx(he,{children:jsxRuntime.jsx(fh,{style:{left:S.x,top:S.y},className:utils.classNames(dh,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...et(C,k,I,T),ref:u,className:utils.classNames(ih({isDisabled:v,isIndicatorVisible:E}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":$,"data-focused":R,tabIndex:v?void 0:0,children:r})]})});gh.displayName="MagnifierContent";function N3(r){let e=[];for(let t=0;t<r.length;t++){let o=r[t],a=r.getPropertyValue(o);a&&e.push(`${o}: ${a}`);}for(let t of r)if(t.startsWith("--")){let o=r.getPropertyValue(t);o&&e.push(`${t}: ${o}`);}return e.join("; ")}function vh(r){let[e,t]=wt.useState(null),{isDisabled:o}=wt.useContext(Xe);return wt.useEffect(()=>{if(!r||o)return;let a=r,n=re(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(true);c.style.cssText=N3(p);let d=a.getBoundingClientRect();c.style.setProperty("width",`${d.width}px`),c.style.setProperty("height",`${d.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 u of m)u.setAttribute("tabindex","-1");"scrollTop"in a&&(c.scrollTop=a.scrollTop),"scrollLeft"in a&&(c.scrollLeft=a.scrollLeft),t(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();}},[r,o]),e}var _h=8,zh=7,xh=7,Ch=wt__default.default.forwardRef(({className:r,style:e,description:t,scale:o=2,"data-block-id":a,"data-block-class":n},i)=>{let{coordinates:s,node:l,boundsRef:p,displayId:c,isDisabled:d}=wt.useContext(Xe),m=vh(l),u=wt.useMemo(()=>typeof t=="function"?t({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):t,[t,s,p]),b=wt.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(lh,"BaselineUI-Magnifier-Display",r),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:u?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:e,id:c,"data-block-id":a,"data-block-class":n,role:"complementary",children:[jsxRuntime.jsxs("div",{className:ch,children:[m&&!d?jsxRuntime.jsx(ba,{node:m,style:{transform:`scale(${o}) translate(calc(-${b.x*100}% + ${_h*zh/(2*o)}px), calc(-${b.y*100}% + ${_h*xh/(2*o)}px))`},className:utils.classNames(uh,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:zh*xh}).map((y,f)=>f===24?jsxRuntime.jsx("div",{className:utils.classNames(hp,ph)},f):jsxRuntime.jsx("div",{className:hp},f))]}),u?.length?jsxRuntime.jsx(D,{display:"flex",gap:"lg",flexDirection:"column",children:u?.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:nh}),jsxRuntime.jsx(Q,{type:"label",size:"sm",children:y})]},y+g))}):null]})});Ch.displayName="MagnifierDisplay";
|
|
16
|
-
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=ff;exports.AccordionItem=zf;exports.ActionButton=K;exports.ActionGroup=qg;exports.ActionGroupItem=TT;exports.ActionIconButton=L;exports.AlertDialog=En;exports.AudioPlayer=ig;exports.Avatar=xr;exports.Box=D;exports.ButtonSelect=Sg;exports.Checkbox=Nm;exports.ColorInput=wr;exports.ColorSwatch=ft;exports.ColorSwatchPicker=Yg;exports.ComboBox=Bg;exports.DateField=rh;exports.DateFormat=Gm;exports.DeviceProvider=u0;exports.DeviceProviderContext=wa;exports.Dialog=ze;exports.DialogTitle=uu;exports.DomNodeRenderer=ba;exports.Drawer=Da;exports.Editor=Ob;exports.FileUpload=tm;exports.Focusable=$a;exports.FrameProvider=P0;exports.FreehandCanvas=Qy;exports.GlobalToastRegion=yv;exports.GridList=Hg;exports.Group=R1;exports.I18nProvider=jc;exports.IconColorInput=qy;exports.IconColorInputButton=yn;exports.IconSelect=Rf;exports.IconSlider=_u;exports.ImageDropZone=m1;exports.ImageGallery=Cg;exports.InlineAlert=rn;exports.Link=Gu;exports.ListBox=me;exports.Magnifier=ah;exports.MagnifierContent=gh;exports.MagnifierDisplay=Ch;exports.Markdown=Zb;exports.Menu=Va;exports.MessageFormat=S1;exports.Modal=Le;exports.ModalClose=U2;exports.ModalContent=Ue;exports.ModalTrigger=on;exports.NumberFormat=br;exports.NumberInput=Ve;exports.Pagination=qm;exports.Panel=C9;exports.PanelGroup=$9;exports.PanelResizeHandle=E9;exports.Popover=je;exports.PopoverContent=Ae;exports.PopoverTrigger=He;exports.Portal=he;exports.PortalContainerProvider=ha;exports.Preview=v1;exports.ProgressBar=cm;exports.ProgressSpinner=vr;exports.RadioGroup=I1;exports.Reaction=zm;exports.ScrollControlButton=Ub;exports.SearchInput=Nu;exports.Select=ut;exports.Separator=U;exports.Slider=nr;exports.Switch=$u;exports.TabItem=Uf;exports.Tabs=Vf;exports.TagGroup=rf;exports.Text=Q;exports.TextInput=pt;exports.ThemeProvider=Ra;exports.TimeField=Jg;exports.ToggleButton=Wa;exports.ToggleIconButton=ke;exports.Toolbar=xn;exports.Tooltip=ie;exports.Transform=p1;exports.TreeView=pv;exports.defineMessages=G;exports.disableAnimations=iL;exports.enableAnimations=sL;exports.isInsideOverlayContent=GD;exports.isRect=mc;exports.useDevice=Ne;exports.useI18n=A;exports.useImage=er;exports.useIntersectionObserver=Nc;exports.useIsFirstRender=xa;exports.useLocalStorage=Gc;exports.useMutationObserver=YE;exports.usePortalContainer=ve;exports.useResizeObserver=Lc;exports.useTextSelection=rN;exports.useUndoRedo=Bc;exports.useUserPreferences=ji;
|
|
10
|
+
var Se=typeof document<"u"?ht__default.default.useLayoutEffect:()=>{};function Qn(e){let t=ht.useRef(null);return Se(()=>{t.current=e;},[e]),ht.useCallback((...o)=>{let r=t.current;return r?.(...o)},[])}function ei(e){let[t,o]=ht.useState(e),r=ht.useRef(null),a=Qn(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():o(i.value);});Se(()=>{r.current&&a();});let n=Qn(i=>{r.current=i(t),a();});return [t,n]}var Ar={prefix:String(Math.round(Math.random()*1e10)),current:0},Zl=ht__default.default.createContext(Ar),hg=ht__default.default.createContext(false);var xg=!!(typeof window<"u"&&window.document&&window.document.createElement),ti=new WeakMap;function Cg(e=false){let t=ht.useContext(Zl),o=ht.useRef(null);if(o.current===null&&!e){var r,a;let n=(a=ht__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=ti.get(n);i==null?ti.set(n,{id:t.current,state:n.memoizedState}):n.memoizedState!==i.state&&(t.current=i.id,ti.delete(n));}o.current=++t.current;}return o.current}function Pg(e){let t=ht.useContext(Zl);t===Ar&&!xg&&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=Cg(!!e),r=t===Ar&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${o}`}function kg(e){let t=ht__default.default.useId(),[o]=ht.useState(Jl()),r=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ar.prefix}`;return e||`${r}-${t}`}var ri=typeof ht__default.default.useId=="function"?kg:Pg;function wg(){return false}function Ig(){return true}function Rg(e){return ()=>{}}function Jl(){return typeof ht__default.default.useSyncExternalStore=="function"?ht__default.default.useSyncExternalStore(Rg,wg,Ig):ht.useContext(hg)}var Mg=!!(typeof window<"u"&&window.document&&window.document.createElement),Qe=new Map;function Fr(e){let[t,o]=ht.useState(e),r=ht.useRef(null),a=ri(t),n=ht.useCallback(i=>{r.current=i;},[]);return Mg&&(Qe.has(a)&&!Qe.get(a).includes(n)?Qe.set(a,[...Qe.get(a),n]):Qe.set(a,[n])),Se(()=>{let i=a;return ()=>{Qe.delete(i);}},[a]),ht.useEffect(()=>{let i=r.current;i&&(r.current=null,o(i));}),a}function ai(e,t){if(e===t)return e;let o=Qe.get(e);if(o)return o.forEach(a=>a(t)),t;let r=Qe.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 ge=e=>{var t;return (t=e?.ownerDocument)!==null&&t!==void 0?t:document},re=e=>e&&"window"in e&&e.window===e?e:ge(e).defaultView||window;function Ng(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ni(e){return Ng(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 ep(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=ep(e[t]))&&(r&&(r+=" "),r+=o);}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function Eg(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=ep(e))&&(r&&(r+=" "),r+=t);return r}var tp=Eg;function Me(...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]=tp(n,i):a==="id"&&n&&i?t.id=ai(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 Lg=new Set(["id"]),Bg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ag=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Fg=/^(data-.*)$/;function ii(e,t={}){let{labelable:o,isLink:r,propNames:a}=t,n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Lg.has(i)||o&&Bg.has(i)||r&&Ag.has(i)||a?.has(i)||Fg.test(i))&&(n[i]=e[i]);return n}function Or(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 Fo=Fe(function(){return Or(/Firefox/i)});function ae(e){let t=ht.useRef(null);return ht.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,typeof e=="function"?e(o):e&&(e.current=o);}}),[e])}function Kg(){return typeof window.ResizeObserver<"u"}function pi(e){let{ref:t,box:o,onResize:r}=e;ht.useEffect(()=>{let a=t?.current;if(a)if(Kg()){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 et(e){return !!e&&"label"in e&&!!e.label}function Hr(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function Yg(e){return Hr(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 pe(){return ht.useCallback(e=>Yg(e),[])}function Vr(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 a6(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 n6(e){var t=a6(e,"string");return typeof t=="symbol"?t:String(t)}function i6(e,t,o){return t=n6(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:true,configurable:true,writable:true}):e[t]=o,e}function sp(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 lp(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?sp(Object(o),true).forEach(function(r){i6(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):sp(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function pp(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var s6=(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=lp(lp({},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)s6(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 pp(e.variantClassNames,o=>pp(o,r=>r.split(" ")[0]))}},t};var cp=z({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),dp="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",up=z({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),mp=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:[]}),fp="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",yp="_6n12k90";var bp=z({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var U=ht__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(bp({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})});U.displayName="Separator";function y6(e){return tokens.sprinkles.properties.has(e)}var S=ht__default.default.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:i}=ht.useMemo(()=>{let s={},l={};for(let p in o)y6(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})});S.displayName="Box";var Oo=ht__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&&et(e.value),"Item cannot be a section");let{icon:d,label:b}=e.value,{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:t}),g=utils.filterTruthyValues({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":y,"data-pressed":c,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,f,g),className:utils.classNames(mp({isHovered:y,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(S,{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:up({isDisabled:t}),...s,children:i}):null]})});Oo.displayName="DefaultRenderOption";var Ut=({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(cp({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let i=ht__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 xt(e,t,o){return typeof e=="function"?e(t,o):e}function Ur(e,t,o){return typeof e=="function"?e(t,o):e}function qr(e,t){return typeof e=="function"?e(t):e}function ui(e,t){return typeof e=="function"?e(t):e}var zp=({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(Ut,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(Ut,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};zp.displayName="DraggableListOption";var Ho=ht__default.default.forwardRef(({item:e,renderOption:t=(m,d,b)=>jsxRuntime.jsx(Oo,{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=ht__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,m),{value:b}=e;utils.invariant(b&&et(b),"ListSection should not be passed to ListOption");let f={isFocusVisible:d.isFocusVisible,isSelected:d.isSelected,isFocused:d.isFocused,isDisabled:d.isDisabled,isPressed:d.isPressed},y={style:Ur(p,b,f),className:xt(c,b,f)};return a&&n?jsxRuntime.jsx(zp,{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),...y}},M(m,u))}):t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...d.optionProps,...y}},M(m,u))});Ho.displayName="Option";var Pp=({section:e,state:t,sectionClassName:o,sectionStyle:r,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=false,...s})=>{let l=ht__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&&Hr(d),"section must be a ListSection");let b=typeof r=="function"?r(d):r,f=typeof o=="function"?o(d):o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsxRuntime.jsx(U,{UNSAFE_omitRole:true}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...b},className:utils.classNames(yp,f,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?n?.(e,l)||jsxRuntime.jsx(S,{...u,className:utils.classNames("BaselineUI-ListBox-SectionHeader",fp),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(y=>jsxRuntime.jsx(Ho,{item:y,state:t,...s},y.key))})]})]})};function Wr({type:e="listbox",handle:t},o,r){let a=ht.useCallback(i=>e==="listbox"?r.current?.querySelector(`[data-key="${i}"][role="option"]`):r.current?.querySelector(`[data-key="${i}"][role="row"]`),[e,r]),n=ht.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);ht.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&&ni(i),l=o.selectionManager.focusedKey;s&&l&&n(l);},[o.selectionManager.focusedKey],[n,r]);}var Ct=ht__default.default.createContext(null),mi=ht__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 f=ht__default.default.useRef(null),{direction:y}=reactAria.useLocale(),g=ht__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:y,disabledKeys:u.disabledKeys})},u,g);Wr({handle:m},u,g);let{collectionProps:_,dragState:h,dropState:x}=Vr({...d,onReorder:c,layout:t,orientation:o,enableReorder:i,preview:f},u,g),{isFocusVisible:R,isFocused:P,focusProps:w}=reactAria.useFocusRing(),C=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-layout":t,"data-empty":u.collection.size===0,"data-focused":P,"data-focus-visible":R,"data-orientation":o});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(v,w,C,_),className:utils.classNames(dp,"BaselineUI-ListBox",e),style:a,ref:M(b,g),children:[[...u.collection].map(D=>{let k={key:D.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 D.type==="section"?ht.createElement(Pp,{...k,key:D.key,section:D}):ht.createElement(Ho,{...k,key:D.key,item:D})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:f,children:p}):null]})});mi.displayName="ListBoxCore";var Ip=ht__default.default.forwardRef((e,t)=>{let o=pe(),r=reactStately.useListState({...e,children:o});return jsxRuntime.jsx(mi,{...e,ref:t,state:r})});Ip.displayName="ListBoxStandalone";var me=ht__default.default.forwardRef((e,t)=>{let o=ht.useContext(Ct);return ht.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(mi,{...e,ref:t,state:o}):jsxRuntime.jsx(Ip,{...e,ref:t})});me.displayName="ListBox";var Xr="uf19bsf _1yep5z6la",Rp=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 Vo=ht__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),je=({children:e,...t})=>{let o=ht__default.default.useRef(null),r=reactStately.useOverlayTriggerState(t),a=reactAria.useOverlayTrigger(t,r),n=ht.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsxRuntime.jsx(Vo.Provider,{value:n,children:e})};var Tp=z({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),Sp=z({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Dp="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",Mp="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",Np="_1gzftthd",Ep="_1gzftthc",Lp="var(--_1gzftth0)";function c3(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Bp(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 Zr=ht__default.default.createContext({isSelected:false,ref:void 0}),Oe=({children:e,anchorRect:t})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=ht.useContext(Vo);utils.invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=r,i=ht.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||Bp(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Zr.Provider,{value:i,children:t?jsxRuntime.jsx("div",{className:utils.classNames(Np,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:a,tabIndex:-1},JSON.stringify(t)):e})};var ve=({label:e,tooltip:t,...o})=>({tooltipProps:ht.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 Jr({tooltip:e,"aria-label":t,"aria-labelledby":o},r){let[a,n]=ht.useState(t||"");ht.useEffect(()=>{if(o){let l=ge(r.current).querySelector(`#${o}`);l&&n(l.textContent||"");}else t&&n(t);},[o,r,t]);let{tooltipProps:i}=ve({label:a,tooltip:e});return {tooltipProps:i}}var Qr=e=>{let t=ht__default.default.useRef(null),{ref:o,...r}=ht.useContext(Zr)||{},{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:Me(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}}},ea=(e,t)=>{let o=ht__default.default.useRef(null),{ref:r,...a}=ht.useContext(Zr)||{},{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:Me(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 ta=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"]]}),yi=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 yv={sm:16,md:20,lg:24},q=ht__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:f,isFocusVisible:y,isFocused:g,isHovered:v,uiStateOptions:_}=Qr({...u,elementType:i,isDisabled:s}),h=yv[l],x=utils.filterTruthyValues({"data-block-id":p,"data-block-class":c,"data-disabled":s,"data-focused":g,"data-focus-visible":y,"data-hovered":v,"data-pressed":b});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,x),className:utils.classNames(ta({isDisabled:!!s,isFocusVisible:y,isHovered:v,variant:n,size:l}),"BaselineUI-ActionButton",typeof o=="function"?o(_):o),style:typeof t=="function"?t(_):t,ref:M(m,f),children:[!!r&&jsxRuntime.jsx(r,{size:h,className:yi({variant:n,isDisabled:s,isFocusVisible:y,isHovered:v})}),e,!!a&&jsxRuntime.jsx(a,{size:h,className:yi({variant:n,isDisabled:s,isFocusVisible:y,isHovered:v})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Xr})]})});q.displayName="ActionButton";var oa=ht__default.default.forwardRef(({className:e,style:t,node:o,"data-block-id":r,"data-block-class":a,...n},i)=>{let s=ht__default.default.useRef(null);ht__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)})});oa.displayName="DomNodeRenderer";var Vp="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",Up="_14uvjig3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",qp="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",Kp=z({defaultClassName:"_14uvjig0 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasNumberInput:{false:"_1yep5z6ol _1yep5z6om _1yep5z6on"}},defaultVariants:{},compoundVariants:[]}),Gp=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:[]}),Wp="_14uvjiga _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",Yp="_14uvjig4 _1yep5z6g3 _1yep5z6ln",Xp=z({defaultClassName:"_14uvjig5 _1yep5z6g9 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lo",variantClassNames:{active:{true:"_1yep5z612i"},isFocusVisible:{true:"_1yep5z612i"},isDisabled:{true:"_1yep5z612m"},isHovered:{true:"_1yep5z612i"}},defaultVariants:{},compoundVariants:[]});var Kt=z({defaultClassName:"nrh1ehr _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"},hasError:{true:"_1yep5z610h"},labelPosition:{start:"nrh1ehu",top:"nrh1ehv"}},defaultVariants:{},compoundVariants:[]}),ra=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:[]}),Gt=z({defaultClassName:"nrh1ehm _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"nrh1ehn",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),Wt="_1yep5z6ev _1yep5z6dy",tt=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"]]}),ot=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:[]}),Yt=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 _e({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsxRuntime.jsx("div",{...o,className:Kt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:e}):a?jsxRuntime.jsx("div",{...t,className:Kt({hasError:true,labelPosition:n}),"aria-disabled":i,children:a}):r?jsxRuntime.jsx("div",{className:Kt({isDisabled:i,labelPosition:n}),"aria-disabled":i,children:r}):null}var Zp=z({defaultClassName:"_1lnwne1 z9nup81",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup82"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:true,isInteractive:true},"_1lnwne4"]]}),Jp="_1lnwne0";var Qp=z({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),ec=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 aa({placement:e}){let t=ht.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 _i=ht__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}=aa({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(o,m),ref:p,"data-placement":u,children:[l?jsxRuntime.jsx("div",{className:Qp({placement:u,variant:n}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:ec({variant:n,size:i}),children:e})]})});_i.displayName="TooltipContent";var zi=ht__default.default.createContext(void 0),na=({portalContainer:e,children:t})=>jsxRuntime.jsx(zi.Provider,{value:e,children:t});na.displayName="PortalContainerProvider";function ac({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let i=ht__default.default.useRef(null);ht.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]),ht.useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function nc({ref:e,onResize:t,isDisabled:o}){let r=ht__default.default.useRef(null),[a,n]=ht__default.default.useState();return ht__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]),ht__default.default.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function Xt({src:e,alt:t}){let[o,r]=ht.useState(false),[a,n]=ht.useState(false),[i,s]=ht.useState(false),l=()=>{r(true),s(false);},p=()=>{n(true),s(false);};return ht.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 sa(){let e=ht.useRef(true);return ht.useEffect(()=>{e.current=false;},[]),e.current}var ic="SET_STATE",la="UNDO",pa="REDO",Mv=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case ic:return {past:[...o,r],present:t.data,future:[]};case la:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case pa:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},sc=(e={},{isDisabled:t,onAction:o})=>{let r=sa(),[a,n]=ht.useReducer(Mv,{past:[],present:e,future:[]}),{past:i,present:s,future:l}=a,p=f=>{n({type:ic,data:f});},c=ht.useRef(),u=()=>{c.current=la,n({type:la});},m=()=>{c.current=pa,n({type:pa});},d=!!i?.length,b=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===la||c.current===pa)&&(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 xi=ht__default.default.createContext({messages:{},shouldLogMissingMessages:true,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),cc=({children:e,messages:t={},shouldLogMissingMessages:o=true,...r})=>{let a=ht.useRef(new Set),[n,i]=ht.useState(r.locale||"");ht.useEffect(()=>{a.current.clear();},[n,r.locale]);let s=ht__default.default.useMemo(()=>({messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:a,setLang:i}),[t,o,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(xi.Provider,{value:s,children:e})})};cc.displayName="I18nProvider";function A(e){let{messages:t,shouldLogMissingMessages:o,hasMissingErrorLoggedFor:r,setLang:a}=ht.useContext(xi);ht.useEffect(()=>{!e&&Fv__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=ht.useMemo(()=>e?utils.cleanKeyFromGlobImport(e):t,[e,t]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();ht.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=ht.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=ht.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 ht.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var G=e=>e;function cD(e,t,o){let r=ht__default.default.useRef(null);return ht__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 yc(e,t){let[o,r]=ht.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 gD({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=ht__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let i=re(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&o?.(i);},onPressStart(){let n=re(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),ht.useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let p=re(n).getSelection();p&&e.current?.contains(p.anchorNode)&&t(p);}let s=ge(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,t,r]);}var ca=ht__default.default.createContext({breakpoints:tokens.breakpoints}),Yv=({children:e,breakpoints:t=tokens.breakpoints})=>{let o=ht.useMemo(()=>({breakpoints:t}),[t]);return jsxRuntime.jsx(ca.Provider,{value:o,children:e})};function Ne(e){let{breakpoints:t=tokens.breakpoints}=ht.useContext(ca),o=ht.useMemo(()=>({tablet:`screen and (min-width: ${t.tablet}px)`,desktop:`screen and (min-width: ${t.desktop}px)`}),[t]),r=ht.useCallback(()=>{let i=re(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]=ht__default.default.useState(r);return Se(()=>{let i=re(e),s=()=>{n(r());};return i.addEventListener("resize",s),s(),()=>{i.removeEventListener("resize",s);}},[e,r]),a}var a_=typeof window<"u";function Pi(){return a_?document.body:null}var He=ht__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:false,isContainerPositioned:false,containerWidth:void 0,containerHeight:void 0}),n_=({children:e,container:t=Pi(),portalContainer:o,shouldContainOverlays:r="auto"})=>{let a=Ne(),[n,i]=ht.useState(),[s,l]=ht.useState(),p=ht.useMemo(()=>t===Pi()||r==="never"?false:r==="always"?true:a!=="mobile",[r,a,t]),[c,u]=ht.useState(false),m=sa();ht.useEffect(()=>{if(!t||m)return;let f=re(t).getComputedStyle(t),y=!!f.position&&f.position!=="static";u(y);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=ht.useMemo(()=>({container:t,portalContainer:o||t||Pi(),shouldContainOverlays:p,isContainerPositioned:c,containerWidth:n,containerHeight:s}),[t,o,p,c,n,s]);return jsxRuntime.jsx(He.Provider,{value:d,children:jsxRuntime.jsx(na,{portalContainer:d.portalContainer||void 0,children:e})})};function ze(e){let t=ht.useContext(zi),{portalContainer:o}=ht.useContext(He);return e||t||o||void 0}var zc=z({defaultClassName:"z9nup83",variantClassNames:{size:{xs:"z9nup84",sm:"z9nup85"}},defaultVariants:{},compoundVariants:[]}),hc="z9nup80",Zt="z9nup82",xc="z9nup86";function ki(e=typeof window>"u"?void 0:window){let[t,o]=ht.useState("light"),[r,a]=ht.useState(false),[n,i]=ht.useState(false),[s,l]=ht.useState(false);return ht.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]),ht.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]),ht.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]),ht.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 Jt=ht.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:true});var Cc="var(--hj25q10)";var ma={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},fa=ht__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:f,transparency:y}=ki(),{name:g,theme:v}=ht.useMemo(()=>{switch(e){case "system":return d==="light"?ma.LIGHT:ma.DARK;case "light":return ma.LIGHT;case "dark":return ma.DARK;default:return {name:"custom",theme:e}}},[d,e]),_=Ne(),h={"data-theme":g,"data-block-id":s,"data-block-class":l,"data-reduced-motion":p==="user"?b:p==="always","data-high-contrast":f,"data-transparency":y,"data-device":_},x=ht.useMemo(()=>({theme:v,setTheme:R=>{o?.(R),r?.(R);},shouldHandleVirtualKeyboard:c}),[v,o,r,c]);return ht.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(Jt.Provider,{value:x,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,h),className:utils.classNames(hc,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,v),...dynamic.assignInlineVars({[Cc]:m==="rtl"?"-1":"1"}),...n},ref:u,children:t})})})});fa.displayName="ThemeProvider";function _M(){react.MotionGlobalConfig.skipAnimations=true;}function zM(){react.MotionGlobalConfig.skipAnimations=false;}var he=ht__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l}=ht.useContext(Jt),p=ze();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??p,children:jsxRuntime.jsx(fa,{ref:s,theme:l,style:t,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:o})})});he.displayName="Portal";var J=ht__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=ht__default.default.useRef(null),f=ht__default.default.useRef(null),y=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:o,closeDelay:r,isDisabled:y}),{triggerProps:v,tooltipProps:_}=reactAria.useTooltipTrigger({...m,isDisabled:y,delay:o,closeDelay:r},g,b),h=ze(s),{overlayProps:x,arrowProps:R,placement:P,updatePosition:w}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:b,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:f,placement:t,isOpen:g.isOpen,...m});ac({ref:f,threshold:1,onIntersect:w,isDisabled:!g.isOpen}),nc({ref:b,onResize:w,isDisabled:!g.isOpen});let C=ht__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:[C,g.isOpen?jsxRuntime.jsx(he,{disableFocusManagement:true,portalContainer:h,className:l,style:p,"data-block-id":c,"data-block-class":u,children:jsxRuntime.jsx(_i,{ref:M(d,f),state:g,arrowProps:R,overlayProps:x,placement:P,tooltipProps:_,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});J.displayName="Tooltip";var ba=ht__default.default.forwardRef(({elementType:e,children:t,...o},r)=>{let a=ae(r),{focusableProps:n}=focus.useFocusable(o,a);return jsxRuntime.jsx(e??"div",{ref:a,...n,children:t})});ba.displayName="Focusable";var E_={xxs:8,xs:12,sm:16,md:20,lg:24},L=ht__default.default.forwardRef((e,t)=>{let o=ae(t),{tooltipProps:r}=Jr(e,o);return r?jsxRuntime.jsx(J,{...r,children:jsxRuntime.jsx(Ri,{...e,ref:o})}):jsxRuntime.jsx(Ri,{...e,ref:o})});L.displayName="ActionIconButton";var Ri=ht__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"];ht.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:f,isHovered:y,uiStateOptions:g}=Qr({...s,elementType:i}),v=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":f,"data-focus-visible":b,"data-disabled":s.isDisabled,"data-hovered":y,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,v),className:utils.classNames(Rp({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:b,isHovered:y}),"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:E_[r]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Xr})]})});Ri.displayName="ActionIconButtonCore";var Ve=ht__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=true,...n},i)=>{let s=ht__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:f,decrementButtonProps:y,inputProps:g,incrementButtonProps:v,groupProps:_,descriptionProps:h,errorMessageProps:x}=reactAria.useNumberField(n,p,s),R=ht.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),P=_e({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(ot({labelPosition:o}),"BaselineUI-NumberInput",e),...w,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:tt({labelPosition:o,hasMessage:!!P}),children:[jsxRuntime.jsx("label",{...f,className:Wt,children:n.label}),o==="start"&&P]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Zt]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,c),className:utils.classNames(Yt({isHovered:u,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:b,variant:r}),{[Jp]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",ra({isDisabled:n.isDisabled,labelPosition:o}))}),R?jsxRuntime.jsx(R,{className:Gt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Zp({isHoveredOrFocused:u||b,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(U,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(L,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&P]})]})});Ve.displayName="NumberInput";var to=ht__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":f,defaultValue:y,isReadOnly:g,label:v,id:_,includeNumberInput:h},x)=>{let R=ht__default.default.useRef(null),P={onChange:o===void 0?void 0:I=>{o(I[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:r===void 0?void 0:I=>{r(I[0]);},value:p===void 0?void 0:[p],defaultValue:y===void 0?void 0:[y],"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,id:_,label:v},w=reactAria.useNumberFormatter(a),C=reactStately.useSliderState({...P,numberFormatter:w}),{trackProps:D,groupProps:k,labelProps:T}=reactAria.useSlider(P,C,R),$=jsxRuntime.jsx(Ve,{variant:"ghost",showStepper:false,"aria-label":c,"aria-labelledby":T.id,value:C.getThumbValue(0),formatOptions:a,onChange:I=>{C.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...k,style:t,"data-block-id":b,"data-block-class":f,className:utils.classNames(Vp,"BaselineUI-Slider",e),children:[v?jsxRuntime.jsxs("div",{className:qp,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(Kp({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:v}),h?$:null]}):null,jsxRuntime.jsxs("div",{className:Up,children:[jsxRuntime.jsx("div",{...D,className:utils.classNames(Yp,"BaselineUI-Slider-Track"),ref:M(R,x),"data-testid":"track",children:jsxRuntime.jsx(oz,{state:C,trackRef:R,isDisabled:n,isReadOnly:g})}),h&&!v?$:null]})]})});to.displayName="Slider";function oz({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=ht__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(Xp({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(Wp,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Gp({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 Dc=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=ht__default.default.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Dc({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));te.displayName="Text";var Mc=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:[]}),Nc="siobe24";var va=ht__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=ht__default.default.useRef(null),{dialogProps:f,titleProps:y}=reactAria.useDialog(u,b),{focusProps:g,isFocusVisible:v}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(f,g),className:utils.classNames(Mc({background:r,isFocusVisible:v}),"BaselineUI-Drawer",e),"data-block-id":i,"data-block-class":s,style:t,ref:M(m,b),children:[jsxRuntime.jsxs(S,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Nc,children:[jsxRuntime.jsx(te,{type:"title",size:"sm",...y,className:xc,children:a}),jsxRuntime.jsxs(S,{children:[n?jsxRuntime.jsx(L,{...n,variant:"secondary"}):null,jsxRuntime.jsx(L,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":d(dz.close)})]})]}),jsxRuntime.jsx(U,{variant:r==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(S,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:o})]})});va.displayName="Drawer";var dz=G({close:{id:"close",defaultMessage:"Close"}});var Bc="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",Ac="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Fc=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:[]}),jc=z({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var Pt=ht__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ee=({children:e,...t})=>{let o=reactStately.useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},o),n=ht.useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsxRuntime.jsx(Pt.Provider,{value:n,children:e})};Ee.displayName="Modal";function Kc(e,t,o){let[r,a]=ht.useState({}),n=ht.useRef(false),[i,s]=ht.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c,containerHeight:u,portalContainer:m}=ht.useContext(He);ht.useEffect(()=>{if(!e||!o)return;let y=re(e),g=y.visualViewport,v=()=>{let _=g?.height,h=y.innerHeight-(_||0);if(n.current=h>60,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`,R=p?`min(${x}, ${u?u+"px":x})`:x;a({maxHeight:`calc(${R} - (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),y.addEventListener("resize",v),()=>{g?.removeEventListener("resize",v),y.removeEventListener("resize",v);}},[e,t,p,o,u]);let d=m&&!l?.contains(m);ht.useEffect(()=>{if(!l||!p||c&&!d)return;let y=()=>{l&&s(utils.getAbsoluteBounds(l));};y();let g=new ResizeObserver(()=>{y();});return g.observe(l),()=>{g.disconnect();}},[l,p,c,d]);let b=ht.useMemo(()=>({...r,overflow:"auto",position:"relative"}),[r]),f=ht.useMemo(()=>{if(!t&&n.current)return {alignItems:"flex-start"};if(p&&(!c||d)){let y=i||(l?utils.getAbsoluteBounds(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:b,containerStyle:f}}var Di=ht__default.default.createContext({isDrawer:false,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:false}),Mi=ht__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}=ht__default.default.useContext(Pt),[d,b]=ht__default.default.useState(true),f=ht__default.default.useRef(null),[y,g]=ht__default.default.useState(null),{shouldHandleVirtualKeyboard:v}=ht.useContext(Jt),{shouldContainOverlays:_,container:h,portalContainer:x}=ht.useContext(He),R=Ne(),P=typeof s=="boolean"&&s||s==="auto"&&R==="mobile";utils.invariant(m,"ModalContent must be a child of Modal");let w=ht__default.default.useRef(null),C=typeof r=="function"?r(P):r,D=typeof a=="function"?a(P):a,{modalProps:k,underlayProps:T}=reactAria.useModalOverlay({isDismissable:d&&C,shouldCloseOnInteractOutside:V=>{let Q=n||x;return !h?.contains(V)&&_&&!Q?.contains(V)?false:c?.(V)??true},isKeyboardDismissDisabled:D},m,w),{dialogStyle:$,containerStyle:I}=Kc(y,P,v),N=ht.useMemo(()=>({isDrawer:P,closeDrawer:m.close,dialogStyle:$,dialogRef:f,setDialogElement:g,isWithinModal:true}),[P,m.close,$,f,g]),E=ht.useMemo(()=>({setIsPopoverSafelyClosed:b}),[b]),j={duration:.3,type:"tween",ease:"easeOut"},B={type:"spring",duration:.3},O={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:u&&!i,children:m.isOpen?jsxRuntime.jsx(Di.Provider,{value:N,children:jsxRuntime.jsx(Mi.Provider,{value:E,children:jsxRuntime.jsxs(he,{className:utils.classNames(Fc({enableDrawer:P,shouldContainOverlays:_}),t),"data-block-id":l,"data-block-class":p,style:{...o,...I},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:j,className:utils.classNames(jc({shouldContainOverlays:_}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:w,"data-drawer":P,className:utils.classNames(P?Bc:Ac,"BaselineUI-Modal-Content"),variants:O,transition:P?j:B,initial:"closed",animate:"open",exit:"closed",children:typeof e=="function"?e(m):e})]})})}):null})};var Xc="var(--cjv3et0)",Zc=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 Ei=ht__default.default.createContext({titleProps:{}}),xe=ht__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=ht__default.default.useRef(null),m=ht__default.default.useRef(null),{containerWidth:d,shouldContainOverlays:b}=ht.useContext(He),{isDrawer:f,closeDrawer:y,dialogStyle:g,setDialogElement:v,isWithinModal:_}=ht.useContext(Di),[h,x]=ht__default.default.useState(""),{focusProps:R,isFocusVisible:P}=reactAria.useFocusRing();ht.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:C}=reactAria.useDialog(p,u),D=ht.useMemo(()=>({titleProps:C}),[C]);return f&&r?jsxRuntime.jsx(va,{title:h,onCloseRequest:y,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(Ei.Provider,{value:D,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(w,R),"data-block-id":i,"data-block-class":s,"data-focus-visible":P,"data-overlay-type":_?"modal":"popover",ref:M(u,c,k=>{v(k);}),style:{...g,...o,...dynamic.assignInlineVars({[Xc]:d&&b?`${d}px`:"100vw"})},className:utils.classNames(Zc({size:f?"content":a,variant:n,isDrawer:f,isFocusVisible:P,overlayType:_?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})});xe.displayName="Dialog";var Qc=ht__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=ht.useContext(Ei);return ht__default.default.isValidElement(e)?ht__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})});Qc.displayName="DialogTitle";var td=({children:e,isOpen:t,popoverContentRef:o,portalContainer:r=document.body,style:a})=>{let[n,i]=ht.useState(false),[s,l]=ht.useState(null),p=ht.useRef(null),{setIsPopoverSafelyClosed:c}=ht.useContext(Mi);ht.useEffect(()=>{t?(i(true),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(false);},300);},[t]),ht.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let u=o.current;return ht.useEffect(()=>{u&&l(u.getBoundingClientRect());},[u]),ht.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?Bz__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{color:oo}=tokens.themeVars,ke=ht__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,"data-block-id":d,"data-block-class":b,...f},y)=>{let g=ht__default.default.useRef(null),v=ze(c),_=l?8:0,{underlayProps:h,popoverProps:x,placement:R,arrowProps:P}=reactAria.usePopover({...f,offset:p+_,popoverRef:g,containerPadding:f.containerPadding||0},a);delete x.style?.position;let w=R==="center"?"bottom":R,C=ht.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:D}=aa({placement:R}),k=ht.useMemo(()=>({...x.style,...dynamic.assignInlineVars({[Lp]:`${f.triggerRef?.current?.offsetWidth}px`}),...ui(r,C)}),[x.style,f.triggerRef,r,C]);return jsxRuntime.jsx(td,{isOpen:a.isOpen,popoverContentRef:g,portalContainer:v,style:x.style,children:a.isOpen?jsxRuntime.jsxs(he,{portalContainer:v,style:t,className:e,ref:y,"data-block-id":d,"data-block-class":b,children:[!f.isNonModal&&jsxRuntime.jsx("div",{...h,className:utils.classNames(Ep,qr(i,C),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...reactAria.mergeProps(x,D),style:k,ref:M(g,y),className:utils.classNames(Dp,"BaselineUI-Popover-ContentContainer",qr(o,C)),"data-placement":["top","bottom","left","right"].filter(T=>R?.includes(T)),children:[l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(Tp({placement:w}),"BaselineUI-PopoverContent-Arrow"),...P,style:{...P.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:oo.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:oo.background.primary.subtle,stroke:oo.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(Sp({placement:w}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...P,style:{...P.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:oo.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:oo.background.primary.subtle,stroke:oo.background.primary.subtle})]})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:ui(m,C),className:utils.classNames(Mp,qr(u,C),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]}):null})});ke.displayName="PopoverContentCore";var Le=ht__default.default.forwardRef((e,t)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:a}=ht.useContext(Vo);return utils.invariant(a),o?jsxRuntime.jsx(ke,{ref:t,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:o}):null});Le.displayName="PopoverContent";var ro=({icon:e,tooltip:t,label:o,...r})=>{let{tooltipProps:a}=ve({label:o,tooltip:t,offset:9});return jsxRuntime.jsx(J,{...a,children:({triggerProps:n,triggerRef:i})=>jsxRuntime.jsx(S,{display:"inline-flex",...n,ref:i,children:jsxRuntime.jsx(e,{...r})})})};var sd=ht__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=ae(u),[d,b]=utils$1.useControlledState(c.value,c.defaultValue||0,o),[f,y]=ht__default.default.useState(false),{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:x=>{(x.key==="Enter"||x.key==="Escape")&&y(false);}}),{tooltipProps:v}=ve({label:c["aria-label"],tooltip:i}),_=n(d||0),h=v?.isDisabled||c["aria-label"]?`${c["aria-label"]}, ${_}`:_.toString();return jsxRuntime.jsxs(S,{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(ro,{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:f,onOpenChange:y,children:[jsxRuntime.jsx(Oe,{children:jsxRuntime.jsx(J,{...v,children:jsxRuntime.jsx(q,{label:_,variant:"popover","aria-label":h,isDisabled:p,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(Le,{placement:"bottom start",...l,children:jsxRuntime.jsx(xe,{size:"content","aria-label":h,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:true,children:jsxRuntime.jsx(S,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...g,children:jsxRuntime.jsx(to,{...c,onChange:x=>{b(x),o?.(x);},value:d})})})})})]})]})});sd.displayName="IconSlider";var ld=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"]]}),pd=z({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),cd="bpklwad",dd=z({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ud="bpklwa6",md=z({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var gd=ht__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=ht__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:f,isHovered:y}=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":y,"data-pressed":m}),v=jsxRuntime.jsx("div",{className:utils.classNames(ld({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(pd({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(g,f),className:utils.classNames(dd({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:l,children:[t?jsxRuntime.jsx("span",{className:utils.classNames(cd,"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:md({labelPosition:o}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",ud),children:c.isSelected?r.on:r.off}),v]}):v]})});gd.displayName="Switch";var vd="_19n40yy9",_d=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 gh={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},xd=ht__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=ht__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}),f=gh[t],y=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(_d({size:t,isFocused:b,variant:o,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),style:n,ref:s,children:[jsxRuntime.jsx(f,{size:t==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:vd,ref:l}),p.value!==""&&jsxRuntime.jsx(L,{icon:y,...u,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});xd.displayName="SearchInput";var Cd="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ls _1yep5z6lr _1yep5z6i0 _1yep5z6lv _1yep5z6g1",Pd="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Fi=({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(U,{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:Pd,children:[...e.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(za,{item:i,state:o,showSelectedIcon:t},i.key)))})]})]})};Fi.displayName="MenuSection";var za=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=ht__default.default.useRef(null),n=reactAria.useMenuItem({key:e.key},t,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Oo,{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})};za.displayName="MenuItem";var Oi=ht__default.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=reactStately.useTreeState(r),i=ht__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(Cd,e),ref:M(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(Fi,{section:p,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):jsxRuntime.jsx(za,{item:p,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Oi.displayName="MenuContent";var Id=z({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),at="_1mdhlqvb cjv3et1 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et5",Rd=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"]]}),$d="_1yep5z66x _1yep5z66y _1yep5z66z",Td="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var ha=ht__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(q,{...g,variant:"popover",ref:v}),portalContainer:b,...f},y)=>{let g=ht__default.default.useRef(null),v=ze(b),_=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:t}),{menuTriggerProps:h,menuProps:x}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},_,g),R=pe(),P=ht.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:_.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(_.isOpen):m}),[h,r,_.isOpen,m]);return ht.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:P,ref:g}),jsxRuntime.jsx(ke,{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(Oi,{className:utils.classNames(at,a),...x,...f,ref:y,autoFocus:_.focusStrategy||"first",children:R})})]})});ha.displayName="Menu";var xa=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 Md=ht__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=ht__default.default.useRef(null),{linkProps:b,isPressed:f}=reactAria.useLink({...u,elementType:u.onPress?"span":n},d),{isFocusVisible:y,isFocused:g,focusProps:v}=reactAria.useFocusRing(),{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:u.isDisabled}),x=n,R=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":u.isDisabled,"data-focused":g,"data-pressed":f,"data-focus-visible":y,"data-hovered":h,role:c,title:p});return jsxRuntime.jsx(x,{...reactAria.mergeProps(b,v,_,R),className:utils.classNames(xa({variant:r,isFocusVisible:y,isHovered:h,isDisabled:u.isDisabled,size:a,isActive:f,type:i}),"BaselineUI-Link",e),ref:M(d,m),style:t,children:o})});Md.displayName="Link";function Nd({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 Ui({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 Ed=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"]]}),Ld=z({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Bd=z({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Ad=z({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Hd=ht__default.default.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},i)=>{let s=ht__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Nd(n),{dropProps:u}=reactAria.useDrop({ref:s,onDrop:async({items:y})=>{let g=y.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:f}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(u,b,c),className:utils.classNames(Ed({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:f||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:Bd({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Ad({disabled:n.isDisabled,hovered:f}),children:t}),o?jsxRuntime.jsx("div",{...p,className:Ld({disabled:n.isDisabled}),children:o}):null]})]})});Hd.displayName="FileUpload";var Vd="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6ln",Ud="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl",qd=z({defaultClassName:"_12vfhl44",variantClassNames:{variant:{success:"_1yep5z611s",error:"_1yep5z611o",active:"_1yep5z6120"}},defaultVariants:{},compoundVariants:[]}),Kd="_1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ev _1yep5z6dy",Gd="_12vfhl43 _1yep5z6g3 _1yep5z6ln",Wd="_12vfhl42 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Yd="_1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",Xd=z({defaultClassName:"_12vfhl40 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dy _1yep5z6eu",variantClassNames:{hasLabel:{false:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},defaultVariants:{},compoundVariants:[]});var Zd=ht__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:f=0,label:y}=l,g=(f-d)/(b-d),v=`${Math.round(g*100)}%`,_=jsxRuntime.jsx("output",{className:Xd({hasLabel:!!y}),children:m["aria-valuetext"]}),h=o==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:t,className:utils.classNames(Vd,"BaselineUI-ProgressBar",e),"data-block-id":i,"data-block-class":s,ref:p,children:[y?jsxRuntime.jsxs("div",{className:Ud,children:[jsxRuntime.jsx("label",{...u,className:Kd,children:y}),r?_:null]}):null,jsxRuntime.jsxs("div",{className:Yd,children:[jsxRuntime.jsxs("div",{className:Wd,children:[jsxRuntime.jsx("div",{className:Gd,children:jsxRuntime.jsx("div",{style:{width:v},className:qd({variant:o})})}),!y&&r?_:null]}),h?jsxRuntime.jsx("div",{className:Kt({hasError:o==="error"}),id:c,children:h}):null]})]})});Zd.displayName="ProgressBar";function io({isReadOnly:e,validationState:t}){return e?_16.ReadOnlyIcon:t==="error"?_16.ErrorCircleFilledIcon:t==="warning"?_16.WarningFilledIcon:null}var wt=ht__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:f,isInvalid:y},g)=>{let{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:a}),h=io({isReadOnly:n,validationState:p});return jsxRuntime.jsxs("div",{className:utils.classNames(ot({labelPosition:e}),t),"data-block-id":l,style:o,ref:g,children:[i||e==="start"&&s?jsxRuntime.jsxs("div",{className:tt({labelPosition:e,hasMessage:!!s}),children:[jsxRuntime.jsx(S,{...r,elementType:"label",color:"text.secondary",typography:"label.md.medium",children:i}),e==="start"&&s]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Zt]:a}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(d,v),className:utils.classNames(Yt({validationState:y?"error":p,isHovered:_,isFocused:c,variant:u,isReadOnly:n,isDisabled:a}),f),ref:b,children:[m,h?jsxRuntime.jsx(h,{className:Gt({validationState:p,isReadOnly:n}),size:16}):null]}),e==="top"&&s]})]})});wt.displayName="SharedInput";var nt=ht__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=ht__default.default.useRef(null),{inputProps:u,labelProps:m,descriptionProps:d,errorMessageProps:b,validationErrors:f}=reactAria.useTextField({...l,validationState:t?t==="error"?"invalid":"valid":void 0},c),y=l.errorMessage||f.join(" "),g=_e({...l,errorMessage:y,descriptionProps:d,errorMessageProps:b,labelPosition:r});y&&(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(wt,{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(ra({isDisabled:l.isDisabled,labelPosition:r}),"BaselineUI-TextInput-Input",n),style:a,ref:c})})});nt.displayName="TextInput";var so=({value:e,...t})=>{let o=reactAria.useNumberFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};so.displayName="NumberFormat";var ou="_1yep5z6iv _1yep5z6iw _1yep5z6ix",ru=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"]]}),au=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"]]}),nu=z({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var lu=ht__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=ht__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:d,isPressed:b,isDisabled:f,isReadOnly:y,isSelected:g}=reactAria.useSwitch({...s,...p},m,u),{focusProps:v,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:x,isHovered:R}=reactAria.useHover({}),P=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":_,"data-focus-visible":h,"data-disabled":f,"data-hovered":R,"data-pressed":b,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:o,className:utils.classNames(ou,"BaselineUI-Reaction",e),...P,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,...v,ref:u})}),jsxRuntime.jsxs("div",{...x,className:ru({isSelected:g,isFocusVisible:h,isHovered:R,isReadOnly:y,isDisabled:f}),children:[jsxRuntime.jsx("div",{className:nu({isDisabled:f,isReadOnly:y}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:au({isSelected:m.isSelected,isDisabled:f,isReadOnly:y,size:r}),children:jsxRuntime.jsx(so,{value:t})})]})]})});lu.displayName="Reaction";var pu="_1azy5686",cu="_1azy5685",du="var(--_1azy5680)",uu="_1azy5688",mu="_1azy5689",fu="_1azy5681 z9nup81",yu="_1azy5682";var bu="_1azy5687";var Nx={sm:16,md:20},Ex={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},po=ht__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=Nx[o],u=c/2-2,m=2*u*Math.PI,d=Ex[o][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(fu,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[du]:`${m}px`}),...t},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:yu,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:pu,cx:c/2,cy:c/2,r:u}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:cu,cx:c/2,cy:c/2,r:u})]}),r==="success"&&jsxRuntime.jsx(d,{className:bu,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:uu,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:mu,children:i.label}):null]})});po.displayName="ProgressSpinner";var ka=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"]]}),gu=z({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var Ox={sm:16,md:20,lg:24},wa=ht__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:f}=ea(i,l),y=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,y),className:utils.classNames(ka({isHovered:b,isFocusVisible:m,isSelected:l.isSelected,size:r,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof e=="function"?e(f):e),style:typeof t=="function"?t(f):t,ref:M(u,s),children:[o?jsxRuntime.jsx(o,{size:Ox[r],className:gu({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});wa.displayName="ToggleButton";var Ia=z({defaultClassName:"_16vugd0b _1yep5z6ev _1yep5z6dy",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Ra=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:[]}),$a=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 zu=ht__default.default.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=ht__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:u,focusProps:m}=reactAria.useFocusRing(),{inputProps:d,isPressed:b,isDisabled:f,isSelected:y,isReadOnly:g}=reactAria.useCheckbox({...i,children:o},p,l),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:f}),h=utils.filterTruthyValues({"data-disabled":f,"data-readonly":g,"data-hovered":_,"data-selected":y,"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(Ra({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:$a({isSelected:y&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:f,isReadOnly:g,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:Ia({isDisabled:f}),children:o}):null]})});zu.displayName="Checkbox";var hu={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 xu=z({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),Cu="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",Pu=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:[]}),ku=z({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var b0={style:"decimal"},g0={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Tu=ht__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(hu),f={...u,formatOptions:b0,minValue:o,incrementAriaLabel:a||b.formatMessage("nextPage"),decrementAriaLabel:n||b.formatMessage("prevPage"),defaultValue:r,"aria-label":i||b.formatMessage("goToPage")},y=ht__default.default.useRef(null),g=reactStately.useNumberFieldState({...f,locale:d}),{inputProps:v,decrementButtonProps:_,incrementButtonProps:h,groupProps:x}=reactAria.useNumberField({...f,onKeyDown:j=>{j.key==="Enter"&&y.current?.blur(),u.onKeyDown?.(j);},isDisabled:c},g,y),{hoverProps:R,isHovered:P}=reactAria.useHover({}),{focusProps:w,isFocused:C,isFocusVisible:D}=reactAria.useFocusRing(),k=l==="floating",[T,$]=g0[s],I=utils.filterTruthyValues({"data-focus-visible":D,"data-focused":C,"data-hovered":P,"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,R,I),className:utils.classNames(Pu({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(U,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:xu({isFocused:C,variant:l,size:s}),"aria-label":b.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,w),ref:y,className:utils.classNames("BaselineUI-Pagination-Input",Cu),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:ku({isDisabled:c}),children:["/ ",jsxRuntime.jsx(so,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(U,{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})]})]})});Tu.displayName="Pagination";var Su=({date:e,...t})=>{let o=reactAria.useDateFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};Su.displayName="DateFormat";var ar=z({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Ta=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"]]}),Du="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",Mu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Nu=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"]]}),Sa=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 Au=({item:e,state:t,variant:o="neutral",size:r="md"})=>{let a=ht__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=ht__default.default.useRef(null),{buttonProps:f}=reactAria.useButton(p,b),{hoverProps:y,isHovered:g}=reactAria.useHover({isDisabled:u}),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:u}),h=e.value?.icon,x=e.value?.data?.variant??o,R=r==="md"?_12.XIcon:_8.XIcon,P=r==="md"?_16.CheckmarkIcon:_12.CheckmarkIcon;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,n,v),ref:a,className:utils.classNames(Ta({isFocusVisible:i,variant:x,isDisabled:u,allowsRemoving:c,isSelected:m,allowsSelection:d,isHovered:_,size:r}),Sa({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Du,children:[m?jsxRuntime.jsx(P,{size:r==="md"?16:12,className:utils.classNames(ar({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&h?jsxRuntime.jsx(h,{size:r==="md"?16:12,className:utils.classNames(ar({variant:x,isDisabled:u,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(S,{paddingY:r==="md"?"sm":"none",typography:r==="sm"?"label.sm.medium":"label.md.medium",children:e.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(f,y),className:Nu({variant:x,isHovered:g}),children:jsxRuntime.jsx(R,{size:r==="md"?12:8})}):null]})})};var Ou=ht__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,size:n="md",...i},s)=>{let l=ht.useMemo(()=>a.map(d=>({...d,data:{variant:d.variant}})),[a]),p=pe(),c=ht__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(Mu,"BaselineUI-TagGroup",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(s,c),children:[...u.collection].map(d=>jsxRuntime.jsx(Au,{state:u,item:d,variant:i.variant,size:n},d.key))})});Ou.displayName="TagGroup";var Hu="_1yep5z6ln",Vu=z({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Uu=z({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),qu="_1kvz17de",Ku="_1yep5z6ev _1yep5z6dy",Gu=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:[]}),Wu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Yu=z({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Yi=ht__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=ht.useContext(it),{disabledKeys:n}=ht.useContext(it),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=ge(s.target),p=l?jr(l):jr(),c=[...a?.keys()||[]].findIndex(f=>a?.get(f)?.current===p),u=a?.get(c||0),m=a?.size||0,d=f=>{let y=a.get(f-1<0?m-1:f-1);n?.has(y?.current?.getAttribute("data-key")||"")?d(f-1):y?.current?.focus();},b=f=>{let y=a.get((f+1)%m);n?.has(y?.current?.getAttribute("data-key")||"")?b(f+1):y?.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(Hu,t),ref:r,children:ht__default.default.Children.map(e,(s,l)=>ht__default.default.cloneElement(s,{index:l}))})});Yi.displayName="AccordionBase";var it=ht__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Ju=ht__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]=ht__default.default.useState(o),u=ht__default.default.useRef(new Map).current,[m,d]=ht__default.default.useState(a);ht.useEffect(()=>{d(a);},[a]),ht.useEffect(()=>{n?.(p);},[p,n]);let b=ht.useMemo(()=>({expandedKeys:r||p,setExpandedKeys:r?()=>{}:c,disabledKeys:t,headers:u,expansionMode:m}),[r,p,t,u,m]);return jsxRuntime.jsx(it.Provider,{value:b,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Yi,{className:i,style:s,ref:l,children:e})})})});Ju.displayName="Accordion";var Zi=ht__default.default.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=ht__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:u,expansionMode:m,disabledKeys:d,headers:b}=ht.useContext(it),f=d?.has(r),y=reactAria.useFocusManager();utils.invariant(y);let{focusNext:g,focusPrevious:v}=y,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:I=>{I.key==="ArrowRight"?g({wrap:true}):I.key==="ArrowLeft"?v({wrap:true}):I.continuePropagation();},isDisabled:f});ht.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),b?.set(n,p);},[n,b]);let h=()=>{u(I=>{let N=new Set(I);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:f},p),{pressProps:R}=reactAria.usePress({onPress:h,isDisabled:f}),{focusProps:P,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:C,isHovered:D}=reactAria.useHover({isDisabled:f}),{focusProps:k,isFocusVisible:T}=reactAria.useFocusRing({within:true}),$=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,R,C,k),className:Gu({isFocusVisible:w,isHovered:D,isDisabled:f}),ref:l,children:[jsxRuntime.jsxs("div",{className:Yu({isDisabled:!!f}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Uu({isExpanded:$}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(x,P),id:a,"data-key":r,className:Wu,ref:p,children:e})]}),t?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Vu({showActionsOnTriggerOnly:s,isTriggered:T||D}),children:t.map((I,N)=>jsxRuntime.jsx(L,{variant:"secondary",size:"sm",excludeFromTabOrder:true,isDisabled:f,...I},N))}):null,i?jsxRuntime.jsx("div",{className:Ku,children:i}):null]})});Zi.displayName="AccordionHeader";var nm=ht__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}=ht.useContext(it),d=m.has(r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Zi,{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:qu,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})]})});nm.displayName="AccordionItem";var lr=ht__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=ht__default.default.useRef(null),{buttonProps:d,isPressed:b}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:g,isFocused:v,isFocusVisible:_}=reactAria.useFocusRing(),h=io({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":y,"data-pressed":b,"data-open":t,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(d,f,g,x),ref:M(u,m),className:utils.classNames(Rd({isFocused:_,isDisabled:!!c.isDisabled,isOpen:t,isHovered:y,variant:e,isReadOnly:!!c.isReadOnly}),Yt({variant:e,isHovered:y,isFocused:_,validationState:r,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs(S,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",flex:1,paddingRight:"md",children:[jsxRuntime.jsxs("span",{className:Td,children:[o?jsxRuntime.jsx(o,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":true,className:utils.classNames(Gt({validationState:r,isReadOnly:!!c.isReadOnly}),$d),children:jsxRuntime.jsx(h,{size:16})}):null]}),jsxRuntime.jsx("span",{"aria-hidden":true,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Id({isOpen:t})})})]})});lr.displayName="SelectButton";var Da=ht__default.default.createContext({state:null,popoverAnchorRef:null}),es=ht__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:f,selectedValue:y,valueProps:g,isOpen:v,ref:_})=>{let h=y&&"icon"in y&&y.icon;return jsxRuntime.jsx(lr,{...f,className:p,style:c,isOpen:v,isReadOnly:d.isReadOnly,ref:_,variant:r,validationState:d.validationState,selectedIcon:h||void 0,label:y?"label"in y&&y?.label:d.placeholder,valueProps:g})},...d},b)=>{let{popoverAnchorRef:f}=ht.useContext(Da),y=ht__default.default.useRef(null),g=ze(d.portalContainer),{labelProps:v,triggerProps:_,valueProps:h,menuProps:x,descriptionProps:R,errorMessageProps:P}=reactAria.useSelect({...d,validationState:d.validationState==="error"?"invalid":"valid"},u,y),w=_e({...d,descriptionProps:R,errorMessageProps:P,labelPosition:o}),C=u.selectedItem?.value??null;return jsxRuntime.jsxs(Ct.Provider,{value:u,children:[jsxRuntime.jsxs("div",{style:t,className:utils.classNames(ot({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":n,ref:b,children:[d.label||w?jsxRuntime.jsxs("div",{className:tt({labelPosition:o,hasMessage:!!w}),children:[d.label?jsxRuntime.jsx("div",{...v,className:utils.classNames(Wt,"BaselineUI-Select-Label"),children:d.label}):null,o==="start"&&w]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:u,triggerRef:y,isDisabled:d.isDisabled,label:d.label,name:d.name}),m({buttonProps:_,selectedValue:C,valueProps:h,isOpen:u.isOpen,ref:y}),o==="top"&&w]}),u?jsxRuntime.jsx(ke,{placement:l,portalContainer:g,offset:2,state:u,triggerRef:f||y,style:t,className:"BaselineUI-Select-Popover",...d,children:jsxRuntime.jsx(me,{...x,label:d.label,items:d.items,showSelectedIcon:d.showSelectedIcon,className:at,optionStyle:i,optionClassName:s})}):null]})});es.displayName="SelectCore";var cm=ht__default.default.forwardRef((e,t)=>{let o=pe(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:o});return jsxRuntime.jsx(es,{...e,ref:t,state:r})});cm.displayName="SelectStandalone";var lt=ht__default.default.forwardRef((e,t)=>{let{state:o}=ht.useContext(Da);return ht.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(es,{state:o,...e,ref:t}):jsxRuntime.jsx(cm,{...e,ref:t})});lt.displayName="Select";var um=ht__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=ht__default.default.useRef(null),{tooltipProps:c}=ve({label:s["aria-label"],tooltip:n}),u=ht.useCallback(({buttonProps:m,selectedValue:d,valueProps:b,isOpen:f,ref:y})=>{let g=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(J,{...c,children:jsxRuntime.jsx(lr,{...m,isOpen:f,isReadOnly:s.isReadOnly,ref:y,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(S,{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(ro,{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(lt,{...s,renderTrigger:u})]})});um.displayName="IconSelect";var mm="_1017q4c5",fm=z({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),ym="_1017q4c4";var vC={sm:_16.AvatarIcon,md:_24.AvatarIcon},fo=ht__default.default.forwardRef(({className:e,style:t,size:o="md",icon:r=vC[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}=Xt({src:n,alt:a}),b=a?.split(" ").map(f=>f[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(fm({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:ym}):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:mm}):null]})});fo.displayName="Avatar";var bm="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",gm=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"]]}),vm=z({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),_m="_1x62fhbl",os=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"]]}),zm="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",hm=z({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var xm=({state:e,...t})=>{let o=ht__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({[zm]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var ns=ht__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=ht__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(hm({variant:a}),r),style:o,children:[jsxRuntime.jsx("div",{...m,className:vm({variant:a}),ref:u,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(Pm,{item:d,state:c,onRemove:i,variant:a},d.key)))}),n?.map((d,b)=>jsxRuntime.jsx("div",{className:bm,children:jsxRuntime.jsx(L,{...d,variant:"secondary",size:"sm",className:utils.classNames(_m,d.className)})},b))]}),jsxRuntime.jsx(xm,{state:c},c.selectedItem?.key)]})});ns.displayName="TabsBase";var Pm=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,i=ht__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:f}=n,{focusProps:y,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,y,h),className:utils.classNames(gm({isHovered:u,isSelected:l,isFocusVisible:g,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",f),style:b,ref:i,children:[d?jsxRuntime.jsx(d,{size:20,className:os({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:os({isHovered:u,isSelected:l,isDisabled:p,variant:r})}):null]})};Pm.displayName="TabButton";var wm=ht__default.default.forwardRef(function({children:t,...o},r){let a=ht.useMemo(()=>ht__default.default.Children.map(t,n=>!n||!ht__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)})});wm.displayName="Tabs";var Im=({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);Im.displayName="TabItem";var Rm={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 $m=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:[]}),Tm=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"]]}),Sm=z({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Dm=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:[]}),Mm=z({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Nm=z({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Em=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 YC={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}},La=ht__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(Rm),f=o&&jsxRuntime.jsx(q,{variant:s==="compact"?"tertiary":"ghost",label:o,onPress:r}),y=YC[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(Tm({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:Em({arrangement:s}),children:[jsxRuntime.jsx(y,{className:Mm({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:$m({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:Nm({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:Sm({size:p}),...m?.description,children:t})]}),s==="compact"&&f]}),jsxRuntime.jsxs("div",{className:Dm({arrangement:s}),children:[s!=="compact"&&f,l?jsxRuntime.jsx(L,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":b.formatMessage("close"),...m?.close}):null]})]})});La.displayName="InlineAlert";var pt={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 Ba=({children:e})=>{let{triggerProps:t}=ht__default.default.useContext(Pt);return jsxRuntime.jsx(interactions.PressResponder,{...t,children:e})};Ba.displayName="ModalTrigger";var oP=({children:e})=>{let{state:t}=ht__default.default.useContext(Pt);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{t?.close();},children:e})};var Lm="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",Bm="_1dbkl5e",Am=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:[]}),Fm="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",jm=z({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Aa="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",Om="_1dbkl5f z9nup86",Fa="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",Hm="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",Vm="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",ja=z({defaultClassName:"_1dbkl5h _1dbkl5g _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),ls="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",Um=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"]]}),qm=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:[]}),Oa="_1dbkl5g",dr="_1dbkl5u",Ha="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",ps="_1dbkl5x",Km="_1dbkl5w",cs="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Va=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:[]}),ds="z9nup83 z9nup85 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Gm=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"]]}),Wm="_1yep5z6f6",Ym="_1344e9q9 _1yep5z6fl";var ct=ht__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 f=e&&e!==Be&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:y}=A(),g=!f,{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}),R=g?y(Xm.none):v["aria-label"],P=d["aria-label"]??R,{tooltipProps:w}=ve({tooltip:l,label:P}),C=jsxRuntime.jsx("div",{...reactAria.mergeProps(_,x,g?{}:v),style:n,"aria-label":g?y(Xm.none):v["aria-label"],role:"img",className:utils.classNames(Gm({removeBlendMode:g,isFocusVisible:t,isDisabled:!!a,isSelected:!!o,isHovered:h}),"BaselineUI-ColorSwatch",i),ref:b,id:s,...d,children:jsxRuntime.jsxs(S,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:f&&!p?Zm(f,4):void 0,children:[g&&!p?jsxRuntime.jsx("div",{className:Ym}):null,p&&c?jsxRuntime.jsx(c,{role:"presentation",size:16,className:Wm,"aria-hidden":"true"}):null]})});return w&&!a?jsxRuntime.jsx(J,{...w,children:jsxRuntime.jsx(ba,{children:C})}):C});ct.displayName="ColorSwatch";var Xm=G({none:{id:"none",defaultMessage:"None"}});var Qm=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],fr=color.parseColor("#000000").toFormat("hsla"),de="hsla",mr="hexa";function Rt(e){return typeof e=="string"?color.parseColor(e).toFormat(de):e?e.toFormat(de):null}function ef(e,t){return e?.getChannelValue("alpha")?t?.toString(mr)===e.toString(mr):!t?.getChannelValue("alpha")}function tf(e,t,o){return t?.label?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var Be="NONE";function of(e,t){let o=t?.map(a=>({id:color.parseColor(a.color).toString(mr),label:a.label}))||[],r={id:Be,label:e};return [...o,r]}var Ua=(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:Hm,children:jsxRuntime.jsx(ct,{color:e.value.id,isFocusVisible:o,isSelected:r,"aria-label":e.value.label,isInteractive:true})})),Zm=(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 af=({value:e,...t})=>{let o=ht__default.default.useRef(null),r=ht__default.default.useRef(null),a=ht__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);ht.useEffect(()=>{o.current?.focus();},[]);let{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Lm,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(Va({isFocusVisible:u}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:Rt(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:o,...s,...c}),jsxRuntime.jsx("input",{ref:r,...l,...c})]})})};var lf=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=color.useColorFieldState({value:e,onChange:u=>{t(Rt(u)?.toFormat(de).withChannelValue("alpha",e.getChannelValue("alpha")??1)||fr);}}),n=ht__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(ls,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Um({isFocused:l,isHovered:c,allowAlpha:o})}),o?jsxRuntime.jsx(cf,{color:e,setColor:t}):null]})},pf=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(ls,"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:dr,onChange:n=>{t(r.withChannelValue("red",n).toFormat(de));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:false,className:dr,onChange:n=>{t(r.withChannelValue("green",n).toFormat(de));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:false,className:dr,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(de));},step:1,minValue:0,maxValue:255}),o?jsxRuntime.jsx(cf,{color:e,setColor:t}):null]})},IP={style:"percent",maximumFractionDigits:0},cf=({color:e,setColor:t})=>{let{locale:o}=reactAria.useLocale(),r=ht.useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsxRuntime.jsx(Ve,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:IP,className:dr,showStepper:false,onChange:r,minValue:0,maxValue:1})};var ys=({channel:e,...t})=>{let{locale:o}=reactAria.useLocale(),r=color.useColorSliderState({...t,channel:e,locale:o}),a=ht__default.default.useRef(null),n=ht__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(Fa,{[zc({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:ds}),jsxRuntime.jsx("div",{className:Fa,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Va({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:ds,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Fa}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var qa=({color:e,setColor:t,allowAlpha:o,onChangeEnd:r})=>{let[a,n]=ht__default.default.useState("hex"),{formatMessage:i}=A(pt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(af,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),jsxRuntime.jsxs("div",{className:cs,children:[jsxRuntime.jsx(ys,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),o?jsxRuntime.jsx(ys,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(cs,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(lt,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Qm,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(lf,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o}),a==="rgb"&&jsxRuntime.jsx(pf,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o})]})]})};var gf=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=A(pt),c=ht__default.default.useRef(null),u=Ne(c.current),[m,d]=yc(o,[]),b=ht__default.default.useRef(null),[f,y]=ht__default.default.useState(e),g=ht__default.default.useMemo(()=>m.map(P=>({id:P,label:color.parseColor(P).getColorName(l),description:P})),[m,l]),v=ht.useCallback(()=>{let P=i==="active"?e:f;if(m.includes(P.toString(de))){b.current?.querySelector(`[data-key='${P.toString(de)}']`)?.classList.add(ps);return}d([...m,P.toString(de)]);},[m,e,d,f,i]);ht.useEffect(()=>{let P=b.current;function w(C){C.animationName===Km&&C.target?.classList.remove(ps);}return P?.addEventListener("animationend",w),()=>{P?.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=ht.useCallback(P=>jsxRuntime.jsxs(xe,{size:"content",className:ja({includesCustomColorPicker:true}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(qa,{color:f,setColor:y,allowAlpha:s}),jsxRuntime.jsx(U,{}),jsxRuntime.jsx(S,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(S,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(q,{label:p("cancel"),size:"sm",variant:"secondary",onPress:P}),jsxRuntime.jsx(q,{label:p("add"),variant:"primary",onPress:()=>{v(),P();},size:"sm"})]})})]}),[f,v,p,s]),R=ht.useCallback(P=>{utils.invariant(P instanceof Set,"Key must be a set");let w=[...P][0];w&&t(color.parseColor(w).toFormat(de));},[t]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Vm,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:_,children:n}),jsxRuntime.jsxs(S,{display:"flex",children:[!!m.length&&m.includes(e.toString(de))&&jsxRuntime.jsx(L,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(m.filter(P=>P!==e.toString(de)));}}),i==="active"&&h,i==="lazy"&&(u==="mobile"?jsxRuntime.jsxs(Ee,{children:[jsxRuntime.jsx(Ba,{children:h}),jsxRuntime.jsx(Ue,{style:{zIndex:1e5},children:({close:P})=>x(P)})]}):jsxRuntime.jsxs(je,{type:"dialog",children:[jsxRuntime.jsx(Oe,{children:h}),jsxRuntime.jsx(Le,{placement:"right top",className:Oa,offset:6,children:({close:P})=>x(P)})]}))]})]}),!!m.length&&jsxRuntime.jsx(me,{items:g,layout:"grid","aria-labelledby":_,className:utils.classNames(Aa,Ha,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ua,ref:b,autoFocus:false,selectionMode:"single",selectedKeys:[e.toString(de)],onSelectionChange:R})]})};var vs=ht__default.default.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=A(pt),l=ht.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(de)),n.close();}},[n,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(Ha,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(me,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Aa,renderOption:Ua,selectionMode:"single",selectedKeys:[t?.toString(mr)||Be],onSelectionChange:l})})});vs.displayName="ColorPresetList";var br=ht__default.default.forwardRef(({color:e,colorLabel:t,colorName:o,isIndeterminate:r,indeterminateIcon:a,...n},i)=>{let s=ht__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}),f=Fr(),y=Fr();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(c,l,d,b),style:n.style,className:utils.classNames(Am({isHovered:p,isFocusVisible:m||n.isOpen,isDisabled:n.isDisabled,labelPosition:n.labelPosition}),"BaselineUI-ColorInputButton",n.className),ref:M(i,s),id:f,"aria-labelledby":n["aria-labelledby"]||`${f} ${y}`,children:[jsxRuntime.jsx(ct,{color:e?.toString("hexa"),isIndeterminate:r,indeterminateIcon:a}),t?jsxRuntime.jsx("div",{className:Om,id:y,"aria-hidden":"true",children:o}):typeof o=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:o})]})});br.displayName="ColorInputButton";var Wa=ht__default.default.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=ht__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(qm({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:Bm,style:{backgroundColor:r.color||void 0}})]})});Wa.displayName="IconColorInputButton";function If({colorLabel:e,color:t,presets:o,isIndeterminate:r}){let{formatMessage:a}=A(),{locale:n}=reactAria.useLocale(),i=ht.useMemo(()=>r?{id:"indeterminate",label:a(wf.indeterminate)}:o.find(p=>p.id===Be?!t:t?ef(t,color.parseColor(p.id)):false),[o,t,r,a]),s=ht.useMemo(()=>{if(typeof e=="function")return e?.(t,{isIndeterminate:!!r});if(typeof e=="boolean")return e?tf(t,i,a(wf.transparent)):false;throw new TypeError("`colorLabel` must be a function or a boolean")},[t,e,a,i,r]),l=ht.useMemo(()=>{if(i?.label)return i.label;t?.getColorName(n);},[t,n,i?.label]);return {colorName:s,humanReadableName:l}}var wf=G({transparent:{defaultMessage:"Transparent",id:"transparent"},indeterminate:{defaultMessage:"Indeterminate",id:"indeterminate"}});var go=ht__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:f,renderTriggerButton:y=({isOpen:D,color:k,ref:T,colorName:$,triggerProps:I,labelId:N,isIndeterminate:E,indeterminateIcon:j})=>jsxRuntime.jsx(br,{...reactAria.mergeProps(I,{...w.label?{"aria-labelledby":N}:{"aria-label":w["aria-label"]}}),ref:T,isOpen:D,isDisabled:w.isDisabled,labelPosition:n,color:k,colorLabel:i,colorName:$,isIndeterminate:E,indeterminateIcon:j}),pickerMode:g="active",offset:v=2,placement:_=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":x,isIndeterminate:R,indeterminateIcon:P,...w},C)=>{let D=ht__default.default.useRef(null),k=ht__default.default.useRef(null),T=reactStately.useOverlayTriggerState(w),{triggerProps:$,overlayProps:I}=reactAria.useOverlayTrigger({type:"listbox"},T,D),N=ze(w.portalContainer),[E,j]=utils$1.useControlledState(m===void 0?void 0:Rt(m),Rt(c),X=>l?.(X?.toFormat("rgba")||null)),{formatMessage:B}=A(pt),O=ht.useMemo(()=>of(B(Ya.noColor),a),[a,B]),H=reactAria.useId(),{colorName:V}=If({colorLabel:i,color:E,presets:O,isIndeterminate:R}),Q=ht.useMemo(()=>O.filter(X=>o||X.id!==Be),[O,o]),F=d||B(Ya.addColor),Y=b||B(Ya.removeColor),oe=f||B(Ya.customColors),le=jsxRuntime.jsx(gf,{color:E||fr,setColor:X=>{j(X),p?.(X?.toFormat("rgba")||null);},storePickedColorKey:u,addColorButtonLabel:F,removeColorButtonLabel:Y,customColorsLabel:oe,pickerMode:g,allowAlpha:r});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[Fm]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,"data-block-class":x,style:t,ref:C,children:[w.label?jsxRuntime.jsx("label",{id:H,className:jm({labelPosition:n}),children:w.label}):null,y({isOpen:T.isOpen,color:E,ref:D,colorName:V,triggerProps:$,labelId:H,isIndeterminate:R,indeterminateIcon:P})]}),jsxRuntime.jsx(ke,{...w,portalContainer:N,placement:_,state:T,offset:v,className:utils.classNames(Oa,"BaselineUI-ColorInput-Popover"),triggerRef:D,overlayProps:I,children:jsxRuntime.jsxs(xe,{size:"content",className:ja({includesCustomColorPicker:s}),ref:k,"aria-labelledby":H,"aria-label":w["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qa,{color:E||fr,setColor:j,allowAlpha:r,onChangeEnd:X=>{p?.(X?.toFormat("rgba")||null);}}),le]}):null,!!Q.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(U,{}):null,jsxRuntime.jsx(vs,{autoFocus:s&&g==="active"?false:"first",state:T,triggerRef:D,presets:Q,color:E,setColor:X=>{j(X),p?.(X?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?le:null]})})]})});go.displayName="ColorInput";var Ya=G({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 Sf=ht__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=ht__default.default.useRef(null),{tooltipProps:c}=ve({label:s["aria-label"],tooltip:n}),u=ht.useCallback(({isOpen:m,color:d,ref:b,colorName:f,triggerProps:y,isIndeterminate:g,indeterminateIcon:v})=>jsxRuntime.jsx(J,{...c,children:r==="standard"?jsxRuntime.jsx(br,{...y,"aria-label":s["aria-label"],ref:b,isOpen:m,isDisabled:s.isDisabled,color:d,colorLabel:false,colorName:f,isIndeterminate:g,indeterminateIcon:v}):jsxRuntime.jsx(Wa,{...y,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(S,{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(ro,{icon:o,label:s["aria-label"],tooltip:i,"aria-hidden":"true",size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(go,{...s,colorLabel:false,renderTriggerButton:u})]})});Sf.displayName="IconColorInput";var Df={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 Xa=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"]]}),Mf="_1yep5z6d8",Za=z({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Nf=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"]]}),Ef="_1i0ytqa0",Ja=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:[]}),Lf=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 Bf({line:e,options:t}){let o=ht.useRef([]),r=ht.useMemo(()=>{let a=Math.ceil(e.length/vo),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!o.current[i])){let p=e.slice(i*vo-(i>0?1:0),i*vo+vo);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,u,m])=>({x:c,y:u,pressure:m})),t)),p.length>=(i>0?vo+1:vo)&&(o.current[i]=n);}return n},[e,t]);return [...o.current,r]}var vo=60*3;var R2={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},Ff=ht__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:f,redoLabel:y,footerClassName:g,canvasRef:v,value:_,footerStyle:h,"data-block-id":x,"data-block-class":R,"aria-label":P="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...C},D)=>{let k=A(Df),T=ht__default.default.useRef(null),[$,I]=ht__default.default.useState(_||l||[]),N=ht__default.default.useMemo(()=>({...R2,...C}),[C]),[E,j]=ht__default.default.useState(),B=reactAria.useId(),{labelProps:O,fieldProps:H}=reactAria.useLabel({...C,"aria-label":P,labelElementType:"span"}),{isFocusVisible:V,focusProps:Q}=reactAria.useFocusRing({within:true}),{hoverProps:F,isHovered:Y}=reactAria.useHover({isDisabled:m}),{undo:oe,redo:le,canRedo:X,canUndo:Pe,push:Ie}=sc($,{onAction:Z=>{Z&&(I(Z),p?.(Z));},isDisabled:!c}),{keyboardProps:zt}=reactAria.useKeyboard({onKeyDown:Z=>{Z.key==="Backspace"?Vt():Z.key==="z"&&(Z.metaKey||Z.ctrlKey)&&(Z.shiftKey?X&&le():Pe&&oe());}}),[ie,fe]=ht.useState(false),Bo=ht.useCallback(Z=>{let K=Z.currentTarget.getBoundingClientRect();j(K),Z.target.setPointerCapture(Z.pointerId);let ce=[Z.clientX-K.x,Z.clientY-K.y,Z.pressure];I(ee=>[...ee,[ce]]),fe(true);},[]),Ot=ht.useCallback(Z=>{if(Z.buttons!==1||!E)return;let ce=Hf(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]);I(ee=>{let be=[...ee];return be[ee.length-1]=[...be[ee.length-1],...ce],be});},[E,a]),Ht=()=>{E&&(p?.($),Ie($),fe(false));};ht.useEffect(()=>{s?.($);},[$,s]);let Vt=()=>{I([]),s?.([]),Ie([]);};return jsxRuntime.jsxs("div",{ref:M(T,D),className:utils.classNames(Ef,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":x,"data-block-class":R,children:[C.label||c?jsxRuntime.jsxs("div",{className:Lf({isInline:u}),children:[C.label?jsxRuntime.jsx(te,{type:"label",size:"sm",...O,children:C.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!Pe||m,icon:_16.UndoIcon,onPress:oe,"aria-label":f||k.formatMessage("undo")}),jsxRuntime.jsx(L,{variant:"secondary",size:"sm",isDisabled:!X||m,icon:_16.RedoIcon,onPress:le,"aria-label":y||k.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(Q,zt,F,H),tabIndex:m?void 0:0,className:utils.classNames(Xa({isInline:u,isHovered:Y}),Nf({isFocusVisible:V,isInline:u,isDisabled:!!m}),o),"aria-describedby":C["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:Bo,onPointerMove:Ot,onPointerUp:Ht,children:(_||$).map((Z,K,ce)=>K<ce.length-1||!ie?jsxRuntime.jsx(jf,{line:Z,options:N,strokeColor:i,strokeWidth:n},K):jsxRuntime.jsx(Of,{line:Z,options:N,strokeColor:i,strokeWidth:n},K))})]}),d||b?jsxRuntime.jsx("div",{style:h,className:utils.classNames(Ja({isInline:u,isDisabled:m}),g),children:($.length||!d)&&b?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:b,isDisabled:m,onPress:Vt}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:d,isDisabled:true})}):null]})});Ff.displayName="FreehandCanvas";var jf=ht__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=ht.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})});jf.displayName="Stroke";var Of=ht__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=Bf({line:e,options:t});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:o,strokeWidth:r},i))})});Of.displayName="SplitStroke";function Hf(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(o=>Hf(o)):[e]}return [e]}var Vf="_1vac7ws0",Uf=z({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Kf(e,t){let[o,r]=ht.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 Gf(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;ht.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 q2=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Yf=ht__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:f,onRotateStart:y,onRotateEnd:g,onRotate:v,onSnap:_,isSnappable:h,elementGuidelines:x,hideAnchorOnDrag:R=true,title:P,rotationPosition:w,autoUpdate:C,bound:D,snapRotationDegrees:k,snapRotationThreshold:T,scrollableAncestor:$,renderDirections:I,stopPropagation:N,transformOrigin:E,preventDefault:j},B)=>{let O=ht.useRef(null),H=ht.useRef(null),[V,Q]=ht.useState(document),F=ht.useRef(V.createElement("div")),[Y,oe]=ht.useState({}),[le,X]=ht.useState(false),[Pe,Ie]=ht.useState(false),[zt,ie]=ht.useState(),fe=Kf(x,V);ht.useLayoutEffect(()=>{let K=F.current;return F.current=V.createElement("div"),()=>{K.remove();}},[V]);let{keyboardProps:Bo}=reactAria.useKeyboard({onKeyDown:K=>{let ce=K.shiftKey?10:1,ee=K.metaKey||K.ctrlKey;ee&&K.shiftKey&&(ce=45);function be(Je,Ao="x"){ee?H.current?.request("rotatable",{deltaRotate:Je*ce},true):H.current?.request("draggable",Ao==="x"?{deltaX:Je*ce}:{deltaY:Je*ce},true);}switch(K.key){case "ArrowRight":{be(1);break}case "ArrowLeft":{be(-1);break}case "ArrowUp":{be(-1,"y");break}case "ArrowDown":be(1,"y");}requestAnimationFrame(()=>{H.current?.updateRect();});}});ht.useEffect(()=>{let K=ge(O.current);Q(K);let ce=F.current;K.body.append(F.current);function ee(Je){Ie(Je.shiftKey);}function be(){Ie(false);}return K.addEventListener("keydown",ee),K.addEventListener("keyup",be),()=>{K.removeEventListener("keydown",ee),K.removeEventListener("keyup",be),ce.remove();}},[]),Gf({scrollable:$,onScroll:()=>{H.current?.updateRect();},ownerDocument:V});let Ot=ht.useCallback(K=>{oe(ce=>({...ce,...K.style})),i?.(K);},[i]),Ht=ht.useCallback(K=>{if(X(true),O.current?.focus(),D){let ee=utils.getHTMLElement(D,V)?.getBoundingClientRect();ie({position:"client",left:ee?.left??0,top:ee?.top??0,right:ee?.right??0,bottom:ee?.bottom??0});}c?.(K);},[D,V,c]),Vt=ht.useCallback(K=>{X(false),u?.(K);},[u]),Z=t({style:{...Y.width&&{width:Y.width},...Y.height&&{height:Y.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Bo,ref:M(O,B),style:{display:"inline-block",...n,...Y},className:utils.classNames(Vf,e),onDoubleClick:p,tabIndex:0,title:P,children:Z}),Bz.createPortal(jsxRuntime.jsx(q2,{ref:H,target:O,draggable:a,resizable:r,rotatable:o,keepRatio:Pe,throttleDrag:1,snappable:h||!!D,elementGuidelines:fe,snapRenderThreshold:.9,className:Uf({isDragging:le&&R}),onRender:Ot,onDragStart:Ht,onDragEnd:Vt,useResizeObserver:C,useMutationObserver:C,onRenderEnd:l,onDrag:m,onResizeStart:d,onResizeEnd:b,onResize:f,onRotateStart:y,onRotateEnd:g,onRotate:v,onRenderStart:s,onSnap:_,rotationPosition:w,bounds:zt,snapRotationDegrees:k,snapRotationThreshold:T,renderDirections:I,stopPropagation:N,preventDefault:j,transformOrigin:E}),F.current)]})});Yf.displayName="Transform";var Xf={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 Qf=ht__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:f,footerClassName:y,footerStyle:g,clearLabel:v,placeholder:_,labelStyle:h,labelClassName:x,...R},P)=>{let w=ht__default.default.useRef(null),C=ht__default.default.useRef(null),{formatMessage:D}=A(Xf),[k,T]=utils$1.useControlledState(n,a||null,ie=>{utils.invariant(typeof ie!="string"),R.onValueChange?.(ie?[ie]:[]);}),$=ht.useMemo(()=>nk(k||void 0),[k]),{fieldProps:I,labelProps:N}=reactAria.useField(R),{dropProps:E,isDropTarget:j}=reactAria.useDrop({ref:w,onDrop:async ie=>{if(l)return;let fe=await Ui({items:ie.items});fe.length&&T(fe[0]),p?.(ie);},...R}),{clipboardProps:B}=reactAria.useClipboard({onPaste:async ie=>{if(l)return;let fe=await Ui({items:ie});fe.length&&T(fe[0]),c?.(ie);},...R}),O=()=>{T(null),C.current&&(C.current.value="");},H={type:"file",onChange:ie=>{let fe=[...ie.target.files];T(fe[0]),R.onChange?.(ie);},accept:r,disabled:l},{focusProps:V,isFocused:Q,isFocusVisible:F}=reactAria.useFocusRing({within:true}),{hoverProps:Y,isHovered:oe}=reactAria.useHover({isDisabled:l}),{imgProps:le,isLoading:X,isLoaded:Pe}=Xt({src:$,alt:i||""}),Ie={label:s||D("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:true,className:utils.classNames(ta({isFocusVisible:F}),{[Mf]:j&&!l},f),style:b},zt=utils.filterTruthyValues({"data-loaded":Pe,"data-block-id":m,"data-block-class":d,"data-hovered":oe,"data-focused":Q,"data-drop-target":j,"data-disabled":l,"data-focus-visible":F});return jsxRuntime.jsxs(S,{...zt,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:P,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(E,Y,V,N),className:utils.classNames(Xa({isInline:o,isHovered:oe,isDisabled:l,hasLoadedImage:!!$&&Pe,showFocusRing:j||!!$&&F}),x),style:h,ref:w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(I,B,H),ref:C})}),!$&&jsxRuntime.jsx(q,{...Ie}),!!$&&(X?jsxRuntime.jsx(po,{}):jsxRuntime.jsx("img",{className:Za({isInline:o,isDisabled:l,hasLoadedImage:!!$&&Pe&&u}),...le}))]}),_||v?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Ja({isInline:o,isDisabled:l}),y),children:($||!_)&&v?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:v,isDisabled:l,onPress:O}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:_,isDisabled:true})}):null]})});Qf.displayName="ImageDropZone";function nk(e){return e instanceof File?URL.createObjectURL(e):e}var ey="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",ws="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",ty=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 ay=ht__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":f,...y},g)=>{let{focusProps:v,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing({within:true}),{isHovered:x,hoverProps:R}=reactAria.useHover({isDisabled:o}),{pressProps:P}=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",{...y,className:utils.classNames(ty({isInline:r,isFocusVisible:h,isDisabled:o,isHovered:x,accent:d}),"BaselineUI-Preview",e),"data-block-id":b,"data-block-class":f,"aria-label":y["aria-label"]||a||s,style:t,ref:g,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:o,...reactAria.mergeProps(R,v,P,w),className:ws,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(R,v,P,w),disabled:o,style:l,"aria-label":m,className:ws,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:Za({isInline:r,isDisabled:o})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(L,{isDisabled:o,className:ey,"aria-label":u,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});ay.displayName="Preview";var ny="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",iy=z({defaultClassName:"cw3m0n5 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),sy="cw3m0n4",ly="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",py=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 hk=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n,isHovered:i,isReadOnly:s})=>jsxRuntime.jsxs("div",{className:Ra({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:utils.classNames($a({isSelected:o,isFocusVisible:r,isDisabled:a,isReadOnly:s,isHovered:i}),py({isHovered:i})),children:o?jsxRuntime.jsx("div",{className:sy}):null}),e?jsxRuntime.jsxs("div",{className:ny,children:[jsxRuntime.jsx("span",{className:Ia({isDisabled:a}),children:e}),t?jsxRuntime.jsx("span",{className:iy({isDisabled:a}),children:t}):null]}):null]}),dy=({state:e,renderOption:t=hk,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(o.id),p=ht__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:f}=reactAria.useFocusRing(),{hoverProps:y,isHovered:g}=reactAria.useHover({isDisabled:l}),v=utils.filterTruthyValues({"data-selected":m,"data-focused":f,"data-focus-visible":b,"data-hovered":g,"data-disabled":l,"data-pressed":u,"data-read-only":i});return jsxRuntime.jsxs("label",{...y,...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:f,isHovered:g,isDisabled:l,optionLabelPosition:r,isReadOnly:i})]})};var my=ht__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 f=reactStately.useRadioGroupState(d),{radioGroupProps:y,labelProps:g,descriptionProps:v,errorMessageProps:_}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":l,"aria-describedby":p,"aria-details":c},f),h=_e({...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(y,x),className:utils.classNames(ot({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:b,children:[d.label||h?jsxRuntime.jsxs("div",{className:tt({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Wt,"BaselineUI-RadioGroup-Label"),children:d.label}),n==="start"&&h]}):null,jsxRuntime.jsx("div",{className:utils.classNames(ly,{[Zt]:d.isDisabled},o),style:r,children:a.map(R=>jsxRuntime.jsx(dy,{state:f,renderOption:i,item:R,...d,value:R.id},R.id))}),n==="top"&&h]})});my.displayName="RadioGroup";var fy=({id:e,defaultMessage:t,elementType:o=ht.Fragment})=>{utils.invariant(e||t,"`id` or `defaultMessage` is required.");let r=A();return jsxRuntime.jsx(o,{children:r.formatMessage(e)||t})};fy.displayName="MessageFormat";var yy=ht__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})});yy.displayName="Group";var Ss="UNSUPPORTED_IN_MENU";function vy(e){return ht.useMemo(()=>ht__default.default.Children.toArray(e).map(t=>{let o=t,r=lodash.uniqueId("item"),a=hr(o,je),n=gy(o),i,s;if(a){let g=hr(a,Oe);utils.invariant(g),i=gy(g),s=hr(a,Le).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||Ss;utils.invariant(typeof b=="string","ActionGroup children must have a string label");let f=`${r}-${b}`;return ht.createElement(reactStately.Item,{...{key:f,onPress:l,textValue:b,"aria-label":c,icon:u||d,dialogContent:s,isDisabled:m},key:f},o)}),[e])}function hr(e,t){return t?lodash.flatMapDeep(ht__default.default.Children.toArray(e),r=>ht__default.default.isValidElement(r)&&r.props.children?[r,...ht__default.default.Children.toArray(r.props.children)]:[r]).find(r=>ht__default.default.isValidElement(r)&&r.type===t):void 0}function gy(e){return hr(e,q)||hr(e,L)}var _y="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",zy={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var Fk=new Set(["text","search","password","tel","url"]);function tn(e,t){let{toolbarProps:o}=toolbar.useToolbar(e,t);return {toolbarProps:{...o,onKeyDownCapture:r=>{if(r.target instanceof HTMLInputElement&&Fk.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 Ms=ht__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]=ht.useState(),d=vy(o),b=reactStately.useListState({...l,children:d}),f=ae(p),y=ht.useRef(null),[{visibleItems:g,isMeasuring:v},_]=ei({visibleItems:b.collection.size,isMeasuring:false}),h=ht.useCallback(()=>{let T=$=>{if(y.current&&f.current){let I=[...y.current.children],N=f.current.getBoundingClientRect().width,E=$<b.collection.size,j=0,B=0;if(E){let O=I.pop();O&&(j+=Py(O,false,true));}for(let[O,H]of I.entries())if(j+=Py(H,O===0,O===I.length-1),Math.round(j)<=Math.round(N))B++;else break;return B}return $};_(function*(){yield {visibleItems:b.collection.size,isMeasuring:true};let $=T(b.collection.size),I=$<b.collection.size&&$>0;yield {visibleItems:$,isMeasuring:I},I&&(yield {visibleItems:T($),isMeasuring:false});});},[_,f,b.collection.size]),x=ht.useMemo(()=>({get current(){return f.current?.parentElement}}),[f]);pi({ref:x,onResize:h}),Se(h,[b.collection,h]);let{toolbarProps:R}=tn(l,f),P=[...b.collection],w=P.slice(0,g),C=P.slice(g).filter(T=>T.textValue!==Ss),D=C.length>0;ht.useEffect(()=>{m(void 0);},[C.length]),ht.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(R,k),className:e,"data-block-id":a,"data-block-class":n,"data-collapse":true,style:{...t,flexBasis:v?"100%":void 0},ref:f,children:jsxRuntime.jsxs("div",{ref:y,className:_y,children:[w.map(T=>T.rendered),D?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!v&&i?jsxRuntime.jsx(S,{flexGrow:1}):null,jsxRuntime.jsx(ha,{placement:"bottom end",renderTrigger:({buttonProps:T,ref:$})=>jsxRuntime.jsx(L,{...T,size:"md",icon:_24.MoreIcon,"aria-label":c(Yk.more),variant:"toolbar",ref:$,tooltip:true}),...r,disabledKeys:C.filter(T=>T.props?.isDisabled).map(T=>T.key),items:C.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:I,dialogContent:N}=$.props;I?.(),m(N);}})]}):null]})}),jsxRuntime.jsx(Ee,{isOpen:!!u,onOpenChange:T=>{T||m(void 0);},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:1e5},children:u?ht__default.default.cloneElement(u,{inheritDrawer:true}):null})})]})});Ms.displayName="CollapsibleToolbar";function Py(e,t,o){let a=re(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:ky(a.marginLeft))+(o?0:ky(a.marginRight))}function ky(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var Yk=G({more:{id:"more",defaultMessage:"More"}});var Ns=ht__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=ht__default.default.useRef(null),{toolbarProps:p}=tn(i,l),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,c),"aria-controls":a,className:utils.classNames(zy[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(s,l),children:i.children})});Ns.displayName="WrappedToolbar";var on=ht__default.default.forwardRef((e,t)=>{let o=e.isCollapsible?Ms:Ns;return jsxRuntime.jsx(o,{...e,ref:t})});on.displayName="Toolbar";var Iy=z({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),Ry=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"]]}),$y=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"]]}),Ty=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"]]}),Sy=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 lw={xxs:8,xs:12,sm:16,md:20,lg:24},we=ht__default.default.forwardRef((e,t)=>{let o=ae(t),{tooltipProps:r}=Jr(e,o);return r?jsxRuntime.jsx(J,{...r,children:jsxRuntime.jsx(Es,{...e,ref:t})}):jsxRuntime.jsx(Es,{...e,ref:t})});we.displayName="ToggleIconButton";var Es=ht__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:f,uiStateOptions:y}=ea(s,p),g=ht.useMemo(()=>typeof o=="function"?o:p.isSelected?o.selected:o.unselected,[o,p.isSelected]),v={isSelected:p.isSelected,isHovered:f,isFocusVisible:d,isDisabled:!!s.isDisabled},_=utils.filterTruthyValues({"data-hovered":f,"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"&&Sy(v),a==="primary"&&Ry(v),a==="secondary"&&$y(v),a==="tertiary"&&Ty(v),Iy({size:r}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:M(m,l),children:jsxRuntime.jsx(g,{size:lw[r]})})});Es.displayName="ToggleIconButtonCore";var My="f6jv6bl",Ny="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",ho="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Ey=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"]]}),rn=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:[]}),Ly="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",By="f6jv6bj";var Ay="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",Fy=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:[]}),jy="_1yep5z6jy _1yep5z6jz _1yep5z6k0",Oy="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",Hy=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:[]}),Vy="f6jv6bk",Uy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",an=z({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),nn="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",Cr="f6jv6bn";var Ky=[["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:Pr}}=tokens.layoutSprinkleValues,Gy=({isOpen:e,onClose:t})=>{let{formatMessage:o}=A(),r=reactAria.useId();return jsxRuntime.jsx(Ee,{isOpen:e,onOpenChange:a=>{a||t();},children:jsxRuntime.jsx(Ue,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(xe,{"aria-labelledby":r,className:Ly,drawerBackground:"subtle",children:[jsxRuntime.jsxs(S,{paddingLeft:Pr.padding.horizontal.lg,paddingRight:Pr.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:By,children:[jsxRuntime.jsx(te,{id:r,elementType:"h3",type:"title",size:"md",children:o(kr.help)}),jsxRuntime.jsx(L,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":o(kr.close),onPress:t})]}),jsxRuntime.jsx(U,{className:Vy}),jsxRuntime.jsxs(S,{paddingX:Pr.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(S,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Pr.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(kr.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(kr.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Ky.map(([a,n],i)=>jsxRuntime.jsxs(ht.Fragment,{children:[jsxRuntime.jsxs(S,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Pr.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(te,{type:"subtitle",size:"sm",role:"cell",children:o(kr[lodash.camelCase(a)])}),jsxRuntime.jsx(te,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,true)})]}),i!==Ky.length-1&&jsxRuntime.jsx(U,{})]},a))})]})]})})})},kr=G({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 sn=ht__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 f=ht__default.default.useRef(null),[y,g]=utils$1.useControlledState(e,t||"",o),v=ht.useCallback(k=>{g(k.currentTarget.value||"");},[g]),_=ht.useCallback(k=>{(m&&k.key==="Enter"&&!k.shiftKey||(k.ctrlKey||k.metaKey)&&k.key==="Enter")&&(k.preventDefault(),d());},[m,d]);ht.useImperativeHandle(b,()=>({clear:()=>{g("");}}));let h=ht.useCallback(k=>{k.currentTarget.style.height="16px",k.currentTarget.style.height=k.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let k=f.current;k&&(k.style.height="16px",k.style.height=k.scrollHeight+"px");},[s],[y]),ht.useImperativeHandle(c,()=>({setCaretPosition:k=>{f.current&&(f.current.focus(),f.current.setSelectionRange(k,k));},focus:()=>{f.current&&f.current.focus();}}));let{focusProps:x,isFocused:R,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:w,isHovered:C}=reactAria.useHover({}),D=utils.filterTruthyValues({"data-focus-visible":P,"data-hovered":C,"data-focused":R});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(x,w,D),ref:M(f,n),className:utils.classNames(s?Oy:[rn(),an({isInline:i}),Uy]),autoFocus:u,onChange:v,disabled:l,onInput:h,value:y,placeholder:r,spellCheck:a,"aria-label":p,onKeyDown:_})});sn.displayName="PlainEditor";var Rr="mention",ln="mention_input",n1=ht__default.default.forwardRef(({onCancel:e,editor:t,element:o,onSelectionChange:r},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=ht.useContext(cn),l=slateReact.useSelected(),[p,c]=ht.useState(""),{contains:u}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=A(),d=ht.useMemo(()=>{let I=i.filter(N=>p===""||u(N.displayName,p)).map(N=>({id:N.id,label:N.displayName,data:N}));return s?lodash.take(I,s):I},[i,s,p,u]),b=ht.useCallback(I=>jsxRuntime.jsx(reactStately.Item,{children:I.label},I.id),[]),f=ht.useCallback((I=false)=>{let N=plateCommon.findNodePath(t,o);N&&(plateCommon.removeNodes(t,{at:N}),I&&plateCommon.focusEditor(t));},[t,o]),y=reactStately.useComboBoxState({items:d,children:b,menuTrigger:"focus",onSelectionChange:I=>{f(true),r?.(I);}}),g=ht__default.default.useRef(null),v=ht__default.default.useRef(null),_=ht__default.default.useRef(null),h=ht__default.default.useRef(null),x=plateCombobox.useHTMLInputCursorState(v);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{y.close();}});let{inputProps:R,listBoxProps:P}=reactAria.useComboBox({defaultItems:d,inputRef:v,buttonRef:g,listBoxRef:_,popoverRef:h,menuTrigger:"focus","aria-label":m(Uw.mention)},y);ht.useEffect(()=>{v.current?.focus();},[]);let w=ht.useCallback((I="manual",N=false)=>{f(N),e?.(I,y.inputValue);},[e,f,y.inputValue]),C=ht.useRef(l);ht.useEffect(()=>{C.current&&!l&&w("deselect"),C.current=l;},[l,w]);let D=x?.atStart??false,k=x?.atEnd??false,T=ht.useCallback(I=>{I.key==="Backspace"&&D?w("backspace",true):I.key==="Escape"?w("escape",true):I.key==="ArrowLeft"&&D?w("arrowLeft",true):I.key==="ArrowRight"&&k&&w("arrowRight",true);let N=plateCommon.Hotkeys.isUndo(I)&&t.history.undos.length>0,E=plateCommon.Hotkeys.isRedo(I)&&t.history.redos.length>0;(N||E)&&(I.preventDefault(),t[N?"undo":"redo"](),plateCommon.focusEditor(t));},[D,k,w,t]),$=ht.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let I=re(v.current),N=v.current?I?.getComputedStyle(v.current).font:void 0;return {width:N?utils.getTextDimensions({text:y.inputValue,font:N}).width+10:"4ch"}}},[y.inputValue]);return jsxRuntime.jsxs(Ct.Provider,{value:y,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(R,{onKeyDown:T,onBlur:()=>{w("blur",true);},onChange:I=>{c(I.target.value);}}),style:$,className:Ay,ref:M(a,v)}),jsxRuntime.jsx(ke,{triggerRef:n,isNonModal:true,ref:h,state:y,crossOffset:-2,children:jsxRuntime.jsx(me,{...P,items:void 0,autoFocus:"first",ref:_,className:utils.classNames(at,tokens.sprinkles({width:"full"})),renderOption:s1})})]})});n1.displayName="MentionInputContentElement";var js=cn$1.withRef(({className:e,...t},o)=>{let{children:r,editor:a,element:n}=t,{items:i}=ht.useContext(cn),s=ht.useRef(null),[l,p]=ht.useState(null);ht.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=ht.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Fo()&&m&&plateCommon.focusEditor(a);},[a]),u=ht.useCallback(m=>{if(!m)return;let d=s.current?.getRootNode()instanceof ShadowRoot,b=i.find(y=>y.id===m);utils.invariant(b,"User not found");let f={type:Rr,value:b.id,displayName:b.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[f,{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(n1,{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]})});js.displayName="MentionInputElement";var Os=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]})});Os.displayName="MentionElement";var i1=(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)){pn(e);return}a(i);},e},Uw=G({mention:{defaultMessage:"Mention",id:"mention"}});function p1({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("p",{children:t})})}function iI(e){return Object.entries(e).map(([t,o])=>`${lodash.kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}function sI(e){return "text"in e}function lI(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function $r(e){if(!e)return "";function t(o){if(sI(o)){let a=lI(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="${iI(utils.filterTruthyValues({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 Rr: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 pI(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 Ks(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=new DOMParser().parseFromString(c1__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 u1(t.body)}function u1(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=pI(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=>u1(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:Rr,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 m1(e){let t=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[o]=t||[{url:""}];return o?.url}function pn(e){let t={children:[{text:" "}],type:ln};e.insertNode(t);}var cI=plateCommon.createPluginFactory({isElement:true,isInline:true,isMarkableVoid:true,isVoid:true,key:Rr,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:true,isInline:true,isVoid:true,key:ln}],withOverrides:i1}),f1=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:p1}),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:y1}),cI({component:Os})],{components:{[ln]:js}});var Mt={Add:"add",Edit:"edit",Show:"show"},_1=({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(Nt.addLink),className:ho,preventFocusOnPress:true})}),jsxRuntime.jsx(Le,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(xe,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(vI,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(o,o.selection);},0);}})})})]})},vI=({close:e})=>{let t=plateCommon.useEditorRef(),{formatMessage:o}=A(),r=plateCommon.useEditorSelector(p=>m1(p),[]),[a,n]=ht__default.default.useState(r?Mt.Show:Mt.Add),[i,s]=ht__default.default.useState(r||""),l=jsxRuntime.jsx(S,{padding:"lg",children:jsxRuntime.jsx(nt,{label:o(Nt.link),value:i,autoFocus:true,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===Mt.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(S,{display:"flex",justifyContent:"flex-end",padding:"lg",className:My,children:jsxRuntime.jsx(q,{isDisabled:!utils.isUrl(i,true),label:o(Nt.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();},preventFocusOnPress:true})})]}),a===Mt.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(S,{padding:"lg",children:jsxRuntime.jsx(te,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(S,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:o(Nt.editLink),size:"sm",variant:"secondary",onPress:()=>{n(Mt.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(q,{label:o(Nt.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(t),e?.();},preventFocusOnPress:true,style:{flex:1,justifyContent:"center"}})]})]}),a===Mt.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(S,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:o(Nt.cancel),size:"sm",variant:"secondary",onPress:()=>{n(Mt.Show),e?.();}}),jsxRuntime.jsx(q,{label:o(Nt.save),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:true}),e?.();}})]})]})]})};function y1({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:true,className:e,...o,children:jsxRuntime.jsx("a",{className:xa({size:"sm"}),children:t})})}var Nt=G({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 zI=color.parseColor("#ffffff00").toString("hexa"),Gs=[{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"}];[...Gs,{label:"Transparent",color:zI}];var un=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,e),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(we,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{plateCommon.toggleMark(n,{key:e});},preventFocusOnPress:true})},Ys=({nodeType:e,"aria-label":t,isDisabled:o})=>{let{updateColor:r,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),i=ht.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:ho,preventFocusOnPress:true,...p,ref:l}),[e,t,o]),s=ht.useCallback(l=>{l?r(l.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(go,{presets:Gs,allowRemoval:true,pickerMode:"lazy",placement:"top end",colorLabel:false,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:o})};var XI=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],cn=ht__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Js=ht__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:f,saveOnEnter:y,onSave:g},v)=>{let _=ht.useRef(null),h=reactAria.useId(),{formatMessage:x}=A(),R=ht.useRef(null),P=R.current,w=ht.useRef(null),C=ht.useMemo(()=>P?.getRootNode()instanceof ShadowRoot,[P]),[D,k]=utils$1.useControlledState(e?Ks(e):void 0,Ks(t||"<p></p>"),I=>{o&&o($r(I));}),{keyboardProps:T}=reactAria.useKeyboard({onKeyDown:I=>{(y&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),g()),I.altKey&&I.key==="F10"?(I.preventDefault(),_.current&&_.current.querySelector("button")?.focus()):I.continuePropagation(),Fo()&&C&&w.current&&plateCommon.focusEditor(w.current);}});ht.useEffect(()=>{s&&w.current&&plateCommon.deselect(w.current);},[s]),ht.useImperativeHandle(v,()=>({startMention:()=>{w.current&&!R.current?.querySelector("input[role='combobox']")&&pn(w.current);}})),ht.useImperativeHandle(m,()=>({setCaretPosition:I=>{w.current&&(plateCommon.focusEditor(w.current),plateCommon.moveSelection(w.current,{distance:I,unit:"character"}));},focus:()=>{w.current&&plateCommon.focusEditor(w.current);}}));let $=ht.useMemo(()=>({items:u||[],containerRef:p,maxMentionableUsersSuggestions:d}),[u,p,d]);return jsxRuntime.jsx(cn.Provider,{value:$,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:D||XI,plugins:f1,editorRef:M(w,f||null),onChange:I=>{k(I);},children:[jsxRuntime.jsxs(on,{className:nn,"aria-controls":h,ref:_,children:[jsxRuntime.jsxs(S,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(un,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:x(ko.bold),isDisabled:s}),jsxRuntime.jsx(un,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:x(ko.italic),isDisabled:s}),jsxRuntime.jsx(un,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:x(ko.underline),isDisabled:s})]}),jsxRuntime.jsx(U,{orientation:"vertical",className:Cr}),jsxRuntime.jsx(Ys,{nodeType:plateFont.MARK_COLOR,"aria-label":x(ko.fontColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Cr}),jsxRuntime.jsx(Ys,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":x(ko.backgroundColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Cr}),jsxRuntime.jsx(_1,{isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:Cr}),jsxRuntime.jsx(L,{className:ho,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":x(ko.help),onPress:c})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx("div",{...T,ref:R,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(rn({isDisabled:s}),an({isInline:i})),renderPlaceholder:({attributes:I,children:N})=>jsxRuntime.jsx("span",{...I,className:tokens.sprinkles({paddingY:"lg"}),children:N})})})]})})});Js.displayName="RichEditor";var s1=({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:Fy({isDisabled:o,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(fo,{name:l,...p?.avatar}),jsxRuntime.jsxs(S,{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(U,{})]})},ko=G({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 k1=ht__default.default.memo(ht__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:f="Editing Area",footerButtons:y,clearOnCancel:g,clearOnSave:v,..._},h)=>{let x=ht.useRef(null),{formatMessage:R}=A(),P=ht.useRef(null),w=ht.useRef(null),C=ht.useRef(null),D=!a&&_.variant==="minimal",k=ht.useRef(null),[T,$]=ht__default.default.useState(_.value||_.defaultValue),I=_.isDisabled||_.isSaveDisabled||!utils.getPlainText(T||""),{fieldProps:N}=reactAria.useLabel({"aria-label":u,"aria-labelledby":d,"aria-describedby":m,"aria-details":b,labelElementType:"div"});D&&!_.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let E=ht.useCallback(()=>{$(""),a?x.current?.reset():w.current?.clear();},[a]),j=ht.useCallback(()=>{I||(i?.(a?$r(x.current?.children):P.current.value),v&&E());},[E,v,a,i,I]),B=jsxRuntime.jsx(L,{variant:"ghost","aria-label":p||R(el.save),icon:l,isDisabled:I,size:"md",excludeFromTabOrder:D,className:D?jy:void 0,onPress:j,preventFocusOnPress:true}),[O,H]=ht__default.default.useState(false),{keyboardProps:V}=reactAria.useKeyboard({onKeyDown:F=>{(F.metaKey||F.ctrlKey)&&F.shiftKey&&F.key==="h"&&(F.preventDefault(),H(true));}}),Q=ht.useCallback(F=>{$(F),_.onChange?.(F);},[_]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(N,a?V:{}),role:"application",ref:M(C,h),style:t,"data-block-id":o,"data-block-class":r,className:utils.classNames(Ey({isInline:s,isMinimal:D}),"BaselineUI-Editor",e),"aria-disabled":_.isDisabled,children:[D?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(fo,{className:Ny,name:_.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Hy({isInline:s}),children:[jsxRuntime.jsx(sn,{isMinimal:D,textBoxRef:P,isInline:s,editableContentAriaLabel:f,..._,onChange:Q,onSave:j}),B]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Js,{containerRef:C,ref:k,editorRef:x,isInline:s,editableContentAriaLabel:f,onHelpDialogOpenRequest:()=>{H(true);},..._,onChange:Q,onSave:j}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx(sn,{onCancel:n,textBoxRef:P,ref:w,isInline:s,editableContentAriaLabel:f,..._,onChange:F=>{$(F),_.onChange?.(F);},onSave:j})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(nn,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(S,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&_.mentionableUsers?jsxRuntime.jsx(L,{icon:_20.AtIcon,size:"sm","aria-label":R(el.mention),onPress:()=>k.current?.startMention(),preventFocusOnPress:true}):null,y?.map(({type:F,props:Y},oe)=>F==="action"?jsxRuntime.jsx(L,{...Y,size:"sm",isDisabled:_.isDisabled||Y.isDisabled},oe):jsxRuntime.jsx(we,{...Y,size:"sm",variant:"tertiary",isDisabled:_.isDisabled||Y.isDisabled},oe))]}),jsxRuntime.jsxs(S,{children:[!!n&&jsxRuntime.jsx(L,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:_.isDisabled,size:"md",onPress:()=>{n(),g&&E();},"aria-label":c||R(el.cancel)}),B]})]})]}),jsxRuntime.jsx(Gy,{isOpen:O,onClose:()=>{H(false);}})]})}));k1.displayName="Editor";var el=G({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var w1="_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 R1=2,T1=ht__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=ht__default.default.useRef(null),u=interactions.useInteractionModality(),[m,d]=ht__default.default.useState(false),b=ht.useCallback(()=>{let C=r?.current||ge(c.current).body;return re(C).getComputedStyle(C).flexDirection==="column-reverse"?C.scrollTop+R1>=0:C.scrollTop+C.clientHeight+R1>=C.scrollHeight},[r]),[f,y]=ht__default.default.useState(b),{buttonProps:g,isPressed:v}=reactAria.useButton({onPress:()=>{let C=r?.current||ge(c.current).body;C.scrollTo({top:C.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:_,isFocused:h,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:R,isHovered:P}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":v,"data-focus-visible":x,"data-hovered":P,"data-focused":h});return ht.useEffect(()=>{y(b());},[b]),ht.useEffect(()=>{let C=r?.current||ge(c.current).body,D="onscrollend"in re(C),k=()=>{setTimeout(()=>{d(false),y(b());},n);},T=()=>{d(true),D||k();};return C.addEventListener("scroll",T),C.addEventListener("scrollend",k),()=>{C.removeEventListener("scroll",T),C.removeEventListener("scrollend",k);}},[r,n,b]),jsxRuntime.jsx(react.AnimatePresence,{initial:false,children:(!o||u!=="keyboard")&&!m&&!f?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,_,R,w),className:utils.classNames(w1,Ta({isFocusVisible:x,variant:"high-contrast",isHovered:P}),Sa({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:M(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:ar({variant:"high-contrast"})}),a]}):null})});T1.displayName="ScrollControlButton";var ol="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",S1=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"]]}),D1="_1v0p2z10";var yn=ht__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:f},y)=>{let g=reactAria.useId(),{formatMessage:v}=A(),_=n&&jsxRuntime.jsx(te,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(xe,{className:e,style:t,"data-block-id":o,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:y,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:S1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!u}),children:[jsxRuntime.jsxs(S,{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(hR.close),onPress:d}):null]}),p?_:null]}),a?jsxRuntime.jsx(S,{elementType:"section",className:D1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,l?jsxRuntime.jsx(S,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(nt,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs(S,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(q,{variant:"secondary",className:ol,label:s,onPress:d,autoFocus:b==="cancel"}):null,i?jsxRuntime.jsx(q,{className:ol,label:i,onPress:m,autoFocus:b==="primary",isDisabled:f}):null]})]}):null]})});yn.displayName="AlertDialog";var hR=G({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var M1="_1t55bp71",N1="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",E1="_1t55bp70";var IR=wR__default.default(),L1=ht__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,showCaret:n},i)=>{let s=ht.useMemo(()=>{let l=o;return (!o||Array.isArray(o)&&o.length===0)&&(l=""),IR.render(l)},[o]);return jsxRuntime.jsx("div",{className:utils.classNames(N1,E1,{[M1]:n},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:t,ref:i,dangerouslySetInnerHTML:{__html:s}})});L1.displayName="Markdown";function j1(e){let{formatMessage:t,locale:o}=A(),[r,a]=ht__default.default.useState(false),[n,i]=ht__default.default.useState(0),[s,l]=ht__default.default.useState(0),[p,c]=ht__default.default.useState(false);ht.useEffect(()=>{if(!e.current)return;let d=e.current,b=()=>{a(false),i(0);},f=()=>{p||i(d.currentTime*100/d.duration);},y=()=>{l(d.duration);};return d.addEventListener("ended",b),d.addEventListener("timeupdate",f),d.addEventListener("loadedmetadata",y),()=>{d.removeEventListener("ended",b),d.removeEventListener("timeupdate",f),d.removeEventListener("loadedmetadata",y);}},[p,e]);let u=ht.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(true),liveAnnouncer.announce(t(A1.playing),"polite")):(e.current.pause(),a(false),liveAnnouncer.announce(t(A1.paused),"polite"))))();},[t,e]),m=ht.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(TR(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?F1(e.current?.currentTime):"00:00",formattedDuration:s?F1(s):"00:00",setIsSliderDragging:c}}var A1=G({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function TR(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 F1(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 O1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",H1="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",V1="rta2n90";var K1=ht__default.default.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=ht__default.default.useRef(null),{isPlaying:p,progress:c,duration:u,togglePlay:m,seek:d,formattedDuration:b,formattedCurrentTime:f,setProgress:y,setIsSliderDragging:g}=j1(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(O1,"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(we,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:o,"aria-label":v(p?al.pause:al.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:H1,children:[jsxRuntime.jsx("span",{"aria-hidden":true,children:f}),jsxRuntime.jsx(to,{"aria-label":v(al.audioTimeline),value:c,minValue:0,maxValue:100,className:V1,onChange:h=>{y(h),g(true);},onChangeEnd:h=>{d(h),g(false);}}),jsxRuntime.jsx("span",{"aria-hidden":true,children:b})]})]})});K1.displayName="AudioPlayer";var al=G({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var G1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",W1="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Y1="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",gn=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"]]}),X1="_1w920rnb _1yep5z6lo",Z1=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"]]}),J1="_1w920rnc";var vn=({items:e,ulRef:t,containerClassName:o,previewClassName:r,itemDataAttribute:a,showCount:n=false})=>{let{length:i}=e,s=ht__default.default.useRef(null);return ht.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(S,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:J1,children:i}):null})};function eb(e,t){return e.find(o=>o.id===t)}function tb(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 ob(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 nl(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function _n(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}function rb(){let[e,t]=ht.useState(false);return ht.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 nb=ht__default.default.forwardRef(({id:e,className:t,children:o,style:r,isDisabled:a,onTruncatedChange:n,onHoverChange:i},s)=>{let l=ht.useRef(null),{buttonProps:p}=reactAria.useButton({elementType:"span",isDisabled:a},l);ht.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",{...Me(p,c),className:utils.classNames(t,"BaselineUI-AdaptiveText"),id:e,tabIndex:-1,ref:M(l,s),style:r,role:void 0,children:o})});nb.displayName="Label";var ll=ht__default.default.memo(ht__default.default.forwardRef(({children:e,isOpen:t,isDisabled:o,...r},a)=>{let[n,i]=ht.useState(false),[s,l]=ht.useState(false),p=rb(),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(nb,{...r,isDisabled:c,onTruncatedChange:l,onHoverChange:i,ref:a,children:e})})}));ll.displayName="AdaptiveText";var JR=({fit:e,item:t,deleteElement:o})=>{let{formatMessage:r}=A(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Xt({src:t.data?.src,alt:t.data?.alt??""});return i?jsxRuntime.jsx(po,{"aria-label":r(Dr.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:X1,children:o})},lb=({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:f=true,renderImage:y=(g,{deleteElement:v})=>jsxRuntime.jsx(JR,{item:g,deleteElement:v,fit:l})})=>{let g=reactAria.useId(),{formatMessage:v}=A(),{value:_}=e;utils.invariant(_&&et(_),"Expected value to be a list option");let h=p?jsxRuntime.jsx("div",{className:G1,children:jsxRuntime.jsx(L,{"aria-label":v(Dr.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(_.id);},UNSAFE_NON_INTERACTIVE:true})}):null,x=_n([_])[0],R=ht.useCallback($=>{let I={},N=typeof $=="function"?$(x,{isSelected:r}):$;return N&&(I.width=typeof N.width=="string"?cl[N.width]:N.width,I.aspectRatio="height"in N?`${I.width} / ${N.height}`:N?.aspectRatio?.toString()),I},[x,r]),P=ht.useMemo(()=>({isFocusVisible:o,isSelected:r,isFocused:a,isDisabled:n,isPressed:i}),[o,r,a,n,i]),w=react.useReducedMotion(),C=typeof f=="boolean"?f:!w,D=typeof f=="object"?f:void 0,k=C?react.motion.li:"li",T=R(d);return jsxRuntime.jsxs(k,{...reactAria.mergeProps(t,C?{layout:true,transition:D}:void 0),ref:s,className:utils.classNames(W1,xt(c,x,P)),"aria-labelledby":g,style:Ur(b,x,P),children:[jsxRuntime.jsx(S,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",flexGrow:0,children:jsxRuntime.jsx("div",{className:utils.classNames(gn({isFocusVisible:o,isSelected:r,isLoading:true}),xt(u,x,P)),style:T,"data-image-key":_.id,children:y(_,{deleteElement:h??void 0,onDelete:p})})}),jsxRuntime.jsx(ll,{id:g,className:utils.classNames(Z1({isFocusVisible:o,isSelected:r}),m),style:{maxWidth:T.width},isOpen:o,children:_.label})]})};var n$={width:0,display:"block"},db={src:"src",alt:"alt"},cl={sm:102,md:170},ub=ht__default.default.forwardRef(({className:e,style:t,fit:o="cover",onReorder:r,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=cl.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:u,imageContainerClassName:m,imageClassName:d,labelClassName:b,onListChange:f,renderImage:y,layoutTransition:g,imageDimensions:v={width:s,aspectRatio:l},imageContainerStyle:_,...h},x)=>{let R=ht__default.default.useRef(null),[P,w]=ht.useState([]),{formatMessage:C}=A();ht.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[D,k]=utils$1.useControlledState(h.selectedKeys,h.defaultSelectedKeys??[],h.onSelectionChange),[T,$]=utils$1.useControlledState(p?nl(p):void 0,nl(c),f?B=>{f?.(_n(B));}:void 0),I=ht.useCallback(B=>{let O=B.target.key,H=B.keys;if(B.target.dropPosition==="before"){let V=tb(T,O,H);$(V);}else if(B.target.dropPosition==="after"){let V=ob(T,O,H);$(V);}r?.(B);},[T,r,$]),N=ht.useCallback(()=>{i&&P.length&&($(T.filter(B=>!P.includes(B.id))),i(new Set(P)),w([]));},[P,T,i,$]),E=ht.useCallback((B,O,H)=>{let{value:V}=B;utils.invariant(et(V));let Q={id:V.id,label:V.label,src:V.data?.src,alt:V.data?.alt};return jsxRuntime.jsx(lb,{item:B,options:O,liRef:H,fit:o,onDelete:i?F=>{w([F]);}:void 0,renderImage:y,className:xt(m,Q,O),imageClassName:d,imageLabelClassName:b,imageDimensions:v,style:_,layoutTransition:g})},[o,i,y,m,d,b,v,_,g]),{keyboardProps:j}=reactAria.useKeyboard({onKeyDown(B){if(u?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...D].length)w([...D]);else {let H=B.target.dataset.key;w([H]);}}}});return jsxRuntime.jsxs("div",{...j,ref:x,style:t,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(me,{...h,selectedKeys:D,items:T,onReorder:I,layout:"grid",orientation:"vertical",className:Y1,ref:R,dropIndicatorStyle:n$,renderOption:E,renderDragPreview:B=>jsxRuntime.jsx(vn,{items:B,ulRef:R,containerClassName:".BaselineUI-ImageGallery",previewClassName:gn(),itemDataAttribute:"data-image-key",showCount:true}),onSelectionChange:k,getItems:B=>[...B].map(O=>{let H=eb(T,O);return {[db.src]:H?.src||"",[db.alt]:H?.alt||"",key:O}})}),jsxRuntime.jsx(Ee,{isOpen:!![...P].length,onOpenChange:B=>{B||w([]);},children:jsxRuntime.jsx(Ue,{isDismissable:true,children:jsxRuntime.jsx(yn,{showCloseButton:false,title:"Are you sure you want to delete this item?",primaryActionLabel:C(Dr.delete),cancelLabel:C(Dr.cancel),onCancel:()=>{w([]);},onPrimaryAction:N,autoFocusButton:"cancel"})})})]})});ub.displayName="ImageGallery";var Dr=G({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var mb="_1sexph00",fb="_1sexph02",yb="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var bb=ht__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,isSelected:u,defaultSelected:m,onButtonSelectionChange:d,moreAriaLabel:b,optionStyle:f,optionClassName:y,triggerClassName:g,triggerStyle:v,tooltipProps:_,buttonBehaviour:h="toggle",...x},R)=>{let{formatMessage:P}=A(),w=pe(),C=reactStately.useSelectState({items:o,...x,defaultSelectedKey:x.defaultSelectedKey||o?.[0]?.id,children:w,validationState:x.validationState==="error"?"invalid":"valid"}),D=ht.useMemo(()=>typeof h=="function"?h(C.selectedKey):h,[h,C.selectedKey]),[k,T]=utils$1.useControlledState(u,!!m,F=>{d?.({isSelected:F,selectedKey:C.selectedKey});}),{hoverProps:$,isHovered:I}=reactAria.useHover({isDisabled:s}),N=ht.useMemo(()=>{let F=C.collection.getItem(C.selectedKey),Y=F?.textValue||F?.["aria-label"],oe=F?.value,le=oe?.icon,X={size:i,...D==="toggle"&&{isSelected:k},onPress:Pe=>{D==="toggle"&&T(!k),c?.(Pe);},isDisabled:s,excludeFromTabOrder:p,className:utils.classNames(typeof y=="function"?y(oe,{isButton:true,isSelected:k}):y,"BaselineUI-ButtonSelect-Button"),style:typeof f=="function"?f(oe,{isButton:true,isSelected:k}):f};return n&&le?jsxRuntime.jsx(J,{variant:"inverse",size:"sm",includeArrow:false,text:Y,placement:"bottom start",offset:4,...typeof _=="function"?_("button"):_,children:D==="action"?jsxRuntime.jsx(L,{icon:le,"aria-label":Y,variant:"toolbar",...X}):jsxRuntime.jsx(we,{icon:le,"aria-label":Y,variant:"toolbar",...X})}):D==="toggle"?jsxRuntime.jsx(wa,{iconStart:le,label:Y,variant:"toolbar",...X}):jsxRuntime.jsx(q,{label:Y,variant:"toolbar",...X})},[p,n,k,s,c,y,f,T,i,C.collection,C.selectedKey,_,D]),E=x["aria-label"],j=ht.useCallback(({buttonProps:F,ref:Y})=>{delete F["aria-labelledby"];let oe=b||`${P(f$.more)} ${E}`;return jsxRuntime.jsx(J,{variant:"inverse",size:"sm",includeArrow:false,text:oe,placement:"bottom start",offset:4,..._,children:jsxRuntime.jsx(interactions.PressResponder,{...F,children:jsxRuntime.jsx(L,{"aria-label":oe,ref:Y,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:le})=>utils.classNames(ka({isSelected:k&&D==="toggle",isFocusVisible:le}),yb,g,"BaselineUI-ButtonSelect-Trigger"),style:v,isDisabled:s,excludeFromTabOrder:p})})})},[E,D,p,P,k,s,b,i,_,g,v]),B=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":I,"data-selected":k,"data-disabled":s,"data-expanded":C.isOpen,"data-button-behaviour":D}),O=ae(R),H=ht.useMemo(()=>({state:C,popoverAnchorRef:O}),[C,O]),V=ht.useCallback(F=>typeof y=="function"?y(F,{isButton:false,isSelected:C.selectionManager.isSelected(F.id)}):y,[y,C.selectionManager]),Q=ht.useCallback(F=>typeof f=="function"?f(F,{isButton:false,isSelected:C.selectionManager.isSelected(F.id)}):f,[f,C.selectionManager]);return jsxRuntime.jsx(Da.Provider,{value:H,children:jsxRuntime.jsxs(S,{...$,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(mb,"BaselineUI-ButtonSelect",e),"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"aria-describedby":x["aria-describedby"],"aria-details":x["aria-details"],style:t,ref:O,...B,children:[N,jsxRuntime.jsx(lt,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:o,...x,optionClassName:V,optionStyle:Q,variant:"ghost",renderTrigger:j,className:utils.classNames(fb,"BaselineUI-ButtonSelect-Select")})]})})});bb.displayName="ButtonSelect";var f$=G({more:{id:"more",defaultMessage:"More"}});var gb=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:[]}),vb=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:[]}),_b=z({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),zb=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"]]}),hb=z({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),xb=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"]]}),Cb=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 Pb({allowsCustomValue:e,onValueChange:t,inputValue:o},r,a,n,i){let[s,l]=ht.useState(null),p=ht.useRef(false);ht.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);}}),ht.useEffect(()=>{if(!t)return;let u=n.current,m=()=>{p.current=true;};return u?.addEventListener("input",m),()=>{u?.removeEventListener("input",m);}},[n,t]),ht.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 wb=ht__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:f,renderOption:y,showIcon:g=true,filter:v,minValue:_,maxValue:h,inputType:x="text",onInputSubmit:R,onValueChange:P,tooltip:w,...C},D)=>{let k=reactAria.useObjectRef(D),{contains:T}=reactAria.useFilter({sensitivity:"base"}),$=pe(),I=reactStately.useComboBoxState({...C,defaultFilter:v||T,defaultItems:s,onSelectionChange:p,onInputChange:c,children:$,validationState:u?"invalid":"valid"}),N=ht__default.default.useRef(null),E=ht__default.default.useRef(null),j=ht__default.default.useRef(null),B=ht__default.default.useRef(null),O=ht__default.default.useRef(null),{inputProps:H}=Pb({onValueChange:P,allowsCustomValue:C.allowsCustomValue,inputValue:C.inputValue},I,k,E,B),{buttonProps:V,inputProps:Q,listBoxProps:F,labelProps:Y,errorMessageProps:oe,descriptionProps:le,validationErrors:X}=reactAria.useComboBox({...C,inputRef:E,defaultItems:s,buttonRef:N,listBoxRef:j,popoverRef:B,validationState:d==="error"?"invalid":"valid"},I),Pe=C.errorMessage||X.join(" "),Ie=_e({...C,errorMessage:Pe,descriptionProps:le,errorMessageProps:oe,labelPosition:m});Pe&&(d="error");let{hoverProps:zt,isHovered:ie}=reactAria.useHover({isDisabled:C.isDisabled}),{isFocused:fe,focusProps:Bo,isFocusVisible:Ot}=reactAria.useFocusRing(),Ht=io({isReadOnly:C.isReadOnly,validationState:d}),Vt=utils.filterTruthyValues({"data-read-only":C.isReadOnly,"data-disabled":C.isDisabled,"data-validation-state":d,"data-focused":fe,"data-focus-visible":Ot}),{labelProps:Z,fieldProps:K}=reactAria.useLabel({label:i,"aria-label":C["aria-label"],"aria-labelledby":C["aria-labelledby"],"aria-describedby":C["aria-describedby"],"aria-details":C["aria-details"]}),{keyboardProps:ce}=reactAria.useKeyboard({onKeyDown:Ao=>{C.allowsCustomValue&&Ao.key==="Enter"&&R?.(Q.value?.toString()??"");}}),{focusProps:ee}=reactAria.useFocus({onBlur:()=>{C.allowsCustomValue&&Q.value&&R?.(Q.value?.toString()??"");}}),{tooltipProps:be}=ve({tooltip:w,label:C["aria-label"]}),Je=Ao=>{let{triggerProps:ug,triggerRef:mg}=Ao??{};return jsxRuntime.jsxs("div",{className:utils.classNames(gb({labelPosition:m}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:t,ref:k,children:[i||m==="start"&&Ie?jsxRuntime.jsxs("div",{className:xb({labelPosition:m,hasMessage:!!Ie}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(Y,Z),className:hb({isDisabled:C.isDisabled}),children:i}),m==="start"&&Ie]}):null,jsxRuntime.jsxs("div",{...zt,className:zb({validationState:d,isHovered:ie,isFocused:fe,variant:b,isReadOnly:!!C.isReadOnly,isDisabled:!!C.isDisabled}),ref:O,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(ug,Q,H,Bo,Vt,K,ee,ce,x==="number"?{type:"number",min:_,max:h,onKeyDown:Jn=>{(Jn.key==="ArrowUp"||Jn.key==="ArrowDown")&&Jn.preventDefault();}}:null),id:C.id,ref:M(mg,E),className:utils.classNames(vb({isDisabled:C.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",r),style:o}),Ht&&g?jsxRuntime.jsx(Ht,{className:_b({validationState:d,isReadOnly:C.isReadOnly}),size:16}):null,jsxRuntime.jsx(q,{...V,ref:N,variant:"popover",label:f,className:Cb({isFocusVisible:!C.isDisabled&&!C.isReadOnly&&Ot,isHovered:!C.isDisabled&&!C.isReadOnly&&ie,isOpen:I.isOpen})})]}),m==="top"&&Ie]})};return jsxRuntime.jsxs(Ct.Provider,{value:I,children:[be?jsxRuntime.jsx(J,{...be,children:Je}):Je(),jsxRuntime.jsx(ke,{ref:B,triggerRef:O,state:I,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(me,{...F,items:s,ref:j,renderOption:y,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(at,"BaselineUI-ComboBox-ListBox")})})]})});wb.displayName="ComboBox";var Ib=z({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var gl=ht__default.default.forwardRef(({enableReorder:e,...t},o)=>e?jsxRuntime.jsx(Rb,{ref:o,...t}):jsxRuntime.jsx(vl,{ref:o,...t}));gl.displayName="GridListItem";var vl=ht__default.default.forwardRef(({item:e,state:t,dropState:o,renderGridItem:r,dragHandleProps:a},n)=>{let i=ae(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(Ut,{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(Ut,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:o}):null]},e.key)});vl.displayName="BaseGridListItem";var Rb=ht__default.default.forwardRef(({dragState:e,item:t,...o},r)=>{let a=reactAria.useDraggableItem({key:t.key,hasDragButton:true},e);return jsxRuntime.jsx(vl,{item:t,dragHandleProps:a,ref:r,...o})});Rb.displayName="DraggableGridListItem";var O$=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},Tb=ht__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=pe(),b=reactStately.useListState({...u,children:d}),f=ht__default.default.useRef(null),y=ae(m),{gridProps:g}=reactAria.useGridList(u,b,y);Wr({handle:n,type:"gridlist"},b,y);let{collectionProps:v,dragState:_,dropState:h}=Vr({...u,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:f,getItems:P=>[...P].map(w=>{let C=b.collection.getItem(w);return utils.invariant(C,"Expected item to be defined."),{key:C.key.toString()}})},b,y),x=o?O$:g.onKeyDownCapture,R={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:y,"aria-rowcount":b.collection.size,onKeyDownCapture:x,children:[[...b.collection].map(P=>jsxRuntime.jsx(gl,{item:P,...R},P.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:f,children:P=>jsxRuntime.jsx(vn,{items:P,ulRef:y,containerClassName:".BaselineUI-GridList",previewClassName:Ib(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});Tb.displayName="GridList";var Sb="_1yep5z6f5",Db="_1dc3b8m0";var Mb=ht__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=ae(p),u=pe(),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(f=>(utils.invariant(f.value),jsxRuntime.jsx(X$,{item:f,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},f.key)));return i?jsxRuntime.jsxs(S,{...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:Sb}),jsxRuntime.jsx(S,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:b})]}):jsxRuntime.jsx(S,{...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})});Mb.displayName="ActionGroup";var X$=({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=ht.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({[Db]:l},"BaselineUI-ActionGroup-Item")})})})};var Nb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Eb="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var Bb=ht__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:f,tooltip:y=true,...g},v)=>{let _=ht.useMemo(()=>o.map(x=>({id:x.color,label:x.label})),[o]),h=reactAria.useId();return ht.useEffect(()=>{!a&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,g]),jsxRuntime.jsxs(S,{...ii(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(S,{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(me,{className:utils.classNames(Eb,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:R},{isSelected:P,isFocusVisible:w,isDisabled:C,optionProps:D},k)=>jsxRuntime.jsx("li",{...D,"data-disabled":C,className:utils.classNames(Nb,D.className),ref:k,children:jsxRuntime.jsx(ct,{isFocusVisible:w,color:x,isSelected:P,"aria-label":R,isInteractive:true,isDisabled:C,tooltip:y})}),shouldFocusWrap:f,...g,"aria-labelledby":a?h:g["aria-labelledby"]})]})});Bb.displayName="ColorSwatchPicker";var Ab=z({defaultClassName:"_1lrwegk0",variantClassNames:{isSeparator:{true:"_1yep5z610y"}},defaultVariants:{},compoundVariants:[]}),Cn="_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6kj _1yep5z6kk _1yep5z6kl";var xl="\u2013";function Pn({segment:e,state:t}){let o=ht__default.default.useRef(null),{segmentProps:r}=reactAria.useDateSegment(e,t,o),{focusProps:a,isFocused:n}=reactAria.useFocusRing(),i=ht.useMemo(()=>{let{text:s,type:l}=e;switch(l){case "hour":return s.replaceAll(xl,"H");case "minute":return s.replaceAll(xl,"M");case "second":return s.replaceAll(xl,"S");default:return s}},[e]);return jsxRuntime.jsx(S,{...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:Ab({isSeparator:e.text===":"||e.text==="/"}),children:e.isPlaceholder?i:e.text})}var jb=ht__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=ht__default.default.useRef(null),{labelProps:c,fieldProps:u,descriptionProps:m,errorMessageProps:d,validationErrors:b,isInvalid:f,inputProps:y}=reactAria.useTimeField(s,l,p),g=a.errorMessage||b.join(" "),v=_e({...a,errorMessage:g,descriptionProps:m,errorMessageProps:d,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(wt,{className:utils.classNames("BaselineUI-TimeField",e),labelProps:c,fieldProps:u,ref:n,wrapperRef:p,wrapperClassName:Cn,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",{...y})}),jsxRuntime.jsx(S,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((x,R)=>jsxRuntime.jsx(Pn,{segment:x,state:l},R))})]})});jb.displayName="TimeField";var Ob="_10dw1p96",Hb="_10dw1p95",Vb=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 Kb(e,t){if(typeof e=="function"&&!e.prototype?.isReactComponent){let o=e(t);return ht.isValidElement(o)?e:o}return e}var Gb=({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:f,isHovered:y}=reactAria.useHover({}),g=ht.useRef(null),{onKeyDown:v,..._}=e.interactiveElementProps;delete _.onFocus,delete _.onClick;let h=focus.createFocusManager(g),x=ht.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]),R=ht.useMemo(()=>{let $=Kb(s,r.index),I=Kb(l,r.index),N=typeof p=="function"?p(r.index):p,E=typeof c=="function"?c(r.index):c;return $||I?jsxRuntime.jsxs(S,{display:"flex",flexDirection:"row",children:[$?jsxRuntime.jsx(we,{icon:$,"aria-label":N,size:"sm",excludeFromTabOrder:true,variant:"secondary",onPress:()=>{a?.(r.index);},tooltip:true}):null,I?jsxRuntime.jsx(we,{icon:I,"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]),P=ht.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,C=!!u,{pressProps:D}=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);}},D,T,f,e.itemContainerWithoutChildrenProps,_),className:utils.classNames(Hb,Vb({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:g,children:jsxRuntime.jsxs(S,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?R:null,jsxRuntime.jsxs(S,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(S,{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?Pl.collapse:Pl.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:utils.classNames(Ob,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:true}),w?jsxRuntime.jsx(w,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(S,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:$=>{C&&($.stopPropagation(),$.preventDefault(),e.startRenamingItem());},children:[e.isRenaming?jsxRuntime.jsx("div",{onClick:$=>{$.stopPropagation();},children:jsxRuntime.jsx(nt,{defaultValue:r.data.label,autoFocus:true,onBlur:$=>{u?.({key:r.index,value:$.target.value}),e.stopRenamingItem();},"aria-label":b(Pl.rename),onKeyDown:P,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"?R:null]})}),o]})},Pl=G({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function NT(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 ET(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 Zb=ht__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:f,...y},g)=>{let v=pe(),_=ht.useRef(null),h=reactStately.useTreeState({...y,selectionMode:"multiple",items:a.children,children:v}),x=ht.useMemo(()=>Object.fromEntries(Object.entries(ET(a,NT)).map(([k,T])=>[k,{...T,canRename:!!d}])),[a,d]),R=reactAria.useId(),[P,w]=ht__default.default.useState(a.children?.[0]?.id??""),C=ht.useRef(P),D=ht.useMemo(()=>({[`tree-${R}`]:{focusedItem:P,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[P,h.expandedKeys,h.selectionManager.selectedKeys,R]);return ht.useEffect(()=>{if(!_.current)return;let k=_.current.getRootNode(),T=k instanceof ShadowRoot,$=_.current?.contains(k?.activeElement??null);T&&$&&k?.querySelector(`[data-rct-item-id="${P}"]`)?.focus();},[P]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:x,getItemTitle:k=>k.data?.label,viewState:D,onExpandItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys,k.index])),y.onExpand?.(k.index.toString());},onFocusItem:k=>{w(k.index),k.index&&(C.current=k.index);},onCollapseItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(T=>T!==k.index))),y.onCollapse?.(k.index.toString());},onSelectItems:k=>{h.selectionManager.setSelectedKeys(new Set(k));},renderItem:k=>jsxRuntime.jsx(Gb,{...k,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,onRename:d,onAction:b,renderItemTitle:f}),renderLiveDescriptorContainer:({children:k})=>jsxRuntime.jsx(he,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:k})}),renderTreeContainer:({containerProps:k,children:T})=>jsxRuntime.jsx("div",{...Me(k,{onBlur:$=>{$.currentTarget.contains($.relatedTarget)||$.currentTarget.querySelector(`[data-key="${C.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-${R}`,rootItem:n,treeLabel:y["aria-label"],treeLabelledBy:y["aria-labelledby"]})})});Zb.displayName="TreeView";var HT=ht.forwardRef(({className:e,isCollapsible:t=false,...o},r)=>{let a=ht.useRef(null),n=reactAria.useId();return ht.useImperativeHandle(r,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",e),collapsible:t,ref:a,id:n,...o})});HT.displayName="Panel";var YT=ht.forwardRef(({className:e,...t},o)=>{let r=ht.useRef(null);return ht.useImperativeHandle(o,()=>({setLayout:r.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",e),ref:r,...t})});YT.displayName="PanelGroup";var Jb="_6abhjk0";var QT=({className:e,isDisabled:t=false,...o})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:t,className:utils.classNames(Jb,"BaselineUI-PanelResizeHandle",e),...o});QT.displayName="PanelResizeHandle";var Qb=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:[]}),e5="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var n4=()=>{};function i4({state:e,...t}){let o=ht__default.default.useRef(null),{toastProps:r,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(t,e,o),l=ht.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(La,{elementProps:l,...c,className:utils.classNames(Qb({variant:c.variant||"info"}),c.className),onClose:p?n4:void 0})}var o5=ht__default.default.forwardRef(({state:e,style:t,className:o,...r},a)=>{let n=ae(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(e5,o),style:s,children:e.visibleToasts.map(l=>jsxRuntime.jsx(i4,{toast:l,state:e},l.key))})});o5.displayName="ToastRegion";var r5=ht__default.default.forwardRef(({toastQueue:e,portalContainer:t,...o},r)=>{let a=toast.useToastQueue(e),n=ze(t);return a.visibleToasts.length>0?jsxRuntime.jsx(he,{portalContainer:n,ref:r,children:jsxRuntime.jsx(o5,{state:a,...o})}):null});r5.displayName="GlobalToastRegion";function Ye(e,t){return e-t*Math.floor(e/t)}var a5=1721426;function ft(e,t,o,r){t=yt(e,t);let a=t-1,n=-2;return o<=2?n=0:Xe(t)&&(n=-1),a5-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*o-362)/12+n+r)}function Xe(e){return e%4===0&&(e%100!==0||e%400===0)}function yt(e,t){return e==="BC"?1-t:t}function Ft(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var s4={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]},se=class{fromJulianDay(t){let o=t,r=o-a5,a=Math.floor(r/146097),n=Ye(r,146097),i=Math.floor(n/36524),s=Ye(n,36524),l=Math.floor(s/1461),p=Ye(s,1461),c=Math.floor(p/365),u=a*400+i*100+l*4+c+(i!==4&&c!==4?1:0),[m,d]=Ft(u),b=o-ft(m,d,1,1),f=2;o<ft(m,d,3,1)?f=0:Xe(d)&&(f=1);let y=Math.floor(((b+f)*12+373)/367),g=o-ft(m,d,y,1)+1;return new W(m,d,y,g)}toJulianDay(t){return ft(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return s4[Xe(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Xe(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 Il(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function i5(e,t){return n5(e)-n5(t)}function n5(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var wl=null;function Rl(){return wl==null&&(wl=new Intl.DateTimeFormat().resolvedOptions().timeZone),wl}function $l(e){e=In(e,new se);let t=yt(e.era,e.year);return c5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function c5(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 s5(e,t){if(t==="UTC")return 0;if(e>0&&t===Rl())return new Date(e).getTimezoneOffset()*-6e4;let{year:o,month:r,day:a,hour:n,minute:i,second:s}=d5(e,t);return c5(o,r,a,n,i,s,0)-Math.floor(e/1e3)*1e3}var l5=new Map;function d5(e,t){let o=l5.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"}),l5.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 p5=864e5;function l4(e,t,o,r){return (o===r?[o]:[o,r]).filter(n=>p4(e,t,n))}function p4(e,t,o){let r=d5(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 u5(e,t,o="compatible"){let r=wn(e);if(t==="UTC")return $l(r);if(t===Rl()&&o==="compatible"){r=In(r,new se);let l=new Date,p=yt(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=$l(r),n=s5(a-p5,t),i=s5(a+p5,t),s=l4(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 Tl(e,t,o="compatible"){return new Date(u5(e,t,o))}function wn(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 Rn(e.calendar,e.era,e.year,e.month,e.day,o,r,a,n)}function In(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,bt(r),r}function Tn(e,t){let o=e.copy(),r="hour"in o?m4(o,t):0;Sl(o,t.years||0),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e),o.month+=t.months||0,Dl(o),m5(o),o.day+=(t.weeks||0)*7,o.day+=t.days||0,o.day+=r,c4(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 Sl(e,t){var o,r;!((o=(r=e.calendar).isInverseEra)===null||o===void 0)&&o.call(r,e)&&(t=-t),e.year+=t;}function Dl(e){for(;e.month<1;)Sl(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Sl(e,1);}function c4(e){for(;e.day<1;)e.month--,Dl(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Dl(e);}function m5(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 bt(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),m5(e);}function d4(e){let t={};for(let o in e)typeof e[o]=="number"&&(t[o]=-e[o]);return t}function Ml(e,t){return Tn(e,d4(t))}function Nl(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),bt(o),o}function f5(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),y5(o),o}function u4(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=$n(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=$n(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=$n(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=$n(e.hour,24),t}function y5(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 $n(e,t){let o=e%t;return o<0&&(o+=t),o}function m4(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,u4(e)}function El(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=gt(l,o,0,s.length-1,r?.round),a.era=s[l],bt(a);break}case "year":var n,i;!((n=(i=a.calendar).isInverseEra)===null||n===void 0)&&n.call(i,a)&&(o=-o),a.year=gt(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=gt(e.month,o,1,e.calendar.getMonthsInYear(e),r?.round);break;case "day":a.day=gt(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),bt(a),a}function b5(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=gt(n,o,i,s,r?.round);break}case "minute":a.minute=gt(e.minute,o,0,59,r?.round);break;case "second":a.second=gt(e.second,o,0,59,r?.round);break;case "millisecond":a.millisecond=gt(e.millisecond,o,0,999,r?.round);break;default:throw new Error("Unsupported field "+t)}return a}function gt(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 g5(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 Ll(e){let t=In(e,new se),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 v5(e){return `${Ll(e)}T${g5(e)}`}function _5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bl(e,t,o){_5(e,t),t.set(e,o);}function z5(e){let t=typeof e[0]=="object"?e.shift():new se,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 y4=new WeakMap,W=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 Tn(this,t)}subtract(t){return Ml(this,t)}set(t){return Nl(this,t)}cycle(t,o,r){return El(this,t,o,r)}toDate(t){return Tl(this,t)}toString(){return Ll(this)}compare(t){return Il(this,t)}constructor(...t){Bl(this,y4,{writable:true,value:void 0});let[o,r,a,n,i]=z5(t);this.calendar=o,this.era=r,this.year=a,this.month=n,this.day=i,bt(this);}};var b4=new WeakMap,Rn=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 Tn(this,t)}subtract(t){return Ml(this,t)}set(t){return Nl(f5(this,t),t)}cycle(t,o,r){switch(t){case "era":case "year":case "month":case "day":return El(this,t,o,r);default:return b5(this,t,o,r)}}toDate(t,o){return Tl(this,t,o)}toString(){return v5(this)}compare(t){let o=Il(this,t);return o===0?i5(this,wn(t)):o}constructor(...t){Bl(this,b4,{writable:true,value:void 0});let[o,r,a,n,i]=z5(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,bt(this);}};var So=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],g4=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Sn=[1867,1911,1925,1988,2018],vt=["meiji","taisho","showa","heisei","reiwa"];function h5(e){let t=So.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?So.length-1:t===0?0:t-1}function Al(e){let t=Sn[vt.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new W(e.year+t,e.month,e.day)}var Dn=class extends se{fromJulianDay(t){let o=super.fromJulianDay(t),r=h5(o);return new W(this,vt[r],o.year-Sn[r],o.month,o.day)}toJulianDay(t){return super.toJulianDay(Al(t))}balanceDate(t){let o=Al(t),r=h5(o);vt[r]!==t.era&&(t.era=vt[r],t.year=o.year-Sn[r]),this.constrainDate(t);}constrainDate(t){let o=vt.indexOf(t.era),r=g4[o];if(r!=null){let[a,n,i]=r,s=a-Sn[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]=So[o];t.month=Math.max(a,t.month),t.month===a&&(t.day=Math.max(n,t.day));}}getEras(){return vt}getYearsInEra(t){let o=vt.indexOf(t.era),r=So[o],a=So[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(Al(t))}getMinimumMonthInYear(t){let o=x5(t);return o?o[1]:1}getMinimumDayInMonth(t){let o=x5(t);return o&&t.month===o[1]?o[2]:1}constructor(...t){super(...t),this.identifier="japanese";}};function x5(e){if(e.year===1){let t=vt.indexOf(e.era);return So[t]}}var P5=-543,Mn=class extends se{fromJulianDay(t){let o=super.fromJulianDay(t),r=yt(o.era,o.year);return new W(this,r-P5,o.month,o.day)}toJulianDay(t){return super.toJulianDay(C5(t))}getEras(){return ["BE"]}getDaysInMonth(t){return super.getDaysInMonth(C5(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist";}};function C5(e){let[t,o]=Ft(e.year+P5);return new W(t,o,e.month,e.day)}var Nn=1911;function I5(e){return e.era==="minguo"?e.year+Nn:1-e.year+Nn}function k5(e){let t=e-Nn;return t>0?["minguo",t]:["before_minguo",1-t]}var En=class extends se{fromJulianDay(t){let o=super.fromJulianDay(t),r=yt(o.era,o.year),[a,n]=k5(r);return new W(this,a,n,o.month,o.day)}toJulianDay(t){return super.toJulianDay(w5(t))}getEras(){return ["before_minguo","minguo"]}balanceDate(t){let[o,r]=k5(I5(t));t.era=o,t.year=r;}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(w5(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Nn}constructor(...t){super(...t),this.identifier="roc";}};function w5(e){let[t,o]=Ft(I5(e));return new W(t,o,e.month,e.day)}var R5=1948320,$5=[0,31,62,93,124,155,186,216,246,276,306,336],Ln=class{fromJulianDay(t){let o=t-R5,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-$5[i]+1;return new W(this,r,i+1,s)}toJulianDay(t){let o=R5-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return o+=$5[t.month-1],o+=t.day,o}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ye(25*t.year+11,33)<8?30:29}getEras(){return ["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian";}};var Fl=78,T5=80,Bn=class extends se{fromJulianDay(t){let o=super.fromJulianDay(t),r=o.year-Fl,a=t-ft(o.era,o.year,1,1),n;a<T5?(r--,n=Xe(o.year-1)?31:30,a+=n+155+90+10):(n=Xe(o.year)?31:30,a-=T5);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 W(this,r,i,s)}toJulianDay(t){let o=t.year+Fl,[r,a]=Ft(o),n,i;return Xe(a)?(n=31,i=ft(r,a,3,21)):(n=30,i=ft(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&&Xe(t.year+Fl)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return ["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian";}};var Fn=1948440,S5=1948439,Te=1300,Do=1600,v4=460322;function jn(e,t,o,r){return r+Math.ceil(29.5*(o-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function E5(e,t,o){let r=Math.floor((30*(o-t)+10646)/10631),a=Math.min(12,Math.ceil((o-(29+jn(t,r,1,1)))/29.5)+1),n=o-jn(t,r,a,1)+1;return new W(e,r,a,n)}function D5(e){return (14+11*e)%30<11}var No=class{fromJulianDay(t){return E5(this,Fn,t)}toJulianDay(t){return jn(Fn,t.year,t.month,t.day)}getDaysInMonth(t){let o=29+t.month%2;return t.month===12&&D5(t.year)&&o++,o}getMonthsInYear(){return 12}getDaysInYear(t){return D5(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return ["AH"]}constructor(){this.identifier="islamic-civil";}},On=class extends No{fromJulianDay(t){return E5(this,S5,t)}toJulianDay(t){return jn(S5,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla";}},_4="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",jl,Mo;function An(e){return v4+Mo[e-Te]}function Lr(e,t){let o=e-Te,r=1<<11-(t-1);return (jl[o]&r)===0?29:30}function M5(e,t){let o=An(e);for(let r=1;r<t;r++)o+=Lr(e,r);return o}function N5(e){return Mo[e+1-Te]-Mo[e-Te]}var Hn=class extends No{fromJulianDay(t){let o=t-Fn,r=An(Te),a=An(Do);if(o<r||o>a)return super.fromJulianDay(t);{let n=Te-1,i=1,s=1;for(;s>0;){n++,s=o-An(n)+1;let l=N5(n);if(s===l){i=12;break}else if(s<l){let p=Lr(n,i);for(i=1;s>p;)s-=p,i++,p=Lr(n,i);break}}return new W(this,n,i,o-M5(n,i)+1)}}toJulianDay(t){return t.year<Te||t.year>Do?super.toJulianDay(t):Fn+M5(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Te||t.year>Do?super.getDaysInMonth(t):Lr(t.year,t.month)}getDaysInYear(t){return t.year<Te||t.year>Do?super.getDaysInYear(t):N5(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",jl||(jl=new Uint16Array(Uint8Array.from(atob(_4),t=>t.charCodeAt(0)).buffer)),!Mo){Mo=new Uint32Array(Do-Te+1);let t=0;for(let o=Te;o<=Do;o++){Mo[o-Te]=t;for(let r=1;r<=12;r++)t+=Lr(o,r);}}}};var L5=347997,B5=1080,A5=24*B5,z4=29,h4=12*B5+793,x4=z4*A5+h4;function jt(e){return Ye(e*7+1,19)<7}function Un(e){let t=Math.floor((235*e-234)/19),o=12084+13753*t,r=t*29+Math.floor(o/25920);return Ye(3*(r+1),7)<3&&(r+=1),r}function C4(e){let t=Un(e-1),o=Un(e);return Un(e+1)-o===356?2:o-t===382?1:0}function Br(e){return Un(e)+C4(e)}function F5(e){return Br(e+1)-Br(e)}function P4(e){let t=F5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Vn(e,t){if(t>=6&&!jt(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let o=P4(e);return t===2?o===2?30:29:t===3?o===0?29:30:t===6?jt(e)?30:0:30}var qn=class{fromJulianDay(t){let o=t-L5,r=o*A5/x4,a=Math.floor((19*r+234)/235)+1,n=Br(a),i=Math.floor(o-n);for(;i<1;)a--,n=Br(a),i=Math.floor(o-n);let s=1,l=0;for(;l<i;)l+=Vn(a,s),s++;s--,l-=Vn(a,s);let p=i-l;return new W(this,a,s,p)}toJulianDay(t){let o=Br(t.year);for(let r=1;r<t.month;r++)o+=Vn(t.year,r);return o+t.day+L5}getDaysInMonth(t){return Vn(t.year,t.month)}getMonthsInYear(t){return jt(t.year)?13:12}getDaysInYear(t){return F5(t.year)}getYearsInEra(){return 9999}getEras(){return ["AM"]}balanceYearMonth(t,o){o.year!==t.year&&(jt(o.year)&&!jt(t.year)&&o.month>6?t.month--:!jt(o.year)&&jt(t.year)&&o.month>6&&t.month++);}constructor(){this.identifier="hebrew";}};var Ol=1723856,j5=1824665,Hl=5500;function Kn(e,t,o,r){return e+365*t+Math.floor(t/4)+30*(o-1)+r-1}function Vl(e,t){let o=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Kn(e,o,1,1))/30),a=t+1-Kn(e,o,r,1);return [o,r,a]}function O5(e){return Math.floor(e%4/3)}function H5(e,t){return t%13!==0?30:O5(e)+5}var Eo=class{fromJulianDay(t){let[o,r,a]=Vl(Ol,t),n="AM";return o<=0&&(n="AA",o+=Hl),new W(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="AA"&&(o-=Hl),Kn(Ol,o,t.month,t.day)}getDaysInMonth(t){return H5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+O5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return ["AA","AM"]}constructor(){this.identifier="ethiopic";}},Gn=class extends Eo{fromJulianDay(t){let[o,r,a]=Vl(Ol,t);return o+=Hl,new W(this,"AA",o,r,a)}getEras(){return ["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa";}},Wn=class extends Eo{fromJulianDay(t){let[o,r,a]=Vl(j5,t),n="CE";return o<=0&&(n="BCE",o=1-o),new W(this,n,o,r,a)}toJulianDay(t){let o=t.year;return t.era==="BCE"&&(o=1-o),Kn(j5,o,t.month,t.day)}getDaysInMonth(t){let o=t.year;return t.era==="BCE"&&(o=1-o),H5(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 Ul(e){switch(e){case "buddhist":return new Mn;case "ethiopic":return new Eo;case "ethioaa":return new Gn;case "coptic":return new Wn;case "hebrew":return new qn;case "indian":return new Bn;case "islamic-civil":return new No;case "islamic-tbla":return new On;case "islamic-umalqura":return new Hn;case "japanese":return new Dn;case "persian":return new Ln;case "roc":return new En;case "gregory":default:return new se}}var U5=ht__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:Ul}),p=ht__default.default.useRef(null),{labelProps:c,fieldProps:u,validationErrors:m,descriptionProps:d,inputProps:b,errorMessageProps:f,isInvalid:y}=reactAria.useDateField(s,l,p),g=a.errorMessage||m.join(" "),v=_e({...a,errorMessage:g,descriptionProps:d,errorMessageProps:f,labelPosition:t}),{focusProps:_,isFocused:h}=reactAria.useFocusRing({within:true});return jsxRuntime.jsxs(wt,{className:utils.classNames("BaselineUI-DateField",e),labelProps:c,fieldProps:u,ref:n,wrapperRef:p,wrapperClassName:Cn,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",{...b})}),jsxRuntime.jsx(S,{display:"flex",flexDirection:"row",paddingRight:"md",..._,children:l.segments.map((x,R)=>jsxRuntime.jsx(Pn,{segment:x,state:l},R))})]})});U5.displayName="DateField";var q5={x:0,y:0},N4={node:null,setNode:()=>{},coordinates:q5,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:false},Ze=ht__default.default.createContext(N4),K5=({children:e,isDisabled:t=false,coordinates:o,onMove:r})=>{let[a,n]=ht__default.default.useState(null),i=ht__default.default.useRef(null),[s,l]=utils$1.useControlledState(o,q5,u=>{r?.({coordinates:u,boundingRect:i.current});}),p=reactAria.useId(),c=ht__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(Ze.Provider,{value:c,children:e})};K5.displayName="Magnifier";var G5="_1yep5z6f6",W5=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"]]}),Y5="_1aj2a4vd",X5="_1aj2a4v1",Z5="_1aj2a4v4",ql="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",J5="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",Q5="_1aj2a4v0",eg="_1aj2a4v5";var og=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 rg({coordinates:e,setCoordinates:t,boundsRef:o,onKeyDown:r,onKeyUp:a}){let{isDisabled:n}=ht.useContext(Ze);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 ng=ht__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:f,displayId:y,boundsRef:g,isDisabled:v}=ht.useContext(Ze),_=ht.useRef(null),[h,x]=ht.useState(false),R=interactions.useInteractionModality(),P=Ne();ht.useEffect(()=>{let E=_.current;if(!E||v)return;let j=O=>{let H=E.getBoundingClientRect();g.current=H;let V="clientX"in O?O.clientX:O.touches[0].clientX,Q="clientY"in O?O.clientY:O.touches[0].clientY,F={x:lodash.clamp(V-H.left,0,H.width),y:lodash.clamp(Q-H.top,0,H.height)};b(F),x(true);},B=()=>{x(false);};return E.addEventListener("mousemove",j),E.addEventListener("touchmove",j),E.addEventListener("mouseleave",B),()=>{E.removeEventListener("mousemove",j),E.removeEventListener("touchmove",j),E.removeEventListener("mouseleave",B);}},[b,g,v]);let{pressProps:w}=reactAria.usePress({isDisabled:v,onPress:E=>{E.pointerType==="keyboard"?t?.({...E,x:f.x,y:f.y}):t?.(E);}}),{focusProps:C,isFocusVisible:D,isFocused:k}=reactAria.useFocusRing(),{focusProps:T}=interactions.useFocus({isDisabled:v,onFocusChange:E=>{if(R==="keyboard")if(E){x(true);let j=_.current?.getBoundingClientRect();if(!j)return;g.current=j,b({x:lodash.clamp(j.width/2,0,j.width),y:lodash.clamp(j.height/2,0,j.height)});}else x(false);i?.(E);},onFocus:l,onBlur:s}),{keyboardProps:$}=rg({coordinates:f,setCoordinates:b,boundsRef:g,onKeyDown:p,onKeyUp:c}),I=ht.useMemo(()=>_.current?utils.getAbsolutePosition(_.current,f):{x:0,y:0},[f]);interactions.useInteractOutside({isDisabled:v,ref:_,onInteractOutside:()=>{x(false);}});let N=ht.useMemo(()=>h&&!v&&(P==="mobile"||R==="keyboard"),[h,v,P,R]);return jsxRuntime.jsxs("div",{ref:M(m,_),className:utils.classNames(Y5,"BaselineUI-Magnifier-Content",o),style:r,"data-block-id":a,"data-block-class":n,"aria-controls":y,role:"application",...u,children:[N?jsxRuntime.jsx(he,{children:jsxRuntime.jsx(og,{style:{left:I.x,top:I.y},className:utils.classNames(Q5,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...Me(w,C,$,T),ref:d,className:utils.classNames(W5({isDisabled:v,isIndicatorVisible:N}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":D,"data-focused":k,tabIndex:v?void 0:0,children:e})]})});ng.displayName="MagnifierContent";function e8(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 ig(e){let[t,o]=ht.useState(null),{isDisabled:r}=ht.useContext(Ze);return ht.useEffect(()=>{if(!e||r)return;let a=e,n=re(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(true);c.style.cssText=e8(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 lg=8,pg=7,cg=7,dg=ht__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}=ht.useContext(Ze),m=ig(l),d=ht.useMemo(()=>typeof o=="function"?o({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):o,[o,s,p]),b=ht.useMemo(()=>p.current?{x:s.x/p.current.width,y:s.y/p.current.height}:{x:0,y:0},[p,s]);return jsxRuntime.jsxs(S,{ref:i,className:utils.classNames(X5,"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:J5,children:[m&&!u?jsxRuntime.jsx(oa,{node:m,style:{transform:`scale(${r}) translate(calc(-${b.x*100}% + ${lg*pg/(2*r)}px), calc(-${b.y*100}% + ${lg*cg/(2*r)}px))`},className:utils.classNames(eg,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:pg*cg}).map((f,y)=>y===24?jsxRuntime.jsx("div",{className:utils.classNames(ql,Z5)},y):jsxRuntime.jsx("div",{className:ql},y))]}),d?.length?jsxRuntime.jsx(S,{display:"flex",gap:"lg",flexDirection:"column",children:d?.map(({label:f,icon:y},g)=>jsxRuntime.jsxs(S,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsxRuntime.jsx(y,{size:12,className:G5}),jsxRuntime.jsx(te,{type:"label",size:"sm",children:f})]},f+g))}):null]})});dg.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=Ju;exports.AccordionItem=nm;exports.ActionButton=q;exports.ActionGroup=Mb;exports.ActionGroupItem=X$;exports.ActionIconButton=L;exports.AlertDialog=yn;exports.AudioPlayer=K1;exports.Avatar=fo;exports.Box=S;exports.ButtonSelect=bb;exports.Checkbox=zu;exports.ColorInput=go;exports.ColorSwatch=ct;exports.ColorSwatchPicker=Bb;exports.ComboBox=wb;exports.DateField=U5;exports.DateFormat=Su;exports.DeviceProvider=Yv;exports.DeviceProviderContext=ca;exports.Dialog=xe;exports.DialogTitle=Qc;exports.DomNodeRenderer=oa;exports.Drawer=va;exports.Editor=k1;exports.FileUpload=Hd;exports.Focusable=ba;exports.FrameProvider=n_;exports.FreehandCanvas=Ff;exports.GlobalToastRegion=r5;exports.GridList=Tb;exports.Group=yy;exports.I18nProvider=cc;exports.IconColorInput=Sf;exports.IconColorInputButton=Wa;exports.IconSelect=um;exports.IconSlider=sd;exports.ImageDropZone=Qf;exports.ImageGallery=ub;exports.InlineAlert=La;exports.Link=Md;exports.ListBox=me;exports.Magnifier=K5;exports.MagnifierContent=ng;exports.MagnifierDisplay=dg;exports.Markdown=L1;exports.Menu=ha;exports.MessageFormat=fy;exports.Modal=Ee;exports.ModalClose=oP;exports.ModalContent=Ue;exports.ModalTrigger=Ba;exports.NumberFormat=so;exports.NumberInput=Ve;exports.Pagination=Tu;exports.Panel=HT;exports.PanelGroup=YT;exports.PanelResizeHandle=QT;exports.Popover=je;exports.PopoverContent=Le;exports.PopoverTrigger=Oe;exports.Portal=he;exports.PortalContainerProvider=na;exports.Preview=ay;exports.ProgressBar=Zd;exports.ProgressSpinner=po;exports.RadioGroup=my;exports.Reaction=lu;exports.ScrollControlButton=T1;exports.SearchInput=xd;exports.Select=lt;exports.Separator=U;exports.Slider=to;exports.Switch=gd;exports.TabItem=Im;exports.Tabs=wm;exports.TagGroup=Ou;exports.Text=te;exports.TextInput=nt;exports.ThemeProvider=fa;exports.TimeField=jb;exports.ToggleButton=wa;exports.ToggleIconButton=we;exports.Toolbar=on;exports.Tooltip=J;exports.Transform=Yf;exports.TreeView=Zb;exports.defineMessages=G;exports.disableAnimations=_M;exports.enableAnimations=zM;exports.isInsideOverlayContent=c3;exports.isRect=Bp;exports.useDevice=Ne;exports.useI18n=A;exports.useImage=Xt;exports.useIntersectionObserver=ac;exports.useIsFirstRender=sa;exports.useLocalStorage=yc;exports.useMutationObserver=cD;exports.usePortalContainer=ze;exports.useResizeObserver=nc;exports.useTextSelection=gD;exports.useUndoRedo=sc;exports.useUserPreferences=ki;
|