@baseline-ui/core 0.38.0 → 0.39.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 +12690 -17638
- package/dist/index.css +1 -1
- package/dist/index.d.mts +58 -17
- package/dist/index.d.ts +58 -17
- package/dist/index.js +6 -33
- package/dist/index.mjs +6 -33
- package/package.json +8 -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'),wt=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'),dynamic=require('@vanilla-extract/dynamic'),r0=require('lodash/isEmpty'),_20=require('@baseline-ui/icons/20'),wx=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'),toolbar=require('@react-aria/toolbar'),lodash=require('lodash'),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'),Pb=require('dompurify'),slateHyperscript=require('slate-hyperscript'),plateCombobox=require('@udecode/plate-combobox'),slateReact=require('slate-react'),f4=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 wt__default=/*#__PURE__*/_interopDefault(wt);var r0__default=/*#__PURE__*/_interopDefault(r0);var wx__default=/*#__PURE__*/_interopDefault(wx);var Pb__namespace=/*#__PURE__*/_interopNamespace(Pb);var f4__default=/*#__PURE__*/_interopDefault(f4);/**
|
|
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,37 +7,10 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var hg=Object.create;var ul=Object.defineProperty;var _g=Object.getOwnPropertyDescriptor;var zg=Object.getOwnPropertyNames;var Cg=Object.getPrototypeOf,xg=Object.prototype.hasOwnProperty;var ml=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Pg=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zg(e))!xg.call(r,a)&&a!==t&&ul(r,a,{get:()=>e[a],enumerable:!(o=_g(e,a))||o.enumerable});return r};var zn=(r,e,t)=>(t=r!=null?hg(Cg(r)):{},Pg(!r||!r.__esModule?ul(t,"default",{value:r,enumerable:!0}):t,r));var ei=ml((uj,pc)=>{var C5={},x5=C5.hasOwnProperty,P5=function(e,t){if(!e)return t;var o={};for(var a in t)o[a]=x5.call(e,a)?e[a]:t[a];return o},w5=/[ -,\.\/:-@\[-\^`\{-~]/,k5=/[ -,\.\/:-@\[\]\^`\{-~]/,S5=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Qn=function r(e,t){t=P5(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?w5.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&&k5.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(S5,function(u,y,b){return y&&y.length%2?u:(y||"")+b}),!a&&t.wrap?o+i+o:i};Qn.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};Qn.version="3.0.0";pc.exports=Qn;});var Oc=ml((aF,Bc)=>{var S6=function(e){return I6(e)&&!R6(e)};function I6(r){return !!r&&typeof r=="object"}function R6(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||E6(r)}var T6=typeof Symbol=="function"&&Symbol.for,N6=T6?Symbol.for("react.element"):60103;function E6(r){return r.$$typeof===N6}function L6(r){return Array.isArray(r)?[]:{}}function Hr(r,e){return e.clone!==!1&&e.isMergeableObject(r)?Jt(L6(r),r,e):r}function M6(r,e,t){return r.concat(e).map(function(o){return Hr(o,t)})}function D6(r,e){if(!e.customMerge)return Jt;var t=e.customMerge(r);return typeof t=="function"?t:Jt}function A6(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Dc(r){return Object.keys(r).concat(A6(r))}function Ac(r,e){try{return e in r}catch{return !1}}function B6(r,e){return Ac(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function O6(r,e,t){var o={};return t.isMergeableObject(r)&&Dc(r).forEach(function(a){o[a]=Hr(r[a],t);}),Dc(e).forEach(function(a){B6(r,a)||(Ac(r,a)&&t.isMergeableObject(e[a])?o[a]=D6(a,t)(r[a],e[a],t):o[a]=Hr(e[a],t));}),o}function Jt(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||M6,t.isMergeableObject=t.isMergeableObject||S6,t.cloneUnlessOtherwiseSpecified=Hr;var o=Array.isArray(e),a=Array.isArray(r),n=o===a;return n?o?t.arrayMerge(r,e,t):O6(r,e,t):Hr(e,t)}Jt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(o,a){return Jt(o,a,t)},{})};var j6=Jt;Bc.exports=j6;});var Se=typeof document<"u"?bt__default.default.useLayoutEffect:()=>{};function Cn(r){let e=bt.useRef(null);return Se(()=>{e.current=r;},[r]),bt.useCallback((...t)=>{let o=e.current;return o?.(...t)},[])}function xn(r){let[e,t]=bt.useState(r),o=bt.useRef(null),a=Cn(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}e===i.value?a():t(i.value);});Se(()=>{o.current&&a();});let n=Cn(i=>{o.current=i(e),a();});return [e,n]}var No={prefix:String(Math.round(Math.random()*1e10)),current:0},fl=bt__default.default.createContext(No),Eg=bt__default.default.createContext(!1);var Lg=!!(typeof window<"u"&&window.document&&window.document.createElement),Pn=new WeakMap;function Mg(r=!1){let e=bt.useContext(fl),t=bt.useRef(null);if(t.current===null&&!r){var o,a;let n=(a=bt__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=Pn.get(n);i==null?Pn.set(n,{id:e.current,state:n.memoizedState}):n.memoizedState!==i.state&&(e.current=i.id,Pn.delete(n));}t.current=++e.current;}return t.current}function Dg(r){let e=bt.useContext(fl);e===No&&!Lg&&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=Mg(!!r),o=e===No&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${e.prefix}`;return r||`${o}-${t}`}function Ag(r){let e=bt__default.default.useId(),[t]=bt.useState(yl()),o=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${No.prefix}`;return r||`${o}-${e}`}var kn=typeof bt__default.default.useId=="function"?Ag:Dg;function Bg(){return !1}function Og(){return !0}function jg(r){return ()=>{}}function yl(){return typeof bt__default.default.useSyncExternalStore=="function"?bt__default.default.useSyncExternalStore(jg,Bg,Og):bt.useContext(Eg)}var Ug=!!(typeof window<"u"&&window.document&&window.document.createElement),We=new Map;function Eo(r){let[e,t]=bt.useState(r),o=bt.useRef(null),a=kn(e),n=bt.useCallback(i=>{o.current=i;},[]);return Ug&&(We.has(a)&&!We.get(a).includes(n)?We.set(a,[...We.get(a),n]):We.set(a,[n])),Se(()=>{let i=a;return ()=>{We.delete(i);}},[a]),bt.useEffect(()=>{let i=o.current;i&&(o.current=null,t(i));}),a}function Sn(r,e){if(r===e)return r;let t=We.get(r);if(t)return t.forEach(a=>a(e)),e;let o=We.get(e);return o?(o.forEach(a=>a(r)),r):e}function bl(...r){return (...e)=>{for(let t of r)typeof t=="function"&&t(...e);}}var fe=r=>{var e;return (e=r?.ownerDocument)!==null&&e!==void 0?e:document},te=r=>r&&"window"in r&&r.window===r?r:fe(r).defaultView||window;function qg(r){return r!==null&&typeof r=="object"&&"nodeType"in r&&typeof r.nodeType=="number"}function In(r){return qg(r)&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in r}var Lo=(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 gl(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=gl(r[e]))&&(o&&(o+=" "),o+=t);}else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function Kg(){for(var r,e,t=0,o="",a=arguments.length;t<a;t++)(r=arguments[t])&&(e=gl(r))&&(o&&(o+=" "),o+=e);return o}var vl=Kg;function Xe(...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]=bl(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?e[a]=vl(n,i):a==="id"&&n&&i?e.id=Sn(n,i):e[a]=i!==void 0?i:n;}}return e}function L(...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 Gg=new Set(["id"]),Wg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Xg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Yg=/^(data-.*)$/;function Rn(r,e={}){let{labelable:t,isLink:o,propNames:a}=e,n={};for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(Gg.has(i)||t&&Wg.has(i)||o&&Xg.has(i)||a?.has(i)||Yg.test(i))&&(n[i]=r[i]);return n}function Mo(r){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(t=>r.test(t.brand)))||r.test(window.navigator.userAgent)}function Be(r){let e=null;return ()=>(e==null&&(e=r()),e)}var Rr=Be(function(){return Mo(/Firefox/i)});function re(r){let e=bt.useRef(null);return bt.useMemo(()=>({get current(){return e.current},set current(t){e.current=t,typeof r=="function"?r(t):r&&(r.current=t);}}),[r])}function ov(){return typeof window.ResizeObserver<"u"}function En(r){let{ref:e,box:t,onResize:o}=r;bt.useEffect(()=>{let a=e?.current;if(a)if(ov()){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,!1),()=>{window.removeEventListener("resize",o,!1);}},[o,e,t]);}function Ye(r){return !!r&&"label"in r&&!!r.label}function Do(r){return !!r&&"children"in r&&!!r.children&&"title"in r}function iv(r){return Do(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 se(){return bt.useCallback(r=>iv(r),[])}function Ao(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 yv(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function bv(r){var e=yv(r,"string");return typeof e=="symbol"?e:String(e)}function gv(r,e,t){return e=bv(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Pl(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 wl(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pl(Object(t),!0).forEach(function(o){gv(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Pl(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function kl(r,e){var t={};for(var o in r)t[o]=e(r[o],o);return t}var vv=(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 !1}return !0},x=r=>{var e=t=>{var o=r.defaultClassName,a=wl(wl({},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===!0?"true":"false");var p=r.variantClassNames[n][l];p&&(o+=" "+p);}}for(var[c,d]of r.compoundVariants)vv(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 kl(r.variantClassNames,t=>kl(t,o=>o.split(" ")[0]))}},e};var Sl=x({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),Il="_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu",Rl=x({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Tl=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:[]}),Nl="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",El="_6n12k90";var Ll=x({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var U=bt__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(Ll({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 kv(r){return tokens.sprinkles.properties.has(r)}var E=bt__default.default.forwardRef(({elementType:r="div",children:e,...t},o)=>{let a=r,{sprinkleProps:n,domProps:i}=bt.useMemo(()=>{let s={},l={};for(let p in t)kv(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})});E.displayName="Box";var Nr=bt__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&&Ye(r.value),"Item cannot be a section");let{icon:u,label:y}=r.value,{hoverProps:b,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,b,g),className:utils.classNames(Tl({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(E,{display:"flex",alignItems:"center",gap:"lg",children:[n?jsxRuntime.jsx("span",{"aria-hidden":!0,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:y})]}),i?jsxRuntime.jsx("span",{className:Rl({isDisabled:e}),...s,children:i}):null]})});Nr.displayName="DefaultRenderOption";var At=({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(Sl({isDropTarget:i,orientation:p}),"BaselineUI-DropIndicator",o),style:t}),...n})=>{let i=bt__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 Ze(r,e,t){return typeof r=="function"?r(e,t):r}function Bo(r,e,t){return typeof r=="function"?r(e,t):r}function Oo(r,e){return typeof r=="function"?r(e):r}function Dn(r,e){return typeof r=="function"?r(e):r}var Bl=({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(At,{target:{type:"item",key:r.key,dropPosition:"before"},...a}),e(n),t.collection.getKeyAfter(r.key)==null&&jsxRuntime.jsx(At,{target:{type:"item",key:r.key,dropPosition:"after"},...a})]})};Bl.displayName="DraggableListOption";var Er=bt__default.default.forwardRef(({item:r,renderOption:e=(m,u,y)=>jsxRuntime.jsx(Nr,{item:m,liProps:u.optionProps,...u,ref:y}),showSelectedIcon:t,state:o,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:l,optionStyle:p,optionClassName:c},d)=>{let m=bt__default.default.useRef(null),u=reactAria.useOption({key:r.key},o,m),{value:y}=r;utils.invariant(y&&Ye(y),"ListSection should not be passed to ListOption");let b={isFocusVisible:u.isFocusVisible,isSelected:u.isSelected,isFocused:u.isFocused,isDisabled:u.isDisabled,isPressed:u.isPressed},f={style:Bo(p,y,b),className:Ze(c,y,b)};return a&&n?jsxRuntime.jsx(Bl,{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}},L(m,d))}):e(r,{...u,showSelectedIcon:t,_state:o,optionProps:{...u.optionProps,...f}},L(m,d))});Er.displayName="Option";var Hl=({section:r,state:e,sectionClassName:t,sectionStyle:o,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=!1,...s})=>{let l=bt__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&&Do(u),"section must be a ListSection");let y=typeof o=="function"?o(u):o,b=typeof t=="function"?t(u):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r.key===e.collection.getFirstKey()?null:jsxRuntime.jsx(U,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...p,style:{...p.style,...y},className:utils.classNames(El,b,"BaselineUI-ListBox-Section"),children:[r.rendered&&a?n?.(r,l)||jsxRuntime.jsx(E,{...d,className:utils.classNames("BaselineUI-ListBox-SectionHeader",Nl),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(Er,{item:f,state:e,...s},f.key))})]})]})};function Ho({type:r="listbox",handle:e},t,o){let a=bt.useCallback(i=>r==="listbox"?o.current?.querySelector(`[data-key="${i}"][role="option"]`):o.current?.querySelector(`[data-key="${i}"][role="row"]`),[r,o]),n=bt.useCallback((i,s)=>{let l=a(i);l&&l?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);bt.useImperativeHandle(e,()=>({scrollIntoView:n,setFocusedKey:i=>{t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,t.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=o.current?.getRootNode(),s=i&&In(i),l=t.selectionManager.focusedKey;s&&l&&n(l);},[t.selectionManager.focusedKey],[n,o]);}var gt=bt__default.default.createContext(null),An=bt__default.default.forwardRef(({className:r,layout:e="stack",orientation:t="vertical",showSelectedIcon:o=!0,style:a,renderOption:n,enableReorder:i=!1,"data-block-id":s,"data-block-class":l,renderDragPreview:p,onReorder:c,state:d,listBoxHandle:m,...u},y)=>{let b=bt__default.default.useRef(null),{direction:f}=reactAria.useLocale(),g=bt__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);Ho({handle:m},d,g);let{collectionProps:h,dragState:_,dropState:C}=Ao({...u,onReorder:c,layout:e,orientation:t,enableReorder:i,preview:b},d,g),{isFocusVisible:P,isFocused:w,focusProps:z}=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,z,k,h),className:utils.classNames(Il,"BaselineUI-ListBox",r),style:a,ref:L(y,g),children:[[...d.collection].map(T=>{let R={key:T.key,state:d,dragState:_,dropState:C,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 T.type==="section"?bt.createElement(Hl,{...R,key:T.key,section:T}):bt.createElement(Er,{...R,key:T.key,item:T})}),p?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:p}):null]})});An.displayName="ListBoxCore";var Ul=bt__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useListState({...r,children:t});return jsxRuntime.jsx(An,{...r,ref:e,state:o})});Ul.displayName="ListBoxStandalone";var de=bt__default.default.forwardRef((r,e)=>{let t=bt.useContext(gt);return bt.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(An,{...r,ref:e,state:t}):jsxRuntime.jsx(Ul,{...r,ref:e})});de.displayName="ListBox";var $o="uf19bsf _1yep5z6la",ql=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:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nc"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61nh"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:!1},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]});var Lr=bt__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Oe=({children:r,...e})=>{let t=bt__default.default.useRef(null),o=reactStately.useOverlayTriggerState(e),a=reactAria.useOverlayTrigger(e,o),n=bt.useMemo(()=>({state:o,overlayTriggerAria:a,triggerRef:t}),[o,a]);return jsxRuntime.jsx(Lr.Provider,{value:n,children:r})};var Gl=x({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),Wl=x({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),Xl="_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu",Yl="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",Zl="_1gzftthd",Jl="_1gzftthc",Ql="var(--_1gzftth0)";function GM(r){return r.closest(".BaselineUI-Portal")||r.closest(".BaselineUI-Popover-Content")}function ep(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 Uo=bt__default.default.createContext({isSelected:!1,ref:void 0}),je=({children:r,anchorRect:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:a}=bt.useContext(Lr);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=o,i=bt.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||ep(e),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Uo.Provider,{value:i,children:e?jsxRuntime.jsx("div",{className:utils.classNames(Zl,"BaselineUI-PopoverTrigger-Hidden"),style:e,ref:a,tabIndex:-1},JSON.stringify(e)):r})};var qo=({label:r,tooltip:e})=>({tooltipProps:bt.useMemo(()=>{let o={size:"sm",variant:"inverse",text:r,includeArrow:!1,placement:"bottom start",offset:4};if(typeof e=="object")return {...o,...e};if(e)return o},[r,e])});function Ko({tooltip:r,"aria-label":e,"aria-labelledby":t},o){let[a,n]=bt.useState(e||"");bt.useEffect(()=>{if(t){let l=fe(o.current).querySelector(`#${t}`);l&&n(l.textContent||"");}else e&&n(e);},[t,o,e]);let{tooltipProps:i}=qo({label:a,tooltip:r});return {tooltipProps:i}}var Go=r=>{let e=bt__default.default.useRef(null),{ref:t,...o}=bt.useContext(Uo)||{},{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:Xe(a,l,p),isPressed:n,ref:L(e,t||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:r.isDisabled,isFocusVisible:i}}},Wo=(r,e)=>{let t=bt__default.default.useRef(null),{ref:o,...a}=bt.useContext(Uo)||{},{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:Xe(n,p,c),isPressed:i,ref:L(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 Xo=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:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]}),On=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:!0},"_1yep5z61nf"],[{variant:"ghost",isHovered:!0},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61nf"],[{variant:"secondary",isDisabled:!0},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61nd"],[{variant:"ghost",isDisabled:!0},"_1yep5z61nd"],[{variant:"popover",isDisabled:!0},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61nd"]]});var kh={sm:16,md:20,lg:24},G=bt__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:y,ref:b,isFocusVisible:f,isFocused:g,isHovered:v,uiStateOptions:h}=Go({...d,elementType:i,isDisabled:s}),_=kh[l],C=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":y});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,C),className:utils.classNames(Xo({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:L(m,b),children:[!!o&&jsxRuntime.jsx(o,{size:_,className:On({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),r,!!a&&jsxRuntime.jsx(a,{size:_,className:On({variant:n,isDisabled:s,isFocusVisible:f,isHovered:v})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:$o})]})});G.displayName="ActionButton";var Yo=bt__default.default.forwardRef(({className:r,style:e,node:t,"data-block-id":o,"data-block-class":a,...n},i)=>{let s=bt__default.default.useRef(null);bt__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:L(i,s)})});Yo.displayName="DomNodeRenderer";var ip="_14uvjig0 z9nup81",sp="_14uvjig7",lp="_14uvjig3",pp=x({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),cp=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:[]}),dp="_14uvjige _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",up="_14uvjig8",mp=x({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Ot=x({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Zo=x({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),jt=x({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Je="nrh1eh3",Qe=x({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),et=x({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Ft=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:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function Ne({description:r,errorMessageProps:e,descriptionProps:t,warningMessage:o,errorMessage:a,labelPosition:n,isDisabled:i}){return r?jsxRuntime.jsx("div",{...t,className:Ot({isDisabled:i,labelPosition:n}),children:r}):a?jsxRuntime.jsx("div",{...e,className:Ot({hasError:!0,labelPosition:n}),children:a}):o?jsxRuntime.jsx("div",{className:Ot({isDisabled:i,labelPosition:n}),children:o}):null}var fp=x({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),yp="_1lnwne0";var bp=x({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),gp=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 Jo({placement:r}){let e=bt.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 Vn=bt__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}=Jo({placement:a});return jsxRuntime.jsxs(react.motion.span,{...reactAria.mergeProps(t,m),ref:p,"data-placement":d,children:[l?jsxRuntime.jsx("div",{className:bp({placement:d,variant:n}),...o}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:gp({variant:n,size:i}),children:r})]})});Vn.displayName="TooltipContent";var $n=bt__default.default.createContext(void 0),Qo=({portalContainer:r,children:e})=>jsxRuntime.jsx($n.Provider,{value:r,children:e});Qo.displayName="PortalContainerProvider";var ea="var(--lz9qs1)",_p="var(--lz9qs0)";function Cp({ref:r,onIntersect:e,isDisabled:t,threshold:o,rootMargin:a,root:n}){let i=bt__default.default.useRef(null);bt.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]),bt.useEffect(()=>{let{current:s}=i;return r.current&&s?.observe(r.current),()=>s?.disconnect()},[r]);}function xp({ref:r,onResize:e,isDisabled:t}){let o=bt__default.default.useRef(null),[a,n]=bt__default.default.useState();return bt__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]),bt__default.default.useEffect(()=>{let{current:i}=o;return r.current&&i?.observe(r.current),()=>i?.disconnect()},[r]),{size:a}}function Ht({src:r,alt:e}){let[t,o]=bt.useState(!1),[a,n]=bt.useState(!1),[i,s]=bt.useState(!1),l=()=>{o(!0),s(!1);},p=()=>{n(!0),s(!1);};return bt.useEffect(()=>{if(!r)return;s(!0);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 ra(){let r=bt.useRef(!0);return bt.useEffect(()=>{r.current=!1;},[]),r.current}var Pp="SET_STATE",oa="UNDO",aa="REDO",Uh=(r,e)=>{let{past:t,present:o,future:a}=r;switch(e.type){case Pp:return {past:[...t,o],present:e.data,future:[]};case oa:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[o,...a]};case aa:return {past:[...t,o],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},wp=(r={},{isDisabled:e,onAction:t})=>{let o=ra(),[a,n]=bt.useReducer(Uh,{past:[],present:r,future:[]}),{past:i,present:s,future:l}=a,p=b=>{n({type:Pp,data:b});},c=bt.useRef(),d=()=>{c.current=oa,n({type:oa});},m=()=>{c.current=aa,n({type:aa});},u=!!i?.length,y=!!l?.length;return granularHooks.useGranularEffect(()=>{(c.current===oa||c.current===aa)&&(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:y}};var qn=bt__default.default.createContext({messages:{},shouldLogMissingMessages:!0,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),Ip=({children:r,messages:e={},shouldLogMissingMessages:t=!0,...o})=>{let a=bt.useRef(new Set),[n,i]=bt.useState(o.locale||"");bt.useEffect(()=>{a.current.clear();},[n,o.locale]);let s=bt__default.default.useMemo(()=>({messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:a,setLang:i}),[e,t,i]);return jsxRuntime.jsx(reactAria.I18nProvider,{...o,children:jsxRuntime.jsx(qn.Provider,{value:s,children:r})})};Ip.displayName="I18nProvider";function B(r){let{messages:e,shouldLogMissingMessages:t,hasMissingErrorLoggedFor:o,setLang:a}=bt.useContext(qn);bt.useEffect(()=>{!r&&Yh__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=bt.useMemo(()=>r?utils.cleanKeyFromGlobImport(r):e,[r,e]),i=reactAria.useMessageFormatter(n),s=reactAria.useLocale();bt.useEffect(()=>{a(s.locale);},[s.locale,a]);let l=bt.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=bt.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 bt.useMemo(()=>({formatMessage:p,locale:s}),[p,s])}var K=r=>r;function Y8(r,e,t){let o=bt__default.default.useRef(null);return bt__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 Lp(r,e){let[t,o]=bt.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 oA({ref:r,onSelectionChange:e,onSelectionEnd:t,isDisabled:o}){let a=bt__default.default.useRef(null);reactAria.usePress({ref:r,isDisabled:o,onPressEnd(){let i=te(r.current).getSelection();i&&r.current?.contains(i.anchorNode)&&t?.(i);},onPressStart(){let n=te(r.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),bt.useEffect(()=>{let n=r.current;if(!n||o)return;function i(){let p=te(n).getSelection();p&&r.current?.contains(p.anchorNode)&&e(p);}let s=fe(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[r,e,o]);}function Ee(r){let e=bt.useCallback(()=>{let a=te(r??typeof window>"u"?void 0:document.body),n=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":n.matches?"tablet":"mobile"},[r]),[t,o]=bt__default.default.useState(e);return Se(()=>{let a=te(r),n=()=>{o(e());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[r,e]),t}var c_=typeof window<"u";function Kn(){return c_?document.body:null}var vt=bt__default.default.createContext({container:null,portalContainer:null,shouldContainOverlays:!1,isContainerPositioned:!1}),d_=({children:r,container:e=Kn(),portalContainer:t,shouldContainOverlays:o="auto"})=>{let a=Ee(),n=bt.useMemo(()=>e===Kn()||o==="never"?!1:o==="always"?!0:a!=="mobile",[o,a,e]),[i,s]=bt.useState(!1),l=ra();bt.useEffect(()=>{if(!e||l)return;let d=te(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 y({width:f,height:g}){e&&dynamic.setElementVars(e,{[_p]:f,[ea]:g});}let b=new ResizeObserver(f=>{for(let g of f)y({width:`${g.contentRect.width}px`,height:`${g.contentRect.height}px`});});return n&&(y({width:`${u.width}px`,height:`${u.height}px`}),b.observe(e)),e.dataset.shouldContainOverlays=n.toString(),()=>{b.disconnect(),y({width:"",height:""}),e.dataset.shouldContainOverlays="";}},[e,l,n]);let p=bt.useMemo(()=>({container:e,portalContainer:t||e||Kn(),shouldContainOverlays:n,isContainerPositioned:i}),[e,t,n,i]);return jsxRuntime.jsx(vt.Provider,{value:p,children:jsxRuntime.jsx(Qo,{portalContainer:p.portalContainer||void 0,children:r})})};function ye(r){let e=bt.useContext($n),{portalContainer:t}=bt.useContext(vt);return r||e||t||void 0}var Op=x({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var jp="z9nup80",Vt="z9nup83",Fp="z9nup87";function Gn(r=typeof window>"u"?void 0:window){let[e,t]=bt.useState("light"),[o,a]=bt.useState(!1),[n,i]=bt.useState(!1),[s,l]=bt.useState(!1);return bt.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]),bt.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]),bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-motion: reduce)"),c=d=>{i(d.matches);};return p.matches&&i(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),bt.useEffect(()=>{if(!r)return;let p=r.matchMedia("(prefers-reduced-transparency: reduce)"),c=d=>{l(d.matches);};return p.matches&&l(!0),p.addEventListener("change",c),()=>{p.addEventListener("change",c);}},[r]),{colorScheme:e,highContrast:o,reducedMotion:n,transparency:s}}var $t=bt.createContext({theme:tokens.lightTheme,setTheme:()=>{},shouldHandleVirtualKeyboard:!0});var Hp="var(--hj25q10)";var sa={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},la=bt__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=!0},d)=>{let{direction:m}=reactAria.useLocale(),{colorScheme:u,reducedMotion:y,highContrast:b,transparency:f}=Gn(),{name:g,theme:v}=bt.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=Ee(),_={"data-theme":g,"data-block-id":s,"data-block-class":l,"data-reduced-motion":p==="user"?y:p==="always","data-high-contrast":b,"data-transparency":f,"data-device":h},C=bt.useMemo(()=>({theme:v,setTheme:P=>{t?.(P),o?.(P);},shouldHandleVirtualKeyboard:c}),[v,t,o,c]);return bt.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($t.Provider,{value:C,children:jsxRuntime.jsx(react.MotionConfig,{reducedMotion:p,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,_),className:utils.classNames(jp,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,v),...dynamic.assignInlineVars({[Hp]:m==="rtl"?"-1":"1"}),...n},ref:d,children:e})})})});la.displayName="ThemeProvider";function rB(){react.MotionGlobalConfig.skipAnimations=!0;}function oB(){react.MotionGlobalConfig.skipAnimations=!1;}var be=bt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,portalContainer:n,...i},s)=>{let{theme:l}=bt.useContext($t),p=ye();return jsxRuntime.jsx(reactAria.Overlay,{...i,portalContainer:n??p,children:jsxRuntime.jsx(la,{ref:s,theme:l,style:e,className:utils.classNames("BaselineUI-Portal",r),"data-block-id":o,"data-block-class":a,children:t})})});be.displayName="Portal";var ne=bt__default.default.forwardRef(({children:r,placement:e="bottom",delay:t=1e3,closeDelay:o=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,className:l,style:p,"data-block-id":c,"data-block-class":d,...m},u)=>{let y=bt__default.default.useRef(null),b=bt__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,y),_=ye(s),{overlayProps:C,arrowProps:P,placement:w,updatePosition:z}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:y,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:b,placement:e,isOpen:g.isOpen,...m});return Cp({ref:b,threshold:1,onIntersect:z,isDisabled:!g.isOpen}),xp({ref:y,onResize:z,isDisabled:!g.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...v,ref:y,children:[r,g.isOpen?jsxRuntime.jsx(be,{disableFocusManagement:!0,portalContainer:_,className:l,style:p,"data-block-id":c,"data-block-class":d,children:jsxRuntime.jsx(Vn,{ref:L(u,b),state:g,arrowProps:P,overlayProps:C,placement:w,tooltipProps:h,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});ne.displayName="Tooltip";var pa=bt__default.default.forwardRef(({elementType:r,children:e,...t},o)=>{let a=re(o),{focusableProps:n}=focus.useFocusable(t,a);return jsxRuntime.jsx(r??"div",{ref:a,...n,children:e})});pa.displayName="Focusable";var F_={xxs:8,xs:12,sm:16,md:20,lg:24},A=bt__default.default.forwardRef((r,e)=>{let t=re(e),{tooltipProps:o}=Ko(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx(Yn,{...r,ref:t})}):jsxRuntime.jsx(Yn,{...r,ref:t})});A.displayName="ActionIconButton";var Yn=bt__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"];bt.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:y,isFocused:b,isHovered:f,uiStateOptions:g}=Go({...s,elementType:i}),v=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":b,"data-focus-visible":y,"data-disabled":s.isDisabled,"data-hovered":f,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,v),className:utils.classNames(ql({variant:a,size:o,isDisabled:!!s.isDisabled,isFocusVisible:y,isHovered:f}),"BaselineUI-ActionIconButton",typeof r=="function"?r(g):r),ref:L(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:F_[o]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:$o})]})});Yn.displayName="ActionIconButtonCore";var Fe=bt__default.default.forwardRef(({className:r,style:e,labelPosition:t="top",variant:o="primary",showStepper:a=!0,...n},i)=>{let s=bt__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:y}=reactAria.useFocusRing(),{labelProps:b,decrementButtonProps:f,inputProps:g,incrementButtonProps:v,groupProps:h,descriptionProps:_,errorMessageProps:C}=reactAria.useNumberField(n,p,s),P=bt.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),w=Ne({description:n.description,errorMessageProps:C,descriptionProps:_,errorMessage:n.errorMessage,labelPosition:t,isDisabled:n.isDisabled}),z=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":d,"data-focused":y,"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(et({labelPosition:t}),"BaselineUI-NumberInput",r),...z,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:Qe({labelPosition:t,hasMessage:!!w}),children:[jsxRuntime.jsx("label",{...b,className:Je,children:n.label}),t==="start"&&w]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Vt]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(h,c),className:utils.classNames(Ft({isHovered:d,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:y,variant:o}),{[yp]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",Zo({isDisabled:n.isDisabled,labelPosition:t}))}),P?jsxRuntime.jsx(P,{className:jt({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:fp({isHoveredOrFocused:d||y,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(A,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...f,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(U,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(A,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&w]})]})});Fe.displayName="NumberInput";var Kt=bt__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":y,"data-block-class":b,defaultValue:f,isReadOnly:g,label:v,id:h,includeNumberInput:_},C)=>{let P=bt__default.default.useRef(null),w={onChange:t===void 0?void 0:I=>{t(I[0]);},isDisabled:n||g,step:i,minValue:s,maxValue:l,onChangeEnd:o===void 0?void 0:I=>{o(I[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},z=reactAria.useNumberFormatter(a),k=reactStately.useSliderState({...w,numberFormatter:z}),{trackProps:T,groupProps:R,labelProps:N}=reactAria.useSlider(w,k,P),S=jsxRuntime.jsx(Fe,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":N.id,value:k.getThumbValue(0),formatOptions:a,onChange:I=>{k.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...R,style:e,"data-block-id":y,"data-block-class":b,className:utils.classNames(ip,"BaselineUI-Slider",r),children:[v?jsxRuntime.jsxs("div",{className:lp,children:[jsxRuntime.jsx("label",{...N,className:utils.classNames(pp({isDisabled:n,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:v}),_?S:null]}):null,jsxRuntime.jsxs("div",{className:sp,children:[jsxRuntime.jsx("div",{...T,className:utils.classNames(up,"BaselineUI-Slider-Track"),ref:L(P,C),"data-testid":"track",children:jsxRuntime.jsx(s5,{state:k,trackRef:P,isDisabled:n,isReadOnly:g})}),_&&!v?S:null]})]})});Kt.displayName="Slider";function s5({state:r,trackRef:e,isDisabled:t,isReadOnly:o}){let a=bt__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(mp({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(dp,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(cp({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 Zp=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 J=bt__default.default.forwardRef(({elementType:r="span",type:e="title",children:t,size:o="md",...a},n)=>jsxRuntime.jsx(r,{...a,className:utils.classNames(Zp({size:o,type:e}),"BaselineUI-Text",a.className),ref:n,children:t}));J.displayName="Text";var Jp=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:[]}),Qp="siobe24";var da=bt__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}=B(),y=bt__default.default.useRef(null),{dialogProps:b,titleProps:f}=reactAria.useDialog(d,y),{focusProps:g,isFocusVisible:v}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,g),className:utils.classNames(Jp({background:o,isFocusVisible:v}),"BaselineUI-Drawer",r),"data-block-id":i,"data-block-class":s,style:e,ref:L(m,y),children:[jsxRuntime.jsxs(E,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Qp,children:[jsxRuntime.jsx(J,{type:"title",size:"sm",...f,className:Fp,children:a}),jsxRuntime.jsxs(E,{children:[n?jsxRuntime.jsx(A,{...n,variant:"secondary"}):null,jsxRuntime.jsx(A,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:l,"aria-label":u(b5.close)})]})]}),jsxRuntime.jsx(U,{variant:o==="subtle"?"primary":"secondary"}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...p},className:utils.classNames(c,"BaselineUI-Drawer-Content"),children:t})]})});da.displayName="Drawer";var b5=K({close:{id:"close",defaultMessage:"Close"}});var rc="aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il",oc="_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",ac=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:[]}),nc=x({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var ht=bt__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=bt.useMemo(()=>({state:t,triggerProps:o,overlayProps:a}),[t,o,a]);return jsxRuntime.jsx(ht.Provider,{value:n,children:r})};Le.displayName="Modal";var ic={},sc=r=>{var{fileScope:e,css:t}=r,o=e.packageName?[e.packageName,e.filePath].join("/"):e.filePath,a=ic[o];if(!a){var n=document.createElement("style");e.packageName&&n.setAttribute("data-package",e.packageName),n.setAttribute("data-file",e.filePath),n.setAttribute("type","text/css"),a=ic[o]=n,document.head.appendChild(n);}a.innerHTML=t;};function lc(r){var e=r.match(/^var\((.*)\)$/);return e?e[1]:r}var pi=zn(ei());var cc=class{constructor(r){let{failure:e,gotoFn:t,output:o}=this._buildTables(r);this.gotoFn=t,this.output=o,this.failure=e;}_buildTables(r){let e={0:{}},t={},o=0;for(let i of r){let s=0;for(let l of i)e[s]&&l in e[s]?s=e[s][l]:(o++,e[s][l]=o,e[o]={},s=o,t[o]=[]);t[s].push(i);}let a={},n=[];for(let i in e[0]){let s=e[0][i];a[s]=0,n.push(s);}for(;n.length>0;){let i=n.shift();if(i!==void 0)for(let s in e[i]){let l=e[i][s];n.push(l);let p=a[i];for(;p>0&&!(s in e[p]);)p=a[p];if(s in e[p]){let c=e[p][s];a[l]=c,t[l]=[...t[l],...t[c]];}else a[l]=0;}}return {gotoFn:e,output:t,failure:a}}search(r){let e=0,t=[];for(let o=0;o<r.length;o++){let a=r[o];for(;e>0&&!(a in this.gotoFn[e]);)e=this.failure[e];if(a in this.gotoFn[e]&&(e=this.gotoFn[e][a],this.output[e].length>0)){let n=this.output[e];t.push([o,n]);}}return t}match(r){let e=0;for(let t=0;t<r.length;t++){let o=r[t];for(;e>0&&!(o in this.gotoFn[e]);)e=this.failure[e];if(o in this.gotoFn[e]&&(e=this.gotoFn[e][o],this.output[e].length>0))return !0}return !1}};var I5={appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"},ua=[I5],R5=()=>{if(ua.length<1)throw new Error("No adapter configured");return ua[ua.length-1]},dc=!1,uc=r=>{dc||T5(r);},T5=r=>{if(!r)throw new Error('No adapter provided when calling "setAdapter"');dc=!0,ua.push(r);};var ti=function(){return R5().markCompositionUsed(...arguments)};function ma(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var Q;(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";})(Q||(Q={}));var ze;(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";})(ze||(ze={}));var mc=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,N5=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,E5=new Map([[126,ze.Element],[94,ze.Start],[36,ze.End],[42,ze.Any],[33,ze.Not],[124,ze.Hyphen]]),L5=new Set(["has","not","matches","is","where","host","host-context"]);function yc(r){switch(r.type){case Q.Adjacent:case Q.Child:case Q.Descendant:case Q.Parent:case Q.Sibling:case Q.ColumnCombinator:return !0;default:return !1}}var M5=new Set(["contains","icontains"]);function D5(r,e,t){let o=parseInt(e,16)-65536;return o!==o||t?e:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,o&1023|56320)}function Or(r){return r.replace(N5,D5)}function ri(r){return r===39||r===34}function fc(r){return r===32||r===9||r===10||r===12||r===13}function oi(r){let e=[],t=bc(e,`${r}`,0);if(t<r.length)throw new Error(`Unmatched selector: ${r.slice(t)}`);return e}function bc(r,e,t){let o=[];function a(m){let u=e.slice(t+m).match(mc);if(!u)throw new Error(`Expected name, found ${e.slice(t)}`);let[y]=u;return t+=m+y.length,Or(y)}function n(m){for(t+=m;t<e.length&&fc(e.charCodeAt(t));)t++;}function i(){t+=1;let m=t,u=1;for(;u>0&&t<e.length;t++)e.charCodeAt(t)===40&&!s(t)?u++:e.charCodeAt(t)===41&&!s(t)&&u--;if(u)throw new Error("Parenthesis not matched");return Or(e.slice(m,t-1))}function s(m){let u=0;for(;e.charCodeAt(--m)===92;)u++;return (u&1)===1}function l(){if(o.length>0&&yc(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function p(m){if(o.length>0&&o[o.length-1].type===Q.Descendant){o[o.length-1].type=m;return}l(),o.push({type:m});}function c(m,u){o.push({type:Q.Attribute,name:m,action:u,value:a(1),namespace:null,ignoreCase:"quirks"});}function d(){if(o.length&&o[o.length-1].type===Q.Descendant&&o.pop(),o.length===0)throw new Error("Empty sub-selector");r.push(o);}if(n(0),e.length===t)return t;e:for(;t<e.length;){let m=e.charCodeAt(t);switch(m){case 32:case 9:case 10:case 12:case 13:{(o.length===0||o[0].type!==Q.Descendant)&&(l(),o.push({type:Q.Descendant})),n(1);break}case 62:{p(Q.Child),n(1);break}case 60:{p(Q.Parent),n(1);break}case 126:{p(Q.Sibling),n(1);break}case 43:{p(Q.Adjacent),n(1);break}case 46:{c("class",ze.Element);break}case 35:{c("id",ze.Equals);break}case 91:{n(1);let u,y=null;e.charCodeAt(t)===124?u=a(1):e.startsWith("*|",t)?(y="*",u=a(2)):(u=a(0),e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==61&&(y=u,u=a(1))),n(0);let b=ze.Exists,f=E5.get(e.charCodeAt(t));if(f){if(b=f,e.charCodeAt(t+1)!==61)throw new Error("Expected `=`");n(2);}else e.charCodeAt(t)===61&&(b=ze.Equals,n(1));let g="",v=null;if(b!=="exists"){if(ri(e.charCodeAt(t))){let C=e.charCodeAt(t),P=t+1;for(;P<e.length&&(e.charCodeAt(P)!==C||s(P));)P+=1;if(e.charCodeAt(P)!==C)throw new Error("Attribute value didn't end");g=Or(e.slice(t+1,P)),t=P+1;}else {let C=t;for(;t<e.length&&(!fc(e.charCodeAt(t))&&e.charCodeAt(t)!==93||s(t));)t+=1;g=Or(e.slice(C,t));}n(0);let _=e.charCodeAt(t)|32;_===115?(v=!1,n(1)):_===105&&(v=!0,n(1));}if(e.charCodeAt(t)!==93)throw new Error("Attribute selector didn't terminate");t+=1;let h={type:Q.Attribute,name:u,action:b,value:g,namespace:y,ignoreCase:v};o.push(h);break}case 58:{if(e.charCodeAt(t+1)===58){o.push({type:Q.PseudoElement,name:a(2).toLowerCase(),data:e.charCodeAt(t)===40?i():null});continue}let u=a(1).toLowerCase(),y=null;if(e.charCodeAt(t)===40)if(L5.has(u)){if(ri(e.charCodeAt(t+1)))throw new Error(`Pseudo-selector ${u} cannot be quoted`);if(y=[],t=bc(y,e,t+1),e.charCodeAt(t)!==41)throw new Error(`Missing closing parenthesis in :${u} (${e})`);t+=1;}else {if(y=i(),M5.has(u)){let b=y.charCodeAt(0);b===y.charCodeAt(y.length-1)&&ri(b)&&(y=y.slice(1,-1));}y=Or(y);}o.push({type:Q.Pseudo,name:u,data:y});break}case 44:{d(),o=[],n(1);break}default:{if(e.startsWith("/*",t)){let b=e.indexOf("*/",t+2);if(b<0)throw new Error("Comment was not terminated");t=b+2,o.length===0&&n(0);break}let u=null,y;if(m===42)t+=1,y="*";else if(m===124){if(y="",e.charCodeAt(t+1)===124){p(Q.ColumnCombinator),n(2);break}}else if(mc.test(e.slice(t)))y=a(0);else break e;e.charCodeAt(t)===124&&e.charCodeAt(t+1)!==124&&(u=y,e.charCodeAt(t+1)===42?(y="*",t+=2):y=a(1)),o.push(y==="*"?{type:Q.Universal,namespace:u}:{type:Q.Tag,name:y,namespace:u});}}}return d(),t}function gc(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 vc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(t),!0).forEach(function(o){A5(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):gc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function A5(r,e,t){return e=B5(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function B5(r){var e=O5(r,"string");return typeof e=="symbol"?e:String(e)}function O5(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||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}var j5=hc({}),fa=j5;function hc(r){return e.withOptions=t=>hc(vc(vc({},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(`
|
|
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
11
|
`),l=null;for(let p of s){let c=p.match(/^(\s+)\S+/);if(c){let d=c[1].length;l?l=Math.min(l,d):l=d;}}if(l!==null){let p=l;i=s.map(c=>c[0]===" "||c[0]===" "?c.slice(p):c).join(`
|
|
12
12
|
`);}return i=i.trim(),n&&(i=i.replace(/\\n/g,`
|
|
13
|
-
`)),i}}var ba=function(){return ba=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++){t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);}return e},ba.apply(this,arguments)};function ni(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)e.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(t[o[a]]=r[o[a]]);return t}function F5(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],o=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return {next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var o=t.call(r),a,n=[],i;try{for(;(e===void 0||e-- >0)&&!(a=o.next()).done;)n.push(a.value);}catch(s){i={error:s};}finally{try{a&&!a.done&&(t=o.return)&&t.call(o);}finally{if(i)throw i.error}}return n}var H5=/(\u000D|\u000C|\u000D\u000A)/g,V5=/[\u0000\uD800-\uDFFF]/g,$5=/(\/\*)[\s\S]*?(\*\/)/g,U5=function(e,t){t===void 0&&(t=0),e=e.replace(H5,`
|
|
14
|
-
|
|
15
|
-
`).concat(e.trim())):new Error(e.trim())},xc=function(e){return W5(Z5(e))},Z5=function(e){var t=U5(e.trim());if(t===null)throw ge("Failed tokenizing");var o=0,a=t.length-1;if(t[0].type==="<at-keyword-token>"&&t[0].value==="media"){if(t[1].type!=="<whitespace-token>")throw ge("Expected whitespace after media");o=2;for(var n=2;n<t.length-1;n++){var i=t[n];if(i.type==="<{-token>"){a=n;break}else if(i.type==="<semicolon-token>")throw ge("Expected '{' in media query but found ';'")}}return t=t.slice(o,a),Q5(t)},J5=function(e){for(var t=[],o=!1,a=0;a<e.length;a++)e[a].type==="<whitespace-token>"?(o=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(ba(ba({},e[a]),{wsBefore:o,wsAfter:!1})),o=!1);return t},Q5=function(e){for(var t,o,a=[[]],n=0;n<e.length;n++){var i=e[n];i.type==="<comma-token>"?a.push([]):a[a.length-1].push(i);}var s=a.map(J5);if(s.length===1&&s[0].length===0)return [{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var l=s.map(function(u){return u.length===0?null:e6(u)}),p=[];try{for(var c=F5(l),d=c.next();!d.done;d=c.next()){var m=d.value;m!==null&&p.push(m);}}catch(u){t={error:u};}finally{try{d&&!d.done&&(o=c.return)&&o.call(c);}finally{if(t)throw t.error}}if(p.length===0)throw ge("No valid media queries");return p},e6=function(e){var t=e[0];if(t.type==="<(-token>")try{return {mediaPrefix:null,mediaType:"all",mediaCondition:ai(e,!0)}}catch(d){throw ge("Expected media condition after '('",d)}else if(t.type==="<ident-token>"){var o=null,a=void 0,n=t.value;(n==="only"||n==="not")&&(o=n);var i=o===null?0:1;if(e.length<=i)throw ge("Expected extra token in media query");var s=e[i];if(s.type==="<ident-token>"){var l=s.value;if(l==="all")a="all";else if(l==="print"||l==="screen")a=l;else if(l==="tty"||l==="tv"||l==="projection"||l==="handheld"||l==="braille"||l==="embossed"||l==="aural"||l==="speech")o=o==="not"?null:"not",a="all";else throw ge("Unknown ident '".concat(l,"' in media query"))}else if(o==="not"&&s.type==="<(-token>"){var p=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];p.push.apply(p,e),p.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return {mediaPrefix:null,mediaType:"all",mediaCondition:ai(p,!0)}}catch(d){throw ge("Expected media condition after '('",d)}}else throw ge("Invalid media query");if(i+1===e.length)return {mediaPrefix:o,mediaType:a,mediaCondition:null};if(i+4<e.length){var c=e[i+1];if(c.type==="<ident-token>"&&c.value==="and")try{return {mediaPrefix:o,mediaType:a,mediaCondition:ai(e.slice(i+2),!1)}}catch(d){throw ge("Expected media condition after 'and'",d)}else throw ge("Expected 'and' after media prefix")}else throw ge("Expected media condition after media prefix")}else throw ge("Expected media condition or media prefix")},ai=function r(e,t,o){if(o===void 0&&(o=null),e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media condition");for(var a=e.length-1,n=0,i=0,s=0;s<e.length;s++){var l=e[s];if(l.type==="<(-token>"?(i+=1,n=Math.max(n,i)):l.type==="<)-token>"&&(i-=1),i===0){a=s;break}}if(i!==0)throw new Error(`Mismatched parens
|
|
16
|
-
|
|
17
|
-
Invalid media condition`);if(o!==null&&o!==d.value)throw new Error("'".concat(d.value,"' and '").concat(o,`' must not be at same level
|
|
18
|
-
Invalid media condition`));if(d.value==="or"&&!t)throw new Error(`Cannot use 'or' at top level of a media query
|
|
19
|
-
Invalid media condition`);if(d.value!=="and"&&d.value!=="or")throw new Error("Invalid operator: '".concat(d.value,`'
|
|
20
|
-
Invalid media condition`));var m=r(e.slice(a+2),t,d.value);return {operator:d.value,children:[p].concat(m.children)}},t6=function(e){if(e.length<3||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid media feature");for(var t=[e[0]],o=1;o<e.length;o++){if(o<e.length-2){var a=e[o],n=e[o+1],i=e[o+2];if(a.type==="<number-token>"&&a.value>0&&n.type==="<delim-token>"&&n.value===47&&i.type==="<number-token>"&&i.value>0){t.push({type:"<ratio-token>",numerator:a.value,denominator:i.value,wsBefore:a.wsBefore,wsAfter:i.wsAfter}),o+=2;continue}}t.push(e[o]);}var s=t[1];if(s.type==="<ident-token>"&&t.length===3)return {context:"boolean",feature:s.value};if(t.length===5&&t[1].type==="<ident-token>"&&t[2].type==="<colon-token>"){var l=t[3];if(l.type==="<number-token>"||l.type==="<dimension-token>"||l.type==="<ratio-token>"||l.type==="<ident-token>"){var p=t[1].value,c=null,d=p.slice(0,4);d==="min-"?(c="min",p=p.slice(4)):d==="max-"&&(c="max",p=p.slice(4)),l.wsBefore,l.wsAfter;var m=ni(l,["wsBefore","wsAfter"]);return {context:"value",prefix:c,feature:p,value:m}}}else if(t.length>=5)try{var u=r6(t);return {context:"range",feature:u.featureName,range:u}}catch(y){throw ge("Invalid media feature",y)}throw new Error("Invalid media feature")},r6=function(e){var t,o,a,n;if(e.length<5||e[0].type!=="<(-token>"||e[e.length-1].type!=="<)-token>")throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},s=e[1].type==="<number-token>"||e[1].type==="<dimension-token>"||e[1].type==="<ratio-token>"||e[1].type==="<ident-token>"&&e[1].value==="infinite";if(e[2].type==="<delim-token>"){if(e[2].value===60)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]="<=":i[s?"leftOp":"rightOp"]="<";else if(e[2].value===62)e[3].type==="<delim-token>"&&e[3].value===61&&!e[3].wsBefore?i[s?"leftOp":"rightOp"]=">=":i[s?"leftOp":"rightOp"]=">";else if(e[2].value===61)i[s?"leftOp":"rightOp"]="=";else throw new Error("Invalid range");if(s)i.leftToken=e[1];else if(e[1].type==="<ident-token>")i.featureName=e[1].value;else throw new Error("Invalid range");var l=2+((o=(t=i[s?"leftOp":"rightOp"])===null||t===void 0?void 0:t.length)!==null&&o!==void 0?o:0),p=e[l];if(s)if(p.type==="<ident-token>"){if(i.featureName=p.value,e.length>=7){var c=e[l+1],d=e[l+2];if(c.type==="<delim-token>"){var m=c.value;if(m===60)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp="<=":i.rightOp="<";else if(m===62)d.type==="<delim-token>"&&d.value===61&&!d.wsBefore?i.rightOp=">=":i.rightOp=">";else throw new Error("Invalid range");var u=e[l+1+((n=(a=i.rightOp)===null||a===void 0?void 0:a.length)!==null&&n!==void 0?n:0)];i.rightToken=u;}else throw new Error("Invalid range")}else if(l+2!==e.length)throw new Error("Invalid range")}else throw new Error("Invalid range");else i.rightToken=p;var y=null,b=i.leftToken,f=i.leftOp,g=i.featureName,v=i.rightOp,h=i.rightToken,_=null;if(b!==null){if(b.type==="<ident-token>"){var C=b.type,P=b.value;P==="infinite"&&(_={type:C,value:P});}else if(b.type==="<number-token>"||b.type==="<dimension-token>"||b.type==="<ratio-token>"){b.wsBefore,b.wsAfter;var w=ni(b,["wsBefore","wsAfter"]);_=w;}}var z=null;if(h!==null){if(h.type==="<ident-token>"){var C=h.type,P=h.value;P==="infinite"&&(z={type:C,value:P});}else if(h.type==="<number-token>"||h.type==="<dimension-token>"||h.type==="<ratio-token>"){h.wsBefore,h.wsAfter;var k=ni(h,["wsBefore","wsAfter"]);z=k;}}if(_!==null&&z!==null)if((f==="<"||f==="<=")&&(v==="<"||v==="<="))y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z};else if((f===">"||f===">=")&&(v===">"||v===">="))y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z};else throw new Error("Invalid range");else _===null&&f===null&&v!==null&&z!==null?y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z}:_!==null&&f!==null&&v===null&&z===null&&(y={leftToken:_,leftOp:f,featureName:g,rightOp:v,rightToken:z});return y}else throw new Error("Invalid range")};function o6(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return (e==="string"?String:Number)(r)}function a6(r){var e=o6(r,"string");return typeof e=="symbol"?e:String(e)}function n6(r,e,t){return e=a6(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Pc(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 Xt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pc(Object(t),!0).forEach(function(o){n6(r,o,t[o]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Pc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o));});}return r}function i6(r,e){if(r==null)return {};var t={},o=Object.keys(r),a,n;for(n=0;n<o.length;n++)a=o[n],!(e.indexOf(a)>=0)&&(t[a]=r[a]);return t}function si(r,e){if(r==null)return {};var t=i6(r,e),o,a;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(a=0;a<n.length;a++)o=n[a],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(t[o]=r[o]);}return t}function Fr(r,e){for(var t in r)e(r[t],t);}function Gt(r,e){var t={};for(var o in r)e.indexOf(o)===-1&&(t[o]=r[o]);return t}function s6(r,e){var t={};for(var o in r)t[e(r[o],o)]=r[o];return t}var wc;function l6(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var p6=(r,e)=>{var t=()=>{var a=new RegExp(".".concat(l6((0, pi.default)(e,{isIdentifier:!0}))),"g");return r.replace(a,"&")},o;try{o=oi(r);}catch{throw new Error("Invalid selector: ".concat(t()))}o.forEach(a=>{try{for(var n=a.length-1;n>=-1;n--){if(!a[n])throw new Error;var i=a[n];if(i.type==="child"||i.type==="parent"||i.type==="sibling"||i.type==="adjacent"||i.type==="descendant")throw new Error;if(i.type==="attribute"&&i.name==="class"&&i.value===e)return}}catch{throw new Error(fa(wc||(wc=ma([`
|
|
21
|
-
Invalid selector: `,`
|
|
22
|
-
|
|
23
|
-
Style selectors must target the '&' character (along with any modifiers), e.g. `," or ",`.
|
|
24
|
-
|
|
25
|
-
This is to ensure that each style block only affects the styling of a single class.
|
|
26
|
-
|
|
27
|
-
If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of `,") to 'parent', you should add ",` to 'child').
|
|
28
|
-
|
|
29
|
-
If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write `,", you should instead write 'globalStyle(",`, { ... })'
|
|
30
|
-
`])),t(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}});},ga=class r{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map;}findOrCreateCondition(e){var t=this.ruleset.get(e);return t||(t={query:e,rules:[],children:new r},this.ruleset.set(e,t)),t}getConditionalRulesetByPath(e){var t=this;for(var o of e){var a=t.findOrCreateCondition(o);t=a.children;}return t}addRule(e,t,o){var a=this.getConditionalRulesetByPath(o),n=a.findOrCreateCondition(t);if(!n)throw new Error("Failed to add conditional rule");n.rules.push(e);}addConditionPrecedence(e,t){for(var o=this.getConditionalRulesetByPath(e),a=0;a<t.length;a++){var n,i=t[a],s=(n=o.precedenceLookup.get(i))!==null&&n!==void 0?n:new Set;for(var l of t.slice(a+1))s.add(l);o.precedenceLookup.set(i,s);}}isCompatible(e){for(var[t,o]of this.precedenceLookup.entries())for(var a of o){var n;if((n=e.precedenceLookup.get(a))!==null&&n!==void 0&&n.has(t))return !1}for(var{query:i,children:s}of e.ruleset.values()){var l=this.ruleset.get(i);if(l&&!l.children.isCompatible(s))return !1}return !0}merge(e){for(var{query:t,rules:o,children:a}of e.ruleset.values()){var n=this.ruleset.get(t);n?(n.rules.push(...o),n.children.merge(a)):this.ruleset.set(t,{query:t,rules:o,children:a});}for(var[i,s]of e.precedenceLookup.entries()){var l,p=(l=this.precedenceLookup.get(i))!==null&&l!==void 0?l:new Set;this.precedenceLookup.set(i,new Set([...p,...s]));}}mergeIfCompatible(e){return this.isCompatible(e)?(this.merge(e),!0):!1}getSortedRuleset(){var e=this,t=[],o=function(s){var l=e.ruleset.get(a);if(!l)throw new Error("Can't find condition for ".concat(a));var p=t.findIndex(c=>s.has(c.query));p>-1?t.splice(p,0,l):t.push(l);};for(var[a,n]of this.precedenceLookup.entries())o(n);return t}renderToArray(){var e=[];for(var{query:t,rules:o,children:a}of this.getSortedRuleset()){var n={};for(var i of o)n[i.selector]=Xt(Xt({},n[i.selector]),i.rule);Object.assign(n,...a.renderToArray()),e.push({[t]:n});}return e}},Ic={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},c6=Object.keys(Ic),d6=Ic,kc,Sc=(r,e)=>new Error(fa(kc||(kc=ma([`
|
|
31
|
-
Invalid media query: "`,`"
|
|
32
|
-
|
|
33
|
-
`,`
|
|
34
|
-
|
|
35
|
-
Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
|
|
36
|
-
`])),r,e)),u6=r=>{if(r==="@media ")throw Sc(r,"Query is empty");try{xc(r);}catch(e){throw Sc(r,e.message)}},m6=["vars"],f6=["content"],Rc="__DECLARATION",y6={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function b6(r){return r.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}function g6(r,e,t,o){var a=r.slice(0,e),n=r.slice(t);return "".concat(a).concat(o).concat(n)}var v6=" ",Wt=[...c6,"@layer","@media","@supports","@container","selectors"],li=class{constructor(e,t){this.rules=[],this.conditionalRulesets=[new ga],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map(o=>[o,o])),this.localClassNamesSearch=new cc(e),this.layers=new Map,this.composedClassLists=t.map(o=>{var{identifier:a,classList:n}=o;return {identifier:a,regex:RegExp("(".concat(n,")"),"g")}}).reverse();}processCssObj(e){if(e.type==="fontFace"){this.fontFaceRules.push(e.rule);return}if(e.type==="property"){this.propertyRules.push(e);return}if(e.type==="keyframes"){e.rule=Object.fromEntries(Object.entries(e.rule).map(n=>{var[i,s]=n;return [i,this.transformVars(this.transformProperties(s))]})),this.keyframesRules.push(e);return}if(this.currConditionalRuleset=new ga,e.type==="layer"){var t="@layer ".concat(e.name);this.addLayer([t]);}else {var o=Gt(e.rule,Wt);this.addRule({selector:e.selector,rule:o}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule);}var a=this.conditionalRulesets[this.conditionalRulesets.length-1];a.mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset);}addConditionalRule(e,t){var o=this.transformVars(this.transformProperties(e.rule)),a=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var n=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:a,rule:o},n,i);}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),o=this.transformSelector(e.selector);this.rules.push({selector:o,rule:t});}addLayer(e){var t=e.join(" - ");this.layers.set(t,e);}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return Fr(e,(t,o)=>{typeof t=="number"&&t!==0&&!y6[o]&&(e[o]="".concat(t,"px"));}),e}transformVars(e){var{vars:t}=e,o=si(e,m6);return t?Xt(Xt({},s6(t,(a,n)=>lc(n))),o):o}transformContent(e){var{content:t}=e,o=si(e,f6);if(typeof t>"u")return o;var a=Array.isArray(t)?t:[t];return Xt({content:a.map(n=>n&&(n.includes('"')||n.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(n))?n:'"'.concat(n,'"'))},o)}transformClassname(e){return ".".concat((0, pi.default)(e,{isIdentifier:!0}))}transformSelector(e){var t=e,o=function(y){t=t.replace(n,()=>(ti(y),y));};for(var{identifier:a,regex:n}of this.composedClassLists)o(a);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),s=t.length,l=i.length-1;l>=0;l--){var[p,[c]]=i[l],d=p-c.length+1,m=s<=p;m||(s=d,t[d-1]!=="."&&(t=g6(t,d,p+1,this.transformClassname(c))));}return t}transformSelectors(e,t,o){Fr(t.selectors,(a,n)=>{if(e.type!=="local")throw new Error("Selectors are not allowed within ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));var i=this.transformSelector(n.replace(RegExp("&","g"),e.selector));p6(i,e.selector);var s={selector:i,rule:Gt(a,Wt)};o?this.addConditionalRule(s,o):this.addRule(s);var l={type:"selector",selector:i,rule:a};this.transformLayer(l,a["@layer"],o),this.transformSupports(l,a["@supports"],o),this.transformMedia(l,a["@media"],o),this.transformContainer(l,a["@container"],o);});}transformMedia(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(p=>"@media ".concat(p)));for(var[n,i]of Object.entries(t)){var s="@media ".concat(n);u6(s);var l=[...o,s];this.addConditionalRule({selector:e.selector,rule:Gt(i,Wt)},l),e.type==="local"&&(this.transformSimplePseudos(e,i,l),this.transformSelectors(e,i,l)),this.transformLayer(e,i["@layer"],l),this.transformSupports(e,i["@supports"],l),this.transformContainer(e,i["@container"],l);}}}transformContainer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@container ".concat(n))),Fr(t,(n,i)=>{var s="@container ".concat(i),l=[...o,s];this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},l),e.type==="local"&&(this.transformSimplePseudos(e,n,l),this.transformSelectors(e,n,l)),this.transformLayer(e,n["@layer"],l),this.transformSupports(e,n["@supports"],l),this.transformMedia(e,n["@media"],l);});}}transformLayer(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@layer ".concat(n))),Fr(t,(n,i)=>{var s=[...o,"@layer ".concat(i)];this.addLayer(s),this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformMedia(e,n["@media"],s),this.transformSupports(e,n["@supports"],s),this.transformContainer(e,n["@container"],s);});}}transformSupports(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t){var a;(a=this.currConditionalRuleset)===null||a===void 0||a.addConditionPrecedence(o,Object.keys(t).map(n=>"@supports ".concat(n))),Fr(t,(n,i)=>{var s=[...o,"@supports ".concat(i)];this.addConditionalRule({selector:e.selector,rule:Gt(n,Wt)},s),e.type==="local"&&(this.transformSimplePseudos(e,n,s),this.transformSelectors(e,n,s)),this.transformLayer(e,n["@layer"],s),this.transformMedia(e,n["@media"],s),this.transformContainer(e,n["@container"],s);});}}transformSimplePseudos(e,t,o){for(var a of Object.keys(t))if(d6[a]){if(e.type!=="local")throw new Error("Simple pseudos are not valid in ".concat(e.type==="global"?'"globalStyle"':'"selectors"'));o?this.addConditionalRule({selector:"".concat(e.selector).concat(a),rule:t[a]},o):this.addRule({conditions:o,selector:"".concat(e.selector).concat(a),rule:t[a]});}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(rt({"@font-face":t}));for(var o of this.propertyRules)e.push(rt({["@property ".concat(o.name)]:o.rule}));for(var a of this.keyframesRules)e.push(rt({["@keyframes ".concat(a.name)]:a.rule}));for(var n of this.layers.values()){var[i,...s]=n.reverse(),l={[i]:Rc};for(var p of s)l={[p]:l};e.push(rt(l));}for(var c of this.rules)e.push(rt({[c.selector]:c.rule}));for(var d of this.conditionalRulesets)for(var m of d.renderToArray())e.push(rt(m));return e.filter(Boolean)}};function rt(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=[],o=function(i){var s=r[i];if(s&&Array.isArray(s))t.push(...s.map(p=>rt({[i]:p},e)));else if(s&&typeof s=="object"){var l=Object.keys(s).length===0;l||t.push("".concat(e).concat(i,` {
|
|
37
|
-
`).concat(rt(s,e+v6),`
|
|
38
|
-
`).concat(e,"}"));}else s===Rc?t.push("".concat(e).concat(i,";")):t.push("".concat(e).concat(i.startsWith("--")?i:b6(i),": ").concat(s,";"));};for(var a of Object.keys(r))o(a);return t.join(`
|
|
39
|
-
`)}function Tc(r){var{localClassNames:e,cssObjs:t,composedClassLists:o}=r,a=new li(e,o);for(var n of t)a.processCssObj(n);return a.toCss()}var Yt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ec=new Set,ci=typeof process=="object"&&process?process:{},Lc=(r,e,t,o)=>{typeof ci.emitWarning=="function"?ci.emitWarning(r,e,t,o):console.error(`[${t}] ${e}: ${r}`);},va=globalThis.AbortController,Nc=globalThis.AbortSignal;if(typeof va>"u"){Nc=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(o,a){this._onabort.push(a);}},va=class{constructor(){e();}signal=new Nc;abort(o){if(!this.signal.aborted){this.signal.reason=o,this.signal.aborted=!0;for(let a of this.signal._onabort)a(o);this.signal.onabort?.(o);}}};let r=ci.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{r&&(r=!1,Lc("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 h6=r=>!Ec.has(r),ot=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r),Mc=r=>ot(r)?r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?Zt:null:null,Zt=class extends Array{constructor(e){super(e),this.fill(0);}},di=class r{heap;length;static#l=!1;static create(e){let t=Mc(e);if(!t)return [];r.#l=!0;let o=new r(e,t);return r.#l=!1,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]}},ha=class r{#l;#d;#y;#b;#T;#N;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.#M(t,o,a,n),moveToTail:t=>e.#R(t),indexes:t=>e.#C(t),rindexes:t=>e.#x(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.#T}get memoMethod(){return this.#N}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:y=0,sizeCalculation:b,fetchMethod:f,memoMethod:g,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:h,allowStaleOnFetchRejection:_,allowStaleOnFetchAbort:C,ignoreFetchAbort:P}=e;if(t!==0&&!ot(t))throw new TypeError("max option must be a nonnegative integer");let w=t?Mc(t):Array;if(!w)throw new Error("invalid max value: "+t);if(this.#l=t,this.#d=u,this.maxEntrySize=y||this.#d,this.sizeCalculation=b,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.#N=g,f!==void 0&&typeof f!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#T=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=di.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=!!C,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#d!==0&&!ot(this.#d))throw new TypeError("maxSize must be a positive integer if specified");if(!ot(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!h,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!s,this.ttlResolution=ot(a)||a===0?a:1,this.ttlAutopurge=!!n,this.ttl=o||0,this.ttl){if(!ot(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D();}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 z="LRU_CACHE_UNBOUNDED";h6(z)&&(Ec.add(z),Lc("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",z,r));}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#D(){let e=new Zt(this.#l),t=new Zt(this.#l);this.#m=e,this.#_=t,this.#A=(n,i,s=Yt.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.#S=n=>{t[n]=e[n]!==0?Yt.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=Yt.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};}#S=()=>{};#w=()=>{};#A=()=>{};#f=()=>!1;#H(){let e=new Zt(this.#l);this.#g=0,this.#h=e,this.#I=t=>{this.#g-=e[t],e[t]=0;},this.#B=(t,o,a,n)=>{if(this.#t(o))return 0;if(!ot(a))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(a=n(o,t),!ot(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.#E=(t,o,a)=>{if(e[t]=o,this.#d){let n=this.#d-e[t];for(;this.#g>n;)this.#L(!0);}this.#g+=e[t],a&&(a.entrySize=o,a.totalCalculatedSize=this.#g);};}#I=e=>{};#E=(e,t,o)=>{};#B=(e,t,o,a)=>{if(o||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#n;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#s));)t=this.#u[t];}*#x({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#s;!(!this.#O(t)||((e||!this.#f(t))&&(yield t),t===this.#n));)t=this.#p[t];}#O(e){return e!==void 0&&this.#o.get(this.#r[e])===e}*entries(){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]]);}*rentries(){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]]);}*keys(){for(let e of this.#C()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*rkeys(){for(let e of this.#x()){let t=this.#r[e];t!==void 0&&!this.#t(this.#e[e])&&(yield t);}}*values(){for(let e of this.#C())this.#e[e]!==void 0&&!this.#t(this.#e[e])&&(yield this.#e[e]);}*rvalues(){for(let e of this.#x())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.#C()){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.#C()){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.#x()){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=!1;for(let t of this.#x({allowStale:!0}))this.#f(t)&&(this.#P(this.#r[t],"expire"),e=!0);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-(Yt.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.#C({allowStale:!0})){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=Yt.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=Yt.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.#B(e,t,o.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),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.#L(!1):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.#E(d,c,l),l&&(l.set="add"),p=!1;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.#I(d),this.#E(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.#D(),this.#m&&(p||this.#A(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.#L(!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);}}}#L(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.#I(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 !1;if(this.#f(n))a&&(a.has="stale",this.#w(a,n));else return o&&this.#S(n),a&&(a.has="hit",this.#w(a,n)),!0}else a&&(a.has="miss");return !1}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}#M(e,t,o,a){let n=t===void 0?void 0:this.#e[t];if(this.#t(n))return n;let i=new va,{signal:s}=o;s?.addEventListener("abort",()=>i.abort(s.reason),{signal:i.signal});let l={signal:i.signal,options:o,context:a},p=(b,f=!1)=>{let{aborted:g}=i.signal,v=o.ignoreFetchAbort&&b!==void 0;if(o.status&&(g&&!f?(o.status.fetchAborted=!0,o.status.fetchError=i.signal.reason,v&&(o.status.fetchAbortIgnored=!0)):o.status.fetchResolved=!0),g&&!v&&!f)return d(i.signal.reason);let h=u;return this.#e[t]===u&&(b===void 0?h.__staleWhileFetching?this.#e[t]=h.__staleWhileFetching:this.#P(e,"fetch"):(o.status&&(o.status.fetchUpdated=!0),this.set(e,b,l.options))),b},c=b=>(o.status&&(o.status.fetchRejected=!0,o.status.fetchError=b),d(b)),d=b=>{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=!0),_.__staleWhileFetching;if(_.__returned===_)throw b},m=(b,f)=>{let g=this.#T?.(e,n,l);g&&g instanceof Promise&&g.then(v=>b(v===void 0?void 0:v),f),i.signal.addEventListener("abort",()=>{(!o.ignoreFetchAbort||o.allowStaleOnFetchAbort)&&(b(void 0),o.allowStaleOnFetchAbort&&(b=v=>p(v,!0)));});};o.status&&(o.status.fetchDispatched=!0);let u=new Promise(m).then(p,c),y=Object.assign(u,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,y,{...l.options,status:void 0}),t=this.#o.get(e)):this.#e[t]=y,y}#t(e){if(!this.#k)return !1;let t=e;return !!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof va}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:y=this.allowStaleOnFetchAbort,context:b,forceRefresh:f=!1,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:y,ignoreFetchAbort:u,status:g,signal:v},_=this.#o.get(e);if(_===void 0){g&&(g.fetch="miss");let C=this.#M(e,_,h,b);return C.__returned=C}else {let C=this.#e[_];if(this.#t(C)){let T=o&&C.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",T&&(g.returnedStale=!0)),T?C.__staleWhileFetching:C.__returned=C}let P=this.#f(_);if(!f&&!P)return g&&(g.fetch="hit"),this.#R(_),a&&this.#S(_),g&&this.#w(g,_),C;let w=this.#M(e,_,h,b),k=w.__staleWhileFetching!==void 0&&o;return g&&(g.fetch=P?"stale":"refresh",k&&P&&(g.returnedStale=!0)),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.#N;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=!0),o?l.__staleWhileFetching:void 0):(n||this.#P(e,"expire"),i&&o&&(i.returnedStale=!0),o?l:void 0)):(i&&(i.get="hit"),p?l.__staleWhileFetching:(this.#R(s),a&&this.#S(s),l))}else i&&(i.get="miss");}#j(e,t){this.#u[t]=e,this.#p[e]=t;}#R(e){e!==this.#n&&(e===this.#s?this.#s=this.#p[e]:this.#j(this.#u[e],this.#p[e]),this.#j(this.#n,e),this.#n=e);}delete(e){return this.#P(e,"delete")}#P(e,t){let o=!1;if(this.#a!==0){let a=this.#o.get(e);if(a!==void 0)if(o=!0,this.#a===1)this.#F(t);else {this.#I(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.#x({allowStale:!0})){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);}}};zn(ei());zn(Oc());var jc=new Set,Fc=[],yi=[],V6={appendCss:r=>{yi.push(r);},registerClassName:r=>{jc.add(r);},registerComposition:r=>{Fc.push(r);},markCompositionUsed:()=>{},onEndFileScope:r=>{var e=Tc({localClassNames:Array.from(jc),composedClassLists:Fc,cssObjs:yi}).join(`
|
|
40
|
-
`);sc({fileScope:r,css:e}),yi=[];},getIdentOption:()=>process.env.NODE_ENV==="production"?"short":"debug"};typeof window<"u"&&uc(V6);var Hc=(r,e)=>{for(var t=e-1;t>=0;){if(r[t]==="/")return t;t--;}return -1},$6=r=>{var e,t=r.lastIndexOf(".css");if(t===-1)return "";var o=Hc(r,t);if(e=r.slice(o+1,t),o===-1)return e;var a=Hc(r,o-1),n=r.slice(a+1,o),i=e!=="index"?e:n;return i},U6=()=>{var r=new ha({max:500});return e=>{var t=r.get(e);if(t)return t;var o=$6(e);return r.set(e,o),o}};U6();function q6(r){if(typeof r!="string"||!/^var\(--.*\)$/.test(r))throw new Error("Invalid variable name: ".concat(r))}function Vc(){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):(q6(a),r=a.replace(/\)$/,", ".concat(r,")")));}),r}function Wc(r,e,t){let[o,a]=bt.useState({}),n=bt.useRef(!1),[i,s]=bt.useState(null),{container:l,shouldContainOverlays:p,isContainerPositioned:c}=bt.useContext(vt);bt.useEffect(()=>{if(!r||!t)return;let u=te(r),y=u.visualViewport,b=()=>{let f=y?.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}, ${Vc(ea,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 b(),y?.addEventListener("resize",b),u.addEventListener("resize",b),()=>{y?.removeEventListener("resize",b),u.removeEventListener("resize",b);}},[r,e,p,t]),bt.useEffect(()=>{if(!l||!p||c)return;let u=()=>{l&&s(utils.getAbsoluteBounds(l));};u();let y=new ResizeObserver(()=>{u();});return y.observe(l),()=>{y.disconnect();}},[l,p,c]);let d=bt.useMemo(()=>({...o,overflow:"auto",position:"relative"}),[o]),m=bt.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 gi=bt__default.default.createContext({isDrawer:!1,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:!1}),vi=bt__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),He=({children:r,className:e,style:t,isDismissable:o=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":l,"data-block-class":p,shouldCloseOnInteractOutside:c})=>{let{state:d}=bt__default.default.useContext(ht),[m,u]=bt__default.default.useState(!0),y=bt__default.default.useRef(null),[b,f]=bt__default.default.useState(null),{shouldHandleVirtualKeyboard:g}=bt.useContext($t),{shouldContainOverlays:v,container:h}=bt.useContext(vt),_=Ee(),C=typeof s=="boolean"&&s||s==="auto"&&_==="mobile";utils.invariant(d,"ModalContent must be a child of Modal");let P=bt__default.default.useRef(null),w=typeof o=="function"?o(C):o,z=typeof a=="function"?a(C):a,{modalProps:k,underlayProps:T}=reactAria.useModalOverlay({isDismissable:m&&w,shouldCloseOnInteractOutside:O=>!h?.contains(O)&&v?!1:c?.(O)??!0,isKeyboardDismissDisabled:z},d,P),{dialogStyle:R,containerStyle:N}=Wc(b,C,g),S=bt.useMemo(()=>({isDrawer:C,closeDrawer:d.close,dialogStyle:R,dialogRef:y,setDialogElement:f,isWithinModal:!0}),[C,d.close,R,y,f]),I=bt.useMemo(()=>({setIsPopoverSafelyClosed:u}),[u]),M={duration:.3,type:"tween",ease:"easeOut"},D={type:"spring",duration:.3},j={open:{opacity:1,transform:C?"translateY(0%)":"scale(1)"},closed:i?{opacity:1,transform:C?"translateY(0%)":"scale(1)"}:{opacity:0,transform:C?"translateY(100%)":"scale(0.95)"}};return jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:d.isOpen?jsxRuntime.jsx(gi.Provider,{value:S,children:jsxRuntime.jsx(vi.Provider,{value:I,children:jsxRuntime.jsxs(be,{className:utils.classNames(ac({enableDrawer:C,shouldContainOverlays:v}),e),"data-block-id":l,"data-block-class":p,style:{...t,...N},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:M,className:utils.classNames(nc({shouldContainOverlays:v}),"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(react.motion.div,{...k,ref:P,"data-drawer":C,className:utils.classNames(C?rc:oc,"BaselineUI-Modal-Content"),variants:j,transition:C?M:D,initial:"closed",animate:"open",exit:"closed",children:typeof r=="function"?r(d):r})]})})}):null})};var Jc=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 _i=bt__default.default.createContext({titleProps:{}}),ve=bt__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=bt__default.default.useRef(null),m=bt__default.default.useRef(null),{isDrawer:u,closeDrawer:y,dialogStyle:b,setDialogElement:f,isWithinModal:g}=bt.useContext(gi),[v,h]=bt__default.default.useState(""),{focusProps:_,isFocusVisible:C}=reactAria.useFocusRing();bt.useLayoutEffect(()=>{let k=m.current?.getRootNode(),T=p["aria-label"]||"";p["aria-labelledby"]&&(T=k?.querySelector(`#${p["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),h(T);},[p]);let{dialogProps:P,titleProps:w}=reactAria.useDialog(p,d),z=bt.useMemo(()=>({titleProps:w}),[w]);return u&&o?jsxRuntime.jsx(da,{title:v,onCloseRequest:y,className:e,style:b,...p,"data-drawer":!0,"data-block-id":i,"data-block-class":s,ref:L(m,c,k=>{f(k);}),background:l,children:r}):jsxRuntime.jsx(_i.Provider,{value:z,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(P,_),"data-block-id":i,"data-block-class":s,"data-focus-visible":C,"data-overlay-type":g?"modal":"popover",ref:L(d,c,k=>{f(k);}),style:{...b,...t},className:utils.classNames(Jc({size:u?"content":a,variant:n,isDrawer:u,isFocusVisible:C,overlayType:g?"modal":"popover"}),"BaselineUI-Dialog",e),children:r})})});ve.displayName="Dialog";var Qc=bt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{titleProps:a}=bt.useContext(_i);return bt__default.default.isValidElement(r)?bt__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})});Qc.displayName="DialogTitle";var td=({children:r,isOpen:e,popoverContentRef:t,portalContainer:o=document.body,style:a})=>{let[n,i]=bt.useState(!1),[s,l]=bt.useState(null),p=bt.useRef(null),{setIsPopoverSafelyClosed:c}=bt.useContext(vi);bt.useEffect(()=>{e?(i(!0),p.current&&clearTimeout(p.current)):p.current=setTimeout(()=>{i(!1);},300);},[e]),bt.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]);let d=t.current;return bt.useEffect(()=>{d&&l(d.getBoundingClientRect());},[d]),bt.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?uz__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),o):null,r]})};var{color:Qt}=tokens.themeVars,Ce=bt__default.default.forwardRef(({portalClassName:r,portalStyle:e,className:t,style:o,state:a,overlayProps:n,underlayClassName:i,children:s,includeArrow:l=!1,offset:p=2,portalContainer:c,contentContainerClassName:d,contentContainerStyle:m,"data-block-id":u,"data-block-class":y,...b},f)=>{let g=bt__default.default.useRef(null),v=ye(c),h=l?8:0,{underlayProps:_,popoverProps:C,placement:P,arrowProps:w}=reactAria.usePopover({...b,offset:p+h,popoverRef:g,containerPadding:b.containerPadding||0},a);delete C.style?.position;let z=P==="center"?"bottom":P,k=bt.useMemo(()=>({isOpen:a.isOpen}),[a.isOpen]),{transitionProps:T}=Jo({placement:P}),R=bt.useMemo(()=>({...C.style,...dynamic.assignInlineVars({[Ql]:`${b.triggerRef?.current?.offsetWidth}px`}),...Dn(o,k)}),[C.style,b.triggerRef,o,k]);return jsxRuntime.jsx(td,{isOpen:a.isOpen,popoverContentRef:g,portalContainer:v,style:C.style,children:a.isOpen?jsxRuntime.jsxs(be,{portalContainer:v,style:e,className:r,ref:f,"data-block-id":u,"data-block-class":y,children:[!b.isNonModal&&jsxRuntime.jsx("div",{..._,className:utils.classNames(Jl,Oo(i,k),"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(react.motion.div,{...reactAria.mergeProps(C,T),style:R,ref:L(g,f),className:utils.classNames(Xl,"BaselineUI-Popover-ContentContainer",Oo(t,k)),"data-placement":["top","bottom","left","right"].filter(N=>P?.includes(N)),children:[l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("svg",{className:utils.classNames(Gl({placement:z}),"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:Qt.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Qt.background.primary.subtle,stroke:Qt.background.primary.subtle})]}),jsxRuntime.jsxs("svg",{className:utils.classNames(Wl({placement:z}),"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:Qt.border.interactive.enabled}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Qt.background.primary.subtle,stroke:Qt.background.primary.subtle})]})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close}),jsxRuntime.jsx("div",{...n,style:Dn(m,k),className:utils.classNames(Yl,Oo(d,k),"BaselineUI-Popover-Content"),children:typeof s=="function"?s(a):s}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:a.close})]})]}):null})});Ce.displayName="PopoverContentCore";var Me=bt__default.default.forwardRef((r,e)=>{let{state:t,overlayTriggerAria:{overlayProps:o},triggerRef:a}=bt.useContext(Lr);return utils.invariant(a),t?jsxRuntime.jsx(Ce,{ref:e,...r,triggerRef:r.triggerRef||a,overlayProps:o,state:t}):null});Me.displayName="PopoverContent";var sd=bt__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=re(c),[m,u]=utils$1.useControlledState(p.value,p.defaultValue||0,t),[y,b]=bt__default.default.useState(!1),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:h=>{(h.key==="Enter"||h.key==="Escape")&&b(!1);}}),g=n(m||0),v=i?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${g}`:g.toString();return jsxRuntime.jsxs(E,{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,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Oe,{type:"dialog",isOpen:y,onOpenChange:b,children:[jsxRuntime.jsx(je,{children:jsxRuntime.jsx(ne,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:l,...i,children:jsxRuntime.jsx(G,{label:g,variant:"popover","aria-label":v,isDisabled:l,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(Me,{placement:"bottom start",...s,children:jsxRuntime.jsx(ve,{size:"content","aria-label":v,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(E,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...f,children:jsxRuntime.jsx(Kt,{...p,onChange:h=>{u(h),t?.(h);},value:m})})})})})]})]})});sd.displayName="IconSlider";var ld=x({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),pd=x({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),cd="bpklwad",dd=x({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ud="bpklwa6",md=x({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var gd=bt__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=bt__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch({...s,children:e},c,p),{isFocusVisible:u,focusProps:y}=reactAria.useFocusRing(),{hoverProps:b,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(ld({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:u,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,b),className:utils.classNames(dd({labelPosition:t}),"BaselineUI-Switch",r),style:a,ref:l,children:[e?jsxRuntime.jsx("span",{className:utils.classNames(cd,"BaselineUI-Switch-Label"),children:e}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,y),ref:p})}),o?jsxRuntime.jsxs("div",{className:md({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",ud),children:c.isSelected?o.on:o.off}),v]}):v]})});gd.displayName="Switch";var vd="_19n40yy9",hd=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 Kz={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Cd=bt__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=bt__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:d}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},p,l),{focusProps:m,isFocusVisible:u,isFocused:y}=reactAria.useFocusRing({within:!0,isTextInput:!0}),b=Kz[e],f=e==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-focused":y,"data-disabled":i.isDisabled,"data-focus-visible":u});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(hd({size:e,isFocused:y,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",r),style:n,ref:s,children:[jsxRuntime.jsx(b,{size:e==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:vd,ref:l}),p.value!==""&&jsxRuntime.jsx(A,{icon:f,...d,size:e==="sm"?"xs":"sm",variant:"secondary"})]})});Cd.displayName="SearchInput";var xd="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 xi=({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:Pd,children:[...r.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(za,{item:i,state:t,showSelectedIcon:e},i.key)))})]})]})};xi.displayName="MenuSection";var za=({item:r,state:e,className:t,showSelectedIcon:o})=>{let a=bt__default.default.useRef(null),n=reactAria.useMenuItem({key:r.key},e,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Nr,{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})};za.displayName="MenuItem";var wi=bt__default.default.forwardRef(({className:r,itemClassName:e,onContentKeyDown:t,...o},a)=>{let n=reactStately.useTreeState(o),i=bt__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(xd,r),ref:L(i,a),children:[...n.collection].map(p=>p.type==="section"?jsxRuntime.jsx(xi,{section:p,state:n,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):jsxRuntime.jsx(za,{item:p,state:n,className:e,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});wi.displayName="MenuContent";var Sd=x({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),at="_1mdhlqvb cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et4",Id=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:!0},"_1mdhlqv7"]]}),Rd="_1yep5z66x _1yep5z66y _1yep5z66z",Td="_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k";var Ca=bt__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(G,{...g,variant:"popover",ref:v}),portalContainer:y,...b},f)=>{let g=bt__default.default.useRef(null),v=ye(y),h=reactStately.useMenuTriggerState({defaultOpen:r,isOpen:t,onOpenChange:e}),{menuTriggerProps:_,menuProps:C}=reactAria.useMenuTrigger({isDisabled:o,type:"menu"},h,g),P=se(),w=bt.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 bt.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(Ce,{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(wi,{className:utils.classNames(at,a),...C,...b,ref:f,autoFocus:h.focusStrategy||"first",children:P})})]})});Ca.displayName="Menu";var xa=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:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var Ld=bt__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=bt__default.default.useRef(null),{linkProps:y,isPressed:b}=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}),C=n,P=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-disabled":d.isDisabled,"data-focused":g,"data-pressed":b,"data-focus-visible":f,"data-hovered":_,role:c,title:p});return jsxRuntime.jsx(C,{...reactAria.mergeProps(y,v,h,P),className:utils.classNames(xa({variant:o,isFocusVisible:f,isHovered:_,isDisabled:d.isDisabled,size:a,isActive:b,type:i}),"BaselineUI-Link",r),ref:L(u,m),style:e,children:t})});Ld.displayName="Link";function Md({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 Ii({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 Dd=x({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),Ad=x({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Bd=x({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Od=x({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Vd=bt__default.default.forwardRef(({className:r,label:e,description:t,icon:o,variant:a="default",...n},i)=>{let s=bt__default.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:c}=Md(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:y,isHovered:b}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(d,y,c),className:utils.classNames(Dd({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:b||u}),r),ref:L(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,l)})}),o?jsxRuntime.jsx(o,{size:20,className:Bd({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Od({disabled:n.isDisabled,hovered:b}),children:e}),t?jsxRuntime.jsx("div",{...p,className:Ad({disabled:n.isDisabled}),children:t}):null]})]})});Vd.displayName="FileUpload";var $d="_12vfhl40 z9nup81",Ud="_12vfhl41 z9nup82",qd=x({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Kd="_12vfhl42",Gd="_12vfhl47",Wd="_12vfhl46 z9nup82",Xd="_12vfhl45",Yd=x({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Zd=bt__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:y=100,value:b=0,label:f}=l,g=(b-u)/(y-u),v=`${Math.round(g*100)}%`,h=jsxRuntime.jsx("output",{className:Yd({hasLabel:!!f}),children:m["aria-valuetext"]}),_=t==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:e,className:utils.classNames($d,"BaselineUI-ProgressBar",r),"data-block-id":i,"data-block-class":s,ref:p,children:[f?jsxRuntime.jsxs("div",{className:Ud,children:[jsxRuntime.jsx("label",{...d,className:Kd,children:f}),o?h:null]}):null,jsxRuntime.jsxs("div",{className:Xd,children:[jsxRuntime.jsxs("div",{className:Wd,children:[jsxRuntime.jsx("div",{className:Gd,children:jsxRuntime.jsx("div",{style:{width:v},className:qd({variant:t})})}),!f&&o?h:null]}),_?jsxRuntime.jsx("div",{className:Ot({hasError:t==="error"}),id:c,children:_}):null]})]})});Zd.displayName="ProgressBar";function rr({isReadOnly:r,validationState:e}){return r?_16.ReadOnlyIcon:e==="error"?_16.ErrorCircleFilledIcon:e==="warning"?_16.WarningFilledIcon:null}var nt=bt__default.default.forwardRef(({className:r,validationState:e,variant:t="primary",style:o,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,"data-block-class":l,...p},c)=>{let d=bt__default.default.useRef(null),{inputProps:m,labelProps:u,descriptionProps:y,errorMessageProps:b,validationErrors:f}=reactAria.useTextField({...p,validationState:e?e==="error"?"invalid":"valid":void 0},d),g=p.errorMessage||f.join(" "),v=Ne({...p,errorMessage:g,descriptionProps:y,errorMessageProps:b,labelPosition:a});g&&(e="error");let{hoverProps:h,isHovered:_}=reactAria.useHover({isDisabled:p.isDisabled}),{isFocused:C,focusProps:P,isFocusVisible:w}=reactAria.useFocusRing(),z=rr({isReadOnly:p.isReadOnly,validationState:e??"valid"}),k=utils.filterTruthyValues({"data-readonly":p.isReadOnly,"data-disabled":p.isDisabled,"data-validation-state":e,"data-focused":C,"data-focus-visible":w});return jsxRuntime.jsxs("div",{className:utils.classNames(et({labelPosition:a}),"BaselineUI-TextInput",r),"data-block-id":s,"data-block-class":l,style:o,ref:c,children:[p.label||a==="start"&&v?jsxRuntime.jsxs("div",{className:Qe({labelPosition:a,hasMessage:!!v}),children:[jsxRuntime.jsx("label",{...u,className:Je,children:p.label}),a==="start"&&v]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Vt]:p.isDisabled}),children:[jsxRuntime.jsxs("div",{...h,className:Ft({validationState:e??"valid",isHovered:_,isFocused:C,variant:t,isReadOnly:!!p.isReadOnly,isDisabled:!!p.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,P,k),className:utils.classNames(Zo({isDisabled:p.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:d}),z?jsxRuntime.jsx(z,{className:jt({validationState:e??"valid",isReadOnly:p.isReadOnly}),size:16}):null]}),a==="top"&&v]})]})});nt.displayName="TextInput";var or=({value:r,...e})=>{let t=reactAria.useNumberFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};or.displayName="NumberFormat";var Qd="_1yep5z6iv _1yep5z6iw _1yep5z6ix",eu=x({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),tu=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:!0,isDisabled:!1,isReadOnly:!1},"_1yep5z61n6"],[{isSelected:!0,isDisabled:!0},"_1yep5z61n6"],[{isSelected:!1,isDisabled:!0},"_1yep5z61n4"]]}),ru=x({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var nu=bt__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:!1},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=bt__default.default.useRef(null),m=reactStately.useToggleState({...s,...p}),{inputProps:u,isPressed:y,isDisabled:b,isReadOnly:f,isSelected:g}=reactAria.useSwitch({...s,...p},m,d),{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing(),{hoverProps:C,isHovered:P}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":h,"data-focus-visible":_,"data-disabled":b,"data-hovered":P,"data-pressed":y,"data-selected":g});return jsxRuntime.jsxs("label",{ref:l,style:t,className:utils.classNames(Qd,"BaselineUI-Reaction",r),...w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...u,...v,ref:d})}),jsxRuntime.jsxs("div",{...C,className:eu({isSelected:g,isFocusVisible:_,isHovered:P,isReadOnly:f,isDisabled:b}),children:[jsxRuntime.jsx("div",{className:ru({isDisabled:b,isReadOnly:f}),children:jsxRuntime.jsx(c,{size:o==="md"?20:16})}),jsxRuntime.jsx("div",{className:tu({isSelected:m.isSelected,isDisabled:b,isReadOnly:f,size:o}),children:jsxRuntime.jsx(or,{value:e})})]})]})});nu.displayName="Reaction";var iu="_1azy5686",su="_1azy5685",lu="var(--_1azy5680)",pu="_1azy5688",cu="_1azy5689",du="_1azy5681 z9nup82",uu="_1azy5682";var mu="_1azy5687";var sx={sm:16,md:20},lx={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},nr=bt__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:!0}),c=sx[t],d=c/2-2,m=2*d*Math.PI,u=lx[t][o==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(du,"BaselineUI-ProgressSpinner",r),ref:s,style:{...dynamic.assignInlineVars({[lu]:`${m}px`}),...e},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...p,className:uu,children:[(o==="active"||o==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:iu,cx:c/2,cy:c/2,r:d}),o==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:su,cx:c/2,cy:c/2,r:d})]}),o==="success"&&jsxRuntime.jsx(u,{className:mu,size:c}),o==="error"&&jsxRuntime.jsx(u,{className:pu,size:c})]}),i.label?jsxRuntime.jsx("span",{...l,className:cu,children:i.label}):null]})});nr.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:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),fu=x({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]});var fx={sm:16,md:20,lg:24},Sa=bt__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:y,uiStateOptions:b}=Wo(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":y,"data-pressed":c,"data-selected":l.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,f),className:utils.classNames(ka({isHovered:y,isFocusVisible:m,isSelected:l.isSelected,size:o,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof r=="function"?r(b):r),style:typeof e=="function"?e(b):e,ref:L(d,s),children:[t?jsxRuntime.jsx(t,{size:fx[o],className:fu({isDisabled:i.isDisabled,isSelected:l.isSelected})}):null,i.label]})});Sa.displayName="ToggleButton";var Ia=x({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),yu=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:[]}),bu=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:!0,isDisabled:!0},"_16vugd0e"]]});var hu=bt__default.default.forwardRef(({className:r,style:e,label:t,labelPosition:o="end","data-block-id":a,"data-block-class":n,...i},s)=>{let l=bt__default.default.useRef(null),p=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:u,isPressed:y,isDisabled:b,isSelected:f,isReadOnly:g}=reactAria.useCheckbox({...i,children:t},p,l),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:b}),_=utils.filterTruthyValues({"data-disabled":b,"data-readonly":g,"data-hovered":h,"data-selected":f,"data-pressed":y,"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(yu({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:bu({isSelected:f&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:b,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:Ia({isDisabled:b}),children:t}):null]})});hu.displayName="Checkbox";var _u={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var zu=x({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),Cu="_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu",xu=x({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),Pu=x({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var $x={style:"decimal"},Ux={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Ru=bt__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(),y=B(_u),b={...d,formatOptions:$x,minValue:t,incrementAriaLabel:a||y.formatMessage("nextPage"),decrementAriaLabel:n||y.formatMessage("prevPage"),defaultValue:o,"aria-label":i||y.formatMessage("goToPage")},f=bt__default.default.useRef(null),g=reactStately.useNumberFieldState({...b,locale:u}),{inputProps:v,decrementButtonProps:h,incrementButtonProps:_,groupProps:C}=reactAria.useNumberField({...b,onKeyDown:j=>{j.key==="Enter"&&f.current?.blur(),d.onKeyDown?.(j);},isDisabled:c},g,f),{hoverProps:P,isHovered:w}=reactAria.useHover({}),{focusProps:z,isFocused:k,isFocusVisible:T}=reactAria.useFocusRing(),R=l==="floating",[N,S]=Ux[s],I=utils.filterTruthyValues({"data-focus-visible":T,"data-focused":k,"data-hovered":w,"data-block-id":d["data-block-id"],"data-block-class":d["data-block-class"]}),D=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(C,P,I),className:utils.classNames(xu({size:s,variant:l}),"BaselineUI-Pagination",r),style:e,ref:m,children:[p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(A,{icon:N,...h,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:D,isDisabled:c||h.isDisabled}),l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:zu({isFocused:k,variant:l,size:s}),"aria-label":y.formatMessage("pageXofY",{arg0:v.value,arg1:g.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,z),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",Cu),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Pu({isDisabled:c}),children:["/ ",jsxRuntime.jsx(or,{value:g.maxValue})]})]}),p?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l==="floating"&&jsxRuntime.jsx(U,{orientation:"vertical"}),jsxRuntime.jsx(A,{icon:S,..._,elementType:"div",size:s,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:D,isDisabled:c||_.isDisabled})]})]})});Ru.displayName="Pagination";var Tu=({date:r,...e})=>{let t=reactAria.useDateFormatter(e);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(r)})};Tu.displayName="DateFormat";var Jr=x({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),Ra=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:!0,isHovered:!0,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1yep5z61np"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1yep5z61nt"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:!0},"_1yep5z61oa"],[{allowsRemoving:!0,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:!0,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),Nu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",Eu="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",Lu=x({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj11"],[{isHovered:!0,variant:"red"},"_1f789qj12"],[{isHovered:!0,variant:"blue"},"_1f789qj13"],[{isHovered:!0,variant:"green"},"_1f789qj14"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj15"]]}),Ta=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 Bu=({item:r,state:e,variant:t="neutral",size:o="md"})=>{let a=bt__default.default.useRef(null),{focusProps:n,isFocusVisible:i}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:l,removeButtonProps:p,allowsRemoving:c,isDisabled:d,isSelected:m,allowsSelection:u}=reactAria.useTag({item:r},e,a),y=bt__default.default.useRef(null),{buttonProps:b}=reactAria.useButton(p,y),{hoverProps:f,isHovered:g}=reactAria.useHover({isDisabled:d}),{hoverProps:v,isHovered:h}=reactAria.useHover({isDisabled:d}),_=r.value?.icon,C=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(Ra({isFocusVisible:i,variant:C,isDisabled:d,allowsRemoving:c,isSelected:m,allowsSelection:u,isHovered:h,size:o}),Ta({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...l,className:Nu,children:[m?jsxRuntime.jsx(w,{size:o==="md"?16:12,className:utils.classNames(Jr({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,!m&&_?jsxRuntime.jsx(_,{size:o==="md"?16:12,className:utils.classNames(Jr({variant:C,isDisabled:d,isSelected:m}),"BaselineUI-Tag-Icon")}):null,jsxRuntime.jsx(E,{paddingY:o==="md"?"sm":"none",typography:o==="sm"?"label.sm.medium":"label.md.medium",children:r.rendered}),c?jsxRuntime.jsx("button",{...reactAria.mergeProps(b,f),className:Lu({variant:C,isHovered:g}),children:jsxRuntime.jsx(P,{size:o==="md"?12:8})}):null]})})};var Fu=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,items:a,size:n="md",...i},s)=>{let l=bt.useMemo(()=>a.map(u=>({...u,data:{variant:u.variant}})),[a]),p=se(),c=bt__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(Eu,"BaselineUI-TagGroup",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,c),children:[...d.collection].map(u=>jsxRuntime.jsx(Bu,{state:d,item:u,variant:i.variant,size:n},u.key))})});Fu.displayName="TagGroup";var Hu="_1yep5z6ln",Vu=x({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),$u=x({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Uu="_1kvz17de",qu="_1yep5z6ev _1yep5z6dy",Ku=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:[]}),Gu="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Wu=x({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Mi=bt__default.default.forwardRef(({children:r,className:e,style:t},o)=>{let{headers:a}=bt.useContext(it),{disabledKeys:n}=bt.useContext(it),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let l=fe(s.target),p=l?Lo(l):Lo(),c=[...a?.keys()||[]].findIndex(b=>a?.get(b)?.current===p),d=a?.get(c||0),m=a?.size||0,u=b=>{let f=a.get(b-1<0?m-1:b-1);n?.has(f?.current?.getAttribute("data-key")||"")?u(b-1):f?.current?.focus();},y=b=>{let f=a.get((b+1)%m);n?.has(f?.current?.getAttribute("data-key")||"")?y(b+1):f?.current?.focus();};if(d)switch(s.key){case"Home":{s.preventDefault(),y(-1);break}case"End":{s.preventDefault(),u(m);break}case"ArrowDown":{s.preventDefault(),y(c);break}case"ArrowUp":{s.preventDefault(),u(c);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...i,style:t,className:utils.classNames(Hu,e),ref:o,children:bt__default.default.Children.map(r,(s,l)=>bt__default.default.cloneElement(s,{index:l}))})});Mi.displayName="AccordionBase";var it=bt__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Zu=bt__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]=bt__default.default.useState(t),d=bt__default.default.useRef(new Map).current,[m,u]=bt__default.default.useState(a);bt.useEffect(()=>{u(a);},[a]),bt.useEffect(()=>{n?.(p);},[p,n]);let y=bt.useMemo(()=>({expandedKeys:o||p,setExpandedKeys:o?()=>{}:c,disabledKeys:e,headers:d,expansionMode:m}),[o,p,e,d,m]);return jsxRuntime.jsx(it.Provider,{value:y,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Mi,{className:i,style:s,ref:l,children:r})})})});Zu.displayName="Accordion";var Ai=bt__default.default.forwardRef(({title:r,actions:e,controlId:t,value:o,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},l)=>{let p=bt__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:d,expansionMode:m,disabledKeys:u,headers:y}=bt.useContext(it),b=u?.has(o),f=reactAria.useFocusManager();utils.invariant(f);let{focusNext:g,focusPrevious:v}=f,{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:I=>{I.key==="ArrowRight"?g({wrap:!0}):I.key==="ArrowLeft"?v({wrap:!0}):I.continuePropagation();},isDisabled:b});bt.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),y?.set(n,p);},[n,y]);let _=()=>{d(I=>{let M=new Set(I);return M.has(o)?M.delete(o):(m==="single"&&M.clear(),M.add(o)),M});},{buttonProps:C}=reactAria.useButton({"aria-expanded":c.has(o),"aria-controls":t,onPress:_,isDisabled:b},p),{pressProps:P}=reactAria.usePress({onPress:_,isDisabled:b}),{focusProps:w,isFocusVisible:z}=reactAria.useFocusRing(),{hoverProps:k,isHovered:T}=reactAria.useHover({isDisabled:b}),{focusProps:R,isFocusVisible:N}=reactAria.useFocusRing({within:!0}),S=c.has(o);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(h,P,k,R),className:Ku({isFocusVisible:z,isHovered:T,isDisabled:b}),ref:l,children:[jsxRuntime.jsxs("div",{className:Wu({isDisabled:!!b}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:$u({isExpanded:S}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(C,w),id:a,"data-key":o,className:Gu,ref:p,children:r})]}),e?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Vu({showActionsOnTriggerOnly:s,isTriggered:N||T}),children:e.map((I,M)=>jsxRuntime.jsx(A,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...I},M))}):null,i?jsxRuntime.jsx("div",{className:qu,children:i}):null]})});Ai.displayName="AccordionHeader";var am=bt__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}=bt.useContext(it),u=m.has(o);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ai,{value:o,actions:e,id:d,title:r,controlId:c,ref:p,index:a,subLabel:n,showActionsOnTriggerOnly:l})}),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:u?jsxRuntime.jsx(react.motion.section,{role:"region","aria-labelledby":d,id:c,className:Uu,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})]})});am.displayName="AccordionItem";var ro=bt__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=bt__default.default.useRef(null),{buttonProps:u,isPressed:y}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:b,isHovered:f}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:g,isFocused:v,isFocusVisible:h}=reactAria.useFocusRing(),_=rr({isReadOnly:c.isReadOnly,validationState:o});c.isReadOnly&&(u.disabled=!1);let C=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":v,"data-focus-visible":h,"data-hovered":f,"data-pressed":y,"data-open":e,"data-block-id":l,"data-block-class":p});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(u,b,g,C),ref:L(d,m),className:utils.classNames(Id({isFocused:h,isDisabled:c.isDisabled,isOpen:e,isHovered:f,variant:r}),Ft({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:Td,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),_?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(jt({validationState:o,isReadOnly:!!c.isReadOnly}),Rd),children:jsxRuntime.jsx(_,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Sd({isOpen:e})})})]})});ro.displayName="SelectButton";var Na=bt__default.default.createContext({state:null,popoverAnchorRef:null}),Oi=bt__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:b,selectedValue:f,valueProps:g,isOpen:v,ref:h})=>{let _=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(ro,{...b,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},y)=>{let{popoverAnchorRef:b}=bt.useContext(Na),f=bt__default.default.useRef(null),g=ye(u.portalContainer),{labelProps:v,triggerProps:h,valueProps:_,menuProps:C,descriptionProps:P,errorMessageProps:w}=reactAria.useSelect({...u,validationState:u.validationState==="error"?"invalid":"valid"},d,f),z=Ne({...u,descriptionProps:P,errorMessageProps:w,labelPosition:t}),k=d.selectedItem?.value??null;return jsxRuntime.jsxs(gt.Provider,{value:d,children:[jsxRuntime.jsxs("div",{style:e,className:utils.classNames(et({labelPosition:t}),"BaselineUI-Select",r),"data-block-id":a,"data-block-class":n,ref:y,children:[u.label||z?jsxRuntime.jsxs("div",{className:Qe({labelPosition:t,hasMessage:!!z}),children:[u.label?jsxRuntime.jsx("div",{...v,className:utils.classNames(Je,"BaselineUI-Select-Label"),children:u.label}):null,t==="start"&&z]}):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"&&z]}),d?jsxRuntime.jsx(Ce,{placement:l,portalContainer:g,offset:2,state:d,triggerRef:b||f,style:e,className:"BaselineUI-Select-Popover",...u,children:jsxRuntime.jsx(de,{...C,label:u.label,items:u.items,showSelectedIcon:u.showSelectedIcon,className:at,optionStyle:i,optionClassName:s})}):null]})});Oi.displayName="SelectCore";var cm=bt__default.default.forwardRef((r,e)=>{let t=se(),o=reactStately.useSelectState({...r,validationState:r.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(Oi,{...r,ref:e,state:o})});cm.displayName="SelectStandalone";var lt=bt__default.default.forwardRef((r,e)=>{let{state:t}=bt.useContext(Na);return bt.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(Oi,{state:t,...r,ref:e}):jsxRuntime.jsx(cm,{...r,ref:e})});lt.displayName="Select";var um=bt__default.default.forwardRef(({className:r,style:e,variant:t,"data-block-id":o,icon:a,tooltipProps:n,...i},s)=>{let l=bt__default.default.useRef(null),p=bt.useCallback(({buttonProps:c,selectedValue:d,valueProps:m,isOpen:u,ref:y})=>{let b=d&&"icon"in d&&d.icon;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(ro,{...c,isOpen:u,isReadOnly:i.isReadOnly,ref:y,variant:t,validationState:i.validationState,selectedIcon:b||void 0,label:d?"label"in d&&d?.label:i.placeholder,valueProps:m})})},[i,n,t]);return jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",r),"data-block-id":o,style:e,ref:L(s,l),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(lt,{...i,renderTrigger:p})]})});um.displayName="IconSelect";var mm="_1017q4c5",fm=x({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),ym="_1017q4c4";var q0={sm:_16.AvatarIcon,md:_24.AvatarIcon},pr=bt__default.default.forwardRef(({className:r,style:e,size:t="md",icon:o=q0[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}=Ht({src:n,alt:a}),y=a?.split(" ").map(b=>b[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(fm({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:ym}):null,!i&&!n&&jsxRuntime.jsx(o,{size:t==="sm"?16:24}),i&&!n?t==="sm"?y[0]:y:null,l?jsxRuntime.jsx("div",{"data-testid":"notification",className:mm}):null]})});pr.displayName="Avatar";var bm="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",gm=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:!0,isDisabled:!1},"_1yep5z61n0"],[{variant:"primary",isSelected:!0},"_1yep5z61o7"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61n7"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61o8"]]}),vm=x({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),hm="_1x62fhbl",Fi=x({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61nb"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ng"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61nd"]]}),_m="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",zm=x({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Cm=({state:r,...e})=>{let t=bt__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({[_m]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":p,style:l,children:a?.props.children})};var $i=bt__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=bt__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(zm({variant:a}),o),style:t,children:[jsxRuntime.jsx("div",{...m,className:vm({variant:a}),ref:d,children:[...c.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(Pm,{item:u,state:c,onRemove:i,variant:a},u.key)))}),n?.map((u,y)=>jsxRuntime.jsx("div",{className:bm,children:jsxRuntime.jsx(A,{...u,variant:"secondary",size:"sm",className:utils.classNames(hm,u.className)})},y))]}),jsxRuntime.jsx(Cm,{state:c},c.selectedItem?.key)]})});$i.displayName="TabsBase";var Pm=({item:r,onRemove:e,state:t,variant:o})=>{let{key:a,value:n}=r,i=bt__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:y,titleClassName:b}=n,{focusProps:f,isFocusVisible:g,isFocused:v}=reactAria.useFocusRing(),{keyboardProps:h}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="Backspace"&&e?e(a):C.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(gm({isHovered:d,isSelected:l,isFocusVisible:g,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",b),style:y,ref:i,children:[u?jsxRuntime.jsx(u,{size:20,className:Fi({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null,m,e?jsxRuntime.jsx(A,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{e(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:l||v||d?1:0},className:Fi({isHovered:d,isSelected:l,isDisabled:p,variant:o})}):null]})};Pm.displayName="TabButton";var km=bt__default.default.forwardRef(function({children:e,...t},o){let a=bt.useMemo(()=>bt__default.default.Children.map(e,n=>!n||!bt__default.default.isValidElement(n)||typeof n.type=="string"?null:{...n.props,id:n.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx($i,{...t,ref:o,items:a,children:n=>jsxRuntime.jsx(reactStately.Item,{title:n.title,children:n.children},n.key)})});km.displayName="Tabs";var Sm=({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);Sm.displayName="TabItem";var Im={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 Rm=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:[]}),Tm=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:!1,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:!0,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:!0,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),Nm=x({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Em=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:[]}),Lm=x({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Mm=x({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Dm=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 CP={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}},Da=bt__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 y=B(Im),b=t&&jsxRuntime.jsx(G,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:o}),f=CP[n][p];return jsxRuntime.jsxs("div",{className:utils.classNames(Tm({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:Dm({arrangement:s}),children:[jsxRuntime.jsx(f,{className:Lm({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:Rm({arrangement:s}),...m?.content,children:[jsxRuntime.jsx("h3",{className:Mm({size:p}),...m?.title,children:i}),jsxRuntime.jsx("section",{className:Nm({size:p}),...m?.description,children:e})]}),s==="compact"&&b]}),jsxRuntime.jsxs("div",{className:Em({arrangement:s}),children:[s!=="compact"&&b,l?jsxRuntime.jsx(A,{variant:"secondary",icon:_16.XIcon,size:"sm",onPress:l,"aria-label":y.formatMessage("close"),...m?.close}):null]})]})});Da.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 Aa=({children:r})=>{let{triggerProps:e}=bt__default.default.useContext(ht);return jsxRuntime.jsx(interactions.PressResponder,{...e,children:r})};Aa.displayName="ModalTrigger";var RP=({children:r})=>{let{state:e}=bt__default.default.useContext(ht);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{e?.close();},children:r})};var Am="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln",Bm="_1dbkl5e",Om=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:[]}),jm="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",Fm=x({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Ba="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",Hm="_1dbkl5f z9nup87",Oa="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",Vm="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",$m="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl",ja=x({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),Ki="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",Um=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:!0,isFocused:!1},"_1yep5z61pb"]]}),qm=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:[]}),no="_1dbkl5u",Fa="_1dbkl5g",Ha="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",Gi="_1dbkl5x",Km="_1dbkl5w",Wi="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",Va=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:[]}),Xi="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii";var Gm=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:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:!0,isDisabled:!0},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:!0,isSelected:!1},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),Wm="_1344e9q9 _1yep5z6fl";var ct=bt__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!==De&&(typeof r=="string"?color.parseColor(r):r),{formatMessage:y}=B(),b=!u,{colorSwatchProps:f}=color$1.useColorSwatch({color:b?"#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}),_=b?y(Xm.none):f["aria-label"],C=d["aria-label"]??_,{tooltipProps:P}=qo({tooltip:l,label:C}),w=jsxRuntime.jsx("div",{...reactAria.mergeProps(g,h,b?{}:f),style:n,"aria-label":b?y(Xm.none):f["aria-label"],role:"img",className:utils.classNames(Gm({removeBlendMode:b,isFocusVisible:e,isDisabled:!!a,isSelected:!!t,isHovered:v}),"BaselineUI-ColorSwatch",i),ref:m,id:s,...d,children:jsxRuntime.jsx(E,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:u?Ym(u,4):void 0,children:b?jsxRuntime.jsx("div",{className:Wm}):null})});return P&&!a?jsxRuntime.jsx(ne,{...P,children:jsxRuntime.jsx(pa,{children:w})}):w});ct.displayName="ColorSwatch";var Xm=K({none:{id:"none",defaultMessage:"None"}});var Jm=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],lo=color.parseColor("#000000").toFormat("hsla"),pe="hsla",so="hexa";function Ct(r){return typeof r=="string"?color.parseColor(r).toFormat(pe):r?r.toFormat(pe):null}function Qm(r,e){return r?.getChannelValue("alpha")?e?.toString(so)===r.toString(so):!e?.getChannelValue("alpha")}function ef(r,e,t){return e?.label?e.label:r?.getChannelValue("alpha")===0?t:r?.toString("rgba")}var De="NONE";function tf(r,e){let t=e?.map(a=>({id:color.parseColor(a.color).toString(so),label:a.label}))||[],o={id:De,label:r};return [...t,o]}var $a=(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:Vm,children:jsxRuntime.jsx(ct,{color:r.value.id,isFocusVisible:t,isSelected:o,"aria-label":r.value.label,isInteractive:!0})})),Ym=(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 of=({value:r,...e})=>{let t=bt__default.default.useRef(null),o=bt__default.default.useRef(null),a=bt__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);bt.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Am,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...p,className:utils.classNames(Va({isFocusVisible:d}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...p.style,transform:"translate(-50%, -50%)",backgroundColor:Ct(r)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:o,...l,...c})]})})};var sf=({color:r,setColor:e,allowAlpha:t,...o})=>{let a=color.useColorFieldState({value:r,onChange:d=>{e(Ct(d)?.toFormat(pe).withChannelValue("alpha",r.getChannelValue("alpha")??1)||lo);}}),n=bt__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...o,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:l}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:p,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(Ki,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,p),ref:n,className:Um({isFocused:l,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(pf,{color:r,setColor:e}):null]})},lf=({color:r,setColor:e,allowAlpha:t})=>{let o=r.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(Ki,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("red",a),value:o.getChannelValue("red"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("red",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("green",a),value:o.getChannelValue("green"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("green",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("blue",a),value:o.getChannelValue("blue"),showStepper:!1,className:no,onChange:n=>{e(o.withChannelValue("blue",n).toFormat(pe));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(pf,{color:r,setColor:e}):null]})},JP={style:"percent",maximumFractionDigits:0},pf=({color:r,setColor:e})=>{let{locale:t}=reactAria.useLocale(),o=bt.useCallback(a=>{e(r.withChannelValue("alpha",a));},[r,e]);return jsxRuntime.jsx(Fe,{"aria-label":r.getChannelName("alpha",t),value:r.getChannelValue("alpha"),formatOptions:JP,className:no,showStepper:!1,onChange:o,minValue:0,maxValue:1})};var Qi=({channel:r,...e})=>{let{locale:t}=reactAria.useLocale(),o=color.useColorSliderState({...e,channel:r,locale:t}),a=bt__default.default.useRef(null),n=bt__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(Oa,{[Op({size:"xs"})]:r==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":r,...i,ref:a,children:[r==="alpha"&&jsxRuntime.jsx("div",{className:Xi}),jsxRuntime.jsx("div",{className:Oa,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Va({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:Xi,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:Oa}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...l,...p})})]})]})};var Ua=({color:r,setColor:e,allowAlpha:t,onChangeEnd:o})=>{let[a,n]=bt__default.default.useState("hex"),{formatMessage:i}=B(pt);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(of,{value:r,xChannel:"saturation",yChannel:"lightness",onChange:e,onChangeEnd:o}),jsxRuntime.jsxs("div",{className:Wi,children:[jsxRuntime.jsx(Qi,{channel:"hue",value:r,onChange:e,onChangeEnd:o}),t?jsxRuntime.jsx(Qi,{channel:"alpha",value:r,onChange:e,onChangeEnd:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(Wi,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(lt,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Jm,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(sf,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t}),a==="rgb"&&jsxRuntime.jsx(lf,{color:r,setColor:s=>{e(s),o?.(s);},allowAlpha:t})]})]})};var bf=({color:r,setColor:e,storePickedColorKey:t,addColorButtonLabel:o,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:l}=reactAria.useLocale(),{formatMessage:p}=B(pt),c=bt__default.default.useRef(null),d=Ee(c.current),[m,u]=Lp(t,[]),y=bt__default.default.useRef(null),[b,f]=bt__default.default.useState(r),g=bt__default.default.useMemo(()=>m.map(w=>({id:w,label:color.parseColor(w).getColorName(l),description:w})),[m,l]),v=bt.useCallback(()=>{let w=i==="active"?r:b;if(m.includes(w.toString(pe))){y.current?.querySelector(`[data-key='${w.toString(pe)}']`)?.classList.add(Gi);return}u([...m,w.toString(pe)]);},[m,r,u,b,i]);bt.useEffect(()=>{let w=y.current;function z(k){k.animationName===Km&&k.target?.classList.remove(Gi);}return w?.addEventListener("animationend",z),()=>{w?.removeEventListener("animationend",z);}},[]);let h=reactAria.useId(),_=jsxRuntime.jsx(A,{ref:c,variant:"secondary",size:"md","aria-label":o,icon:_20.PlusIcon,onPress:i==="active"?v:void 0}),C=bt.useCallback(w=>jsxRuntime.jsxs(ve,{size:"content",className:ja({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[jsxRuntime.jsx(Ua,{color:b,setColor:f,allowAlpha:s}),jsxRuntime.jsx(U,{}),jsxRuntime.jsx(E,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(E,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(G,{label:p("cancel"),size:"sm",variant:"secondary",onPress:w}),jsxRuntime.jsx(G,{label:p("add"),variant:"primary",onPress:()=>{v(),w();},size:"sm"})]})})]}),[b,v,p,s]),P=bt.useCallback(w=>{utils.invariant(w instanceof Set,"Key must be a set");let z=[...w][0];z&&e(color.parseColor(z).toFormat(pe));},[e]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs("div",{className:utils.classNames($m,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:h,children:n}),jsxRuntime.jsxs(E,{display:"flex",children:[!!m.length&&m.includes(r.toString(pe))&&jsxRuntime.jsx(A,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{u(m.filter(w=>w!==r.toString(pe)));}}),i==="active"&&_,i==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Le,{children:[jsxRuntime.jsx(Aa,{children:_}),jsxRuntime.jsx(He,{style:{zIndex:1e5},children:({close:w})=>C(w)})]}):jsxRuntime.jsxs(Oe,{type:"dialog",children:[jsxRuntime.jsx(je,{children:_}),jsxRuntime.jsx(Me,{placement:"right top",className:Fa,offset:6,children:({close:w})=>C(w)})]}))]})]}),!!m.length&&jsxRuntime.jsx(de,{items:g,layout:"grid","aria-labelledby":h,className:utils.classNames(Ba,Ha,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:$a,ref:y,autoFocus:!1,selectionMode:"single",selectedKeys:[r.toString(pe)],onSelectionChange:P})]})};var rs=bt__default.default.forwardRef(({setColor:r,color:e,triggerRef:t,autoFocus:o,presets:a,state:n},i)=>{let{formatMessage:s}=B(pt),l=bt.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===De?null:color.parseColor(d.id).toFormat(pe)),n.close();}},[n,a,r]);return jsxRuntime.jsx("div",{className:utils.classNames(Ha,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(de,{autoFocus:o,items:a,layout:"grid","aria-label":s("colorPresets"),className:Ba,renderOption:$a,selectionMode:"single",selectedKeys:[e?.toString(so)||De],onSelectionChange:l})})});rs.displayName="ColorPresetList";var co=bt__default.default.forwardRef(({color:r,colorLabel:e,colorName:t,...o},a)=>{let n=bt__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=Eo(),y=Eo();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,i,d,m),style:o.style,className:utils.classNames(Om({isHovered:s,isFocusVisible:c||o.isOpen,isDisabled:o.isDisabled,labelPosition:o.labelPosition}),"BaselineUI-ColorInputButton",o.className),ref:L(a,n),id:u,"aria-labelledby":o["aria-labelledby"]||`${u} ${y}`,children:[jsxRuntime.jsx(ct,{color:r?.toString("hexa")}),e?jsxRuntime.jsx("div",{className:Hm,id:y,"aria-hidden":"true",children:t}):typeof t=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});co.displayName="ColorInputButton";var Ga=bt__default.default.forwardRef(({className:r,style:e,icon:t,...o},a)=>{let n=bt__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:L(a,n),style:e,className:utils.classNames(qm({isHovered:s||p||o.isOpen,isFocusVisible:c,isDisabled:o.isDisabled}),"BaselineUI-IconColorInputButton",r),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:Bm,style:{backgroundColor:o.color||void 0}})]})});Ga.displayName="IconColorInputButton";function wf({colorLabel:r,color:e,presets:t}){let{formatMessage:o}=B(),{locale:a}=reactAria.useLocale(),n=bt.useMemo(()=>t.find(l=>l.id===De?!e:e?Qm(e,color.parseColor(l.id)):!1),[t,e]),i=bt.useMemo(()=>typeof r=="function"?r?.(e):r?ef(e,n,o(Pw.transparent)):!1,[e,r,o,n]),s=bt.useMemo(()=>{if(n?.label)return n.label;e?.getColorName(a);},[e,a,n?.label]);return {colorName:i,humanReadableName:s}}var Pw=K({transparent:{defaultMessage:"Transparent",id:"transparent"}});var ur=bt__default.default.forwardRef(({className:r,style:e,allowRemoval:t,allowAlpha:o=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:l,onChangeEnd:p,defaultValue:c,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:u,removeColorButtonLabel:y,customColorsLabel:b,renderTriggerButton:f=({isOpen:z,color:k,ref:T,colorName:R,triggerProps:N,labelId:S})=>jsxRuntime.jsx(co,{...reactAria.mergeProps(N,{...P.label?{"aria-labelledby":S}:{"aria-label":P["aria-label"]}}),ref:T,isOpen:z,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":C,...P},w)=>{let z=bt__default.default.useRef(null),k=bt__default.default.useRef(null),T=reactStately.useOverlayTriggerState(P),{triggerProps:R,overlayProps:N}=reactAria.useOverlayTrigger({type:"listbox"},T,z),S=ye(P.portalContainer),[I,M]=utils$1.useControlledState(m===void 0?void 0:Ct(m),Ct(c),X=>l?.(X?.toFormat("rgba")||null)),{formatMessage:D}=B(pt),j=bt.useMemo(()=>tf(D(Wa.noColor),a),[a,D]),O=reactAria.useId(),{colorName:V}=wf({colorLabel:i,color:I,presets:j}),$=bt.useMemo(()=>j.filter(X=>t||X.id!==De),[j,t]),F=u||D(Wa.addColor),ee=y||D(Wa.removeColor),H=b||D(Wa.customColors),Z=jsxRuntime.jsx(bf,{color:I||lo,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);},storePickedColorKey:d,addColorButtonLabel:F,removeColorButtonLabel:ee,customColorsLabel:H,pickerMode:g,allowAlpha:o});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[jm]:n==="start"},"BaselineUI-ColorInput-Trigger",r),"data-block-id":_,"data-block-class":C,style:e,ref:w,children:[P.label?jsxRuntime.jsx("label",{id:O,className:Fm({labelPosition:n}),children:P.label}):null,f({isOpen:T.isOpen,color:I,ref:z,colorName:V,triggerProps:R,labelId:O})]}),jsxRuntime.jsx(Ce,{...P,portalContainer:S,placement:h,state:T,offset:v,className:utils.classNames(Fa,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:N,children:jsxRuntime.jsxs(ve,{size:"content",className:ja({includesCustomColorPicker:s}),ref:k,"aria-labelledby":O,"aria-label":P["aria-label"],children:[s&&g==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ua,{color:I||lo,setColor:M,allowAlpha:o,onChangeEnd:X=>{p?.(X?.toFormat("rgba")||null);}}),Z]}):null,!!$.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&g==="active"?jsxRuntime.jsx(U,{}):null,jsxRuntime.jsx(rs,{autoFocus:s&&g==="active"?!1:"first",state:T,triggerRef:z,presets:$,color:I,setColor:X=>{M(X),p?.(X?.toFormat("rgba")||null);}})]}),s&&g==="lazy"?Z:null]})})]})});ur.displayName="ColorInput";var Wa=K({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 Rf=bt__default.default.forwardRef(({className:r,style:e,icon:t,variant:o="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let l=bt__default.default.useRef(null),p=bt.useCallback(({isOpen:c,color:d,ref:m,colorName:u,triggerProps:y})=>jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:o==="standard"?jsxRuntime.jsx(co,{...y,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:d,colorLabel:!1,colorName:u}):jsxRuntime.jsx(Ga,{...y,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(E,{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:L(s,l),children:[o==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(ur,{...i,colorLabel:!1,renderTriggerButton:p})]})});Rf.displayName="IconColorInput";var Tf={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=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:!0,hasLoadedImage:!1},"_1yep5z61oh"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61pb"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61o9"]]}),Nf="_1yep5z6d8",Ya=x({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Ef=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:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61oi"],[{isInline:!1,isDisabled:!0},"_1yep5z61ok"]]}),Lf="_1i0ytqa0",Za=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:[]}),Mf=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 Df({line:r,options:e}){let t=bt.useRef([]),o=bt.useMemo(()=>{let a=Math.ceil(r.length/mr),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!t.current[i])){let p=r.slice(i*mr-(i>0?1:0),i*mr+mr);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(p.map(([c,d,m])=>({x:c,y:d,pressure:m})),e)),p.length>=(i>0?mr+1:mr)&&(t.current[i]=n);}return n},[r,e]);return [...t.current,o]}var mr=60*3;var ek={size:1,thinning:0,smoothing:0,streamline:0,easing:r=>r,start:{taper:0,easing:r=>r,cap:!0},end:{taper:0,easing:r=>r,cap:!0},simulatePressure:!1},Bf=bt__default.default.forwardRef(({className:r,style:e,canvasClassName:t,canvasStyle:o,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:l,onChangeEnd:p,enableHistory:c=!1,isInline:d=!0,isDisabled:m,placeholder:u,clearLabel:y,undoLabel:b,redoLabel:f,footerClassName:g,canvasRef:v,value:h,footerStyle:_,"data-block-id":C,"data-block-class":P,"aria-label":w="Drawing canvas",description:z="This is a canvas for drawing using a mouse or touch input.",...k},T)=>{let R=B(Tf),N=bt__default.default.useRef(null),[S,I]=bt__default.default.useState(h||l||[]),M=bt__default.default.useMemo(()=>({...ek,...k}),[k]),[D,j]=bt__default.default.useState(),O=reactAria.useId(),{labelProps:V,fieldProps:$}=reactAria.useLabel({...k,"aria-label":w,labelElementType:"span"}),{isFocusVisible:F,focusProps:ee}=reactAria.useFocusRing({within:!0}),{hoverProps:H,isHovered:Z}=reactAria.useHover({isDisabled:m}),{undo:X,redo:Re,canRedo:Te,canUndo:_e,push:Ae}=wp(S,{onAction:Y=>{Y&&(I(Y),p?.(Y));},isDisabled:!c}),{keyboardProps:Ge}=reactAria.useKeyboard({onKeyDown:Y=>{Y.key==="Backspace"?Dt():Y.key==="z"&&(Y.metaKey||Y.ctrlKey)&&(Y.shiftKey?Te&&Re():_e&&X());}}),[ae,me]=bt.useState(!1),Lt=bt.useCallback(Y=>{let q=Y.currentTarget.getBoundingClientRect();j(q),Y.target.setPointerCapture(Y.pointerId);let le=[Y.clientX-q.x,Y.clientY-q.y,Y.pressure];I(W=>[...W,[le]]),me(!0);},[]),Mt=bt.useCallback(Y=>{if(Y.buttons!==1||!D)return;let le=Ff(Y.nativeEvent).map(W=>[a?utils$1.clamp(W.clientX-D.left,0,D.width):W.clientX-D.left,a?utils$1.clamp(W.clientY-D.top,0,D.height):W.clientY-D.top,W.pressure]);I(W=>{let ke=[...W];return ke[W.length-1]=[...ke[W.length-1],...le],ke});},[D,a]),Sr=()=>{D&&(p?.(S),Ae(S),me(!1));};bt.useEffect(()=>{s?.(S);},[S,s]);let Dt=()=>{I([]),s?.([]),Ae([]);};return jsxRuntime.jsxs("div",{ref:L(N,T),className:utils.classNames(Lf,"BaselineUI-FreehandCanvas",r),style:e,"aria-disabled":m,"data-block-id":C,"data-block-class":P,children:[k.label||c?jsxRuntime.jsxs("div",{className:Mf({isInline:d}),children:[k.label?jsxRuntime.jsx(J,{type:"label",size:"sm",...V,children:k.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(A,{variant:"secondary",size:"sm",isDisabled:!_e||m,icon:_16.UndoIcon,onPress:X,"aria-label":b||R.formatMessage("undo")}),jsxRuntime.jsx(A,{variant:"secondary",size:"sm",isDisabled:!Te||m,icon:_16.RedoIcon,onPress:Re,"aria-label":f||R.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(ee,Ge,H,$),tabIndex:m?void 0:0,className:utils.classNames(Xa({isInline:d,isHovered:Z}),Ef({isFocusVisible:F,isInline:d,isDisabled:!!m}),t),"aria-describedby":k["aria-describedby"]||O,style:o,ref:v,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:O,children:z})}),jsxRuntime.jsx("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Lt,onPointerMove:Mt,onPointerUp:Sr,children:(h||S).map((Y,q,le)=>q<le.length-1||!ae?jsxRuntime.jsx(Of,{line:Y,options:M,strokeColor:i,strokeWidth:n},q):jsxRuntime.jsx(jf,{line:Y,options:M,strokeColor:i,strokeWidth:n},q))})]}),u||y?jsxRuntime.jsx("div",{style:_,className:utils.classNames(Za({isInline:d,isDisabled:m}),g),children:(S.length||!u)&&y?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:Dt}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});Bf.displayName="FreehandCanvas";var Of=bt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=bt.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})});Of.displayName="Stroke";var jf=bt__default.default.memo(({line:r,options:e,strokeColor:t,strokeWidth:o})=>{let a=Df({line:r,options:e});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:o},i))})});jf.displayName="SplitStroke";function Ff(r){if(typeof r.getCoalescedEvents=="function"){let e=r.getCoalescedEvents();return e.length>0?e.flatMap(t=>Ff(t)):[r]}return [r]}var Hf="_1vac7ws0",Vf=x({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Uf(r,e){let[t,o]=bt.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 qf(r){let{scrollable:e,ownerDocument:t,onScroll:o}=r;bt.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 gk=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Gf=bt__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:y,onResize:b,onRotateStart:f,onRotateEnd:g,onRotate:v,onSnap:h,isSnappable:_,elementGuidelines:C,hideAnchorOnDrag:P=!0,title:w,rotationPosition:z,autoUpdate:k,bound:T,snapRotationDegrees:R,snapRotationThreshold:N,scrollableAncestor:S,renderDirections:I,stopPropagation:M,transformOrigin:D,preventDefault:j},O)=>{let V=bt.useRef(null),$=bt.useRef(null),[F,ee]=bt.useState(document),H=bt.useRef(F.createElement("div")),[Z,X]=bt.useState({}),[Re,Te]=bt.useState(!1),[_e,Ae]=bt.useState(!1),[Ge,ae]=bt.useState(),me=Uf(C,F);bt.useLayoutEffect(()=>{let q=H.current;return H.current=F.createElement("div"),()=>{q.remove();}},[F]);let{keyboardProps:Lt}=reactAria.useKeyboard({onKeyDown:q=>{let le=q.shiftKey?10:1,W=q.metaKey||q.ctrlKey;W&&q.shiftKey&&(le=45);function ke(Ir,vg="x"){W?$.current?.request("rotatable",{deltaRotate:Ir*le},!0):$.current?.request("draggable",vg==="x"?{deltaX:Ir*le}:{deltaY:Ir*le},!0);}switch(q.key){case"ArrowRight":{ke(1);break}case"ArrowLeft":{ke(-1);break}case"ArrowUp":{ke(-1,"y");break}case"ArrowDown":ke(1,"y");}requestAnimationFrame(()=>{$.current?.updateRect();});}});bt.useEffect(()=>{let q=fe(V.current);ee(q);let le=H.current;q.body.append(H.current);function W(Ir){Ae(Ir.shiftKey);}function ke(){Ae(!1);}return q.addEventListener("keydown",W),q.addEventListener("keyup",ke),()=>{q.removeEventListener("keydown",W),q.removeEventListener("keyup",ke),le.remove();}},[]),qf({scrollable:S,onScroll:()=>{$.current?.updateRect();},ownerDocument:F});let Mt=bt.useCallback(q=>{X(le=>({...le,...q.style})),i?.(q);},[i]),Sr=bt.useCallback(q=>{if(Te(!0),V.current?.focus(),T){let W=utils.getHTMLElement(T,F)?.getBoundingClientRect();ae({position:"client",left:W?.left??0,top:W?.top??0,right:W?.right??0,bottom:W?.bottom??0});}c?.(q);},[T,F,c]),Dt=bt.useCallback(q=>{Te(!1),d?.(q);},[d]),Y=e({style:{...Z.width&&{width:Z.width},...Z.height&&{height:Z.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Lt,ref:L(V,O),style:{display:"inline-block",...n,...Z},className:utils.classNames(Hf,r),onDoubleClick:p,tabIndex:0,title:w,children:Y}),uz.createPortal(jsxRuntime.jsx(gk,{ref:$,target:V,draggable:a,resizable:o,rotatable:t,keepRatio:_e,throttleDrag:1,snappable:_||!!T,elementGuidelines:me,snapRenderThreshold:.9,className:Vf({isDragging:Re&&P}),onRender:Mt,onDragStart:Sr,onDragEnd:Dt,useResizeObserver:k,useMutationObserver:k,onRenderEnd:l,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:b,onRotateStart:f,onRotateEnd:g,onRotate:v,onRenderStart:s,onSnap:h,rotationPosition:z,bounds:Ge,snapRotationDegrees:R,snapRotationThreshold:N,renderDirections:I,stopPropagation:M,preventDefault:j,transformOrigin:D}),H.current)]})});Gf.displayName="Transform";var Wf={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 Zf=bt__default.default.forwardRef(({className:r,style:e,isInline:t=!0,accept:o="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:l,onDrop:p,onPaste:c,includeCheckeredBackground:d=!0,"data-block-id":m,"data-block-class":u,pickerButtonStyle:y,pickerButtonClassName:b,footerClassName:f,footerStyle:g,clearLabel:v,placeholder:h,labelStyle:_,labelClassName:C,...P},w)=>{let z=bt__default.default.useRef(null),k=bt__default.default.useRef(null),{formatMessage:T}=B(Wf),[R,N]=utils$1.useControlledState(n,a||null,ae=>{utils.invariant(typeof ae!="string"),P.onValueChange?.(ae?[ae]:[]);}),S=bt.useMemo(()=>Nk(R||void 0),[R]),{fieldProps:I,labelProps:M}=reactAria.useField(P),{dropProps:D,isDropTarget:j}=reactAria.useDrop({ref:z,onDrop:async ae=>{if(l)return;let me=await Ii({items:ae.items});me.length&&N(me[0]),p?.(ae);},...P}),{clipboardProps:O}=reactAria.useClipboard({onPaste:async ae=>{if(l)return;let me=await Ii({items:ae});me.length&&N(me[0]),c?.(ae);},...P}),V=()=>{N(null),k.current&&(k.current.value="");},$={type:"file",onChange:ae=>{let me=[...ae.target.files];N(me[0]),P.onChange?.(ae);},accept:o,disabled:l},{focusProps:F,isFocused:ee,isFocusVisible:H}=reactAria.useFocusRing({within:!0}),{hoverProps:Z,isHovered:X}=reactAria.useHover({isDisabled:l}),{imgProps:Re,isLoading:Te,isLoaded:_e}=Ht({src:S,alt:i||""}),Ae={label:s||T("selectImage"),onPress:()=>z.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:utils.classNames(Xo({isFocusVisible:H}),{[Nf]:j&&!l},b),style:y},Ge=utils.filterTruthyValues({"data-loaded":_e,"data-block-id":m,"data-block-class":u,"data-hovered":X,"data-focused":ee,"data-drop-target":j,"data-disabled":l,"data-focus-visible":H});return jsxRuntime.jsxs(E,{...Ge,className:utils.classNames("BaselineUI-ImageDropZone",r),display:"flex",flexDirection:"column",alignItems:"center",style:e,ref:w,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(D,Z,F,M),className:utils.classNames(Xa({isInline:t,isHovered:X,isDisabled:l,hasLoadedImage:!!S&&_e,showFocusRing:j||!!S&&H}),C),style:_,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(I,O,$),ref:k})}),!S&&jsxRuntime.jsx(G,{...Ae}),!!S&&(Te?jsxRuntime.jsx(nr,{}):jsxRuntime.jsx("img",{className:Ya({isInline:t,isDisabled:l,hasLoadedImage:!!S&&_e&&d}),...Re}))]}),h||v?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Za({isInline:t,isDisabled:l}),f),children:(S||!h)&&v?jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:v,isDisabled:l,onPress:V}):jsxRuntime.jsx(G,{size:"sm",variant:"ghost",label:h,isDisabled:!0})}):null]})});Zf.displayName="ImageDropZone";function Nk(r){return r instanceof File?URL.createObjectURL(r):r}var Jf="_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4",cs="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",Qf=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:!0},"_1yep5z61oi"],[{accent:"theme",isInline:!0},"_1yep5z61o7"],[{accent:"positive",isInline:!1},"_1yep5z61ok"],[{accent:"theme",isInline:!1},"_1yep5z61o9"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:!0,isInline:!0},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61oj"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61ob"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61o8"]]});var ry=bt__default.default.forwardRef(({className:r,style:e,isDisabled:t,isInline:o=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:l,onPress:p,onDelete:c,deleteAriaLabel:d,addAriaLabel:m,accent:u="positive","data-block-id":y,"data-block-class":b,...f},g)=>{let{focusProps:v,isFocused:h,isFocusVisible:_}=reactAria.useFocusRing({within:!0}),{isHovered:C,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 z=utils.filterTruthyValues({"data-hovered":C,"data-focus-visible":_,"data-focused":h,"data-disabled":t});return jsxRuntime.jsxs("div",{...f,className:utils.classNames(Qf({isInline:o,isFocusVisible:_,isDisabled:t,isHovered:C,accent:u}),"BaselineUI-Preview",r),"data-block-id":y,"data-block-class":b,"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,z),className:cs,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(P,v,w,z),disabled:t,style:l,"aria-label":m,className:cs,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:Ya({isInline:o,isDisabled:t})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(A,{isDisabled:t,className:Jf,"aria-label":d,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});ry.displayName="Preview";var oy="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",ay=x({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),ny="cw3m0n7",iy=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:[]}),sy="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",ly=x({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var Wk=({label:r,description:e},{isSelected:t,isFocusVisible:o,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:iy({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:ly({isSelected:t,isFocusVisible:o,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:ny}):null}),r?jsxRuntime.jsxs("div",{className:oy,children:[jsxRuntime.jsx("span",{className:Ia({isDisabled:a}),children:r}),e?jsxRuntime.jsx("span",{className:ay({isDisabled:a}),children:e}):null]}):null]}),py=({state:r,renderOption:e=Wk,item:t,optionLabelPosition:o="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let l=!!s.isDisabled||!!s.disabledValues?.includes(t.id),p=bt__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:y,isFocused:b}=reactAria.useFocusRing(),{isHovered:f}=reactAria.useHover({isDisabled:l}),g=utils.filterTruthyValues({"data-selected":m,"data-focused":b,"data-focus-visible":y,"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:y,isSelected:m,isFocused:b,isHovered:f,isDisabled:l,optionLabelPosition:o,isReadOnly:i})]})};var dy=bt__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},y)=>{let b=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},b),_=Ne({...u,descriptionProps:v,errorMessageProps:h,labelPosition:n}),C=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,C),className:utils.classNames(et({labelPosition:n}),"BaselineUI-RadioGroup",r),style:e,ref:y,children:[u.label||_?jsxRuntime.jsxs("div",{className:Qe({labelPosition:n,hasMessage:!!_}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Je,"BaselineUI-RadioGroup-Label"),children:u.label}),n==="start"&&_]}):null,jsxRuntime.jsx("div",{className:utils.classNames(sy,{[Vt]:u.isDisabled},t),style:o,children:a.map(P=>jsxRuntime.jsx(py,{state:b,renderOption:i,item:P,...u,value:P.id},P.id))}),n==="top"&&_]})});dy.displayName="RadioGroup";var uy=({id:r,defaultMessage:e,elementType:t=bt.Fragment})=>{utils.invariant(r||e,"`id` or `defaultMessage` is required.");let o=B();return jsxRuntime.jsx(t,{children:o.formatMessage(r)||e})};uy.displayName="MessageFormat";var my=bt__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})});my.displayName="Group";var ys="UNSUPPORTED_IN_MENU";function by(r){return bt.useMemo(()=>bt__default.default.Children.toArray(r).map(e=>{let t=e,o=lodash.uniqueId("item"),a=bo(t,Oe),n=yy(t),i,s;if(a){let g=bo(a,je);utils.invariant(g),i=yy(g),s=bo(a,Me).props.children;}else n?i=n:i=t;let{onPress:l,label:p,"aria-label":c,iconStart:d,isDisabled:m,icon:u}=i.props,y=p||c||ys;utils.invariant(typeof y=="string","ActionGroup children must have a string label");let b=`${o}-${y}`;return bt.createElement(reactStately.Item,{...{key:b,onPress:l,textValue:y,"aria-label":c,icon:d||u,dialogContent:s,isDisabled:m},key:b},t)}),[r])}function bo(r,e){return e?lodash.flatMapDeep(bt__default.default.Children.toArray(r),o=>bt__default.default.isValidElement(o)&&o.props.children?[o,...bt__default.default.Children.toArray(o.props.children)]:[o]).find(o=>bt__default.default.isValidElement(o)&&o.type===e):void 0}function yy(r){return bo(r,G)||bo(r,A)}var gy="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",vy={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var gs=bt__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}=B(),[d,m]=bt.useState(),u=by(t),y=reactStately.useListState({...l,children:u}),b=re(p),f=bt.useRef(null),[{visibleItems:g,isMeasuring:v},h]=xn({visibleItems:y.collection.size,isMeasuring:!1}),_=bt.useCallback(()=>{let N=S=>{if(f.current&&b.current){let I=[...f.current.children],M=b.current.getBoundingClientRect().width,D=S<y.collection.size,j=0,O=0;if(D){let V=I.pop();V&&(j+=Cy(V,!1,!0));}for(let[V,$]of I.entries())if(j+=Cy($,V===0,V===I.length-1),Math.round(j)<=Math.round(M))O++;else break;return O}return S};h(function*(){yield {visibleItems:y.collection.size,isMeasuring:!0};let S=N(y.collection.size),I=S<y.collection.size&&S>0;yield {visibleItems:S,isMeasuring:I},I&&(yield {visibleItems:N(S),isMeasuring:!1});});},[h,b,y.collection.size]),C=bt.useMemo(()=>({get current(){return b.current?.parentElement}}),[b]);En({ref:C,onResize:_}),Se(_,[y.collection,_]);let{toolbarProps:P}=toolbar.useToolbar(l,b),w=[...y.collection],z=w.slice(0,g),k=w.slice(g).filter(N=>N.textValue!==ys),T=k.length>0;bt.useEffect(()=>{m(void 0);},[k.length]),bt.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":!0,style:{...e,flexBasis:v?"100%":void 0},ref:b,children:jsxRuntime.jsxs("div",{ref:f,className:gy,children:[z.map(N=>N.rendered),T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!v&&i?jsxRuntime.jsx(E,{flexGrow:1}):null,jsxRuntime.jsx(Ca,{placement:"bottom end",renderTrigger:({buttonProps:N,ref:S})=>jsxRuntime.jsx(A,{...N,size:"md",icon:_24.MoreIcon,"aria-label":c(zS.more),variant:"toolbar",ref:S,tooltip:!0}),...o,disabledKeys:k.filter(N=>N.props?.isDisabled).map(N=>N.key),items:k.map(N=>{let S=N.textValue||N["aria-label"];return utils.invariant(S,"ActionItem must have a label"),{id:N.key,label:S,icon:N.props.icon}}),onAction:N=>{let S=y.collection.getItem(N);utils.invariant(S,"Item not found");let{onPress:I,dialogContent:M}=S.props;I?.(),m(M);}})]}):null]})}),jsxRuntime.jsx(Le,{isOpen:!!d,onOpenChange:N=>{N||m(void 0);},children:jsxRuntime.jsx(He,{enableDrawer:"auto",style:{zIndex:1e5},children:d?bt__default.default.cloneElement(d,{inheritDrawer:!0}):null})})]})});gs.displayName="CollapsibleToolbar";function Cy(r,e,t){let a=te(r).getComputedStyle(r);return r.getBoundingClientRect().width+(e?0:xy(a.marginLeft))+(t?0:xy(a.marginRight))}function xy(r){let e=Number.parseInt(r,10);return Number.isNaN(e)?0:e}var zS=K({more:{id:"more",defaultMessage:"More"}});var vs=bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,"aria-controls":a,onKeyDown:n,...i},s)=>{let l=bt__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(vy[i.orientation||"horizontal"],"BaselineUI-Toolbar",r),style:e,"data-block-id":t,"data-block-class":o,ref:L(s,l),children:i.children})});vs.displayName="WrappedToolbar";var en=bt__default.default.forwardRef((r,e)=>{let t=r.isCollapsible?gs:vs;return jsxRuntime.jsx(t,{...r,ref:e})});en.displayName="Toolbar";var wy=x({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),ky=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:!0,isDisabled:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),Sy=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:!1,isHovered:!0},"_1yep5z61nc"]]}),Iy=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:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!0,isDisabled:!1},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:!0,isDisabled:!0},"_1yep5z61o9 _1yep5z61nd"]]}),Ry=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:!0,isDisabled:!1},"_1j5skr7c _1yep5z61nf"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61nd"],[{isSelected:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]});var DS={xxs:8,xs:12,sm:16,md:20,lg:24},xe=bt__default.default.forwardRef((r,e)=>{let t=re(e),{tooltipProps:o}=Ko(r,t);return o?jsxRuntime.jsx(ne,{...o,children:jsxRuntime.jsx(hs,{...r,ref:e})}):jsxRuntime.jsx(hs,{...r,ref:e})});xe.displayName="ToggleIconButton";var hs=bt__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:y,isHovered:b,uiStateOptions:f}=Wo(s,p),g=bt.useMemo(()=>typeof t=="function"?t:p.isSelected?t.selected:t.unselected,[t,p.isSelected]),v={isSelected:p.isSelected,isHovered:b,isFocusVisible:u,isDisabled:!!s.isDisabled},h=utils.filterTruthyValues({"data-hovered":b,"data-selected":p.isSelected,"data-focus-visible":u,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":y,"data-pressed":d});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,h),className:utils.classNames(a==="toolbar"&&Ry(v),a==="primary"&&ky(v),a==="secondary"&&Sy(v),a==="tertiary"&&Iy(v),wy({size:o}),"BaselineUI-ToggleIconButton",typeof r=="function"?r(f):r),style:typeof e=="function"?e(f):e,ref:L(m,l),children:jsxRuntime.jsx(g,{size:DS[o]})})});hs.displayName="ToggleIconButtonCore";var Ny="f6jv6bl",Ey="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",br="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Ly=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:!0,isMinimal:!1},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),tn=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:[]}),My="f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",Dy="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",By=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:[]}),Oy="_1yep5z6jy _1yep5z6jz _1yep5z6k0",jy="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln",Fy=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:[]}),Hy="f6jv6bk",Vy="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu",rn=x({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),on="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",vo="f6jv6bn";var Uy=[["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:ho}}=tokens.layoutSprinkleValues,qy=({isOpen:r,onClose:e})=>{let{formatMessage:t}=B(),o=reactAria.useId();return jsxRuntime.jsx(Le,{isOpen:r,onOpenChange:a=>{a||e();},children:jsxRuntime.jsx(He,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(ve,{"aria-labelledby":o,className:My,drawerBackground:"subtle",children:[jsxRuntime.jsxs(E,{paddingLeft:ho.padding.horizontal.lg,paddingRight:ho.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:Dy,children:[jsxRuntime.jsx(J,{id:o,elementType:"h3",type:"title",size:"md",children:t(_o.help)}),jsxRuntime.jsx(A,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(_o.close),onPress:e})]}),jsxRuntime.jsx(U,{className:Hy}),jsxRuntime.jsxs(E,{paddingX:ho.padding.horizontal.lg,role:"table","aria-labelledby":o,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ho.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(_o.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(_o.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Uy.map(([a,n],i)=>jsxRuntime.jsxs(bt.Fragment,{children:[jsxRuntime.jsxs(E,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:ho.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(J,{type:"subtitle",size:"sm",role:"cell",children:t(_o[lodash.camelCase(a)])}),jsxRuntime.jsx(J,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==Uy.length-1&&jsxRuntime.jsx(U,{})]},a))})]})]})})})},_o=K({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var an=bt__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},y)=>{let b=bt__default.default.useRef(null),[f,g]=utils$1.useControlledState(r,e||"",t),v=bt.useCallback(R=>{g(R.currentTarget.value||"");},[g]),h=bt.useCallback(R=>{(m&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),u());},[m,u]);bt.useImperativeHandle(y,()=>({clear:()=>{g("");}}));let _=bt.useCallback(R=>{R.currentTarget.style.height="16px",R.currentTarget.style.height=R.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let R=b.current;R&&(R.style.height="16px",R.style.height=R.scrollHeight+"px");},[s],[f]),bt.useImperativeHandle(c,()=>({setCaretPosition:R=>{b.current&&(b.current.focus(),b.current.setSelectionRange(R,R));},focus:()=>{b.current&&b.current.focus();}}));let{focusProps:C,isFocused:P,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:z,isHovered:k}=reactAria.useHover({}),T=utils.filterTruthyValues({"data-focus-visible":w,"data-hovered":k,"data-focused":P});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(C,z,T),ref:L(b,n),className:utils.classNames(s?jy:[tn(),rn({isInline:i}),Vy]),autoFocus:d,onChange:v,disabled:l,onInput:_,value:f,placeholder:o,spellCheck:a,"aria-label":p,onKeyDown:h})});an.displayName="PlainEditor";var xo="mention",nn="mention_input",o1=bt__default.default.forwardRef(({onCancel:r,editor:e,element:t,onSelectionChange:o},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=bt.useContext(ln),l=slateReact.useSelected(),[p,c]=bt.useState(""),{contains:d}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=B(),u=bt.useMemo(()=>{let I=i.filter(M=>p===""||d(M.displayName,p)).map(M=>({id:M.id,label:M.displayName,data:M}));return s?lodash.take(I,s):I},[i,s,p,d]),y=bt.useCallback(I=>jsxRuntime.jsx(reactStately.Item,{children:I.label},I.id),[]),b=bt.useCallback((I=!1)=>{let M=plateCommon.findNodePath(e,t);M&&(plateCommon.removeNodes(e,{at:M}),I&&plateCommon.focusEditor(e));},[e,t]),f=reactStately.useComboBoxState({items:u,children:y,menuTrigger:"focus",onSelectionChange:I=>{b(!0),o?.(I);}}),g=bt__default.default.useRef(null),v=bt__default.default.useRef(null),h=bt__default.default.useRef(null),_=bt__default.default.useRef(null),C=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(gI.mention)},f);bt.useEffect(()=>{v.current?.focus();},[]);let z=bt.useCallback((I="manual",M=!1)=>{b(M),r?.(I,f.inputValue);},[r,b,f.inputValue]),k=bt.useRef(l);bt.useEffect(()=>{k.current&&!l&&z("deselect"),k.current=l;},[l,z]);let T=C?.atStart??!1,R=C?.atEnd??!1,N=bt.useCallback(I=>{I.key==="Backspace"&&T?z("backspace",!0):I.key==="Escape"?z("escape",!0):I.key==="ArrowLeft"&&T?z("arrowLeft",!0):I.key==="ArrowRight"&&R&&z("arrowRight",!0);let M=plateCommon.Hotkeys.isUndo(I)&&e.history.undos.length>0,D=plateCommon.Hotkeys.isRedo(I)&&e.history.redos.length>0;(M||D)&&(I.preventDefault(),e[M?"undo":"redo"](),plateCommon.focusEditor(e));},[T,R,z,e]),S=bt.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let I=te(v.current),M=v.current?I?.getComputedStyle(v.current).font:void 0;return {width:M?utils.getTextDimensions({text:f.inputValue,font:M}).width+10:"4ch"}}},[f.inputValue]);return jsxRuntime.jsxs(gt.Provider,{value:f,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(P,{onKeyDown:N,onBlur:()=>{z("blur",!0);},onChange:I=>{c(I.target.value);}}),style:S,className:Ay,ref:L(a,v)}),jsxRuntime.jsx(Ce,{triggerRef:n,isNonModal:!0,ref:_,state:f,crossOffset:-2,children:jsxRuntime.jsx(de,{...w,items:void 0,autoFocus:"first",ref:h,className:utils.classNames(at,tokens.sprinkles({width:"full"})),renderOption:n1})})]})});o1.displayName="MentionInputContentElement";var Ps=cn$1.withRef(({className:r,...e},t)=>{let{children:o,editor:a,element:n}=e,{items:i}=bt.useContext(ln),s=bt.useRef(null),[l,p]=bt.useState(null);bt.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let u=plateCommon.getPointBefore(a,m);if(!u)return;let y=plateCommon.createPointRef(a,u);return p(y),()=>{y.unref();}},[a,n]);let c=bt.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Rr()&&m&&plateCommon.focusEditor(a);},[a]),d=bt.useCallback(m=>{if(!m)return;let u=s.current?.getRootNode()instanceof ShadowRoot,y=i.find(f=>f.id===m);utils.invariant(y,"User not found");let b={type:xo,value:y.id,displayName:y.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[b,{text:" "}]),u?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:!1,className:r,ref:t,...e,children:[jsxRuntime.jsx(o1,{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]})});Ps.displayName="MentionInputElement";var ws=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:!1,"data-user-id":n.value,onClick:plateCommon.getHandler(e,n),ref:a,...o,children:["@",n.displayName,t]})});ws.displayName="MentionElement";var a1=(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},gI=K({mention:{defaultMessage:"Mention",id:"mention"}});function s1({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("p",{children:e})})}function LI(r){return Object.entries(r).map(([e,t])=>`${lodash.kebabCase(e)}:${t}`).filter(([,e])=>!!e).join(";")}function MI(r){return "text"in r}function DI(r){return r.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function Po(r){if(!r)return "";function e(t){if(MI(t)){let a=DI(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="${LI(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let o=t.children?.map(Po).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${o}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${o}</a>`;case xo: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 AI(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 Ts(r){r.startsWith("<p>")||(r=`<p>${r}</p>`);let e=new DOMParser().parseFromString(l1__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")?`
|
|
41
|
-
`:"<p>";return c1(e.body)}function c1(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=!0;break}case"I":{t.italic=!0;break}case"EM":{t.italic=!0;break}case"U":{t.underline=!0;break}case"SPAN":{let a=AI(r.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=!0),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let o=[...r.childNodes].flatMap(a=>c1(a,t));switch(o.length===0&&o.push(slateHyperscript.jsx("text",t,"")),r.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",e,`
|
|
42
|
-
`);case"SPAN":{let a=r.dataset.userId;return a?slateHyperscript.jsx("element",{type:xo,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 d1(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:nn};r.insertNode(e);}var BI=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:xo,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:nn}],withOverrides:a1}),u1=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:s1}),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:m1}),BI({component:ws})],{components:{[nn]:Ps}});var St={Add:"add",Edit:"edit",Show:"show"},g1=({isDisabled:r})=>{let{formatMessage:e}=B(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(Oe,{type:"dialog",children:[jsxRuntime.jsx(je,{children:jsxRuntime.jsx(A,{icon:_20.LinkIcon,size:"sm",isDisabled:r,"aria-label":e(It.addLink),className:br,preventFocusOnPress:!0})}),jsxRuntime.jsx(Me,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:o})=>jsxRuntime.jsx(ve,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(qI,{close:()=>{o(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},qI=({close:r})=>{let e=plateCommon.useEditorRef(),{formatMessage:t}=B(),o=plateCommon.useEditorSelector(p=>d1(p),[]),[a,n]=bt__default.default.useState(o?St.Show:St.Add),[i,s]=bt__default.default.useState(o||""),l=jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(nt,{label:t(It.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a===St.Add&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(E,{display:"flex",justifyContent:"flex-end",padding:"lg",className:Ny,children:jsxRuntime.jsx(G,{isDisabled:!utils.isUrl(i,!0),label:t(It.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();},preventFocusOnPress:!0})})]}),a===St.Show&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{padding:"lg",children:jsxRuntime.jsx(J,{type:"subtitle",size:"sm",children:o})}),jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(It.editLink),size:"sm",variant:"secondary",onPress:()=>{n(St.Edit);},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(G,{label:t(It.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(e),r?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a===St.Edit&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsxs(E,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(G,{label:t(It.cancel),size:"sm",variant:"secondary",onPress:()=>{n(St.Show),r?.();}}),jsxRuntime.jsx(G,{label:t(It.save),size:"sm",onPress:()=>{plateLink.upsertLink(e,{url:i,skipValidation:!0}),r?.();}})]})]})]})};function m1({className:r,children:e,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:r,...t,children:jsxRuntime.jsx("a",{className:xa({size:"sm"}),children:e})})}var It=K({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 GI=color.parseColor("#ffffff00").toString("hexa"),Ns=[{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"}];[...Ns,{label:"Transparent",color:GI}];var cn=({nodeType:r,icon:e,ariaLabel:t,isDisabled:o})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,r),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(xe,{variant:"tertiary",isSelected:a,size:"sm",icon:e,"aria-label":t,isDisabled:o,onPress:()=>{plateCommon.toggleMark(n,{key:r});},preventFocusOnPress:!0})},Ls=({nodeType:r,"aria-label":e,isDisabled:t})=>{let{updateColor:o,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:r}),i=bt.useCallback(({ref:l,triggerProps:p})=>jsxRuntime.jsx(A,{icon:r==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":e,size:"md",variant:"popover",isDisabled:t,className:br,preventFocusOnPress:!0,...p,ref:l}),[r,e,t]),s=bt.useCallback(l=>{l?o(l.toString("rgba")):a();},[a,o]);return jsxRuntime.jsx(ur,{presets:Ns,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:t})};var xR=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],ln=bt__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),As=bt__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:y,editorRef:b,saveOnEnter:f,onSave:g},v)=>{let h=bt.useRef(null),_=reactAria.useId(),{formatMessage:C}=B(),P=bt.useRef(null),w=P.current,z=bt.useRef(null),k=bt.useMemo(()=>w?.getRootNode()instanceof ShadowRoot,[w]),[T,R]=utils$1.useControlledState(r?Ts(r):void 0,Ts(e||"<p></p>"),I=>{t&&t(Po(I));}),{keyboardProps:N}=reactAria.useKeyboard({onKeyDown:I=>{(f&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),g()),I.altKey&&I.key==="F10"?(I.preventDefault(),h.current&&h.current.querySelector("button")?.focus()):I.continuePropagation(),Rr()&&k&&z.current&&plateCommon.focusEditor(z.current);}});bt.useEffect(()=>{s&&z.current&&plateCommon.deselect(z.current);},[s]),bt.useImperativeHandle(v,()=>({startMention:()=>{z.current&&!P.current?.querySelector("input[role='combobox']")&&sn(z.current);}})),bt.useImperativeHandle(m,()=>({setCaretPosition:I=>{z.current&&(plateCommon.focusEditor(z.current),plateCommon.moveSelection(z.current,{distance:I,unit:"character"}));},focus:()=>{z.current&&plateCommon.focusEditor(z.current);}}));let S=bt.useMemo(()=>({items:d||[],containerRef:p,maxMentionableUsersSuggestions:u}),[d,p,u]);return jsxRuntime.jsx(ln.Provider,{value:S,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:T||xR,plugins:u1,editorRef:L(z,b||null),onChange:I=>{R(I);},children:[jsxRuntime.jsxs(en,{className:on,"aria-controls":_,ref:h,children:[jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:C(_r.bold),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:C(_r.italic),isDisabled:s}),jsxRuntime.jsx(cn,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:C(_r.underline),isDisabled:s})]}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(Ls,{nodeType:plateFont.MARK_COLOR,"aria-label":C(_r.fontColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(Ls,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":C(_r.backgroundColor),isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(g1,{isDisabled:s}),jsxRuntime.jsx(U,{orientation:"vertical",className:vo}),jsxRuntime.jsx(A,{className:br,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":C(_r.help),onPress:c})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx("div",{...N,ref:P,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:_,disabled:s,readOnly:s,style:o,placeholder:n,autoFocus:y,spellCheck:a,"aria-label":l,className:utils.classNames(tn({isDisabled:s}),rn({isInline:i})),renderPlaceholder:({attributes:I,children:M})=>jsxRuntime.jsx("span",{...I,className:tokens.sprinkles({paddingY:"lg"}),children:M})})})]})})});As.displayName="RichEditor";var n1=({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:By({isDisabled:t,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(pr,{name:l,...p?.avatar}),jsxRuntime.jsxs(E,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(J,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(J,{type:"helper",size:"sm",children:p?.description})]})]}),r===n.collection.getLastKey()?null:jsxRuntime.jsx(U,{})]})},_r=K({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 x1=bt__default.default.memo(bt__default.default.forwardRef(({className:r,style:e,"data-block-id":t,"data-block-class":o,enableRichText:a=!1,onCancel:n,onSave:i,isInline:s=!0,submitButtonIcon:l=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:p,cancelButtonAriaLabel:c,"aria-label":d,"aria-describedby":m,"aria-labelledby":u,"aria-details":y,editableContentAriaLabel:b="Editing Area",footerButtons:f,clearOnCancel:g,clearOnSave:v,...h},_)=>{let C=bt.useRef(null),{formatMessage:P}=B(),w=bt.useRef(null),z=bt.useRef(null),k=bt.useRef(null),T=!a&&h.variant==="minimal",R=bt.useRef(null),[N,S]=bt__default.default.useState(h.value||h.defaultValue),I=h.isDisabled||h.isSaveDisabled||!utils.getPlainText(N||""),{fieldProps:M}=reactAria.useLabel({"aria-label":d,"aria-labelledby":u,"aria-describedby":m,"aria-details":y,labelElementType:"div"});T&&!h.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let D=bt.useCallback(()=>{S(""),a?C.current?.reset():z.current?.clear();},[a]),j=bt.useCallback(()=>{I||(i?.(a?Po(C.current?.children):w.current.value),v&&D());},[D,v,a,i,I]),O=jsxRuntime.jsx(A,{variant:"ghost","aria-label":p||P(Os.save),icon:l,isDisabled:I,size:"md",excludeFromTabOrder:T,className:T?Oy:void 0,onPress:j,preventFocusOnPress:!0}),[V,$]=bt__default.default.useState(!1),{keyboardProps:F}=reactAria.useKeyboard({onKeyDown:H=>{(H.metaKey||H.ctrlKey)&&H.shiftKey&&H.key==="h"&&(H.preventDefault(),$(!0));}}),ee=bt.useCallback(H=>{S(H),h.onChange?.(H);},[h]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(M,a?F:{}),role:"application",ref:L(k,_),style:e,"data-block-id":t,"data-block-class":o,className:utils.classNames(Ly({isInline:s,isMinimal:T}),"BaselineUI-Editor",r),"aria-disabled":h.isDisabled,children:[T?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(pr,{className:Ey,name:h.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Fy({isInline:s}),children:[jsxRuntime.jsx(an,{isMinimal:T,textBoxRef:w,isInline:s,editableContentAriaLabel:b,...h,onChange:ee,onSave:j}),O]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(As,{containerRef:k,ref:R,editorRef:C,isInline:s,editableContentAriaLabel:b,onHelpDialogOpenRequest:()=>{$(!0);},...h,onChange:ee,onSave:j}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsx(an,{onCancel:n,textBoxRef:w,ref:z,isInline:s,editableContentAriaLabel:b,...h,onChange:H=>{S(H),h.onChange?.(H);},onSave:j})]}),jsxRuntime.jsx(U,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(on,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(E,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&h.mentionableUsers?jsxRuntime.jsx(A,{icon:_20.AtIcon,size:"sm","aria-label":P(Os.mention),onPress:()=>R.current?.startMention(),preventFocusOnPress:!0}):null,f?.map(({type:H,props:Z},X)=>H==="action"?jsxRuntime.jsx(A,{...Z,size:"sm",isDisabled:h.isDisabled||Z.isDisabled},X):jsxRuntime.jsx(xe,{...Z,size:"sm",variant:"tertiary",isDisabled:h.isDisabled||Z.isDisabled},X))]}),jsxRuntime.jsxs(E,{children:[!!n&&jsxRuntime.jsx(A,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:h.isDisabled,size:"md",onPress:()=>{n(),g&&D();},"aria-label":c||P(Os.cancel)}),O]})]})]}),jsxRuntime.jsx(qy,{isOpen:V,onClose:()=>{$(!1);}})]})}));x1.displayName="Editor";var Os=K({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var P1="_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 k1=2,I1=bt__default.default.forwardRef(({className:r,style:e,hideForKeyboard:t,scrollRef:o,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s,"data-block-class":l},p)=>{let c=bt__default.default.useRef(null),d=interactions.useInteractionModality(),[m,u]=bt__default.default.useState(!1),y=bt.useCallback(()=>{let k=o?.current||fe(c.current).body;return te(k).getComputedStyle(k).flexDirection==="column-reverse"?k.scrollTop+k1>=0:k.scrollTop+k.clientHeight+k1>=k.scrollHeight},[o]),[b,f]=bt__default.default.useState(y),{buttonProps:g,isPressed:v}=reactAria.useButton({onPress:()=>{let k=o?.current||fe(c.current).body;k.scrollTo({top:k.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:h,isFocused:_,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:P,isHovered:w}=reactAria.useHover({}),z=utils.filterTruthyValues({"data-block-id":s,"data-block-class":l,"data-pressed":v,"data-focus-visible":C,"data-hovered":w,"data-focused":_});return bt.useEffect(()=>{f(y());},[y]),bt.useEffect(()=>{let k=o?.current||fe(c.current).body,T="onscrollend"in te(k),R=()=>{setTimeout(()=>{u(!1),f(y());},n);},N=()=>{u(!0),T||R();};return k.addEventListener("scroll",N),k.addEventListener("scrollend",R),()=>{k.removeEventListener("scroll",N),k.removeEventListener("scrollend",R);}},[o,n,y]),jsxRuntime.jsx(react.AnimatePresence,{initial:!1,children:(!t||d!=="keyboard")&&!m&&!b?jsxRuntime.jsxs(react.motion.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...reactAria.mergeProps(g,h,P,z),className:utils.classNames(P1,Ra({isFocusVisible:C,variant:"high-contrast",isHovered:w}),Ta({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",r),style:e,ref:L(p,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:Jr({variant:"high-contrast"})}),a]}):null})});I1.displayName="ScrollControlButton";var Fs="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",R1=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:!0,hasNoCloseBtn:!0},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),T1="_1v0p2z10";var mn=bt__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=!0,onPrimaryAction:m,onCancel:u,autoFocusButton:y,isPrimaryActionDisabled:b},f)=>{let g=reactAria.useId(),{formatMessage:v}=B(),h=n&&jsxRuntime.jsx(J,{id:g,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(ve,{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:R1({hasTitleAndIcon:!!(p&&n),hasNoCloseBtn:!d}),children:[jsxRuntime.jsxs(E,{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(A,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":v(WR.close),onPress:u}):null]}),p?h:null]}),a?jsxRuntime.jsx(E,{elementType:"section",className:T1,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,l?jsxRuntime.jsx(E,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(nt,{...l})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(U,{}),jsxRuntime.jsxs(E,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(G,{variant:"secondary",className:Fs,label:s,onPress:u,autoFocus:y==="cancel"}):null,i?jsxRuntime.jsx(G,{className:Fs,label:i,onPress:m,autoFocus:y==="primary",isDisabled:b}):null]})]}):null]})});mn.displayName="AlertDialog";var WR=K({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var N1="_1t55bp71",E1="_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k",L1="_1t55bp70";var eT=QR__default.default(),M1=bt__default.default.forwardRef(({className:r,style:e,children:t,"data-block-id":o,"data-block-class":a,showCaret:n},i)=>{let s=bt.useMemo(()=>{let l=t;return (!t||Array.isArray(t)&&t.length===0)&&(l=""),eT.render(l)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(E1,L1,{[N1]:n},"BaselineUI-Markdown",r),"data-block-id":o,"data-block-class":a,style:e,ref:i,dangerouslySetInnerHTML:{__html:s}})});M1.displayName="Markdown";function O1(r){let{formatMessage:e,locale:t}=B(),[o,a]=bt__default.default.useState(!1),[n,i]=bt__default.default.useState(0),[s,l]=bt__default.default.useState(0),[p,c]=bt__default.default.useState(!1);bt.useEffect(()=>{if(!r.current)return;let u=r.current,y=()=>{a(!1),i(0);},b=()=>{p||i(u.currentTime*100/u.duration);},f=()=>{l(u.duration);};return u.addEventListener("ended",y),u.addEventListener("timeupdate",b),u.addEventListener("loadedmetadata",f),()=>{u.removeEventListener("ended",y),u.removeEventListener("timeupdate",b),u.removeEventListener("loadedmetadata",f);}},[p,r]);let d=bt.useCallback(()=>{(async()=>r.current&&(r.current.paused?(await r.current.play(),a(!0),liveAnnouncer.announce(e(A1.playing),"polite")):(r.current.pause(),a(!1),liveAnnouncer.announce(e(A1.paused),"polite"))))();},[e,r]),m=bt.useCallback(u=>{r.current&&(r.current.currentTime=u*r.current.duration/100,liveAnnouncer.announce(oT(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?B1(r.current?.currentTime):"00:00",formattedDuration:s?B1(s):"00:00",setIsSliderDragging:c}}var A1=K({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function oT(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 B1(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 j1="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q",F1="rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",H1="rta2n90";var U1=bt__default.default.forwardRef(({className:r,style:e,size:t="lg",sources:o,"data-block-id":a,"data-block-class":n,...i},s)=>{let l=bt__default.default.useRef(null),{isPlaying:p,progress:c,duration:d,togglePlay:m,seek:u,formattedDuration:y,formattedCurrentTime:b,setProgress:f,setIsSliderDragging:g}=O1(l),{formatMessage:v}=B(),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(j1,"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:C})=>jsxRuntime.jsx("source",{src:_,type:C},_))})}),jsxRuntime.jsx(xe,{icon:p?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:p,size:t,"aria-label":v(p?Vs.pause:Vs.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:F1,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:b}),jsxRuntime.jsx(Kt,{"aria-label":v(Vs.audioTimeline),value:c,minValue:0,maxValue:100,className:H1,onChange:_=>{f(_),g(!0);},onChangeEnd:_=>{u(_),g(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:y})]})]})});U1.displayName="AudioPlayer";var Vs=K({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var q1="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",K1="_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",G1="_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",yn=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:!0,isSelected:!0},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),W1="_1w920rnb _1yep5z6lo",X1=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:!0,isSelected:!0},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),Y1="_1w920rnc";var bn=({items:r,ulRef:e,containerClassName:t,previewClassName:o,itemDataAttribute:a,showCount:n=!1})=>{let{length:i}=r,s=bt__default.default.useRef(null);return bt.useLayoutEffect(()=>{if(!s.current)return;let l=s.current.closest(t)?.querySelector(`[${a}='${r?.at(-1)?.key}']`)?.cloneNode(!0);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(E,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Y1,children:i}):null})};function J1(r,e){return r.find(t=>t.id===e)}function Q1(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 eb(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 $s(r){return r.map(e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}}))}function gn(r){return r.map(e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt}))}var vT=({fit:r,item:e,deleteElement:t})=>{let{formatMessage:o}=B(),a=react.useReducedMotion(),{imgProps:n,isLoading:i}=Ht({src:e.data?.src,alt:e.data?.alt??""});return i?jsxRuntime.jsx(nr,{"aria-label":o(So.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:W1,children:t})},ob=({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:y,layoutTransition:b=!0,renderImage:f=(g,{deleteElement:v})=>jsxRuntime.jsx(vT,{item:g,deleteElement:v,fit:l})})=>{let g=reactAria.useId(),{formatMessage:v}=B(),{value:h}=r;utils.invariant(h&&Ye(h),"Expected value to be a list option");let _=p?jsxRuntime.jsx("div",{className:q1,children:jsxRuntime.jsx(A,{"aria-label":v(So.delete),size:"xs",icon:_12.XIcon,onPress:()=>{p(h.id);},UNSAFE_NON_INTERACTIVE:!0})}):null,C=gn([h])[0],P=bt.useCallback(N=>{let S={},I=typeof N=="function"?N(C,{isSelected:o}):N;return I&&(S.width=typeof I.width=="string"?qs[I.width]:I.width,S.aspectRatio="height"in I?`${S.width} / ${I.height}`:I?.aspectRatio?.toString()),S},[C,o]),w=bt.useMemo(()=>({isFocusVisible:t,isSelected:o,isFocused:a,isDisabled:n,isPressed:i}),[t,o,a,n,i]),z=react.useReducedMotion(),k=typeof b=="boolean"?b:!z,T=typeof b=="object"?b:void 0,R=k?react.motion.li:"li";return jsxRuntime.jsxs(R,{...reactAria.mergeProps(e,k?{layout:!0,transition:T}:void 0),ref:s,className:utils.classNames(K1,Ze(c,C,w)),"aria-labelledby":g,style:Bo(y,C,w),children:[jsxRuntime.jsx(E,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(yn({isFocusVisible:t,isSelected:o,isLoading:!0}),Ze(d,C,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(X1({isFocusVisible:t,isSelected:o}),Ze(m,C,w)),children:h.label})]})};var wT={width:0,display:"block"},ib={src:"src",alt:"alt"},qs={sm:102,md:170},sb=bt__default.default.forwardRef(({className:r,style:e,fit:t="cover",onReorder:o,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s=qs.sm,aspectRatio:l=3/4,items:p,defaultItems:c=[],onKeyDown:d,imageContainerClassName:m,imageClassName:u,labelClassName:y,onListChange:b,renderImage:f,layoutTransition:g,imageDimensions:v={width:s,aspectRatio:l},imageContainerStyle:h,..._},C)=>{let P=bt__default.default.useRef(null),[w,z]=bt.useState([]),{formatMessage:k}=B();bt.useEffect(()=>{(l||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,l]);let[T,R]=utils$1.useControlledState(_.selectedKeys,_.defaultSelectedKeys??[],_.onSelectionChange),[N,S]=utils$1.useControlledState(p?$s(p):void 0,$s(c),b?O=>{b?.(gn(O));}:void 0),I=bt.useCallback(O=>{let V=O.target.key,$=O.keys;if(O.target.dropPosition==="before"){let F=Q1(N,V,$);S(F);}else if(O.target.dropPosition==="after"){let F=eb(N,V,$);S(F);}o?.(O);},[N,o,S]),M=bt.useCallback(()=>{i&&w.length&&(S(N.filter(O=>!w.includes(O.id))),i(new Set(w)),z([]));},[w,N,i,S]),D=bt.useCallback((O,V,$)=>{let{value:F}=O;utils.invariant(Ye(F));let ee={id:F.id,label:F.label,src:F.data?.src,alt:F.data?.alt};return jsxRuntime.jsx(ob,{item:O,options:V,liRef:$,fit:t,onDelete:i?H=>{z([H]);}:void 0,renderImage:f,className:Ze(m,ee,V),imageClassName:u,imageLabelClassName:y,imageDimensions:v,style:h,layoutTransition:g})},[t,i,f,m,u,y,v,h,g]),{keyboardProps:j}=reactAria.useKeyboard({onKeyDown(O){if(d?.(O),O.key==="Backspace"||O.key==="Delete"){if(!i)return;if([...T].length)z([...T]);else {let $=O.target.dataset.key;z([$]);}}}});return jsxRuntime.jsxs("div",{...j,ref:C,style:e,className:utils.classNames("BaselineUI-ImageGallery",r),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(de,{..._,selectedKeys:T,items:N,onReorder:I,layout:"grid",orientation:"vertical",className:G1,ref:P,dropIndicatorStyle:wT,renderOption:D,renderDragPreview:O=>jsxRuntime.jsx(bn,{items:O,ulRef:P,containerClassName:".BaselineUI-ImageGallery",previewClassName:yn(),itemDataAttribute:"data-image-key",showCount:!0}),onSelectionChange:R,getItems:O=>[...O].map(V=>{let $=J1(N,V);return {[ib.src]:$?.src||"",[ib.alt]:$?.alt||"",key:V}})}),jsxRuntime.jsx(Le,{isOpen:!![...w].length,onOpenChange:O=>{O||z([]);},children:jsxRuntime.jsx(He,{isDismissable:!0,children:jsxRuntime.jsx(mn,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:k(So.delete),cancelLabel:k(So.cancel),onCancel:()=>{z([]);},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})});sb.displayName="ImageGallery";var So=K({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var lb="_1sexph00",pb="_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si";var ub=bt__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=!0,excludeFromTabOrder:p,onPress:c,isSelected:d,defaultSelected:m,onButtonSelectionChange:u,moreAriaLabel:y,optionStyle:b,optionClassName:f,triggerClassName:g,triggerStyle:v,tooltipProps:h,..._},C)=>{let{formatMessage:P}=B(),w=se(),z=reactStately.useSelectState({items:t,..._,defaultSelectedKey:_.defaultSelectedKey||t?.[0]?.id,children:w,validationState:_.validationState==="error"?"invalid":"valid"}),[k,T]=utils$1.useControlledState(d,!!m,F=>{u?.({isSelected:F,selectedKey:z.selectedKey});}),{hoverProps:R,isHovered:N}=reactAria.useHover({isDisabled:s}),S=bt.useMemo(()=>{let F=z.collection.getItem(z.selectedKey),ee=F?.textValue||F?.["aria-label"],H=F?.value,Z=H?.icon,X={size:i,isSelected:k,onPress:Re=>{T(!k),c?.(Re);},isDisabled:s,excludeFromTabOrder:p,className:typeof f=="function"?f(H,{isButton:!0,isSelected:k}):f,style:typeof b=="function"?b(H,{isButton:!0,isSelected:k}):b};return n&&Z?jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:ee,placement:"bottom start",offset:4,...typeof h=="function"?h("button"):h,children:jsxRuntime.jsx(xe,{icon:Z,"aria-label":ee,variant:"toolbar",...X})}):jsxRuntime.jsx(Sa,{iconStart:Z,label:ee,variant:"toolbar",...X})},[p,n,k,s,c,f,b,T,i,z.collection,z.selectedKey,h]),I=_["aria-label"],M=bt.useCallback(({buttonProps:F,ref:ee})=>{delete F["aria-labelledby"];let H=y||`${P(MT.more)} ${I}`;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:H,placement:"bottom start",offset:4,...h,children:jsxRuntime.jsx(interactions.PressResponder,{...F,children:jsxRuntime.jsx(A,{"aria-label":H,ref:ee,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Z})=>utils.classNames(ka({isSelected:k,isFocusVisible:Z}),pb,g),style:v,isDisabled:s,excludeFromTabOrder:p})})})},[I,p,P,k,s,y,i,h,g,v]),D=utils.filterTruthyValues({"data-block-id":o,"data-block-class":a,"data-hovered":N,"data-selected":k,"data-disabled":s,"data-expanded":z.isOpen}),j=re(C),O=bt.useMemo(()=>({state:z,popoverAnchorRef:j}),[z,j]),V=bt.useCallback(F=>typeof f=="function"?f(F,{isButton:!1,isSelected:z.selectionManager.isSelected(F.id)}):f,[f,z.selectionManager]),$=bt.useCallback(F=>typeof b=="function"?b(F,{isButton:!1,isSelected:z.selectionManager.isSelected(F.id)}):b,[b,z.selectionManager]);return jsxRuntime.jsx(Na.Provider,{value:O,children:jsxRuntime.jsxs(E,{...R,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(lb,"BaselineUI-ButtonSelect",r),"aria-label":_["aria-label"],"aria-labelledby":_["aria-labelledby"],"aria-describedby":_["aria-describedby"],"aria-details":_["aria-details"],style:e,ref:j,...D,children:[S,jsxRuntime.jsx(lt,{isDisabled:s,showSelectedIcon:l,placement:"bottom start",items:t,..._,style:{width:20},optionClassName:V,optionStyle:$,variant:"ghost",renderTrigger:M})]})})});ub.displayName="ButtonSelect";var MT=K({more:{id:"more",defaultMessage:"More"}});var mb=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:[]}),fb=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:[]}),yb=x({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),bb=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:!0,isFocused:!1,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61pb"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61pb"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),gb=x({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),vb=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:!1},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),hb=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:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isHovered:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isOpen:!0},"_1yep5z61qi _1yep5z61tw"]]});function _b({allowsCustomValue:r,onValueChange:e,inputValue:t},o,a,n,i){let[s,l]=bt.useState(null),p=bt.useRef(!1);bt.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=!1);},[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=!1);}}),bt.useEffect(()=>{if(!e)return;let d=n.current,m=()=>{p.current=!0;};return d?.addEventListener("input",m),()=>{d?.removeEventListener("input",m);}},[n,e]),bt.useEffect(()=>{p.current=!1;},[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=!1):d.key==="Escape"&&o.close(),d.continuePropagation();}});return {inputProps:c}}var Cb=bt__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=!1,onSelectionChange:p,onInputChange:c,isInvalid:d=!1,labelPosition:m="top",validationState:u="valid",variant:y="primary",toggleLabel:b,renderOption:f,showIcon:g=!0,filter:v,minValue:h,maxValue:_,inputType:C="text",onInputSubmit:P,onValueChange:w,...z},k)=>{let T=reactAria.useObjectRef(k),{contains:R}=reactAria.useFilter({sensitivity:"base"}),N=se(),S=reactStately.useComboBoxState({...z,defaultFilter:v||R,defaultItems:s,onSelectionChange:p,onInputChange:c,children:N,validationState:d?"invalid":"valid"}),I=bt__default.default.useRef(null),M=bt__default.default.useRef(null),D=bt__default.default.useRef(null),j=bt__default.default.useRef(null),O=bt__default.default.useRef(null),{inputProps:V}=_b({onValueChange:w,allowsCustomValue:z.allowsCustomValue,inputValue:z.inputValue},S,T,M,j),{buttonProps:$,inputProps:F,listBoxProps:ee,labelProps:H,errorMessageProps:Z,descriptionProps:X,validationErrors:Re}=reactAria.useComboBox({...z,inputRef:M,defaultItems:s,buttonRef:I,listBoxRef:D,popoverRef:j,validationState:u==="error"?"invalid":"valid"},S),Te=z.errorMessage||Re.join(" "),_e=Ne({...z,errorMessage:Te,descriptionProps:X,errorMessageProps:Z,labelPosition:m});Te&&(u="error");let{hoverProps:Ae,isHovered:Ge}=reactAria.useHover({isDisabled:z.isDisabled}),{isFocused:ae,focusProps:me,isFocusVisible:Lt}=reactAria.useFocusRing(),Mt=rr({isReadOnly:z.isReadOnly,validationState:u}),Sr=utils.filterTruthyValues({"data-read-only":z.isReadOnly,"data-disabled":z.isDisabled,"data-validation-state":u,"data-focused":ae,"data-focus-visible":Lt}),{labelProps:Dt,fieldProps:Y}=reactAria.useLabel({label:i,"aria-label":z["aria-label"],"aria-labelledby":z["aria-labelledby"],"aria-describedby":z["aria-describedby"],"aria-details":z["aria-details"]}),{keyboardProps:q}=reactAria.useKeyboard({onKeyDown:W=>{z.allowsCustomValue&&W.key==="Enter"&&P?.(F.value?.toString()??"");}}),{focusProps:le}=reactAria.useFocus({onBlur:()=>{z.allowsCustomValue&&F.value&&P?.(F.value?.toString()??"");}});return jsxRuntime.jsx(gt.Provider,{value:S,children:jsxRuntime.jsxs("div",{className:utils.classNames(mb({labelPosition:m}),r,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:e,ref:T,children:[i||m==="start"&&_e?jsxRuntime.jsxs("div",{className:vb({labelPosition:m,hasMessage:!!_e}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(H,Dt),className:gb({isDisabled:z.isDisabled}),children:i}),m==="start"&&_e]}):null,jsxRuntime.jsxs("div",{...Ae,className:bb({validationState:u,isHovered:Ge,isFocused:ae,variant:y,isReadOnly:!!z.isReadOnly,isDisabled:!!z.isDisabled}),ref:O,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(F,V,me,Sr,Y,le,q,C==="number"?{type:"number",min:h,max:_,onKeyDown:W=>{(W.key==="ArrowUp"||W.key==="ArrowDown")&&W.preventDefault();}}:null),id:z.id,ref:M,className:utils.classNames(fb({isDisabled:z.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",o),style:t}),Mt&&g?jsxRuntime.jsx(Mt,{className:yb({validationState:u,isReadOnly:z.isReadOnly}),size:16}):null,jsxRuntime.jsx(G,{...$,ref:I,variant:"popover",label:b,className:hb({isFocusVisible:!z.isDisabled&&!z.isReadOnly&&Lt,isHovered:!z.isDisabled&&!z.isReadOnly&&Ge,isOpen:S.isOpen})})]}),jsxRuntime.jsx(Ce,{ref:j,triggerRef:O,state:S,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:jsxRuntime.jsx(de,{...ee,items:s,ref:D,renderOption:f,selectionMode:"single",showSelectedIcon:l,className:utils.classNames(at,"BaselineUI-ComboBox-ListBox")})}),m==="top"&&_e]})})});Cb.displayName="ComboBox";var xb=x({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]});var Js=bt__default.default.forwardRef(({enableReorder:r,...e},t)=>r?jsxRuntime.jsx(Pb,{ref:t,...e}):jsxRuntime.jsx(Qs,{ref:t,...e}));Js.displayName="GridListItem";var Qs=bt__default.default.forwardRef(({item:r,state:e,dropState:t,renderGridItem:o,dragHandleProps:a},n)=>{let i=re(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(At,{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(At,{target:{type:"item",key:r.key,dropPosition:"after"},dropState:t}):null]},r.key)});Qs.displayName="BaseGridListItem";var Pb=bt__default.default.forwardRef(({dragState:r,item:e,...t},o)=>{let a=reactAria.useDraggableItem({key:e.key,hasDragButton:!0},r);return jsxRuntime.jsx(Qs,{item:e,dragHandleProps:a,ref:o,...t})});Pb.displayName="DraggableGridListItem";var sN=r=>{r.key==="Enter"||r.key==="Escape"||r.stopPropagation();},kb=bt__default.default.forwardRef(({className:r,style:e,isEditing:t=!1,"data-block-id":o,"data-block-class":a,gridListHandle:n,onReorder:i,enableReorder:s=!1,layout:l="stack",orientation:p="vertical",renderGridItem:c,...d},m)=>{let u=se(),y=reactStately.useListState({...d,children:u}),b=bt__default.default.useRef(null),f=re(m),{gridProps:g}=reactAria.useGridList(d,y,f);Ho({handle:n,type:"gridlist"},y,f);let{collectionProps:v,dragState:h,dropState:_}=Ao({...d,onReorder:i,enableReorder:s,layout:l,orientation:p,preview:b,getItems:w=>[...w].map(z=>{let k=y.collection.getItem(z);return utils.invariant(k,"Expected item to be defined."),{key:k.key.toString()}})},y,f),C=t?sN:g.onKeyDownCapture,P={state:y,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":y.collection.size,onKeyDownCapture:C,children:[[...y.collection].map(w=>jsxRuntime.jsx(Js,{item:w,...P},w.key)),s?jsxRuntime.jsx(reactAria.DragPreview,{ref:b,children:w=>jsxRuntime.jsx(bn,{items:w,ulRef:f,containerClassName:".BaselineUI-GridList",previewClassName:xb(),itemDataAttribute:"data-grid-list-item-key"})}):null]})});kb.displayName="GridList";var Sb="_1yep5z6f5",Ib="_1dc3b8m0";var Rb=bt__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=re(p),d=se(),m=reactStately.useListState({...l,selectionMode:e,suppressTextValueWarning:!0,children:d}),{actionGroupProps:u}=actiongroup.useActionGroup({...l,selectionMode:e,children:d},m,c),y=[...m.collection].map(b=>(utils.invariant(b.value),jsxRuntime.jsx(bN,{item:b,state:m,isDisabled:l.isDisabled,onAction:l.onAction,tooltipProps:n,renderActionItem:s},b.key)));return i?jsxRuntime.jsxs(E,{...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,{size:24,className:Sb}),jsxRuntime.jsx(E,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:y})]}):jsxRuntime.jsx(E,{...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:y})});Rb.displayName="ActionGroup";var bN=({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=bt.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(ne,{text:r.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:o?.(r,{isSelected:l,isDisabled:s})||jsxRuntime.jsx(A,{variant:"tertiary",icon:p,"aria-label":r.textValue,size:"sm",isDisabled:s,className:utils.classNames({[Ib]:l},"BaselineUI-ActionGroup-Item")})})})};var Tb="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Nb="_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn";var Lb=bt__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":y,shouldFocusWrap:b,tooltip:f=!0,...g},v)=>{let h=bt.useMemo(()=>t.map(C=>({id:C.color,label:C.label})),[t]),_=reactAria.useId();return bt.useEffect(()=>{!a&&!g["aria-label"]&&!g["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,g]),jsxRuntime.jsxs(E,{...Rn(g),className:utils.classNames("BaselineUI-ColorSwatchPicker",r),"data-block-id":u,"data-block-class":y,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(E,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(J,{id:_,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(de,{className:utils.classNames(Nb,o),selectionMode:"single",items:h,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:p?h.map(C=>C.id):void 0,isDisabled:p,selectedKeys:i?[i]:void 0,onSelectionChange:C=>{l?.([...C][0]);},optionClassName:c,optionStyle:d,renderOption:({key:C,textValue:P},{isSelected:w,isFocusVisible:z,isDisabled:k,optionProps:T},R)=>jsxRuntime.jsx("li",{...T,"data-disabled":k,className:utils.classNames(Tb,T.className),ref:R,children:jsxRuntime.jsx(ct,{isFocusVisible:z,color:C,isSelected:w,"aria-label":P,isInteractive:!0,isDisabled:k,tooltip:f})}),shouldFocusWrap:b,...g,"aria-labelledby":a?_:g["aria-labelledby"]})]})});Lb.displayName="ColorSwatchPicker";var Mb="_10dw1p96",Db="_10dw1p95",Ab=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:!0,isSelected:!1,isRenaming:!1},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx"]]});function jb(r,e){if(typeof r=="function"&&!r.prototype?.isReactComponent){let t=r(e);return bt.isValidElement(t)?r:t}return r}var Fb=({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=y=>y.data.label})=>{let{formatMessage:y}=B(),{hoverProps:b,isHovered:f}=reactAria.useHover({}),g=bt.useRef(null),{onKeyDown:v,...h}=r.interactiveElementProps;delete h.onFocus,delete h.onClick;let _=focus.createFocusManager(g),C=bt.useCallback(S=>{if(S.key==="ArrowRight"&&(r.isExpanded||!o.children?.length))g.current?.setAttribute("tabindex","-1"),S.preventDefault(),S.stopPropagation(),_.focusNext();else switch(S.key){case"ArrowLeft":{_.focusPrevious()?(S.preventDefault(),S.stopPropagation()):(v?.(S),r.focusItem(!0));break}case"Enter":{r.toggleExpandedState();break}default:v?.(S);}},[r,_,v,o,g]),P=bt.useMemo(()=>{let S=jb(s,o.index),I=jb(l,o.index),M=typeof p=="function"?p(o.index):p,D=typeof c=="function"?c(o.index):c;return S||I?jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",children:[S?jsxRuntime.jsx(xe,{icon:S,"aria-label":M,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{a?.(o.index);},tooltip:!0}):null,I?jsxRuntime.jsx(xe,{icon:I,"aria-label":D,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{n?.(o.index);},tooltip:!0}):null]}):null},[s,o.index,l,p,c,a,n]),w=bt.useCallback(S=>{S.key==="Enter"?(d?.({key:o.index,value:S.target.value}),r.stopRenamingItem()):S.key==="Escape"?(r.stopRenamingItem(),g.current?.setAttribute("tabindex","0"),g.current?.focus()):S.key!=="ArrowRight"&&S.key!=="ArrowLeft"&&S.key!=="ArrowUp"&&S.key!=="ArrowDown"&&!S.metaKey&&S.continuePropagation();},[o.index,r,d,g]),z=o.data.icon,k=!!d,{pressProps:T}=reactAria.usePress({onPress:()=>{m?.(o.index);}}),{isFocusVisible:R,focusProps:N}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:C,onFocus:()=>{r.focusItem(!1);}},T,N,b,r.itemContainerWithoutChildrenProps,h),className:utils.classNames(Db,Ab({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(E,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?P:null,jsxRuntime.jsxs(E,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(E,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${e*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(A,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{r.toggleExpandedState();},"aria-label":y(r.isExpanded?al.collapse:al.expand),style:{visibility:o.children?.length?"visible":"hidden"},className:utils.classNames(Mb,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),z?jsxRuntime.jsx(z,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(E,{paddingLeft:"sm",paddingY:r.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:S=>{k&&(S.stopPropagation(),S.preventDefault(),r.startRenamingItem());},children:[r.isRenaming?jsxRuntime.jsx("div",{onClick:S=>{S.stopPropagation();},children:jsxRuntime.jsx(nt,{defaultValue:o.data.label,autoFocus:!0,onBlur:S=>{d?.({key:o.index,value:S.target.value}),r.stopRenamingItem();},"aria-label":y(al.rename),onKeyDown:w,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(J,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:u(o)}),o.data.description?jsxRuntime.jsx(J,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:o.data.description}):null]})]}),i==="end"?P:null]})}),t]})},al=K({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function HN(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 VN(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 Ub=bt__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:y,renderItemTitle:b,...f},g)=>{let v=se(),h=bt.useRef(null),_=reactStately.useTreeState({...f,selectionMode:"multiple",items:a.children,children:v}),C=bt.useMemo(()=>Object.fromEntries(Object.entries(VN(a,HN)).map(([R,N])=>[R,{...N,canRename:!!u}])),[a,u]),P=reactAria.useId(),[w,z]=bt__default.default.useState(a.children?.[0]?.id??""),k=bt.useRef(w),T=bt.useMemo(()=>({[`tree-${P}`]:{focusedItem:w,expandedItems:[..._.expandedKeys],selectedItems:[..._.selectionManager.selectedKeys]}}),[w,_.expandedKeys,_.selectionManager.selectedKeys,P]);return bt.useEffect(()=>{if(!h.current)return;let R=h.current.getRootNode(),N=R instanceof ShadowRoot,S=h.current?.contains(R?.activeElement??null);N&&S&&R?.querySelector(`[data-rct-item-id="${w}"]`)?.focus();},[w]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:C,getItemTitle:R=>R.data?.label,viewState:T,onExpandItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys,R.index])),f.onExpand?.(R.index.toString());},onFocusItem:R=>{z(R.index),R.index&&(k.current=R.index);},onCollapseItem:R=>{_.setExpandedKeys(new Set([..._.expandedKeys].filter(N=>N!==R.index))),f.onCollapse?.(R.index.toString());},onSelectItems:R=>{_.selectionManager.setSelectedKeys(new Set(R));},renderItem:R=>jsxRuntime.jsx(Fb,{...R,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:l,secondaryActionIcon:p,primaryActionAriaLabel:c,secondaryActionAriaLabel:d,onRename:u,onAction:y,renderItemTitle:b}),renderLiveDescriptorContainer:({children:R})=>jsxRuntime.jsx(be,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:R})}),renderTreeContainer:({containerProps:R,children:N})=>jsxRuntime.jsx("div",{...Xe(R,{onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||S.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:L(g,R.ref,h),role:"treegrid",children:N}),renderItemsContainer:({children:R})=>R,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${P}`,rootItem:n,treeLabel:f["aria-label"],treeLabelledBy:f["aria-labelledby"]})})});Ub.displayName="TreeView";var XN=bt.forwardRef(({className:r,isCollapsible:e=!1,...t},o)=>{let a=bt.useRef(null),n=reactAria.useId();return bt.useImperativeHandle(o,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",r),collapsible:e,ref:a,id:n,...t})});XN.displayName="Panel";var rE=bt.forwardRef(({className:r,...e},t)=>{let o=bt.useRef(null);return bt.useImperativeHandle(t,()=>({setLayout:o.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",r),ref:o,...e})});rE.displayName="PanelGroup";var qb="_6abhjk0";var iE=({className:r,isDisabled:e=!1,...t})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:e,className:utils.classNames(qb,"BaselineUI-PanelResizeHandle",r),...t});iE.displayName="PanelResizeHandle";var Kb=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:[]}),Gb="_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n";var uE=()=>{};function mE({state:r,...e}){let t=bt__default.default.useRef(null),{toastProps:o,contentProps:a,titleProps:n,descriptionProps:i,closeButtonProps:s}=toast$1.useToast(e,r,t),l=bt.useMemo(()=>({root:o,title:n,content:a,description:i,close:s}),[o,n,a,i,s]),{canClose:p=!0,...c}=e.toast.content;return jsxRuntime.jsx(Da,{elementProps:l,...c,className:utils.classNames(Kb({variant:c.variant||"info"}),c.className),onClose:p?uE:void 0})}var Xb=bt__default.default.forwardRef(({state:r,style:e,className:t,...o},a)=>{let n=re(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(Gb,t),style:s,children:r.visibleToasts.map(l=>jsxRuntime.jsx(mE,{toast:l,state:r},l.key))})});Xb.displayName="ToastRegion";var Yb=bt__default.default.forwardRef(({toastQueue:r,portalContainer:e,...t},o)=>{let a=toast.useToastQueue(r),n=ye(e);return a.visibleToasts.length>0?jsxRuntime.jsx(be,{portalContainer:n,ref:o,children:jsxRuntime.jsx(Xb,{state:a,...t})}):null});Yb.displayName="GlobalToastRegion";var Zb={x:0,y:0},bE={node:null,setNode:()=>{},coordinates:Zb,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:!1},Ke=bt__default.default.createContext(bE),Jb=({children:r,isDisabled:e=!1,coordinates:t,onMove:o})=>{let[a,n]=bt__default.default.useState(null),i=bt__default.default.useRef(null),[s,l]=utils$1.useControlledState(t,Zb,d=>{o?.({coordinates:d,boundingRect:i.current});}),p=reactAria.useId(),c=bt__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(Ke.Provider,{value:c,children:r})};Jb.displayName="Magnifier";var Qb="_1yep5z6f6",eg=x({defaultClassName:"_1aj2a4v6",variantClassNames:{isDisabled:{true:"_1aj2a4v7",false:"_1aj2a4v8"},isIndicatorVisible:{true:"_1aj2a4v9",false:"_1aj2a4va"}},defaultVariants:{},compoundVariants:[[{isDisabled:!1,isIndicatorVisible:!0},"_1aj2a4vb"],[{isDisabled:!1,isIndicatorVisible:!1},"_1aj2a4vc"]]}),tg="_1aj2a4vd",rg="_1aj2a4v1",og="_1aj2a4v4",il="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",ag="_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",ng="_1aj2a4v0",ig="_1aj2a4v5";var lg=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 pg({coordinates:r,setCoordinates:e,boundsRef:t,onKeyDown:o,onKeyUp:a}){let{isDisabled:n}=bt.useContext(Ke);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 dg=bt__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:y,coordinates:b,displayId:f,boundsRef:g,isDisabled:v}=bt.useContext(Ke),h=bt.useRef(null),[_,C]=bt.useState(!1),P=interactions.useInteractionModality(),w=Ee();bt.useEffect(()=>{let D=h.current;if(!D||v)return;let j=V=>{let $=D.getBoundingClientRect();g.current=$;let F="clientX"in V?V.clientX:V.touches[0].clientX,ee="clientY"in V?V.clientY:V.touches[0].clientY,H={x:lodash.clamp(F-$.left,0,$.width),y:lodash.clamp(ee-$.top,0,$.height)};y(H),C(!0);},O=()=>{C(!1);};return D.addEventListener("mousemove",j),D.addEventListener("touchmove",j),D.addEventListener("mouseleave",O),()=>{D.removeEventListener("mousemove",j),D.removeEventListener("touchmove",j),D.removeEventListener("mouseleave",O);}},[y,g,v]);let{pressProps:z}=reactAria.usePress({isDisabled:v,onPress:D=>{D.pointerType==="keyboard"?e?.({...D,x:b.x,y:b.y}):e?.(D);}}),{focusProps:k,isFocusVisible:T,isFocused:R}=reactAria.useFocusRing(),{focusProps:N}=interactions.useFocus({isDisabled:v,onFocusChange:D=>{if(P==="keyboard")if(D){C(!0);let j=h.current?.getBoundingClientRect();if(!j)return;g.current=j,y({x:lodash.clamp(j.width/2,0,j.width),y:lodash.clamp(j.height/2,0,j.height)});}else C(!1);i?.(D);},onFocus:l,onBlur:s}),{keyboardProps:S}=pg({coordinates:b,setCoordinates:y,boundsRef:g,onKeyDown:p,onKeyUp:c}),I=bt.useMemo(()=>h.current?utils.getAbsolutePosition(h.current,b):{x:0,y:0},[b]);interactions.useInteractOutside({isDisabled:v,ref:h,onInteractOutside:()=>{C(!1);}});let M=bt.useMemo(()=>_&&!v&&(w==="mobile"||P==="keyboard"),[_,v,w,P]);return jsxRuntime.jsxs("div",{ref:L(m,h),className:utils.classNames(tg,"BaselineUI-Magnifier-Content",t),style:o,"data-block-id":a,"data-block-class":n,"aria-controls":f,role:"application",...d,children:[M?jsxRuntime.jsx(be,{children:jsxRuntime.jsx(lg,{style:{left:I.x,top:I.y},className:utils.classNames(ng,"BaselineUI-Magnifier-Cursor")})}):null,jsxRuntime.jsx("div",{...Xe(z,k,S,N),ref:u,className:utils.classNames(eg({isDisabled:v,isIndicatorVisible:M}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":T,"data-focused":R,tabIndex:v?void 0:0,children:r})]})});dg.displayName="MagnifierContent";function AE(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 ug(r){let[e,t]=bt.useState(null),{isDisabled:o}=bt.useContext(Ke);return bt.useEffect(()=>{if(!r||o)return;let a=r,n=te(a);function i(){let p=n.getComputedStyle(a),c=a.cloneNode(!0);c.style.cssText=AE(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:!0,childList:!0,subtree:!0,characterData:!0}),()=>{s.disconnect(),l.disconnect();}},[r,o]),e}var fg=8,yg=7,bg=7,gg=bt__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}=bt.useContext(Ke),m=ug(l),u=bt.useMemo(()=>typeof t=="function"?t({coordinates:{x:s.x,y:s.y},boundingRect:p.current}):t,[t,s,p]),y=bt.useMemo(()=>p.current?{x:s.x/p.current.width,y:s.y/p.current.height}:{x:0,y:0},[p,s]);return jsxRuntime.jsxs(E,{ref:i,className:utils.classNames(rg,"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:ag,children:[m&&!d?jsxRuntime.jsx(Yo,{node:m,style:{transform:`scale(${o}) translate(calc(-${y.x*100}% + ${fg*yg/(2*o)}px), calc(-${y.y*100}% + ${fg*bg/(2*o)}px))`},className:utils.classNames(ig,"BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:yg*bg}).map((b,f)=>f===24?jsxRuntime.jsx("div",{className:utils.classNames(il,og)},f):jsxRuntime.jsx("div",{className:il},f))]}),u?.length?jsxRuntime.jsx(E,{display:"flex",gap:"lg",flexDirection:"column",children:u?.map(({label:b,icon:f},g)=>jsxRuntime.jsxs(E,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[jsxRuntime.jsx(f,{size:12,className:Qb}),jsxRuntime.jsx(J,{type:"label",size:"sm",children:b})]},b+g))}):null]})});gg.displayName="MagnifierDisplay";
|
|
43
|
-
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=Zu;exports.AccordionItem=am;exports.ActionButton=G;exports.ActionGroup=Rb;exports.ActionGroupItem=bN;exports.ActionIconButton=A;exports.AlertDialog=mn;exports.AudioPlayer=U1;exports.Avatar=pr;exports.Box=E;exports.ButtonSelect=ub;exports.Checkbox=hu;exports.ColorInput=ur;exports.ColorSwatch=ct;exports.ColorSwatchPicker=Lb;exports.ComboBox=Cb;exports.DateFormat=Tu;exports.Dialog=ve;exports.DialogTitle=Qc;exports.DomNodeRenderer=Yo;exports.Drawer=da;exports.Editor=x1;exports.FileUpload=Vd;exports.Focusable=pa;exports.FrameProvider=d_;exports.FreehandCanvas=Bf;exports.GlobalToastRegion=Yb;exports.GridList=kb;exports.Group=my;exports.I18nProvider=Ip;exports.IconColorInput=Rf;exports.IconColorInputButton=Ga;exports.IconSelect=um;exports.IconSlider=sd;exports.ImageDropZone=Zf;exports.ImageGallery=sb;exports.InlineAlert=Da;exports.Link=Ld;exports.ListBox=de;exports.Magnifier=Jb;exports.MagnifierContent=dg;exports.MagnifierDisplay=gg;exports.Markdown=M1;exports.Menu=Ca;exports.MessageFormat=uy;exports.Modal=Le;exports.ModalClose=RP;exports.ModalContent=He;exports.ModalTrigger=Aa;exports.NumberFormat=or;exports.NumberInput=Fe;exports.Pagination=Ru;exports.Panel=XN;exports.PanelGroup=rE;exports.PanelResizeHandle=iE;exports.Popover=Oe;exports.PopoverContent=Me;exports.PopoverTrigger=je;exports.Portal=be;exports.PortalContainerProvider=Qo;exports.Preview=ry;exports.ProgressBar=Zd;exports.ProgressSpinner=nr;exports.RadioGroup=dy;exports.Reaction=nu;exports.ScrollControlButton=I1;exports.SearchInput=Cd;exports.Select=lt;exports.Separator=U;exports.Slider=Kt;exports.Switch=gd;exports.TabItem=Sm;exports.Tabs=km;exports.TagGroup=Fu;exports.Text=J;exports.TextInput=nt;exports.ThemeProvider=la;exports.ToggleButton=Sa;exports.ToggleIconButton=xe;exports.Toolbar=en;exports.Tooltip=ne;exports.Transform=Gf;exports.TreeView=Ub;exports.defineMessages=K;exports.disableAnimations=rB;exports.enableAnimations=oB;exports.isInsideOverlayContent=GM;exports.isRect=ep;exports.useDevice=Ee;exports.useI18n=B;exports.useImage=Ht;exports.useIntersectionObserver=Cp;exports.useIsFirstRender=ra;exports.useLocalStorage=Lp;exports.useMutationObserver=Y8;exports.usePortalContainer=ye;exports.useResizeObserver=xp;exports.useTextSelection=oA;exports.useUndoRedo=wp;exports.useUserPreferences=Gn;
|
|
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;
|