@gamecrafters/base-ui 0.0.5 → 0.0.6
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/build/components/blockquote/Blockquote.d.ts +10 -0
- package/build/components/blockquote/Blockquote.types.d.ts +9 -0
- package/build/components/blockquote/index.d.ts +2 -0
- package/build/components/em/Em.d.ts +10 -0
- package/build/components/em/Em.types.d.ts +9 -0
- package/build/components/em/index.d.ts +2 -0
- package/build/components/image/Image.d.ts +11 -0
- package/build/components/image/Image.types.d.ts +10 -0
- package/build/components/image/index.d.ts +2 -0
- package/build/components/index.d.ts +3 -0
- package/build/main.cjs.js +1 -1
- package/build/main.esm.js +1 -1
- package/build/styles/main.css +1 -1
- package/package.json +1 -1
package/build/main.cjs.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/function g(){return m||(m=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case v:return"Profiler";case f:return"StrictMode";case w:return"Suspense";case N:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case x:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case y:var a=e.render;return(e=e.displayName)||(e=""!==(e=a.displayName||a.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(a=e.displayName||null)?a:t(e.type)||"Memo";case k:a=e._payload,e=e._init;try{return t(e(a))}catch(e){}}return null}function a(e){return""+e}function n(e){try{a(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),a(e)}}function i(e){if(e===g)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var a=t(e);return a?"<"+a+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function o(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,a,i,r,s,c){var u,p=a.children;if(void 0!==p)if(r)if(A(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(p);if(M.call(a,"key")){p=t(e);var h=Object.keys(a).filter(function(e){return"key"!==e});r=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",P[p+r]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',r,p,h,p),P[p+r]=!0)}if(p=null,void 0!==i&&(n(i),p=""+i),function(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(a)&&(n(a.key),p=""+a.key),"key"in a)for(var g in i={},a)"key"!==g&&(i[g]=a[g]);else i=a;return p&&function(e,t){function a(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,a,n,i,r){var s=a.ref;return e={$$typeof:m,type:e,key:t,props:a,_owner:n},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,i,null===(u=O.A)?null:u.getOwner(),s,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,A=Array.isArray,T=console.createTask?console.createTask:function(){return null},I={},D=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),L=T(i(r)),P={};h.Fragment=g,h.jsx=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!1,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)},h.jsxs=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!0,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)}}()),h}var f=(p||(p=1,"production"===process.env.NODE_ENV?d.exports=function(){if(c)return u;c=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(t,a,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==a.key&&(i=""+a.key),"key"in a)for(var r in n={},a)"key"!==r&&(n[r]=a[r]);else n=a;return a=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==a?a:null,props:n}}return u.Fragment=t,u.jsx=a,u.jsxs=a,u}():d.exports=g()),d.exports);const v=!("undefined"==typeof window||!window.document||!window.document.createElement),b=e.version.split("."),x=parseInt(b[0],10),y=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(e.version),w=x>=19||y,N=(t,a)=>e.useCallback(e=>{const n=j(t,e),i=j(a,e);if(w)return()=>{n?n():j(t,null),i?i():j(a,null)}},[t,a]),j=(e,t)=>{if("function"==typeof e)return e(t);e&&(e.current=t)};function k(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=k(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function C(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=k(e))&&(n&&(n+=" "),n+=t);return n}const S=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),O="-",M=[],A=e=>{const t=D(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return I(e);const a=e.split(O),n=""===a[0]&&a.length>1?1:0;return T(a,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],i=a[e];return t?i?((e,t)=>{const a=new Array(e.length+t.length);for(let t=0;t<e.length;t++)a[t]=e[t];for(let n=0;n<t.length;n++)a[e.length+n]=t[n];return a})(i,t):t:i||M}return a[e]||M}}},T=(e,t,a)=>{if(0===e.length-t)return a.classGroupId;const n=e[t],i=a.nextPart.get(n);if(i){const a=T(e,t+1,i);if(a)return a}const r=a.validators;if(null===r)return;const o=0===t?e.join(O):e.slice(t).join(O),s=r.length;for(let e=0;e<s;e++){const t=r[e];if(t.validator(o))return t.classGroupId}},I=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),n=t.slice(0,a);return n?"arbitrary.."+n:void 0})(),D=e=>{const{theme:t,classGroups:a}=e;return L(a,t)},L=(e,t)=>{const a=S();for(const n in e){const i=e[n];P(i,a,n,t)}return a},P=(e,t,a,n)=>{const i=e.length;for(let r=0;r<i;r++){const i=e[r];E(i,t,a,n)}},E=(e,t,a,n)=>{"string"!=typeof e?"function"!=typeof e?R(e,t,a,n):$(e,t,a,n):z(e,t,a)},z=(e,t,a)=>{(""===e?t:B(t,e)).classGroupId=a},$=(e,t,a,n)=>{V(e)?P(e(n),t,a,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(a,e)))},R=(e,t,a,n)=>{const i=Object.entries(e),r=i.length;for(let e=0;e<r;e++){const[r,o]=i[e];P(o,B(t,r),a,n)}},B=(e,t)=>{let a=e;const n=t.split(O),i=n.length;for(let e=0;e<i;e++){const t=n[e];let i=a.nextPart.get(t);i||(i=S(),a.nextPart.set(t,i)),a=i}return a},V=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),n=Object.create(null);const i=(i,r)=>{a[i]=r,t++,t>e&&(t=0,n=a,a=Object.create(null))};return{get(e){let t=a[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in a?a[e]=t:i(e,t)}}},F=[],H=(e,t,a,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:n,isExternal:i}),W=e=>{const{prefix:t,experimentalParseClassName:a}=e;let n=e=>{const t=[];let a,n=0,i=0,r=0;const o=e.length;for(let s=0;s<o;s++){const o=e[s];if(0===n&&0===i){if(":"===o){t.push(e.slice(r,s)),r=s+1;continue}if("/"===o){a=s;continue}}"["===o?n++:"]"===o?n--:"("===o?i++:")"===o&&i--}const s=0===t.length?e:e.slice(r);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return H(t,c,l,a&&a>r?a-r:void 0)};if(t){const e=t+":",a=n;n=t=>t.startsWith(e)?a(t.slice(e.length)):H(F,!1,t,void 0,!0)}if(a){const e=n;n=t=>a({className:t,parseClassName:e})}return n},G=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,a)=>{t.set(e,1e6+a)}),e=>{const a=[];let n=[];for(let i=0;i<e.length;i++){const r=e[i],o="["===r[0],s=t.has(r);o||s?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(r)):n.push(r)}return n.length>0&&(n.sort(),a.push(...n)),a}},K=e=>{const t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let e=0;e<a.length;e++)t[a[e]]=!0;return t},q=/\s+/,U=e=>{if("string"==typeof e)return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=U(e[n]))&&(a&&(a+=" "),a+=t);return a},Y=(e,...t)=>{let a,n,i,r;const o=e=>{const t=n(e);if(t)return t;const r=((e,t)=>{const{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:r,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(q);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=a(t);if(d){c=t+(c.length>0?" "+c:c);continue}let g,f=!!h;if(f){g=n(p.substring(0,h));const e=g&&o[g]?n(p):void 0;e&&e!==g&&(g=e,f=!1)}else g=n(p);if(!g){if(!f){c=t+(c.length>0?" "+c:c);continue}if(g=n(p),!g){c=t+(c.length>0?" "+c:c);continue}f=!1}const v=0===u.length?"":1===u.length?u[0]:r(u).join(":"),b=m?v+"!":v,x=b+g;if(s.indexOf(x)>-1)continue;s.push(x);const y=i(g,f);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?" "+c:c)}return c})(e,a);return i(e,r),r};return r=s=>{const l=t.reduce((e,t)=>t(e),e());return a=(e=>({cache:_(e.cacheSize),parseClassName:W(e),sortModifiers:G(e),postfixLookupClassGroupIds:K(e),...A(e)}))(l),n=a.cache.get,i=a.cache.set,r=o,o(s)},(...e)=>r(((...e)=>{let t,a,n=0,i="";for(;n<e.length;)(t=e[n++])&&(a=U(t))&&(i&&(i+=" "),i+=a);return i})(...e))},Z=[],Q=e=>{const t=t=>t[e]||Z;return t.isThemeGetter=!0,t},X=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ee=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,te=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,re=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>ee.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&se(e.slice(0,-1)),de=e=>te.test(e),ue=()=>!0,me=e=>ae.test(e)&&!ne.test(e),pe=()=>!1,he=e=>ie.test(e),ge=e=>re.test(e),fe=e=>!xe(e)&&!Oe(e),ve=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),be=e=>Ee(e,Be,pe),xe=e=>X.test(e),ye=e=>Ee(e,Ve,me),we=e=>Ee(e,_e,se),Ne=e=>Ee(e,He,ue),je=e=>Ee(e,Fe,pe),ke=e=>Ee(e,$e,pe),Ce=e=>Ee(e,Re,ge),Se=e=>Ee(e,We,he),Oe=e=>J.test(e),Me=e=>ze(e,Ve),Ae=e=>ze(e,Fe),Te=e=>ze(e,$e),Ie=e=>ze(e,Be),De=e=>ze(e,Re),Le=e=>ze(e,We,!0),Pe=e=>ze(e,He,!0),Ee=(e,t,a)=>{const n=X.exec(e);return!!n&&(n[1]?t(n[1]):a(n[2]))},ze=(e,t,a=!1)=>{const n=J.exec(e);return!!n&&(n[1]?t(n[1]):a)},$e=e=>"position"===e||"percentage"===e,Re=e=>"image"===e||"url"===e,Be=e=>"length"===e||"size"===e||"bg-size"===e,Ve=e=>"length"===e,_e=e=>"number"===e,Fe=e=>"family-name"===e,He=e=>"number"===e||"weight"===e,We=e=>"shadow"===e,Ge=()=>{const e=Q("color"),t=Q("font"),a=Q("text"),n=Q("font-weight"),i=Q("tracking"),r=Q("leading"),o=Q("breakpoint"),s=Q("container"),l=Q("spacing"),c=Q("radius"),d=Q("shadow"),u=Q("inset-shadow"),m=Q("text-shadow"),p=Q("drop-shadow"),h=Q("blur"),g=Q("perspective"),f=Q("aspect"),v=Q("ease"),b=Q("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Oe,xe],y=()=>[Oe,xe,l],w=()=>[oe,"full","auto",...y()],N=()=>[le,"none","subgrid",Oe,xe],j=()=>["auto",{span:["full",le,Oe,xe]},le,Oe,xe],k=()=>[le,"auto",Oe,xe],C=()=>["auto","min","max","fr",Oe,xe],S=()=>["auto",...y()],O=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[oe,"screen","full","dvw","lvw","svw","min","max","fit",...y()],A=()=>[oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],T=()=>[e,Oe,xe],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Te,ke,{position:[Oe,xe]}],D=()=>["auto","cover","contain",Ie,be,{size:[Oe,xe]}],L=()=>[ce,Me,ye],P=()=>["","none","full",c,Oe,xe],E=()=>["",se,Me,ye],z=()=>[se,ce,Te,ke],$=()=>["","none",h,Oe,xe],R=()=>["none",se,Oe,xe],B=()=>["none",se,Oe,xe],V=()=>[se,Oe,xe],_=()=>[oe,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[de],breakpoint:[de],color:[ue],container:[de],"drop-shadow":[de],ease:["in","out","in-out"],font:[fe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[de],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[de],shadow:[de],spacing:["px",se],text:[de],"text-shadow":[de],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,xe,Oe,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Oe,xe]}],"container-named":[ve],columns:[{columns:[se,xe,Oe,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",Oe,xe]}],basis:[{basis:[oe,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,oe,"auto","initial","none",xe]}],grow:[{grow:["",se,Oe,xe]}],shrink:[{shrink:["",se,Oe,xe]}],order:[{order:[le,"first","last","none",Oe,xe]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...A()]}],"min-block-size":[{"min-block":["auto",...A()]}],"max-block-size":[{"max-block":["none",...A()]}],w:[{w:[s,"screen",...O()]}],"min-w":[{"min-w":[s,"screen","none",...O()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",a,Me,ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Pe,Ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,xe]}],"font-family":[{font:[Ae,je,t]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Oe,xe]}],"line-clamp":[{"line-clamp":[se,"none",Oe,we]}],leading:[{leading:[r,...y()]}],"list-image":[{"list-image":["none",Oe,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",Oe,ye]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[se,"auto",Oe,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[le,Oe,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,Oe,xe],radial:["",Oe,xe],conic:[le,Oe,xe]},De,Ce]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-bs":[{"border-bs":E()}],"border-w-be":[{"border-be":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[se,Oe,xe]}],"outline-w":[{outline:["",se,Me,ye]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,Le,Se]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",u,Le,Se]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[se,ye]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",m,Le,Se]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[se,Oe,xe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":z()}],"mask-image-linear-to-pos":[{"mask-linear-to":z()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":z()}],"mask-image-t-to-pos":[{"mask-t-to":z()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":z()}],"mask-image-r-to-pos":[{"mask-r-to":z()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":z()}],"mask-image-b-to-pos":[{"mask-b-to":z()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":z()}],"mask-image-l-to-pos":[{"mask-l-to":z()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":z()}],"mask-image-x-to-pos":[{"mask-x-to":z()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":z()}],"mask-image-y-to-pos":[{"mask-y-to":z()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Oe,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":z()}],"mask-image-radial-to-pos":[{"mask-radial-to":z()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":z()}],"mask-image-conic-to-pos":[{"mask-conic-to":z()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,xe]}],filter:[{filter:["","none",Oe,xe]}],blur:[{blur:$()}],brightness:[{brightness:[se,Oe,xe]}],contrast:[{contrast:[se,Oe,xe]}],"drop-shadow":[{"drop-shadow":["","none",p,Le,Se]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",se,Oe,xe]}],"hue-rotate":[{"hue-rotate":[se,Oe,xe]}],invert:[{invert:["",se,Oe,xe]}],saturate:[{saturate:[se,Oe,xe]}],sepia:[{sepia:["",se,Oe,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,xe]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[se,Oe,xe]}],"backdrop-contrast":[{"backdrop-contrast":[se,Oe,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,Oe,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,Oe,xe]}],"backdrop-invert":[{"backdrop-invert":["",se,Oe,xe]}],"backdrop-opacity":[{"backdrop-opacity":[se,Oe,xe]}],"backdrop-saturate":[{"backdrop-saturate":[se,Oe,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",se,Oe,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",Oe,xe]}],ease:[{ease:["linear","initial",v,Oe,xe]}],delay:[{delay:[se,Oe,xe]}],animate:[{animate:["none",b,Oe,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Oe,xe]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[Oe,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_()}],"translate-x":[{"translate-x":_()}],"translate-y":[{"translate-y":_()}],"translate-z":[{"translate-z":_()}],"translate-none":["translate-none"],zoom:[{zoom:[le,Oe,xe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe,xe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[se,Me,ye,we]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ke=(e,t,a)=>{void 0!==a&&(e[t]=a)},qe=(e,t)=>{if(t)for(const a in t)Ke(e,a,t[a])},Ue=(e,t)=>{if(t)for(const a in t)Ye(e,t,a)},Ye=(e,t,a)=>{const n=t[a];void 0!==n&&(e[a]=e[a]?e[a].concat(n):n)},Ze=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Qe=C,Xe=(e,t)=>a=>{var n;if(null==(null==t?void 0:t.variants))return Qe(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:i,defaultVariants:r}=t,o=Object.keys(i).map(e=>{const t=null==a?void 0:a[e],n=null==r?void 0:r[e];if(null===t)return null;const o=Ze(t)||Ze(n);return i[e][o]}),s=a&&Object.entries(a).reduce((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:a,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...r,...s}[t]):{...r,...s}[t]===a})?[...e,a,n]:e},[]);return Qe(e,o,l,null==a?void 0:a.class,null==a?void 0:a.className)},Je=((e,...t)=>"function"==typeof e?Y(Ge,e,...t):Y(()=>((e,{cacheSize:t,prefix:a,experimentalParseClassName:n,extend:i={},override:r={}})=>(Ke(e,"cacheSize",t),Ke(e,"prefix",a),Ke(e,"experimentalParseClassName",n),qe(e.theme,r.theme),qe(e.classGroups,r.classGroups),qe(e.conflictingClassGroups,r.conflictingClassGroups),qe(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Ke(e,"postfixLookupClassGroups",r.postfixLookupClassGroups),Ke(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),Ue(e.theme,i.theme),Ue(e.classGroups,i.classGroups),Ue(e.conflictingClassGroups,i.conflictingClassGroups),Ue(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ye(e,i,"postfixLookupClassGroups"),Ye(e,i,"orderSensitiveModifiers"),e))(Ge(),e),...t))({extend:{classGroups:{typography:["text-body-large","text-body-medium","text-body-small","text-caption","text-code-block","text-code-inline","text-display","text-subtitle","text-title-large","text-title-medium","text-title-small"],textSize:["text-size-large","text-size-medium","text-size-small"],textWeight:["text-weight-light","text-weight-normal","text-weight-medium","text-weight-semibold"],animate:["shimmer"],duration:["duration-micro","duration-short","duration-medium","duration-long"],ease:["ease-enter","ease-exit","ease-hover","ease-move"],z:["z-behind","z-default","z-dropdown","z-modal","z-overlay","z-popover","z-skip-link","z-sticky"]}}}),et=(...e)=>Je(C(e)),tt=e.forwardRef,at=e.createContext({}),nt="accordion";function it(e,t){const a=e,{as:n="div",className:i,value:r,defaultValue:l,onChange:c,multiple:d=!1,disabled:u,headingLevel:m="h3",onKeyDown:p}=a,h=s(a,["as","className","value","defaultValue","onChange","multiple","disabled","headingLevel","onKeyDown"]),g=o.useRef(null),v=N(t,g),b=void 0!==r,[x,y]=o.useState(()=>null!=l?l:[]),w=b?r:x;return f.jsx(at.Provider,{value:{open:w,toggle:e=>{const t=w.includes(e)?w.filter(t=>t!==e):d?[...w,e]:[e];b||y(t),null==c||c(t)},disabled:u,headingLevel:m},children:f.jsx(n,Object.assign({ref:v,className:et(nt,i),onKeyDown:e=>{null==p||p(e);const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,a="Home"===e.key||"End"===e.key;if(e.defaultPrevented||0===t&&!a)return;const n=(i=g.current)?Array.from(i.querySelectorAll("[data-component='Accordion.HeaderButton']:not([disabled])")).filter(e=>e.closest("[data-component='Accordion']")===i):[];var i;const r=n.indexOf(document.activeElement);-1!==r&&(e.preventDefault(),(a?n["Home"===e.key?0:n.length-1]:n[(r+t+n.length)%n.length]).focus())},"data-component":"Accordion","data-multiple":d,"data-disabled":Boolean(u)},h))})}it.displayName="Accordion";var rt=tt(it);function ot(t,a,n){const i=n(),r=Object.keys(i),o=e.forwardRef(({"aria-label":t,"aria-labelledby":n,tabIndex:o,className:s="",fill:l="currentColor",size:c=16,id:d,title:u,style:m,...p},h)=>{const g=c,f=function(e,t){const a=e.map(e=>parseInt(e,10)).reduce((e,a)=>a<=t?a:e,parseInt(e[0],10));return a.toString()}(r,g),v=i[f].width,b=g*(v/parseInt(f,10)),x=i[f].path,y=t||n,w=y?"img":void 0,N=`${a} ${s}`.trim();return e.createElement("svg",{ref:h,...p,"aria-hidden":y?void 0:"true",tabIndex:o,focusable:(o??-1)>=0?"true":"false","aria-label":t,"aria-labelledby":n,className:N,role:w,viewBox:`0 0 ${v} ${f}`,width:b,height:g,fill:l,id:d,display:"inline-block",overflow:"visible",style:m},u?e.createElement("title",null,u):null,x)});return o.displayName=t,o}const st=ot("AddRegular","icon icon-add-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75"})}})),lt=ot("ArchiveRegular","icon icon-archive-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z"})}})),ct=ot("ArrowClockwiseRegular","icon icon-arrow-clockwise-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2"})}})),dt=ot("ArrowLeftRegular","icon icon-arrow-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z"})}})),ut=ot("ArrowSortDownRegular","icon icon-arrow-sort-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z"})}})),mt=ot("ArrowSortUpRegular","icon icon-arrow-sort-up-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z"})}})),pt=ot("ArrowUploadRegular","icon icon-arrow-upload-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743"})}})),ht=ot("BranchRegular","icon icon-branch-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0"})}})),gt=ot("CalendarLtrRegular","icon icon-calendar-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75"})}})),ft=ot("CheckmarkCircleRegular","icon icon-checkmark-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z"})}})),vt=ot("CheckmarkRegular","icon icon-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"})}})),bt=ot("ChevronDownRegular","icon icon-chevron-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"})}})),xt=ot("ChevronLeftRegular","icon icon-chevron-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0"})}})),yt=ot("ChevronRightRegular","icon icon-chevron-right-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"})}})),wt=ot("ChevronUpDownRegular","icon icon-chevron-up-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.54 2.23a.75.75 0 0 0-1.08 0l-6.25 6.5a.75.75 0 1 0 1.08 1.04L12 3.832l5.71 5.938a.75.75 0 1 0 1.08-1.04zm0 19.54a.75.75 0 0 1-1.08 0l-6.25-6.5a.75.75 0 1 1 1.08-1.04L12 20.168l5.71-5.938a.75.75 0 1 1 1.08 1.04z"})}})),Nt=ot("CircleHintRegular","icon icon-circle-hint-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49"})}})),jt=ot("ClockRegular","icon icon-clock-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z"})}})),kt=ot("DismissCircleRegular","icon icon-dismiss-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072"})}})),Ct=ot("DismissRegular","icon icon-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z"})}})),St=ot("DocumentRegular","icon icon-document-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z"})}})),Ot=ot("ErrorCircleRegular","icon icon-error-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751"})}})),Mt=ot("FilterDismissRegular","icon icon-filter-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z"})}})),At=ot("FolderOpenRegular","icon icon-folder-open-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124"})}})),Tt=ot("FolderRegular","icon icon-folder-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z"})}})),It=ot("InfoRegular","icon icon-info-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Dt=ot("MergeRegular","icon icon-merge-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75"})}})),Lt=ot("MoreHorizontalRegular","icon icon-more-horizontal-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5"})}})),Pt=ot("PauseRegular","icon icon-pause-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z"})}})),Et=ot("PlayRegular","icon icon-play-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z"})}})),zt=ot("ProhibitedRegular","icon icon-prohibited-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5"})}})),$t=ot("RecordRegular","icon icon-record-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0"})}})),Rt=ot("SearchRegular","icon icon-search-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0"})}})),Bt=ot("ShieldCheckmarkRegular","icon icon-shield-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708"})}})),Vt=ot("ShieldDismissRegular","icon icon-shield-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22"})}})),_t=ot("ShieldErrorRegular","icon icon-shield-error-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Ft=ot("ShieldRegular","icon icon-shield-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8"})}})),Ht=ot("WarningRegular","icon icon-warning-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5"})}})),Wt=e.createContext({}),Gt="accordion-header",Kt="accordion-header-button",qt="accordion-header-button-disabled",Ut="min-w-0",Yt="accordion-header-indicator",Zt="rotate-180";function Qt(e,t){var a;const{className:n,children:i,headingLevel:r}=e,l=s(e,["className","children","headingLevel"]),{headingLevel:c}=o.useContext(at),{headerId:d,panelId:u,isOpen:m,disabled:p,toggle:h}=o.useContext(Wt),g=null!==(a=null!=r?r:c)&&void 0!==a?a:"h3";return f.jsx(g,{className:Gt,"data-component":"Accordion.Header",children:f.jsxs("button",Object.assign({ref:t,type:"button",id:d,className:et(Kt,p&&qt,n),onClick:h,disabled:p,"aria-expanded":Boolean(m),"aria-controls":u,"data-component":"Accordion.HeaderButton","data-open":Boolean(m)},l,{children:[f.jsx("span",{className:Ut,children:i}),f.jsx(bt,{className:et(Yt,m&&Zt),"aria-hidden":"true"})]}))})}Qt.displayName="Accordion.Header";var Xt=tt(Qt);const Jt=t=>{const a=e.useId();return t||a},ea="accordion-item";function ta(e,t){var a,n;const i=e,{as:r="div",className:l,value:c,disabled:d}=i,u=s(i,["as","className","value","disabled"]),{open:m,toggle:p,disabled:h}=o.useContext(at),g=Jt(),v=null!=c?c:g,b=null!==(a=null==m?void 0:m.includes(v))&&void 0!==a&&a,x=null!==(n=null!=d?d:h)&&void 0!==n&&n,y={headerId:`${g}-header`,panelId:`${g}-panel`,isOpen:b,disabled:x,toggle:()=>null==p?void 0:p(v)};return f.jsx(Wt.Provider,{value:y,children:f.jsx(r,Object.assign({ref:t,className:et(ea,l),"data-component":"Accordion.Item","data-value":v,"data-open":b,"data-disabled":x},u))})}ta.displayName="Accordion.Item";var aa=tt(ta);const na="accordion-panel",ia="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function ra(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{headerId:l,panelId:c,isOpen:d}=o.useContext(Wt);return f.jsx(n,Object.assign({ref:t,id:c,hidden:!d,role:"region","aria-labelledby":l,className:et(na,d&&ia,i),"data-component":"Accordion.Panel","data-open":Boolean(d)},r))}ra.displayName="Accordion.Panel";var oa=tt(ra);const sa=Object.assign(rt,{Item:aa,Header:Xt,Panel:oa}),la=["[disabled]","[hidden]","[inert]","[tabindex='-1']"],ca=["a[href]","button","summary","select","input:not([type=hidden])","textarea","[tabindex='0']","audio[controls]","video[controls]","[contenteditable]"].map(e=>`${e}:not(${la.join("):not(")})`).join(", "),da=e=>{if(e.matches("[disabled], [hidden], [inert]"))return!0;const t=getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility},ua=e=>!e||da(e)?[]:Array.from(e.querySelectorAll(ca)).filter(e=>!da(e)),ma={vertical:{previous:"ArrowUp",next:"ArrowDown"},horizontal:{previous:"ArrowLeft",next:"ArrowRight"}},pa=({containerRef:t,direction:a="vertical",wrap:n=!1,disabled:i,focusableFilter:r})=>{e.useEffect(()=>{const e=t.current;if(!e||i)return;const{previous:o,next:s}=ma[a],l=t=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;const a="End"===t.key,i="Home"===t.key,l=t.key===s?1:t.key===o?-1:0;if(0===l&&!i&&!a)return;const c=ua(e).filter(e=>{var t;return null===(t=null==r?void 0:r(e))||void 0===t||t});if(0===c.length)return;if(t.preventDefault(),i||a)return void c[i?0:c.length-1].focus();const d=c.indexOf(document.activeElement),u=-1===d?0:d+l;u>=0&&u<c.length?c[u].focus():n&&c[(u+c.length)%c.length].focus()};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}},[t,a,n,i,r])},ha=(e,t)=>{var a,n;const i=typeof e;if("object"!==i&&"function"!==i&&null!==e)return!1;const r=e,o=null!==(a=r.__SLOT__)&&void 0!==a?a:null===(n=r.type)||void 0===n?void 0:n.__SLOT__;return!!t.__SLOT__&&o===t.__SLOT__},ga=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),fa=(e,t)=>{if(Array.isArray(t)){const[a,n]=t;return(e.type===a||ha(e,a))&&n(e.props)}return e.type===t||ha(e,t)},va=(t,a)=>{const n=[],i=Object.keys(a),r=Object.values(a),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let l=0;return e.Children.forEach(t,t=>{if(!e.isValidElement(t))return void n.push(t);if(l===o)return void n.push(t);const a=ba(t,r,o);if(-1===a)return void n.push(t);const c=i[a];void 0===s[c]&&(s[c]=t,l++)}),[s,n]},ba=(e,t,a)=>{for(let n=0;n<a;n++)if(fa(e,t[n]))return n;return-1},xa=Xe("heading",{variants:{size:{large:"text-title-large",medium:"text-title-medium",small:"text-title-small"}}});function ya(e,t){const a=e,{as:n="h2",className:i,size:r="large"}=a,o=s(a,["as","className","size"]);return f.jsx(n,Object.assign({ref:t,className:et(xa({size:r}),i),"data-component":"Heading","data-size":r},o))}ya.displayName="Heading";var wa=tt(ya);const Na=e.createContext({}),ja="action-list-heading",ka="sr-only";function Ca(e,t){const a=e,{as:n,className:i,visuallyHidden:r=!1,id:l}=a,c=s(a,["as","className","visuallyHidden","id"]),{headingId:d}=o.useContext(Na);return f.jsx(wa,Object.assign({ref:t,as:n,id:null!=l?l:d,className:et(ja,r&&ka,i),"data-component":"ActionList.Heading"},c))}Ca.displayName="ActionList.Heading";var Sa=tt(Ca);const Oa=e.createContext({}),Ma=Xe("action-list",{variants:{variant:{inset:"action-list-inset",full:"action-list-full"},dividers:{true:"action-list-dividers",false:""}}}),Aa={heading:Sa},Ta=["menu","menubar","listbox"];function Ia(e,t){var a;const n=e,{as:i="ul",className:r,children:l,variant:c="inset",selectionVariant:d,showDividers:u=!1,disableFocusZone:m=!1,role:p}=n,h=s(n,["as","className","children","variant","selectionVariant","showDividers","disableFocusZone","role"]),[g,v]=va(l,Aa),b=Jt(),{listRole:x,listLabelledBy:y,selectionVariant:w,enableFocusZone:j}=o.useContext(Oa),k=null!=p?p:x,C=null!=d?d:w,S=g.heading?null!==(a=g.heading.props.id)&&void 0!==a?a:b:y,O=o.useRef(null),M=N(t,O),A=null!=j?j:void 0!==k&&!m&&Ta.includes(k);pa({containerRef:O,disabled:!A,wrap:"menu"===k});const T=o.useMemo(()=>({variant:c,selectionVariant:C,showDividers:u,role:k,headingId:b}),[c,C,u,k,b]);return f.jsxs(Na.Provider,{value:T,children:[g.heading,f.jsx(i,Object.assign({ref:M,role:k,"aria-labelledby":S,className:et(Ma({variant:c,dividers:u}),r),"data-component":"ActionList","data-variant":c,"data-dividers":u?"":void 0},h,{children:v}))]})}Ia.displayName="ActionList";var Da=tt(Ia);const La=e.createContext({}),Pa="action-list-description",Ea="min-w-0 truncate";function za(e){const{className:t,variant:a="inline"}=e,n=s(e,["className","variant"]),{blockDescriptionId:i,inlineDescriptionId:r}=o.useContext(La);return f.jsx("span",Object.assign({id:"block"===a?i:r,className:et(Pa,"inline"===a&&Ea,t),"data-component":"ActionList.Description","data-variant":a},n))}za.displayName="ActionList.Description";const $a="action-list-divider";function Ra(e){const{className:t}=e,a=s(e,["className"]);return f.jsx("li",Object.assign({"aria-hidden":"true",className:et($a,t),"data-component":"ActionList.Divider"},a))}Ra.displayName="ActionList.Divider";const Ba=e.createContext({}),Va={__SLOT__:Symbol("ActionList.GroupHeading")},_a="action-list-group-heading-label",Fa="action-list-group-heading-auxiliary",Ha=Xe("action-list-group-heading",{variants:{variant:{subtle:"",filled:"action-list-group-heading-filled"}}});function Wa(e){const{as:t,className:a,children:n,variant:i="subtle",auxiliaryText:r}=e,l=s(e,["as","className","children","variant","auxiliaryText"]),{role:c}=o.useContext(Na),{groupHeadingId:d}=o.useContext(Ba),u=void 0!==c&&"list"!==c,m=null!=t?t:"h3";return f.jsxs("div",Object.assign({className:et(Ha({variant:i})),"data-component":"ActionList.GroupHeading","data-variant":i},u?{role:"presentation","aria-hidden":!0}:{},{children:[u?f.jsx("span",Object.assign({id:d,className:et(_a,a)},l,{children:n})):f.jsx(m,Object.assign({id:d,className:et(_a,a)},l,{children:n})),r?f.jsx("div",{className:Fa,children:r}):null]}))}Wa.displayName="ActionList.GroupHeading";const Ga=ga(Wa,Va),Ka="action-list-group",qa="action-list-group-items",Ua={groupHeading:Ga};function Ya(e){var t,a;const{className:n,children:i,selectionVariant:r,role:l,"aria-label":c}=e,d=s(e,["className","children","selectionVariant","role","aria-label"]),u=Jt(),{role:m}=o.useContext(Na),[p,h]=va(i,Ua),g=p.groupHeading?null!==(t=p.groupHeading.props.id)&&void 0!==t?t:u:void 0,v=o.useMemo(()=>({selectionVariant:r,groupHeadingId:g}),[r,g]),b=m&&"string"==typeof(null===(a=p.groupHeading)||void 0===a?void 0:a.props.children)?p.groupHeading.props.children:void 0;return f.jsx("li",Object.assign({className:et(Ka,n),"data-component":"ActionList.Group",role:m?"none":void 0},d,{children:f.jsxs(Ba.Provider,{value:v,children:[p.groupHeading,f.jsx("ul",{className:qa,role:null!=l?l:m?"group":void 0,"aria-labelledby":m?void 0:g,"aria-label":null!=c?c:b,children:h})]})}))}Ya.displayName="ActionList.Group";const Za="spinner",Qa="sr-only",Xa=Xe("motion-safe:animate-spin",{variants:{size:{small:"spinner-small",medium:"spinner-medium",large:"spinner-large"}}});function Ja(e,t){const a=e,{as:n="span",size:i="medium",srText:r="Loading",className:o,"aria-label":l}=a,c=s(a,["as","size","srText","className","aria-label"]);return f.jsxs(n,Object.assign({ref:t,role:"status","aria-label":null!=l?l:void 0,className:et(Za,o),"data-component":"Spinner"},c,{children:[f.jsx(ct,{className:et(Xa({size:i})),"aria-hidden":"true"}),null!==r&&void 0===l?f.jsx("span",{className:Qa,children:r}):null]}))}Ja.displayName="Spinner";var en=tt(Ja);const tn="action-list-visual",an="action-list-visual-muted",nn="action-list-visual-inherit",rn=e=>{var{className:t}=e,a=s(e,["className"]);const{variant:n,disabled:i,inactive:r}=o.useContext(La),l="danger"===n||i||r;return f.jsx("span",Object.assign({className:et(tn,l?nn:an,t)},a))};function on(e){return f.jsx(rn,Object.assign({"data-component":"ActionList.LeadingVisual"},e))}function sn({children:e}){return f.jsx(f.Fragment,{children:e})}on.displayName="ActionList.LeadingVisual",sn.displayName="ActionList.SubItem";const ln="sr-only",cn=Xe("counter-label",{variants:{variant:{primary:"counter-label-primary",secondary:"counter-label-secondary"}}});function dn(e,t){const a=e,{as:n="span",className:i,variant:r="secondary",children:o}=a,l=s(a,["as","className","variant","children"]);return f.jsxs(f.Fragment,{children:[f.jsx(n,Object.assign({ref:t,"aria-hidden":"true",className:et(cn({variant:r}),i),"data-component":"CounterLabel","data-variant":r},l,{children:o})),f.jsxs("span",{className:ln,children:[" (",o,")"]})]})}dn.displayName="CounterLabel";var un=tt(dn);const mn={base:"button",disabled:"button-disabled",block:"button-block",size:{small:"button-small",medium:"",large:"button-large"},variant:{default:{rest:"button-default",disabled:"button-default-disabled"},primary:{rest:"button-primary",disabled:"button-primary-disabled"},danger:{rest:"button-danger",disabled:"button-danger-disabled"},invisible:{rest:"button-invisible",disabled:"button-invisible-disabled"},link:{rest:"button-link",disabled:"button-link-disabled"}},link:"button-link-shape",linkUnderlines:"button-link-underlines",inactive:"button-inactive",inactiveLink:"button-inactive-link",iconTone:{default:"button-icon-tone-default",primary:"",danger:"",invisible:"button-icon-tone-invisible",link:""},labelWrapRoot:"button-label-wrap",labelWrapHeight:{small:"button-label-wrap-small",medium:"button-label-wrap-medium",large:"button-label-wrap-large"},labelWrapContent:{small:"button-label-wrap-content-small",medium:"button-label-wrap-content-medium",large:"button-label-wrap-content-large"},labelWrapLabel:"button-label-wrap-label",iconOnlyCounter:{small:"button-icon-only-counter-small",medium:"button-icon-only-counter-medium",large:"button-icon-only-counter-large"},content:"button-content",contentGap:{small:"button-content-gap-small",medium:"button-content-gap-medium",large:"button-content-gap-large"},align:{start:"justify-start",center:"justify-center"},label:"button-label",labelLineHeight:{small:"button-label-small",medium:"button-label-medium",large:"button-label-large"},labelHidden:"invisible",visualBase:"button-visual",visual:{default:"button-visual-default",primary:"button-visual-primary",danger:"button-visual-danger",invisible:"button-visual-invisible",link:"button-visual-link"},visualMuted:"button-visual-muted",counter:{default:"button-counter-default",primary:"button-counter-primary",danger:"button-counter-danger",invisible:"button-counter-invisible",link:""},counterMuted:"button-counter-muted",counterMutedDanger:"button-counter-muted-danger",leadingVisual:"button-leading-visual",trailingVisual:"button-trailing-visual",trailingAction:"button-trailing-action",loadingSpinner:"items-center justify-center",standaloneSpinner:"button-standalone-spinner",loadingWrapper:"inline-flex",loadingWrapperBlock:"block",srOnly:"sr-only"},pn=(e,t,a,n)=>{const i=e;return f.jsx("span",{"data-component":t,className:et(mn.visualBase,a&&mn.loadingSpinner,n),children:a?f.jsx(en,{size:"small",srText:null,role:"presentation"}):o.isValidElement(e)?e:f.jsx(i,{})})};function hn(e,t){const{as:a="button",className:n,children:i,icon:r,leadingVisual:o,trailingVisual:l,trailingAction:c,count:d,variant:u="default",size:m="medium",alignContent:p="center",block:h=!1,loading:g,loadingAnnouncement:v="Loading",inactive:b,labelWrap:x,disabled:y,id:w,onClick:N,"aria-describedby":j,"aria-labelledby":k,"aria-disabled":C}=e,S=s(e,["as","className","children","icon","leadingVisual","trailingVisual","trailingAction","count","variant","size","alignContent","block","loading","loadingAnnouncement","inactive","labelWrap","disabled","id","onClick","aria-describedby","aria-labelledby","aria-disabled"]),O=Jt(w),M=`${O}-label`,A=`${O}-loading-announcement`,T=Boolean(g),I=!0===C||"true"===C,D=Boolean(y)||I&&!T,L=!D&&!b,P=Boolean(o||l||c),E=T&&!P&&void 0===d,z=void 0!==d&&Boolean(o)&&!i,$=b?"link"===u?mn.inactiveLink:mn.inactive:mn.variant[u][D?"disabled":"rest"],R=L?mn.visual[u]:mn.visualMuted,B=L?mn.counter[u]:"danger"===u?mn.counterMutedDanger:et(mn.counter[u],mn.counterMuted),V=f.jsx(a,Object.assign({ref:t,className:et(mn.base,mn.size[m],"link"===u&&mn.link,"link"===u&&!P&&mn.linkUnderlines,$,r&&L&&mn.iconTone[u],D&&mn.disabled,h&&mn.block,x&&mn.labelWrapRoot,x&&mn.labelWrapHeight[m],z&&mn.iconOnlyCounter[m],n),"data-component":"Button","data-block":h?"block":void 0,"data-inactive":b?"":void 0,"data-loading":T?"true":void 0,"data-no-visuals":P?void 0:"","data-size":m,"data-variant":u,"data-label-wrap":x?"true":void 0,"data-has-count":void 0!==d?"true":void 0,"data-icon-only-counter":z?"true":void 0,disabled:y,id:w,"aria-disabled":!!T||C,"aria-describedby":T?[A,j].filter(Boolean).join(" "):j,"aria-labelledby":T&&i?[M,k].filter(Boolean).join(" "):k,onClick:T?void 0:N},S,{children:r?pn(r,"icon",T,""):f.jsxs(f.Fragment,{children:[f.jsxs("span",{"data-component":"buttonContent","data-align":p,className:et(mn.content,!E&&mn.contentGap[m],mn.align[p],x&&mn.labelWrapContent[m]),children:[E?pn(en,"loadingSpinner",!0,et(R,mn.standaloneSpinner)):null,o?pn(o,"leadingVisual",T,et(R,mn.leadingVisual)):null,i?f.jsx("span",{"data-component":"text",id:T?M:void 0,className:et(mn.label,mn.labelLineHeight[m],x&&mn.labelWrapLabel,E&&mn.labelHidden),children:i}):null,void 0===d||l?l?pn(l,"trailingVisual",T&&!o,et(R,mn.trailingVisual)):null:pn(f.jsx(un,{className:B,"data-component":"ButtonCounter",children:d}),"trailingVisual",T&&!o,mn.trailingVisual)]}),c?pn(c,"trailingAction",T&&!o&&!l,et(R,mn.trailingAction)):null]})}));return void 0===g?V:f.jsxs("span",{className:h?mn.loadingWrapperBlock:mn.loadingWrapper,"data-loading-wrapper":"",children:[V,f.jsx("span",{id:A,role:"status",className:mn.srOnly,children:T?v:""})]})}hn.displayName="ButtonBase";var gn=tt(hn);function fn(e,t){const a=e,{as:n="button",type:i="button"}=a,r=s(a,["as","type"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:i},r))}fn.displayName="Button";var vn=tt(fn);const bn=Xe("icon-button",{variants:{size:{small:"icon-button-small",medium:"icon-button-medium",large:"icon-button-large"}}});function xn(e,t){const a=e,{as:n="button",className:i,size:r="medium"}=a,o=s(a,["as","className","size"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:"button",size:r,"data-component":"IconButton",className:et(bn({size:r}),i)},o))}xn.displayName="IconButton";var yn=tt(xn);const wn="action-list-trailing-action",Nn="action-list-trailing-action-button";function jn(e,t){const{className:a,icon:n,label:i}=e,r=s(e,["className","icon","label"]);return f.jsx("span",{className:wn,"data-component":"ActionList.TrailingAction",children:n?f.jsx(yn,Object.assign({ref:t,icon:n,"aria-label":i,variant:"invisible",size:"small",className:et(Nn,a)},r)):f.jsx(vn,Object.assign({ref:t,variant:"invisible",size:"small",className:et(Nn,a)},r,{children:i}))})}jn.displayName="ActionList.TrailingAction";var kn=tt(jn);function Cn(e){const{trailingVisualId:t}=o.useContext(La);return f.jsx(rn,Object.assign({id:t,"data-component":"ActionList.TrailingVisual"},e))}Cn.displayName="ActionList.TrailingVisual";const Sn="invisible",On="action-list-selection-checkmark",Mn="action-list-selection-checkbox",An="action-list-selection-checkbox-selected",Tn=({selected:e,className:t})=>{const{selectionVariant:a}=o.useContext(Na),{selectionVariant:n}=o.useContext(Ba),i=void 0===n?a:n;return i?"multiple"===i?f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx("span",{className:et(Mn,e&&An),children:f.jsx(vt,{className:e?void 0:Sn})})}):f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx(vt,{className:et(On,!e&&Sn)})}):null},In={root:"action-list-item",content:"action-list-item-content",size:{medium:"",large:"action-list-item-content-large"},danger:"action-list-item-content-danger",disabled:"action-list-item-content-disabled",inactive:"action-list-item-content-inactive",loading:"cursor-default",active:"action-list-item-content-active",main:"action-list-item-main",labelWrap:"action-list-item-label-wrap",labelWrapBlock:"flex-col gap-0",label:"min-w-0",inactiveWarning:"action-list-item-inactive-warning",srOnly:"sr-only"},Dn={leadingVisual:on,trailingVisual:Cn,trailingAction:kn,description:za,subItem:sn},Ln=["option","menuitem","menuitemradio","menuitemcheckbox"],Pn=["listbox","menu","list"];function En(e,t){var a,n,i;const r=e,{as:l,className:c,children:d,id:u,role:m,variant:p="default",size:h="medium",selected:g,active:v=!1,disabled:b=!1,loading:x=!1,inactiveText:y,onSelect:w}=r,N=s(r,["as","className","children","id","role","variant","size","selected","active","disabled","loading","inactiveText","onSelect"]),[j,k]=va(d,Dn),{container:C,afterSelect:S,selectionAttribute:O,defaultTrailingVisual:M}=o.useContext(Oa),{role:A,selectionVariant:T}=o.useContext(Na),{selectionVariant:I}=o.useContext(Ba),D=Boolean(y),L=void 0===I?T:I||void 0;let P;"ActionMenu"===C||"menu"===A?P="single"===L?"menuitemradio":"multiple"===L?"menuitemcheckbox":"menuitem":"listbox"===A&&L&&(P="option");const E=null!=m?m:P,z=null!=O?O:"menuitemradio"===E||"menuitemcheckbox"===E?"aria-checked":"option"===E?"aria-selected":void 0,$=void 0!==A&&Pn.includes(A)||D||void 0!==E&&Ln.includes(E),R=null!=l?l:$?"div":"button",B=void 0!==l||!$,V=!B||"button"!==R&&"a"!==R,_="ActionMenu"===C||"menu"===A||"listbox"===A,F=!b&&!D&&!x,H=e=>{F&&(null==w||w(e),e.defaultPrevented||null==S||S(e))},W=Jt(u),G=`${W}--label`,K=`${W}--inline-description`,q=`${W}--block-description`,U=`${W}--trailing-visual`,Y=D?`${W}--inactive-warning`:void 0,Z=null!==(n=null===(a=j.description)||void 0===a?void 0:a.props.variant)&&void 0!==n?n:"inline",Q=null!==(i=j.trailingVisual)&&void 0!==i?i:M?f.jsx(Cn,{children:M}):null,X=x&&!D,J=f.jsx(en,{size:"small",srText:null}),ee=X&&j.leadingVisual?f.jsx(on,{children:J}):j.leadingVisual,te=X&&!j.leadingVisual?f.jsx(Cn,{children:J}):Q,ae=[j.description?"block"===Z?q:K:void 0,Y].filter(Boolean),ne=Object.assign({id:W,role:E,tabIndex:0,onClick:H,onKeyDown:V?e=>{" "!==e.key&&"Enter"!==e.key||(" "===e.key&&e.preventDefault(),H(e))}:void 0,"aria-disabled":!!(b||D||x)||void 0,"aria-labelledby":[G,j.trailingVisual?U:void 0].filter(Boolean).join(" "),"aria-describedby":ae.length>0?ae.join(" "):void 0},z&&L?{[z]:Boolean(g)}:{}),ie=_||D||x?null:j.trailingAction,re=o.useMemo(()=>({variant:p,size:h,disabled:b,inactive:D,inlineDescriptionId:K,blockDescriptionId:q,trailingVisualId:U}),[p,h,b,D,K,q,U]),oe=et(In.content,In.size[h],"danger"===p&&!b&&!D&&In.danger,v&&In.active,x&&In.loading,D&&In.inactive,b&&In.disabled);return f.jsx(La.Provider,{value:re,children:f.jsxs("li",Object.assign({ref:B?null:t,className:et(In.root,c),"data-component":"ActionList.Item","data-variant":"danger"===p?p:void 0,"data-active":v?"":void 0,"data-inactive":D?"":void 0,"data-disabled":b?"":void 0,"data-loading":x?"":void 0,"data-has-description":j.description?"":void 0,"data-has-trailing-action":ie?"":void 0,"data-has-sub-item":j.subItem?"":void 0},B?{role:E?"none":void 0}:Object.assign(Object.assign({},ne),N),{children:[f.jsxs(R,Object.assign({ref:B?t:void 0,className:oe,"data-component":"ActionList.Item.Content","data-size":h},B?Object.assign(Object.assign(Object.assign({},ne),N),"button"===R?{type:"button"}:{}):{},{children:[f.jsx(Tn,{selected:g}),ee,f.jsxs("span",{className:In.main,children:[f.jsxs("span",{className:et(In.labelWrap,"block"===Z&&In.labelWrapBlock),children:[f.jsxs("span",{id:G,className:In.label,"data-component":"ActionList.Item.Label",children:[k,X?f.jsx("span",{className:In.srOnly,children:"Loading"}):null]}),j.description]}),te]})]})),D?f.jsx("span",{id:Y,className:In.inactiveWarning,children:y}):null,ie,j.subItem]}))})}En.displayName="ActionList.Item";var zn=tt(En);function $n(e,t){const a=e,{as:n}=a,i=s(a,["as"]);return f.jsx(zn,Object.assign({ref:t,as:null!=n?n:"a"},i))}$n.displayName="ActionList.LinkItem";var Rn=tt($n);const Bn=Object.assign(Da,{Item:zn,LinkItem:Rn,Group:Ya,GroupHeading:Ga,Heading:Sa,Description:za,Divider:Ra,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,SubItem:sn}),Vn=e.createContext(void 0);function _n(e){const{children:t,className:a,onClick:n,onKeyDown:i}=e,r=s(e,["children","className","onClick","onKeyDown"]),l=o.useContext(Vn),c=o.useContext(Oa),d=Boolean(null==l?void 0:l.isSubmenu),u=null==l?void 0:l.onOpen,m=o.useMemo(()=>d?Object.assign(Object.assign({},c),{defaultTrailingVisual:f.jsx(yt,{}),afterSelect:()=>null==u?void 0:u()}):c,[d,u,c]);if(!o.isValidElement(t))return null;const p=t.props;return f.jsx(Oa.Provider,{value:m,children:o.cloneElement(t,Object.assign(Object.assign({},r),{ref:null==l?void 0:l.anchorRef,className:et(a,p.className),onClick:e=>{var t;null===(t=p.onClick)||void 0===t||t.call(p,e),null==n||n(e)},onKeyDown:e=>{var t;null===(t=p.onKeyDown)||void 0===t||t.call(p,e),d&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==u||u(),e.preventDefault()),null==i||i(e)}}))})}function Fn(e){return f.jsx(_n,{children:f.jsx(vn,Object.assign({type:"button",trailingAction:bt,"data-component":"ActionMenu.Button"},e))})}_n.displayName="ActionMenu.Anchor",Fn.displayName="ActionMenu.Button";const Hn=e=>o.isValidElement(e)&&(e.type===_n||e.type===Fn);function Wn(e){const{children:t,open:a,onOpenChange:n,anchorRef:i}=e,r=o.useContext(Vn),s=o.useRef(null),l=null!=i?i:s,c=void 0!==a,[d,u]=o.useState(!1),m=c?a:d,p=o.useCallback(e=>{u(e),null==n||n(e)},[n]),h=o.useCallback(()=>p(!0),[p]),g=null==r?void 0:r.onClose,v=o.useCallback(e=>{p(!1),"item-select"!==e&&"tab"!==e||null==g||g(e)},[p,g]),b=o.Children.toArray(t),x=b.find(Hn),y=Jt(null==x?void 0:x.props.id),w=x?e=>o.cloneElement(x,((e,t)=>({id:e.id,"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],tabIndex:e.tabIndex,onClick:a=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,a),e.onClick(a)},onKeyDown:a=>{var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,a),e.onKeyDown(a)}}))(e,x.props)):null,N=void 0!==r,j=o.useMemo(()=>({anchorRef:l,renderAnchor:w,anchorId:y,open:m,onOpen:h,onClose:v,isSubmenu:N}),[l,w,y,m,h,v,N]);return f.jsx(Vn.Provider,{value:j,children:b.filter(e=>e!==x)})}Wn.displayName="ActionMenu";const Gn=[],Kn=({containerRef:t,initialFocusRef:a,returnFocusRef:n,disabled:i})=>{e.useEffect(()=>{var e,r;const o=t.current;if(!o||i)return;const s=document.activeElement;Gn.push(o),(null!==(r=null!==(e=null==a?void 0:a.current)&&void 0!==e?e:ua(o)[0])&&void 0!==r?r:o).focus();const l=e=>{if("Tab"!==e.key||Gn[Gn.length-1]!==o)return;const t=ua(o);if(0===t.length)return void e.preventDefault();const a=t[0],n=t[t.length-1],i=document.activeElement;!(e.shiftKey?i===a:i===n)&&o.contains(i)||(e.preventDefault(),(e.shiftKey?n:a).focus())};return document.addEventListener("keydown",l),()=>{var e;document.removeEventListener("keydown",l),Gn.splice(Gn.indexOf(o),1);const t=null!==(e=null==n?void 0:n.current)&&void 0!==e?e:s;t instanceof HTMLElement&&t.focus()}},[t,a,n,i])},qn=v?e.useLayoutEffect:e.useEffect,Un=[],Yn=e=>{if("Escape"===e.key&&!e.defaultPrevented)for(const t of[...Un].reverse())if(t(e),e.defaultPrevented)break},Zn=t=>{const a=e.useRef(t);e.useEffect(()=>{a.current=t},[t]),e.useEffect(()=>{const e=e=>a.current(e);return 0===Un.length&&document.addEventListener("keydown",Yn),Un.push(e),()=>{Un.splice(Un.indexOf(e),1),0===Un.length&&document.removeEventListener("keydown",Yn)}},[])},Qn=(e,t)=>{if(null!=t)return"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,a])=>Xn(`data-${e}-${t}`,a))):Object.fromEntries([Xn(`data-${e}`,t)])},Xn=(e,t)=>[e,t],Jn=e.createContext({}),ei="__baseUiPortalRoot__",ti="__default__",ai="portal-root",ni={},ii=(e,t=ti)=>{ni[t]=e},ri="portal";function oi({children:e,onMount:a,containerName:n}){const{portalContainerName:i}=o.useContext(Jn),r=o.useRef(null);if(!r.current){const e=document.createElement("div");e.setAttribute("data-component","Portal"),e.className=ri,r.current=e}const s=r.current;return qn(()=>{let e=null!=n?n:i;void 0===e&&(e=ti,(()=>{const e=ni[ti];if(e&&document.body.contains(e))return;let t=document.getElementById(ei);if(!t){t=document.createElement("div"),t.setAttribute("id",ei),t.className=ai;const e=document.querySelector("[data-portal-root]");(null!=e?e:document.body).appendChild(t)}ii(t)})());const t=(e=>ni[e])(e);if(!t)throw new Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(s),null==a||a(),()=>{t.removeChild(s)}},[s,n,i]),t.createPortal(e,s)}oi.displayName="Portal";const si={"outside-top":"outside-bottom","outside-bottom":"outside-top","outside-left":"outside-right","outside-right":"outside-left"},li=e=>"outside-top"===e||"outside-bottom"===e,ci=(e,t,a,n)=>"outside-top"===e?t.top-a.height-n:"outside-bottom"===e?t.bottom+n:"outside-left"===e?t.left-a.width-n:t.right+n,di=(e,t,a,n,i)=>"start"===e?t+i:"end"===e?t+a-n-i:t+(a-n)/2+i,ui=(e,t,{side:a,align:n,anchorOffset:i=4,alignmentOffset:r=0})=>{const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=window.innerWidth,c=window.innerHeight;let d=a,u=ci(d,o,s,i);const m=li(d)?s.height:s.width,p=li(d)?c:l;if(u<0||u+m>p){const e=ci(si[a],o,s,i);e>=0&&e+m<=p&&(d=si[a],u=e)}const h=li(d),g=h?o.left:o.top,f=h?o.width:o.height,v=h?s.width:s.height,b=h?l:c;let x=n,y=di(n,g,f,v,r);return y<0?(x="start",y=di(x,g,f,v,r)):y+v>b&&(x="end",y=di(x,g,f,v,r)),y=Math.max(0,Math.min(y,b-v)),{top:h?u:y,left:h?y:u,anchorSide:d,anchorAlign:x}},mi="anchored-overlay-close-button-container",pi="anchored-overlay-close-button",hi=Xe(["anchored-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2"],{variants:{width:{xsmall:"anchored-overlay-width-xsmall",small:"anchored-overlay-width-small",medium:"anchored-overlay-width-medium",large:"anchored-overlay-width-large",xlarge:"anchored-overlay-width-xlarge",auto:"anchored-overlay-width-auto"},height:{small:"anchored-overlay-height-small",medium:"anchored-overlay-height-medium",large:"anchored-overlay-height-large",xlarge:"anchored-overlay-height-xlarge",auto:"anchored-overlay-height-auto"},reflow:{true:"anchored-overlay-reflow",false:""},fullscreen:{true:"anchored-overlay-fullscreen",false:""},unplaced:{true:"invisible",false:""}}}),gi={regular:"anchored",narrow:"anchored"},fi=["ArrowDown","ArrowUp"," ","Enter"];function vi(e){var t,a,n,i;const{renderAnchor:r,anchorRef:l,anchorId:c,children:d,open:u,onOpen:m,onClose:p,side:h="outside-bottom",align:g="start",anchorOffset:v,alignmentOffset:b,width:x="auto",height:y="auto",overlayProps:w,focusTrapSettings:j,preventOverflow:k=!0,variant:C=gi,displayCloseButton:S=!0,closeButtonProps:O,onPositionChange:M,className:A}=e,T=null!=w?w:{},{ref:I,className:D,style:L,portalContainerName:P}=T,E=s(T,["ref","className","style","portalContainerName"]),z=null!=O?O:{},{className:$,"aria-label":R}=z,B=s(z,["className","aria-label"]),V=o.useRef(null),_=null!=l?l:V,F=Jt(c),H=o.useRef(null),W=N(I,H),G=o.useRef(null),[K,q]=o.useState(null),U=o.useCallback(()=>{const e=_.current,t=H.current;if(!e||!t)return;const a=ui(t,e,{side:h,align:g,anchorOffset:v,alignmentOffset:b});G.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(G.current,a)||(G.current=a,q(a),null==M||M({position:a}))},[_,h,g,v,b,M]);qn(()=>{if(!u)return G.current=null,void q(null);U();const e=new ResizeObserver(U);return H.current&&e.observe(H.current),window.addEventListener("resize",U),window.addEventListener("scroll",U,!0),()=>{e.disconnect(),window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)}},[u,U]),Kn(Object.assign(Object.assign({containerRef:H,returnFocusRef:_},j),{disabled:!u||!K||Boolean(null==j?void 0:j.disabled)})),Zn(e=>{u&&(e.preventDefault(),null==p||p("escape"))}),o.useEffect(()=>{if(!u)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=H.current)||void 0===t?void 0:t.contains(n))||(null===(a=_.current)||void 0===a?void 0:a.contains(n))||null==p||p("click-outside"))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[_,u,p]);const Y="fullscreen"===C.narrow,Z=Boolean(p)&&Y&&S;return f.jsxs(f.Fragment,{children:[r?r({ref:_,id:F,"aria-haspopup":"true","aria-expanded":u,tabIndex:0,onClick:e=>{e.defaultPrevented||0!==e.button||(u?null==p||p("anchor-click"):null==m||m("anchor-click"))},onKeyDown:e=>{e.defaultPrevented||u||!fi.includes(e.key)||(null==m||m("anchor-key-press",e),e.preventDefault())}}):null,u?f.jsx(oi,{containerName:P,children:f.jsxs("div",Object.assign({ref:W,tabIndex:-1,className:et(hi({width:x,height:y,reflow:!k,fullscreen:Y,unplaced:!K}),A,D),style:Object.assign(Object.assign({},L),{"--anchored-overlay-top":`${null!==(t=null==K?void 0:K.top)&&void 0!==t?t:0}px`,"--anchored-overlay-left":`${null!==(a=null==K?void 0:K.left)&&void 0!==a?a:0}px`}),"data-component":"AnchoredOverlay","data-side":null!==(n=null==K?void 0:K.anchorSide)&&void 0!==n?n:h,"data-align":null!==(i=null==K?void 0:K.anchorAlign)&&void 0!==i?i:g,"data-width":x,"data-height":y,"data-visibility":K?"visible":"hidden"},Qn("variant",C),E,{children:[Z?f.jsx("div",{className:mi,children:f.jsx(yn,Object.assign({icon:Ct,variant:"invisible","aria-label":null!=R?R:"Close",onClick:()=>null==p?void 0:p("close-button"),className:et(pi,$),"data-component":"AnchoredOverlay.CloseButton"},B))}):null,d]}))}):null]})}vi.displayName="AnchoredOverlay";const bi="action-menu-overlay";function xi(e){const{children:t,align:a="start",side:n,className:i,returnFocusRef:r,"aria-labelledby":l}=e,c=s(e,["children","align","side","className","returnFocusRef","aria-labelledby"]),d=o.useContext(Vn),u=Boolean(null==d?void 0:d.isSubmenu),m=null==d?void 0:d.onClose,p=o.useCallback(e=>null==m?void 0:m(e),[m]),h=o.useMemo(()=>({container:"ActionMenu",listRole:"menu",listLabelledBy:null!=l?l:null==d?void 0:d.anchorId,selectionAttribute:"aria-checked",afterSelect:()=>null==m?void 0:m("item-select")}),[l,null==d?void 0:d.anchorId,m]);return d?f.jsx(vi,Object.assign({anchorRef:d.anchorRef,renderAnchor:d.renderAnchor,anchorId:d.anchorId,open:d.open,onOpen:d.onOpen,onClose:p,align:a,side:null!=n?n:u?"outside-right":"outside-bottom",className:i,focusTrapSettings:r?{returnFocusRef:r}:void 0},c,{children:f.jsx("div",{className:bi,onKeyDown:e=>{e.defaultPrevented||("Tab"!==e.key?u&&"ArrowLeft"===e.key&&(null==m||m("arrow-left"),e.preventDefault()):null==m||m("tab"))},"data-component":"ActionMenu.Overlay",children:f.jsx(Oa.Provider,{value:h,children:t})})})):null}xi.displayName="ActionMenu.Overlay";const yi=Object.assign(Wn,{Anchor:_n,Button:Fn,Overlay:xi,Divider:Ra}),wi=e.createContext({size:"medium"}),Ni=e.createContext({}),ji={current:null},ki=t=>{const{size:a,rootRef:n,setOverflowing:i}=o.useContext(wi),{index:r,inGroup:s}=o.useContext(Ni),l=(({ref:t,rootRef:a,disabled:n})=>{const[i,r]=e.useState(!1);return e.useEffect(()=>{const e=t.current,i=a.current;if(!e||!i||n)return void r(!1);const o=new IntersectionObserver(e=>{for(const t of e)r(t.intersectionRatio<1)},{root:i,threshold:1});return o.observe(e),()=>{o.disconnect()}},[t,a,n]),i})({ref:t,rootRef:null!=n?n:ji,disabled:s});return o.useEffect(()=>{void 0!==r&&(null==i||i(r,l))},[r,l,i]),{size:a,isOverflowing:l}},Ci="action-bar-divider",Si="invisible";function Oi(e){const{className:t}=e,a=s(e,["className"]),n=o.useRef(null),{isOverflowing:i}=ki(n);return f.jsx("div",Object.assign({ref:n,"aria-hidden":"true",className:et(Ci,i&&Si,t),"data-component":"ActionBar.Divider","data-overflowing":i?"":void 0},a))}Oi.displayName="ActionBar.Divider";const Mi="action-bar-group",Ai="invisible",Ti={inGroup:!0};function Ii(e){const{className:t,children:a}=e,n=s(e,["className","children"]),i=o.useRef(null),{isOverflowing:r}=ki(i);return f.jsx("div",Object.assign({ref:i,className:et(Mi,r&&Ai,t),"data-component":"ActionBar.Group","data-overflowing":r?"":void 0},n,{children:f.jsx(Ni.Provider,{value:Ti,children:a})}))}Ii.displayName="ActionBar.Group";const Di="invisible";function Li(e,t){const a=e,{className:n}=a,i=s(a,["className"]),r=o.useRef(null),l=N(t,r),{size:c,isOverflowing:d}=ki(r);return f.jsx(yn,Object.assign({ref:l,size:c,variant:"invisible",className:et(d&&Di,n),"data-component":"ActionBar.IconButton","data-overflowing":d?"":void 0},i))}Li.displayName="ActionBar.IconButton";var Pi=tt(Li);const Ei=e=>{if("string"==typeof e)return f.jsx("span",{children:e});if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},zi=({items:e})=>f.jsx(f.Fragment,{children:e.map((e,t)=>{if("divider"===e.type)return f.jsx(Bn.Divider,{},t);const{label:a,disabled:n,variant:i,leadingVisual:r,trailingVisual:o,onClick:s}=e,l=f.jsxs(f.Fragment,{children:[r?f.jsx(Bn.LeadingVisual,{children:Ei(r)}):null,a,o?f.jsx(Bn.TrailingVisual,{children:Ei(o)}):null]});return e.items&&e.items.length>0?f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(Bn.Item,{disabled:n,variant:i,children:l})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:f.jsx(zi,{items:e.items})})})]},t):f.jsx(Bn.Item,{onSelect:s,disabled:n,variant:i,children:l},t)})}),$i="invisible";function Ri(e,t){const{className:a,icon:n,items:i,returnFocusRef:r,overflowIcon:l}=e,c=s(e,["className","icon","items","returnFocusRef","overflowIcon"]),d=o.useRef(null),u=N(t,d),{size:m,isOverflowing:p}=ki(d);return f.jsxs(yi,{anchorRef:d,children:[f.jsx(yi.Anchor,{children:f.jsx(yn,Object.assign({ref:u,icon:n,size:m,variant:"invisible",className:et(p&&$i,a),"data-component":"ActionBar.Menu","data-overflowing":p?"":void 0},c))}),f.jsx(yi.Overlay,{returnFocusRef:r,children:f.jsx(Bn,{children:f.jsx(zi,{items:i})})})]})}Ri.displayName="ActionBar.Menu";var Bi=tt(Ri);const Vi={size:{small:"action-bar-size-small",medium:"action-bar-size-medium",large:"action-bar-size-large"},spacer:"shrink-0",moreButtonEmpty:"invisible"},_i=Xe("action-bar",{variants:{flush:{true:"",false:"action-bar-inset"}}}),Fi=Xe("action-bar-toolbar",{variants:{size:Vi.size}}),Hi=Xe("action-bar-items",{variants:{size:Vi.size,gap:{none:"action-bar-gap-none",condensed:"action-bar-gap-condensed"}}}),Wi=new Set,Gi=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},Ki=(e,t)=>{var a;const n=e.props;if(e.type===Oi)return f.jsx(Bn.Divider,{},t);if(e.type===Ii)return o.Children.toArray(n.children).filter(e=>o.isValidElement(e)).map((e,a)=>Ki(e,`${t}-${a}`));if(e.type===Bi){const e=null!==(a=n.overflowIcon)&&void 0!==a?a:n.icon;return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsxs(Bn.Item,{children:[e?f.jsx(Bn.LeadingVisual,{children:Gi(e)}):null,n["aria-label"]]})}),f.jsx(yi.Overlay,{returnFocusRef:n.returnFocusRef,children:f.jsx(Bn,{children:f.jsx(zi,{items:n.items})})})]},t)}const i=e.type===Pi?n.icon:n.leadingVisual,r=e.type===Pi?n["aria-label"]:n.children;return f.jsxs(Bn.Item,{onSelect:n.onClick,disabled:n.disabled,children:[i?f.jsx(Bn.LeadingVisual,{children:Gi(i)}):null,r]},t)};function qi(e){const{className:t,children:a,size:n="medium",flush:i=!1,gap:r="condensed","aria-label":s,"aria-labelledby":l}=e,c=o.useRef(null),d=o.useRef(null),[u,m]=o.useState(Wi),p=o.useCallback((e,t)=>{m(a=>{if(a.has(e)===t)return a;const n=new Set(a);return t?n.add(e):n.delete(e),n})},[]);pa({containerRef:c,direction:"horizontal",wrap:!0});const h=o.useMemo(()=>({size:n,rootRef:d,setOverflowing:p}),[n,p]),g=o.Children.toArray(a),v=g.length,b=o.useMemo(()=>Array.from({length:v},(e,t)=>({index:t})),[v]),x=g.map((e,t)=>u.has(t)&&o.isValidElement(e)?Ki(e,t):null).filter(Boolean);return f.jsx(wi.Provider,{value:h,children:f.jsx("div",{className:et(_i({flush:i}),t),"data-component":"ActionBar","data-flush":i?"":void 0,children:f.jsxs("div",{ref:c,role:"toolbar","aria-label":s,"aria-labelledby":l,className:et(Fi({size:n})),"data-size":n,"data-gap":r,"data-has-overflow":x.length>0?"":void 0,children:[f.jsxs("div",{ref:d,className:et(Hi({size:n,gap:r})),children:[f.jsx("div",{className:Vi.spacer}),g.map((e,t)=>f.jsx(Ni.Provider,{value:b[t],children:e},t))]}),f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":"More items",size:n,variant:"invisible",className:x.length>0?void 0:Vi.moreButtonEmpty,"data-component":"ActionBar.MoreButton"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:x})})]})]})})})}qi.displayName="ActionBar";const Ui="invisible";function Yi(e,t){const{className:a}=e,n=s(e,["className"]),i=o.useRef(null),r=N(t,i),{size:l,isOverflowing:c}=ki(i);return f.jsx(vn,Object.assign({ref:r,size:l,variant:"invisible",className:et(c&&Ui,a),"data-component":"ActionBar.Button","data-overflowing":c?"":void 0},n))}Yi.displayName="ActionBar.Button";var Zi=tt(Yi);const Qi=Object.assign(qi,{Button:Zi,IconButton:Pi,Divider:Oi,Group:Ii,Menu:Bi}),Xi=Xe("alert",{variants:{variant:{default:"alert-default",success:"alert-success",warning:"alert-warning",danger:"alert-danger"}}});function Ji(e,t){const a=e,{as:n="div",className:i,variant:r="default"}=a,o=s(a,["as","className","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(Xi({variant:r}),i),"data-component":"Alert","data-variant":r},o))}Ji.displayName="Alert";var er=tt(Ji);const tr=Xe("aspect-ratio",{variants:{ratio:{"1:1":"aspect-ratio-1-1","16:9":"aspect-ratio-16-9","4:3":"aspect-ratio-4-3",custom:""}}});function ar(e,t){const a=e,{as:n="div",className:i,ratio:r="1:1",width:o=1,height:l=1,style:c}=a,d=s(a,["as","className","ratio","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(tr({ratio:r}),i),style:Object.assign(Object.assign({},c),{"--aspect-ratio":"custom"===r?`${o}/${l}`:void 0}),"data-component":"AspectRatio","data-ratio":r},d))}ar.displayName="AspectRatio";var nr=tt(ar);const ir=e.createContext({}),rr=e.createContext({}),or=e.createContext({});function sr({children:e,id:t}){const a=Jt(t),n=o.useRef(null),i=o.useRef(null),[r,s]=o.useState(""),[l,c]=o.useState(""),[d,u]=o.useState(),[m,p]=o.useState(!1),h=o.useCallback(e=>{p(e),e||(u(void 0),c(""))},[]),g=o.useMemo(()=>({id:a,inputRef:n,scrollContainerRef:i,activeDescendantId:d,setActiveDescendantId:u,showMenu:m,setShowMenu:h,setInputValue:s,setAutocompleteSuggestion:c}),[a,d,m,h]),v=o.useMemo(()=>({inputValue:r,autocompleteSuggestion:l}),[r,l]),b=o.useDeferredValue(r),x=o.useMemo(()=>({deferredInputValue:b}),[b]);return f.jsx(ir.Provider,{value:g,children:f.jsx(rr.Provider,{value:v,children:f.jsx(or.Provider,{value:x,children:e})})})}sr.displayName="Autocomplete";const lr=Xe("text",{variants:{size:{large:"text-size-large",medium:"text-size-medium",small:"text-size-small"},weight:{light:"text-weight-light",normal:"text-weight-normal",medium:"text-weight-medium",semibold:"text-weight-semibold"},whiteSpace:{pre:"whitespace-pre",normal:"whitespace-normal",nowrap:"whitespace-nowrap","pre-wrap":"whitespace-pre-wrap","pre-line":"whitespace-pre-line"}}});function cr(e,t){const a=e,{as:n="span",className:i,size:r="medium",weight:o,whiteSpace:l}=a,c=s(a,["as","className","size","weight","whiteSpace"]);return f.jsx(n,Object.assign({ref:t,className:et(lr({size:r,weight:o,whiteSpace:l}),i),"data-component":"Text","data-size":r,"data-weight":o,"data-white-space":l},c))}cr.displayName="Text";var dr=tt(cr);const ur=(e,t)=>{const a=t-e;if(a>=0)return{count:a,isOverLimit:!1,message:`${a} ${1===a?"character":"characters"} remaining`};const n=-a;return{count:n,isOverLimit:!0,message:`${n} ${1===n?"character":"characters"} over`}},mr={field:"input",size:{small:"input-small",medium:"input-medium",large:"input-large"},focus:"input-focus",focusTracked:"input-focus-tracked",block:"input-block",contrast:"input-contrast",monospace:"input-monospace",disabled:"input-disabled",validation:{error:"input-error",success:"input-success"},validationFocus:"input-validation-focus",validationFocusTracked:"input-validation-focus-tracked",leadingVisual:"input-leading-visual-padding",leadingVisualLarge:"input-leading-visual-padding-wide",trailingVisual:"input-trailing-visual-padding",trailingVisualLarge:"input-trailing-visual-padding-wide",input:"input-control",inputPadStart:"input-control-pad-start",inputPadStartWide:"input-control-pad-start-wide",inputPadEnd:"input-control-pad-end",inputPadEndWide:"input-control-pad-end-wide",visual:"input-visual",visualBox:"input-visual-box",spinner:"input-spinner",spinnerLeading:"input-spinner-leading",spinnerHidden:"invisible",spinnerVisible:"visible",counter:"input-counter",counterOverLimit:"input-counter-over-limit",counterIcon:"input-counter-icon",hidden:"sr-only"},pr=["date","time","datetime-local"],hr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})},gr=({id:e,position:t,hasLoader:a,showLoader:n,children:i})=>{const r="leading"===t?"TextInput.LeadingVisual":"TextInput.TrailingVisual";return a?f.jsx("span",{className:mr.visual,"data-component":r,children:f.jsxs("span",{id:e,className:mr.visualBox,children:[i?f.jsx("span",{className:n?mr.spinnerHidden:mr.spinnerVisible,children:i}):null,f.jsx(en,{srText:null,size:i?void 0:"small",className:et(n?mr.spinnerVisible:mr.spinnerHidden,i&&mr.spinner,i&&"leading"===t&&mr.spinnerLeading)})]})}):f.jsx("span",{id:e,className:mr.visual,"aria-hidden":"true","data-component":r,children:i})};function fr(e,t){var a;const{className:n,type:i="text",size:r="medium",block:l,contrast:c,monospace:d,disabled:u,required:m,validationStatus:p,leadingVisual:h,trailingVisual:g,trailingAction:v,loading:b,loaderPosition:x="auto",loaderText:y="Loading",characterLimit:w,value:j,defaultValue:k,onChange:C,onFocus:S,onBlur:O,"aria-describedby":M}=e,A=s(e,["className","type","size","block","contrast","monospace","disabled","required","validationStatus","leadingVisual","trailingVisual","trailingAction","loading","loaderPosition","loaderText","characterLimit","value","defaultValue","onChange","onFocus","onBlur","aria-describedby"]),T=o.useRef(null),I=N(t,T),D=Jt(),L=Jt(),P=Jt(),E=Jt(),[z,$]=o.useState(!1),R=void 0!==j,[B,V]=o.useState(()=>void 0===k?0:String(k).length),_=R?String(j).length:B,F=w?ur(_,w):void 0,H=null!==(a=null==F?void 0:F.isOverLimit)&&void 0!==a&&a,W=H?"error":p,G=o.useRef(!1),[K,q]=o.useState(""),U=null==F?void 0:F.message;o.useEffect(()=>{if(!G.current)return;const e=window.setTimeout(()=>{q(null!=U?U:"")},500);return()=>{window.clearTimeout(e)}},[U]);const Y=Boolean(b&&("leading"===x||h&&"trailing"!==x)),Z=Boolean(b&&("trailing"===x||"auto"===x&&!h)),Q="boolean"==typeof b,X=Boolean(h)||Y,J=Boolean(g)||Z,ee=Boolean(v),te=Boolean(g)||Q,ae=ee,ne="large"===r,ie=[w?E:void 0,M,h?D:void 0,g?L:void 0,b?P:void 0].filter(Boolean).join(" ")||void 0;return f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:et(mr.field,mr.size[r],ae?z&&mr.focusTracked:mr.focus,l&&mr.block,c&&mr.contrast,d&&mr.monospace,u&&mr.disabled,W&&mr.validation[W],"error"===W&&(ae?z&&mr.validationFocusTracked:mr.validationFocus),X&&(ne?mr.leadingVisualLarge:mr.leadingVisual),J&&!ee&&(ne?mr.trailingVisualLarge:mr.trailingVisual),n),onClick:e=>{var t;e.target===T.current&&pr.includes(i)||null===(t=T.current)||void 0===t||t.focus()},"aria-busy":!!b||void 0,"data-component":"TextInput","data-size":r,"data-block":l,"data-contrast":c,"data-monospace":d,"data-disabled":u,"data-validation":W,"data-focused":z||void 0,"data-leading-visual":X||void 0,"data-trailing-visual":J||void 0,"data-trailing-action":ee||void 0,children:[X?f.jsx(gr,{id:D,position:"leading",hasLoader:Q,showLoader:Y,children:h?hr(h):null}):null,f.jsx("input",Object.assign({ref:I,type:i,value:j,defaultValue:k,disabled:u,required:m,"aria-required":!!m||void 0,"aria-invalid":"error"===W||void 0,"aria-describedby":ie,onChange:e=>{G.current=!0,w&&!R&&V(e.target.value.length),null==C||C(e)},onFocus:e=>{$(!0),null==S||S(e)},onBlur:e=>{$(!1),null==O||O(e)},className:et(mr.input,!X&&(J||ee?mr.inputPadStart:mr.inputPadStartWide),!J&&!ee&&(X?mr.inputPadEnd:mr.inputPadEndWide)),"data-component":"TextInput.Input"},A)),b?f.jsx("span",{id:P,className:mr.hidden,children:y}):null,te?f.jsx(gr,{id:L,position:"trailing",hasLoader:Q,showLoader:Z,children:g?hr(g):null}):null,v]}),F?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:mr.hidden,children:K}),f.jsxs("span",{id:E,className:mr.hidden,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(mr.counter,H&&mr.counterOverLimit),"data-component":"TextInput.CharacterCount",children:[H?f.jsx(Ot,{className:mr.counterIcon}):null,F.message]})]}):null]})}fr.displayName="TextInput";var vr=tt(fr);const br="input-action",xr="input-action-button";function yr(e,t){const{className:a,icon:n}=e,i=s(e,["className","icon"]);return f.jsx("span",{className:br,"data-component":"TextInput.Action",children:f.jsx(yn,Object.assign({ref:t,type:"button",variant:"invisible",size:"small",icon:n,className:et(xr,a)},i))})}yr.displayName="TextInput.Action";var wr=tt(yr);const Nr=Object.assign(vr,{Action:wr}),jr=["ArrowDown","ArrowUp"],kr=["Backspace","Delete"];function Cr(e,t){const a=e,{as:n=Nr,className:i,openOnFocus:r=!1,value:l,onFocus:c,onBlur:d,onClick:u,onChange:m,onKeyDown:p,onKeyUp:h}=a,g=s(a,["as","className","openOnFocus","value","onFocus","onBlur","onClick","onChange","onKeyDown","onKeyUp"]),{id:v,inputRef:b,activeDescendantId:x,showMenu:y,setShowMenu:w,setInputValue:j}=o.useContext(ir),{inputValue:k="",autocompleteSuggestion:C=""}=o.useContext(rr),S=N(t,b),[O,M]=o.useState(!0);return o.useEffect(()=>{const e=null==b?void 0:b.current;e&&(C?O&&document.activeElement===e&&(e.value=C,C.toLowerCase().startsWith(k.toLowerCase())&&e.setSelectionRange(k.length,C.length)):e.value=k)},[C,k,b,O]),o.useEffect(()=>{void 0!==l&&(null==j||j(String(l)))},[l,j]),f.jsx(n,Object.assign({ref:S,id:v,role:"combobox",autoComplete:"off","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(y),"aria-controls":`${v}-listbox`,"aria-activedescendant":x,className:i,onFocus:e=>{null==c||c(e),r&&(null==w||w(!0))},onBlur:e=>{null==d||d(e),null==w||w(!1)},onClick:e=>{null==u||u(e),r&&(null==w||w(!0))},onChange:e=>{null==m||m(e),null==j||j(e.currentTarget.value),null==w||w(!0)},onKeyDown:e=>{null==p||p(e),e.defaultPrevented||(kr.includes(e.key)&&M(!1),"Escape"!==e.key?y||e.altKey||!jr.includes(e.key)||null==w||w(!0):y?null==w||w(!1):e.currentTarget.value&&(null==j||j(""),e.currentTarget.value=""))},onKeyUp:e=>{null==h||h(e),kr.includes(e.key)&&M(!0)},"data-component":"Autocomplete.Input"},g))}Cr.displayName="Autocomplete.Input";var Sr=tt(Cr);const Or="autocomplete-menu-loading",Mr="autocomplete-menu-empty-state",Ar="sr-only",Tr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Ir(e){var t;const{items:a,selectedItemIds:n=[],selectionVariant:i="single",filter:r,sortOnClose:l,emptyStateText:c="No selectable options",addNewItem:d,loading:u=!1,onOpenChange:m,onSelectedChange:p,customScrollContainerRef:h,"aria-labelledby":g,className:v}=e,{id:b,inputRef:x,scrollContainerRef:y,activeDescendantId:w,setActiveDescendantId:N,showMenu:j,setShowMenu:k,setInputValue:C,setAutocompleteSuggestion:S}=o.useContext(ir),{deferredInputValue:O=""}=o.useContext(or),M=`${b}-listbox`,A=o.useCallback(e=>`${M}-${e}`,[M]),[T,I]=o.useState(()=>a.map(e=>e.id));o.useEffect(()=>{if(j)return;const e=a.map(e=>e.id).sort(null!=l?l:(t=e=>n.includes(e),(e,a)=>t(e)===t(a)?0:t(e)?-1:1));var t;I(t=>((e,t)=>e.length===t.length&&e.every((e,a)=>e===t[a]))(e,t)?t:e)},[j,a,n,l]);const D=o.useMemo(()=>new Map(T.map((e,t)=>[e,t])),[T]),L=o.useMemo(()=>{return a.filter(null!=r?r:(e=O,t=>{var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort((e,t)=>{var a,n;return(null!==(a=D.get(e.id))&&void 0!==a?a:Number.MAX_SAFE_INTEGER)-(null!==(n=D.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER)});var e},[a,r,O,D]),P=o.useMemo(()=>d?[...L,d.item]:L,[L,d]),E=o.useMemo(()=>P.filter(e=>!e.disabled),[P]),z=E.findIndex(e=>A(e.id)===w),$=E[z],[R,B]=o.useState(!1),V=e=>{var t;if(d&&e.id===d.item.id)d.onAdd(e);else{const r="single"===i?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];p?p(r.map(e=>a.find(t=>t.id===e)).filter(e=>void 0!==e)):"single"===i&&(null==C||C(null!==(t=e.text)&&void 0!==t?t:""))}if("multiple"===i)return null==C||C(""),void(null==S||S(""));null==k||k(!1)},_=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if("Enter"===e.key){if(!$)return;return e.preventDefault(),void V($)}const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;0!==t&&(e.preventDefault(),(e=>{if(0===E.length)return;const t=(e+E.length)%E.length;B(!0),null==N||N(A(E[t].id))})(-1===z?1===t?0:-1:z+t))},F=o.useRef(_);o.useEffect(()=>{F.current=_}),o.useEffect(()=>{const e=null==x?void 0:x.current;if(!e||!j)return;const t=e=>F.current(e);return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[x,j]);const H=null!==(t=null==$?void 0:$.text)&&void 0!==t?t:"",W=R&&Boolean($)&&H.toLowerCase().startsWith(O.toLowerCase())&&!n.includes($.id);o.useEffect(()=>{null==S||S(W?H:"")},[W,H,S]),o.useEffect(()=>{var e;if(!w||!R)return;const t=null!==(e=null==h?void 0:h.current)&&void 0!==e?e:null==y?void 0:y.current,a=document.getElementById(w);if(!t||!a||!t.contains(a))return;const n=t.getBoundingClientRect(),i=a.getBoundingClientRect();i.top<n.top?t.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(t.scrollTop+=i.bottom-n.bottom)},[w,R,h,y]);const G=o.useRef(!1);o.useEffect(()=>{const e=Boolean(j);G.current!==e&&(G.current=e,null==m||m(e))},[j,m]);const K="string"==typeof c?c:"No options available",q=u?"":0===P.length?K:`${P.length} option${1===P.length?"":"s"} available.`,[U,Y]=o.useState(""),Z=o.useRef("");o.useEffect(()=>{if(!j)return Z.current="",void Y("");if(q===Z.current)return;Z.current=q;const e=window.setTimeout(()=>Y(q),500);return()=>{window.clearTimeout(e)}},[j,q]);const Q=o.useMemo(()=>({container:"Autocomplete",listRole:"listbox",listLabelledBy:g,selectionAttribute:"aria-selected",selectionVariant:i,enableFocusZone:!1}),[g,i]),X=e=>{const{id:t,text:a,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,children:c}=e,u=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","children"]),m=d&&t===d.item.id?st:o;return f.jsxs(Bn.Item,Object.assign({id:A(t),tabIndex:-1,active:A(t)===w,selected:n.includes(t),onSelect:()=>V(e),"data-id":t},u,{children:[m?f.jsx(Bn.LeadingVisual,{children:Tr(m)}):null,c,a,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Tr(l)}):null]}),t)};return f.jsxs("div",{className:et(v),onMouseDown:e=>e.preventDefault(),onMouseMove:e=>{const t=e.target.closest('[role="option"]');t&&t.id!==w&&E.some(e=>A(e.id)===t.id)&&(B(!1),null==N||N(t.id))},"data-component":"Autocomplete.Menu","data-loading":u?"":void 0,children:[u?f.jsx("div",{className:Or,"data-component":"Autocomplete.Loading",children:f.jsx(en,{})}):0===P.length?c?f.jsx("div",{className:Mr,"data-component":"Autocomplete.EmptyState",children:c}):null:f.jsx(Oa.Provider,{value:Q,children:f.jsx(Bn,{id:M,children:P.map(X)})}),f.jsx("span",{role:"status","aria-live":"polite",className:Ar,"data-component":"Autocomplete.Announcement",children:U})]})}Ir.displayName="Autocomplete.Menu";const Dr="sr-only",Lr=Xe(["autocomplete-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2"],{variants:{width:{xsmall:"autocomplete-overlay-width-xsmall",small:"autocomplete-overlay-width-small",medium:"autocomplete-overlay-width-medium",large:"autocomplete-overlay-width-large",xlarge:"autocomplete-overlay-width-xlarge",auto:"autocomplete-overlay-width-auto",anchor:"autocomplete-overlay-width-anchor"},height:{small:"autocomplete-overlay-height-small",medium:"autocomplete-overlay-height-medium",large:"autocomplete-overlay-height-large",xlarge:"autocomplete-overlay-height-xlarge",auto:"autocomplete-overlay-height-auto"},maxHeight:{small:"autocomplete-overlay-max-height-small",medium:"autocomplete-overlay-max-height-medium",large:"autocomplete-overlay-max-height-large",xlarge:"autocomplete-overlay-max-height-xlarge"},unplaced:{true:"invisible",false:""}}});function Pr(e){var t,a,n,i,r;const{menuAnchorRef:l,side:c="outside-bottom",align:d="start",width:u="anchor",height:m="auto",maxHeight:p="medium",portalContainerName:h,children:g,className:v,style:b}=e,x=s(e,["menuAnchorRef","side","align","width","height","maxHeight","portalContainerName","children","className","style"]),{inputRef:y,scrollContainerRef:w,showMenu:j,setShowMenu:k}=o.useContext(ir),C=o.useRef(null),S=N(w,C),O=o.useCallback(()=>{var e,t,a;const n=null!==(e=null==y?void 0:y.current)&&void 0!==e?e:null;return null!==(a=null!==(t=null==l?void 0:l.current)&&void 0!==t?t:null==n?void 0:n.closest('[data-component="TextInput"]'))&&void 0!==a?a:n},[l,y]),M=o.useRef(null),[A,T]=o.useState(null),I=o.useCallback(()=>{const e=O(),t=C.current;if(!e||!t)return;const a=Object.assign(Object.assign({},ui(t,e,{side:c,align:d})),{anchorWidth:e.getBoundingClientRect().width});M.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth)(M.current,a)||(M.current=a,T(a))},[O,c,d]);return qn(()=>{if(!j)return M.current=null,void T(null);I();const e=new ResizeObserver(I),t=O();return C.current&&e.observe(C.current),t&&e.observe(t),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{e.disconnect(),window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[j,I,O]),o.useEffect(()=>{if(!j)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=C.current)||void 0===t?void 0:t.contains(n))||(null===(a=O())||void 0===a?void 0:a.contains(n))||null==k||k(!1))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[j,k,O]),f.jsx(oi,{containerName:h,children:f.jsx("div",Object.assign({ref:S,"aria-hidden":j?void 0:"true",className:et(j?Lr({width:u,height:m,maxHeight:p,unplaced:!A}):Dr,v),style:Object.assign(Object.assign({},b),{"--autocomplete-overlay-top":`${null!==(t=null==A?void 0:A.top)&&void 0!==t?t:0}px`,"--autocomplete-overlay-left":`${null!==(a=null==A?void 0:A.left)&&void 0!==a?a:0}px`,"--autocomplete-overlay-anchor-width":`${null!==(n=null==A?void 0:A.anchorWidth)&&void 0!==n?n:0}px`}),"data-component":"Autocomplete.Overlay","data-open":j?"":void 0,"data-side":null!==(i=null==A?void 0:A.anchorSide)&&void 0!==i?i:c,"data-align":null!==(r=null==A?void 0:A.anchorAlign)&&void 0!==r?r:d,"data-width":u,"data-height":m},x,{children:g}))})}Pr.displayName="Autocomplete.Overlay";const Er=Object.assign(sr,{Input:Sr,Menu:Ir,Overlay:Pr});e.createContext({});const zr=e=>"object"==typeof e&&Object.keys(e).some(e=>["narrow","regular","wide"].includes(e)),$r=20,Rr=Xe("avatar",{variants:{shape:{circle:"avatar-circle",square:"avatar-square"},responsive:{true:"avatar-responsive",false:""}}});function Br(e,t){const a=e,{as:n="img",className:i,alt:r="",size:o=$r,shape:l="circle",style:c}=a,d=s(a,["as","className","alt","size","shape","style"]),u=zr(o),m={"--avatar-size-regular":`${$r}px`};if(u)for(const[e,t]of Object.entries(o))void 0!==t&&(m[`--avatar-size-${e}`]=`${t}px`);else m["--avatar-size-regular"]=`${o}px`;return f.jsx(n,Object.assign({ref:t,alt:r,width:u?void 0:o,height:u?void 0:o,className:et(Rr({shape:l,responsive:u}),i),style:Object.assign(Object.assign({},c),m),"data-component":"Avatar","data-responsive":u||void 0,"data-shape":l},d))}Br.displayName="Avatar";var Vr=tt(Br);const _r=["narrow","regular","wide"],Fr={root:"avatar-stack",responsive:"avatar-stack-responsive",alignLeft:"avatar-stack-align-left",alignRight:"avatar-stack-align-right",variant:{cascade:"avatar-stack-cascade",stack:"avatar-stack-stack"},width:{cascade:{two:"avatar-stack-cascade-two",three:"avatar-stack-cascade-three",more:"avatar-stack-cascade-more"},stack:{two:"avatar-stack-stack-two",three:"avatar-stack-stack-three",more:"avatar-stack-stack-more"}},body:{collapsed:"avatar-stack-body",expandable:"avatar-stack-body-expandable"},item:{root:"avatar-stack-item",first:"avatar-stack-item-first",overlapped:"avatar-stack-item-overlapped",mask:"avatar-stack-item-mask",shape:{circle:"avatar-stack-item-circle",square:"avatar-stack-item-square"},edge:{circle:"avatar-stack-item-edge-circle",square:"avatar-stack-item-edge-square"},edgeAlignRight:"avatar-stack-item-edge-align-right",layer:["z-5","z-4","z-3","z-2","z-1"],fade:["","","avatar-stack-item-fade-third","avatar-stack-item-fade-fourth","avatar-stack-item-fade-fifth"],overflow:"avatar-stack-item-overflow",expanded:"avatar-stack-item-expanded",expandedFirst:"avatar-stack-item-expanded-first"}};function Hr(e,t){var a;const n=e,{as:i="span",className:r,children:l,variant:c="cascade",shape:d="circle",size:u,alignRight:m,disableExpand:p,style:h}=n,g=s(n,["as","className","children","variant","shape","size","alignRight","disableExpand","style"]),v=o.useRef(null),[b,x]=o.useState(!1);o.useEffect(()=>{if(!v.current)return;const e=v.current,t=()=>{x(ua(e).length>0)},a=new MutationObserver(t);return a.observe(e,{childList:!0}),t(),()=>{a.disconnect()}},[]);const y=o.Children.count(l),w=y>3?"more":3===y?"three":2===y?"two":void 0,N=!u||zr(u),j=!p,k={};if(zr(u))for(const e of _r)k[`--avatar-stack-size-${e}`]=`${null!==(a=u[e])&&void 0!==a?a:$r}px`;else if(u)k["--avatar-stack-size"]=`${u}px`;else{const e=(e=>{var t;const a={narrow:[],regular:[],wide:[]};for(const n of o.Children.toArray(e)){if(!o.isValidElement(n))continue;const e=n.props.size;for(const n of _r)a[n].push(zr(e)?null!==(t=e[n])&&void 0!==t?t:$r:null!=e?e:$r)}return Object.fromEntries(_r.map(e=>[e,a[e].length>0?Math.min(...a[e]):$r]))})(l);for(const t of _r)k[`--avatar-stack-size-${t}`]=`${e[t]}px`}const C=o.Children.map(l,(e,t)=>o.isValidElement(e)?o.cloneElement(e,{className:et(Fr.item.root,0===t?Fr.item.first:Fr.item.overlapped,Fr.item.shape[d],m&&"square"===d?Fr.item.edgeAlignRight:Fr.item.edge[d],t>0&&"circle"===d&&Fr.item.mask,"square"===d&&Fr.item.layer[Math.min(t,4)],"cascade"===c&&Fr.item.fade[t],t>4&&Fr.item.overflow,j&&Fr.item.expanded,j&&0===t&&Fr.item.expandedFirst,e.props.className)}):e);return f.jsx(i,Object.assign({ref:t,className:et(Fr.root,Fr.variant[c],w&&Fr.width[c][w],m?Fr.alignRight:Fr.alignLeft,N&&Fr.responsive,r),style:Object.assign(Object.assign({},h),k),"data-component":"AvatarStack","data-variant":c,"data-shape":d,"data-avatar-count":y>3?"3+":y,"data-align-right":m,"data-responsive":N||void 0},g,{children:f.jsx("div",{ref:v,className:j?Fr.body.expandable:Fr.body.collapsed,tabIndex:j&&!b?0:void 0,"data-component":"AvatarStack.Body","data-disable-expand":p,children:C})}))}Hr.displayName="AvatarStack";var Wr=tt(Hr);const Gr=e.createContext({});function Kr(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(a),"data-component":"Banner.Description"},n))}Kr.displayName="Banner.Description";var qr=tt(Kr);const Ur="banner-title";function Yr(e,t){const{as:a="h2",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l}=o.useContext(Gr);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et(Ur,n),"data-component":"Banner.Title"},r))}Yr.displayName="Banner.Title";var Zr=tt(Yr);const Qr="banner-container",Xr="banner-actions",Jr="banner-actions-inline",eo="banner-actions-stacked",to={shown:"banner-actions-shown",hidden:"banner-actions-hidden",inlineLeading:"banner-actions-inline-leading",inlineTrailing:"banner-actions-inline-trailing",responsiveLeading:"banner-actions-responsive-leading",responsiveTrailing:"banner-actions-responsive-trailing"},ao="sr-only",no=Xe("banner",{variants:{layout:{default:"banner-default",compact:"banner-compact"},variant:{critical:"banner-critical",info:"banner-info",success:"banner-success",upsell:"banner-upsell",warning:"banner-warning"},flush:{true:"banner-flush",false:""}}}),io=Xe("banner-icon",{variants:{tight:{true:"banner-icon-tight",false:""}}}),ro=Xe("banner-body",{variants:{actions:{stacked:"banner-body-stacked",inline:"banner-body-inline",responsive:"banner-body-responsive"}}}),oo=Xe("banner-content",{variants:{tight:{true:"banner-content-tight",false:""}}}),so=Xe("banner-dismiss",{variants:{withActions:{true:"banner-dismiss-with-actions",false:""}}}),lo={critical:Ot,info:It,success:ft,upsell:It,warning:Ht},co=["info","upsell"],uo=({primaryAction:e,secondaryAction:t,className:a,leadingClassName:n,trailingClassName:i})=>f.jsxs("div",{"data-component":"Banner.Actions",children:[f.jsxs("div",{className:et(Xr,a,i),"data-primary-action":"trailing",children:[t,e]}),f.jsxs("div",{className:et(Xr,a,n),"data-primary-action":"leading",children:[e,t]})]});function mo(e,t){const{className:a,children:n,title:i,description:r,hideTitle:o,leadingVisual:l,variant:c="info",layout:d="default",actionsLayout:u="default",flush:m=!1,onDismiss:p,primaryAction:h,secondaryAction:g,"aria-label":v,"aria-labelledby":b}=e,x=s(e,["className","children","title","description","hideTitle","leadingVisual","variant","layout","actionsLayout","flush","onDismiss","primaryAction","secondaryAction","aria-label","aria-labelledby"]),y=Jt(),w=Boolean(p),N=Boolean(h||g),j=Boolean(o)&&!N,k=lo[c],C=l&&co.includes(c)?l:f.jsx(k,{}),S="stacked"===u||w&&!o&&"inline"!==u,O=S?{leading:to.shown,trailing:to.hidden}:"inline"===u?{leading:to.inlineLeading,trailing:to.inlineTrailing}:{leading:to.responsiveLeading,trailing:to.responsiveTrailing},M=i?f.jsx(Zr,{children:i}):null;return f.jsx(Gr.Provider,{value:{titleId:y},children:f.jsx("div",{className:Qr,children:f.jsxs("section",Object.assign({ref:t,"aria-labelledby":null!=b?b:v?void 0:y,"aria-label":b?void 0:v,tabIndex:-1,className:et(no({layout:d,variant:c,flush:m}),a),"data-component":"Banner","data-variant":c,"data-layout":d,"data-actions-layout":u,"data-dismissible":w||void 0,"data-has-actions":N||void 0,"data-title-hidden":o||void 0,"data-flush":m||void 0},x,{children:[f.jsx("div",{className:et(io({tight:j})),"data-component":"Banner.Icon",children:C}),f.jsxs("div",{className:et(ro({actions:S?"stacked":"inline"===u?"inline":"responsive"})),children:[f.jsxs("div",{className:et(oo({tight:j})),"data-component":"Banner.Content",children:[M?o?f.jsx("span",{className:ao,children:M}):M:null,r?f.jsx(qr,{children:r}):null,n]}),N?f.jsx(uo,{primaryAction:h,secondaryAction:g,className:et("inline"===u&&Jr,S&&eo),leadingClassName:O.leading,trailingClassName:O.trailing}):null]}),w?f.jsx(yn,{icon:Ct,"aria-label":"Dismiss banner",variant:"invisible",onClick:p,className:et(so({withActions:N})),"data-component":"Banner.Dismiss"}):null]}))})})}mo.displayName="Banner";var po=tt(mo);function ho(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"default","data-component":"Banner.PrimaryAction"},e))}ho.displayName="Banner.PrimaryAction";var go=tt(ho);function fo(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"invisible","data-component":"Banner.SecondaryAction"},e))}fo.displayName="Banner.SecondaryAction";var vo=tt(fo);const bo=Object.assign(po,{Title:Zr,Description:qr,PrimaryAction:go,SecondaryAction:vo}),xo={container:"blankslate-container",root:"blankslate",border:"blankslate-border",narrow:"blankslate-narrow",size:{small:"blankslate-small",medium:"blankslate-medium",large:"blankslate-large"},padding:{small:"blankslate-padding-small",medium:"blankslate-padding-medium",large:"blankslate-padding-large"},spaciousPadding:{small:"blankslate-padding-spacious-small",medium:"blankslate-padding-spacious-medium",large:"blankslate-padding-spacious-large"},tightType:"blankslate-tight-type",tightPadding:{small:"blankslate-tight-padding-small",medium:"blankslate-tight-padding-medium",large:"blankslate-tight-padding-large"},tightSpaciousPadding:"blankslate-tight-padding-spacious"};function yo(e,t){const a=e,{as:n="div",className:i,size:r="medium",border:o,narrow:l,spacious:c}=a,d=s(a,["as","className","size","border","narrow","spacious"]);return f.jsx("div",{className:xo.container,children:f.jsx(n,Object.assign({ref:t,className:et(xo.root,xo.size[r],c?xo.spaciousPadding[r]:xo.padding[r],xo.tightType,c?xo.tightSpaciousPadding:xo.tightPadding[r],o&&xo.border,l&&xo.narrow,i),"data-component":"Blankslate","data-size":r,"data-border":o,"data-narrow":l,"data-spacious":c},d))})}yo.displayName="Blankslate";var wo=tt(yo);const No="blankslate-description";function jo(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(No,a),"data-component":"Blankslate.Description"},n))}jo.displayName="Blankslate.Description";var ko=tt(jo);const Co="blankslate-heading";function So(e,t){const{as:a="h2",className:n}=e,i=s(e,["as","className"]);return f.jsx(a,Object.assign({ref:t,className:et(Co,n),"data-component":"Blankslate.Heading"},i))}So.displayName="Blankslate.Heading";var Oo=tt(So);const Mo="blankslate-action",Ao="blankslate-action-tight";function To(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Mo,Ao,a)},n))}To.displayName="Blankslate.Action";var Io=tt(To);function Do(e,t){return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.PrimaryAction"},e))}Do.displayName="Blankslate.PrimaryAction";var Lo=tt(Do);const Po="link",Eo="link-inline",zo="link-muted";function $o(e,t){const a=e,{as:n="a",className:i,muted:r,inline:o}=a,l=s(a,["as","className","muted","inline"]);return f.jsx(n,Object.assign({ref:t,className:et(Po,o&&Eo,r&&zo,i),"data-component":"Link","data-muted":r,"data-inline":o},l))}$o.displayName="Link";var Ro=tt($o);function Bo(e,t){const{href:a,children:n}=e,i=s(e,["href","children"]);return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.SecondaryAction"},i,{children:void 0===a?n:f.jsx(Ro,{href:a,children:n})}))}Bo.displayName="Blankslate.SecondaryAction";var Vo=tt(Bo);const _o="blankslate-visual",Fo="blankslate-visual-tight";function Ho(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("span",Object.assign({ref:t,className:et(_o,Fo,a),"data-component":"Blankslate.Visual"},n))}Ho.displayName="Blankslate.Visual";var Wo=tt(Ho);const Go=Object.assign(wo,{Visual:Wo,Heading:Oo,Description:ko,PrimaryAction:Lo,SecondaryAction:Vo});function Ko({items:e}){return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":`${e.length} more breadcrumb items`,variant:"invisible",size:"small","data-component":"Breadcrumbs.OverflowMenu"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:e.map((e,t)=>{const a=e.props,{children:n,selected:i,as:r}=a,o=s(a,["children","selected","as"]);return f.jsx(Bn.LinkItem,Object.assign({as:r,"aria-current":i?"page":void 0},o,{children:n}),t)})})})]})}Ko.displayName="Breadcrumbs.OverflowMenu";const qo=e.createContext({}),Uo="breadcrumbs",Yo="breadcrumbs-list",Zo="breadcrumbs-list-wrap",Qo="breadcrumbs-list-menu",Xo="breadcrumbs-item",Jo="breadcrumbs-item-menu",es="breadcrumbs-separator",ts=()=>f.jsx("span",{className:es,"aria-hidden":"true","data-component":"Breadcrumbs.Separator",children:f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z",fill:"currentcolor"})})});function as(e){const{className:t,children:a,style:n,overflow:i="wrap",variant:r="normal"}=e,s=o.useRef(null),l=o.useMemo(()=>(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(a),[a]),c=l[0],d="menu-with-root"!==i,[u,m]=o.useState([]),[p,h]=o.useState(null),[g,v]=o.useState(28),b=o.useCallback(e=>{const t=null==e?void 0:e.querySelector("button");t&&v(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);qn(()=>{if("wrap"===i)return;const e=s.current;if(!e)return;h(t=>t===e.offsetWidth?t:e.offsetWidth);const t=e.querySelectorAll("li[data-crumb]");t.length===l.length&&m(Array.from(t,e=>e.offsetWidth))},[l,i]),o.useEffect(()=>{const e=s.current;if("wrap"===i||!e)return;const t=new ResizeObserver(e=>{for(const t of e){const e=Math.round(t.contentRect.width);h(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);const{menuItemCount:x,hideRoot:y}=o.useMemo(()=>"wrap"===i||u.length!==l.length?{menuItemCount:0,hideRoot:d}:(({availableWidth:e,itemCount:t,itemWidths:a,menuButtonWidth:n,overflow:i,hideRoot:r})=>{var o;let s=r;const l=null!==(o=a[0])&&void 0!==o?o:0;let c=4;s?e<544&&t>2&&(c=1):c=3;const d=e=>{const t=e.reduce((e,t)=>e+t+16,0);return s?t:l+t};let u=[...a],m=0;if(e>0&&u.length>0){let t=d(u);for(;"wrap"!==i&&(t>e||u.length>c);){if(m+=1,u=u.slice(1),t=d(u)+n,1===u.length&&t>e){s=!0;break}s=r}}return{menuItemCount:m,hideRoot:s}})({availableWidth:null!=p?p:800,itemCount:l.length,itemWidths:u,menuButtonWidth:g,overflow:i,hideRoot:d}),[i,d,l,u,p,g]),w=o.useMemo(()=>({variant:r}),[r]),N=o.useMemo(()=>{const e=(e,t)=>f.jsxs("li",{className:Xo,"data-crumb":"",children:[e,f.jsx(ts,{})]},t);if(0===x)return l.map((t,a)=>e(t,a));const t=l.slice(0,x),a=l.slice(x),n=y?t:t.slice(1),i=f.jsxs("li",{ref:b,className:et(Xo,Jo),"data-overflow-menu":"",children:[f.jsx(Ko,{items:n}),f.jsx(ts,{})]},"overflow-menu"),r=a.map((t,a)=>e(t,`visible-${a}`));return y?[i,...r]:[e(c,"root"),i,...r]},[l,x,y,b,c]);return f.jsx(qo.Provider,{value:w,children:f.jsx("nav",{ref:s,"aria-label":"Breadcrumbs",className:et(Uo,t),style:n,"data-component":"Breadcrumbs","data-overflow":i,"data-variant":r,children:f.jsx("ol",{className:et(Yo,"wrap"===i?Zo:Qo),children:N})})})}as.displayName="Breadcrumbs";const ns="breadcrumbs-link",is="breadcrumbs-link-normal",rs="breadcrumbs-link-normal-selected",os="breadcrumbs-link-spacious",ss="breadcrumbs-link-spacious-selected";function ls(e,t){const a=e,{as:n="a",className:i,selected:r}=a,l=s(a,["as","className","selected"]),{variant:c="normal"}=o.useContext(qo),d="spacious"===c;return f.jsx(n,Object.assign({ref:t,"aria-current":r?"page":void 0,className:et(ns,d?os:is,r&&(d?ss:rs),i),"data-component":"Breadcrumbs.Item","data-selected":r?"":void 0},l))}ls.displayName="Breadcrumbs.Item";var cs=tt(ls);const ds=Object.assign(as,{Item:cs}),us="button-group",ms={root:"button-group-item",first:"button-group-item-first",last:"button-group-item-last"},ps=["[disabled]","[hidden]","[inert]"],hs=["button","a[href]","summary"].map(e=>`${e}:not(${ps.join("):not(")})`).join(", "),gs=e=>e?Array.from(e.querySelectorAll(hs)):[],fs=(e,t)=>{for(const a of e)a.tabIndex=a===t?0:-1};function vs(e,t){const a=e,{as:n="div",className:i,children:r,role:l,onFocus:c,onKeyDown:d}=a,u=s(a,["as","className","children","role","onFocus","onKeyDown"]),m=o.useRef(null),p=N(t,m),h="toolbar"===l,g=o.useCallback(()=>{if(!h)return;const e=gs(m.current),t=e.find(e=>e===document.activeElement);fs(e,null!=t?t:e[0])},[h]);o.useEffect(g),o.useEffect(()=>{if(!h||null===m.current)return;const e=m.current,t=new MutationObserver(g);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(const t of gs(e))t.removeAttribute("tabindex")}},[h,g]);const v=o.Children.toArray(r);return f.jsx(n,Object.assign({ref:p,className:et(us,i),role:l,onFocus:e=>{if(null==c||c(e),!h)return;const t=gs(m.current);t.includes(e.target)&&fs(t,e.target)},onKeyDown:e=>{null==d||d(e);const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(!h||0===t||e.defaultPrevented)return;const a=gs(m.current),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},"data-component":"ButtonGroup"},u,{children:v.map((e,t)=>f.jsx("div",{className:et(ms.root,0===t&&ms.first,t===v.length-1&&ms.last),"data-component":"ButtonGroup.Item",children:e},o.isValidElement(e)?e.key:t))}))}vs.displayName="ButtonGroup";var bs=tt(vs);const xs="calendar-day",ys="calendar-day-interactive",ws="calendar-day-selected",Ns="calendar-day-between",js="calendar-day-outside",ks="calendar-day-unavailable",Cs="sr-only";function Ss(e,t){const{label:a,name:n,dayKey:i,selected:r,range:o,today:l,outside:c,unavailable:d,tabbable:u,className:m}=e,p=s(e,["label","name","dayKey","selected","range","today","outside","unavailable","tabbable","className"]),h="middle"===o,g=r&&!h;return f.jsxs("button",Object.assign({ref:t,type:"button",tabIndex:u?0:-1,"aria-pressed":r,"aria-current":l?"date":void 0,"aria-disabled":d||void 0,className:et(xs,!d&&!r&&ys,c&&js,h&&Ns,d&&ks,g&&ws,m),"data-component":"Calendar.Day","data-date":i,"data-selected":r,"data-range":o,"data-today":l||void 0,"data-outside":c||void 0,"data-unavailable":d||void 0,"data-tabbable":u},p,{children:[f.jsx("span",{"aria-hidden":"true",children:a}),f.jsx("span",{className:Cs,children:n})]}))}Ss.displayName="Calendar.Day";var Os,Ms=tt(Ss),As={exports:{}};var Ts,Is=(Os||(Os=1,As.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",l="week",c="month",d="quarter",u="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},v=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},b={s:v,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t);var n=12*(a.year()-t.year())+(a.month()-t.month()),i=t.clone().add(n,c),r=a-i<0,o=t.clone().add(n+(r?-1:1),c);return+(-(n+(a-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:m,h:o,m:r,s:i,ms:n,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",y={};y[x]=f;var w="$isDayjsObject",N=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,a,n){var i;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();y[r]&&(i=r),a&&(y[r]=a,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(x=i),i||!n&&x},k=function(e,t){if(N(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new S(a)},C=b;C.l=j,C.i=N,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function f(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var a=k(e);return this.startOf(t)<=a&&a<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,a){return C.u(e)?this[t]:this.set(a,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var a=this,n=!!C.u(t)||t,d=C.p(e),p=function(e,t){var i=C.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a);return n?i:i.endOf(s)},h=function(e,t){return C.w(a.toDate()[e].apply(a.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return n?p(1,0):p(31,11);case c:return n?p(1,f):p(0,f+1);case l:var x=this.$locale().weekStart||0,y=(g<x?g+7:g)-x;return p(n?v-y:v+(6-y),f);case s:case m:return h(b+"Hours",0);case o:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case i:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var a,l=C.p(e),d="set"+(this.$u?"UTC":""),p=(a={},a[s]=d+"Date",a[m]=d+"Date",a[c]=d+"Month",a[u]=d+"FullYear",a[o]=d+"Hours",a[r]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(m,1);g.$d[p](h),g.init(),this.$d=g.set(m,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,d){var m,p=this;n=Number(n);var h=C.p(d),g=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(h===c)return this.set(c,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===s)return g(1);if(h===l)return g(7);var f=(m={},m[r]=t,m[o]=a,m[i]=e,m)[h]||1,v=this.$d.getTime()+n*f;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),r=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,d=a.meridiem,u=function(e,a,i,r){return e&&(e[a]||e(t,n))||i[a].slice(0,r)},m=function(e){return C.s(r%12||12,e,"0")},h=d||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(a.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(a.weekdaysMin,t.$W,l,2);case"ddd":return u(a.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return h(r,o,!0);case"A":return h(r,o,!1);case"m":return String(o);case"mm":return C.s(o,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,m,p){var h,g=this,f=C.p(m),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,y=function(){return C.m(g,v)};switch(f){case u:h=y()/12;break;case c:h=y();break;case d:h=y()/3;break;case l:h=(x-b)/6048e5;break;case s:h=(x-b)/864e5;break;case o:h=x/a;break;case r:h=x/t;break;case i:h=x/e;break;default:h=x}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=j(e,t,!0);return n&&(a.$L=n),a},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),O=S.prototype;return k.prototype=O,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",c],["$y",u],["$D",m]].forEach(function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=j,k.isDayjs=N,k.unix=function(e){return k(1e3*e)},k.en=y[x],k.Ls=y,k.p={},k}()),As.exports),Ds=l(Is),Ls={exports:{}};var Ps,Es=(Ts||(Ts=1,Ls.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),a=60*t[1]+(+t[2]||0);return 0===a?0:"+"===t[0]?-a:a}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var a,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){a=i>12;break}}else a=e===(t?"pm":"PM");return a},m={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],Q:[a,function(e){this.month=3*(e-1)+1}],S:[a,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[n,l("day")],Do:[r,function(e){var t=o.ordinal,a=e.match(/\d+/);if(this.day=a[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,l("week")],ww:[n,l("week")],M:[i,l("month")],MM:[n,l("month")],MMM:[r,function(e){var t=d("months"),a=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(a<1)throw new Error;this.month=a%12||a}],MMMM:[r,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(a){var n,i;n=a,i=o&&o.formats;for(var r=(a=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,a,n){var r=n&&n.toUpperCase();return a||i[n]||e[n]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})).match(t),s=r.length,l=0;l<s;l+=1){var c=r[l],d=m[c],u=d&&d[0],p=d&&d[1];r[l]=p?{regex:u,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},a=0,n=0;a<s;a+=1){var i=r[a];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(n),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var a=e.hours;t?a<12&&(e.hours+=12):12===a&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,r=e.args;this.$u=n;var s=r[1];if("string"==typeof s){var l=!0===r[2],c=!0===r[3],d=l||c,u=r[2];c&&(u=r[2]),o=this.$locale(),!l&&u&&(o=a.Ls[u]),this.$d=function(e,t,a,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),r=i.year,o=i.month,s=i.day,l=i.hours,c=i.minutes,d=i.seconds,u=i.milliseconds,m=i.zone,h=i.week,g=new Date,f=s||(r||o?1:g.getDate()),v=r||g.getFullYear(),b=0;r&&!o||(b=o>0?o-1:g.getMonth());var x,y=l||0,w=c||0,N=d||0,j=u||0;return m?new Date(Date.UTC(v,b,f,y,w,N,j+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,f,y,w,N,j)):(x=new Date(v,b,f,y,w,N,j),h&&(x=n(x).week(h).toDate()),x)}catch(e){return new Date("")}}(t,s,n,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var m=s.length,h=1;h<=m;h+=1){r[1]=s[h-1];var g=a.apply(this,r);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===m&&(this.$d=new Date(""))}else i.call(this,e)}}}()),Ls.exports),zs=l(Es),$s={exports:{}};var Rs,Bs=(Ps||(Ps=1,$s.exports=function(e,t,a){var n=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,a,n,r){var o=e.name?e:e.$locale(),s=i(o[t]),l=i(o[a]),c=s||l.map(function(e){return e.slice(0,n)});if(!r)return c;var d=o.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},o=function(){return a.Ls[a.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return l.bind(this)()},a.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},a.months=function(){return r(o(),"months")},a.monthsShort=function(){return r(o(),"monthsShort","months",3)},a.weekdays=function(e){return r(o(),"weekdays",null,null,e)},a.weekdaysShort=function(e){return r(o(),"weekdaysShort","weekdays",3,e)},a.weekdaysMin=function(e){return r(o(),"weekdaysMin","weekdays",2,e)}}),$s.exports),Vs=l(Bs),_s={exports:{}};var Fs,Hs,Ws=(Rs||(Rs=1,_s.exports=(Fs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,a){var n=t.prototype,i=n.format;a.en.formats=Fs,n.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,a=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,a,n){var i=n&&n.toUpperCase();return a||t[n]||Fs[n]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})}(e,void 0===t?{}:t);return i.call(this,a)}})),_s.exports),Gs=l(Ws),Ks={exports:{}};var qs=(Hs||(Hs=1,Ks.exports=function(){var e="week",t="year";return function(a,n,i){var r=n.prototype;r.week=function(a){if(void 0===a&&(a=null),null!==a)return this.add(7*(a-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=i(this).startOf(t).add(1,t).date(n),o=i(this).endOf(e);if(r.isBefore(o))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),Ks.exports),Us=l(qs);Ds.extend(zs),Ds.extend(Vs),Ds.extend(Gs),Ds.extend(Us);const Ys="YYYY-MM-DD",Zs=e=>Ds(e),Qs=e=>{if(null==e)return null;const t=Zs(e);return t.isValid()?t:null},Xs=e=>e.format(Ys),Js={from:null,to:null},el=(e,t)=>{if(null==e)return Js;if(t){const t=e;return{from:Qs(t.from),to:Qs(t.to)}}const a=Qs(e);return{from:a,to:a}},tl=()=>{var e;return null!==(e=Ds().localeData().firstDayOfWeek())&&void 0!==e?e:0},al=e=>{const t=Ds().localeData(),a=t.weekdaysMin(),n=t.weekdays();return Array.from({length:7},(t,i)=>{const r=(e+i)%7;return{day:r,narrow:a[r],full:n[r]}})},nl=(e,t)=>e.subtract((e.day()-t+7)%7,"day"),il=(e,t,a=!1)=>{const n=e.startOf("month"),i=nl(n,t),r=(n.day()-t+7)%7,o=(t+7-1-e.endOf("month").day())%7,s=r+e.daysInMonth()+o,l=a?6:s/7;return Array.from({length:l},(e,t)=>Array.from({length:7},(e,a)=>i.add(7*t+a,"day")))},rl=(e,t,a,n)=>!(null!==t&&e.isBefore(t,"day")||null!==a&&e.isAfter(a,"day")||(null==n?void 0:n(e.toDate()))),ol=(e,t)=>e.isAfter(t,"day")?[t,e]:[e,t],sl=(e,t,a)=>{if(null===t)return null!==a&&e.isSame(a,"day");if(null===a)return e.isSame(t,"day");const[n,i]=ol(t,a);return!e.isBefore(n,"day")&&!e.isAfter(i,"day")},ll=(e,t,a)=>{if(null===t||null===a||t.isSame(a,"day"))return;const[n,i]=ol(t,a);return e.isSame(n,"day")?"start":e.isSame(i,"day")?"end":e.isAfter(n,"day")&&e.isBefore(i,"day")?"middle":void 0},cl=(e,t,a)=>{if(null===e||null!==t)return{from:a,to:null};if(a.isSame(e,"day"))return Js;const[n,i]=ol(e,a);return{from:n,to:i}},dl=(e,t)=>{const a=Ds(e,t,!0);return a.isValid()?a:null},ul=()=>Ds(),ml="calendar",pl="calendar-header",hl="calendar-caption",gl="calendar-grid",fl="calendar-weekday",vl="calendar-week-number-header",bl="calendar-week-number",xl="calendar-cell",yl="calendar-cell-range",wl="calendar-cell-range-start",Nl="calendar-cell-range-end",jl="sr-only";function kl(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,month:c,defaultMonth:d,onMonthChange:u,min:m,max:p,isDateDisabled:h,weekStartsOn:g,fixedWeeks:v=!1,showOutsideDays:b=!0,showWeekNumbers:x=!1,monthFormat:y="MMMM YYYY",dayFormat:w="LL",focusableDayRef:N,previousMonthLabel:j="Previous month",nextMonthLabel:k="Next month",weekNumberLabel:C="Week",className:S}=a,O=s(a,["mode","value","defaultValue","onChange","month","defaultMonth","onMonthChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showOutsideDays","showWeekNumbers","monthFormat","dayFormat","focusableDayRef","previousMonthLabel","nextMonthLabel","weekNumberLabel","className"]),M=Jt(),A=o.useRef(null),T=ul(),I="range"===n,D=void 0!==i,[L,P]=o.useState(()=>el(r,I)),E=D?el(i,I):L,z=void 0!==c,[$,R]=o.useState(()=>{var e,t,a;return(null!==(a=null!==(t=null!==(e=Qs(d))&&void 0!==e?e:el(r,I).from)&&void 0!==t?t:el(i,I).from)&&void 0!==a?a:ul()).startOf("month")}),B=(z?Zs(c):$).startOf("month"),V=Qs(m),_=Qs(p),F=null!=g?g:tl(),H=al(F),W=il(B,F,v),[G,K]=o.useState(null),q=o.useRef(null),[U,Y]=o.useState(null),Z=I&&null!==E.from&&null===E.to,Q=Z?U:E.to,X=Xs((()=>{for(const e of[G,E.from,T])if(e&&e.isSame(B,"month"))return e;return B})());o.useEffect(()=>{var e,t;const a=q.current;null!==a&&(q.current=null,null===(t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`[data-date='${a}']`))||void 0===t||t.focus())});const J=e=>{const t=e.startOf("month");z||R(t),null==u||u(t.toDate())},ee=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const a=t=>{e.preventDefault(),(e=>{K(e),q.current=Xs(e),e.isSame(B,"month")||J(e)})(t)};switch(e.key){case"ArrowLeft":return a(t.subtract(1,"day"));case"ArrowRight":return a(t.add(1,"day"));case"ArrowUp":return a(t.subtract(7,"day"));case"ArrowDown":return a(t.add(7,"day"));case"Home":return a(nl(t,F));case"End":return a(nl(t,F).add(6,"day"));case"PageUp":return a(t.subtract(1,e.shiftKey?"year":"month"));case"PageDown":return a(t.add(1,e.shiftKey?"year":"month"));default:return}},te=B.subtract(1,"month"),ae=B.add(1,"month"),ne=null===V||!te.endOf("month").isBefore(V,"day"),ie=null===_||!ae.isAfter(_,"day");return f.jsxs("div",Object.assign({ref:t,className:et(ml,S),"data-component":"Calendar"},O,{children:[f.jsxs("div",{className:pl,"data-component":"Calendar.Header",children:[f.jsx(yn,{icon:xt,"aria-label":j,variant:"invisible",size:"small",disabled:!ne,onClick:()=>J(te),"data-component":"Calendar.PreviousMonth"}),f.jsx("div",{id:M,"aria-live":"polite",className:hl,"data-component":"Calendar.Caption",children:B.format(y)}),f.jsx(yn,{icon:yt,"aria-label":k,variant:"invisible",size:"small",disabled:!ie,onClick:()=>J(ae),"data-component":"Calendar.NextMonth"})]}),f.jsxs("table",{ref:A,"aria-labelledby":M,className:gl,onPointerLeave:()=>{Y(null)},"data-component":"Calendar.Grid","data-mode":n,children:[f.jsx("thead",{children:f.jsxs("tr",{children:[x?f.jsx("th",{scope:"col",className:vl,children:f.jsx("span",{className:jl,children:C})}):null,H.map(e=>f.jsxs("th",{scope:"col",className:fl,"data-component":"Calendar.Weekday",children:[f.jsx("span",{"aria-hidden":"true",children:e.narrow}),f.jsx("span",{className:jl,children:e.full})]},e.day))]})}),f.jsx("tbody",{children:W.map(e=>f.jsxs("tr",{"data-component":"Calendar.Week",children:[x?f.jsx("th",{scope:"row",className:bl,"data-component":"Calendar.WeekNumber",children:e[0].week()}):null,e.map(e=>{const t=Xs(e),a=!e.isSame(B,"month");if(a&&!b)return f.jsx("td",{className:xl},t);const n=t===X,i=ll(e,E.from,Q);return f.jsx("td",{className:et(xl,i&&yl,"start"===i&&wl,"end"===i&&Nl),children:f.jsx(Ms,{ref:n?N:void 0,label:e.format("D"),name:e.format(w),dayKey:t,selected:sl(e,E.from,E.to),range:i,today:e.isSame(T,"day"),outside:a,unavailable:!rl(e,V,_,h),tabbable:n,onClick:()=>(e=>{var t,a,n,i;if(!rl(e,V,_,h))return;K(e),e.isSame(B,"month")||J(e);const r=I?cl(E.from,E.to,e):{from:e,to:e};if(D||P(r),I){return void(null==l||l({from:null!==(a=null===(t=r.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=r.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(e.toDate())})(e),onKeyDown:t=>ee(t,e),onFocus:()=>(e=>{K(t=>(null==t?void 0:t.isSame(e,"day"))?t:e),Z&&Y(e)})(e),onPointerEnter:()=>(e=>{Z&&Y(e)})(e)})},t)})]},Xs(e[0])))})]})]}))}kl.displayName="Calendar";var Cl=tt(kl);const Sl=Object.assign(Cl,{Day:Ms}),Ol="card-action";function Ml(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Ol,a),"data-component":"Card.Action"},n))}Ml.displayName="Card.Action";var Al=tt(Ml);const Tl=e.createContext({}),Il="card-description text-body-medium";function Dl(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(Il,a),"data-component":"Card.Description"},n))}Dl.displayName="Card.Description";var Ll=tt(Dl);const Pl="card-heading",El="card-heading-compact";function zl(e,t){const{as:a="h3",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l,layout:c}=o.useContext(Tl);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et(Pl,"compact"===c&&El,n),"data-component":"Card.Heading"},r))}zl.displayName="Card.Heading";var $l=tt(zl);const Rl="card-icon",Bl="card-icon-tile";function Vl(e,t){const{icon:a,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]),{layout:l}=o.useContext(Tl);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(Rl,"compact"!==l&&Bl,n),"data-component":"Card.Icon"},r,{children:f.jsx(a,{})}))}Vl.displayName="Card.Icon";var _l=tt(Vl);const Fl="card-image";function Hl(e,t){const{className:a,alt:n=""}=e,i=s(e,["className","alt"]);return f.jsx("img",Object.assign({ref:t,alt:n,className:et(Fl,a),"data-component":"Card.Image"},i))}Hl.displayName="Card.Image";var Wl=tt(Hl);const Gl="card-metadata text-body-small";function Kl(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Gl,a),"data-component":"Card.Metadata"},n))}Kl.displayName="Card.Metadata";var ql=tt(Kl);const Ul="card-content",Yl=Xe("card",{variants:{borderRadius:{medium:"card-radius-medium",large:"card-radius-large"},layout:{default:"",compact:"card-compact"},padding:{none:"card-padding-none",condensed:"card-padding-condensed",normal:"card-padding-normal"}},compoundVariants:[{layout:"compact",padding:"normal",class:"card-compact-padding-normal"}]}),Zl=Xe("card-header",{variants:{edgeToEdge:{true:"card-header-edge-to-edge",false:""},layout:{default:"",compact:"card-header-compact"}}}),Ql=Xe("card-body",{variants:{layout:{default:"",compact:"card-body-compact"}}});function Xl(e,t){var a;const n=e,{as:i="div",className:r,children:l,padding:c="normal",borderRadius:d="large",layout:u="default","aria-label":m,"aria-labelledby":p}=n,h=s(n,["as","className","children","padding","borderRadius","layout","aria-label","aria-labelledby"]),g=Jt(),[v]=va(l,{icon:_l,image:Wl,heading:$l,description:Ll,metadata:ql,action:Al}),b="section"===i,x=b?g:void 0,y=null!=p?p:b&&!m?x:void 0,w=null!==(a=v.image)&&void 0!==a?a:v.icon,N=Boolean(w||v.heading||v.description||v.metadata||v.action);return 0===o.Children.toArray(l).length?null:f.jsx(Tl.Provider,{value:{titleId:x,layout:u},children:f.jsx(i,Object.assign({ref:t,"aria-label":m,"aria-labelledby":y,className:et(Yl({borderRadius:d,layout:u,padding:c}),r),"data-component":"Card","data-padding":c,"data-border-radius":d,"data-layout":u},h,{children:N?f.jsxs(f.Fragment,{children:[w?f.jsx("div",{className:et(Zl({edgeToEdge:Boolean(v.image),layout:u})),children:w}):null,f.jsxs("div",{className:et(Ql({layout:u})),children:[f.jsxs("div",{className:Ul,children:[v.heading,v.description]}),v.metadata]}),v.action]}):l}))})}Xl.displayName="Card";var Jl=tt(Xl);const ec=Object.assign(Jl,{Icon:_l,Image:Wl,Heading:$l,Description:Ll,Metadata:ql,Action:Al}),tc=()=>{},ac=e.createContext({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:tc,previous:tc,next:tc,togglePlaying:tc,slidesId:""}),nc=e.createContext({index:0}),ic="carousel-indicators",rc="carousel-indicator",oc="carousel-indicator-current";function sc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r,goTo:l,slidesId:c}=o.useContext(ac);return 0===r?null:f.jsx("div",Object.assign({ref:t,className:et(ic,a),"data-component":"Carousel.Indicators"},n,{children:Array.from({length:r},(e,t)=>{const a=t===i;return f.jsx("button",{type:"button","aria-label":`Slide ${t+1}`,"aria-current":a||void 0,"aria-controls":c||void 0,onClick:()=>l(t,"indicator"),className:et(rc,a&&oc),"data-component":"Carousel.Indicator","data-current":a||void 0},t)})}))}sc.displayName="Carousel.Indicators";var lc=tt(sc);function cc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,count:l,loop:c,next:d,slidesId:u}=o.useContext(ac);return f.jsx(yn,Object.assign({ref:t,icon:yt,"aria-label":"Next slide","aria-controls":u||void 0,variant:"invisible",disabled:!c&&r>=l-1,onClick:e=>{null==n||n(e),e.defaultPrevented||d()},className:a,"data-component":"Carousel.NextButton"},i))}cc.displayName="Carousel.NextButton";var dc=tt(cc);function uc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{isPlaying:r,togglePlaying:l,slidesId:c}=o.useContext(ac);return f.jsx(yn,Object.assign({ref:t,icon:r?Pt:Et,"aria-label":r?"Stop automatic slide show":"Start automatic slide show","aria-controls":c||void 0,variant:"invisible",onClick:e=>{null==n||n(e),e.defaultPrevented||l()},className:a,"data-component":"Carousel.PlayButton","data-playing":r||void 0},i))}uc.displayName="Carousel.PlayButton";var mc=tt(uc);function pc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,loop:l,previous:c,slidesId:d}=o.useContext(ac);return f.jsx(yn,Object.assign({ref:t,icon:xt,"aria-label":"Previous slide","aria-controls":d||void 0,variant:"invisible",disabled:!l&&r<=0,onClick:e=>{null==n||n(e),e.defaultPrevented||c()},className:a,"data-component":"Carousel.PreviousButton"},i))}pc.displayName="Carousel.PreviousButton";var hc=tt(pc);const gc="carousel-controls";function fc(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{autoPlay:r}=o.useContext(ac),l=o.Children.toArray(n).length>0;return f.jsx("div",Object.assign({ref:t,className:et(gc,a),"data-component":"Carousel.Controls"},i,{children:l?n:f.jsxs(f.Fragment,{children:[f.jsx(hc,{}),f.jsx(lc,{}),f.jsx(dc,{}),r?f.jsx(mc,{}):null]})}))}fc.displayName="Carousel.Controls";var vc=tt(fc);const bc="carousel-slide";function xc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r}=o.useContext(ac),{index:l}=o.useContext(nc),c=l===i;return f.jsx("div",Object.assign({ref:t,role:"group","aria-roledescription":"slide","aria-label":`${l+1} of ${r}`,inert:!c,className:et(bc,a),"data-component":"Carousel.Slide","data-current":c||void 0},n))}xc.displayName="Carousel.Slide";var yc=tt(xc);const wc="carousel",Nc="carousel-viewport",jc="carousel-track",kc="motion-safe:[transition:translate_var(--motion-transition-state-change)]",Cc=5e3,Sc=(e,t,a)=>t<=0?0:a?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Oc(e,t){const a=e,{className:n,children:i,index:r,defaultIndex:l=0,onChange:c,loop:d=!1,autoPlay:u=!1,interval:m=Cc}=a,p=s(a,["className","children","index","defaultIndex","onChange","loop","autoPlay","interval"]),h=Jt(),g=void 0!==r,[v,b]=o.useState(l),[x,y]=o.useState(u),[w,N]=o.useState(!1),j=o.useRef(c);qn(()=>{j.current=c},[c]);const k=[],C=[];let S=null;o.Children.forEach(i,e=>{o.isValidElement(e)?e.type!==yc?e.type!==vc||null!==S?C.push(e):S=e:k.push(e):C.push(e)});const O=k.length,M=Sc(g?r:v,O,d),A=(e,t)=>{var a;const n=Sc(e,O,d);g||b(n),null===(a=j.current)||void 0===a||a.call(j,n,t)};o.useEffect(()=>{if(!x||w||O<2)return;const e=window.setTimeout(()=>{var e;if(!d&&M>=O-1)return void y(!1);const t=Sc(M+1,O,d);g||b(t),null===(e=j.current)||void 0===e||e.call(j,t,"auto")},m);return()=>{window.clearTimeout(e)}},[x,w,O,M,m,d,g]);const T={index:M,count:O,loop:d,autoPlay:u,isPlaying:x,goTo:A,previous:()=>A(M-1,"previous"),next:()=>A(M+1,"next"),togglePlaying:()=>y(e=>!e),slidesId:h},I=p,{onMouseEnter:D,onMouseLeave:L,onFocus:P,onBlur:E}=I,z=s(I,["onMouseEnter","onMouseLeave","onFocus","onBlur"]),$=x&&!w;return f.jsx(ac.Provider,{value:T,children:f.jsxs("section",Object.assign({ref:t,"aria-roledescription":"carousel",className:et(wc,n),onMouseEnter:e=>{null==D||D(e),N(!0)},onMouseLeave:e=>{null==L||L(e),N(!1)},onFocus:e=>{null==P||P(e),N(!0)},onBlur:e=>{null==E||E(e),e.currentTarget.contains(e.relatedTarget)||N(!1)},"data-component":"Carousel","data-count":O,"data-index":M,"data-playing":$||void 0},z,{children:[f.jsx("div",{id:h,className:Nc,"aria-live":$?"off":"polite","aria-atomic":"false","data-component":"Carousel.Viewport",children:f.jsx("div",{className:et(jc,kc),style:{"--carousel-index":M},"data-component":"Carousel.Track",children:k.map((e,t)=>{var a;return f.jsx(nc.Provider,{value:{index:t},children:e},null!==(a=e.key)&&void 0!==a?a:t)})})}),null!=S?S:f.jsx(vc,{}),C]}))})}Oc.displayName="Carousel";var Mc=tt(Oc);const Ac=Object.assign(Mc,{Slide:yc,Controls:vc,PreviousButton:hc,NextButton:dc,Indicators:lc,PlayButton:mc}),Tc="chart-legend",Ic="chart-legend-item",Dc="chart-swatch";function Lc(e,t){const{series:a,className:n}=e,i=s(e,["series","className"]);return f.jsx("ul",Object.assign({ref:t,className:et(Tc,n),"data-component":"Chart.Legend"},i,{children:a.map(e=>f.jsxs("li",{className:Ic,"data-component":"Chart.LegendItem",children:[f.jsx("span",{className:Dc,style:{background:e.color},"aria-hidden":"true"}),e.name]},e.key))}))}Lc.displayName="Chart.Legend";var Pc=tt(Lc);const Ec=["var(--base-display-color-blue-5)","var(--base-display-color-orange-5)","var(--base-display-color-purple-5)","var(--base-display-color-green-5)","var(--base-display-color-pink-5)"],zc="var(--foreground-color-muted)",$c=(e,t)=>{var a;return null!==(a=null!=t?t:Ec[e])&&void 0!==a?a:zc};function Rc(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Bc(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Vc(e){let t,a,n;function i(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<0?i=t+1:r=t}while(i<r)}return i}return 2!==e.length?(t=Rc,a=(t,a)=>Rc(e(t),a),n=(t,a)=>e(t)-a):(t=e===Rc||e===Bc?e:_c,a=e,n=e),{left:i,center:function(e,t,a=0,r=e.length){const o=i(e,t,a,r-1);return o>a&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<=0?i=t+1:r=t}while(i<r)}return i}}}function _c(){return 0}const Fc=Vc(Rc).right;Vc(function(e){return null===e?NaN:+e}).center;class Hc extends Map{constructor(e,t=Gc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,a]of e)this.set(t,a)}get(e){return super.get(Wc(this,e))}has(e){return super.has(Wc(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):(e.set(n,a),a)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},a){const n=t(a);e.has(n)&&(a=e.get(n),e.delete(n));return a}(this,e))}}function Wc({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):a}function Gc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Kc=Math.sqrt(50),qc=Math.sqrt(10),Uc=Math.sqrt(2);function Yc(e,t,a){const n=(t-e)/Math.max(0,a),i=Math.floor(Math.log10(n)),r=n/Math.pow(10,i),o=r>=Kc?10:r>=qc?5:r>=Uc?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=a&&a<2?Yc(e,t,2*a):[s,l,c]}function Zc(e,t,a){return Yc(e=+e,t=+t,a=+a)[2]}function Qc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const Xc=Symbol("implicit");function Jc(){var e=new Hc,t=[],a=[],n=Xc;function i(i){let r=e.get(i);if(void 0===r){if(n!==Xc)return n;e.set(i,r=t.push(i)-1)}return a[r%a.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Hc;for(const n of a)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(a=Array.from(e),i):a.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return Jc(t,a).unknown(n)},Qc.apply(i,arguments),i}function ed(){var e,t,a=Jc().unknown(void 0),n=a.domain,i=a.range,r=0,o=1,s=!1,l=0,c=0,d=.5;function u(){var a=n().length,u=o<r,m=u?o:r,p=u?r:o;e=(p-m)/Math.max(1,a-l+2*c),s&&(e=Math.floor(e)),m+=(p-m-e*(a-l))*d,t=e*(1-l),s&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,a){e=+e,t=+t,a=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+a;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/a)),r=new Array(i);++n<i;)r[n]=e+n*a;return r}(a).map(function(t){return m+e*t});return i(u?h.reverse():h)}return delete a.unknown,a.domain=function(e){return arguments.length?(n(e),u()):n()},a.range=function(e){return arguments.length?([r,o]=e,r=+r,o=+o,u()):[r,o]},a.rangeRound=function(e){return[r,o]=e,r=+r,o=+o,s=!0,u()},a.bandwidth=function(){return t},a.step=function(){return e},a.round=function(e){return arguments.length?(s=!!e,u()):s},a.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},a.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},a.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},a.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},a.copy=function(){return ed(n(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(d)},Qc.apply(u(),arguments)}function td(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return td(t())},e}function ad(){return td(ed.apply(null,arguments).paddingInner(1))}function nd(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function id(e,t){var a=Object.create(e.prototype);for(var n in t)a[n]=t[n];return a}function rd(){}var od=.7,sd=1/od,ld="\\s*([+-]?\\d+)\\s*",cd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ud=/^#([0-9a-f]{3,8})$/,md=new RegExp(`^rgb\\(${ld},${ld},${ld}\\)$`),pd=new RegExp(`^rgb\\(${dd},${dd},${dd}\\)$`),hd=new RegExp(`^rgba\\(${ld},${ld},${ld},${cd}\\)$`),gd=new RegExp(`^rgba\\(${dd},${dd},${dd},${cd}\\)$`),fd=new RegExp(`^hsl\\(${cd},${dd},${dd}\\)$`),vd=new RegExp(`^hsla\\(${cd},${dd},${dd},${cd}\\)$`),bd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xd(){return this.rgb().formatHex()}function yd(){return this.rgb().formatRgb()}function wd(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=ud.exec(e))?(a=t[1].length,t=parseInt(t[1],16),6===a?Nd(t):3===a?new Cd(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===a?jd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===a?jd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=md.exec(e))?new Cd(t[1],t[2],t[3],1):(t=pd.exec(e))?new Cd(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hd.exec(e))?jd(t[1],t[2],t[3],t[4]):(t=gd.exec(e))?jd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fd.exec(e))?Id(t[1],t[2]/100,t[3]/100,1):(t=vd.exec(e))?Id(t[1],t[2]/100,t[3]/100,t[4]):bd.hasOwnProperty(e)?Nd(bd[e]):"transparent"===e?new Cd(NaN,NaN,NaN,0):null}function Nd(e){return new Cd(e>>16&255,e>>8&255,255&e,1)}function jd(e,t,a,n){return n<=0&&(e=t=a=NaN),new Cd(e,t,a,n)}function kd(e,t,a,n){return 1===arguments.length?((i=e)instanceof rd||(i=wd(i)),i?new Cd((i=i.rgb()).r,i.g,i.b,i.opacity):new Cd):new Cd(e,t,a,null==n?1:n);var i}function Cd(e,t,a,n){this.r=+e,this.g=+t,this.b=+a,this.opacity=+n}function Sd(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}`}function Od(){const e=Md(this.opacity);return`${1===e?"rgb(":"rgba("}${Ad(this.r)}, ${Ad(this.g)}, ${Ad(this.b)}${1===e?")":`, ${e})`}`}function Md(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ad(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Td(e){return((e=Ad(e))<16?"0":"")+e.toString(16)}function Id(e,t,a,n){return n<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new Ld(e,t,a,n)}function Dd(e){if(e instanceof Ld)return new Ld(e.h,e.s,e.l,e.opacity);if(e instanceof rd||(e=wd(e)),!e)return new Ld;if(e instanceof Ld)return e;var t=(e=e.rgb()).r/255,a=e.g/255,n=e.b/255,i=Math.min(t,a,n),r=Math.max(t,a,n),o=NaN,s=r-i,l=(r+i)/2;return s?(o=t===r?(a-n)/s+6*(a<n):a===r?(n-t)/s+2:(t-a)/s+4,s/=l<.5?r+i:2-r-i,o*=60):s=l>0&&l<1?0:o,new Ld(o,s,l,e.opacity)}function Ld(e,t,a,n){this.h=+e,this.s=+t,this.l=+a,this.opacity=+n}function Pd(e){return(e=(e||0)%360)<0?e+360:e}function Ed(e){return Math.max(0,Math.min(1,e||0))}function zd(e,t,a){return 255*(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)}nd(rd,wd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xd,formatHex:xd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Dd(this).formatHsl()},formatRgb:yd,toString:yd}),nd(Cd,kd,id(rd,{brighter(e){return e=null==e?sd:Math.pow(sd,e),new Cd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?od:Math.pow(od,e),new Cd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cd(Ad(this.r),Ad(this.g),Ad(this.b),Md(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Sd,formatHex:Sd,formatHex8:function(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}${Td(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Od,toString:Od})),nd(Ld,function(e,t,a,n){return 1===arguments.length?Dd(e):new Ld(e,t,a,null==n?1:n)},id(rd,{brighter(e){return e=null==e?sd:Math.pow(sd,e),new Ld(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?od:Math.pow(od,e),new Ld(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,n=a+(a<.5?a:1-a)*t,i=2*a-n;return new Cd(zd(e>=240?e-240:e+120,i,n),zd(e,i,n),zd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ld(Pd(this.h),Ed(this.s),Ed(this.l),Md(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Md(this.opacity);return`${1===e?"hsl(":"hsla("}${Pd(this.h)}, ${100*Ed(this.s)}%, ${100*Ed(this.l)}%${1===e?")":`, ${e})`}`}}));var $d=e=>()=>e;function Rd(e){return 1===(e=+e)?Bd:function(t,a){return a-t?function(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(n){return Math.pow(e+n*t,a)}}(t,a,e):$d(isNaN(t)?a:t)}}function Bd(e,t){var a=t-e;return a?function(e,t){return function(a){return e+a*t}}(e,a):$d(isNaN(e)?t:e)}var Vd=function e(t){var a=Rd(t);function n(e,t){var n=a((e=kd(e)).r,(t=kd(t)).r),i=a(e.g,t.g),r=a(e.b,t.b),o=Bd(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=r(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function _d(e,t){t||(t=[]);var a,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(r){for(a=0;a<n;++a)i[a]=e[a]*(1-r)+t[a]*r;return i}}function Fd(e,t){var a,n=t?t.length:0,i=e?Math.min(n,e.length):0,r=new Array(i),o=new Array(n);for(a=0;a<i;++a)r[a]=Yd(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(e){for(a=0;a<i;++a)o[a]=r[a](e);return o}}function Hd(e,t){var a=new Date;return e=+e,t=+t,function(n){return a.setTime(e*(1-n)+t*n),a}}function Wd(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function Gd(e,t){var a,n={},i={};for(a in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)a in e?n[a]=Yd(e[a],t[a]):i[a]=t[a];return function(e){for(a in n)i[a]=n[a](e);return i}}var Kd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qd=new RegExp(Kd.source,"g");function Ud(e,t){var a,n,i,r=Kd.lastIndex=qd.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(a=Kd.exec(e))&&(n=qd.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(a=a[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Wd(a,n)})),r=qd.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var a,n=0;n<t;++n)s[(a=l[n]).i]=a.x(e);return s.join("")})}function Yd(e,t){var a,n=typeof t;return null==t||"boolean"===n?$d(t):("number"===n?Wd:"string"===n?(a=wd(t))?(t=a,Vd):Ud:t instanceof wd?Vd:t instanceof Date?Hd:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?_d:Array.isArray(t)?Fd:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Gd:Wd)(e,t)}function Zd(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function Qd(e){return+e}var Xd=[0,1];function Jd(e){return e}function eu(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function tu(e,t,a){var n=e[0],i=e[1],r=t[0],o=t[1];return i<n?(n=eu(i,n),r=a(o,r)):(n=eu(n,i),r=a(r,o)),function(e){return r(n(e))}}function au(e,t,a){var n=Math.min(e.length,t.length)-1,i=new Array(n),r=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=eu(e[o],e[o+1]),r[o]=a(t[o],t[o+1]);return function(t){var a=Fc(e,t,1,n)-1;return r[a](i[a](t))}}function nu(){var e,t,a,n,i,r,o=Xd,s=Xd,l=Yd,c=Jd;function d(){var e,t,a,l=Math.min(o.length,s.length);return c!==Jd&&(e=o[0],t=o[l-1],e>t&&(a=e,e=t,t=a),c=function(a){return Math.max(e,Math.min(t,a))}),n=l>2?au:tu,i=r=null,u}function u(t){return null==t||isNaN(t=+t)?a:(i||(i=n(o.map(e),s,l)))(e(c(t)))}return u.invert=function(a){return c(t((r||(r=n(s,o.map(e),Wd)))(a)))},u.domain=function(e){return arguments.length?(o=Array.from(e,Qd),d()):o.slice()},u.range=function(e){return arguments.length?(s=Array.from(e),d()):s.slice()},u.rangeRound=function(e){return s=Array.from(e),l=Zd,d()},u.clamp=function(e){return arguments.length?(c=!!e||Jd,d()):c!==Jd},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(a=e,u):a},function(a,n){return e=a,t=n,d()}}function iu(e,t){if(!isFinite(e)||0===e)return null;var a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,a);return[n.length>1?n[0]+n.slice(2):n,+e.slice(a+1)]}function ru(e){return(e=iu(Math.abs(e)))?e[1]:NaN}var ou,su=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lu(e){if(!(t=su.exec(e)))throw new Error("invalid format: "+e);var t;return new cu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function cu(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function du(e,t){var a=iu(e,t);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}lu.prototype=cu.prototype,cu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var uu={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>du(100*e,t),r:du,s:function(e,t){var a=iu(e,t);if(!a)return ou=void 0,e.toPrecision(t);var n=a[0],i=a[1],r=i-(ou=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return r===o?n:r>o?n+new Array(r-o+1).join("0"):r>0?n.slice(0,r)+"."+n.slice(r):"0."+new Array(1-r).join("0")+iu(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mu(e){return e}var pu,hu,gu,fu=Array.prototype.map,vu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bu(e){var t,a,n=void 0===e.grouping||void 0===e.thousands?mu:(t=fu.call(e.grouping,Number),a=e.thousands+"",function(e,n){for(var i=e.length,r=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),r.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return r.reverse().join(a)}),i=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?mu:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(fu.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var a=(e=lu(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,g=e.width,f=e.comma,v=e.precision,b=e.trim,x=e.type;"n"===x?(f=!0,x="g"):uu[x]||(void 0===v&&(v=12),b=!0,x="g"),(h||"0"===a&&"="===u)&&(h=!0,a="0",u="=");var y=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===p?r:/[%p]/.test(x)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),N=uu[x],j=/[defgprs%]/.test(x);function k(e){var t,i,r,l=y,p=w;if("c"===x)p=N(e)+p,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:N(Math.abs(e),v),b&&(e=function(e){e:for(var t,a=e.length,n=1,i=-1;n<a;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==m&&(k=!1),l=(k?"("===m?m:c:"-"===m||"("===m?"":m)+l,p=("s"!==x||isNaN(e)||void 0===ou?"":vu[8+ou/3])+p+(k&&"("===m?")":""),j)for(t=-1,i=e.length;++t<i;)if(48>(r=e.charCodeAt(t))||r>57){p=(46===r?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}f&&!h&&(e=n(e,1/0));var C=l.length+e.length+p.length,S=C<g?new Array(g-C+1).join(a):"";switch(f&&h&&(e=n(S+e,S.length?g-p.length:1/0),S=""),u){case"<":e=l+e+p+S;break;case"=":e=l+S+e+p;break;case"^":e=S.slice(0,C=S.length>>1)+l+e+p+S.slice(C);break;default:e=S+l+e+p}return s(e)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:u,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(ru(t)/3))),n=Math.pow(10,-a),i=u(((e=lu(e)).type="f",e),{suffix:vu[8+a/3]});return function(e){return i(n*e)}}}}function xu(e,t,a,n){var i,r=function(e,t,a){a=+a;const n=(t=+t)<(e=+e),i=n?Zc(t,e,a):Zc(e,t,a);return(n?-1:1)*(i<0?1/-i:i)}(e,t,a);switch((n=lu(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ru(t)/3)))-ru(Math.abs(e)))}(r,o))||(n.precision=i),gu(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ru(t)-ru(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-ru(Math.abs(e)))}(r))||(n.precision=i-2*("%"===n.type))}return hu(n)}function yu(e){var t=e.domain;return e.ticks=function(e){var a=t();return function(e,t,a){if(!((a=+a)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,r,o]=n?Yc(t,e,a):Yc(e,t,a);if(!(r>=i))return[];const s=r-i+1,l=new Array(s);if(n)if(o<0)for(let e=0;e<s;++e)l[e]=(r-e)/-o;else for(let e=0;e<s;++e)l[e]=(r-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(a[0],a[a.length-1],null==e?10:e)},e.tickFormat=function(e,a){var n=t();return xu(n[0],n[n.length-1],null==e?10:e,a)},e.nice=function(a){null==a&&(a=10);var n,i,r=t(),o=0,s=r.length-1,l=r[o],c=r[s],d=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);d-- >0;){if((i=Zc(l,c,a))===n)return r[o]=l,r[s]=c,t(r);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function wu(){var e=nu()(Jd,Jd);return e.copy=function(){return t=e,wu().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},Qc.apply(e,arguments),yu(e)}function Nu(e){return function(){return e}}pu=bu({thousands:",",grouping:[3],currency:["$",""]}),hu=pu.format,gu=pu.formatPrefix;const ju=Math.PI,ku=2*ju,Cu=1e-6,Su=ku-Cu;function Ou(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=arguments[t]+e[t]}class Mu{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ou:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ou;const a=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*a)/a+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,a,n){this._append`Q${+e},${+t},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(e,t,a,n,i,r){this._append`C${+e},${+t},${+a},${+n},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,a,n,i){if(e=+e,t=+t,a=+a,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,o=this._y1,s=a-e,l=n-t,c=r-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>Cu)if(Math.abs(d*s-l*c)>Cu&&i){let m=a-r,p=n-o,h=s*s+l*l,g=m*m+p*p,f=Math.sqrt(h),v=Math.sqrt(u),b=i*Math.tan((ju-Math.acos((h+u-g)/(2*f*v)))/2),x=b/v,y=b/f;Math.abs(x-1)>Cu&&this._append`L${e+x*c},${t+x*d}`,this._append`A${i},${i},0,0,${+(d*m>c*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,a,n,i,r){if(e=+e,t=+t,r=!!r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let o=a*Math.cos(n),s=a*Math.sin(n),l=e+o,c=t+s,d=1^r,u=r?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Cu||Math.abs(this._y1-c)>Cu)&&this._append`L${l},${c}`,a&&(u<0&&(u=u%ku+ku),u>Su?this._append`A${a},${a},0,1,${d},${e-o},${t-s}A${a},${a},0,1,${d},${this._x1=l},${this._y1=c}`:u>Cu&&this._append`A${a},${a},0,${+(u>=ju)},${d},${this._x1=e+a*Math.cos(i)},${this._y1=t+a*Math.sin(i)}`)}rect(e,t,a,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}}function Au(e){let t=3;return e.digits=function(a){if(!arguments.length)return t;if(null==a)t=null;else{const e=Math.floor(a);if(!(e>=0))throw new RangeError(`invalid digits: ${a}`);t=e}return e},()=>new Mu(t)}function Tu(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Iu(e){this._context=e}function Du(e){return new Iu(e)}function Lu(e){return e[0]}function Pu(e){return e[1]}function Eu(e,t){var a=Nu(!0),n=null,i=Du,r=null,o=Au(s);function s(s){var l,c,d,u=(s=Tu(s)).length,m=!1;for(null==n&&(r=i(d=o())),l=0;l<=u;++l)!(l<u&&a(c=s[l],l,s))===m&&((m=!m)?r.lineStart():r.lineEnd()),m&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?Lu:Nu(e),t="function"==typeof t?t:void 0===t?Pu:Nu(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Nu(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Nu(+e),s):t},s.defined=function(e){return arguments.length?(a="function"==typeof e?e:Nu(!!e),s):a},s.curve=function(e){return arguments.length?(i=e,null!=n&&(r=i(n)),s):i},s.context=function(e){return arguments.length?(null==e?n=r=null:r=i(n=e),s):n},s}function zu(e){return e<0?-1:1}function $u(e,t,a){var n=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(n||i<0&&-0),o=(a-e._y1)/(i||n<0&&-0),s=(r*i+o*n)/(n+i);return(zu(r)+zu(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function Ru(e,t){var a=e._x1-e._x0;return a?(3*(e._y1-e._y0)/a-t)/2:t}function Bu(e,t,a){var n=e._x0,i=e._y0,r=e._x1,o=e._y1,s=(r-n)/3;e._context.bezierCurveTo(n+s,i+s*t,r-s,o-s*a,r,o)}function Vu(e){this._context=e}function _u(e){return new Vu(e)}Iu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Vu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bu(this,this._t0,Ru(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bu(this,Ru(this,a=$u(this,e,t)),a);break;default:Bu(this,this._t0,a=$u(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}},Object.create(Vu.prototype).point=function(e,t){Vu.prototype.point.call(this,t,e)};const Fu=8,Hu=8,Wu=(e,t)=>{const a=e[t];return"number"==typeof a&&Number.isFinite(a)?a:null},Gu=(e,t)=>wu().domain(e).nice().range(t),Ku=(e,t,a,n,i)=>{if(a<=0||n<=0)return"";const r=Math.min(4,a/2,n/2),o=e+a,s=t+n;return`${{top:[`M${e},${s}`,`L${e},${t+r}`,`Q${e},${t} ${e+r},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s}`],bottom:[`M${e},${t}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o-r},${s}`,`Q${o},${s} ${o},${s-r}`,`L${o},${t}`],right:[`M${e},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s-r}`,`Q${o},${s} ${o-r},${s}`,`L${e},${s}`],left:[`M${o},${t}`,`L${e+r},${t}`,`Q${e},${t} ${e},${t+r}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o},${s}`]}[i].join(" ")} Z`},qu=(e,t,a)=>{var n;return null!==(n=Eu().defined(e=>null!==e.value).x(e=>e.x).y(e=>{var a;return t(null!==(a=e.value)&&void 0!==a?a:0)}).curve(a?_u:Du)(e))&&void 0!==n?n:""},Uu=(e,t,a)=>{var n;return null!==(n=function(e,t,a){var n=null,i=Nu(!0),r=null,o=Du,s=null,l=Au(c);function c(c){var d,u,m,p,h,g=(c=Tu(c)).length,f=!1,v=new Array(g),b=new Array(g);for(null==r&&(s=o(h=l())),d=0;d<=g;++d){if(!(d<g&&i(p=c[d],d,c))===f)if(f=!f)u=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=u;--m)s.point(v[m],b[m]);s.lineEnd(),s.areaEnd()}f&&(v[d]=+e(p,d,c),b[d]=+t(p,d,c),s.point(n?+n(p,d,c):v[d],a?+a(p,d,c):b[d]))}if(h)return s=null,h+""||null}function d(){return Eu().defined(i).curve(o).context(r)}return e="function"==typeof e?e:void 0===e?Lu:Nu(+e),t="function"==typeof t?t:Nu(void 0===t?0:+t),a="function"==typeof a?a:void 0===a?Pu:Nu(+a),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Nu(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Nu(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Nu(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Nu(+e),a=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Nu(+e),c):t},c.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Nu(+e),c):a},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(a)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:Nu(!!e),c):i},c.curve=function(e){return arguments.length?(o=e,null!=r&&(s=o(r)),c):o},c.context=function(e){return arguments.length?(null==e?r=s=null:s=o(r=e),c):r},c}().defined(e=>null!==e.value).x(e=>e.x).y0(e=>t(e.start)).y1(e=>{var a,n;return t((null!==(a=e.start)&&void 0!==a?a:0)+(null!==(n=e.value)&&void 0!==n?n:0))}).curve(a?_u:Du)(e))&&void 0!==n?n:""},Yu="chart-tooltip",Zu="chart-tooltip-label",Qu="chart-tooltip-row",Xu="chart-swatch",Ju="chart-tooltip-name",em="chart-tooltip-value";function tm(e,t){const{reading:a,valueFormat:n,labelFormat:i,className:r}=e,o=s(e,["reading","valueFormat","labelFormat","className"]);return f.jsxs("div",Object.assign({ref:t,className:et(Yu,r),"data-component":"Chart.Tooltip"},o,{children:[f.jsx("div",{className:Zu,children:i(a.label)}),a.values.map(({series:e,value:t})=>f.jsxs("div",{className:Qu,children:[f.jsx("span",{className:Xu,style:{background:e.color},"aria-hidden":"true"}),f.jsx("span",{className:Ju,children:e.name}),f.jsx("span",{className:em,children:null===t?"—":n(t)})]},e.key))]}))}tm.displayName="Chart.Tooltip";var am=tt(tm);const nm="chart",im="chart-caption",rm="chart-title",om="chart-description",sm="chart-plot",lm="chart-svg",cm="chart-grid",dm="chart-axis",um="chart-tick",mm="chart-label",pm="chart-crosshair",hm="chart-line",gm="chart-area",fm="chart-marker",vm="chart-empty",bm="sr-only",xm=240,ym=4,wm=e=>e.toLocaleString();function Nm(e,t){var a;const{type:n="line",data:i,xKey:r,series:l,title:c,description:d,stacked:u=!1,horizontal:m=!1,height:p=xm,valueFormat:h=wm,labelFormat:g=e=>e,tickCount:v=ym,showGrid:b=!0,showLegend:x,smooth:y=!1,emptyText:w="No data to show",className:N}=e,j=s(e,["type","data","xKey","series","title","description","stacked","horizontal","height","valueFormat","labelFormat","tickCount","showGrid","showLegend","smooth","emptyText","className"]),k=Jt(),C=Jt(),S=o.useRef(null),O=((e,t)=>{const[a,n]=o.useState(t);return qn(()=>{const a=e.current;if(!a)return;const i=()=>{const e=a.getBoundingClientRect().width;n(e>0?e:t)};if(i(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(i);return r.observe(a),()=>{r.disconnect()}},[e,t]),a})(S,480),[M,A]=o.useState(null),T=l.map((e,t)=>{var a;return Object.assign(Object.assign({},e),{name:null!==(a=e.name)&&void 0!==a?a:e.key,color:$c(t,e.color)})}),I="bar"===n,D=I&&m,L=u&&(I||"area"===n),P=0===i.length||0===T.length,E=i.map(e=>((e,t)=>{var a;return String(null!==(a=e[t])&&void 0!==a?a:"")})(e,r)),z=((e,t,a)=>e.map(e=>{let n=0;return t.map(t=>{const i=Wu(e,t.key);if(null===i)return{value:null,start:0,end:0};const r=a?n:0;return n=a?n+i:n,{value:i,start:r,end:r+i}})}))(i,T,L),$=((e,t)=>{const a=e.flat().filter(e=>null!==e.value).flatMap(e=>[e.start,e.end]),n="line"===t?a:[...a,0];if(0===n.length)return[0,1];const i=Math.min(...n),r=Math.max(...n);return i===r?[Math.min(i,0),0===r?1:r]:[i,r]})(z,n),R=Gu($,[0,1]).ticks(v),B=Math.max(...R.map(e=>h(e).length),1),V=Math.max(...E.map(e=>g(e).length),1),_=7*B+12,F=Math.min(7*V+12,160),H=D?F:_,W=Math.max(O-H-Hu,0),G=Math.max(p-Fu-24,0),K=I?((e,t)=>ed().domain(e).range([0,t]).paddingInner(.3).paddingOuter(.15))(E,D?G:W):((e,t)=>ad().domain(e).range([0,t]).padding(.5))(E,W),q=Gu($,D?[0,W]:[G,0]),U=e=>{var t,a;const n=K(E[e]);return(null!=n?n:0)+(I?(null!==(a=null===(t=K.bandwidth)||void 0===t?void 0:t.call(K))&&void 0!==a?a:0)/2:0)},Y=i.map((e,t)=>({index:t,label:E[t],values:T.map(t=>({series:t,value:Wu(e,t.key)}))})),Z=null===M?null:null!==(a=Y[M])&&void 0!==a?a:null,Q=null!=x?x:T.length>1,X=q(0),J=T.map((e,t)=>{var a,r;if(I){const n=null!==(r=null===(a=K.bandwidth)||void 0===a?void 0:a.call(K))&&void 0!==r?r:0,{offset:o,thickness:s}=((e,t,a,n)=>{if(!n){const t=Math.min(e,24);return{offset:(e-t)/2,thickness:t}}const i=(e-2*(t-1))/t,r=Math.max(Math.min(i,24),1);return{offset:(e-(r*t+2*(t-1)))/2+a*(r+2),thickness:r}})(n,T.length,t,!L&&T.length>1);return f.jsx("g",{"data-component":"Chart.Series","data-series":e.key,children:i.map((a,n)=>{var i;const{value:r,start:l,end:c}=z[n][t];if(null===r)return null;const d=q(l),u=q(c),m=(null!==(i=K(E[n]))&&void 0!==i?i:0)+o,p=L&&t>0?2:0,h=D?Ku(Math.min(d,u)+p,m,Math.abs(u-d)-p,s,r<0?"left":"right"):Ku(m,Math.min(d,u),s,Math.abs(u-d)-p,r<0?"bottom":"top");return f.jsx("path",{d:h,fill:e.color,opacity:null===M||M===n?1:.5,"data-component":"Chart.Bar"},E[n])})},e.key)}const o=i.map((e,a)=>({x:U(a),value:z[a][t].value,start:z[a][t].start}));return f.jsxs("g",{"data-component":"Chart.Series","data-series":e.key,children:["area"===n?f.jsx("path",{d:Uu(o,q,y),fill:e.color,className:gm,"data-component":"Chart.Area"}):null,f.jsx("path",{d:qu("area"===n?o.map(e=>Object.assign(Object.assign({},e),{value:null===e.value?null:e.start+e.value})):o,q,y),stroke:e.color,className:hm,"data-component":"Chart.Line"}),o.map((t,a)=>null===t.value||null!==M&&M!==a?null:f.jsx("circle",{cx:t.x,cy:q("area"===n?t.start+t.value:t.value),r:4,fill:e.color,className:fm,opacity:M===a||i.length<=12?1:0,"data-component":"Chart.Marker"},E[a]))]},e.key)});return f.jsxs("figure",Object.assign({ref:t,className:et(nm,N),"data-component":"Chart","data-type":n},j,{children:[c||d?f.jsxs("figcaption",{className:im,"data-component":"Chart.Caption",children:[c?f.jsx("span",{id:k,className:rm,children:c}):null,d?f.jsx("span",{id:C,className:om,children:d}):null]}):null,Q&&!P?f.jsx(Pc,{series:T}):null,f.jsxs("div",{ref:S,className:sm,style:{height:`${p}px`},tabIndex:P?void 0:0,role:P?void 0:"img","aria-labelledby":c?k:void 0,"aria-describedby":d?C:void 0,onPointerMove:P?void 0:e=>{const t=e.currentTarget.getBoundingClientRect(),a=D?e.clientY-t.top-Fu:e.clientX-t.left-H;A((e=>{if(0===i.length)return null;if(I){const t=(D?G:W)/i.length;return Math.min(Math.max(Math.floor(e/t),0),i.length-1)}let t=0;return i.forEach((a,n)=>{Math.abs(U(n)-e)<Math.abs(U(t)-e)&&(t=n)}),t})(a))},onPointerLeave:()=>A(null),onKeyDown:P?void 0:e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0!==t&&0!==i.length&&(e.preventDefault(),A(e=>{const a=(null!=e?e:t>0?-1:i.length)+t;return Math.min(Math.max(a,0),i.length-1)}))},onBlur:()=>A(null),"data-component":"Chart.Plot",children:[P?f.jsx("div",{className:vm,style:{height:`${p}px`},children:w}):f.jsx("svg",{width:O,height:p,className:lm,"aria-hidden":"true",focusable:"false","data-component":"Chart.Canvas",children:f.jsxs("g",{transform:`translate(${H}, ${Fu})`,children:[b?R.map(e=>f.jsx("line",{x1:D?q(e):0,x2:D?q(e):W,y1:D?0:q(e),y2:D?G:q(e),className:cm,"data-component":"Chart.GridLine"},e)):null,f.jsx("line",{x1:D?X:0,x2:D?X:W,y1:D?0:X,y2:D?G:X,className:dm,"data-component":"Chart.Baseline"}),Z?f.jsx("line",{x1:D?0:U(Z.index),x2:D?W:U(Z.index),y1:D?U(Z.index):0,y2:D?U(Z.index):G,className:pm,"data-component":"Chart.Crosshair"}):null,J,R.map(e=>f.jsx("text",{x:D?q(e):-6,y:D?G+12:q(e),textAnchor:D?"middle":"end",dominantBaseline:D?"hanging":"middle",className:um,"data-component":"Chart.Tick",children:h(e)},e)),E.map((e,t)=>f.jsx("text",{x:D?-6:U(t),y:D?U(t):G+12,textAnchor:D?"end":"middle",dominantBaseline:D?"middle":"hanging",className:mm,"data-component":"Chart.Label",children:g(e)},e))]})}),Z?f.jsx(am,{reading:Z,valueFormat:h,labelFormat:g,style:{left:D?H+W/2:H+U(Z.index)}}):null]}),f.jsxs("table",{className:bm,"aria-labelledby":c?k:void 0,"data-component":"Chart.Table",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:r}),T.map(e=>f.jsx("th",{scope:"col",children:e.name},e.key))]})}),f.jsx("tbody",{children:Y.map(e=>f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:g(e.label)}),e.values.map(({series:e,value:t})=>f.jsx("td",{children:null===t?"—":h(t)},e.key))]},e.label))})]}),f.jsx("span",{role:"status","aria-live":"polite",className:bm,children:Z?`${g(Z.label)}: ${Z.values.map(({series:e,value:t})=>`${e.name} ${null===t?"no value":h(t)}`).join(", ")}`:""})]}))}Nm.displayName="Chart";var jm=tt(Nm);const km=Object.assign(jm,{Legend:Pc,Tooltip:am}),Cm=e.createContext({}),Sm='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")',Om='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")',Mm="checkbox",Am="checkbox-mark",Tm="checkbox-checked",Im="checkbox-disabled";function Dm(e,t){const{className:a,style:n,checked:i,indeterminate:r,required:l,validationStatus:c,value:d,onChange:u}=e,m=s(e,["className","style","checked","indeterminate","required","validationStatus","value","onChange"]),p=o.useRef(null),h=N(t,p),g=o.useContext(Cm);qn(()=>{p.current&&(p.current.indeterminate=null!=r&&r)},[r,i]);return f.jsx("input",Object.assign({ref:h,type:"checkbox",checked:(!r||void 0===i)&&i,required:l,value:d,name:d,"aria-checked":r?"mixed":void 0,"aria-required":!!l||void 0,"aria-invalid":"error"===c||void 0,onChange:e=>{var t;null===(t=g.onChange)||void 0===t||t.call(g,e),null==u||u(e)},className:et(Mm,Am,Tm,Im,a),style:Object.assign(Object.assign({},n),{"--checkbox-mark":r?Om:Sm}),"data-component":"Checkbox"},m))}Dm.displayName="Checkbox";var Lm=tt(Dm);const Pm="checkbox-group-caption";function Em(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(Cm);return f.jsx("span",Object.assign({ref:t,id:i,className:et(Pm,a),"data-component":"CheckboxGroup.Caption"},n))}Em.displayName="CheckboxGroup.Caption";var zm=tt(Em);const $m="checkbox-group-label",Rm="checkbox-group-label-disabled",Bm="sr-only",Vm="checkbox-group-label-required";function _m(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(Cm);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et($m,l&&Rm,i&&Bm,a),"data-component":"CheckboxGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:Vm,children:"*"}):null]}))}_m.displayName="CheckboxGroup.Label";var Fm=tt(_m);const Hm={success:ft,error:Ot},Wm="checkbox-group-validation-icon",Gm=Xe("checkbox-group-validation",{variants:{variant:{success:"checkbox-group-validation-success",error:"checkbox-group-validation-error"}}});function Km(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(Cm),c=Hm[i];return f.jsxs("span",Object.assign({ref:t,className:et(Gm({variant:i}),a),"data-component":"CheckboxGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:Wm,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Km.displayName="CheckboxGroup.Validation";var qm=tt(Km);const Um="checkbox-group",Ym="checkbox-group-legend",Zm="checkbox-group-legend-visible",Qm="checkbox-group-body",Xm="checkbox-group-validation-slot",Jm="sr-only";function ep(e,t){const a=e,{as:n="fieldset",className:i,children:r,disabled:l,required:c,onChange:d,id:u,"aria-labelledby":m}=a,p=s(a,["as","className","children","disabled","required","onChange","id","aria-labelledby"]),[h,g]=va(r,{label:Fm,caption:zm,validation:qm}),v=Jt(u),b=h.caption?`${v}-caption`:void 0,x=h.validation?`${v}-validation`:void 0,[y,w]=o.useState(()=>(e=>{const t=[],a=e=>{o.Children.forEach(e,e=>{if(o.isValidElement(e)){if(e.type===Lm){const{checked:a,defaultChecked:n,value:i}=e.props;return void((a||n)&&i&&t.push(i))}a(e.props.children)}})};return a(e),t})(r)),N=!!o.isValidElement(h.label)&&!h.label.props.visuallyHidden,j={disabled:l,required:c,captionId:b,validationMessageId:x,onChange:e=>{const{value:t,checked:a}=e.currentTarget,n=a?[...y,t]:y.filter(e=>e!==t);w(n),null==d||d(n,e)}};return f.jsx(Cm.Provider,{value:j,children:f.jsxs(n,Object.assign({ref:t,id:v,disabled:l,"aria-labelledby":h.label?void 0:m,"aria-describedby":[x,b].filter(Boolean).join(" ")||void 0,className:et(Um,i),"data-component":"CheckboxGroup","data-disabled":l,"data-required":c},p,{children:[h.label?f.jsxs("legend",{className:et(Ym,N&&Zm),children:[h.label,c?f.jsx("span",{className:Jm,children:", required"}):null,h.caption]}):h.caption,f.jsx("div",{className:Qm,children:g}),h.validation?f.jsx("div",{className:Xm,children:h.validation}):null]}))})}ep.displayName="CheckboxGroup";var tp=tt(ep);const ap=Object.assign(tp,{Label:Fm,Caption:zm,Validation:qm}),np=e.createContext({}),ip="block";function rp(e,t){const a=e,{as:n="div",className:i,open:r,defaultOpen:l,disabled:c,onChange:d}=a,u=s(a,["as","className","open","defaultOpen","disabled","onChange"]),m=Jt(),p=void 0!==r,[h,g]=o.useState(Boolean(l)),v=p?r:h,b={triggerId:`${m}-trigger`,contentId:`${m}-content`,isOpen:v,disabled:Boolean(c),toggle:()=>{if(c)return;const e=!v;p||g(e),null==d||d(e)}};return f.jsx(np.Provider,{value:b,children:f.jsx(n,Object.assign({ref:t,className:et(ip,i),"data-component":"Collapsible","data-open":v,"data-disabled":Boolean(c)},u))})}rp.displayName="Collapsible";var op=tt(rp);const sp="collapsible-content",lp="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function cp(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{contentId:l,isOpen:c}=o.useContext(np);return f.jsx(n,Object.assign({ref:t,id:l,hidden:!c,className:et(sp,c&&lp,i),"data-component":"Collapsible.Content","data-open":Boolean(c)},r))}cp.displayName="Collapsible.Content";var dp=tt(cp);const up="collapsible-trigger",mp="collapsible-trigger-disabled",pp="min-w-0 grow",hp="min-w-0",gp="collapsible-trigger-indicator",fp="rotate-180",vp="-rotate-90",bp="rotate-0";function xp(e,t){const{className:a,children:n,indicator:i="end",onClick:r}=e,l=s(e,["className","children","indicator","onClick"]),{triggerId:c,contentId:d,isOpen:u,disabled:m,toggle:p}=o.useContext(np),h="none"===i?null:f.jsx(bt,{className:et(gp,"start"===i?u?bp:vp:u&&fp),"aria-hidden":"true"});return f.jsxs("button",Object.assign({ref:t,type:"button",id:c,className:et(up,m&&mp,a),onClick:e=>{null==r||r(e),e.defaultPrevented||null==p||p()},disabled:m,"aria-expanded":Boolean(u),"aria-controls":d,"data-component":"Collapsible.Trigger","data-open":Boolean(u),"data-indicator":i},l,{children:["start"===i?h:null,f.jsx("span",{className:"end"===i?pp:hp,children:n}),"end"===i?h:null]}))}xp.displayName="Collapsible.Trigger";var yp=tt(xp);const wp=Object.assign(op,{Trigger:yp,Content:dp}),Np=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return.9;const a=e.indexOf(t);return a>0?/\s|[-_/]/.test(e[a-1])?.8:.6:((e,t)=>{let a=0,n=0;for(const i of t){const t=e.indexOf(i,a);if(-1===t)return 0;n+=t-a,a=t+1}return Math.max(.5-.01*n,.1)})(e,t)},jp=(e,t,a=[])=>{const n=t.trim().toLowerCase();return""===n?1:[e,...a].map(e=>Np(e.trim().toLowerCase(),n)).reduce((e,t)=>Math.max(e,t),0)},kp=e.createContext(null),Cp=e.createContext(null),Sp="command-palette",Op="sr-only";function Mp(e,t){var a,n;const{search:i,defaultSearch:r="",onSearchChange:l,value:c,defaultValue:d="",onValueChange:u,onSelect:m,filter:p=jp,shouldFilter:h=!0,loop:g=!1,label:v="Command palette",className:b,children:x}=e,y=s(e,["search","defaultSearch","onSearchChange","value","defaultValue","onValueChange","onSelect","filter","shouldFilter","loop","label","className","children"]),w=Jt(),N=Jt(),j=void 0!==i,[k,C]=o.useState(r),S=j?i:k,O=void 0!==c,[M,A]=o.useState(d),T=O?c:M,[I,D]=o.useState([]),L=o.useCallback(e=>{D(t=>[...t.filter(t=>t.value!==e.value),e])},[]),P=o.useCallback(e=>{D(t=>t.filter(t=>t.value!==e))},[]),E=o.useMemo(()=>{const e={};for(const t of I)e[t.value]=h?p(t.value,S,t.keywords):1;return e},[I,p,S,h]),z=o.useMemo(()=>((e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>{var a;return e.forceMount||(null!==(a=t[e.value])&&void 0!==a?a:0)>0}).sort((e,a)=>{var n,i;const r=(null!==(n=t[a.entry.value])&&void 0!==n?n:0)-(null!==(i=t[e.entry.value])&&void 0!==i?i:0);return 0===r?e.index-a.index:r}).map(({entry:e})=>e.value))(I,E),[I,E]),$=o.useMemo(()=>z.filter(e=>{var t;return!(null===(t=I.find(t=>t.value===e))||void 0===t?void 0:t.disabled)}),[I,z]),R=$.includes(T)?T:null!==(a=$[0])&&void 0!==a?a:"",B=null===(n=I.find(e=>e.value===R))||void 0===n?void 0:n.id,V=o.useCallback(e=>{O||A(e),null==u||u(e)},[O,u]),_=o.useRef(R);o.useEffect(()=>{_.current!==R&&(_.current=R,null==u||u(R))},[u,R]);const F=o.useCallback(e=>{j||C(e),null==l||l(e)},[j,l]),H=o.useCallback(e=>{null==m||m(e)},[m]),W=o.useMemo(()=>({search:S,setSearch:F,value:R,activeId:B,setValue:V,order:z,entries:I,scores:E,register:L,unregister:P,onSelect:H,listId:w,labelId:N,shouldFilter:h}),[B,I,H,N,w,z,L,E,S,F,V,h,P,R]);return f.jsx(kp.Provider,{value:W,children:f.jsxs("div",Object.assign({ref:t,className:et(Sp,b),onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey))return"ArrowDown"===e.key||"ArrowUp"===e.key?(e.preventDefault(),void(e=>{if(0===$.length)return;const t=$.indexOf(R)+e,a=g?(t+$.length)%$.length:Math.min(Math.max(t,0),$.length-1);V($[a])})("ArrowDown"===e.key?1:-1)):void("Enter"===e.key&&""!==R&&(e.preventDefault(),H(R)))},"data-component":"CommandPalette"},y,{children:[f.jsx("span",{id:N,className:Op,children:v}),x]}))})}Mp.displayName="CommandPalette";var Ap=tt(Mp);let Tp=0,Ip="",Dp="";const Lp=t=>{e.useEffect(()=>{if(!t){if(Tp++,1===Tp){const e=window.innerWidth-document.body.clientWidth;Ip=document.body.style.overflow,Dp=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-scroll-locked","")}return()=>{Tp--,0===Tp&&(document.body.style.overflow=Ip,document.body.style.paddingRight=Dp,document.body.removeAttribute("data-scroll-locked"))}}},[t])},Pp="command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",Ep="command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short";function zp(e,t){var a;const{open:n,onOpenChange:i,returnFocusRef:r,overlayClassName:l,className:c,children:d}=e,u=s(e,["open","onOpenChange","returnFocusRef","overlayClassName","className","children"]),m=o.useRef(null);return Kn({containerRef:m,returnFocusRef:r,disabled:!n}),Zn(e=>{n&&(e.preventDefault(),i(!1))}),Lp(!n),n?f.jsx(oi,{children:f.jsx("div",{className:et(Pp,l),onMouseDown:e=>{e.target===e.currentTarget&&i(!1)},"data-component":"CommandPalette.Backdrop",children:f.jsx("div",{ref:m,role:"dialog","aria-modal":"true","aria-label":null!==(a=u.label)&&void 0!==a?a:"Command palette",className:Ep,"data-component":"CommandPalette.Dialog",children:f.jsx(Ap,Object.assign({ref:t,className:c},u,{children:d}))})})}):null}zp.displayName="CommandPalette.Dialog";var $p=tt(zp);const Rp="command-palette-empty";function Bp(e,t){const{className:a,children:n="No results found"}=e,i=s(e,["className","children"]),r=o.useContext(kp);return!r||0===r.entries.length||r.order.length>0?null:f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(Rp,a),"data-component":"CommandPalette.Empty"},i,{children:n}))}Bp.displayName="CommandPalette.Empty";var Vp=tt(Bp);const _p="command-palette-group",Fp="command-palette-group-heading",Hp="hidden";function Wp(e,t){var a;const{heading:n,forceMount:i=!1,className:r,children:l}=e,c=s(e,["heading","forceMount","className","children"]),d=Jt(),u=Jt(),m=o.useContext(kp),p=o.useMemo(()=>({groupId:d}),[d]),h=(null!==(a=null==m?void 0:m.entries)&&void 0!==a?a:[]).filter(e=>e.groupId===d),g=h.map(e=>{var t;return null!==(t=null==m?void 0:m.order.indexOf(e.value))&&void 0!==t?t:-1}).filter(e=>-1!==e),v=i||0===h.length||g.length>0;return f.jsx(Cp.Provider,{value:p,children:f.jsxs("div",Object.assign({ref:t,role:"group","aria-labelledby":n?u:void 0,className:et(_p,!v&&Hp,r),style:{order:g.length>0?Math.min(...g):void 0},"data-component":"CommandPalette.Group"},c,{children:[n?f.jsx("div",{id:u,className:Fp,"data-component":"CommandPalette.GroupHeading",children:n}):null,l]}))})}Wp.displayName="CommandPalette.Group";var Gp=tt(Wp);const Kp="command-palette-input";function qp(e,t){const{className:a,placeholder:n="Type a command or search"}=e,i=s(e,["className","placeholder"]),r=o.useContext(kp);return r?f.jsx(Nr,Object.assign({ref:t,type:"text",size:"large",block:!0,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":r.listId,"aria-labelledby":r.labelId,"aria-activedescendant":r.activeId,autoComplete:"off",leadingVisual:Rt,placeholder:n,value:r.search,onChange:e=>r.setSearch(e.target.value),className:et(Kp,a),"data-component":"CommandPalette.Input"},i)):null}qp.displayName="CommandPalette.Input";var Up=tt(qp);const Yp="command-palette-item",Zp="command-palette-item-active",Qp="command-palette-item-unavailable",Xp="hidden";function Jp(e,t){var a;const{value:n,keywords:i,disabled:r=!1,forceMount:l=!1,onSelect:c,className:d,children:u,onClick:m,onPointerMove:p}=e,h=s(e,["value","keywords","disabled","forceMount","onSelect","className","children","onClick","onPointerMove"]),g=Jt(),v=o.useContext(kp),b=o.useContext(Cp),x=o.useRef(null),y=N(t,x),[w,j]=o.useState(null!=n?n:"");qn(()=>{var e,t;j(null!=n?n:(null!==(t=null===(e=x.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"").trim())},[n,u]);const k=(null!=i?i:[]).join("\0"),C=null==v?void 0:v.register,S=null==v?void 0:v.unregister,O=null==b?void 0:b.groupId;o.useEffect(()=>{if(C&&S&&""!==w)return C({value:w,id:g,keywords:""===k?[]:k.split("\0"),groupId:O,disabled:r,forceMount:l}),()=>{S(w)}},[r,l,O,g,k,C,S,w]);const M=null!==(a=null==v?void 0:v.order.indexOf(w))&&void 0!==a?a:-1,A=(null==v?void 0:v.value)===w&&""!==w,T=!(null!==v&&""!==w&&void 0!==v.scores[w])||-1!==M;o.useEffect(()=>{var e,t;A&&(null===(t=null===(e=x.current)||void 0===e?void 0:e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"}))},[A]);return f.jsx("div",Object.assign({ref:y,id:g,role:"option","aria-selected":A,"aria-disabled":r||void 0,className:et(Yp,A&&Zp,r&&Qp,!T&&Xp,d),style:{order:-1===M?void 0:M},onClick:e=>{null==m||m(e),r||e.defaultPrevented||(null==c||c(w),null==v||v.onSelect(w))},onPointerMove:e=>{null==p||p(e),r||A||null==v||v.setValue(w)},"data-component":"CommandPalette.Item","data-value":w||void 0,"data-active":A||void 0,"data-disabled":r||void 0},h,{children:u}))}Jp.displayName="CommandPalette.Item";var eh=tt(Jp);const th="command-palette-list",ah=400;function nh(e,t){const{maxHeight:a=ah,className:n,style:i,children:r}=e,l=s(e,["maxHeight","className","style","children"]),c=o.useContext(kp);return c?f.jsx("div",Object.assign({ref:t,id:c.listId,role:"listbox","aria-labelledby":c.labelId,className:et(th,n),style:Object.assign(Object.assign({},i),{maxHeight:`${a}px`}),"data-component":"CommandPalette.List"},l,{children:r})):null}nh.displayName="CommandPalette.List";var ih=tt(nh);const rh="command-palette-loading";function oh(e,t){const{label:a="Loading",className:n,children:i}=e,r=s(e,["label","className","children"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(rh,n),"data-component":"CommandPalette.Loading"},r,{children:null!=i?i:f.jsx(en,{size:"small",srText:a})}))}oh.displayName="CommandPalette.Loading";var sh=tt(oh);const lh="command-palette-separator";function ch(e,t){const{alwaysRender:a=!1,className:n}=e,i=s(e,["alwaysRender","className"]),r=o.useContext(kp);return a||null===r||""===r.search.trim()?f.jsx("div",Object.assign({ref:t,role:"separator",className:et(lh,n),"data-component":"CommandPalette.Separator"},i)):null}ch.displayName="CommandPalette.Separator";var dh=tt(ch);const uh=Object.assign(Ap,{Dialog:$p,Input:Up,List:ih,Group:Gp,Item:eh,Separator:dh,Empty:Vp,Loading:sh}),mh=t=>{const[a,n]=e.useState(!1);return e.useEffect(()=>{if(null===t.current)return;const e=new ResizeObserver(e=>{for(const t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return e.observe(t.current),()=>{e.disconnect()}},[t]),a},ph="scrollable-region";function hh(e,t){const a=e,{as:n="div",className:i,"aria-label":r,"aria-labelledby":l}=a,c=s(a,["as","className","aria-label","aria-labelledby"]),d=o.useRef(null),u=N(t,d),m=mh(d)?{role:"region",tabIndex:0,"aria-label":r,"aria-labelledby":l}:{};return f.jsx(n,Object.assign({ref:u,className:et(ph,i),"data-component":"ScrollableRegion"},m,c))}hh.displayName="ScrollableRegion";var gh=tt(hh);const fh="dialog-body";function vh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(fh,i),"data-component":"Dialog.Body"},r))}vh.displayName="Dialog.Body";var bh=tt(vh);const xh=e.createContext(void 0);function yh({buttons:e}){var t;const a=o.useContext(xh),n=e.findIndex(e=>e.autoFocus),i=N(null==a?void 0:a.autoFocusRef,null===(t=e[n])||void 0===t?void 0:t.ref);return f.jsx(f.Fragment,{children:e.map((e,t)=>{const{content:a,buttonType:r="default",autoFocus:o,ref:l}=e,c=s(e,["content","buttonType","autoFocus","ref"]);return f.jsx(vn,Object.assign({ref:o&&t===n?i:l,variant:"normal"===r?"default":r,"data-component":"Dialog.FooterButton"},c,{children:a}),t)})})}function wh(e,t){const{onClose:a}=e,n=s(e,["onClose"]);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",onClick:a,"data-component":"Dialog.CloseButton"},n))}yh.displayName="Dialog.Buttons",wh.displayName="Dialog.CloseButton";var Nh=tt(wh);const jh="dialog-footer",kh="dialog-footer-scroll";function Ch(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(jh,kh,i),"data-component":"Dialog.Footer"},r))}Ch.displayName="Dialog.Footer";var Sh=tt(Ch);const Oh="dialog-header";function Mh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Oh,i),"data-component":"Dialog.Header"},r))}Mh.displayName="Dialog.Header";var Ah=tt(Mh);const Th="dialog-subtitle";function Ih(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Th,i),"data-component":"Dialog.Subtitle"},r))}Ih.displayName="Dialog.Subtitle";var Dh=tt(Ih);const Lh="dialog-title";function Ph(e,t){const a=e,{as:n="h1",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Lh,i),"data-component":"Dialog.Title"},r))}Ph.displayName="Dialog.Title";var Eh=tt(Ph);const zh={backdrop:"dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropPosition:{center:"dialog-backdrop-center",left:"dialog-backdrop-left",right:"dialog-backdrop-right"},backdropNarrowPosition:{center:"dialog-backdrop-narrow-center",bottom:"dialog-backdrop-narrow-bottom",fullscreen:"dialog-backdrop-narrow-fullscreen"},backdropAlign:{top:"dialog-backdrop-align-top",center:"dialog-backdrop-align-center",bottom:"dialog-backdrop-align-bottom"},backdropNarrowAlign:{top:"dialog-backdrop-narrow-align-top",center:"dialog-backdrop-narrow-align-center",bottom:"dialog-backdrop-narrow-align-bottom"},root:"dialog motion-safe:animate-in motion-safe:duration-short",width:{small:"dialog-width-small",medium:"dialog-width-medium",large:"dialog-width-large",xlarge:"dialog-width-xlarge"},customWidth:"dialog-width-custom",height:{small:"dialog-height-small",large:"dialog-height-large",auto:"dialog-height-auto"},position:{center:"motion-safe:fade-in motion-safe:zoom-in-50",left:"dialog-left motion-safe:slide-in-from-left",right:"dialog-right motion-safe:slide-in-from-right"},narrowPosition:{center:"",bottom:"dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom",fullscreen:"dialog-narrow-fullscreen"},align:{top:"dialog-align-top",center:"",bottom:"dialog-align-bottom"},headerInner:"dialog-header-inner",headerContent:"dialog-header-content",overflowWrapper:"dialog-overflow-wrapper",overflowWrapperBordered:"dialog-overflow-wrapper-bordered"},$h={narrow:"center",regular:"center"};let Rh=0,Bh="",Vh="";const _h=e=>"string"==typeof e&&e in zh.width,Fh=e=>"number"==typeof e?`${e}px`:e,Hh=({title:e,subtitle:t,dialogLabelId:a,dialogDescriptionId:n,onClose:i})=>f.jsx(Ah,{children:f.jsxs("div",{className:zh.headerInner,children:[f.jsxs("div",{className:zh.headerContent,children:[f.jsx(Eh,{id:a,children:e}),t?f.jsx(Dh,{id:n,children:t}):null]}),f.jsx(Nh,{onClose:()=>i("close-button")})]})}),Wh=({children:e})=>f.jsx(bh,{children:e}),Gh=e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(e.defaultPrevented||0===t)return;const a=Array.from(e.currentTarget.querySelectorAll("[data-component='Dialog.FooterButton']:not([disabled])")),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},Kh=({footerButtons:e})=>e?f.jsx(Sh,{onKeyDown:Gh,children:f.jsx(yh,{buttons:e})}):null;function qh(e,t){var a,n,i,r;const{title:l="Dialog",subtitle:c="",renderHeader:d,renderBody:u,renderFooter:m,footerButtons:p,onClose:h,role:g="dialog",width:v="xlarge",height:b="auto",position:x=$h,align:y,returnFocusRef:w,initialFocusRef:j,className:k,style:C,children:S}=e,O=s(e,["title","subtitle","renderHeader","renderBody","renderFooter","footerButtons","onClose","role","width","height","position","align","returnFocusRef","initialFocusRef","className","style","children"]),M=Jt(),A=Jt(),T=o.useRef(null),I=N(t,T),D=o.useRef(null),L=o.useRef(null),P=o.useRef(null),[E,z]=o.useState(!1),[$,R]=o.useState("wrap"),B=mh(L);Kn({containerRef:T,initialFocusRef:null!=j?j:P,returnFocusRef:w}),Zn(e=>{h("escape"),e.preventDefault()}),o.useEffect(()=>{if(Rh++,1===Rh){const e=window.innerWidth-document.body.clientWidth;Bh=document.body.style.overflow,Vh=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-dialog-scroll-disabled","")}return()=>{Rh--,0===Rh&&(document.body.style.overflow=Bh,document.body.style.paddingRight=Vh,document.body.removeAttribute("data-dialog-scroll-disabled"))}},[]);const[V,_]=va(S,{header:Ah,body:bh,footer:Sh}),F=Object.assign(Object.assign({},e),{title:l,subtitle:c,role:g,footerButtons:p,dialogLabelId:M,dialogDescriptionId:A}),H=null!==(a=V.header)&&void 0!==a?a:(null!=d?d:Hh)(F),W=null!==(n=V.body)&&void 0!==n?n:(null!=u?u:Wh)(Object.assign(Object.assign({},F),{children:_})),G=null!==(i=V.footer)&&void 0!==i?i:(null!=m?m:Kh)(F),K=Boolean(G),q=o.useCallback(()=>{const e=T.current,t=L.current;if(!K||!e||!t)return;e.setAttribute("data-footer-button-layout","wrap");const a=t.clientHeight>=48?"wrap":"scroll";e.setAttribute("data-footer-button-layout",a),R(a)},[K]);o.useEffect(()=>{const e=D.current;if(!e)return;const t=new ResizeObserver(q);return t.observe(e),()=>{t.disconnect()}},[q]);const U="string"==typeof x?{regular:x}:x,Y=null!==(r=U.regular)&&void 0!==r?r:"center",Z=U.narrow,Q="center"===Y?y:void 0,X=Qn("position",U),J=y?{"data-align":y}:void 0;return f.jsx(xh.Provider,{value:{autoFocusRef:P},children:f.jsx(oi,{children:f.jsx("div",Object.assign({ref:D,className:et(zh.backdrop,zh.backdropPosition[Y],Q&&zh.backdropAlign[Q],Z&&zh.backdropNarrowPosition[Z],"center"===Z&&Q&&zh.backdropNarrowAlign[Q]),onClick:e=>{e.target===e.currentTarget&&E&&h("escape")},onMouseDown:e=>{z(e.target===e.currentTarget)},"data-component":"Dialog.Backdrop"},X,J,{children:f.jsxs("div",Object.assign({ref:I,role:g,"aria-labelledby":M,"aria-describedby":A,"aria-modal":!0,className:et(zh.root,_h(v)?zh.width[v]:zh.customWidth,zh.height[b],zh.position[Y],Q&&zh.align[Q],Z&&zh.narrowPosition[Z],k),style:Object.assign(Object.assign({},C),_h(v)?{}:{"--dialog-width":Fh(v)}),"data-component":"Dialog","data-width":_h(v)?v:void 0,"data-height":b,"data-has-footer":K?"":void 0,"data-footer-button-layout":K?$:void 0},X,J,O,{children:[H,f.jsx(gh,{ref:L,"aria-labelledby":M,className:et(zh.overflowWrapper,K&&B&&zh.overflowWrapperBordered),children:W}),G]}))}))})})}qh.displayName="Dialog";var Uh=tt(qh);function Yh(e,t){const{onClose:a,title:n,cancelButtonContent:i="Cancel",confirmButtonContent:r="OK",confirmButtonType:o="normal",cancelButtonLoading:s=!1,confirmButtonLoading:l=!1,overrideButtonFocus:c,width:d="medium",height:u,className:m,children:p}=e,h=null!=c?c:"danger"===o?"cancel":"confirm",g=[{content:i,onClick:()=>a("cancel"),autoFocus:"cancel"===h,loading:s},{content:r,buttonType:o,onClick:()=>a("confirm"),autoFocus:"confirm"===h,loading:l}];return f.jsx(Uh,{ref:t,title:n,onClose:a,footerButtons:g,role:"alertdialog",width:d,height:u,className:m,"data-component":"ConfirmationDialog",children:p})}Yh.displayName="ConfirmationDialog";var Zh=tt(Yh);const Qh=e=>{var{content:t}=e,a=s(e,["content"]);return new Promise(e=>{const i=document.createElement("div");document.body.append(i);const r=n.createRoot(i);r.render(f.jsx(Zh,Object.assign({},a,{onClose:t=>{queueMicrotask(()=>{r.unmount(),i.remove()}),e("confirm"===t)},children:t})))})},Xh="data-table-wrapper",Jh=Xe("data-table",{variants:{cellPadding:{condensed:"data-table-cell-padding-condensed",normal:"data-table-cell-padding-normal",spacious:"data-table-cell-padding-spacious"}}});function eg(e,t){const{className:a,style:n,cellPadding:i="normal",gridTemplateColumns:r,"aria-labelledby":o}=e,l=s(e,["className","style","cellPadding","gridTemplateColumns","aria-labelledby"]),c=o?{"aria-labelledby":o}:{"aria-label":"Table"};return f.jsx(gh,Object.assign({},c,{className:Xh,children:f.jsx("table",Object.assign({ref:t,role:"table","aria-labelledby":o,className:et(Jh({cellPadding:i}),a),style:Object.assign(Object.assign({},n),{"--table-grid-template-columns":r}),"data-component":"Table","data-cell-padding":i},l))}))}eg.displayName="Table";var tg=tt(eg);const ag="data-table-actions";function ng(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(ag,a),"data-component":"Table.Actions"},n))}ng.displayName="Table.Actions";var ig=tt(ng);const rg="data-table-subgrid",og=e=>(e=>e.map(e=>{var t;const a=null!==(t=e.width)&&void 0!==t?t:"grow";let n="auto",i="1fr";return"auto"===a&&(i="auto"),"grow"!==a||e.maxWidth||(n="max-content"),"growCollapse"===a&&(n="0"),e.minWidth&&(n="number"==typeof e.minWidth?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(i="number"==typeof e.maxWidth?`${e.maxWidth}px`:e.maxWidth),"number"!=typeof a&&["grow","growCollapse","auto"].includes(a)?n===i?n:`minmax(${n}, ${i})`:"number"==typeof a?`${a}px`:a}))(e).join(" ");function sg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tbody",Object.assign({ref:t,role:"rowgroup",className:et(rg,a),"data-component":"Table.Body"},n))}sg.displayName="Table.Body";var lg=tt(sg);const cg="data-table-cell",dg="data-table-cell-end",ug="data-table-cell-row-header";function mg(e,t){const{className:a,align:n,scope:i}=e,r=s(e,["className","align","scope"]),o=i?"th":"td";return f.jsx(o,Object.assign({ref:t,scope:i,role:i?"rowheader":"cell",className:et(cg,"end"===n&&dg,i&&ug,a),"data-component":"Table.Cell","data-cell-align":n},r))}mg.displayName="Table.Cell";var pg=tt(mg);const hg="data-table-cell-placeholder";function gg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(dr,Object.assign({ref:t,className:et(hg,a),"data-component":"Table.CellPlaceholder"},n))}gg.displayName="Table.CellPlaceholder";var fg=tt(gg);const vg="data-table-container",bg="data-table-container-spacing";function xg(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(vg,bg,i),"data-component":"Table.Container"},r))}xg.displayName="Table.Container";var yg=tt(xg);const wg="data-table-divider";function Ng(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(wg,a),"data-component":"Table.Divider"},n))}Ng.displayName="Table.Divider";var jg=tt(Ng);function kg(e,t){const{title:a="Error",children:n,onRetry:i,onDismiss:r}=e;return f.jsx(Zh,{ref:t,title:a,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{"confirm"!==e?null==r||r():null==i||i()},children:n})}kg.displayName="Table.ErrorDialog";var Cg=tt(kg);function Sg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("thead",Object.assign({ref:t,role:"rowgroup",className:et(rg,a),"data-component":"Table.Head"},n))}Sg.displayName="Table.Head";var Og=tt(Sg);const Mg="data-table-header",Ag="data-table-header-end",Tg="data-table-header-sorted";function Ig(e,t){const{className:a,align:n}=e,i=s(e,["className","align"]);return f.jsx("th",Object.assign({ref:t,role:"columnheader",scope:"col",className:et(Mg,Tg,"end"===n&&Ag,a),"data-component":"Table.Header","data-cell-align":n},i))}Ig.displayName="Table.Header";var Dg=tt(Ig);const Lg=(e,t,a,n,i)=>{const r={type:"previous",num:t-1,disabled:1===t},o={type:"next",num:t+1,disabled:t===e};if(!a)return[r,o];if(e<=0)return[r,Object.assign(Object.assign({},o),{disabled:!0})];const s=[],l=(e,a,n=!1)=>{for(let i=e;i<=a;i++)s.push({type:"number",num:i,selected:i===t,precedesBreak:i===a&&n})},c=e=>{s.push({type:"break",num:e+1})},d=i+n;if(e<=d+d+3)return l(1,e),[r,...s,o];let u=0,m=0;t-d-1<=1?m=t-d-2:u=t-d-1;let p=0,h=0;e-t-d<=1?h=e-t-d-1:p=e-t-d;const g=u>0,f=p>0;return l(1,n,g),g&&c(n),l(n+u+h+1,e-m-p-n,f),f&&c(e-m-p-n),l(e-n+1,e),[r,...s,o]},Pg=(e,t,a)=>{if("break"===e.type)return{key:`page-${e.num}-break`,content:"…",presentational:!0,props:{}};if("number"===e.type)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,"aria-current":e.selected?"page":void 0,onClick:a}};const n="previous"===e.type?"prev":"next",i="previous"===e.type?"Previous":"Next",r=`page-${n}`;return e.disabled?{key:r,content:i,props:{rel:n,"aria-hidden":!0,"aria-disabled":!0}}:{key:r,content:i,props:{rel:n,href:t(e.num),"aria-label":`${i} Page`,onClick:a}}},Eg=["narrow","regular","wide"],zg=25,$g={narrow:!1},Rg={root:"data-table-pagination",range:"data-table-pagination-range",steps:"data-table-pagination-steps",step:"data-table-pagination-step",button:"data-table-pagination-button",truncation:"data-table-pagination-truncation",icon:"data-table-pagination-icon",hiddenRange:{narrow:"data-table-pagination-hidden-range-narrow",regular:"data-table-pagination-hidden-range-regular",wide:"data-table-pagination-hidden-range-wide"},hidden:"sr-only"},Bg=Xe([Rg.button,"data-table-pagination-jump"],{variants:{enabled:{true:"data-table-pagination-jump-enabled",false:""}}}),Vg=Xe([Rg.button,"data-table-pagination-page"],{variants:{active:{true:"data-table-pagination-page-active",false:""}}}),_g=({children:e})=>f.jsx("li",{className:Rg.step,"data-component":"Table.Pagination.Step",children:e});function Fg(e,t){const{className:a,totalCount:n,pageSize:i=zg,defaultPageIndex:r,onChange:l,showPages:c=$g}=e,d=s(e,["className","totalCount","pageSize","defaultPageIndex","onChange","showPages"]),{pageIndex:u,pageCount:m,pageStart:p,pageEnd:h,hasPreviousPage:g,hasNextPage:v,selectPage:b}=(({defaultPageIndex:e,onChange:t,pageSize:a,totalCount:n})=>{const i=Math.ceil(n/a),r=e=>void 0!==e&&e>=0&&e<i,[s,l]=o.useState(()=>r(e)?e:0),[c,d]=o.useState(s);return r(e)&&s!==e&&(l(e),d(e),null==t||t({pageIndex:e})),{pageIndex:c,pageCount:i,pageStart:c*a,pageEnd:Math.min((c+1)*a,n),hasPreviousPage:c>0,hasNextPage:c+1<i,selectPage:e=>{c!==e&&(d(e),null==t||t({pageIndex:e}))}}})({defaultPageIndex:r,onChange:l,pageSize:i,totalCount:n}),x=o.useMemo(()=>Lg(m,u+1,Boolean(c),1,2),[m,u,c]),y=(e=>"object"==typeof e?Eg.filter(t=>!1===e[t]):e?[]:[...Eg])(c),w=p+1;return f.jsxs("nav",Object.assign({ref:t,className:et(Rg.root,a),"data-component":"Table.Pagination"},d,{children:[f.jsxs("span",{role:"status","aria-live":"polite",className:Rg.hidden,children:["Showing ",w," through ",h," of ",n]}),f.jsxs("p",{className:Rg.range,"data-component":"Table.Pagination.Range",children:[w,f.jsx("span",{className:Rg.hidden,children:" through "}),f.jsx("span",{"aria-hidden":"true",children:"‒"}),h," of ",n]}),f.jsxs("ol",{className:et(Rg.steps,y.map(e=>Rg.hiddenRange[e])),"data-hidden-viewport-ranges":y.join(" ")||void 0,children:[f.jsx(_g,{children:f.jsxs("button",{type:"button",className:et(Bg({enabled:g})),"data-has-page":g||void 0,"aria-disabled":!g||void 0,onClick:()=>{g&&b(u-1)},"data-component":"Table.Pagination.PreviousPageButton",children:[g?f.jsx(xt,{className:Rg.icon}):null,f.jsx("span",{children:"Previous"}),f.jsx("span",{className:Rg.hidden,children:" page"})]})}),x.map((e,t)=>"break"===e.type?f.jsx("li",{"aria-hidden":"true",className:Rg.truncation,"data-component":"Table.Pagination.TruncationStep",children:"…"},`break-${t}`):"number"===e.type?f.jsx(_g,{children:f.jsxs("button",{type:"button",className:et(Vg({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>b(e.num-1),"data-component":"Table.Pagination.Page",children:[f.jsx("span",{className:Rg.hidden,children:"Page "}),e.num,e.precedesBreak?f.jsx("span",{className:Rg.hidden,children:"…"}):null]})},`page-${e.num}`):null),f.jsx(_g,{children:f.jsxs("button",{type:"button",className:et(Bg({enabled:v})),"data-has-page":v||void 0,"aria-disabled":!v||void 0,onClick:()=>{v&&b(u+1)},"data-component":"Table.Pagination.NextPageButton",children:[f.jsx("span",{children:"Next"}),f.jsx("span",{className:Rg.hidden,children:" page"}),v?f.jsx(yt,{className:Rg.icon}):null]})})]})]}))}Fg.displayName="Table.Pagination";var Hg=tt(Fg);function Wg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tr",Object.assign({ref:t,role:"row",className:et(rg,a),"data-component":"Table.Row"},n))}Wg.displayName="Table.Row";var Gg=tt(Wg);const Kg="skeleton-box",qg="motion-safe:shimmer";function Ug(e,t){const a=e,{as:n="div",className:i,width:r,height:o,style:l}=a,c=s(a,["as","className","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(Kg,qg,i),style:Object.assign(Object.assign({},l),{"--skeleton-box-width":r,"--skeleton-box-height":o}),"data-component":"SkeletonBox"},c))}Ug.displayName="SkeletonBox";var Yg=tt(Ug);const Zg="skeleton-text-wrapper",Qg=Xe("skeleton-text",{variants:{size:{display:"skeleton-text-display",titleLarge:"skeleton-text-title-large",titleMedium:"skeleton-text-title-medium",titleSmall:"skeleton-text-title-small",bodyLarge:"skeleton-text-body-large",bodyMedium:"skeleton-text-body-medium",bodySmall:"skeleton-text-body-small",subtitle:"skeleton-text-subtitle"},multiline:{true:"skeleton-text-multiline",false:""}}});function Xg(e){var{lines:t=1,maxWidth:a,size:n="bodyMedium",className:i,style:r}=e,o=s(e,["lines","maxWidth","size","className","style"]);return t<2?f.jsx(Yg,Object.assign({width:"100%",height:"var(--skeleton-text-font-size)",className:et(Qg({size:n}),i),style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-size":n},o,{"data-component":"SkeletonText"})):f.jsx("div",{className:Zg,style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-component":"SkeletonText",children:Array.from({length:t},(e,t)=>f.jsx(Yg,Object.assign({height:"var(--skeleton-text-font-size)",className:et(Qg({size:n,multiline:!0}),i),"data-size":n},o),t))})}Xg.displayName="SkeletonText";const Jg="data-table-skeleton-cell",ef="data-table-skeleton-items",tf="data-table-skeleton-item",af="sr-only",nf=10;function rf(e,t){const{columns:a,cellPadding:n,rows:i=nf}=e,r=s(e,["columns","cellPadding","rows"]);return f.jsxs(tg,Object.assign({ref:t,cellPadding:n,gridTemplateColumns:og(a),"data-component":"Table.Skeleton"},r,{children:[f.jsx(Og,{children:f.jsx(Gg,{children:a.map((e,t)=>{var a,n;return f.jsx(Dg,{children:"string"==typeof e.header?e.header:e.header()},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})}),f.jsx(lg,{children:f.jsx(Gg,{children:a.map((e,t)=>{var a,n;return f.jsxs(pg,{className:Jg,"data-cell-skeleton":"",children:[f.jsx("span",{className:af,children:"Loading"}),f.jsx("div",{className:ef,children:Array.from({length:i},(e,t)=>f.jsx("div",{className:tf,"data-cell-skeleton-item":"",children:f.jsx(Xg,{})},t))})]},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})})]}))}rf.displayName="Table.Skeleton";var of=tt(rf);const sf="data-table-sort-header",lf="data-table-sort-header-button",cf="data-table-sort-header-button-end",df="data-table-sort-header-icon",uf="data-table-sort-header-icon-resting",mf="sr-only";function pf(e,t){const{className:a,align:n,children:i,direction:r,onToggleSort:o}=e,l=s(e,["className","align","children","direction","onToggleSort"]),c="ASC"===r?"ascending":"DESC"===r?"descending":void 0,d="DESC"===r?ut:mt;return f.jsx(Dg,Object.assign({ref:t,align:n,"aria-sort":c,className:et(sf,a),"data-component":"Table.SortHeader"},l,{children:f.jsxs("button",{type:"button",onClick:o,className:et(lf,"end"===n&&cf),"data-component":"Table.SortHeader.Button",children:[i,f.jsx(d,{className:et(df,"NONE"===r&&uf),"aria-hidden":"true","data-sort-icon":"DESC"===r?"descending":"ascending"}),"NONE"===r?f.jsx("span",{className:mf,children:"sort ascending"}):null]})}))}pf.displayName="Table.SortHeader";var hf=tt(pf);const gf="data-table-subtitle";function ff(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(gf,i),"data-component":"Table.Subtitle"},r))}ff.displayName="Table.Subtitle";var vf=tt(ff);const bf="data-table-title";function xf(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(bf,i),"data-component":"Table.Title"},r))}xf.displayName="Table.Title";var yf=tt(xf);const wf="ASC",Nf=e=>"ASC"===e?"DESC":"ASC",jf=e=>{const t=[];let a=0;for(;a<e.length;){let n=e[a];if(kf(n)){for(;a+1<e.length&&kf(e[a+1]);)n+=e[a+1],a++;t.push(parseInt(n,10))}else{for(;a+1<e.length&&!kf(e[a+1]);)n+=e[a+1],a++;t.push(n)}a++}return t},kf=e=>!Number.isNaN(parseInt(e,10)),Cf={alphanumeric:(e,t)=>{const a=jf(e),n=jf(t);for(;0!==a.length&&0!==n.length;){const e=a.shift(),t=n.shift();if(e!==t){if("string"==typeof e&&"string"==typeof t)return e.localeCompare(t);if("number"==typeof e&&"number"==typeof t)return e>t?1:-1;if("number"==typeof e&&"string"==typeof t)return-1;if("string"==typeof e&&"number"==typeof t)return 1;if(void 0===e||void 0===t)break}}return a.length>n.length?1:-1},basic:(e,t)=>e===t?0:e<t?-1:1,datetime:(e,t)=>{const a=e instanceof Date?e.getTime():e,n=t instanceof Date?t.getTime():t;return a>n?1:a<n?-1:0}},Sf=(e,t)=>{let a=e;for(const e of t.split("."))a=a[e];return a},Of=e=>null==e||""===e,Mf=({columns:e,data:t,initialSortColumn:a,initialSortDirection:n,externalSorting:i,getRowId:r})=>{const[s,l]=o.useState(t),[c,d]=o.useState(t),[u,m]=o.useState(e),[p,h]=o.useState(()=>((e,t,a)=>{var n;const i=e=>void 0!==e.sortBy&&!1!==e.sortBy;if(void 0!==t){const n=e.find(e=>e.id===t||e.field===t);return n&&i(n)?{id:`${t}`,direction:null!=a?a:wf}:null}if(void 0!==a){const t=e.find(i),r=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null==t?void 0:t.field;return void 0===r?null:{id:r,direction:a}}return null})(e,a,n)),g=og(e);if(e!==u&&(m(e),p)){e.some(e=>{var t;return(null!==(t=e.id)&&void 0!==t?t:e.field)===p.id})||h(null)}const f=e.map(e=>{var t;const a=null!==(t=e.id)&&void 0!==t?t:e.field;if(void 0===a)throw new Error("Expected either an `id` or a `field` to be given for a Column");const n=void 0!==e.sortBy&&!1!==e.sortBy;return{id:a,column:e,isSortable:()=>n,getSortDirection:()=>p&&p.id===a?p.direction:"NONE"}}),v=e=>{const t=f.find(t=>t.id===e.id);if(!t)throw new Error(`Unable to find a header with the id: ${e.id}`);const{sortBy:a,field:n}=t.column;if(!1===a||void 0===a)throw new Error("The column for this header cannot be sorted");if(i)return;const r="string"==typeof a?Cf[a]:Cf.basic;l(t=>t.slice().sort((t,i)=>{if("function"==typeof a)return"ASC"===e.direction?a(t,i):a(i,t);if(void 0===n)return 0;const o=Sf(t,n),s=Sf(i,n),l=Of(o),c=Of(s);return l||c?l?c?0:1:-1:"ASC"===e.direction?r(o,s):r(s,o)}))};t!==c&&(d(t),l(t),p&&v(p));return{headers:f,rows:s.map(e=>{const t=r(e);return{id:`${t}`,getValue:()=>e,getCells:()=>f.map(a=>{var n;return{id:`${t}:${a.id}`,column:a.column,rowHeader:null!==(n=a.column.rowHeader)&&void 0!==n&&n,getValue:()=>{if(void 0===a.column.field)throw new Error(`Unable to get a value for the column: ${a.id}`);return Sf(e,a.column.field)}}})}}),actions:{sortBy:e=>{const t={id:e.id,direction:p&&p.id===e.id?Nf(p.direction):wf};h(t),v(t)}},gridTemplateColumns:g}},Af=e=>"string"==typeof e.header?e.header:e.header(),Tf=e=>e.id;function If(e,t){const{data:a,columns:n,cellPadding:i,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l=Tf,onToggleSort:c,"aria-labelledby":d,"aria-describedby":u}=e,{headers:m,rows:p,actions:h,gridTemplateColumns:g}=Mf({data:a,columns:n,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l});return f.jsxs(tg,{ref:t,"aria-labelledby":d,"aria-describedby":u,cellPadding:i,gridTemplateColumns:g,children:[f.jsx(Og,{children:f.jsx(Gg,{children:m.map(e=>e.isSortable()?f.jsx(hf,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{const t="ASC"===e.getSortDirection()?"DESC":"ASC";h.sortBy(e),null==c||c(e.id,t)},children:Af(e.column)},e.id):f.jsx(Dg,{align:e.column.align,children:Af(e.column)},e.id))})}),f.jsx(lg,{children:p.map(e=>f.jsx(Gg,{children:e.getCells().map(t=>f.jsx(pg,{scope:t.rowHeader?"row":void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}If.displayName="DataTable";var Df=tt(If);const Lf=Object.assign(tg,{Container:yg,Title:yf,Subtitle:vf,Actions:ig,Divider:jg,Skeleton:of,Head:Og,Body:lg,Header:Dg,SortHeader:hf,Row:Gg,Cell:pg,CellPlaceholder:fg,Pagination:Hg,ErrorDialog:Cg}),Pf="date-picker",Ef="date-picker-block",zf="date-picker-overlay";function $f(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,format:c="YYYY-MM-DD",rangeSeparator:d=" - ",open:u,defaultOpen:m=!1,onOpenChange:p,min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x=!0,showWeekNumbers:y,monthFormat:w,calendarButtonLabel:j="Choose a date",calendarLabel:k="Choose a date",placeholder:C,disabled:S,block:O,onBlur:M,inputClassName:A,className:T}=a,I=s(a,["mode","value","defaultValue","onChange","format","rangeSeparator","open","defaultOpen","onOpenChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showWeekNumbers","monthFormat","calendarButtonLabel","calendarLabel","placeholder","disabled","block","onBlur","inputClassName","className"]),D=Jt(),L=o.useRef(null),P=o.useRef(null),E=N(t,P),z=o.useRef(null),$=Qs(h),R=Qs(g),B="range"===n,V=void 0!==i,[_,F]=o.useState(()=>el(r,B)),H=V?el(i,B):_,W=void 0!==u,[G,K]=o.useState(m),q=W?u:G,[U,Y]=o.useState(null),Z=null!=U?U:(({from:e,to:t})=>null===e?"":B&&null!==t?`${e.format(c)}${d}${t.format(c)}`:e.format(c))(H),Q=(e,t)=>{W||K(e),null==p||p(e,t)},X=e=>{var t,a,n,i,r,o;const s=[e.from,e.to].every(e=>null===e||rl(e,$,R,v));if(s){if(V||F(e),B){const r=l;return void(null==r||r({from:null!==(a=null===(t=e.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=e.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(null!==(o=null===(r=e.from)||void 0===r?void 0:r.toDate())&&void 0!==o?o:null)}},J={min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x,showWeekNumbers:y,monthFormat:w,focusableDayRef:z,"data-component":"DatePicker.Calendar"};return f.jsxs("span",{className:et(Pf,O&&Ef,T),"data-component":"DatePicker","data-open":q,children:[f.jsx("span",{ref:L,className:et(Pf,O&&Ef),"data-component":"DatePicker.Field",children:f.jsx(Nr,Object.assign({ref:E,type:"text",value:Z,onChange:e=>{const t=e.target.value;Y(t);const a=(e=>{if(""===e.trim())return Js;const t=(B?e.split(d):[e]).map(e=>dl(e.trim(),c));if(t.length>2||t.some(e=>null===e))return;const[a,n=null]=t;return B?n&&a.isAfter(n,"day")?{from:n,to:a}:{from:a,to:n}:{from:a,to:a}})(t);a&&X(a)},onBlur:e=>{Y(null),null==M||M(e)},placeholder:null!=C?C:B?`${c}${d}${c}`:c,disabled:S,block:O,className:A,trailingAction:f.jsx(Nr.Action,{icon:gt,"aria-label":j,"aria-haspopup":"dialog","aria-expanded":q,"aria-controls":q?D:void 0,disabled:S,onClick:()=>Q(!q,"button"),"data-component":"DatePicker.CalendarButton"})},I))}),f.jsx(vi,{renderAnchor:null,anchorRef:L,open:q,onClose:e=>{Q(!1,"escape"===e?"escape":"click-outside")},side:"outside-bottom",align:"start",className:zf,overlayProps:{id:D,role:"dialog","aria-label":k},focusTrapSettings:{initialFocusRef:z,returnFocusRef:P},children:B?f.jsx(Sl,Object.assign({mode:"range",value:{from:H.from,to:H.to},onChange:e=>{Y(null),X(el(e,!0)),e.from&&e.to&&Q(!1,"date-select")}},J)):f.jsx(Sl,Object.assign({value:H.from,onChange:e=>{Y(null),X(el(e,!1)),Q(!1,"date-select")}},J))})]})}$f.displayName="DatePicker";var Rf=tt($f);const Bf="details";function Vf(e,t){const{className:a,open:n,defaultOpen:i,closeOnOutsideClick:r,onChange:l,onToggle:c}=e,d=s(e,["className","open","defaultOpen","closeOnOutsideClick","onChange","onToggle"]),u=o.useRef(null),m=N(t,u),p=void 0!==n,[h,g]=o.useState(Boolean(i)),v=p?n:h;return o.useEffect(()=>{const e=u.current;e&&e.open!==v&&(e.open=v)}),o.useEffect(()=>{if(!r||!v)return;const e=e=>{const{target:t}=e;t instanceof Element&&t.closest("details")!==u.current&&(g(!1),null==l||l(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[r,v,l]),f.jsx("details",Object.assign({ref:m,open:v,onToggle:e=>{null==c||c(e);const{open:t}=e.currentTarget;g(t),t!==v&&(null==l||l(t))},className:et(Bf,a),"data-component":"Details"},d))}Vf.displayName="Details";var _f=tt(Vf);const Ff="details-summary";function Hf(e,t){const a=e,{as:n,className:i}=a,r=s(a,["as","className"]),o=null!=n?n:"summary",l="summary"===o?{}:{as:"summary"};return f.jsx(o,Object.assign({ref:t,className:et(Ff,i),"data-component":"Details.Summary"},l,r))}Hf.displayName="Details.Summary";var Wf=tt(Hf);const Gf=Object.assign(_f,{Summary:Wf}),Kf=Object.assign(Uh,{Header:Ah,Title:Eh,Subtitle:Dh,Body:bh,Footer:Sh,Buttons:yh,CloseButton:Nh}),qf="drawer-body";function Uf(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(qf,i),"data-component":"Drawer.Body"},r))}Uf.displayName="Drawer.Body";var Yf=tt(Uf);const Zf=e.createContext({}),Qf="drawer-close-button";function Xf(e,t){const{className:a,onClose:n}=e,i=s(e,["className","onClose"]),{onClose:r}=o.useContext(Zf);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",className:et(Qf,a),onClick:null!=n?n:r,"data-component":"Drawer.CloseButton"},i))}Xf.displayName="Drawer.CloseButton";var Jf=tt(Xf);const ev="drawer-footer";function tv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(ev,i),"data-component":"Drawer.Footer"},r))}tv.displayName="Drawer.Footer";var av=tt(tv);const nv="drawer-header",iv="drawer-header-direct-title";function rv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(nv,iv,i),"data-component":"Drawer.Header"},r))}rv.displayName="Drawer.Header";var ov=tt(rv);const sv="drawer-subtitle";function lv(e,t){const a=e,{as:n="h2",className:i,id:r}=a,l=s(a,["as","className","id"]),{descriptionId:c}=o.useContext(Zf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(sv,i),"data-component":"Drawer.Subtitle"},l))}lv.displayName="Drawer.Subtitle";var cv=tt(lv);const dv="drawer-title";function uv(e,t){const a=e,{as:n="h1",className:i,id:r}=a,l=s(a,["as","className","id"]),{labelId:c}=o.useContext(Zf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(dv,i),"data-component":"Drawer.Title"},l))}uv.displayName="Drawer.Title";var mv=tt(uv);const pv={backdrop:"drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropModeless:"drawer-backdrop-modeless",backdropPosition:{left:"drawer-backdrop-left",right:"drawer-backdrop-right",top:"drawer-backdrop-top",bottom:"drawer-backdrop-bottom"},root:"drawer motion-safe:animate-in motion-safe:duration-short",rootModeless:"drawer-modeless",position:{left:"drawer-left motion-safe:slide-in-from-left",right:"drawer-right motion-safe:slide-in-from-right",top:"drawer-top motion-safe:slide-in-from-top",bottom:"drawer-bottom motion-safe:slide-in-from-bottom"},inlineSize:{small:"drawer-inline-size-small",medium:"drawer-inline-size-medium",large:"drawer-inline-size-large",xlarge:"drawer-inline-size-xlarge"},blockSize:{small:"drawer-block-size-small",medium:"drawer-block-size-medium",large:"drawer-block-size-large",xlarge:"drawer-block-size-xlarge"},customInlineSize:"drawer-inline-size-custom",customBlockSize:"drawer-block-size-custom",headerContent:"drawer-header-content",overflowWrapper:"drawer-overflow-wrapper",overflowWrapperBordered:"drawer-overflow-wrapper-bordered"},hv=e=>"number"==typeof e?`${e}px`:e;function gv(e,t){var a,n;const{title:i="Drawer",subtitle:r="",onClose:l,position:c="right",size:d="medium",modal:u=!0,returnFocusRef:m,initialFocusRef:p,className:h,style:g,children:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["title","subtitle","onClose","position","size","modal","returnFocusRef","initialFocusRef","className","style","children","aria-label","aria-labelledby","aria-describedby"]),j=Jt(),k=Jt(),C=o.useRef(null),S=N(t,C),O=o.useRef(null),[M,A]=o.useState(!1),T=mh(O);Kn({containerRef:C,initialFocusRef:p,returnFocusRef:m,disabled:!u}),Zn(e=>{l("escape"),u&&e.preventDefault()}),Lp(!u);const[I,D]=va(v,{header:ov,body:Yf,footer:av}),L=null!==(a=I.header)&&void 0!==a?a:f.jsxs(ov,{children:[f.jsxs("div",{className:pv.headerContent,children:[f.jsx(mv,{children:i}),r?f.jsx(cv,{children:r}):null]}),f.jsx(Jf,{})]}),P=null!==(n=I.body)&&void 0!==n?n:f.jsx(Yf,{children:D}),E=I.footer,z=Boolean(E),$="left"===c||"right"===c,R=(e=>"string"==typeof e&&e in pv.inlineSize)(d),B=null!=x?x:b?void 0:j,V=null!=y?y:r?k:void 0;return f.jsx(Zf.Provider,{value:{labelId:j,descriptionId:k,onClose:()=>{l("close-button")}},children:f.jsx(oi,{children:f.jsx("div",{className:et(pv.backdrop,pv.backdropPosition[c],!u&&pv.backdropModeless),onClick:e=>{u&&e.target===e.currentTarget&&M&&l("escape")},onMouseDown:e=>{A(e.target===e.currentTarget)},"data-component":"Drawer.Backdrop","data-position":c,"data-modal":u,children:f.jsxs("div",Object.assign({ref:S,role:"dialog","aria-labelledby":B,"aria-describedby":V,"aria-label":b,"aria-modal":u||void 0,className:et(pv.root,pv.position[c],R?$?pv.inlineSize[d]:pv.blockSize[d]:$?pv.customInlineSize:pv.customBlockSize,!u&&pv.rootModeless,h),style:Object.assign(Object.assign({},g),R?{}:{"--drawer-size":hv(d)}),"data-component":"Drawer","data-position":c,"data-size":R?d:void 0,"data-modal":u,"data-has-footer":z?"":void 0},w,{children:[L,f.jsx(gh,{ref:O,"aria-labelledby":j,className:et(pv.overflowWrapper,z&&T&&pv.overflowWrapperBordered),children:P}),E]}))})})})}gv.displayName="Drawer";var fv=tt(gv);const vv=Object.assign(fv,{Header:ov,Title:mv,Subtitle:cv,Body:Yf,Footer:av,CloseButton:Jf}),bv=Xe("empty-state",{variants:{size:{small:"empty-state-small",medium:"empty-state-medium"}}}),xv="empty-state-icon",yv="empty-state-title",wv="empty-state-description",Nv="empty-state-actions",jv=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function kv(e,t){const a=e,{as:n="div",className:i,children:r,title:o,description:l,icon:c,size:d="medium",actions:u}=a,m=s(a,["as","className","children","title","description","icon","size","actions"]);return f.jsxs(n,Object.assign({ref:t,className:et(bv({size:d}),i),"data-component":"EmptyState","data-size":d},m,{children:[void 0===c?null:f.jsx("span",{className:xv,"aria-hidden":"true","data-component":"EmptyState.Icon",children:jv(c)}),f.jsx("span",{className:yv,"data-component":"EmptyState.Title",children:o}),l?f.jsx("span",{className:wv,"data-component":"EmptyState.Description",children:l}):null,r,u?f.jsx("div",{className:Nv,"data-component":"EmptyState.Actions",children:u}):null]}))}kv.displayName="EmptyState";var Cv=tt(kv);function Sv(e,t,a){let n,i=a.initialDeps??[],r=!0;function o(){var o;const s="production"!==process.env.NODE_ENV&&!!a.key&&!!(null==(o=a.debug)?void 0:o.call(a));let l=0;s&&(l=Date.now());const c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return n;i=c;let d=0;if(s&&(d=Date.now()),n=t(...c),s){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-d))/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==a?void 0:a.key)}return!(null==a?void 0:a.onChange)||r&&a.skipInitialOnChange||a.onChange(n),r=!1,n}return o.updateDeps=e=>{i=e},o}function Ov(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const Mv=(e,t,a)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),a)}};let Av;const Tv=()=>{if(void 0!==Av)return Av;if("undefined"==typeof navigator)return Av=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Av=!0;const e=navigator.maxTouchPoints;return Av="MacIntel"===navigator.platform&&void 0!==e&&e>0},Iv=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},Dv=e=>e,Lv=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=new Array(a);for(let e=0;e<a;e++)n[e]=t+e;return n},Pv=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;const i=e=>{const{width:a,height:n}=e;t({width:Math.round(a),height:Math.round(n)})};if(i(Iv(a)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(Iv(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return r.observe(a,{box:"border-box"}),()=>{r.unobserve(a)}},Ev={passive:!0},zv="undefined"==typeof window||"onscrollend"in window,$v=(e,t)=>((e,t,a)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=e.options.useScrollendEvent&&zv;let o=0;const s=r?null:Mv(i,()=>t(o,!1),e.options.isScrollingResetDelay),l=e=>()=>{o=a(n),null==s||s(),t(o,e)},c=l(!0),d=l(!1);return n.addEventListener("scroll",c,Ev),r&&n.addEventListener("scrollend",d,Ev),()=>{n.removeEventListener("scroll",c),r&&n.removeEventListener("scrollend",d)}})(e,t,t=>{const{horizontal:a,isRtl:n}=e.options;return a?t.scrollLeft*(n?-1:1):t.scrollTop}),Rv=(e,t,a)=>{if(a.options.useCachedMeasurements){const t=a.indexFromElement(e),n=a.options.getItemKey(t);return a.itemSizeCache.get(n)??a.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}}if(!t){const t=a.indexFromElement(e),n=a.options.getItemKey(t),i=a.itemSizeCache.get(n);if(void 0!==i)return i}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},Bv=(e,{adjustments:t=0,behavior:a},n)=>{var i,r;null==(r=null==(i=n.scrollElement)?void 0:i.scrollTo)||r.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:a})};class Vv{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,a;return(null==(a=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:a.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,a=this.indexFromElement(t);if(t.isConnected)this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,a]of this.elementsCache)if(a===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,a;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Dv,rangeExtractor:Lv,onChange:()=>{},measureElement:Rv,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const a=e[t];void 0!==a&&(n[t]=a)}const i=this.options;let r=null,o=null,s=!1;if(void 0!==i&&i.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=i.count,l=n.count,c=this.getMeasurements(),d=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,u=e>0?(null==(a=c[e-1])?void 0:a.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(n.getItemKey(0)!==d||n.getItemKey(l-1)!==u)){s=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(r=[t.key,this.getScrollOffset()-t.start]);const a=!0===n.followOnAppend?"auto":n.followOnAppend||null;a&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||n.getItemKey(l-1)!==u)&&(o=a)}}this.options=n,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(r&&null!==this.scrollOffset){const[e,t]=r,a=this.getMeasurements(),{count:n,getItemKey:i}=this.options;let o=0;for(;o<n&&i(o)!==e;)o++;if(o<n){const e=a[o];if(e){const a=Math.max(0,e.start+t);a!==this.scrollOffset&&(c=a-this.scrollOffset,this.scrollOffset=a,l=!0)}}}(l||o)&&(this.pendingScrollAnchor=[l?r[0]:null,l?r[1]:0,o,c])},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=Sv(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const a=this.getScrollOffset();this.scrollDirection=t?a===e?this.scrollDirection:a<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,Tv()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,Ev),e.addEventListener("touchend",a,Ev),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",a),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const a=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,a&&this.scrollElement&&this.options.enabled){const[e,t,n,i]=a;null===e||n||(Tv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const a=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=a,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Sv(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,a,n,i,r,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==r&&(this.lanesChangedFlag=!0),this.prevLanes=r,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Sv(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s},l)=>{const c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===r){const i=2*e;let r,o=this._flatMeasurements;if(!o||o.length<i){const e=new Float64Array(i);o&&d>0&&e.set(o.subarray(0,2*d)),o=e,this._flatMeasurements=o}if(0===d)r=t+a;else{const e=d-1;r=o[2*e]+o[2*e+1]+s}for(let t=d;t<e;t++){const e=n(t),a=c.get(e),i="number"==typeof a?a:this.options.estimateSize(t);o[2*t]=r,o[2*t+1]=i,r+=i+s}const l=function(e,t,a){const n=new Array(e);return new Proxy(n,{get(n,i,r){if("string"==typeof i){const r=i.charCodeAt(0);if(r>=48&&r<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<e){let e=n[r];if(!e){const i=t[2*r];e=n[r]={index:r,key:a(r),start:i,size:t[2*r+1],end:i+t[2*r+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(n,i,r)}})}(e,o,n);return this.measurementsCache=l,l}const u=this.measurementsCache.slice(0,d),m=new Array(r).fill(void 0),p=new Float64Array(r);let h=0;for(let e=0;e<d;e++){const t=u[e];t&&(void 0===m[t.lane]&&h++,m[t.lane]=e,p[t.lane]=t.end)}for(let i=d;i<e;i++){const e=n(i),l=this.laneAssignments.get(i);let d,g;const f="estimate"===o||c.has(e);if(void 0!==l&&this.options.lanes>1){d=l;const e=m[d],n=void 0!==e?u[e]:void 0;g=n?n.end+s:t+a}else if(h===r){let e=0,t=p[0],a=m[0];for(let n=1;n<r;n++){const i=p[n];(i<t||i===t&&m[n]<a)&&(e=n,t=i,a=m[n])}d=e,g=t+s,f&&this.laneAssignments.set(i,d)}else d=i%this.options.lanes,g=t+a,f&&this.laneAssignments.set(i,d);const v=c.get(e),b="number"==typeof v?v:this.options.estimateSize(i),x=g+b;u[i]={index:i,start:g,size:b,end:x,key:e,lane:d},void 0===m[d]&&h++,m[d]=i,p[d]=x}return this.measurementsCache=u,u},{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Sv(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,a,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,a,n,i){const r=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:r};if(1===n&&null!==i){const e=function(e,t,a){let n=0;for(;n<=t;){const i=(n+t)/2|0,r=e[2*i];if(r<a)n=i+1;else{if(!(r>a))return i;t=i-1}}return n>0?n-1:0}(i,r,a);let n=e;const o=a+t;for(;n<r&&i[2*n]+i[2*n+1]<o;)n++;return{startIndex:e,endIndex:n}}const o=t=>e[t].start;let s=_v(0,r,o,a),l=s;if(1===n)for(;l<r&&e[l].end<a+t;)l++;else if(n>1){const i=Array(n).fill(0);for(;l<r&&i.some(e=>e<a+t);){const t=e[l];i[t.lane]=t.end,l++}const o=Array(n).fill(a+t);for(;s>=0&&o.some(e=>e>=a);){const t=e[s];o[t.lane]=t.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}(e,t,a,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Sv(()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,a,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:a}),{key:"production"!==process.env.NODE_ENV&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const a=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==a&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,a-t),i=Math.min(this.options.count-1,a+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),a=this.options.getItemKey(t),n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var a,n;if(e<0||e>=this.options.count)return;let i,r,o;const s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)o=this.options.getItemKey(e),r=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,i=t.size}const l=this.itemSizeCache.get(o)??i,c=t-l;if(0!==c){const s="end"===this.options.anchorTo&&"smooth"!==(null==(a=this.scrollState)?void 0:a.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=s?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,m=!this.itemSizeCache.has(o)?r<u:r+l<=u&&"backward"!==this.scrollDirection,p="smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:r,size:i,end:r+i,lane:0},c,this):m);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let h=!1;s?h=this.applyScrollAdjustment(this.getTotalSize()-d):p&&(h=this.applyScrollAdjustment(c)),this.notify(h)}},this.getVirtualItems=Sv(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const a=[];for(let n=0,i=e.length;n<i;n++){const i=t[e[n]];a.push(i)}return a},{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0===t.length)return;const a=this._flatMeasurements,n=1===this.options.lanes&&null!=a,i=_v(0,t.length-1,n?e=>a[2*e]:e=>Ov(t[e]).start,e);return Ov(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,a=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(a-n)/2:"end"===t&&(e-=n);const r=this.getMaxScrollOffset();return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+a-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const r="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0;const n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:a,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getOffsetForIndex(e,t);if(!n)return;const[i,r]=n,o=this.now();this.scrollState={index:e,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const a=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes){const n=t.length-1,i=this._flatMeasurements;a=null!=i?i[2*n]+i[2*n+1]:(null==(e=t[n])?void 0:e.end)??0}else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const a=t[n];null===e[a.lane]&&(e[a.lane]=a.end),n--}a=Math.max(...e.filter(e=>null!==e))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const a of t)a&&this.itemSizeCache.has(a.key)&&e.push({index:a.index,key:a.key,start:a.start,size:a.size,end:a.end,lane:a.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",e),Tv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,a=t!==this.scrollState.lastTargetOffset;if(!a&&(n=t,i=this.getScrollOffset(),Math.abs(n-i)<1.01)){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,a){const e=this.getSize()||600,a=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&a>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}var n,i;this.scheduleScrollReconcile()}}const _v=(e,t,a,n)=>{for(;e<=t;){const i=(e+t)/2|0,r=a(i);if(r<n)e=i+1;else{if(!(r>n))return i;t=i-1}}return e>0?e-1:0};const Fv="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function Hv(e){return function({useFlushSync:e=!0,directDomUpdates:a=!1,directDomUpdatesMode:n="transform",...i}){const r=o.useReducer(e=>e+1,0)[1],s=o.useRef({enabled:a,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=a,s.current.mode=n;const l=e=>{const t=s.current;if(!t.enabled||!t.container)return;const a=e.getTotalSize();if(a!==t.lastSize){t.lastSize=a;const n=e.options.horizontal?"width":"height";t.container.style[n]=`${a}px`}},c=e=>{const t=s.current;if(!t.enabled||!t.container)return;l(e);const a=!!e.options.horizontal,n="transform"===t.mode,i=a?"left":"top",r=e.options.scrollMargin,o=e.getVirtualItems();for(const s of o){const o=s.start-r,l=e.elementsCache.get(s.key);l&&t.lastPositions.get(l)!==o&&(t.lastPositions.set(l,o),n?l.style.transform=a?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:l.style[i]=`${o}px`)}},d={...i,onChange:(a,n)=>{var o;const l=s.current;let d=!0;if(l.enabled){c(a);const e=a.range,t=l.prevRange;d=!t||t.isScrolling!==a.isScrolling||t.startIndex!==(null==e?void 0:e.startIndex)||t.endIndex!==(null==e?void 0:e.endIndex),d&&(l.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:a.isScrolling}:null)}d&&(e&&n?t.flushSync(r):r()),null==(o=i.onChange)||o.call(i,a,n)}},[u]=o.useState(()=>{const e=new Vv(d);return Object.assign(e,{containerRef:t=>{const a=s.current;if(a.container=t,a.lastSize=null,t&&a.enabled){const n=e.getTotalSize();a.lastSize=n;const i=e.options.horizontal?"width":"height";t.style[i]=`${n}px`}}})});return u.setOptions(d),Fv(()=>u._didMount(),[]),Fv(()=>(l(u),u._willUpdate())),Fv(()=>{c(u)}),u}({observeElementRect:Pv,observeElementOffset:$v,scrollToFn:Bv,...e})}const Wv="filtered-action-list-input";function Gv(e){const{inputRef:t,value:a,onInputChange:n,onInputKeyDown:i,placeholderText:r,listId:o,inputDescriptionId:l,loading:c=!1}=e,d=s(e,["inputRef","value","onInputChange","onInputKeyDown","placeholderText","listId","inputDescriptionId","loading"]);return f.jsx("div",{className:Wv,"data-component":"FilteredActionList.Header",children:f.jsx(Nr,Object.assign({ref:t,block:!0,value:a,onChange:n,onKeyDown:i,placeholder:r,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":o,"aria-label":r,"aria-describedby":l,loading:c,loaderPosition:"leading"},d))})}Gv.displayName="FilteredActionList.Input";const Kv=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function qv(e,t){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:a,text:n,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,onAction:c,children:d,groupId:u,renderItem:m}=e,p=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","onAction","children","groupId","renderItem"]);return f.jsxs(Bn.Item,Object.assign({ref:t,role:"option",onSelect:t=>null==c?void 0:c(e,t),"data-id":a},p,{children:[o?f.jsx(Bn.LeadingVisual,{children:f.jsx(o,{})}):null,d,n,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Kv(l)}):null]}))}qv.displayName="FilteredActionList.Item";var Uv=tt(qv);const Yv=Xe("stack",{variants:{gap:{none:"stack-gap-none",tight:"stack-gap-tight",condensed:"stack-gap-condensed",cozy:"stack-gap-cozy",normal:"stack-gap-normal",spacious:"stack-gap-spacious"},direction:{horizontal:"stack-horizontal",vertical:"stack-vertical"},align:{stretch:"stack-align-stretch",start:"stack-align-start",center:"stack-align-center",end:"stack-align-end",baseline:"stack-align-baseline"},wrap:{wrap:"stack-wrap",nowrap:"stack-nowrap"},justify:{start:"stack-justify-start",center:"stack-justify-center",end:"stack-justify-end","space-between":"stack-justify-space-between","space-evenly":"stack-justify-space-evenly"},padding:{none:"stack-padding-none",tight:"stack-padding-tight",condensed:"stack-padding-condensed",cozy:"stack-padding-cozy",normal:"stack-padding-normal",spacious:"stack-padding-spacious"},paddingBlock:{none:"stack-padding-block-none",tight:"stack-padding-block-tight",condensed:"stack-padding-block-condensed",cozy:"stack-padding-block-cozy",normal:"stack-padding-block-normal",spacious:"stack-padding-block-spacious"},paddingInline:{none:"stack-padding-inline-none",tight:"stack-padding-inline-tight",condensed:"stack-padding-inline-condensed",cozy:"stack-padding-inline-cozy",normal:"stack-padding-inline-normal",spacious:"stack-padding-inline-spacious"}}});function Zv(e,t){const a=e,{as:n="div",className:i,gap:r,direction:o="vertical",align:l="stretch",wrap:c="nowrap",justify:d="start",padding:u="none",paddingBlock:m,paddingInline:p}=a,h=s(a,["as","className","gap","direction","align","wrap","justify","padding","paddingBlock","paddingInline"]);return f.jsx(n,Object.assign({ref:t,className:et(Yv({gap:r,direction:o,align:l,wrap:c,justify:d,padding:u,paddingBlock:m,paddingInline:p}),i),"data-component":"Stack","data-gap":r,"data-direction":o,"data-align":l,"data-wrap":c,"data-justify":d,"data-padding":u,"data-padding-block":m,"data-padding-inline":p},h))}Zv.displayName="Stack";var Qv=tt(Zv);const Xv=Xe("stack-item",{variants:{grow:{true:"stack-item-grow",false:"stack-item-no-grow"},shrink:{true:"stack-item-shrink",false:"stack-item-no-shrink"}}});function Jv(e,t){const a=e,{as:n="div",className:i,grow:r,shrink:o}=a,l=s(a,["as","className","grow","shrink"]);return f.jsx(n,Object.assign({ref:t,className:et(Xv({grow:r,shrink:o}),i),"data-component":"StackItem","data-grow":r,"data-shrink":o},l))}Jv.displayName="StackItem";var eb=tt(Jv);const tb=Object.assign(Qv,{Item:eb}),ab="filtered-action-list-spinner",nb="filtered-action-list-skeleton",ib=["80%","52.5%","67.5%","40%","72.5%"];function rb(e){const{loadingType:t,height:a=0,className:n}=e,i=s(e,["loadingType","height","className"]);if("input"===t)return null;if("body-skeleton"===t){const e=Math.max(Math.floor(a/24),3);return f.jsx(tb,Object.assign({gap:"condensed",justify:"center",className:et(nb,n),"data-component":"FilteredActionList.Skeleton"},i,{children:Array.from({length:e},(e,t)=>f.jsxs(tb,{direction:"horizontal",gap:"condensed",align:"center",children:[f.jsx(Yg,{width:"16px",height:"16px"}),f.jsx(Yg,{width:ib[t%ib.length],height:"10px"})]},t))}))}return f.jsx("div",Object.assign({className:et(ab,n),"data-component":"FilteredActionList.Spinner"},i,{children:f.jsx(en,{})}))}rb.displayName="FilteredActionList.BodyLoader";const ob=({items:e,enabled:t=!0,loading:a=!1,messageText:n})=>{const[i,r]=o.useState(""),s=e.length,l=e.filter(e=>e.selected).length,c=0===s&&!a,d=n?`${n.title}. ${n.description}`:"",u=c?d:`${s} item${1===s?"":"s"} available, ${l} selected.`,m=o.useRef(u);return o.useEffect(()=>{if(!t||u===m.current)return;m.current=u;const e=window.setTimeout(()=>r(u),500);return()=>{window.clearTimeout(e)}},[t,u]),t?i:""},sb="filtered-action-list",lb="filtered-action-list-container",cb="filtered-action-list-list",db="filtered-action-list-message",ub="filtered-action-list-virtual-list",mb="filtered-action-list-virtual-item",pb="filtered-action-list-select-all",hb="filtered-action-list-select-all-label",gb="sr-only",fb=(e,t)=>{var a,n,i;return null!==(i=null!==(a=e.key)&&void 0!==a?a:null===(n=e.id)||void 0===n?void 0:n.toString())&&void 0!==i?i:t.toString()};function vb(t){const{items:a,groupMetadata:n,filterValue:i,onFilterChange:r,placeholderText:s,loading:l=!1,loadingType:c="body-spinner",message:d,messageText:u,selectionVariant:m,showItemDividers:p,onSelectAllChange:h,renderItem:g,announcementsEnabled:v=!0,virtualized:b=!1,textInputProps:x,actionListProps:y,inputRef:w,scrollContainerRef:j,onListContainerRefChanged:k,onInputRefChanged:C,className:S}=t,O=void 0!==i,[M,A]=o.useState(""),T=O?i:M,I=o.useRef(null),D=N(w,I),L=o.useRef(null),P=N(j,L),E=o.useRef(null),z=o.useCallback(e=>{E.current=e,null==k||k(e)},[k]);o.useEffect(()=>{null==C||C(I)},[C]);const $=l&&"input"!==c,[R,B]=o.useState(0);qn(()=>{const e=L.current;if(!e||!$)return;const t=()=>B(e.clientHeight);t();const a=new ResizeObserver(t);return a.observe(e),()=>{a.disconnect()}},[$]);const V=Jt(null==y?void 0:y.id),_=Jt(),F=Jt(),H=b&&!(null==n?void 0:n.length),W=Hv({count:a.length,getScrollElement:()=>L.current,estimateSize:()=>32,overscan:10,enabled:H,getItemKey:e=>{const t=a[e];return t?fb(t,e):e.toString()},measureElement:e=>e.scrollHeight}),G=H?W.getVirtualItems():void 0,[K,q]=o.useState(null);o.useEffect(()=>{var e;if(null===K)return;const t=null===(e=E.current)||void 0===e?void 0:e.querySelector(`[data-index="${K}"]`);t&&(t.focus(),q(null))},[K,G]);const U=o.useCallback(e=>{var t,n;if(e<0||e>=a.length)return;if(H)return W.scrollToIndex(e,{align:"auto"}),void q(e);const i=null===(t=E.current)||void 0===t?void 0:t.querySelectorAll('[role="option"]');null===(n=null==i?void 0:i[e])||void 0===n||n.focus()},[H,a.length,W]),Y=o.useCallback(e=>a.filter(t=>t.groupId===e),[a]),Z=(null==n?void 0:n.length)?n.map(e=>Y(e.groupId)[0]).find(Boolean):a[0],Q=a.length>0&&a.every(e=>e.selected),X=!Q&&a.some(e=>e.selected),J=ob({items:a,enabled:v,loading:l,messageText:u}),ee=o.useMemo(()=>({container:"FilteredActionList",listRole:"listbox",selectionAttribute:"aria-selected",enableFocusZone:!H}),[H]);return f.jsxs("div",{className:et(sb,S),"data-component":"FilteredActionList","data-virtualized":H?"":void 0,children:[f.jsx(Gv,Object.assign({inputRef:D,value:T,onInputChange:e=>{const{value:t}=e.target;O||A(t),r(t,e)},onInputKeyDown:e=>{if("ArrowDown"===e.key)return e.preventDefault(),void U(0);"Enter"===e.key&&(null==Z?void 0:Z.onAction)&&(e.preventDefault(),Z.onAction(Z,e))},placeholderText:s,listId:V,inputDescriptionId:_,loading:l&&"input"===c},x)),f.jsx("span",{id:_,className:gb,children:"Items will be filtered as you type"}),h?f.jsxs("div",{className:pb,"data-component":"FilteredActionList.SelectAll",children:[f.jsx(Lm,{id:F,checked:Q,indeterminate:X,onChange:e=>h(e.target.checked),"data-component":"FilteredActionList.SelectAllCheckbox"}),f.jsx("label",{htmlFor:F,className:hb,children:Q?"Deselect all":"Select all"})]}):null,f.jsx("div",{ref:P,className:lb,onKeyDown:e=>{if(!H||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t=e.target.closest("[data-index]"),n=t?Number(t.dataset.index):-1,i="ArrowDown"===e.key?n+1:"ArrowUp"===e.key?n-1:"Home"===e.key?0:"End"===e.key?a.length-1:null;null!==i&&(e.preventDefault(),U(i))},"data-component":"FilteredActionList.Container",children:$?f.jsx(rb,{loadingType:c,height:R}):d?f.jsx("div",{className:db,"data-component":"FilteredActionList.Message",children:d}):f.jsx(Oa.Provider,{value:ee,children:f.jsx(Bn,Object.assign({ref:z,id:V,selectionVariant:m,showDividers:p},y,{className:et(cb,H&&ub,null==y?void 0:y.className),style:H?Object.assign(Object.assign({},null==y?void 0:y.style),{height:W.getTotalSize()}):null==y?void 0:y.style,children:(null==n?void 0:n.length)?n.map(t=>{var a,n,i;return f.jsxs(Bn.Group,{children:[f.jsx(Bn.GroupHeading,{variant:null===(a=t.header)||void 0===a?void 0:a.variant,children:null!==(i=null===(n=t.header)||void 0===n?void 0:n.title)&&void 0!==i?i:`Group ${t.groupId}`}),Y(t.groupId).map((t,a)=>{var n;return e.createElement(Uv,Object.assign({},t,{key:fb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})]},t.groupId)}):G?G.map(t=>{var n;const i=a[t.index];return e.createElement(Uv,Object.assign({},i,{key:t.key,ref:W.measureElement,renderItem:null!==(n=i.renderItem)&&void 0!==n?n:g,"data-index":t.index,className:et(mb,i.className),style:Object.assign(Object.assign({},i.style),{transform:`translateY(${t.start}px)`})}))}):a.map((t,a)=>{var n;return e.createElement(Uv,Object.assign({},t,{key:fb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})}))})}),f.jsx("span",{role:"status","aria-live":"polite",className:gb,"data-component":"FilteredActionList.Announcement",children:J})]})}vb.displayName="FilteredActionList";const bb=Object.assign(vb,{Input:Gv,Item:Uv,BodyLoader:rb}),xb=e.createContext({}),yb="radio",wb="radio-checked",Nb="radio-disabled";function jb(e,t){const{className:a,name:n,required:i,validationStatus:r,value:l,onChange:c}=e,d=s(e,["className","name","required","validationStatus","value","onChange"]),u=o.useContext(xb);return f.jsx("input",Object.assign({ref:t,type:"radio",value:l,name:null!=n?n:u.name,required:i,"aria-required":!!i||void 0,"aria-invalid":"error"===r||void 0,onChange:e=>{var t;null===(t=u.onChange)||void 0===t||t.call(u,e),null==c||c(e)},className:et(yb,wb,Nb,a),"data-component":"Radio"},d))}jb.displayName="Radio";var kb=tt(jb);const Cb="select-control",Sb="select-indicator",Ob=Xe("select",{variants:{size:{small:"select-small",medium:"select-medium",large:"select-large"},block:{true:"select-block",false:""},disabled:{true:"select-disabled",false:""},validation:{error:"select-error",success:"select-success"}}});function Mb(e,t){const{className:a,children:n,placeholder:i,size:r="medium",block:o,disabled:l,required:c,validationStatus:d,defaultValue:u}=e,m=s(e,["className","children","placeholder","size","block","disabled","required","validationStatus","defaultValue"]),p="value"in m;return f.jsxs("span",{className:et(Ob({size:r,block:o,disabled:l,validation:d}),a),"data-component":"Select","data-size":r,"data-block":o,"data-disabled":l,"data-validation":d,children:[f.jsxs("select",Object.assign({ref:t,disabled:l,required:c,"aria-invalid":"error"===d||void 0,className:Cb,defaultValue:p?void 0:null!=u?u:i?"":void 0,"data-has-placeholder":Boolean(i)||void 0},m,{children:[i?f.jsx("option",{value:"",disabled:c,hidden:c,"data-component":"Select.Option",children:i}):null,n]})),f.jsx(wt,{className:Sb,"aria-hidden":"true"})]})}Mb.displayName="Select";var Ab=tt(Mb);const Tb=7,Ib=30,Db="both",Lb="textarea-counter",Pb="textarea-counter-over-limit",Eb="textarea-counter-icon",zb="sr-only",$b=Xe("textarea-field",{variants:{block:{true:"textarea-field-block",false:""},contrast:{true:"textarea-field-contrast",false:""},disabled:{true:"textarea-field-disabled",false:""},validation:{error:"textarea-field-error",success:"textarea-field-success"}}}),Rb=Xe("textarea",{variants:{resize:{none:"textarea-resize-none",both:"textarea-resize-both",horizontal:"textarea-resize-horizontal",vertical:"textarea-resize-vertical"}}});function Bb(e,t){var a;const{className:n,style:i,value:r,defaultValue:l,onChange:c,rows:d=Tb,cols:u=Ib,resize:m=Db,block:p,contrast:h,disabled:g,required:v,validationStatus:b,minHeight:x,maxHeight:y,characterLimit:w,"aria-describedby":N}=e,j=s(e,["className","style","value","defaultValue","onChange","rows","cols","resize","block","contrast","disabled","required","validationStatus","minHeight","maxHeight","characterLimit","aria-describedby"]),k=Jt(),C=void 0!==r,[S,O]=o.useState(()=>void 0===l?0:String(l).length),M=C?String(r).length:S,A=w?ur(M,w):void 0,T=null!==(a=null==A?void 0:A.isOverLimit)&&void 0!==a&&a,I=T?"error":b,D=o.useRef(!1),[L,P]=o.useState(""),E=null==A?void 0:A.message;o.useEffect(()=>{if(!D.current)return;const e=window.setTimeout(()=>{P(null!=E?E:"")},500);return()=>{window.clearTimeout(e)}},[E]);return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:et($b({block:p,contrast:h,disabled:g,validation:I}),n),"data-component":"Textarea","data-block":p,"data-contrast":h,"data-disabled":g,"data-validation":I,children:f.jsx("textarea",Object.assign({ref:t,value:r,defaultValue:l,rows:d,cols:u,disabled:g,required:v,"aria-required":!!v||void 0,"aria-invalid":"error"===I||void 0,"aria-describedby":w?[k,N].filter(Boolean).join(" "):N,onChange:e=>{D.current=!0,w&&!C&&O(e.target.value.length),null==c||c(e)},className:et(Rb({resize:m})),style:Object.assign({minHeight:x,maxHeight:y},i),"data-resize":m},j))}),A?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:zb,children:L}),f.jsxs("span",{id:k,className:zb,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(Lb,T&&Pb),"data-component":"Textarea.CharacterCount",children:[T?f.jsx(Ot,{className:Eb}):null,A.message]})]}):null]})}Bb.displayName="Textarea";var Vb=tt(Bb);const _b=e.createContext({}),Fb="form-control-caption",Hb="form-control-caption-disabled";function Wb(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{captionId:r,disabled:l}=o.useContext(_b);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(Fb,l&&Hb,a),"data-component":"FormControl.Caption","data-control-disabled":l},i))}Wb.displayName="FormControl.Caption";var Gb=tt(Wb);const Kb="form-control-label",qb="form-control-label-disabled",Ub="sr-only",Yb="form-control-label-required";function Zb(e,t){const a=e,{as:n="label",className:i,children:r,htmlFor:l,id:c,visuallyHidden:d,requiredIndicator:u=!0,requiredText:m}=a,p=s(a,["as","className","children","htmlFor","id","visuallyHidden","requiredIndicator","requiredText"]),{id:h,disabled:g,required:v,labelId:b}=o.useContext(_b);return f.jsx(n,Object.assign({ref:t,id:null!=c?c:b,htmlFor:"label"===n?null!=l?l:h:void 0,className:et(Kb,g&&qb,d&&Ub,i),"data-component":"FormControl.Label","data-control-disabled":g},p,{children:v||m?f.jsxs("span",{className:Yb,children:[f.jsx("span",{children:r}),f.jsx("span",{"aria-hidden":!u||void 0,children:null!=m?m:"*"})]}):r}))}Zb.displayName="FormControl.Label";var Qb=tt(Zb);const Xb="form-control-leading-visual",Jb="form-control-leading-visual-disabled",ex="form-control-leading-visual-with-caption";function tx(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i,disabled:r}=o.useContext(_b);return f.jsx("div",Object.assign({ref:t,className:et(Xb,i&&ex,r&&Jb,a),"data-component":"FormControl.LeadingVisual","data-control-disabled":r,"data-has-caption":!!i||void 0},n))}tx.displayName="FormControl.LeadingVisual";var ax=tt(tx);const nx={success:ft,error:Ot},ix="form-control-validation-icon",rx=Xe("form-control-validation",{variants:{variant:{success:"form-control-validation-success",error:"form-control-validation-error"}}});function ox(e,t){const{className:a,children:n,variant:i,id:r}=e,l=s(e,["className","children","variant","id"]),{validationMessageId:c}=o.useContext(_b),d=nx[i];return f.jsxs("span",Object.assign({ref:t,className:et(rx({variant:i}),a),"data-component":"FormControl.Validation","data-validation-status":i},l,{children:[f.jsx(d,{className:ix,"aria-hidden":"true"}),f.jsx("span",{id:null!=r?r:c,children:n})]}))}ox.displayName="FormControl.Validation";var sx=tt(ox);const lx="form-control-vertical",cx="form-control-vertical-with-label",dx="form-control-horizontal",ux="form-control-horizontal-with-leading-visual",mx="form-control-choice-input",px="form-control-label-container",hx=[Lm,kb,Ab,Vb,vr],gx=(e,t)=>o.isValidElement(e)&&(e.type===t||ha(e,t));function fx(e,t){var a;const{className:n,children:i,disabled:r,required:l,layout:c="vertical",id:d}=e,u=s(e,["className","children","disabled","required","layout","id"]),[m,p]=va(i,{label:Qb,caption:Gb,leadingVisual:ax,validation:sx}),h=o.useContext(Cm),g=o.useContext(xb),v=h.disabled||g.disabled||r,b=Jt(d),x=m.caption?`${b}-caption`:void 0,y=m.validation?`${b}-validation`:void 0,w=o.isValidElement(m.label)?m.label:void 0,N=w?null!==(a=w.props.id)&&void 0!==a?a:`${b}-label`:void 0,j=!!w&&!w.props.visuallyHidden,k=o.isValidElement(m.validation)?m.validation.props.variant:void 0,C=p.find(e=>hx.some(t=>gx(e,t))),S=gx(C,Lm)||gx(C,kb),O=gx(C,kb),M=S||"horizontal"===c,A=p.filter(e=>e!==C),T={id:b,disabled:v,required:l,captionId:x,validationMessageId:y,labelId:N},I=o.isValidElement(C)?o.cloneElement(C,M?{id:b,disabled:v,required:l&&!O,"aria-describedby":x}:Object.assign({id:b,disabled:v,required:l,validationStatus:k,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0},C.props)):null;return f.jsx(_b.Provider,{value:T,children:M?f.jsxs("div",Object.assign({ref:t,className:et(dx,m.leadingVisual&&ux,n),"data-component":"FormControl","data-layout":"horizontal","data-disabled":v,"data-required":l,"data-has-leading-visual":!!m.leadingVisual||void 0},u,{children:[f.jsxs("div",{className:mx,children:[I,A]}),m.leadingVisual,f.jsxs("div",{className:px,children:[m.label,m.caption]})]})):f.jsxs("div",Object.assign({ref:t,className:et(lx,j&&cx,n),"data-component":"FormControl","data-layout":"vertical","data-disabled":v,"data-required":l,"data-has-label":!!j||void 0},u,{children:[m.label,I,A,m.validation,m.caption]}))})}fx.displayName="FormControl";var vx=tt(fx);const bx=e=>{const{id:t,disabled:a,required:n,captionId:i,validationMessageId:r}=o.useContext(_b);return Object.assign({id:t,disabled:a,required:n,"aria-describedby":[r,i].filter(Boolean).join(" ")||void 0},e)},xx=Object.assign(vx,{Label:Qb,Caption:Gb,LeadingVisual:ax,Validation:sx}),yx={when:{narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"}};function wx(e,t){const a=e,{as:n="div",className:i,when:r}=a,o=s(a,["as","className","when"]),l=Array.isArray(r)?r:[r];return f.jsx(n,Object.assign({ref:t,className:et(l.map(e=>yx.when[e]),i),"data-component":"Hidden","data-when":l.join(" ")},o))}wx.displayName="Hidden";var Nx=tt(wx);const jx="inline-message-icon",kx=Xe("inline-message",{variants:{size:{small:"inline-message-small",medium:"inline-message-medium"},variant:{critical:"inline-message-critical",success:"inline-message-success",unavailable:"inline-message-unavailable",warning:"inline-message-warning"}}}),Cx={critical:Ot,success:ft,unavailable:Ht,warning:Ht},Sx=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Ox(e,t){const{className:a,children:n,size:i="medium",variant:r,leadingVisual:o}=e,l=s(e,["className","children","size","variant","leadingVisual"]),c=r?Cx[r]:It;return f.jsxs("div",Object.assign({ref:t,className:et(kx({size:i,variant:r}),a),"data-component":"InlineMessage","data-size":i,"data-variant":r},l,{children:[f.jsx("span",{className:jx,"data-component":"InlineMessage.Icon",children:void 0===o?f.jsx(c,{}):Sx(o)}),f.jsx("span",{"data-component":"InlineMessage.Content",children:n})]}))}Ox.displayName="InlineMessage";var Mx=tt(Ox);const Ax=([e,...t])=>{var a;return(null!==(a=null==e?void 0:e.toUpperCase())&&void 0!==a?a:"")+t.join("").toLowerCase()},Tx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"⌥":"Alt",control:"⌃",shift:"⇧",meta:"apple"===e?"⌘":"windows"===e?"Win":"Meta",mod:"apple"===e?"⌘":"⌃",pageup:"PgUp",pagedown:"PgDn",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",plus:"+",backspace:"⌫",delete:"Del",space:"␣",tab:"⇥",enter:"⏎",escape:"Esc",function:"Fn",capslock:"CapsLock",insert:"Ins",printscreen:"PrtScn"}))(t)[e])&&void 0!==a?a:Ax(e)},Ix=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"Option":"Alt",meta:"apple"===e?"Command":"windows"===e?"Windows":"Meta",mod:"apple"===e?"Command":"Control","+":"Plus",pageup:"Page Up",pagedown:"Page Down",arrowup:"Up Arrow",arrowdown:"Down Arrow",arrowleft:"Left Arrow",arrowright:"Right Arrow",capslock:"Caps Lock",printscreen:"Print Screen"}))(t)[e])&&void 0!==a?a:Ax(e)},Dx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"option":"alt",meta:"apple"===e?"command":"windows"===e?"Windows":"meta",mod:"apple"===e?"command":"control",pageup:"page up",pagedown:"page down",arrowup:"up arrow",arrowdown:"down arrow",arrowleft:"left arrow",arrowright:"right arrow",capslock:"caps lock",printscreen:"print screen","`":"backtick","~":"tilde","!":"exclamation point","@":"at","#":"hash",$:"dollar sign","%":"percent","^":"caret","&":"ampersand","*":"asterisk","(":"left parenthesis",")":"right parenthesis",_:"underscore","-":"dash","+":"plus","=":"equals","[":"left bracket","{":"left curly brace","]":"right bracket","}":"right curly brace","\\":"backslash","|":"pipe",";":"semicolon",":":"colon","'":"single quote",'"':"double quote",",":"comma","<":"left angle bracket",".":"period",">":"right angle bracket","/":"forward slash","?":"question mark"," ":"space"}))(t)[e])&&void 0!==a?a:e.toLowerCase()},Lx={control:1,meta:2,alt:3,option:4,shift:5,function:6},Px=e=>{var t;return null!==(t=Lx[e])&&void 0!==t?t:1/0},Ex=e=>e.split("+").map(e=>e.toLowerCase()).sort((e,t)=>Px(e)-Px(t)),zx=e=>e.split(" "),$x=(e,t)=>zx(e).map(e=>((e,t)=>Ex(e).map(e=>Dx(e,t)).join(" "))(e,t)).join(" then "),Rx=(e,t)=>$x(e,t),Bx=e.createContext(null),Vx=()=>()=>{},_x=()=>{const e="undefined"==typeof navigator?"":`${navigator.platform} ${navigator.userAgent}`;return/mac|iphone|ipad|ipod/i.test(e)?"apple":/win/i.test(e)?"windows":"other"},Fx=()=>"other",Hx=()=>{const t=e.useContext(Bx),a=e.useSyncExternalStore(Vx,_x,Fx);return null!=t?t:a},Wx="sr-only";function Gx(e){const{name:t,format:a="condensed"}=e,n=Hx();return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:Wx,children:Dx(t,n)}),f.jsx("span",{"aria-hidden":"true",children:"condensed"===a?Tx(t,n):Ix(t,n)})]})}Gx.displayName="KeybindingHint.Key";const Kx=Xe("keybinding-hint-chord",{variants:{variant:{normal:"keybinding-hint-chord-normal",onEmphasis:"keybinding-hint-chord-on-emphasis",onPrimary:"keybinding-hint-chord-on-primary"},size:{normal:"keybinding-hint-chord-size-normal",small:"keybinding-hint-chord-size-small"}}});function qx(e){const{keys:t,format:a="condensed",variant:n="normal",size:i="normal"}=e;return f.jsx("span",{className:et(Kx({variant:n,size:i})),"data-component":"KeybindingHint.Chord",children:Ex(t).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0&&"full"===a?f.jsx("span",{"aria-hidden":"true",children:" + "}):" ",f.jsx(Gx,{name:e,format:a})]},t))})}qx.displayName="KeybindingHint.Chord";const Ux="keybinding-hint",Yx="sr-only";function Zx(e,t){const{className:a,keys:n,format:i="condensed",variant:r="normal",size:l="normal"}=e,c=s(e,["className","keys","format","variant","size"]);return f.jsx("kbd",Object.assign({ref:t,className:et(Ux,a),"data-component":"KeybindingHint","data-format":i,"data-variant":r,"data-size":l},c,{children:zx(n).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:Yx,children:"then"})," "]}):null,f.jsx(qx,{keys:e,format:i,variant:r,size:l})]},t))}))}Zx.displayName="KeybindingHint";var Qx=tt(Zx);const Xx=Xe("label",{variants:{size:{small:"label-small",medium:"label-medium",large:"label-large"},variant:{default:"label-default",primary:"label-primary",secondary:"label-secondary",accent:"label-accent",success:"label-success",attention:"label-attention",severe:"label-severe",danger:"label-danger",done:"label-done",sponsors:"label-sponsors"}}});function Jx(e,t){const a=e,{as:n="span",className:i,size:r="small",variant:o="default"}=a,l=s(a,["as","className","size","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(Xx({size:r,variant:o}),i),"data-component":"Label","data-size":r,"data-variant":o},l))}Jx.displayName="Label";var ey=tt(Jx);function ty(e,t){const a=e,{as:n="a"}=a,i=s(a,["as"]);return f.jsx(gn,Object.assign({ref:t,as:n,"data-component":"LinkButton"},i))}ty.displayName="LinkButton";var ay=tt(ty);const ny="nav-list-heading",iy="sr-only";function ry(e){const{as:t="h2",visuallyHidden:a=!1,className:n}=e,i=s(e,["as","visuallyHidden","className"]);return f.jsx(wa,Object.assign({as:t,size:"small",className:et(a?iy:ny,n),"data-component":"NavList.Heading"},i))}ry.displayName="NavList.Heading";const oy=o.createContext(null),sy=o.createContext({depth:0}),ly=o.createContext({buttonId:"",subNavId:"",isOpen:!1}),cy=e=>{const t=null===e?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},dy={heading:ry},uy={container:"NavList"};function my(e,t){var a,n;const{children:i,className:r,"aria-label":l,"aria-labelledby":c}=e,d=s(e,["children","className","aria-label","aria-labelledby"]),[u,m]=va(i,dy),p=Jt(),h=u.heading,g=h?null!==(a=h.props.id)&&void 0!==a?a:p:void 0,v=h?(b=null!==(n=h.props.as)&&void 0!==n?n:"h2",Number.parseInt(b.slice(1),10)):null;var b;const x=null!=c?c:l?void 0:g;return f.jsx("nav",Object.assign({ref:t,"aria-label":l,"aria-labelledby":x,className:et(r),"data-component":"NavList"},d,{children:f.jsxs(oy.Provider,{value:v,children:[h?o.cloneElement(h,{id:g}):null,f.jsx(Oa.Provider,{value:uy,children:f.jsx(Bn,{children:m})})]})}))}my.displayName="NavList";var py=o.forwardRef(my);function hy(e){const{title:t,children:a,hideDivider:n=!1}=e,i=s(e,["title","children","hideDivider"]),r=o.useContext(oy);return f.jsxs(f.Fragment,{children:[n?null:f.jsx(Bn.Divider,{}),f.jsxs(Bn.Group,Object.assign({"data-component":"NavList.Group"},i,{children:[t?f.jsx(Bn.GroupHeading,{as:cy(r),children:t}):null,a]}))]})}hy.displayName="NavList.Group";const gy="nav-list-chevron",fy={trailingVisual:Bn.TrailingVisual},vy=e=>{if(!o.isValidElement(e))return!1;const t=e.props["aria-current"];return!(!Boolean(t)||"false"===t)||o.Children.toArray(e.props.children).some(vy)};function by(e){var t;const{children:a,subNav:n,defaultOpen:i,className:r}=e,s=Jt(),l=Jt(),c=o.useRef(null),d=o.useMemo(()=>vy(n),[n]),[u,m]=o.useState(null!=i?i:d),[p,h]=o.useState(d);qn(()=>{var e;const t=d||Boolean(null===(e=c.current)||void 0===e?void 0:e.querySelector("[aria-current]:not([aria-current='false'])"));h(t),t&&m(!0)},[d,n]);const g=o.useMemo(()=>({buttonId:s,subNavId:l,isOpen:u}),[s,l,u]),[v,b]=va(a,fy);return f.jsx(ly.Provider,{value:g,children:f.jsxs(Bn.Item,{id:s,active:!u&&p,"aria-expanded":u,"aria-controls":l,onSelect:()=>m(e=>!e),className:r,"data-component":"NavList.Item",children:[b,f.jsxs(Bn.TrailingVisual,{children:[null===(t=v.trailingVisual)||void 0===t?void 0:t.props.children,f.jsx(bt,{className:gy})]}),f.jsx(Bn.SubItem,{children:o.cloneElement(n,{ref:c})})]})})}by.displayName="NavList.ItemWithSubNav";const xy="nav-list-sub-nav",yy="nav-list-sub-nav-items";function wy(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{buttonId:r,subNavId:l,isOpen:c}=o.useContext(ly),{depth:d}=o.useContext(sy),u=o.useMemo(()=>({depth:d+1}),[d]);return!r||!l||d>=4?null:f.jsx(sy.Provider,{value:u,children:f.jsx("ul",Object.assign({ref:t,id:l,hidden:!c,"aria-labelledby":r,className:et(xy,yy,a),"data-component":"NavList.SubNav","data-depth":d+1},i,{children:n}))})}wy.displayName="NavList.SubNav";var Ny=tt(wy);const jy={subNav:Ny},ky=Bn.LinkItem;function Cy(e,t){const a=e,{as:n,children:i,className:r,defaultOpen:o,"aria-current":l}=a,c=s(a,["as","children","className","defaultOpen","aria-current"]),[d,u]=va(i,jy);return d.subNav?f.jsx(by,{subNav:d.subNav,defaultOpen:o,className:r,children:u}):f.jsx(ky,Object.assign({ref:t,as:n,"aria-current":l,active:Boolean(l)&&"false"!==l,className:r,"data-component":"NavList.Item"},c,{children:i}))}Cy.displayName="NavList.Item";var Sy=tt(Cy);const Oy=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function My(e,t){const{label:a="Show more",pages:n=0,items:i,renderItem:r}=e,l=s(e,["label","pages","items","renderItem"]),[c,d]=o.useState(0),u=Jt(),m=i.length/n,p=0===n?i.length:Math.ceil(m*c),h=1===c?0:p-Math.floor(m);return qn(()=>{if(0===c)return;const e=document.querySelector(`[data-expand-focus-target="${u}"]`);null==e||e.focus()},[c,u]),f.jsxs(f.Fragment,{children:[c>0?i.slice(0,p).map((e,t)=>{var a;const{text:n,leadingVisual:i,trailingVisual:o,trailingAction:l}=e,c=s(e,["text","leadingVisual","trailingVisual","trailingAction"]),d=t===h?u:void 0;return r?r(Object.assign(Object.assign({},e),{"data-expand-focus-target":d})):f.jsxs(Sy,Object.assign({"data-expand-focus-target":d},c,{children:[i?f.jsx(Bn.LeadingVisual,{children:f.jsx(i,{})}):null,n,o?f.jsx(Bn.TrailingVisual,{children:Oy(o)}):null,l?f.jsx(Bn.TrailingAction,Object.assign({},l)):null]}),null!==(a=e.id)&&void 0!==a?a:t)}):null,c<n||0===c?f.jsxs(Bn.Item,Object.assign({ref:t,as:"button","aria-expanded":!1,onSelect:()=>d(e=>e+1),"data-component":"NavList.GroupExpand"},l,{children:[a,f.jsx(Bn.TrailingVisual,{children:f.jsx(st,{})})]})):null]})}My.displayName="NavList.GroupExpand";var Ay=o.forwardRef(My);const Ty="nav-list-group-heading";function Iy(e){const{as:t,className:a}=e,n=s(e,["as","className"]),i=o.useContext(oy);return f.jsx(Bn.GroupHeading,Object.assign({as:null!=t?t:cy(i),className:et(Ty,a),"data-component":"NavList.GroupHeading"},n))}Iy.displayName="NavList.GroupHeading";const Dy=ga(Iy,Va),Ly=Object.assign(py,{Heading:ry,Item:Sy,SubNav:Ny,Group:hy,GroupHeading:Dy,GroupExpand:Ay,Description:za,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,Divider:Ra}),Py=Xe("page-content",{variants:{width:{full:"page-content-width-full",medium:"page-content-width-medium",large:"page-content-width-large",xlarge:"page-content-width-xlarge"},padding:{none:"page-content-padding-none",condensed:"page-content-padding-condensed",normal:"page-content-padding-normal",spacious:"page-content-padding-spacious"},gap:{none:"page-content-gap-none",condensed:"page-content-gap-condensed",normal:"page-content-gap-normal",spacious:"page-content-gap-spacious"}}});function Ey(e,t){const a=e,{as:n="main",className:i,width:r="full",padding:o="none",gap:l="normal"}=a,c=s(a,["as","className","width","padding","gap"]);return f.jsx(n,Object.assign({ref:t,className:et(Py({width:r,padding:o,gap:l}),i),"data-component":"PageContent","data-width":r,"data-padding":o,"data-gap":l},c))}Ey.displayName="PageContent";var zy=tt(Ey);const $y=["narrow","regular","wide"],Ry="hidden",By={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Vy=e=>{return a=Ry,n=By,(t=e).length===$y.length?a:t.map(e=>n[e]);var t,a,n},_y=e=>e.length>0?e.join(" "):void 0,Fy="page-content-section";function Hy(e,t){const a=e,{as:n="section",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...$y]:[]:$y.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(Fy,i,Vy(l)),"data-component":"PageContent.Section","data-hidden":_y(l)},o))}Hy.displayName="PageContent.Section";var Wy=tt(Hy);const Gy=Object.assign(zy,{Section:Wy}),Ky=["narrow","regular","wide"],qy="hidden",Uy={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Yy=(e=!1)=>"boolean"==typeof e?e?[...Ky]:[]:Ky.filter(t=>e[t]),Zy=(e,t,a)=>e.length===Ky.length?t:e.map(e=>a[e]),Qy=e=>Zy(e,qy,Uy),Xy=e=>e.length>0?e.join(" "):void 0;var Jy=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=Yy(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Qy(l)),"data-hidden":Xy(l)},o))});const ew="page-footer-navigation";function tw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(Jy,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(ew,a),"data-component":"PageFooter.Navigation"},o))}tw.displayName="PageFooter.Navigation";var aw=tt(tw);const nw={root:"page-footer",text:"page-footer-text",variant:{normal:"page-footer-normal",condensed:"page-footer-condensed"},narrowVariant:{normal:"page-footer-narrow-normal",condensed:"page-footer-narrow-condensed"},regularVariant:{normal:"page-footer-regular-normal",condensed:"page-footer-regular-condensed"},wideVariant:{normal:"page-footer-wide-normal",condensed:"page-footer-wide-condensed"},border:"page-footer-border",borderWhen:{narrow:"page-footer-border-narrow",regular:"page-footer-border-regular",wide:"page-footer-border-wide"}},iw=e=>{var t;const a={hasNavigation:!1};for(const n of o.Children.toArray(e))if(o.isValidElement(n)){if(n.type===o.Fragment){const e=iw(n.props.children);e.hasNavigation&&(a.hasNavigation=!0,a.navigationHidden=e.navigationHidden);continue}n.type===aw&&(a.hasNavigation=!0,a.navigationHidden=null!==(t=n.props.hidden)&&void 0!==t&&t)}return a},rw=e=>"string"==typeof e?nw.variant[e]:[(null==e?void 0:e.narrow)&&nw.narrowVariant[e.narrow],(null==e?void 0:e.regular)&&nw.regularVariant[e.regular],(null==e?void 0:e.wide)&&nw.wideVariant[e.wide]];function ow(e,t){const a=e,{as:n="footer",className:i,children:r,variant:o="normal",hasBorder:l}=a,c=s(a,["as","className","children","variant","hasBorder"]),{hasNavigation:d,navigationHidden:u}=iw(r),m=Yy(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(nw.root,nw.text,rw(o),l&&Zy(m,nw.border,nw.borderWhen),i),"data-component":"PageFooter","data-has-border":l?"":void 0,"data-has-navigation":d?"":void 0},Qn("size-variant",o),c,{children:r}))}ow.displayName="PageFooter";var sw=tt(ow);const lw="page-footer-actions";function cw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Jy,Object.assign({ref:t,className:et(lw,a),"data-component":"PageFooter.Actions"},n))}cw.displayName="PageFooter.Actions";var dw=tt(cw);const uw="page-footer-copyright";function mw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Jy,Object.assign({ref:t,className:et(uw,a),"data-component":"PageFooter.Copyright"},n))}mw.displayName="PageFooter.Copyright";var pw=tt(mw);const hw="page-footer-description";function gw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Jy,Object.assign({ref:t,className:et(hw,a),"data-component":"PageFooter.Description"},n))}gw.displayName="PageFooter.Description";var fw=tt(gw);const vw="page-footer-leading-visual";function bw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Jy,Object.assign({ref:t,className:et(vw,a),"data-component":"PageFooter.LeadingVisual"},n))}bw.displayName="PageFooter.LeadingVisual";var xw=tt(bw);const yw=Object.assign(sw,{Navigation:aw,LeadingVisual:xw,Copyright:pw,Actions:dw,Description:fw}),ww=["narrow","regular","wide"],Nw="hidden",jw={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},kw=(e=!1)=>"boolean"==typeof e?e?[...ww]:[]:ww.filter(t=>e[t]),Cw=(e,t,a)=>e.length===ww.length?t:e.map(e=>a[e]),Sw=e=>Cw(e,Nw,jw),Ow=e=>e.length>0?e.join(" "):void 0;var Mw=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=kw(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Sw(l)),"data-hidden":Ow(l)},o))});const Aw="page-header-navigation";function Tw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(Mw,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(Aw,a),"data-component":"PageHeader.Navigation"},o))}Tw.displayName="PageHeader.Navigation";var Iw=tt(Tw);const Dw="page-header-title-area";function Lw(e,t){const{className:a,variant:n="medium"}=e,i=s(e,["className","variant"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Dw,a),"data-component":"PageHeader.TitleArea"},Qn("size-variant",n),i))}Lw.displayName="PageHeader.TitleArea";var Pw=tt(Lw);const Ew={root:"page-header",title:"page-header-title-type",titleVariant:{subtitle:"page-header-title-subtitle",medium:"page-header-title-medium",large:"page-header-title-large"},narrowTitleVariant:{subtitle:"page-header-narrow-title-subtitle",medium:"page-header-narrow-title-medium",large:"page-header-narrow-title-large"},regularTitleVariant:{subtitle:"page-header-regular-title-subtitle",medium:"page-header-regular-title-medium",large:"page-header-regular-title-large"},wideTitleVariant:{subtitle:"page-header-wide-title-subtitle",medium:"page-header-wide-title-medium",large:"page-header-wide-title-large"},border:"page-header-border",borderWhen:{narrow:"page-header-border-narrow",regular:"page-header-border-regular",wide:"page-header-border-wide"}},zw=e=>{var t,a;const n={hasNavigation:!1};for(const i of o.Children.toArray(e))if(o.isValidElement(i)){if(i.type===o.Fragment){const e=zw(i.props.children);void 0!==e.titleVariant&&(n.titleVariant=e.titleVariant),e.hasNavigation&&(n.hasNavigation=!0,n.navigationHidden=e.navigationHidden);continue}i.type!==Pw?i.type===Iw&&(n.hasNavigation=!0,n.navigationHidden=null!==(a=i.props.hidden)&&void 0!==a&&a):n.titleVariant=null!==(t=i.props.variant)&&void 0!==t?t:"medium"}return n};function $w(e,t){const a=e,{as:n="div",className:i,children:r,hasBorder:o}=a,l=s(a,["as","className","children","hasBorder"]),{titleVariant:c,hasNavigation:d,navigationHidden:u}=zw(r),m=kw(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(Ew.root,c&&Ew.title,c&&(p=c,"string"==typeof p?Ew.titleVariant[p]:[(null==p?void 0:p.narrow)&&Ew.narrowTitleVariant[p.narrow],(null==p?void 0:p.regular)&&Ew.regularTitleVariant[p.regular],(null==p?void 0:p.wide)&&Ew.wideTitleVariant[p.wide]]),o&&Cw(m,Ew.border,Ew.borderWhen),i),"data-component":"PageHeader","data-has-border":o?"":void 0,"data-has-navigation":d?"":void 0},Qn("title-size-variant",c),l,{children:r}));var p}$w.displayName="PageHeader";var Rw=tt($w);const Bw="page-header-actions";function Vw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Bw,a),"data-component":"PageHeader.Actions"},n))}Vw.displayName="PageHeader.Actions";var _w=tt(Vw);const Fw="page-header-breadcrumbs";function Hw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Fw,a),"data-component":"PageHeader.Breadcrumbs"},n))}Hw.displayName="PageHeader.Breadcrumbs";var Ww=tt(Hw);const Gw="page-header-context-area";function Kw(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Gw,a),hidden:n,"data-component":"PageHeader.ContextArea"},i))}Kw.displayName="PageHeader.ContextArea";var qw=tt(Kw);const Uw="page-header-context-area-actions";function Yw(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Uw,a),hidden:n,"data-component":"PageHeader.ContextAreaActions"},i))}Yw.displayName="PageHeader.ContextAreaActions";var Zw=tt(Yw);const Qw="page-header-context-bar";function Xw(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx(Mw,Object.assign({ref:t,className:et(Qw,a),hidden:n,"data-component":"PageHeader.ContextBar"},i))}Xw.displayName="PageHeader.ContextBar";var Jw=tt(Xw);const eN="page-header-description";function tN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Mw,Object.assign({ref:t,className:et(eN,a),"data-component":"PageHeader.Description"},n))}tN.displayName="PageHeader.Description";var aN=tt(tN);const nN="page-header-leading-action";function iN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx(Mw,Object.assign({ref:t,className:et(nN,a),hidden:n,"data-component":"PageHeader.LeadingAction"},i))}iN.displayName="PageHeader.LeadingAction";var rN=tt(iN);const oN="page-header-leading-visual";function sN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Mw,Object.assign({ref:t,className:et(oN,a),"data-component":"PageHeader.LeadingVisual"},n))}sN.displayName="PageHeader.LeadingVisual";var lN=tt(sN);const cN="page-header-parent-link";function dN(e,t){const a=e,{className:n,children:i,hidden:r={regular:!0,wide:!0}}=a,o=s(a,["className","children","hidden"]),l=kw(r);return f.jsxs(Ro,Object.assign({ref:t,muted:!0,className:et(cN,n,Sw(l)),"data-component":"PageHeader.ParentLink","data-hidden":Ow(l)},o,{children:[f.jsx(dt,{}),f.jsx("span",{children:i})]}))}dN.displayName="PageHeader.ParentLink";var uN=tt(dN);const mN="page-header-title";function pN(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx(Mw,Object.assign({ref:t,as:n,className:et(mN,a),"data-component":"PageHeader.Title"},i))}pN.displayName="PageHeader.Title";var hN=tt(pN);const gN="page-header-trailing-action";function fN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx(Mw,Object.assign({ref:t,className:et(gN,a),hidden:n,"data-component":"PageHeader.TrailingAction"},i))}fN.displayName="PageHeader.TrailingAction";var vN=tt(fN);const bN="page-header-trailing-visual";function xN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Mw,Object.assign({ref:t,className:et(bN,a),"data-component":"PageHeader.TrailingVisual"},n))}xN.displayName="PageHeader.TrailingVisual";var yN=tt(xN);const wN=Object.assign(Rw,{ContextArea:qw,ParentLink:uN,ContextBar:Jw,ContextAreaActions:Zw,TitleArea:Pw,LeadingAction:rN,Breadcrumbs:Ww,LeadingVisual:lN,Title:hN,TrailingVisual:yN,TrailingAction:vN,Actions:_w,Description:aN,Navigation:Iw}),NN={current:null},jN=e.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:NN,contentWrapperRef:NN,sidebarRef:NN,sidebarContentWrapperRef:NN}),kN="page-layout-horizontal-divider";function CN(e,t){const{className:a,style:n,variant:i="none",position:r}=e,l=s(e,["className","style","variant","position"]),{padding:c}=o.useContext(jN);return f.jsx("div",Object.assign({ref:t,className:et(kN,a),style:Object.assign({"--spacing-divider":`var(--page-layout-spacing-${c})`},n),"data-component":"PageLayout.HorizontalDivider"},Qn("variant",i),Qn("position",r),l))}CN.displayName="PageLayout.HorizontalDivider";var SN=tt(CN);const ON="page-layout-footer",MN="page-layout-hidden",AN="page-layout-footer-divider",TN="page-layout-region-content";function IN(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(jN);return f.jsxs("footer",Object.assign({ref:t,className:et(ON,MN,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Footer"},Qn("hidden",c),d,{children:[f.jsx(SN,{variant:l,className:AN,style:{"--spacing":`var(--page-layout-spacing-${u})`}}),f.jsx("div",{className:TN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i})]}))}IN.displayName="PageLayout.Footer";var DN=tt(IN);const LN="page-layout-header",PN="page-layout-hidden",EN="page-layout-region-content",zN="page-layout-header-divider";function $N(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(jN);return f.jsxs("header",Object.assign({ref:t,className:et(LN,PN,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Header"},Qn("hidden",c),d,{children:[f.jsx("div",{className:EN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i}),f.jsx(SN,{variant:l,className:zN,style:{"--spacing":`var(--page-layout-spacing-${u})`}})]}))}$N.displayName="PageLayout.Header";var RN=tt($N);const BN=1280,VN={small:256,medium:296,large:320},_N=e=>"object"==typeof e&&"min"in e&&"default"in e&&"max"in e,FN=e=>"small"===e||"medium"===e||"large"===e,HN=e=>FN(e)?VN[e]:_N(e)?parseInt(e.default,10):0,WN=()=>"undefined"==typeof window?511:window.innerWidth>=BN?959:511,GN=e=>`Pane width ${e} pixels`,KN=(e,t)=>{e&&(void 0!==t.min&&e.setAttribute("aria-valuemin",String(t.min)),void 0!==t.max&&e.setAttribute("aria-valuemax",String(t.max)),void 0!==t.current&&(e.setAttribute("aria-valuenow",String(t.current)),e.setAttribute("aria-valuetext",GN(t.current))))},qN=(e,t)=>{try{localStorage.setItem(e,String(t))}catch(e){}},UN=e=>{try{const t=localStorage.getItem(e);if(null!==t){const e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch(e){}return null},YN="page-layout-drag-handle",ZN=e=>"ArrowLeft"===e||"ArrowRight"===e||"ArrowUp"===e||"ArrowDown"===e;function QN(e){const{className:t,handleRef:a,onDragStart:n,onDrag:i,onDragEnd:r,onDoubleClick:s,"aria-label":l,"aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,dragTargetRef:p,contentWrapperRef:h}=e,g=o.useRef({onDragStart:n,onDrag:i,onDragEnd:r});o.useEffect(()=>{g.current={onDragStart:n,onDrag:i,onDragEnd:r}});const v=o.useRef(!1),b=o.useRef(null),x=o.useRef(null),y=o.useCallback(()=>{var e,t;v.current||((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.setProperty("--drag-handle-background-color","var(--background-color-accent-emphasis)"),null==e||e.style.setProperty("--drag-handle-opacity","1"),null==e||e.style.setProperty("--drag-handle-transition","none"),null==t||t.setAttribute("data-dragging","true"),null==a||a.setAttribute("data-dragging","true")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!0)},[a,p,h]),w=o.useCallback(()=>{var e,t;v.current&&((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.removeProperty("--drag-handle-background-color"),null==e||e.style.removeProperty("--drag-handle-opacity"),null==e||e.style.removeProperty("--drag-handle-transition"),null==t||t.removeAttribute("data-dragging"),null==a||a.removeAttribute("data-dragging")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!1)},[a,p,h]);o.useEffect(()=>()=>{null!==b.current&&(cancelAnimationFrame(b.current),b.current=null)},[]);return f.jsx("div",{ref:a,role:"slider",tabIndex:0,"aria-label":c?void 0:null!=l?l:"Draggable pane splitter","aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,"aria-valuetext":void 0===m?void 0:GN(m),className:et(YN,t),onPointerDown:e=>{if(0===e.button){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}g.current.onDragStart(e.clientX),y()}},onPointerMove:e=>{v.current&&(e.preventDefault(),x.current=e.clientX,null===b.current&&(b.current=requestAnimationFrame(()=>{b.current=null,null!==x.current&&(g.current.onDrag(x.current,!1),x.current=null)})))},onPointerUp:e=>e.preventDefault(),onLostPointerCapture:()=>{v.current&&(null!==b.current&&(cancelAnimationFrame(b.current),b.current=null,x.current=null),w(),g.current.onDragEnd())},onKeyDown:e=>{var t;ZN(e.key)&&(e.preventDefault(),y(),g.current.onDrag("ArrowLeft"===(t=e.key)||"ArrowDown"===t?-3:3,!0))},onKeyUp:e=>{ZN(e.key)&&(e.preventDefault(),w(),g.current.onDragEnd())},onDoubleClick:s,"data-component":"PageLayout.DragHandle"})}QN.displayName="PageLayout.DragHandle";const XN="page-layout-vertical-divider";function JN(e,t){const{className:a,variant:n="none",position:i}=e,r=s(e,["className","variant","position"]);return f.jsx("div",Object.assign({ref:t,className:et(XN,a),"data-component":"PageLayout.VerticalDivider"},Qn("variant",n),Qn("position",i),r))}JN.displayName="PageLayout.VerticalDivider";var ej=tt(JN);const tj=({width:e,minWidth:t,resizable:a,widthStorageKey:n,paneRef:i,handleRef:r,contentWrapperRef:s,constrainToViewport:l=!1,onResizeEnd:c,currentWidth:d})=>{const u=_N(e),m=u?parseInt(e.min,10):t,p=u?parseInt(e.max,10):null,h=o.useMemo(()=>HN(e),[e]),g=o.useRef(n),f=o.useRef(c);qn(()=>{g.current=n,f.current=c});const v=o.useRef(l?256:511),b=o.useCallback(()=>{const e=window.innerWidth,t=e>0?Math.max(m,e-v.current):m;return null!==p?l?Math.min(p,t):p:t},[p,m,l]),[x,y]=o.useState(()=>{var e;if("number"==typeof d)return d;return void 0===c&&!0===a&&void 0!==n&&null!==(e=UN(n))&&void 0!==e?e:h}),[w,N]=o.useState(h),[j,k]=o.useState(d),C=d!==j;C&&(k(d),"number"==typeof d?y(d):void 0!==j&&y(h)),h!==w&&(N(h),void 0!==d||C||y(h));const S=null!=d?d:x,O=o.useRef(S),[M,A]=o.useState(()=>null!=p?p:600),T=o.useRef(M);qn(()=>{O.current=S},[S]);const I=o.useCallback(()=>HN(e),[e]),D=o.useCallback(e=>{const t=Math.round(e);O.current=t,o.startTransition(()=>{y(t)}),f.current?f.current(t):a&&g.current&&qN(g.current,t)},[a]),L=o.useRef(b);return qn(()=>{L.current=b}),qn(()=>{var e;if(!a)return;let t=window.innerWidth;const n=()=>{var e,a;const n=window.innerWidth,s=t<BN!=n<BN;t=n,s&&(v.current=WN());const l=L.current();null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${l}px`);const c=O.current>l;c&&(O.current=l,null===(a=i.current)||void 0===a||a.style.setProperty("--pane-width",`${l}px`)),KN(r.current,{max:l,current:O.current}),(l!==T.current||c)&&(T.current=l,o.startTransition(()=>{A(l),c&&y(l)}))};v.current=WN();const c=L.current();if(T.current=c,null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${c}px`),KN(r.current,{min:m,max:c,current:O.current}),o.startTransition(()=>{A(c)}),null!==p&&!l)return;let d=0,u=null,h=null,g=!1;const f=()=>{var e,t;g&&(g=!1,null===(e=i.current)||void 0===e||e.removeAttribute("data-dragging"),null===(t=null==s?void 0:s.current)||void 0===t||t.removeAttribute("data-dragging"))},b=()=>{(()=>{var e,t;g||(g=!0,null===(e=i.current)||void 0===e||e.setAttribute("data-dragging","true"),null===(t=null==s?void 0:s.current)||void 0===t||t.setAttribute("data-dragging","true"))})();const e=performance.now();e-d>=16?(d=e,n()):null===u&&(u=requestAnimationFrame(()=>{u=null,d=performance.now(),n()})),null!==h&&clearTimeout(h),h=setTimeout(f,150)};return window.addEventListener("resize",b),()=>{null!==u&&cancelAnimationFrame(u),null!==h&&clearTimeout(h),f(),window.removeEventListener("resize",b)}},[a,p,l,m,i,r,s]),{currentWidth:S,currentWidthRef:O,minPaneWidth:m,maxPaneWidth:M,getMaxPaneWidth:b,getDefaultWidth:I,saveWidth:D}},aj="page-layout-sidebar-wrapper",nj="page-layout-hidden",ij="page-layout-sidebar-position",rj="page-layout-sidebar-sticky",oj="page-layout-sidebar-fullscreen",sj="page-layout-sidebar",lj="page-layout-sidebar-resizable",cj="page-layout-dragging",dj="page-layout-sidebar-fullscreen-inner",uj="page-layout-sidebar-divider";function mj(e,t){const{className:a,style:n,children:i,id:r,position:l="start",width:c="medium",minWidth:d=256,currentWidth:u,onResizeEnd:m,widthStorageKey:p,padding:h="none",divider:g="none",resizable:v=!1,sticky:b=!1,responsiveVariant:x="default",hidden:y=!1,"aria-label":w,"aria-labelledby":j}=e,k=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","responsiveVariant","hidden","aria-label","aria-labelledby"]),{columnGap:C,sidebarRef:S,sidebarContentWrapperRef:O}=o.useContext(jN),M=o.useRef(null),A=o.useRef(0),T=o.useRef(0),I=o.useRef(0),{currentWidth:D,currentWidthRef:L,minPaneWidth:P,maxPaneWidth:E,getMaxPaneWidth:z,getDefaultWidth:$,saveWidth:R}=tj({width:c,minWidth:d,resizable:v,widthStorageKey:p,paneRef:S,handleRef:M,contentWrapperRef:O,constrainToViewport:!0,onResizeEnd:m,currentWidth:u}),B=N(t,S),V=mh(S),_=Jt(r),F=V?Object.assign({role:"region",tabIndex:0},j?{"aria-labelledby":j}:w?{"aria-label":w}:{}):{},H=e=>{var t;null===(t=S.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),L.current=e},W=f.jsx(ej,{variant:v?"line":g,position:l,className:uj,style:{"--spacing-column":`var(--page-layout-spacing-${C})`},children:v?f.jsx(QN,{handleRef:M,dragTargetRef:S,contentWrapperRef:O,"aria-valuemin":P,"aria-valuemax":E,"aria-valuenow":D,onDragStart:e=>{var t,a;A.current=e,T.current=null!==(a=null===(t=S.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:L.current,I.current=z()},onDrag:(e,t)=>{const a=t?z():I.current;if(t){const t="end"===l?-e:e,n=Math.max(P,Math.min(a,L.current+t));return void(n!==L.current&&(H(n),KN(M.current,{current:n,max:a})))}if(!S.current)return;const n=e-A.current,i=Math.max(P,Math.min(a,T.current+("end"===l?-n:n)));Math.round(i)!==Math.round(L.current)&&(H(i),KN(M.current,{current:Math.round(i),max:a}))},onDragEnd:()=>R(L.current),onDoubleClick:()=>{const e=$();H(e),KN(M.current,{current:e}),R(e)}}):null});return f.jsxs("div",Object.assign({className:et(aj,nj,ij,rj,oj,a),style:Object.assign({"--spacing-column":`var(--page-layout-spacing-${C})`},n),"data-position":l,"data-sticky":b||void 0,"data-responsive-variant":"default"===x?void 0:x},Qn("is-hidden",y),{children:["end"===l?W:null,f.jsx("div",Object.assign({ref:B,suppressHydrationWarning:v&&Boolean(p)&&!m,className:et(sj,lj,dj,cj),style:{"--spacing":`var(--page-layout-spacing-${h})`,"--pane-min-width":_N(c)?c.min:`${d}px`,"--pane-max-width":_N(c)?c.max:"calc(100vw - var(--sidebar-max-width-diff))","--pane-width-custom":_N(c)?c.default:void 0,"--pane-width-size":`var(--pane-width-${FN(c)?c:"custom"})`,"--pane-width":`${D}px`},"data-component":"PageLayout.Sidebar","data-resizable":v||void 0},F,r?{id:_}:{},k,{children:i})),"start"===l?W:null]}))}mj.displayName="PageLayout.Sidebar";var pj=tt(mj);const hj="page-layout-content-row",gj=Xe("page-layout",{variants:{hasSidebar:{true:"page-layout-has-sidebar",false:""}}}),fj=Xe("page-layout-wrapper",{variants:{width:{full:"page-layout-width-full",medium:"page-layout-width-medium",large:"page-layout-width-large",xlarge:"page-layout-width-xlarge"}}});function vj(e,t){const{className:a,style:n,children:i,containerWidth:r="xlarge",padding:l="normal",rowGap:c="normal",columnGap:d="normal"}=e,u=s(e,["className","style","children","containerWidth","padding","rowGap","columnGap"]),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[v,b]=va(i,{header:RN,footer:DN,sidebar:pj}),x=o.useMemo(()=>({padding:l,rowGap:c,columnGap:d,paneRef:m,contentWrapperRef:p,sidebarRef:h,sidebarContentWrapperRef:g}),[l,c,d]);return f.jsx(jN.Provider,{value:x,children:f.jsxs("div",Object.assign({ref:t,className:et(gj({hasSidebar:Boolean(v.sidebar)}),a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${l})`},n),"data-component":"PageLayout","data-has-sidebar":v.sidebar?"":void 0},u,{children:[v.sidebar,f.jsxs("div",{ref:g,className:et(fj({width:r})),"data-page-layout-wrapper":"","data-width":r,children:[v.header,f.jsx("div",{className:hj,children:b}),v.footer]})]}))})}vj.displayName="PageLayout";var bj=tt(vj);const xj="page-layout-content-wrapper",yj="page-layout-hidden",wj="page-layout-dragging",Nj=Xe("page-layout-content",{variants:{width:{full:"page-layout-content-width-full",medium:"page-layout-content-width-medium",large:"page-layout-content-width-large",xlarge:"page-layout-content-width-xlarge"}}});function jj(e,t){const{as:a="main",className:n,children:i,width:r="full",padding:l="none",hidden:c=!1}=e,d=s(e,["as","className","children","width","padding","hidden"]),{contentWrapperRef:u}=o.useContext(jN),m=N(t,u);return f.jsx(a,Object.assign({ref:m,className:et(xj,yj,wj,n),"data-component":"PageLayout.Content"},Qn("is-hidden",c),d,{children:f.jsx("div",{className:et(Nj({width:r})),"data-width":r,style:{"--spacing":`var(--page-layout-spacing-${l})`},children:i})}))}jj.displayName="PageLayout.Content";var kj=tt(jj);const Cj="page-layout-pane-wrapper",Sj="page-layout-hidden",Oj="page-layout-pane-position",Mj="page-layout-pane-sticky",Aj="page-layout-pane",Tj="page-layout-pane-resizable",Ij="page-layout-dragging",Dj="page-layout-pane-horizontal-divider",Lj="page-layout-pane-vertical-divider";function Pj(e,t){var a,n,i;const{className:r,style:l,children:c,id:d,position:u="end",width:m="medium",minWidth:p=256,currentWidth:h,onResizeEnd:g,widthStorageKey:v="paneWidth",padding:b="none",divider:x="none",resizable:y=!1,sticky:w=!1,offsetHeader:j=0,hidden:k=!1,"aria-label":C,"aria-labelledby":S}=e,O=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","offsetHeader","hidden","aria-label","aria-labelledby"]),M=zr(u)?"end":u,A=zr(x)?"none":x,{rowGap:T,columnGap:I,paneRef:D,contentWrapperRef:L}=o.useContext(jN),P=o.useRef(null),E=o.useRef(0),z=o.useRef(0),$=o.useRef(0),{currentWidth:R,currentWidthRef:B,minPaneWidth:V,maxPaneWidth:_,getMaxPaneWidth:F,getDefaultWidth:H,saveWidth:W}=tj({width:m,minWidth:p,resizable:y,widthStorageKey:v,paneRef:D,handleRef:P,contentWrapperRef:L,onResizeEnd:g,currentWidth:h}),G=N(t,D),K=mh(D),q=Jt(d),U=K?Object.assign({role:"region",tabIndex:0},S?{"aria-labelledby":S}:C?{"aria-label":C}:{}):{},Y=e=>{var t;null===(t=D.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),B.current=e};return f.jsxs("div",Object.assign({className:et(Cj,Sj,Oj,Mj,r),style:Object.assign({"--offset-header":"number"==typeof j?`${j}px`:j,"--spacing-row":`var(--page-layout-spacing-${T})`,"--spacing-column":`var(--page-layout-spacing-${I})`},l),"data-sticky":w||void 0},Qn("is-hidden",k),Qn("position",u),{children:[f.jsx(SN,{variant:zr(x)?x:{narrow:A,regular:"none"},position:u,className:Dj,style:{"--spacing":`var(--page-layout-spacing-${T})`}}),f.jsx("div",Object.assign({ref:G,suppressHydrationWarning:y&&!g,className:et(Aj,Tj,Ij),style:{"--spacing":`var(--page-layout-spacing-${b})`,"--pane-min-width":_N(m)?m.min:`${p}px`,"--pane-max-width":_N(m)?m.max:"calc(100vw - var(--pane-max-width-diff))","--pane-width-custom":_N(m)?m.default:void 0,"--pane-width-size":`var(--pane-width-${FN(m)?m:"custom"})`,"--pane-width":`${R}px`},"data-component":"PageLayout.Pane","data-resizable":y||void 0},U,d?{id:q}:{},O,{children:c})),f.jsx(ej,{variant:zr(x)?{narrow:"none",regular:y?"line":null!==(a=x.regular)&&void 0!==a?a:"none",wide:y?"line":null!==(i=null!==(n=x.wide)&&void 0!==n?n:x.regular)&&void 0!==i?i:"none"}:{narrow:"none",regular:y?"line":A},position:u,className:Lj,style:{"--spacing":`var(--page-layout-spacing-${I})`},children:y?f.jsx(QN,{handleRef:P,dragTargetRef:D,contentWrapperRef:L,"aria-valuemin":V,"aria-valuemax":_,"aria-valuenow":R,onDragStart:e=>{var t,a;E.current=e,z.current=null!==(a=null===(t=D.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:B.current,$.current=F()},onDrag:(e,t)=>{const a=t?F():$.current;if(t){const t=Math.max(V,Math.min(a,B.current+e));return void(t!==B.current&&(Y(t),KN(P.current,{current:t,max:a})))}if(!D.current)return;const n=e-E.current,i=Math.max(V,Math.min(a,z.current+("end"===M?-n:n)));Math.round(i)!==Math.round(B.current)&&(Y(i),KN(P.current,{current:Math.round(i),max:a}))},onDragEnd:()=>W(B.current),onDoubleClick:()=>{const e=H();Y(e),KN(P.current,{current:e}),W(e)}}):null})]}))}Pj.displayName="PageLayout.Pane";var Ej=tt(Pj);const zj=Object.assign(bj,{Header:RN,Content:kj,Pane:Ej,Sidebar:pj,Footer:DN}),$j=Xe("page-sidebar",{variants:{width:{small:"page-sidebar-width-small",medium:"page-sidebar-width-medium",large:"page-sidebar-width-large"},position:{start:"page-sidebar-start",end:"page-sidebar-end"},padding:{none:"page-sidebar-padding-none",condensed:"page-sidebar-padding-condensed",normal:"page-sidebar-padding-normal",spacious:"page-sidebar-padding-spacious"},gap:{none:"page-sidebar-gap-none",condensed:"page-sidebar-gap-condensed",normal:"page-sidebar-gap-normal",spacious:"page-sidebar-gap-spacious"},sticky:{true:"page-sidebar-sticky",false:""},hasBorder:{true:"",false:""}},compoundVariants:[{hasBorder:!0,position:"start",class:"page-sidebar-border-start"},{hasBorder:!0,position:"end",class:"page-sidebar-border-end"}]});function Rj(e,t){const a=e,{as:n="aside",className:i,position:r="start",width:o="medium",padding:l="normal",gap:c="normal",sticky:d,hasBorder:u}=a,m=s(a,["as","className","position","width","padding","gap","sticky","hasBorder"]);return f.jsx(n,Object.assign({ref:t,className:et($j({width:o,position:r,padding:l,gap:c,sticky:d,hasBorder:u}),i),"data-component":"PageSidebar","data-position":r,"data-width":o,"data-padding":l,"data-gap":c,"data-sticky":d?"":void 0,"data-has-border":u?"":void 0},m))}Rj.displayName="PageSidebar";var Bj=tt(Rj);const Vj=["narrow","regular","wide"],_j="hidden",Fj={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Hj=e=>{return a=_j,n=Fj,(t=e).length===Vj.length?a:t.map(e=>n[e]);var t,a,n},Wj=e=>e.length>0?e.join(" "):void 0;var Gj=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...Vj]:[]:Vj.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Hj(l)),"data-hidden":Wj(l)},o))});const Kj="page-sidebar-actions";function qj(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Gj,Object.assign({ref:t,className:et(Kj,a),"data-component":"PageSidebar.Actions"},n))}qj.displayName="PageSidebar.Actions";var Uj=tt(qj);const Yj="page-sidebar-content";function Zj(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Gj,Object.assign({ref:t,className:et(Yj,a),"data-component":"PageSidebar.Content"},n))}Zj.displayName="PageSidebar.Content";var Qj=tt(Zj);const Xj="page-sidebar-footer";function Jj(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Gj,Object.assign({ref:t,className:et(Xj,a),"data-component":"PageSidebar.Footer"},n))}Jj.displayName="PageSidebar.Footer";var ek=tt(Jj);const tk="page-sidebar-header";function ak(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Gj,Object.assign({ref:t,className:et(tk,a),"data-component":"PageSidebar.Header"},n))}ak.displayName="PageSidebar.Header";var nk=tt(ak);const ik="block";function rk(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(Gj,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(ik,a),"data-component":"PageSidebar.Navigation"},o))}rk.displayName="PageSidebar.Navigation";var ok=tt(rk);const sk="page-sidebar-section";function lk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(Gj,Object.assign({ref:t,className:et(sk,a),"data-component":"PageSidebar.Section"},n))}lk.displayName="PageSidebar.Section";var ck=tt(lk);const dk="page-sidebar-title";function uk(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx(Gj,Object.assign({ref:t,as:n,className:et(dk,a),"data-component":"PageSidebar.Title"},i))}uk.displayName="PageSidebar.Title";var mk=tt(uk);const pk=Object.assign(Bj,{Header:nk,Title:mk,Actions:Uj,Content:Qj,Navigation:ok,Section:ck,Footer:ek}),hk=["narrow","regular","wide"],gk={root:"pagination",steps:"pagination-steps",hidden:{narrow:"pagination-hidden-narrow",regular:"pagination-hidden-regular",wide:"pagination-hidden-wide"}},fk=Xe("pagination-step",{variants:{step:{previous:"pagination-step-previous",next:"pagination-step-next"},current:{true:"pagination-step-current",false:""},inert:{true:"pagination-step-inert",false:""}}}),vk=({page:e,children:t})=>f.jsxs(f.Fragment,{children:["previous"===e.type?f.jsx(xt,{"data-component":"Pagination.PreviousPageIcon"}):null,t,"next"===e.type?f.jsx(yt,{"data-component":"Pagination.NextPageIcon"}):null]}),bk=e=>`#${e}`;function xk(e,t){const a=e,{as:n="nav",className:i,pageCount:r,currentPage:l,onPageChange:c,hrefBuilder:d=bk,marginPageCount:u=1,surroundingPageCount:m=2,showPages:p=!0,renderPage:h}=a,g=s(a,["as","className","pageCount","currentPage","onPageChange","hrefBuilder","marginPageCount","surroundingPageCount","showPages","renderPage"]),v=o.useMemo(()=>Lg(r,l,Boolean(p),u,m),[r,l,p,u,m]),b=(e=>"object"==typeof e?hk.filter(t=>!1===e[t]):e?[]:[...hk])(p),x=v.map(e=>{const{key:t,content:a,presentational:n,props:i}=Pg(e,d,t=>null==c?void 0:c(t,e.num)),r="previous"===e.type||"next"===e.type,o=Boolean(n)||Boolean(i["aria-hidden"]),s=et(fk({step:r?e.type:void 0,current:e.selected,inert:o}));if(h&&!n)return h(Object.assign({key:t,children:f.jsx(vk,{page:e,children:a}),number:e.num,className:s,"data-component":"Pagination.Page"},i));const l=n?"span":"a",u=r?"previous"===e.type?"Pagination.PreviousPage":"Pagination.NextPage":"Pagination.Page";return f.jsx(l,Object.assign({role:n?"presentation":void 0,className:s,"data-component":u},i,{children:f.jsx(vk,{page:e,children:a})}),t)});return f.jsx(n,Object.assign({ref:t,"aria-label":"Pagination",className:et(gk.root,i),"data-component":"Pagination"},g,{children:f.jsx("div",{className:et(gk.steps,b.map(e=>gk.hidden[e])),"data-hidden-viewport-ranges":b.join(" ")||void 0,children:x})}))}xk.displayName="Pagination";var yk=tt(xk);const wk="placeholder";function Nk(e,t){const a=e,{as:n="div",className:i,width:r,height:o,label:l,style:c,children:d}=a,u=s(a,["as","className","width","height","label","style","children"]);return f.jsx(n,Object.assign({ref:t,className:et(wk,i),style:Object.assign(Object.assign({},c),{"--placeholder-width":r,"--placeholder-height":o}),"data-component":"Placeholder"},u,{children:null!=d?d:l}))}Nk.displayName="Placeholder";var jk=tt(Nk);const kk=Xe("progress-bar-item",{variants:{variant:{accent:"progress-bar-item-accent",attention:"progress-bar-item-attention",danger:"progress-bar-item-danger",done:"progress-bar-item-done",neutral:"progress-bar-item-neutral",severe:"progress-bar-item-severe",sponsors:"progress-bar-item-sponsors",success:"progress-bar-item-success"},animated:{true:"motion-safe:shimmer",false:""}}});function Ck(e,t){const a=e,{as:n="span",className:i,progress:r=0,variant:o="success",animated:l,style:c,"aria-valuenow":d}=a,u=s(a,["as","className","progress","variant","animated","style","aria-valuenow"]);return f.jsx(n,Object.assign({ref:t,role:"progressbar","aria-valuenow":null!=d?d:Math.round(Math.max(r,0)),"aria-valuemin":0,"aria-valuemax":100,className:et(kk({variant:o,animated:l}),i),style:Object.assign(Object.assign({},c),{"--progress-bar-item-width":`${r}%`}),"data-component":"ProgressBar.Item","data-variant":o,"data-animated":l},u))}Ck.displayName="ProgressBar.Item";var Sk=tt(Ck);const Ok=Xe("progress-bar",{variants:{size:{small:"progress-bar-small",medium:"progress-bar-medium",large:"progress-bar-large"},inline:{true:"progress-bar-inline",false:""}}});function Mk(e,t){const a=e,{as:n="span",className:i,progress:r,size:l="medium",variant:c="success",inline:d,animated:u,children:m,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g}=a,v=s(a,["as","className","progress","size","variant","inline","animated","children","aria-label","aria-valuenow","aria-valuetext"]);if(m&&r)throw new Error("Pass either `progress` or children to ProgressBar, not both.");const b=o.Children.toArray(m).length>0;return f.jsx(n,Object.assign({ref:t,className:et(Ok({size:l,inline:d}),i),"data-component":"ProgressBar","data-size":l,"data-inline":d},v,{children:b?m:f.jsx(Sk,{progress:r,variant:c,animated:u,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g})}))}Mk.displayName="ProgressBar";var Ak=tt(Mk);const Tk=Object.assign(Ak,{Item:Sk}),Ik="radio-group-caption";function Dk(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(xb);return f.jsx("span",Object.assign({ref:t,id:i,className:et(Ik,a),"data-component":"RadioGroup.Caption"},n))}Dk.displayName="RadioGroup.Caption";var Lk=tt(Dk);const Pk="radio-group-label",Ek="radio-group-label-disabled",zk="sr-only",$k="radio-group-label-required";function Rk(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(xb);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et(Pk,l&&Ek,i&&zk,a),"data-component":"RadioGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:$k,children:"*"}):null]}))}Rk.displayName="RadioGroup.Label";var Bk=tt(Rk);const Vk={success:ft,error:Ot},_k="radio-group-validation-icon",Fk=Xe("radio-group-validation",{variants:{variant:{success:"radio-group-validation-success",error:"radio-group-validation-error"}}});function Hk(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(xb),c=Vk[i];return f.jsxs("span",Object.assign({ref:t,className:et(Fk({variant:i}),a),"data-component":"RadioGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:_k,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Hk.displayName="RadioGroup.Validation";var Wk=tt(Hk);const Gk="radio-group",Kk="radio-group-legend",qk="radio-group-legend-visible",Uk="radio-group-body",Yk="radio-group-validation-slot",Zk="sr-only";function Qk(e,t){const a=e,{as:n="fieldset",className:i,children:r,name:l,disabled:c,required:d,onChange:u,id:m,"aria-labelledby":p}=a,h=s(a,["as","className","children","name","disabled","required","onChange","id","aria-labelledby"]),[g,v]=va(r,{label:Bk,caption:Lk,validation:Wk}),b=Jt(m),x=g.caption?`${b}-caption`:void 0,y=g.validation?`${b}-validation`:void 0,w=!!o.isValidElement(g.label)&&!g.label.props.visuallyHidden,N={name:l,disabled:c,required:d,captionId:x,validationMessageId:y,onChange:e=>{const{value:t,checked:a}=e.currentTarget;a&&(null==u||u(t,e))}};return f.jsx(xb.Provider,{value:N,children:f.jsxs(n,Object.assign({ref:t,id:b,disabled:c,"aria-labelledby":g.label?void 0:p,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0,className:et(Gk,i),"data-component":"RadioGroup","data-disabled":c,"data-required":d},h,{children:[g.label?f.jsxs("legend",{className:et(Kk,w&&qk),children:[g.label,d?f.jsx("span",{className:Zk,children:", required"}):null,g.caption]}):g.caption,f.jsx("div",{className:Uk,children:v}),g.validation?f.jsx("div",{className:Yk,children:g.validation}):null]}))})}Qk.displayName="RadioGroup";var Xk=tt(Qk);const Jk=Object.assign(Xk,{Label:Bk,Caption:Lk,Validation:Wk}),eC=1e3,tC=6e4,aC=36e5,nC=24*aC,iC=7*nC,rC=30*nC,oC=12*rC,sC="P30D",lC="on",cC=30*nC,dC=[{unit:"year",length:oC},{unit:"month",length:rC},{unit:"week",length:iC},{unit:"day",length:nC},{unit:"hour",length:aC},{unit:"minute",length:tC},{unit:"second",length:eC}],uC=["year","month","day","hour","minute","second"],mC={year:"y",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"},pC=new RegExp("^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$"),hC=e=>{const t=Math.abs(e),a=dC.find(({length:e})=>t>=e),{unit:n,length:i}=null!=a?a:dC[dC.length-1];return{value:Math.sign(e)*Math.round(t/i),unit:n,length:i}},gC=e=>{const{value:t,unit:a}=hC(e);return"second"===a?"1m":`${Math.abs(t)}${mC[a]}`},fC=(e,t)=>{const a=((e,t)=>{const a=Math.abs(e),n=Math.floor(a/eC),i=Math.floor(n/60),r=Math.floor(i/60),o=Math.floor(r/24),s=Math.floor(o/30),l=Math.floor(s/12),c={year:l,month:s-12*l,day:o-30*s,hour:r-24*o,minute:i-60*r,second:n-60*i};return uC.slice(0,uC.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))})(e,t).filter(({count:e})=>e>0);return 0===a.length?`0${mC[t]}`:a.map(({unit:e,count:t})=>`${t}${mC[e]}`).join(" ")},vC=(e,t)=>{const{value:a,unit:n}=hC(e);return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(a,n)},bC=(e,t,a,n)=>new Intl.DateTimeFormat(n,((e,t,a)=>{var n,i,r;const o=e.getFullYear()===new Date(t).getFullYear();return{weekday:a.weekday,year:null!==(n=a.year)&&void 0!==n?n:o?void 0:"numeric",month:null!==(i=a.month)&&void 0!==i?i:"short",day:null!==(r=a.day)&&void 0!==r?r:"numeric",hour:a.hour,minute:a.minute,second:a.second,timeZoneName:a.timeZoneName}})(e,t,a)).format(e),xC=(e,t)=>new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e),yC=(e,t,a)=>{var n,i,r;const{format:o,tense:s,precision:l,threshold:c,prefix:d,dateOptions:u,locale:m}=a,p=e.getTime()-t;if("elapsed"===o)return{text:fC(p,l),updateDelay:null!==(i=null===(n=dC.find(({unit:e})=>e===l))||void 0===n?void 0:n.length)&&void 0!==i?i:eC};const h=null!==(r=(e=>{const t=pC.exec(e);if(!t||t.slice(1).every(e=>void 0===e))return null;const[,a,n,i,r,o,s,l]=t;return Number(null!=a?a:0)*oC+Number(null!=n?n:0)*rC+Number(null!=i?i:0)*iC+Number(null!=r?r:0)*nC+Number(null!=o?o:0)*aC+Number(null!=s?s:0)*tC+Number(null!=l?l:0)*eC})(c))&&void 0!==r?r:cC,g="auto"===s||"past"===s&&p<=0||"future"===s&&p>=0;if(Math.abs(p)<=h&&g){const{length:e}=hC(p);return{text:"micro"===o?gC(p):vC(p,m),updateDelay:e}}const f=bC(e,t,u,m),v=p-h;return{text:d?`${d} ${f}`:f,updateDelay:p<=0?null:v>0?v:p}};function wC(e,t){const a=e,{as:n="time",children:i,date:r,datetime:l,format:c="auto",tense:d="auto",precision:u="second",threshold:m=sC,prefix:p=lC,noTitle:h,weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}=a,k=s(a,["as","children","date","datetime","format","tense","precision","threshold","prefix","noTitle","weekday","year","month","day","hour","minute","second","timeZoneName"]),C=((e,t)=>{const a=null!=e?e:void 0===t?void 0:new Date(t);return a&&!Number.isNaN(a.getTime())?a:void 0})(r,l),[S,O]=o.useState(()=>Date.now()),{text:M,updateDelay:A}=C?yC(C,S,{format:c,tense:d,precision:u,threshold:m,prefix:p,dateOptions:{weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}}):{text:"",updateDelay:null};return o.useEffect(()=>{if(null===A)return;const e=window.setTimeout(()=>{O(Date.now())},A);return()=>{window.clearTimeout(e)}},[S,A]),f.jsx(n,Object.assign({ref:t,dateTime:null==C?void 0:C.toISOString(),title:h||!C?void 0:xC(C),"data-component":"RelativeTime","data-format":c,"data-tense":d},k,{children:null!=i?i:M}))}wC.displayName="RelativeTime";var NC=tt(wC);const jC=e.createContext({}),kC="tooltip",CC="tooltip-open motion-safe:[&:popover-open]:animate-in motion-safe:[&:popover-open]:fade-in motion-safe:[&:popover-open]:duration-100",SC="tooltip-open-polyfilled motion-safe:[&[class~=':popover-open']]:animate-in motion-safe:[&[class~=':popover-open']]:fade-in motion-safe:[&[class~=':popover-open']]:duration-100",OC="tooltip-bridge",MC="tooltip-bridge-vertical",AC="tooltip-bridge-horizontal",TC={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},IC={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},DC={short:50,medium:400,long:1200},LC=["a[href]","button:not([disabled])","summary","select","input:not([type=hidden])","textarea"],PC=e=>LC.some(t=>e.matches(t))||"button"===e.getAttribute("role");function EC(e,t){const{className:a,children:n,text:r,id:l,direction:c="s",type:d="description",delay:u="short"}=e,m=s(e,["className","children","text","id","direction","type","delay"]),p=Jt(l),h=o.Children.only(n),g=o.useRef(null),v=N(t,g),b=o.useRef(null),x=o.useRef(null),y=o.useRef(null),[w,j]=o.useState(!1),[k,C]=o.useState(c),S=()=>{null!==x.current&&(window.clearTimeout(x.current),x.current=null),null!==y.current&&(window.clearTimeout(y.current),y.current=null)};o.useEffect(()=>S,[]);const O=()=>{var e;const t=b.current,a=g.current;if(!t||!a)return;try{t.showPopover()}catch(e){return}j(!0);const{side:n,align:i}=TC[c],{top:r,left:o,anchorSide:s,anchorAlign:l}=ui(t,a,{side:n,align:i});C(null!==(e=IC[`${s}-${l}`])&&void 0!==e?e:c),t.style.top=`${r}px`,t.style.left=`${o}px`},M=()=>{var e;S(),j(!1);try{null===(e=b.current)||void 0===e||e.hidePopover()}catch(e){}};o.useEffect(()=>{const e=b.current,t=g.current;if(e&&t){if(!PC(a=t)&&!Array.from(a.childNodes).some(e=>e instanceof HTMLElement&&PC(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&PC(e))))throw new Error("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or an equivalent element instead.");var a;"undefined"==typeof window||i.isSupported()||i.apply(),e.setAttribute("popover","manual")}},[]),Zn(e=>{w&&(e.preventDefault(),M())});const A=o.useMemo(()=>({tooltipId:p}),[p]);if(!o.isValidElement(h))return null;const T=h.props,I=o.cloneElement(h,{ref:v,"aria-describedby":"description"===d?[T["aria-describedby"],p].filter(Boolean).join(" "):T["aria-describedby"],"aria-labelledby":"label"===d?p:T["aria-labelledby"],onFocus:e=>{var t;try{if(!e.target.matches(":focus-visible"))return}catch(e){}O(),null===(t=T.onFocus)||void 0===t||t.call(T,e)},onBlur:e=>{var t;M(),null===(t=T.onBlur)||void 0===t||t.call(T,e)},onMouseOverCapture:e=>{x.current=window.setTimeout(()=>{var t;null!==x.current&&(O(),null===(t=T.onMouseEnter)||void 0===t||t.call(T,e))},DC[u])},onMouseLeave:e=>{var t;M(),null===(t=T.onMouseLeave)||void 0===t||t.call(T,e)},onTouchEnd:e=>{var t;null===(t=T.onTouchEnd)||void 0===t||t.call(T,e),y.current=window.setTimeout(M,10)}});return f.jsxs(jC.Provider,{value:A,children:[I,f.jsx("span",Object.assign({ref:b,id:p,role:"description"===d?"tooltip":void 0,"aria-hidden":"true",className:et(kC,CC,SC,OC,MC,AC,a),onMouseEnter:O,onMouseLeave:M,"data-component":"Tooltip","data-direction":k},m,{children:r}))]})}EC.displayName="Tooltip";var zC=tt(EC);const $C="segmented-control-segment",RC="segmented-control-segment-separator",BC="segmented-control-segment-separator-hidden",VC="segmented-control-button",_C="segmented-control-button-selected",FC="segmented-control-button-disabled",HC="segmented-control-content",WC="segmented-control-content-selected",GC="segmented-control-content-interactive",KC=e=>{const t=e;return o.isValidElement(e)?e:f.jsx(t,{})};function qC(e){const{component:t,className:a,children:n,selected:i,disabled:r,tooltip:o,tooltipType:l,tooltipDirection:c,"aria-disabled":d}=e,u=s(e,["component","className","children","selected","disabled","tooltip","tooltipType","tooltipDirection","aria-disabled"]),m=Boolean(r)||!0===d||"true"===d,p=f.jsx("button",Object.assign({type:"button","aria-pressed":i,"aria-disabled":m||void 0,className:et(VC,i&&_C,m&&!i&&FC,a)},u,{children:f.jsx("span",{className:et(HC,i&&WC,!i&&!m&&GC),children:n})}));return f.jsx("li",{className:et($C,RC,BC),"data-component":t,"data-selected":i?"":void 0,children:o?f.jsx(zC,{text:o,type:l,direction:c,children:p}):p})}qC.displayName="SegmentedControlSegment";const UC="segmented-control-visual",YC="segmented-control-visual-disabled",ZC="segmented-control-text",QC="segmented-control-text-hidden",XC="segmented-control-counter";function JC(e){const{children:t,className:a,count:n,leadingVisual:i,selected:r,disabled:o,defaultSelected:l}=e,c=s(e,["children","className","count","leadingVisual","selected","disabled","defaultSelected"]);return f.jsxs(qC,Object.assign({component:"SegmentedControl.Button",className:a,selected:r,disabled:o},c,{children:[i?f.jsx("span",{className:et(UC,o&&YC),"data-component":"SegmentedControl.LeadingVisual",children:KC(i)}):null,f.jsx("span",{className:et(ZC,QC),"data-component":"SegmentedControl.Text","data-text":t,children:t}),void 0!==n?f.jsx("span",{className:XC,children:f.jsx(un,{children:n})}):null]}))}JC.displayName="SegmentedControl.Button";const eS="segmented-control-icon-button",tS="segmented-control-icon-visual",aS="segmented-control-visual-disabled";function nS(e){const{"aria-label":t,className:a,description:n,icon:i,selected:r,disabled:o,tooltipDirection:l,defaultSelected:c}=e,d=s(e,["aria-label","className","description","icon","selected","disabled","tooltipDirection","defaultSelected"]);return f.jsx(qC,Object.assign({component:"SegmentedControl.IconButton",className:et(eS,a),selected:r,disabled:o,"aria-label":n?t:void 0,tooltip:null!=n?n:t,tooltipType:n?void 0:"label",tooltipDirection:l},d,{children:f.jsx("span",{className:et(tS,o&&aS),"data-component":"SegmentedControl.Icon",children:KC(i)})}))}nS.displayName="SegmentedControl.IconButton";const iS="segmented-control-dropdown",rS=Xe("segmented-control",{variants:{size:{small:"segmented-control-small",medium:""}}}),oS=e=>e.type===JC,sS=e=>e.type===nS,lS=e=>{if(void 0!==e)return oS(e)?e.props.children:sS(e)?e.props["aria-label"]:void 0},cS=e=>{var t;return void 0===e?null:oS(e)?null!==(t=e.props.leadingVisual)&&void 0!==t?t:null:sS(e)?e.props.icon:null},dS=e=>{const t=e.props["aria-disabled"];return!0===e.props.disabled||!0===t||"true"===t};function uS(e){const t=e,{"aria-label":a,"aria-labelledby":n,className:i,children:r,fullWidth:l,onChange:c,size:d="medium",variant:u="default"}=t,m=s(t,["aria-label","aria-labelledby","className","children","fullWidth","onChange","size","variant"]),p=(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(r),h=void 0===c||p.some(e=>void 0!==e.props.defaultSelected),g=p.findIndex(e=>e.props.defaultSelected||e.props.selected),v=-1===g?0:g,[b,x]=o.useState(v),y=h?b:v,w=p[y],N=(e,t,a)=>{var n,i;dS(t)||(h&&x(e),null==c||c(e),null===(i=(n=t.props).onClick)||void 0===i||i.call(n,a))},j=f.jsx("ul",Object.assign({"aria-label":a,"aria-labelledby":n,className:et(rS({size:d}),i),"data-component":"SegmentedControl","data-size":d},Qn("full-width",l),Qn("variant",u),m,{children:p.map((e,t)=>o.cloneElement(e,{selected:t===y,onClick:a=>N(t,e,a)}))}));return zr(u)&&Object.values(u).includes("dropdown")?f.jsxs(f.Fragment,{children:[f.jsx("div",Object.assign({className:iS,"data-component":"SegmentedControl.Dropdown"},Qn("variant",u),{children:f.jsxs(yi,{children:[f.jsx(yi.Button,{"aria-label":a&&`${lS(w)}, ${a}`,leadingVisual:cS(w),children:lS(w)}),f.jsx(yi.Overlay,{"aria-labelledby":n,children:f.jsx(Bn,{selectionVariant:"single",children:p.map((e,t)=>{const a=cS(e);return f.jsxs(Bn.Item,{selected:t===y,disabled:dS(e),onSelect:a=>N(t,e,a),children:[a?f.jsx(Bn.LeadingVisual,{children:KC(a)}):null,lS(e)]},t)})})})]})})),j]}):j}uS.displayName="SegmentedControl";const mS=Object.assign(uS,{Button:JC,IconButton:nS});function pS(e,t){return f.jsx("optgroup",Object.assign({ref:t,"data-component":"Select.OptGroup"},e))}pS.displayName="Select.OptGroup";var hS=tt(pS);function gS(e,t){return f.jsx("option",Object.assign({ref:t,"data-component":"Select.Option"},e))}gS.displayName="Select.Option";var fS=tt(gS);const vS=Object.assign(Ab,{Option:fS,OptGroup:hS});function bS(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),r=bx(i),{required:l}=r,c=s(r,["required"]),{labelId:d}=o.useContext(_b),u=Jt();return f.jsx(vn,Object.assign({ref:t,type:"button","aria-labelledby":d?`${u} ${d}`:void 0,className:et(a),"data-component":"SelectPanel.Button"},c,{children:d?f.jsx("span",{id:u,children:n}):n}))}bS.displayName="SelectPanel.Button";var xS=tt(bS);const yS=e.createContext({}),wS="select-panel-footer",NS="select-panel-footer-without-actions",jS="select-panel-footer-content",kS="select-panel-footer-content-without-actions",CS="select-panel-footer-actions";function SS(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{selectionVariant:r,onCancel:l}=o.useContext(yS),c="instant"!==r;return c||n?f.jsxs("div",Object.assign({ref:t,className:et(wS,!c&&NS,a),"data-component":"SelectPanel.Footer","data-has-actions":c?"":void 0},i,{children:[f.jsx("div",{className:et(jS,!c&&kS),children:n}),c?f.jsxs("div",{className:CS,children:[f.jsx(vn,{type:"button",size:"small",onClick:l,children:"Cancel"}),f.jsx(vn,{type:"submit",size:"small",variant:"primary",children:"Save"})]}):null]})):null}SS.displayName="SelectPanel.Footer";var OS=tt(SS);const MS="select-panel-search-input";function AS(e,t){var a;const{className:n,value:i,onChange:r,onKeyDown:l}=e,c=s(e,["className","value","onChange","onKeyDown"]),{searchQuery:d,setSearchQuery:u,searchInputRef:m,moveFocusToList:p}=o.useContext(yS),h=o.useRef(null),g=N(m,h),v=N(t,g),b=null!==(a=null!=i?i:d)&&void 0!==a?a:"";return f.jsx(Nr,Object.assign({ref:v,block:!0,leadingVisual:Rt,placeholder:"Search",value:b,onChange:e=>{null==u||u(e.currentTarget.value),null==r||r(e.currentTarget.value,e)},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),null==p||p()),null==l||l(e)},trailingAction:b?f.jsx(Nr.Action,{icon:kt,"aria-label":"Clear",onClick:()=>{var e;null==u||u(""),null==r||r("",null),null===(e=h.current)||void 0===e||e.focus()}}):void 0,className:et(MS,n),"data-component":"SelectPanel.SearchInput"},c))}AS.displayName="SelectPanel.SearchInput";var TS=tt(AS);const IS="select-panel-header",DS="select-panel-header-content",LS="select-panel-header-content-with-search",PS="select-panel-header-title-row",ES="select-panel-header-title",zS="select-panel-header-heading",$S="select-panel-header-description",RS="select-panel-header-actions",BS={searchInput:TS};function VS(e,t){const{className:a,children:n,onBack:i}=e,r=s(e,["className","children","onBack"]),[l,c]=va(n,BS),{panelId:d,title:u,description:m,onCancel:p,onClearSelection:h}=o.useContext(yS);return f.jsxs("div",Object.assign({ref:t,className:et(IS,a),"data-component":"SelectPanel.Header"},r,{children:[f.jsxs("div",{className:et(DS,l.searchInput&&LS),"data-has-description":m?"":void 0,"data-has-search-input":l.searchInput?"":void 0,children:[f.jsxs("div",{className:PS,children:[i?f.jsx(yn,{type:"button",variant:"invisible",icon:dt,"aria-label":"Back",onClick:i,"data-component":"SelectPanel.BackButton"}):null,f.jsxs("div",{className:ES,"data-has-description":m?"":void 0,"data-has-back":i?"":void 0,children:[f.jsx(wa,{as:"h1",id:d?`${d}-title`:void 0,className:zS,children:u}),m?f.jsx("span",{id:d?`${d}-description`:void 0,className:$S,children:m}):null]})]}),f.jsxs("div",{className:RS,children:[h?f.jsx(yn,{type:"button",variant:"invisible",icon:Mt,"aria-label":"Clear selection",onClick:h,"data-component":"SelectPanel.ClearSelectionButton"}):null,f.jsx(yn,{type:"button",variant:"invisible",icon:Ct,"aria-label":"Close",onClick:p,"data-component":"SelectPanel.CloseButton"})]})]}),l.searchInput,c]}))}VS.displayName="SelectPanel.Header";var _S=tt(VS);const FS="select-panel-form",HS="select-panel-container",WS=Xe("select-panel-backdrop",{variants:{variant:{anchored:"",modal:"select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short"},narrowVariant:{anchored:"",modal:"select-panel-backdrop-narrow-modal","full-screen":"","bottom-sheet":"select-panel-backdrop-narrow-bottom-sheet"}}}),GS=Xe("select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",{variants:{width:{small:"select-panel-width-small",medium:"select-panel-width-medium",large:"select-panel-width-large",xlarge:"select-panel-width-xlarge",auto:"select-panel-width-auto"},maxHeight:{small:"select-panel-max-height-small",medium:"select-panel-max-height-medium",large:"select-panel-max-height-large",xlarge:"select-panel-max-height-xlarge","fit-content":"select-panel-max-height-fit-content"},variant:{anchored:"select-panel-anchored",modal:""},narrowVariant:{anchored:"select-panel-narrow-anchored",modal:"select-panel-narrow-modal","full-screen":"select-panel-narrow-full-screen","bottom-sheet":"select-panel-narrow-bottom-sheet"},unplaced:{true:"invisible",false:""}}}),KS={regular:"anchored",narrow:"full-screen"},qS=e=>o.isValidElement(e)&&e.type===xS;function US(e,t){var a,n,i,r,l,c;const{className:d,children:u,title:m,description:p,variant:h=KS,selectionVariant:g="multiple",id:v,defaultOpen:b=!1,open:x,anchorRef:y,side:w="outside-bottom",align:j="start",onCancel:k,onClearSelection:C,onSubmit:S,width:O="medium",maxHeight:M="large"}=e,A=s(e,["className","children","title","description","variant","selectionVariant","id","defaultOpen","open","anchorRef","side","align","onCancel","onClearSelection","onSubmit","width","maxHeight"]),T=Jt(v),I=o.useRef(null),D=null!=y?y:I,L=o.useRef(null),P=N(t,L),E=o.useRef(null),z=void 0!==x,[$,R]=o.useState(b),B=z?x:$,V=o.useCallback(()=>{z||R(!1)},[z]),_=o.useCallback(()=>{V(),null==k||k()},[V,k]),F=o.useCallback(()=>null==C?void 0:C(),[C]),H=o.useCallback(e=>{null==e||e.preventDefault(),V(),null==S||S(e)},[V,S]),W=o.useCallback(()=>{var e,t;null===(t=null===(e=L.current)||void 0===e?void 0:e.querySelector('[role="option"]'))||void 0===t||t.focus()},[]),G=o.useCallback(()=>{"instant"===g&&H()},[g,H]),[K,q]=o.useState(""),U=o.Children.toArray(u),Y=U.find(qS),[Z,Q]=va(U.filter(e=>e!==Y),{header:_S,footer:OS}),X=null==Y?void 0:Y.props.onClick,J=Y?o.cloneElement(Y,{ref:D,onClick:e=>{null==X||X(e),e.defaultPrevented||(B?_():z||R(!0))},"aria-haspopup":!0,"aria-expanded":B}):null,ee=Object.assign(Object.assign({},KS),"string"==typeof h?{regular:h}:h),te=null!==(a=ee.regular)&&void 0!==a?a:"anchored",ae=ee.narrow,ne="anchored"===te||"anchored"===ae,ie=o.useRef(null),[re,oe]=o.useState(null),se=o.useCallback(()=>{const e=D.current,t=L.current;if(!e||!t)return;const a=ui(t,e,{side:w,align:j});ie.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(ie.current,a)||(ie.current=a,oe(a))},[D,w,j]);qn(()=>{if(!B||!ne)return ie.current=null,void oe(null);se();const e=new ResizeObserver(se);return L.current&&e.observe(L.current),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),()=>{e.disconnect(),window.removeEventListener("resize",se),window.removeEventListener("scroll",se,!0)}},[B,ne,se]),Kn({containerRef:L,initialFocusRef:E,returnFocusRef:D,disabled:!B}),o.useEffect(()=>{B&&!E.current&&W()},[B,W]),Zn(e=>{B&&(e.preventDefault(),_())});const le=o.useMemo(()=>({panelId:T,title:m,description:p,selectionVariant:g,searchQuery:K,setSearchQuery:q,searchInputRef:E,onCancel:_,onClearSelection:C?F:void 0,moveFocusToList:W}),[T,m,p,g,K,_,C,F,W]),ce=o.useMemo(()=>({container:"SelectPanel",listRole:"listbox",listLabelledBy:`${T}-title`,selectionAttribute:"aria-selected",selectionVariant:"instant"===g?"single":g,afterSelect:G,enableFocusZone:!0}),[T,g,G]);return f.jsxs(f.Fragment,{children:[J,B?f.jsx(oi,{children:f.jsx("div",Object.assign({className:et(WS({variant:te,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&_()},"data-component":"SelectPanel.Backdrop"},Qn("variant",ee),{children:f.jsx("div",Object.assign({ref:P,role:"dialog","aria-modal":!0,"aria-labelledby":`${T}-title`,"aria-describedby":p?`${T}-description`:void 0,className:et(GS({width:O,maxHeight:M,variant:te,narrowVariant:ae,unplaced:ne&&!re}),d),style:{"--select-panel-top":`${null!==(n=null==re?void 0:re.top)&&void 0!==n?n:0}px`,"--select-panel-left":`${null!==(i=null==re?void 0:re.left)&&void 0!==i?i:0}px`},"data-component":"SelectPanel","data-width":O,"data-max-height":M,"data-side":null!==(r=null==re?void 0:re.anchorSide)&&void 0!==r?r:w,"data-align":null!==(l=null==re?void 0:re.anchorAlign)&&void 0!==l?l:j},Qn("variant",ee),A,{children:f.jsx("form",{className:FS,onSubmit:H,children:f.jsxs(yS.Provider,{value:le,children:[null!==(c=Z.header)&&void 0!==c?c:f.jsx(_S,{}),f.jsx("div",{className:HS,children:f.jsx(Oa.Provider,{value:ce,children:Q})}),Z.footer]})})}))}))}):null]})}US.displayName="SelectPanel";var YS=tt(US);const ZS="select-panel-loading",QS="select-panel-loading-text";function XS(e,t){const{className:a,children:n="Fetching items..."}=e,i=s(e,["className","children"]);return f.jsxs("div",Object.assign({ref:t,role:"status","aria-live":"polite",className:et(ZS,a),"data-component":"SelectPanel.Loading"},i,{children:[f.jsx(en,{size:"medium",srText:null,role:"presentation"}),f.jsx("span",{className:QS,children:n})]}))}XS.displayName="SelectPanel.Loading";var JS=tt(XS);const eO={full:"select-panel-message-full",fullIcon:"select-panel-message-full-icon",fullTitle:"select-panel-message-full-title",fullContent:"select-panel-message-full-content",inline:"select-panel-message-inline",inlineIcon:"select-panel-message-inline-icon",variant:{warning:"select-panel-message-warning",error:"select-panel-message-error",empty:""},inlineVariant:{warning:"select-panel-message-inline-warning",error:"select-panel-message-inline-error",empty:""}};function tO(e,t){const{className:a,children:n,variant:i,size:r,title:o}=e,l=s(e,["className","children","variant","size","title"]),c="empty"!==i?{role:"status","aria-live":"polite"}:void 0;return"full"===(null!=r?r:"empty"===i?"full":"inline")?f.jsxs("div",Object.assign({ref:t,className:et(eO.full,a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"full"},c,l,{children:["empty"===i?null:f.jsx(Ht,{className:et(eO.fullIcon,eO.variant[i]),"aria-hidden":"true"}),f.jsx("span",{className:eO.fullTitle,children:o}),f.jsx("span",{className:eO.fullContent,children:n})]})):f.jsxs("div",Object.assign({ref:t,className:et(eO.inline,eO.variant[i],eO.inlineVariant[i],a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"inline"},c,l,{children:[f.jsx(Ht,{className:eO.inlineIcon,"aria-hidden":"true"}),f.jsx("div",{children:n})]}))}tO.displayName="SelectPanel.Message";var aO=tt(tO);const nO="select-panel-secondary-action-small",iO="select-panel-secondary-action-checkbox",rO="select-panel-secondary-action-box",oO=e=>{const{id:t,children:a,className:n}=e,i=s(e,["id","children","className"]),r=Jt(t);return f.jsxs("span",{className:iO,"data-component":"SelectPanel.SecondaryAction",children:[f.jsx(Lm,Object.assign({id:r,className:et(rO,n)},i)),f.jsx("label",{htmlFor:r,className:nO,children:a})]})};function sO(e){if("checkbox"===e.variant){const{variant:t}=e,a=s(e,["variant"]);return f.jsx(oO,Object.assign({},a))}if("link"===e.variant){const{variant:t,className:a}=e,n=s(e,["variant","className"]);return f.jsx(Ro,Object.assign({className:et(nO,a),"data-component":"SelectPanel.SecondaryAction"},n))}const{variant:t}=e,a=s(e,["variant"]);return f.jsx(vn,Object.assign({type:"button",size:"small",block:!0,"data-component":"SelectPanel.SecondaryAction"},a))}sO.displayName="SelectPanel.SecondaryAction";const lO=Object.assign(YS,{Button:xS,Header:_S,SearchInput:TS,Footer:OS,SecondaryAction:sO,Loading:JS,Message:aO}),cO=Xe("separator",{variants:{orientation:{horizontal:"separator-horizontal",vertical:"separator-vertical"},variant:{subtle:"separator-subtle",default:"separator-default",emphasis:"separator-emphasis"}}});function dO(e,t){const a=e,{as:n="div",className:i,orientation:r="horizontal",variant:o="default"}=a,l=s(a,["as","className","orientation","variant"]);return f.jsx(n,Object.assign({ref:t,role:"separator","aria-orientation":r,className:et(cO({orientation:r,variant:o}),i),"data-component":"Separator","data-orientation":r,"data-variant":o},l))}dO.displayName="Separator";var uO=tt(dO);const mO=Xe("skeleton-avatar",{variants:{shape:{circle:"skeleton-avatar-circle",square:"skeleton-avatar-square"},responsive:{true:"skeleton-avatar-responsive",false:""}}});function pO(e){var{size:t=$r,shape:a="circle",className:n,style:i}=e,r=s(e,["size","shape","className","style"]);const o=zr(t),l={"--avatar-size-regular":`${$r}px`};if(o)for(const[e,a]of Object.entries(t))void 0!==a&&(l[`--avatar-size-${e}`]=`${a}px`);else l["--avatar-size-regular"]=`${t}px`;return f.jsx(Yg,Object.assign({width:"var(--avatar-size-regular)",height:"var(--avatar-size-regular)",className:et(mO({shape:a,responsive:o}),n),style:Object.assign(Object.assign({},i),l)},r,{"data-component":"SkeletonAvatar","data-responsive":o||void 0,"data-shape":a}))}pO.displayName="SkeletonAvatar";const hO=Xe("slider",{variants:{size:{small:"slider-small",medium:"slider-medium",large:"slider-large"},orientation:{horizontal:"slider-horizontal",vertical:"slider-vertical"},block:{true:"",false:""}},compoundVariants:[{block:!0,orientation:"horizontal",class:"slider-block-horizontal"},{block:!0,orientation:"vertical",class:"slider-block-vertical"}]}),gO=(e,t,a)=>{if(a<=t)return 0;const n=(e-t)/(a-t)*100;return Math.min(Math.max(n,0),100)};function fO(e,t){const{className:a,style:n,size:i="medium",orientation:r="horizontal",block:l,min:c=0,max:d=100,step:u=1,value:m,defaultValue:p,disabled:h,onChange:g}=e,v=s(e,["className","style","size","orientation","block","min","max","step","value","defaultValue","disabled","onChange"]),b=void 0!==m,[x,y]=o.useState(()=>null!=p?p:c),w=b?m:x;return f.jsx("input",Object.assign({ref:t,type:"range",min:c,max:d,step:u,value:w,disabled:h,onChange:e=>{const t=Number(e.currentTarget.value);b||y(t),null==g||g(t,e)},className:et(hO({size:i,orientation:r,block:l}),a),style:Object.assign(Object.assign({},n),{"--slider-fill":`${gO(w,c,d)}%`}),"aria-orientation":"vertical"===r?"vertical":void 0,"data-component":"Slider","data-size":i,"data-orientation":r,"data-block":l,"data-disabled":h},v))}fO.displayName="Slider";var vO=tt(fO);const bO={open:"open",issueOpened:"open",pullOpened:"open",alertOpened:"open",closed:"done",issueClosed:"done",pullMerged:"done",alertFixed:"done",pullClosed:"closed",alertClosed:"closed",issueClosedNotPlanned:"neutral",unavailable:"neutral",archived:"neutral",pullQueued:"attention",draft:"draft",issueDraft:"draft",alertDismissed:"draft"},xO={open:null,closed:null,draft:Nt,archived:lt,unavailable:Ht,issueOpened:$t,issueClosed:ft,issueClosedNotPlanned:zt,issueDraft:Nt,pullOpened:ht,pullClosed:kt,pullMerged:Dt,pullQueued:jt,alertOpened:Ft,alertClosed:_t,alertFixed:Bt,alertDismissed:Vt},yO={open:"",closed:"",draft:"Pull request",archived:"Archived",unavailable:"",issueOpened:"Issue",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",issueDraft:"Issue",pullOpened:"Pull request",pullClosed:"Pull request",pullMerged:"Pull request",pullQueued:"Pull request",alertOpened:"Alert",alertClosed:"Alert",alertFixed:"Alert",alertDismissed:"Alert"},wO=Xe("state-label",{variants:{size:{small:"state-label-small",medium:"state-label-medium"},tone:{open:"state-label-open",closed:"state-label-closed",done:"state-label-done",draft:"state-label-draft",attention:"state-label-attention",neutral:"state-label-neutral"}}}),NO=Xe("state-label-visual",{variants:{size:{small:"state-label-visual-small",medium:"state-label-visual-medium"}}});function jO(e,t){const a=e,{as:n="span",className:i,status:r,size:o="medium",children:l}=a,c=s(a,["as","className","status","size","children"]),d=xO[r],u=yO[r];return f.jsxs(n,Object.assign({ref:t,className:et(wO({size:o,tone:bO[r]}),i),"data-component":"StateLabel","data-status":r,"data-size":o},c,{children:[d?f.jsx(d,{className:et(NO({size:o})),role:u?"img":void 0,"aria-label":u||void 0,"aria-hidden":!u||void 0}):null,l]}))}jO.displayName="StateLabel";var kO=tt(jO);const CO=e.createContext(null);function SO(e){const{children:t,id:a,value:n,defaultValue:i,onChange:r}=e,s=Jt(a),l=void 0!==n,[c,d]=o.useState(i),u=l?n:c,m=o.useRef(r);qn(()=>{m.current=r},[r]);const p=o.useMemo(()=>({groupId:s,selectedValue:u,selectTab:e=>{var t;l||d(e),null===(t=m.current)||void 0===t||t.call(m,e)}}),[s,u,l]);return f.jsx(CO.Provider,{value:p,children:t})}SO.displayName="Tabs";const OO=(...e)=>t=>{for(const a of e)if(null==a||a(t),t.defaultPrevented)break},MO=()=>{const t=e.useContext(CO);if(!t)throw new Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return t},AO=e=>{const{value:t,disabled:a}=e,n=MO(),i=n.selectedValue===t;return{selected:i,tabProps:{id:`${n.groupId}-tab-${t}`,role:"tab","aria-controls":`${n.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":!!a||void 0,tabIndex:i?0:-1,onKeyDown:e=>{" "!==e.key&&"Enter"!==e.key||n.selectTab(t)},onMouseDown:e=>{a||0!==e.button||e.ctrlKey?e.preventDefault():n.selectTab(t)},onFocus:()=>{i||a||n.selectTab(t)}}}},TO="tab",IO="tab-vertical",DO="tab-hover",LO="tab-selected",PO="tab-disabled";function EO(e,t){const{className:a,value:n,disabled:i,onKeyDown:r,onMouseDown:o,onFocus:l}=e,c=s(e,["className","value","disabled","onKeyDown","onMouseDown","onFocus"]),{selected:d,tabProps:u}=AO({value:n,disabled:i});return f.jsx("button",Object.assign({},c,u,{ref:t,type:"button",onKeyDown:OO(r,u.onKeyDown),onMouseDown:OO(o,u.onMouseDown),onFocus:OO(l,u.onFocus),className:et(TO,IO,DO,d&&LO,i&&PO,a),"data-component":"Tabs.Tab","data-value":n,"data-selected":d?"":void 0}))}EO.displayName="Tabs.Tab";var zO=tt(EO);const $O=e=>{const{"aria-label":t,"aria-labelledby":a,"aria-orientation":n,ref:i}=e,r=o.useRef(null),s=N(i,r),l=null!=n?n:"horizontal";return{tabListProps:{ref:s,role:"tablist","aria-label":t,"aria-labelledby":a,"aria-orientation":l,onKeyDown:e=>{const t=r.current;if(!t)return;const a="vertical"===l,n=a?"ArrowDown":"ArrowRight",i=a?"ArrowUp":"ArrowLeft",o="Home"===e.key||"End"===e.key,s=e.key===n?1:e.key===i?-1:0;if(0===s&&!o)return;e.preventDefault(),e.stopPropagation();const c=(e=>Array.from(e.querySelectorAll("[role='tab']:not([aria-disabled])")))(t);if(0===c.length)return;if(o)return void c["Home"===e.key?0:c.length-1].focus();const d=c.findIndex(e=>"true"===e.getAttribute("aria-selected"));c[-1===d?0:(d+s+c.length)%c.length].focus()}}}},RO="tab-list",BO="tab-list-vertical";function VO(e,t){const{className:a,onKeyDown:n,"aria-label":i,"aria-labelledby":r,"aria-orientation":o}=e,l=s(e,["className","onKeyDown","aria-label","aria-labelledby","aria-orientation"]),{tabListProps:c}=$O({"aria-label":i,"aria-labelledby":r,"aria-orientation":o,ref:t}),d="vertical"===c["aria-orientation"];return f.jsx("div",Object.assign({},l,c,{onKeyDown:OO(n,c.onKeyDown),className:et(RO,d&&BO,a),"data-component":"Tabs.List","data-orientation":c["aria-orientation"]}))}VO.displayName="Tabs.List";var _O=tt(VO);const FO=e=>{const{value:t}=e,a=MO(),n=a.selectedValue===t;return{tabPanelProps:{id:`${a.groupId}-panel-${t}`,role:"tabpanel","aria-labelledby":`${a.groupId}-tab-${t}`,hidden:!n,"data-selected":n?"":void 0}}};function HO(e,t){const{className:a,value:n}=e,i=s(e,["className","value"]),{tabPanelProps:r}=FO({value:n});return f.jsx("div",Object.assign({},i,r,{ref:t,className:a,"data-component":"Tabs.Panel","data-value":n}))}HO.displayName="Tabs.Panel";var WO=tt(HO);const GO=Object.assign(SO,{List:_O,Tab:zO,Panel:WO}),KO="timeline",qO="timeline-clip-start",UO="timeline-clip-end";function YO(e,t){const{className:a,clipSidebar:n}=e,i=s(e,["className","clipSidebar"]),r=(e=>!0===e||"both"===e?"both":"start"===e||"end"===e?e:void 0)(n);return f.jsx("ol",Object.assign({ref:t,role:"list",className:et(KO,("start"===r||"both"===r)&&qO,("end"===r||"both"===r)&&UO,a),"data-component":"Timeline","data-clip-sidebar":r},i))}YO.displayName="Timeline";var ZO=tt(YO);const QO="timeline-actions",XO="timeline-actions-narrow";function JO(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(QO,XO,a),"data-component":"Timeline.Actions"},n))}JO.displayName="Timeline.Actions";var eM=tt(JO);const tM="timeline-avatar";function aM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(tM,a),"data-component":"Timeline.Avatar"},n))}aM.displayName="Timeline.Avatar";var nM=tt(aM);const iM="timeline-badge-wrapper",rM=Xe("timeline-badge",{variants:{variant:{accent:"timeline-badge-accent",success:"timeline-badge-success",attention:"timeline-badge-attention",severe:"timeline-badge-severe",danger:"timeline-badge-danger",done:"timeline-badge-done",open:"timeline-badge-open",closed:"timeline-badge-closed",sponsors:"timeline-badge-sponsors"}}});function oM(e,t){const{className:a,variant:n}=e,i=s(e,["className","variant"]);return f.jsx("div",{className:iM,children:f.jsx("div",Object.assign({ref:t,className:et(rM({variant:n}),a),"data-component":"Timeline.Badge","data-variant":n},i))})}oM.displayName="Timeline.Badge";var sM=tt(oM);const lM="timeline-body";function cM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(lM,a),"data-component":"Timeline.Body"},n))}cM.displayName="Timeline.Body";var dM=tt(cM);const uM="timeline-break",mM="timeline-break-before-condensed";function pM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("li",Object.assign({ref:t,role:"presentation",className:et(uM,mM,a),"data-component":"Timeline.Break"},n))}pM.displayName="Timeline.Break";var hM=tt(pM);const gM="timeline-item",fM="timeline-item-rail",vM="timeline-item-condensed",bM="timeline-item-condensed-badge",xM="timeline-item-condensed-avatar",yM="timeline-item-narrow";function wM(e,t){const{className:a,condensed:n}=e,i=s(e,["className","condensed"]);return f.jsx("li",Object.assign({ref:t,className:et(gM,fM,yM,n&&vM,n&&bM,n&&xM,a),"data-component":"Timeline.Item","data-timeline-item":"","data-condensed":n?"":void 0},i))}wM.displayName="Timeline.Item";var NM=tt(wM);const jM=Object.assign(ZO,{Item:NM,Avatar:nM,Badge:sM,Body:dM,Break:hM,Actions:eM});let kM=[],CM=0;const SM=new Set,OM=()=>{for(const e of SM)e()},MM=e=>(SM.add(e),()=>{SM.delete(e)}),AM=()=>kM,TM=[],IM=()=>TM,DM=e=>{const t=kM.some(t=>t.id===e.id);return kM=t?kM.map(t=>t.id!==e.id?t:Object.assign(Object.assign(Object.assign({},t),e),{dismissed:!1,revision:t.revision+1})):[Object.assign(Object.assign({},e),{revision:0}),...kM],OM(),e.id},LM=e=>(kM=kM.map(t=>void 0===e||t.id===e?Object.assign(Object.assign({},t),{dismissed:!0}):t),OM(),e),PM=()=>"toast-"+ ++CM,EM=(e,t,a={})=>{var n;return DM(Object.assign(Object.assign({},a),{id:null!==(n=a.id)&&void 0!==n?n:PM(),title:t,variant:e}))},zM=(e,t)=>"function"==typeof e?e(t):e,$M=(e,t)=>EM("default",e,t),RM=Object.assign($M,{message:$M,success:(e,t)=>EM("success",e,t),error:(e,t)=>EM("error",e,t),warning:(e,t)=>EM("warning",e,t),info:(e,t)=>EM("info",e,t),loading:(e,t)=>EM("loading",e,Object.assign({duration:1/0},t)),custom:(e,t={})=>{var a;return DM(Object.assign(Object.assign({},t),{id:null!==(a=t.id)&&void 0!==a?a:PM(),variant:"default",render:e}))},promise:(e,t,a={})=>{var n;const i=null!==(n=a.id)&&void 0!==n?n:PM();EM("loading",t.loading,Object.assign(Object.assign({},a),{id:i,duration:1/0}));const r=(e,t)=>{null!=t?EM(e,t,Object.assign(Object.assign({},a),{id:i,duration:a.duration})):LM(i)};return("function"==typeof e?e():e).then(e=>r("success",zM(t.success,e)),e=>r("error",zM(t.error,e))),i},dismiss:LM,getToasts:AM}),BM={root:"toast",animated:"motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]",grabbable:"toast-grabbable",lift:{top:"toast-lift-top",bottom:"toast-lift-bottom"},bridge:"toast-bridge",bridgeTop:"toast-bridge-top",bridgeBottom:"toast-bridge-bottom",card:"toast-card",iconColor:{default:"",success:"toast-icon-success",error:"toast-icon-error",warning:"toast-icon-warning",info:"toast-icon-info",loading:""},richColors:{default:"",success:"toast-rich-success",error:"toast-rich-error",warning:"toast-rich-warning",info:"toast-rich-info",loading:""},hidden:"opacity-0",waiting:"pointer-events-none",dragging:"select-none",body:"toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]",bodyStacked:"opacity-0",icon:"toast-icon",content:"toast-content",title:"toast-title",description:"toast-description",actions:"toast-actions"},VM={default:null,success:ft,error:Ot,warning:Ht,info:It,loading:null};function _M(e){var t,a,n,i,r,s;const{toast:l,place:c,position:d,height:u,frontHeight:m,stackSize:p,expanded:h,visible:g,paused:v,swipeDirections:b,icons:x,defaults:y,onHeight:w}=e,{id:N,variant:j,title:k,description:C,render:S}=l,O=null!==(t=l.duration)&&void 0!==t?t:y.duration,M=null!==(a=l.dismissible)&&void 0!==a?a:y.dismissible,A=null!==(n=l.closeButton)&&void 0!==n?n:y.closeButton,T=null!==(i=l.richColors)&&void 0!==i?i:y.richColors,I=null!==(s=null!==(r=l.important)&&void 0!==r?r:y.important)&&void 0!==s&&s,D=o.useRef(null),[L,P]=o.useState(!1),[E,z]=o.useState({x:0,y:0}),[$,R]=o.useState(!1),[B,V]=o.useState(!1),_=o.useRef(null),F=Boolean(l.dismissed),H=0===c.index,W=L&&!h&&!H,G=Boolean(S),K=d.startsWith("top")?"top":"bottom",q=e=>{var t,a;l.dismissed||(LM(N),"timeout"===e?null===(t=l.onAutoClose)||void 0===t||t.call(l,l):null===(a=l.onDismiss)||void 0===a||a.call(l,l))};o.useEffect(()=>{P(!0)},[]);const U=o.useRef({revision:-1,time:O});o.useEffect(()=>{if(U.current.revision!==l.revision&&(U.current={revision:l.revision,time:O}),v||F||O===1/0)return;const e=Date.now(),t=window.setTimeout(()=>q("timeout"),Math.max(U.current.time,0));return()=>{window.clearTimeout(t),U.current.time-=Date.now()-e}},[l,O,v,F]),o.useEffect(()=>{if(!F)return;const e=window.setTimeout(()=>(e=>{kM=kM.filter(t=>t.id!==e),OM()})(N),200);return()=>{window.clearTimeout(e)}},[F,N]),qn(()=>{const e=D.current;if(!e)return;const t=e.style.height;e.style.height="auto";const a=e.getBoundingClientRect().height;e.style.height=t,w(N,a)},[w,N,l.revision,k,C,h]);const Y=e=>b.includes(e),Z=(e,t,a)=>e<0?Y(t)?e:0:Y(a)?e:0,Q=h?"calc(var(--toast-lift) * var(--toast-offset))":"calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))",X="calc(var(--toast-lift) * -100%)",J={"--toast-index":c.index,"--toast-offset":`${c.offset}px`,"--toast-z-index":p-c.index,"--toast-height":(ee=W?m:u,ee>0?`${ee}px`:"auto"),"--toast-shift":L?!F||B?Q:H?X:h?`calc(${Q} + ${X})`:Q:X,"--toast-scale":W?Math.max(1-.05*c.index,0):1,"--toast-swipe-x":`${E.x}px`,"--toast-swipe-y":`${E.y}px`};var ee;const te=VM[j],ae=void 0!==l.icon?l.icon:null==x?void 0:x[j],ne=void 0!==ae?ae:"loading"===j?f.jsx(en,{size:"small",srText:null}):te?f.jsx(te,{}):null,ie=(e,t,a)=>(e=>"object"==typeof e&&null!==e&&"label"in e&&!o.isValidElement(e))(e)?f.jsx(vn,{size:"small",variant:a,onClick:a=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,a),a.defaultPrevented||q(t)},"data-component":"Toast."+("action"===t?"Action":"Cancel"),children:e.label}):e,re=void 0!==l.action||void 0!==l.cancel;return f.jsx("li",{ref:D,role:I?"alert":"status","aria-live":I?"assertive":"polite","aria-atomic":"true",className:et(BM.root,BM.lift[K],BM.bridge,"top"===K?BM.bridgeTop:BM.bridgeBottom,M&&BM.grabbable,!G&&BM.card,!G&&BM.iconColor[j],!G&&T&&BM.richColors[j],(!L||F||!g)&&BM.hidden,!g&&BM.waiting,$?BM.dragging:BM.animated,y.className,l.className),style:J,"data-component":"Toast","data-variant":j,"data-position":d,"data-mounted":L,"data-removed":F,"data-front":H,"data-expanded":h,"data-stacked":W,"data-visible":g,"data-dragging":$,"data-swiped-out":B,"data-rich-colors":T||void 0,onPointerDown:e=>{var t,a;M&&0===e.button&&!e.target.closest("button")&&(_.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},null===(a=(t=e.currentTarget).setPointerCapture)||void 0===a||a.call(t,e.pointerId),R(!0))},onPointerMove:e=>{const t=_.current;t&&t.pointerId===e.pointerId&&z({x:Z(e.clientX-t.x,"left","right"),y:Z(e.clientY-t.y,"top","bottom")})},onPointerUp:e=>{const t=_.current;if(!t||t.pointerId!==e.pointerId)return;if(_.current=null,R(!1),Math.max(Math.abs(E.x),Math.abs(E.y))<45)return void z({x:0,y:0});const a=e.currentTarget.getBoundingClientRect(),n=(e,t)=>0===e?0:Math.sign(e)*(t+32);z({x:n(E.x,a.width),y:n(E.y,a.height)}),V(!0),q("swipe")},onPointerCancel:()=>{_.current=null,R(!1),z({x:0,y:0})},children:G?null==S?void 0:S(l):f.jsxs("div",{className:et(BM.body,W&&BM.bodyStacked),"data-component":"Toast.Body",children:[null===ne?null:f.jsx("span",{className:BM.icon,"aria-hidden":"true","data-component":"Toast.Icon",children:ne}),f.jsxs("div",{className:BM.content,"data-component":"Toast.Content",children:[f.jsx("div",{className:BM.title,"data-component":"Toast.Title",children:k}),void 0===C?null:f.jsx("div",{className:BM.description,"data-component":"Toast.Description",children:C})]}),re?f.jsxs("div",{className:BM.actions,"data-component":"Toast.Actions",children:[ie(l.cancel,"cancel","invisible"),ie(l.action,"action","default")]}):null,A&&M?f.jsx(yn,{icon:Ct,"aria-label":"Close",variant:"invisible",size:"small",onClick:()=>q("close-button"),"data-component":"Toast.CloseButton"}):null]})})}_M.displayName="Toast";const FM=Xe("toaster z-popover",{variants:{position:{"top-left":"toaster-top-left","top-center":"toaster-top-center","top-right":"toaster-top-right","bottom-left":"toaster-bottom-left","bottom-center":"toaster-bottom-center","bottom-right":"toaster-bottom-right"}}}),HM=4e3,WM=3,GM=14,KM=24,qM=16,UM=356,YM=["altKey","KeyT"],ZM=e=>"number"==typeof e?`${e}px`:e,QM=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),XM=()=>"hidden"===document.visibilityState,JM=()=>!1;function eA(e,t){var a;const{position:n="bottom-right",expand:i=!1,visibleToasts:r=WM,toastOptions:l,duration:c=HM,closeButton:d=!1,richColors:u=!1,gap:m=GM,offset:p=KM,mobileOffset:h=qM,width:g=UM,hotkey:v=YM,swipeDirections:b,icons:x,containerAriaLabel:y="Notifications",className:w,style:j}=e,k=s(e,["position","expand","visibleToasts","toastOptions","duration","closeButton","richColors","gap","offset","mobileOffset","width","hotkey","swipeDirections","icons","containerAriaLabel","className","style"]),C=o.useSyncExternalStore(MM,AM,IM),S=o.useSyncExternalStore(QM,XM,JM),O=o.useRef(null),M=N(t,O),[A,T]=o.useState({}),[I,D]=o.useState(!1),L=i||I,P=o.useCallback((e,t)=>{T(a=>a[e]===t?a:Object.assign(Object.assign({},a),{[e]:t}))},[]);o.useEffect(()=>{T(e=>{const t=Object.keys(e).filter(e=>C.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[C]);const E=C.filter(e=>!e.dismissed),z=new Map;let $=0;E.forEach((e,t)=>{var a;z.set(e.id,{index:t,offset:$}),$+=(null!==(a=A[e.id])&&void 0!==a?a:0)+m});const R=o.useRef(z);for(const e of C)if(!z.has(e.id)){const t=R.current.get(e.id);t&&z.set(e.id,t)}R.current=z;const B=E.length>0&&null!==(a=A[E[0].id])&&void 0!==a?a:0;o.useEffect(()=>{const e=e=>{var t;const a=O.current,n=null!==a&&(document.activeElement===a||a.contains(document.activeElement));if("Escape"===e.code&&n)return void D(!1);v.every(t=>Boolean(e[t])||e.code===t)&&(D(!0),null===(t=O.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[v]);const V=Object.assign({duration:c,closeButton:d,richColors:u,dismissible:!0},l),_=null!=b?b:(e=>{const[t,a]=e.split("-"),n=[t];return"left"!==a&&"right"!==a||n.push(a),n})(n);return f.jsx(oi,{children:f.jsx("section",{"aria-label":y,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,"data-component":"Toaster.Region",children:f.jsx("ol",Object.assign({ref:M,tabIndex:-1,className:et(FM({position:n}),w),style:Object.assign(Object.assign({},j),{"--toaster-width":ZM(g),"--toaster-viewport-offset":ZM(p),"--toaster-mobile-offset":ZM(h),"--toaster-gap":`${m}px`}),"data-component":"Toaster","data-position":n,"data-expanded":L,onPointerEnter:()=>D(!0),onPointerLeave:()=>D(!1),onFocus:()=>D(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||D(!1)}},k,{children:C.map(e=>{var t,a;const i=null!==(t=z.get(e.id))&&void 0!==t?t:{index:0,offset:0};return f.jsx(_M,{toast:e,place:i,position:n,height:null!==(a=A[e.id])&&void 0!==a?a:0,frontHeight:B,stackSize:C.length,expanded:L,visible:i.index<r,paused:I||S,swipeDirections:_,icons:x,defaults:V,onHeight:P},e.id)})}))})})}eA.displayName="Toaster";var tA=tt(eA);const aA=2e3,nA="toggle-switch-content",iA="sr-only",rA="toggle-switch-icon",oA=Xe("toggle-switch",{variants:{statusLabelPosition:{start:"toggle-switch-label-start",end:"toggle-switch-label-end"}}}),sA=Xe("toggle-switch-status",{variants:{statusLabelPosition:{start:"",end:"toggle-switch-status-end"}}}),lA=Xe("toggle-switch-status-label",{variants:{size:{small:"toggle-switch-status-label-small",medium:"toggle-switch-status-label-medium"},disabled:{true:"toggle-switch-status-label-disabled",false:""}}}),cA=Xe("toggle-switch-status-text",{variants:{hidden:{true:"toggle-switch-status-text-hidden",false:""}}}),dA=Xe("toggle-switch-track",{variants:{size:{small:"toggle-switch-track-small",medium:"toggle-switch-track-medium"},track:{off:"toggle-switch-track-off",on:"toggle-switch-track-on",disabled:"toggle-switch-track-disabled"}}}),uA=Xe(rA,{variants:{disabled:{true:"toggle-switch-circle-icon-disabled",false:"toggle-switch-circle-icon"},checked:{true:"translate-x-0",false:"-translate-x-full"}}}),mA=Xe(rA,{variants:{disabled:{true:"toggle-switch-line-icon-disabled",false:"toggle-switch-line-icon"},checked:{true:"translate-x-full",false:"translate-x-0"}}}),pA=Xe("toggle-switch-knob",{variants:{checked:{true:"toggle-switch-knob-checked",false:"translate-x-0"},disabled:{true:"toggle-switch-knob-disabled",false:""}}}),hA={small:12,medium:16},gA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:hA[e],height:hA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"})}),fA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:hA[e],height:hA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"})});function vA(e,t){const{className:a,checked:n,defaultChecked:i,disabled:r,loading:l,onChange:c,onClick:d,size:u="medium",statusLabelPosition:m="start",buttonType:p="button",loadingLabel:h="Loading",loadingLabelDelay:g=aA,buttonLabelOn:v="On",buttonLabelOff:b="Off","aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","checked","defaultChecked","disabled","loading","onChange","onClick","size","statusLabelPosition","buttonType","loadingLabel","loadingLabelDelay","buttonLabelOn","buttonLabelOff","aria-labelledby","aria-describedby"]),N=void 0!==n,[j,k]=o.useState(Boolean(i)),C=N?n:j,S=!r&&!l,O=`${Jt()}-loading-label`,[M,A]=o.useState(!1);o.useEffect(()=>{if(!l)return void A(!1);const e=window.setTimeout(()=>{A(!0)},g);return()=>{window.clearTimeout(e)}},[l,g]);const T=e=>{S&&(N||k(!C),null==c||c(!C),null==d||d(e))},I=[M?O:void 0,y].filter(Boolean).join(" ");return f.jsxs("div",Object.assign({className:et(oA({statusLabelPosition:m}),a),"data-component":"ToggleSwitch","data-size":u,"data-status-label-position":m,"data-checked":C,"data-disabled":!S,"data-loading":l?"true":void 0},w,{children:[f.jsx("span",{id:O,role:"status",className:iA,children:M?h:""}),l?f.jsx("span",{className:et(sA({statusLabelPosition:m})),"data-component":"ToggleSwitch.LoadingSpinner",children:f.jsx(en,{size:"small",srText:null,role:"presentation"})}):null,f.jsxs("span",{className:et(lA({size:u,disabled:!S})),"aria-hidden":"true",onClick:T,"data-component":"ToggleSwitch.StatusText",children:[f.jsx("span",{className:et(cA({hidden:!C})),children:v}),f.jsx("span",{className:et(cA({hidden:C})),children:b})]}),f.jsxs("button",{ref:t,type:p,className:et(dA({size:u,track:S?C?"on":"off":"disabled"})),onClick:T,"aria-labelledby":x,"aria-describedby":I||void 0,"aria-pressed":C,"aria-disabled":!S,"data-component":"ToggleSwitch.SwitchButton",children:[f.jsxs("span",{className:nA,"aria-hidden":"true",children:[f.jsx("span",{className:et(uA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.LineIcon",children:f.jsx(fA,{size:u})}),f.jsx("span",{className:et(mA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.CircleIcon",children:f.jsx(gA,{size:u})})]}),f.jsx("span",{className:et(pA({checked:C,disabled:!S})),"aria-hidden":"true","data-component":"ToggleSwitch.ToggleKnob"})]})]}))}vA.displayName="ToggleSwitch";var bA=tt(vA);const xA=Xe("token",{variants:{size:{small:"token-small",medium:"token-medium",large:"token-large",xlarge:"token-xlarge"},interactive:{true:"token-interactive",false:"token-static"}}}),yA="medium",wA=({as:e="span",onClick:t,onFocus:a,tabIndex:n=-1,disabled:i})=>!i&&Boolean(a||t||n>-1||"a"===e||"button"===e);function NA(e,t){const a=e,{as:n="span",className:i,size:r=yA,isSelected:o,onRemove:l,onKeyDown:c}=a,d=s(a,["as","className","size","isSelected","onRemove","onKeyDown"]),u=wA({as:n,onClick:d.onClick,onFocus:d.onFocus,tabIndex:d.tabIndex,disabled:d.disabled});return f.jsx(n,Object.assign({ref:t,onKeyDown:e=>{null==c||c(e),"Backspace"!==e.key&&"Delete"!==e.key||null==l||l()},className:et(xA({size:r,interactive:u}),i),"data-component":"Token","data-size":r,"data-interactive":u?"":void 0,"data-selected":o?"":void 0},"button"===n?{type:"button"}:{},d))}NA.displayName="TokenBase";var jA=tt(NA);const kA=Xe("token-remove-button",{variants:{size:{small:"token-remove-button-small",medium:"token-remove-button-medium",large:"token-remove-button-large",xlarge:"token-remove-button-xlarge"},raised:{true:"token-remove-button-raised",false:""}}});function CA(e){const{className:t,size:a=yA,isParentInteractive:n}=e,i=s(e,["className","size","isParentInteractive"]),r=et(kA({size:a,raised:n}),t);return n?f.jsx("span",Object.assign({"aria-hidden":"true",tabIndex:-1,className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})})):f.jsx("button",Object.assign({type:"button","aria-label":"Remove token",className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})}))}CA.displayName="Token.RemoveButton";const SA="token-text",OA="token-text-interactive";function MA(e,t){const a=e,{as:n="span",className:i,interactive:r}=a,o=s(a,["as","className","interactive"]);return f.jsx(n,Object.assign({ref:t,className:et(SA,r&&OA,i),"data-component":"Token.Text"},"button"===n?{type:"button"}:{},o))}MA.displayName="Token.Text";var AA=tt(MA);const TA="sr-only",IA=Xe("token-default",{variants:{interactive:{true:"token-default-interactive",false:""},selected:{true:"token-default-selected",false:""},withRemoveButton:{true:"token-with-remove-button",false:""}}}),DA=Xe("token-visual",{variants:{size:{small:"",medium:"token-visual-medium",large:"token-visual-large",xlarge:"token-visual-xlarge"}}}),LA=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})};function PA(e,t){const a=e,{as:n,className:i,text:r,size:o=yA,leadingVisual:l,onRemove:c,hideRemoveButton:d,isSelected:u,href:m,onClick:p}=a,h=s(a,["as","className","text","size","leadingVisual","onRemove","hideRemoveButton","isSelected","href","onClick"]),g=wA({as:n,onClick:p,onFocus:h.onFocus,tabIndex:h.tabIndex,disabled:h.disabled}),v=Boolean(c)&&!d,b=g&&v,x={as:n,href:m,onClick:p};return f.jsxs(jA,Object.assign({ref:t,size:o,isSelected:u,onRemove:c,className:et(IA({interactive:g,selected:u,withRemoveButton:v}),i),"data-has-remove-button":v?"":void 0},b?{}:x,h,{children:[l&&"small"!==o?f.jsx("span",{className:et(DA({size:o})),"data-component":"Token.LeadingVisual",children:LA(l)}):null,f.jsxs(AA,Object.assign({interactive:b},b?x:{},{children:[r,c?f.jsx("span",{className:TA,children:" (press backspace or delete to remove)"}):null]})),v?f.jsx(CA,{size:o,isParentInteractive:g,onClick:e=>{e.stopPropagation(),null==c||c()}}):null]}))}PA.displayName="Token";var EA=tt(PA);const zA="#999999",$A=(e,t,a)=>Math.max(t,Math.min(e,a)),RA=e=>$A(Math.round(e),0,100),BA=e=>{const t=e.trim();if(t.startsWith("#")){const e=t.slice(1);if(3===e.length){const[t,a,n]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}if(6===e.length){const t=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),n=parseInt(e.slice(4,6),16);return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}return null}const a=t.match(/^rgba?\(([^)]+)\)$/i);if(!a)return null;const n=a[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(n.length<3||n.slice(0,3).some(Number.isNaN))return null;const[i,r,o]=n;return{r:i,g:r,b:o}},VA=e=>{var t;const a=null!==(t=BA(e))&&void 0!==t?t:BA(zA),{h:n,s:i,l:r}=(({r:e,g:t,b:a})=>{const n=e/255,i=t/255,r=a/255,o=Math.max(n,i,r),s=Math.min(n,i,r),l=o-s,c=(o+s)/2;if(0===l)return{h:0,s:0,l:Math.round(100*c)};const d=l/(1-Math.abs(2*c-1));let u;return u=o===n?(i-r)/l%6:o===i?(r-n)/l+2:(n-i)/l+4,u=Math.round(60*u),{h:u<0?u+360:u,s:Math.round(100*d),l:Math.round(100*c)}})(a),o=(({r:e,g:t,b:a})=>(.2126*e+.7152*t+.0722*a)/255)(a),{r:s,g:l,b:c}=a,d=$A(1/(.453-o),0,1),u=$A(100*(o-.96),0,1),m=100*(.6-o)*$A(1/(.6-o),0,1),p=RA(r+m);return{light:{background:`rgb(${s}, ${l}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(100*d)}%)`,border:`hsla(${n}deg, ${i}%, ${RA(r-25)}%, ${u})`,ring:`rgb(${s}, ${l}, ${c})`,backgroundHover:`hsl(${n}deg, ${i}%, ${RA(r-5)}%)`},dark:{background:`rgba(${s}, ${l}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${i}%, ${p}%)`,border:`hsla(${n}deg, ${i}%, ${p}%, 0.3)`,ring:`hsl(${n}deg, ${i}%, ${p}%)`,backgroundHover:`hsla(${n}deg, ${i}%, ${RA(r+10)}%, 0.3)`}}},_A="issue-label-token",FA="issue-label-token-interactive",HA="issue-label-token-selected",WA="token-with-remove-button",GA="sr-only";function KA(e,t){const a=e,{as:n,className:i,style:r,text:l,size:c=yA,fillColor:d=zA,onRemove:u,hideRemoveButton:m,isSelected:p,href:h,onClick:g}=a,v=s(a,["as","className","style","text","size","fillColor","onRemove","hideRemoveButton","isSelected","href","onClick"]),b=o.useMemo(()=>VA(d),[d]),x=wA({as:n,onClick:g,onFocus:v.onFocus,tabIndex:v.tabIndex,disabled:v.disabled}),y=Boolean(u)&&!m,w=x&&y,N={as:n,href:h,onClick:g};return f.jsxs(jA,Object.assign({ref:t,size:c,isSelected:p,onRemove:u,className:et(_A,x&&FA,p&&HA,y&&WA,i),style:Object.assign(Object.assign({},r),{"--issue-label-background":b.light.background,"--issue-label-foreground":b.light.foreground,"--issue-label-border":b.light.border,"--issue-label-ring":b.light.ring,"--issue-label-background-hover":b.light.backgroundHover,"--issue-label-dark-background":b.dark.background,"--issue-label-dark-foreground":b.dark.foreground,"--issue-label-dark-border":b.dark.border,"--issue-label-dark-ring":b.dark.ring,"--issue-label-dark-background-hover":b.dark.backgroundHover}),"data-component":"IssueLabelToken","data-has-remove-button":y?"":void 0},w?{}:N,v,{children:[f.jsxs(AA,Object.assign({interactive:w},w?N:{},{children:[l,u?f.jsx("span",{className:GA,children:" (press backspace or delete to remove)"}):null]})),y?f.jsx(CA,{size:c,isParentInteractive:x,onClick:e=>{e.stopPropagation(),null==u||u()}}):null]}))}KA.displayName="IssueLabelToken";var qA=tt(KA);const UA="topic-tag",YA="topic-tag-interactive",ZA="topic-tag-hover";function QA(e,t){const a=e,{as:n="a",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(UA,YA,ZA,i),"data-component":"TopicTag"},r))}QA.displayName="TopicTag";var XA=tt(QA);const JA="topic-tag-group";function eT(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(JA,i),"data-component":"TopicTag.Group"},r))}eT.displayName="TopicTag.Group";var tT=tt(eT);const aT=Object.assign(XA,{Group:tT}),nT=o.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map},scrollElementIntoView:()=>{}}),iT=o.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:"",trailingActionId:""}),rT=o.createContext(!1),oT="[role=tree]",sT="[role=treeitem]",lT=e=>{var t,a,n;const i=e.getAttribute("aria-label");if(i)return i;const r=e.getAttribute("aria-labelledby");return r?null!==(a=null===(t=document.getElementById(r))||void 0===t?void 0:t.textContent)&&void 0!==a?a:"":null!==(n=e.textContent)&&void 0!==n?n:""},cT=e=>{var t;return Boolean(null===(t=e.parentElement)||void 0===t?void 0:t.closest("[role=treeitem][aria-expanded=false]"))},dT=e=>{const t=e.querySelector(sT);return t instanceof HTMLElement?t:void 0},uT=e=>{var t;const a=null===(t=e.closest("[role=group]"))||void 0===t?void 0:t.closest(sT);return a instanceof HTMLElement?a:void 0},mT=(e,t)=>{const a=e.closest(oT);if(!a)return;const n=Array.from(a.querySelectorAll(sT)),i="next"===t?1:-1;for(let t=n.indexOf(e)+i;t>=0&&t<n.length;t+=i)if(!cT(n[t]))return n[t]},pT=(e,t)=>{var a,n;const i=(null==t?void 0:t.getBoundingClientRect().height)||32,r=null!==(n=null===(a=(e=>{let t=e.parentElement;for(;t;){const{overflowY:e}=getComputedStyle(t);if("auto"===e||"scroll"===e)return t;t=t.parentElement}})(e))||void 0===a?void 0:a.clientHeight)&&void 0!==n?n:window.innerHeight;return Math.max(Math.floor(r/i),1)},hT=(e,t)=>{const a=e.closest(oT);if(!a)return;const n=Array.from(a.querySelectorAll(sT));if(0===n.length)return;const i=pT(a,n[0].firstElementChild),r=n.indexOf(e),o=Math.floor(r/i),s=(o+("next"===t?1:-1))*i+(r-i*o);return n[Math.min(Math.max(s,0),n.length-1)]},gT={"open ArrowRight":dT,"closed ArrowLeft":uT,"end ArrowLeft":uT},fT=new Set(["ArrowLeft","ArrowRight"]),vT={ArrowUp:e=>mT(e,"previous"),ArrowDown:e=>mT(e,"next"),Backspace:uT,Home:e=>{var t;const a=null===(t=e.closest(oT))||void 0===t?void 0:t.querySelector(sT);return a instanceof HTMLElement?a:void 0},End:e=>{const t=e.closest(oT);if(!t)return;const a=Array.from(t.querySelectorAll(sT));for(let e=a.length-1;e>=0;e--)if(!cT(a[e]))return a[e]},PageUp:e=>hT(e,"previous"),PageDown:e=>hT(e,"next")},bT="[role=treeitem]",xT=({containerRef:e})=>{qn(()=>{const t=e.current;if(!t)return;const a=e=>{var a,n,i;const r=Array.from(t.querySelectorAll(bT));if(0===r.length)return;const o=null!==(i=null!==(n=null!==(a=e instanceof HTMLElement&&t.contains(e)?e.closest(bT):null)&&void 0!==a?a:r.find(e=>0===e.tabIndex))&&void 0!==n?n:r.find(e=>"true"===e.getAttribute("aria-current")))&&void 0!==i?i:r[0];for(const e of r)e.tabIndex=e===o?0:-1};a();const n=e=>{a(e.target)},i=e=>{var a;if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const n=null===(a=e.target)||void 0===a?void 0:a.closest(bT);if(!n||!t.contains(n))return;const i=((e,t)=>{var a,n;return fT.has(t)?null===(a=gT[`${(e=>{const t=e.getAttribute("aria-expanded");return"true"===t?"open":"false"===t?"closed":"end"})(e)} ${t}`])||void 0===a?void 0:a.call(gT,e):null===(n=vT[t])||void 0===n?void 0:n.call(vT,e)})(n,e.key);i&&(e.preventDefault(),i.focus())},r=new MutationObserver(()=>a(document.activeElement));return r.observe(t,{childList:!0,subtree:!0}),t.addEventListener("focusin",n),t.addEventListener("keydown",i),()=>{r.disconnect(),t.removeEventListener("focusin",n),t.removeEventListener("keydown",i)}},[e])},yT=({containerRef:e,onFocusChange:t})=>{const a=o.useRef(""),n=o.useRef(0),i=o.useRef(t);o.useEffect(()=>{i.current=t},[t]),o.useEffect(()=>{const t=e.current;if(!t)return;let r=null;const o=new MutationObserver(()=>{r=null});o.observe(t,{childList:!0,subtree:!0});const s=e=>{if(!e.key||e.key.length>1||" "===e.key)return;if(e.ctrlKey||e.altKey||e.metaKey)return;a.current+=e.key;const o=(null!=r||(r=Array.from(t.querySelectorAll("[role=treeitem]"))),r),s=o.findIndex(e=>e===document.activeElement),l=((e,t)=>e.map((a,n)=>e[(t+n)%e.length]))(o,Math.max(s,0)),c=1===a.current.length?l.slice(1):l,d=a.current.toLowerCase(),u=c.find(e=>lT(e).trim().toLowerCase().startsWith(d));u&&i.current(u),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{a.current=""},300),e.preventDefault(),e.stopPropagation()};return t.addEventListener("keydown",s),()=>{o.disconnect(),t.removeEventListener("keydown",s),window.clearTimeout(n.current)}},[e])},wT="tree-view",NT="tree-view-hover",jT="tree-view-coarse",kT="sr-only";function CT(e,t){var a;const{children:n,className:i,flat:r,truncate:l=!0}=e,c=s(e,["children","className","flat","truncate"]),d=o.useRef(null),u=N(t,d),[m,p]=o.useState(""),h=o.useCallback(e=>p(e),[]);xT({containerRef:d}),yT({containerRef:d,onFocusChange:e=>e.focus()});const g=o.useRef(null),v=o.useCallback(e=>{e&&(null!==g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{g.current=null,e.isConnected&&e.scrollIntoView({block:"nearest",inline:"nearest"})}))},[]);o.useEffect(()=>()=>{null!==g.current&&cancelAnimationFrame(g.current)},[]);const b=o.useRef(null);null!==(a=b.current)&&void 0!==a||(b.current=new Map);const x=o.useMemo(()=>({announceUpdate:h,expandedStateCache:b,scrollElementIntoView:v}),[h,v]);return f.jsxs(nT.Provider,{value:x,children:[f.jsx("span",{role:"status","aria-live":"polite",className:kT,"data-component":"TreeView.Announcement",children:m}),f.jsx("ul",Object.assign({ref:u,role:"tree",className:et(wT,NT,jT,i),"data-component":"TreeView","data-omit-spacer":r?"true":void 0,"data-truncate-text":l?"true":"false"},c,{children:n}))]})}CT.displayName="TreeView";var ST=o.forwardRef(CT);const OT="tree-view-directory-icon";function MT(){const{isExpanded:e}=o.useContext(iT),t=e?At:Tt;return f.jsx("span",{className:OT,"data-component":"TreeView.DirectoryIcon",children:f.jsx(t,{})})}MT.displayName="TreeView.DirectoryIcon";const AT=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];function TT(e){const{title:t="Error",children:a,onRetry:n,onDismiss:i}=e,{itemId:r,setIsExpanded:s}=o.useContext(iT);return f.jsx("div",{onKeyDown:e=>{AT.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ErrorDialog",children:f.jsx(Zh,{title:t,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{window.setTimeout(()=>{var e;return null===(e=document.getElementById(r))||void 0===e?void 0:e.focus()}),"confirm"!==e?(s(!1),null==i||i()):null==n||n()},children:a})})}TT.displayName="TreeView.ErrorDialog";const IT="sr-only",DT=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"],LT=e=>{if(!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function PT(e){const{items:t,onClose:a}=e,{itemId:n}=o.useContext(iT);return f.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{DT.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ActionDialog",children:f.jsx(Kf,{title:"Supplemental actions",onClose:()=>{null==a||a(),window.setTimeout(()=>{var e;return null===(e=document.getElementById(n))||void 0===e?void 0:e.focus()})},children:f.jsx(Bn,{children:t.map(({label:e,onClick:t,icon:a,count:n},i)=>f.jsxs(Bn.Item,{onSelect:t,children:[f.jsx(Bn.LeadingVisual,{children:LT(a)}),e,n?f.jsxs(Bn.TrailingVisual,{children:[n,f.jsx("span",{className:IT,children:" items"})]}):null]},i))})})})}PT.displayName="TreeView.ActionDialog";const ET="tree-view-visual",zT="sr-only",$T=(e,t)=>"function"==typeof e?e({isExpanded:t}):e,RT=e=>{const{children:t,label:a,labelId:n,className:i,"data-component":r}=e,{isExpanded:s}=o.useContext(iT);return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:n,className:zT,"aria-hidden":"true",children:a}),f.jsx("span",{className:i,"aria-hidden":"true","data-component":r,children:$T(t,s)})]})},BT="tree-view-leading-action";function VT(e){return f.jsx(RT,{label:e.label,className:BT,"data-component":"TreeView.LeadingAction",children:e.children})}function _T(e){const{leadingVisualId:t}=o.useContext(iT);return f.jsx(RT,{label:e.label,labelId:t,className:ET,"data-component":"TreeView.LeadingVisual",children:e.children})}VT.displayName="TreeView.LeadingAction",_T.displayName="TreeView.LeadingVisual";const FT="tree-view-sub-tree",HT="tree-view-skeleton-row",WT="tree-view-skeleton-text",GT="tree-view-muted",KT="sr-only",qT=["67%","47%","73%","64%","50%"],UT=({index:e})=>f.jsxs("span",{className:HT,style:{"--tree-view-skeleton-width":qT[e%qT.length]},"aria-hidden":"true",children:[f.jsx(pO,{size:16,shape:"square"}),f.jsx(Xg,{className:WT})]}),YT=o.forwardRef(({count:e},t)=>{const a=Jt();return f.jsx(rT.Provider,{value:!0,children:f.jsx(xI,{ref:t,id:a,children:e?f.jsxs(f.Fragment,{children:[Array.from({length:e},(e,t)=>f.jsx(UT,{index:t},t)),f.jsxs("span",{className:KT,children:["Loading ",e," items"]})]}):f.jsxs(f.Fragment,{children:[f.jsx(_T,{children:f.jsx(en,{size:"small",srText:null})}),f.jsx(dr,{className:GT,children:"Loading..."})]})})})});YT.displayName="TreeView.LoadingItem";const ZT=()=>f.jsx(xI,{id:Jt(),expanded:null,children:f.jsx(dr,{className:GT,children:"No items found"})});function QT(e){const{count:t,state:a,children:n,"aria-label":i}=e,{announceUpdate:r}=o.useContext(nT),{itemId:s,isExpanded:l,isSubTreeEmpty:c,setIsSubTreeEmpty:d}=o.useContext(iT),u=o.useRef(null),m=o.useRef(null),[p,h]=o.useState(!1),[g,v]=o.useState(""),b=(e=>{const t=o.useRef(e);return o.useEffect(()=>{t.current=e},[e]),t.current})(a);return o.useEffect(()=>{void 0!==a&&"done"!==a||d(!n)},[a,n,d]),o.useEffect(()=>{var e;const t=document.getElementById(s);if(!t)return;const n=lT(t);if(v(n),"loading"===a)return void r(`${n} content loading`);if("loading"!==b||"done"!==a)return;if(r((null===(e=u.current)||void 0===e?void 0:e.childElementCount)?`${n} content loaded`:`${n} is empty`),!p)return;const i=window.setTimeout(()=>{var e;(null!==(e=dT(t))&&void 0!==e?e:t).focus()});return h(!1),()=>{window.clearTimeout(i)}},[s,a,b,p,r]),o.useEffect(()=>{const e=m.current;if(!e)return;const t=()=>h(!0),a=e=>{e.relatedTarget&&h(!1)};return e.addEventListener("focus",t),e.addEventListener("blur",a),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",a)}},[a]),l?f.jsxs("ul",{ref:u,role:"group","aria-label":i||g,className:et(FT),"data-component":"TreeView.SubTree",children:["loading"===a?f.jsx(YT,{ref:m,count:t}):n,c&&"loading"!==a?f.jsx(ZT,{}):null]}):null}QT.displayName="TreeView.SubTree";const XT="tree-view-trailing-action",JT="shrink",eI="sr-only";function tI(e){const{items:t,shortcutText:a}=e,{itemId:n,trailingActionId:i}=o.useContext(iT),r=()=>{var e;null===(e=document.getElementById(n))||void 0===e||e.focus()};return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:i,className:eI,children:a}),f.jsx("span",{className:XT,"aria-hidden":"true",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),"data-component":"TreeView.TrailingAction",children:t.map(({label:e,onClick:t,icon:a,count:n,className:i},o)=>n?f.jsx(zC,{text:e,children:f.jsx(vn,{variant:"invisible",leadingVisual:a,count:n,"aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(JT,i)})},o):f.jsx(yn,{icon:a,variant:"invisible","aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(JT,i)},o))})]})}function aI(e){const{trailingVisualId:t}=o.useContext(iT);return f.jsx(RT,{label:e.label,labelId:t,className:ET,"data-component":"TreeView.TrailingVisual",children:e.children})}tI.displayName="TreeView.TrailingAction",aI.displayName="TreeView.TrailingVisual";const nI="tree-view-item",iI="tree-view-item-container",rI="tree-view-item-container-flat",oI="tree-view-item-container-has-leading-action",sI="tree-view-item-container-current",lI="tree-view-item-container-loading",cI="tree-view-item-spacer",dI="tree-view-item-level-lines",uI="tree-view-item-level-line",mI="tree-view-item-toggle",pI="tree-view-item-toggle-hover",hI="tree-view-item-toggle-end",gI="tree-view-item-content",fI="tree-view-item-label",vI=({level:e})=>f.jsx("span",{className:dI,children:Array.from({length:e-1},(e,t)=>f.jsx("span",{className:uI},t))});function bI(e,t){const a=e,{as:n,id:i,children:r,className:l,current:c=!1,defaultExpanded:d,expanded:u,onExpandedChange:m,onSelect:p,containIntrinsicSize:h,secondaryActions:g,"aria-label":v,"aria-labelledby":b}=a,x=s(a,["as","id","children","className","current","defaultExpanded","expanded","onExpandedChange","onSelect","containIntrinsicSize","secondaryActions","aria-label","aria-labelledby"]),{expandedStateCache:y,scrollElementIntoView:w}=o.useContext(nT),{level:N}=o.useContext(iT),j=o.useContext(rT),k=Hx(),[C,S]=(e=>va(e,{leadingAction:VT,leadingVisual:_T,trailingVisual:aI,subTree:QT}))(r),O=Boolean(C.subTree),M=Jt(),A=Jt(),T=Jt(),I=Jt(),D=void 0!==u,[L,P]=o.useState(()=>{var e,t,a;return null!==(a=null!==(t=null===(e=y.current)||void 0===e?void 0:e.get(i))&&void 0!==t?t:d)&&void 0!==a?a:c}),E=D?!0===u:L,[z,$]=o.useState(!O),[R,B]=o.useState(!1),[V,_]=o.useState(!1),F=o.useCallback(e=>{var t;P(e),null===(t=y.current)||void 0===t||t.set(i,e),null==m||m(e)},[i,y,m]),H=o.useCallback(e=>{F(!E),null==e||e.stopPropagation()},[E,F]),W=o.useCallback(()=>{(null==g?void 0:g.length)&&(1!==g.length?_(!0):g[0].onClick())},[g]),G=`Press (${Rx(`Shift+${"apple"===k?"Meta":"Control"}+U`,k)}) for more actions.`,K=[C.leadingVisual?A:void 0,C.trailingVisual?T:void 0].filter(Boolean),q=o.useMemo(()=>({itemId:i,level:N+1,isSubTreeEmpty:z,setIsSubTreeEmpty:$,isExpanded:E,setIsExpanded:F,leadingVisualId:A,trailingVisualId:T,trailingActionId:I}),[i,N,z,E,F,A,T,I]),U=(!z||E&&O)&&null!==u?E:void 0,Y=null!=n?n:"li",Z=void 0!==n&&"li"!==n,Q=f.jsxs(Y,Object.assign({ref:t,id:i,role:"treeitem",tabIndex:-1,"aria-label":g&&v?`${v}. ${G}`:v,"aria-labelledby":v?void 0:`${b||M} ${g?I:""}`.trim(),"aria-describedby":K.length>0?K.join(" "):void 0,"aria-level":N,"aria-expanded":U,"aria-current":c?"true":void 0,"aria-selected":R?"true":"false",className:et(nI,l),"data-component":"TreeView.Item","data-has-leading-action":C.leadingAction?"":void 0,"data-loading":j?"":void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":p?p(e):H(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!1);break;case"U":case"u":if(!e.shiftKey||!e.metaKey&&!e.ctrlKey)return;W()}},onClick:e=>{p?p(e):H(e),e.stopPropagation()},onAuxClick:e=>{p&&1===e.button&&p(e),e.stopPropagation()},onFocus:e=>{w(e.currentTarget.firstElementChild),B(!0),e.stopPropagation()},onBlur:()=>B(!1)},x,{children:[f.jsxs("span",{className:et(iI,rI,C.leadingAction&&oI,c&&sI,j&&lI),style:{"--tree-view-level":N,contentVisibility:h?"auto":void 0,containIntrinsicSize:h},children:[f.jsx("span",{className:cI,children:f.jsx(vI,{level:N})}),C.leadingAction,O?f.jsx("span",{className:et(mI,p&&pI,1===N&&hI),onClick:e=>{p&&H(e)},"data-component":"TreeView.Item.Toggle",children:E?f.jsx(bt,{width:12,height:12}):f.jsx(yt,{width:12,height:12})}):null,f.jsxs("span",{id:M,className:gI,children:[C.leadingVisual,f.jsx("span",{className:fI,"data-component":"TreeView.Item.Label",children:S}),C.trailingVisual]}),(null==g?void 0:g.length)?f.jsx(tI,{items:g,shortcutText:G}):null]}),C.subTree,V&&g?f.jsx(PT,{items:g,onClose:()=>_(!1)}):null]}));return f.jsx(iT.Provider,{value:q,children:Z?f.jsx("li",{role:"none",children:Q}):Q})}bI.displayName="TreeView.Item";var xI=tt(bI);const yI=Object.assign(ST,{Item:xI,SubTree:QT,LeadingAction:VT,LeadingVisual:_T,TrailingVisual:aI,DirectoryIcon:MT,ErrorDialog:TT}),wI=125,NI="truncate-text",jI="truncate-text-block",kI="inline-block align-top",CI="truncate-text-expandable";function SI(e,t){const a=e,{as:n="div",className:i,title:r,maxWidth:o=wI,inline:l,expandable:c,style:d}=a,u=s(a,["as","className","title","maxWidth","inline","expandable","style"]);return f.jsx(n,Object.assign({ref:t,title:r,className:et(NI,l?kI:jI,c&&CI,i),style:Object.assign(Object.assign({},d),{"--truncate-max-width":"number"==typeof o?`${o}px`:o}),"data-component":"Truncate","data-inline":l,"data-expandable":c},u))}SI.displayName="Truncate";var OI=tt(SI);const MI=["bytes","KB","MB","GB","TB"],AI=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${MI[0]}`;let t=e,a=0;for(;t>=1024&&a<MI.length-1;)t/=1024,a+=1;return`${0===a?Math.round(t):Math.round(10*t)/10} ${MI[a]}`},TI=(e,t)=>{const a=(null!=t?t:"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean);if(0===a.length)return!0;const n=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(e=>e.startsWith(".")?n.endsWith(e):e.endsWith("/*")?i.startsWith(e.slice(0,-1)):i===e)},II=(e,t)=>{const{accept:a,maxSize:n,multiple:i}=t,r=[],o=[];return e.forEach(e=>{TI(e,a)?void 0!==n&&e.size>n?o.push({file:e,reason:"size"}):!i&&r.length>0?o.push({file:e,reason:"count"}):r.push(e):o.push({file:e,reason:"type"})}),{accepted:r,rejected:o}},DI=e.createContext({}),LI="upload-description";function PI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{descriptionId:r}=o.useContext(DI);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(LI,a),"data-component":"Upload.Description"},i))}PI.displayName="Upload.Description";var EI=tt(PI);const zI="upload-icon";function $I(e,t){const{icon:a=pt,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(zI,n),"data-component":"Upload.Icon"},r,{children:f.jsx(a,{})}))}$I.displayName="Upload.Icon";var RI=tt($I);const BI="upload-label";function VI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{labelId:r}=o.useContext(DI);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(BI,a),"data-component":"Upload.Label"},i))}VI.displayName="Upload.Label";var _I=tt(VI);const FI="upload-list";function HI(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]);return 0===o.Children.toArray(n).length?null:f.jsx("ul",Object.assign({ref:t,role:"list",className:et(FI,a),"data-component":"Upload.List"},i,{children:n}))}HI.displayName="Upload.List";var WI=tt(HI);const GI="sr-only",KI=Xe("upload",{variants:{size:{small:"upload-small",medium:"upload-medium",large:"upload-large"}}}),qI=Xe("upload-zone",{variants:{dragging:{true:"upload-zone-dragging",false:""},disabled:{true:"upload-zone-disabled",false:"upload-zone-interactive"},validation:{error:"upload-zone-error",success:"upload-zone-success"}}});function UI(e,t){const{className:a,children:n,size:i="medium",accept:r,multiple:l,disabled:c,required:d,name:u,maxSize:m,validationStatus:p,onSelect:h,onReject:g,id:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","children","size","accept","multiple","disabled","required","name","maxSize","validationStatus","onSelect","onReject","id","aria-label","aria-labelledby","aria-describedby"]),N=o.useRef(null),j=Jt(v),k=Jt(),C=Jt(),S=o.useRef(0),[O,M]=o.useState(!1),[A,T]=va(n,{icon:RI,label:_I,description:EI,list:WI}),I=(e,t)=>{const{accepted:a,rejected:n}=II(e,{accept:r,maxSize:m,multiple:l});"drop"===t&&a.length>0&&((e,t)=>{if(!e||"undefined"==typeof DataTransfer)return;const a=new DataTransfer;t.forEach(e=>a.items.add(e)),e.files=a.files})(N.current,a),n.length>0&&(null==g||g(n,t)),a.length>0&&(null==h||h(a,t))},D=null!=x?x:A.label&&!b?k:void 0,L=[A.description?C:void 0,y].filter(Boolean).join(" ")||void 0;return f.jsx(DI.Provider,{value:{labelId:k,descriptionId:C},children:f.jsxs("div",Object.assign({ref:t,className:et(KI({size:i}),a),"data-component":"Upload","data-size":i,"data-disabled":c,"data-dragging":O||void 0,"data-validation":p},w,{children:[f.jsxs("label",{className:et(qI({dragging:O,disabled:Boolean(c),validation:p})),onDragEnter:e=>{c||(e.preventDefault(),S.current+=1,M(!0))},onDragOver:e=>{c||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))},onDragLeave:()=>{c||(S.current=Math.max(S.current-1,0),0===S.current&&M(!1))},onDrop:e=>{var t,a;c||(e.preventDefault(),S.current=0,M(!1),I(Array.from(null!==(a=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)&&void 0!==a?a:[]),"drop"))},"data-component":"Upload.Zone",children:[f.jsx("input",{ref:N,id:j,type:"file",name:u,accept:r,multiple:l,disabled:c,required:d,onChange:e=>{var t;I(Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),"input")},className:GI,"aria-label":b,"aria-labelledby":D,"aria-describedby":L,"aria-invalid":"error"===p||void 0,"data-component":"Upload.Input"}),A.icon,A.label,A.description]}),A.list,T]}))})}UI.displayName="Upload";var YI=tt(UI);const ZI="upload-item",QI="upload-item-icon",XI="upload-item-body",JI="upload-item-heading",eD="upload-item-name",tD="upload-item-file-size",aD="upload-item-description",nD="upload-item-description-error",iD="upload-item-status",rD={success:{icon:ft,className:"upload-item-status-success"},error:{icon:Ot,className:"upload-item-status-error"}};function oD(e,t){const{className:a,name:n,fileSize:i,status:r="pending",progress:o,description:l,icon:c=St,onRemove:d,removeLabel:u,children:m}=e,p=s(e,["className","name","fileSize","status","progress","description","icon","onRemove","removeLabel","children"]),h="success"===r||"error"===r?rD[r]:void 0,g=null==h?void 0:h.icon;return f.jsxs("li",Object.assign({ref:t,className:et(ZI,a),"data-component":"Upload.Item","data-status":r},p,{children:[f.jsx("span",{className:QI,"aria-hidden":"true","data-component":"Upload.Item.Icon",children:f.jsx(c,{})}),f.jsxs("span",{className:XI,children:[f.jsxs("span",{className:JI,children:[f.jsx("span",{className:eD,"data-component":"Upload.Item.Name",children:n}),void 0===i?null:f.jsx("span",{className:tD,"data-component":"Upload.Item.Size",children:AI(i)})]}),"uploading"===r?f.jsx(Tk,{progress:o,variant:"accent",size:"small",animated:!0,"aria-label":`Uploading ${n}`}):null,l?f.jsx("span",{className:et(aD,"error"===r&&nD),"data-component":"Upload.Item.Description",children:l}):null,m]}),g?f.jsx("span",{className:et(iD,null==h?void 0:h.className),"aria-hidden":"true","data-component":"Upload.Item.Status",children:f.jsx(g,{})}):null,d?f.jsx(yn,{icon:Ct,variant:"invisible",size:"small","aria-label":null!=u?u:`Remove ${n}`,onClick:d,"data-component":"Upload.Item.RemoveButton"}):null]}))}oD.displayName="Upload.Item";var sD=tt(oD);const lD=Object.assign(YI,{Icon:RI,Label:_I,Description:EI,List:WI,Item:sD}),cD=(t,{isPropUpdateDisabled:a=!1,isEqual:n=Object.is}={})=>{const[i,r]=e.useState(t),[o,s]=e.useState(t),l=t instanceof Function?t():t;return a||n(o,l)||(s(l),r(l)),[i,r]},dD=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),uD=()=>e.useContext(dD),mD="(prefers-color-scheme: dark)",pD=e=>{var t;const a=null===(t=null===window||void 0===window?void 0:window.matchMedia)||void 0===t?void 0:t.call(window,mD);return null==a||a.addEventListener("change",e),()=>null==a?void 0:a.removeEventListener("change",e)},hD=()=>{var e,t;return(null===(t=null===(e=null===window||void 0===window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,mD))||void 0===t?void 0:t.matches)?"night":"day"},gD=()=>"day";function fD(e){var t,a,n,i,r,l,{children:c,className:d,contextOnly:u}=e,m=s(e,["children","className","contextOnly"]);const{colorMode:p,dayScheme:h,nightScheme:g}=uD(),[v,b]=cD(null!==(a=null!==(t=m.colorMode)&&void 0!==t?t:p)&&void 0!==a?a:"day"),[x,y]=cD(null!==(i=null!==(n=m.dayScheme)&&void 0!==n?n:h)&&void 0!==i?i:"light"),[w,N]=cD(null!==(l=null!==(r=m.nightScheme)&&void 0!==r?r:g)&&void 0!==l?l:"dark"),j=o.useSyncExternalStore(pD,hD,gD),k=((e,t)=>"auto"===e?t:e)(v,j),C=((e,t,a)=>{switch(e){case"day":case"light":return t;case"night":case"dark":return a}})(k,x,w),S=o.useMemo(()=>({colorScheme:C,colorMode:v,resolvedColorMode:k,dayScheme:x,nightScheme:w,setColorMode:b,setDayScheme:y,setNightScheme:N}),[C,v,k,x,w,b,y,N]);return u?f.jsx(dD.Provider,{value:S,children:c}):f.jsx(dD.Provider,{value:S,children:f.jsx("div",{className:d,"data-component":"ThemeProvider","data-theme":C,"data-color-mode":v,children:c})})}fD.displayName="ThemeProvider",exports.ARROW_KEY_STEP=3,exports.Accordion=sa,exports.AccordionContext=at,exports.AccordionHeader=Xt,exports.AccordionItem=aa,exports.AccordionItemContext=Wt,exports.AccordionPanel=oa,exports.ActionBar=Qi,exports.ActionBarButton=Zi,exports.ActionBarContext=wi,exports.ActionBarDivider=Oi,exports.ActionBarGroup=Ii,exports.ActionBarIconButton=Pi,exports.ActionBarItemContext=Ni,exports.ActionBarMenu=Bi,exports.ActionList=Bn,exports.ActionListContainerContext=Oa,exports.ActionListContext=Na,exports.ActionListDescription=za,exports.ActionListDivider=Ra,exports.ActionListGroup=Ya,exports.ActionListGroupContext=Ba,exports.ActionListGroupHeading=Ga,exports.ActionListHeading=Sa,exports.ActionListItem=zn,exports.ActionListItemContext=La,exports.ActionListLeadingVisual=on,exports.ActionListLinkItem=Rn,exports.ActionListSubItem=sn,exports.ActionListTrailingAction=kn,exports.ActionListTrailingVisual=Cn,exports.ActionMenu=yi,exports.ActionMenuAnchor=_n,exports.ActionMenuButton=Fn,exports.ActionMenuContext=Vn,exports.ActionMenuOverlay=xi,exports.Alert=er,exports.AnchoredOverlay=vi,exports.AspectRatio=nr,exports.Autocomplete=Er,exports.AutocompleteContext=ir,exports.AutocompleteDeferredInputContext=or,exports.AutocompleteInput=Sr,exports.AutocompleteInputContext=rr,exports.AutocompleteMenu=Ir,exports.AutocompleteOverlay=Pr,exports.Avatar=Vr,exports.AvatarStack=Wr,exports.BAR_RADIUS=4,exports.Banner=bo,exports.BannerContext=Gr,exports.BannerDescription=qr,exports.BannerPrimaryAction=go,exports.BannerSecondaryAction=vo,exports.BannerTitle=Zr,exports.Blankslate=Go,exports.BlankslateDescription=ko,exports.BlankslateHeading=Oo,exports.BlankslatePrimaryAction=Lo,exports.BlankslateSecondaryAction=Vo,exports.BlankslateVisual=Wo,exports.Breadcrumbs=ds,exports.BreadcrumbsContext=qo,exports.BreadcrumbsItem=cs,exports.Button=vn,exports.ButtonGroup=bs,exports.CHART_OVERFLOW_COLOR=zc,exports.CHART_SERIES_COLORS=Ec,exports.Calendar=Sl,exports.CalendarDay=Ms,exports.Card=ec,exports.CardAction=Al,exports.CardDescription=Ll,exports.CardHeading=$l,exports.CardIcon=_l,exports.CardImage=Wl,exports.CardMetadata=ql,exports.Carousel=Ac,exports.CarouselContext=ac,exports.CarouselControls=vc,exports.CarouselIndicators=lc,exports.CarouselNextButton=dc,exports.CarouselPlayButton=mc,exports.CarouselPreviousButton=hc,exports.CarouselSlide=yc,exports.CarouselSlideContext=nc,exports.Chart=km,exports.ChartLegend=Pc,exports.ChartTooltip=am,exports.Checkbox=Lm,exports.CheckboxGroup=ap,exports.CheckboxGroupCaption=zm,exports.CheckboxGroupContext=Cm,exports.CheckboxGroupLabel=Fm,exports.CheckboxGroupValidation=qm,exports.Collapsible=wp,exports.CollapsibleContent=dp,exports.CollapsibleContext=np,exports.CollapsibleTrigger=yp,exports.CommandPalette=uh,exports.CommandPaletteContext=kp,exports.CommandPaletteDialog=$p,exports.CommandPaletteEmpty=Vp,exports.CommandPaletteGroup=Gp,exports.CommandPaletteGroupContext=Cp,exports.CommandPaletteInput=Up,exports.CommandPaletteItem=eh,exports.CommandPaletteList=ih,exports.CommandPaletteLoading=sh,exports.CommandPaletteSeparator=dh,exports.ConfirmationDialog=Zh,exports.CounterLabel=un,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=Ys,exports.DEFAULT_AVATAR_SIZE=$r,exports.DEFAULT_COLOR_MODE="day",exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=zA,exports.DEFAULT_RELATIVE_TIME_PREFIX=lC,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=sC,exports.DEFAULT_SORT_DIRECTION=wf,exports.DEFAULT_TABLE_PAGE_SIZE=zg,exports.DEFAULT_TABLE_SKELETON_ROWS=nf,exports.DEFAULT_TEXTAREA_COLS=Ib,exports.DEFAULT_TEXTAREA_RESIZE=Db,exports.DEFAULT_TEXTAREA_ROWS=Tb,exports.DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY=aA,exports.DEFAULT_TOKEN_SIZE=yA,exports.DEFAULT_TRUNCATE_MAX_WIDTH=wI,exports.DataTable=Df,exports.DatePicker=Rf,exports.Details=Gf,exports.DetailsSummary=Wf,exports.Dialog=Kf,exports.DialogBody=bh,exports.DialogButtons=yh,exports.DialogCloseButton=Nh,exports.DialogContext=xh,exports.DialogFooter=Sh,exports.DialogHeader=Ah,exports.DialogSubtitle=Dh,exports.DialogTitle=Eh,exports.DragHandle=QN,exports.Drawer=vv,exports.DrawerBody=Yf,exports.DrawerCloseButton=Jf,exports.DrawerContext=Zf,exports.DrawerFooter=av,exports.DrawerHeader=ov,exports.DrawerSubtitle=cv,exports.DrawerTitle=mv,exports.EmptyState=Cv,exports.FilteredActionList=bb,exports.FilteredActionListBodyLoader=rb,exports.FilteredActionListInput=Gv,exports.FilteredActionListItem=Uv,exports.FormControl=xx,exports.FormControlCaption=Gb,exports.FormControlContext=_b,exports.FormControlLabel=Qb,exports.FormControlLeadingVisual=ax,exports.FormControlValidation=sx,exports.Heading=wa,exports.Hidden=Nx,exports.IconButton=yn,exports.InlineMessage=Mx,exports.IssueLabelToken=qA,exports.KeybindingHint=Qx,exports.Label=ey,exports.Link=Ro,exports.LinkButton=ay,exports.MARK_GAP=2,exports.MAX_BAR_THICKNESS=24,exports.NavList=Ly,exports.NavListGroup=hy,exports.NavListGroupExpand=Ay,exports.NavListGroupHeading=Dy,exports.NavListHeading=ry,exports.NavListItem=Sy,exports.NavListSubNav=Ny,exports.PageContent=Gy,exports.PageContentSection=Wy,exports.PageFooter=yw,exports.PageFooterActions=dw,exports.PageFooterCopyright=pw,exports.PageFooterDescription=fw,exports.PageFooterLeadingVisual=xw,exports.PageFooterNavigation=aw,exports.PageHeader=wN,exports.PageHeaderActions=_w,exports.PageHeaderBreadcrumbs=Ww,exports.PageHeaderContextArea=qw,exports.PageHeaderContextAreaActions=Zw,exports.PageHeaderContextBar=Jw,exports.PageHeaderDescription=aN,exports.PageHeaderLeadingAction=rN,exports.PageHeaderLeadingVisual=lN,exports.PageHeaderNavigation=Iw,exports.PageHeaderParentLink=uN,exports.PageHeaderTitle=hN,exports.PageHeaderTitleArea=Pw,exports.PageHeaderTrailingAction=vN,exports.PageHeaderTrailingVisual=yN,exports.PageLayout=zj,exports.PageLayoutContent=kj,exports.PageLayoutContext=jN,exports.PageLayoutFooter=DN,exports.PageLayoutHeader=RN,exports.PageLayoutPane=Ej,exports.PageLayoutSidebar=pj,exports.PageSidebar=pk,exports.PageSidebarActions=Uj,exports.PageSidebarContent=Qj,exports.PageSidebarFooter=ek,exports.PageSidebarHeader=nk,exports.PageSidebarNavigation=ok,exports.PageSidebarSection=ck,exports.PageSidebarTitle=mk,exports.Pagination=yk,exports.Placeholder=jk,exports.PlatformContext=Bx,exports.Portal=oi,exports.PortalContext=Jn,exports.ProgressBar=Tk,exports.ProgressBarItem=Sk,exports.Radio=kb,exports.RadioGroup=Jk,exports.RadioGroupCaption=Lk,exports.RadioGroupContext=xb,exports.RadioGroupLabel=Bk,exports.RadioGroupValidation=Wk,exports.RelativeTime=NC,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=gh,exports.SegmentedControl=mS,exports.SegmentedControlButton=JC,exports.SegmentedControlIconButton=nS,exports.Select=vS,exports.SelectOptGroup=hS,exports.SelectOption=fS,exports.SelectPanel=lO,exports.SelectPanelButton=xS,exports.SelectPanelContext=yS,exports.SelectPanelFooter=OS,exports.SelectPanelHeader=_S,exports.SelectPanelLoading=JS,exports.SelectPanelMessage=aO,exports.SelectPanelSearchInput=TS,exports.SelectPanelSecondaryAction=sO,exports.Separator=uO,exports.SkeletonAvatar=pO,exports.SkeletonBox=Yg,exports.SkeletonText=Xg,exports.Slider=vO,exports.Spinner=en,exports.Stack=tb,exports.StackItem=eb,exports.StateLabel=kO,exports.Tab=zO,exports.TabList=_O,exports.TabPanel=WO,exports.Table=Lf,exports.TableActions=ig,exports.TableBody=lg,exports.TableCell=pg,exports.TableCellPlaceholder=fg,exports.TableContainer=yg,exports.TableDivider=jg,exports.TableErrorDialog=Cg,exports.TableHead=Og,exports.TableHeader=Dg,exports.TablePagination=Hg,exports.TableRow=Gg,exports.TableSkeleton=of,exports.TableSortHeader=hf,exports.TableSubtitle=vf,exports.TableTitle=yf,exports.Tabs=GO,exports.TabsContext=CO,exports.Text=dr,exports.TextInput=Nr,exports.TextInputAction=wr,exports.Textarea=Vb,exports.ThemeContext=dD,exports.ThemeProvider=fD,exports.Timeline=jM,exports.TimelineActions=eM,exports.TimelineAvatar=nM,exports.TimelineBadge=sM,exports.TimelineBody=dM,exports.TimelineBreak=hM,exports.TimelineItem=NM,exports.Toaster=tA,exports.ToggleSwitch=bA,exports.Token=EA,exports.TokenBase=jA,exports.TokenRemoveButton=CA,exports.TokenText=AA,exports.Tooltip=zC,exports.TooltipContext=jC,exports.TopicTag=aT,exports.TopicTagGroup=tT,exports.TreeView=yI,exports.TreeViewDirectoryIcon=MT,exports.TreeViewErrorDialog=TT,exports.TreeViewItem=xI,exports.TreeViewItemContext=iT,exports.TreeViewLeadingAction=VT,exports.TreeViewLeadingVisual=_T,exports.TreeViewRootContext=nT,exports.TreeViewSubTree=QT,exports.TreeViewTrailingVisual=aI,exports.Truncate=OI,exports.Upload=lD,exports.UploadContext=DI,exports.UploadDescription=EI,exports.UploadIcon=RI,exports.UploadItem=sD,exports.UploadLabel=_I,exports.UploadList=WI,exports.buildPaginationModel=Lg,exports.buildPaginationPageData=Pg,exports.commandScore=jp,exports.createColumnHelper=()=>({column:e=>{var t;return Object.assign(Object.assign({},e),{id:null!==(t=e.id)&&void 0!==t?t:e.field})}}),exports.defaultPaneWidth=VN,exports.extendRange=cl,exports.formatFileSize=AI,exports.formatRelativeTime=yC,exports.formatTitle=xC,exports.getAccessibleKeybindingHintString=Rx,exports.getAnchoredPosition=ui,exports.getCharacterCount=ur,exports.getFirstDayOfWeek=tl,exports.getIssueLabelColors=VA,exports.getMonthWeeks=il,exports.getPlatform=_x,exports.getRangePosition=ll,exports.getSeriesColor=$c,exports.getWeekdays=al,exports.isDateSelectable=rl,exports.isDateWithinRange=sl,exports.isFileAccepted=TI,exports.isTokenInteractive=wA,exports.parseDate=dl,exports.registerPortalRoot=ii,exports.sortStrategies=Cf,exports.startOfWeek=nl,exports.toDayKey=Xs,exports.toast=RM,exports.transitionSortDirection=Nf,exports.triageFiles=II,exports.updateAriaValues=KN,exports.useAnnouncements=ob,exports.useColorSchemeVar=(e,t)=>{var a;const{colorScheme:n}=uD();return null!==(a=n?e[n]:void 0)&&void 0!==a?a:t},exports.useConfirm=()=>Qh,exports.useFormControlForwardedProps=bx,exports.usePaneWidth=tj,exports.usePlatform=Hx,exports.useTab=AO,exports.useTabList=$O,exports.useTabPanel=FO,exports.useTabs=MO,exports.useTheme=uD;
|
|
10
|
+
*/function g(){return m||(m=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===S?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return"Fragment";case v:return"Profiler";case f:return"StrictMode";case w:return"Suspense";case N:return"SuspenseList";case C:return"Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case x:return e.displayName||"Context";case b:return(e._context.displayName||"Context")+".Consumer";case y:var a=e.render;return(e=e.displayName)||(e=""!==(e=a.displayName||a.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(a=e.displayName||null)?a:t(e.type)||"Memo";case k:a=e._payload,e=e._init;try{return t(e(a))}catch(e){}}return null}function a(e){return""+e}function n(e){try{a(e);var t=!1}catch(e){t=!0}if(t){var n=(t=console).error,i="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),a(e)}}function i(e){if(e===g)return"<>";if("object"==typeof e&&null!==e&&e.$$typeof===k)return"<...>";try{var a=t(e);return a?"<"+a+">":"<...>"}catch(e){return"<...>"}}function r(){return Error("react-stack-top-frame")}function o(){var e=t(this.type);return I[e]||(I[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(e=this.props.ref)?e:null}function s(e,a,i,r,s,c){var u,p=a.children;if(void 0!==p)if(r)if(A(p)){for(r=0;r<p.length;r++)l(p[r]);Object.freeze&&Object.freeze(p)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else l(p);if(M.call(a,"key")){p=t(e);var h=Object.keys(a).filter(function(e){return"key"!==e});r=0<h.length?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}",z[p+r]||(h=0<h.length?"{"+h.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',r,p,h,p),z[p+r]=!0)}if(p=null,void 0!==i&&(n(i),p=""+i),function(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(a)&&(n(a.key),p=""+a.key),"key"in a)for(var g in i={},a)"key"!==g&&(i[g]=a[g]);else i=a;return p&&function(e,t){function a(){d||(d=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}(i,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,t,a,n,i,r){var s=a.ref;return e={$$typeof:m,type:e,key:t,props:a,_owner:n},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:!1,get:o}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:r}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,i,null===(u=O.A)?null:u.getOwner(),s,c)}function l(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===k&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function c(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}var d,u=e,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),O=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,A=Array.isArray,T=console.createTask?console.createTask:function(){return null},I={},D=(u={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(u,r)(),L=T(i(r)),z={};h.Fragment=g,h.jsx=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!1,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)},h.jsxs=function(e,t,a){var n=1e4>O.recentlyCreatedOwnerStacks++;return s(e,t,a,!0,n?Error("react-stack-top-frame"):D,n?T(i(e)):L)}}()),h}var f=(p||(p=1,"production"===process.env.NODE_ENV?d.exports=function(){if(c)return u;c=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(t,a,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==a.key&&(i=""+a.key),"key"in a)for(var r in n={},a)"key"!==r&&(n[r]=a[r]);else n=a;return a=n.ref,{$$typeof:e,type:t,key:i,ref:void 0!==a?a:null,props:n}}return u.Fragment=t,u.jsx=a,u.jsxs=a,u}():d.exports=g()),d.exports);const v=!("undefined"==typeof window||!window.document||!window.document.createElement),b=e.version.split("."),x=parseInt(b[0],10),y=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(e.version),w=x>=19||y,N=(t,a)=>e.useCallback(e=>{const n=j(t,e),i=j(a,e);if(w)return()=>{n?n():j(t,null),i?i():j(a,null)}},[t,a]),j=(e,t)=>{if("function"==typeof e)return e(t);e&&(e.current=t)};function k(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(a=k(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function C(){for(var e,t,a=0,n="",i=arguments.length;a<i;a++)(e=arguments[a])&&(t=k(e))&&(n&&(n+=" "),n+=t);return n}const S=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a}),O="-",M=[],A=e=>{const t=D(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return I(e);const a=e.split(O),n=""===a[0]&&a.length>1?1:0;return T(a,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],i=a[e];return t?i?((e,t)=>{const a=new Array(e.length+t.length);for(let t=0;t<e.length;t++)a[t]=e[t];for(let n=0;n<t.length;n++)a[e.length+n]=t[n];return a})(i,t):t:i||M}return a[e]||M}}},T=(e,t,a)=>{if(0===e.length-t)return a.classGroupId;const n=e[t],i=a.nextPart.get(n);if(i){const a=T(e,t+1,i);if(a)return a}const r=a.validators;if(null===r)return;const o=0===t?e.join(O):e.slice(t).join(O),s=r.length;for(let e=0;e<s;e++){const t=r[e];if(t.validator(o))return t.classGroupId}},I=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),a=t.indexOf(":"),n=t.slice(0,a);return n?"arbitrary.."+n:void 0})(),D=e=>{const{theme:t,classGroups:a}=e;return L(a,t)},L=(e,t)=>{const a=S();for(const n in e){const i=e[n];z(i,a,n,t)}return a},z=(e,t,a,n)=>{const i=e.length;for(let r=0;r<i;r++){const i=e[r];E(i,t,a,n)}},E=(e,t,a,n)=>{"string"!=typeof e?"function"!=typeof e?R(e,t,a,n):$(e,t,a,n):P(e,t,a)},P=(e,t,a)=>{(""===e?t:B(t,e)).classGroupId=a},$=(e,t,a,n)=>{V(e)?z(e(n),t,a,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(a,e)))},R=(e,t,a,n)=>{const i=Object.entries(e),r=i.length;for(let e=0;e<r;e++){const[r,o]=i[e];z(o,B(t,r),a,n)}},B=(e,t)=>{let a=e;const n=t.split(O),i=n.length;for(let e=0;e<i;e++){const t=n[e];let i=a.nextPart.get(t);i||(i=S(),a.nextPart.set(t,i)),a=i}return a},V=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),n=Object.create(null);const i=(i,r)=>{a[i]=r,t++,t>e&&(t=0,n=a,a=Object.create(null))};return{get(e){let t=a[e];return void 0!==t?t:void 0!==(t=n[e])?(i(e,t),t):void 0},set(e,t){e in a?a[e]=t:i(e,t)}}},F=[],H=(e,t,a,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:n,isExternal:i}),W=e=>{const{prefix:t,experimentalParseClassName:a}=e;let n=e=>{const t=[];let a,n=0,i=0,r=0;const o=e.length;for(let s=0;s<o;s++){const o=e[s];if(0===n&&0===i){if(":"===o){t.push(e.slice(r,s)),r=s+1;continue}if("/"===o){a=s;continue}}"["===o?n++:"]"===o?n--:"("===o?i++:")"===o&&i--}const s=0===t.length?e:e.slice(r);let l=s,c=!1;s.endsWith("!")?(l=s.slice(0,-1),c=!0):s.startsWith("!")&&(l=s.slice(1),c=!0);return H(t,c,l,a&&a>r?a-r:void 0)};if(t){const e=t+":",a=n;n=t=>t.startsWith(e)?a(t.slice(e.length)):H(F,!1,t,void 0,!0)}if(a){const e=n;n=t=>a({className:t,parseClassName:e})}return n},G=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,a)=>{t.set(e,1e6+a)}),e=>{const a=[];let n=[];for(let i=0;i<e.length;i++){const r=e[i],o="["===r[0],s=t.has(r);o||s?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(r)):n.push(r)}return n.length>0&&(n.sort(),a.push(...n)),a}},q=e=>{const t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let e=0;e<a.length;e++)t[a[e]]=!0;return t},K=/\s+/,U=e=>{if("string"==typeof e)return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=U(e[n]))&&(a&&(a+=" "),a+=t);return a},Y=(e,...t)=>{let a,n,i,r;const o=e=>{const t=n(e);if(t)return t;const r=((e,t)=>{const{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:r,postfixLookupClassGroupIds:o}=t,s=[],l=e.trim().split(K);let c="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}=a(t);if(d){c=t+(c.length>0?" "+c:c);continue}let g,f=!!h;if(f){g=n(p.substring(0,h));const e=g&&o[g]?n(p):void 0;e&&e!==g&&(g=e,f=!1)}else g=n(p);if(!g){if(!f){c=t+(c.length>0?" "+c:c);continue}if(g=n(p),!g){c=t+(c.length>0?" "+c:c);continue}f=!1}const v=0===u.length?"":1===u.length?u[0]:r(u).join(":"),b=m?v+"!":v,x=b+g;if(s.indexOf(x)>-1)continue;s.push(x);const y=i(g,f);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?" "+c:c)}return c})(e,a);return i(e,r),r};return r=s=>{const l=t.reduce((e,t)=>t(e),e());return a=(e=>({cache:_(e.cacheSize),parseClassName:W(e),sortModifiers:G(e),postfixLookupClassGroupIds:q(e),...A(e)}))(l),n=a.cache.get,i=a.cache.set,r=o,o(s)},(...e)=>r(((...e)=>{let t,a,n=0,i="";for(;n<e.length;)(t=e[n++])&&(a=U(t))&&(i&&(i+=" "),i+=a);return i})(...e))},Z=[],Q=e=>{const t=t=>t[e]||Z;return t.isThemeGetter=!0,t},X=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,J=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ee=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,te=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ie=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,re=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oe=e=>ee.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),le=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&se(e.slice(0,-1)),de=e=>te.test(e),ue=()=>!0,me=e=>ae.test(e)&&!ne.test(e),pe=()=>!1,he=e=>ie.test(e),ge=e=>re.test(e),fe=e=>!xe(e)&&!Oe(e),ve=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),be=e=>Ee(e,Be,pe),xe=e=>X.test(e),ye=e=>Ee(e,Ve,me),we=e=>Ee(e,_e,se),Ne=e=>Ee(e,He,ue),je=e=>Ee(e,Fe,pe),ke=e=>Ee(e,$e,pe),Ce=e=>Ee(e,Re,ge),Se=e=>Ee(e,We,he),Oe=e=>J.test(e),Me=e=>Pe(e,Ve),Ae=e=>Pe(e,Fe),Te=e=>Pe(e,$e),Ie=e=>Pe(e,Be),De=e=>Pe(e,Re),Le=e=>Pe(e,We,!0),ze=e=>Pe(e,He,!0),Ee=(e,t,a)=>{const n=X.exec(e);return!!n&&(n[1]?t(n[1]):a(n[2]))},Pe=(e,t,a=!1)=>{const n=J.exec(e);return!!n&&(n[1]?t(n[1]):a)},$e=e=>"position"===e||"percentage"===e,Re=e=>"image"===e||"url"===e,Be=e=>"length"===e||"size"===e||"bg-size"===e,Ve=e=>"length"===e,_e=e=>"number"===e,Fe=e=>"family-name"===e,He=e=>"number"===e||"weight"===e,We=e=>"shadow"===e,Ge=()=>{const e=Q("color"),t=Q("font"),a=Q("text"),n=Q("font-weight"),i=Q("tracking"),r=Q("leading"),o=Q("breakpoint"),s=Q("container"),l=Q("spacing"),c=Q("radius"),d=Q("shadow"),u=Q("inset-shadow"),m=Q("text-shadow"),p=Q("drop-shadow"),h=Q("blur"),g=Q("perspective"),f=Q("aspect"),v=Q("ease"),b=Q("animate"),x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Oe,xe],y=()=>[Oe,xe,l],w=()=>[oe,"full","auto",...y()],N=()=>[le,"none","subgrid",Oe,xe],j=()=>["auto",{span:["full",le,Oe,xe]},le,Oe,xe],k=()=>[le,"auto",Oe,xe],C=()=>["auto","min","max","fr",Oe,xe],S=()=>["auto",...y()],O=()=>[oe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],M=()=>[oe,"screen","full","dvw","lvw","svw","min","max","fit",...y()],A=()=>[oe,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],T=()=>[e,Oe,xe],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Te,ke,{position:[Oe,xe]}],D=()=>["auto","cover","contain",Ie,be,{size:[Oe,xe]}],L=()=>[ce,Me,ye],z=()=>["","none","full",c,Oe,xe],E=()=>["",se,Me,ye],P=()=>[se,ce,Te,ke],$=()=>["","none",h,Oe,xe],R=()=>["none",se,Oe,xe],B=()=>["none",se,Oe,xe],V=()=>[se,Oe,xe],_=()=>[oe,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[de],breakpoint:[de],color:[ue],container:[de],"drop-shadow":[de],ease:["in","out","in-out"],font:[fe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[de],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[de],shadow:[de],spacing:["px",se],text:[de],"text-shadow":[de],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",oe,xe,Oe,f]}],container:["container"],"container-type":[{"@container":["","normal","size",Oe,xe]}],"container-named":[ve],columns:[{columns:[se,xe,Oe,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[le,"auto",Oe,xe]}],basis:[{basis:[oe,"full","auto",s,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,oe,"auto","initial","none",xe]}],grow:[{grow:["",se,Oe,xe]}],shrink:[{shrink:["",se,Oe,xe]}],order:[{order:[le,"first","last","none",Oe,xe]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],"inline-size":[{inline:["auto",...M()]}],"min-inline-size":[{"min-inline":["auto",...M()]}],"max-inline-size":[{"max-inline":["none",...M()]}],"block-size":[{block:["auto",...A()]}],"min-block-size":[{"min-block":["auto",...A()]}],"max-block-size":[{"max-block":["none",...A()]}],w:[{w:[s,"screen",...O()]}],"min-w":[{"min-w":[s,"screen","none",...O()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",a,Me,ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ze,Ne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,xe]}],"font-family":[{font:[Ae,je,t]}],"font-features":[{"font-features":[xe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Oe,xe]}],"line-clamp":[{"line-clamp":[se,"none",Oe,we]}],leading:[{leading:[r,...y()]}],"list-image":[{"list-image":["none",Oe,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",Oe,ye]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[se,"auto",Oe,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"tab-size":[{tab:[le,Oe,xe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},le,Oe,xe],radial:["",Oe,xe],conic:[le,Oe,xe]},De,Ce]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-bs":[{"border-bs":E()}],"border-w-be":[{"border-be":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[se,Oe,xe]}],"outline-w":[{outline:["",se,Me,ye]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,Le,Se]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",u,Le,Se]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[se,ye]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",m,Le,Se]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[se,Oe,xe]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Oe,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,xe]}],filter:[{filter:["","none",Oe,xe]}],blur:[{blur:$()}],brightness:[{brightness:[se,Oe,xe]}],contrast:[{contrast:[se,Oe,xe]}],"drop-shadow":[{"drop-shadow":["","none",p,Le,Se]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",se,Oe,xe]}],"hue-rotate":[{"hue-rotate":[se,Oe,xe]}],invert:[{invert:["",se,Oe,xe]}],saturate:[{saturate:[se,Oe,xe]}],sepia:[{sepia:["",se,Oe,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,xe]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[se,Oe,xe]}],"backdrop-contrast":[{"backdrop-contrast":[se,Oe,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,Oe,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,Oe,xe]}],"backdrop-invert":[{"backdrop-invert":["",se,Oe,xe]}],"backdrop-opacity":[{"backdrop-opacity":[se,Oe,xe]}],"backdrop-saturate":[{"backdrop-saturate":[se,Oe,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",se,Oe,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",Oe,xe]}],ease:[{ease:["linear","initial",v,Oe,xe]}],delay:[{delay:[se,Oe,xe]}],animate:[{animate:["none",b,Oe,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Oe,xe]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[Oe,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_()}],"translate-x":[{"translate-x":_()}],"translate-y":[{"translate-y":_()}],"translate-z":[{"translate-z":_()}],"translate-none":["translate-none"],zoom:[{zoom:[le,Oe,xe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe,xe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[se,Me,ye,we]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},qe=(e,t,a)=>{void 0!==a&&(e[t]=a)},Ke=(e,t)=>{if(t)for(const a in t)qe(e,a,t[a])},Ue=(e,t)=>{if(t)for(const a in t)Ye(e,t,a)},Ye=(e,t,a)=>{const n=t[a];void 0!==n&&(e[a]=e[a]?e[a].concat(n):n)},Ze=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,Qe=C,Xe=(e,t)=>a=>{var n;if(null==(null==t?void 0:t.variants))return Qe(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:i,defaultVariants:r}=t,o=Object.keys(i).map(e=>{const t=null==a?void 0:a[e],n=null==r?void 0:r[e];if(null===t)return null;const o=Ze(t)||Ze(n);return i[e][o]}),s=a&&Object.entries(a).reduce((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e},{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:a,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...r,...s}[t]):{...r,...s}[t]===a})?[...e,a,n]:e},[]);return Qe(e,o,l,null==a?void 0:a.class,null==a?void 0:a.className)},Je=((e,...t)=>"function"==typeof e?Y(Ge,e,...t):Y(()=>((e,{cacheSize:t,prefix:a,experimentalParseClassName:n,extend:i={},override:r={}})=>(qe(e,"cacheSize",t),qe(e,"prefix",a),qe(e,"experimentalParseClassName",n),Ke(e.theme,r.theme),Ke(e.classGroups,r.classGroups),Ke(e.conflictingClassGroups,r.conflictingClassGroups),Ke(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),qe(e,"postfixLookupClassGroups",r.postfixLookupClassGroups),qe(e,"orderSensitiveModifiers",r.orderSensitiveModifiers),Ue(e.theme,i.theme),Ue(e.classGroups,i.classGroups),Ue(e.conflictingClassGroups,i.conflictingClassGroups),Ue(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Ye(e,i,"postfixLookupClassGroups"),Ye(e,i,"orderSensitiveModifiers"),e))(Ge(),e),...t))({extend:{classGroups:{typography:["text-body-large","text-body-medium","text-body-small","text-caption","text-code-block","text-code-inline","text-display","text-subtitle","text-title-large","text-title-medium","text-title-small"],textSize:["text-size-large","text-size-medium","text-size-small"],textWeight:["text-weight-light","text-weight-normal","text-weight-medium","text-weight-semibold"],animate:["shimmer"],duration:["duration-micro","duration-short","duration-medium","duration-long"],ease:["ease-enter","ease-exit","ease-hover","ease-move"],z:["z-behind","z-default","z-dropdown","z-modal","z-overlay","z-popover","z-skip-link","z-sticky"]}}}),et=(...e)=>Je(C(e)),tt=e.forwardRef,at=e.createContext({}),nt="accordion";function it(e,t){const a=e,{as:n="div",className:i,value:r,defaultValue:l,onChange:c,multiple:d=!1,disabled:u,headingLevel:m="h3",onKeyDown:p}=a,h=s(a,["as","className","value","defaultValue","onChange","multiple","disabled","headingLevel","onKeyDown"]),g=o.useRef(null),v=N(t,g),b=void 0!==r,[x,y]=o.useState(()=>null!=l?l:[]),w=b?r:x;return f.jsx(at.Provider,{value:{open:w,toggle:e=>{const t=w.includes(e)?w.filter(t=>t!==e):d?[...w,e]:[e];b||y(t),null==c||c(t)},disabled:u,headingLevel:m},children:f.jsx(n,Object.assign({ref:v,className:et(nt,i),onKeyDown:e=>{null==p||p(e);const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,a="Home"===e.key||"End"===e.key;if(e.defaultPrevented||0===t&&!a)return;const n=(i=g.current)?Array.from(i.querySelectorAll("[data-component='Accordion.HeaderButton']:not([disabled])")).filter(e=>e.closest("[data-component='Accordion']")===i):[];var i;const r=n.indexOf(document.activeElement);-1!==r&&(e.preventDefault(),(a?n["Home"===e.key?0:n.length-1]:n[(r+t+n.length)%n.length]).focus())},"data-component":"Accordion","data-multiple":d,"data-disabled":Boolean(u)},h))})}it.displayName="Accordion";var rt=tt(it);function ot(t,a,n){const i=n(),r=Object.keys(i),o=e.forwardRef(({"aria-label":t,"aria-labelledby":n,tabIndex:o,className:s="",fill:l="currentColor",size:c=16,id:d,title:u,style:m,...p},h)=>{const g=c,f=function(e,t){const a=e.map(e=>parseInt(e,10)).reduce((e,a)=>a<=t?a:e,parseInt(e[0],10));return a.toString()}(r,g),v=i[f].width,b=g*(v/parseInt(f,10)),x=i[f].path,y=t||n,w=y?"img":void 0,N=`${a} ${s}`.trim();return e.createElement("svg",{ref:h,...p,"aria-hidden":y?void 0:"true",tabIndex:o,focusable:(o??-1)>=0?"true":"false","aria-label":t,"aria-labelledby":n,className:N,role:w,viewBox:`0 0 ${v} ${f}`,width:b,height:g,fill:l,id:d,display:"inline-block",overflow:"visible",style:m},u?e.createElement("title",null,u):null,x)});return o.displayName=t,o}const st=ot("AddRegular","icon icon-add-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75"})}})),lt=ot("ArchiveRegular","icon icon-archive-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z"})}})),ct=ot("ArrowClockwiseRegular","icon icon-arrow-clockwise-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2"})}})),dt=ot("ArrowLeftRegular","icon icon-arrow-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z"})}})),ut=ot("ArrowSortDownRegular","icon icon-arrow-sort-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z"})}})),mt=ot("ArrowSortUpRegular","icon icon-arrow-sort-up-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z"})}})),pt=ot("ArrowUploadRegular","icon icon-arrow-upload-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743"})}})),ht=ot("BranchRegular","icon icon-branch-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0"})}})),gt=ot("CalendarLtrRegular","icon icon-calendar-ltr-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75"})}})),ft=ot("CheckmarkCircleRegular","icon icon-checkmark-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z"})}})),vt=ot("CheckmarkRegular","icon icon-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z"})}})),bt=ot("ChevronDownRegular","icon icon-chevron-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06"})}})),xt=ot("ChevronLeftRegular","icon icon-chevron-left-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0"})}})),yt=ot("ChevronRightRegular","icon icon-chevron-right-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"})}})),wt=ot("ChevronUpDownRegular","icon icon-chevron-up-down-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.54 2.23a.75.75 0 0 0-1.08 0l-6.25 6.5a.75.75 0 1 0 1.08 1.04L12 3.832l5.71 5.938a.75.75 0 1 0 1.08-1.04zm0 19.54a.75.75 0 0 1-1.08 0l-6.25-6.5a.75.75 0 1 1 1.08-1.04L12 20.168l5.71-5.938a.75.75 0 1 1 1.08 1.04z"})}})),Nt=ot("CircleHintRegular","icon icon-circle-hint-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49"})}})),jt=ot("ClockRegular","icon icon-clock-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z"})}})),kt=ot("DismissCircleRegular","icon icon-dismiss-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072"})}})),Ct=ot("DismissRegular","icon icon-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z"})}})),St=ot("DocumentRegular","icon icon-document-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z"})}})),Ot=ot("ErrorCircleRegular","icon icon-error-circle-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751"})}})),Mt=ot("FilterDismissRegular","icon icon-filter-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z"})}})),At=ot("FolderOpenRegular","icon icon-folder-open-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124"})}})),Tt=ot("FolderRegular","icon icon-folder-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z"})}})),It=ot("InfoRegular","icon icon-info-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Dt=ot("MergeRegular","icon icon-merge-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75"})}})),Lt=ot("MoreHorizontalRegular","icon icon-more-horizontal-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5"})}})),zt=ot("PauseRegular","icon icon-pause-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z"})}})),Et=ot("PlayRegular","icon icon-play-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z"})}})),Pt=ot("ProhibitedRegular","icon icon-prohibited-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5"})}})),$t=ot("RecordRegular","icon icon-record-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0"})}})),Rt=ot("SearchRegular","icon icon-search-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0"})}})),Bt=ot("ShieldCheckmarkRegular","icon icon-shield-checkmark-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708"})}})),Vt=ot("ShieldDismissRegular","icon icon-shield-dismiss-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22"})}})),_t=ot("ShieldErrorRegular","icon icon-shield-error-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}})),Ft=ot("ShieldRegular","icon icon-shield-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8"})}})),Ht=ot("WarningRegular","icon icon-warning-regular",()=>({24:{width:24,path:e.createElement("path",{d:"M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5"})}})),Wt=e.createContext({}),Gt="accordion-header",qt="accordion-header-button",Kt="accordion-header-button-disabled",Ut="min-w-0",Yt="accordion-header-indicator",Zt="rotate-180";function Qt(e,t){var a;const{className:n,children:i,headingLevel:r}=e,l=s(e,["className","children","headingLevel"]),{headingLevel:c}=o.useContext(at),{headerId:d,panelId:u,isOpen:m,disabled:p,toggle:h}=o.useContext(Wt),g=null!==(a=null!=r?r:c)&&void 0!==a?a:"h3";return f.jsx(g,{className:Gt,"data-component":"Accordion.Header",children:f.jsxs("button",Object.assign({ref:t,type:"button",id:d,className:et(qt,p&&Kt,n),onClick:h,disabled:p,"aria-expanded":Boolean(m),"aria-controls":u,"data-component":"Accordion.HeaderButton","data-open":Boolean(m)},l,{children:[f.jsx("span",{className:Ut,children:i}),f.jsx(bt,{className:et(Yt,m&&Zt),"aria-hidden":"true"})]}))})}Qt.displayName="Accordion.Header";var Xt=tt(Qt);const Jt=t=>{const a=e.useId();return t||a},ea="accordion-item";function ta(e,t){var a,n;const i=e,{as:r="div",className:l,value:c,disabled:d}=i,u=s(i,["as","className","value","disabled"]),{open:m,toggle:p,disabled:h}=o.useContext(at),g=Jt(),v=null!=c?c:g,b=null!==(a=null==m?void 0:m.includes(v))&&void 0!==a&&a,x=null!==(n=null!=d?d:h)&&void 0!==n&&n,y={headerId:`${g}-header`,panelId:`${g}-panel`,isOpen:b,disabled:x,toggle:()=>null==p?void 0:p(v)};return f.jsx(Wt.Provider,{value:y,children:f.jsx(r,Object.assign({ref:t,className:et(ea,l),"data-component":"Accordion.Item","data-value":v,"data-open":b,"data-disabled":x},u))})}ta.displayName="Accordion.Item";var aa=tt(ta);const na="accordion-panel",ia="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function ra(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{headerId:l,panelId:c,isOpen:d}=o.useContext(Wt);return f.jsx(n,Object.assign({ref:t,id:c,hidden:!d,role:"region","aria-labelledby":l,className:et(na,d&&ia,i),"data-component":"Accordion.Panel","data-open":Boolean(d)},r))}ra.displayName="Accordion.Panel";var oa=tt(ra);const sa=Object.assign(rt,{Item:aa,Header:Xt,Panel:oa}),la=["[disabled]","[hidden]","[inert]","[tabindex='-1']"],ca=["a[href]","button","summary","select","input:not([type=hidden])","textarea","[tabindex='0']","audio[controls]","video[controls]","[contenteditable]"].map(e=>`${e}:not(${la.join("):not(")})`).join(", "),da=e=>{if(e.matches("[disabled], [hidden], [inert]"))return!0;const t=getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility},ua=e=>!e||da(e)?[]:Array.from(e.querySelectorAll(ca)).filter(e=>!da(e)),ma={vertical:{previous:"ArrowUp",next:"ArrowDown"},horizontal:{previous:"ArrowLeft",next:"ArrowRight"}},pa=({containerRef:t,direction:a="vertical",wrap:n=!1,disabled:i,focusableFilter:r})=>{e.useEffect(()=>{const e=t.current;if(!e||i)return;const{previous:o,next:s}=ma[a],l=t=>{if(t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;const a="End"===t.key,i="Home"===t.key,l=t.key===s?1:t.key===o?-1:0;if(0===l&&!i&&!a)return;const c=ua(e).filter(e=>{var t;return null===(t=null==r?void 0:r(e))||void 0===t||t});if(0===c.length)return;if(t.preventDefault(),i||a)return void c[i?0:c.length-1].focus();const d=c.indexOf(document.activeElement),u=-1===d?0:d+l;u>=0&&u<c.length?c[u].focus():n&&c[(u+c.length)%c.length].focus()};return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}},[t,a,n,i,r])},ha=(e,t)=>{var a,n;const i=typeof e;if("object"!==i&&"function"!==i&&null!==e)return!1;const r=e,o=null!==(a=r.__SLOT__)&&void 0!==a?a:null===(n=r.type)||void 0===n?void 0:n.__SLOT__;return!!t.__SLOT__&&o===t.__SLOT__},ga=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),fa=(e,t)=>{if(Array.isArray(t)){const[a,n]=t;return(e.type===a||ha(e,a))&&n(e.props)}return e.type===t||ha(e,t)},va=(t,a)=>{const n=[],i=Object.keys(a),r=Object.values(a),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let l=0;return e.Children.forEach(t,t=>{if(!e.isValidElement(t))return void n.push(t);if(l===o)return void n.push(t);const a=ba(t,r,o);if(-1===a)return void n.push(t);const c=i[a];void 0===s[c]&&(s[c]=t,l++)}),[s,n]},ba=(e,t,a)=>{for(let n=0;n<a;n++)if(fa(e,t[n]))return n;return-1},xa=Xe("heading",{variants:{size:{large:"text-title-large",medium:"text-title-medium",small:"text-title-small"}}});function ya(e,t){const a=e,{as:n="h2",className:i,size:r="large"}=a,o=s(a,["as","className","size"]);return f.jsx(n,Object.assign({ref:t,className:et(xa({size:r}),i),"data-component":"Heading","data-size":r},o))}ya.displayName="Heading";var wa=tt(ya);const Na=e.createContext({}),ja="action-list-heading",ka="sr-only";function Ca(e,t){const a=e,{as:n,className:i,visuallyHidden:r=!1,id:l}=a,c=s(a,["as","className","visuallyHidden","id"]),{headingId:d}=o.useContext(Na);return f.jsx(wa,Object.assign({ref:t,as:n,id:null!=l?l:d,className:et(ja,r&&ka,i),"data-component":"ActionList.Heading"},c))}Ca.displayName="ActionList.Heading";var Sa=tt(Ca);const Oa=e.createContext({}),Ma=Xe("action-list",{variants:{variant:{inset:"action-list-inset",full:"action-list-full"},dividers:{true:"action-list-dividers",false:""}}}),Aa={heading:Sa},Ta=["menu","menubar","listbox"];function Ia(e,t){var a;const n=e,{as:i="ul",className:r,children:l,variant:c="inset",selectionVariant:d,showDividers:u=!1,disableFocusZone:m=!1,role:p}=n,h=s(n,["as","className","children","variant","selectionVariant","showDividers","disableFocusZone","role"]),[g,v]=va(l,Aa),b=Jt(),{listRole:x,listLabelledBy:y,selectionVariant:w,enableFocusZone:j}=o.useContext(Oa),k=null!=p?p:x,C=null!=d?d:w,S=g.heading?null!==(a=g.heading.props.id)&&void 0!==a?a:b:y,O=o.useRef(null),M=N(t,O),A=null!=j?j:void 0!==k&&!m&&Ta.includes(k);pa({containerRef:O,disabled:!A,wrap:"menu"===k});const T=o.useMemo(()=>({variant:c,selectionVariant:C,showDividers:u,role:k,headingId:b}),[c,C,u,k,b]);return f.jsxs(Na.Provider,{value:T,children:[g.heading,f.jsx(i,Object.assign({ref:M,role:k,"aria-labelledby":S,className:et(Ma({variant:c,dividers:u}),r),"data-component":"ActionList","data-variant":c,"data-dividers":u?"":void 0},h,{children:v}))]})}Ia.displayName="ActionList";var Da=tt(Ia);const La=e.createContext({}),za="action-list-description",Ea="min-w-0 truncate";function Pa(e){const{className:t,variant:a="inline"}=e,n=s(e,["className","variant"]),{blockDescriptionId:i,inlineDescriptionId:r}=o.useContext(La);return f.jsx("span",Object.assign({id:"block"===a?i:r,className:et(za,"inline"===a&&Ea,t),"data-component":"ActionList.Description","data-variant":a},n))}Pa.displayName="ActionList.Description";const $a="action-list-divider";function Ra(e){const{className:t}=e,a=s(e,["className"]);return f.jsx("li",Object.assign({"aria-hidden":"true",className:et($a,t),"data-component":"ActionList.Divider"},a))}Ra.displayName="ActionList.Divider";const Ba=e.createContext({}),Va={__SLOT__:Symbol("ActionList.GroupHeading")},_a="action-list-group-heading-label",Fa="action-list-group-heading-auxiliary",Ha=Xe("action-list-group-heading",{variants:{variant:{subtle:"",filled:"action-list-group-heading-filled"}}});function Wa(e){const{as:t,className:a,children:n,variant:i="subtle",auxiliaryText:r}=e,l=s(e,["as","className","children","variant","auxiliaryText"]),{role:c}=o.useContext(Na),{groupHeadingId:d}=o.useContext(Ba),u=void 0!==c&&"list"!==c,m=null!=t?t:"h3";return f.jsxs("div",Object.assign({className:et(Ha({variant:i})),"data-component":"ActionList.GroupHeading","data-variant":i},u?{role:"presentation","aria-hidden":!0}:{},{children:[u?f.jsx("span",Object.assign({id:d,className:et(_a,a)},l,{children:n})):f.jsx(m,Object.assign({id:d,className:et(_a,a)},l,{children:n})),r?f.jsx("div",{className:Fa,children:r}):null]}))}Wa.displayName="ActionList.GroupHeading";const Ga=ga(Wa,Va),qa="action-list-group",Ka="action-list-group-items",Ua={groupHeading:Ga};function Ya(e){var t,a;const{className:n,children:i,selectionVariant:r,role:l,"aria-label":c}=e,d=s(e,["className","children","selectionVariant","role","aria-label"]),u=Jt(),{role:m}=o.useContext(Na),[p,h]=va(i,Ua),g=p.groupHeading?null!==(t=p.groupHeading.props.id)&&void 0!==t?t:u:void 0,v=o.useMemo(()=>({selectionVariant:r,groupHeadingId:g}),[r,g]),b=m&&"string"==typeof(null===(a=p.groupHeading)||void 0===a?void 0:a.props.children)?p.groupHeading.props.children:void 0;return f.jsx("li",Object.assign({className:et(qa,n),"data-component":"ActionList.Group",role:m?"none":void 0},d,{children:f.jsxs(Ba.Provider,{value:v,children:[p.groupHeading,f.jsx("ul",{className:Ka,role:null!=l?l:m?"group":void 0,"aria-labelledby":m?void 0:g,"aria-label":null!=c?c:b,children:h})]})}))}Ya.displayName="ActionList.Group";const Za="spinner",Qa="sr-only",Xa=Xe("motion-safe:animate-spin",{variants:{size:{small:"spinner-small",medium:"spinner-medium",large:"spinner-large"}}});function Ja(e,t){const a=e,{as:n="span",size:i="medium",srText:r="Loading",className:o,"aria-label":l}=a,c=s(a,["as","size","srText","className","aria-label"]);return f.jsxs(n,Object.assign({ref:t,role:"status","aria-label":null!=l?l:void 0,className:et(Za,o),"data-component":"Spinner"},c,{children:[f.jsx(ct,{className:et(Xa({size:i})),"aria-hidden":"true"}),null!==r&&void 0===l?f.jsx("span",{className:Qa,children:r}):null]}))}Ja.displayName="Spinner";var en=tt(Ja);const tn="action-list-visual",an="action-list-visual-muted",nn="action-list-visual-inherit",rn=e=>{var{className:t}=e,a=s(e,["className"]);const{variant:n,disabled:i,inactive:r}=o.useContext(La),l="danger"===n||i||r;return f.jsx("span",Object.assign({className:et(tn,l?nn:an,t)},a))};function on(e){return f.jsx(rn,Object.assign({"data-component":"ActionList.LeadingVisual"},e))}function sn({children:e}){return f.jsx(f.Fragment,{children:e})}on.displayName="ActionList.LeadingVisual",sn.displayName="ActionList.SubItem";const ln="sr-only",cn=Xe("counter-label",{variants:{variant:{primary:"counter-label-primary",secondary:"counter-label-secondary"}}});function dn(e,t){const a=e,{as:n="span",className:i,variant:r="secondary",children:o}=a,l=s(a,["as","className","variant","children"]);return f.jsxs(f.Fragment,{children:[f.jsx(n,Object.assign({ref:t,"aria-hidden":"true",className:et(cn({variant:r}),i),"data-component":"CounterLabel","data-variant":r},l,{children:o})),f.jsxs("span",{className:ln,children:[" (",o,")"]})]})}dn.displayName="CounterLabel";var un=tt(dn);const mn={base:"button",disabled:"button-disabled",block:"button-block",size:{small:"button-small",medium:"",large:"button-large"},variant:{default:{rest:"button-default",disabled:"button-default-disabled"},primary:{rest:"button-primary",disabled:"button-primary-disabled"},danger:{rest:"button-danger",disabled:"button-danger-disabled"},invisible:{rest:"button-invisible",disabled:"button-invisible-disabled"},link:{rest:"button-link",disabled:"button-link-disabled"}},link:"button-link-shape",linkUnderlines:"button-link-underlines",inactive:"button-inactive",inactiveLink:"button-inactive-link",iconTone:{default:"button-icon-tone-default",primary:"",danger:"",invisible:"button-icon-tone-invisible",link:""},labelWrapRoot:"button-label-wrap",labelWrapHeight:{small:"button-label-wrap-small",medium:"button-label-wrap-medium",large:"button-label-wrap-large"},labelWrapContent:{small:"button-label-wrap-content-small",medium:"button-label-wrap-content-medium",large:"button-label-wrap-content-large"},labelWrapLabel:"button-label-wrap-label",iconOnlyCounter:{small:"button-icon-only-counter-small",medium:"button-icon-only-counter-medium",large:"button-icon-only-counter-large"},content:"button-content",contentGap:{small:"button-content-gap-small",medium:"button-content-gap-medium",large:"button-content-gap-large"},align:{start:"justify-start",center:"justify-center"},label:"button-label",labelLineHeight:{small:"button-label-small",medium:"button-label-medium",large:"button-label-large"},labelHidden:"invisible",visualBase:"button-visual",visual:{default:"button-visual-default",primary:"button-visual-primary",danger:"button-visual-danger",invisible:"button-visual-invisible",link:"button-visual-link"},visualMuted:"button-visual-muted",counter:{default:"button-counter-default",primary:"button-counter-primary",danger:"button-counter-danger",invisible:"button-counter-invisible",link:""},counterMuted:"button-counter-muted",counterMutedDanger:"button-counter-muted-danger",leadingVisual:"button-leading-visual",trailingVisual:"button-trailing-visual",trailingAction:"button-trailing-action",loadingSpinner:"items-center justify-center",standaloneSpinner:"button-standalone-spinner",loadingWrapper:"inline-flex",loadingWrapperBlock:"block",srOnly:"sr-only"},pn=(e,t,a,n)=>{const i=e;return f.jsx("span",{"data-component":t,className:et(mn.visualBase,a&&mn.loadingSpinner,n),children:a?f.jsx(en,{size:"small",srText:null,role:"presentation"}):o.isValidElement(e)?e:f.jsx(i,{})})};function hn(e,t){const{as:a="button",className:n,children:i,icon:r,leadingVisual:o,trailingVisual:l,trailingAction:c,count:d,variant:u="default",size:m="medium",alignContent:p="center",block:h=!1,loading:g,loadingAnnouncement:v="Loading",inactive:b,labelWrap:x,disabled:y,id:w,onClick:N,"aria-describedby":j,"aria-labelledby":k,"aria-disabled":C}=e,S=s(e,["as","className","children","icon","leadingVisual","trailingVisual","trailingAction","count","variant","size","alignContent","block","loading","loadingAnnouncement","inactive","labelWrap","disabled","id","onClick","aria-describedby","aria-labelledby","aria-disabled"]),O=Jt(w),M=`${O}-label`,A=`${O}-loading-announcement`,T=Boolean(g),I=!0===C||"true"===C,D=Boolean(y)||I&&!T,L=!D&&!b,z=Boolean(o||l||c),E=T&&!z&&void 0===d,P=void 0!==d&&Boolean(o)&&!i,$=b?"link"===u?mn.inactiveLink:mn.inactive:mn.variant[u][D?"disabled":"rest"],R=L?mn.visual[u]:mn.visualMuted,B=L?mn.counter[u]:"danger"===u?mn.counterMutedDanger:et(mn.counter[u],mn.counterMuted),V=f.jsx(a,Object.assign({ref:t,className:et(mn.base,mn.size[m],"link"===u&&mn.link,"link"===u&&!z&&mn.linkUnderlines,$,r&&L&&mn.iconTone[u],D&&mn.disabled,h&&mn.block,x&&mn.labelWrapRoot,x&&mn.labelWrapHeight[m],P&&mn.iconOnlyCounter[m],n),"data-component":"Button","data-block":h?"block":void 0,"data-inactive":b?"":void 0,"data-loading":T?"true":void 0,"data-no-visuals":z?void 0:"","data-size":m,"data-variant":u,"data-label-wrap":x?"true":void 0,"data-has-count":void 0!==d?"true":void 0,"data-icon-only-counter":P?"true":void 0,disabled:y,id:w,"aria-disabled":!!T||C,"aria-describedby":T?[A,j].filter(Boolean).join(" "):j,"aria-labelledby":T&&i?[M,k].filter(Boolean).join(" "):k,onClick:T?void 0:N},S,{children:r?pn(r,"icon",T,""):f.jsxs(f.Fragment,{children:[f.jsxs("span",{"data-component":"buttonContent","data-align":p,className:et(mn.content,!E&&mn.contentGap[m],mn.align[p],x&&mn.labelWrapContent[m]),children:[E?pn(en,"loadingSpinner",!0,et(R,mn.standaloneSpinner)):null,o?pn(o,"leadingVisual",T,et(R,mn.leadingVisual)):null,i?f.jsx("span",{"data-component":"text",id:T?M:void 0,className:et(mn.label,mn.labelLineHeight[m],x&&mn.labelWrapLabel,E&&mn.labelHidden),children:i}):null,void 0===d||l?l?pn(l,"trailingVisual",T&&!o,et(R,mn.trailingVisual)):null:pn(f.jsx(un,{className:B,"data-component":"ButtonCounter",children:d}),"trailingVisual",T&&!o,mn.trailingVisual)]}),c?pn(c,"trailingAction",T&&!o&&!l,et(R,mn.trailingAction)):null]})}));return void 0===g?V:f.jsxs("span",{className:h?mn.loadingWrapperBlock:mn.loadingWrapper,"data-loading-wrapper":"",children:[V,f.jsx("span",{id:A,role:"status",className:mn.srOnly,children:T?v:""})]})}hn.displayName="ButtonBase";var gn=tt(hn);function fn(e,t){const a=e,{as:n="button",type:i="button"}=a,r=s(a,["as","type"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:i},r))}fn.displayName="Button";var vn=tt(fn);const bn=Xe("icon-button",{variants:{size:{small:"icon-button-small",medium:"icon-button-medium",large:"icon-button-large"}}});function xn(e,t){const a=e,{as:n="button",className:i,size:r="medium"}=a,o=s(a,["as","className","size"]);return f.jsx(gn,Object.assign({ref:t,as:n,type:"button",size:r,"data-component":"IconButton",className:et(bn({size:r}),i)},o))}xn.displayName="IconButton";var yn=tt(xn);const wn="action-list-trailing-action",Nn="action-list-trailing-action-button";function jn(e,t){const{className:a,icon:n,label:i}=e,r=s(e,["className","icon","label"]);return f.jsx("span",{className:wn,"data-component":"ActionList.TrailingAction",children:n?f.jsx(yn,Object.assign({ref:t,icon:n,"aria-label":i,variant:"invisible",size:"small",className:et(Nn,a)},r)):f.jsx(vn,Object.assign({ref:t,variant:"invisible",size:"small",className:et(Nn,a)},r,{children:i}))})}jn.displayName="ActionList.TrailingAction";var kn=tt(jn);function Cn(e){const{trailingVisualId:t}=o.useContext(La);return f.jsx(rn,Object.assign({id:t,"data-component":"ActionList.TrailingVisual"},e))}Cn.displayName="ActionList.TrailingVisual";const Sn="invisible",On="action-list-selection-checkmark",Mn="action-list-selection-checkbox",An="action-list-selection-checkbox-selected",Tn=({selected:e,className:t})=>{const{selectionVariant:a}=o.useContext(Na),{selectionVariant:n}=o.useContext(Ba),i=void 0===n?a:n;return i?"multiple"===i?f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx("span",{className:et(Mn,e&&An),children:f.jsx(vt,{className:e?void 0:Sn})})}):f.jsx(rn,{className:t,"data-component":"ActionList.Selection",children:f.jsx(vt,{className:et(On,!e&&Sn)})}):null},In={root:"action-list-item",content:"action-list-item-content",size:{medium:"",large:"action-list-item-content-large"},danger:"action-list-item-content-danger",disabled:"action-list-item-content-disabled",inactive:"action-list-item-content-inactive",loading:"cursor-default",active:"action-list-item-content-active",main:"action-list-item-main",labelWrap:"action-list-item-label-wrap",labelWrapBlock:"flex-col gap-0",label:"min-w-0",inactiveWarning:"action-list-item-inactive-warning",srOnly:"sr-only"},Dn={leadingVisual:on,trailingVisual:Cn,trailingAction:kn,description:Pa,subItem:sn},Ln=["option","menuitem","menuitemradio","menuitemcheckbox"],zn=["listbox","menu","list"];function En(e,t){var a,n,i;const r=e,{as:l,className:c,children:d,id:u,role:m,variant:p="default",size:h="medium",selected:g,active:v=!1,disabled:b=!1,loading:x=!1,inactiveText:y,onSelect:w}=r,N=s(r,["as","className","children","id","role","variant","size","selected","active","disabled","loading","inactiveText","onSelect"]),[j,k]=va(d,Dn),{container:C,afterSelect:S,selectionAttribute:O,defaultTrailingVisual:M}=o.useContext(Oa),{role:A,selectionVariant:T}=o.useContext(Na),{selectionVariant:I}=o.useContext(Ba),D=Boolean(y),L=void 0===I?T:I||void 0;let z;"ActionMenu"===C||"menu"===A?z="single"===L?"menuitemradio":"multiple"===L?"menuitemcheckbox":"menuitem":"listbox"===A&&L&&(z="option");const E=null!=m?m:z,P=null!=O?O:"menuitemradio"===E||"menuitemcheckbox"===E?"aria-checked":"option"===E?"aria-selected":void 0,$=void 0!==A&&zn.includes(A)||D||void 0!==E&&Ln.includes(E),R=null!=l?l:$?"div":"button",B=void 0!==l||!$,V=!B||"button"!==R&&"a"!==R,_="ActionMenu"===C||"menu"===A||"listbox"===A,F=!b&&!D&&!x,H=e=>{F&&(null==w||w(e),e.defaultPrevented||null==S||S(e))},W=Jt(u),G=`${W}--label`,q=`${W}--inline-description`,K=`${W}--block-description`,U=`${W}--trailing-visual`,Y=D?`${W}--inactive-warning`:void 0,Z=null!==(n=null===(a=j.description)||void 0===a?void 0:a.props.variant)&&void 0!==n?n:"inline",Q=null!==(i=j.trailingVisual)&&void 0!==i?i:M?f.jsx(Cn,{children:M}):null,X=x&&!D,J=f.jsx(en,{size:"small",srText:null}),ee=X&&j.leadingVisual?f.jsx(on,{children:J}):j.leadingVisual,te=X&&!j.leadingVisual?f.jsx(Cn,{children:J}):Q,ae=[j.description?"block"===Z?K:q:void 0,Y].filter(Boolean),ne=Object.assign({id:W,role:E,tabIndex:0,onClick:H,onKeyDown:V?e=>{" "!==e.key&&"Enter"!==e.key||(" "===e.key&&e.preventDefault(),H(e))}:void 0,"aria-disabled":!!(b||D||x)||void 0,"aria-labelledby":[G,j.trailingVisual?U:void 0].filter(Boolean).join(" "),"aria-describedby":ae.length>0?ae.join(" "):void 0},P&&L?{[P]:Boolean(g)}:{}),ie=_||D||x?null:j.trailingAction,re=o.useMemo(()=>({variant:p,size:h,disabled:b,inactive:D,inlineDescriptionId:q,blockDescriptionId:K,trailingVisualId:U}),[p,h,b,D,q,K,U]),oe=et(In.content,In.size[h],"danger"===p&&!b&&!D&&In.danger,v&&In.active,x&&In.loading,D&&In.inactive,b&&In.disabled);return f.jsx(La.Provider,{value:re,children:f.jsxs("li",Object.assign({ref:B?null:t,className:et(In.root,c),"data-component":"ActionList.Item","data-variant":"danger"===p?p:void 0,"data-active":v?"":void 0,"data-inactive":D?"":void 0,"data-disabled":b?"":void 0,"data-loading":x?"":void 0,"data-has-description":j.description?"":void 0,"data-has-trailing-action":ie?"":void 0,"data-has-sub-item":j.subItem?"":void 0},B?{role:E?"none":void 0}:Object.assign(Object.assign({},ne),N),{children:[f.jsxs(R,Object.assign({ref:B?t:void 0,className:oe,"data-component":"ActionList.Item.Content","data-size":h},B?Object.assign(Object.assign(Object.assign({},ne),N),"button"===R?{type:"button"}:{}):{},{children:[f.jsx(Tn,{selected:g}),ee,f.jsxs("span",{className:In.main,children:[f.jsxs("span",{className:et(In.labelWrap,"block"===Z&&In.labelWrapBlock),children:[f.jsxs("span",{id:G,className:In.label,"data-component":"ActionList.Item.Label",children:[k,X?f.jsx("span",{className:In.srOnly,children:"Loading"}):null]}),j.description]}),te]})]})),D?f.jsx("span",{id:Y,className:In.inactiveWarning,children:y}):null,ie,j.subItem]}))})}En.displayName="ActionList.Item";var Pn=tt(En);function $n(e,t){const a=e,{as:n}=a,i=s(a,["as"]);return f.jsx(Pn,Object.assign({ref:t,as:null!=n?n:"a"},i))}$n.displayName="ActionList.LinkItem";var Rn=tt($n);const Bn=Object.assign(Da,{Item:Pn,LinkItem:Rn,Group:Ya,GroupHeading:Ga,Heading:Sa,Description:Pa,Divider:Ra,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,SubItem:sn}),Vn=e.createContext(void 0);function _n(e){const{children:t,className:a,onClick:n,onKeyDown:i}=e,r=s(e,["children","className","onClick","onKeyDown"]),l=o.useContext(Vn),c=o.useContext(Oa),d=Boolean(null==l?void 0:l.isSubmenu),u=null==l?void 0:l.onOpen,m=o.useMemo(()=>d?Object.assign(Object.assign({},c),{defaultTrailingVisual:f.jsx(yt,{}),afterSelect:()=>null==u?void 0:u()}):c,[d,u,c]);if(!o.isValidElement(t))return null;const p=t.props;return f.jsx(Oa.Provider,{value:m,children:o.cloneElement(t,Object.assign(Object.assign({},r),{ref:null==l?void 0:l.anchorRef,className:et(a,p.className),onClick:e=>{var t;null===(t=p.onClick)||void 0===t||t.call(p,e),null==n||n(e)},onKeyDown:e=>{var t;null===(t=p.onKeyDown)||void 0===t||t.call(p,e),d&&"ArrowRight"===e.key&&!e.defaultPrevented&&(null==u||u(),e.preventDefault()),null==i||i(e)}}))})}function Fn(e){return f.jsx(_n,{children:f.jsx(vn,Object.assign({type:"button",trailingAction:bt,"data-component":"ActionMenu.Button"},e))})}_n.displayName="ActionMenu.Anchor",Fn.displayName="ActionMenu.Button";const Hn=e=>o.isValidElement(e)&&(e.type===_n||e.type===Fn);function Wn(e){const{children:t,open:a,onOpenChange:n,anchorRef:i}=e,r=o.useContext(Vn),s=o.useRef(null),l=null!=i?i:s,c=void 0!==a,[d,u]=o.useState(!1),m=c?a:d,p=o.useCallback(e=>{u(e),null==n||n(e)},[n]),h=o.useCallback(()=>p(!0),[p]),g=null==r?void 0:r.onClose,v=o.useCallback(e=>{p(!1),"item-select"!==e&&"tab"!==e||null==g||g(e)},[p,g]),b=o.Children.toArray(t),x=b.find(Hn),y=Jt(null==x?void 0:x.props.id),w=x?e=>o.cloneElement(x,((e,t)=>({id:e.id,"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],tabIndex:e.tabIndex,onClick:a=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,a),e.onClick(a)},onKeyDown:a=>{var n;null===(n=t.onKeyDown)||void 0===n||n.call(t,a),e.onKeyDown(a)}}))(e,x.props)):null,N=void 0!==r,j=o.useMemo(()=>({anchorRef:l,renderAnchor:w,anchorId:y,open:m,onOpen:h,onClose:v,isSubmenu:N}),[l,w,y,m,h,v,N]);return f.jsx(Vn.Provider,{value:j,children:b.filter(e=>e!==x)})}Wn.displayName="ActionMenu";const Gn=[],qn=({containerRef:t,initialFocusRef:a,returnFocusRef:n,disabled:i})=>{e.useEffect(()=>{var e,r;const o=t.current;if(!o||i)return;const s=document.activeElement;Gn.push(o),(null!==(r=null!==(e=null==a?void 0:a.current)&&void 0!==e?e:ua(o)[0])&&void 0!==r?r:o).focus();const l=e=>{if("Tab"!==e.key||Gn[Gn.length-1]!==o)return;const t=ua(o);if(0===t.length)return void e.preventDefault();const a=t[0],n=t[t.length-1],i=document.activeElement;!(e.shiftKey?i===a:i===n)&&o.contains(i)||(e.preventDefault(),(e.shiftKey?n:a).focus())};return document.addEventListener("keydown",l),()=>{var e;document.removeEventListener("keydown",l),Gn.splice(Gn.indexOf(o),1);const t=null!==(e=null==n?void 0:n.current)&&void 0!==e?e:s;t instanceof HTMLElement&&t.focus()}},[t,a,n,i])},Kn=v?e.useLayoutEffect:e.useEffect,Un=[],Yn=e=>{if("Escape"===e.key&&!e.defaultPrevented)for(const t of[...Un].reverse())if(t(e),e.defaultPrevented)break},Zn=t=>{const a=e.useRef(t);e.useEffect(()=>{a.current=t},[t]),e.useEffect(()=>{const e=e=>a.current(e);return 0===Un.length&&document.addEventListener("keydown",Yn),Un.push(e),()=>{Un.splice(Un.indexOf(e),1),0===Un.length&&document.removeEventListener("keydown",Yn)}},[])},Qn=(e,t)=>{if(null!=t)return"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,a])=>Xn(`data-${e}-${t}`,a))):Object.fromEntries([Xn(`data-${e}`,t)])},Xn=(e,t)=>[e,t],Jn=e.createContext({}),ei="__baseUiPortalRoot__",ti="__default__",ai="portal-root",ni={},ii=(e,t=ti)=>{ni[t]=e},ri="portal";function oi({children:e,onMount:a,containerName:n}){const{portalContainerName:i}=o.useContext(Jn),r=o.useRef(null);if(!r.current){const e=document.createElement("div");e.setAttribute("data-component","Portal"),e.className=ri,r.current=e}const s=r.current;return Kn(()=>{let e=null!=n?n:i;void 0===e&&(e=ti,(()=>{const e=ni[ti];if(e&&document.body.contains(e))return;let t=document.getElementById(ei);if(!t){t=document.createElement("div"),t.setAttribute("id",ei),t.className=ai;const e=document.querySelector("[data-portal-root]");(null!=e?e:document.body).appendChild(t)}ii(t)})());const t=(e=>ni[e])(e);if(!t)throw new Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(s),null==a||a(),()=>{t.removeChild(s)}},[s,n,i]),t.createPortal(e,s)}oi.displayName="Portal";const si={"outside-top":"outside-bottom","outside-bottom":"outside-top","outside-left":"outside-right","outside-right":"outside-left"},li=e=>"outside-top"===e||"outside-bottom"===e,ci=(e,t,a,n)=>"outside-top"===e?t.top-a.height-n:"outside-bottom"===e?t.bottom+n:"outside-left"===e?t.left-a.width-n:t.right+n,di=(e,t,a,n,i)=>"start"===e?t+i:"end"===e?t+a-n-i:t+(a-n)/2+i,ui=(e,t,{side:a,align:n,anchorOffset:i=4,alignmentOffset:r=0})=>{const o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=window.innerWidth,c=window.innerHeight;let d=a,u=ci(d,o,s,i);const m=li(d)?s.height:s.width,p=li(d)?c:l;if(u<0||u+m>p){const e=ci(si[a],o,s,i);e>=0&&e+m<=p&&(d=si[a],u=e)}const h=li(d),g=h?o.left:o.top,f=h?o.width:o.height,v=h?s.width:s.height,b=h?l:c;let x=n,y=di(n,g,f,v,r);return y<0?(x="start",y=di(x,g,f,v,r)):y+v>b&&(x="end",y=di(x,g,f,v,r)),y=Math.max(0,Math.min(y,b-v)),{top:h?u:y,left:h?y:u,anchorSide:d,anchorAlign:x}},mi="anchored-overlay-close-button-container",pi="anchored-overlay-close-button",hi=Xe(["anchored-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2"],{variants:{width:{xsmall:"anchored-overlay-width-xsmall",small:"anchored-overlay-width-small",medium:"anchored-overlay-width-medium",large:"anchored-overlay-width-large",xlarge:"anchored-overlay-width-xlarge",auto:"anchored-overlay-width-auto"},height:{small:"anchored-overlay-height-small",medium:"anchored-overlay-height-medium",large:"anchored-overlay-height-large",xlarge:"anchored-overlay-height-xlarge",auto:"anchored-overlay-height-auto"},reflow:{true:"anchored-overlay-reflow",false:""},fullscreen:{true:"anchored-overlay-fullscreen",false:""},unplaced:{true:"invisible",false:""}}}),gi={regular:"anchored",narrow:"anchored"},fi=["ArrowDown","ArrowUp"," ","Enter"];function vi(e){var t,a,n,i;const{renderAnchor:r,anchorRef:l,anchorId:c,children:d,open:u,onOpen:m,onClose:p,side:h="outside-bottom",align:g="start",anchorOffset:v,alignmentOffset:b,width:x="auto",height:y="auto",overlayProps:w,focusTrapSettings:j,preventOverflow:k=!0,variant:C=gi,displayCloseButton:S=!0,closeButtonProps:O,onPositionChange:M,className:A}=e,T=null!=w?w:{},{ref:I,className:D,style:L,portalContainerName:z}=T,E=s(T,["ref","className","style","portalContainerName"]),P=null!=O?O:{},{className:$,"aria-label":R}=P,B=s(P,["className","aria-label"]),V=o.useRef(null),_=null!=l?l:V,F=Jt(c),H=o.useRef(null),W=N(I,H),G=o.useRef(null),[q,K]=o.useState(null),U=o.useCallback(()=>{const e=_.current,t=H.current;if(!e||!t)return;const a=ui(t,e,{side:h,align:g,anchorOffset:v,alignmentOffset:b});G.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(G.current,a)||(G.current=a,K(a),null==M||M({position:a}))},[_,h,g,v,b,M]);Kn(()=>{if(!u)return G.current=null,void K(null);U();const e=new ResizeObserver(U);return H.current&&e.observe(H.current),window.addEventListener("resize",U),window.addEventListener("scroll",U,!0),()=>{e.disconnect(),window.removeEventListener("resize",U),window.removeEventListener("scroll",U,!0)}},[u,U]),qn(Object.assign(Object.assign({containerRef:H,returnFocusRef:_},j),{disabled:!u||!q||Boolean(null==j?void 0:j.disabled)})),Zn(e=>{u&&(e.preventDefault(),null==p||p("escape"))}),o.useEffect(()=>{if(!u)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=H.current)||void 0===t?void 0:t.contains(n))||(null===(a=_.current)||void 0===a?void 0:a.contains(n))||null==p||p("click-outside"))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[_,u,p]);const Y="fullscreen"===C.narrow,Z=Boolean(p)&&Y&&S;return f.jsxs(f.Fragment,{children:[r?r({ref:_,id:F,"aria-haspopup":"true","aria-expanded":u,tabIndex:0,onClick:e=>{e.defaultPrevented||0!==e.button||(u?null==p||p("anchor-click"):null==m||m("anchor-click"))},onKeyDown:e=>{e.defaultPrevented||u||!fi.includes(e.key)||(null==m||m("anchor-key-press",e),e.preventDefault())}}):null,u?f.jsx(oi,{containerName:z,children:f.jsxs("div",Object.assign({ref:W,tabIndex:-1,className:et(hi({width:x,height:y,reflow:!k,fullscreen:Y,unplaced:!q}),A,D),style:Object.assign(Object.assign({},L),{"--anchored-overlay-top":`${null!==(t=null==q?void 0:q.top)&&void 0!==t?t:0}px`,"--anchored-overlay-left":`${null!==(a=null==q?void 0:q.left)&&void 0!==a?a:0}px`}),"data-component":"AnchoredOverlay","data-side":null!==(n=null==q?void 0:q.anchorSide)&&void 0!==n?n:h,"data-align":null!==(i=null==q?void 0:q.anchorAlign)&&void 0!==i?i:g,"data-width":x,"data-height":y,"data-visibility":q?"visible":"hidden"},Qn("variant",C),E,{children:[Z?f.jsx("div",{className:mi,children:f.jsx(yn,Object.assign({icon:Ct,variant:"invisible","aria-label":null!=R?R:"Close",onClick:()=>null==p?void 0:p("close-button"),className:et(pi,$),"data-component":"AnchoredOverlay.CloseButton"},B))}):null,d]}))}):null]})}vi.displayName="AnchoredOverlay";const bi="action-menu-overlay";function xi(e){const{children:t,align:a="start",side:n,className:i,returnFocusRef:r,"aria-labelledby":l}=e,c=s(e,["children","align","side","className","returnFocusRef","aria-labelledby"]),d=o.useContext(Vn),u=Boolean(null==d?void 0:d.isSubmenu),m=null==d?void 0:d.onClose,p=o.useCallback(e=>null==m?void 0:m(e),[m]),h=o.useMemo(()=>({container:"ActionMenu",listRole:"menu",listLabelledBy:null!=l?l:null==d?void 0:d.anchorId,selectionAttribute:"aria-checked",afterSelect:()=>null==m?void 0:m("item-select")}),[l,null==d?void 0:d.anchorId,m]);return d?f.jsx(vi,Object.assign({anchorRef:d.anchorRef,renderAnchor:d.renderAnchor,anchorId:d.anchorId,open:d.open,onOpen:d.onOpen,onClose:p,align:a,side:null!=n?n:u?"outside-right":"outside-bottom",className:i,focusTrapSettings:r?{returnFocusRef:r}:void 0},c,{children:f.jsx("div",{className:bi,onKeyDown:e=>{e.defaultPrevented||("Tab"!==e.key?u&&"ArrowLeft"===e.key&&(null==m||m("arrow-left"),e.preventDefault()):null==m||m("tab"))},"data-component":"ActionMenu.Overlay",children:f.jsx(Oa.Provider,{value:h,children:t})})})):null}xi.displayName="ActionMenu.Overlay";const yi=Object.assign(Wn,{Anchor:_n,Button:Fn,Overlay:xi,Divider:Ra}),wi=e.createContext({size:"medium"}),Ni=e.createContext({}),ji={current:null},ki=t=>{const{size:a,rootRef:n,setOverflowing:i}=o.useContext(wi),{index:r,inGroup:s}=o.useContext(Ni),l=(({ref:t,rootRef:a,disabled:n})=>{const[i,r]=e.useState(!1);return e.useEffect(()=>{const e=t.current,i=a.current;if(!e||!i||n)return void r(!1);const o=new IntersectionObserver(e=>{for(const t of e)r(t.intersectionRatio<1)},{root:i,threshold:1});return o.observe(e),()=>{o.disconnect()}},[t,a,n]),i})({ref:t,rootRef:null!=n?n:ji,disabled:s});return o.useEffect(()=>{void 0!==r&&(null==i||i(r,l))},[r,l,i]),{size:a,isOverflowing:l}},Ci="action-bar-divider",Si="invisible";function Oi(e){const{className:t}=e,a=s(e,["className"]),n=o.useRef(null),{isOverflowing:i}=ki(n);return f.jsx("div",Object.assign({ref:n,"aria-hidden":"true",className:et(Ci,i&&Si,t),"data-component":"ActionBar.Divider","data-overflowing":i?"":void 0},a))}Oi.displayName="ActionBar.Divider";const Mi="action-bar-group",Ai="invisible",Ti={inGroup:!0};function Ii(e){const{className:t,children:a}=e,n=s(e,["className","children"]),i=o.useRef(null),{isOverflowing:r}=ki(i);return f.jsx("div",Object.assign({ref:i,className:et(Mi,r&&Ai,t),"data-component":"ActionBar.Group","data-overflowing":r?"":void 0},n,{children:f.jsx(Ni.Provider,{value:Ti,children:a})}))}Ii.displayName="ActionBar.Group";const Di="invisible";function Li(e,t){const a=e,{className:n}=a,i=s(a,["className"]),r=o.useRef(null),l=N(t,r),{size:c,isOverflowing:d}=ki(r);return f.jsx(yn,Object.assign({ref:l,size:c,variant:"invisible",className:et(d&&Di,n),"data-component":"ActionBar.IconButton","data-overflowing":d?"":void 0},i))}Li.displayName="ActionBar.IconButton";var zi=tt(Li);const Ei=e=>{if("string"==typeof e)return f.jsx("span",{children:e});if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},Pi=({items:e})=>f.jsx(f.Fragment,{children:e.map((e,t)=>{if("divider"===e.type)return f.jsx(Bn.Divider,{},t);const{label:a,disabled:n,variant:i,leadingVisual:r,trailingVisual:o,onClick:s}=e,l=f.jsxs(f.Fragment,{children:[r?f.jsx(Bn.LeadingVisual,{children:Ei(r)}):null,a,o?f.jsx(Bn.TrailingVisual,{children:Ei(o)}):null]});return e.items&&e.items.length>0?f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(Bn.Item,{disabled:n,variant:i,children:l})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:f.jsx(Pi,{items:e.items})})})]},t):f.jsx(Bn.Item,{onSelect:s,disabled:n,variant:i,children:l},t)})}),$i="invisible";function Ri(e,t){const{className:a,icon:n,items:i,returnFocusRef:r,overflowIcon:l}=e,c=s(e,["className","icon","items","returnFocusRef","overflowIcon"]),d=o.useRef(null),u=N(t,d),{size:m,isOverflowing:p}=ki(d);return f.jsxs(yi,{anchorRef:d,children:[f.jsx(yi.Anchor,{children:f.jsx(yn,Object.assign({ref:u,icon:n,size:m,variant:"invisible",className:et(p&&$i,a),"data-component":"ActionBar.Menu","data-overflowing":p?"":void 0},c))}),f.jsx(yi.Overlay,{returnFocusRef:r,children:f.jsx(Bn,{children:f.jsx(Pi,{items:i})})})]})}Ri.displayName="ActionBar.Menu";var Bi=tt(Ri);const Vi={size:{small:"action-bar-size-small",medium:"action-bar-size-medium",large:"action-bar-size-large"},spacer:"shrink-0",moreButtonEmpty:"invisible"},_i=Xe("action-bar",{variants:{flush:{true:"",false:"action-bar-inset"}}}),Fi=Xe("action-bar-toolbar",{variants:{size:Vi.size}}),Hi=Xe("action-bar-items",{variants:{size:Vi.size,gap:{none:"action-bar-gap-none",condensed:"action-bar-gap-condensed"}}}),Wi=new Set,Gi=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})},qi=(e,t)=>{var a;const n=e.props;if(e.type===Oi)return f.jsx(Bn.Divider,{},t);if(e.type===Ii)return o.Children.toArray(n.children).filter(e=>o.isValidElement(e)).map((e,a)=>qi(e,`${t}-${a}`));if(e.type===Bi){const e=null!==(a=n.overflowIcon)&&void 0!==a?a:n.icon;return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsxs(Bn.Item,{children:[e?f.jsx(Bn.LeadingVisual,{children:Gi(e)}):null,n["aria-label"]]})}),f.jsx(yi.Overlay,{returnFocusRef:n.returnFocusRef,children:f.jsx(Bn,{children:f.jsx(Pi,{items:n.items})})})]},t)}const i=e.type===zi?n.icon:n.leadingVisual,r=e.type===zi?n["aria-label"]:n.children;return f.jsxs(Bn.Item,{onSelect:n.onClick,disabled:n.disabled,children:[i?f.jsx(Bn.LeadingVisual,{children:Gi(i)}):null,r]},t)};function Ki(e){const{className:t,children:a,size:n="medium",flush:i=!1,gap:r="condensed","aria-label":s,"aria-labelledby":l}=e,c=o.useRef(null),d=o.useRef(null),[u,m]=o.useState(Wi),p=o.useCallback((e,t)=>{m(a=>{if(a.has(e)===t)return a;const n=new Set(a);return t?n.add(e):n.delete(e),n})},[]);pa({containerRef:c,direction:"horizontal",wrap:!0});const h=o.useMemo(()=>({size:n,rootRef:d,setOverflowing:p}),[n,p]),g=o.Children.toArray(a),v=g.length,b=o.useMemo(()=>Array.from({length:v},(e,t)=>({index:t})),[v]),x=g.map((e,t)=>u.has(t)&&o.isValidElement(e)?qi(e,t):null).filter(Boolean);return f.jsx(wi.Provider,{value:h,children:f.jsx("div",{className:et(_i({flush:i}),t),"data-component":"ActionBar","data-flush":i?"":void 0,children:f.jsxs("div",{ref:c,role:"toolbar","aria-label":s,"aria-labelledby":l,className:et(Fi({size:n})),"data-size":n,"data-gap":r,"data-has-overflow":x.length>0?"":void 0,children:[f.jsxs("div",{ref:d,className:et(Hi({size:n,gap:r})),children:[f.jsx("div",{className:Vi.spacer}),g.map((e,t)=>f.jsx(Ni.Provider,{value:b[t],children:e},t))]}),f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":"More items",size:n,variant:"invisible",className:x.length>0?void 0:Vi.moreButtonEmpty,"data-component":"ActionBar.MoreButton"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:x})})]})]})})})}Ki.displayName="ActionBar";const Ui="invisible";function Yi(e,t){const{className:a}=e,n=s(e,["className"]),i=o.useRef(null),r=N(t,i),{size:l,isOverflowing:c}=ki(i);return f.jsx(vn,Object.assign({ref:r,size:l,variant:"invisible",className:et(c&&Ui,a),"data-component":"ActionBar.Button","data-overflowing":c?"":void 0},n))}Yi.displayName="ActionBar.Button";var Zi=tt(Yi);const Qi=Object.assign(Ki,{Button:Zi,IconButton:zi,Divider:Oi,Group:Ii,Menu:Bi}),Xi=Xe("alert",{variants:{variant:{default:"alert-default",success:"alert-success",warning:"alert-warning",danger:"alert-danger"}}});function Ji(e,t){const a=e,{as:n="div",className:i,variant:r="default"}=a,o=s(a,["as","className","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(Xi({variant:r}),i),"data-component":"Alert","data-variant":r},o))}Ji.displayName="Alert";var er=tt(Ji);const tr=Xe("aspect-ratio",{variants:{ratio:{"1:1":"aspect-ratio-1-1","16:9":"aspect-ratio-16-9","4:3":"aspect-ratio-4-3",custom:""}}});function ar(e,t){const a=e,{as:n="div",className:i,ratio:r="1:1",width:o=1,height:l=1,style:c}=a,d=s(a,["as","className","ratio","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(tr({ratio:r}),i),style:Object.assign(Object.assign({},c),{"--aspect-ratio":"custom"===r?`${o}/${l}`:void 0}),"data-component":"AspectRatio","data-ratio":r},d))}ar.displayName="AspectRatio";var nr=tt(ar);const ir=e.createContext({}),rr=e.createContext({}),or=e.createContext({});function sr({children:e,id:t}){const a=Jt(t),n=o.useRef(null),i=o.useRef(null),[r,s]=o.useState(""),[l,c]=o.useState(""),[d,u]=o.useState(),[m,p]=o.useState(!1),h=o.useCallback(e=>{p(e),e||(u(void 0),c(""))},[]),g=o.useMemo(()=>({id:a,inputRef:n,scrollContainerRef:i,activeDescendantId:d,setActiveDescendantId:u,showMenu:m,setShowMenu:h,setInputValue:s,setAutocompleteSuggestion:c}),[a,d,m,h]),v=o.useMemo(()=>({inputValue:r,autocompleteSuggestion:l}),[r,l]),b=o.useDeferredValue(r),x=o.useMemo(()=>({deferredInputValue:b}),[b]);return f.jsx(ir.Provider,{value:g,children:f.jsx(rr.Provider,{value:v,children:f.jsx(or.Provider,{value:x,children:e})})})}sr.displayName="Autocomplete";const lr=Xe("text",{variants:{size:{large:"text-size-large",medium:"text-size-medium",small:"text-size-small"},weight:{light:"text-weight-light",normal:"text-weight-normal",medium:"text-weight-medium",semibold:"text-weight-semibold"},whiteSpace:{pre:"whitespace-pre",normal:"whitespace-normal",nowrap:"whitespace-nowrap","pre-wrap":"whitespace-pre-wrap","pre-line":"whitespace-pre-line"}}});function cr(e,t){const a=e,{as:n="span",className:i,size:r="medium",weight:o,whiteSpace:l}=a,c=s(a,["as","className","size","weight","whiteSpace"]);return f.jsx(n,Object.assign({ref:t,className:et(lr({size:r,weight:o,whiteSpace:l}),i),"data-component":"Text","data-size":r,"data-weight":o,"data-white-space":l},c))}cr.displayName="Text";var dr=tt(cr);const ur=(e,t)=>{const a=t-e;if(a>=0)return{count:a,isOverLimit:!1,message:`${a} ${1===a?"character":"characters"} remaining`};const n=-a;return{count:n,isOverLimit:!0,message:`${n} ${1===n?"character":"characters"} over`}},mr={field:"input",size:{small:"input-small",medium:"input-medium",large:"input-large"},focus:"input-focus",focusTracked:"input-focus-tracked",block:"input-block",contrast:"input-contrast",monospace:"input-monospace",disabled:"input-disabled",validation:{error:"input-error",success:"input-success"},validationFocus:"input-validation-focus",validationFocusTracked:"input-validation-focus-tracked",leadingVisual:"input-leading-visual-padding",leadingVisualLarge:"input-leading-visual-padding-wide",trailingVisual:"input-trailing-visual-padding",trailingVisualLarge:"input-trailing-visual-padding-wide",input:"input-control",inputPadStart:"input-control-pad-start",inputPadStartWide:"input-control-pad-start-wide",inputPadEnd:"input-control-pad-end",inputPadEndWide:"input-control-pad-end-wide",visual:"input-visual",visualBox:"input-visual-box",spinner:"input-spinner",spinnerLeading:"input-spinner-leading",spinnerHidden:"invisible",spinnerVisible:"visible",counter:"input-counter",counterOverLimit:"input-counter-over-limit",counterIcon:"input-counter-icon",hidden:"sr-only"},pr=["date","time","datetime-local"],hr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})},gr=({id:e,position:t,hasLoader:a,showLoader:n,children:i})=>{const r="leading"===t?"TextInput.LeadingVisual":"TextInput.TrailingVisual";return a?f.jsx("span",{className:mr.visual,"data-component":r,children:f.jsxs("span",{id:e,className:mr.visualBox,children:[i?f.jsx("span",{className:n?mr.spinnerHidden:mr.spinnerVisible,children:i}):null,f.jsx(en,{srText:null,size:i?void 0:"small",className:et(n?mr.spinnerVisible:mr.spinnerHidden,i&&mr.spinner,i&&"leading"===t&&mr.spinnerLeading)})]})}):f.jsx("span",{id:e,className:mr.visual,"aria-hidden":"true","data-component":r,children:i})};function fr(e,t){var a;const{className:n,type:i="text",size:r="medium",block:l,contrast:c,monospace:d,disabled:u,required:m,validationStatus:p,leadingVisual:h,trailingVisual:g,trailingAction:v,loading:b,loaderPosition:x="auto",loaderText:y="Loading",characterLimit:w,value:j,defaultValue:k,onChange:C,onFocus:S,onBlur:O,"aria-describedby":M}=e,A=s(e,["className","type","size","block","contrast","monospace","disabled","required","validationStatus","leadingVisual","trailingVisual","trailingAction","loading","loaderPosition","loaderText","characterLimit","value","defaultValue","onChange","onFocus","onBlur","aria-describedby"]),T=o.useRef(null),I=N(t,T),D=Jt(),L=Jt(),z=Jt(),E=Jt(),[P,$]=o.useState(!1),R=void 0!==j,[B,V]=o.useState(()=>void 0===k?0:String(k).length),_=R?String(j).length:B,F=w?ur(_,w):void 0,H=null!==(a=null==F?void 0:F.isOverLimit)&&void 0!==a&&a,W=H?"error":p,G=o.useRef(!1),[q,K]=o.useState(""),U=null==F?void 0:F.message;o.useEffect(()=>{if(!G.current)return;const e=window.setTimeout(()=>{K(null!=U?U:"")},500);return()=>{window.clearTimeout(e)}},[U]);const Y=Boolean(b&&("leading"===x||h&&"trailing"!==x)),Z=Boolean(b&&("trailing"===x||"auto"===x&&!h)),Q="boolean"==typeof b,X=Boolean(h)||Y,J=Boolean(g)||Z,ee=Boolean(v),te=Boolean(g)||Q,ae=ee,ne="large"===r,ie=[w?E:void 0,M,h?D:void 0,g?L:void 0,b?z:void 0].filter(Boolean).join(" ")||void 0;return f.jsxs(f.Fragment,{children:[f.jsxs("span",{className:et(mr.field,mr.size[r],ae?P&&mr.focusTracked:mr.focus,l&&mr.block,c&&mr.contrast,d&&mr.monospace,u&&mr.disabled,W&&mr.validation[W],"error"===W&&(ae?P&&mr.validationFocusTracked:mr.validationFocus),X&&(ne?mr.leadingVisualLarge:mr.leadingVisual),J&&!ee&&(ne?mr.trailingVisualLarge:mr.trailingVisual),n),onClick:e=>{var t;e.target===T.current&&pr.includes(i)||null===(t=T.current)||void 0===t||t.focus()},"aria-busy":!!b||void 0,"data-component":"TextInput","data-size":r,"data-block":l,"data-contrast":c,"data-monospace":d,"data-disabled":u,"data-validation":W,"data-focused":P||void 0,"data-leading-visual":X||void 0,"data-trailing-visual":J||void 0,"data-trailing-action":ee||void 0,children:[X?f.jsx(gr,{id:D,position:"leading",hasLoader:Q,showLoader:Y,children:h?hr(h):null}):null,f.jsx("input",Object.assign({ref:I,type:i,value:j,defaultValue:k,disabled:u,required:m,"aria-required":!!m||void 0,"aria-invalid":"error"===W||void 0,"aria-describedby":ie,onChange:e=>{G.current=!0,w&&!R&&V(e.target.value.length),null==C||C(e)},onFocus:e=>{$(!0),null==S||S(e)},onBlur:e=>{$(!1),null==O||O(e)},className:et(mr.input,!X&&(J||ee?mr.inputPadStart:mr.inputPadStartWide),!J&&!ee&&(X?mr.inputPadEnd:mr.inputPadEndWide)),"data-component":"TextInput.Input"},A)),b?f.jsx("span",{id:z,className:mr.hidden,children:y}):null,te?f.jsx(gr,{id:L,position:"trailing",hasLoader:Q,showLoader:Z,children:g?hr(g):null}):null,v]}),F?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:mr.hidden,children:q}),f.jsxs("span",{id:E,className:mr.hidden,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(mr.counter,H&&mr.counterOverLimit),"data-component":"TextInput.CharacterCount",children:[H?f.jsx(Ot,{className:mr.counterIcon}):null,F.message]})]}):null]})}fr.displayName="TextInput";var vr=tt(fr);const br="input-action",xr="input-action-button";function yr(e,t){const{className:a,icon:n}=e,i=s(e,["className","icon"]);return f.jsx("span",{className:br,"data-component":"TextInput.Action",children:f.jsx(yn,Object.assign({ref:t,type:"button",variant:"invisible",size:"small",icon:n,className:et(xr,a)},i))})}yr.displayName="TextInput.Action";var wr=tt(yr);const Nr=Object.assign(vr,{Action:wr}),jr=["ArrowDown","ArrowUp"],kr=["Backspace","Delete"];function Cr(e,t){const a=e,{as:n=Nr,className:i,openOnFocus:r=!1,value:l,onFocus:c,onBlur:d,onClick:u,onChange:m,onKeyDown:p,onKeyUp:h}=a,g=s(a,["as","className","openOnFocus","value","onFocus","onBlur","onClick","onChange","onKeyDown","onKeyUp"]),{id:v,inputRef:b,activeDescendantId:x,showMenu:y,setShowMenu:w,setInputValue:j}=o.useContext(ir),{inputValue:k="",autocompleteSuggestion:C=""}=o.useContext(rr),S=N(t,b),[O,M]=o.useState(!0);return o.useEffect(()=>{const e=null==b?void 0:b.current;e&&(C?O&&document.activeElement===e&&(e.value=C,C.toLowerCase().startsWith(k.toLowerCase())&&e.setSelectionRange(k.length,C.length)):e.value=k)},[C,k,b,O]),o.useEffect(()=>{void 0!==l&&(null==j||j(String(l)))},[l,j]),f.jsx(n,Object.assign({ref:S,id:v,role:"combobox",autoComplete:"off","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(y),"aria-controls":`${v}-listbox`,"aria-activedescendant":x,className:i,onFocus:e=>{null==c||c(e),r&&(null==w||w(!0))},onBlur:e=>{null==d||d(e),null==w||w(!1)},onClick:e=>{null==u||u(e),r&&(null==w||w(!0))},onChange:e=>{null==m||m(e),null==j||j(e.currentTarget.value),null==w||w(!0)},onKeyDown:e=>{null==p||p(e),e.defaultPrevented||(kr.includes(e.key)&&M(!1),"Escape"!==e.key?y||e.altKey||!jr.includes(e.key)||null==w||w(!0):y?null==w||w(!1):e.currentTarget.value&&(null==j||j(""),e.currentTarget.value=""))},onKeyUp:e=>{null==h||h(e),kr.includes(e.key)&&M(!0)},"data-component":"Autocomplete.Input"},g))}Cr.displayName="Autocomplete.Input";var Sr=tt(Cr);const Or="autocomplete-menu-loading",Mr="autocomplete-menu-empty-state",Ar="sr-only",Tr=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Ir(e){var t;const{items:a,selectedItemIds:n=[],selectionVariant:i="single",filter:r,sortOnClose:l,emptyStateText:c="No selectable options",addNewItem:d,loading:u=!1,onOpenChange:m,onSelectedChange:p,customScrollContainerRef:h,"aria-labelledby":g,className:v}=e,{id:b,inputRef:x,scrollContainerRef:y,activeDescendantId:w,setActiveDescendantId:N,showMenu:j,setShowMenu:k,setInputValue:C,setAutocompleteSuggestion:S}=o.useContext(ir),{deferredInputValue:O=""}=o.useContext(or),M=`${b}-listbox`,A=o.useCallback(e=>`${M}-${e}`,[M]),[T,I]=o.useState(()=>a.map(e=>e.id));o.useEffect(()=>{if(j)return;const e=a.map(e=>e.id).sort(null!=l?l:(t=e=>n.includes(e),(e,a)=>t(e)===t(a)?0:t(e)?-1:1));var t;I(t=>((e,t)=>e.length===t.length&&e.every((e,a)=>e===t[a]))(e,t)?t:e)},[j,a,n,l]);const D=o.useMemo(()=>new Map(T.map((e,t)=>[e,t])),[T]),L=o.useMemo(()=>{return a.filter(null!=r?r:(e=O,t=>{var a;return Boolean(null===(a=t.text)||void 0===a?void 0:a.toLowerCase().startsWith(e.toLowerCase()))})).sort((e,t)=>{var a,n;return(null!==(a=D.get(e.id))&&void 0!==a?a:Number.MAX_SAFE_INTEGER)-(null!==(n=D.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER)});var e},[a,r,O,D]),z=o.useMemo(()=>d?[...L,d.item]:L,[L,d]),E=o.useMemo(()=>z.filter(e=>!e.disabled),[z]),P=E.findIndex(e=>A(e.id)===w),$=E[P],[R,B]=o.useState(!1),V=e=>{var t;if(d&&e.id===d.item.id)d.onAdd(e);else{const r="single"===i?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];p?p(r.map(e=>a.find(t=>t.id===e)).filter(e=>void 0!==e)):"single"===i&&(null==C||C(null!==(t=e.text)&&void 0!==t?t:""))}if("multiple"===i)return null==C||C(""),void(null==S||S(""));null==k||k(!1)},_=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if("Enter"===e.key){if(!$)return;return e.preventDefault(),void V($)}const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0;0!==t&&(e.preventDefault(),(e=>{if(0===E.length)return;const t=(e+E.length)%E.length;B(!0),null==N||N(A(E[t].id))})(-1===P?1===t?0:-1:P+t))},F=o.useRef(_);o.useEffect(()=>{F.current=_}),o.useEffect(()=>{const e=null==x?void 0:x.current;if(!e||!j)return;const t=e=>F.current(e);return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}},[x,j]);const H=null!==(t=null==$?void 0:$.text)&&void 0!==t?t:"",W=R&&Boolean($)&&H.toLowerCase().startsWith(O.toLowerCase())&&!n.includes($.id);o.useEffect(()=>{null==S||S(W?H:"")},[W,H,S]),o.useEffect(()=>{var e;if(!w||!R)return;const t=null!==(e=null==h?void 0:h.current)&&void 0!==e?e:null==y?void 0:y.current,a=document.getElementById(w);if(!t||!a||!t.contains(a))return;const n=t.getBoundingClientRect(),i=a.getBoundingClientRect();i.top<n.top?t.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(t.scrollTop+=i.bottom-n.bottom)},[w,R,h,y]);const G=o.useRef(!1);o.useEffect(()=>{const e=Boolean(j);G.current!==e&&(G.current=e,null==m||m(e))},[j,m]);const q="string"==typeof c?c:"No options available",K=u?"":0===z.length?q:`${z.length} option${1===z.length?"":"s"} available.`,[U,Y]=o.useState(""),Z=o.useRef("");o.useEffect(()=>{if(!j)return Z.current="",void Y("");if(K===Z.current)return;Z.current=K;const e=window.setTimeout(()=>Y(K),500);return()=>{window.clearTimeout(e)}},[j,K]);const Q=o.useMemo(()=>({container:"Autocomplete",listRole:"listbox",listLabelledBy:g,selectionAttribute:"aria-selected",selectionVariant:i,enableFocusZone:!1}),[g,i]),X=e=>{const{id:t,text:a,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,children:c}=e,u=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","children"]),m=d&&t===d.item.id?st:o;return f.jsxs(Bn.Item,Object.assign({id:A(t),tabIndex:-1,active:A(t)===w,selected:n.includes(t),onSelect:()=>V(e),"data-id":t},u,{children:[m?f.jsx(Bn.LeadingVisual,{children:Tr(m)}):null,c,a,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Tr(l)}):null]}),t)};return f.jsxs("div",{className:et(v),onMouseDown:e=>e.preventDefault(),onMouseMove:e=>{const t=e.target.closest('[role="option"]');t&&t.id!==w&&E.some(e=>A(e.id)===t.id)&&(B(!1),null==N||N(t.id))},"data-component":"Autocomplete.Menu","data-loading":u?"":void 0,children:[u?f.jsx("div",{className:Or,"data-component":"Autocomplete.Loading",children:f.jsx(en,{})}):0===z.length?c?f.jsx("div",{className:Mr,"data-component":"Autocomplete.EmptyState",children:c}):null:f.jsx(Oa.Provider,{value:Q,children:f.jsx(Bn,{id:M,children:z.map(X)})}),f.jsx("span",{role:"status","aria-live":"polite",className:Ar,"data-component":"Autocomplete.Announcement",children:U})]})}Ir.displayName="Autocomplete.Menu";const Dr="sr-only",Lr=Xe(["autocomplete-overlay","motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2"],{variants:{width:{xsmall:"autocomplete-overlay-width-xsmall",small:"autocomplete-overlay-width-small",medium:"autocomplete-overlay-width-medium",large:"autocomplete-overlay-width-large",xlarge:"autocomplete-overlay-width-xlarge",auto:"autocomplete-overlay-width-auto",anchor:"autocomplete-overlay-width-anchor"},height:{small:"autocomplete-overlay-height-small",medium:"autocomplete-overlay-height-medium",large:"autocomplete-overlay-height-large",xlarge:"autocomplete-overlay-height-xlarge",auto:"autocomplete-overlay-height-auto"},maxHeight:{small:"autocomplete-overlay-max-height-small",medium:"autocomplete-overlay-max-height-medium",large:"autocomplete-overlay-max-height-large",xlarge:"autocomplete-overlay-max-height-xlarge"},unplaced:{true:"invisible",false:""}}});function zr(e){var t,a,n,i,r;const{menuAnchorRef:l,side:c="outside-bottom",align:d="start",width:u="anchor",height:m="auto",maxHeight:p="medium",portalContainerName:h,children:g,className:v,style:b}=e,x=s(e,["menuAnchorRef","side","align","width","height","maxHeight","portalContainerName","children","className","style"]),{inputRef:y,scrollContainerRef:w,showMenu:j,setShowMenu:k}=o.useContext(ir),C=o.useRef(null),S=N(w,C),O=o.useCallback(()=>{var e,t,a;const n=null!==(e=null==y?void 0:y.current)&&void 0!==e?e:null;return null!==(a=null!==(t=null==l?void 0:l.current)&&void 0!==t?t:null==n?void 0:n.closest('[data-component="TextInput"]'))&&void 0!==a?a:n},[l,y]),M=o.useRef(null),[A,T]=o.useState(null),I=o.useCallback(()=>{const e=O(),t=C.current;if(!e||!t)return;const a=Object.assign(Object.assign({},ui(t,e,{side:c,align:d})),{anchorWidth:e.getBoundingClientRect().width});M.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth)(M.current,a)||(M.current=a,T(a))},[O,c,d]);return Kn(()=>{if(!j)return M.current=null,void T(null);I();const e=new ResizeObserver(I),t=O();return C.current&&e.observe(C.current),t&&e.observe(t),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{e.disconnect(),window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[j,I,O]),o.useEffect(()=>{if(!j)return;const e=e=>{var t,a;const{target:n}=e;n instanceof Node&&((null===(t=C.current)||void 0===t?void 0:t.contains(n))||(null===(a=O())||void 0===a?void 0:a.contains(n))||null==k||k(!1))};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[j,k,O]),f.jsx(oi,{containerName:h,children:f.jsx("div",Object.assign({ref:S,"aria-hidden":j?void 0:"true",className:et(j?Lr({width:u,height:m,maxHeight:p,unplaced:!A}):Dr,v),style:Object.assign(Object.assign({},b),{"--autocomplete-overlay-top":`${null!==(t=null==A?void 0:A.top)&&void 0!==t?t:0}px`,"--autocomplete-overlay-left":`${null!==(a=null==A?void 0:A.left)&&void 0!==a?a:0}px`,"--autocomplete-overlay-anchor-width":`${null!==(n=null==A?void 0:A.anchorWidth)&&void 0!==n?n:0}px`}),"data-component":"Autocomplete.Overlay","data-open":j?"":void 0,"data-side":null!==(i=null==A?void 0:A.anchorSide)&&void 0!==i?i:c,"data-align":null!==(r=null==A?void 0:A.anchorAlign)&&void 0!==r?r:d,"data-width":u,"data-height":m},x,{children:g}))})}zr.displayName="Autocomplete.Overlay";const Er=Object.assign(sr,{Input:Sr,Menu:Ir,Overlay:zr});e.createContext({});const Pr=e=>"object"==typeof e&&Object.keys(e).some(e=>["narrow","regular","wide"].includes(e)),$r=20,Rr=Xe("avatar",{variants:{shape:{circle:"avatar-circle",square:"avatar-square"},responsive:{true:"avatar-responsive",false:""}}});function Br(e,t){const a=e,{as:n="img",className:i,alt:r="",size:o=$r,shape:l="circle",style:c}=a,d=s(a,["as","className","alt","size","shape","style"]),u=Pr(o),m={"--avatar-size-regular":`${$r}px`};if(u)for(const[e,t]of Object.entries(o))void 0!==t&&(m[`--avatar-size-${e}`]=`${t}px`);else m["--avatar-size-regular"]=`${o}px`;return f.jsx(n,Object.assign({ref:t,alt:r,width:u?void 0:o,height:u?void 0:o,className:et(Rr({shape:l,responsive:u}),i),style:Object.assign(Object.assign({},c),m),"data-component":"Avatar","data-responsive":u||void 0,"data-shape":l},d))}Br.displayName="Avatar";var Vr=tt(Br);const _r=["narrow","regular","wide"],Fr={root:"avatar-stack",responsive:"avatar-stack-responsive",alignLeft:"avatar-stack-align-left",alignRight:"avatar-stack-align-right",variant:{cascade:"avatar-stack-cascade",stack:"avatar-stack-stack"},width:{cascade:{two:"avatar-stack-cascade-two",three:"avatar-stack-cascade-three",more:"avatar-stack-cascade-more"},stack:{two:"avatar-stack-stack-two",three:"avatar-stack-stack-three",more:"avatar-stack-stack-more"}},body:{collapsed:"avatar-stack-body",expandable:"avatar-stack-body-expandable"},item:{root:"avatar-stack-item",first:"avatar-stack-item-first",overlapped:"avatar-stack-item-overlapped",mask:"avatar-stack-item-mask",shape:{circle:"avatar-stack-item-circle",square:"avatar-stack-item-square"},edge:{circle:"avatar-stack-item-edge-circle",square:"avatar-stack-item-edge-square"},edgeAlignRight:"avatar-stack-item-edge-align-right",layer:["z-5","z-4","z-3","z-2","z-1"],fade:["","","avatar-stack-item-fade-third","avatar-stack-item-fade-fourth","avatar-stack-item-fade-fifth"],overflow:"avatar-stack-item-overflow",expanded:"avatar-stack-item-expanded",expandedFirst:"avatar-stack-item-expanded-first"}};function Hr(e,t){var a;const n=e,{as:i="span",className:r,children:l,variant:c="cascade",shape:d="circle",size:u,alignRight:m,disableExpand:p,style:h}=n,g=s(n,["as","className","children","variant","shape","size","alignRight","disableExpand","style"]),v=o.useRef(null),[b,x]=o.useState(!1);o.useEffect(()=>{if(!v.current)return;const e=v.current,t=()=>{x(ua(e).length>0)},a=new MutationObserver(t);return a.observe(e,{childList:!0}),t(),()=>{a.disconnect()}},[]);const y=o.Children.count(l),w=y>3?"more":3===y?"three":2===y?"two":void 0,N=!u||Pr(u),j=!p,k={};if(Pr(u))for(const e of _r)k[`--avatar-stack-size-${e}`]=`${null!==(a=u[e])&&void 0!==a?a:$r}px`;else if(u)k["--avatar-stack-size"]=`${u}px`;else{const e=(e=>{var t;const a={narrow:[],regular:[],wide:[]};for(const n of o.Children.toArray(e)){if(!o.isValidElement(n))continue;const e=n.props.size;for(const n of _r)a[n].push(Pr(e)?null!==(t=e[n])&&void 0!==t?t:$r:null!=e?e:$r)}return Object.fromEntries(_r.map(e=>[e,a[e].length>0?Math.min(...a[e]):$r]))})(l);for(const t of _r)k[`--avatar-stack-size-${t}`]=`${e[t]}px`}const C=o.Children.map(l,(e,t)=>o.isValidElement(e)?o.cloneElement(e,{className:et(Fr.item.root,0===t?Fr.item.first:Fr.item.overlapped,Fr.item.shape[d],m&&"square"===d?Fr.item.edgeAlignRight:Fr.item.edge[d],t>0&&"circle"===d&&Fr.item.mask,"square"===d&&Fr.item.layer[Math.min(t,4)],"cascade"===c&&Fr.item.fade[t],t>4&&Fr.item.overflow,j&&Fr.item.expanded,j&&0===t&&Fr.item.expandedFirst,e.props.className)}):e);return f.jsx(i,Object.assign({ref:t,className:et(Fr.root,Fr.variant[c],w&&Fr.width[c][w],m?Fr.alignRight:Fr.alignLeft,N&&Fr.responsive,r),style:Object.assign(Object.assign({},h),k),"data-component":"AvatarStack","data-variant":c,"data-shape":d,"data-avatar-count":y>3?"3+":y,"data-align-right":m,"data-responsive":N||void 0},g,{children:f.jsx("div",{ref:v,className:j?Fr.body.expandable:Fr.body.collapsed,tabIndex:j&&!b?0:void 0,"data-component":"AvatarStack.Body","data-disable-expand":p,children:C})}))}Hr.displayName="AvatarStack";var Wr=tt(Hr);const Gr=e.createContext({});function qr(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(a),"data-component":"Banner.Description"},n))}qr.displayName="Banner.Description";var Kr=tt(qr);const Ur="banner-title";function Yr(e,t){const{as:a="h2",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l}=o.useContext(Gr);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et(Ur,n),"data-component":"Banner.Title"},r))}Yr.displayName="Banner.Title";var Zr=tt(Yr);const Qr="banner-container",Xr="banner-actions",Jr="banner-actions-inline",eo="banner-actions-stacked",to={shown:"banner-actions-shown",hidden:"banner-actions-hidden",inlineLeading:"banner-actions-inline-leading",inlineTrailing:"banner-actions-inline-trailing",responsiveLeading:"banner-actions-responsive-leading",responsiveTrailing:"banner-actions-responsive-trailing"},ao="sr-only",no=Xe("banner",{variants:{layout:{default:"banner-default",compact:"banner-compact"},variant:{critical:"banner-critical",info:"banner-info",success:"banner-success",upsell:"banner-upsell",warning:"banner-warning"},flush:{true:"banner-flush",false:""}}}),io=Xe("banner-icon",{variants:{tight:{true:"banner-icon-tight",false:""}}}),ro=Xe("banner-body",{variants:{actions:{stacked:"banner-body-stacked",inline:"banner-body-inline",responsive:"banner-body-responsive"}}}),oo=Xe("banner-content",{variants:{tight:{true:"banner-content-tight",false:""}}}),so=Xe("banner-dismiss",{variants:{withActions:{true:"banner-dismiss-with-actions",false:""}}}),lo={critical:Ot,info:It,success:ft,upsell:It,warning:Ht},co=["info","upsell"],uo=({primaryAction:e,secondaryAction:t,className:a,leadingClassName:n,trailingClassName:i})=>f.jsxs("div",{"data-component":"Banner.Actions",children:[f.jsxs("div",{className:et(Xr,a,i),"data-primary-action":"trailing",children:[t,e]}),f.jsxs("div",{className:et(Xr,a,n),"data-primary-action":"leading",children:[e,t]})]});function mo(e,t){const{className:a,children:n,title:i,description:r,hideTitle:o,leadingVisual:l,variant:c="info",layout:d="default",actionsLayout:u="default",flush:m=!1,onDismiss:p,primaryAction:h,secondaryAction:g,"aria-label":v,"aria-labelledby":b}=e,x=s(e,["className","children","title","description","hideTitle","leadingVisual","variant","layout","actionsLayout","flush","onDismiss","primaryAction","secondaryAction","aria-label","aria-labelledby"]),y=Jt(),w=Boolean(p),N=Boolean(h||g),j=Boolean(o)&&!N,k=lo[c],C=l&&co.includes(c)?l:f.jsx(k,{}),S="stacked"===u||w&&!o&&"inline"!==u,O=S?{leading:to.shown,trailing:to.hidden}:"inline"===u?{leading:to.inlineLeading,trailing:to.inlineTrailing}:{leading:to.responsiveLeading,trailing:to.responsiveTrailing},M=i?f.jsx(Zr,{children:i}):null;return f.jsx(Gr.Provider,{value:{titleId:y},children:f.jsx("div",{className:Qr,children:f.jsxs("section",Object.assign({ref:t,"aria-labelledby":null!=b?b:v?void 0:y,"aria-label":b?void 0:v,tabIndex:-1,className:et(no({layout:d,variant:c,flush:m}),a),"data-component":"Banner","data-variant":c,"data-layout":d,"data-actions-layout":u,"data-dismissible":w||void 0,"data-has-actions":N||void 0,"data-title-hidden":o||void 0,"data-flush":m||void 0},x,{children:[f.jsx("div",{className:et(io({tight:j})),"data-component":"Banner.Icon",children:C}),f.jsxs("div",{className:et(ro({actions:S?"stacked":"inline"===u?"inline":"responsive"})),children:[f.jsxs("div",{className:et(oo({tight:j})),"data-component":"Banner.Content",children:[M?o?f.jsx("span",{className:ao,children:M}):M:null,r?f.jsx(Kr,{children:r}):null,n]}),N?f.jsx(uo,{primaryAction:h,secondaryAction:g,className:et("inline"===u&&Jr,S&&eo),leadingClassName:O.leading,trailingClassName:O.trailing}):null]}),w?f.jsx(yn,{icon:Ct,"aria-label":"Dismiss banner",variant:"invisible",onClick:p,className:et(so({withActions:N})),"data-component":"Banner.Dismiss"}):null]}))})})}mo.displayName="Banner";var po=tt(mo);function ho(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"default","data-component":"Banner.PrimaryAction"},e))}ho.displayName="Banner.PrimaryAction";var go=tt(ho);function fo(e,t){return f.jsx(vn,Object.assign({ref:t,variant:"invisible","data-component":"Banner.SecondaryAction"},e))}fo.displayName="Banner.SecondaryAction";var vo=tt(fo);const bo=Object.assign(po,{Title:Zr,Description:Kr,PrimaryAction:go,SecondaryAction:vo}),xo={container:"blankslate-container",root:"blankslate",border:"blankslate-border",narrow:"blankslate-narrow",size:{small:"blankslate-small",medium:"blankslate-medium",large:"blankslate-large"},padding:{small:"blankslate-padding-small",medium:"blankslate-padding-medium",large:"blankslate-padding-large"},spaciousPadding:{small:"blankslate-padding-spacious-small",medium:"blankslate-padding-spacious-medium",large:"blankslate-padding-spacious-large"},tightType:"blankslate-tight-type",tightPadding:{small:"blankslate-tight-padding-small",medium:"blankslate-tight-padding-medium",large:"blankslate-tight-padding-large"},tightSpaciousPadding:"blankslate-tight-padding-spacious"};function yo(e,t){const a=e,{as:n="div",className:i,size:r="medium",border:o,narrow:l,spacious:c}=a,d=s(a,["as","className","size","border","narrow","spacious"]);return f.jsx("div",{className:xo.container,children:f.jsx(n,Object.assign({ref:t,className:et(xo.root,xo.size[r],c?xo.spaciousPadding[r]:xo.padding[r],xo.tightType,c?xo.tightSpaciousPadding:xo.tightPadding[r],o&&xo.border,l&&xo.narrow,i),"data-component":"Blankslate","data-size":r,"data-border":o,"data-narrow":l,"data-spacious":c},d))})}yo.displayName="Blankslate";var wo=tt(yo);const No="blankslate-description";function jo(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(No,a),"data-component":"Blankslate.Description"},n))}jo.displayName="Blankslate.Description";var ko=tt(jo);const Co="blankslate-heading";function So(e,t){const{as:a="h2",className:n}=e,i=s(e,["as","className"]);return f.jsx(a,Object.assign({ref:t,className:et(Co,n),"data-component":"Blankslate.Heading"},i))}So.displayName="Blankslate.Heading";var Oo=tt(So);const Mo="blankslate-action",Ao="blankslate-action-tight";function To(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Mo,Ao,a)},n))}To.displayName="Blankslate.Action";var Io=tt(To);function Do(e,t){return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.PrimaryAction"},e))}Do.displayName="Blankslate.PrimaryAction";var Lo=tt(Do);const zo="link",Eo="link-inline",Po="link-muted";function $o(e,t){const a=e,{as:n="a",className:i,muted:r,inline:o}=a,l=s(a,["as","className","muted","inline"]);return f.jsx(n,Object.assign({ref:t,className:et(zo,o&&Eo,r&&Po,i),"data-component":"Link","data-muted":r,"data-inline":o},l))}$o.displayName="Link";var Ro=tt($o);function Bo(e,t){const{href:a,children:n}=e,i=s(e,["href","children"]);return f.jsx(Io,Object.assign({ref:t,"data-component":"Blankslate.SecondaryAction"},i,{children:void 0===a?n:f.jsx(Ro,{href:a,children:n})}))}Bo.displayName="Blankslate.SecondaryAction";var Vo=tt(Bo);const _o="blankslate-visual",Fo="blankslate-visual-tight";function Ho(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("span",Object.assign({ref:t,className:et(_o,Fo,a),"data-component":"Blankslate.Visual"},n))}Ho.displayName="Blankslate.Visual";var Wo=tt(Ho);const Go=Object.assign(wo,{Visual:Wo,Heading:Oo,Description:ko,PrimaryAction:Lo,SecondaryAction:Vo}),qo=Xe("blockquote",{variants:{size:{large:"blockquote-large",medium:"blockquote-medium",small:"blockquote-small"},variant:{subtle:"blockquote-subtle",default:"blockquote-default",emphasis:"blockquote-emphasis"}}});function Ko(e,t){const a=e,{as:n="blockquote",className:i,size:r="medium",variant:o="default"}=a,l=s(a,["as","className","size","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(qo({size:r,variant:o}),i),"data-component":"Blockquote","data-size":r,"data-variant":o},l))}Ko.displayName="Blockquote";var Uo=tt(Ko);function Yo({items:e}){return f.jsxs(yi,{children:[f.jsx(yi.Anchor,{children:f.jsx(yn,{icon:Lt,"aria-label":`${e.length} more breadcrumb items`,variant:"invisible",size:"small","data-component":"Breadcrumbs.OverflowMenu"})}),f.jsx(yi.Overlay,{children:f.jsx(Bn,{children:e.map((e,t)=>{const a=e.props,{children:n,selected:i,as:r}=a,o=s(a,["children","selected","as"]);return f.jsx(Bn.LinkItem,Object.assign({as:r,"aria-current":i?"page":void 0},o,{children:n}),t)})})})]})}Yo.displayName="Breadcrumbs.OverflowMenu";const Zo=e.createContext({}),Qo="breadcrumbs",Xo="breadcrumbs-list",Jo="breadcrumbs-list-wrap",es="breadcrumbs-list-menu",ts="breadcrumbs-item",as="breadcrumbs-item-menu",ns="breadcrumbs-separator",is=()=>f.jsx("span",{className:ns,"aria-hidden":"true","data-component":"Breadcrumbs.Separator",children:f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z",fill:"currentcolor"})})});function rs(e){const{className:t,children:a,style:n,overflow:i="wrap",variant:r="normal"}=e,s=o.useRef(null),l=o.useMemo(()=>(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(a),[a]),c=l[0],d="menu-with-root"!==i,[u,m]=o.useState([]),[p,h]=o.useState(null),[g,v]=o.useState(28),b=o.useCallback(e=>{const t=null==e?void 0:e.querySelector("button");t&&v(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);Kn(()=>{if("wrap"===i)return;const e=s.current;if(!e)return;h(t=>t===e.offsetWidth?t:e.offsetWidth);const t=e.querySelectorAll("li[data-crumb]");t.length===l.length&&m(Array.from(t,e=>e.offsetWidth))},[l,i]),o.useEffect(()=>{const e=s.current;if("wrap"===i||!e)return;const t=new ResizeObserver(e=>{for(const t of e){const e=Math.round(t.contentRect.width);h(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[i]);const{menuItemCount:x,hideRoot:y}=o.useMemo(()=>"wrap"===i||u.length!==l.length?{menuItemCount:0,hideRoot:d}:(({availableWidth:e,itemCount:t,itemWidths:a,menuButtonWidth:n,overflow:i,hideRoot:r})=>{var o;let s=r;const l=null!==(o=a[0])&&void 0!==o?o:0;let c=4;s?e<544&&t>2&&(c=1):c=3;const d=e=>{const t=e.reduce((e,t)=>e+t+16,0);return s?t:l+t};let u=[...a],m=0;if(e>0&&u.length>0){let t=d(u);for(;"wrap"!==i&&(t>e||u.length>c);){if(m+=1,u=u.slice(1),t=d(u)+n,1===u.length&&t>e){s=!0;break}s=r}}return{menuItemCount:m,hideRoot:s}})({availableWidth:null!=p?p:800,itemCount:l.length,itemWidths:u,menuButtonWidth:g,overflow:i,hideRoot:d}),[i,d,l,u,p,g]),w=o.useMemo(()=>({variant:r}),[r]),N=o.useMemo(()=>{const e=(e,t)=>f.jsxs("li",{className:ts,"data-crumb":"",children:[e,f.jsx(is,{})]},t);if(0===x)return l.map((t,a)=>e(t,a));const t=l.slice(0,x),a=l.slice(x),n=y?t:t.slice(1),i=f.jsxs("li",{ref:b,className:et(ts,as),"data-overflow-menu":"",children:[f.jsx(Yo,{items:n}),f.jsx(is,{})]},"overflow-menu"),r=a.map((t,a)=>e(t,`visible-${a}`));return y?[i,...r]:[e(c,"root"),i,...r]},[l,x,y,b,c]);return f.jsx(Zo.Provider,{value:w,children:f.jsx("nav",{ref:s,"aria-label":"Breadcrumbs",className:et(Qo,t),style:n,"data-component":"Breadcrumbs","data-overflow":i,"data-variant":r,children:f.jsx("ol",{className:et(Xo,"wrap"===i?Jo:es),children:N})})})}rs.displayName="Breadcrumbs";const os="breadcrumbs-link",ss="breadcrumbs-link-normal",ls="breadcrumbs-link-normal-selected",cs="breadcrumbs-link-spacious",ds="breadcrumbs-link-spacious-selected";function us(e,t){const a=e,{as:n="a",className:i,selected:r}=a,l=s(a,["as","className","selected"]),{variant:c="normal"}=o.useContext(Zo),d="spacious"===c;return f.jsx(n,Object.assign({ref:t,"aria-current":r?"page":void 0,className:et(os,d?cs:ss,r&&(d?ds:ls),i),"data-component":"Breadcrumbs.Item","data-selected":r?"":void 0},l))}us.displayName="Breadcrumbs.Item";var ms=tt(us);const ps=Object.assign(rs,{Item:ms}),hs="button-group",gs={root:"button-group-item",first:"button-group-item-first",last:"button-group-item-last"},fs=["[disabled]","[hidden]","[inert]"],vs=["button","a[href]","summary"].map(e=>`${e}:not(${fs.join("):not(")})`).join(", "),bs=e=>e?Array.from(e.querySelectorAll(vs)):[],xs=(e,t)=>{for(const a of e)a.tabIndex=a===t?0:-1};function ys(e,t){const a=e,{as:n="div",className:i,children:r,role:l,onFocus:c,onKeyDown:d}=a,u=s(a,["as","className","children","role","onFocus","onKeyDown"]),m=o.useRef(null),p=N(t,m),h="toolbar"===l,g=o.useCallback(()=>{if(!h)return;const e=bs(m.current),t=e.find(e=>e===document.activeElement);xs(e,null!=t?t:e[0])},[h]);o.useEffect(g),o.useEffect(()=>{if(!h||null===m.current)return;const e=m.current,t=new MutationObserver(g);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(const t of bs(e))t.removeAttribute("tabindex")}},[h,g]);const v=o.Children.toArray(r);return f.jsx(n,Object.assign({ref:p,className:et(hs,i),role:l,onFocus:e=>{if(null==c||c(e),!h)return;const t=bs(m.current);t.includes(e.target)&&xs(t,e.target)},onKeyDown:e=>{null==d||d(e);const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(!h||0===t||e.defaultPrevented)return;const a=bs(m.current),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},"data-component":"ButtonGroup"},u,{children:v.map((e,t)=>f.jsx("div",{className:et(gs.root,0===t&&gs.first,t===v.length-1&&gs.last),"data-component":"ButtonGroup.Item",children:e},o.isValidElement(e)?e.key:t))}))}ys.displayName="ButtonGroup";var ws=tt(ys);const Ns="calendar-day",js="calendar-day-interactive",ks="calendar-day-selected",Cs="calendar-day-between",Ss="calendar-day-outside",Os="calendar-day-unavailable",Ms="sr-only";function As(e,t){const{label:a,name:n,dayKey:i,selected:r,range:o,today:l,outside:c,unavailable:d,tabbable:u,className:m}=e,p=s(e,["label","name","dayKey","selected","range","today","outside","unavailable","tabbable","className"]),h="middle"===o,g=r&&!h;return f.jsxs("button",Object.assign({ref:t,type:"button",tabIndex:u?0:-1,"aria-pressed":r,"aria-current":l?"date":void 0,"aria-disabled":d||void 0,className:et(Ns,!d&&!r&&js,c&&Ss,h&&Cs,d&&Os,g&&ks,m),"data-component":"Calendar.Day","data-date":i,"data-selected":r,"data-range":o,"data-today":l||void 0,"data-outside":c||void 0,"data-unavailable":d||void 0,"data-tabbable":u},p,{children:[f.jsx("span",{"aria-hidden":"true",children:a}),f.jsx("span",{className:Ms,children:n})]}))}As.displayName="Calendar.Day";var Ts,Is=tt(As),Ds={exports:{}};var Ls,zs=(Ts||(Ts=1,Ds.exports=function(){var e=1e3,t=6e4,a=36e5,n="millisecond",i="second",r="minute",o="hour",s="day",l="week",c="month",d="quarter",u="year",m="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},v=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},b={s:v,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),i=a%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t);var n=12*(a.year()-t.year())+(a.month()-t.month()),i=t.clone().add(n,c),r=a-i<0,o=t.clone().add(n+(r?-1:1),c);return+(-(n+(a-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:m,h:o,m:r,s:i,ms:n,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},x="en",y={};y[x]=f;var w="$isDayjsObject",N=function(e){return e instanceof S||!(!e||!e[w])},j=function e(t,a,n){var i;if(!t)return x;if("string"==typeof t){var r=t.toLowerCase();y[r]&&(i=r),a&&(y[r]=a,i=r);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;y[s]=t,i=s}return!n&&i&&(x=i),i||!n&&x},k=function(e,t){if(N(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new S(a)},C=b;C.l=j,C.i=N,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function f(e){this.$L=j(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=f.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(h);if(n){var i=n[2]-1||0,r=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var a=k(e);return this.startOf(t)<=a&&a<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,a){return C.u(e)?this[t]:this.set(a,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var a=this,n=!!C.u(t)||t,d=C.p(e),p=function(e,t){var i=C.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a);return n?i:i.endOf(s)},h=function(e,t){return C.w(a.toDate()[e].apply(a.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},g=this.$W,f=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return n?p(1,0):p(31,11);case c:return n?p(1,f):p(0,f+1);case l:var x=this.$locale().weekStart||0,y=(g<x?g+7:g)-x;return p(n?v-y:v+(6-y),f);case s:case m:return h(b+"Hours",0);case o:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case i:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var a,l=C.p(e),d="set"+(this.$u?"UTC":""),p=(a={},a[s]=d+"Date",a[m]=d+"Date",a[c]=d+"Month",a[u]=d+"FullYear",a[o]=d+"Hours",a[r]=d+"Minutes",a[i]=d+"Seconds",a[n]=d+"Milliseconds",a)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var g=this.clone().set(m,1);g.$d[p](h),g.init(),this.$d=g.set(m,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,d){var m,p=this;n=Number(n);var h=C.p(d),g=function(e){var t=k(p);return C.w(t.date(t.date()+Math.round(e*n)),p)};if(h===c)return this.set(c,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===s)return g(1);if(h===l)return g(7);var f=(m={},m[r]=t,m[o]=a,m[i]=e,m)[h]||1,v=this.$d.getTime()+n*f;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),r=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,d=a.meridiem,u=function(e,a,i,r){return e&&(e[a]||e(t,n))||i[a].slice(0,r)},m=function(e){return C.s(r%12||12,e,"0")},h=d||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n};return n.replace(g,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(a.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(a.weekdaysMin,t.$W,l,2);case"ddd":return u(a.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(r);case"HH":return C.s(r,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return h(r,o,!0);case"A":return h(r,o,!1);case"m":return String(o);case"mm":return C.s(o,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,m,p){var h,g=this,f=C.p(m),v=k(n),b=(v.utcOffset()-this.utcOffset())*t,x=this-v,y=function(){return C.m(g,v)};switch(f){case u:h=y()/12;break;case c:h=y();break;case d:h=y()/3;break;case l:h=(x-b)/6048e5;break;case s:h=(x-b)/864e5;break;case o:h=x/a;break;case r:h=x/t;break;case i:h=x/e;break;default:h=x}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=j(e,t,!0);return n&&(a.$L=n),a},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},f}(),O=S.prototype;return k.prototype=O,[["$ms",n],["$s",i],["$m",r],["$H",o],["$W",s],["$M",c],["$y",u],["$D",m]].forEach(function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,S,k),e.$i=!0),k},k.locale=j,k.isDayjs=N,k.unix=function(e){return k(1e3*e)},k.en=y[x],k.Ls=y,k.p={},k}()),Ds.exports),Es=l(zs),Ps={exports:{}};var $s,Rs=(Ls||(Ls=1,Ps.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),a=60*t[1]+(+t[2]||0);return 0===a?0:"+"===t[0]?-a:a}(e)}],d=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var a,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){a=i>12;break}}else a=e===(t?"pm":"PM");return a},m={A:[r,function(e){this.afternoon=u(e,!1)}],a:[r,function(e){this.afternoon=u(e,!0)}],Q:[a,function(e){this.month=3*(e-1)+1}],S:[a,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[n,l("day")],Do:[r,function(e){var t=o.ordinal,a=e.match(/\d+/);if(this.day=a[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],w:[i,l("week")],ww:[n,l("week")],M:[i,l("month")],MM:[n,l("month")],MMM:[r,function(e){var t=d("months"),a=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(a<1)throw new Error;this.month=a%12||a}],MMMM:[r,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(a){var n,i;n=a,i=o&&o.formats;for(var r=(a=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,a,n){var r=n&&n.toUpperCase();return a||i[n]||e[n]||i[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})).match(t),s=r.length,l=0;l<s;l+=1){var c=r[l],d=m[c],u=d&&d[0],p=d&&d[1];r[l]=p?{regex:u,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},a=0,n=0;a<s;a+=1){var i=r[a];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(n),d=o.exec(c)[0];l.call(t,d),e=e.replace(d,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var a=e.hours;t?a<12&&(e.hours+=12):12===a&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,a){a.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,r=e.args;this.$u=n;var s=r[1];if("string"==typeof s){var l=!0===r[2],c=!0===r[3],d=l||c,u=r[2];c&&(u=r[2]),o=this.$locale(),!l&&u&&(o=a.Ls[u]),this.$d=function(e,t,a,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),r=i.year,o=i.month,s=i.day,l=i.hours,c=i.minutes,d=i.seconds,u=i.milliseconds,m=i.zone,h=i.week,g=new Date,f=s||(r||o?1:g.getDate()),v=r||g.getFullYear(),b=0;r&&!o||(b=o>0?o-1:g.getMonth());var x,y=l||0,w=c||0,N=d||0,j=u||0;return m?new Date(Date.UTC(v,b,f,y,w,N,j+60*m.offset*1e3)):a?new Date(Date.UTC(v,b,f,y,w,N,j)):(x=new Date(v,b,f,y,w,N,j),h&&(x=n(x).week(h).toDate()),x)}catch(e){return new Date("")}}(t,s,n,a),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var m=s.length,h=1;h<=m;h+=1){r[1]=s[h-1];var g=a.apply(this,r);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===m&&(this.$d=new Date(""))}else i.call(this,e)}}}()),Ps.exports),Bs=l(Rs),Vs={exports:{}};var _s,Fs=($s||($s=1,Vs.exports=function(e,t,a){var n=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},r=function(e,t,a,n,r){var o=e.name?e:e.$locale(),s=i(o[t]),l=i(o[a]),c=s||l.map(function(e){return e.slice(0,n)});if(!r)return c;var d=o.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},o=function(){return a.Ls[a.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):r(e,"months")},monthsShort:function(t){return t?t.format("MMM"):r(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):r(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):r(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):r(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return l.bind(this)()},a.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},a.months=function(){return r(o(),"months")},a.monthsShort=function(){return r(o(),"monthsShort","months",3)},a.weekdays=function(e){return r(o(),"weekdays",null,null,e)},a.weekdaysShort=function(e){return r(o(),"weekdaysShort","weekdays",3,e)},a.weekdaysMin=function(e){return r(o(),"weekdaysMin","weekdays",2,e)}}),Vs.exports),Hs=l(Fs),Ws={exports:{}};var Gs,qs,Ks=(_s||(_s=1,Ws.exports=(Gs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(e,t,a){var n=t.prototype,i=n.format;a.en.formats=Gs,n.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var t=this.$locale().formats,a=function(e,t){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,a,n){var i=n&&n.toUpperCase();return a||t[n]||Gs[n]||t[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,a){return t||a.slice(1)})})}(e,void 0===t?{}:t);return i.call(this,a)}})),Ws.exports),Us=l(Ks),Ys={exports:{}};var Zs=(qs||(qs=1,Ys.exports=function(){var e="week",t="year";return function(a,n,i){var r=n.prototype;r.week=function(a){if(void 0===a&&(a=null),null!==a)return this.add(7*(a-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var r=i(this).startOf(t).add(1,t).date(n),o=i(this).endOf(e);if(r.isBefore(o))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()),Ys.exports),Qs=l(Zs);Es.extend(Bs),Es.extend(Hs),Es.extend(Us),Es.extend(Qs);const Xs="YYYY-MM-DD",Js=e=>Es(e),el=e=>{if(null==e)return null;const t=Js(e);return t.isValid()?t:null},tl=e=>e.format(Xs),al={from:null,to:null},nl=(e,t)=>{if(null==e)return al;if(t){const t=e;return{from:el(t.from),to:el(t.to)}}const a=el(e);return{from:a,to:a}},il=()=>{var e;return null!==(e=Es().localeData().firstDayOfWeek())&&void 0!==e?e:0},rl=e=>{const t=Es().localeData(),a=t.weekdaysMin(),n=t.weekdays();return Array.from({length:7},(t,i)=>{const r=(e+i)%7;return{day:r,narrow:a[r],full:n[r]}})},ol=(e,t)=>e.subtract((e.day()-t+7)%7,"day"),sl=(e,t,a=!1)=>{const n=e.startOf("month"),i=ol(n,t),r=(n.day()-t+7)%7,o=(t+7-1-e.endOf("month").day())%7,s=r+e.daysInMonth()+o,l=a?6:s/7;return Array.from({length:l},(e,t)=>Array.from({length:7},(e,a)=>i.add(7*t+a,"day")))},ll=(e,t,a,n)=>!(null!==t&&e.isBefore(t,"day")||null!==a&&e.isAfter(a,"day")||(null==n?void 0:n(e.toDate()))),cl=(e,t)=>e.isAfter(t,"day")?[t,e]:[e,t],dl=(e,t,a)=>{if(null===t)return null!==a&&e.isSame(a,"day");if(null===a)return e.isSame(t,"day");const[n,i]=cl(t,a);return!e.isBefore(n,"day")&&!e.isAfter(i,"day")},ul=(e,t,a)=>{if(null===t||null===a||t.isSame(a,"day"))return;const[n,i]=cl(t,a);return e.isSame(n,"day")?"start":e.isSame(i,"day")?"end":e.isAfter(n,"day")&&e.isBefore(i,"day")?"middle":void 0},ml=(e,t,a)=>{if(null===e||null!==t)return{from:a,to:null};if(a.isSame(e,"day"))return al;const[n,i]=cl(e,a);return{from:n,to:i}},pl=(e,t)=>{const a=Es(e,t,!0);return a.isValid()?a:null},hl=()=>Es(),gl="calendar",fl="calendar-header",vl="calendar-caption",bl="calendar-grid",xl="calendar-weekday",yl="calendar-week-number-header",wl="calendar-week-number",Nl="calendar-cell",jl="calendar-cell-range",kl="calendar-cell-range-start",Cl="calendar-cell-range-end",Sl="sr-only";function Ol(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,month:c,defaultMonth:d,onMonthChange:u,min:m,max:p,isDateDisabled:h,weekStartsOn:g,fixedWeeks:v=!1,showOutsideDays:b=!0,showWeekNumbers:x=!1,monthFormat:y="MMMM YYYY",dayFormat:w="LL",focusableDayRef:N,previousMonthLabel:j="Previous month",nextMonthLabel:k="Next month",weekNumberLabel:C="Week",className:S}=a,O=s(a,["mode","value","defaultValue","onChange","month","defaultMonth","onMonthChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showOutsideDays","showWeekNumbers","monthFormat","dayFormat","focusableDayRef","previousMonthLabel","nextMonthLabel","weekNumberLabel","className"]),M=Jt(),A=o.useRef(null),T=hl(),I="range"===n,D=void 0!==i,[L,z]=o.useState(()=>nl(r,I)),E=D?nl(i,I):L,P=void 0!==c,[$,R]=o.useState(()=>{var e,t,a;return(null!==(a=null!==(t=null!==(e=el(d))&&void 0!==e?e:nl(r,I).from)&&void 0!==t?t:nl(i,I).from)&&void 0!==a?a:hl()).startOf("month")}),B=(P?Js(c):$).startOf("month"),V=el(m),_=el(p),F=null!=g?g:il(),H=rl(F),W=sl(B,F,v),[G,q]=o.useState(null),K=o.useRef(null),[U,Y]=o.useState(null),Z=I&&null!==E.from&&null===E.to,Q=Z?U:E.to,X=tl((()=>{for(const e of[G,E.from,T])if(e&&e.isSame(B,"month"))return e;return B})());o.useEffect(()=>{var e,t;const a=K.current;null!==a&&(K.current=null,null===(t=null===(e=A.current)||void 0===e?void 0:e.querySelector(`[data-date='${a}']`))||void 0===t||t.focus())});const J=e=>{const t=e.startOf("month");P||R(t),null==u||u(t.toDate())},ee=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const a=t=>{e.preventDefault(),(e=>{q(e),K.current=tl(e),e.isSame(B,"month")||J(e)})(t)};switch(e.key){case"ArrowLeft":return a(t.subtract(1,"day"));case"ArrowRight":return a(t.add(1,"day"));case"ArrowUp":return a(t.subtract(7,"day"));case"ArrowDown":return a(t.add(7,"day"));case"Home":return a(ol(t,F));case"End":return a(ol(t,F).add(6,"day"));case"PageUp":return a(t.subtract(1,e.shiftKey?"year":"month"));case"PageDown":return a(t.add(1,e.shiftKey?"year":"month"));default:return}},te=B.subtract(1,"month"),ae=B.add(1,"month"),ne=null===V||!te.endOf("month").isBefore(V,"day"),ie=null===_||!ae.isAfter(_,"day");return f.jsxs("div",Object.assign({ref:t,className:et(gl,S),"data-component":"Calendar"},O,{children:[f.jsxs("div",{className:fl,"data-component":"Calendar.Header",children:[f.jsx(yn,{icon:xt,"aria-label":j,variant:"invisible",size:"small",disabled:!ne,onClick:()=>J(te),"data-component":"Calendar.PreviousMonth"}),f.jsx("div",{id:M,"aria-live":"polite",className:vl,"data-component":"Calendar.Caption",children:B.format(y)}),f.jsx(yn,{icon:yt,"aria-label":k,variant:"invisible",size:"small",disabled:!ie,onClick:()=>J(ae),"data-component":"Calendar.NextMonth"})]}),f.jsxs("table",{ref:A,"aria-labelledby":M,className:bl,onPointerLeave:()=>{Y(null)},"data-component":"Calendar.Grid","data-mode":n,children:[f.jsx("thead",{children:f.jsxs("tr",{children:[x?f.jsx("th",{scope:"col",className:yl,children:f.jsx("span",{className:Sl,children:C})}):null,H.map(e=>f.jsxs("th",{scope:"col",className:xl,"data-component":"Calendar.Weekday",children:[f.jsx("span",{"aria-hidden":"true",children:e.narrow}),f.jsx("span",{className:Sl,children:e.full})]},e.day))]})}),f.jsx("tbody",{children:W.map(e=>f.jsxs("tr",{"data-component":"Calendar.Week",children:[x?f.jsx("th",{scope:"row",className:wl,"data-component":"Calendar.WeekNumber",children:e[0].week()}):null,e.map(e=>{const t=tl(e),a=!e.isSame(B,"month");if(a&&!b)return f.jsx("td",{className:Nl},t);const n=t===X,i=ul(e,E.from,Q);return f.jsx("td",{className:et(Nl,i&&jl,"start"===i&&kl,"end"===i&&Cl),children:f.jsx(Is,{ref:n?N:void 0,label:e.format("D"),name:e.format(w),dayKey:t,selected:dl(e,E.from,E.to),range:i,today:e.isSame(T,"day"),outside:a,unavailable:!ll(e,V,_,h),tabbable:n,onClick:()=>(e=>{var t,a,n,i;if(!ll(e,V,_,h))return;q(e),e.isSame(B,"month")||J(e);const r=I?ml(E.from,E.to,e):{from:e,to:e};if(D||z(r),I){return void(null==l||l({from:null!==(a=null===(t=r.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=r.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(e.toDate())})(e),onKeyDown:t=>ee(t,e),onFocus:()=>(e=>{q(t=>(null==t?void 0:t.isSame(e,"day"))?t:e),Z&&Y(e)})(e),onPointerEnter:()=>(e=>{Z&&Y(e)})(e)})},t)})]},tl(e[0])))})]})]}))}Ol.displayName="Calendar";var Ml=tt(Ol);const Al=Object.assign(Ml,{Day:Is}),Tl="card-action";function Il(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Tl,a),"data-component":"Card.Action"},n))}Il.displayName="Card.Action";var Dl=tt(Il);const Ll=e.createContext({}),zl="card-description text-body-medium";function El(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("p",Object.assign({ref:t,className:et(zl,a),"data-component":"Card.Description"},n))}El.displayName="Card.Description";var Pl=tt(El);const $l="card-heading",Rl="card-heading-compact";function Bl(e,t){const{as:a="h3",className:n,id:i}=e,r=s(e,["as","className","id"]),{titleId:l,layout:c}=o.useContext(Ll);return f.jsx(a,Object.assign({ref:t,id:null!=i?i:l,className:et($l,"compact"===c&&Rl,n),"data-component":"Card.Heading"},r))}Bl.displayName="Card.Heading";var Vl=tt(Bl);const _l="card-icon",Fl="card-icon-tile";function Hl(e,t){const{icon:a,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]),{layout:l}=o.useContext(Ll);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(_l,"compact"!==l&&Fl,n),"data-component":"Card.Icon"},r,{children:f.jsx(a,{})}))}Hl.displayName="Card.Icon";var Wl=tt(Hl);const Gl="card-image";function ql(e,t){const{className:a,alt:n=""}=e,i=s(e,["className","alt"]);return f.jsx("img",Object.assign({ref:t,alt:n,className:et(Gl,a),"data-component":"Card.Image"},i))}ql.displayName="Card.Image";var Kl=tt(ql);const Ul="card-metadata text-body-small";function Yl(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(Ul,a),"data-component":"Card.Metadata"},n))}Yl.displayName="Card.Metadata";var Zl=tt(Yl);const Ql="card-content",Xl=Xe("card",{variants:{borderRadius:{medium:"card-radius-medium",large:"card-radius-large"},layout:{default:"",compact:"card-compact"},padding:{none:"card-padding-none",condensed:"card-padding-condensed",normal:"card-padding-normal"}},compoundVariants:[{layout:"compact",padding:"normal",class:"card-compact-padding-normal"}]}),Jl=Xe("card-header",{variants:{edgeToEdge:{true:"card-header-edge-to-edge",false:""},layout:{default:"",compact:"card-header-compact"}}}),ec=Xe("card-body",{variants:{layout:{default:"",compact:"card-body-compact"}}});function tc(e,t){var a;const n=e,{as:i="div",className:r,children:l,padding:c="normal",borderRadius:d="large",layout:u="default","aria-label":m,"aria-labelledby":p}=n,h=s(n,["as","className","children","padding","borderRadius","layout","aria-label","aria-labelledby"]),g=Jt(),[v]=va(l,{icon:Wl,image:Kl,heading:Vl,description:Pl,metadata:Zl,action:Dl}),b="section"===i,x=b?g:void 0,y=null!=p?p:b&&!m?x:void 0,w=null!==(a=v.image)&&void 0!==a?a:v.icon,N=Boolean(w||v.heading||v.description||v.metadata||v.action);return 0===o.Children.toArray(l).length?null:f.jsx(Ll.Provider,{value:{titleId:x,layout:u},children:f.jsx(i,Object.assign({ref:t,"aria-label":m,"aria-labelledby":y,className:et(Xl({borderRadius:d,layout:u,padding:c}),r),"data-component":"Card","data-padding":c,"data-border-radius":d,"data-layout":u},h,{children:N?f.jsxs(f.Fragment,{children:[w?f.jsx("div",{className:et(Jl({edgeToEdge:Boolean(v.image),layout:u})),children:w}):null,f.jsxs("div",{className:et(ec({layout:u})),children:[f.jsxs("div",{className:Ql,children:[v.heading,v.description]}),v.metadata]}),v.action]}):l}))})}tc.displayName="Card";var ac=tt(tc);const nc=Object.assign(ac,{Icon:Wl,Image:Kl,Heading:Vl,Description:Pl,Metadata:Zl,Action:Dl}),ic=()=>{},rc=e.createContext({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:ic,previous:ic,next:ic,togglePlaying:ic,slidesId:""}),oc=e.createContext({index:0}),sc="carousel-indicators",lc="carousel-indicator",cc="carousel-indicator-current";function dc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r,goTo:l,slidesId:c}=o.useContext(rc);return 0===r?null:f.jsx("div",Object.assign({ref:t,className:et(sc,a),"data-component":"Carousel.Indicators"},n,{children:Array.from({length:r},(e,t)=>{const a=t===i;return f.jsx("button",{type:"button","aria-label":`Slide ${t+1}`,"aria-current":a||void 0,"aria-controls":c||void 0,onClick:()=>l(t,"indicator"),className:et(lc,a&&cc),"data-component":"Carousel.Indicator","data-current":a||void 0},t)})}))}dc.displayName="Carousel.Indicators";var uc=tt(dc);function mc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,count:l,loop:c,next:d,slidesId:u}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:yt,"aria-label":"Next slide","aria-controls":u||void 0,variant:"invisible",disabled:!c&&r>=l-1,onClick:e=>{null==n||n(e),e.defaultPrevented||d()},className:a,"data-component":"Carousel.NextButton"},i))}mc.displayName="Carousel.NextButton";var pc=tt(mc);function hc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{isPlaying:r,togglePlaying:l,slidesId:c}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:r?zt:Et,"aria-label":r?"Stop automatic slide show":"Start automatic slide show","aria-controls":c||void 0,variant:"invisible",onClick:e=>{null==n||n(e),e.defaultPrevented||l()},className:a,"data-component":"Carousel.PlayButton","data-playing":r||void 0},i))}hc.displayName="Carousel.PlayButton";var gc=tt(hc);function fc(e,t){const{className:a,onClick:n}=e,i=s(e,["className","onClick"]),{index:r,loop:l,previous:c,slidesId:d}=o.useContext(rc);return f.jsx(yn,Object.assign({ref:t,icon:xt,"aria-label":"Previous slide","aria-controls":d||void 0,variant:"invisible",disabled:!l&&r<=0,onClick:e=>{null==n||n(e),e.defaultPrevented||c()},className:a,"data-component":"Carousel.PreviousButton"},i))}fc.displayName="Carousel.PreviousButton";var vc=tt(fc);const bc="carousel-controls";function xc(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{autoPlay:r}=o.useContext(rc),l=o.Children.toArray(n).length>0;return f.jsx("div",Object.assign({ref:t,className:et(bc,a),"data-component":"Carousel.Controls"},i,{children:l?n:f.jsxs(f.Fragment,{children:[f.jsx(vc,{}),f.jsx(uc,{}),f.jsx(pc,{}),r?f.jsx(gc,{}):null]})}))}xc.displayName="Carousel.Controls";var yc=tt(xc);const wc="carousel-slide";function Nc(e,t){const{className:a}=e,n=s(e,["className"]),{index:i,count:r}=o.useContext(rc),{index:l}=o.useContext(oc),c=l===i;return f.jsx("div",Object.assign({ref:t,role:"group","aria-roledescription":"slide","aria-label":`${l+1} of ${r}`,inert:!c,className:et(wc,a),"data-component":"Carousel.Slide","data-current":c||void 0},n))}Nc.displayName="Carousel.Slide";var jc=tt(Nc);const kc="carousel",Cc="carousel-viewport",Sc="carousel-track",Oc="motion-safe:[transition:translate_var(--motion-transition-state-change)]",Mc=5e3,Ac=(e,t,a)=>t<=0?0:a?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Tc(e,t){const a=e,{className:n,children:i,index:r,defaultIndex:l=0,onChange:c,loop:d=!1,autoPlay:u=!1,interval:m=Mc}=a,p=s(a,["className","children","index","defaultIndex","onChange","loop","autoPlay","interval"]),h=Jt(),g=void 0!==r,[v,b]=o.useState(l),[x,y]=o.useState(u),[w,N]=o.useState(!1),j=o.useRef(c);Kn(()=>{j.current=c},[c]);const k=[],C=[];let S=null;o.Children.forEach(i,e=>{o.isValidElement(e)?e.type!==jc?e.type!==yc||null!==S?C.push(e):S=e:k.push(e):C.push(e)});const O=k.length,M=Ac(g?r:v,O,d),A=(e,t)=>{var a;const n=Ac(e,O,d);g||b(n),null===(a=j.current)||void 0===a||a.call(j,n,t)};o.useEffect(()=>{if(!x||w||O<2)return;const e=window.setTimeout(()=>{var e;if(!d&&M>=O-1)return void y(!1);const t=Ac(M+1,O,d);g||b(t),null===(e=j.current)||void 0===e||e.call(j,t,"auto")},m);return()=>{window.clearTimeout(e)}},[x,w,O,M,m,d,g]);const T={index:M,count:O,loop:d,autoPlay:u,isPlaying:x,goTo:A,previous:()=>A(M-1,"previous"),next:()=>A(M+1,"next"),togglePlaying:()=>y(e=>!e),slidesId:h},I=p,{onMouseEnter:D,onMouseLeave:L,onFocus:z,onBlur:E}=I,P=s(I,["onMouseEnter","onMouseLeave","onFocus","onBlur"]),$=x&&!w;return f.jsx(rc.Provider,{value:T,children:f.jsxs("section",Object.assign({ref:t,"aria-roledescription":"carousel",className:et(kc,n),onMouseEnter:e=>{null==D||D(e),N(!0)},onMouseLeave:e=>{null==L||L(e),N(!1)},onFocus:e=>{null==z||z(e),N(!0)},onBlur:e=>{null==E||E(e),e.currentTarget.contains(e.relatedTarget)||N(!1)},"data-component":"Carousel","data-count":O,"data-index":M,"data-playing":$||void 0},P,{children:[f.jsx("div",{id:h,className:Cc,"aria-live":$?"off":"polite","aria-atomic":"false","data-component":"Carousel.Viewport",children:f.jsx("div",{className:et(Sc,Oc),style:{"--carousel-index":M},"data-component":"Carousel.Track",children:k.map((e,t)=>{var a;return f.jsx(oc.Provider,{value:{index:t},children:e},null!==(a=e.key)&&void 0!==a?a:t)})})}),null!=S?S:f.jsx(yc,{}),C]}))})}Tc.displayName="Carousel";var Ic=tt(Tc);const Dc=Object.assign(Ic,{Slide:jc,Controls:yc,PreviousButton:vc,NextButton:pc,Indicators:uc,PlayButton:gc}),Lc="chart-legend",zc="chart-legend-item",Ec="chart-swatch";function Pc(e,t){const{series:a,className:n}=e,i=s(e,["series","className"]);return f.jsx("ul",Object.assign({ref:t,className:et(Lc,n),"data-component":"Chart.Legend"},i,{children:a.map(e=>f.jsxs("li",{className:zc,"data-component":"Chart.LegendItem",children:[f.jsx("span",{className:Ec,style:{background:e.color},"aria-hidden":"true"}),e.name]},e.key))}))}Pc.displayName="Chart.Legend";var $c=tt(Pc);const Rc=["var(--base-display-color-blue-5)","var(--base-display-color-orange-5)","var(--base-display-color-purple-5)","var(--base-display-color-green-5)","var(--base-display-color-pink-5)"],Bc="var(--foreground-color-muted)",Vc=(e,t)=>{var a;return null!==(a=null!=t?t:Rc[e])&&void 0!==a?a:Bc};function _c(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fc(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hc(e){let t,a,n;function i(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<0?i=t+1:r=t}while(i<r)}return i}return 2!==e.length?(t=_c,a=(t,a)=>_c(e(t),a),n=(t,a)=>e(t)-a):(t=e===_c||e===Fc?e:Wc,a=e,n=e),{left:i,center:function(e,t,a=0,r=e.length){const o=i(e,t,a,r-1);return o>a&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,r=e.length){if(i<r){if(0!==t(n,n))return r;do{const t=i+r>>>1;a(e[t],n)<=0?i=t+1:r=t}while(i<r)}return i}}}function Wc(){return 0}const Gc=Hc(_c).right;Hc(function(e){return null===e?NaN:+e}).center;class qc extends Map{constructor(e,t=Uc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,a]of e)this.set(t,a)}get(e){return super.get(Kc(this,e))}has(e){return super.has(Kc(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):(e.set(n,a),a)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},a){const n=t(a);e.has(n)&&(a=e.get(n),e.delete(n));return a}(this,e))}}function Kc({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):a}function Uc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Yc=Math.sqrt(50),Zc=Math.sqrt(10),Qc=Math.sqrt(2);function Xc(e,t,a){const n=(t-e)/Math.max(0,a),i=Math.floor(Math.log10(n)),r=n/Math.pow(10,i),o=r>=Yc?10:r>=Zc?5:r>=Qc?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=a&&a<2?Xc(e,t,2*a):[s,l,c]}function Jc(e,t,a){return Xc(e=+e,t=+t,a=+a)[2]}function ed(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const td=Symbol("implicit");function ad(){var e=new qc,t=[],a=[],n=td;function i(i){let r=e.get(i);if(void 0===r){if(n!==td)return n;e.set(i,r=t.push(i)-1)}return a[r%a.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new qc;for(const n of a)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(a=Array.from(e),i):a.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return ad(t,a).unknown(n)},ed.apply(i,arguments),i}function nd(){var e,t,a=ad().unknown(void 0),n=a.domain,i=a.range,r=0,o=1,s=!1,l=0,c=0,d=.5;function u(){var a=n().length,u=o<r,m=u?o:r,p=u?r:o;e=(p-m)/Math.max(1,a-l+2*c),s&&(e=Math.floor(e)),m+=(p-m-e*(a-l))*d,t=e*(1-l),s&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,a){e=+e,t=+t,a=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+a;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/a)),r=new Array(i);++n<i;)r[n]=e+n*a;return r}(a).map(function(t){return m+e*t});return i(u?h.reverse():h)}return delete a.unknown,a.domain=function(e){return arguments.length?(n(e),u()):n()},a.range=function(e){return arguments.length?([r,o]=e,r=+r,o=+o,u()):[r,o]},a.rangeRound=function(e){return[r,o]=e,r=+r,o=+o,s=!0,u()},a.bandwidth=function(){return t},a.step=function(){return e},a.round=function(e){return arguments.length?(s=!!e,u()):s},a.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},a.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},a.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},a.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},a.copy=function(){return nd(n(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(d)},ed.apply(u(),arguments)}function id(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return id(t())},e}function rd(){return id(nd.apply(null,arguments).paddingInner(1))}function od(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function sd(e,t){var a=Object.create(e.prototype);for(var n in t)a[n]=t[n];return a}function ld(){}var cd=.7,dd=1/cd,ud="\\s*([+-]?\\d+)\\s*",md="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hd=/^#([0-9a-f]{3,8})$/,gd=new RegExp(`^rgb\\(${ud},${ud},${ud}\\)$`),fd=new RegExp(`^rgb\\(${pd},${pd},${pd}\\)$`),vd=new RegExp(`^rgba\\(${ud},${ud},${ud},${md}\\)$`),bd=new RegExp(`^rgba\\(${pd},${pd},${pd},${md}\\)$`),xd=new RegExp(`^hsl\\(${md},${pd},${pd}\\)$`),yd=new RegExp(`^hsla\\(${md},${pd},${pd},${md}\\)$`),wd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Nd(){return this.rgb().formatHex()}function jd(){return this.rgb().formatRgb()}function kd(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=hd.exec(e))?(a=t[1].length,t=parseInt(t[1],16),6===a?Cd(t):3===a?new Md(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===a?Sd(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===a?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=gd.exec(e))?new Md(t[1],t[2],t[3],1):(t=fd.exec(e))?new Md(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=vd.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=bd.exec(e))?Sd(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xd.exec(e))?zd(t[1],t[2]/100,t[3]/100,1):(t=yd.exec(e))?zd(t[1],t[2]/100,t[3]/100,t[4]):wd.hasOwnProperty(e)?Cd(wd[e]):"transparent"===e?new Md(NaN,NaN,NaN,0):null}function Cd(e){return new Md(e>>16&255,e>>8&255,255&e,1)}function Sd(e,t,a,n){return n<=0&&(e=t=a=NaN),new Md(e,t,a,n)}function Od(e,t,a,n){return 1===arguments.length?((i=e)instanceof ld||(i=kd(i)),i?new Md((i=i.rgb()).r,i.g,i.b,i.opacity):new Md):new Md(e,t,a,null==n?1:n);var i}function Md(e,t,a,n){this.r=+e,this.g=+t,this.b=+a,this.opacity=+n}function Ad(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}`}function Td(){const e=Id(this.opacity);return`${1===e?"rgb(":"rgba("}${Dd(this.r)}, ${Dd(this.g)}, ${Dd(this.b)}${1===e?")":`, ${e})`}`}function Id(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ld(e){return((e=Dd(e))<16?"0":"")+e.toString(16)}function zd(e,t,a,n){return n<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new Pd(e,t,a,n)}function Ed(e){if(e instanceof Pd)return new Pd(e.h,e.s,e.l,e.opacity);if(e instanceof ld||(e=kd(e)),!e)return new Pd;if(e instanceof Pd)return e;var t=(e=e.rgb()).r/255,a=e.g/255,n=e.b/255,i=Math.min(t,a,n),r=Math.max(t,a,n),o=NaN,s=r-i,l=(r+i)/2;return s?(o=t===r?(a-n)/s+6*(a<n):a===r?(n-t)/s+2:(t-a)/s+4,s/=l<.5?r+i:2-r-i,o*=60):s=l>0&&l<1?0:o,new Pd(o,s,l,e.opacity)}function Pd(e,t,a,n){this.h=+e,this.s=+t,this.l=+a,this.opacity=+n}function $d(e){return(e=(e||0)%360)<0?e+360:e}function Rd(e){return Math.max(0,Math.min(1,e||0))}function Bd(e,t,a){return 255*(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)}od(ld,kd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Nd,formatHex:Nd,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ed(this).formatHsl()},formatRgb:jd,toString:jd}),od(Md,Od,sd(ld,{brighter(e){return e=null==e?dd:Math.pow(dd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?cd:Math.pow(cd,e),new Md(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Md(Dd(this.r),Dd(this.g),Dd(this.b),Id(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ad,formatHex:Ad,formatHex8:function(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}${Ld(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Td,toString:Td})),od(Pd,function(e,t,a,n){return 1===arguments.length?Ed(e):new Pd(e,t,a,null==n?1:n)},sd(ld,{brighter(e){return e=null==e?dd:Math.pow(dd,e),new Pd(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?cd:Math.pow(cd,e),new Pd(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,n=a+(a<.5?a:1-a)*t,i=2*a-n;return new Md(Bd(e>=240?e-240:e+120,i,n),Bd(e,i,n),Bd(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Pd($d(this.h),Rd(this.s),Rd(this.l),Id(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Id(this.opacity);return`${1===e?"hsl(":"hsla("}${$d(this.h)}, ${100*Rd(this.s)}%, ${100*Rd(this.l)}%${1===e?")":`, ${e})`}`}}));var Vd=e=>()=>e;function _d(e){return 1===(e=+e)?Fd:function(t,a){return a-t?function(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(n){return Math.pow(e+n*t,a)}}(t,a,e):Vd(isNaN(t)?a:t)}}function Fd(e,t){var a=t-e;return a?function(e,t){return function(a){return e+a*t}}(e,a):Vd(isNaN(e)?t:e)}var Hd=function e(t){var a=_d(t);function n(e,t){var n=a((e=Od(e)).r,(t=Od(t)).r),i=a(e.g,t.g),r=a(e.b,t.b),o=Fd(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=r(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function Wd(e,t){t||(t=[]);var a,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(r){for(a=0;a<n;++a)i[a]=e[a]*(1-r)+t[a]*r;return i}}function Gd(e,t){var a,n=t?t.length:0,i=e?Math.min(n,e.length):0,r=new Array(i),o=new Array(n);for(a=0;a<i;++a)r[a]=Xd(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(e){for(a=0;a<i;++a)o[a]=r[a](e);return o}}function qd(e,t){var a=new Date;return e=+e,t=+t,function(n){return a.setTime(e*(1-n)+t*n),a}}function Kd(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function Ud(e,t){var a,n={},i={};for(a in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)a in e?n[a]=Xd(e[a],t[a]):i[a]=t[a];return function(e){for(a in n)i[a]=n[a](e);return i}}var Yd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zd=new RegExp(Yd.source,"g");function Qd(e,t){var a,n,i,r=Yd.lastIndex=Zd.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(a=Yd.exec(e))&&(n=Zd.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(a=a[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Kd(a,n)})),r=Zd.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var a,n=0;n<t;++n)s[(a=l[n]).i]=a.x(e);return s.join("")})}function Xd(e,t){var a,n=typeof t;return null==t||"boolean"===n?Vd(t):("number"===n?Kd:"string"===n?(a=kd(t))?(t=a,Hd):Qd:t instanceof kd?Hd:t instanceof Date?qd:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Wd:Array.isArray(t)?Gd:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ud:Kd)(e,t)}function Jd(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function eu(e){return+e}var tu=[0,1];function au(e){return e}function nu(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function iu(e,t,a){var n=e[0],i=e[1],r=t[0],o=t[1];return i<n?(n=nu(i,n),r=a(o,r)):(n=nu(n,i),r=a(r,o)),function(e){return r(n(e))}}function ru(e,t,a){var n=Math.min(e.length,t.length)-1,i=new Array(n),r=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=nu(e[o],e[o+1]),r[o]=a(t[o],t[o+1]);return function(t){var a=Gc(e,t,1,n)-1;return r[a](i[a](t))}}function ou(){var e,t,a,n,i,r,o=tu,s=tu,l=Xd,c=au;function d(){var e,t,a,l=Math.min(o.length,s.length);return c!==au&&(e=o[0],t=o[l-1],e>t&&(a=e,e=t,t=a),c=function(a){return Math.max(e,Math.min(t,a))}),n=l>2?ru:iu,i=r=null,u}function u(t){return null==t||isNaN(t=+t)?a:(i||(i=n(o.map(e),s,l)))(e(c(t)))}return u.invert=function(a){return c(t((r||(r=n(s,o.map(e),Kd)))(a)))},u.domain=function(e){return arguments.length?(o=Array.from(e,eu),d()):o.slice()},u.range=function(e){return arguments.length?(s=Array.from(e),d()):s.slice()},u.rangeRound=function(e){return s=Array.from(e),l=Jd,d()},u.clamp=function(e){return arguments.length?(c=!!e||au,d()):c!==au},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(a=e,u):a},function(a,n){return e=a,t=n,d()}}function su(e,t){if(!isFinite(e)||0===e)return null;var a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,a);return[n.length>1?n[0]+n.slice(2):n,+e.slice(a+1)]}function lu(e){return(e=su(Math.abs(e)))?e[1]:NaN}var cu,du=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uu(e){if(!(t=du.exec(e)))throw new Error("invalid format: "+e);var t;return new mu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function mu(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function pu(e,t){var a=su(e,t);if(!a)return e+"";var n=a[0],i=a[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}uu.prototype=mu.prototype,mu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var hu={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>pu(100*e,t),r:pu,s:function(e,t){var a=su(e,t);if(!a)return cu=void 0,e.toPrecision(t);var n=a[0],i=a[1],r=i-(cu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return r===o?n:r>o?n+new Array(r-o+1).join("0"):r>0?n.slice(0,r)+"."+n.slice(r):"0."+new Array(1-r).join("0")+su(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gu(e){return e}var fu,vu,bu,xu=Array.prototype.map,yu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wu(e){var t,a,n=void 0===e.grouping||void 0===e.thousands?gu:(t=xu.call(e.grouping,Number),a=e.thousands+"",function(e,n){for(var i=e.length,r=[],o=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),r.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[o=(o+1)%t.length];return r.reverse().join(a)}),i=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?gu:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(xu.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+"";function u(e,t){var a=(e=uu(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,g=e.width,f=e.comma,v=e.precision,b=e.trim,x=e.type;"n"===x?(f=!0,x="g"):hu[x]||(void 0===v&&(v=12),b=!0,x="g"),(h||"0"===a&&"="===u)&&(h=!0,a="0",u="=");var y=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===p?r:/[%p]/.test(x)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),N=hu[x],j=/[defgprs%]/.test(x);function k(e){var t,i,r,l=y,p=w;if("c"===x)p=N(e)+p,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?d:N(Math.abs(e),v),b&&(e=function(e){e:for(var t,a=e.length,n=1,i=-1;n<a;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==m&&(k=!1),l=(k?"("===m?m:c:"-"===m||"("===m?"":m)+l,p=("s"!==x||isNaN(e)||void 0===cu?"":yu[8+cu/3])+p+(k&&"("===m?")":""),j)for(t=-1,i=e.length;++t<i;)if(48>(r=e.charCodeAt(t))||r>57){p=(46===r?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}f&&!h&&(e=n(e,1/0));var C=l.length+e.length+p.length,S=C<g?new Array(g-C+1).join(a):"";switch(f&&h&&(e=n(S+e,S.length?g-p.length:1/0),S=""),u){case"<":e=l+e+p+S;break;case"=":e=l+S+e+p;break;case"^":e=S.slice(0,C=S.length>>1)+l+e+p+S.slice(C);break;default:e=S+l+e+p}return s(e)}return v=void 0===v?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:u,formatPrefix:function(e,t){var a=3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3))),n=Math.pow(10,-a),i=u(((e=uu(e)).type="f",e),{suffix:yu[8+a/3]});return function(e){return i(n*e)}}}}function Nu(e,t,a,n){var i,r=function(e,t,a){a=+a;const n=(t=+t)<(e=+e),i=n?Jc(t,e,a):Jc(e,t,a);return(n?-1:1)*(i<0?1/-i:i)}(e,t,a);switch((n=uu(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lu(t)/3)))-lu(Math.abs(e)))}(r,o))||(n.precision=i),bu(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lu(t)-lu(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-lu(Math.abs(e)))}(r))||(n.precision=i-2*("%"===n.type))}return vu(n)}function ju(e){var t=e.domain;return e.ticks=function(e){var a=t();return function(e,t,a){if(!((a=+a)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,r,o]=n?Xc(t,e,a):Xc(e,t,a);if(!(r>=i))return[];const s=r-i+1,l=new Array(s);if(n)if(o<0)for(let e=0;e<s;++e)l[e]=(r-e)/-o;else for(let e=0;e<s;++e)l[e]=(r-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}(a[0],a[a.length-1],null==e?10:e)},e.tickFormat=function(e,a){var n=t();return Nu(n[0],n[n.length-1],null==e?10:e,a)},e.nice=function(a){null==a&&(a=10);var n,i,r=t(),o=0,s=r.length-1,l=r[o],c=r[s],d=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);d-- >0;){if((i=Jc(l,c,a))===n)return r[o]=l,r[s]=c,t(r);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function ku(){var e=ou()(au,au);return e.copy=function(){return t=e,ku().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},ed.apply(e,arguments),ju(e)}function Cu(e){return function(){return e}}fu=wu({thousands:",",grouping:[3],currency:["$",""]}),vu=fu.format,bu=fu.formatPrefix;const Su=Math.PI,Ou=2*Su,Mu=1e-6,Au=Ou-Mu;function Tu(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=arguments[t]+e[t]}class Iu{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Tu:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Tu;const a=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*a)/a+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,a,n){this._append`Q${+e},${+t},${this._x1=+a},${this._y1=+n}`}bezierCurveTo(e,t,a,n,i,r){this._append`C${+e},${+t},${+a},${+n},${this._x1=+i},${this._y1=+r}`}arcTo(e,t,a,n,i){if(e=+e,t=+t,a=+a,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let r=this._x1,o=this._y1,s=a-e,l=n-t,c=r-e,d=o-t,u=c*c+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(u>Mu)if(Math.abs(d*s-l*c)>Mu&&i){let m=a-r,p=n-o,h=s*s+l*l,g=m*m+p*p,f=Math.sqrt(h),v=Math.sqrt(u),b=i*Math.tan((Su-Math.acos((h+u-g)/(2*f*v)))/2),x=b/v,y=b/f;Math.abs(x-1)>Mu&&this._append`L${e+x*c},${t+x*d}`,this._append`A${i},${i},0,0,${+(d*m>c*p)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,a,n,i,r){if(e=+e,t=+t,r=!!r,(a=+a)<0)throw new Error(`negative radius: ${a}`);let o=a*Math.cos(n),s=a*Math.sin(n),l=e+o,c=t+s,d=1^r,u=r?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Mu||Math.abs(this._y1-c)>Mu)&&this._append`L${l},${c}`,a&&(u<0&&(u=u%Ou+Ou),u>Au?this._append`A${a},${a},0,1,${d},${e-o},${t-s}A${a},${a},0,1,${d},${this._x1=l},${this._y1=c}`:u>Mu&&this._append`A${a},${a},0,${+(u>=Su)},${d},${this._x1=e+a*Math.cos(i)},${this._y1=t+a*Math.sin(i)}`)}rect(e,t,a,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${a=+a}v${+n}h${-a}Z`}toString(){return this._}}function Du(e){let t=3;return e.digits=function(a){if(!arguments.length)return t;if(null==a)t=null;else{const e=Math.floor(a);if(!(e>=0))throw new RangeError(`invalid digits: ${a}`);t=e}return e},()=>new Iu(t)}function Lu(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function zu(e){this._context=e}function Eu(e){return new zu(e)}function Pu(e){return e[0]}function $u(e){return e[1]}function Ru(e,t){var a=Cu(!0),n=null,i=Eu,r=null,o=Du(s);function s(s){var l,c,d,u=(s=Lu(s)).length,m=!1;for(null==n&&(r=i(d=o())),l=0;l<=u;++l)!(l<u&&a(c=s[l],l,s))===m&&((m=!m)?r.lineStart():r.lineEnd()),m&&r.point(+e(c,l,s),+t(c,l,s));if(d)return r=null,d+""||null}return e="function"==typeof e?e:void 0===e?Pu:Cu(e),t="function"==typeof t?t:void 0===t?$u:Cu(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),s):t},s.defined=function(e){return arguments.length?(a="function"==typeof e?e:Cu(!!e),s):a},s.curve=function(e){return arguments.length?(i=e,null!=n&&(r=i(n)),s):i},s.context=function(e){return arguments.length?(null==e?n=r=null:r=i(n=e),s):n},s}function Bu(e){return e<0?-1:1}function Vu(e,t,a){var n=e._x1-e._x0,i=t-e._x1,r=(e._y1-e._y0)/(n||i<0&&-0),o=(a-e._y1)/(i||n<0&&-0),s=(r*i+o*n)/(n+i);return(Bu(r)+Bu(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function _u(e,t){var a=e._x1-e._x0;return a?(3*(e._y1-e._y0)/a-t)/2:t}function Fu(e,t,a){var n=e._x0,i=e._y0,r=e._x1,o=e._y1,s=(r-n)/3;e._context.bezierCurveTo(n+s,i+s*t,r-s,o-s*a,r,o)}function Hu(e){this._context=e}function Wu(e){return new Hu(e)}zu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Hu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fu(this,this._t0,_u(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fu(this,_u(this,a=Vu(this,e,t)),a);break;default:Fu(this,this._t0,a=Vu(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}},Object.create(Hu.prototype).point=function(e,t){Hu.prototype.point.call(this,t,e)};const Gu=8,qu=8,Ku=(e,t)=>{const a=e[t];return"number"==typeof a&&Number.isFinite(a)?a:null},Uu=(e,t)=>ku().domain(e).nice().range(t),Yu=(e,t,a,n,i)=>{if(a<=0||n<=0)return"";const r=Math.min(4,a/2,n/2),o=e+a,s=t+n;return`${{top:[`M${e},${s}`,`L${e},${t+r}`,`Q${e},${t} ${e+r},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s}`],bottom:[`M${e},${t}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o-r},${s}`,`Q${o},${s} ${o},${s-r}`,`L${o},${t}`],right:[`M${e},${t}`,`L${o-r},${t}`,`Q${o},${t} ${o},${t+r}`,`L${o},${s-r}`,`Q${o},${s} ${o-r},${s}`,`L${e},${s}`],left:[`M${o},${t}`,`L${e+r},${t}`,`Q${e},${t} ${e},${t+r}`,`L${e},${s-r}`,`Q${e},${s} ${e+r},${s}`,`L${o},${s}`]}[i].join(" ")} Z`},Zu=(e,t,a)=>{var n;return null!==(n=Ru().defined(e=>null!==e.value).x(e=>e.x).y(e=>{var a;return t(null!==(a=e.value)&&void 0!==a?a:0)}).curve(a?Wu:Eu)(e))&&void 0!==n?n:""},Qu=(e,t,a)=>{var n;return null!==(n=function(e,t,a){var n=null,i=Cu(!0),r=null,o=Eu,s=null,l=Du(c);function c(c){var d,u,m,p,h,g=(c=Lu(c)).length,f=!1,v=new Array(g),b=new Array(g);for(null==r&&(s=o(h=l())),d=0;d<=g;++d){if(!(d<g&&i(p=c[d],d,c))===f)if(f=!f)u=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=u;--m)s.point(v[m],b[m]);s.lineEnd(),s.areaEnd()}f&&(v[d]=+e(p,d,c),b[d]=+t(p,d,c),s.point(n?+n(p,d,c):v[d],a?+a(p,d,c):b[d]))}if(h)return s=null,h+""||null}function d(){return Ru().defined(i).curve(o).context(r)}return e="function"==typeof e?e:void 0===e?Pu:Cu(+e),t="function"==typeof t?t:Cu(void 0===t?0:+t),a="function"==typeof a?a:void 0===a?$u:Cu(+a),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Cu(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Cu(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),a=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Cu(+e),c):t},c.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Cu(+e),c):a},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(a)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:Cu(!!e),c):i},c.curve=function(e){return arguments.length?(o=e,null!=r&&(s=o(r)),c):o},c.context=function(e){return arguments.length?(null==e?r=s=null:s=o(r=e),c):r},c}().defined(e=>null!==e.value).x(e=>e.x).y0(e=>t(e.start)).y1(e=>{var a,n;return t((null!==(a=e.start)&&void 0!==a?a:0)+(null!==(n=e.value)&&void 0!==n?n:0))}).curve(a?Wu:Eu)(e))&&void 0!==n?n:""},Xu="chart-tooltip",Ju="chart-tooltip-label",em="chart-tooltip-row",tm="chart-swatch",am="chart-tooltip-name",nm="chart-tooltip-value";function im(e,t){const{reading:a,valueFormat:n,labelFormat:i,className:r}=e,o=s(e,["reading","valueFormat","labelFormat","className"]);return f.jsxs("div",Object.assign({ref:t,className:et(Xu,r),"data-component":"Chart.Tooltip"},o,{children:[f.jsx("div",{className:Ju,children:i(a.label)}),a.values.map(({series:e,value:t})=>f.jsxs("div",{className:em,children:[f.jsx("span",{className:tm,style:{background:e.color},"aria-hidden":"true"}),f.jsx("span",{className:am,children:e.name}),f.jsx("span",{className:nm,children:null===t?"—":n(t)})]},e.key))]}))}im.displayName="Chart.Tooltip";var rm=tt(im);const om="chart",sm="chart-caption",lm="chart-title",cm="chart-description",dm="chart-plot",um="chart-svg",mm="chart-grid",pm="chart-axis",hm="chart-tick",gm="chart-label",fm="chart-crosshair",vm="chart-line",bm="chart-area",xm="chart-marker",ym="chart-empty",wm="sr-only",Nm=240,jm=4,km=e=>e.toLocaleString();function Cm(e,t){var a;const{type:n="line",data:i,xKey:r,series:l,title:c,description:d,stacked:u=!1,horizontal:m=!1,height:p=Nm,valueFormat:h=km,labelFormat:g=e=>e,tickCount:v=jm,showGrid:b=!0,showLegend:x,smooth:y=!1,emptyText:w="No data to show",className:N}=e,j=s(e,["type","data","xKey","series","title","description","stacked","horizontal","height","valueFormat","labelFormat","tickCount","showGrid","showLegend","smooth","emptyText","className"]),k=Jt(),C=Jt(),S=o.useRef(null),O=((e,t)=>{const[a,n]=o.useState(t);return Kn(()=>{const a=e.current;if(!a)return;const i=()=>{const e=a.getBoundingClientRect().width;n(e>0?e:t)};if(i(),"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(i);return r.observe(a),()=>{r.disconnect()}},[e,t]),a})(S,480),[M,A]=o.useState(null),T=l.map((e,t)=>{var a;return Object.assign(Object.assign({},e),{name:null!==(a=e.name)&&void 0!==a?a:e.key,color:Vc(t,e.color)})}),I="bar"===n,D=I&&m,L=u&&(I||"area"===n),z=0===i.length||0===T.length,E=i.map(e=>((e,t)=>{var a;return String(null!==(a=e[t])&&void 0!==a?a:"")})(e,r)),P=((e,t,a)=>e.map(e=>{let n=0;return t.map(t=>{const i=Ku(e,t.key);if(null===i)return{value:null,start:0,end:0};const r=a?n:0;return n=a?n+i:n,{value:i,start:r,end:r+i}})}))(i,T,L),$=((e,t)=>{const a=e.flat().filter(e=>null!==e.value).flatMap(e=>[e.start,e.end]),n="line"===t?a:[...a,0];if(0===n.length)return[0,1];const i=Math.min(...n),r=Math.max(...n);return i===r?[Math.min(i,0),0===r?1:r]:[i,r]})(P,n),R=Uu($,[0,1]).ticks(v),B=Math.max(...R.map(e=>h(e).length),1),V=Math.max(...E.map(e=>g(e).length),1),_=7*B+12,F=Math.min(7*V+12,160),H=D?F:_,W=Math.max(O-H-qu,0),G=Math.max(p-Gu-24,0),q=I?((e,t)=>nd().domain(e).range([0,t]).paddingInner(.3).paddingOuter(.15))(E,D?G:W):((e,t)=>rd().domain(e).range([0,t]).padding(.5))(E,W),K=Uu($,D?[0,W]:[G,0]),U=e=>{var t,a;const n=q(E[e]);return(null!=n?n:0)+(I?(null!==(a=null===(t=q.bandwidth)||void 0===t?void 0:t.call(q))&&void 0!==a?a:0)/2:0)},Y=i.map((e,t)=>({index:t,label:E[t],values:T.map(t=>({series:t,value:Ku(e,t.key)}))})),Z=null===M?null:null!==(a=Y[M])&&void 0!==a?a:null,Q=null!=x?x:T.length>1,X=K(0),J=T.map((e,t)=>{var a,r;if(I){const n=null!==(r=null===(a=q.bandwidth)||void 0===a?void 0:a.call(q))&&void 0!==r?r:0,{offset:o,thickness:s}=((e,t,a,n)=>{if(!n){const t=Math.min(e,24);return{offset:(e-t)/2,thickness:t}}const i=(e-2*(t-1))/t,r=Math.max(Math.min(i,24),1);return{offset:(e-(r*t+2*(t-1)))/2+a*(r+2),thickness:r}})(n,T.length,t,!L&&T.length>1);return f.jsx("g",{"data-component":"Chart.Series","data-series":e.key,children:i.map((a,n)=>{var i;const{value:r,start:l,end:c}=P[n][t];if(null===r)return null;const d=K(l),u=K(c),m=(null!==(i=q(E[n]))&&void 0!==i?i:0)+o,p=L&&t>0?2:0,h=D?Yu(Math.min(d,u)+p,m,Math.abs(u-d)-p,s,r<0?"left":"right"):Yu(m,Math.min(d,u),s,Math.abs(u-d)-p,r<0?"bottom":"top");return f.jsx("path",{d:h,fill:e.color,opacity:null===M||M===n?1:.5,"data-component":"Chart.Bar"},E[n])})},e.key)}const o=i.map((e,a)=>({x:U(a),value:P[a][t].value,start:P[a][t].start}));return f.jsxs("g",{"data-component":"Chart.Series","data-series":e.key,children:["area"===n?f.jsx("path",{d:Qu(o,K,y),fill:e.color,className:bm,"data-component":"Chart.Area"}):null,f.jsx("path",{d:Zu("area"===n?o.map(e=>Object.assign(Object.assign({},e),{value:null===e.value?null:e.start+e.value})):o,K,y),stroke:e.color,className:vm,"data-component":"Chart.Line"}),o.map((t,a)=>null===t.value||null!==M&&M!==a?null:f.jsx("circle",{cx:t.x,cy:K("area"===n?t.start+t.value:t.value),r:4,fill:e.color,className:xm,opacity:M===a||i.length<=12?1:0,"data-component":"Chart.Marker"},E[a]))]},e.key)});return f.jsxs("figure",Object.assign({ref:t,className:et(om,N),"data-component":"Chart","data-type":n},j,{children:[c||d?f.jsxs("figcaption",{className:sm,"data-component":"Chart.Caption",children:[c?f.jsx("span",{id:k,className:lm,children:c}):null,d?f.jsx("span",{id:C,className:cm,children:d}):null]}):null,Q&&!z?f.jsx($c,{series:T}):null,f.jsxs("div",{ref:S,className:dm,style:{height:`${p}px`},tabIndex:z?void 0:0,role:z?void 0:"img","aria-labelledby":c?k:void 0,"aria-describedby":d?C:void 0,onPointerMove:z?void 0:e=>{const t=e.currentTarget.getBoundingClientRect(),a=D?e.clientY-t.top-Gu:e.clientX-t.left-H;A((e=>{if(0===i.length)return null;if(I){const t=(D?G:W)/i.length;return Math.min(Math.max(Math.floor(e/t),0),i.length-1)}let t=0;return i.forEach((a,n)=>{Math.abs(U(n)-e)<Math.abs(U(t)-e)&&(t=n)}),t})(a))},onPointerLeave:()=>A(null),onKeyDown:z?void 0:e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0!==t&&0!==i.length&&(e.preventDefault(),A(e=>{const a=(null!=e?e:t>0?-1:i.length)+t;return Math.min(Math.max(a,0),i.length-1)}))},onBlur:()=>A(null),"data-component":"Chart.Plot",children:[z?f.jsx("div",{className:ym,style:{height:`${p}px`},children:w}):f.jsx("svg",{width:O,height:p,className:um,"aria-hidden":"true",focusable:"false","data-component":"Chart.Canvas",children:f.jsxs("g",{transform:`translate(${H}, ${Gu})`,children:[b?R.map(e=>f.jsx("line",{x1:D?K(e):0,x2:D?K(e):W,y1:D?0:K(e),y2:D?G:K(e),className:mm,"data-component":"Chart.GridLine"},e)):null,f.jsx("line",{x1:D?X:0,x2:D?X:W,y1:D?0:X,y2:D?G:X,className:pm,"data-component":"Chart.Baseline"}),Z?f.jsx("line",{x1:D?0:U(Z.index),x2:D?W:U(Z.index),y1:D?U(Z.index):0,y2:D?U(Z.index):G,className:fm,"data-component":"Chart.Crosshair"}):null,J,R.map(e=>f.jsx("text",{x:D?K(e):-6,y:D?G+12:K(e),textAnchor:D?"middle":"end",dominantBaseline:D?"hanging":"middle",className:hm,"data-component":"Chart.Tick",children:h(e)},e)),E.map((e,t)=>f.jsx("text",{x:D?-6:U(t),y:D?U(t):G+12,textAnchor:D?"end":"middle",dominantBaseline:D?"middle":"hanging",className:gm,"data-component":"Chart.Label",children:g(e)},e))]})}),Z?f.jsx(rm,{reading:Z,valueFormat:h,labelFormat:g,style:{left:D?H+W/2:H+U(Z.index)}}):null]}),f.jsxs("table",{className:wm,"aria-labelledby":c?k:void 0,"data-component":"Chart.Table",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:r}),T.map(e=>f.jsx("th",{scope:"col",children:e.name},e.key))]})}),f.jsx("tbody",{children:Y.map(e=>f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:g(e.label)}),e.values.map(({series:e,value:t})=>f.jsx("td",{children:null===t?"—":h(t)},e.key))]},e.label))})]}),f.jsx("span",{role:"status","aria-live":"polite",className:wm,children:Z?`${g(Z.label)}: ${Z.values.map(({series:e,value:t})=>`${e.name} ${null===t?"no value":h(t)}`).join(", ")}`:""})]}))}Cm.displayName="Chart";var Sm=tt(Cm);const Om=Object.assign(Sm,{Legend:$c,Tooltip:rm}),Mm=e.createContext({}),Am='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")',Tm='url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")',Im="checkbox",Dm="checkbox-mark",Lm="checkbox-checked",zm="checkbox-disabled";function Em(e,t){const{className:a,style:n,checked:i,indeterminate:r,required:l,validationStatus:c,value:d,onChange:u}=e,m=s(e,["className","style","checked","indeterminate","required","validationStatus","value","onChange"]),p=o.useRef(null),h=N(t,p),g=o.useContext(Mm);Kn(()=>{p.current&&(p.current.indeterminate=null!=r&&r)},[r,i]);return f.jsx("input",Object.assign({ref:h,type:"checkbox",checked:(!r||void 0===i)&&i,required:l,value:d,name:d,"aria-checked":r?"mixed":void 0,"aria-required":!!l||void 0,"aria-invalid":"error"===c||void 0,onChange:e=>{var t;null===(t=g.onChange)||void 0===t||t.call(g,e),null==u||u(e)},className:et(Im,Dm,Lm,zm,a),style:Object.assign(Object.assign({},n),{"--checkbox-mark":r?Tm:Am}),"data-component":"Checkbox"},m))}Em.displayName="Checkbox";var Pm=tt(Em);const $m="checkbox-group-caption";function Rm(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(Mm);return f.jsx("span",Object.assign({ref:t,id:i,className:et($m,a),"data-component":"CheckboxGroup.Caption"},n))}Rm.displayName="CheckboxGroup.Caption";var Bm=tt(Rm);const Vm="checkbox-group-label",_m="checkbox-group-label-disabled",Fm="sr-only",Hm="checkbox-group-label-required";function Wm(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(Mm);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et(Vm,l&&_m,i&&Fm,a),"data-component":"CheckboxGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:Hm,children:"*"}):null]}))}Wm.displayName="CheckboxGroup.Label";var Gm=tt(Wm);const qm={success:ft,error:Ot},Km="checkbox-group-validation-icon",Um=Xe("checkbox-group-validation",{variants:{variant:{success:"checkbox-group-validation-success",error:"checkbox-group-validation-error"}}});function Ym(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(Mm),c=qm[i];return f.jsxs("span",Object.assign({ref:t,className:et(Um({variant:i}),a),"data-component":"CheckboxGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:Km,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Ym.displayName="CheckboxGroup.Validation";var Zm=tt(Ym);const Qm="checkbox-group",Xm="checkbox-group-legend",Jm="checkbox-group-legend-visible",ep="checkbox-group-body",tp="checkbox-group-validation-slot",ap="sr-only";function np(e,t){const a=e,{as:n="fieldset",className:i,children:r,disabled:l,required:c,onChange:d,id:u,"aria-labelledby":m}=a,p=s(a,["as","className","children","disabled","required","onChange","id","aria-labelledby"]),[h,g]=va(r,{label:Gm,caption:Bm,validation:Zm}),v=Jt(u),b=h.caption?`${v}-caption`:void 0,x=h.validation?`${v}-validation`:void 0,[y,w]=o.useState(()=>(e=>{const t=[],a=e=>{o.Children.forEach(e,e=>{if(o.isValidElement(e)){if(e.type===Pm){const{checked:a,defaultChecked:n,value:i}=e.props;return void((a||n)&&i&&t.push(i))}a(e.props.children)}})};return a(e),t})(r)),N=!!o.isValidElement(h.label)&&!h.label.props.visuallyHidden,j={disabled:l,required:c,captionId:b,validationMessageId:x,onChange:e=>{const{value:t,checked:a}=e.currentTarget,n=a?[...y,t]:y.filter(e=>e!==t);w(n),null==d||d(n,e)}};return f.jsx(Mm.Provider,{value:j,children:f.jsxs(n,Object.assign({ref:t,id:v,disabled:l,"aria-labelledby":h.label?void 0:m,"aria-describedby":[x,b].filter(Boolean).join(" ")||void 0,className:et(Qm,i),"data-component":"CheckboxGroup","data-disabled":l,"data-required":c},p,{children:[h.label?f.jsxs("legend",{className:et(Xm,N&&Jm),children:[h.label,c?f.jsx("span",{className:ap,children:", required"}):null,h.caption]}):h.caption,f.jsx("div",{className:ep,children:g}),h.validation?f.jsx("div",{className:tp,children:h.validation}):null]}))})}np.displayName="CheckboxGroup";var ip=tt(np);const rp=Object.assign(ip,{Label:Gm,Caption:Bm,Validation:Zm}),op=e.createContext({}),sp="block";function lp(e,t){const a=e,{as:n="div",className:i,open:r,defaultOpen:l,disabled:c,onChange:d}=a,u=s(a,["as","className","open","defaultOpen","disabled","onChange"]),m=Jt(),p=void 0!==r,[h,g]=o.useState(Boolean(l)),v=p?r:h,b={triggerId:`${m}-trigger`,contentId:`${m}-content`,isOpen:v,disabled:Boolean(c),toggle:()=>{if(c)return;const e=!v;p||g(e),null==d||d(e)}};return f.jsx(op.Provider,{value:b,children:f.jsx(n,Object.assign({ref:t,className:et(sp,i),"data-component":"Collapsible","data-open":v,"data-disabled":Boolean(c)},u))})}lp.displayName="Collapsible";var cp=tt(lp);const dp="collapsible-content",up="motion-safe:animate-in motion-safe:fade-in motion-safe:slide-in-from-top-1 motion-safe:duration-short";function mp(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]),{contentId:l,isOpen:c}=o.useContext(op);return f.jsx(n,Object.assign({ref:t,id:l,hidden:!c,className:et(dp,c&&up,i),"data-component":"Collapsible.Content","data-open":Boolean(c)},r))}mp.displayName="Collapsible.Content";var pp=tt(mp);const hp="collapsible-trigger",gp="collapsible-trigger-disabled",fp="min-w-0 grow",vp="min-w-0",bp="collapsible-trigger-indicator",xp="rotate-180",yp="-rotate-90",wp="rotate-0";function Np(e,t){const{className:a,children:n,indicator:i="end",onClick:r}=e,l=s(e,["className","children","indicator","onClick"]),{triggerId:c,contentId:d,isOpen:u,disabled:m,toggle:p}=o.useContext(op),h="none"===i?null:f.jsx(bt,{className:et(bp,"start"===i?u?wp:yp:u&&xp),"aria-hidden":"true"});return f.jsxs("button",Object.assign({ref:t,type:"button",id:c,className:et(hp,m&&gp,a),onClick:e=>{null==r||r(e),e.defaultPrevented||null==p||p()},disabled:m,"aria-expanded":Boolean(u),"aria-controls":d,"data-component":"Collapsible.Trigger","data-open":Boolean(u),"data-indicator":i},l,{children:["start"===i?h:null,f.jsx("span",{className:"end"===i?fp:vp,children:n}),"end"===i?h:null]}))}Np.displayName="Collapsible.Trigger";var jp=tt(Np);const kp=Object.assign(cp,{Trigger:jp,Content:pp}),Cp=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return.9;const a=e.indexOf(t);return a>0?/\s|[-_/]/.test(e[a-1])?.8:.6:((e,t)=>{let a=0,n=0;for(const i of t){const t=e.indexOf(i,a);if(-1===t)return 0;n+=t-a,a=t+1}return Math.max(.5-.01*n,.1)})(e,t)},Sp=(e,t,a=[])=>{const n=t.trim().toLowerCase();return""===n?1:[e,...a].map(e=>Cp(e.trim().toLowerCase(),n)).reduce((e,t)=>Math.max(e,t),0)},Op=e.createContext(null),Mp=e.createContext(null),Ap="command-palette",Tp="sr-only";function Ip(e,t){var a,n;const{search:i,defaultSearch:r="",onSearchChange:l,value:c,defaultValue:d="",onValueChange:u,onSelect:m,filter:p=Sp,shouldFilter:h=!0,loop:g=!1,label:v="Command palette",className:b,children:x}=e,y=s(e,["search","defaultSearch","onSearchChange","value","defaultValue","onValueChange","onSelect","filter","shouldFilter","loop","label","className","children"]),w=Jt(),N=Jt(),j=void 0!==i,[k,C]=o.useState(r),S=j?i:k,O=void 0!==c,[M,A]=o.useState(d),T=O?c:M,[I,D]=o.useState([]),L=o.useCallback(e=>{D(t=>[...t.filter(t=>t.value!==e.value),e])},[]),z=o.useCallback(e=>{D(t=>t.filter(t=>t.value!==e))},[]),E=o.useMemo(()=>{const e={};for(const t of I)e[t.value]=h?p(t.value,S,t.keywords):1;return e},[I,p,S,h]),P=o.useMemo(()=>((e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>{var a;return e.forceMount||(null!==(a=t[e.value])&&void 0!==a?a:0)>0}).sort((e,a)=>{var n,i;const r=(null!==(n=t[a.entry.value])&&void 0!==n?n:0)-(null!==(i=t[e.entry.value])&&void 0!==i?i:0);return 0===r?e.index-a.index:r}).map(({entry:e})=>e.value))(I,E),[I,E]),$=o.useMemo(()=>P.filter(e=>{var t;return!(null===(t=I.find(t=>t.value===e))||void 0===t?void 0:t.disabled)}),[I,P]),R=$.includes(T)?T:null!==(a=$[0])&&void 0!==a?a:"",B=null===(n=I.find(e=>e.value===R))||void 0===n?void 0:n.id,V=o.useCallback(e=>{O||A(e),null==u||u(e)},[O,u]),_=o.useRef(R);o.useEffect(()=>{_.current!==R&&(_.current=R,null==u||u(R))},[u,R]);const F=o.useCallback(e=>{j||C(e),null==l||l(e)},[j,l]),H=o.useCallback(e=>{null==m||m(e)},[m]),W=o.useMemo(()=>({search:S,setSearch:F,value:R,activeId:B,setValue:V,order:P,entries:I,scores:E,register:L,unregister:z,onSelect:H,listId:w,labelId:N,shouldFilter:h}),[B,I,H,N,w,P,L,E,S,F,V,h,z,R]);return f.jsx(Op.Provider,{value:W,children:f.jsxs("div",Object.assign({ref:t,className:et(Ap,b),onKeyDown:e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey))return"ArrowDown"===e.key||"ArrowUp"===e.key?(e.preventDefault(),void(e=>{if(0===$.length)return;const t=$.indexOf(R)+e,a=g?(t+$.length)%$.length:Math.min(Math.max(t,0),$.length-1);V($[a])})("ArrowDown"===e.key?1:-1)):void("Enter"===e.key&&""!==R&&(e.preventDefault(),H(R)))},"data-component":"CommandPalette"},y,{children:[f.jsx("span",{id:N,className:Tp,children:v}),x]}))})}Ip.displayName="CommandPalette";var Dp=tt(Ip);let Lp=0,zp="",Ep="";const Pp=t=>{e.useEffect(()=>{if(!t){if(Lp++,1===Lp){const e=window.innerWidth-document.body.clientWidth;zp=document.body.style.overflow,Ep=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-scroll-locked","")}return()=>{Lp--,0===Lp&&(document.body.style.overflow=zp,document.body.style.paddingRight=Ep,document.body.removeAttribute("data-scroll-locked"))}}},[t])},$p="command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",Rp="command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short";function Bp(e,t){var a;const{open:n,onOpenChange:i,returnFocusRef:r,overlayClassName:l,className:c,children:d}=e,u=s(e,["open","onOpenChange","returnFocusRef","overlayClassName","className","children"]),m=o.useRef(null);return qn({containerRef:m,returnFocusRef:r,disabled:!n}),Zn(e=>{n&&(e.preventDefault(),i(!1))}),Pp(!n),n?f.jsx(oi,{children:f.jsx("div",{className:et($p,l),onMouseDown:e=>{e.target===e.currentTarget&&i(!1)},"data-component":"CommandPalette.Backdrop",children:f.jsx("div",{ref:m,role:"dialog","aria-modal":"true","aria-label":null!==(a=u.label)&&void 0!==a?a:"Command palette",className:Rp,"data-component":"CommandPalette.Dialog",children:f.jsx(Dp,Object.assign({ref:t,className:c},u,{children:d}))})})}):null}Bp.displayName="CommandPalette.Dialog";var Vp=tt(Bp);const _p="command-palette-empty";function Fp(e,t){const{className:a,children:n="No results found"}=e,i=s(e,["className","children"]),r=o.useContext(Op);return!r||0===r.entries.length||r.order.length>0?null:f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(_p,a),"data-component":"CommandPalette.Empty"},i,{children:n}))}Fp.displayName="CommandPalette.Empty";var Hp=tt(Fp);const Wp="command-palette-group",Gp="command-palette-group-heading",qp="hidden";function Kp(e,t){var a;const{heading:n,forceMount:i=!1,className:r,children:l}=e,c=s(e,["heading","forceMount","className","children"]),d=Jt(),u=Jt(),m=o.useContext(Op),p=o.useMemo(()=>({groupId:d}),[d]),h=(null!==(a=null==m?void 0:m.entries)&&void 0!==a?a:[]).filter(e=>e.groupId===d),g=h.map(e=>{var t;return null!==(t=null==m?void 0:m.order.indexOf(e.value))&&void 0!==t?t:-1}).filter(e=>-1!==e),v=i||0===h.length||g.length>0;return f.jsx(Mp.Provider,{value:p,children:f.jsxs("div",Object.assign({ref:t,role:"group","aria-labelledby":n?u:void 0,className:et(Wp,!v&&qp,r),style:{order:g.length>0?Math.min(...g):void 0},"data-component":"CommandPalette.Group"},c,{children:[n?f.jsx("div",{id:u,className:Gp,"data-component":"CommandPalette.GroupHeading",children:n}):null,l]}))})}Kp.displayName="CommandPalette.Group";var Up=tt(Kp);const Yp="command-palette-input";function Zp(e,t){const{className:a,placeholder:n="Type a command or search"}=e,i=s(e,["className","placeholder"]),r=o.useContext(Op);return r?f.jsx(Nr,Object.assign({ref:t,type:"text",size:"large",block:!0,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":r.listId,"aria-labelledby":r.labelId,"aria-activedescendant":r.activeId,autoComplete:"off",leadingVisual:Rt,placeholder:n,value:r.search,onChange:e=>r.setSearch(e.target.value),className:et(Yp,a),"data-component":"CommandPalette.Input"},i)):null}Zp.displayName="CommandPalette.Input";var Qp=tt(Zp);const Xp="command-palette-item",Jp="command-palette-item-active",eh="command-palette-item-unavailable",th="hidden";function ah(e,t){var a;const{value:n,keywords:i,disabled:r=!1,forceMount:l=!1,onSelect:c,className:d,children:u,onClick:m,onPointerMove:p}=e,h=s(e,["value","keywords","disabled","forceMount","onSelect","className","children","onClick","onPointerMove"]),g=Jt(),v=o.useContext(Op),b=o.useContext(Mp),x=o.useRef(null),y=N(t,x),[w,j]=o.useState(null!=n?n:"");Kn(()=>{var e,t;j(null!=n?n:(null!==(t=null===(e=x.current)||void 0===e?void 0:e.textContent)&&void 0!==t?t:"").trim())},[n,u]);const k=(null!=i?i:[]).join("\0"),C=null==v?void 0:v.register,S=null==v?void 0:v.unregister,O=null==b?void 0:b.groupId;o.useEffect(()=>{if(C&&S&&""!==w)return C({value:w,id:g,keywords:""===k?[]:k.split("\0"),groupId:O,disabled:r,forceMount:l}),()=>{S(w)}},[r,l,O,g,k,C,S,w]);const M=null!==(a=null==v?void 0:v.order.indexOf(w))&&void 0!==a?a:-1,A=(null==v?void 0:v.value)===w&&""!==w,T=!(null!==v&&""!==w&&void 0!==v.scores[w])||-1!==M;o.useEffect(()=>{var e,t;A&&(null===(t=null===(e=x.current)||void 0===e?void 0:e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"}))},[A]);return f.jsx("div",Object.assign({ref:y,id:g,role:"option","aria-selected":A,"aria-disabled":r||void 0,className:et(Xp,A&&Jp,r&&eh,!T&&th,d),style:{order:-1===M?void 0:M},onClick:e=>{null==m||m(e),r||e.defaultPrevented||(null==c||c(w),null==v||v.onSelect(w))},onPointerMove:e=>{null==p||p(e),r||A||null==v||v.setValue(w)},"data-component":"CommandPalette.Item","data-value":w||void 0,"data-active":A||void 0,"data-disabled":r||void 0},h,{children:u}))}ah.displayName="CommandPalette.Item";var nh=tt(ah);const ih="command-palette-list",rh=400;function oh(e,t){const{maxHeight:a=rh,className:n,style:i,children:r}=e,l=s(e,["maxHeight","className","style","children"]),c=o.useContext(Op);return c?f.jsx("div",Object.assign({ref:t,id:c.listId,role:"listbox","aria-labelledby":c.labelId,className:et(ih,n),style:Object.assign(Object.assign({},i),{maxHeight:`${a}px`}),"data-component":"CommandPalette.List"},l,{children:r})):null}oh.displayName="CommandPalette.List";var sh=tt(oh);const lh="command-palette-loading";function ch(e,t){const{label:a="Loading",className:n,children:i}=e,r=s(e,["label","className","children"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(lh,n),"data-component":"CommandPalette.Loading"},r,{children:null!=i?i:f.jsx(en,{size:"small",srText:a})}))}ch.displayName="CommandPalette.Loading";var dh=tt(ch);const uh="command-palette-separator";function mh(e,t){const{alwaysRender:a=!1,className:n}=e,i=s(e,["alwaysRender","className"]),r=o.useContext(Op);return a||null===r||""===r.search.trim()?f.jsx("div",Object.assign({ref:t,role:"separator",className:et(uh,n),"data-component":"CommandPalette.Separator"},i)):null}mh.displayName="CommandPalette.Separator";var ph=tt(mh);const hh=Object.assign(Dp,{Dialog:Vp,Input:Qp,List:sh,Group:Up,Item:nh,Separator:ph,Empty:Hp,Loading:dh}),gh=t=>{const[a,n]=e.useState(!1);return e.useEffect(()=>{if(null===t.current)return;const e=new ResizeObserver(e=>{for(const t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return e.observe(t.current),()=>{e.disconnect()}},[t]),a},fh="scrollable-region";function vh(e,t){const a=e,{as:n="div",className:i,"aria-label":r,"aria-labelledby":l}=a,c=s(a,["as","className","aria-label","aria-labelledby"]),d=o.useRef(null),u=N(t,d),m=gh(d)?{role:"region",tabIndex:0,"aria-label":r,"aria-labelledby":l}:{};return f.jsx(n,Object.assign({ref:u,className:et(fh,i),"data-component":"ScrollableRegion"},m,c))}vh.displayName="ScrollableRegion";var bh=tt(vh);const xh="dialog-body";function yh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(xh,i),"data-component":"Dialog.Body"},r))}yh.displayName="Dialog.Body";var wh=tt(yh);const Nh=e.createContext(void 0);function jh({buttons:e}){var t;const a=o.useContext(Nh),n=e.findIndex(e=>e.autoFocus),i=N(null==a?void 0:a.autoFocusRef,null===(t=e[n])||void 0===t?void 0:t.ref);return f.jsx(f.Fragment,{children:e.map((e,t)=>{const{content:a,buttonType:r="default",autoFocus:o,ref:l}=e,c=s(e,["content","buttonType","autoFocus","ref"]);return f.jsx(vn,Object.assign({ref:o&&t===n?i:l,variant:"normal"===r?"default":r,"data-component":"Dialog.FooterButton"},c,{children:a}),t)})})}function kh(e,t){const{onClose:a}=e,n=s(e,["onClose"]);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",onClick:a,"data-component":"Dialog.CloseButton"},n))}jh.displayName="Dialog.Buttons",kh.displayName="Dialog.CloseButton";var Ch=tt(kh);const Sh="dialog-footer",Oh="dialog-footer-scroll";function Mh(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Sh,Oh,i),"data-component":"Dialog.Footer"},r))}Mh.displayName="Dialog.Footer";var Ah=tt(Mh);const Th="dialog-header";function Ih(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Th,i),"data-component":"Dialog.Header"},r))}Ih.displayName="Dialog.Header";var Dh=tt(Ih);const Lh="dialog-subtitle";function zh(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Lh,i),"data-component":"Dialog.Subtitle"},r))}zh.displayName="Dialog.Subtitle";var Eh=tt(zh);const Ph="dialog-title";function $h(e,t){const a=e,{as:n="h1",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Ph,i),"data-component":"Dialog.Title"},r))}$h.displayName="Dialog.Title";var Rh=tt($h);const Bh={backdrop:"dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropPosition:{center:"dialog-backdrop-center",left:"dialog-backdrop-left",right:"dialog-backdrop-right"},backdropNarrowPosition:{center:"dialog-backdrop-narrow-center",bottom:"dialog-backdrop-narrow-bottom",fullscreen:"dialog-backdrop-narrow-fullscreen"},backdropAlign:{top:"dialog-backdrop-align-top",center:"dialog-backdrop-align-center",bottom:"dialog-backdrop-align-bottom"},backdropNarrowAlign:{top:"dialog-backdrop-narrow-align-top",center:"dialog-backdrop-narrow-align-center",bottom:"dialog-backdrop-narrow-align-bottom"},root:"dialog motion-safe:animate-in motion-safe:duration-short",width:{small:"dialog-width-small",medium:"dialog-width-medium",large:"dialog-width-large",xlarge:"dialog-width-xlarge"},customWidth:"dialog-width-custom",height:{small:"dialog-height-small",large:"dialog-height-large",auto:"dialog-height-auto"},position:{center:"motion-safe:fade-in motion-safe:zoom-in-50",left:"dialog-left motion-safe:slide-in-from-left",right:"dialog-right motion-safe:slide-in-from-right"},narrowPosition:{center:"",bottom:"dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom",fullscreen:"dialog-narrow-fullscreen"},align:{top:"dialog-align-top",center:"",bottom:"dialog-align-bottom"},headerInner:"dialog-header-inner",headerContent:"dialog-header-content",overflowWrapper:"dialog-overflow-wrapper",overflowWrapperBordered:"dialog-overflow-wrapper-bordered"},Vh={narrow:"center",regular:"center"};let _h=0,Fh="",Hh="";const Wh=e=>"string"==typeof e&&e in Bh.width,Gh=e=>"number"==typeof e?`${e}px`:e,qh=({title:e,subtitle:t,dialogLabelId:a,dialogDescriptionId:n,onClose:i})=>f.jsx(Dh,{children:f.jsxs("div",{className:Bh.headerInner,children:[f.jsxs("div",{className:Bh.headerContent,children:[f.jsx(Rh,{id:a,children:e}),t?f.jsx(Eh,{id:n,children:t}):null]}),f.jsx(Ch,{onClose:()=>i("close-button")})]})}),Kh=({children:e})=>f.jsx(wh,{children:e}),Uh=e=>{const t="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;if(e.defaultPrevented||0===t)return;const a=Array.from(e.currentTarget.querySelectorAll("[data-component='Dialog.FooterButton']:not([disabled])")),n=a.indexOf(document.activeElement);-1!==n&&(e.preventDefault(),a[(n+t+a.length)%a.length].focus())},Yh=({footerButtons:e})=>e?f.jsx(Ah,{onKeyDown:Uh,children:f.jsx(jh,{buttons:e})}):null;function Zh(e,t){var a,n,i,r;const{title:l="Dialog",subtitle:c="",renderHeader:d,renderBody:u,renderFooter:m,footerButtons:p,onClose:h,role:g="dialog",width:v="xlarge",height:b="auto",position:x=Vh,align:y,returnFocusRef:w,initialFocusRef:j,className:k,style:C,children:S}=e,O=s(e,["title","subtitle","renderHeader","renderBody","renderFooter","footerButtons","onClose","role","width","height","position","align","returnFocusRef","initialFocusRef","className","style","children"]),M=Jt(),A=Jt(),T=o.useRef(null),I=N(t,T),D=o.useRef(null),L=o.useRef(null),z=o.useRef(null),[E,P]=o.useState(!1),[$,R]=o.useState("wrap"),B=gh(L);qn({containerRef:T,initialFocusRef:null!=j?j:z,returnFocusRef:w}),Zn(e=>{h("escape"),e.preventDefault()}),o.useEffect(()=>{if(_h++,1===_h){const e=window.innerWidth-document.body.clientWidth;Fh=document.body.style.overflow,Hh=document.body.style.paddingRight,document.body.style.overflow="hidden",document.body.style.paddingRight=`${e}px`,document.body.setAttribute("data-dialog-scroll-disabled","")}return()=>{_h--,0===_h&&(document.body.style.overflow=Fh,document.body.style.paddingRight=Hh,document.body.removeAttribute("data-dialog-scroll-disabled"))}},[]);const[V,_]=va(S,{header:Dh,body:wh,footer:Ah}),F=Object.assign(Object.assign({},e),{title:l,subtitle:c,role:g,footerButtons:p,dialogLabelId:M,dialogDescriptionId:A}),H=null!==(a=V.header)&&void 0!==a?a:(null!=d?d:qh)(F),W=null!==(n=V.body)&&void 0!==n?n:(null!=u?u:Kh)(Object.assign(Object.assign({},F),{children:_})),G=null!==(i=V.footer)&&void 0!==i?i:(null!=m?m:Yh)(F),q=Boolean(G),K=o.useCallback(()=>{const e=T.current,t=L.current;if(!q||!e||!t)return;e.setAttribute("data-footer-button-layout","wrap");const a=t.clientHeight>=48?"wrap":"scroll";e.setAttribute("data-footer-button-layout",a),R(a)},[q]);o.useEffect(()=>{const e=D.current;if(!e)return;const t=new ResizeObserver(K);return t.observe(e),()=>{t.disconnect()}},[K]);const U="string"==typeof x?{regular:x}:x,Y=null!==(r=U.regular)&&void 0!==r?r:"center",Z=U.narrow,Q="center"===Y?y:void 0,X=Qn("position",U),J=y?{"data-align":y}:void 0;return f.jsx(Nh.Provider,{value:{autoFocusRef:z},children:f.jsx(oi,{children:f.jsx("div",Object.assign({ref:D,className:et(Bh.backdrop,Bh.backdropPosition[Y],Q&&Bh.backdropAlign[Q],Z&&Bh.backdropNarrowPosition[Z],"center"===Z&&Q&&Bh.backdropNarrowAlign[Q]),onClick:e=>{e.target===e.currentTarget&&E&&h("escape")},onMouseDown:e=>{P(e.target===e.currentTarget)},"data-component":"Dialog.Backdrop"},X,J,{children:f.jsxs("div",Object.assign({ref:I,role:g,"aria-labelledby":M,"aria-describedby":A,"aria-modal":!0,className:et(Bh.root,Wh(v)?Bh.width[v]:Bh.customWidth,Bh.height[b],Bh.position[Y],Q&&Bh.align[Q],Z&&Bh.narrowPosition[Z],k),style:Object.assign(Object.assign({},C),Wh(v)?{}:{"--dialog-width":Gh(v)}),"data-component":"Dialog","data-width":Wh(v)?v:void 0,"data-height":b,"data-has-footer":q?"":void 0,"data-footer-button-layout":q?$:void 0},X,J,O,{children:[H,f.jsx(bh,{ref:L,"aria-labelledby":M,className:et(Bh.overflowWrapper,q&&B&&Bh.overflowWrapperBordered),children:W}),G]}))}))})})}Zh.displayName="Dialog";var Qh=tt(Zh);function Xh(e,t){const{onClose:a,title:n,cancelButtonContent:i="Cancel",confirmButtonContent:r="OK",confirmButtonType:o="normal",cancelButtonLoading:s=!1,confirmButtonLoading:l=!1,overrideButtonFocus:c,width:d="medium",height:u,className:m,children:p}=e,h=null!=c?c:"danger"===o?"cancel":"confirm",g=[{content:i,onClick:()=>a("cancel"),autoFocus:"cancel"===h,loading:s},{content:r,buttonType:o,onClick:()=>a("confirm"),autoFocus:"confirm"===h,loading:l}];return f.jsx(Qh,{ref:t,title:n,onClose:a,footerButtons:g,role:"alertdialog",width:d,height:u,className:m,"data-component":"ConfirmationDialog",children:p})}Xh.displayName="ConfirmationDialog";var Jh=tt(Xh);const eg=e=>{var{content:t}=e,a=s(e,["content"]);return new Promise(e=>{const i=document.createElement("div");document.body.append(i);const r=n.createRoot(i);r.render(f.jsx(Jh,Object.assign({},a,{onClose:t=>{queueMicrotask(()=>{r.unmount(),i.remove()}),e("confirm"===t)},children:t})))})},tg="data-table-wrapper",ag=Xe("data-table",{variants:{cellPadding:{condensed:"data-table-cell-padding-condensed",normal:"data-table-cell-padding-normal",spacious:"data-table-cell-padding-spacious"}}});function ng(e,t){const{className:a,style:n,cellPadding:i="normal",gridTemplateColumns:r,"aria-labelledby":o}=e,l=s(e,["className","style","cellPadding","gridTemplateColumns","aria-labelledby"]),c=o?{"aria-labelledby":o}:{"aria-label":"Table"};return f.jsx(bh,Object.assign({},c,{className:tg,children:f.jsx("table",Object.assign({ref:t,role:"table","aria-labelledby":o,className:et(ag({cellPadding:i}),a),style:Object.assign(Object.assign({},n),{"--table-grid-template-columns":r}),"data-component":"Table","data-cell-padding":i},l))}))}ng.displayName="Table";var ig=tt(ng);const rg="data-table-actions";function og(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(rg,a),"data-component":"Table.Actions"},n))}og.displayName="Table.Actions";var sg=tt(og);const lg="data-table-subgrid",cg=e=>(e=>e.map(e=>{var t;const a=null!==(t=e.width)&&void 0!==t?t:"grow";let n="auto",i="1fr";return"auto"===a&&(i="auto"),"grow"!==a||e.maxWidth||(n="max-content"),"growCollapse"===a&&(n="0"),e.minWidth&&(n="number"==typeof e.minWidth?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(i="number"==typeof e.maxWidth?`${e.maxWidth}px`:e.maxWidth),"number"!=typeof a&&["grow","growCollapse","auto"].includes(a)?n===i?n:`minmax(${n}, ${i})`:"number"==typeof a?`${a}px`:a}))(e).join(" ");function dg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tbody",Object.assign({ref:t,role:"rowgroup",className:et(lg,a),"data-component":"Table.Body"},n))}dg.displayName="Table.Body";var ug=tt(dg);const mg="data-table-cell",pg="data-table-cell-end",hg="data-table-cell-row-header";function gg(e,t){const{className:a,align:n,scope:i}=e,r=s(e,["className","align","scope"]),o=i?"th":"td";return f.jsx(o,Object.assign({ref:t,scope:i,role:i?"rowheader":"cell",className:et(mg,"end"===n&&pg,i&&hg,a),"data-component":"Table.Cell","data-cell-align":n},r))}gg.displayName="Table.Cell";var fg=tt(gg);const vg="data-table-cell-placeholder";function bg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(dr,Object.assign({ref:t,className:et(vg,a),"data-component":"Table.CellPlaceholder"},n))}bg.displayName="Table.CellPlaceholder";var xg=tt(bg);const yg="data-table-container",wg="data-table-container-spacing";function Ng(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(yg,wg,i),"data-component":"Table.Container"},r))}Ng.displayName="Table.Container";var jg=tt(Ng);const kg="data-table-divider";function Cg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,role:"presentation",className:et(kg,a),"data-component":"Table.Divider"},n))}Cg.displayName="Table.Divider";var Sg=tt(Cg);function Og(e,t){const{title:a="Error",children:n,onRetry:i,onDismiss:r}=e;return f.jsx(Jh,{ref:t,title:a,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{"confirm"!==e?null==r||r():null==i||i()},children:n})}Og.displayName="Table.ErrorDialog";var Mg=tt(Og);function Ag(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("thead",Object.assign({ref:t,role:"rowgroup",className:et(lg,a),"data-component":"Table.Head"},n))}Ag.displayName="Table.Head";var Tg=tt(Ag);const Ig="data-table-header",Dg="data-table-header-end",Lg="data-table-header-sorted";function zg(e,t){const{className:a,align:n}=e,i=s(e,["className","align"]);return f.jsx("th",Object.assign({ref:t,role:"columnheader",scope:"col",className:et(Ig,Lg,"end"===n&&Dg,a),"data-component":"Table.Header","data-cell-align":n},i))}zg.displayName="Table.Header";var Eg=tt(zg);const Pg=(e,t,a,n,i)=>{const r={type:"previous",num:t-1,disabled:1===t},o={type:"next",num:t+1,disabled:t===e};if(!a)return[r,o];if(e<=0)return[r,Object.assign(Object.assign({},o),{disabled:!0})];const s=[],l=(e,a,n=!1)=>{for(let i=e;i<=a;i++)s.push({type:"number",num:i,selected:i===t,precedesBreak:i===a&&n})},c=e=>{s.push({type:"break",num:e+1})},d=i+n;if(e<=d+d+3)return l(1,e),[r,...s,o];let u=0,m=0;t-d-1<=1?m=t-d-2:u=t-d-1;let p=0,h=0;e-t-d<=1?h=e-t-d-1:p=e-t-d;const g=u>0,f=p>0;return l(1,n,g),g&&c(n),l(n+u+h+1,e-m-p-n,f),f&&c(e-m-p-n),l(e-n+1,e),[r,...s,o]},$g=(e,t,a)=>{if("break"===e.type)return{key:`page-${e.num}-break`,content:"…",presentational:!0,props:{}};if("number"===e.type)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,"aria-current":e.selected?"page":void 0,onClick:a}};const n="previous"===e.type?"prev":"next",i="previous"===e.type?"Previous":"Next",r=`page-${n}`;return e.disabled?{key:r,content:i,props:{rel:n,"aria-hidden":!0,"aria-disabled":!0}}:{key:r,content:i,props:{rel:n,href:t(e.num),"aria-label":`${i} Page`,onClick:a}}},Rg=["narrow","regular","wide"],Bg=25,Vg={narrow:!1},_g={root:"data-table-pagination",range:"data-table-pagination-range",steps:"data-table-pagination-steps",step:"data-table-pagination-step",button:"data-table-pagination-button",truncation:"data-table-pagination-truncation",icon:"data-table-pagination-icon",hiddenRange:{narrow:"data-table-pagination-hidden-range-narrow",regular:"data-table-pagination-hidden-range-regular",wide:"data-table-pagination-hidden-range-wide"},hidden:"sr-only"},Fg=Xe([_g.button,"data-table-pagination-jump"],{variants:{enabled:{true:"data-table-pagination-jump-enabled",false:""}}}),Hg=Xe([_g.button,"data-table-pagination-page"],{variants:{active:{true:"data-table-pagination-page-active",false:""}}}),Wg=({children:e})=>f.jsx("li",{className:_g.step,"data-component":"Table.Pagination.Step",children:e});function Gg(e,t){const{className:a,totalCount:n,pageSize:i=Bg,defaultPageIndex:r,onChange:l,showPages:c=Vg}=e,d=s(e,["className","totalCount","pageSize","defaultPageIndex","onChange","showPages"]),{pageIndex:u,pageCount:m,pageStart:p,pageEnd:h,hasPreviousPage:g,hasNextPage:v,selectPage:b}=(({defaultPageIndex:e,onChange:t,pageSize:a,totalCount:n})=>{const i=Math.ceil(n/a),r=e=>void 0!==e&&e>=0&&e<i,[s,l]=o.useState(()=>r(e)?e:0),[c,d]=o.useState(s);return r(e)&&s!==e&&(l(e),d(e),null==t||t({pageIndex:e})),{pageIndex:c,pageCount:i,pageStart:c*a,pageEnd:Math.min((c+1)*a,n),hasPreviousPage:c>0,hasNextPage:c+1<i,selectPage:e=>{c!==e&&(d(e),null==t||t({pageIndex:e}))}}})({defaultPageIndex:r,onChange:l,pageSize:i,totalCount:n}),x=o.useMemo(()=>Pg(m,u+1,Boolean(c),1,2),[m,u,c]),y=(e=>"object"==typeof e?Rg.filter(t=>!1===e[t]):e?[]:[...Rg])(c),w=p+1;return f.jsxs("nav",Object.assign({ref:t,className:et(_g.root,a),"data-component":"Table.Pagination"},d,{children:[f.jsxs("span",{role:"status","aria-live":"polite",className:_g.hidden,children:["Showing ",w," through ",h," of ",n]}),f.jsxs("p",{className:_g.range,"data-component":"Table.Pagination.Range",children:[w,f.jsx("span",{className:_g.hidden,children:" through "}),f.jsx("span",{"aria-hidden":"true",children:"‒"}),h," of ",n]}),f.jsxs("ol",{className:et(_g.steps,y.map(e=>_g.hiddenRange[e])),"data-hidden-viewport-ranges":y.join(" ")||void 0,children:[f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Fg({enabled:g})),"data-has-page":g||void 0,"aria-disabled":!g||void 0,onClick:()=>{g&&b(u-1)},"data-component":"Table.Pagination.PreviousPageButton",children:[g?f.jsx(xt,{className:_g.icon}):null,f.jsx("span",{children:"Previous"}),f.jsx("span",{className:_g.hidden,children:" page"})]})}),x.map((e,t)=>"break"===e.type?f.jsx("li",{"aria-hidden":"true",className:_g.truncation,"data-component":"Table.Pagination.TruncationStep",children:"…"},`break-${t}`):"number"===e.type?f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Hg({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>b(e.num-1),"data-component":"Table.Pagination.Page",children:[f.jsx("span",{className:_g.hidden,children:"Page "}),e.num,e.precedesBreak?f.jsx("span",{className:_g.hidden,children:"…"}):null]})},`page-${e.num}`):null),f.jsx(Wg,{children:f.jsxs("button",{type:"button",className:et(Fg({enabled:v})),"data-has-page":v||void 0,"aria-disabled":!v||void 0,onClick:()=>{v&&b(u+1)},"data-component":"Table.Pagination.NextPageButton",children:[f.jsx("span",{children:"Next"}),f.jsx("span",{className:_g.hidden,children:" page"}),v?f.jsx(yt,{className:_g.icon}):null]})})]})]}))}Gg.displayName="Table.Pagination";var qg=tt(Gg);function Kg(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("tr",Object.assign({ref:t,role:"row",className:et(lg,a),"data-component":"Table.Row"},n))}Kg.displayName="Table.Row";var Ug=tt(Kg);const Yg="skeleton-box",Zg="motion-safe:shimmer";function Qg(e,t){const a=e,{as:n="div",className:i,width:r,height:o,style:l}=a,c=s(a,["as","className","width","height","style"]);return f.jsx(n,Object.assign({ref:t,className:et(Yg,Zg,i),style:Object.assign(Object.assign({},l),{"--skeleton-box-width":r,"--skeleton-box-height":o}),"data-component":"SkeletonBox"},c))}Qg.displayName="SkeletonBox";var Xg=tt(Qg);const Jg="skeleton-text-wrapper",ef=Xe("skeleton-text",{variants:{size:{display:"skeleton-text-display",titleLarge:"skeleton-text-title-large",titleMedium:"skeleton-text-title-medium",titleSmall:"skeleton-text-title-small",bodyLarge:"skeleton-text-body-large",bodyMedium:"skeleton-text-body-medium",bodySmall:"skeleton-text-body-small",subtitle:"skeleton-text-subtitle"},multiline:{true:"skeleton-text-multiline",false:""}}});function tf(e){var{lines:t=1,maxWidth:a,size:n="bodyMedium",className:i,style:r}=e,o=s(e,["lines","maxWidth","size","className","style"]);return t<2?f.jsx(Xg,Object.assign({width:"100%",height:"var(--skeleton-text-font-size)",className:et(ef({size:n}),i),style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-size":n},o,{"data-component":"SkeletonText"})):f.jsx("div",{className:Jg,style:Object.assign(Object.assign({},r),{maxWidth:a}),"data-component":"SkeletonText",children:Array.from({length:t},(e,t)=>f.jsx(Xg,Object.assign({height:"var(--skeleton-text-font-size)",className:et(ef({size:n,multiline:!0}),i),"data-size":n},o),t))})}tf.displayName="SkeletonText";const af="data-table-skeleton-cell",nf="data-table-skeleton-items",rf="data-table-skeleton-item",of="sr-only",sf=10;function lf(e,t){const{columns:a,cellPadding:n,rows:i=sf}=e,r=s(e,["columns","cellPadding","rows"]);return f.jsxs(ig,Object.assign({ref:t,cellPadding:n,gridTemplateColumns:cg(a),"data-component":"Table.Skeleton"},r,{children:[f.jsx(Tg,{children:f.jsx(Ug,{children:a.map((e,t)=>{var a,n;return f.jsx(Eg,{children:"string"==typeof e.header?e.header:e.header()},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})}),f.jsx(ug,{children:f.jsx(Ug,{children:a.map((e,t)=>{var a,n;return f.jsxs(fg,{className:af,"data-cell-skeleton":"",children:[f.jsx("span",{className:of,children:"Loading"}),f.jsx("div",{className:nf,children:Array.from({length:i},(e,t)=>f.jsx("div",{className:rf,"data-cell-skeleton-item":"",children:f.jsx(tf,{})},t))})]},null!==(n=null!==(a=e.id)&&void 0!==a?a:e.field)&&void 0!==n?n:t)})})})]}))}lf.displayName="Table.Skeleton";var cf=tt(lf);const df="data-table-sort-header",uf="data-table-sort-header-button",mf="data-table-sort-header-button-end",pf="data-table-sort-header-icon",hf="data-table-sort-header-icon-resting",gf="sr-only";function ff(e,t){const{className:a,align:n,children:i,direction:r,onToggleSort:o}=e,l=s(e,["className","align","children","direction","onToggleSort"]),c="ASC"===r?"ascending":"DESC"===r?"descending":void 0,d="DESC"===r?ut:mt;return f.jsx(Eg,Object.assign({ref:t,align:n,"aria-sort":c,className:et(df,a),"data-component":"Table.SortHeader"},l,{children:f.jsxs("button",{type:"button",onClick:o,className:et(uf,"end"===n&&mf),"data-component":"Table.SortHeader.Button",children:[i,f.jsx(d,{className:et(pf,"NONE"===r&&hf),"aria-hidden":"true","data-sort-icon":"DESC"===r?"descending":"ascending"}),"NONE"===r?f.jsx("span",{className:gf,children:"sort ascending"}):null]})}))}ff.displayName="Table.SortHeader";var vf=tt(ff);const bf="data-table-subtitle";function xf(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(bf,i),"data-component":"Table.Subtitle"},r))}xf.displayName="Table.Subtitle";var yf=tt(xf);const wf="data-table-title";function Nf(e,t){const a=e,{as:n="h2",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(wf,i),"data-component":"Table.Title"},r))}Nf.displayName="Table.Title";var jf=tt(Nf);const kf="ASC",Cf=e=>"ASC"===e?"DESC":"ASC",Sf=e=>{const t=[];let a=0;for(;a<e.length;){let n=e[a];if(Of(n)){for(;a+1<e.length&&Of(e[a+1]);)n+=e[a+1],a++;t.push(parseInt(n,10))}else{for(;a+1<e.length&&!Of(e[a+1]);)n+=e[a+1],a++;t.push(n)}a++}return t},Of=e=>!Number.isNaN(parseInt(e,10)),Mf={alphanumeric:(e,t)=>{const a=Sf(e),n=Sf(t);for(;0!==a.length&&0!==n.length;){const e=a.shift(),t=n.shift();if(e!==t){if("string"==typeof e&&"string"==typeof t)return e.localeCompare(t);if("number"==typeof e&&"number"==typeof t)return e>t?1:-1;if("number"==typeof e&&"string"==typeof t)return-1;if("string"==typeof e&&"number"==typeof t)return 1;if(void 0===e||void 0===t)break}}return a.length>n.length?1:-1},basic:(e,t)=>e===t?0:e<t?-1:1,datetime:(e,t)=>{const a=e instanceof Date?e.getTime():e,n=t instanceof Date?t.getTime():t;return a>n?1:a<n?-1:0}},Af=(e,t)=>{let a=e;for(const e of t.split("."))a=a[e];return a},Tf=e=>null==e||""===e,If=({columns:e,data:t,initialSortColumn:a,initialSortDirection:n,externalSorting:i,getRowId:r})=>{const[s,l]=o.useState(t),[c,d]=o.useState(t),[u,m]=o.useState(e),[p,h]=o.useState(()=>((e,t,a)=>{var n;const i=e=>void 0!==e.sortBy&&!1!==e.sortBy;if(void 0!==t){const n=e.find(e=>e.id===t||e.field===t);return n&&i(n)?{id:`${t}`,direction:null!=a?a:kf}:null}if(void 0!==a){const t=e.find(i),r=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:null==t?void 0:t.field;return void 0===r?null:{id:r,direction:a}}return null})(e,a,n)),g=cg(e);if(e!==u&&(m(e),p)){e.some(e=>{var t;return(null!==(t=e.id)&&void 0!==t?t:e.field)===p.id})||h(null)}const f=e.map(e=>{var t;const a=null!==(t=e.id)&&void 0!==t?t:e.field;if(void 0===a)throw new Error("Expected either an `id` or a `field` to be given for a Column");const n=void 0!==e.sortBy&&!1!==e.sortBy;return{id:a,column:e,isSortable:()=>n,getSortDirection:()=>p&&p.id===a?p.direction:"NONE"}}),v=e=>{const t=f.find(t=>t.id===e.id);if(!t)throw new Error(`Unable to find a header with the id: ${e.id}`);const{sortBy:a,field:n}=t.column;if(!1===a||void 0===a)throw new Error("The column for this header cannot be sorted");if(i)return;const r="string"==typeof a?Mf[a]:Mf.basic;l(t=>t.slice().sort((t,i)=>{if("function"==typeof a)return"ASC"===e.direction?a(t,i):a(i,t);if(void 0===n)return 0;const o=Af(t,n),s=Af(i,n),l=Tf(o),c=Tf(s);return l||c?l?c?0:1:-1:"ASC"===e.direction?r(o,s):r(s,o)}))};t!==c&&(d(t),l(t),p&&v(p));return{headers:f,rows:s.map(e=>{const t=r(e);return{id:`${t}`,getValue:()=>e,getCells:()=>f.map(a=>{var n;return{id:`${t}:${a.id}`,column:a.column,rowHeader:null!==(n=a.column.rowHeader)&&void 0!==n&&n,getValue:()=>{if(void 0===a.column.field)throw new Error(`Unable to get a value for the column: ${a.id}`);return Af(e,a.column.field)}}})}}),actions:{sortBy:e=>{const t={id:e.id,direction:p&&p.id===e.id?Cf(p.direction):kf};h(t),v(t)}},gridTemplateColumns:g}},Df=e=>"string"==typeof e.header?e.header:e.header(),Lf=e=>e.id;function zf(e,t){const{data:a,columns:n,cellPadding:i,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l=Lf,onToggleSort:c,"aria-labelledby":d,"aria-describedby":u}=e,{headers:m,rows:p,actions:h,gridTemplateColumns:g}=If({data:a,columns:n,initialSortColumn:r,initialSortDirection:o,externalSorting:s,getRowId:l});return f.jsxs(ig,{ref:t,"aria-labelledby":d,"aria-describedby":u,cellPadding:i,gridTemplateColumns:g,children:[f.jsx(Tg,{children:f.jsx(Ug,{children:m.map(e=>e.isSortable()?f.jsx(vf,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{const t="ASC"===e.getSortDirection()?"DESC":"ASC";h.sortBy(e),null==c||c(e.id,t)},children:Df(e.column)},e.id):f.jsx(Eg,{align:e.column.align,children:Df(e.column)},e.id))})}),f.jsx(ug,{children:p.map(e=>f.jsx(Ug,{children:e.getCells().map(t=>f.jsx(fg,{scope:t.rowHeader?"row":void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}zf.displayName="DataTable";var Ef=tt(zf);const Pf=Object.assign(ig,{Container:jg,Title:jf,Subtitle:yf,Actions:sg,Divider:Sg,Skeleton:cf,Head:Tg,Body:ug,Header:Eg,SortHeader:vf,Row:Ug,Cell:fg,CellPlaceholder:xg,Pagination:qg,ErrorDialog:Mg}),$f="date-picker",Rf="date-picker-block",Bf="date-picker-overlay";function Vf(e,t){const a=e,{mode:n="single",value:i,defaultValue:r,onChange:l,format:c="YYYY-MM-DD",rangeSeparator:d=" - ",open:u,defaultOpen:m=!1,onOpenChange:p,min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x=!0,showWeekNumbers:y,monthFormat:w,calendarButtonLabel:j="Choose a date",calendarLabel:k="Choose a date",placeholder:C,disabled:S,block:O,onBlur:M,inputClassName:A,className:T}=a,I=s(a,["mode","value","defaultValue","onChange","format","rangeSeparator","open","defaultOpen","onOpenChange","min","max","isDateDisabled","weekStartsOn","fixedWeeks","showWeekNumbers","monthFormat","calendarButtonLabel","calendarLabel","placeholder","disabled","block","onBlur","inputClassName","className"]),D=Jt(),L=o.useRef(null),z=o.useRef(null),E=N(t,z),P=o.useRef(null),$=el(h),R=el(g),B="range"===n,V=void 0!==i,[_,F]=o.useState(()=>nl(r,B)),H=V?nl(i,B):_,W=void 0!==u,[G,q]=o.useState(m),K=W?u:G,[U,Y]=o.useState(null),Z=null!=U?U:(({from:e,to:t})=>null===e?"":B&&null!==t?`${e.format(c)}${d}${t.format(c)}`:e.format(c))(H),Q=(e,t)=>{W||q(e),null==p||p(e,t)},X=e=>{var t,a,n,i,r,o;const s=[e.from,e.to].every(e=>null===e||ll(e,$,R,v));if(s){if(V||F(e),B){const r=l;return void(null==r||r({from:null!==(a=null===(t=e.from)||void 0===t?void 0:t.toDate())&&void 0!==a?a:null,to:null!==(i=null===(n=e.to)||void 0===n?void 0:n.toDate())&&void 0!==i?i:null}))}null==l||l(null!==(o=null===(r=e.from)||void 0===r?void 0:r.toDate())&&void 0!==o?o:null)}},J={min:h,max:g,isDateDisabled:v,weekStartsOn:b,fixedWeeks:x,showWeekNumbers:y,monthFormat:w,focusableDayRef:P,"data-component":"DatePicker.Calendar"};return f.jsxs("span",{className:et($f,O&&Rf,T),"data-component":"DatePicker","data-open":K,children:[f.jsx("span",{ref:L,className:et($f,O&&Rf),"data-component":"DatePicker.Field",children:f.jsx(Nr,Object.assign({ref:E,type:"text",value:Z,onChange:e=>{const t=e.target.value;Y(t);const a=(e=>{if(""===e.trim())return al;const t=(B?e.split(d):[e]).map(e=>pl(e.trim(),c));if(t.length>2||t.some(e=>null===e))return;const[a,n=null]=t;return B?n&&a.isAfter(n,"day")?{from:n,to:a}:{from:a,to:n}:{from:a,to:a}})(t);a&&X(a)},onBlur:e=>{Y(null),null==M||M(e)},placeholder:null!=C?C:B?`${c}${d}${c}`:c,disabled:S,block:O,className:A,trailingAction:f.jsx(Nr.Action,{icon:gt,"aria-label":j,"aria-haspopup":"dialog","aria-expanded":K,"aria-controls":K?D:void 0,disabled:S,onClick:()=>Q(!K,"button"),"data-component":"DatePicker.CalendarButton"})},I))}),f.jsx(vi,{renderAnchor:null,anchorRef:L,open:K,onClose:e=>{Q(!1,"escape"===e?"escape":"click-outside")},side:"outside-bottom",align:"start",className:Bf,overlayProps:{id:D,role:"dialog","aria-label":k},focusTrapSettings:{initialFocusRef:P,returnFocusRef:z},children:B?f.jsx(Al,Object.assign({mode:"range",value:{from:H.from,to:H.to},onChange:e=>{Y(null),X(nl(e,!0)),e.from&&e.to&&Q(!1,"date-select")}},J)):f.jsx(Al,Object.assign({value:H.from,onChange:e=>{Y(null),X(nl(e,!1)),Q(!1,"date-select")}},J))})]})}Vf.displayName="DatePicker";var _f=tt(Vf);const Ff="details";function Hf(e,t){const{className:a,open:n,defaultOpen:i,closeOnOutsideClick:r,onChange:l,onToggle:c}=e,d=s(e,["className","open","defaultOpen","closeOnOutsideClick","onChange","onToggle"]),u=o.useRef(null),m=N(t,u),p=void 0!==n,[h,g]=o.useState(Boolean(i)),v=p?n:h;return o.useEffect(()=>{const e=u.current;e&&e.open!==v&&(e.open=v)}),o.useEffect(()=>{if(!r||!v)return;const e=e=>{const{target:t}=e;t instanceof Element&&t.closest("details")!==u.current&&(g(!1),null==l||l(!1))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[r,v,l]),f.jsx("details",Object.assign({ref:m,open:v,onToggle:e=>{null==c||c(e);const{open:t}=e.currentTarget;g(t),t!==v&&(null==l||l(t))},className:et(Ff,a),"data-component":"Details"},d))}Hf.displayName="Details";var Wf=tt(Hf);const Gf="details-summary";function qf(e,t){const a=e,{as:n,className:i}=a,r=s(a,["as","className"]),o=null!=n?n:"summary",l="summary"===o?{}:{as:"summary"};return f.jsx(o,Object.assign({ref:t,className:et(Gf,i),"data-component":"Details.Summary"},l,r))}qf.displayName="Details.Summary";var Kf=tt(qf);const Uf=Object.assign(Wf,{Summary:Kf}),Yf=Object.assign(Qh,{Header:Dh,Title:Rh,Subtitle:Eh,Body:wh,Footer:Ah,Buttons:jh,CloseButton:Ch}),Zf="drawer-body";function Qf(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(Zf,i),"data-component":"Drawer.Body"},r))}Qf.displayName="Drawer.Body";var Xf=tt(Qf);const Jf=e.createContext({}),ev="drawer-close-button";function tv(e,t){const{className:a,onClose:n}=e,i=s(e,["className","onClose"]),{onClose:r}=o.useContext(Jf);return f.jsx(yn,Object.assign({ref:t,icon:Ct,"aria-label":"Close",variant:"invisible",className:et(ev,a),onClick:null!=n?n:r,"data-component":"Drawer.CloseButton"},i))}tv.displayName="Drawer.CloseButton";var av=tt(tv);const nv="drawer-footer";function iv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(nv,i),"data-component":"Drawer.Footer"},r))}iv.displayName="Drawer.Footer";var rv=tt(iv);const ov="drawer-header",sv="drawer-header-direct-title";function lv(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(ov,sv,i),"data-component":"Drawer.Header"},r))}lv.displayName="Drawer.Header";var cv=tt(lv);const dv="drawer-subtitle";function uv(e,t){const a=e,{as:n="h2",className:i,id:r}=a,l=s(a,["as","className","id"]),{descriptionId:c}=o.useContext(Jf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(dv,i),"data-component":"Drawer.Subtitle"},l))}uv.displayName="Drawer.Subtitle";var mv=tt(uv);const pv="drawer-title";function hv(e,t){const a=e,{as:n="h1",className:i,id:r}=a,l=s(a,["as","className","id"]),{labelId:c}=o.useContext(Jf);return f.jsx(n,Object.assign({ref:t,id:null!=r?r:c,className:et(pv,i),"data-component":"Drawer.Title"},l))}hv.displayName="Drawer.Title";var gv=tt(hv);const fv={backdrop:"drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",backdropModeless:"drawer-backdrop-modeless",backdropPosition:{left:"drawer-backdrop-left",right:"drawer-backdrop-right",top:"drawer-backdrop-top",bottom:"drawer-backdrop-bottom"},root:"drawer motion-safe:animate-in motion-safe:duration-short",rootModeless:"drawer-modeless",position:{left:"drawer-left motion-safe:slide-in-from-left",right:"drawer-right motion-safe:slide-in-from-right",top:"drawer-top motion-safe:slide-in-from-top",bottom:"drawer-bottom motion-safe:slide-in-from-bottom"},inlineSize:{small:"drawer-inline-size-small",medium:"drawer-inline-size-medium",large:"drawer-inline-size-large",xlarge:"drawer-inline-size-xlarge"},blockSize:{small:"drawer-block-size-small",medium:"drawer-block-size-medium",large:"drawer-block-size-large",xlarge:"drawer-block-size-xlarge"},customInlineSize:"drawer-inline-size-custom",customBlockSize:"drawer-block-size-custom",headerContent:"drawer-header-content",overflowWrapper:"drawer-overflow-wrapper",overflowWrapperBordered:"drawer-overflow-wrapper-bordered"},vv=e=>"number"==typeof e?`${e}px`:e;function bv(e,t){var a,n;const{title:i="Drawer",subtitle:r="",onClose:l,position:c="right",size:d="medium",modal:u=!0,returnFocusRef:m,initialFocusRef:p,className:h,style:g,children:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["title","subtitle","onClose","position","size","modal","returnFocusRef","initialFocusRef","className","style","children","aria-label","aria-labelledby","aria-describedby"]),j=Jt(),k=Jt(),C=o.useRef(null),S=N(t,C),O=o.useRef(null),[M,A]=o.useState(!1),T=gh(O);qn({containerRef:C,initialFocusRef:p,returnFocusRef:m,disabled:!u}),Zn(e=>{l("escape"),u&&e.preventDefault()}),Pp(!u);const[I,D]=va(v,{header:cv,body:Xf,footer:rv}),L=null!==(a=I.header)&&void 0!==a?a:f.jsxs(cv,{children:[f.jsxs("div",{className:fv.headerContent,children:[f.jsx(gv,{children:i}),r?f.jsx(mv,{children:r}):null]}),f.jsx(av,{})]}),z=null!==(n=I.body)&&void 0!==n?n:f.jsx(Xf,{children:D}),E=I.footer,P=Boolean(E),$="left"===c||"right"===c,R=(e=>"string"==typeof e&&e in fv.inlineSize)(d),B=null!=x?x:b?void 0:j,V=null!=y?y:r?k:void 0;return f.jsx(Jf.Provider,{value:{labelId:j,descriptionId:k,onClose:()=>{l("close-button")}},children:f.jsx(oi,{children:f.jsx("div",{className:et(fv.backdrop,fv.backdropPosition[c],!u&&fv.backdropModeless),onClick:e=>{u&&e.target===e.currentTarget&&M&&l("escape")},onMouseDown:e=>{A(e.target===e.currentTarget)},"data-component":"Drawer.Backdrop","data-position":c,"data-modal":u,children:f.jsxs("div",Object.assign({ref:S,role:"dialog","aria-labelledby":B,"aria-describedby":V,"aria-label":b,"aria-modal":u||void 0,className:et(fv.root,fv.position[c],R?$?fv.inlineSize[d]:fv.blockSize[d]:$?fv.customInlineSize:fv.customBlockSize,!u&&fv.rootModeless,h),style:Object.assign(Object.assign({},g),R?{}:{"--drawer-size":vv(d)}),"data-component":"Drawer","data-position":c,"data-size":R?d:void 0,"data-modal":u,"data-has-footer":P?"":void 0},w,{children:[L,f.jsx(bh,{ref:O,"aria-labelledby":j,className:et(fv.overflowWrapper,P&&T&&fv.overflowWrapperBordered),children:z}),E]}))})})})}bv.displayName="Drawer";var xv=tt(bv);const yv=Object.assign(xv,{Header:cv,Title:gv,Subtitle:mv,Body:Xf,Footer:rv,CloseButton:av}),wv=Xe("em",{variants:{size:{large:"em-size-large",medium:"em-size-medium",small:"em-size-small"},weight:{light:"em-weight-light",normal:"em-weight-normal",medium:"em-weight-medium",semibold:"em-weight-semibold"}}});function Nv(e,t){const a=e,{as:n="em",className:i,size:r,weight:o}=a,l=s(a,["as","className","size","weight"]);return f.jsx(n,Object.assign({ref:t,className:et(wv({size:r,weight:o}),i),"data-component":"Em","data-size":r,"data-weight":o},l))}Nv.displayName="Em";var jv=tt(Nv);const kv=Xe("empty-state",{variants:{size:{small:"empty-state-small",medium:"empty-state-medium"}}}),Cv="empty-state-icon",Sv="empty-state-title",Ov="empty-state-description",Mv="empty-state-actions",Av=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Tv(e,t){const a=e,{as:n="div",className:i,children:r,title:o,description:l,icon:c,size:d="medium",actions:u}=a,m=s(a,["as","className","children","title","description","icon","size","actions"]);return f.jsxs(n,Object.assign({ref:t,className:et(kv({size:d}),i),"data-component":"EmptyState","data-size":d},m,{children:[void 0===c?null:f.jsx("span",{className:Cv,"aria-hidden":"true","data-component":"EmptyState.Icon",children:Av(c)}),f.jsx("span",{className:Sv,"data-component":"EmptyState.Title",children:o}),l?f.jsx("span",{className:Ov,"data-component":"EmptyState.Description",children:l}):null,r,u?f.jsx("div",{className:Mv,"data-component":"EmptyState.Actions",children:u}):null]}))}Tv.displayName="EmptyState";var Iv=tt(Tv);function Dv(e,t,a){let n,i=a.initialDeps??[],r=!0;function o(){var o;const s="production"!==process.env.NODE_ENV&&!!a.key&&!!(null==(o=a.debug)?void 0:o.call(a));let l=0;s&&(l=Date.now());const c=e();if(!(c.length!==i.length||c.some((e,t)=>i[t]!==e)))return n;i=c;let d=0;if(s&&(d=Date.now()),n=t(...c),s){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-d))/100,n=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==a?void 0:a.key)}return!(null==a?void 0:a.onChange)||r&&a.skipInitialOnChange||a.onChange(n),r=!1,n}return o.updateDeps=e=>{i=e},o}function Lv(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const zv=(e,t,a)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),a)}};let Ev;const Pv=()=>{if(void 0!==Ev)return Ev;if("undefined"==typeof navigator)return Ev=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ev=!0;const e=navigator.maxTouchPoints;return Ev="MacIntel"===navigator.platform&&void 0!==e&&e>0},$v=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},Rv=e=>e,Bv=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=new Array(a);for(let e=0;e<a;e++)n[e]=t+e;return n},Vv=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;const i=e=>{const{width:a,height:n}=e;t({width:Math.round(a),height:Math.round(n)})};if(i($v(a)),!n.ResizeObserver)return()=>{};const r=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i($v(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return r.observe(a,{box:"border-box"}),()=>{r.unobserve(a)}},_v={passive:!0},Fv="undefined"==typeof window||"onscrollend"in window,Hv=(e,t)=>((e,t,a)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=e.options.useScrollendEvent&&Fv;let o=0;const s=r?null:zv(i,()=>t(o,!1),e.options.isScrollingResetDelay),l=e=>()=>{o=a(n),null==s||s(),t(o,e)},c=l(!0),d=l(!1);return n.addEventListener("scroll",c,_v),r&&n.addEventListener("scrollend",d,_v),()=>{n.removeEventListener("scroll",c),r&&n.removeEventListener("scrollend",d)}})(e,t,t=>{const{horizontal:a,isRtl:n}=e.options;return a?t.scrollLeft*(n?-1:1):t.scrollTop}),Wv=(e,t,a)=>{if(a.options.useCachedMeasurements){const t=a.indexFromElement(e),n=a.options.getItemKey(t);return a.itemSizeCache.get(n)??a.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}}if(!t){const t=a.indexFromElement(e),n=a.options.getItemKey(t),i=a.itemSizeCache.get(n);if(void 0!==i)return i}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},Gv=(e,{adjustments:t=0,behavior:a},n)=>{var i,r;null==(r=null==(i=n.scrollElement)?void 0:i.scrollTo)||r.call(i,{[n.options.horizontal?"left":"top"]:e+t,behavior:a})};class qv{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,a;return(null==(a=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:a.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,a=this.indexFromElement(t);if(t.isConnected)this.shouldMeasureDuringScroll(a)&&this.resizeItem(a,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,a]of this.elementsCache)if(a===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,a;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Rv,rangeExtractor:Bv,onChange:()=>{},measureElement:Wv,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const a=e[t];void 0!==a&&(n[t]=a)}const i=this.options;let r=null,o=null,s=!1;if(void 0!==i&&i.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=i.count,l=n.count,c=this.getMeasurements(),d=e>0?(null==(t=c[0])?void 0:t.key)??i.getItemKey(0):null,u=e>0?(null==(a=c[e-1])?void 0:a.key)??i.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(n.getItemKey(0)!==d||n.getItemKey(l-1)!==u)){s=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(r=[t.key,this.getScrollOffset()-t.start]);const a=!0===n.followOnAppend?"auto":n.followOnAppend||null;a&&l>e&&this.isAtEnd(i.scrollEndThreshold)&&(0===e||n.getItemKey(l-1)!==u)&&(o=a)}}this.options=n,s&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(r&&null!==this.scrollOffset){const[e,t]=r,a=this.getMeasurements(),{count:n,getItemKey:i}=this.options;let o=0;for(;o<n&&i(o)!==e;)o++;if(o<n){const e=a[o];if(e){const a=Math.max(0,e.start+t);a!==this.scrollOffset&&(c=a-this.scrollOffset,this.scrollOffset=a,l=!0)}}}(l||o)&&(this.pendingScrollAnchor=[l?r[0]:null,l?r[1]:0,o,c])},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=Dv(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:"production"!==process.env.NODE_ENV&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const a=this.getScrollOffset();this.scrollDirection=t?a===e?this.scrollDirection:a<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,Pv()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,_v),e.addEventListener("touchend",a,_v),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",a),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const a=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,a&&this.scrollElement&&this.options.enabled){const[e,t,n,i]=a;null===e||n||(Pv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),n&&this.scrollToEnd({behavior:n})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const a=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=a,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Dv(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,a,n,i,r,o,s)=>(void 0!==this.prevLanes&&this.prevLanes!==r&&(this.lanesChangedFlag=!0),this.prevLanes=r,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Dv(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:i,lanes:r,laneAssignmentMode:o,gap:s},l)=>{const c=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===r){const i=2*e;let r,o=this._flatMeasurements;if(!o||o.length<i){const e=new Float64Array(i);o&&d>0&&e.set(o.subarray(0,2*d)),o=e,this._flatMeasurements=o}if(0===d)r=t+a;else{const e=d-1;r=o[2*e]+o[2*e+1]+s}for(let t=d;t<e;t++){const e=n(t),a=c.get(e),i="number"==typeof a?a:this.options.estimateSize(t);o[2*t]=r,o[2*t+1]=i,r+=i+s}const l=function(e,t,a){const n=new Array(e);return new Proxy(n,{get(n,i,r){if("string"==typeof i){const r=i.charCodeAt(0);if(r>=48&&r<=57){const r=+i;if(Number.isInteger(r)&&r>=0&&r<e){let e=n[r];if(!e){const i=t[2*r];e=n[r]={index:r,key:a(r),start:i,size:t[2*r+1],end:i+t[2*r+1],lane:0}}return e}}if("length"===i)return e}return Reflect.get(n,i,r)}})}(e,o,n);return this.measurementsCache=l,l}const u=this.measurementsCache.slice(0,d),m=new Array(r).fill(void 0),p=new Float64Array(r);let h=0;for(let e=0;e<d;e++){const t=u[e];t&&(void 0===m[t.lane]&&h++,m[t.lane]=e,p[t.lane]=t.end)}for(let i=d;i<e;i++){const e=n(i),l=this.laneAssignments.get(i);let d,g;const f="estimate"===o||c.has(e);if(void 0!==l&&this.options.lanes>1){d=l;const e=m[d],n=void 0!==e?u[e]:void 0;g=n?n.end+s:t+a}else if(h===r){let e=0,t=p[0],a=m[0];for(let n=1;n<r;n++){const i=p[n];(i<t||i===t&&m[n]<a)&&(e=n,t=i,a=m[n])}d=e,g=t+s,f&&this.laneAssignments.set(i,d)}else d=i%this.options.lanes,g=t+a,f&&this.laneAssignments.set(i,d);const v=c.get(e),b="number"==typeof v?v:this.options.estimateSize(i),x=g+b;u[i]={index:i,start:g,size:b,end:x,key:e,lane:d},void 0===m[d]&&h++,m[d]=i,p[d]=x}return this.measurementsCache=u,u},{key:"production"!==process.env.NODE_ENV&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Dv(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,a,n)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,a,n,i){const r=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:r};if(1===n&&null!==i){const e=function(e,t,a){let n=0;for(;n<=t;){const i=(n+t)/2|0,r=e[2*i];if(r<a)n=i+1;else{if(!(r>a))return i;t=i-1}}return n>0?n-1:0}(i,r,a);let n=e;const o=a+t;for(;n<r&&i[2*n]+i[2*n+1]<o;)n++;return{startIndex:e,endIndex:n}}const o=t=>e[t].start;let s=Kv(0,r,o,a),l=s;if(1===n)for(;l<r&&e[l].end<a+t;)l++;else if(n>1){const i=Array(n).fill(0);for(;l<r&&i.some(e=>e<a+t);){const t=e[l];i[t.lane]=t.end,l++}const o=Array(n).fill(a+t);for(;s>=0&&o.some(e=>e>=a);){const t=e[s];o[t.lane]=t.start,s--}s=Math.max(0,s-s%n),l=Math.min(r,l+(n-1-l%n))}return{startIndex:s,endIndex:l}}(e,t,a,n,1===n&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:"production"!==process.env.NODE_ENV&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Dv(()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,a,n,i)=>null===n||null===i?[]:e({startIndex:n,endIndex:i,overscan:t,count:a}),{key:"production"!==process.env.NODE_ENV&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const a=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==a&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,a-t),i=Math.min(this.options.count-1,a+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),a=this.options.getItemKey(t),n=this.elementsCache.get(a);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(a,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var a,n;if(e<0||e>=this.options.count)return;let i,r,o;const s=this._flatMeasurements;if(1===this.options.lanes&&null!==s)o=this.options.getItemKey(e),r=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;o=t.key,r=t.start,i=t.size}const l=this.itemSizeCache.get(o)??i,c=t-l;if(0!==c){const s="end"===this.options.anchorTo&&"smooth"!==(null==(a=this.scrollState)?void 0:a.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=s?this.getTotalSize():0,u=this.getScrollOffset()+this.scrollAdjustments,m=!this.itemSizeCache.has(o)?r<u:r+l<=u&&"backward"!==this.scrollDirection,p="smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:o,start:r,size:i,end:r+i,lane:0},c,this):m);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(o,t),this.itemSizeCacheVersion++;let h=!1;s?h=this.applyScrollAdjustment(this.getTotalSize()-d):p&&(h=this.applyScrollAdjustment(c)),this.notify(h)}},this.getVirtualItems=Dv(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const a=[];for(let n=0,i=e.length;n<i;n++){const i=t[e[n]];a.push(i)}return a},{key:"production"!==process.env.NODE_ENV&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0===t.length)return;const a=this._flatMeasurements,n=1===this.options.lanes&&null!=a,i=Kv(0,t.length-1,n?e=>a[2*e]:e=>Lv(t[e]).start,e);return Lv(t[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,a=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+n?"end":"start"),"center"===t?e+=(a-n)/2:"end"===t&&(e-=n);const r=this.getMaxScrollOffset();return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getSize(),n=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=n+a-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=n+this.options.scrollPaddingStart))return[n,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const r="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(r,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0;const n=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:a,startedAt:i,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:a="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getOffsetForIndex(e,t);if(!n)return;const[i,r]=n,o=this.now();this.scrollState={index:e,align:r,behavior:a,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const a=this.getScrollOffset()+e,n=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:n,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes){const n=t.length-1,i=this._flatMeasurements;a=null!=i?i[2*n]+i[2*n+1]:(null==(e=t[n])?void 0:e.end)??0}else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const a=t[n];null===e[a.lane]&&(e[a.lane]=a.end),n--}a=Math.max(...e.filter(e=>null!==e))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const a of t)a&&this.itemSizeCache.has(a.key)&&e.push({index:a.index,key:a.key,start:a.start,size:a.size,end:a.end,lane:a.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return 0!==e&&("production"!==process.env.NODE_ENV&&this.options.debug&&console.info("correction",e),Pv()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,a=t!==this.scrollState.lastTargetOffset;if(!a&&(n=t,i=this.getScrollOffset(),Math.abs(n-i)<1.01)){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,a){const e=this.getSize()||600,a=Math.abs(t-this.getScrollOffset()),n="smooth"===this.scrollState.behavior&&a>e;this.scrollState.lastTargetOffset=t,n||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:n?"smooth":"auto"})}var n,i;this.scheduleScrollReconcile()}}const Kv=(e,t,a,n)=>{for(;e<=t;){const i=(e+t)/2|0,r=a(i);if(r<n)e=i+1;else{if(!(r>n))return i;t=i-1}}return e>0?e-1:0};const Uv="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function Yv(e){return function({useFlushSync:e=!0,directDomUpdates:a=!1,directDomUpdatesMode:n="transform",...i}){const r=o.useReducer(e=>e+1,0)[1],s=o.useRef({enabled:a,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=a,s.current.mode=n;const l=e=>{const t=s.current;if(!t.enabled||!t.container)return;const a=e.getTotalSize();if(a!==t.lastSize){t.lastSize=a;const n=e.options.horizontal?"width":"height";t.container.style[n]=`${a}px`}},c=e=>{const t=s.current;if(!t.enabled||!t.container)return;l(e);const a=!!e.options.horizontal,n="transform"===t.mode,i=a?"left":"top",r=e.options.scrollMargin,o=e.getVirtualItems();for(const s of o){const o=s.start-r,l=e.elementsCache.get(s.key);l&&t.lastPositions.get(l)!==o&&(t.lastPositions.set(l,o),n?l.style.transform=a?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:l.style[i]=`${o}px`)}},d={...i,onChange:(a,n)=>{var o;const l=s.current;let d=!0;if(l.enabled){c(a);const e=a.range,t=l.prevRange;d=!t||t.isScrolling!==a.isScrolling||t.startIndex!==(null==e?void 0:e.startIndex)||t.endIndex!==(null==e?void 0:e.endIndex),d&&(l.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:a.isScrolling}:null)}d&&(e&&n?t.flushSync(r):r()),null==(o=i.onChange)||o.call(i,a,n)}},[u]=o.useState(()=>{const e=new qv(d);return Object.assign(e,{containerRef:t=>{const a=s.current;if(a.container=t,a.lastSize=null,t&&a.enabled){const n=e.getTotalSize();a.lastSize=n;const i=e.options.horizontal?"width":"height";t.style[i]=`${n}px`}}})});return u.setOptions(d),Uv(()=>u._didMount(),[]),Uv(()=>(l(u),u._willUpdate())),Uv(()=>{c(u)}),u}({observeElementRect:Vv,observeElementOffset:Hv,scrollToFn:Gv,...e})}const Zv="filtered-action-list-input";function Qv(e){const{inputRef:t,value:a,onInputChange:n,onInputKeyDown:i,placeholderText:r,listId:o,inputDescriptionId:l,loading:c=!1}=e,d=s(e,["inputRef","value","onInputChange","onInputKeyDown","placeholderText","listId","inputDescriptionId","loading"]);return f.jsx("div",{className:Zv,"data-component":"FilteredActionList.Header",children:f.jsx(Nr,Object.assign({ref:t,block:!0,value:a,onChange:n,onKeyDown:i,placeholder:r,role:"combobox","aria-expanded":"true","aria-autocomplete":"list","aria-controls":o,"aria-label":r,"aria-describedby":l,loading:c,loaderPosition:"leading"},d))})}Qv.displayName="FilteredActionList.Input";const Xv=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Jv(e,t){if("function"==typeof e.renderItem)return e.renderItem(e);const{id:a,text:n,description:i,descriptionVariant:r,leadingVisual:o,trailingVisual:l,onAction:c,children:d,groupId:u,renderItem:m}=e,p=s(e,["id","text","description","descriptionVariant","leadingVisual","trailingVisual","onAction","children","groupId","renderItem"]);return f.jsxs(Bn.Item,Object.assign({ref:t,role:"option",onSelect:t=>null==c?void 0:c(e,t),"data-id":a},p,{children:[o?f.jsx(Bn.LeadingVisual,{children:f.jsx(o,{})}):null,d,n,i?f.jsx(Bn.Description,{variant:r,children:i}):null,l?f.jsx(Bn.TrailingVisual,{children:Xv(l)}):null]}))}Jv.displayName="FilteredActionList.Item";var eb=tt(Jv);const tb=Xe("stack",{variants:{gap:{none:"stack-gap-none",tight:"stack-gap-tight",condensed:"stack-gap-condensed",cozy:"stack-gap-cozy",normal:"stack-gap-normal",spacious:"stack-gap-spacious"},direction:{horizontal:"stack-horizontal",vertical:"stack-vertical"},align:{stretch:"stack-align-stretch",start:"stack-align-start",center:"stack-align-center",end:"stack-align-end",baseline:"stack-align-baseline"},wrap:{wrap:"stack-wrap",nowrap:"stack-nowrap"},justify:{start:"stack-justify-start",center:"stack-justify-center",end:"stack-justify-end","space-between":"stack-justify-space-between","space-evenly":"stack-justify-space-evenly"},padding:{none:"stack-padding-none",tight:"stack-padding-tight",condensed:"stack-padding-condensed",cozy:"stack-padding-cozy",normal:"stack-padding-normal",spacious:"stack-padding-spacious"},paddingBlock:{none:"stack-padding-block-none",tight:"stack-padding-block-tight",condensed:"stack-padding-block-condensed",cozy:"stack-padding-block-cozy",normal:"stack-padding-block-normal",spacious:"stack-padding-block-spacious"},paddingInline:{none:"stack-padding-inline-none",tight:"stack-padding-inline-tight",condensed:"stack-padding-inline-condensed",cozy:"stack-padding-inline-cozy",normal:"stack-padding-inline-normal",spacious:"stack-padding-inline-spacious"}}});function ab(e,t){const a=e,{as:n="div",className:i,gap:r,direction:o="vertical",align:l="stretch",wrap:c="nowrap",justify:d="start",padding:u="none",paddingBlock:m,paddingInline:p}=a,h=s(a,["as","className","gap","direction","align","wrap","justify","padding","paddingBlock","paddingInline"]);return f.jsx(n,Object.assign({ref:t,className:et(tb({gap:r,direction:o,align:l,wrap:c,justify:d,padding:u,paddingBlock:m,paddingInline:p}),i),"data-component":"Stack","data-gap":r,"data-direction":o,"data-align":l,"data-wrap":c,"data-justify":d,"data-padding":u,"data-padding-block":m,"data-padding-inline":p},h))}ab.displayName="Stack";var nb=tt(ab);const ib=Xe("stack-item",{variants:{grow:{true:"stack-item-grow",false:"stack-item-no-grow"},shrink:{true:"stack-item-shrink",false:"stack-item-no-shrink"}}});function rb(e,t){const a=e,{as:n="div",className:i,grow:r,shrink:o}=a,l=s(a,["as","className","grow","shrink"]);return f.jsx(n,Object.assign({ref:t,className:et(ib({grow:r,shrink:o}),i),"data-component":"StackItem","data-grow":r,"data-shrink":o},l))}rb.displayName="StackItem";var ob=tt(rb);const sb=Object.assign(nb,{Item:ob}),lb="filtered-action-list-spinner",cb="filtered-action-list-skeleton",db=["80%","52.5%","67.5%","40%","72.5%"];function ub(e){const{loadingType:t,height:a=0,className:n}=e,i=s(e,["loadingType","height","className"]);if("input"===t)return null;if("body-skeleton"===t){const e=Math.max(Math.floor(a/24),3);return f.jsx(sb,Object.assign({gap:"condensed",justify:"center",className:et(cb,n),"data-component":"FilteredActionList.Skeleton"},i,{children:Array.from({length:e},(e,t)=>f.jsxs(sb,{direction:"horizontal",gap:"condensed",align:"center",children:[f.jsx(Xg,{width:"16px",height:"16px"}),f.jsx(Xg,{width:db[t%db.length],height:"10px"})]},t))}))}return f.jsx("div",Object.assign({className:et(lb,n),"data-component":"FilteredActionList.Spinner"},i,{children:f.jsx(en,{})}))}ub.displayName="FilteredActionList.BodyLoader";const mb=({items:e,enabled:t=!0,loading:a=!1,messageText:n})=>{const[i,r]=o.useState(""),s=e.length,l=e.filter(e=>e.selected).length,c=0===s&&!a,d=n?`${n.title}. ${n.description}`:"",u=c?d:`${s} item${1===s?"":"s"} available, ${l} selected.`,m=o.useRef(u);return o.useEffect(()=>{if(!t||u===m.current)return;m.current=u;const e=window.setTimeout(()=>r(u),500);return()=>{window.clearTimeout(e)}},[t,u]),t?i:""},pb="filtered-action-list",hb="filtered-action-list-container",gb="filtered-action-list-list",fb="filtered-action-list-message",vb="filtered-action-list-virtual-list",bb="filtered-action-list-virtual-item",xb="filtered-action-list-select-all",yb="filtered-action-list-select-all-label",wb="sr-only",Nb=(e,t)=>{var a,n,i;return null!==(i=null!==(a=e.key)&&void 0!==a?a:null===(n=e.id)||void 0===n?void 0:n.toString())&&void 0!==i?i:t.toString()};function jb(t){const{items:a,groupMetadata:n,filterValue:i,onFilterChange:r,placeholderText:s,loading:l=!1,loadingType:c="body-spinner",message:d,messageText:u,selectionVariant:m,showItemDividers:p,onSelectAllChange:h,renderItem:g,announcementsEnabled:v=!0,virtualized:b=!1,textInputProps:x,actionListProps:y,inputRef:w,scrollContainerRef:j,onListContainerRefChanged:k,onInputRefChanged:C,className:S}=t,O=void 0!==i,[M,A]=o.useState(""),T=O?i:M,I=o.useRef(null),D=N(w,I),L=o.useRef(null),z=N(j,L),E=o.useRef(null),P=o.useCallback(e=>{E.current=e,null==k||k(e)},[k]);o.useEffect(()=>{null==C||C(I)},[C]);const $=l&&"input"!==c,[R,B]=o.useState(0);Kn(()=>{const e=L.current;if(!e||!$)return;const t=()=>B(e.clientHeight);t();const a=new ResizeObserver(t);return a.observe(e),()=>{a.disconnect()}},[$]);const V=Jt(null==y?void 0:y.id),_=Jt(),F=Jt(),H=b&&!(null==n?void 0:n.length),W=Yv({count:a.length,getScrollElement:()=>L.current,estimateSize:()=>32,overscan:10,enabled:H,getItemKey:e=>{const t=a[e];return t?Nb(t,e):e.toString()},measureElement:e=>e.scrollHeight}),G=H?W.getVirtualItems():void 0,[q,K]=o.useState(null);o.useEffect(()=>{var e;if(null===q)return;const t=null===(e=E.current)||void 0===e?void 0:e.querySelector(`[data-index="${q}"]`);t&&(t.focus(),K(null))},[q,G]);const U=o.useCallback(e=>{var t,n;if(e<0||e>=a.length)return;if(H)return W.scrollToIndex(e,{align:"auto"}),void K(e);const i=null===(t=E.current)||void 0===t?void 0:t.querySelectorAll('[role="option"]');null===(n=null==i?void 0:i[e])||void 0===n||n.focus()},[H,a.length,W]),Y=o.useCallback(e=>a.filter(t=>t.groupId===e),[a]),Z=(null==n?void 0:n.length)?n.map(e=>Y(e.groupId)[0]).find(Boolean):a[0],Q=a.length>0&&a.every(e=>e.selected),X=!Q&&a.some(e=>e.selected),J=mb({items:a,enabled:v,loading:l,messageText:u}),ee=o.useMemo(()=>({container:"FilteredActionList",listRole:"listbox",selectionAttribute:"aria-selected",enableFocusZone:!H}),[H]);return f.jsxs("div",{className:et(pb,S),"data-component":"FilteredActionList","data-virtualized":H?"":void 0,children:[f.jsx(Qv,Object.assign({inputRef:D,value:T,onInputChange:e=>{const{value:t}=e.target;O||A(t),r(t,e)},onInputKeyDown:e=>{if("ArrowDown"===e.key)return e.preventDefault(),void U(0);"Enter"===e.key&&(null==Z?void 0:Z.onAction)&&(e.preventDefault(),Z.onAction(Z,e))},placeholderText:s,listId:V,inputDescriptionId:_,loading:l&&"input"===c},x)),f.jsx("span",{id:_,className:wb,children:"Items will be filtered as you type"}),h?f.jsxs("div",{className:xb,"data-component":"FilteredActionList.SelectAll",children:[f.jsx(Pm,{id:F,checked:Q,indeterminate:X,onChange:e=>h(e.target.checked),"data-component":"FilteredActionList.SelectAllCheckbox"}),f.jsx("label",{htmlFor:F,className:yb,children:Q?"Deselect all":"Select all"})]}):null,f.jsx("div",{ref:z,className:hb,onKeyDown:e=>{if(!H||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const t=e.target.closest("[data-index]"),n=t?Number(t.dataset.index):-1,i="ArrowDown"===e.key?n+1:"ArrowUp"===e.key?n-1:"Home"===e.key?0:"End"===e.key?a.length-1:null;null!==i&&(e.preventDefault(),U(i))},"data-component":"FilteredActionList.Container",children:$?f.jsx(ub,{loadingType:c,height:R}):d?f.jsx("div",{className:fb,"data-component":"FilteredActionList.Message",children:d}):f.jsx(Oa.Provider,{value:ee,children:f.jsx(Bn,Object.assign({ref:P,id:V,selectionVariant:m,showDividers:p},y,{className:et(gb,H&&vb,null==y?void 0:y.className),style:H?Object.assign(Object.assign({},null==y?void 0:y.style),{height:W.getTotalSize()}):null==y?void 0:y.style,children:(null==n?void 0:n.length)?n.map(t=>{var a,n,i;return f.jsxs(Bn.Group,{children:[f.jsx(Bn.GroupHeading,{variant:null===(a=t.header)||void 0===a?void 0:a.variant,children:null!==(i=null===(n=t.header)||void 0===n?void 0:n.title)&&void 0!==i?i:`Group ${t.groupId}`}),Y(t.groupId).map((t,a)=>{var n;return e.createElement(eb,Object.assign({},t,{key:Nb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})]},t.groupId)}):G?G.map(t=>{var n;const i=a[t.index];return e.createElement(eb,Object.assign({},i,{key:t.key,ref:W.measureElement,renderItem:null!==(n=i.renderItem)&&void 0!==n?n:g,"data-index":t.index,className:et(bb,i.className),style:Object.assign(Object.assign({},i.style),{transform:`translateY(${t.start}px)`})}))}):a.map((t,a)=>{var n;return e.createElement(eb,Object.assign({},t,{key:Nb(t,a),renderItem:null!==(n=t.renderItem)&&void 0!==n?n:g}))})}))})}),f.jsx("span",{role:"status","aria-live":"polite",className:wb,"data-component":"FilteredActionList.Announcement",children:J})]})}jb.displayName="FilteredActionList";const kb=Object.assign(jb,{Input:Qv,Item:eb,BodyLoader:ub}),Cb=e.createContext({}),Sb="radio",Ob="radio-checked",Mb="radio-disabled";function Ab(e,t){const{className:a,name:n,required:i,validationStatus:r,value:l,onChange:c}=e,d=s(e,["className","name","required","validationStatus","value","onChange"]),u=o.useContext(Cb);return f.jsx("input",Object.assign({ref:t,type:"radio",value:l,name:null!=n?n:u.name,required:i,"aria-required":!!i||void 0,"aria-invalid":"error"===r||void 0,onChange:e=>{var t;null===(t=u.onChange)||void 0===t||t.call(u,e),null==c||c(e)},className:et(Sb,Ob,Mb,a),"data-component":"Radio"},d))}Ab.displayName="Radio";var Tb=tt(Ab);const Ib="select-control",Db="select-indicator",Lb=Xe("select",{variants:{size:{small:"select-small",medium:"select-medium",large:"select-large"},block:{true:"select-block",false:""},disabled:{true:"select-disabled",false:""},validation:{error:"select-error",success:"select-success"}}});function zb(e,t){const{className:a,children:n,placeholder:i,size:r="medium",block:o,disabled:l,required:c,validationStatus:d,defaultValue:u}=e,m=s(e,["className","children","placeholder","size","block","disabled","required","validationStatus","defaultValue"]),p="value"in m;return f.jsxs("span",{className:et(Lb({size:r,block:o,disabled:l,validation:d}),a),"data-component":"Select","data-size":r,"data-block":o,"data-disabled":l,"data-validation":d,children:[f.jsxs("select",Object.assign({ref:t,disabled:l,required:c,"aria-invalid":"error"===d||void 0,className:Ib,defaultValue:p?void 0:null!=u?u:i?"":void 0,"data-has-placeholder":Boolean(i)||void 0},m,{children:[i?f.jsx("option",{value:"",disabled:c,hidden:c,"data-component":"Select.Option",children:i}):null,n]})),f.jsx(wt,{className:Db,"aria-hidden":"true"})]})}zb.displayName="Select";var Eb=tt(zb);const Pb=7,$b=30,Rb="both",Bb="textarea-counter",Vb="textarea-counter-over-limit",_b="textarea-counter-icon",Fb="sr-only",Hb=Xe("textarea-field",{variants:{block:{true:"textarea-field-block",false:""},contrast:{true:"textarea-field-contrast",false:""},disabled:{true:"textarea-field-disabled",false:""},validation:{error:"textarea-field-error",success:"textarea-field-success"}}}),Wb=Xe("textarea",{variants:{resize:{none:"textarea-resize-none",both:"textarea-resize-both",horizontal:"textarea-resize-horizontal",vertical:"textarea-resize-vertical"}}});function Gb(e,t){var a;const{className:n,style:i,value:r,defaultValue:l,onChange:c,rows:d=Pb,cols:u=$b,resize:m=Rb,block:p,contrast:h,disabled:g,required:v,validationStatus:b,minHeight:x,maxHeight:y,characterLimit:w,"aria-describedby":N}=e,j=s(e,["className","style","value","defaultValue","onChange","rows","cols","resize","block","contrast","disabled","required","validationStatus","minHeight","maxHeight","characterLimit","aria-describedby"]),k=Jt(),C=void 0!==r,[S,O]=o.useState(()=>void 0===l?0:String(l).length),M=C?String(r).length:S,A=w?ur(M,w):void 0,T=null!==(a=null==A?void 0:A.isOverLimit)&&void 0!==a&&a,I=T?"error":b,D=o.useRef(!1),[L,z]=o.useState(""),E=null==A?void 0:A.message;o.useEffect(()=>{if(!D.current)return;const e=window.setTimeout(()=>{z(null!=E?E:"")},500);return()=>{window.clearTimeout(e)}},[E]);return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:et(Hb({block:p,contrast:h,disabled:g,validation:I}),n),"data-component":"Textarea","data-block":p,"data-contrast":h,"data-disabled":g,"data-validation":I,children:f.jsx("textarea",Object.assign({ref:t,value:r,defaultValue:l,rows:d,cols:u,disabled:g,required:v,"aria-required":!!v||void 0,"aria-invalid":"error"===I||void 0,"aria-describedby":w?[k,N].filter(Boolean).join(" "):N,onChange:e=>{D.current=!0,w&&!C&&O(e.target.value.length),null==c||c(e)},className:et(Wb({resize:m})),style:Object.assign({minHeight:x,maxHeight:y},i),"data-resize":m},j))}),A?f.jsxs(f.Fragment,{children:[f.jsx("span",{role:"status","aria-live":"polite",className:Fb,children:L}),f.jsxs("span",{id:k,className:Fb,children:["You can enter up to ",w," ",1===w?"character":"characters"]}),f.jsxs(dr,{"aria-hidden":"true",size:"small",className:et(Bb,T&&Vb),"data-component":"Textarea.CharacterCount",children:[T?f.jsx(Ot,{className:_b}):null,A.message]})]}):null]})}Gb.displayName="Textarea";var qb=tt(Gb);const Kb=e.createContext({}),Ub="form-control-caption",Yb="form-control-caption-disabled";function Zb(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{captionId:r,disabled:l}=o.useContext(Kb);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(Ub,l&&Yb,a),"data-component":"FormControl.Caption","data-control-disabled":l},i))}Zb.displayName="FormControl.Caption";var Qb=tt(Zb);const Xb="form-control-label",Jb="form-control-label-disabled",ex="sr-only",tx="form-control-label-required";function ax(e,t){const a=e,{as:n="label",className:i,children:r,htmlFor:l,id:c,visuallyHidden:d,requiredIndicator:u=!0,requiredText:m}=a,p=s(a,["as","className","children","htmlFor","id","visuallyHidden","requiredIndicator","requiredText"]),{id:h,disabled:g,required:v,labelId:b}=o.useContext(Kb);return f.jsx(n,Object.assign({ref:t,id:null!=c?c:b,htmlFor:"label"===n?null!=l?l:h:void 0,className:et(Xb,g&&Jb,d&&ex,i),"data-component":"FormControl.Label","data-control-disabled":g},p,{children:v||m?f.jsxs("span",{className:tx,children:[f.jsx("span",{children:r}),f.jsx("span",{"aria-hidden":!u||void 0,children:null!=m?m:"*"})]}):r}))}ax.displayName="FormControl.Label";var nx=tt(ax);const ix="form-control-leading-visual",rx="form-control-leading-visual-disabled",ox="form-control-leading-visual-with-caption";function sx(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i,disabled:r}=o.useContext(Kb);return f.jsx("div",Object.assign({ref:t,className:et(ix,i&&ox,r&&rx,a),"data-component":"FormControl.LeadingVisual","data-control-disabled":r,"data-has-caption":!!i||void 0},n))}sx.displayName="FormControl.LeadingVisual";var lx=tt(sx);const cx={success:ft,error:Ot},dx="form-control-validation-icon",ux=Xe("form-control-validation",{variants:{variant:{success:"form-control-validation-success",error:"form-control-validation-error"}}});function mx(e,t){const{className:a,children:n,variant:i,id:r}=e,l=s(e,["className","children","variant","id"]),{validationMessageId:c}=o.useContext(Kb),d=cx[i];return f.jsxs("span",Object.assign({ref:t,className:et(ux({variant:i}),a),"data-component":"FormControl.Validation","data-validation-status":i},l,{children:[f.jsx(d,{className:dx,"aria-hidden":"true"}),f.jsx("span",{id:null!=r?r:c,children:n})]}))}mx.displayName="FormControl.Validation";var px=tt(mx);const hx="form-control-vertical",gx="form-control-vertical-with-label",fx="form-control-horizontal",vx="form-control-horizontal-with-leading-visual",bx="form-control-choice-input",xx="form-control-label-container",yx=[Pm,Tb,Eb,qb,vr],wx=(e,t)=>o.isValidElement(e)&&(e.type===t||ha(e,t));function Nx(e,t){var a;const{className:n,children:i,disabled:r,required:l,layout:c="vertical",id:d}=e,u=s(e,["className","children","disabled","required","layout","id"]),[m,p]=va(i,{label:nx,caption:Qb,leadingVisual:lx,validation:px}),h=o.useContext(Mm),g=o.useContext(Cb),v=h.disabled||g.disabled||r,b=Jt(d),x=m.caption?`${b}-caption`:void 0,y=m.validation?`${b}-validation`:void 0,w=o.isValidElement(m.label)?m.label:void 0,N=w?null!==(a=w.props.id)&&void 0!==a?a:`${b}-label`:void 0,j=!!w&&!w.props.visuallyHidden,k=o.isValidElement(m.validation)?m.validation.props.variant:void 0,C=p.find(e=>yx.some(t=>wx(e,t))),S=wx(C,Pm)||wx(C,Tb),O=wx(C,Tb),M=S||"horizontal"===c,A=p.filter(e=>e!==C),T={id:b,disabled:v,required:l,captionId:x,validationMessageId:y,labelId:N},I=o.isValidElement(C)?o.cloneElement(C,M?{id:b,disabled:v,required:l&&!O,"aria-describedby":x}:Object.assign({id:b,disabled:v,required:l,validationStatus:k,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0},C.props)):null;return f.jsx(Kb.Provider,{value:T,children:M?f.jsxs("div",Object.assign({ref:t,className:et(fx,m.leadingVisual&&vx,n),"data-component":"FormControl","data-layout":"horizontal","data-disabled":v,"data-required":l,"data-has-leading-visual":!!m.leadingVisual||void 0},u,{children:[f.jsxs("div",{className:bx,children:[I,A]}),m.leadingVisual,f.jsxs("div",{className:xx,children:[m.label,m.caption]})]})):f.jsxs("div",Object.assign({ref:t,className:et(hx,j&&gx,n),"data-component":"FormControl","data-layout":"vertical","data-disabled":v,"data-required":l,"data-has-label":!!j||void 0},u,{children:[m.label,I,A,m.validation,m.caption]}))})}Nx.displayName="FormControl";var jx=tt(Nx);const kx=e=>{const{id:t,disabled:a,required:n,captionId:i,validationMessageId:r}=o.useContext(Kb);return Object.assign({id:t,disabled:a,required:n,"aria-describedby":[r,i].filter(Boolean).join(" ")||void 0},e)},Cx=Object.assign(jx,{Label:nx,Caption:Qb,LeadingVisual:lx,Validation:px}),Sx={when:{narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"}};function Ox(e,t){const a=e,{as:n="div",className:i,when:r}=a,o=s(a,["as","className","when"]),l=Array.isArray(r)?r:[r];return f.jsx(n,Object.assign({ref:t,className:et(l.map(e=>Sx.when[e]),i),"data-component":"Hidden","data-when":l.join(" ")},o))}Ox.displayName="Hidden";var Mx=tt(Ox);const Ax=Xe("image",{variants:{fit:{contain:"image-fit-contain",cover:"image-fit-cover",fill:"image-fit-fill",none:"image-fit-none","scale-down":"image-fit-scale-down"},borderRadius:{none:"image-radius-none",small:"image-radius-small",medium:"image-radius-medium",large:"image-radius-large",full:"image-radius-full"}}});function Tx(e,t){const a=e,{as:n="img",className:i,alt:r="",borderRadius:l="none",fit:c="cover",fallbackSrc:d,loading:u="lazy",src:m,onError:p}=a,h=s(a,["as","className","alt","borderRadius","fit","fallbackSrc","loading","src","onError"]),[g,v]=o.useState(void 0),b=void 0!==d&&void 0!==m&&m===g;return f.jsx(n,Object.assign({ref:t,alt:r,src:b?d:m,loading:u,onError:e=>{v(m),null==p||p(e)},className:et(Ax({borderRadius:l,fit:c}),i),"data-component":"Image","data-border-radius":l,"data-fit":c,"data-fallback":b||void 0},h))}Tx.displayName="Image";var Ix=tt(Tx);const Dx="inline-message-icon",Lx=Xe("inline-message",{variants:{size:{small:"inline-message-small",medium:"inline-message-medium"},variant:{critical:"inline-message-critical",success:"inline-message-success",unavailable:"inline-message-unavailable",warning:"inline-message-warning"}}}),zx={critical:Ot,success:ft,unavailable:Ht,warning:Ht},Ex=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function Px(e,t){const{className:a,children:n,size:i="medium",variant:r,leadingVisual:o}=e,l=s(e,["className","children","size","variant","leadingVisual"]),c=r?zx[r]:It;return f.jsxs("div",Object.assign({ref:t,className:et(Lx({size:i,variant:r}),a),"data-component":"InlineMessage","data-size":i,"data-variant":r},l,{children:[f.jsx("span",{className:Dx,"data-component":"InlineMessage.Icon",children:void 0===o?f.jsx(c,{}):Ex(o)}),f.jsx("span",{"data-component":"InlineMessage.Content",children:n})]}))}Px.displayName="InlineMessage";var $x=tt(Px);const Rx=([e,...t])=>{var a;return(null!==(a=null==e?void 0:e.toUpperCase())&&void 0!==a?a:"")+t.join("").toLowerCase()},Bx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"⌥":"Alt",control:"⌃",shift:"⇧",meta:"apple"===e?"⌘":"windows"===e?"Win":"Meta",mod:"apple"===e?"⌘":"⌃",pageup:"PgUp",pagedown:"PgDn",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",plus:"+",backspace:"⌫",delete:"Del",space:"␣",tab:"⇥",enter:"⏎",escape:"Esc",function:"Fn",capslock:"CapsLock",insert:"Ins",printscreen:"PrtScn"}))(t)[e])&&void 0!==a?a:Rx(e)},Vx=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"Option":"Alt",meta:"apple"===e?"Command":"windows"===e?"Windows":"Meta",mod:"apple"===e?"Command":"Control","+":"Plus",pageup:"Page Up",pagedown:"Page Down",arrowup:"Up Arrow",arrowdown:"Down Arrow",arrowleft:"Left Arrow",arrowright:"Right Arrow",capslock:"Caps Lock",printscreen:"Print Screen"}))(t)[e])&&void 0!==a?a:Rx(e)},_x=(e,t)=>{var a;return null!==(a=(e=>({alt:"apple"===e?"option":"alt",meta:"apple"===e?"command":"windows"===e?"Windows":"meta",mod:"apple"===e?"command":"control",pageup:"page up",pagedown:"page down",arrowup:"up arrow",arrowdown:"down arrow",arrowleft:"left arrow",arrowright:"right arrow",capslock:"caps lock",printscreen:"print screen","`":"backtick","~":"tilde","!":"exclamation point","@":"at","#":"hash",$:"dollar sign","%":"percent","^":"caret","&":"ampersand","*":"asterisk","(":"left parenthesis",")":"right parenthesis",_:"underscore","-":"dash","+":"plus","=":"equals","[":"left bracket","{":"left curly brace","]":"right bracket","}":"right curly brace","\\":"backslash","|":"pipe",";":"semicolon",":":"colon","'":"single quote",'"':"double quote",",":"comma","<":"left angle bracket",".":"period",">":"right angle bracket","/":"forward slash","?":"question mark"," ":"space"}))(t)[e])&&void 0!==a?a:e.toLowerCase()},Fx={control:1,meta:2,alt:3,option:4,shift:5,function:6},Hx=e=>{var t;return null!==(t=Fx[e])&&void 0!==t?t:1/0},Wx=e=>e.split("+").map(e=>e.toLowerCase()).sort((e,t)=>Hx(e)-Hx(t)),Gx=e=>e.split(" "),qx=(e,t)=>Gx(e).map(e=>((e,t)=>Wx(e).map(e=>_x(e,t)).join(" "))(e,t)).join(" then "),Kx=(e,t)=>qx(e,t),Ux=e.createContext(null),Yx=()=>()=>{},Zx=()=>{const e="undefined"==typeof navigator?"":`${navigator.platform} ${navigator.userAgent}`;return/mac|iphone|ipad|ipod/i.test(e)?"apple":/win/i.test(e)?"windows":"other"},Qx=()=>"other",Xx=()=>{const t=e.useContext(Ux),a=e.useSyncExternalStore(Yx,Zx,Qx);return null!=t?t:a},Jx="sr-only";function ey(e){const{name:t,format:a="condensed"}=e,n=Xx();return f.jsxs(f.Fragment,{children:[f.jsx("span",{className:Jx,children:_x(t,n)}),f.jsx("span",{"aria-hidden":"true",children:"condensed"===a?Bx(t,n):Vx(t,n)})]})}ey.displayName="KeybindingHint.Key";const ty=Xe("keybinding-hint-chord",{variants:{variant:{normal:"keybinding-hint-chord-normal",onEmphasis:"keybinding-hint-chord-on-emphasis",onPrimary:"keybinding-hint-chord-on-primary"},size:{normal:"keybinding-hint-chord-size-normal",small:"keybinding-hint-chord-size-small"}}});function ay(e){const{keys:t,format:a="condensed",variant:n="normal",size:i="normal"}=e;return f.jsx("span",{className:et(ty({variant:n,size:i})),"data-component":"KeybindingHint.Chord",children:Wx(t).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0&&"full"===a?f.jsx("span",{"aria-hidden":"true",children:" + "}):" ",f.jsx(ey,{name:e,format:a})]},t))})}ay.displayName="KeybindingHint.Chord";const ny="keybinding-hint",iy="sr-only";function ry(e,t){const{className:a,keys:n,format:i="condensed",variant:r="normal",size:l="normal"}=e,c=s(e,["className","keys","format","variant","size"]);return f.jsx("kbd",Object.assign({ref:t,className:et(ny,a),"data-component":"KeybindingHint","data-format":i,"data-variant":r,"data-size":l},c,{children:Gx(n).map((e,t)=>f.jsxs(o.Fragment,{children:[t>0?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:iy,children:"then"})," "]}):null,f.jsx(ay,{keys:e,format:i,variant:r,size:l})]},t))}))}ry.displayName="KeybindingHint";var oy=tt(ry);const sy=Xe("label",{variants:{size:{small:"label-small",medium:"label-medium",large:"label-large"},variant:{default:"label-default",primary:"label-primary",secondary:"label-secondary",accent:"label-accent",success:"label-success",attention:"label-attention",severe:"label-severe",danger:"label-danger",done:"label-done",sponsors:"label-sponsors"}}});function ly(e,t){const a=e,{as:n="span",className:i,size:r="small",variant:o="default"}=a,l=s(a,["as","className","size","variant"]);return f.jsx(n,Object.assign({ref:t,className:et(sy({size:r,variant:o}),i),"data-component":"Label","data-size":r,"data-variant":o},l))}ly.displayName="Label";var cy=tt(ly);function dy(e,t){const a=e,{as:n="a"}=a,i=s(a,["as"]);return f.jsx(gn,Object.assign({ref:t,as:n,"data-component":"LinkButton"},i))}dy.displayName="LinkButton";var uy=tt(dy);const my="nav-list-heading",py="sr-only";function hy(e){const{as:t="h2",visuallyHidden:a=!1,className:n}=e,i=s(e,["as","visuallyHidden","className"]);return f.jsx(wa,Object.assign({as:t,size:"small",className:et(a?py:my,n),"data-component":"NavList.Heading"},i))}hy.displayName="NavList.Heading";const gy=o.createContext(null),fy=o.createContext({depth:0}),vy=o.createContext({buttonId:"",subNavId:"",isOpen:!1}),by=e=>{const t=null===e?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},xy={heading:hy},yy={container:"NavList"};function wy(e,t){var a,n;const{children:i,className:r,"aria-label":l,"aria-labelledby":c}=e,d=s(e,["children","className","aria-label","aria-labelledby"]),[u,m]=va(i,xy),p=Jt(),h=u.heading,g=h?null!==(a=h.props.id)&&void 0!==a?a:p:void 0,v=h?(b=null!==(n=h.props.as)&&void 0!==n?n:"h2",Number.parseInt(b.slice(1),10)):null;var b;const x=null!=c?c:l?void 0:g;return f.jsx("nav",Object.assign({ref:t,"aria-label":l,"aria-labelledby":x,className:et(r),"data-component":"NavList"},d,{children:f.jsxs(gy.Provider,{value:v,children:[h?o.cloneElement(h,{id:g}):null,f.jsx(Oa.Provider,{value:yy,children:f.jsx(Bn,{children:m})})]})}))}wy.displayName="NavList";var Ny=o.forwardRef(wy);function jy(e){const{title:t,children:a,hideDivider:n=!1}=e,i=s(e,["title","children","hideDivider"]),r=o.useContext(gy);return f.jsxs(f.Fragment,{children:[n?null:f.jsx(Bn.Divider,{}),f.jsxs(Bn.Group,Object.assign({"data-component":"NavList.Group"},i,{children:[t?f.jsx(Bn.GroupHeading,{as:by(r),children:t}):null,a]}))]})}jy.displayName="NavList.Group";const ky="nav-list-chevron",Cy={trailingVisual:Bn.TrailingVisual},Sy=e=>{if(!o.isValidElement(e))return!1;const t=e.props["aria-current"];return!(!Boolean(t)||"false"===t)||o.Children.toArray(e.props.children).some(Sy)};function Oy(e){var t;const{children:a,subNav:n,defaultOpen:i,className:r}=e,s=Jt(),l=Jt(),c=o.useRef(null),d=o.useMemo(()=>Sy(n),[n]),[u,m]=o.useState(null!=i?i:d),[p,h]=o.useState(d);Kn(()=>{var e;const t=d||Boolean(null===(e=c.current)||void 0===e?void 0:e.querySelector("[aria-current]:not([aria-current='false'])"));h(t),t&&m(!0)},[d,n]);const g=o.useMemo(()=>({buttonId:s,subNavId:l,isOpen:u}),[s,l,u]),[v,b]=va(a,Cy);return f.jsx(vy.Provider,{value:g,children:f.jsxs(Bn.Item,{id:s,active:!u&&p,"aria-expanded":u,"aria-controls":l,onSelect:()=>m(e=>!e),className:r,"data-component":"NavList.Item",children:[b,f.jsxs(Bn.TrailingVisual,{children:[null===(t=v.trailingVisual)||void 0===t?void 0:t.props.children,f.jsx(bt,{className:ky})]}),f.jsx(Bn.SubItem,{children:o.cloneElement(n,{ref:c})})]})})}Oy.displayName="NavList.ItemWithSubNav";const My="nav-list-sub-nav",Ay="nav-list-sub-nav-items";function Ty(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{buttonId:r,subNavId:l,isOpen:c}=o.useContext(vy),{depth:d}=o.useContext(fy),u=o.useMemo(()=>({depth:d+1}),[d]);return!r||!l||d>=4?null:f.jsx(fy.Provider,{value:u,children:f.jsx("ul",Object.assign({ref:t,id:l,hidden:!c,"aria-labelledby":r,className:et(My,Ay,a),"data-component":"NavList.SubNav","data-depth":d+1},i,{children:n}))})}Ty.displayName="NavList.SubNav";var Iy=tt(Ty);const Dy={subNav:Iy},Ly=Bn.LinkItem;function zy(e,t){const a=e,{as:n,children:i,className:r,defaultOpen:o,"aria-current":l}=a,c=s(a,["as","children","className","defaultOpen","aria-current"]),[d,u]=va(i,Dy);return d.subNav?f.jsx(Oy,{subNav:d.subNav,defaultOpen:o,className:r,children:u}):f.jsx(Ly,Object.assign({ref:t,as:n,"aria-current":l,active:Boolean(l)&&"false"!==l,className:r,"data-component":"NavList.Item"},c,{children:i}))}zy.displayName="NavList.Item";var Ey=tt(zy);const Py=e=>{if("string"==typeof e||!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function $y(e,t){const{label:a="Show more",pages:n=0,items:i,renderItem:r}=e,l=s(e,["label","pages","items","renderItem"]),[c,d]=o.useState(0),u=Jt(),m=i.length/n,p=0===n?i.length:Math.ceil(m*c),h=1===c?0:p-Math.floor(m);return Kn(()=>{if(0===c)return;const e=document.querySelector(`[data-expand-focus-target="${u}"]`);null==e||e.focus()},[c,u]),f.jsxs(f.Fragment,{children:[c>0?i.slice(0,p).map((e,t)=>{var a;const{text:n,leadingVisual:i,trailingVisual:o,trailingAction:l}=e,c=s(e,["text","leadingVisual","trailingVisual","trailingAction"]),d=t===h?u:void 0;return r?r(Object.assign(Object.assign({},e),{"data-expand-focus-target":d})):f.jsxs(Ey,Object.assign({"data-expand-focus-target":d},c,{children:[i?f.jsx(Bn.LeadingVisual,{children:f.jsx(i,{})}):null,n,o?f.jsx(Bn.TrailingVisual,{children:Py(o)}):null,l?f.jsx(Bn.TrailingAction,Object.assign({},l)):null]}),null!==(a=e.id)&&void 0!==a?a:t)}):null,c<n||0===c?f.jsxs(Bn.Item,Object.assign({ref:t,as:"button","aria-expanded":!1,onSelect:()=>d(e=>e+1),"data-component":"NavList.GroupExpand"},l,{children:[a,f.jsx(Bn.TrailingVisual,{children:f.jsx(st,{})})]})):null]})}$y.displayName="NavList.GroupExpand";var Ry=o.forwardRef($y);const By="nav-list-group-heading";function Vy(e){const{as:t,className:a}=e,n=s(e,["as","className"]),i=o.useContext(gy);return f.jsx(Bn.GroupHeading,Object.assign({as:null!=t?t:by(i),className:et(By,a),"data-component":"NavList.GroupHeading"},n))}Vy.displayName="NavList.GroupHeading";const _y=ga(Vy,Va),Fy=Object.assign(Ny,{Heading:hy,Item:Ey,SubNav:Iy,Group:jy,GroupHeading:_y,GroupExpand:Ry,Description:Pa,LeadingVisual:on,TrailingVisual:Cn,TrailingAction:kn,Divider:Ra}),Hy=Xe("page-content",{variants:{width:{full:"page-content-width-full",medium:"page-content-width-medium",large:"page-content-width-large",xlarge:"page-content-width-xlarge"},padding:{none:"page-content-padding-none",condensed:"page-content-padding-condensed",normal:"page-content-padding-normal",spacious:"page-content-padding-spacious"},gap:{none:"page-content-gap-none",condensed:"page-content-gap-condensed",normal:"page-content-gap-normal",spacious:"page-content-gap-spacious"}}});function Wy(e,t){const a=e,{as:n="main",className:i,width:r="full",padding:o="none",gap:l="normal"}=a,c=s(a,["as","className","width","padding","gap"]);return f.jsx(n,Object.assign({ref:t,className:et(Hy({width:r,padding:o,gap:l}),i),"data-component":"PageContent","data-width":r,"data-padding":o,"data-gap":l},c))}Wy.displayName="PageContent";var Gy=tt(Wy);const qy=["narrow","regular","wide"],Ky="hidden",Uy={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Yy=e=>{return a=Ky,n=Uy,(t=e).length===qy.length?a:t.map(e=>n[e]);var t,a,n},Zy=e=>e.length>0?e.join(" "):void 0,Qy="page-content-section";function Xy(e,t){const a=e,{as:n="section",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...qy]:[]:qy.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(Qy,i,Yy(l)),"data-component":"PageContent.Section","data-hidden":Zy(l)},o))}Xy.displayName="PageContent.Section";var Jy=tt(Xy);const ew=Object.assign(Gy,{Section:Jy}),tw=["narrow","regular","wide"],aw="hidden",nw={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},iw=(e=!1)=>"boolean"==typeof e?e?[...tw]:[]:tw.filter(t=>e[t]),rw=(e,t,a)=>e.length===tw.length?t:e.map(e=>a[e]),ow=e=>rw(e,aw,nw),sw=e=>e.length>0?e.join(" "):void 0;var lw=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=iw(r);return f.jsx(n,Object.assign({ref:t,className:et(i,ow(l)),"data-hidden":sw(l)},o))});const cw="page-footer-navigation";function dw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(lw,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(cw,a),"data-component":"PageFooter.Navigation"},o))}dw.displayName="PageFooter.Navigation";var uw=tt(dw);const mw={root:"page-footer",text:"page-footer-text",variant:{normal:"page-footer-normal",condensed:"page-footer-condensed"},narrowVariant:{normal:"page-footer-narrow-normal",condensed:"page-footer-narrow-condensed"},regularVariant:{normal:"page-footer-regular-normal",condensed:"page-footer-regular-condensed"},wideVariant:{normal:"page-footer-wide-normal",condensed:"page-footer-wide-condensed"},border:"page-footer-border",borderWhen:{narrow:"page-footer-border-narrow",regular:"page-footer-border-regular",wide:"page-footer-border-wide"}},pw=e=>{var t;const a={hasNavigation:!1};for(const n of o.Children.toArray(e))if(o.isValidElement(n)){if(n.type===o.Fragment){const e=pw(n.props.children);e.hasNavigation&&(a.hasNavigation=!0,a.navigationHidden=e.navigationHidden);continue}n.type===uw&&(a.hasNavigation=!0,a.navigationHidden=null!==(t=n.props.hidden)&&void 0!==t&&t)}return a},hw=e=>"string"==typeof e?mw.variant[e]:[(null==e?void 0:e.narrow)&&mw.narrowVariant[e.narrow],(null==e?void 0:e.regular)&&mw.regularVariant[e.regular],(null==e?void 0:e.wide)&&mw.wideVariant[e.wide]];function gw(e,t){const a=e,{as:n="footer",className:i,children:r,variant:o="normal",hasBorder:l}=a,c=s(a,["as","className","children","variant","hasBorder"]),{hasNavigation:d,navigationHidden:u}=pw(r),m=iw(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(mw.root,mw.text,hw(o),l&&rw(m,mw.border,mw.borderWhen),i),"data-component":"PageFooter","data-has-border":l?"":void 0,"data-has-navigation":d?"":void 0},Qn("size-variant",o),c,{children:r}))}gw.displayName="PageFooter";var fw=tt(gw);const vw="page-footer-actions";function bw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(vw,a),"data-component":"PageFooter.Actions"},n))}bw.displayName="PageFooter.Actions";var xw=tt(bw);const yw="page-footer-copyright";function ww(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(yw,a),"data-component":"PageFooter.Copyright"},n))}ww.displayName="PageFooter.Copyright";var Nw=tt(ww);const jw="page-footer-description";function kw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(jw,a),"data-component":"PageFooter.Description"},n))}kw.displayName="PageFooter.Description";var Cw=tt(kw);const Sw="page-footer-leading-visual";function Ow(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(lw,Object.assign({ref:t,className:et(Sw,a),"data-component":"PageFooter.LeadingVisual"},n))}Ow.displayName="PageFooter.LeadingVisual";var Mw=tt(Ow);const Aw=Object.assign(fw,{Navigation:uw,LeadingVisual:Mw,Copyright:Nw,Actions:xw,Description:Cw}),Tw=["narrow","regular","wide"],Iw="hidden",Dw={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Lw=(e=!1)=>"boolean"==typeof e?e?[...Tw]:[]:Tw.filter(t=>e[t]),zw=(e,t,a)=>e.length===Tw.length?t:e.map(e=>a[e]),Ew=e=>zw(e,Iw,Dw),Pw=e=>e.length>0?e.join(" "):void 0;var $w=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=Lw(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Ew(l)),"data-hidden":Pw(l)},o))});const Rw="page-header-navigation";function Bw(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx($w,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(Rw,a),"data-component":"PageHeader.Navigation"},o))}Bw.displayName="PageHeader.Navigation";var Vw=tt(Bw);const _w="page-header-title-area";function Fw(e,t){const{className:a,variant:n="medium"}=e,i=s(e,["className","variant"]);return f.jsx($w,Object.assign({ref:t,className:et(_w,a),"data-component":"PageHeader.TitleArea"},Qn("size-variant",n),i))}Fw.displayName="PageHeader.TitleArea";var Hw=tt(Fw);const Ww={root:"page-header",title:"page-header-title-type",titleVariant:{subtitle:"page-header-title-subtitle",medium:"page-header-title-medium",large:"page-header-title-large"},narrowTitleVariant:{subtitle:"page-header-narrow-title-subtitle",medium:"page-header-narrow-title-medium",large:"page-header-narrow-title-large"},regularTitleVariant:{subtitle:"page-header-regular-title-subtitle",medium:"page-header-regular-title-medium",large:"page-header-regular-title-large"},wideTitleVariant:{subtitle:"page-header-wide-title-subtitle",medium:"page-header-wide-title-medium",large:"page-header-wide-title-large"},border:"page-header-border",borderWhen:{narrow:"page-header-border-narrow",regular:"page-header-border-regular",wide:"page-header-border-wide"}},Gw=e=>{var t,a;const n={hasNavigation:!1};for(const i of o.Children.toArray(e))if(o.isValidElement(i)){if(i.type===o.Fragment){const e=Gw(i.props.children);void 0!==e.titleVariant&&(n.titleVariant=e.titleVariant),e.hasNavigation&&(n.hasNavigation=!0,n.navigationHidden=e.navigationHidden);continue}i.type!==Hw?i.type===Vw&&(n.hasNavigation=!0,n.navigationHidden=null!==(a=i.props.hidden)&&void 0!==a&&a):n.titleVariant=null!==(t=i.props.variant)&&void 0!==t?t:"medium"}return n};function qw(e,t){const a=e,{as:n="div",className:i,children:r,hasBorder:o}=a,l=s(a,["as","className","children","hasBorder"]),{titleVariant:c,hasNavigation:d,navigationHidden:u}=Gw(r),m=Lw(!d||u);return f.jsx(n,Object.assign({ref:t,className:et(Ww.root,c&&Ww.title,c&&(p=c,"string"==typeof p?Ww.titleVariant[p]:[(null==p?void 0:p.narrow)&&Ww.narrowTitleVariant[p.narrow],(null==p?void 0:p.regular)&&Ww.regularTitleVariant[p.regular],(null==p?void 0:p.wide)&&Ww.wideTitleVariant[p.wide]]),o&&zw(m,Ww.border,Ww.borderWhen),i),"data-component":"PageHeader","data-has-border":o?"":void 0,"data-has-navigation":d?"":void 0},Qn("title-size-variant",c),l,{children:r}));var p}qw.displayName="PageHeader";var Kw=tt(qw);const Uw="page-header-actions";function Yw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(Uw,a),"data-component":"PageHeader.Actions"},n))}Yw.displayName="PageHeader.Actions";var Zw=tt(Yw);const Qw="page-header-breadcrumbs";function Xw(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(Qw,a),"data-component":"PageHeader.Breadcrumbs"},n))}Xw.displayName="PageHeader.Breadcrumbs";var Jw=tt(Xw);const eN="page-header-context-area";function tN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(eN,a),hidden:n,"data-component":"PageHeader.ContextArea"},i))}tN.displayName="PageHeader.ContextArea";var aN=tt(tN);const nN="page-header-context-area-actions";function iN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(nN,a),hidden:n,"data-component":"PageHeader.ContextAreaActions"},i))}iN.displayName="PageHeader.ContextAreaActions";var rN=tt(iN);const oN="page-header-context-bar";function sN(e,t){const{className:a,hidden:n={regular:!0,wide:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(oN,a),hidden:n,"data-component":"PageHeader.ContextBar"},i))}sN.displayName="PageHeader.ContextBar";var lN=tt(sN);const cN="page-header-description";function dN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(cN,a),"data-component":"PageHeader.Description"},n))}dN.displayName="PageHeader.Description";var uN=tt(dN);const mN="page-header-leading-action";function pN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(mN,a),hidden:n,"data-component":"PageHeader.LeadingAction"},i))}pN.displayName="PageHeader.LeadingAction";var hN=tt(pN);const gN="page-header-leading-visual";function fN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(gN,a),"data-component":"PageHeader.LeadingVisual"},n))}fN.displayName="PageHeader.LeadingVisual";var vN=tt(fN);const bN="page-header-parent-link";function xN(e,t){const a=e,{className:n,children:i,hidden:r={regular:!0,wide:!0}}=a,o=s(a,["className","children","hidden"]),l=Lw(r);return f.jsxs(Ro,Object.assign({ref:t,muted:!0,className:et(bN,n,Ew(l)),"data-component":"PageHeader.ParentLink","data-hidden":Pw(l)},o,{children:[f.jsx(dt,{}),f.jsx("span",{children:i})]}))}xN.displayName="PageHeader.ParentLink";var yN=tt(xN);const wN="page-header-title";function NN(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx($w,Object.assign({ref:t,as:n,className:et(wN,a),"data-component":"PageHeader.Title"},i))}NN.displayName="PageHeader.Title";var jN=tt(NN);const kN="page-header-trailing-action";function CN(e,t){const{className:a,hidden:n={narrow:!0}}=e,i=s(e,["className","hidden"]);return f.jsx($w,Object.assign({ref:t,className:et(kN,a),hidden:n,"data-component":"PageHeader.TrailingAction"},i))}CN.displayName="PageHeader.TrailingAction";var SN=tt(CN);const ON="page-header-trailing-visual";function MN(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx($w,Object.assign({ref:t,className:et(ON,a),"data-component":"PageHeader.TrailingVisual"},n))}MN.displayName="PageHeader.TrailingVisual";var AN=tt(MN);const TN=Object.assign(Kw,{ContextArea:aN,ParentLink:yN,ContextBar:lN,ContextAreaActions:rN,TitleArea:Hw,LeadingAction:hN,Breadcrumbs:Jw,LeadingVisual:vN,Title:jN,TrailingVisual:AN,TrailingAction:SN,Actions:Zw,Description:uN,Navigation:Vw}),IN={current:null},DN=e.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:IN,contentWrapperRef:IN,sidebarRef:IN,sidebarContentWrapperRef:IN}),LN="page-layout-horizontal-divider";function zN(e,t){const{className:a,style:n,variant:i="none",position:r}=e,l=s(e,["className","style","variant","position"]),{padding:c}=o.useContext(DN);return f.jsx("div",Object.assign({ref:t,className:et(LN,a),style:Object.assign({"--spacing-divider":`var(--page-layout-spacing-${c})`},n),"data-component":"PageLayout.HorizontalDivider"},Qn("variant",i),Qn("position",r),l))}zN.displayName="PageLayout.HorizontalDivider";var EN=tt(zN);const PN="page-layout-footer",$N="page-layout-hidden",RN="page-layout-footer-divider",BN="page-layout-region-content";function VN(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(DN);return f.jsxs("footer",Object.assign({ref:t,className:et(PN,$N,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Footer"},Qn("hidden",c),d,{children:[f.jsx(EN,{variant:l,className:RN,style:{"--spacing":`var(--page-layout-spacing-${u})`}}),f.jsx("div",{className:BN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i})]}))}VN.displayName="PageLayout.Footer";var _N=tt(VN);const FN="page-layout-header",HN="page-layout-hidden",WN="page-layout-region-content",GN="page-layout-header-divider";function qN(e,t){const{className:a,style:n,children:i,padding:r="none",divider:l="none",hidden:c=!1}=e,d=s(e,["className","style","children","padding","divider","hidden"]),{rowGap:u}=o.useContext(DN);return f.jsxs("header",Object.assign({ref:t,className:et(FN,HN,a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${u})`},n),"data-component":"PageLayout.Header"},Qn("hidden",c),d,{children:[f.jsx("div",{className:WN,style:{"--spacing":`var(--page-layout-spacing-${r})`},children:i}),f.jsx(EN,{variant:l,className:GN,style:{"--spacing":`var(--page-layout-spacing-${u})`}})]}))}qN.displayName="PageLayout.Header";var KN=tt(qN);const UN=1280,YN={small:256,medium:296,large:320},ZN=e=>"object"==typeof e&&"min"in e&&"default"in e&&"max"in e,QN=e=>"small"===e||"medium"===e||"large"===e,XN=e=>QN(e)?YN[e]:ZN(e)?parseInt(e.default,10):0,JN=()=>"undefined"==typeof window?511:window.innerWidth>=UN?959:511,ej=e=>`Pane width ${e} pixels`,tj=(e,t)=>{e&&(void 0!==t.min&&e.setAttribute("aria-valuemin",String(t.min)),void 0!==t.max&&e.setAttribute("aria-valuemax",String(t.max)),void 0!==t.current&&(e.setAttribute("aria-valuenow",String(t.current)),e.setAttribute("aria-valuetext",ej(t.current))))},aj=(e,t)=>{try{localStorage.setItem(e,String(t))}catch(e){}},nj=e=>{try{const t=localStorage.getItem(e);if(null!==t){const e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch(e){}return null},ij="page-layout-drag-handle",rj=e=>"ArrowLeft"===e||"ArrowRight"===e||"ArrowUp"===e||"ArrowDown"===e;function oj(e){const{className:t,handleRef:a,onDragStart:n,onDrag:i,onDragEnd:r,onDoubleClick:s,"aria-label":l,"aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,dragTargetRef:p,contentWrapperRef:h}=e,g=o.useRef({onDragStart:n,onDrag:i,onDragEnd:r});o.useEffect(()=>{g.current={onDragStart:n,onDrag:i,onDragEnd:r}});const v=o.useRef(!1),b=o.useRef(null),x=o.useRef(null),y=o.useCallback(()=>{var e,t;v.current||((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.setProperty("--drag-handle-background-color","var(--background-color-accent-emphasis)"),null==e||e.style.setProperty("--drag-handle-opacity","1"),null==e||e.style.setProperty("--drag-handle-transition","none"),null==t||t.setAttribute("data-dragging","true"),null==a||a.setAttribute("data-dragging","true")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!0)},[a,p,h]),w=o.useCallback(()=>{var e,t;v.current&&((({handle:e,pane:t,contentWrapper:a})=>{null==e||e.style.removeProperty("--drag-handle-background-color"),null==e||e.style.removeProperty("--drag-handle-opacity"),null==e||e.style.removeProperty("--drag-handle-transition"),null==t||t.removeAttribute("data-dragging"),null==a||a.removeAttribute("data-dragging")})({handle:a.current,pane:null!==(e=null==p?void 0:p.current)&&void 0!==e?e:null,contentWrapper:null!==(t=null==h?void 0:h.current)&&void 0!==t?t:null}),v.current=!1)},[a,p,h]);o.useEffect(()=>()=>{null!==b.current&&(cancelAnimationFrame(b.current),b.current=null)},[]);return f.jsx("div",{ref:a,role:"slider",tabIndex:0,"aria-label":c?void 0:null!=l?l:"Draggable pane splitter","aria-labelledby":c,"aria-valuemin":d,"aria-valuemax":u,"aria-valuenow":m,"aria-valuetext":void 0===m?void 0:ej(m),className:et(ij,t),onPointerDown:e=>{if(0===e.button){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch(e){}g.current.onDragStart(e.clientX),y()}},onPointerMove:e=>{v.current&&(e.preventDefault(),x.current=e.clientX,null===b.current&&(b.current=requestAnimationFrame(()=>{b.current=null,null!==x.current&&(g.current.onDrag(x.current,!1),x.current=null)})))},onPointerUp:e=>e.preventDefault(),onLostPointerCapture:()=>{v.current&&(null!==b.current&&(cancelAnimationFrame(b.current),b.current=null,x.current=null),w(),g.current.onDragEnd())},onKeyDown:e=>{var t;rj(e.key)&&(e.preventDefault(),y(),g.current.onDrag("ArrowLeft"===(t=e.key)||"ArrowDown"===t?-3:3,!0))},onKeyUp:e=>{rj(e.key)&&(e.preventDefault(),w(),g.current.onDragEnd())},onDoubleClick:s,"data-component":"PageLayout.DragHandle"})}oj.displayName="PageLayout.DragHandle";const sj="page-layout-vertical-divider";function lj(e,t){const{className:a,variant:n="none",position:i}=e,r=s(e,["className","variant","position"]);return f.jsx("div",Object.assign({ref:t,className:et(sj,a),"data-component":"PageLayout.VerticalDivider"},Qn("variant",n),Qn("position",i),r))}lj.displayName="PageLayout.VerticalDivider";var cj=tt(lj);const dj=({width:e,minWidth:t,resizable:a,widthStorageKey:n,paneRef:i,handleRef:r,contentWrapperRef:s,constrainToViewport:l=!1,onResizeEnd:c,currentWidth:d})=>{const u=ZN(e),m=u?parseInt(e.min,10):t,p=u?parseInt(e.max,10):null,h=o.useMemo(()=>XN(e),[e]),g=o.useRef(n),f=o.useRef(c);Kn(()=>{g.current=n,f.current=c});const v=o.useRef(l?256:511),b=o.useCallback(()=>{const e=window.innerWidth,t=e>0?Math.max(m,e-v.current):m;return null!==p?l?Math.min(p,t):p:t},[p,m,l]),[x,y]=o.useState(()=>{var e;if("number"==typeof d)return d;return void 0===c&&!0===a&&void 0!==n&&null!==(e=nj(n))&&void 0!==e?e:h}),[w,N]=o.useState(h),[j,k]=o.useState(d),C=d!==j;C&&(k(d),"number"==typeof d?y(d):void 0!==j&&y(h)),h!==w&&(N(h),void 0!==d||C||y(h));const S=null!=d?d:x,O=o.useRef(S),[M,A]=o.useState(()=>null!=p?p:600),T=o.useRef(M);Kn(()=>{O.current=S},[S]);const I=o.useCallback(()=>XN(e),[e]),D=o.useCallback(e=>{const t=Math.round(e);O.current=t,o.startTransition(()=>{y(t)}),f.current?f.current(t):a&&g.current&&aj(g.current,t)},[a]),L=o.useRef(b);return Kn(()=>{L.current=b}),Kn(()=>{var e;if(!a)return;let t=window.innerWidth;const n=()=>{var e,a;const n=window.innerWidth,s=t<UN!=n<UN;t=n,s&&(v.current=JN());const l=L.current();null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${l}px`);const c=O.current>l;c&&(O.current=l,null===(a=i.current)||void 0===a||a.style.setProperty("--pane-width",`${l}px`)),tj(r.current,{max:l,current:O.current}),(l!==T.current||c)&&(T.current=l,o.startTransition(()=>{A(l),c&&y(l)}))};v.current=JN();const c=L.current();if(T.current=c,null===(e=i.current)||void 0===e||e.style.setProperty("--pane-max-width",`${c}px`),tj(r.current,{min:m,max:c,current:O.current}),o.startTransition(()=>{A(c)}),null!==p&&!l)return;let d=0,u=null,h=null,g=!1;const f=()=>{var e,t;g&&(g=!1,null===(e=i.current)||void 0===e||e.removeAttribute("data-dragging"),null===(t=null==s?void 0:s.current)||void 0===t||t.removeAttribute("data-dragging"))},b=()=>{(()=>{var e,t;g||(g=!0,null===(e=i.current)||void 0===e||e.setAttribute("data-dragging","true"),null===(t=null==s?void 0:s.current)||void 0===t||t.setAttribute("data-dragging","true"))})();const e=performance.now();e-d>=16?(d=e,n()):null===u&&(u=requestAnimationFrame(()=>{u=null,d=performance.now(),n()})),null!==h&&clearTimeout(h),h=setTimeout(f,150)};return window.addEventListener("resize",b),()=>{null!==u&&cancelAnimationFrame(u),null!==h&&clearTimeout(h),f(),window.removeEventListener("resize",b)}},[a,p,l,m,i,r,s]),{currentWidth:S,currentWidthRef:O,minPaneWidth:m,maxPaneWidth:M,getMaxPaneWidth:b,getDefaultWidth:I,saveWidth:D}},uj="page-layout-sidebar-wrapper",mj="page-layout-hidden",pj="page-layout-sidebar-position",hj="page-layout-sidebar-sticky",gj="page-layout-sidebar-fullscreen",fj="page-layout-sidebar",vj="page-layout-sidebar-resizable",bj="page-layout-dragging",xj="page-layout-sidebar-fullscreen-inner",yj="page-layout-sidebar-divider";function wj(e,t){const{className:a,style:n,children:i,id:r,position:l="start",width:c="medium",minWidth:d=256,currentWidth:u,onResizeEnd:m,widthStorageKey:p,padding:h="none",divider:g="none",resizable:v=!1,sticky:b=!1,responsiveVariant:x="default",hidden:y=!1,"aria-label":w,"aria-labelledby":j}=e,k=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","responsiveVariant","hidden","aria-label","aria-labelledby"]),{columnGap:C,sidebarRef:S,sidebarContentWrapperRef:O}=o.useContext(DN),M=o.useRef(null),A=o.useRef(0),T=o.useRef(0),I=o.useRef(0),{currentWidth:D,currentWidthRef:L,minPaneWidth:z,maxPaneWidth:E,getMaxPaneWidth:P,getDefaultWidth:$,saveWidth:R}=dj({width:c,minWidth:d,resizable:v,widthStorageKey:p,paneRef:S,handleRef:M,contentWrapperRef:O,constrainToViewport:!0,onResizeEnd:m,currentWidth:u}),B=N(t,S),V=gh(S),_=Jt(r),F=V?Object.assign({role:"region",tabIndex:0},j?{"aria-labelledby":j}:w?{"aria-label":w}:{}):{},H=e=>{var t;null===(t=S.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),L.current=e},W=f.jsx(cj,{variant:v?"line":g,position:l,className:yj,style:{"--spacing-column":`var(--page-layout-spacing-${C})`},children:v?f.jsx(oj,{handleRef:M,dragTargetRef:S,contentWrapperRef:O,"aria-valuemin":z,"aria-valuemax":E,"aria-valuenow":D,onDragStart:e=>{var t,a;A.current=e,T.current=null!==(a=null===(t=S.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:L.current,I.current=P()},onDrag:(e,t)=>{const a=t?P():I.current;if(t){const t="end"===l?-e:e,n=Math.max(z,Math.min(a,L.current+t));return void(n!==L.current&&(H(n),tj(M.current,{current:n,max:a})))}if(!S.current)return;const n=e-A.current,i=Math.max(z,Math.min(a,T.current+("end"===l?-n:n)));Math.round(i)!==Math.round(L.current)&&(H(i),tj(M.current,{current:Math.round(i),max:a}))},onDragEnd:()=>R(L.current),onDoubleClick:()=>{const e=$();H(e),tj(M.current,{current:e}),R(e)}}):null});return f.jsxs("div",Object.assign({className:et(uj,mj,pj,hj,gj,a),style:Object.assign({"--spacing-column":`var(--page-layout-spacing-${C})`},n),"data-position":l,"data-sticky":b||void 0,"data-responsive-variant":"default"===x?void 0:x},Qn("is-hidden",y),{children:["end"===l?W:null,f.jsx("div",Object.assign({ref:B,suppressHydrationWarning:v&&Boolean(p)&&!m,className:et(fj,vj,xj,bj),style:{"--spacing":`var(--page-layout-spacing-${h})`,"--pane-min-width":ZN(c)?c.min:`${d}px`,"--pane-max-width":ZN(c)?c.max:"calc(100vw - var(--sidebar-max-width-diff))","--pane-width-custom":ZN(c)?c.default:void 0,"--pane-width-size":`var(--pane-width-${QN(c)?c:"custom"})`,"--pane-width":`${D}px`},"data-component":"PageLayout.Sidebar","data-resizable":v||void 0},F,r?{id:_}:{},k,{children:i})),"start"===l?W:null]}))}wj.displayName="PageLayout.Sidebar";var Nj=tt(wj);const jj="page-layout-content-row",kj=Xe("page-layout",{variants:{hasSidebar:{true:"page-layout-has-sidebar",false:""}}}),Cj=Xe("page-layout-wrapper",{variants:{width:{full:"page-layout-width-full",medium:"page-layout-width-medium",large:"page-layout-width-large",xlarge:"page-layout-width-xlarge"}}});function Sj(e,t){const{className:a,style:n,children:i,containerWidth:r="xlarge",padding:l="normal",rowGap:c="normal",columnGap:d="normal"}=e,u=s(e,["className","style","children","containerWidth","padding","rowGap","columnGap"]),m=o.useRef(null),p=o.useRef(null),h=o.useRef(null),g=o.useRef(null),[v,b]=va(i,{header:KN,footer:_N,sidebar:Nj}),x=o.useMemo(()=>({padding:l,rowGap:c,columnGap:d,paneRef:m,contentWrapperRef:p,sidebarRef:h,sidebarContentWrapperRef:g}),[l,c,d]);return f.jsx(DN.Provider,{value:x,children:f.jsxs("div",Object.assign({ref:t,className:et(kj({hasSidebar:Boolean(v.sidebar)}),a),style:Object.assign({"--spacing":`var(--page-layout-spacing-${l})`},n),"data-component":"PageLayout","data-has-sidebar":v.sidebar?"":void 0},u,{children:[v.sidebar,f.jsxs("div",{ref:g,className:et(Cj({width:r})),"data-page-layout-wrapper":"","data-width":r,children:[v.header,f.jsx("div",{className:jj,children:b}),v.footer]})]}))})}Sj.displayName="PageLayout";var Oj=tt(Sj);const Mj="page-layout-content-wrapper",Aj="page-layout-hidden",Tj="page-layout-dragging",Ij=Xe("page-layout-content",{variants:{width:{full:"page-layout-content-width-full",medium:"page-layout-content-width-medium",large:"page-layout-content-width-large",xlarge:"page-layout-content-width-xlarge"}}});function Dj(e,t){const{as:a="main",className:n,children:i,width:r="full",padding:l="none",hidden:c=!1}=e,d=s(e,["as","className","children","width","padding","hidden"]),{contentWrapperRef:u}=o.useContext(DN),m=N(t,u);return f.jsx(a,Object.assign({ref:m,className:et(Mj,Aj,Tj,n),"data-component":"PageLayout.Content"},Qn("is-hidden",c),d,{children:f.jsx("div",{className:et(Ij({width:r})),"data-width":r,style:{"--spacing":`var(--page-layout-spacing-${l})`},children:i})}))}Dj.displayName="PageLayout.Content";var Lj=tt(Dj);const zj="page-layout-pane-wrapper",Ej="page-layout-hidden",Pj="page-layout-pane-position",$j="page-layout-pane-sticky",Rj="page-layout-pane",Bj="page-layout-pane-resizable",Vj="page-layout-dragging",_j="page-layout-pane-horizontal-divider",Fj="page-layout-pane-vertical-divider";function Hj(e,t){var a,n,i;const{className:r,style:l,children:c,id:d,position:u="end",width:m="medium",minWidth:p=256,currentWidth:h,onResizeEnd:g,widthStorageKey:v="paneWidth",padding:b="none",divider:x="none",resizable:y=!1,sticky:w=!1,offsetHeader:j=0,hidden:k=!1,"aria-label":C,"aria-labelledby":S}=e,O=s(e,["className","style","children","id","position","width","minWidth","currentWidth","onResizeEnd","widthStorageKey","padding","divider","resizable","sticky","offsetHeader","hidden","aria-label","aria-labelledby"]),M=Pr(u)?"end":u,A=Pr(x)?"none":x,{rowGap:T,columnGap:I,paneRef:D,contentWrapperRef:L}=o.useContext(DN),z=o.useRef(null),E=o.useRef(0),P=o.useRef(0),$=o.useRef(0),{currentWidth:R,currentWidthRef:B,minPaneWidth:V,maxPaneWidth:_,getMaxPaneWidth:F,getDefaultWidth:H,saveWidth:W}=dj({width:m,minWidth:p,resizable:y,widthStorageKey:v,paneRef:D,handleRef:z,contentWrapperRef:L,onResizeEnd:g,currentWidth:h}),G=N(t,D),q=gh(D),K=Jt(d),U=q?Object.assign({role:"region",tabIndex:0},S?{"aria-labelledby":S}:C?{"aria-label":C}:{}):{},Y=e=>{var t;null===(t=D.current)||void 0===t||t.style.setProperty("--pane-width",`${e}px`),B.current=e};return f.jsxs("div",Object.assign({className:et(zj,Ej,Pj,$j,r),style:Object.assign({"--offset-header":"number"==typeof j?`${j}px`:j,"--spacing-row":`var(--page-layout-spacing-${T})`,"--spacing-column":`var(--page-layout-spacing-${I})`},l),"data-sticky":w||void 0},Qn("is-hidden",k),Qn("position",u),{children:[f.jsx(EN,{variant:Pr(x)?x:{narrow:A,regular:"none"},position:u,className:_j,style:{"--spacing":`var(--page-layout-spacing-${T})`}}),f.jsx("div",Object.assign({ref:G,suppressHydrationWarning:y&&!g,className:et(Rj,Bj,Vj),style:{"--spacing":`var(--page-layout-spacing-${b})`,"--pane-min-width":ZN(m)?m.min:`${p}px`,"--pane-max-width":ZN(m)?m.max:"calc(100vw - var(--pane-max-width-diff))","--pane-width-custom":ZN(m)?m.default:void 0,"--pane-width-size":`var(--pane-width-${QN(m)?m:"custom"})`,"--pane-width":`${R}px`},"data-component":"PageLayout.Pane","data-resizable":y||void 0},U,d?{id:K}:{},O,{children:c})),f.jsx(cj,{variant:Pr(x)?{narrow:"none",regular:y?"line":null!==(a=x.regular)&&void 0!==a?a:"none",wide:y?"line":null!==(i=null!==(n=x.wide)&&void 0!==n?n:x.regular)&&void 0!==i?i:"none"}:{narrow:"none",regular:y?"line":A},position:u,className:Fj,style:{"--spacing":`var(--page-layout-spacing-${I})`},children:y?f.jsx(oj,{handleRef:z,dragTargetRef:D,contentWrapperRef:L,"aria-valuemin":V,"aria-valuemax":_,"aria-valuenow":R,onDragStart:e=>{var t,a;E.current=e,P.current=null!==(a=null===(t=D.current)||void 0===t?void 0:t.getBoundingClientRect().width)&&void 0!==a?a:B.current,$.current=F()},onDrag:(e,t)=>{const a=t?F():$.current;if(t){const t=Math.max(V,Math.min(a,B.current+e));return void(t!==B.current&&(Y(t),tj(z.current,{current:t,max:a})))}if(!D.current)return;const n=e-E.current,i=Math.max(V,Math.min(a,P.current+("end"===M?-n:n)));Math.round(i)!==Math.round(B.current)&&(Y(i),tj(z.current,{current:Math.round(i),max:a}))},onDragEnd:()=>W(B.current),onDoubleClick:()=>{const e=H();Y(e),tj(z.current,{current:e}),W(e)}}):null})]}))}Hj.displayName="PageLayout.Pane";var Wj=tt(Hj);const Gj=Object.assign(Oj,{Header:KN,Content:Lj,Pane:Wj,Sidebar:Nj,Footer:_N}),qj=Xe("page-sidebar",{variants:{width:{small:"page-sidebar-width-small",medium:"page-sidebar-width-medium",large:"page-sidebar-width-large"},position:{start:"page-sidebar-start",end:"page-sidebar-end"},padding:{none:"page-sidebar-padding-none",condensed:"page-sidebar-padding-condensed",normal:"page-sidebar-padding-normal",spacious:"page-sidebar-padding-spacious"},gap:{none:"page-sidebar-gap-none",condensed:"page-sidebar-gap-condensed",normal:"page-sidebar-gap-normal",spacious:"page-sidebar-gap-spacious"},sticky:{true:"page-sidebar-sticky",false:""},hasBorder:{true:"",false:""}},compoundVariants:[{hasBorder:!0,position:"start",class:"page-sidebar-border-start"},{hasBorder:!0,position:"end",class:"page-sidebar-border-end"}]});function Kj(e,t){const a=e,{as:n="aside",className:i,position:r="start",width:o="medium",padding:l="normal",gap:c="normal",sticky:d,hasBorder:u}=a,m=s(a,["as","className","position","width","padding","gap","sticky","hasBorder"]);return f.jsx(n,Object.assign({ref:t,className:et(qj({width:o,position:r,padding:l,gap:c,sticky:d,hasBorder:u}),i),"data-component":"PageSidebar","data-position":r,"data-width":o,"data-padding":l,"data-gap":c,"data-sticky":d?"":void 0,"data-has-border":u?"":void 0},m))}Kj.displayName="PageSidebar";var Uj=tt(Kj);const Yj=["narrow","regular","wide"],Zj="hidden",Qj={narrow:"hidden-narrow",regular:"hidden-regular",wide:"hidden-wide"},Xj=e=>{return a=Zj,n=Qj,(t=e).length===Yj.length?a:t.map(e=>n[e]);var t,a,n},Jj=e=>e.length>0?e.join(" "):void 0;var ek=tt(function(e,t){const a=e,{as:n="div",className:i,hidden:r}=a,o=s(a,["as","className","hidden"]),l=((e=!1)=>"boolean"==typeof e?e?[...Yj]:[]:Yj.filter(t=>e[t]))(r);return f.jsx(n,Object.assign({ref:t,className:et(i,Xj(l)),"data-hidden":Jj(l)},o))});const tk="page-sidebar-actions";function ak(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(tk,a),"data-component":"PageSidebar.Actions"},n))}ak.displayName="PageSidebar.Actions";var nk=tt(ak);const ik="page-sidebar-content";function rk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(ik,a),"data-component":"PageSidebar.Content"},n))}rk.displayName="PageSidebar.Content";var ok=tt(rk);const sk="page-sidebar-footer";function lk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(sk,a),"data-component":"PageSidebar.Footer"},n))}lk.displayName="PageSidebar.Footer";var ck=tt(lk);const dk="page-sidebar-header";function uk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(dk,a),"data-component":"PageSidebar.Header"},n))}uk.displayName="PageSidebar.Header";var mk=tt(uk);const pk="block";function hk(e,t){const{className:a,as:n="div","aria-label":i,"aria-labelledby":r}=e,o=s(e,["className","as","aria-label","aria-labelledby"]),l="nav"===n;return f.jsx(ek,Object.assign({ref:t,as:n,"aria-label":l?i:void 0,"aria-labelledby":l?r:void 0,className:et(pk,a),"data-component":"PageSidebar.Navigation"},o))}hk.displayName="PageSidebar.Navigation";var gk=tt(hk);const fk="page-sidebar-section";function vk(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx(ek,Object.assign({ref:t,className:et(fk,a),"data-component":"PageSidebar.Section"},n))}vk.displayName="PageSidebar.Section";var bk=tt(vk);const xk="page-sidebar-title";function yk(e,t){const{className:a,as:n="h2"}=e,i=s(e,["className","as"]);return f.jsx(ek,Object.assign({ref:t,as:n,className:et(xk,a),"data-component":"PageSidebar.Title"},i))}yk.displayName="PageSidebar.Title";var wk=tt(yk);const Nk=Object.assign(Uj,{Header:mk,Title:wk,Actions:nk,Content:ok,Navigation:gk,Section:bk,Footer:ck}),jk=["narrow","regular","wide"],kk={root:"pagination",steps:"pagination-steps",hidden:{narrow:"pagination-hidden-narrow",regular:"pagination-hidden-regular",wide:"pagination-hidden-wide"}},Ck=Xe("pagination-step",{variants:{step:{previous:"pagination-step-previous",next:"pagination-step-next"},current:{true:"pagination-step-current",false:""},inert:{true:"pagination-step-inert",false:""}}}),Sk=({page:e,children:t})=>f.jsxs(f.Fragment,{children:["previous"===e.type?f.jsx(xt,{"data-component":"Pagination.PreviousPageIcon"}):null,t,"next"===e.type?f.jsx(yt,{"data-component":"Pagination.NextPageIcon"}):null]}),Ok=e=>`#${e}`;function Mk(e,t){const a=e,{as:n="nav",className:i,pageCount:r,currentPage:l,onPageChange:c,hrefBuilder:d=Ok,marginPageCount:u=1,surroundingPageCount:m=2,showPages:p=!0,renderPage:h}=a,g=s(a,["as","className","pageCount","currentPage","onPageChange","hrefBuilder","marginPageCount","surroundingPageCount","showPages","renderPage"]),v=o.useMemo(()=>Pg(r,l,Boolean(p),u,m),[r,l,p,u,m]),b=(e=>"object"==typeof e?jk.filter(t=>!1===e[t]):e?[]:[...jk])(p),x=v.map(e=>{const{key:t,content:a,presentational:n,props:i}=$g(e,d,t=>null==c?void 0:c(t,e.num)),r="previous"===e.type||"next"===e.type,o=Boolean(n)||Boolean(i["aria-hidden"]),s=et(Ck({step:r?e.type:void 0,current:e.selected,inert:o}));if(h&&!n)return h(Object.assign({key:t,children:f.jsx(Sk,{page:e,children:a}),number:e.num,className:s,"data-component":"Pagination.Page"},i));const l=n?"span":"a",u=r?"previous"===e.type?"Pagination.PreviousPage":"Pagination.NextPage":"Pagination.Page";return f.jsx(l,Object.assign({role:n?"presentation":void 0,className:s,"data-component":u},i,{children:f.jsx(Sk,{page:e,children:a})}),t)});return f.jsx(n,Object.assign({ref:t,"aria-label":"Pagination",className:et(kk.root,i),"data-component":"Pagination"},g,{children:f.jsx("div",{className:et(kk.steps,b.map(e=>kk.hidden[e])),"data-hidden-viewport-ranges":b.join(" ")||void 0,children:x})}))}Mk.displayName="Pagination";var Ak=tt(Mk);const Tk="placeholder";function Ik(e,t){const a=e,{as:n="div",className:i,width:r,height:o,label:l,style:c,children:d}=a,u=s(a,["as","className","width","height","label","style","children"]);return f.jsx(n,Object.assign({ref:t,className:et(Tk,i),style:Object.assign(Object.assign({},c),{"--placeholder-width":r,"--placeholder-height":o}),"data-component":"Placeholder"},u,{children:null!=d?d:l}))}Ik.displayName="Placeholder";var Dk=tt(Ik);const Lk=Xe("progress-bar-item",{variants:{variant:{accent:"progress-bar-item-accent",attention:"progress-bar-item-attention",danger:"progress-bar-item-danger",done:"progress-bar-item-done",neutral:"progress-bar-item-neutral",severe:"progress-bar-item-severe",sponsors:"progress-bar-item-sponsors",success:"progress-bar-item-success"},animated:{true:"motion-safe:shimmer",false:""}}});function zk(e,t){const a=e,{as:n="span",className:i,progress:r=0,variant:o="success",animated:l,style:c,"aria-valuenow":d}=a,u=s(a,["as","className","progress","variant","animated","style","aria-valuenow"]);return f.jsx(n,Object.assign({ref:t,role:"progressbar","aria-valuenow":null!=d?d:Math.round(Math.max(r,0)),"aria-valuemin":0,"aria-valuemax":100,className:et(Lk({variant:o,animated:l}),i),style:Object.assign(Object.assign({},c),{"--progress-bar-item-width":`${r}%`}),"data-component":"ProgressBar.Item","data-variant":o,"data-animated":l},u))}zk.displayName="ProgressBar.Item";var Ek=tt(zk);const Pk=Xe("progress-bar",{variants:{size:{small:"progress-bar-small",medium:"progress-bar-medium",large:"progress-bar-large"},inline:{true:"progress-bar-inline",false:""}}});function $k(e,t){const a=e,{as:n="span",className:i,progress:r,size:l="medium",variant:c="success",inline:d,animated:u,children:m,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g}=a,v=s(a,["as","className","progress","size","variant","inline","animated","children","aria-label","aria-valuenow","aria-valuetext"]);if(m&&r)throw new Error("Pass either `progress` or children to ProgressBar, not both.");const b=o.Children.toArray(m).length>0;return f.jsx(n,Object.assign({ref:t,className:et(Pk({size:l,inline:d}),i),"data-component":"ProgressBar","data-size":l,"data-inline":d},v,{children:b?m:f.jsx(Ek,{progress:r,variant:c,animated:u,"aria-label":p,"aria-valuenow":h,"aria-valuetext":g})}))}$k.displayName="ProgressBar";var Rk=tt($k);const Bk=Object.assign(Rk,{Item:Ek}),Vk="radio-group-caption";function _k(e,t){const{className:a}=e,n=s(e,["className"]),{captionId:i}=o.useContext(Cb);return f.jsx("span",Object.assign({ref:t,id:i,className:et(Vk,a),"data-component":"RadioGroup.Caption"},n))}_k.displayName="RadioGroup.Caption";var Fk=tt(_k);const Hk="radio-group-label",Wk="radio-group-label-disabled",Gk="sr-only",qk="radio-group-label-required";function Kk(e,t){const{className:a,children:n,visuallyHidden:i}=e,r=s(e,["className","children","visuallyHidden"]),{disabled:l,required:c}=o.useContext(Cb);return f.jsxs("span",Object.assign({ref:t,title:c?"required field":void 0,className:et(Hk,l&&Wk,i&&Gk,a),"data-component":"RadioGroup.Label","data-label-disabled":l},r,{children:[n,c?f.jsx("span",{className:qk,children:"*"}):null]}))}Kk.displayName="RadioGroup.Label";var Uk=tt(Kk);const Yk={success:ft,error:Ot},Zk="radio-group-validation-icon",Qk=Xe("radio-group-validation",{variants:{variant:{success:"radio-group-validation-success",error:"radio-group-validation-error"}}});function Xk(e,t){const{className:a,children:n,variant:i}=e,r=s(e,["className","children","variant"]),{validationMessageId:l}=o.useContext(Cb),c=Yk[i];return f.jsxs("span",Object.assign({ref:t,className:et(Qk({variant:i}),a),"data-component":"RadioGroup.Validation","data-validation-status":i},r,{children:[f.jsx(c,{className:Zk,"aria-hidden":"true"}),f.jsx("span",{id:l,children:n})]}))}Xk.displayName="RadioGroup.Validation";var Jk=tt(Xk);const eC="radio-group",tC="radio-group-legend",aC="radio-group-legend-visible",nC="radio-group-body",iC="radio-group-validation-slot",rC="sr-only";function oC(e,t){const a=e,{as:n="fieldset",className:i,children:r,name:l,disabled:c,required:d,onChange:u,id:m,"aria-labelledby":p}=a,h=s(a,["as","className","children","name","disabled","required","onChange","id","aria-labelledby"]),[g,v]=va(r,{label:Uk,caption:Fk,validation:Jk}),b=Jt(m),x=g.caption?`${b}-caption`:void 0,y=g.validation?`${b}-validation`:void 0,w=!!o.isValidElement(g.label)&&!g.label.props.visuallyHidden,N={name:l,disabled:c,required:d,captionId:x,validationMessageId:y,onChange:e=>{const{value:t,checked:a}=e.currentTarget;a&&(null==u||u(t,e))}};return f.jsx(Cb.Provider,{value:N,children:f.jsxs(n,Object.assign({ref:t,id:b,disabled:c,"aria-labelledby":g.label?void 0:p,"aria-describedby":[y,x].filter(Boolean).join(" ")||void 0,className:et(eC,i),"data-component":"RadioGroup","data-disabled":c,"data-required":d},h,{children:[g.label?f.jsxs("legend",{className:et(tC,w&&aC),children:[g.label,d?f.jsx("span",{className:rC,children:", required"}):null,g.caption]}):g.caption,f.jsx("div",{className:nC,children:v}),g.validation?f.jsx("div",{className:iC,children:g.validation}):null]}))})}oC.displayName="RadioGroup";var sC=tt(oC);const lC=Object.assign(sC,{Label:Uk,Caption:Fk,Validation:Jk}),cC=1e3,dC=6e4,uC=36e5,mC=24*uC,pC=7*mC,hC=30*mC,gC=12*hC,fC="P30D",vC="on",bC=30*mC,xC=[{unit:"year",length:gC},{unit:"month",length:hC},{unit:"week",length:pC},{unit:"day",length:mC},{unit:"hour",length:uC},{unit:"minute",length:dC},{unit:"second",length:cC}],yC=["year","month","day","hour","minute","second"],wC={year:"y",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"},NC=new RegExp("^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$"),jC=e=>{const t=Math.abs(e),a=xC.find(({length:e})=>t>=e),{unit:n,length:i}=null!=a?a:xC[xC.length-1];return{value:Math.sign(e)*Math.round(t/i),unit:n,length:i}},kC=e=>{const{value:t,unit:a}=jC(e);return"second"===a?"1m":`${Math.abs(t)}${wC[a]}`},CC=(e,t)=>{const a=((e,t)=>{const a=Math.abs(e),n=Math.floor(a/cC),i=Math.floor(n/60),r=Math.floor(i/60),o=Math.floor(r/24),s=Math.floor(o/30),l=Math.floor(s/12),c={year:l,month:s-12*l,day:o-30*s,hour:r-24*o,minute:i-60*r,second:n-60*i};return yC.slice(0,yC.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))})(e,t).filter(({count:e})=>e>0);return 0===a.length?`0${wC[t]}`:a.map(({unit:e,count:t})=>`${t}${wC[e]}`).join(" ")},SC=(e,t)=>{const{value:a,unit:n}=jC(e);return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(a,n)},OC=(e,t,a,n)=>new Intl.DateTimeFormat(n,((e,t,a)=>{var n,i,r;const o=e.getFullYear()===new Date(t).getFullYear();return{weekday:a.weekday,year:null!==(n=a.year)&&void 0!==n?n:o?void 0:"numeric",month:null!==(i=a.month)&&void 0!==i?i:"short",day:null!==(r=a.day)&&void 0!==r?r:"numeric",hour:a.hour,minute:a.minute,second:a.second,timeZoneName:a.timeZoneName}})(e,t,a)).format(e),MC=(e,t)=>new Intl.DateTimeFormat(t,{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e),AC=(e,t,a)=>{var n,i,r;const{format:o,tense:s,precision:l,threshold:c,prefix:d,dateOptions:u,locale:m}=a,p=e.getTime()-t;if("elapsed"===o)return{text:CC(p,l),updateDelay:null!==(i=null===(n=xC.find(({unit:e})=>e===l))||void 0===n?void 0:n.length)&&void 0!==i?i:cC};const h=null!==(r=(e=>{const t=NC.exec(e);if(!t||t.slice(1).every(e=>void 0===e))return null;const[,a,n,i,r,o,s,l]=t;return Number(null!=a?a:0)*gC+Number(null!=n?n:0)*hC+Number(null!=i?i:0)*pC+Number(null!=r?r:0)*mC+Number(null!=o?o:0)*uC+Number(null!=s?s:0)*dC+Number(null!=l?l:0)*cC})(c))&&void 0!==r?r:bC,g="auto"===s||"past"===s&&p<=0||"future"===s&&p>=0;if(Math.abs(p)<=h&&g){const{length:e}=jC(p);return{text:"micro"===o?kC(p):SC(p,m),updateDelay:e}}const f=OC(e,t,u,m),v=p-h;return{text:d?`${d} ${f}`:f,updateDelay:p<=0?null:v>0?v:p}};function TC(e,t){const a=e,{as:n="time",children:i,date:r,datetime:l,format:c="auto",tense:d="auto",precision:u="second",threshold:m=fC,prefix:p=vC,noTitle:h,weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}=a,k=s(a,["as","children","date","datetime","format","tense","precision","threshold","prefix","noTitle","weekday","year","month","day","hour","minute","second","timeZoneName"]),C=((e,t)=>{const a=null!=e?e:void 0===t?void 0:new Date(t);return a&&!Number.isNaN(a.getTime())?a:void 0})(r,l),[S,O]=o.useState(()=>Date.now()),{text:M,updateDelay:A}=C?AC(C,S,{format:c,tense:d,precision:u,threshold:m,prefix:p,dateOptions:{weekday:g,year:v,month:b,day:x,hour:y,minute:w,second:N,timeZoneName:j}}):{text:"",updateDelay:null};return o.useEffect(()=>{if(null===A)return;const e=window.setTimeout(()=>{O(Date.now())},A);return()=>{window.clearTimeout(e)}},[S,A]),f.jsx(n,Object.assign({ref:t,dateTime:null==C?void 0:C.toISOString(),title:h||!C?void 0:MC(C),"data-component":"RelativeTime","data-format":c,"data-tense":d},k,{children:null!=i?i:M}))}TC.displayName="RelativeTime";var IC=tt(TC);const DC=e.createContext({}),LC="tooltip",zC="tooltip-open motion-safe:[&:popover-open]:animate-in motion-safe:[&:popover-open]:fade-in motion-safe:[&:popover-open]:duration-100",EC="tooltip-open-polyfilled motion-safe:[&[class~=':popover-open']]:animate-in motion-safe:[&[class~=':popover-open']]:fade-in motion-safe:[&[class~=':popover-open']]:duration-100",PC="tooltip-bridge",$C="tooltip-bridge-vertical",RC="tooltip-bridge-horizontal",BC={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},VC={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},_C={short:50,medium:400,long:1200},FC=["a[href]","button:not([disabled])","summary","select","input:not([type=hidden])","textarea"],HC=e=>FC.some(t=>e.matches(t))||"button"===e.getAttribute("role");function WC(e,t){const{className:a,children:n,text:r,id:l,direction:c="s",type:d="description",delay:u="short"}=e,m=s(e,["className","children","text","id","direction","type","delay"]),p=Jt(l),h=o.Children.only(n),g=o.useRef(null),v=N(t,g),b=o.useRef(null),x=o.useRef(null),y=o.useRef(null),[w,j]=o.useState(!1),[k,C]=o.useState(c),S=()=>{null!==x.current&&(window.clearTimeout(x.current),x.current=null),null!==y.current&&(window.clearTimeout(y.current),y.current=null)};o.useEffect(()=>S,[]);const O=()=>{var e;const t=b.current,a=g.current;if(!t||!a)return;try{t.showPopover()}catch(e){return}j(!0);const{side:n,align:i}=BC[c],{top:r,left:o,anchorSide:s,anchorAlign:l}=ui(t,a,{side:n,align:i});C(null!==(e=VC[`${s}-${l}`])&&void 0!==e?e:c),t.style.top=`${r}px`,t.style.left=`${o}px`},M=()=>{var e;S(),j(!1);try{null===(e=b.current)||void 0===e||e.hidePopover()}catch(e){}};o.useEffect(()=>{const e=b.current,t=g.current;if(e&&t){if(!HC(a=t)&&!Array.from(a.childNodes).some(e=>e instanceof HTMLElement&&HC(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&HC(e))))throw new Error("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or an equivalent element instead.");var a;"undefined"==typeof window||i.isSupported()||i.apply(),e.setAttribute("popover","manual")}},[]),Zn(e=>{w&&(e.preventDefault(),M())});const A=o.useMemo(()=>({tooltipId:p}),[p]);if(!o.isValidElement(h))return null;const T=h.props,I=o.cloneElement(h,{ref:v,"aria-describedby":"description"===d?[T["aria-describedby"],p].filter(Boolean).join(" "):T["aria-describedby"],"aria-labelledby":"label"===d?p:T["aria-labelledby"],onFocus:e=>{var t;try{if(!e.target.matches(":focus-visible"))return}catch(e){}O(),null===(t=T.onFocus)||void 0===t||t.call(T,e)},onBlur:e=>{var t;M(),null===(t=T.onBlur)||void 0===t||t.call(T,e)},onMouseOverCapture:e=>{x.current=window.setTimeout(()=>{var t;null!==x.current&&(O(),null===(t=T.onMouseEnter)||void 0===t||t.call(T,e))},_C[u])},onMouseLeave:e=>{var t;M(),null===(t=T.onMouseLeave)||void 0===t||t.call(T,e)},onTouchEnd:e=>{var t;null===(t=T.onTouchEnd)||void 0===t||t.call(T,e),y.current=window.setTimeout(M,10)}});return f.jsxs(DC.Provider,{value:A,children:[I,f.jsx("span",Object.assign({ref:b,id:p,role:"description"===d?"tooltip":void 0,"aria-hidden":"true",className:et(LC,zC,EC,PC,$C,RC,a),onMouseEnter:O,onMouseLeave:M,"data-component":"Tooltip","data-direction":k},m,{children:r}))]})}WC.displayName="Tooltip";var GC=tt(WC);const qC="segmented-control-segment",KC="segmented-control-segment-separator",UC="segmented-control-segment-separator-hidden",YC="segmented-control-button",ZC="segmented-control-button-selected",QC="segmented-control-button-disabled",XC="segmented-control-content",JC="segmented-control-content-selected",eS="segmented-control-content-interactive",tS=e=>{const t=e;return o.isValidElement(e)?e:f.jsx(t,{})};function aS(e){const{component:t,className:a,children:n,selected:i,disabled:r,tooltip:o,tooltipType:l,tooltipDirection:c,"aria-disabled":d}=e,u=s(e,["component","className","children","selected","disabled","tooltip","tooltipType","tooltipDirection","aria-disabled"]),m=Boolean(r)||!0===d||"true"===d,p=f.jsx("button",Object.assign({type:"button","aria-pressed":i,"aria-disabled":m||void 0,className:et(YC,i&&ZC,m&&!i&&QC,a)},u,{children:f.jsx("span",{className:et(XC,i&&JC,!i&&!m&&eS),children:n})}));return f.jsx("li",{className:et(qC,KC,UC),"data-component":t,"data-selected":i?"":void 0,children:o?f.jsx(GC,{text:o,type:l,direction:c,children:p}):p})}aS.displayName="SegmentedControlSegment";const nS="segmented-control-visual",iS="segmented-control-visual-disabled",rS="segmented-control-text",oS="segmented-control-text-hidden",sS="segmented-control-counter";function lS(e){const{children:t,className:a,count:n,leadingVisual:i,selected:r,disabled:o,defaultSelected:l}=e,c=s(e,["children","className","count","leadingVisual","selected","disabled","defaultSelected"]);return f.jsxs(aS,Object.assign({component:"SegmentedControl.Button",className:a,selected:r,disabled:o},c,{children:[i?f.jsx("span",{className:et(nS,o&&iS),"data-component":"SegmentedControl.LeadingVisual",children:tS(i)}):null,f.jsx("span",{className:et(rS,oS),"data-component":"SegmentedControl.Text","data-text":t,children:t}),void 0!==n?f.jsx("span",{className:sS,children:f.jsx(un,{children:n})}):null]}))}lS.displayName="SegmentedControl.Button";const cS="segmented-control-icon-button",dS="segmented-control-icon-visual",uS="segmented-control-visual-disabled";function mS(e){const{"aria-label":t,className:a,description:n,icon:i,selected:r,disabled:o,tooltipDirection:l,defaultSelected:c}=e,d=s(e,["aria-label","className","description","icon","selected","disabled","tooltipDirection","defaultSelected"]);return f.jsx(aS,Object.assign({component:"SegmentedControl.IconButton",className:et(cS,a),selected:r,disabled:o,"aria-label":n?t:void 0,tooltip:null!=n?n:t,tooltipType:n?void 0:"label",tooltipDirection:l},d,{children:f.jsx("span",{className:et(dS,o&&uS),"data-component":"SegmentedControl.Icon",children:tS(i)})}))}mS.displayName="SegmentedControl.IconButton";const pS="segmented-control-dropdown",hS=Xe("segmented-control",{variants:{size:{small:"segmented-control-small",medium:""}}}),gS=e=>e.type===lS,fS=e=>e.type===mS,vS=e=>{if(void 0!==e)return gS(e)?e.props.children:fS(e)?e.props["aria-label"]:void 0},bS=e=>{var t;return void 0===e?null:gS(e)?null!==(t=e.props.leadingVisual)&&void 0!==t?t:null:fS(e)?e.props.icon:null},xS=e=>{const t=e.props["aria-disabled"];return!0===e.props.disabled||!0===t||"true"===t};function yS(e){const t=e,{"aria-label":a,"aria-labelledby":n,className:i,children:r,fullWidth:l,onChange:c,size:d="medium",variant:u="default"}=t,m=s(t,["aria-label","aria-labelledby","className","children","fullWidth","onChange","size","variant"]),p=(e=>o.Children.toArray(e).filter(e=>o.isValidElement(e)))(r),h=void 0===c||p.some(e=>void 0!==e.props.defaultSelected),g=p.findIndex(e=>e.props.defaultSelected||e.props.selected),v=-1===g?0:g,[b,x]=o.useState(v),y=h?b:v,w=p[y],N=(e,t,a)=>{var n,i;xS(t)||(h&&x(e),null==c||c(e),null===(i=(n=t.props).onClick)||void 0===i||i.call(n,a))},j=f.jsx("ul",Object.assign({"aria-label":a,"aria-labelledby":n,className:et(hS({size:d}),i),"data-component":"SegmentedControl","data-size":d},Qn("full-width",l),Qn("variant",u),m,{children:p.map((e,t)=>o.cloneElement(e,{selected:t===y,onClick:a=>N(t,e,a)}))}));return Pr(u)&&Object.values(u).includes("dropdown")?f.jsxs(f.Fragment,{children:[f.jsx("div",Object.assign({className:pS,"data-component":"SegmentedControl.Dropdown"},Qn("variant",u),{children:f.jsxs(yi,{children:[f.jsx(yi.Button,{"aria-label":a&&`${vS(w)}, ${a}`,leadingVisual:bS(w),children:vS(w)}),f.jsx(yi.Overlay,{"aria-labelledby":n,children:f.jsx(Bn,{selectionVariant:"single",children:p.map((e,t)=>{const a=bS(e);return f.jsxs(Bn.Item,{selected:t===y,disabled:xS(e),onSelect:a=>N(t,e,a),children:[a?f.jsx(Bn.LeadingVisual,{children:tS(a)}):null,vS(e)]},t)})})})]})})),j]}):j}yS.displayName="SegmentedControl";const wS=Object.assign(yS,{Button:lS,IconButton:mS});function NS(e,t){return f.jsx("optgroup",Object.assign({ref:t,"data-component":"Select.OptGroup"},e))}NS.displayName="Select.OptGroup";var jS=tt(NS);function kS(e,t){return f.jsx("option",Object.assign({ref:t,"data-component":"Select.Option"},e))}kS.displayName="Select.Option";var CS=tt(kS);const SS=Object.assign(Eb,{Option:CS,OptGroup:jS});function OS(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),r=kx(i),{required:l}=r,c=s(r,["required"]),{labelId:d}=o.useContext(Kb),u=Jt();return f.jsx(vn,Object.assign({ref:t,type:"button","aria-labelledby":d?`${u} ${d}`:void 0,className:et(a),"data-component":"SelectPanel.Button"},c,{children:d?f.jsx("span",{id:u,children:n}):n}))}OS.displayName="SelectPanel.Button";var MS=tt(OS);const AS=e.createContext({}),TS="select-panel-footer",IS="select-panel-footer-without-actions",DS="select-panel-footer-content",LS="select-panel-footer-content-without-actions",zS="select-panel-footer-actions";function ES(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]),{selectionVariant:r,onCancel:l}=o.useContext(AS),c="instant"!==r;return c||n?f.jsxs("div",Object.assign({ref:t,className:et(TS,!c&&IS,a),"data-component":"SelectPanel.Footer","data-has-actions":c?"":void 0},i,{children:[f.jsx("div",{className:et(DS,!c&&LS),children:n}),c?f.jsxs("div",{className:zS,children:[f.jsx(vn,{type:"button",size:"small",onClick:l,children:"Cancel"}),f.jsx(vn,{type:"submit",size:"small",variant:"primary",children:"Save"})]}):null]})):null}ES.displayName="SelectPanel.Footer";var PS=tt(ES);const $S="select-panel-search-input";function RS(e,t){var a;const{className:n,value:i,onChange:r,onKeyDown:l}=e,c=s(e,["className","value","onChange","onKeyDown"]),{searchQuery:d,setSearchQuery:u,searchInputRef:m,moveFocusToList:p}=o.useContext(AS),h=o.useRef(null),g=N(m,h),v=N(t,g),b=null!==(a=null!=i?i:d)&&void 0!==a?a:"";return f.jsx(Nr,Object.assign({ref:v,block:!0,leadingVisual:Rt,placeholder:"Search",value:b,onChange:e=>{null==u||u(e.currentTarget.value),null==r||r(e.currentTarget.value,e)},onKeyDown:e=>{"ArrowDown"===e.key&&(e.preventDefault(),null==p||p()),null==l||l(e)},trailingAction:b?f.jsx(Nr.Action,{icon:kt,"aria-label":"Clear",onClick:()=>{var e;null==u||u(""),null==r||r("",null),null===(e=h.current)||void 0===e||e.focus()}}):void 0,className:et($S,n),"data-component":"SelectPanel.SearchInput"},c))}RS.displayName="SelectPanel.SearchInput";var BS=tt(RS);const VS="select-panel-header",_S="select-panel-header-content",FS="select-panel-header-content-with-search",HS="select-panel-header-title-row",WS="select-panel-header-title",GS="select-panel-header-heading",qS="select-panel-header-description",KS="select-panel-header-actions",US={searchInput:BS};function YS(e,t){const{className:a,children:n,onBack:i}=e,r=s(e,["className","children","onBack"]),[l,c]=va(n,US),{panelId:d,title:u,description:m,onCancel:p,onClearSelection:h}=o.useContext(AS);return f.jsxs("div",Object.assign({ref:t,className:et(VS,a),"data-component":"SelectPanel.Header"},r,{children:[f.jsxs("div",{className:et(_S,l.searchInput&&FS),"data-has-description":m?"":void 0,"data-has-search-input":l.searchInput?"":void 0,children:[f.jsxs("div",{className:HS,children:[i?f.jsx(yn,{type:"button",variant:"invisible",icon:dt,"aria-label":"Back",onClick:i,"data-component":"SelectPanel.BackButton"}):null,f.jsxs("div",{className:WS,"data-has-description":m?"":void 0,"data-has-back":i?"":void 0,children:[f.jsx(wa,{as:"h1",id:d?`${d}-title`:void 0,className:GS,children:u}),m?f.jsx("span",{id:d?`${d}-description`:void 0,className:qS,children:m}):null]})]}),f.jsxs("div",{className:KS,children:[h?f.jsx(yn,{type:"button",variant:"invisible",icon:Mt,"aria-label":"Clear selection",onClick:h,"data-component":"SelectPanel.ClearSelectionButton"}):null,f.jsx(yn,{type:"button",variant:"invisible",icon:Ct,"aria-label":"Close",onClick:p,"data-component":"SelectPanel.CloseButton"})]})]}),l.searchInput,c]}))}YS.displayName="SelectPanel.Header";var ZS=tt(YS);const QS="select-panel-form",XS="select-panel-container",JS=Xe("select-panel-backdrop",{variants:{variant:{anchored:"",modal:"select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short"},narrowVariant:{anchored:"",modal:"select-panel-backdrop-narrow-modal","full-screen":"","bottom-sheet":"select-panel-backdrop-narrow-bottom-sheet"}}}),eO=Xe("select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short",{variants:{width:{small:"select-panel-width-small",medium:"select-panel-width-medium",large:"select-panel-width-large",xlarge:"select-panel-width-xlarge",auto:"select-panel-width-auto"},maxHeight:{small:"select-panel-max-height-small",medium:"select-panel-max-height-medium",large:"select-panel-max-height-large",xlarge:"select-panel-max-height-xlarge","fit-content":"select-panel-max-height-fit-content"},variant:{anchored:"select-panel-anchored",modal:""},narrowVariant:{anchored:"select-panel-narrow-anchored",modal:"select-panel-narrow-modal","full-screen":"select-panel-narrow-full-screen","bottom-sheet":"select-panel-narrow-bottom-sheet"},unplaced:{true:"invisible",false:""}}}),tO={regular:"anchored",narrow:"full-screen"},aO=e=>o.isValidElement(e)&&e.type===MS;function nO(e,t){var a,n,i,r,l,c;const{className:d,children:u,title:m,description:p,variant:h=tO,selectionVariant:g="multiple",id:v,defaultOpen:b=!1,open:x,anchorRef:y,side:w="outside-bottom",align:j="start",onCancel:k,onClearSelection:C,onSubmit:S,width:O="medium",maxHeight:M="large"}=e,A=s(e,["className","children","title","description","variant","selectionVariant","id","defaultOpen","open","anchorRef","side","align","onCancel","onClearSelection","onSubmit","width","maxHeight"]),T=Jt(v),I=o.useRef(null),D=null!=y?y:I,L=o.useRef(null),z=N(t,L),E=o.useRef(null),P=void 0!==x,[$,R]=o.useState(b),B=P?x:$,V=o.useCallback(()=>{P||R(!1)},[P]),_=o.useCallback(()=>{V(),null==k||k()},[V,k]),F=o.useCallback(()=>null==C?void 0:C(),[C]),H=o.useCallback(e=>{null==e||e.preventDefault(),V(),null==S||S(e)},[V,S]),W=o.useCallback(()=>{var e,t;null===(t=null===(e=L.current)||void 0===e?void 0:e.querySelector('[role="option"]'))||void 0===t||t.focus()},[]),G=o.useCallback(()=>{"instant"===g&&H()},[g,H]),[q,K]=o.useState(""),U=o.Children.toArray(u),Y=U.find(aO),[Z,Q]=va(U.filter(e=>e!==Y),{header:ZS,footer:PS}),X=null==Y?void 0:Y.props.onClick,J=Y?o.cloneElement(Y,{ref:D,onClick:e=>{null==X||X(e),e.defaultPrevented||(B?_():P||R(!0))},"aria-haspopup":!0,"aria-expanded":B}):null,ee=Object.assign(Object.assign({},tO),"string"==typeof h?{regular:h}:h),te=null!==(a=ee.regular)&&void 0!==a?a:"anchored",ae=ee.narrow,ne="anchored"===te||"anchored"===ae,ie=o.useRef(null),[re,oe]=o.useState(null),se=o.useCallback(()=>{const e=D.current,t=L.current;if(!e||!t)return;const a=ui(t,e,{side:w,align:j});ie.current&&((e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign)(ie.current,a)||(ie.current=a,oe(a))},[D,w,j]);Kn(()=>{if(!B||!ne)return ie.current=null,void oe(null);se();const e=new ResizeObserver(se);return L.current&&e.observe(L.current),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),()=>{e.disconnect(),window.removeEventListener("resize",se),window.removeEventListener("scroll",se,!0)}},[B,ne,se]),qn({containerRef:L,initialFocusRef:E,returnFocusRef:D,disabled:!B}),o.useEffect(()=>{B&&!E.current&&W()},[B,W]),Zn(e=>{B&&(e.preventDefault(),_())});const le=o.useMemo(()=>({panelId:T,title:m,description:p,selectionVariant:g,searchQuery:q,setSearchQuery:K,searchInputRef:E,onCancel:_,onClearSelection:C?F:void 0,moveFocusToList:W}),[T,m,p,g,q,_,C,F,W]),ce=o.useMemo(()=>({container:"SelectPanel",listRole:"listbox",listLabelledBy:`${T}-title`,selectionAttribute:"aria-selected",selectionVariant:"instant"===g?"single":g,afterSelect:G,enableFocusZone:!0}),[T,g,G]);return f.jsxs(f.Fragment,{children:[J,B?f.jsx(oi,{children:f.jsx("div",Object.assign({className:et(JS({variant:te,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&_()},"data-component":"SelectPanel.Backdrop"},Qn("variant",ee),{children:f.jsx("div",Object.assign({ref:z,role:"dialog","aria-modal":!0,"aria-labelledby":`${T}-title`,"aria-describedby":p?`${T}-description`:void 0,className:et(eO({width:O,maxHeight:M,variant:te,narrowVariant:ae,unplaced:ne&&!re}),d),style:{"--select-panel-top":`${null!==(n=null==re?void 0:re.top)&&void 0!==n?n:0}px`,"--select-panel-left":`${null!==(i=null==re?void 0:re.left)&&void 0!==i?i:0}px`},"data-component":"SelectPanel","data-width":O,"data-max-height":M,"data-side":null!==(r=null==re?void 0:re.anchorSide)&&void 0!==r?r:w,"data-align":null!==(l=null==re?void 0:re.anchorAlign)&&void 0!==l?l:j},Qn("variant",ee),A,{children:f.jsx("form",{className:QS,onSubmit:H,children:f.jsxs(AS.Provider,{value:le,children:[null!==(c=Z.header)&&void 0!==c?c:f.jsx(ZS,{}),f.jsx("div",{className:XS,children:f.jsx(Oa.Provider,{value:ce,children:Q})}),Z.footer]})})}))}))}):null]})}nO.displayName="SelectPanel";var iO=tt(nO);const rO="select-panel-loading",oO="select-panel-loading-text";function sO(e,t){const{className:a,children:n="Fetching items..."}=e,i=s(e,["className","children"]);return f.jsxs("div",Object.assign({ref:t,role:"status","aria-live":"polite",className:et(rO,a),"data-component":"SelectPanel.Loading"},i,{children:[f.jsx(en,{size:"medium",srText:null,role:"presentation"}),f.jsx("span",{className:oO,children:n})]}))}sO.displayName="SelectPanel.Loading";var lO=tt(sO);const cO={full:"select-panel-message-full",fullIcon:"select-panel-message-full-icon",fullTitle:"select-panel-message-full-title",fullContent:"select-panel-message-full-content",inline:"select-panel-message-inline",inlineIcon:"select-panel-message-inline-icon",variant:{warning:"select-panel-message-warning",error:"select-panel-message-error",empty:""},inlineVariant:{warning:"select-panel-message-inline-warning",error:"select-panel-message-inline-error",empty:""}};function dO(e,t){const{className:a,children:n,variant:i,size:r,title:o}=e,l=s(e,["className","children","variant","size","title"]),c="empty"!==i?{role:"status","aria-live":"polite"}:void 0;return"full"===(null!=r?r:"empty"===i?"full":"inline")?f.jsxs("div",Object.assign({ref:t,className:et(cO.full,a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"full"},c,l,{children:["empty"===i?null:f.jsx(Ht,{className:et(cO.fullIcon,cO.variant[i]),"aria-hidden":"true"}),f.jsx("span",{className:cO.fullTitle,children:o}),f.jsx("span",{className:cO.fullContent,children:n})]})):f.jsxs("div",Object.assign({ref:t,className:et(cO.inline,cO.variant[i],cO.inlineVariant[i],a),"data-component":"SelectPanel.Message","data-variant":i,"data-size":"inline"},c,l,{children:[f.jsx(Ht,{className:cO.inlineIcon,"aria-hidden":"true"}),f.jsx("div",{children:n})]}))}dO.displayName="SelectPanel.Message";var uO=tt(dO);const mO="select-panel-secondary-action-small",pO="select-panel-secondary-action-checkbox",hO="select-panel-secondary-action-box",gO=e=>{const{id:t,children:a,className:n}=e,i=s(e,["id","children","className"]),r=Jt(t);return f.jsxs("span",{className:pO,"data-component":"SelectPanel.SecondaryAction",children:[f.jsx(Pm,Object.assign({id:r,className:et(hO,n)},i)),f.jsx("label",{htmlFor:r,className:mO,children:a})]})};function fO(e){if("checkbox"===e.variant){const{variant:t}=e,a=s(e,["variant"]);return f.jsx(gO,Object.assign({},a))}if("link"===e.variant){const{variant:t,className:a}=e,n=s(e,["variant","className"]);return f.jsx(Ro,Object.assign({className:et(mO,a),"data-component":"SelectPanel.SecondaryAction"},n))}const{variant:t}=e,a=s(e,["variant"]);return f.jsx(vn,Object.assign({type:"button",size:"small",block:!0,"data-component":"SelectPanel.SecondaryAction"},a))}fO.displayName="SelectPanel.SecondaryAction";const vO=Object.assign(iO,{Button:MS,Header:ZS,SearchInput:BS,Footer:PS,SecondaryAction:fO,Loading:lO,Message:uO}),bO=Xe("separator",{variants:{orientation:{horizontal:"separator-horizontal",vertical:"separator-vertical"},variant:{subtle:"separator-subtle",default:"separator-default",emphasis:"separator-emphasis"}}});function xO(e,t){const a=e,{as:n="div",className:i,orientation:r="horizontal",variant:o="default"}=a,l=s(a,["as","className","orientation","variant"]);return f.jsx(n,Object.assign({ref:t,role:"separator","aria-orientation":r,className:et(bO({orientation:r,variant:o}),i),"data-component":"Separator","data-orientation":r,"data-variant":o},l))}xO.displayName="Separator";var yO=tt(xO);const wO=Xe("skeleton-avatar",{variants:{shape:{circle:"skeleton-avatar-circle",square:"skeleton-avatar-square"},responsive:{true:"skeleton-avatar-responsive",false:""}}});function NO(e){var{size:t=$r,shape:a="circle",className:n,style:i}=e,r=s(e,["size","shape","className","style"]);const o=Pr(t),l={"--avatar-size-regular":`${$r}px`};if(o)for(const[e,a]of Object.entries(t))void 0!==a&&(l[`--avatar-size-${e}`]=`${a}px`);else l["--avatar-size-regular"]=`${t}px`;return f.jsx(Xg,Object.assign({width:"var(--avatar-size-regular)",height:"var(--avatar-size-regular)",className:et(wO({shape:a,responsive:o}),n),style:Object.assign(Object.assign({},i),l)},r,{"data-component":"SkeletonAvatar","data-responsive":o||void 0,"data-shape":a}))}NO.displayName="SkeletonAvatar";const jO=Xe("slider",{variants:{size:{small:"slider-small",medium:"slider-medium",large:"slider-large"},orientation:{horizontal:"slider-horizontal",vertical:"slider-vertical"},block:{true:"",false:""}},compoundVariants:[{block:!0,orientation:"horizontal",class:"slider-block-horizontal"},{block:!0,orientation:"vertical",class:"slider-block-vertical"}]}),kO=(e,t,a)=>{if(a<=t)return 0;const n=(e-t)/(a-t)*100;return Math.min(Math.max(n,0),100)};function CO(e,t){const{className:a,style:n,size:i="medium",orientation:r="horizontal",block:l,min:c=0,max:d=100,step:u=1,value:m,defaultValue:p,disabled:h,onChange:g}=e,v=s(e,["className","style","size","orientation","block","min","max","step","value","defaultValue","disabled","onChange"]),b=void 0!==m,[x,y]=o.useState(()=>null!=p?p:c),w=b?m:x;return f.jsx("input",Object.assign({ref:t,type:"range",min:c,max:d,step:u,value:w,disabled:h,onChange:e=>{const t=Number(e.currentTarget.value);b||y(t),null==g||g(t,e)},className:et(jO({size:i,orientation:r,block:l}),a),style:Object.assign(Object.assign({},n),{"--slider-fill":`${kO(w,c,d)}%`}),"aria-orientation":"vertical"===r?"vertical":void 0,"data-component":"Slider","data-size":i,"data-orientation":r,"data-block":l,"data-disabled":h},v))}CO.displayName="Slider";var SO=tt(CO);const OO={open:"open",issueOpened:"open",pullOpened:"open",alertOpened:"open",closed:"done",issueClosed:"done",pullMerged:"done",alertFixed:"done",pullClosed:"closed",alertClosed:"closed",issueClosedNotPlanned:"neutral",unavailable:"neutral",archived:"neutral",pullQueued:"attention",draft:"draft",issueDraft:"draft",alertDismissed:"draft"},MO={open:null,closed:null,draft:Nt,archived:lt,unavailable:Ht,issueOpened:$t,issueClosed:ft,issueClosedNotPlanned:Pt,issueDraft:Nt,pullOpened:ht,pullClosed:kt,pullMerged:Dt,pullQueued:jt,alertOpened:Ft,alertClosed:_t,alertFixed:Bt,alertDismissed:Vt},AO={open:"",closed:"",draft:"Pull request",archived:"Archived",unavailable:"",issueOpened:"Issue",issueClosed:"Issue",issueClosedNotPlanned:"Issue, not planned",issueDraft:"Issue",pullOpened:"Pull request",pullClosed:"Pull request",pullMerged:"Pull request",pullQueued:"Pull request",alertOpened:"Alert",alertClosed:"Alert",alertFixed:"Alert",alertDismissed:"Alert"},TO=Xe("state-label",{variants:{size:{small:"state-label-small",medium:"state-label-medium"},tone:{open:"state-label-open",closed:"state-label-closed",done:"state-label-done",draft:"state-label-draft",attention:"state-label-attention",neutral:"state-label-neutral"}}}),IO=Xe("state-label-visual",{variants:{size:{small:"state-label-visual-small",medium:"state-label-visual-medium"}}});function DO(e,t){const a=e,{as:n="span",className:i,status:r,size:o="medium",children:l}=a,c=s(a,["as","className","status","size","children"]),d=MO[r],u=AO[r];return f.jsxs(n,Object.assign({ref:t,className:et(TO({size:o,tone:OO[r]}),i),"data-component":"StateLabel","data-status":r,"data-size":o},c,{children:[d?f.jsx(d,{className:et(IO({size:o})),role:u?"img":void 0,"aria-label":u||void 0,"aria-hidden":!u||void 0}):null,l]}))}DO.displayName="StateLabel";var LO=tt(DO);const zO=e.createContext(null);function EO(e){const{children:t,id:a,value:n,defaultValue:i,onChange:r}=e,s=Jt(a),l=void 0!==n,[c,d]=o.useState(i),u=l?n:c,m=o.useRef(r);Kn(()=>{m.current=r},[r]);const p=o.useMemo(()=>({groupId:s,selectedValue:u,selectTab:e=>{var t;l||d(e),null===(t=m.current)||void 0===t||t.call(m,e)}}),[s,u,l]);return f.jsx(zO.Provider,{value:p,children:t})}EO.displayName="Tabs";const PO=(...e)=>t=>{for(const a of e)if(null==a||a(t),t.defaultPrevented)break},$O=()=>{const t=e.useContext(zO);if(!t)throw new Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return t},RO=e=>{const{value:t,disabled:a}=e,n=$O(),i=n.selectedValue===t;return{selected:i,tabProps:{id:`${n.groupId}-tab-${t}`,role:"tab","aria-controls":`${n.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":!!a||void 0,tabIndex:i?0:-1,onKeyDown:e=>{" "!==e.key&&"Enter"!==e.key||n.selectTab(t)},onMouseDown:e=>{a||0!==e.button||e.ctrlKey?e.preventDefault():n.selectTab(t)},onFocus:()=>{i||a||n.selectTab(t)}}}},BO="tab",VO="tab-vertical",_O="tab-hover",FO="tab-selected",HO="tab-disabled";function WO(e,t){const{className:a,value:n,disabled:i,onKeyDown:r,onMouseDown:o,onFocus:l}=e,c=s(e,["className","value","disabled","onKeyDown","onMouseDown","onFocus"]),{selected:d,tabProps:u}=RO({value:n,disabled:i});return f.jsx("button",Object.assign({},c,u,{ref:t,type:"button",onKeyDown:PO(r,u.onKeyDown),onMouseDown:PO(o,u.onMouseDown),onFocus:PO(l,u.onFocus),className:et(BO,VO,_O,d&&FO,i&&HO,a),"data-component":"Tabs.Tab","data-value":n,"data-selected":d?"":void 0}))}WO.displayName="Tabs.Tab";var GO=tt(WO);const qO=e=>{const{"aria-label":t,"aria-labelledby":a,"aria-orientation":n,ref:i}=e,r=o.useRef(null),s=N(i,r),l=null!=n?n:"horizontal";return{tabListProps:{ref:s,role:"tablist","aria-label":t,"aria-labelledby":a,"aria-orientation":l,onKeyDown:e=>{const t=r.current;if(!t)return;const a="vertical"===l,n=a?"ArrowDown":"ArrowRight",i=a?"ArrowUp":"ArrowLeft",o="Home"===e.key||"End"===e.key,s=e.key===n?1:e.key===i?-1:0;if(0===s&&!o)return;e.preventDefault(),e.stopPropagation();const c=(e=>Array.from(e.querySelectorAll("[role='tab']:not([aria-disabled])")))(t);if(0===c.length)return;if(o)return void c["Home"===e.key?0:c.length-1].focus();const d=c.findIndex(e=>"true"===e.getAttribute("aria-selected"));c[-1===d?0:(d+s+c.length)%c.length].focus()}}}},KO="tab-list",UO="tab-list-vertical";function YO(e,t){const{className:a,onKeyDown:n,"aria-label":i,"aria-labelledby":r,"aria-orientation":o}=e,l=s(e,["className","onKeyDown","aria-label","aria-labelledby","aria-orientation"]),{tabListProps:c}=qO({"aria-label":i,"aria-labelledby":r,"aria-orientation":o,ref:t}),d="vertical"===c["aria-orientation"];return f.jsx("div",Object.assign({},l,c,{onKeyDown:PO(n,c.onKeyDown),className:et(KO,d&&UO,a),"data-component":"Tabs.List","data-orientation":c["aria-orientation"]}))}YO.displayName="Tabs.List";var ZO=tt(YO);const QO=e=>{const{value:t}=e,a=$O(),n=a.selectedValue===t;return{tabPanelProps:{id:`${a.groupId}-panel-${t}`,role:"tabpanel","aria-labelledby":`${a.groupId}-tab-${t}`,hidden:!n,"data-selected":n?"":void 0}}};function XO(e,t){const{className:a,value:n}=e,i=s(e,["className","value"]),{tabPanelProps:r}=QO({value:n});return f.jsx("div",Object.assign({},i,r,{ref:t,className:a,"data-component":"Tabs.Panel","data-value":n}))}XO.displayName="Tabs.Panel";var JO=tt(XO);const eM=Object.assign(EO,{List:ZO,Tab:GO,Panel:JO}),tM="timeline",aM="timeline-clip-start",nM="timeline-clip-end";function iM(e,t){const{className:a,clipSidebar:n}=e,i=s(e,["className","clipSidebar"]),r=(e=>!0===e||"both"===e?"both":"start"===e||"end"===e?e:void 0)(n);return f.jsx("ol",Object.assign({ref:t,role:"list",className:et(tM,("start"===r||"both"===r)&&aM,("end"===r||"both"===r)&&nM,a),"data-component":"Timeline","data-clip-sidebar":r},i))}iM.displayName="Timeline";var rM=tt(iM);const oM="timeline-actions",sM="timeline-actions-narrow";function lM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(oM,sM,a),"data-component":"Timeline.Actions"},n))}lM.displayName="Timeline.Actions";var cM=tt(lM);const dM="timeline-avatar";function uM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(dM,a),"data-component":"Timeline.Avatar"},n))}uM.displayName="Timeline.Avatar";var mM=tt(uM);const pM="timeline-badge-wrapper",hM=Xe("timeline-badge",{variants:{variant:{accent:"timeline-badge-accent",success:"timeline-badge-success",attention:"timeline-badge-attention",severe:"timeline-badge-severe",danger:"timeline-badge-danger",done:"timeline-badge-done",open:"timeline-badge-open",closed:"timeline-badge-closed",sponsors:"timeline-badge-sponsors"}}});function gM(e,t){const{className:a,variant:n}=e,i=s(e,["className","variant"]);return f.jsx("div",{className:pM,children:f.jsx("div",Object.assign({ref:t,className:et(hM({variant:n}),a),"data-component":"Timeline.Badge","data-variant":n},i))})}gM.displayName="Timeline.Badge";var fM=tt(gM);const vM="timeline-body";function bM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("div",Object.assign({ref:t,className:et(vM,a),"data-component":"Timeline.Body"},n))}bM.displayName="Timeline.Body";var xM=tt(bM);const yM="timeline-break",wM="timeline-break-before-condensed";function NM(e,t){const{className:a}=e,n=s(e,["className"]);return f.jsx("li",Object.assign({ref:t,role:"presentation",className:et(yM,wM,a),"data-component":"Timeline.Break"},n))}NM.displayName="Timeline.Break";var jM=tt(NM);const kM="timeline-item",CM="timeline-item-rail",SM="timeline-item-condensed",OM="timeline-item-condensed-badge",MM="timeline-item-condensed-avatar",AM="timeline-item-narrow";function TM(e,t){const{className:a,condensed:n}=e,i=s(e,["className","condensed"]);return f.jsx("li",Object.assign({ref:t,className:et(kM,CM,AM,n&&SM,n&&OM,n&&MM,a),"data-component":"Timeline.Item","data-timeline-item":"","data-condensed":n?"":void 0},i))}TM.displayName="Timeline.Item";var IM=tt(TM);const DM=Object.assign(rM,{Item:IM,Avatar:mM,Badge:fM,Body:xM,Break:jM,Actions:cM});let LM=[],zM=0;const EM=new Set,PM=()=>{for(const e of EM)e()},$M=e=>(EM.add(e),()=>{EM.delete(e)}),RM=()=>LM,BM=[],VM=()=>BM,_M=e=>{const t=LM.some(t=>t.id===e.id);return LM=t?LM.map(t=>t.id!==e.id?t:Object.assign(Object.assign(Object.assign({},t),e),{dismissed:!1,revision:t.revision+1})):[Object.assign(Object.assign({},e),{revision:0}),...LM],PM(),e.id},FM=e=>(LM=LM.map(t=>void 0===e||t.id===e?Object.assign(Object.assign({},t),{dismissed:!0}):t),PM(),e),HM=()=>"toast-"+ ++zM,WM=(e,t,a={})=>{var n;return _M(Object.assign(Object.assign({},a),{id:null!==(n=a.id)&&void 0!==n?n:HM(),title:t,variant:e}))},GM=(e,t)=>"function"==typeof e?e(t):e,qM=(e,t)=>WM("default",e,t),KM=Object.assign(qM,{message:qM,success:(e,t)=>WM("success",e,t),error:(e,t)=>WM("error",e,t),warning:(e,t)=>WM("warning",e,t),info:(e,t)=>WM("info",e,t),loading:(e,t)=>WM("loading",e,Object.assign({duration:1/0},t)),custom:(e,t={})=>{var a;return _M(Object.assign(Object.assign({},t),{id:null!==(a=t.id)&&void 0!==a?a:HM(),variant:"default",render:e}))},promise:(e,t,a={})=>{var n;const i=null!==(n=a.id)&&void 0!==n?n:HM();WM("loading",t.loading,Object.assign(Object.assign({},a),{id:i,duration:1/0}));const r=(e,t)=>{null!=t?WM(e,t,Object.assign(Object.assign({},a),{id:i,duration:a.duration})):FM(i)};return("function"==typeof e?e():e).then(e=>r("success",GM(t.success,e)),e=>r("error",GM(t.error,e))),i},dismiss:FM,getToasts:RM}),UM={root:"toast",animated:"motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]",grabbable:"toast-grabbable",lift:{top:"toast-lift-top",bottom:"toast-lift-bottom"},bridge:"toast-bridge",bridgeTop:"toast-bridge-top",bridgeBottom:"toast-bridge-bottom",card:"toast-card",iconColor:{default:"",success:"toast-icon-success",error:"toast-icon-error",warning:"toast-icon-warning",info:"toast-icon-info",loading:""},richColors:{default:"",success:"toast-rich-success",error:"toast-rich-error",warning:"toast-rich-warning",info:"toast-rich-info",loading:""},hidden:"opacity-0",waiting:"pointer-events-none",dragging:"select-none",body:"toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]",bodyStacked:"opacity-0",icon:"toast-icon",content:"toast-content",title:"toast-title",description:"toast-description",actions:"toast-actions"},YM={default:null,success:ft,error:Ot,warning:Ht,info:It,loading:null};function ZM(e){var t,a,n,i,r,s;const{toast:l,place:c,position:d,height:u,frontHeight:m,stackSize:p,expanded:h,visible:g,paused:v,swipeDirections:b,icons:x,defaults:y,onHeight:w}=e,{id:N,variant:j,title:k,description:C,render:S}=l,O=null!==(t=l.duration)&&void 0!==t?t:y.duration,M=null!==(a=l.dismissible)&&void 0!==a?a:y.dismissible,A=null!==(n=l.closeButton)&&void 0!==n?n:y.closeButton,T=null!==(i=l.richColors)&&void 0!==i?i:y.richColors,I=null!==(s=null!==(r=l.important)&&void 0!==r?r:y.important)&&void 0!==s&&s,D=o.useRef(null),[L,z]=o.useState(!1),[E,P]=o.useState({x:0,y:0}),[$,R]=o.useState(!1),[B,V]=o.useState(!1),_=o.useRef(null),F=Boolean(l.dismissed),H=0===c.index,W=L&&!h&&!H,G=Boolean(S),q=d.startsWith("top")?"top":"bottom",K=e=>{var t,a;l.dismissed||(FM(N),"timeout"===e?null===(t=l.onAutoClose)||void 0===t||t.call(l,l):null===(a=l.onDismiss)||void 0===a||a.call(l,l))};o.useEffect(()=>{z(!0)},[]);const U=o.useRef({revision:-1,time:O});o.useEffect(()=>{if(U.current.revision!==l.revision&&(U.current={revision:l.revision,time:O}),v||F||O===1/0)return;const e=Date.now(),t=window.setTimeout(()=>K("timeout"),Math.max(U.current.time,0));return()=>{window.clearTimeout(t),U.current.time-=Date.now()-e}},[l,O,v,F]),o.useEffect(()=>{if(!F)return;const e=window.setTimeout(()=>(e=>{LM=LM.filter(t=>t.id!==e),PM()})(N),200);return()=>{window.clearTimeout(e)}},[F,N]),Kn(()=>{const e=D.current;if(!e)return;const t=e.style.height;e.style.height="auto";const a=e.getBoundingClientRect().height;e.style.height=t,w(N,a)},[w,N,l.revision,k,C,h]);const Y=e=>b.includes(e),Z=(e,t,a)=>e<0?Y(t)?e:0:Y(a)?e:0,Q=h?"calc(var(--toast-lift) * var(--toast-offset))":"calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))",X="calc(var(--toast-lift) * -100%)",J={"--toast-index":c.index,"--toast-offset":`${c.offset}px`,"--toast-z-index":p-c.index,"--toast-height":(ee=W?m:u,ee>0?`${ee}px`:"auto"),"--toast-shift":L?!F||B?Q:H?X:h?`calc(${Q} + ${X})`:Q:X,"--toast-scale":W?Math.max(1-.05*c.index,0):1,"--toast-swipe-x":`${E.x}px`,"--toast-swipe-y":`${E.y}px`};var ee;const te=YM[j],ae=void 0!==l.icon?l.icon:null==x?void 0:x[j],ne=void 0!==ae?ae:"loading"===j?f.jsx(en,{size:"small",srText:null}):te?f.jsx(te,{}):null,ie=(e,t,a)=>(e=>"object"==typeof e&&null!==e&&"label"in e&&!o.isValidElement(e))(e)?f.jsx(vn,{size:"small",variant:a,onClick:a=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,a),a.defaultPrevented||K(t)},"data-component":"Toast."+("action"===t?"Action":"Cancel"),children:e.label}):e,re=void 0!==l.action||void 0!==l.cancel;return f.jsx("li",{ref:D,role:I?"alert":"status","aria-live":I?"assertive":"polite","aria-atomic":"true",className:et(UM.root,UM.lift[q],UM.bridge,"top"===q?UM.bridgeTop:UM.bridgeBottom,M&&UM.grabbable,!G&&UM.card,!G&&UM.iconColor[j],!G&&T&&UM.richColors[j],(!L||F||!g)&&UM.hidden,!g&&UM.waiting,$?UM.dragging:UM.animated,y.className,l.className),style:J,"data-component":"Toast","data-variant":j,"data-position":d,"data-mounted":L,"data-removed":F,"data-front":H,"data-expanded":h,"data-stacked":W,"data-visible":g,"data-dragging":$,"data-swiped-out":B,"data-rich-colors":T||void 0,onPointerDown:e=>{var t,a;M&&0===e.button&&!e.target.closest("button")&&(_.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},null===(a=(t=e.currentTarget).setPointerCapture)||void 0===a||a.call(t,e.pointerId),R(!0))},onPointerMove:e=>{const t=_.current;t&&t.pointerId===e.pointerId&&P({x:Z(e.clientX-t.x,"left","right"),y:Z(e.clientY-t.y,"top","bottom")})},onPointerUp:e=>{const t=_.current;if(!t||t.pointerId!==e.pointerId)return;if(_.current=null,R(!1),Math.max(Math.abs(E.x),Math.abs(E.y))<45)return void P({x:0,y:0});const a=e.currentTarget.getBoundingClientRect(),n=(e,t)=>0===e?0:Math.sign(e)*(t+32);P({x:n(E.x,a.width),y:n(E.y,a.height)}),V(!0),K("swipe")},onPointerCancel:()=>{_.current=null,R(!1),P({x:0,y:0})},children:G?null==S?void 0:S(l):f.jsxs("div",{className:et(UM.body,W&&UM.bodyStacked),"data-component":"Toast.Body",children:[null===ne?null:f.jsx("span",{className:UM.icon,"aria-hidden":"true","data-component":"Toast.Icon",children:ne}),f.jsxs("div",{className:UM.content,"data-component":"Toast.Content",children:[f.jsx("div",{className:UM.title,"data-component":"Toast.Title",children:k}),void 0===C?null:f.jsx("div",{className:UM.description,"data-component":"Toast.Description",children:C})]}),re?f.jsxs("div",{className:UM.actions,"data-component":"Toast.Actions",children:[ie(l.cancel,"cancel","invisible"),ie(l.action,"action","default")]}):null,A&&M?f.jsx(yn,{icon:Ct,"aria-label":"Close",variant:"invisible",size:"small",onClick:()=>K("close-button"),"data-component":"Toast.CloseButton"}):null]})})}ZM.displayName="Toast";const QM=Xe("toaster z-popover",{variants:{position:{"top-left":"toaster-top-left","top-center":"toaster-top-center","top-right":"toaster-top-right","bottom-left":"toaster-bottom-left","bottom-center":"toaster-bottom-center","bottom-right":"toaster-bottom-right"}}}),XM=4e3,JM=3,eA=14,tA=24,aA=16,nA=356,iA=["altKey","KeyT"],rA=e=>"number"==typeof e?`${e}px`:e,oA=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),sA=()=>"hidden"===document.visibilityState,lA=()=>!1;function cA(e,t){var a;const{position:n="bottom-right",expand:i=!1,visibleToasts:r=JM,toastOptions:l,duration:c=XM,closeButton:d=!1,richColors:u=!1,gap:m=eA,offset:p=tA,mobileOffset:h=aA,width:g=nA,hotkey:v=iA,swipeDirections:b,icons:x,containerAriaLabel:y="Notifications",className:w,style:j}=e,k=s(e,["position","expand","visibleToasts","toastOptions","duration","closeButton","richColors","gap","offset","mobileOffset","width","hotkey","swipeDirections","icons","containerAriaLabel","className","style"]),C=o.useSyncExternalStore($M,RM,VM),S=o.useSyncExternalStore(oA,sA,lA),O=o.useRef(null),M=N(t,O),[A,T]=o.useState({}),[I,D]=o.useState(!1),L=i||I,z=o.useCallback((e,t)=>{T(a=>a[e]===t?a:Object.assign(Object.assign({},a),{[e]:t}))},[]);o.useEffect(()=>{T(e=>{const t=Object.keys(e).filter(e=>C.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[C]);const E=C.filter(e=>!e.dismissed),P=new Map;let $=0;E.forEach((e,t)=>{var a;P.set(e.id,{index:t,offset:$}),$+=(null!==(a=A[e.id])&&void 0!==a?a:0)+m});const R=o.useRef(P);for(const e of C)if(!P.has(e.id)){const t=R.current.get(e.id);t&&P.set(e.id,t)}R.current=P;const B=E.length>0&&null!==(a=A[E[0].id])&&void 0!==a?a:0;o.useEffect(()=>{const e=e=>{var t;const a=O.current,n=null!==a&&(document.activeElement===a||a.contains(document.activeElement));if("Escape"===e.code&&n)return void D(!1);v.every(t=>Boolean(e[t])||e.code===t)&&(D(!0),null===(t=O.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[v]);const V=Object.assign({duration:c,closeButton:d,richColors:u,dismissible:!0},l),_=null!=b?b:(e=>{const[t,a]=e.split("-"),n=[t];return"left"!==a&&"right"!==a||n.push(a),n})(n);return f.jsx(oi,{children:f.jsx("section",{"aria-label":y,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",tabIndex:-1,"data-component":"Toaster.Region",children:f.jsx("ol",Object.assign({ref:M,tabIndex:-1,className:et(QM({position:n}),w),style:Object.assign(Object.assign({},j),{"--toaster-width":rA(g),"--toaster-viewport-offset":rA(p),"--toaster-mobile-offset":rA(h),"--toaster-gap":`${m}px`}),"data-component":"Toaster","data-position":n,"data-expanded":L,onPointerEnter:()=>D(!0),onPointerLeave:()=>D(!1),onFocus:()=>D(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||D(!1)}},k,{children:C.map(e=>{var t,a;const i=null!==(t=P.get(e.id))&&void 0!==t?t:{index:0,offset:0};return f.jsx(ZM,{toast:e,place:i,position:n,height:null!==(a=A[e.id])&&void 0!==a?a:0,frontHeight:B,stackSize:C.length,expanded:L,visible:i.index<r,paused:I||S,swipeDirections:_,icons:x,defaults:V,onHeight:z},e.id)})}))})})}cA.displayName="Toaster";var dA=tt(cA);const uA=2e3,mA="toggle-switch-content",pA="sr-only",hA="toggle-switch-icon",gA=Xe("toggle-switch",{variants:{statusLabelPosition:{start:"toggle-switch-label-start",end:"toggle-switch-label-end"}}}),fA=Xe("toggle-switch-status",{variants:{statusLabelPosition:{start:"",end:"toggle-switch-status-end"}}}),vA=Xe("toggle-switch-status-label",{variants:{size:{small:"toggle-switch-status-label-small",medium:"toggle-switch-status-label-medium"},disabled:{true:"toggle-switch-status-label-disabled",false:""}}}),bA=Xe("toggle-switch-status-text",{variants:{hidden:{true:"toggle-switch-status-text-hidden",false:""}}}),xA=Xe("toggle-switch-track",{variants:{size:{small:"toggle-switch-track-small",medium:"toggle-switch-track-medium"},track:{off:"toggle-switch-track-off",on:"toggle-switch-track-on",disabled:"toggle-switch-track-disabled"}}}),yA=Xe(hA,{variants:{disabled:{true:"toggle-switch-circle-icon-disabled",false:"toggle-switch-circle-icon"},checked:{true:"translate-x-0",false:"-translate-x-full"}}}),wA=Xe(hA,{variants:{disabled:{true:"toggle-switch-line-icon-disabled",false:"toggle-switch-line-icon"},checked:{true:"translate-x-full",false:"translate-x-0"}}}),NA=Xe("toggle-switch-knob",{variants:{checked:{true:"toggle-switch-knob-checked",false:"translate-x-0"},disabled:{true:"toggle-switch-knob-disabled",false:""}}}),jA={small:12,medium:16},kA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:jA[e],height:jA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"})}),CA=({size:e})=>f.jsx("svg",{"aria-hidden":"true",width:jA[e],height:jA[e],viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"})});function SA(e,t){const{className:a,checked:n,defaultChecked:i,disabled:r,loading:l,onChange:c,onClick:d,size:u="medium",statusLabelPosition:m="start",buttonType:p="button",loadingLabel:h="Loading",loadingLabelDelay:g=uA,buttonLabelOn:v="On",buttonLabelOff:b="Off","aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","checked","defaultChecked","disabled","loading","onChange","onClick","size","statusLabelPosition","buttonType","loadingLabel","loadingLabelDelay","buttonLabelOn","buttonLabelOff","aria-labelledby","aria-describedby"]),N=void 0!==n,[j,k]=o.useState(Boolean(i)),C=N?n:j,S=!r&&!l,O=`${Jt()}-loading-label`,[M,A]=o.useState(!1);o.useEffect(()=>{if(!l)return void A(!1);const e=window.setTimeout(()=>{A(!0)},g);return()=>{window.clearTimeout(e)}},[l,g]);const T=e=>{S&&(N||k(!C),null==c||c(!C),null==d||d(e))},I=[M?O:void 0,y].filter(Boolean).join(" ");return f.jsxs("div",Object.assign({className:et(gA({statusLabelPosition:m}),a),"data-component":"ToggleSwitch","data-size":u,"data-status-label-position":m,"data-checked":C,"data-disabled":!S,"data-loading":l?"true":void 0},w,{children:[f.jsx("span",{id:O,role:"status",className:pA,children:M?h:""}),l?f.jsx("span",{className:et(fA({statusLabelPosition:m})),"data-component":"ToggleSwitch.LoadingSpinner",children:f.jsx(en,{size:"small",srText:null,role:"presentation"})}):null,f.jsxs("span",{className:et(vA({size:u,disabled:!S})),"aria-hidden":"true",onClick:T,"data-component":"ToggleSwitch.StatusText",children:[f.jsx("span",{className:et(bA({hidden:!C})),children:v}),f.jsx("span",{className:et(bA({hidden:C})),children:b})]}),f.jsxs("button",{ref:t,type:p,className:et(xA({size:u,track:S?C?"on":"off":"disabled"})),onClick:T,"aria-labelledby":x,"aria-describedby":I||void 0,"aria-pressed":C,"aria-disabled":!S,"data-component":"ToggleSwitch.SwitchButton",children:[f.jsxs("span",{className:mA,"aria-hidden":"true",children:[f.jsx("span",{className:et(yA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.LineIcon",children:f.jsx(CA,{size:u})}),f.jsx("span",{className:et(wA({disabled:!S,checked:C})),"data-component":"ToggleSwitch.CircleIcon",children:f.jsx(kA,{size:u})})]}),f.jsx("span",{className:et(NA({checked:C,disabled:!S})),"aria-hidden":"true","data-component":"ToggleSwitch.ToggleKnob"})]})]}))}SA.displayName="ToggleSwitch";var OA=tt(SA);const MA=Xe("token",{variants:{size:{small:"token-small",medium:"token-medium",large:"token-large",xlarge:"token-xlarge"},interactive:{true:"token-interactive",false:"token-static"}}}),AA="medium",TA=({as:e="span",onClick:t,onFocus:a,tabIndex:n=-1,disabled:i})=>!i&&Boolean(a||t||n>-1||"a"===e||"button"===e);function IA(e,t){const a=e,{as:n="span",className:i,size:r=AA,isSelected:o,onRemove:l,onKeyDown:c}=a,d=s(a,["as","className","size","isSelected","onRemove","onKeyDown"]),u=TA({as:n,onClick:d.onClick,onFocus:d.onFocus,tabIndex:d.tabIndex,disabled:d.disabled});return f.jsx(n,Object.assign({ref:t,onKeyDown:e=>{null==c||c(e),"Backspace"!==e.key&&"Delete"!==e.key||null==l||l()},className:et(MA({size:r,interactive:u}),i),"data-component":"Token","data-size":r,"data-interactive":u?"":void 0,"data-selected":o?"":void 0},"button"===n?{type:"button"}:{},d))}IA.displayName="TokenBase";var DA=tt(IA);const LA=Xe("token-remove-button",{variants:{size:{small:"token-remove-button-small",medium:"token-remove-button-medium",large:"token-remove-button-large",xlarge:"token-remove-button-xlarge"},raised:{true:"token-remove-button-raised",false:""}}});function zA(e){const{className:t,size:a=AA,isParentInteractive:n}=e,i=s(e,["className","size","isParentInteractive"]),r=et(LA({size:a,raised:n}),t);return n?f.jsx("span",Object.assign({"aria-hidden":"true",tabIndex:-1,className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})})):f.jsx("button",Object.assign({type:"button","aria-label":"Remove token",className:r,"data-component":"Token.RemoveButton","data-size":a},i,{children:f.jsx(Ct,{})}))}zA.displayName="Token.RemoveButton";const EA="token-text",PA="token-text-interactive";function $A(e,t){const a=e,{as:n="span",className:i,interactive:r}=a,o=s(a,["as","className","interactive"]);return f.jsx(n,Object.assign({ref:t,className:et(EA,r&&PA,i),"data-component":"Token.Text"},"button"===n?{type:"button"}:{},o))}$A.displayName="Token.Text";var RA=tt($A);const BA="sr-only",VA=Xe("token-default",{variants:{interactive:{true:"token-default-interactive",false:""},selected:{true:"token-default-selected",false:""},withRemoveButton:{true:"token-with-remove-button",false:""}}}),_A=Xe("token-visual",{variants:{size:{small:"",medium:"token-visual-medium",large:"token-visual-large",xlarge:"token-visual-xlarge"}}}),FA=e=>{if(o.isValidElement(e))return e;const t=e;return f.jsx(t,{})};function HA(e,t){const a=e,{as:n,className:i,text:r,size:o=AA,leadingVisual:l,onRemove:c,hideRemoveButton:d,isSelected:u,href:m,onClick:p}=a,h=s(a,["as","className","text","size","leadingVisual","onRemove","hideRemoveButton","isSelected","href","onClick"]),g=TA({as:n,onClick:p,onFocus:h.onFocus,tabIndex:h.tabIndex,disabled:h.disabled}),v=Boolean(c)&&!d,b=g&&v,x={as:n,href:m,onClick:p};return f.jsxs(DA,Object.assign({ref:t,size:o,isSelected:u,onRemove:c,className:et(VA({interactive:g,selected:u,withRemoveButton:v}),i),"data-has-remove-button":v?"":void 0},b?{}:x,h,{children:[l&&"small"!==o?f.jsx("span",{className:et(_A({size:o})),"data-component":"Token.LeadingVisual",children:FA(l)}):null,f.jsxs(RA,Object.assign({interactive:b},b?x:{},{children:[r,c?f.jsx("span",{className:BA,children:" (press backspace or delete to remove)"}):null]})),v?f.jsx(zA,{size:o,isParentInteractive:g,onClick:e=>{e.stopPropagation(),null==c||c()}}):null]}))}HA.displayName="Token";var WA=tt(HA);const GA="#999999",qA=(e,t,a)=>Math.max(t,Math.min(e,a)),KA=e=>qA(Math.round(e),0,100),UA=e=>{const t=e.trim();if(t.startsWith("#")){const e=t.slice(1);if(3===e.length){const[t,a,n]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}if(6===e.length){const t=parseInt(e.slice(0,2),16),a=parseInt(e.slice(2,4),16),n=parseInt(e.slice(4,6),16);return Number.isNaN(t+a+n)?null:{r:t,g:a,b:n}}return null}const a=t.match(/^rgba?\(([^)]+)\)$/i);if(!a)return null;const n=a[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(n.length<3||n.slice(0,3).some(Number.isNaN))return null;const[i,r,o]=n;return{r:i,g:r,b:o}},YA=e=>{var t;const a=null!==(t=UA(e))&&void 0!==t?t:UA(GA),{h:n,s:i,l:r}=(({r:e,g:t,b:a})=>{const n=e/255,i=t/255,r=a/255,o=Math.max(n,i,r),s=Math.min(n,i,r),l=o-s,c=(o+s)/2;if(0===l)return{h:0,s:0,l:Math.round(100*c)};const d=l/(1-Math.abs(2*c-1));let u;return u=o===n?(i-r)/l%6:o===i?(r-n)/l+2:(n-i)/l+4,u=Math.round(60*u),{h:u<0?u+360:u,s:Math.round(100*d),l:Math.round(100*c)}})(a),o=(({r:e,g:t,b:a})=>(.2126*e+.7152*t+.0722*a)/255)(a),{r:s,g:l,b:c}=a,d=qA(1/(.453-o),0,1),u=qA(100*(o-.96),0,1),m=100*(.6-o)*qA(1/(.6-o),0,1),p=KA(r+m);return{light:{background:`rgb(${s}, ${l}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(100*d)}%)`,border:`hsla(${n}deg, ${i}%, ${KA(r-25)}%, ${u})`,ring:`rgb(${s}, ${l}, ${c})`,backgroundHover:`hsl(${n}deg, ${i}%, ${KA(r-5)}%)`},dark:{background:`rgba(${s}, ${l}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${i}%, ${p}%)`,border:`hsla(${n}deg, ${i}%, ${p}%, 0.3)`,ring:`hsl(${n}deg, ${i}%, ${p}%)`,backgroundHover:`hsla(${n}deg, ${i}%, ${KA(r+10)}%, 0.3)`}}},ZA="issue-label-token",QA="issue-label-token-interactive",XA="issue-label-token-selected",JA="token-with-remove-button",eT="sr-only";function tT(e,t){const a=e,{as:n,className:i,style:r,text:l,size:c=AA,fillColor:d=GA,onRemove:u,hideRemoveButton:m,isSelected:p,href:h,onClick:g}=a,v=s(a,["as","className","style","text","size","fillColor","onRemove","hideRemoveButton","isSelected","href","onClick"]),b=o.useMemo(()=>YA(d),[d]),x=TA({as:n,onClick:g,onFocus:v.onFocus,tabIndex:v.tabIndex,disabled:v.disabled}),y=Boolean(u)&&!m,w=x&&y,N={as:n,href:h,onClick:g};return f.jsxs(DA,Object.assign({ref:t,size:c,isSelected:p,onRemove:u,className:et(ZA,x&&QA,p&&XA,y&&JA,i),style:Object.assign(Object.assign({},r),{"--issue-label-background":b.light.background,"--issue-label-foreground":b.light.foreground,"--issue-label-border":b.light.border,"--issue-label-ring":b.light.ring,"--issue-label-background-hover":b.light.backgroundHover,"--issue-label-dark-background":b.dark.background,"--issue-label-dark-foreground":b.dark.foreground,"--issue-label-dark-border":b.dark.border,"--issue-label-dark-ring":b.dark.ring,"--issue-label-dark-background-hover":b.dark.backgroundHover}),"data-component":"IssueLabelToken","data-has-remove-button":y?"":void 0},w?{}:N,v,{children:[f.jsxs(RA,Object.assign({interactive:w},w?N:{},{children:[l,u?f.jsx("span",{className:eT,children:" (press backspace or delete to remove)"}):null]})),y?f.jsx(zA,{size:c,isParentInteractive:x,onClick:e=>{e.stopPropagation(),null==u||u()}}):null]}))}tT.displayName="IssueLabelToken";var aT=tt(tT);const nT="topic-tag",iT="topic-tag-interactive",rT="topic-tag-hover";function oT(e,t){const a=e,{as:n="a",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(nT,iT,rT,i),"data-component":"TopicTag"},r))}oT.displayName="TopicTag";var sT=tt(oT);const lT="topic-tag-group";function cT(e,t){const a=e,{as:n="div",className:i}=a,r=s(a,["as","className"]);return f.jsx(n,Object.assign({ref:t,className:et(lT,i),"data-component":"TopicTag.Group"},r))}cT.displayName="TopicTag.Group";var dT=tt(cT);const uT=Object.assign(sT,{Group:dT}),mT=o.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map},scrollElementIntoView:()=>{}}),pT=o.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:"",trailingActionId:""}),hT=o.createContext(!1),gT="[role=tree]",fT="[role=treeitem]",vT=e=>{var t,a,n;const i=e.getAttribute("aria-label");if(i)return i;const r=e.getAttribute("aria-labelledby");return r?null!==(a=null===(t=document.getElementById(r))||void 0===t?void 0:t.textContent)&&void 0!==a?a:"":null!==(n=e.textContent)&&void 0!==n?n:""},bT=e=>{var t;return Boolean(null===(t=e.parentElement)||void 0===t?void 0:t.closest("[role=treeitem][aria-expanded=false]"))},xT=e=>{const t=e.querySelector(fT);return t instanceof HTMLElement?t:void 0},yT=e=>{var t;const a=null===(t=e.closest("[role=group]"))||void 0===t?void 0:t.closest(fT);return a instanceof HTMLElement?a:void 0},wT=(e,t)=>{const a=e.closest(gT);if(!a)return;const n=Array.from(a.querySelectorAll(fT)),i="next"===t?1:-1;for(let t=n.indexOf(e)+i;t>=0&&t<n.length;t+=i)if(!bT(n[t]))return n[t]},NT=(e,t)=>{var a,n;const i=(null==t?void 0:t.getBoundingClientRect().height)||32,r=null!==(n=null===(a=(e=>{let t=e.parentElement;for(;t;){const{overflowY:e}=getComputedStyle(t);if("auto"===e||"scroll"===e)return t;t=t.parentElement}})(e))||void 0===a?void 0:a.clientHeight)&&void 0!==n?n:window.innerHeight;return Math.max(Math.floor(r/i),1)},jT=(e,t)=>{const a=e.closest(gT);if(!a)return;const n=Array.from(a.querySelectorAll(fT));if(0===n.length)return;const i=NT(a,n[0].firstElementChild),r=n.indexOf(e),o=Math.floor(r/i),s=(o+("next"===t?1:-1))*i+(r-i*o);return n[Math.min(Math.max(s,0),n.length-1)]},kT={"open ArrowRight":xT,"closed ArrowLeft":yT,"end ArrowLeft":yT},CT=new Set(["ArrowLeft","ArrowRight"]),ST={ArrowUp:e=>wT(e,"previous"),ArrowDown:e=>wT(e,"next"),Backspace:yT,Home:e=>{var t;const a=null===(t=e.closest(gT))||void 0===t?void 0:t.querySelector(fT);return a instanceof HTMLElement?a:void 0},End:e=>{const t=e.closest(gT);if(!t)return;const a=Array.from(t.querySelectorAll(fT));for(let e=a.length-1;e>=0;e--)if(!bT(a[e]))return a[e]},PageUp:e=>jT(e,"previous"),PageDown:e=>jT(e,"next")},OT="[role=treeitem]",MT=({containerRef:e})=>{Kn(()=>{const t=e.current;if(!t)return;const a=e=>{var a,n,i;const r=Array.from(t.querySelectorAll(OT));if(0===r.length)return;const o=null!==(i=null!==(n=null!==(a=e instanceof HTMLElement&&t.contains(e)?e.closest(OT):null)&&void 0!==a?a:r.find(e=>0===e.tabIndex))&&void 0!==n?n:r.find(e=>"true"===e.getAttribute("aria-current")))&&void 0!==i?i:r[0];for(const e of r)e.tabIndex=e===o?0:-1};a();const n=e=>{a(e.target)},i=e=>{var a;if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;const n=null===(a=e.target)||void 0===a?void 0:a.closest(OT);if(!n||!t.contains(n))return;const i=((e,t)=>{var a,n;return CT.has(t)?null===(a=kT[`${(e=>{const t=e.getAttribute("aria-expanded");return"true"===t?"open":"false"===t?"closed":"end"})(e)} ${t}`])||void 0===a?void 0:a.call(kT,e):null===(n=ST[t])||void 0===n?void 0:n.call(ST,e)})(n,e.key);i&&(e.preventDefault(),i.focus())},r=new MutationObserver(()=>a(document.activeElement));return r.observe(t,{childList:!0,subtree:!0}),t.addEventListener("focusin",n),t.addEventListener("keydown",i),()=>{r.disconnect(),t.removeEventListener("focusin",n),t.removeEventListener("keydown",i)}},[e])},AT=({containerRef:e,onFocusChange:t})=>{const a=o.useRef(""),n=o.useRef(0),i=o.useRef(t);o.useEffect(()=>{i.current=t},[t]),o.useEffect(()=>{const t=e.current;if(!t)return;let r=null;const o=new MutationObserver(()=>{r=null});o.observe(t,{childList:!0,subtree:!0});const s=e=>{if(!e.key||e.key.length>1||" "===e.key)return;if(e.ctrlKey||e.altKey||e.metaKey)return;a.current+=e.key;const o=(null!=r||(r=Array.from(t.querySelectorAll("[role=treeitem]"))),r),s=o.findIndex(e=>e===document.activeElement),l=((e,t)=>e.map((a,n)=>e[(t+n)%e.length]))(o,Math.max(s,0)),c=1===a.current.length?l.slice(1):l,d=a.current.toLowerCase(),u=c.find(e=>vT(e).trim().toLowerCase().startsWith(d));u&&i.current(u),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{a.current=""},300),e.preventDefault(),e.stopPropagation()};return t.addEventListener("keydown",s),()=>{o.disconnect(),t.removeEventListener("keydown",s),window.clearTimeout(n.current)}},[e])},TT="tree-view",IT="tree-view-hover",DT="tree-view-coarse",LT="sr-only";function zT(e,t){var a;const{children:n,className:i,flat:r,truncate:l=!0}=e,c=s(e,["children","className","flat","truncate"]),d=o.useRef(null),u=N(t,d),[m,p]=o.useState(""),h=o.useCallback(e=>p(e),[]);MT({containerRef:d}),AT({containerRef:d,onFocusChange:e=>e.focus()});const g=o.useRef(null),v=o.useCallback(e=>{e&&(null!==g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{g.current=null,e.isConnected&&e.scrollIntoView({block:"nearest",inline:"nearest"})}))},[]);o.useEffect(()=>()=>{null!==g.current&&cancelAnimationFrame(g.current)},[]);const b=o.useRef(null);null!==(a=b.current)&&void 0!==a||(b.current=new Map);const x=o.useMemo(()=>({announceUpdate:h,expandedStateCache:b,scrollElementIntoView:v}),[h,v]);return f.jsxs(mT.Provider,{value:x,children:[f.jsx("span",{role:"status","aria-live":"polite",className:LT,"data-component":"TreeView.Announcement",children:m}),f.jsx("ul",Object.assign({ref:u,role:"tree",className:et(TT,IT,DT,i),"data-component":"TreeView","data-omit-spacer":r?"true":void 0,"data-truncate-text":l?"true":"false"},c,{children:n}))]})}zT.displayName="TreeView";var ET=o.forwardRef(zT);const PT="tree-view-directory-icon";function $T(){const{isExpanded:e}=o.useContext(pT),t=e?At:Tt;return f.jsx("span",{className:PT,"data-component":"TreeView.DirectoryIcon",children:f.jsx(t,{})})}$T.displayName="TreeView.DirectoryIcon";const RT=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"];function BT(e){const{title:t="Error",children:a,onRetry:n,onDismiss:i}=e,{itemId:r,setIsExpanded:s}=o.useContext(pT);return f.jsx("div",{onKeyDown:e=>{RT.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ErrorDialog",children:f.jsx(Jh,{title:t,confirmButtonContent:"Retry",cancelButtonContent:"Dismiss",onClose:e=>{window.setTimeout(()=>{var e;return null===(e=document.getElementById(r))||void 0===e?void 0:e.focus()}),"confirm"!==e?(s(!1),null==i||i()):null==n||n()},children:a})})}BT.displayName="TreeView.ErrorDialog";const VT="sr-only",_T=["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"],FT=e=>{if(!a.isValidElementType(e))return e;const t=e;return f.jsx(t,{})};function HT(e){const{items:t,onClose:a}=e,{itemId:n}=o.useContext(pT);return f.jsx("div",{onClick:e=>e.stopPropagation(),onKeyDown:e=>{_T.includes(e.key)&&e.stopPropagation()},"data-component":"TreeView.ActionDialog",children:f.jsx(Yf,{title:"Supplemental actions",onClose:()=>{null==a||a(),window.setTimeout(()=>{var e;return null===(e=document.getElementById(n))||void 0===e?void 0:e.focus()})},children:f.jsx(Bn,{children:t.map(({label:e,onClick:t,icon:a,count:n},i)=>f.jsxs(Bn.Item,{onSelect:t,children:[f.jsx(Bn.LeadingVisual,{children:FT(a)}),e,n?f.jsxs(Bn.TrailingVisual,{children:[n,f.jsx("span",{className:VT,children:" items"})]}):null]},i))})})})}HT.displayName="TreeView.ActionDialog";const WT="tree-view-visual",GT="sr-only",qT=(e,t)=>"function"==typeof e?e({isExpanded:t}):e,KT=e=>{const{children:t,label:a,labelId:n,className:i,"data-component":r}=e,{isExpanded:s}=o.useContext(pT);return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:n,className:GT,"aria-hidden":"true",children:a}),f.jsx("span",{className:i,"aria-hidden":"true","data-component":r,children:qT(t,s)})]})},UT="tree-view-leading-action";function YT(e){return f.jsx(KT,{label:e.label,className:UT,"data-component":"TreeView.LeadingAction",children:e.children})}function ZT(e){const{leadingVisualId:t}=o.useContext(pT);return f.jsx(KT,{label:e.label,labelId:t,className:WT,"data-component":"TreeView.LeadingVisual",children:e.children})}YT.displayName="TreeView.LeadingAction",ZT.displayName="TreeView.LeadingVisual";const QT="tree-view-sub-tree",XT="tree-view-skeleton-row",JT="tree-view-skeleton-text",eI="tree-view-muted",tI="sr-only",aI=["67%","47%","73%","64%","50%"],nI=({index:e})=>f.jsxs("span",{className:XT,style:{"--tree-view-skeleton-width":aI[e%aI.length]},"aria-hidden":"true",children:[f.jsx(NO,{size:16,shape:"square"}),f.jsx(tf,{className:JT})]}),iI=o.forwardRef(({count:e},t)=>{const a=Jt();return f.jsx(hT.Provider,{value:!0,children:f.jsx(MI,{ref:t,id:a,children:e?f.jsxs(f.Fragment,{children:[Array.from({length:e},(e,t)=>f.jsx(nI,{index:t},t)),f.jsxs("span",{className:tI,children:["Loading ",e," items"]})]}):f.jsxs(f.Fragment,{children:[f.jsx(ZT,{children:f.jsx(en,{size:"small",srText:null})}),f.jsx(dr,{className:eI,children:"Loading..."})]})})})});iI.displayName="TreeView.LoadingItem";const rI=()=>f.jsx(MI,{id:Jt(),expanded:null,children:f.jsx(dr,{className:eI,children:"No items found"})});function oI(e){const{count:t,state:a,children:n,"aria-label":i}=e,{announceUpdate:r}=o.useContext(mT),{itemId:s,isExpanded:l,isSubTreeEmpty:c,setIsSubTreeEmpty:d}=o.useContext(pT),u=o.useRef(null),m=o.useRef(null),[p,h]=o.useState(!1),[g,v]=o.useState(""),b=(e=>{const t=o.useRef(e);return o.useEffect(()=>{t.current=e},[e]),t.current})(a);return o.useEffect(()=>{void 0!==a&&"done"!==a||d(!n)},[a,n,d]),o.useEffect(()=>{var e;const t=document.getElementById(s);if(!t)return;const n=vT(t);if(v(n),"loading"===a)return void r(`${n} content loading`);if("loading"!==b||"done"!==a)return;if(r((null===(e=u.current)||void 0===e?void 0:e.childElementCount)?`${n} content loaded`:`${n} is empty`),!p)return;const i=window.setTimeout(()=>{var e;(null!==(e=xT(t))&&void 0!==e?e:t).focus()});return h(!1),()=>{window.clearTimeout(i)}},[s,a,b,p,r]),o.useEffect(()=>{const e=m.current;if(!e)return;const t=()=>h(!0),a=e=>{e.relatedTarget&&h(!1)};return e.addEventListener("focus",t),e.addEventListener("blur",a),()=>{e.removeEventListener("focus",t),e.removeEventListener("blur",a)}},[a]),l?f.jsxs("ul",{ref:u,role:"group","aria-label":i||g,className:et(QT),"data-component":"TreeView.SubTree",children:["loading"===a?f.jsx(iI,{ref:m,count:t}):n,c&&"loading"!==a?f.jsx(rI,{}):null]}):null}oI.displayName="TreeView.SubTree";const sI="tree-view-trailing-action",lI="shrink",cI="sr-only";function dI(e){const{items:t,shortcutText:a}=e,{itemId:n,trailingActionId:i}=o.useContext(pT),r=()=>{var e;null===(e=document.getElementById(n))||void 0===e||e.focus()};return f.jsxs(f.Fragment,{children:[f.jsx("span",{id:i,className:cI,children:a}),f.jsx("span",{className:sI,"aria-hidden":"true",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),"data-component":"TreeView.TrailingAction",children:t.map(({label:e,onClick:t,icon:a,count:n,className:i},o)=>n?f.jsx(GC,{text:e,children:f.jsx(vn,{variant:"invisible",leadingVisual:a,count:n,"aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(lI,i)})},o):f.jsx(yn,{icon:a,variant:"invisible","aria-label":e,"aria-hidden":"true",tabIndex:-1,onClick:t,onKeyDown:r,className:et(lI,i)},o))})]})}function uI(e){const{trailingVisualId:t}=o.useContext(pT);return f.jsx(KT,{label:e.label,labelId:t,className:WT,"data-component":"TreeView.TrailingVisual",children:e.children})}dI.displayName="TreeView.TrailingAction",uI.displayName="TreeView.TrailingVisual";const mI="tree-view-item",pI="tree-view-item-container",hI="tree-view-item-container-flat",gI="tree-view-item-container-has-leading-action",fI="tree-view-item-container-current",vI="tree-view-item-container-loading",bI="tree-view-item-spacer",xI="tree-view-item-level-lines",yI="tree-view-item-level-line",wI="tree-view-item-toggle",NI="tree-view-item-toggle-hover",jI="tree-view-item-toggle-end",kI="tree-view-item-content",CI="tree-view-item-label",SI=({level:e})=>f.jsx("span",{className:xI,children:Array.from({length:e-1},(e,t)=>f.jsx("span",{className:yI},t))});function OI(e,t){const a=e,{as:n,id:i,children:r,className:l,current:c=!1,defaultExpanded:d,expanded:u,onExpandedChange:m,onSelect:p,containIntrinsicSize:h,secondaryActions:g,"aria-label":v,"aria-labelledby":b}=a,x=s(a,["as","id","children","className","current","defaultExpanded","expanded","onExpandedChange","onSelect","containIntrinsicSize","secondaryActions","aria-label","aria-labelledby"]),{expandedStateCache:y,scrollElementIntoView:w}=o.useContext(mT),{level:N}=o.useContext(pT),j=o.useContext(hT),k=Xx(),[C,S]=(e=>va(e,{leadingAction:YT,leadingVisual:ZT,trailingVisual:uI,subTree:oI}))(r),O=Boolean(C.subTree),M=Jt(),A=Jt(),T=Jt(),I=Jt(),D=void 0!==u,[L,z]=o.useState(()=>{var e,t,a;return null!==(a=null!==(t=null===(e=y.current)||void 0===e?void 0:e.get(i))&&void 0!==t?t:d)&&void 0!==a?a:c}),E=D?!0===u:L,[P,$]=o.useState(!O),[R,B]=o.useState(!1),[V,_]=o.useState(!1),F=o.useCallback(e=>{var t;z(e),null===(t=y.current)||void 0===t||t.set(i,e),null==m||m(e)},[i,y,m]),H=o.useCallback(e=>{F(!E),null==e||e.stopPropagation()},[E,F]),W=o.useCallback(()=>{(null==g?void 0:g.length)&&(1!==g.length?_(!0):g[0].onClick())},[g]),G=`Press (${Kx(`Shift+${"apple"===k?"Meta":"Control"}+U`,k)}) for more actions.`,q=[C.leadingVisual?A:void 0,C.trailingVisual?T:void 0].filter(Boolean),K=o.useMemo(()=>({itemId:i,level:N+1,isSubTreeEmpty:P,setIsSubTreeEmpty:$,isExpanded:E,setIsExpanded:F,leadingVisualId:A,trailingVisualId:T,trailingActionId:I}),[i,N,P,E,F,A,T,I]),U=(!P||E&&O)&&null!==u?E:void 0,Y=null!=n?n:"li",Z=void 0!==n&&"li"!==n,Q=f.jsxs(Y,Object.assign({ref:t,id:i,role:"treeitem",tabIndex:-1,"aria-label":g&&v?`${v}. ${G}`:v,"aria-labelledby":v?void 0:`${b||M} ${g?I:""}`.trim(),"aria-describedby":q.length>0?q.join(" "):void 0,"aria-level":N,"aria-expanded":U,"aria-current":c?"true":void 0,"aria-selected":R?"true":"false",className:et(mI,l),"data-component":"TreeView.Item","data-has-leading-action":C.leadingAction?"":void 0,"data-loading":j?"":void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":p?p(e):H(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),F(!1);break;case"U":case"u":if(!e.shiftKey||!e.metaKey&&!e.ctrlKey)return;W()}},onClick:e=>{p?p(e):H(e),e.stopPropagation()},onAuxClick:e=>{p&&1===e.button&&p(e),e.stopPropagation()},onFocus:e=>{w(e.currentTarget.firstElementChild),B(!0),e.stopPropagation()},onBlur:()=>B(!1)},x,{children:[f.jsxs("span",{className:et(pI,hI,C.leadingAction&&gI,c&&fI,j&&vI),style:{"--tree-view-level":N,contentVisibility:h?"auto":void 0,containIntrinsicSize:h},children:[f.jsx("span",{className:bI,children:f.jsx(SI,{level:N})}),C.leadingAction,O?f.jsx("span",{className:et(wI,p&&NI,1===N&&jI),onClick:e=>{p&&H(e)},"data-component":"TreeView.Item.Toggle",children:E?f.jsx(bt,{width:12,height:12}):f.jsx(yt,{width:12,height:12})}):null,f.jsxs("span",{id:M,className:kI,children:[C.leadingVisual,f.jsx("span",{className:CI,"data-component":"TreeView.Item.Label",children:S}),C.trailingVisual]}),(null==g?void 0:g.length)?f.jsx(dI,{items:g,shortcutText:G}):null]}),C.subTree,V&&g?f.jsx(HT,{items:g,onClose:()=>_(!1)}):null]}));return f.jsx(pT.Provider,{value:K,children:Z?f.jsx("li",{role:"none",children:Q}):Q})}OI.displayName="TreeView.Item";var MI=tt(OI);const AI=Object.assign(ET,{Item:MI,SubTree:oI,LeadingAction:YT,LeadingVisual:ZT,TrailingVisual:uI,DirectoryIcon:$T,ErrorDialog:BT}),TI=125,II="truncate-text",DI="truncate-text-block",LI="inline-block align-top",zI="truncate-text-expandable";function EI(e,t){const a=e,{as:n="div",className:i,title:r,maxWidth:o=TI,inline:l,expandable:c,style:d}=a,u=s(a,["as","className","title","maxWidth","inline","expandable","style"]);return f.jsx(n,Object.assign({ref:t,title:r,className:et(II,l?LI:DI,c&&zI,i),style:Object.assign(Object.assign({},d),{"--truncate-max-width":"number"==typeof o?`${o}px`:o}),"data-component":"Truncate","data-inline":l,"data-expandable":c},u))}EI.displayName="Truncate";var PI=tt(EI);const $I=["bytes","KB","MB","GB","TB"],RI=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${$I[0]}`;let t=e,a=0;for(;t>=1024&&a<$I.length-1;)t/=1024,a+=1;return`${0===a?Math.round(t):Math.round(10*t)/10} ${$I[a]}`},BI=(e,t)=>{const a=(null!=t?t:"").split(",").map(e=>e.trim().toLowerCase()).filter(Boolean);if(0===a.length)return!0;const n=e.name.toLowerCase(),i=e.type.toLowerCase();return a.some(e=>e.startsWith(".")?n.endsWith(e):e.endsWith("/*")?i.startsWith(e.slice(0,-1)):i===e)},VI=(e,t)=>{const{accept:a,maxSize:n,multiple:i}=t,r=[],o=[];return e.forEach(e=>{BI(e,a)?void 0!==n&&e.size>n?o.push({file:e,reason:"size"}):!i&&r.length>0?o.push({file:e,reason:"count"}):r.push(e):o.push({file:e,reason:"type"})}),{accepted:r,rejected:o}},_I=e.createContext({}),FI="upload-description";function HI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{descriptionId:r}=o.useContext(_I);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(FI,a),"data-component":"Upload.Description"},i))}HI.displayName="Upload.Description";var WI=tt(HI);const GI="upload-icon";function qI(e,t){const{icon:a=pt,className:n,"aria-label":i}=e,r=s(e,["icon","className","aria-label"]);return f.jsx("span",Object.assign({ref:t,role:i?"img":void 0,"aria-label":i,"aria-hidden":!i||void 0,className:et(GI,n),"data-component":"Upload.Icon"},r,{children:f.jsx(a,{})}))}qI.displayName="Upload.Icon";var KI=tt(qI);const UI="upload-label";function YI(e,t){const{className:a,id:n}=e,i=s(e,["className","id"]),{labelId:r}=o.useContext(_I);return f.jsx("span",Object.assign({ref:t,id:null!=n?n:r,className:et(UI,a),"data-component":"Upload.Label"},i))}YI.displayName="Upload.Label";var ZI=tt(YI);const QI="upload-list";function XI(e,t){const{className:a,children:n}=e,i=s(e,["className","children"]);return 0===o.Children.toArray(n).length?null:f.jsx("ul",Object.assign({ref:t,role:"list",className:et(QI,a),"data-component":"Upload.List"},i,{children:n}))}XI.displayName="Upload.List";var JI=tt(XI);const eD="sr-only",tD=Xe("upload",{variants:{size:{small:"upload-small",medium:"upload-medium",large:"upload-large"}}}),aD=Xe("upload-zone",{variants:{dragging:{true:"upload-zone-dragging",false:""},disabled:{true:"upload-zone-disabled",false:"upload-zone-interactive"},validation:{error:"upload-zone-error",success:"upload-zone-success"}}});function nD(e,t){const{className:a,children:n,size:i="medium",accept:r,multiple:l,disabled:c,required:d,name:u,maxSize:m,validationStatus:p,onSelect:h,onReject:g,id:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":y}=e,w=s(e,["className","children","size","accept","multiple","disabled","required","name","maxSize","validationStatus","onSelect","onReject","id","aria-label","aria-labelledby","aria-describedby"]),N=o.useRef(null),j=Jt(v),k=Jt(),C=Jt(),S=o.useRef(0),[O,M]=o.useState(!1),[A,T]=va(n,{icon:KI,label:ZI,description:WI,list:JI}),I=(e,t)=>{const{accepted:a,rejected:n}=VI(e,{accept:r,maxSize:m,multiple:l});"drop"===t&&a.length>0&&((e,t)=>{if(!e||"undefined"==typeof DataTransfer)return;const a=new DataTransfer;t.forEach(e=>a.items.add(e)),e.files=a.files})(N.current,a),n.length>0&&(null==g||g(n,t)),a.length>0&&(null==h||h(a,t))},D=null!=x?x:A.label&&!b?k:void 0,L=[A.description?C:void 0,y].filter(Boolean).join(" ")||void 0;return f.jsx(_I.Provider,{value:{labelId:k,descriptionId:C},children:f.jsxs("div",Object.assign({ref:t,className:et(tD({size:i}),a),"data-component":"Upload","data-size":i,"data-disabled":c,"data-dragging":O||void 0,"data-validation":p},w,{children:[f.jsxs("label",{className:et(aD({dragging:O,disabled:Boolean(c),validation:p})),onDragEnter:e=>{c||(e.preventDefault(),S.current+=1,M(!0))},onDragOver:e=>{c||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))},onDragLeave:()=>{c||(S.current=Math.max(S.current-1,0),0===S.current&&M(!1))},onDrop:e=>{var t,a;c||(e.preventDefault(),S.current=0,M(!1),I(Array.from(null!==(a=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)&&void 0!==a?a:[]),"drop"))},"data-component":"Upload.Zone",children:[f.jsx("input",{ref:N,id:j,type:"file",name:u,accept:r,multiple:l,disabled:c,required:d,onChange:e=>{var t;I(Array.from(null!==(t=e.target.files)&&void 0!==t?t:[]),"input")},className:eD,"aria-label":b,"aria-labelledby":D,"aria-describedby":L,"aria-invalid":"error"===p||void 0,"data-component":"Upload.Input"}),A.icon,A.label,A.description]}),A.list,T]}))})}nD.displayName="Upload";var iD=tt(nD);const rD="upload-item",oD="upload-item-icon",sD="upload-item-body",lD="upload-item-heading",cD="upload-item-name",dD="upload-item-file-size",uD="upload-item-description",mD="upload-item-description-error",pD="upload-item-status",hD={success:{icon:ft,className:"upload-item-status-success"},error:{icon:Ot,className:"upload-item-status-error"}};function gD(e,t){const{className:a,name:n,fileSize:i,status:r="pending",progress:o,description:l,icon:c=St,onRemove:d,removeLabel:u,children:m}=e,p=s(e,["className","name","fileSize","status","progress","description","icon","onRemove","removeLabel","children"]),h="success"===r||"error"===r?hD[r]:void 0,g=null==h?void 0:h.icon;return f.jsxs("li",Object.assign({ref:t,className:et(rD,a),"data-component":"Upload.Item","data-status":r},p,{children:[f.jsx("span",{className:oD,"aria-hidden":"true","data-component":"Upload.Item.Icon",children:f.jsx(c,{})}),f.jsxs("span",{className:sD,children:[f.jsxs("span",{className:lD,children:[f.jsx("span",{className:cD,"data-component":"Upload.Item.Name",children:n}),void 0===i?null:f.jsx("span",{className:dD,"data-component":"Upload.Item.Size",children:RI(i)})]}),"uploading"===r?f.jsx(Bk,{progress:o,variant:"accent",size:"small",animated:!0,"aria-label":`Uploading ${n}`}):null,l?f.jsx("span",{className:et(uD,"error"===r&&mD),"data-component":"Upload.Item.Description",children:l}):null,m]}),g?f.jsx("span",{className:et(pD,null==h?void 0:h.className),"aria-hidden":"true","data-component":"Upload.Item.Status",children:f.jsx(g,{})}):null,d?f.jsx(yn,{icon:Ct,variant:"invisible",size:"small","aria-label":null!=u?u:`Remove ${n}`,onClick:d,"data-component":"Upload.Item.RemoveButton"}):null]}))}gD.displayName="Upload.Item";var fD=tt(gD);const vD=Object.assign(iD,{Icon:KI,Label:ZI,Description:WI,List:JI,Item:fD}),bD=(t,{isPropUpdateDisabled:a=!1,isEqual:n=Object.is}={})=>{const[i,r]=e.useState(t),[o,s]=e.useState(t),l=t instanceof Function?t():t;return a||n(o,l)||(s(l),r(l)),[i,r]},xD=e.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),yD=()=>e.useContext(xD),wD="(prefers-color-scheme: dark)",ND=e=>{var t;const a=null===(t=null===window||void 0===window?void 0:window.matchMedia)||void 0===t?void 0:t.call(window,wD);return null==a||a.addEventListener("change",e),()=>null==a?void 0:a.removeEventListener("change",e)},jD=()=>{var e,t;return(null===(t=null===(e=null===window||void 0===window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,wD))||void 0===t?void 0:t.matches)?"night":"day"},kD=()=>"day";function CD(e){var t,a,n,i,r,l,{children:c,className:d,contextOnly:u}=e,m=s(e,["children","className","contextOnly"]);const{colorMode:p,dayScheme:h,nightScheme:g}=yD(),[v,b]=bD(null!==(a=null!==(t=m.colorMode)&&void 0!==t?t:p)&&void 0!==a?a:"day"),[x,y]=bD(null!==(i=null!==(n=m.dayScheme)&&void 0!==n?n:h)&&void 0!==i?i:"light"),[w,N]=bD(null!==(l=null!==(r=m.nightScheme)&&void 0!==r?r:g)&&void 0!==l?l:"dark"),j=o.useSyncExternalStore(ND,jD,kD),k=((e,t)=>"auto"===e?t:e)(v,j),C=((e,t,a)=>{switch(e){case"day":case"light":return t;case"night":case"dark":return a}})(k,x,w),S=o.useMemo(()=>({colorScheme:C,colorMode:v,resolvedColorMode:k,dayScheme:x,nightScheme:w,setColorMode:b,setDayScheme:y,setNightScheme:N}),[C,v,k,x,w,b,y,N]);return u?f.jsx(xD.Provider,{value:S,children:c}):f.jsx(xD.Provider,{value:S,children:f.jsx("div",{className:d,"data-component":"ThemeProvider","data-theme":C,"data-color-mode":v,children:c})})}CD.displayName="ThemeProvider",exports.ARROW_KEY_STEP=3,exports.Accordion=sa,exports.AccordionContext=at,exports.AccordionHeader=Xt,exports.AccordionItem=aa,exports.AccordionItemContext=Wt,exports.AccordionPanel=oa,exports.ActionBar=Qi,exports.ActionBarButton=Zi,exports.ActionBarContext=wi,exports.ActionBarDivider=Oi,exports.ActionBarGroup=Ii,exports.ActionBarIconButton=zi,exports.ActionBarItemContext=Ni,exports.ActionBarMenu=Bi,exports.ActionList=Bn,exports.ActionListContainerContext=Oa,exports.ActionListContext=Na,exports.ActionListDescription=Pa,exports.ActionListDivider=Ra,exports.ActionListGroup=Ya,exports.ActionListGroupContext=Ba,exports.ActionListGroupHeading=Ga,exports.ActionListHeading=Sa,exports.ActionListItem=Pn,exports.ActionListItemContext=La,exports.ActionListLeadingVisual=on,exports.ActionListLinkItem=Rn,exports.ActionListSubItem=sn,exports.ActionListTrailingAction=kn,exports.ActionListTrailingVisual=Cn,exports.ActionMenu=yi,exports.ActionMenuAnchor=_n,exports.ActionMenuButton=Fn,exports.ActionMenuContext=Vn,exports.ActionMenuOverlay=xi,exports.Alert=er,exports.AnchoredOverlay=vi,exports.AspectRatio=nr,exports.Autocomplete=Er,exports.AutocompleteContext=ir,exports.AutocompleteDeferredInputContext=or,exports.AutocompleteInput=Sr,exports.AutocompleteInputContext=rr,exports.AutocompleteMenu=Ir,exports.AutocompleteOverlay=zr,exports.Avatar=Vr,exports.AvatarStack=Wr,exports.BAR_RADIUS=4,exports.Banner=bo,exports.BannerContext=Gr,exports.BannerDescription=Kr,exports.BannerPrimaryAction=go,exports.BannerSecondaryAction=vo,exports.BannerTitle=Zr,exports.Blankslate=Go,exports.BlankslateDescription=ko,exports.BlankslateHeading=Oo,exports.BlankslatePrimaryAction=Lo,exports.BlankslateSecondaryAction=Vo,exports.BlankslateVisual=Wo,exports.Blockquote=Uo,exports.Breadcrumbs=ps,exports.BreadcrumbsContext=Zo,exports.BreadcrumbsItem=ms,exports.Button=vn,exports.ButtonGroup=ws,exports.CHART_OVERFLOW_COLOR=Bc,exports.CHART_SERIES_COLORS=Rc,exports.Calendar=Al,exports.CalendarDay=Is,exports.Card=nc,exports.CardAction=Dl,exports.CardDescription=Pl,exports.CardHeading=Vl,exports.CardIcon=Wl,exports.CardImage=Kl,exports.CardMetadata=Zl,exports.Carousel=Dc,exports.CarouselContext=rc,exports.CarouselControls=yc,exports.CarouselIndicators=uc,exports.CarouselNextButton=pc,exports.CarouselPlayButton=gc,exports.CarouselPreviousButton=vc,exports.CarouselSlide=jc,exports.CarouselSlideContext=oc,exports.Chart=Om,exports.ChartLegend=$c,exports.ChartTooltip=rm,exports.Checkbox=Pm,exports.CheckboxGroup=rp,exports.CheckboxGroupCaption=Bm,exports.CheckboxGroupContext=Mm,exports.CheckboxGroupLabel=Gm,exports.CheckboxGroupValidation=Zm,exports.Collapsible=kp,exports.CollapsibleContent=pp,exports.CollapsibleContext=op,exports.CollapsibleTrigger=jp,exports.CommandPalette=hh,exports.CommandPaletteContext=Op,exports.CommandPaletteDialog=Vp,exports.CommandPaletteEmpty=Hp,exports.CommandPaletteGroup=Up,exports.CommandPaletteGroupContext=Mp,exports.CommandPaletteInput=Qp,exports.CommandPaletteItem=nh,exports.CommandPaletteList=sh,exports.CommandPaletteLoading=dh,exports.CommandPaletteSeparator=ph,exports.ConfirmationDialog=Jh,exports.CounterLabel=un,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=Xs,exports.DEFAULT_AVATAR_SIZE=$r,exports.DEFAULT_COLOR_MODE="day",exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=GA,exports.DEFAULT_RELATIVE_TIME_PREFIX=vC,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=fC,exports.DEFAULT_SORT_DIRECTION=kf,exports.DEFAULT_TABLE_PAGE_SIZE=Bg,exports.DEFAULT_TABLE_SKELETON_ROWS=sf,exports.DEFAULT_TEXTAREA_COLS=$b,exports.DEFAULT_TEXTAREA_RESIZE=Rb,exports.DEFAULT_TEXTAREA_ROWS=Pb,exports.DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY=uA,exports.DEFAULT_TOKEN_SIZE=AA,exports.DEFAULT_TRUNCATE_MAX_WIDTH=TI,exports.DataTable=Ef,exports.DatePicker=_f,exports.Details=Uf,exports.DetailsSummary=Kf,exports.Dialog=Yf,exports.DialogBody=wh,exports.DialogButtons=jh,exports.DialogCloseButton=Ch,exports.DialogContext=Nh,exports.DialogFooter=Ah,exports.DialogHeader=Dh,exports.DialogSubtitle=Eh,exports.DialogTitle=Rh,exports.DragHandle=oj,exports.Drawer=yv,exports.DrawerBody=Xf,exports.DrawerCloseButton=av,exports.DrawerContext=Jf,exports.DrawerFooter=rv,exports.DrawerHeader=cv,exports.DrawerSubtitle=mv,exports.DrawerTitle=gv,exports.Em=jv,exports.EmptyState=Iv,exports.FilteredActionList=kb,exports.FilteredActionListBodyLoader=ub,exports.FilteredActionListInput=Qv,exports.FilteredActionListItem=eb,exports.FormControl=Cx,exports.FormControlCaption=Qb,exports.FormControlContext=Kb,exports.FormControlLabel=nx,exports.FormControlLeadingVisual=lx,exports.FormControlValidation=px,exports.Heading=wa,exports.Hidden=Mx,exports.IconButton=yn,exports.Image=Ix,exports.InlineMessage=$x,exports.IssueLabelToken=aT,exports.KeybindingHint=oy,exports.Label=cy,exports.Link=Ro,exports.LinkButton=uy,exports.MARK_GAP=2,exports.MAX_BAR_THICKNESS=24,exports.NavList=Fy,exports.NavListGroup=jy,exports.NavListGroupExpand=Ry,exports.NavListGroupHeading=_y,exports.NavListHeading=hy,exports.NavListItem=Ey,exports.NavListSubNav=Iy,exports.PageContent=ew,exports.PageContentSection=Jy,exports.PageFooter=Aw,exports.PageFooterActions=xw,exports.PageFooterCopyright=Nw,exports.PageFooterDescription=Cw,exports.PageFooterLeadingVisual=Mw,exports.PageFooterNavigation=uw,exports.PageHeader=TN,exports.PageHeaderActions=Zw,exports.PageHeaderBreadcrumbs=Jw,exports.PageHeaderContextArea=aN,exports.PageHeaderContextAreaActions=rN,exports.PageHeaderContextBar=lN,exports.PageHeaderDescription=uN,exports.PageHeaderLeadingAction=hN,exports.PageHeaderLeadingVisual=vN,exports.PageHeaderNavigation=Vw,exports.PageHeaderParentLink=yN,exports.PageHeaderTitle=jN,exports.PageHeaderTitleArea=Hw,exports.PageHeaderTrailingAction=SN,exports.PageHeaderTrailingVisual=AN,exports.PageLayout=Gj,exports.PageLayoutContent=Lj,exports.PageLayoutContext=DN,exports.PageLayoutFooter=_N,exports.PageLayoutHeader=KN,exports.PageLayoutPane=Wj,exports.PageLayoutSidebar=Nj,exports.PageSidebar=Nk,exports.PageSidebarActions=nk,exports.PageSidebarContent=ok,exports.PageSidebarFooter=ck,exports.PageSidebarHeader=mk,exports.PageSidebarNavigation=gk,exports.PageSidebarSection=bk,exports.PageSidebarTitle=wk,exports.Pagination=Ak,exports.Placeholder=Dk,exports.PlatformContext=Ux,exports.Portal=oi,exports.PortalContext=Jn,exports.ProgressBar=Bk,exports.ProgressBarItem=Ek,exports.Radio=Tb,exports.RadioGroup=lC,exports.RadioGroupCaption=Fk,exports.RadioGroupContext=Cb,exports.RadioGroupLabel=Uk,exports.RadioGroupValidation=Jk,exports.RelativeTime=IC,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=bh,exports.SegmentedControl=wS,exports.SegmentedControlButton=lS,exports.SegmentedControlIconButton=mS,exports.Select=SS,exports.SelectOptGroup=jS,exports.SelectOption=CS,exports.SelectPanel=vO,exports.SelectPanelButton=MS,exports.SelectPanelContext=AS,exports.SelectPanelFooter=PS,exports.SelectPanelHeader=ZS,exports.SelectPanelLoading=lO,exports.SelectPanelMessage=uO,exports.SelectPanelSearchInput=BS,exports.SelectPanelSecondaryAction=fO,exports.Separator=yO,exports.SkeletonAvatar=NO,exports.SkeletonBox=Xg,exports.SkeletonText=tf,exports.Slider=SO,exports.Spinner=en,exports.Stack=sb,exports.StackItem=ob,exports.StateLabel=LO,exports.Tab=GO,exports.TabList=ZO,exports.TabPanel=JO,exports.Table=Pf,exports.TableActions=sg,exports.TableBody=ug,exports.TableCell=fg,exports.TableCellPlaceholder=xg,exports.TableContainer=jg,exports.TableDivider=Sg,exports.TableErrorDialog=Mg,exports.TableHead=Tg,exports.TableHeader=Eg,exports.TablePagination=qg,exports.TableRow=Ug,exports.TableSkeleton=cf,exports.TableSortHeader=vf,exports.TableSubtitle=yf,exports.TableTitle=jf,exports.Tabs=eM,exports.TabsContext=zO,exports.Text=dr,exports.TextInput=Nr,exports.TextInputAction=wr,exports.Textarea=qb,exports.ThemeContext=xD,exports.ThemeProvider=CD,exports.Timeline=DM,exports.TimelineActions=cM,exports.TimelineAvatar=mM,exports.TimelineBadge=fM,exports.TimelineBody=xM,exports.TimelineBreak=jM,exports.TimelineItem=IM,exports.Toaster=dA,exports.ToggleSwitch=OA,exports.Token=WA,exports.TokenBase=DA,exports.TokenRemoveButton=zA,exports.TokenText=RA,exports.Tooltip=GC,exports.TooltipContext=DC,exports.TopicTag=uT,exports.TopicTagGroup=dT,exports.TreeView=AI,exports.TreeViewDirectoryIcon=$T,exports.TreeViewErrorDialog=BT,exports.TreeViewItem=MI,exports.TreeViewItemContext=pT,exports.TreeViewLeadingAction=YT,exports.TreeViewLeadingVisual=ZT,exports.TreeViewRootContext=mT,exports.TreeViewSubTree=oI,exports.TreeViewTrailingVisual=uI,exports.Truncate=PI,exports.Upload=vD,exports.UploadContext=_I,exports.UploadDescription=WI,exports.UploadIcon=KI,exports.UploadItem=fD,exports.UploadLabel=ZI,exports.UploadList=JI,exports.buildPaginationModel=Pg,exports.buildPaginationPageData=$g,exports.commandScore=Sp,exports.createColumnHelper=()=>({column:e=>{var t;return Object.assign(Object.assign({},e),{id:null!==(t=e.id)&&void 0!==t?t:e.field})}}),exports.defaultPaneWidth=YN,exports.extendRange=ml,exports.formatFileSize=RI,exports.formatRelativeTime=AC,exports.formatTitle=MC,exports.getAccessibleKeybindingHintString=Kx,exports.getAnchoredPosition=ui,exports.getCharacterCount=ur,exports.getFirstDayOfWeek=il,exports.getIssueLabelColors=YA,exports.getMonthWeeks=sl,exports.getPlatform=Zx,exports.getRangePosition=ul,exports.getSeriesColor=Vc,exports.getWeekdays=rl,exports.isDateSelectable=ll,exports.isDateWithinRange=dl,exports.isFileAccepted=BI,exports.isTokenInteractive=TA,exports.parseDate=pl,exports.registerPortalRoot=ii,exports.sortStrategies=Mf,exports.startOfWeek=ol,exports.toDayKey=tl,exports.toast=KM,exports.transitionSortDirection=Cf,exports.triageFiles=VI,exports.updateAriaValues=tj,exports.useAnnouncements=mb,exports.useColorSchemeVar=(e,t)=>{var a;const{colorScheme:n}=yD();return null!==(a=n?e[n]:void 0)&&void 0!==a?a:t},exports.useConfirm=()=>eg,exports.useFormControlForwardedProps=kx,exports.usePaneWidth=dj,exports.usePlatform=Xx,exports.useTab=RO,exports.useTabList=qO,exports.useTabPanel=QO,exports.useTabs=$O,exports.useTheme=yD;
|