reshaped 2.10.2 → 2.10.3
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/bundle.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(T,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(T=typeof globalThis!="undefined"?globalThis:T||self,c(T.Reshaped={},T.React,T.ReactDOM))})(this,function(T,c,ge){"use strict";var wa=Object.defineProperty,ja=Object.defineProperties;var Ca=Object.getOwnPropertyDescriptors;var Cn=Object.getOwnPropertySymbols;var
|
1
|
+
(function(T,c){typeof exports=="object"&&typeof module!="undefined"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(T=typeof globalThis!="undefined"?globalThis:T||self,c(T.Reshaped={},T.React,T.ReactDOM))})(this,function(T,c,ge){"use strict";var wa=Object.defineProperty,ja=Object.defineProperties;var Ca=Object.getOwnPropertyDescriptors;var Cn=Object.getOwnPropertySymbols;var ls=Object.prototype.hasOwnProperty,as=Object.prototype.propertyIsEnumerable;var is=(T,c,ge)=>c in T?wa(T,c,{enumerable:!0,configurable:!0,writable:!0,value:ge}):T[c]=ge,p=(T,c)=>{for(var ge in c||(c={}))ls.call(c,ge)&&is(T,ge,c[ge]);if(Cn)for(var ge of Cn(c))as.call(c,ge)&&is(T,ge,c[ge]);return T},z=(T,c)=>ja(T,Ca(c));var Se=(T,c)=>{var ge={};for(var Te in T)ls.call(T,Te)&&c.indexOf(Te)<0&&(ge[Te]=T[Te]);if(T!=null&&Cn)for(var Te of Cn(T))c.indexOf(Te)<0&&as.call(T,Te)&&(ge[Te]=T[Te]);return ge};var Te={exports:{}},Mt={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.development.js
|
4
4
|
*
|
@@ -6,17 +6,17 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var Co;function
|
10
|
-
`+G+h}}var oe=!1,le;{var
|
9
|
+
*/var Co;function cs(){return Co||(Co=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),a=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function w(h){if(h===null||typeof h!="object")return null;var E=v&&h[v]||h[g];return typeof E=="function"?E:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(h){{for(var E=arguments.length,D=new Array(E>1?E-1:0),V=1;V<E;V++)D[V-1]=arguments[V];j("error",h,D)}}function j(h,E,D){{var V=y.ReactDebugCurrentFrame,Z=V.getStackAddendum();Z!==""&&(E+="%s",D=D.concat([Z]));var re=D.map(function(K){return String(K)});re.unshift("Warning: "+E),Function.prototype.apply.call(console[h],console,re)}}var C=!1,N=!1,S=!1,k=!1,$=!1,A;A=Symbol.for("react.module.reference");function M(h){return!!(typeof h=="string"||typeof h=="function"||h===o||h===s||$||h===r||h===m||h===u||k||h===b||C||N||S||typeof h=="object"&&h!==null&&(h.$$typeof===_||h.$$typeof===f||h.$$typeof===l||h.$$typeof===a||h.$$typeof===d||h.$$typeof===A||h.getModuleId!==void 0))}function q(h,E,D){var V=h.displayName;if(V)return V;var Z=E.displayName||E.name||"";return Z!==""?D+"("+Z+")":D}function O(h){return h.displayName||"Context"}function R(h){if(h==null)return null;if(typeof h.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case o:return"Fragment";case n:return"Portal";case s:return"Profiler";case r:return"StrictMode";case m:return"Suspense";case u:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case a:var E=h;return O(E)+".Consumer";case l:var D=h;return O(D._context)+".Provider";case d:return q(h,h.render,"ForwardRef");case f:var V=h.displayName||null;return V!==null?V:R(h.type)||"Memo";case _:{var Z=h,re=Z._payload,K=Z._init;try{return R(K(re))}catch(Y){return null}}}return null}var L=Object.assign,U=0,W,H,B,Q,_e,ce,Ce;function ke(){}ke.__reactDisabledLog=!0;function Me(){{if(U===0){W=console.log,H=console.info,B=console.warn,Q=console.error,_e=console.group,ce=console.groupCollapsed,Ce=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}U++}}function ee(){{if(U--,U===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},h,{value:W}),info:L({},h,{value:H}),warn:L({},h,{value:B}),error:L({},h,{value:Q}),group:L({},h,{value:_e}),groupCollapsed:L({},h,{value:ce}),groupEnd:L({},h,{value:Ce})})}U<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=y.ReactCurrentDispatcher,G;function F(h,E,D){{if(G===void 0)try{throw Error()}catch(Z){var V=Z.stack.trim().match(/\n( *(at )?)/);G=V&&V[1]||""}return`
|
10
|
+
`+G+h}}var oe=!1,le;{var me=typeof WeakMap=="function"?WeakMap:Map;le=new me}function xe(h,E){if(!h||oe)return"";{var D=le.get(h);if(D!==void 0)return D}var V;oe=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=J.current,J.current=null,Me();try{if(E){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(et){V=et}Reflect.construct(h,[],K)}else{try{K.call()}catch(et){V=et}h.call(K.prototype)}}else{try{throw Error()}catch(et){V=et}h()}}catch(et){if(et&&V&&typeof et.stack=="string"){for(var Y=et.stack.split(`
|
11
11
|
`),je=V.stack.split(`
|
12
|
-
`),de=Y.length-1,
|
13
|
-
`+Y[de].replace(" at new "," at ");return h.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",h.displayName)),typeof h=="function"&&le.set(h,qe),qe}while(de>=1&&
|
12
|
+
`),de=Y.length-1,fe=je.length-1;de>=1&&fe>=0&&Y[de]!==je[fe];)fe--;for(;de>=1&&fe>=0;de--,fe--)if(Y[de]!==je[fe]){if(de!==1||fe!==1)do if(de--,fe--,fe<0||Y[de]!==je[fe]){var qe=`
|
13
|
+
`+Y[de].replace(" at new "," at ");return h.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",h.displayName)),typeof h=="function"&&le.set(h,qe),qe}while(de>=1&&fe>=0);break}}}finally{oe=!1,J.current=re,ee(),Error.prepareStackTrace=Z}var Tt=h?h.displayName||h.name:"",ss=Tt?F(Tt):"";return typeof h=="function"&&le.set(h,ss),ss}function $e(h,E,D){return xe(h,!1)}function lt(h){var E=h.prototype;return!!(E&&E.isReactComponent)}function ze(h,E,D){if(h==null)return"";if(typeof h=="function")return xe(h,lt(h));if(typeof h=="string")return F(h);switch(h){case m:return F("Suspense");case u:return F("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case d:return $e(h.render);case f:return ze(h.type,E,D);case _:{var V=h,Z=V._payload,re=V._init;try{return ze(re(Z),E,D)}catch(K){}}}return""}var Ne=Object.prototype.hasOwnProperty,Ie={},Ae=y.ReactDebugCurrentFrame;function Ee(h){if(h){var E=h._owner,D=ze(h.type,h._source,E?E.type:null);Ae.setExtraStackFrame(D)}else Ae.setExtraStackFrame(null)}function at(h,E,D,V,Z){{var re=Function.call.bind(Ne);for(var K in h)if(re(h,K)){var Y=void 0;try{if(typeof h[K]!="function"){var je=Error((V||"React class")+": "+D+" type `"+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[K]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Y=h[K](E,K,V,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){Y=de}Y&&!(Y instanceof Error)&&(Ee(Z),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",V||"React class",D,K,typeof Y),Ee(null)),Y instanceof Error&&!(Y.message in Ie)&&(Ie[Y.message]=!0,Ee(Z),x("Failed %s type: %s",D,Y.message),Ee(null))}}}var gn=Array.isArray;function ct(h){return gn(h)}function xo(h){{var E=typeof Symbol=="function"&&Symbol.toStringTag,D=E&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}function vn(h){try{return pn(h),!1}catch(E){return!0}}function pn(h){return""+h}function xn(h){if(vn(h))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xo(h)),pn(h)}var ft=y.ReactCurrentOwner,ye={key:!0,ref:!0,__self:!0,__source:!0},he,Ue,we;we={};function Nt(h){if(Ne.call(h,"ref")){var E=Object.getOwnPropertyDescriptor(h,"ref").get;if(E&&E.isReactWarning)return!1}return h.ref!==void 0}function Qe(h){if(Ne.call(h,"key")){var E=Object.getOwnPropertyDescriptor(h,"key").get;if(E&&E.isReactWarning)return!1}return h.key!==void 0}function dt(h,E){if(typeof h.ref=="string"&&ft.current&&E&&ft.current.stateNode!==E){var D=R(ft.current.type);we[D]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',R(ft.current.type),h.ref),we[D]=!0)}}function Be(h,E){{var D=function(){he||(he=!0,x("%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://reactjs.org/link/special-props)",E))};D.isReactWarning=!0,Object.defineProperty(h,"key",{get:D,configurable:!0})}}function yn(h,E){{var D=function(){Ue||(Ue=!0,x("%s: `ref` 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://reactjs.org/link/special-props)",E))};D.isReactWarning=!0,Object.defineProperty(h,"ref",{get:D,configurable:!0})}}var wn=function(h,E,D,V,Z,re,K){var Y={$$typeof:t,type:h,key:E,ref:D,props:K,_owner:re};return Y._store={},Object.defineProperty(Y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(Y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(Y.props),Object.freeze(Y)),Y};function jn(h,E,D,V,Z){{var re,K={},Y=null,je=null;D!==void 0&&(xn(D),Y=""+D),Qe(E)&&(xn(E.key),Y=""+E.key),Nt(E)&&(je=E.ref,dt(E,Z));for(re in E)Ne.call(E,re)&&!ye.hasOwnProperty(re)&&(K[re]=E[re]);if(h&&h.defaultProps){var de=h.defaultProps;for(re in de)K[re]===void 0&&(K[re]=de[re])}if(Y||je){var fe=typeof h=="function"?h.displayName||h.name||"Unknown":h;Y&&Be(K,fe),je&&yn(K,fe)}return wn(h,Y,je,Z,V,ft.current,K)}}var yo=y.ReactCurrentOwner,Qr=y.ReactDebugCurrentFrame;function Et(h){if(h){var E=h._owner,D=ze(h.type,h._source,E?E.type:null);Qr.setExtraStackFrame(D)}else Qr.setExtraStackFrame(null)}var wo;wo=!1;function jo(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function es(){{if(yo.current){var h=R(yo.current.type);if(h)return`
|
14
14
|
|
15
15
|
Check the render method of \``+h+"`."}return""}}function fa(h){{if(h!==void 0){var E=h.fileName.replace(/^.*[\\\/]/,""),D=h.lineNumber;return`
|
16
16
|
|
17
|
-
Check your code at `+E+":"+D+"."}return""}}var
|
17
|
+
Check your code at `+E+":"+D+"."}return""}}var ts={};function ha(h){{var E=es();if(!E){var D=typeof h=="string"?h:h.displayName||h.name;D&&(E=`
|
18
18
|
|
19
|
-
Check the top-level render call using <`+D+">.")}return E}}function
|
19
|
+
Check the top-level render call using <`+D+">.")}return E}}function ns(h,E){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var D=ha(E);if(ts[D])return;ts[D]=!0;var V="";h&&h._owner&&h._owner!==yo.current&&(V=" It was passed a child from "+R(h._owner.type)+"."),Et(h),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,V),Et(null)}}function os(h,E){{if(typeof h!="object")return;if(ct(h))for(var D=0;D<h.length;D++){var V=h[D];jo(V)&&ns(V,E)}else if(jo(h))h._store&&(h._store.validated=!0);else if(h){var Z=w(h);if(typeof Z=="function"&&Z!==h.entries)for(var re=Z.call(h),K;!(K=re.next()).done;)jo(K.value)&&ns(K.value,E)}}}function ba(h){{var E=h.type;if(E==null||typeof E=="string")return;var D;if(typeof E=="function")D=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===d||E.$$typeof===f))D=E.propTypes;else return;if(D){var V=R(E);at(D,h.props,"prop",V,h)}else if(E.PropTypes!==void 0&&!wo){wo=!0;var Z=R(E);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ga(h){{for(var E=Object.keys(h.props),D=0;D<E.length;D++){var V=E[D];if(V!=="children"&&V!=="key"){Et(h),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),Et(null);break}}h.ref!==null&&(Et(h),x("Invalid attribute `ref` supplied to `React.Fragment`."),Et(null))}}function rs(h,E,D,V,Z,re){{var K=M(h);if(!K){var Y="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=fa(Z);je?Y+=je:Y+=es();var de;h===null?de="null":ct(h)?de="array":h!==void 0&&h.$$typeof===t?(de="<"+(R(h.type)||"Unknown")+" />",Y=" Did you accidentally export a JSX literal instead of a component?"):de=typeof h,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,Y)}var fe=jn(h,E,D,Z,re);if(fe==null)return fe;if(K){var qe=E.children;if(qe!==void 0)if(V)if(ct(qe)){for(var Tt=0;Tt<qe.length;Tt++)os(qe[Tt],h);Object.freeze&&Object.freeze(qe)}else x("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 os(qe,h)}return h===o?ga(fe):ba(fe),fe}}function va(h,E,D){return rs(h,E,D,!0)}function pa(h,E,D){return rs(h,E,D,!1)}var xa=pa,ya=va;Mt.Fragment=o,Mt.jsx=xa,Mt.jsxs=ya}()),Mt}var St={};/**
|
20
20
|
* @license React
|
21
21
|
* react-jsx-runtime.production.min.js
|
22
22
|
*
|
@@ -24,4 +24,4 @@ Check the top-level render call using <`+D+">.")}return E}}function ts(h,E){{if(
|
|
24
24
|
*
|
25
25
|
* This source code is licensed under the MIT license found in the
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
27
|
-
*/var ko;function cs(){if(ko)return St;ko=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(a,d,m){var u,f={},_=null,b=null;m!==void 0&&(_=""+m),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(b=d.ref);for(u in d)o.call(d,u)&&!s.hasOwnProperty(u)&&(f[u]=d[u]);if(a&&a.defaultProps)for(u in d=a.defaultProps,d)f[u]===void 0&&(f[u]=d[u]);return{$$typeof:t,type:a,key:_,ref:b,props:f,_owner:r.current}}return St.Fragment=n,St.jsx=l,St.jsxs=l,St}process.env.NODE_ENV==="production"?Te.exports=cs():Te.exports=as();var i=Te.exports;const kn=(e,t)=>e>t?[]:Array.from({length:t-e+1},(n,o)=>e+o),$o=(e,t=20)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function ds(e,t){const n=$o(e,t);return o=>("persist"in o&&o.persist(),n(o))}const us=(e,t)=>{let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...o)},t)},t))}},I=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const o=I(...n);return o?`${t} ${o}`:t}return n?`${t} ${n}`:t},""),zo=(e,t,n)=>{const{base:o,excludeValueFromClassName:r}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&o||r?s:t===!0&&!o?`${s}-true`:t===!1&&!o?`${s}-false`:t!==void 0?`${s}-${t}`:null},X=(e,t,n,o)=>{if(typeof n!="object"){const r=zo(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return r?[e[r]]:[]}return Object.keys(n).reduce((r,s)=>{const l=s==="s",a=zo(t,n[s],{base:l,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=l?"":`--${s}`;return[...r,e[`${a}${d}`]]},[])},se=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const r=t[o];return r===void 0||r===!1?n:z(p({},n),{[`${e}-${o}`]:r})},{}),_s=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>_s(e)?Object.keys(e).reduce((o,r)=>{const s=e[r];return s==null?o:z(p({},o),{[r]:t(s,r)})},{}):t(e,"s"),Pe=e=>{const t=c.useId();return e||t},$n=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),No=e=>{const{children:t,onToggle:n,active:o,iconPosition:r,iconSize:s,className:l,attributes:a}=e,d=I(l),m=Pe(),u=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:o,onToggle:n,iconPosition:r,iconSize:s}),[o]);return i.jsx("div",z(p({},a),{className:d,children:i.jsx($n.Provider,{value:u,children:t})}))},ms=e=>{const a=e,{defaultActive:t,onToggle:n}=a,o=Se(a,["defaultActive","onToggle"]),[r,s]=c.useState(t||!1),l=d=>{s(d),n==null||n(d)};return i.jsx(No,z(p({},o),{onToggle:l,active:r}))},Dt={root:"_root_5ie1y_2","--disabled":"_--disabled_5ie1y_29","--full-width":"_--full-width_5ie1y_38","--inset":"_--inset_5ie1y_46","--radius-inherit":"_--radius-inherit_5ie1y_50"},De=c.forwardRef((e,t)=>{const{children:n,href:o,onClick:r,type:s,disabled:l,insetFocus:a,borderRadius:d,as:m,fullWidth:u,className:f,attributes:_}=e,b=I(Dt.root,f,l&&Dt["--disabled"],d&&Dt[`--radius-${d}`],a&&Dt["--inset"],u&&Dt["--full-width"]),v=p({},_),g=c.useRef(!1),w=r||(_==null?void 0:_.onClick),y=(_==null?void 0:_.onFocus)||(_==null?void 0:_.onBlur),x=!!(o||_!=null&&_.href),j=!!(w||y||s);let C;if(x)v.href=l?void 0:o||(_==null?void 0:_.href),C="a";else if(j&&(!m||m==="button"))C="button",v.type=s||(_==null?void 0:_.type)||"button",v.disabled=l||(_==null?void 0:_.disabled);else if(j){const $=!(m==="label")||w||y;C=m||"span",v.role=$?"button":void 0,v.tabIndex=$?0:void 0}else C=m||"span";const N=k=>{var $;l||g.current||(r==null||r(k),($=_==null?void 0:_.onClick)==null||$.call(_,k))},S=k=>{if(v.role==="button"||x)return;const A=k.key===" ",M=k.key==="Enter";!A&&!M||(k.preventDefault(),N(k),g.current=!0,requestAnimationFrame(()=>{g.current=!1}))};return i.jsx(C,z(p({ref:t},v),{className:b,onClick:N,onKeyDown:S,children:n}))}),zn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},Ht=e=>{const{vertical:t,blank:n,className:o,attributes:r}=e,s=I(zn.root,o,n&&zn["--blank"],...X(zn,"--vertical",t));let l;return(typeof t=="boolean"||t===void 0)&&(l=t?"vertical":"horizontal"),i.jsx("div",z(p({},r),{role:"separator","aria-orientation":l,className:s}))},Rt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},ht=e=>{const{as:t="div",children:n,visibility:o,hide:r,displayStyle:s}=e,l=I(Rt.root,...X(Rt,"--hidden",r),o&&Rt["--visibility"],s&&Rt[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(l)}):i.jsx(t,{className:l,children:n})},te={root:"_root_18bl3_1",item:"_item_18bl3_10","--padding":"_--padding_18bl3_18","--padding-top":"_--padding-top_18bl3_23","--padding-bottom":"_--padding-bottom_18bl3_27","--padding-start":"_--padding-start_18bl3_31","--padding-end":"_--padding-end_18bl3_35","--animated":"_--animated_18bl3_39","--align-text-start":"_--align-text-start_18bl3_1","--align-text-center":"_--align-text-center_18bl3_1","--align-text-end":"_--align-text-end_18bl3_1","--bg-neutral":"_--bg-neutral_18bl3_1","--bg-positive":"_--bg-positive_18bl3_1","--bg-warning":"_--bg-warning_18bl3_1","--bg-critical":"_--bg-critical_18bl3_1","--bg-primary":"_--bg-primary_18bl3_1","--bg-neutral-faded":"_--bg-neutral-faded_18bl3_1","--bg-positive-faded":"_--bg-positive-faded_18bl3_1","--bg-warning-faded":"_--bg-warning-faded_18bl3_1","--bg-critical-faded":"_--bg-critical-faded_18bl3_1","--bg-primary-faded":"_--bg-primary-faded_18bl3_1","--bg-page":"_--bg-page_18bl3_1","--bg-page-faded":"_--bg-page-faded_18bl3_1","--bg-disabled":"_--bg-disabled_18bl3_1","--bg-disabled-faded":"_--bg-disabled-faded_18bl3_1","--bg-elevation-base":"_--bg-elevation-base_18bl3_1","--bg-elevation-raised":"_--bg-elevation-raised_18bl3_1","--bg-elevation-overlay":"_--bg-elevation-overlay_18bl3_1","--bg-brand":"_--bg-brand_18bl3_65","--bg-white":"_--bg-white_18bl3_70","--bg-black":"_--bg-black_18bl3_75","--shadow-raised":"_--shadow-raised_18bl3_80","--shadow-overlay":"_--shadow-overlay_18bl3_84","--bd":"_--bd_18bl3_88","--bd-neutral-faded":"_--bd-neutral-faded_18bl3_1","--bd-neutral":"_--bd-neutral_18bl3_1","--bd-positive":"_--bd-positive_18bl3_1","--bd-positive-faded":"_--bd-positive-faded_18bl3_1","--bd-warning":"_--bd-warning_18bl3_1","--bd-warning-faded":"_--bd-warning-faded_18bl3_1","--bd-critical":"_--bd-critical_18bl3_1","--bd-critical-faded":"_--bd-critical-faded_18bl3_1","--bd-primary":"_--bd-primary_18bl3_1","--bd-primary-faded":"_--bd-primary-faded_18bl3_1","--bd-disabled":"_--bd-disabled_18bl3_1","--bd-brand":"_--bd-brand_18bl3_99","--bd-transparent":"_--bd-transparent_18bl3_103","--overflow-hidden":"_--overflow-hidden_18bl3_107","--overflow-auto":"_--overflow-auto_18bl3_111","--divided":"_--divided_18bl3_115","--flex":"_--flex_18bl3_119","--direction-column":"_--direction-column_18bl3_1","item--gap-before":"_item--gap-before_18bl3_131","item--gap-auto":"_item--gap-auto_18bl3_135","--direction-column-reverse":"_--direction-column-reverse_18bl3_1","--direction-row":"_--direction-row_18bl3_1","--direction-row-reverse":"_--direction-row-reverse_18bl3_1","--nowrap":"_--nowrap_18bl3_190","--wrap":"_--wrap_18bl3_198","--nowrap-false--m":"_--nowrap-false--m_18bl3_1","--wrap-true--m":"_--wrap-true--m_18bl3_1","--nowrap-true--m":"_--nowrap-true--m_18bl3_1","--wrap-false--m":"_--wrap-false--m_18bl3_1","--nowrap-false--l":"_--nowrap-false--l_18bl3_1","--wrap-true--l":"_--wrap-true--l_18bl3_1","--nowrap-true--l":"_--nowrap-true--l_18bl3_1","--wrap-false--l":"_--wrap-false--l_18bl3_1","--nowrap-false--xl":"_--nowrap-false--xl_18bl3_1","--wrap-true--xl":"_--wrap-true--xl_18bl3_1","--nowrap-true--xl":"_--nowrap-true--xl_18bl3_1","--wrap-false--xl":"_--wrap-false--xl_18bl3_1","--align-start":"_--align-start_18bl3_1","--align-end":"_--align-end_18bl3_1","--align-center":"_--align-center_18bl3_1","--align-stretch":"_--align-stretch_18bl3_1","--align-baseline":"_--align-baseline_18bl3_1","--justify-start":"_--justify-start_18bl3_1","--justify-end":"_--justify-end_18bl3_1","--justify-center":"_--justify-center_18bl3_1","--justify-space-between":"_--justify-space-between_18bl3_1",divider:"_divider_18bl3_257","item--grow":"_item--grow_18bl3_261","item--columns":"_item--columns_18bl3_279","item--columns-1":"_item--columns-1_18bl3_1","item--columns-2":"_item--columns-2_18bl3_1","item--columns-3":"_item--columns-3_18bl3_1","item--columns-4":"_item--columns-4_18bl3_1","item--columns-5":"_item--columns-5_18bl3_1","item--columns-6":"_item--columns-6_18bl3_1","item--columns-7":"_item--columns-7_18bl3_1","item--columns-8":"_item--columns-8_18bl3_1","item--columns-9":"_item--columns-9_18bl3_1","item--columns-10":"_item--columns-10_18bl3_1","item--columns-11":"_item--columns-11_18bl3_1","item--columns-12":"_item--columns-12_18bl3_1","item--columns-auto":"_item--columns-auto_18bl3_300","item--columns-1--m":"_item--columns-1--m_18bl3_1","item--columns-auto--m":"_item--columns-auto--m_18bl3_1","item--columns-2--m":"_item--columns-2--m_18bl3_1","item--columns-3--m":"_item--columns-3--m_18bl3_1","item--columns-4--m":"_item--columns-4--m_18bl3_1","item--columns-5--m":"_item--columns-5--m_18bl3_1","item--columns-6--m":"_item--columns-6--m_18bl3_1","item--columns-7--m":"_item--columns-7--m_18bl3_1","item--columns-8--m":"_item--columns-8--m_18bl3_1","item--columns-9--m":"_item--columns-9--m_18bl3_1","item--columns-10--m":"_item--columns-10--m_18bl3_1","item--columns-11--m":"_item--columns-11--m_18bl3_1","item--columns-12--m":"_item--columns-12--m_18bl3_1","item--columns-1--l":"_item--columns-1--l_18bl3_1","item--columns-auto--l":"_item--columns-auto--l_18bl3_1","item--columns-2--l":"_item--columns-2--l_18bl3_1","item--columns-3--l":"_item--columns-3--l_18bl3_1","item--columns-4--l":"_item--columns-4--l_18bl3_1","item--columns-5--l":"_item--columns-5--l_18bl3_1","item--columns-6--l":"_item--columns-6--l_18bl3_1","item--columns-7--l":"_item--columns-7--l_18bl3_1","item--columns-8--l":"_item--columns-8--l_18bl3_1","item--columns-9--l":"_item--columns-9--l_18bl3_1","item--columns-10--l":"_item--columns-10--l_18bl3_1","item--columns-11--l":"_item--columns-11--l_18bl3_1","item--columns-12--l":"_item--columns-12--l_18bl3_1","item--columns-1--xl":"_item--columns-1--xl_18bl3_1","item--columns-auto--xl":"_item--columns-auto--xl_18bl3_1","item--columns-2--xl":"_item--columns-2--xl_18bl3_1","item--columns-3--xl":"_item--columns-3--xl_18bl3_1","item--columns-4--xl":"_item--columns-4--xl_18bl3_1","item--columns-5--xl":"_item--columns-5--xl_18bl3_1","item--columns-6--xl":"_item--columns-6--xl_18bl3_1","item--columns-7--xl":"_item--columns-7--xl_18bl3_1","item--columns-8--xl":"_item--columns-8--xl_18bl3_1","item--columns-9--xl":"_item--columns-9--xl_18bl3_1","item--columns-10--xl":"_item--columns-10--xl_18bl3_1","item--columns-11--xl":"_item--columns-11--xl_18bl3_1","item--columns-12--xl":"_item--columns-12--xl_18bl3_1","--direction-column--m":"_--direction-column--m_18bl3_1","--direction-column-reverse--m":"_--direction-column-reverse--m_18bl3_1","--direction-row--m":"_--direction-row--m_18bl3_1","--direction-row-reverse--m":"_--direction-row-reverse--m_18bl3_1","--align-start--m":"_--align-start--m_18bl3_1","--align-end--m":"_--align-end--m_18bl3_1","--align-center--m":"_--align-center--m_18bl3_1","--align-stretch--m":"_--align-stretch--m_18bl3_1","--align-baseline--m":"_--align-baseline--m_18bl3_1","--justify-start--m":"_--justify-start--m_18bl3_1","--justify-end--m":"_--justify-end--m_18bl3_1","--justify-center--m":"_--justify-center--m_18bl3_1","--justify-space-between--m":"_--justify-space-between--m_18bl3_1","item--grow-true--m":"_item--grow-true--m_18bl3_1","item--grow-false--m":"_item--grow-false--m_18bl3_1","--direction-column--l":"_--direction-column--l_18bl3_1","--direction-column-reverse--l":"_--direction-column-reverse--l_18bl3_1","--direction-row--l":"_--direction-row--l_18bl3_1","--direction-row-reverse--l":"_--direction-row-reverse--l_18bl3_1","--align-start--l":"_--align-start--l_18bl3_1","--align-end--l":"_--align-end--l_18bl3_1","--align-center--l":"_--align-center--l_18bl3_1","--align-stretch--l":"_--align-stretch--l_18bl3_1","--align-baseline--l":"_--align-baseline--l_18bl3_1","--justify-start--l":"_--justify-start--l_18bl3_1","--justify-end--l":"_--justify-end--l_18bl3_1","--justify-center--l":"_--justify-center--l_18bl3_1","--justify-space-between--l":"_--justify-space-between--l_18bl3_1","item--grow-true--l":"_item--grow-true--l_18bl3_1","item--grow-false--l":"_item--grow-false--l_18bl3_1","--direction-column--xl":"_--direction-column--xl_18bl3_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_18bl3_1","--direction-row--xl":"_--direction-row--xl_18bl3_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_18bl3_1","--align-start--xl":"_--align-start--xl_18bl3_1","--align-end--xl":"_--align-end--xl_18bl3_1","--align-center--xl":"_--align-center--xl_18bl3_1","--align-stretch--xl":"_--align-stretch--xl_18bl3_1","--align-baseline--xl":"_--align-baseline--xl_18bl3_1","--justify-start--xl":"_--justify-start--xl_18bl3_1","--justify-end--xl":"_--justify-end--xl_18bl3_1","--justify-center--xl":"_--justify-center--xl_18bl3_1","--justify-space-between--xl":"_--justify-space-between--xl_18bl3_1","item--grow-true--xl":"_item--grow-true--xl_18bl3_1","item--grow-false--xl":"_item--grow-false--xl_18bl3_1"},Eo={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},Nn=e=>e?{classNames:[Eo.root,...X(Eo,"--radius",e)]}:null,To={root:"_root_22l3r_1","--bleed":"_--bleed_22l3r_10","--bleed-true--m":"_--bleed-true--m_22l3r_1","--bleed-false--m":"_--bleed-false--m_22l3r_1","--bleed-true--l":"_--bleed-true--l_22l3r_1","--bleed-false--l":"_--bleed-false--l_22l3r_1","--bleed-true--xl":"_--bleed-true--xl_22l3r_1","--bleed-false--xl":"_--bleed-false--xl_22l3r_1"},Mo=e=>{if(e===void 0)return null;const t=[To.root,...X(To,"--bleed",Le(e,o=>typeof o=="number"&&o>0))],n=se("--rs-bleed",e);return{classNames:t,variables:n}},fs={literal:"_literal_1b2qb_1",unit:"_unit_1b2qb_5","literal--m":"_literal--m_1b2qb_1","unit--m":"_unit--m_1b2qb_1","literal--l":"_literal--l_1b2qb_1","unit--l":"_unit--l_1b2qb_1","literal--xl":"_literal--xl_1b2qb_1","unit--xl":"_unit--xl_1b2qb_1"},En=e=>{if(!e)return null;const t=se("--rs-w",e);return{classNames:X(fs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},hs={literal:"_literal_6dko4_2",unit:"_unit_6dko4_3","literal--m":"_literal--m_6dko4_1","unit--m":"_unit--m_6dko4_1","literal--l":"_literal--l_6dko4_1","unit--l":"_unit--l_6dko4_1","literal--xl":"_literal--xl_6dko4_1","unit--xl":"_unit--xl_6dko4_1"},bt=e=>{if(!e)return null;const t=se("--rs-h",e);return{classNames:X(hs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},bs={literal:"_literal_13h2y_1",unit:"_unit_13h2y_5","literal--m":"_literal--m_13h2y_1","unit--m":"_unit--m_13h2y_1","literal--l":"_literal--l_13h2y_1","unit--l":"_unit--l_13h2y_1","literal--xl":"_literal--xl_13h2y_1","unit--xl":"_unit--xl_13h2y_1"},gs=e=>{if(!e)return null;const t=se("--rs-max-w",e);return{classNames:X(bs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},vs={literal:"_literal_1ji3w_1",unit:"_unit_1ji3w_5","literal--m":"_literal--m_1ji3w_1","unit--m":"_unit--m_1ji3w_1","literal--l":"_literal--l_1ji3w_1","unit--l":"_unit--l_1ji3w_1","literal--xl":"_literal--xl_1ji3w_1","unit--xl":"_unit--xl_1ji3w_1"},So=e=>{if(!e)return null;const t=se("--rs-max-h",e);return{classNames:X(vs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ps={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Do=e=>{if(!e)return null;const t=se("--rs-min-w",e);return{classNames:X(ps,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},xs={literal:"_literal_19ewn_1",unit:"_unit_19ewn_5","literal--m":"_literal--m_19ewn_1","unit--m":"_unit--m_19ewn_1","literal--l":"_literal--l_19ewn_1","unit--l":"_unit--l_19ewn_1","literal--xl":"_literal--xl_19ewn_1","unit--xl":"_unit--xl_19ewn_1"},ys=e=>{if(!e)return null;const t=se("--rs-min-h",e);return{classNames:X(xs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ws={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},js=e=>e?{classNames:X(ws,"--position",e)}:null,Cs={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},It=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,r=se(o,e);return{classNames:X(Cs,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:r}},ks={root:"_root_jdpm8_1"},$s=e=>{if(!e)return null;const t=se("--rs-ratio",e);return{classNames:ks.root,variables:t}},Io=e=>{const{columns:t,grow:n,gapBefore:o,as:r="div",order:s,children:l,className:a,attributes:d}=e,m=I(te.item,a,o==="auto"&&te["item--gap-auto"],o!==void 0&&te["item--gap-before"],t&&te["item--columns"],...X(te,"item--grow",n),...X(te,"item--columns",t)),u=p(p({},se("--rs-view-item-order",s)),se("--rs-view-item-gap-before",o));return i.jsx(r,z(p({},d),{style:p(p({},d==null?void 0:d.style),u),className:m,children:l}))},Tn=e=>{const{align:t,justify:n,wrap:o,gap:r,height:s,width:l,aspectRatio:a,maxHeight:d,maxWidth:m,minHeight:u,minWidth:f,padding:_,paddingInline:b,paddingBlock:v,paddingBottom:g,paddingEnd:w,paddingStart:y,paddingTop:x,bleed:j,animated:C,backgroundColor:N,borderColor:S,borderRadius:k,shadow:$,textAlign:A,overflow:M,position:q="relative",inset:O,insetTop:R,insetBottom:L,insetStart:U,insetEnd:W,zIndex:H,grow:B,as:Q="div",children:ue,divided:ce,className:Ce,attributes:ke}=e;let Me=!!t||!!n||!!r||!!e.direction;const ee=e.direction||(Me?"column":void 0),J=Nn(k),G=Mo(j),F=En(l),oe=bt(s),le=gs(m),_e=So(d),xe=Do(f),$e=ys(u),lt=js(q),ze=It(O),Ne=It(R,"top"),Ie=It(L,"bottom"),Ae=It(U,"start"),Ee=It(W,"end"),at=$s(a);let gn=0,ct;const xo=({className:ye,key:he})=>{const Ue=I(te.divider,ye);let we=!1;return typeof ee=="string"&&ee.startsWith("row")?we=!0:ee&&(we=Object.keys(ee).reduce((Qe,dt)=>{const Be=ee[dt];return Be?z(p({},Qe),{[dt]:Be.startsWith("row")}):Qe},{})),i.jsx("div",{className:Ue,children:i.jsx(Ht,{vertical:we,blank:!0})},`${he}-divider`)},vn=({className:ye,child:he,index:Ue})=>{var yn,wn,jn;const we=he.type===Io,Nt=he.type===Tn,Qe=he.key||Ue,dt=!!Ue&&ce&&xo({className:ye,key:Qe});let Be;return we?Be=c.cloneElement(he,{className:I(ye,he.props.className)}):ye||!c.isValidElement(he)?Be=i.jsx("div",{className:ye,children:he},Qe):Be=he,we&&((yn=he.props)!=null&&yn.grow)&&(ct=he.props.grow),we&&((wn=he.props)==null?void 0:wn.gap)==="auto"&&(ct=!0),(we||Nt)&&((jn=he.props)!=null&&jn.grow)&&(Me=!0),[dt,Be]},pn=c.Children.map(ue,(ye,he)=>{if(!ye)return null;const Ue=gn;if(gn+=1,ye.type===ht&&typeof ye.props.children!="function"){const we=ye.props,{children:Nt}=we,Qe=Se(we,["children"]),dt=ye.key||he;return c.createElement(ht,z(p({},Qe),{key:dt}),Be=>vn({className:Be,child:Nt,index:Ue}))}return vn({child:ye,index:Ue})}),xn=I(te.root,Ce,J==null?void 0:J.classNames,lt==null?void 0:lt.classNames,G==null?void 0:G.classNames,F==null?void 0:F.classNames,oe==null?void 0:oe.classNames,at==null?void 0:at.classNames,le==null?void 0:le.classNames,_e==null?void 0:_e.classNames,xe==null?void 0:xe.classNames,$e==null?void 0:$e.classNames,ze==null?void 0:ze.classNames,Ne==null?void 0:Ne.classNames,Ie==null?void 0:Ie.classNames,Ae==null?void 0:Ae.classNames,Ee==null?void 0:Ee.classNames,A&&te[`--align-text-${A}`],N&&te[`--bg-${N}`],S&&te[`--bd-${S}`],S&&te["--bd"],$&&te[`--shadow-${$}`],M&&te[`--overflow-${M}`],C&&te["--animated"],ce&&te["--divided"],(_!==void 0||b!==void 0||v!==void 0)&&te["--padding"],g!==void 0&&te["--padding-bottom"],w!==void 0&&te["--padding-end"],y!==void 0&&te["--padding-start"],x!==void 0&&te["--padding-top"],(Me||ct)&&te["--flex"],...X(te,"--direction",ee),...X(te,"--align",t),...X(te,"--justify",n),...X(te,"--nowrap",ct||o===!1),...X(te,"--wrap",o),...X(te,"item--grow",B)),ft=p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p({},ke==null?void 0:ke.style),se("--rs-view-gap",r)),se("--rs-view-p-vertical",v||_)),se("--rs-view-p-horizontal",b||_)),se("--rs-view-p-bottom",g)),se("--rs-view-p-top",x)),se("--rs-view-p-start",y)),se("--rs-view-p-end",w)),G==null?void 0:G.variables),F==null?void 0:F.variables),oe==null?void 0:oe.variables),at==null?void 0:at.variables),le==null?void 0:le.variables),_e==null?void 0:_e.variables),xe==null?void 0:xe.variables),$e==null?void 0:$e.variables),ze==null?void 0:ze.variables),Ne==null?void 0:Ne.variables),Ie==null?void 0:Ie.variables),Ae==null?void 0:Ae.variables),Ee==null?void 0:Ee.variables),H?{"--rs-view-z":H}:{});return i.jsx(Q,z(p({},ke),{className:xn,style:ft,children:pn}))};Tn.Item=Io;const P=Tn,Mn={root:"_root_1aeuv_1","--auto":"_--auto_1aeuv_8","--color-neutral":"_--color-neutral_1aeuv_1","--color-neutral-faded":"_--color-neutral-faded_1aeuv_1","--color-primary":"_--color-primary_1aeuv_1","--color-positive":"_--color-positive_1aeuv_1","--color-warning":"_--color-warning_1aeuv_1","--color-critical":"_--color-critical_1aeuv_1","--color-disabled":"_--color-disabled_1aeuv_1"},fe=e=>{const{svg:t,className:n,color:o,size:r="1em",autoWidth:s,attributes:l}=e,a=bt(r),d=I(Mn.root,n,a==null?void 0:a.classNames,o&&Mn[`--color-${o}`],s&&Mn["--auto"]),m=c.isValidElement(t)?t:i.jsx(t,{}),u=p(p({},l==null?void 0:l.style),a==null?void 0:a.variables);return i.jsx("span",z(p({},l),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(m,{focusable:!1})}))},zs=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),Ao={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Ns=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:r,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext($n),d=I(Ao.icon,n&&Ao["icon--active"]),m=()=>{o==null||o(!n)},u={"aria-expanded":n,"aria-controls":s,id:r};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(p({},u),{onClick:m}),{active:n})}):i.jsx(De,{onClick:m,fullWidth:!0,attributes:u,children:i.jsxs(P,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(P.Item,{grow:!0,children:t}),i.jsx(fe,{size:a||4,svg:zs,className:d})]})})},Sn={root:"_root_upjmv_1","--active":"_--active_upjmv_11",inner:"_inner_upjmv_15"},Ye=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},Dn="data-rs-no-transition",Es=()=>{document.documentElement.setAttribute(Dn,"true")},Ts=()=>{document.documentElement.removeAttribute(Dn)},Ms=()=>!document.documentElement.hasAttribute(Dn),qo=e=>{const{children:t,active:n,attributes:o}=e,[r,s]=c.useState(!1),l=I(Sn.root,n&&Sn["--active"]),a=d=>{d.propertyName==="height"&&Ye(()=>{s(!1)})};return c.useEffect(()=>{s(n||!1)},[n]),i.jsx("div",z(p({},o),{className:l,onTransitionEnd:a,role:"region",hidden:!n&&!r,children:i.jsx("div",{className:Sn.inner,children:t})}))},Ss=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:r}=c.useContext($n);return i.jsx(qo,{active:n,attributes:{"aria-labelledby":o,id:r},children:t})},In=e=>{const{active:t}=e;return t!==void 0?i.jsx(No,p({},e)):i.jsx(ms,p({},e))};In.Trigger=Ns,In.Content=Ss;const Ds=In,An={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},Is=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:r=4,children:s,elevated:l,className:a,attributes:d}=e,m=I(An.root,l&&An["--elevated"],t&&An[`--position-${t}`],a);return i.jsx(P,{className:m,attributes:d,paddingBlock:n||o,paddingInline:n||r,children:s})},Ge={root:"_root_179zk_1","--clamp":"_--clamp_179zk_6","--break-all":"_--break-all_179zk_13","--wrap-balance":"_--wrap-balance_179zk_17","--align-start":"_--align-start_179zk_1","--align-center":"_--align-center_179zk_1","--align-end":"_--align-end_179zk_1","--variant-title-1":"_--variant-title-1_179zk_1","--variant-title-2":"_--variant-title-2_179zk_1","--variant-title-3":"_--variant-title-3_179zk_1","--variant-title-4":"_--variant-title-4_179zk_1","--variant-title-5":"_--variant-title-5_179zk_1","--variant-title-6":"_--variant-title-6_179zk_1","--variant-featured-1":"_--variant-featured-1_179zk_1","--variant-featured-2":"_--variant-featured-2_179zk_1","--variant-featured-3":"_--variant-featured-3_179zk_1","--variant-body-1":"_--variant-body-1_179zk_1","--variant-body-2":"_--variant-body-2_179zk_1","--variant-body-3":"_--variant-body-3_179zk_1","--variant-caption-1":"_--variant-caption-1_179zk_1","--variant-caption-2":"_--variant-caption-2_179zk_1","--weight-regular":"_--weight-regular_179zk_1","--weight-medium":"_--weight-medium_179zk_1","--weight-bold":"_--weight-bold_179zk_1","--color-neutral":"_--color-neutral_179zk_1","--color-neutral-faded":"_--color-neutral-faded_179zk_1","--color-primary":"_--color-primary_179zk_1","--color-warning":"_--color-warning_179zk_1","--color-positive":"_--color-positive_179zk_1","--color-critical":"_--color-critical_179zk_1","--color-disabled":"_--color-disabled_179zk_1","--decoration-line-through":"_--decoration-line-through_179zk_147","--align-start--m":"_--align-start--m_179zk_1","--align-center--m":"_--align-center--m_179zk_1","--align-end--m":"_--align-end--m_179zk_1","--variant-title-1--m":"_--variant-title-1--m_179zk_1","--variant-title-2--m":"_--variant-title-2--m_179zk_1","--variant-title-3--m":"_--variant-title-3--m_179zk_1","--variant-title-4--m":"_--variant-title-4--m_179zk_1","--variant-title-5--m":"_--variant-title-5--m_179zk_1","--variant-title-6--m":"_--variant-title-6--m_179zk_1","--variant-featured-1--m":"_--variant-featured-1--m_179zk_1","--variant-featured-2--m":"_--variant-featured-2--m_179zk_1","--variant-featured-3--m":"_--variant-featured-3--m_179zk_1","--variant-body-1--m":"_--variant-body-1--m_179zk_1","--variant-body-2--m":"_--variant-body-2--m_179zk_1","--variant-body-3--m":"_--variant-body-3--m_179zk_1","--variant-caption-1--m":"_--variant-caption-1--m_179zk_1","--variant-caption-2--m":"_--variant-caption-2--m_179zk_1","--align-start--l":"_--align-start--l_179zk_1","--align-center--l":"_--align-center--l_179zk_1","--align-end--l":"_--align-end--l_179zk_1","--variant-title-1--l":"_--variant-title-1--l_179zk_1","--variant-title-2--l":"_--variant-title-2--l_179zk_1","--variant-title-3--l":"_--variant-title-3--l_179zk_1","--variant-title-4--l":"_--variant-title-4--l_179zk_1","--variant-title-5--l":"_--variant-title-5--l_179zk_1","--variant-title-6--l":"_--variant-title-6--l_179zk_1","--variant-featured-1--l":"_--variant-featured-1--l_179zk_1","--variant-featured-2--l":"_--variant-featured-2--l_179zk_1","--variant-featured-3--l":"_--variant-featured-3--l_179zk_1","--variant-body-1--l":"_--variant-body-1--l_179zk_1","--variant-body-2--l":"_--variant-body-2--l_179zk_1","--variant-body-3--l":"_--variant-body-3--l_179zk_1","--variant-caption-1--l":"_--variant-caption-1--l_179zk_1","--variant-caption-2--l":"_--variant-caption-2--l_179zk_1","--align-start--xl":"_--align-start--xl_179zk_1","--align-center--xl":"_--align-center--xl_179zk_1","--align-end--xl":"_--align-end--xl_179zk_1","--variant-title-1--xl":"_--variant-title-1--xl_179zk_1","--variant-title-2--xl":"_--variant-title-2--xl_179zk_1","--variant-title-3--xl":"_--variant-title-3--xl_179zk_1","--variant-title-4--xl":"_--variant-title-4--xl_179zk_1","--variant-title-5--xl":"_--variant-title-5--xl_179zk_1","--variant-title-6--xl":"_--variant-title-6--xl_179zk_1","--variant-featured-1--xl":"_--variant-featured-1--xl_179zk_1","--variant-featured-2--xl":"_--variant-featured-2--xl_179zk_1","--variant-featured-3--xl":"_--variant-featured-3--xl_179zk_1","--variant-body-1--xl":"_--variant-body-1--xl_179zk_1","--variant-body-2--xl":"_--variant-body-2--xl_179zk_1","--variant-body-3--xl":"_--variant-body-3--xl_179zk_1","--variant-caption-1--xl":"_--variant-caption-1--xl_179zk_1","--variant-caption-2--xl":"_--variant-caption-2--xl_179zk_1"},As={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ne=e=>{const{variant:t,color:n,weight:o,align:r,decoration:s,maxLines:l,wrap:a,children:d,className:m,attributes:u}=e,f=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),_=e.as||f&&As[f]||"div",b=I(Ge.root,n&&Ge[`--color-${n}`],...X(Ge,"--variant",t),...X(Ge,"--align",r),o&&Ge[`--weight-${o}`],s&&Ge[`--decoration-${s}`],l!==void 0&&Ge["--clamp"],l===1&&Ge["--break-all"],a&&Ge[`--wrap-${a}`],m),v=z(p({},u==null?void 0:u.style),{"--rs-text-lines":l});return i.jsx(_,z(p({},u),{className:b,style:v,children:d}))},qs=e=>{const{title:t,children:n,icon:o,actionsSlot:r,color:s="neutral",inline:l,bleed:a,className:d,attributes:m}=e,u=s==="neutral",f=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(ne,{variant:"body-3",as:"span",children:n})]}):i.jsxs(P,{gap:1,children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(ne,{variant:"body-3",children:n})]}),_=b=>r?i.jsxs(P,{gap:2,direction:l?"row":"column",children:[l?i.jsx(P.Item,{grow:!0,children:b}):b,r&&i.jsx(ne,{variant:"body-3",weight:"medium",children:i.jsx(P,{direction:"row",gap:3,children:r})})]}):b;return i.jsx(P,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:z(p({},m),{role:s==="critical"?"alert":"status"}),children:o?i.jsxs(i.Fragment,{children:[i.jsx(fe,{svg:o,size:5,color:u?"primary":s}),i.jsx(P.Item,{grow:!0,children:_(f())})]}):_(f())})},Lo=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ls=Lo.Provider,At=()=>c.useContext(Lo),tt=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=At();return{attributes:e,required:t,hasError:n,disabled:o}},qn=(e,t)=>`${e}-${t||"caption"}`,Ps=e=>{const{children:t,id:n,required:o,hasError:r,group:s,disabled:l,size:a}=e,d=Pe(n),m=s?"fieldset":"div",[u,f]=c.useState(!1),[_,b]=c.useState(!1),v=[u&&qn(d),_&&qn(d,"error")].filter(Boolean).join(" "),g={id:d,"aria-describedby":v},w=()=>{b(!0)},y=()=>{f(!0)};return i.jsx(m,{children:i.jsx(Ls,{value:{required:o,hasError:r,errorRef:w,helperRef:y,attributes:g,group:s,disabled:l,size:a},children:t})})},Po={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},Fs=e=>{const{children:t}=e,{attributes:n,required:o,group:r,disabled:s,size:l}=At(),a=`${n.id}-label`,d=r?{as:"legend",attributes:{id:a}}:{as:"label",attributes:{id:a,htmlFor:n.id}};return i.jsxs(ne,z(p({},d),{variant:l==="large"?"body-2":"body-3",weight:"medium",className:Po.label,color:s?"disabled":void 0,children:[t,o&&i.jsx(ne,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},Fo=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:r,size:s,helperRef:l,errorRef:a}=At(),d=qn(r.id,n),m=n==="error"?"critical":"neutral-faded",u=n==="error"?a:l;return i.jsx(ne,{as:"span",variant:s==="large"?"body-3":"caption-1",color:o&&!n?"disabled":m,attributes:{id:d,role:m?"alert":void 0,ref:u},className:Po.caption,children:t})},Vs=e=>{const{children:t}=e,{hasError:n}=At();return n?i.jsx(Fo,{variant:"error",children:t}):null},Os=e=>{const{children:t}=e,{disabled:n}=At();return i.jsx(Fo,{disabled:n,children:t})},Ut=Ps;Ut.Label=Fs,Ut.Helper=Os,Ut.Error=Vs;const Bs=Ut,Vo={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Yt=e=>{const{side:t="all",children:n,className:o,attributes:r}=e,s=typeof t=="string"?[t]:t,l=I(Vo.root,s.map(a=>Vo[`--side-${a}`]),o);return i.jsx("div",z(p({},r),{className:l,children:n}))},Fe={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},Oo=e=>{const{slot:t,icon:n,size:o,affix:r,position:s}=e;if(!n&&!t&&!r)return null;const l=I(Fe.attachment,Fe[`attachment--position-${s}`]),a=[t&&i.jsx("div",{className:Fe.slot,children:t},"slot"),n&&i.jsx("div",{className:Fe.icon,children:i.jsx(fe,{size:Le(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),r&&i.jsx("div",{className:Fe.affix,children:r},"affix")].filter(Boolean);return i.jsx("span",{className:l,children:s==="end"?a.reverse():a})},Bo=e=>{var M;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,icon:d,endIcon:m,startSlot:u,endSlot:f,prefix:_,suffix:b,size:v="medium",variant:g="outline",className:w,attributes:y}=e,x=tt(),j=Pe(e.id),C=(x==null?void 0:x.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||j,N=(x==null?void 0:x.disabled)||e.disabled,S=(x==null?void 0:x.hasError)||e.hasError,k=p(p({},e.inputAttributes),x==null?void 0:x.attributes),$=I(Fe.root,w,v&&X(Fe,"--size",v),S&&Fe["--status-error"],N&&Fe["--disabled"],g&&Fe[`--variant-${g}`]),A=q=>{t&&t({name:r,value:q.target.value,event:q})};return i.jsxs("div",z(p({},y),{"data-rs-aligner-target":!0,className:$,children:[i.jsx(Oo,{position:"start",icon:d,slot:u,size:v,affix:_}),i.jsx("input",z(p({},k),{className:Fe.input,disabled:N,name:r,placeholder:a,value:s,defaultValue:l,onChange:A,onFocus:n||(k==null?void 0:k.onFocus),onBlur:o||(k==null?void 0:k.onBlur),id:C})),i.jsx(Oo,{position:"end",icon:m,slot:f,size:v,affix:b})]}))};Bo.Aligner=Yt;const Wo=Bo,Ws="Enter",Hs="Tab",Ln="ArrowUp",Pn="ArrowDown",Fn="ArrowRight",Vn="ArrowLeft",On="data-rs-keyboard",Gt="data-rs-focus";class Rs{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,o=n&&this.get(n),r=this.generateId();return this.chain[r]={previousId:n,data:t},o&&(o.nextId=r),this.tailId=r,r}remove(t){var d,m;const n=this.chain[t];if(!n)return;const o=n.previousId,r=o&&this.get(o),s=n.nextId,l=s&&this.get(s);r&&(r.nextId=(d=n.nextId)!=null?d:null),l&&(l.previousId=(m=n.previousId)!=null?m:null),s||(this.tailId=o!=null?o:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,n){const o=this.get(t),r=this.remove(t);return!o||!o.previousId||n(o)?r:this.removePreviousTill(o.previousId,n)}}const Ho=()=>document.documentElement.hasAttribute(On),Ro='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Kt=()=>document.querySelector(`[${Gt}]`)||document.activeElement,Bn=(e,t)=>{const o=Array.from(e.querySelectorAll(Ro)).filter(r=>{if(r.hasAttribute("disabled")||r.clientHeight===0)return!1;if(r.type==="radio"){let s;if(r.form){const l=r.form.elements.namedItem(r.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${r.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&r!==l||!l&&r!==s[0])return!1}}return!0});return t&&o.length&&o.unshift(t),o},Uo=e=>{const{root:t,extraElement:n,target:o,mode:r}=e,s=Bn(t,n),l=s.length-1,a=Kt(),d=s.indexOf(a),m={next:d+1,prev:d-1,first:0,last:l};let u=m[o];const f=u>l||u<0;return f&&(r==="action-menu"?u=o==="prev"?m.first:m.last:u=o==="prev"?m.last:m.first),{overflow:f,el:s[u]}},Xt=(e,t)=>{var n;(n=document.querySelector(`[${Gt}]`))==null||n.removeAttribute(Gt),t==="selection-menu"?e.setAttribute(Gt,"true"):e.focus()},Jt=(e,t)=>{const n=Uo({root:e,target:t});Xt(n.el)},Us=e=>Jt(e,"next"),Ys=e=>Jt(e,"prev"),Gs=e=>Jt(e,"first"),Ks=e=>Jt(e,"last"),Xs=(()=>{let e=[];const t=o=>{let r=o.parentNode&&o.parentNode.firstChild;for(;r;){const s=r!==o,l=r.nodeType===1&&!r.hasAttribute("aria-hidden");s&&l&&(r.setAttribute("aria-hidden","true"),e.push(r)),r=r.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let r=o;for(e.length&&n();r!==document.body;)t(r),r=r.parentElement;return{release:n}}})(),Zt=(()=>{let e=null,t=null;const n=new Rs;return(o,r={})=>{const{mode:s="dialog",onNavigateOutside:l,includeTrigger:a}=r,d=Kt(),m=s==="dialog",u=s==="content-menu",f=s==="selection-menu",_=m||u,b=s==="action-menu"||f,v=Bn(o,a?d:void 0);let g;const w=new MutationObserver(()=>{if(o.contains(document.activeElement))return;const C=Bn(o,a?d:void 0);C.length&&Xt(C[0],s)}),y=(C={})=>{const{withoutFocusReturn:N}=C;n.removePreviousTill(g,k=>document.body.contains(k.data.trigger)),w.disconnect(),d&&d.focus({preventScroll:N||!Ho()}),e&&(e(),t&&t.release(),e=null,t=null);const S=n.tailId&&n.get(n.tailId);S&&Zt(S.data.root,S.data.options)},x=C=>{const N=C.key,S=N===Hs,k=S&&!C.shiftKey,$=S&&C.shiftKey,A=b&&N===Ln,M=b&&N===Pn,q=$&&_||A,O=k&&_||M,R=Kt()===d,L=Uo({root:o,target:q?"prev":"next",extraElement:a?d:void 0,mode:s});if(S&&b||u&&S&&L.overflow){$&&!R&&C.preventDefault(),y(),l==null||l();return}!q&&!O||(C.preventDefault(),L.el&&Xt(L.el,s))};if(e&&e(),m&&(t=Xs(o)),w.observe(o,{childList:!0,subtree:!0}),!v.length)return null;document.addEventListener("keydown",x),e=()=>document.removeEventListener("keydown",x);const j=n.tailId&&n.get(n.tailId);return(!j||o!==j.data.root)&&(g=n.add({root:o,trigger:d,options:r}),Xt(v[0],s)),y}})(),Js=100,Zs=150;let gt={},We=null;const Yo=e=>{gt[e]&&(e===We&&(We=gt[e].parentId),delete gt[e],We===null&&(gt={}))},Qs=(e,t,n)=>{var s;const o=We?gt[We]:void 0;!((n==null?void 0:n.current)&&o&&((s=o.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&We&&Yo(We),gt[e]={parentId:We,triggerRef:n,contentRef:t},We=e},Go=(e=!1,t,n)=>{const o=Pe(),r=c.useCallback(()=>We===o,[o]);return c.useEffect(()=>{e?Qs(o,t,n):Yo(o)},[e,o,t,n]),r},ae=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,vt="+",Ve={},Wn=[],Ko=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),Hn=e=>Ko(e).split(vt).sort().join(vt),Xo=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ei=e=>{const t=[],n=e.join(vt),r=Hn(n).split(vt),s=(l,a)=>{a.forEach((d,m)=>{const u=l?`${l}+${d}`:d;t.push(u),s(u,a.slice(m+1))})};return s("",r),t},ti=(e,t)=>{const n=Object.keys(e);n.length&&ei(n).forEach(o=>{t(o)})},Rn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const r=e[n];r&&t(Hn(o),r)})})};class ni{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Rn(t,(o,r)=>{r&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:r,ref:n}))})},this.unbindHotkeys=t=>{Rn(t,(n,o)=>{var r,s;o&&((r=this.hotkeyMap[n])==null||r.data.forEach(l=>{l.callback===o&&this.hotkeyMap[n].data.delete(l)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{ti(t,o=>{const r=this.hotkeyMap[o];!r||r.used||r!=null&&r.data.size&&r.data.forEach(s=>{var l;(l=s.ref)!=null&&l.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=Hn(t.key);Rn(this.hotkeyMap,(o,r)=>{o.split(vt).includes(n)&&(r.used=!1)})}}}const Qt=new ni,Jo=c.createContext({}),oi=e=>{const{children:t}=e,[n,o]=c.useState(0),[r,s]=c.useState(0),l=c.useCallback(_=>{if(_.repeat||r===0)return;const b=Xo(_);b&&(Ve[b]=_,(b==="meta"||b==="control")&&(Ve.mod=_),o(Object.keys(Ve).length),b==="meta"&&Wn.push(...Object.keys(Ve)),Ve.Meta&&Wn.push(b))},[r]),a=c.useCallback(_=>{if(r===0)return;const b=Xo(_);b&&(delete Ve[b],(b==="meta"||b==="control")&&delete Ve.mod,b==="meta"&&Wn.forEach(v=>{delete Ve[v]}),o(Object.keys(Ve).length))},[r]),d=_=>!Ko(_).split(vt).some(v=>!Ve[v]),m=c.useCallback((_,b)=>(s(v=>v+1),Qt.bindHotkeys(_,b),()=>{s(v=>v-1),Qt.unbindHotkeys(_)}),[]),u=c.useCallback(_=>{_.key&&(l(_),Qt.handleKeyDown(Ve,_))},[l]),f=c.useCallback(_=>{_.key&&(a(_),Qt.handleKeyUp(_))},[a]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",f),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",f)}),[u,f]),i.jsx(Jo.Provider,{value:{addHotkeys:m,isPressed:d},children:t})},ri=()=>c.useContext(Jo),nt=(e,t=[],n)=>{const{addHotkeys:o,isPressed:r}=ri(),s=c.useRef(null),l=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const a=o(e,l);return()=>a==null?void 0:a()},[o,Object.keys(e).join(","),...t]),{ref:l,checkHotkeyState:r}},Un=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),si=e=>{const t=c.useState(e||!1),[n,o]=t;return ae(()=>{const r=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=l.target.dir==="rtl";n!==a&&o(a)})});return r.observe(document.documentElement,{attributes:!0}),()=>r.disconnect()},[n]),ae(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},ot=()=>c.useContext(Un).rtl,Yn=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,o=t==null?void 0:t.position,r=n==null?void 0:n.includes("scroll"),s=o==="fixed";return e===document.body||!e?document.body:r&&e.scrollHeight>e.clientHeight||s?e:Yn(e.parentElement)},Gn=()=>{document.body.style.userSelect="none"},Kn=()=>{document.body.style.userSelect=""},Zo=16,en=["top-start","top","top-end"],tn=["bottom-start","bottom","bottom-end"],nn=["start","start-bottom","start-top"],on=["end","end-bottom","end-top"],ii={top:[...en,...tn,...on,...nn],bottom:[...tn,...en,...on,...nn],start:[...nn,...on,...en,...tn],end:[...on,...nn,...en,...tn]},li=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Qo=(e,t)=>Math.floor(e/2-t/2),ai=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return ii[n]},Xn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,r=t.scrollTop,s=r+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=r&&e.top+e.height<=s},er=(e,t,n,o)=>{const{position:r,rtl:s,width:l}=o;let a=0,d=0,m=r;switch(s&&(m=li(m)),(l==="full"||l==="trigger")&&(m=m.includes("top")?"top":"bottom"),m){case"bottom":case"top":a=Qo(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":a=e.left-t.width;break;case"end":case"end-top":case"end-bottom":a=e.right;break;case"top-start":case"bottom-start":a=e.left;break;case"top-end":case"bottom-end":a=e.right-t.width;break}switch(m){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=Qo(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||a===void 0)throw Error(`[Reshaped, flyout]: ${m} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),a=Math.round(a+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const f=Math.ceil(t.height);return l==="full"?(a=Zo,u=window.innerWidth-Zo*2):l==="trigger"&&(u=e.width),{styles:{left:a,top:d,width:u,height:f},position:m}},tr={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},rn={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},ci=(e,t,n)=>{const{position:o,forcePosition:r,width:s}=n,l=t.cloneNode(!0),a=e.getBoundingClientRect();l.style="",Object.keys(rn).forEach(b=>{const v=rn[b];l.style[b]=v.toString()}),s&&(s==="trigger"?l.style.width=`${a.width}px`:s!=="full"&&(l.style.width=s)),document.body.appendChild(l);const d=l.getBoundingClientRect(),m=Yn(e),u=m.getBoundingClientRect(),f={top:u.top+document.documentElement.scrollTop-m.scrollTop,left:u.left+document.documentElement.scrollLeft-m.scrollLeft};let _=er(a,d,f,n);if(!Xn(_.styles)&&!r){const b=ai(o),v=b.filter(w=>w==="top"||w==="bottom"),g=(w,y={})=>{const{fullWidth:x}=y;w.some(j=>{const C=z(p({},n),{width:x?"full":n.width,position:j}),N=er(a,d,f,C);return Xn(N.styles)?(_=N,!0):!1})};g(b),Xn(_.styles)||g(v,{fullWidth:!0})}return l.parentNode.removeChild(l),_},di=(e,t)=>{switch(t.type){case"render":return z(p({},e),{status:"rendered",styles:p({pointerEvents:"none"},rn)});case"position":return z(p({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:p(p({},tr),t.payload.styles)});case"show":return z(p({},e),{status:"visible"});case"hide":return z(p({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return z(p({},e),{status:"idle",styles:rn});default:throw new Error("Invalid reducer type")}},ui=(e,t,n)=>{const{position:o="bottom",forcePosition:r,width:s}=n,[l]=ot(),[a,d]=c.useReducer(di,{position:o,styles:tr,status:"idle"}),m=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),f=c.useCallback(()=>{d({type:"hide"})},[]),_=c.useCallback(()=>{d({type:"remove"})},[]),b=c.useCallback(()=>{if(!e.current||!t.current)return;const v=ci(e.current,t.current,{width:s,position:o,forcePosition:r,rtl:l});d({type:"position",payload:v})},[e,t,o,l,r,s]);return c.useEffect(()=>{a.status==="rendered"&&b(),a.status==="positioned"&&Ye(()=>u())},[a.status,b,u]),c.useMemo(()=>({position:a.position,styles:a.styles,status:a.status,updatePosition:b,render:m,hide:f,remove:_}),[m,b,f,_,a.position,a.styles,a.status])},_i=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let r=!1;e.forEach(s=>{(!s.current||s.current===o.target||s.current.contains(o.target))&&(r=!0)}),!r&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},nr=c.createContext({}),sn=()=>c.useContext(nr),mi=nr.Provider,or=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:r,forcePosition:s,trapFocusMode:l,width:a,disableHideAnimation:d,contentGap:m,contentClassName:u,contentAttributes:f,position:_,active:b,id:v,instanceRef:g}=e,[w]=ot(),y=c.useRef(null),x=c.useRef(null),j=Pe(v),C=c.useRef(),N=c.useRef(null),S=c.useRef(!1),k=c.useRef(!1),$=c.useRef(!0),A=ui(y,x,{width:a,position:_,defaultActive:b,forcePosition:s}),M=sn(),{status:q,updatePosition:O,render:R,hide:L,remove:U}=A,W=Go(t!=="hover"&&q!=="idle",x,y),H=c.useCallback(()=>{C.current&&clearTimeout(C.current)},[C]),B=c.useCallback(()=>{!S.current&&q==="idle"&&(n==null||n())},[q]),Q=c.useCallback(F=>{var _e;!(t==="click"&&!W())&&q!=="idle"&&(o==null||o(),F!=null&&F.closeParents&&((_e=M==null?void 0:M.handleClose)==null||_e.call(M)))},[q,W,t]),ue=c.useCallback(F=>{var le;(le=x.current)!=null&&le.contains(F.relatedTarget)||t==="hover"&&l==="content-menu"||k.current||Q()},[Q,t,l]),ce=c.useCallback(()=>{B()},[B]),Ce=c.useCallback(()=>{H(),C.current=setTimeout(B,Js)},[H,C,B]),ke=c.useCallback(()=>{H(),C.current=setTimeout(()=>Q(),Zs)},[H,C,Q]),Me=c.useCallback(()=>{q==="idle"?B():Q()},[q,B,Q]),ee=()=>k.current=!0,J=()=>k.current=!1;ae(()=>{if(b){R();return}Ms()&&!d?L():U()},[b,R,L,d]);const G=c.useCallback(F=>{x.current!==F.currentTarget||F.propertyName!=="transform"||q==="hidden"&&U()},[U,q]);return ae(()=>{q!=="visible"||!x.current||(N.current=Zt(x.current,{mode:l,includeTrigger:t==="hover"&&l==="content-menu",onNavigateOutside:()=>{N.current=null,Q()}}))},[q,t,Q,l]),c.useEffect(()=>{!d&&q!=="hidden"||d&&q!=="idle"||N.current&&(t==="hover"&&(S.current=!0,setTimeout(()=>{S.current=!1},100)),N.current({withoutFocusReturn:!$.current}),N.current=null,$.current=!0)},[q,t,d]),c.useEffect(()=>()=>{N.current&&N.current(),N.current=null},[]),c.useEffect(()=>{const F=$o(O,10);return window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[O]),c.useEffect(()=>{O()},[w,O]),c.useImperativeHandle(g,()=>({open:B,close:Q}),[B,Q]),nt({Escape:()=>Q()},[Q]),_i([x,y],()=>{$.current=!1,Q()}),i.jsx(mi,{value:{id:j,flyout:A,width:a,triggerElRef:y,flyoutElRef:x,handleClose:Q,handleOpen:B,handleFocus:ce,handleBlur:ue,handleMouseEnter:Ce,handleMouseLeave:ke,handleTransitionEnd:G,handleClick:Me,handleContentMouseDown:ee,handleContentMouseUp:J,triggerType:t,trapFocusMode:l,contentGap:m,contentClassName:u,contentAttributes:f},children:r})},fi=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[r,s]=c.useState(t||!1),l=()=>{s(!1),n&&n()},a=()=>{s(!0),o&&o()};return i.jsx(or,z(p({},e),{defaultActive:void 0,active:r,onClose:l,onOpen:a}))},hi=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:r,flyout:s,handleFocus:l,handleBlur:a,handleMouseEnter:d,handleMouseLeave:m,handleClick:u,trapFocusMode:f}=sn();let _={onBlur:a,ref:o};return(r==="click"||f==="action-menu")&&(_.onClick=u),r==="hover"&&(_.onMouseEnter=d,_.onMouseLeave=m),(r==="hover"&&f!=="action-menu"||r==="focus")&&(_.onFocus=l,_["aria-describedby"]=n),(r==="click"||r==="focus"||f==="action-menu")&&(f==="dialog"?_["aria-haspopup"]="dialog":f==="selection-menu"?(_["aria-haspopup"]="listbox",_["aria-autocomplete"]="list"):_["aria-haspopup"]="menu",_["aria-expanded"]=s.status!=="idle",_["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(_)})},rr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),Jn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),bi=()=>{const{mode:e}=c.useContext(Jn);return e},sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(rr),{mode:o,setMode:r,invertMode:s}=c.useContext(Jn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:r,invertColorMode:s}),[e,o,r,s,t,n])},gi={root:"_root_ve3fz_1"},pt=e=>{const{name:t,defaultName:n,colorMode:o,children:r,className:s}=e,[l,a]=c.useState(!1),[d,m]=c.useState(n),u=bi(),f=sr(),_=!f.theme,b=t||d||f.theme,v=_?u:f.colorMode,w=o==="inverted"?v==="light"?"dark":"light":o||v,y=I(gi.root,s),x=j=>{m(j)};return ae(()=>{a(!0)},[]),ae(()=>{if(!document||!_)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",b),j||document.documentElement.setAttribute("data-rs-color-mode",w),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[b,w,_]),i.jsx(rr.Provider,{value:{theme:b,colorMode:w,setTheme:x},children:i.jsx("div",{className:y,"data-rs-theme":_?void 0:b,"data-rs-color-mode":_||!o&&!l?void 0:w,children:r})})},vi=e=>{const{defaultMode:t,children:n}=e,[o,r]=c.useState(t||"light"),s=c.useCallback(a=>{document.documentElement.setAttribute("data-rs-color-mode",a),r(d=>(d!==a&&Es(),a))},[]);ae(()=>{Ye(()=>{Ts()})},[o]),ae(()=>{const a=document.documentElement.getAttribute("data-rs-color-mode");a&&s(a)},[]);const l=c.useMemo(()=>({mode:o,setMode:s,invertMode:()=>{s(o==="light"?"dark":"light")}}),[o,s]);return i.jsx(Jn.Provider,{value:l,children:n})},ir=c.createContext({}),pi=()=>c.useContext(ir),lr=e=>{const{children:t,targetRef:n}=e,o=pi(),r=n||o.scopeRef;return ge.createPortal(i.jsx(pt,{children:t}),(r==null?void 0:r.current)||document.body)};function xi(e){const{children:t}=e,n=c.useRef(null);return i.jsx(ir.Provider,{value:{scopeRef:n},children:t(n)})}lr.Scope=xi;const Zn=lr,xt={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},yi=e=>{const{children:t,className:n,attributes:o}=e,{flyout:r,id:s,flyoutElRef:l,triggerElRef:a,handleTransitionEnd:d,triggerType:m,handleMouseEnter:u,handleMouseLeave:f,handleContentMouseDown:_,handleContentMouseUp:b,contentGap:v,contentClassName:g,contentAttributes:w,trapFocusMode:y,width:x}=sn(),{styles:j,status:C,position:N}=r,[S,k]=c.useState(!1);if(ae(()=>{k(!0)},[]),C==="idle"||!S)return null;const $=I(xt.content,C==="visible"&&xt["--visible"],["visible","hidden"].includes(C)&&xt["--animated"],N&&xt[`--position-${N}`],x==="trigger"&&xt["--width-trigger"]),A=I(xt.inner,n,g);let M;m==="hover"?M="tooltip":y==="dialog"?M="dialog":y==="selection-menu"?M="listbox":y==="action-menu"&&(M="menu");const q=i.jsx("div",{className:$,style:z(p({},j),{"--rs-flyout-gap":v}),ref:l,onTransitionEnd:d,onMouseEnter:m==="hover"?u:void 0,onMouseLeave:m==="hover"?f:void 0,onMouseDown:_,onTouchStart:_,onMouseUp:b,onTouchEnd:b,children:i.jsx("div",z(p({role:M},o),{id:s,"aria-modal":m==="click",style:w==null?void 0:w.style,className:A,children:t}))}),O=Yn(a.current);return i.jsx(Zn,{targetRef:O===document.body?void 0:{current:O},children:q})},Qn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(or,p({},e)):i.jsx(fi,p({},e))};Qn.Trigger=hi,Qn.Content=yi;const yt=Qn,eo={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},wi={root:"_root_e7w6q_1"},to=e=>{if(!e)return null;const t=se("--rs-p",e);return{classNames:wi.root,variables:t}},no=e=>{var j;const{id:t,forcePosition:n,onOpen:o,onClose:r,active:s,defaultActive:l,children:a,width:d,contentGap:m,variant:u="elevated",triggerType:f="click",position:_="bottom",disableHideAnimation:b,instanceRef:v}=e,g=(j=e.padding)!=null?j:u==="headless"?0:4,w=e.trapFocusMode||(f==="hover"?"content-menu":void 0),y=to(g),x=I(eo.content,!!d&&eo["content--has-width"],u&&eo[`content--variant-${u}`],y==null?void 0:y.classNames);return i.jsx(yt,{id:t,instanceRef:v,position:_,forcePosition:n,onOpen:o,onClose:r,trapFocusMode:w,triggerType:f,active:s,defaultActive:l,width:d,disableHideAnimation:b,contentGap:m,contentClassName:x,contentAttributes:{style:p({},y==null?void 0:y.variables)},children:a})};no.Trigger=yt.Trigger,no.Content=yt.Content;const ln=no,Ke={root:"_root_1dqcq_1",icon:"_icon_1dqcq_14",content:"_content_1dqcq_19","--rounded-corners":"_--rounded-corners_1dqcq_24","--size-small":"_--size-small_1dqcq_1","--size-medium":"_--size-medium_1dqcq_1","--size-large":"_--size-large_1dqcq_1","--color-neutral":"_--color-neutral_1dqcq_63","--selected":"_--selected_1dqcq_67","--color-critical":"_--color-critical_1dqcq_73","--color-primary":"_--color-primary_1dqcq_83","--disabled":"_--disabled_1dqcq_104",aligner:"_aligner_1dqcq_125","--rounded-corners-true--m":"_--rounded-corners-true--m_1dqcq_1","--rounded-corners-false--m":"_--rounded-corners-false--m_1dqcq_1","--size-small--m":"_--size-small--m_1dqcq_1","--size-medium--m":"_--size-medium--m_1dqcq_1","--size-large--m":"_--size-large--m_1dqcq_1","--rounded-corners-true--l":"_--rounded-corners-true--l_1dqcq_1","--rounded-corners-false--l":"_--rounded-corners-false--l_1dqcq_1","--size-small--l":"_--size-small--l_1dqcq_1","--size-medium--l":"_--size-medium--l_1dqcq_1","--size-large--l":"_--size-large--l_1dqcq_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_1dqcq_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_1dqcq_1","--size-small--xl":"_--size-small--xl_1dqcq_1","--size-medium--xl":"_--size-medium--xl_1dqcq_1","--size-large--xl":"_--size-large--xl_1dqcq_1"},ji=e=>i.jsx(Yt,z(p({},e),{side:e.side||"inline",className:[Ke.aligner,e.className]})),ar=c.forwardRef((e,t)=>{const{icon:n,startSlot:o,endSlot:r,children:s,color:l="primary",selected:a,disabled:d,onClick:m,href:u,size:f="medium",roundedCorners:_,as:b,className:v,attributes:g}=e,w=I(Ke.root,v,X(Ke,"--size",f),X(Ke,"--rounded-corners",_),l&&Ke[`--color-${l}`],a&&Ke["--selected"],d&&Ke["--disabled"]),y=Le(f,j=>j==="large"?3:2),x=Le(f,j=>j==="large"?5:4);return i.jsx(De,{disabled:d,className:w,attributes:z(p({},g),{"data-rs-aligner-target":!0}),onClick:m,href:u,ref:t,as:b,children:i.jsxs(P,{direction:"row",gap:y,align:"center",children:[n&&i.jsx(fe,{svg:n,className:Ke.icon,size:x}),!n&&o,s&&i.jsx(P.Item,{grow:!0,className:Ke.content,children:s}),r]})})});ar.Aligner=ji;const cr=ar,wt=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),an={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},oo=c.createContext(null),Xe=e=>{const l=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:r="action-menu"}=l,s=Se(l,["children","position","triggerType","trapFocusMode"]);return i.jsx(ln,z(p({},s),{position:n,padding:0,trapFocusMode:r,triggerType:o,children:t}))},Ci=e=>{const{children:t,attributes:n,className:o}=e,r=c.useContext(oo),[s]=ot(),{ref:l}=nt({[s?Fn:Vn]:()=>{var d;(d=r==null?void 0:r.current)==null||d.close()},[Ws]:()=>{const d=Kt();d==null||d.click()}},[r==null?void 0:r.current]),a=I(an.menu,o);return i.jsx(ln.Content,{className:a,attributes:z(p({},n),{ref:l}),children:t})},ki=e=>{const{children:t}=e;return i.jsx("div",{className:an.section,role:"group",children:t})},dr=e=>{const{onClick:t}=e,{handleClose:n}=sn(),o=r=>{n&&n({closeParents:!0}),t&&t(r)};return i.jsx(cr,z(p({},e),{roundedCorners:!0,className:an.item,attributes:p({role:"menuitem"},e.attributes),onClick:o}))},$i=e=>{const{children:t}=e,n=c.useRef();return i.jsx(oo.Provider,{value:n,children:i.jsx(Xe,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},zi=e=>{const a=e,{children:t,attributes:n}=a,o=Se(a,["children","attributes"]),r=c.useContext(oo),[s]=ot(),{ref:l}=nt({[s?Vn:Fn]:()=>{var d;(d=r==null?void 0:r.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(dr,z(p({},o),{attributes:z(p({},n),{ref:l}),endSlot:i.jsx(fe,{autoWidth:!0,svg:wt,className:an.arrow}),children:t}))},Ni=e=>{const{children:t}=e;return i.jsx(Xe.Trigger,{children:n=>i.jsx(zi,{attributes:n,children:t})})};Xe.Trigger=ln.Trigger,Xe.Content=Ci,Xe.Section=ki,Xe.Item=dr,Xe.SubMenu=$i,Xe.SubTrigger=Ni;const qt=Xe,ur=c.createContext({}),_r=e=>{const y=e,{children:t,onChange:n,onItemSelect:o,name:r}=y,s=Se(y,["children","onChange","onItemSelect","name"]),l=c.useRef(null),[a,d]=c.useState(!1),[m,u]=c.useState(!1),f=!!c.Children.toArray(t).filter(Boolean).length,_=c.useCallback(()=>d(!0),[]),b=()=>d(!1);nt({[`${Ln},${Pn}`]:()=>_()},[_],{ref:l});const v=x=>{n==null||n(x),u(!1),_()},g=x=>{n==null||n({value:x.value,name:r}),o==null||o({value:x.value}),u(!0)},w=x=>{var j;requestAnimationFrame(()=>{m&&(d(!1),u(!1))}),(j=s.onFocus)==null||j.call(s,x)};return i.jsx(ur.Provider,{value:{onItemClick:g},children:i.jsxs(qt,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!m&&f&&a,onClose:b,onOpen:_,disableHideAnimation:!0,children:[i.jsx(qt.Trigger,{children:C=>{var N=C,{ref:x}=N,j=Se(N,["ref"]);return i.jsx(Wo,z(p({},s),{name:r,onChange:v,attributes:z(p({},s.attributes),{ref:x}),inputAttributes:z(p({},s.inputAttributes),{onFocus:S=>{var k;(k=j.onFocus)==null||k.call(j),w(S)},ref:l,role:"combobox"})}))}}),i.jsx(qt.Content,{children:t})]})})},Ei=e=>{const l=e,{value:t,onClick:n}=l,o=Se(l,["value","onClick"]),{onItemClick:r}=c.useContext(ur),s=a=>{n==null||n(a),r({value:t})};return i.jsx(qt.Item,z(p({},o),{attributes:z(p({},o.attributes),{role:"option"}),onClick:s}))};_r.Item=Ei;const Ti=_r,cn={root:"_root_12o47_1",img:"_img_12o47_13","--variant-faded":"_--variant-faded_12o47_20","--color-neutral":"_--color-neutral_12o47_21","--color-critical":"_--color-critical_12o47_25","--color-positive":"_--color-positive_12o47_29","--color-warning":"_--color-warning_12o47_33","--color-primary":"_--color-primary_12o47_37"},Mi=e=>{const{color:t="neutral",variant:n,src:o,size:r=12,squared:s,initials:l,icon:a,alt:d,className:m,attributes:u}=e,f=s?Le(r,g=>g>=24?"large":g>=12?"medium":"small"):"circular",_=bt(r),b=I(cn.root,m,_==null?void 0:_.classNames,t&&cn[`--color-${t}`],n&&cn[`--variant-${n}`]),v=()=>o?i.jsx("img",{role:l?void 0:"presentation",src:o,alt:d,className:cn.img}):a?i.jsx(fe,{svg:a,size:Le(r,g=>Math.ceil(g*.4))}):l;return i.jsx(P,{borderRadius:f,attributes:z(p({},u),{style:p({},_==null?void 0:_.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:b,children:v()})},mr=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Oe={root:"_root_1ltqe_1",dismiss:"_dismiss_1ltqe_21","--actionable":"_--actionable_1ltqe_26","--variant-faded":"_--variant-faded_1ltqe_1","--variant-outline":"_--variant-outline_1ltqe_1","--color-positive":"_--color-positive_1ltqe_47","--color-critical":"_--color-critical_1ltqe_67","--color-warning":"_--color-warning_1ltqe_87","--color-primary":"_--color-primary_1ltqe_107","--size-small":"_--size-small_1ltqe_1","--size-medium":"_--size-medium_1ltqe_1","--size-large":"_--size-large_1ltqe_1","--rounded":"_--rounded_1ltqe_153","--hidden":"_--hidden_1ltqe_165",container:"_container_1ltqe_172","--container-overlap":"_--container-overlap_1ltqe_198","--container-position-top-end":"_--container-position-top-end_1ltqe_202","--container-position-bottom-end":"_--container-position-bottom-end_1ltqe_214"},Si=e=>{const{children:t,position:n="top-end",overlap:o,className:r,attributes:s}=e,l=I(Oe.container,r,o&&Oe["--container-overlap"],n&&Oe[`--container-position-${n}`]);return i.jsx("div",z(p({},s),{className:l,children:t}))},fr=e=>{const{children:t,color:n,rounded:o,size:r="medium",icon:s,endIcon:l,variant:a,hidden:d,href:m,onClick:u,onDismiss:f,dismissAriaLabel:_,className:b,attributes:v}=e,g=!!(u||m),w=r==="large"?4:3.5,y=I(Oe.root,b,o&&Oe["--rounded"],d&&Oe["--hidden"],r&&Oe[`--size-${r}`],n&&Oe[`--color-${n}`],a&&Oe[`--variant-${a}`],g&&Oe["--actionable"]);return i.jsxs(De,{onClick:u,href:m,className:y,attributes:v,children:[s&&i.jsx(fe,{svg:s,autoWidth:!0,size:w}),t&&i.jsx(ne,{variant:r==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),l&&i.jsx(fe,{svg:l,autoWidth:!0,size:w}),f&&i.jsx(De,{onClick:f,className:Oe.dismiss,as:"span",attributes:{"aria-label":_},children:i.jsx(fe,{svg:mr,size:w})})]})};fr.Container=Si;const Di=fr,dn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},hr=e=>{const{size:t="small",color:n="primary",className:o,attributes:r}=e,s=r==null?void 0:r["aria-label"],l=I(dn.root,o,X(dn,"--size",t),n&&dn[`--color-${n}`]);return i.jsx("span",z(p({},r),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:dn.inner})}))},be={root:"_root_qjphi_1",loader:"_loader_qjphi_37",icon:"_icon_qjphi_45","--icon-position-end":"_--icon-position-end_qjphi_49",text:"_text_qjphi_60","--loading":"_--loading_qjphi_72","--elevated":"_--elevated_qjphi_89","--icon-only":"_--icon-only_qjphi_93","--rounded":"_--rounded_qjphi_99","--size-small":"_--size-small_qjphi_1","--size-medium":"_--size-medium_qjphi_1","--size-large":"_--size-large_qjphi_1","--size-xlarge":"_--size-xlarge_qjphi_1","--full-width":"_--full-width_qjphi_141","--variant-solid":"_--variant-solid_qjphi_155","--color-black":"_--color-black_qjphi_155","--color-white":"_--color-white_qjphi_156","--variant-faded":"_--variant-faded_qjphi_157","--color-neutral":"_--color-neutral_qjphi_157","--color-primary":"_--color-primary_qjphi_158","--color-critical":"_--color-critical_qjphi_159","--color-positive":"_--color-positive_qjphi_160","--color-inherit":"_--color-inherit_qjphi_161","--variant-outline":"_--variant-outline_qjphi_162","--variant-ghost":"_--variant-ghost_qjphi_163","--highlighted":"_--highlighted_qjphi_182","--disabled":"_--disabled_qjphi_535",group:"_group_qjphi_567",aligner:"_aligner_qjphi_628","--size-small--m":"_--size-small--m_qjphi_1","--size-medium--m":"_--size-medium--m_qjphi_1","--size-large--m":"_--size-large--m_qjphi_1","--size-xlarge--m":"_--size-xlarge--m_qjphi_1","--full-width-true--m":"_--full-width-true--m_qjphi_1","--full-width-false--m":"_--full-width-false--m_qjphi_1","--size-small--l":"_--size-small--l_qjphi_1","--size-medium--l":"_--size-medium--l_qjphi_1","--size-large--l":"_--size-large--l_qjphi_1","--size-xlarge--l":"_--size-xlarge--l_qjphi_1","--full-width-true--l":"_--full-width-true--l_qjphi_1","--full-width-false--l":"_--full-width-false--l_qjphi_1","--size-small--xl":"_--size-small--xl_qjphi_1","--size-medium--xl":"_--size-medium--xl_qjphi_1","--size-large--xl":"_--size-large--xl_qjphi_1","--size-xlarge--xl":"_--size-xlarge--xl_qjphi_1","--full-width-true--xl":"_--full-width-true--xl_qjphi_1","--full-width-false--xl":"_--full-width-false--xl_qjphi_1"},Ii=e=>{const{children:t,className:n,attributes:o}=e,r=I(be.group,n);return i.jsx("div",z(p({},o),{className:r,role:"group",children:t}))},Ai=e=>i.jsx(Yt,z(p({},e),{side:e.side||e.position,className:[be.aligner,e.className]})),ro=c.forwardRef((e,t)=>{const{variant:n="solid",color:o="neutral",elevated:r,highlighted:s,fullWidth:l,loading:a,disabled:d,type:m,href:u,size:f="medium",children:_,rounded:b,onClick:v,icon:g,endIcon:w,as:y,className:x,attributes:j}=e,C=(g||w)&&!_,N=I(be.root,x,o&&be[`--color-${o}`],n&&be[`--variant-${n}`],X(be,"--size",f),X(be,"--full-width",l),r&&n!=="ghost"&&be["--elevated"],b&&be["--rounded"],d&&be["--disabled"],a&&be["--loading"],s&&be["--highlighted"],C&&be["--icon-only"]),S=k=>{if(!(k==="start"&&g||k==="end"&&w))return null;const q=I(be.icon,k==="end"&&be["--icon-position-end"]),O=Le(f,R=>R==="large"?5:R==="xlarge"?6:4);return i.jsx(fe,{className:q,svg:k==="start"?g:w,size:O,autoWidth:!0})};return i.jsxs(De,{disabled:d||a,className:N,attributes:z(p({},j),{"data-rs-aligner-target":!0}),type:m,onClick:v,href:u,ref:t,as:y,children:[a&&i.jsx("div",{className:be.loader,children:i.jsx(hr,{size:"small",color:"inherit"})}),S("start"),_&&i.jsx("span",{className:be.text,children:_}),S("end")]})});ro.Group=Ii,ro.Aligner=Ai;const ve=ro,qi=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Li=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:r,ariaLabel:s,className:l,attributes:a}=e,d=r&&r>=2?r:null,[m,u]=c.useState(!1),f=I(l),_=c.Children.count(t);let b=0;const v=()=>{u(!0)};return i.jsx("nav",z(p({},a),{"aria-label":s||(a==null?void 0:a["aria-label"]),className:f,children:i.jsx(P,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(g,w)=>{if(!g)return null;const y=_-(d||0),x=b===0,j=b>y,C=!d||x||j||m,N=b===y;b+=1;let S=null;return C?S=g:N&&(S=i.jsx(ve.Aligner,{children:i.jsx(ve,{variant:"ghost",size:"small",icon:qi,onClick:v})})),S===null?null:i.jsxs(P,{as:"li",gap:2,direction:"row",align:"center",children:[w>0&&(C||N)&&i.jsx(ne,{color:"neutral-faded",children:n||i.jsx(fe,{svg:wt,size:3})}),i.jsx(ne,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:S})]},w)})})}))},Lt={root:"_root_80rry_1","--color-primary":"_--color-primary_80rry_6","--color-critical":"_--color-critical_80rry_10","--color-positive":"_--color-positive_80rry_14","--color-inherit":"_--color-inherit_80rry_18","--variant-plain":"_--variant-plain_80rry_23","--disabled":"_--disabled_80rry_27","--variant-underline":"_--variant-underline_80rry_33","--with-icon":"_--with-icon_80rry_49"},br=c.forwardRef((e,t)=>{const{icon:n,disabled:o,href:r,color:s="primary",variant:l="underline",className:a,children:d,attributes:m,type:u,onClick:f}=e,_=I(Lt.root,a,o&&Lt["--disabled"],l&&Lt[`--variant-${l}`],s&&Lt[`--color-${s}`],n&&Lt["--with-icon"]);return i.jsxs(De,{href:r,disabled:o,className:_,attributes:m,type:u,onClick:f,ref:t,children:[n&&i.jsx(fe,{svg:n}),d]})}),Pi=e=>{const{children:t,onClick:n,href:o,icon:r,disabled:s}=e;return!o&&!n&&!s?i.jsx(ne,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(br,{onClick:n,href:o,icon:r,disabled:s,variant:"plain",color:"inherit",children:t})},gr=Li;gr.Item=Pi;const vr=7,pr=1,Pt=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},so=e=>{const{date:t,firstWeekDay:n=pr}=e,o=t.getDay();return o<n?vr-o-n:o-n},Fi=e=>{const{firstWeekDay:t=pr,renderWeekDay:n}=e,o=new Date(2021,1,t),r=[];for(let s=t;s<t+vr;s++){const l=n?n({weekDay:s,date:o}):o.toLocaleDateString("en-US",{weekday:"short"});r.push(l.slice(0,2)),o.setDate(o.getDate()+1)}return r},Vi=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((n,o)=>{const r=new Date(0,o);return t?t({month:o,date:r}):r.toLocaleString("default",{month:"short"})})},Oi=e=>{const{date:t,firstWeekDay:n}=e,o=t.getMonth(),r=t.getFullYear(),s=[],l=new Date(r,o,1),a=so({date:l,firstWeekDay:n});for(a!==0&&s.push(new Array(a).fill(null));o===l.getMonth();)(so({date:l,firstWeekDay:n})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=so({date:l,firstWeekDay:n});return d!==0&&s[s.length-1].push(...new Array(7-d).fill(null)),s},xr=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],io=(e,t)=>{const n=new Date(e);return n.setMonth(t),n},Bi=e=>io(e,e.getMonth()-1),yr=e=>io(e,e.getMonth()+1),wr=(e,t)=>{const n=new Date(e);return n.setFullYear(t),n},Wi=e=>wr(e,e.getFullYear()-1),Hi=e=>wr(e,e.getFullYear()+1),Ri=e=>{const{date:t,min:n,max:o}=e,r=t.getMonth(),s=t.getFullYear(),l=new Date(s,r,0),a=yr(t);return a.setDate(0),{isFirstMonth:n&&n>l,isLastMonth:o&&o<a}},Ui=e=>{const{rootRef:t,changeToNextMonth:n,changeToPreviousMonth:o,monthDate:r,verticalDelta:s,min:l,max:a}=e,d=c.useRef(0),m=c.useCallback(u=>{const{delta:f,onMonthChange:_}=u,b=document.activeElement;if(!b)return;const v=xr(t.current),g=Array.from(v),y=g.findIndex(A=>A===b)+f,x=g[y],j=b.getAttribute("data-rs-date");if(!j)return;const[C,N,S]=j==null?void 0:j.split("-").map(Number);let k;if(S?k=new Date(C,N-1,S+f):f>0?k=new Date(C,N-1+f,1):k=new Date(C,N-1+f+1,0),!(l&&k<l||a&&k>a)){if(x){x.focus();return}d.current=y<0?y:y-(g.length-1),_()}},[t,l,a]);c.useEffect(()=>{const u=d.current;if(u===0)return;const f=xr(t.current),_=u<0?f.length+u:u-1,b=f[_];b&&b.focus(),d.current=0},[r,t]),nt({[Vn]:()=>m({delta:-1,onMonthChange:o}),[Fn]:()=>m({delta:1,onMonthChange:n}),[Ln]:()=>m({delta:-s,onMonthChange:o}),[Pn]:()=>m({delta:s,onMonthChange:n})},[n,o,m,s],{ref:t})},pe={selection:"_selection_ai5jc_1",weekday:"_weekday_ai5jc_6",row:"_row_ai5jc_12",control:"_control_ai5jc_16","cell-button":"_cell-button_ai5jc_20",cell:"_cell_ai5jc_20","cell--in-range":"_cell--in-range_ai5jc_1","cell--active-start":"_cell--active-start_ai5jc_1","cell--active-end":"_cell--active-end_ai5jc_1","cell--active-single":"_cell--active-single_ai5jc_1"},Yi=e=>{const{date:t,startValue:n,endValue:o,isActiveStart:r,isActiveEnd:s,disabled:l,focusable:a,onChange:d,range:m,hoveredDate:u,onDateHover:f,onDateHoverEnd:_,renderAriaLabel:b}=e;if(!t)return i.jsx("td",{className:pe.cell,"aria-hidden":"true"});const v=n&&n<t&&(o&&o>t||u&&!o&&u>t),g=I([pe.cell,!m&&r&&pe["cell--active-single"],r&&pe["cell--active-start"],(s||!o&&r&&!(u&&n&&u>n))&&pe["cell--active-end"],v&&pe["cell--in-range"]]),w=()=>{if(!m){d==null||d({value:t});return}const j=n&&o,C=!n&&!o,N=n&&t<n,S=j||C||N,k=S?t:n,$=S?null:t;d==null||d({value:{start:k,end:$}})},y=()=>{f(t)},x=()=>{_(t)};return i.jsx("td",{className:g,role:l?"presentation":"gridcell",children:i.jsx(De,{fullWidth:!0,insetFocus:!0,className:pe["cell-button"],disabled:l,onClick:w,attributes:{role:"checkbox",tabIndex:a?0:-1,"aria-hidden":l,"aria-label":b?b({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":r||s,"data-rs-date":Pt({date:t}),onMouseEnter:y,onMouseLeave:x,onFocus:y,onBlur:x},children:t.getDate()})})},Gi=e=>{const{date:t,value:n,onChange:o,min:r,max:s,range:l,firstWeekDay:a,hoveredDate:d,onDateHover:m,onDateHoverEnd:u,renderWeekDay:f,renderDateAriaLabel:_}=e;let b=!1;const v=t.getMonth(),g=Oi({date:t,firstWeekDay:a}),w=Fi({firstWeekDay:a,renderWeekDay:f});return i.jsxs("table",{className:pe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:w.map(y=>i.jsx("th",{className:pe.weekday,scope:"col",children:y},y))})}),i.jsx("tbody",{children:g.map(y=>{var j;const x=[v,(j=y[0])==null?void 0:j.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:pe.row,children:y.map((C,N)=>{const S=!!C&&(r&&C<r||s&&C>s),k=C==null?void 0:C.getMonth(),$=new Date,A=Pt({date:$}),M=n&&"start"in n?n.start:n,q=n&&"end"in n?n.end:n,O=C&&Pt({date:C}),R=M&&Pt({date:M}),L=q&&Pt({date:q}),U=!!O&&!!R&&O===R,W=!!O&&!!L&&O===L;let H=!1;return!b&&C&&(M&&M.getMonth()===(C==null?void 0:C.getMonth())?H=+M==+C:O&&k===$.getMonth()?H=O>=A&&!S:H=!S),H&&(b=!0),i.jsx(Yi,{date:C,disabled:S,range:l,focusable:H,startValue:M,endValue:q,isActiveStart:U,isActiveEnd:W,onChange:o,hoveredDate:d,onDateHover:m,onDateHoverEnd:u,renderAriaLabel:_},N)})},x)})})]})},lo=3,Ki=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:n,monthDate:o,min:r,max:s,onMonthClick:l}=e,a=c.useRef(null),d=Vi({renderMonthLabel:t}),m=[];for(let u=0;u<d.length;u+=lo){const f=d.slice(u,u+lo);m.push(f)}return c.useEffect(()=>{var f;const u=(f=a.current)==null?void 0:f.querySelector('[tabIndex="0"]');Ye(()=>{u==null||u.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:pe.selection,children:i.jsx("tbody",{children:m.map((u,f)=>i.jsx("tr",{className:pe.row,children:u.map((_,b)=>{const v=f*lo+b,g=new Date(o.getFullYear(),v),w=r&&r.getFullYear()>=g.getFullYear()&&r.getMonth()>g.getMonth(),x=s&&s.getFullYear()<=g.getFullYear()&&s.getMonth()<g.getMonth()||w;return i.jsx("td",{role:x?"presentation":"gridcell",className:pe.cell,children:i.jsx(De,{fullWidth:!0,insetFocus:!0,className:pe["cell-button"],disabled:x,onClick:()=>l(v),attributes:{tabIndex:v===o.getMonth()?0:-1,"aria-hidden":x,"aria-label":n?n({month:v}):_,"data-rs-date":`${o.getFullYear()}-${(v+1).toString().padStart(2,"0")}`},children:_})},_)})},f))})})},Xi={root:"_root_1g94s_1"},ao=e=>{const{children:t}=e;return i.jsx("div",{className:Xi.root,children:t})},un=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Ji=e=>{const{selectionMode:t,onMonthTitleClick:n,monthTitleRef:o,monthDate:r,renderSelectedMonthLabel:s,isFirstMonth:l,isLastMonth:a,onNextClick:d,onPreviousClick:m,monthSelectionAriaLabel:u="Select a month",previousMonthAriaLabel:f="Previous month",previousYearAriaLabel:_="Previous year",nextMonthAriaLabel:b="Next month",nextYearAriaLabel:v="Next year"}=e,g=c.useRef(null),w=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==g.current)return;const y=w.current||o.current;Ye(()=>{y==null||y.focus()})},[l,o]),c.useEffect(()=>{if(!a||document.activeElement!==w.current)return;const y=g.current||o.current;Ye(()=>{y==null||y.focus()})},[a,o]),i.jsxs(P,{direction:"row",gap:2,align:"center",children:[i.jsx(ht,{visibility:!0,hide:l,children:i.jsx("div",{className:pe.control,children:i.jsx(ve,{variant:"ghost",icon:un,onClick:m,attributes:{ref:g,"aria-label":t==="date"?f:_}})})}),i.jsxs(P.Item,{grow:!0,children:[t==="date"&&i.jsxs(ve,{fullWidth:!0,variant:"ghost",onClick:n,attributes:{ref:o},children:[s?s({date:r}):r.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(ao,{children:u})]}),t==="month"&&i.jsx(ne,{align:"center",weight:"medium",children:r.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(ht,{visibility:!0,hide:a,children:i.jsx("div",{className:pe.control,children:i.jsx(ve,{variant:"ghost",icon:wt,onClick:d,attributes:{ref:w,"aria-label":t==="date"?b:v}})})})]})},co=e=>{const{value:t,onChange:n,defaultMonth:o,min:r,max:s,range:l,firstWeekDay:a,renderMonthLabel:d,renderSelectedMonthLabel:m,renderWeekDay:u,previousMonthAriaLabel:f,previousYearAriaLabel:_,nextMonthAriaLabel:b,nextYearAriaLabel:v,monthSelectionAriaLabel:g,renderMonthAriaLabel:w,renderDateAriaLabel:y}=e,[x,j]=c.useState("date"),[C,N]=c.useState(o||new Date),[S,k]=c.useState(null),$=c.useRef(null),A=c.useRef(x),M=Ri({date:C,min:r,max:s}),q=c.useRef(null),O=()=>{if(x==="month"){N(B=>Wi(B));return}N(B=>Bi(B))},R=()=>{if(x==="month"){N(B=>Hi(B));return}N(B=>yr(B))},L=()=>{j("month")},U=B=>{N(Q=>io(Q,B)),j("date")},W=B=>{k(B)},H=B=>{S&&+S==+B&&k(null)};return c.useEffect(()=>{x==="date"&&x!==A.current&&Ye(()=>{var B;(B=$.current)==null||B.focus()}),A.current=x},[x]),Ui({monthDate:C,rootRef:q,changeToNextMonth:R,changeToPreviousMonth:O,verticalDelta:x==="date"?7:3,min:r,max:s}),i.jsxs(P,{gap:2,children:[i.jsx(Ji,{renderSelectedMonthLabel:m,monthDate:C,selectionMode:x,isFirstMonth:M.isFirstMonth,isLastMonth:M.isLastMonth,monthTitleRef:$,onMonthTitleClick:L,onNextClick:R,onPreviousClick:O,previousMonthAriaLabel:f,previousYearAriaLabel:_,nextMonthAriaLabel:b,nextYearAriaLabel:v,monthSelectionAriaLabel:g}),i.jsxs(P.Item,{attributes:{ref:q},children:[x==="date"&&i.jsx(Gi,{date:C,value:t,onChange:n,min:r,max:s,range:l,firstWeekDay:a,hoveredDate:S,onDateHover:W,onDateHoverEnd:H,renderWeekDay:u,renderDateAriaLabel:y}),x==="month"&&i.jsx(Ki,{monthDate:C,onMonthClick:U,renderMonthLabel:d,renderMonthAriaLabel:w,min:r,max:s})]})]})},Zi=e=>{const a=e,{onChange:t,defaultValue:n,range:o}=a,r=Se(a,["onChange","defaultValue","range"]),[s,l]=c.useState(n||null);return o?i.jsx(co,z(p({range:!0},r),{value:s,onChange:d=>{l(d.value),t==null||t(d)}})):i.jsx(co,z(p({},r),{value:s,onChange:d=>{l(d.value),t==null||t(d)}}))},Qi=e=>e.value!==void 0?i.jsx(co,p({},e)):i.jsx(Zi,p({},e)),jt={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},el=c.forwardRef((e,t)=>{const{padding:n=4}=e,{selected:o,elevated:r,bleed:s,height:l,onClick:a,href:d,children:m,className:u,attributes:f,as:_="div"}=e,b=!!d||!!a,v=Nn("medium"),g=Mo(s),w=to(n),y=bt(l),x=I(jt.root,v==null?void 0:v.classNames,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,b&&jt["--actionable"],r&&jt["--elevated"],o&&jt["--selected"],u),j=p(p(p(p({},f==null?void 0:f.style),g==null?void 0:g.variables),w==null?void 0:w.variables),y==null?void 0:y.variables);return b?i.jsx(De,{className:x,attributes:z(p({},f),{style:j}),href:d,as:_,onClick:a,ref:t,children:i.jsx("span",{className:jt.content,children:m})}):i.jsx(_,z(p({},f),{onClick:a,href:d,ref:t,className:x,style:j,children:i.jsx("span",{className:jt.content,children:m})}))});var Ct=(e=>(e.back="back",e.forward="forward",e))(Ct||{});const Je={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},jr=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:r,isRTL:s,mounted:l}=e,[a,d]=c.useState(!1),[m,u]=c.useState(!1),f=t===Ct.forward,_=t===(s?Ct.back:Ct.forward),b=I(Je.control,_?Je["--control-next"]:Je["--control-prev"],a&&Je["--control-visible"],m&&Je["--control-rendered"]);return ae(()=>{const v=n.current;if(!v||!l)return;let g;const w=Math.abs(o),y=w<=0,x=w+v.clientWidth>=v.scrollWidth-1;return(f?x:y)?(d(!1),g=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{g&&clearTimeout(g)}},[o,n.current,l]),i.jsx("div",{className:b,"aria-hidden":"true",children:i.jsx(ve,{onClick:r,icon:_?wt:un,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!a}})})},tl=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:r,navigationDisplay:s,instanceRef:l,className:a,attributes:d}=e,[m,u]=c.useState(!1),[f,_]=c.useState(0),[b]=ot(),v=c.useRef(null),g={};typeof r=="object"&&Object.entries(r).forEach(([k,$])=>{g[k]=typeof $=="number"&&$>0});const w=I(Je.root,a,...X(Je,"--bleed",typeof r=="number"?!0:g)),y=ds(k=>{const $=k.target;_($.scrollLeft)},16),x=()=>{const $=getComputedStyle(v.current).gap.split(" ")[0];return Number($.replace("px",""))},j=()=>{const k=v.current;k.scrollBy({left:k.clientWidth+x(),top:0,behavior:"smooth"})},C=()=>{const k=v.current;k.scrollBy({left:-k.clientWidth-x(),top:0,behavior:"smooth"})},N=b?j:C,S=b?C:j;return c.useImperativeHandle(l,()=>({navigateBack:N,navigateForward:S})),ae(()=>{u(!0)},[]),i.jsxs("section",z(p({},d),{className:w,style:p(p({},se("--rs-carousel-items",o)),se("--rs-carousel-bleed",r)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(jr,{isRTL:b,type:Ct.back,scrollElRef:v,scrollPosition:f,onClick:N,mounted:m}),i.jsx(jr,{isRTL:b,type:Ct.forward,scrollElRef:v,scrollPosition:f,onClick:S,mounted:m})]}),i.jsx(P,{as:"ul",direction:"row",wrap:!1,gap:n,className:Je.scroll,attributes:{ref:v,onScroll:y},children:c.Children.map(t,k=>i.jsx(P.Item,{className:Je.item,as:"li",children:k}))})]}))},nl={root:"_root_1feer_1"},uo=e=>{const{name:t,value:n,type:o,onChange:r,onFocus:s,onBlur:l,checked:a,defaultChecked:d,disabled:m,className:u,attributes:f}=e,_=I(nl.root,u);return i.jsx("input",z(p({},f),{className:_,type:o,name:t,value:n,checked:a,defaultChecked:d,disabled:m,onChange:r,onFocus:s||(f==null?void 0:f.onFocus),onBlur:l||(f==null?void 0:f.onBlur)}))},Cr=c.createContext(null),ol=()=>c.useContext(Cr),kr=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=d=>{const{event:m,value:u,checked:f}=d;if(!u)return;let _=[...r];f?_.push(u):_=_.filter(b=>b!==u),t&&t({name:n,value:_,event:m})};return i.jsx(Cr.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},rl=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||[]),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx(kr,z(p({},e),{value:o,defaultValue:void 0,onChange:s}))},sl=e=>{const{value:t}=e;return t!==void 0?i.jsx(kr,p({},e)):i.jsx(rl,p({},e))},$r=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),rt={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},il=e=>{var C;const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,indeterminate:l,className:a,attributes:d,inputAttributes:m}=e,u=ol(),f=tt(),_=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),b=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),v=u?(C=u.value)==null?void 0:C.includes(n):e.checked,g=u?void 0:e.defaultChecked,w=u?u.name:e.name,y=c.useRef(null),x=I(rt.root,a,_&&rt["--error"],b&&rt["--disabled"]),j=N=>{if(!w)return;const{checked:S}=N.target,k={name:w,value:n,checked:S,event:N};o&&o(k),u!=null&&u.onChange&&u.onChange(k)};return ae(()=>{y.current.indeterminate=l||!1},[l,v]),i.jsxs("label",z(p({},d),{className:x,children:[i.jsxs("span",{className:rt.field,children:[i.jsx(uo,{className:rt.input,type:"checkbox",checked:v,defaultChecked:g,name:w,disabled:b,value:n,onChange:j,onFocus:r,onBlur:s,attributes:z(p({},m),{ref:y})}),i.jsx("div",{className:rt.decorator,children:i.jsx(fe,{svg:$r,className:rt.icon})})]}),t&&i.jsx("span",{className:rt.text,children:t})]}))},ll={root:"_root_1c40o_1"},al=e=>{const{children:t,padding:n=4,width:o,className:r,attributes:s}=e,l=I(ll.root,r);return i.jsx(P,{attributes:s,className:l,paddingInline:n,width:o,maxWidth:"100%",children:t})},Ft={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},cl=e=>{const{children:t,align:n,onClose:o,hideCloseButton:r,variant:s,closeAriaLabel:l,className:a,attributes:d}=e,m=I(Ft.root,a,s&&Ft[`--variant-${s}`],n&&Ft[`--align-${n}`],r&&Ft["--hide-close"]),u=s==="media"?"div":ve.Aligner;return i.jsxs("div",z(p({},d),{className:m,children:[t,!r&&i.jsx(u,{className:Ft.close,children:i.jsx(ve,z(p({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?l:void 0},icon:mr}))})]}))},_n=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),r=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(l=>!l)},[]);return{active:t,activate:o,deactivate:r,toggle:s}},Vt={root:"_root_1dzzo_1","--highlighted":"_--highlighted_1dzzo_2",triggerLayer:"_triggerLayer_1dzzo_2",trigger:"_trigger_1dzzo_2"},dl=e=>{const{children:t}=e;return i.jsx("span",{className:Vt.trigger,children:t})},zr=e=>{const{name:t,children:n,className:o,attributes:r,inputAttributes:s,onChange:l}=e,a=_n(),d=I(Vt.root,a.active&&Vt["--highlighted"],o),m=v=>{var g;v.preventDefault(),(g=r==null?void 0:r.onDragOver)==null||g.call(r,v)},u=v=>{var g;a.activate(),(g=r==null?void 0:r.onDragEnter)==null||g.call(r,v)},f=v=>{var g;v.currentTarget.contains(v.relatedTarget)||(a.deactivate(),(g=r==null?void 0:r.onDragLeave)==null||g.call(r,v))},_=v=>{var g;v.preventDefault(),a.deactivate(),l==null||l({name:t,value:Array.from(v.dataTransfer.files),event:v}),(g=r==null?void 0:r.onDrop)==null||g.call(r,v)},b=v=>{var w;const g=v.target.files;g&&(l==null||l({name:t,event:v,value:Array.from(g)}),(w=s==null?void 0:s.onChange)==null||w.call(s,v))};return i.jsx("div",z(p({},r),{className:d,onDragOver:m,onDragEnter:u,onDragLeave:f,onDrop:_,children:i.jsxs(P,{as:"label",className:Vt.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",textAlign:"center",animated:!0,children:[i.jsx(P.Item,{children:n}),i.jsx(ao,{children:i.jsx("input",z(p({},s),{type:"file",className:Vt.field,name:t,onChange:b}))})]})}))};zr.Trigger=dl;const ul=zr,Nr={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},_l=e=>{const{children:t,active:n,className:o,attributes:r}=e,s=I(Nr.root,n&&Nr["--active"],o);return i.jsx(ne,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:r,children:t})},mn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},ml=e=>{const{src:t,alt:n,width:o,height:r,onLoad:s,onError:l,fallback:a,displayMode:d="cover",borderRadius:m,className:u,attributes:f,imageAttributes:_}=e,[b,v]=c.useState("loading"),g=Nn(m),w=En(o),y=bt(r),x=I(mn.root,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,d&&mn[`--display-mode-${d}`],u),j=I(mn.image,x),C=I(mn.fallback,x),N=p(p({},w==null?void 0:w.variables),y==null?void 0:y.variables),S=$=>{v("success"),s==null||s($)},k=$=>{v("error"),l==null||l($)};return c.useEffect(()=>{v("loading")},[t]),(b==="error"||!t)&&a?typeof a=="string"?i.jsx("img",z(p({},f),{src:a,alt:n,role:n?void 0:"presentation",className:C,style:N})):i.jsx("div",z(p({},f),{className:C,style:N,children:a})):i.jsx("img",z(p(p({},f),_),{src:t,alt:n,role:n?void 0:"presentation",onLoad:S,onError:k,className:j,style:N}))},kt={m:660,l:900,xl:1280},Er={s:`(max-width: ${kt.m-1}px)`,m:`(min-width: ${kt.m}px) and (max-width: ${kt.l-1}px)`,l:`(min-width: ${kt.l}px) and (max-width: ${kt.xl-1}px)`,xl:`(min-width: ${kt.xl}px)`},Tr=e=>{const{defaultViewport:t}=c.useContext(Un),[n,o]=c.useState(t);return ae(()=>{const s=Object.keys(Er).map(l=>{const a=window.matchMedia(Er[l]);return{mq:a,handler:()=>a.matches&&o(l)}});return s.forEach(({handler:l,mq:a})=>{l(),a.addEventListener("change",l)}),()=>{s.forEach(({handler:l,mq:a})=>{a.removeEventListener("change",l)})}},[]),typeof e!="object"||e===null||!("s"in e)?e:n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},fl=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Mr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),r=c.useCallback(()=>{const{body:l}=document,a=l.getBoundingClientRect();if(o.current=a.left+a.right<window.innerWidth,n.current=l.style.overflow,l.style.overflow="hidden",o.current){const d=fl();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),s=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:r,unlockScroll:s}},ut={root:"_root_10obs_1",wrapper:"_wrapper_10obs_22",inner:"_inner_10obs_28",content:"_content_10obs_34","--visible":"_--visible_10obs_42","--click-through":"_--click-through_10obs_47","--animated":"_--animated_10obs_60"},Sr=e=>{const{active:t,children:n,transparent:o,onClose:r,className:s,attributes:l}=e,a=o===!0,d=a?0:(1-(o||0))*.7,[m,u]=c.useState(!1),[f,_]=c.useState(!1),b=c.useRef(null),v=c.useRef(!1),g=c.useRef(null),{lockScroll:w,unlockScroll:y}=Mr(),{active:x,activate:j,deactivate:C}=_n(t||!1),{active:N,activate:S,deactivate:k}=_n(t||!1),$=Go(t,b),A=I(ut.root,N&&ut["--visible"],a&&ut["--click-through"],f&&ut["--animated"],s),M=H=>{if(!b.current)return;const B=b.current.firstChild;if(B)return B.contains(H)},q=()=>{b.current&&(g.current=Zt(b.current))},O=()=>{g.current&&(g.current(),g.current=null)},R=c.useCallback(()=>{!N||!$()||r&&r()},[N,$]),L=H=>{v.current=!M(H.target)},U=H=>{const B=!M(H.target);v.current&&B&&!a&&R()},W=H=>{H.propertyName!=="transform"||!H.pseudoElement||(_(!1),!N&&(a||y(),C()))};return nt({Escape:R},[R]),c.useEffect(()=>{_(!0),t&&!x&&j(),!t&&x&&k()},[t,j,k,x]),c.useEffect(()=>{x&&(a||w(),Ye(()=>{S()}))},[x,S,w,a]),c.useEffect(()=>{if(x)return q(),()=>O()},[x]),c.useEffect(()=>()=>{a||y()},[y,a]),ae(()=>{u(!0)},[]),!x||!m?null:i.jsx(Zn,{children:i.jsx(Zn.Scope,{children:H=>i.jsx("div",z(p({},l),{ref:H,style:{"--rs-overlay-opacity":d},role:"button",tabIndex:-1,className:A,onMouseDown:L,onMouseUp:U,onTransitionEnd:W,children:i.jsx("div",{className:ut.wrapper,children:i.jsx("div",{className:ut.inner,children:i.jsx("div",{className:ut.content,ref:b,children:typeof n=="function"?n({active:N}):n})})})}))})})},fn={root:"_root_ab12p_1","--dragging":"_--dragging_ab12p_10","--position-center":"_--position-center_ab12p_1","--active":"_--active_ab12p_34","--position-bottom":"_--position-bottom_ab12p_1","--position-start":"_--position-start_ab12p_1","--position-end":"_--position-end_ab12p_1","--position-center--m":"_--position-center--m_ab12p_1","--position-bottom--m":"_--position-bottom--m_ab12p_1","--position-start--m":"_--position-start--m_ab12p_1","--position-end--m":"_--position-end--m_ab12p_1","--position-center--l":"_--position-center--l_ab12p_1","--position-bottom--l":"_--position-bottom--l_ab12p_1","--position-start--l":"_--position-start--l_ab12p_1","--position-end--l":"_--position-end--l_ab12p_1","--position-center--xl":"_--position-center--xl_ab12p_1","--position-bottom--xl":"_--position-bottom--xl_ab12p_1","--position-start--xl":"_--position-start--xl_ab12p_1","--position-end--xl":"_--position-end--xl_ab12p_1"},_o=32,hl=100,bl=32,Dr=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Ir=()=>c.useContext(Dr),gl=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=Ir();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ne,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},vl=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=Ir();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ne,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},mo=e=>{const{children:t,onClose:n,active:o,size:r,padding:s=4,position:l="center",transparentOverlay:a,className:d,attributes:m}=e,u=Pe(),f=Tr(l),[_,b]=c.useState(!1),[v,g]=c.useState(!1),[w,y]=c.useState(!1),x=c.useRef(null),j=c.useRef({x:0,y:0}),C=c.useRef(0),N=c.useRef(0),S=c.useRef(0),[k,$]=c.useState(0),[A,M]=c.useState(0),q=to(s),O=c.useMemo(()=>({titleMounted:_,setTitleMounted:b,subtitleMounted:v,setSubtitleMounted:g,id:u}),[u,v,_]),R=()=>{j.current={x:0,y:0},C.current=0,S.current=0,$(0)},L=W=>{const H=W.target;H.scrollTop!==0||H.scrollLeft!==0||H.matches("input,textarea")||f==="start"&&W.targetTouches[0].clientX<bl||(Gn(),y(!0))},U=W=>{o||W.propertyName==="transform"&&W.currentTarget===W.target&&R()};return c.useEffect(()=>{if(!w)return;const W=()=>{Kn(),y(!1);const B=f==="start"?S.current<0:S.current>0;Math.abs(N.current)>_o&&B?n==null||n():R()},H=B=>{if(!w||f==="center")return;const Q=B.targetTouches[0],ue={x:Q.clientX,y:Q.clientY},ce=f==="bottom"?"y":"x",Ce=f==="bottom"?"x":"y";j.current[ce]||(j.current=ue,C.current=ue[ce]);const ke=Math.abs(ue[ce]-j.current[ce]),Me=Math.abs(ue[Ce]-j.current[Ce]);if(l!=="bottom"&&(ke<Me||Me>hl)){C.current=ue[ce];return}S.current=ue[ce]-C.current,C.current=ue[ce],$(ee=>f==="start"?Math.min(0,ee+S.current):Math.max(0,ee+S.current))};return document.addEventListener("touchmove",H),document.addEventListener("touchend",W),()=>{document.removeEventListener("touchmove",H),document.removeEventListener("touchend",W)}},[w,f]),c.useEffect(()=>{const W=x.current;if(!W||!f)return;const B=["start","end"].includes(f)?W.clientWidth:W.clientHeight,Q=Math.abs(k)/B;M(Q/2),N.current=k},[k,f]),i.jsx(Sr,{onClose:n,active:o,transparent:a||A,attributes:{onTouchStart:L},children:({active:W})=>{const H=I(fn.root,d,q==null?void 0:q.classNames,W&&fn["--active"],w&&fn["--dragging"],X(fn,"--position",l));return i.jsx(Dr.Provider,{value:O,children:i.jsx("div",z(p({},m),{style:z(p(p({},q==null?void 0:q.variables),se("--rs-modal-size",r)),{"--rs-modal-drag":Math.abs(k)<_o?"0px":`${k+_o*(f==="start"?1:-1)}px`}),"aria-labelledby":_?`${u}-title`:void 0,"aria-describedby":v?`${u}-subtitle`:void 0,className:H,"aria-modal":"true",role:"dialog",ref:x,onTransitionEnd:U,children:t}))})}})};mo.Title=gl,mo.Subtitle=vl;const pl=mo,Ar=e=>{const{total:t,page:n=1,onChange:o,pageAriaLabel:r,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:d}=e,m=1,u=1,f=[],_=n-m>u+2,b=n+m<t-u;let v=m*2+1;_||(v+=u+1),b||(v+=u+1);const g=_?Math.min(t-v+1,Math.max(1,n-m)):1,w=b?Math.min(g+v-1,t):t;_&&f.push(...kn(1,u),null),f.push(...kn(g,w)),b&&f.push(null,...kn(t-u+1,t));const y=x=>{const j=Math.min(t,Math.max(1,x));o==null||o({page:j})};return i.jsxs(P,{direction:"row",align:"center",gap:1,className:a,attributes:d,children:[i.jsx(ve,{variant:"ghost",size:"small",icon:un,onClick:()=>y(n-1),disabled:n===1,attributes:{"aria-label":s}}),f.map((x,j)=>x===null?i.jsx(P,{width:7,align:"center",children:"..."},`dots-${j}`):i.jsx(ve,{size:"small",variant:x===n?"solid":"ghost",color:x===n?"primary":"neutral",onClick:()=>y(x),attributes:{"aria-label":r==null?void 0:r({page:x}),"aria-current":x===n},children:x},j)),i.jsx(ve,{variant:"ghost",size:"small",icon:wt,onClick:()=>y(n+1),disabled:n===t,attributes:{"aria-label":l}})]})},xl=e=>{const a=e,{defaultPage:t=1,onChange:n}=a,o=Se(a,["defaultPage","onChange"]),[r,s]=c.useState(t||1),l=d=>{s(d.page),n==null||n(d)};return i.jsx(Ar,z(p({},o),{onChange:l,page:r}))},yl=e=>{const{page:t}=e;return t!==void 0?i.jsx(Ar,p({},e)):i.jsx(xl,p({},e))},Ot={root:"_root_1a3na_1",value:"_value_1a3na_9","--duration":"_--duration_1a3na_23","--size-small":"_--size-small_1a3na_27","--size-medium":"_--size-medium_1a3na_31","--color-primary":"_--color-primary_1a3na_35","--color-critical":"_--color-critical_1a3na_39","--color-warning":"_--color-warning_1a3na_43","--color-positive":"_--color-positive_1a3na_47","--color-white":"_--color-white_1a3na_51"},wl=e=>{const{value:t=0,min:n=0,max:o=100,color:r="primary",size:s="medium",duration:l,className:a,attributes:d}=e,m=I(Ot.root,a,r&&Ot[`--color-${r}`],s&&Ot[`--size-${s}`],!!l&&Ot["--duration"]),u=o-n,f=t-n,v=`${Math.max(n,Math.min(o,f))/u*100-100}%`;return i.jsx("div",z(p({role:"progressbar"},d),{className:m,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Ot.value,style:{"--rs-progress-value":v,"--rs-progress-duration":l?`${l}ms`:void 0}})}))},qr=c.createContext(null),jl=()=>c.useContext(qr),Lr=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=({event:d,value:m})=>{m&&t&&t({name:n,value:m,event:d})};return i.jsx(qr.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},Cl=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||null),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx(Lr,z(p({},e),{value:o,defaultValue:void 0,onChange:s}))},kl=e=>{const{value:t}=e;return t!==void 0?i.jsx(Lr,p({},e)):i.jsx(Cl,p({},e))},_t={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},$l=e=>{const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,className:l,attributes:a,inputAttributes:d}=e,m=tt(),u=jl(),f=(m==null?void 0:m.hasError)||e.hasError||(u==null?void 0:u.hasError),_=(m==null?void 0:m.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?u.value===n:e.checked,v=u?void 0:e.defaultChecked,g=u?u.name:e.name,w=I(_t.root,l,f&&_t["--error"],_&&_t["--disabled"]),y=x=>{if(!g)return;const{checked:j}=x.target,C={name:g,value:n,checked:j,event:x};o&&o(C),u!=null&&u.onChange&&u.onChange(C)};return i.jsxs("label",z(p({},a),{className:w,children:[i.jsxs("span",{className:_t.field,children:[i.jsx(uo,{className:_t.input,type:"radio",checked:b,defaultChecked:v,name:g,disabled:_,value:n,onChange:y,onFocus:r,onBlur:s,attributes:d}),i.jsx("div",{className:_t.decorator})]}),t&&i.jsx("span",{className:_t.text,children:t})]}))},Pr={short:4e3,long:8e3},Bt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Fr={queues:Bt.reduce((e,t)=>p({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},hn=c.createContext(Fr),zl=()=>{const{add:e,hide:t}=c.useContext(hn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},He={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},Nl=e=>{const{size:t="small",text:n,children:o,color:r="inverted",icon:s,title:l,actionsSlot:a,startSlot:d,collapsed:m,className:u,attributes:f}=e;let _=r==="inverted"||r==="neutral"?"elevation-overlay":r;r==="neutral"&&(_=m?"neutral":"elevation-overlay");const b=r==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",g=t==="large";let w=[];a&&(w=Array.isArray(a)?a:[a]);const y=(l||n)&&i.jsxs(i.Fragment,{children:[l&&i.jsxs(ne,{variant:"body-3",weight:"bold",as:v,children:[l," "]}),i.jsx(ne,{variant:"body-3",as:v,children:n})]}),x=i.jsxs(P,{backgroundColor:_,borderColor:b,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:g?"start":"center",className:[He.toast,u],attributes:f,children:[s&&i.jsx(fe,{size:5,svg:s,className:He.icon}),d&&!s&&i.jsx(P.Item,{children:d}),i.jsx(P.Item,{grow:!0,children:i.jsxs(P,{direction:g?"column":"row",align:g?"start":"center",gap:3,children:[i.jsx(P.Item,{grow:!0,children:y&&o||t!=="small"?i.jsxs(P,{gap:.5,children:[y,o&&i.jsx(P,{gap:3,children:o})]}):y||o}),w.length&&i.jsx(P,{direction:"row",align:"center",gap:2,children:w.map((j,C)=>{const N=t==="large"?C===0:C===w.length-1,k={variant:N?"solid":"ghost",size:"small",color:N?r==="neutral"||r==="inverted"?"neutral":"white":"inherit",elevated:r!=="neutral"};return j.type===ve?c.createElement(ve,z(p(p({},k),j.props),{key:C})):j})})]})})]});return r==="inverted"?i.jsx(pt,{colorMode:"inverted",children:x}):x},El=e=>{const{toastProps:t,id:n,status:o,inspected:r,index:s}=e,{timeout:l="short"}=t,{show:a,hide:d,remove:m}=c.useContext(hn),[u,f]=c.useState(),_=c.useRef(),b=c.useRef(!1),v=c.useRef(null),g=c.useRef(null),w=o==="entered",y=I(He.container,w&&He["container--visible"],s===0&&He[`container--index-${s}`],!r&&(s===1||s===2)&&He[`container--index-${s}`],!r&&s>=3&&He["container--index-overflow"]),x=c.useCallback(()=>{_.current&&clearTimeout(_.current)},[]),j=c.useCallback(()=>{x();const N=typeof l=="string"?Pr[l]:l;l!==0&&(_.current=setTimeout(()=>{d(n)},N!=null?N:Pr.short))},[d,n,l,x]),C=N=>{N.propertyName==="height"&&(w||m(n))};return c.useEffect(()=>{w&&(r?x():j())},[r,j,x,w]),c.useEffect(()=>{g.current&&f(g.current.clientHeight),a(n),j()},[a,n,j]),c.useEffect(()=>{g.current&&(w?v.current=Zt(g.current,{includeTrigger:!0,mode:"content-menu"}):v.current&&Ho()&&(v.current(),v.current=null))},[w]),c.useEffect(()=>{if(!w||s>0)return;const N=()=>{b.current=!0,Ye(()=>{b.current=!1}),g.current&&f(g.current.clientHeight)};return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[w,s]),i.jsx("li",{className:y,style:{height:o==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:b.current?"0s":void 0},onTransitionEnd:C,onFocus:x,onBlur:j,children:i.jsx("span",{className:He.wrapper,children:i.jsx(Nl,z(p({},t),{collapsed:s>0&&!r,attributes:z(p({},t.attributes),{ref:g})}))})})},Tl=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(hn),[r,s]=c.useState(!1),l=c.useRef(!1),a=c.useRef(null),d=n[t],{width:m,expanded:u}=(o==null?void 0:o[t])||{},f=I(He.region,He[`region--position-${t}`]),_=d.filter(x=>x.status==="entered").length;let b=0;const v=()=>{l.current=!0},g=x=>{let j=x.target,C=!1;for(;j&&j!==a.current&&!C;)C=j.matches(Ro),j=j.parentElement;C||s(N=>!N),l.current=!1},w=()=>{l.current||s(!0)},y=()=>{l.current||s(!1)};return c.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:f,ref:a,onTouchStart:v,onClick:g,onMouseEnter:w,onMouseLeave:y,style:{width:m},children:d.map((x,j)=>{const C=_-j+b-1;return x.status!=="entered"&&(b+=1),i.jsx(El,z(p({},x),{index:C,inspected:r||!!u}),x.id)})}):null};let Ml=0;const Sl=()=>`__rs-toast-${Ml++}`,Dl=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:r="bottom-end"}=o,s=Se(o,["position"]);return z(p({},e),{[r]:[...e[r],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:l}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].map(u=>u.status!=="entering"?u:u.id===l?z(p({},u),{status:"entered"}):u)}),n;case"hide":const{id:a}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].map(u=>u.id===a?z(p({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].filter(u=>u.id!==d)}),n}},Il=e=>{const{children:t,options:n}=e,[o,r]=c.useReducer(Dl,Fr.queues),s=c.useCallback(u=>{const f=Sl();return r({type:"add",payload:{toastProps:u,id:f}}),f},[]),l=c.useCallback(u=>{r({type:"show",payload:{id:u}})},[]),a=c.useCallback(u=>{r({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{r({type:"remove",payload:{id:u}})},[]),m=c.useMemo(()=>({queues:o,add:s,show:l,hide:a,remove:d,inspecting:!1,options:n}),[o,l,a,s,d,n]);return i.jsxs(hn.Provider,{value:m,children:[t,Bt.map(u=>i.jsx(Tl,{position:u},u))]})},Al=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(On,"true")},t=()=>{document.documentElement.removeAttribute(On)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},ql={root:"_root_18j53_1"},Ll=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:r}=e,s=si(n);return Al(),i.jsx(Un.Provider,{value:{rtl:s,defaultViewport:o},children:i.jsx(oi,{children:i.jsx(Il,{options:r,children:t})})})},Pl=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:r}=e,s=I(ql.root,r);return i.jsx(vi,{defaultMode:o,children:i.jsx(pt,{name:t,defaultName:n,className:s,children:i.jsx(Ll,z(p({},e),{children:e.children}))})})},Wt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Fl=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:r,className:s,scrimClassName:l}=e,a=I(Wt.root,!!n&&Wt["--with-background"],o&&Wt[`--position-${o}`],s),d=I(Wt.scrim,l);return i.jsxs("div",z(p({},r),{className:a,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Wt.content,children:t})})]}))},st={root:"_root_kge89_1",scrollable:"_scrollable_kge89_9",scrollbar:"_scrollbar_kge89_26","--scrollbar-dragging":"_--scrollbar-dragging_kge89_31",thumb:"_thumb_kge89_31","--scrollbar-y":"_--scrollbar-y_kge89_53","--scrollbar-x":"_--scrollbar-x_kge89_65","--display-visible":"_--display-visible_kge89_85","--display-hover":"_--display-hover_kge89_89"},Vr=e=>{const{ratio:t,position:n,vertical:o,onThumbMove:r}=e,[s,l]=c.useState(!1),a=c.useRef(0),d=c.useRef(null),m=I(st.scrollbar,o?st["--scrollbar-y"]:st["--scrollbar-x"],s&&st["--scrollbar-dragging"]),u=v=>{const g=d.current,w=a.current;if(a.current=0,w||!g||v.currentTarget!==g)return;const y=g.getBoundingClientRect(),x=o?v.pageY-y.top:v.pageX-y.left,j=o?g.clientHeight:g.clientWidth;r({value:x/j-t/2,type:"absolute"})},f=c.useCallback(v=>{a.current||(a.current=o?v.pageY:v.pageX);const g=d.current;if(!g||!s)return;const w=o?v.movementY:v.movementX,y=o?g.scrollHeight:g.scrollWidth;r({value:w/y,type:"relative"})},[t,o,s]),_=c.useCallback(()=>{l(!1),Kn()},[]),b=()=>{l(!0),Gn()};return c.useEffect(()=>{if(s)return document.addEventListener("mousemove",f),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",_)}},[f,_,s]),i.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":n},ref:d,onClick:u,onMouseDown:b,"aria-hidden":"true",children:i.jsx("div",{className:st.thumb})})},Vl=c.forwardRef((e,t)=>{const{children:n,height:o,maxHeight:r,scrollbarDisplay:s="hover",onScroll:l,className:a,attributes:d}=e,[m,u]=c.useState({x:1,y:1}),[f,_]=c.useState({x:0,y:0}),b=c.useRef(null),v=c.useRef(),g=bt(o),w=So(r),y=I(st.root,s&&st[`--display-${s}`],g==null?void 0:g.classNames,w==null?void 0:w.classNames,a),x=p(p({},g==null?void 0:g.variables),w==null?void 0:w.variables),j=c.useCallback(()=>{const k=b.current;k&&u({x:k.clientWidth/k.scrollWidth,y:k.clientHeight/k.scrollHeight})},[]),C=k=>{const $=b.current;if(!$)return;const A={x:k.currentTarget.scrollLeft/$.scrollWidth,y:k.currentTarget.scrollTop/$.scrollHeight};_(A),l==null||l(A)},N=k=>{const $=b.current;if(!$)return;const A=$.scrollHeight*k.value;k.type==="absolute"?$.scrollTop=A:$.scrollTop+=A},S=k=>{const $=b.current;if(!$)return;const A=$.clientWidth*k.value;k.type==="absolute"?$.scrollLeft=A:$.scrollLeft+=A};return c.useImperativeHandle(t,()=>b.current),ae(()=>{j()},[j]),ae(()=>{const k=b.current;if(k)return v.current=new ResizeObserver(j),v.current.observe(k),()=>{var $;($=v.current)==null||$.disconnect()}},[j]),i.jsxs("div",z(p({},d),{className:y,style:x,children:[i.jsx("div",{className:st.scrollable,ref:b,onScroll:C,children:n}),m.y<1&&s!=="hidden"&&i.jsx(Vr,{vertical:!0,onThumbMove:N,ratio:m.y,position:f.y}),m.x<1&&s!=="hidden"&&i.jsx(Vr,{onThumbMove:S,ratio:m.x,position:f.x})]}))}),Ol=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Re={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},Bl=e=>{var O,R;const{onChange:t,onClick:n,onFocus:o,onBlur:r,name:s,value:l,defaultValue:a,placeholder:d,options:m,children:u,icon:f,startSlot:_,size:b="medium",variant:v="outline",className:g,attributes:w}=e,[y,x]=c.useState(l===void 0?!a:!l),j=tt(),C=Pe(e.id),N=((O=j==null?void 0:j.attributes)==null?void 0:O.id)||((R=e.inputAttributes)==null?void 0:R.id)||C,S=(j==null?void 0:j.disabled)||e.disabled,k=(j==null?void 0:j.hasError)||e.hasError,$=p(p({},e.inputAttributes),j==null?void 0:j.attributes),A=I(Re.root,g,b&&X(Re,"--size",b),k&&Re["--status-error"],S&&Re["--disabled"],y&&m&&Re["--placeholder"],v&&Re[`--variant-${v}`]),M=L=>{const U=L.target.value;l===void 0&&x(!U),t&&t({name:s,value:U,event:L})};c.useEffect(()=>{l!==void 0&&x(!l)},[l]);const q=(_||f)&&i.jsx("div",{className:Re.slot,children:f?i.jsx(fe,{size:Le(b,L=>L==="large"?5:L==="xlarge"?6:4),svg:f}):_});return i.jsxs("div",z(p({},w),{className:A,children:[m?i.jsxs(i.Fragment,{children:[q,i.jsxs("select",z(p({},$),{className:Re.input,disabled:S,name:s,value:l,defaultValue:a,onChange:M,onFocus:o||($==null?void 0:$.onFocus),onBlur:r||($==null?void 0:$.onBlur),id:N,children:[d&&i.jsx("option",{value:"",children:d}),m.map(L=>i.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(De,{className:Re.input,disabled:S,onClick:n,attributes:z(p({},$),{onFocus:o||($==null?void 0:$.onFocus),onBlur:r||($==null?void 0:$.onBlur)}),children:[q,u||(d?i.jsx(ne,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:l,name:s})]}),i.jsx("div",{className:Re.arrow,children:i.jsx(fe,{svg:Ol,color:S?"disabled":"neutral-faded",size:Le(b,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Wl={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Hl=e=>{const{borderRadius:t="small",width:n,height:o,className:r,attributes:s}=e,l=I(Wl.root,r);return i.jsx(P,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:l,attributes:s})},it={root:"_root_1s5j6_1",bar:"_bar_1s5j6_11",input:"_input_1s5j6_20",selection:"_selection_1s5j6_29",tooltip:"_tooltip_1s5j6_35",thumb:"_thumb_1s5j6_59","thumb--active":"_thumb--active_1s5j6_1","--disabled":"_--disabled_1s5j6_116"},Rl=(e,t)=>{const{name:n,value:o,disabled:r,active:s,position:l,max:a,min:d,onChange:m,onDragStart:u,renderValue:f,tooltipRef:_}=e,b=c.useId(),v=I(it.thumb,s&&it["thumb--active"]),g=f?f({value:o}):o,w=y=>{m(+y.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:it.input,type:"range",name:n,value:o,onChange:w,disabled:r,max:a,min:d,"aria-labelledby":b}),i.jsx("div",{ref:t,className:v,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${l}%`},id:b,"aria-hidden":"true",children:i.jsx(pt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",weight:"medium",className:it.tooltip,attributes:{ref:_},children:g})})})]})},Or=c.forwardRef(Rl),Br=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,fo=(e,t)=>Math.round(e/t)*t,ho=e=>{var Me;const{name:t,range:n,max:o,min:r,step:s=1,onChange:l,onChangeCommit:a,renderValue:d,className:m,attributes:u}=e,f=n&&e.minValue!==void 0?fo(e.minValue,s):void 0,_=fo(n?e.maxValue:e.value,s),b=c.useRef(null),v=c.useRef(null),g=c.useRef(null),w=c.useRef(null),y=c.useRef(null),[x,j]=c.useState(null),[C]=ot(),N=tt(),S=Pe(),k=((Me=N==null?void 0:N.attributes)==null?void 0:Me.id)||S,$=`${k}-min`,A=`${k}-max`,M=(N==null?void 0:N.disabled)||e.disabled,q=I(it.root,M&&it["--disabled"],m),O=c.useCallback(ee=>{if(!b.current)return;const J=b.current.clientWidth;let F=(ee-b.current.getBoundingClientRect().left)/J;C&&(F=1-F);let oe=(o-r)*F+r;return oe=Math.max(r,Math.min(o,oe)),fo(oe,s)},[o,r,C,s]),R=ee=>(ee-r)/(o-r)*100,L=c.useCallback(ee=>{var Ie,Ae,Ee;const J=ee===$?w:y,G=ee===$?v:g;let F=0;const oe=(Ie=b.current)==null?void 0:Ie.getBoundingClientRect(),le=(Ae=J.current)==null?void 0:Ae.getBoundingClientRect(),_e=(Ee=G.current)==null?void 0:Ee.getBoundingClientRect(),xe=oe==null?void 0:oe.left,$e=xe&&xe+(oe==null?void 0:oe.width),lt=_e&&le&&_e.left-le.width/2,ze=_e&&le&&_e.left+le.width/2;lt&&xe&<<xe-8&&(F=le.width/2-8),ze&&$e&&ze>$e&&(F=-(le.width/2-8));const Ne=J.current;Ne&&Ne.style.setProperty("--rs-slider-tooltip-offset",`${F||0}px`)},[$]),U=c.useCallback((ee,J)=>{if(!n)return;const G=J!=null&&J.commit?a:l;G==null||G({minValue:ee,maxValue:_,name:t})},[_,t,n]),W=c.useCallback((ee,J)=>{if(n){const F=J!=null&&J.commit?a:l;F==null||F({minValue:f,maxValue:ee,name:t});return}const G=J!=null&&J.commit?a:l;G==null||G({value:ee,name:t})},[f,t,n]),H=({nativeEvent:ee})=>{if(M)return;let J,G;const F=Br(ee),oe=O(F);[{ref:v,id:$},{ref:g,id:A}].forEach(_e=>{if(!_e.ref.current)return;const xe=_e.ref.current,$e=Math.abs(xe.getBoundingClientRect().left-F);(J===void 0||$e<=J)&&(J=$e,G=_e.id)}),!(!G||oe===void 0)&&(G===$&&U(oe),G===A&&W(oe),Gn(),j(G))},B=()=>{M||j($)},Q=()=>{M||j(A)},ue=c.useCallback(()=>{x===$&&f!==void 0&&U(f,{commit:!0}),x===A&&W(_,{commit:!0}),Kn(),j(null)},[f,_,U,W,x,$,A]),ce=c.useCallback(ee=>{if(!x)return;const J=Br(ee),G=O(J);if(L(x),G===void 0)return;let F=x;x===$&&G>_&&(F=A),x===A&&f&&G<f&&(F=$),F===$&&U(G),F===A&&W(G),x!==F&&j(F)},[x,f,_,O,W,U,A,$,L]);c.useEffect(()=>{L($),L(A)},[L,$,A]),c.useEffect(()=>(window.addEventListener("mouseup",ue),window.addEventListener("touchend",ue),window.addEventListener("mousemove",ce),window.addEventListener("touchmove",ce),()=>{window.removeEventListener("mouseup",ue),window.removeEventListener("touchend",ue),window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce)}),[ue,ce]);const Ce=f&&R(f),ke=R(_);return i.jsxs("div",z(p({},u),{className:q,onMouseDown:H,onTouchStart:H,children:[i.jsx("div",{className:it.bar,ref:b,children:i.jsx("div",{className:it.selection,style:{insetInlineStart:`${Ce||0}%`,width:`${ke-(Ce||0)}%`}})}),f!==void 0&&Ce!==void 0&&i.jsx(Or,{id:$,active:$===x,name:t,disabled:M,onChange:U,value:f,onDragStart:B,position:Ce,max:o,min:r,ref:v,tooltipRef:w,renderValue:d}),i.jsx(Or,{id:A,active:A===x,name:t,disabled:M,onChange:W,value:_,onDragStart:Q,position:ke,max:o,min:r,ref:g,tooltipRef:y,renderValue:d})]}))},Ul=e=>{const{min:t,max:n,onChange:o,range:r}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(r?n:t),[a,d]=c.useState(s),[m,u]=c.useState(l),f=b=>{r||(u(b.value),o==null||o(b))},_=b=>{r&&(d(b.minValue),u(b.maxValue),o==null||o(b))};return r?i.jsx(ho,z(p({},e),{min:t,max:n,minValue:a,maxValue:m,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:_})):i.jsx(ho,z(p({},e),{min:t,max:n,value:m,defaultValue:void 0,onChange:f}))},Yl=e=>{const r=e,{min:t=0,max:n=100}=r,o=Se(r,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(ho,z(p({},o),{min:t,max:n})):i.jsx(Ul,z(p({},o),{min:t,max:n}))},Gl={verticalDivider:"_verticalDivider_oa23g_1"},Kl=e=>{const{title:t,subtitle:n,children:o,direction:r,className:s,attributes:l,labelDisplay:a,step:d,completed:m,active:u,last:f}=e,_=a&&Le(a,v=>v==="hidden"),b=i.jsx(P,{gap:3,grow:!0,children:i.jsxs(P.Item,{children:[i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:n})]})});return i.jsxs(P,{children:[i.jsxs(P,{attributes:l,className:s,direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(P.Item,{children:[i.jsx(P,{align:"center",justify:"center",backgroundColor:u||m?"primary":"neutral-faded",borderColor:u||m?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ne,{variant:"body-3",weight:u?"bold":"medium",children:m?i.jsx(fe,{svg:$r,size:4}):d})}),r==="column"&&!f&&i.jsx(Ht,{vertical:!0,className:Gl.verticalDivider})]}),a?i.jsx(ht,{hide:_,children:b}):b]}),r==="column"&&o&&i.jsx(qo,{active:u,children:i.jsx(P,{paddingStart:10,paddingTop:2,children:o})})]})},Xl=e=>null,Wr=e=>{const{children:t,direction:n="row",activeId:o,labelDisplay:r,className:s,attributes:l}=e,a=n==="column",d=c.Children.count(t);return i.jsx(P,{attributes:l,direction:n,align:a?"stretch":"center",className:s,gap:3,wrap:!1,children:c.Children.map(t,(m,u)=>{const f=m.props.id||`${u}`;return i.jsxs(c.Fragment,{children:[i.jsx(Kl,z(p({},m.props),{id:m.props.id||`${u}`,active:(o==null?void 0:o.toString())===f,step:u+1,last:u===d-1,direction:n,labelDisplay:r})),!a&&u<d-1&&i.jsx(P,{grow:!0,children:i.jsx(Ht,{})})]},u)})})};Wr.Item=Xl;const Jl=Wr,$t={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Zl=e=>{var x;const{children:t,name:n,checked:o,size:r,reversed:s,defaultChecked:l,onChange:a,onFocus:d,onBlur:m,className:u,attributes:f}=e,_=I($t.root,r&&$t[`root--size-${r}`],s&&$t["root--reversed"],u),b=tt(),v=Pe((b==null?void 0:b.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),g=p(p({},e.inputAttributes),b==null?void 0:b.attributes),w=(b==null?void 0:b.disabled)||e.disabled,y=j=>{a&&a({name:n,event:j,checked:j.target.checked})};return i.jsxs("label",z(p({},f),{className:_,children:[i.jsx("input",z(p({type:"checkbox"},g),{className:$t.input,name:n,checked:o,defaultChecked:l,disabled:w,onChange:y,onFocus:d||(g==null?void 0:g.onFocus),onBlur:m||(g==null?void 0:g.onBlur),id:v})),i.jsx("span",{className:$t.area,"aria-hidden":"true",children:i.jsx("span",{className:$t.thumb})}),t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t})]}))},Ze={root:"_root_1x4k9_1",table:"_table_1x4k9_14",row:"_row_1x4k9_20",cell:"_cell_1x4k9_24","cell--align-start":"_cell--align-start_1x4k9_1","cell--align-center":"_cell--align-center_1x4k9_1","cell--align-end":"_cell--align-end_1x4k9_1","cell--valign-start":"_cell--valign-start_1x4k9_1","cell--valign-center":"_cell--valign-center_1x4k9_1","cell--valign-end":"_cell--valign-end_1x4k9_1","--row-highlighted":"_--row-highlighted_1x4k9_54","--border-outer":"_--border-outer_1x4k9_58","--border-column":"_--border-column_1x4k9_63"},Hr=e=>{const{minWidth:t,rowSpan:n,colSpan:o,align:r,verticalAlign:s,tagName:l,padding:a,paddingInline:d,paddingBlock:m,children:u,attributes:f}=e,_=e.width==="auto"?"0px":e.width,b=En(_),v=Do(t||_),g=I(Ze.cell,b==null?void 0:b.classNames,v==null?void 0:v.classNames,r&&Ze[`cell--align-${r}`],s&&Ze[`cell--valign-${s}`]),w=p(p(p(p({},b==null?void 0:b.variables),v==null?void 0:v.variables),se("--rs-table-p-vertical",m!=null?m:a)),se("--rs-table-p-horizontal",d!=null?d:a));return i.jsx(l,z(p({},f),{className:g,rowSpan:n,colSpan:o,style:w,children:u}))},Ql=e=>i.jsx(Hr,z(p({},e),{tagName:"td"})),ea=e=>i.jsx(Hr,z(p({},e),{tagName:"th"})),ta=e=>{const{highlighted:t,children:n,attributes:o}=e,r=I(Ze.row,t&&Ze["--row-highlighted"]);return i.jsx("tr",z(p({},o),{className:r,children:n}))},bo=e=>i.jsx("tbody",{children:e.children}),Rr=e=>i.jsx("thead",{children:e.children}),zt=e=>{const{children:t,border:n,columnBorder:o,className:r,attributes:s}=e,l=I(Ze.root,r,n&&Ze["--border-outer"],o&&Ze["--border-column"]),[a]=c.Children.toArray(t);return i.jsx("div",z(p({},s),{className:l,children:i.jsx("table",{className:Ze.table,children:c.isValidElement(a)&&(a.type===bo||a.type===Rr)?t:i.jsx(bo,{children:t})})}))};zt.Cell=Ql,zt.Heading=ea,zt.Row=ta,zt.Body=bo,zt.Head=Rr;const na=zt,Ur=c.createContext({}),oa=Ur.Provider,go=e=>{const o=c.useContext(Ur),{id:t}=o,n=Se(o,["id"]);return z(p({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Yr=e=>{const{children:t,value:n,onChange:o,onSilentChange:r,itemWidth:s,variant:l,name:a,direction:d="row",size:m="medium"}=e,u=Pe(),f=c.useRef(null),_=c.useRef(f.current),b=c.useRef(null),[v,g]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),w=y=>{y!==void 0&&r&&r({value:y,name:a})};return i.jsx(oa,{value:{value:n,name:a,size:m,direction:d,itemWidth:s,variant:l,onChange:o,id:u,setDefaultValue:w,elActiveRef:f,elPrevActiveRef:_,elScrollableRef:b,selection:v,setSelection:g},children:t})},ra=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t),s=({value:a})=>{r(a),n&&n({value:a})},l=({value:a})=>{r(a)};return i.jsx(Yr,z(p({},e),{onChange:s,onSilentChange:l,value:o,defaultValue:void 0}))},ie={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},sa=(e,t)=>{const{value:n,children:o,icon:r,href:s,attributes:l}=e,{onChange:a,panelId:d,name:m,size:u,value:f,selection:_,elActiveRef:b,elPrevActiveRef:v,elScrollableRef:g}=go(n),w=c.useRef(null),y=f===n,x=y&&_.status==="idle",j=I(ie.item,x&&ie["--item-active"]),C=!!m,N={role:"tab",tabIndex:y?0:-1,"aria-selected":y},S=c.useCallback(()=>{if(!("current"in w))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");v.current=b.current,b.current=w.current},[b,v]),k=()=>{var L,U,W;if(s&&!a)return;const $=g.current,A=(L=w.current)==null?void 0:L.parentElement,M=(U=b.current)==null?void 0:U.parentElement;if(S(),a&&a({value:n,name:m}),!$||!A||!M||$.scrollWidth===$.clientWidth)return;const q=A.offsetLeft<M.offsetLeft,O=(A.offsetLeft-$.scrollLeft)/$.clientWidth;(q?O<.3:O>.5)&&((W=w.current)==null||W.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{y&&S()},[y,S]),i.jsx("div",z(p({},l),{className:j,ref:w,role:"presentation",children:i.jsxs(De,{ref:t,href:s,insetFocus:!0,onClick:m?void 0:k,className:ie.button,as:m?"label":void 0,attributes:z(p({},!C&&N),{"aria-controls":d}),children:[m&&i.jsx(uo,{type:"radio",name:m,value:n,checked:x,onChange:k,className:ie.radio}),i.jsxs("span",{className:ie.buttonContent,children:[r&&i.jsx(fe,{svg:r,className:ie.icon,size:4}),o&&i.jsx(ne,{variant:u==="large"?"body-2":"body-3",children:o})]})]})}))},Gr=c.forwardRef(sa),Kr=(e,t)=>e===t||!e?null:e.classList.contains(ie.listItem)?e:Kr(e.parentElement,t),ia=e=>{const{children:t,className:n,attributes:o}=e,{value:r,setDefaultValue:s,itemWidth:l,variant:a,name:d,direction:m,size:u,selection:f,setSelection:_,elActiveRef:b,elPrevActiveRef:v,elScrollableRef:g}=go(),[w]=ot(),[y,x]=c.useState(null),j=I(ie.root,u&&ie[`--size-${u}`],m&&ie[`--direction-${m}`],l&&ie[`--item-width-${l}`],a&&ie[`--variant-${a}`],y&&ie[`--cut-off-${y}`],n),C=I(ie.selector,f.status==="idle"&&ie["--selector-hidden"],f.status==="animated"&&ie["--selector-animated"]),N=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?-1:1),behavior:"smooth"})},S=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?1:-1),behavior:"smooth"})},k=()=>{_(M=>z(p({},M),{status:"idle"}))},$=c.useCallback(M=>{if(!g.current)return null;const q=Kr(M,g.current);return q?{scaleX:q.clientWidth,scaleY:q.clientHeight,top:q.offsetTop,left:q.offsetLeft}:null},[g]),{ref:A}=nt({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),Ys(g.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),Us(g.current))},Home:M=>{d||(M.preventDefault(),Gs(g.current))},End:M=>{d||(M.preventDefault(),Ks(g.current))}});return ae(()=>{if(r)return;const M=c.Children.toArray(t)[0];!M||M.type!==Gr||s(M.props.value)},[r]),ae(()=>{if(!v.current||v.current===b.current)return;const M=$(v.current);M&&_(z(p({},M),{status:"prepared"}))},[r,$]),ae(()=>{if(f.status!=="prepared"||!b.current)return;const M=$(b.current);M&&_(z(p({},M),{status:"animated"}))},[f]),ae(()=>{const M=g.current;if(!M||m==="column")return;const q=()=>{M.clientWidth<M.scrollWidth||x(null);const L=M.scrollLeft*(w?-1:1),U=L>1,W=L+M.clientWidth<M.scrollWidth-1;if(W&&U)return x("both");if(U)return x("start");if(W)return x("end")},O=us(q,100);return requestAnimationFrame(()=>{q()}),window.addEventListener("resize",O),M.addEventListener("scroll",O),()=>{window.removeEventListener("resize",O),M.removeEventListener("scroll",O)}},[w]),i.jsxs("div",z(p({},o),{className:j,children:[i.jsx("div",{className:ie.inner,ref:g,children:i.jsxs("div",{className:ie.list,role:"tablist",ref:A,children:[c.Children.map(t,(M,q)=>M?i.jsx("div",{className:ie.listItem,children:M},M.props.value||M.key||q):null),i.jsx("div",{onTransitionEnd:k,className:C,style:{"--rs-tab-selection-x":f.left,"--rs-tab-selection-y":f.top,"--rs-tab-selection-scale-x":f.scaleX,"--rs-tab-selection-scale-y":f.scaleY}})]})}),(y==="start"||y==="both")&&i.jsx("span",{className:ie.prev,children:i.jsx(ve,{onClick:S,size:"small",icon:un,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(y==="end"||y==="both")&&i.jsx("span",{className:ie.next,children:i.jsx(ve,{onClick:N,size:"small",icon:wt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},la=e=>{const{value:t,children:n}=e,{value:o,panelId:r,buttonId:s}=go(t),l=t===o,a=I(ie.panel,!l&&ie["--panel-hidden"]);return i.jsx("div",{className:a,tabIndex:0,role:"tabpanel",id:r,"aria-labelledby":s,children:l&&n})},bn=e=>{const{value:t}=e;return t!==void 0?i.jsx(Yr,p({},e)):i.jsx(ra,p({},e))};bn.Item=Gr,bn.List=ia,bn.Panel=la;const aa=bn,mt={root:"_root_2v7p2_1",input:"_input_2v7p2_13","--size-medium":"_--size-medium_2v7p2_1","--size-large":"_--size-large_2v7p2_1","--size-xlarge":"_--size-xlarge_2v7p2_1","--variant-faded":"_--variant-faded_2v7p2_80","--variant-headless":"_--variant-headless_2v7p2_91","--status-error":"_--status-error_2v7p2_98","--resize-none":"_--resize-none_2v7p2_117","--resize-auto":"_--resize-auto_2v7p2_118","--size-medium--m":"_--size-medium--m_2v7p2_1","--size-large--m":"_--size-large--m_2v7p2_1","--size-xlarge--m":"_--size-xlarge--m_2v7p2_1","--size-medium--l":"_--size-medium--l_2v7p2_1","--size-large--l":"_--size-large--l_2v7p2_1","--size-xlarge--l":"_--size-xlarge--l_2v7p2_1","--size-medium--xl":"_--size-medium--xl_2v7p2_1","--size-large--xl":"_--size-large--xl_2v7p2_1","--size-xlarge--xl":"_--size-xlarge--xl_2v7p2_1"},Xr=e=>{var k,$;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,size:d="medium",variant:m="outline",resize:u,className:f,attributes:_}=e,[b,v]=c.useState(s||l||""),g=tt(),w=Pe(e.id),y=((k=g==null?void 0:g.attributes)==null?void 0:k.id)||(($=e.inputAttributes)==null?void 0:$.id)||w,x=(g==null?void 0:g.disabled)||e.disabled,j=(g==null?void 0:g.hasError)||e.hasError,C=p(p({},e.inputAttributes),g==null?void 0:g.attributes),N=I(mt.root,d&&X(mt,"--size",d),j&&mt["--status-error"],x&&mt["--disabled"],m&&mt[`--variant-${m}`],u!==void 0&&mt[`--resize-${u}`],f),S=A=>{const M=A.target.value;t==null||t({name:r,value:M,event:A}),u==="auto"&&typeof s!="string"&&v(M)};return c.useEffect(()=>{typeof s!="string"||u!=="auto"||v(s)},[s,u]),i.jsx("div",z(p({},_),{"data-rs-aligner-target":!0,className:N,"data-rs-textarea-value":b,children:i.jsx("textarea",z(p({rows:3},C),{className:mt.input,disabled:x,name:r,placeholder:a,value:s,defaultValue:l,onChange:S,onFocus:n||(C==null?void 0:C.onFocus),onBlur:o||(C==null?void 0:C.onBlur),id:y}))}))};Xr.Aligner=Yt;const ca=Xr,vo={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},po=e=>{const{children:t,markerSlot:n,className:o,attributes:r}=e,s=n!==null,l=I(vo.item,!s&&vo["item--full-width"],o);return i.jsxs(P,{as:"li",direction:"row",align:"stretch",gap:3,attributes:r,className:l,children:[s&&i.jsx("span",{className:vo.marker,children:n}),i.jsx(P.Item,{grow:!0,children:t})]})},Jr=e=>{const{children:t,className:n,attributes:o}=e,r=I(n);return i.jsx("ul",z(p({},o),{className:r,children:c.Children.map(t,(s,l)=>(s==null?void 0:s.type)===po?s:i.jsx(po,{children:s},l))}))};Jr.Item=po;const da=Jr,ua={root:"_root_9090g_1"},_a=e=>{const{id:t,text:n,children:o,onOpen:r,onClose:s,position:l="bottom",active:a}=e;return i.jsxs(yt,{id:t,active:a,position:l,onOpen:r,onClose:s,triggerType:"hover",children:[i.jsx(yt.Trigger,{children:o}),i.jsx(yt.Content,{children:i.jsx(pt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",className:ua.root,children:n})})})]})},ma=e=>{const{w:t="auto",h:n=50,children:o}=e;return i.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:o})};T.Accordion=Ds,T.ActionBar=Is,T.Actionable=De,T.Alert=qs,T.Autocomplete=Ti,T.Avatar=Mi,T.Badge=Di,T.Breadcrumbs=gr,T.Button=ve,T.Calendar=Qi,T.Card=el,T.Carousel=tl,T.Checkbox=il,T.CheckboxGroup=sl,T.Container=al,T.Dismissible=cl,T.Divider=Ht,T.DropdownMenu=qt,T.FileUpload=ul,T.FormControl=Bs,T.Hidden=ht,T.HiddenVisually=ao,T.Hotkey=_l,T.Icon=fe,T.Image=ml,T.Link=br,T.Loader=hr,T.MenuItem=cr,T.Modal=pl,T.Overlay=Sr,T.Pagination=yl,T.Placeholder=ma,T.Popover=ln,T.Progress=wl,T.Radio=$l,T.RadioGroup=kl,T.Reshaped=Pl,T.Scrim=Fl,T.ScrollArea=Vl,T.Select=Bl,T.Skeleton=Hl,T.Slider=Yl,T.Stepper=Jl,T.Switch=Zl,T.Table=na,T.Tabs=aa,T.Text=ne,T.TextArea=ca,T.TextField=Wo,T.Theme=pt,T.Timeline=da,T.Tooltip=_a,T.View=P,T.classNames=I,T.responsiveClassNames=X,T.responsivePropDependency=Le,T.useFormControl=tt,T.useHotkeys=nt,T.useIsomorphicLayoutEffect=ae,T.useRTL=ot,T.useResponsiveClientValue=Tr,T.useScrollLock=Mr,T.useTheme=sr,T.useToast=zl,T.useToggle=_n,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|
27
|
+
*/var ko;function ds(){if(ko)return St;ko=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(a,d,m){var u,f={},_=null,b=null;m!==void 0&&(_=""+m),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(b=d.ref);for(u in d)o.call(d,u)&&!s.hasOwnProperty(u)&&(f[u]=d[u]);if(a&&a.defaultProps)for(u in d=a.defaultProps,d)f[u]===void 0&&(f[u]=d[u]);return{$$typeof:t,type:a,key:_,ref:b,props:f,_owner:r.current}}return St.Fragment=n,St.jsx=l,St.jsxs=l,St}process.env.NODE_ENV==="production"?Te.exports=ds():Te.exports=cs();var i=Te.exports;const kn=(e,t)=>e>t?[]:Array.from({length:t-e+1},(n,o)=>e+o),$o=(e,t=20)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};function us(e,t){const n=$o(e,t);return o=>("persist"in o&&o.persist(),n(o))}const _s=(e,t)=>{let n=!1;return(...o)=>{n||(e(...o),n=!0,setTimeout(()=>{n=!1,setTimeout(()=>{n||e(...o)},t)},t))}},I=(...e)=>e.reduce((t,n)=>{if(Array.isArray(n)){const o=I(...n);return o?`${t} ${o}`:t}return n?`${t} ${n}`:t},""),zo=(e,t,n)=>{const{base:o,excludeValueFromClassName:r}=n||{},s=typeof e=="string"?e:e(t);return t===!0&&o||r?s:t===!0&&!o?`${s}-true`:t===!1&&!o?`${s}-false`:t!==void 0?`${s}-${t}`:null},X=(e,t,n,o)=>{if(typeof n!="object"){const r=zo(t,n,{base:!0,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName});return r?[e[r]]:[]}return Object.keys(n).reduce((r,s)=>{const l=s==="s",a=zo(t,n[s],{base:l,excludeValueFromClassName:o==null?void 0:o.excludeValueFromClassName}),d=l?"":`--${s}`;return[...r,e[`${a}${d}`]]},[])},se=(e,t)=>t===void 0?{}:typeof t!="object"?{[`${e}-s`]:t}:Object.keys(t).reduce((n,o)=>{const r=t[o];return r===void 0||r===!1?n:z(p({},n),{[`${e}-${o}`]:r})},{}),ms=e=>e===null?!1:typeof e=="object"&&e!==null&&"s"in e,Le=(e,t)=>ms(e)?Object.keys(e).reduce((o,r)=>{const s=e[r];return s==null?o:z(p({},o),{[r]:t(s,r)})},{}):t(e,"s"),Pe=e=>{const t=c.useId();return e||t},$n=c.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""}),No=e=>{const{children:t,onToggle:n,active:o,iconPosition:r,iconSize:s,className:l,attributes:a}=e,d=I(l),m=Pe(),u=c.useMemo(()=>({triggerId:`${m}-trigger`,contentId:`${m}-content`,active:o,onToggle:n,iconPosition:r,iconSize:s}),[o]);return i.jsx("div",z(p({},a),{className:d,children:i.jsx($n.Provider,{value:u,children:t})}))},fs=e=>{const a=e,{defaultActive:t,onToggle:n}=a,o=Se(a,["defaultActive","onToggle"]),[r,s]=c.useState(t||!1),l=d=>{s(d),n==null||n(d)};return i.jsx(No,z(p({},o),{onToggle:l,active:r}))},Dt={root:"_root_5ie1y_2","--disabled":"_--disabled_5ie1y_29","--full-width":"_--full-width_5ie1y_38","--inset":"_--inset_5ie1y_46","--radius-inherit":"_--radius-inherit_5ie1y_50"},De=c.forwardRef((e,t)=>{const{children:n,href:o,onClick:r,type:s,disabled:l,insetFocus:a,borderRadius:d,as:m,fullWidth:u,className:f,attributes:_}=e,b=I(Dt.root,f,l&&Dt["--disabled"],d&&Dt[`--radius-${d}`],a&&Dt["--inset"],u&&Dt["--full-width"]),v=p({},_),g=c.useRef(!1),w=r||(_==null?void 0:_.onClick),y=(_==null?void 0:_.onFocus)||(_==null?void 0:_.onBlur),x=!!(o||_!=null&&_.href),j=!!(w||y||s);let C;if(x)v.href=l?void 0:o||(_==null?void 0:_.href),C="a";else if(j&&(!m||m==="button"))C="button",v.type=s||(_==null?void 0:_.type)||"button",v.disabled=l||(_==null?void 0:_.disabled);else if(j){const $=!(m==="label")||w||y;C=m||"span",v.role=$?"button":void 0,v.tabIndex=$?0:void 0}else C=m||"span";const N=k=>{var $;l||g.current||(r==null||r(k),($=_==null?void 0:_.onClick)==null||$.call(_,k))},S=k=>{if(v.role==="button"||x)return;const A=k.key===" ",M=k.key==="Enter";!A&&!M||(k.preventDefault(),N(k),g.current=!0,requestAnimationFrame(()=>{g.current=!1}))};return i.jsx(C,z(p({ref:t},v),{className:b,onClick:N,onKeyDown:S,children:n}))}),zn={root:"_root_m2bn1_1","--blank":"_--blank_m2bn1_8","--vertical":"_--vertical_m2bn1_15","--vertical-true--m":"_--vertical-true--m_m2bn1_1","--vertical-false--m":"_--vertical-false--m_m2bn1_1","--vertical-true--l":"_--vertical-true--l_m2bn1_1","--vertical-false--l":"_--vertical-false--l_m2bn1_1","--vertical-true--xl":"_--vertical-true--xl_m2bn1_1","--vertical-false--xl":"_--vertical-false--xl_m2bn1_1"},Ht=e=>{const{vertical:t,blank:n,className:o,attributes:r}=e,s=I(zn.root,o,n&&zn["--blank"],...X(zn,"--vertical",t));let l;return(typeof t=="boolean"||t===void 0)&&(l=t?"vertical":"horizontal"),i.jsx("div",z(p({},r),{role:"separator","aria-orientation":l,className:s}))},Rt={root:"_root_1sx8x_6","--display-inline":"_--display-inline_1sx8x_12","--display-flex":"_--display-flex_1sx8x_16","--hidden":"_--hidden_1sx8x_20","--visibility":"_--visibility_1sx8x_24","--hidden-true--m":"_--hidden-true--m_1sx8x_1","--hidden-false--m":"_--hidden-false--m_1sx8x_1","--hidden-true--l":"_--hidden-true--l_1sx8x_1","--hidden-false--l":"_--hidden-false--l_1sx8x_1","--hidden-true--xl":"_--hidden-true--xl_1sx8x_1","--hidden-false--xl":"_--hidden-false--xl_1sx8x_1"},ht=e=>{const{as:t="div",children:n,visibility:o,hide:r,displayStyle:s}=e,l=I(Rt.root,...X(Rt,"--hidden",r),o&&Rt["--visibility"],s&&Rt[`--display-${s}`]);return typeof n=="function"?i.jsx(i.Fragment,{children:n(l)}):i.jsx(t,{className:l,children:n})},te={root:"_root_18bl3_1",item:"_item_18bl3_10","--padding":"_--padding_18bl3_18","--padding-top":"_--padding-top_18bl3_23","--padding-bottom":"_--padding-bottom_18bl3_27","--padding-start":"_--padding-start_18bl3_31","--padding-end":"_--padding-end_18bl3_35","--animated":"_--animated_18bl3_39","--align-text-start":"_--align-text-start_18bl3_1","--align-text-center":"_--align-text-center_18bl3_1","--align-text-end":"_--align-text-end_18bl3_1","--bg-neutral":"_--bg-neutral_18bl3_1","--bg-positive":"_--bg-positive_18bl3_1","--bg-warning":"_--bg-warning_18bl3_1","--bg-critical":"_--bg-critical_18bl3_1","--bg-primary":"_--bg-primary_18bl3_1","--bg-neutral-faded":"_--bg-neutral-faded_18bl3_1","--bg-positive-faded":"_--bg-positive-faded_18bl3_1","--bg-warning-faded":"_--bg-warning-faded_18bl3_1","--bg-critical-faded":"_--bg-critical-faded_18bl3_1","--bg-primary-faded":"_--bg-primary-faded_18bl3_1","--bg-page":"_--bg-page_18bl3_1","--bg-page-faded":"_--bg-page-faded_18bl3_1","--bg-disabled":"_--bg-disabled_18bl3_1","--bg-disabled-faded":"_--bg-disabled-faded_18bl3_1","--bg-elevation-base":"_--bg-elevation-base_18bl3_1","--bg-elevation-raised":"_--bg-elevation-raised_18bl3_1","--bg-elevation-overlay":"_--bg-elevation-overlay_18bl3_1","--bg-brand":"_--bg-brand_18bl3_65","--bg-white":"_--bg-white_18bl3_70","--bg-black":"_--bg-black_18bl3_75","--shadow-raised":"_--shadow-raised_18bl3_80","--shadow-overlay":"_--shadow-overlay_18bl3_84","--bd":"_--bd_18bl3_88","--bd-neutral-faded":"_--bd-neutral-faded_18bl3_1","--bd-neutral":"_--bd-neutral_18bl3_1","--bd-positive":"_--bd-positive_18bl3_1","--bd-positive-faded":"_--bd-positive-faded_18bl3_1","--bd-warning":"_--bd-warning_18bl3_1","--bd-warning-faded":"_--bd-warning-faded_18bl3_1","--bd-critical":"_--bd-critical_18bl3_1","--bd-critical-faded":"_--bd-critical-faded_18bl3_1","--bd-primary":"_--bd-primary_18bl3_1","--bd-primary-faded":"_--bd-primary-faded_18bl3_1","--bd-disabled":"_--bd-disabled_18bl3_1","--bd-brand":"_--bd-brand_18bl3_99","--bd-transparent":"_--bd-transparent_18bl3_103","--overflow-hidden":"_--overflow-hidden_18bl3_107","--overflow-auto":"_--overflow-auto_18bl3_111","--divided":"_--divided_18bl3_115","--flex":"_--flex_18bl3_119","--direction-column":"_--direction-column_18bl3_1","item--gap-before":"_item--gap-before_18bl3_131","item--gap-auto":"_item--gap-auto_18bl3_135","--direction-column-reverse":"_--direction-column-reverse_18bl3_1","--direction-row":"_--direction-row_18bl3_1","--direction-row-reverse":"_--direction-row-reverse_18bl3_1","--nowrap":"_--nowrap_18bl3_190","--wrap":"_--wrap_18bl3_198","--nowrap-false--m":"_--nowrap-false--m_18bl3_1","--wrap-true--m":"_--wrap-true--m_18bl3_1","--nowrap-true--m":"_--nowrap-true--m_18bl3_1","--wrap-false--m":"_--wrap-false--m_18bl3_1","--nowrap-false--l":"_--nowrap-false--l_18bl3_1","--wrap-true--l":"_--wrap-true--l_18bl3_1","--nowrap-true--l":"_--nowrap-true--l_18bl3_1","--wrap-false--l":"_--wrap-false--l_18bl3_1","--nowrap-false--xl":"_--nowrap-false--xl_18bl3_1","--wrap-true--xl":"_--wrap-true--xl_18bl3_1","--nowrap-true--xl":"_--nowrap-true--xl_18bl3_1","--wrap-false--xl":"_--wrap-false--xl_18bl3_1","--align-start":"_--align-start_18bl3_1","--align-end":"_--align-end_18bl3_1","--align-center":"_--align-center_18bl3_1","--align-stretch":"_--align-stretch_18bl3_1","--align-baseline":"_--align-baseline_18bl3_1","--justify-start":"_--justify-start_18bl3_1","--justify-end":"_--justify-end_18bl3_1","--justify-center":"_--justify-center_18bl3_1","--justify-space-between":"_--justify-space-between_18bl3_1",divider:"_divider_18bl3_257","item--grow":"_item--grow_18bl3_261","item--columns":"_item--columns_18bl3_279","item--columns-1":"_item--columns-1_18bl3_1","item--columns-2":"_item--columns-2_18bl3_1","item--columns-3":"_item--columns-3_18bl3_1","item--columns-4":"_item--columns-4_18bl3_1","item--columns-5":"_item--columns-5_18bl3_1","item--columns-6":"_item--columns-6_18bl3_1","item--columns-7":"_item--columns-7_18bl3_1","item--columns-8":"_item--columns-8_18bl3_1","item--columns-9":"_item--columns-9_18bl3_1","item--columns-10":"_item--columns-10_18bl3_1","item--columns-11":"_item--columns-11_18bl3_1","item--columns-12":"_item--columns-12_18bl3_1","item--columns-auto":"_item--columns-auto_18bl3_300","item--columns-1--m":"_item--columns-1--m_18bl3_1","item--columns-auto--m":"_item--columns-auto--m_18bl3_1","item--columns-2--m":"_item--columns-2--m_18bl3_1","item--columns-3--m":"_item--columns-3--m_18bl3_1","item--columns-4--m":"_item--columns-4--m_18bl3_1","item--columns-5--m":"_item--columns-5--m_18bl3_1","item--columns-6--m":"_item--columns-6--m_18bl3_1","item--columns-7--m":"_item--columns-7--m_18bl3_1","item--columns-8--m":"_item--columns-8--m_18bl3_1","item--columns-9--m":"_item--columns-9--m_18bl3_1","item--columns-10--m":"_item--columns-10--m_18bl3_1","item--columns-11--m":"_item--columns-11--m_18bl3_1","item--columns-12--m":"_item--columns-12--m_18bl3_1","item--columns-1--l":"_item--columns-1--l_18bl3_1","item--columns-auto--l":"_item--columns-auto--l_18bl3_1","item--columns-2--l":"_item--columns-2--l_18bl3_1","item--columns-3--l":"_item--columns-3--l_18bl3_1","item--columns-4--l":"_item--columns-4--l_18bl3_1","item--columns-5--l":"_item--columns-5--l_18bl3_1","item--columns-6--l":"_item--columns-6--l_18bl3_1","item--columns-7--l":"_item--columns-7--l_18bl3_1","item--columns-8--l":"_item--columns-8--l_18bl3_1","item--columns-9--l":"_item--columns-9--l_18bl3_1","item--columns-10--l":"_item--columns-10--l_18bl3_1","item--columns-11--l":"_item--columns-11--l_18bl3_1","item--columns-12--l":"_item--columns-12--l_18bl3_1","item--columns-1--xl":"_item--columns-1--xl_18bl3_1","item--columns-auto--xl":"_item--columns-auto--xl_18bl3_1","item--columns-2--xl":"_item--columns-2--xl_18bl3_1","item--columns-3--xl":"_item--columns-3--xl_18bl3_1","item--columns-4--xl":"_item--columns-4--xl_18bl3_1","item--columns-5--xl":"_item--columns-5--xl_18bl3_1","item--columns-6--xl":"_item--columns-6--xl_18bl3_1","item--columns-7--xl":"_item--columns-7--xl_18bl3_1","item--columns-8--xl":"_item--columns-8--xl_18bl3_1","item--columns-9--xl":"_item--columns-9--xl_18bl3_1","item--columns-10--xl":"_item--columns-10--xl_18bl3_1","item--columns-11--xl":"_item--columns-11--xl_18bl3_1","item--columns-12--xl":"_item--columns-12--xl_18bl3_1","--direction-column--m":"_--direction-column--m_18bl3_1","--direction-column-reverse--m":"_--direction-column-reverse--m_18bl3_1","--direction-row--m":"_--direction-row--m_18bl3_1","--direction-row-reverse--m":"_--direction-row-reverse--m_18bl3_1","--align-start--m":"_--align-start--m_18bl3_1","--align-end--m":"_--align-end--m_18bl3_1","--align-center--m":"_--align-center--m_18bl3_1","--align-stretch--m":"_--align-stretch--m_18bl3_1","--align-baseline--m":"_--align-baseline--m_18bl3_1","--justify-start--m":"_--justify-start--m_18bl3_1","--justify-end--m":"_--justify-end--m_18bl3_1","--justify-center--m":"_--justify-center--m_18bl3_1","--justify-space-between--m":"_--justify-space-between--m_18bl3_1","item--grow-true--m":"_item--grow-true--m_18bl3_1","item--grow-false--m":"_item--grow-false--m_18bl3_1","--direction-column--l":"_--direction-column--l_18bl3_1","--direction-column-reverse--l":"_--direction-column-reverse--l_18bl3_1","--direction-row--l":"_--direction-row--l_18bl3_1","--direction-row-reverse--l":"_--direction-row-reverse--l_18bl3_1","--align-start--l":"_--align-start--l_18bl3_1","--align-end--l":"_--align-end--l_18bl3_1","--align-center--l":"_--align-center--l_18bl3_1","--align-stretch--l":"_--align-stretch--l_18bl3_1","--align-baseline--l":"_--align-baseline--l_18bl3_1","--justify-start--l":"_--justify-start--l_18bl3_1","--justify-end--l":"_--justify-end--l_18bl3_1","--justify-center--l":"_--justify-center--l_18bl3_1","--justify-space-between--l":"_--justify-space-between--l_18bl3_1","item--grow-true--l":"_item--grow-true--l_18bl3_1","item--grow-false--l":"_item--grow-false--l_18bl3_1","--direction-column--xl":"_--direction-column--xl_18bl3_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_18bl3_1","--direction-row--xl":"_--direction-row--xl_18bl3_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_18bl3_1","--align-start--xl":"_--align-start--xl_18bl3_1","--align-end--xl":"_--align-end--xl_18bl3_1","--align-center--xl":"_--align-center--xl_18bl3_1","--align-stretch--xl":"_--align-stretch--xl_18bl3_1","--align-baseline--xl":"_--align-baseline--xl_18bl3_1","--justify-start--xl":"_--justify-start--xl_18bl3_1","--justify-end--xl":"_--justify-end--xl_18bl3_1","--justify-center--xl":"_--justify-center--xl_18bl3_1","--justify-space-between--xl":"_--justify-space-between--xl_18bl3_1","item--grow-true--xl":"_item--grow-true--xl_18bl3_1","item--grow-false--xl":"_item--grow-false--xl_18bl3_1"},Eo={root:"_root_fjri8_1","--radius-none":"_--radius-none_fjri8_1","--radius-small":"_--radius-small_fjri8_1","--radius-medium":"_--radius-medium_fjri8_1","--radius-large":"_--radius-large_fjri8_1","--radius-circular":"_--radius-circular_fjri8_1","--radius-none--m":"_--radius-none--m_fjri8_1","--radius-small--m":"_--radius-small--m_fjri8_1","--radius-medium--m":"_--radius-medium--m_fjri8_1","--radius-large--m":"_--radius-large--m_fjri8_1","--radius-circular--m":"_--radius-circular--m_fjri8_1","--radius-none--l":"_--radius-none--l_fjri8_1","--radius-small--l":"_--radius-small--l_fjri8_1","--radius-medium--l":"_--radius-medium--l_fjri8_1","--radius-large--l":"_--radius-large--l_fjri8_1","--radius-circular--l":"_--radius-circular--l_fjri8_1","--radius-none--xl":"_--radius-none--xl_fjri8_1","--radius-small--xl":"_--radius-small--xl_fjri8_1","--radius-medium--xl":"_--radius-medium--xl_fjri8_1","--radius-large--xl":"_--radius-large--xl_fjri8_1","--radius-circular--xl":"_--radius-circular--xl_fjri8_1"},Nn=e=>e?{classNames:[Eo.root,...X(Eo,"--radius",e)]}:null,To={root:"_root_22l3r_1","--bleed":"_--bleed_22l3r_10","--bleed-true--m":"_--bleed-true--m_22l3r_1","--bleed-false--m":"_--bleed-false--m_22l3r_1","--bleed-true--l":"_--bleed-true--l_22l3r_1","--bleed-false--l":"_--bleed-false--l_22l3r_1","--bleed-true--xl":"_--bleed-true--xl_22l3r_1","--bleed-false--xl":"_--bleed-false--xl_22l3r_1"},Mo=e=>{if(e===void 0)return null;const t=[To.root,...X(To,"--bleed",Le(e,o=>typeof o=="number"&&o>0))],n=se("--rs-bleed",e);return{classNames:t,variables:n}},hs={literal:"_literal_1b2qb_1",unit:"_unit_1b2qb_5","literal--m":"_literal--m_1b2qb_1","unit--m":"_unit--m_1b2qb_1","literal--l":"_literal--l_1b2qb_1","unit--l":"_unit--l_1b2qb_1","literal--xl":"_literal--xl_1b2qb_1","unit--xl":"_unit--xl_1b2qb_1"},En=e=>{if(!e)return null;const t=se("--rs-w",e);return{classNames:X(hs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},bs={literal:"_literal_6dko4_2",unit:"_unit_6dko4_3","literal--m":"_literal--m_6dko4_1","unit--m":"_unit--m_6dko4_1","literal--l":"_literal--l_6dko4_1","unit--l":"_unit--l_6dko4_1","literal--xl":"_literal--xl_6dko4_1","unit--xl":"_unit--xl_6dko4_1"},bt=e=>{if(!e)return null;const t=se("--rs-h",e);return{classNames:X(bs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},gs={literal:"_literal_13h2y_1",unit:"_unit_13h2y_5","literal--m":"_literal--m_13h2y_1","unit--m":"_unit--m_13h2y_1","literal--l":"_literal--l_13h2y_1","unit--l":"_unit--l_13h2y_1","literal--xl":"_literal--xl_13h2y_1","unit--xl":"_unit--xl_13h2y_1"},vs=e=>{if(!e)return null;const t=se("--rs-max-w",e);return{classNames:X(gs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ps={literal:"_literal_1ji3w_1",unit:"_unit_1ji3w_5","literal--m":"_literal--m_1ji3w_1","unit--m":"_unit--m_1ji3w_1","literal--l":"_literal--l_1ji3w_1","unit--l":"_unit--l_1ji3w_1","literal--xl":"_literal--xl_1ji3w_1","unit--xl":"_unit--xl_1ji3w_1"},So=e=>{if(!e)return null;const t=se("--rs-max-h",e);return{classNames:X(ps,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},xs={literal:"_literal_tfgjf_1",unit:"_unit_tfgjf_5","literal--m":"_literal--m_tfgjf_1","unit--m":"_unit--m_tfgjf_1","literal--l":"_literal--l_tfgjf_1","unit--l":"_unit--l_tfgjf_1","literal--xl":"_literal--xl_tfgjf_1","unit--xl":"_unit--xl_tfgjf_1"},Do=e=>{if(!e)return null;const t=se("--rs-min-w",e);return{classNames:X(xs,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},ys={literal:"_literal_19ewn_1",unit:"_unit_19ewn_5","literal--m":"_literal--m_19ewn_1","unit--m":"_unit--m_19ewn_1","literal--l":"_literal--l_19ewn_1","unit--l":"_unit--l_19ewn_1","literal--xl":"_literal--xl_19ewn_1","unit--xl":"_unit--xl_19ewn_1"},ws=e=>{if(!e)return null;const t=se("--rs-min-h",e);return{classNames:X(ys,o=>typeof o=="number"?"unit":"literal",e,{excludeValueFromClassName:!0}),variables:t}},js={"--position-static":"_--position-static_1qpz9_1","--position-relative":"_--position-relative_1qpz9_1","--position-absolute":"_--position-absolute_1qpz9_1","--position-fixed":"_--position-fixed_1qpz9_1","--position-sticky":"_--position-sticky_1qpz9_1","--position-static--m":"_--position-static--m_1qpz9_1","--position-relative--m":"_--position-relative--m_1qpz9_1","--position-absolute--m":"_--position-absolute--m_1qpz9_1","--position-fixed--m":"_--position-fixed--m_1qpz9_1","--position-sticky--m":"_--position-sticky--m_1qpz9_1","--position-static--l":"_--position-static--l_1qpz9_1","--position-relative--l":"_--position-relative--l_1qpz9_1","--position-absolute--l":"_--position-absolute--l_1qpz9_1","--position-fixed--l":"_--position-fixed--l_1qpz9_1","--position-sticky--l":"_--position-sticky--l_1qpz9_1","--position-static--xl":"_--position-static--xl_1qpz9_1","--position-relative--xl":"_--position-relative--xl_1qpz9_1","--position-absolute--xl":"_--position-absolute--xl_1qpz9_1","--position-fixed--xl":"_--position-fixed--xl_1qpz9_1","--position-sticky--xl":"_--position-sticky--xl_1qpz9_1"},Cs=e=>e?{classNames:X(js,"--position",e)}:null,ks={"--inset":"_--inset_17xwz_1","--inset-end":"_--inset-end_17xwz_27","--inset-start":"_--inset-start_17xwz_31","--inset-top":"_--inset-top_17xwz_35","--inset-bottom":"_--inset-bottom_17xwz_39","--inset-end--m":"_--inset-end--m_17xwz_1","--inset-start--m":"_--inset-start--m_17xwz_1","--inset-top--m":"_--inset-top--m_17xwz_1","--inset-bottom--m":"_--inset-bottom--m_17xwz_1","--inset-end--l":"_--inset-end--l_17xwz_1","--inset-start--l":"_--inset-start--l_17xwz_1","--inset-top--l":"_--inset-top--l_17xwz_1","--inset-bottom--l":"_--inset-bottom--l_17xwz_1","--inset-end--xl":"_--inset-end--xl_17xwz_1","--inset-start--xl":"_--inset-start--xl_17xwz_1","--inset-top--xl":"_--inset-top--xl_17xwz_1","--inset-bottom--xl":"_--inset-bottom--xl_17xwz_1"},It=(e,t)=>{if(e===void 0)return null;const n=t?`-${t}`:"",o=`--rs-inset${n}`,r=se(o,e);return{classNames:X(ks,`--inset${n}`,e,{excludeValueFromClassName:!0}),variables:r}},$s={root:"_root_jdpm8_1"},zs=e=>{if(!e)return null;const t=se("--rs-ratio",e);return{classNames:$s.root,variables:t}},Io=e=>{const{columns:t,grow:n,gapBefore:o,as:r="div",order:s,children:l,className:a,attributes:d}=e,m=I(te.item,a,o==="auto"&&te["item--gap-auto"],o!==void 0&&te["item--gap-before"],t&&te["item--columns"],...X(te,"item--grow",n),...X(te,"item--columns",t)),u=p(p({},se("--rs-view-item-order",s)),se("--rs-view-item-gap-before",o));return i.jsx(r,z(p({},d),{style:p(p({},d==null?void 0:d.style),u),className:m,children:l}))},Tn=e=>{const{align:t,justify:n,wrap:o,gap:r,height:s,width:l,aspectRatio:a,maxHeight:d,maxWidth:m,minHeight:u,minWidth:f,padding:_,paddingInline:b,paddingBlock:v,paddingBottom:g,paddingEnd:w,paddingStart:y,paddingTop:x,bleed:j,animated:C,backgroundColor:N,borderColor:S,borderRadius:k,shadow:$,textAlign:A,overflow:M,position:q="relative",inset:O,insetTop:R,insetBottom:L,insetStart:U,insetEnd:W,zIndex:H,grow:B,as:Q="div",children:_e,divided:ce,className:Ce,attributes:ke}=e;let Me=!!t||!!n||!!r||!!e.direction;const ee=e.direction||(Me?"column":void 0),J=Nn(k),G=Mo(j),F=En(l),oe=bt(s),le=vs(m),me=So(d),xe=Do(f),$e=ws(u),lt=Cs(q),ze=It(O),Ne=It(R,"top"),Ie=It(L,"bottom"),Ae=It(U,"start"),Ee=It(W,"end"),at=zs(a);let gn=0,ct;const xo=({className:ye,key:he})=>{const Ue=I(te.divider,ye);let we=!1;return typeof ee=="string"&&ee.startsWith("row")?we=!0:ee&&(we=Object.keys(ee).reduce((Qe,dt)=>{const Be=ee[dt];return Be?z(p({},Qe),{[dt]:Be.startsWith("row")}):Qe},{})),i.jsx("div",{className:Ue,children:i.jsx(Ht,{vertical:we,blank:!0})},`${he}-divider`)},vn=({className:ye,child:he,index:Ue})=>{var yn,wn,jn;const we=he.type===Io,Nt=he.type===Tn,Qe=he.key||Ue,dt=!!Ue&&ce&&xo({className:ye,key:Qe});let Be;return we?Be=c.cloneElement(he,{className:I(ye,he.props.className)}):ye||!c.isValidElement(he)?Be=i.jsx("div",{className:ye,children:he},Qe):Be=he,we&&((yn=he.props)!=null&&yn.grow)&&(ct=he.props.grow),we&&((wn=he.props)==null?void 0:wn.gap)==="auto"&&(ct=!0),(we||Nt)&&((jn=he.props)!=null&&jn.grow)&&(Me=!0),[dt,Be]},pn=c.Children.map(_e,(ye,he)=>{if(!ye)return null;const Ue=gn;if(gn+=1,ye.type===ht&&typeof ye.props.children!="function"){const we=ye.props,{children:Nt}=we,Qe=Se(we,["children"]),dt=ye.key||he;return c.createElement(ht,z(p({},Qe),{key:dt}),Be=>vn({className:Be,child:Nt,index:Ue}))}return vn({child:ye,index:Ue})}),xn=I(te.root,Ce,J==null?void 0:J.classNames,lt==null?void 0:lt.classNames,G==null?void 0:G.classNames,F==null?void 0:F.classNames,oe==null?void 0:oe.classNames,at==null?void 0:at.classNames,le==null?void 0:le.classNames,me==null?void 0:me.classNames,xe==null?void 0:xe.classNames,$e==null?void 0:$e.classNames,ze==null?void 0:ze.classNames,Ne==null?void 0:Ne.classNames,Ie==null?void 0:Ie.classNames,Ae==null?void 0:Ae.classNames,Ee==null?void 0:Ee.classNames,A&&te[`--align-text-${A}`],N&&te[`--bg-${N}`],S&&te[`--bd-${S}`],S&&te["--bd"],$&&te[`--shadow-${$}`],M&&te[`--overflow-${M}`],C&&te["--animated"],ce&&te["--divided"],(_!==void 0||b!==void 0||v!==void 0)&&te["--padding"],g!==void 0&&te["--padding-bottom"],w!==void 0&&te["--padding-end"],y!==void 0&&te["--padding-start"],x!==void 0&&te["--padding-top"],(Me||ct)&&te["--flex"],...X(te,"--direction",ee),...X(te,"--align",t),...X(te,"--justify",n),...X(te,"--nowrap",ct||o===!1),...X(te,"--wrap",o),...X(te,"item--grow",B)),ft=p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p({},ke==null?void 0:ke.style),se("--rs-view-gap",r)),se("--rs-view-p-vertical",v||_)),se("--rs-view-p-horizontal",b||_)),se("--rs-view-p-bottom",g)),se("--rs-view-p-top",x)),se("--rs-view-p-start",y)),se("--rs-view-p-end",w)),G==null?void 0:G.variables),F==null?void 0:F.variables),oe==null?void 0:oe.variables),at==null?void 0:at.variables),le==null?void 0:le.variables),me==null?void 0:me.variables),xe==null?void 0:xe.variables),$e==null?void 0:$e.variables),ze==null?void 0:ze.variables),Ne==null?void 0:Ne.variables),Ie==null?void 0:Ie.variables),Ae==null?void 0:Ae.variables),Ee==null?void 0:Ee.variables),H?{"--rs-view-z":H}:{});return i.jsx(Q,z(p({},ke),{className:xn,style:ft,children:pn}))};Tn.Item=Io;const P=Tn,Mn={root:"_root_1aeuv_1","--auto":"_--auto_1aeuv_8","--color-neutral":"_--color-neutral_1aeuv_1","--color-neutral-faded":"_--color-neutral-faded_1aeuv_1","--color-primary":"_--color-primary_1aeuv_1","--color-positive":"_--color-positive_1aeuv_1","--color-warning":"_--color-warning_1aeuv_1","--color-critical":"_--color-critical_1aeuv_1","--color-disabled":"_--color-disabled_1aeuv_1"},ue=e=>{const{svg:t,className:n,color:o,size:r="1em",autoWidth:s,attributes:l}=e,a=bt(r),d=I(Mn.root,n,a==null?void 0:a.classNames,o&&Mn[`--color-${o}`],s&&Mn["--auto"]),m=c.isValidElement(t)?t:i.jsx(t,{}),u=p(p({},l==null?void 0:l.style),a==null?void 0:a.variables);return i.jsx("span",z(p({},l),{"aria-hidden":"true",className:d,style:u,children:c.cloneElement(m,{focusable:!1})}))},Ns=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"6 9 12 15 18 9"})}),Ao={icon:"_icon_loavs_1","icon--active":"_icon--active_loavs_5"},Es=e=>{const{children:t}=e,{active:n,onToggle:o,triggerId:r,contentId:s,iconPosition:l="end",iconSize:a}=c.useContext($n),d=I(Ao.icon,n&&Ao["icon--active"]),m=()=>{o==null||o(!n)},u={"aria-expanded":n,"aria-controls":s,id:r};return typeof t=="function"?i.jsx(i.Fragment,{children:t(z(p({},u),{onClick:m}),{active:n})}):i.jsx(De,{onClick:m,fullWidth:!0,attributes:u,children:i.jsxs(P,{gap:2,direction:l==="start"?"row-reverse":"row",align:"center",children:[i.jsx(P.Item,{grow:!0,children:t}),i.jsx(ue,{size:a||4,svg:Ns,className:d})]})})},Sn={root:"_root_upjmv_1","--active":"_--active_upjmv_11",inner:"_inner_upjmv_15"},Ye=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>e())})},Dn="data-rs-no-transition",Ts=()=>{document.documentElement.setAttribute(Dn,"true")},Ms=()=>{document.documentElement.removeAttribute(Dn)},Ss=()=>!document.documentElement.hasAttribute(Dn),qo=e=>{const{children:t,active:n,attributes:o}=e,[r,s]=c.useState(!1),l=I(Sn.root,n&&Sn["--active"]),a=d=>{d.propertyName==="height"&&Ye(()=>{s(!1)})};return c.useEffect(()=>{s(n||!1)},[n]),i.jsx("div",z(p({},o),{className:l,onTransitionEnd:a,role:"region",hidden:!n&&!r,children:i.jsx("div",{className:Sn.inner,children:t})}))},Ds=e=>{const{children:t}=e,{active:n,triggerId:o,contentId:r}=c.useContext($n);return i.jsx(qo,{active:n,attributes:{"aria-labelledby":o,id:r},children:t})},In=e=>{const{active:t}=e;return t!==void 0?i.jsx(No,p({},e)):i.jsx(fs,p({},e))};In.Trigger=Es,In.Content=Ds;const Is=In,An={root:"_root_dv5cm_1","--position-bottom":"_--position-bottom_dv5cm_32","--position-top":"_--position-top_dv5cm_1","--elevated":"_--elevated_dv5cm_16"},As=e=>{const{position:t="bottom",padding:n,paddingBlock:o=3,paddingInline:r=4,children:s,elevated:l,className:a,attributes:d}=e,m=I(An.root,l&&An["--elevated"],t&&An[`--position-${t}`],a);return i.jsx(P,{className:m,attributes:d,paddingBlock:n||o,paddingInline:n||r,children:s})},Ge={root:"_root_179zk_1","--clamp":"_--clamp_179zk_6","--break-all":"_--break-all_179zk_13","--wrap-balance":"_--wrap-balance_179zk_17","--align-start":"_--align-start_179zk_1","--align-center":"_--align-center_179zk_1","--align-end":"_--align-end_179zk_1","--variant-title-1":"_--variant-title-1_179zk_1","--variant-title-2":"_--variant-title-2_179zk_1","--variant-title-3":"_--variant-title-3_179zk_1","--variant-title-4":"_--variant-title-4_179zk_1","--variant-title-5":"_--variant-title-5_179zk_1","--variant-title-6":"_--variant-title-6_179zk_1","--variant-featured-1":"_--variant-featured-1_179zk_1","--variant-featured-2":"_--variant-featured-2_179zk_1","--variant-featured-3":"_--variant-featured-3_179zk_1","--variant-body-1":"_--variant-body-1_179zk_1","--variant-body-2":"_--variant-body-2_179zk_1","--variant-body-3":"_--variant-body-3_179zk_1","--variant-caption-1":"_--variant-caption-1_179zk_1","--variant-caption-2":"_--variant-caption-2_179zk_1","--weight-regular":"_--weight-regular_179zk_1","--weight-medium":"_--weight-medium_179zk_1","--weight-bold":"_--weight-bold_179zk_1","--color-neutral":"_--color-neutral_179zk_1","--color-neutral-faded":"_--color-neutral-faded_179zk_1","--color-primary":"_--color-primary_179zk_1","--color-warning":"_--color-warning_179zk_1","--color-positive":"_--color-positive_179zk_1","--color-critical":"_--color-critical_179zk_1","--color-disabled":"_--color-disabled_179zk_1","--decoration-line-through":"_--decoration-line-through_179zk_147","--align-start--m":"_--align-start--m_179zk_1","--align-center--m":"_--align-center--m_179zk_1","--align-end--m":"_--align-end--m_179zk_1","--variant-title-1--m":"_--variant-title-1--m_179zk_1","--variant-title-2--m":"_--variant-title-2--m_179zk_1","--variant-title-3--m":"_--variant-title-3--m_179zk_1","--variant-title-4--m":"_--variant-title-4--m_179zk_1","--variant-title-5--m":"_--variant-title-5--m_179zk_1","--variant-title-6--m":"_--variant-title-6--m_179zk_1","--variant-featured-1--m":"_--variant-featured-1--m_179zk_1","--variant-featured-2--m":"_--variant-featured-2--m_179zk_1","--variant-featured-3--m":"_--variant-featured-3--m_179zk_1","--variant-body-1--m":"_--variant-body-1--m_179zk_1","--variant-body-2--m":"_--variant-body-2--m_179zk_1","--variant-body-3--m":"_--variant-body-3--m_179zk_1","--variant-caption-1--m":"_--variant-caption-1--m_179zk_1","--variant-caption-2--m":"_--variant-caption-2--m_179zk_1","--align-start--l":"_--align-start--l_179zk_1","--align-center--l":"_--align-center--l_179zk_1","--align-end--l":"_--align-end--l_179zk_1","--variant-title-1--l":"_--variant-title-1--l_179zk_1","--variant-title-2--l":"_--variant-title-2--l_179zk_1","--variant-title-3--l":"_--variant-title-3--l_179zk_1","--variant-title-4--l":"_--variant-title-4--l_179zk_1","--variant-title-5--l":"_--variant-title-5--l_179zk_1","--variant-title-6--l":"_--variant-title-6--l_179zk_1","--variant-featured-1--l":"_--variant-featured-1--l_179zk_1","--variant-featured-2--l":"_--variant-featured-2--l_179zk_1","--variant-featured-3--l":"_--variant-featured-3--l_179zk_1","--variant-body-1--l":"_--variant-body-1--l_179zk_1","--variant-body-2--l":"_--variant-body-2--l_179zk_1","--variant-body-3--l":"_--variant-body-3--l_179zk_1","--variant-caption-1--l":"_--variant-caption-1--l_179zk_1","--variant-caption-2--l":"_--variant-caption-2--l_179zk_1","--align-start--xl":"_--align-start--xl_179zk_1","--align-center--xl":"_--align-center--xl_179zk_1","--align-end--xl":"_--align-end--xl_179zk_1","--variant-title-1--xl":"_--variant-title-1--xl_179zk_1","--variant-title-2--xl":"_--variant-title-2--xl_179zk_1","--variant-title-3--xl":"_--variant-title-3--xl_179zk_1","--variant-title-4--xl":"_--variant-title-4--xl_179zk_1","--variant-title-5--xl":"_--variant-title-5--xl_179zk_1","--variant-title-6--xl":"_--variant-title-6--xl_179zk_1","--variant-featured-1--xl":"_--variant-featured-1--xl_179zk_1","--variant-featured-2--xl":"_--variant-featured-2--xl_179zk_1","--variant-featured-3--xl":"_--variant-featured-3--xl_179zk_1","--variant-body-1--xl":"_--variant-body-1--xl_179zk_1","--variant-body-2--xl":"_--variant-body-2--xl_179zk_1","--variant-body-3--xl":"_--variant-body-3--xl_179zk_1","--variant-caption-1--xl":"_--variant-caption-1--xl_179zk_1","--variant-caption-2--xl":"_--variant-caption-2--xl_179zk_1"},qs={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},ne=e=>{const{variant:t,color:n,weight:o,align:r,decoration:s,maxLines:l,wrap:a,children:d,className:m,attributes:u}=e,f=typeof t=="string"?t:(t==null?void 0:t.xl)||(t==null?void 0:t.l)||(t==null?void 0:t.m)||(t==null?void 0:t.s),_=e.as||f&&qs[f]||"div",b=I(Ge.root,n&&Ge[`--color-${n}`],...X(Ge,"--variant",t),...X(Ge,"--align",r),o&&Ge[`--weight-${o}`],s&&Ge[`--decoration-${s}`],l!==void 0&&Ge["--clamp"],l===1&&Ge["--break-all"],a&&Ge[`--wrap-${a}`],m),v=z(p({},u==null?void 0:u.style),{"--rs-text-lines":l});return i.jsx(_,z(p({},u),{className:b,style:v,children:d}))},Ls=e=>{const{title:t,children:n,icon:o,actionsSlot:r,color:s="neutral",inline:l,bleed:a,className:d,attributes:m}=e,u=s==="neutral",f=()=>l?i.jsxs(i.Fragment,{children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",as:"span",children:t}),t&&n&&" ",n&&i.jsx(ne,{variant:"body-3",as:"span",children:n})]}):i.jsxs(P,{gap:1,children:[t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),n&&i.jsx(ne,{variant:"body-3",children:n})]}),_=b=>r?i.jsxs(P,{gap:2,direction:l?"row":"column",children:[l?i.jsx(P.Item,{grow:!0,children:b}):b,r&&i.jsx(ne,{variant:"body-3",weight:"medium",children:i.jsx(P,{direction:"row",gap:3,children:r})})]}):b;return i.jsx(P,{direction:"row",gap:3,padding:4,bleed:a,borderRadius:"medium",borderColor:`${s}-faded`,backgroundColor:`${s}-faded`,className:d,attributes:z(p({},m),{role:s==="critical"?"alert":"status"}),children:o?i.jsxs(i.Fragment,{children:[i.jsx(ue,{svg:o,size:5,color:u?"primary":s}),i.jsx(P.Item,{grow:!0,children:_(f())})]}):_(f())})},Lo=c.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),Ps=Lo.Provider,At=()=>c.useContext(Lo),tt=()=>{const{attributes:e,required:t,hasError:n,disabled:o}=At();return{attributes:e,required:t,hasError:n,disabled:o}},qn=(e,t)=>`${e}-${t||"caption"}`,Fs=e=>{const{children:t,id:n,required:o,hasError:r,group:s,disabled:l,size:a}=e,d=Pe(n),m=s?"fieldset":"div",[u,f]=c.useState(!1),[_,b]=c.useState(!1),v=[u&&qn(d),_&&qn(d,"error")].filter(Boolean).join(" "),g={id:d,"aria-describedby":v},w=()=>{b(!0)},y=()=>{f(!0)};return i.jsx(m,{children:i.jsx(Ps,{value:{required:o,hasError:r,errorRef:w,helperRef:y,attributes:g,group:s,disabled:l,size:a},children:t})})},Po={root:"_root_1ni0x_1",label:"_label_1ni0x_5",caption:"_caption_1ni0x_10"},Vs=e=>{const{children:t}=e,{attributes:n,required:o,group:r,disabled:s,size:l}=At(),a=`${n.id}-label`,d=r?{as:"legend",attributes:{id:a}}:{as:"label",attributes:{id:a,htmlFor:n.id}};return i.jsxs(ne,z(p({},d),{variant:l==="large"?"body-2":"body-3",weight:"medium",className:Po.label,color:s?"disabled":void 0,children:[t,o&&i.jsx(ne,{color:s?"disabled":"critical",as:"span",children:"*"})]}))},Fo=e=>{const{children:t,variant:n,disabled:o}=e,{attributes:r,size:s,helperRef:l,errorRef:a}=At(),d=qn(r.id,n),m=n==="error"?"critical":"neutral-faded",u=n==="error"?a:l;return i.jsx(ne,{as:"span",variant:s==="large"?"body-3":"caption-1",color:o&&!n?"disabled":m,attributes:{id:d,role:m?"alert":void 0,ref:u},className:Po.caption,children:t})},Os=e=>{const{children:t}=e,{hasError:n}=At();return n?i.jsx(Fo,{variant:"error",children:t}):null},Bs=e=>{const{children:t}=e,{disabled:n}=At();return i.jsx(Fo,{disabled:n,children:t})},Ut=Fs;Ut.Label=Vs,Ut.Helper=Bs,Ut.Error=Os;const Ws=Ut,Vo={root:"_root_1q3jm_1","--side-all":"_--side-all_1q3jm_6","--side-start":"_--side-start_1q3jm_10","--side-inline":"_--side-inline_1q3jm_11","--side-end":"_--side-end_1q3jm_15","--side-top":"_--side-top_1q3jm_20","--side-block":"_--side-block_1q3jm_21","--side-bottom":"_--side-bottom_1q3jm_25"},Yt=e=>{const{side:t="all",children:n,className:o,attributes:r}=e,s=typeof t=="string"?[t]:t,l=I(Vo.root,s.map(a=>Vo[`--side-${a}`]),o);return i.jsx("div",z(p({},r),{className:l,children:n}))},Fe={root:"_root_16c4t_1",input:"_input_16c4t_21",slot:"_slot_16c4t_42",icon:"_icon_16c4t_43",affix:"_affix_16c4t_44",attachment:"_attachment_16c4t_60","attachment--position-start":"_attachment--position-start_16c4t_66","attachment--position-end":"_attachment--position-end_16c4t_76","--disabled":"_--disabled_16c4t_91","--size-medium":"_--size-medium_16c4t_1","--size-large":"_--size-large_16c4t_1","--size-xlarge":"_--size-xlarge_16c4t_1","--variant-faded":"_--variant-faded_16c4t_155","--variant-headless":"_--variant-headless_16c4t_164","--status-error":"_--status-error_16c4t_169","--size-medium--m":"_--size-medium--m_16c4t_1","--size-large--m":"_--size-large--m_16c4t_1","--size-xlarge--m":"_--size-xlarge--m_16c4t_1","--size-medium--l":"_--size-medium--l_16c4t_1","--size-large--l":"_--size-large--l_16c4t_1","--size-xlarge--l":"_--size-xlarge--l_16c4t_1","--size-medium--xl":"_--size-medium--xl_16c4t_1","--size-large--xl":"_--size-large--xl_16c4t_1","--size-xlarge--xl":"_--size-xlarge--xl_16c4t_1"},Oo=e=>{const{slot:t,icon:n,size:o,affix:r,position:s}=e;if(!n&&!t&&!r)return null;const l=I(Fe.attachment,Fe[`attachment--position-${s}`]),a=[t&&i.jsx("div",{className:Fe.slot,children:t},"slot"),n&&i.jsx("div",{className:Fe.icon,children:i.jsx(ue,{size:Le(o,d=>d==="large"?5:d==="xlarge"?6:4),svg:n})},"icon"),r&&i.jsx("div",{className:Fe.affix,children:r},"affix")].filter(Boolean);return i.jsx("span",{className:l,children:s==="end"?a.reverse():a})},Bo=e=>{var M;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,icon:d,endIcon:m,startSlot:u,endSlot:f,prefix:_,suffix:b,size:v="medium",variant:g="outline",className:w,attributes:y}=e,x=tt(),j=Pe(e.id),C=(x==null?void 0:x.attributes.id)||((M=e.inputAttributes)==null?void 0:M.id)||j,N=(x==null?void 0:x.disabled)||e.disabled,S=(x==null?void 0:x.hasError)||e.hasError,k=p(p({},e.inputAttributes),x==null?void 0:x.attributes),$=I(Fe.root,w,v&&X(Fe,"--size",v),S&&Fe["--status-error"],N&&Fe["--disabled"],g&&Fe[`--variant-${g}`]),A=q=>{t&&t({name:r,value:q.target.value,event:q})};return i.jsxs("div",z(p({},y),{"data-rs-aligner-target":!0,className:$,children:[i.jsx(Oo,{position:"start",icon:d,slot:u,size:v,affix:_}),i.jsx("input",z(p({},k),{className:Fe.input,disabled:N,name:r,placeholder:a,value:s,defaultValue:l,onChange:A,onFocus:n||(k==null?void 0:k.onFocus),onBlur:o||(k==null?void 0:k.onBlur),id:C})),i.jsx(Oo,{position:"end",icon:m,slot:f,size:v,affix:b})]}))};Bo.Aligner=Yt;const Wo=Bo,Hs="Enter",Rs="Tab",Ln="ArrowUp",Pn="ArrowDown",Fn="ArrowRight",Vn="ArrowLeft",On="data-rs-keyboard",Gt="data-rs-focus";class Us{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(t){return this.chain[t]}isLast(t){return this.tailId!==null&&t===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(t){const n=this.tailId,o=n&&this.get(n),r=this.generateId();return this.chain[r]={previousId:n,data:t},o&&(o.nextId=r),this.tailId=r,r}remove(t){var d,m;const n=this.chain[t];if(!n)return;const o=n.previousId,r=o&&this.get(o),s=n.nextId,l=s&&this.get(s);r&&(r.nextId=(d=n.nextId)!=null?d:null),l&&(l.previousId=(m=n.previousId)!=null?m:null),s||(this.tailId=o!=null?o:null);const a=this.get(t).data;return delete this.chain[t],a}removePreviousTill(t,n){const o=this.get(t),r=this.remove(t);return!o||!o.previousId||n(o)?r:this.removePreviousTill(o.previousId,n)}}const Ho=()=>document.documentElement.hasAttribute(On),Ro='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Kt=()=>document.querySelector(`[${Gt}]`)||document.activeElement,Bn=(e,t)=>{const o=Array.from(e.querySelectorAll(Ro)).filter(r=>{if(r.hasAttribute("disabled")||r.clientHeight===0)return!1;if(r.type==="radio"){let s;if(r.form){const l=r.form.elements.namedItem(r.name);if(!l)return!1;"length"in l?s=Array.from(l).filter(d=>"type"in d&&d.type==="radio"):s=[l]}else s=Array.from(e.querySelectorAll(`[type="radio"][name="${r.name}"]`));if(s!=null&&s.length){const l=Array.from(s).find(a=>a.checked);if(l&&r!==l||!l&&r!==s[0])return!1}}return!0});return t&&o.length&&o.unshift(t),o},Uo=e=>{const{root:t,extraElement:n,target:o,mode:r}=e,s=Bn(t,n),l=s.length-1,a=Kt(),d=s.indexOf(a),m={next:d+1,prev:d-1,first:0,last:l};let u=m[o];const f=u>l||u<0;return f&&(r==="action-menu"?u=o==="prev"?m.first:m.last:u=o==="prev"?m.last:m.first),{overflow:f,el:s[u]}},Xt=(e,t)=>{var n;(n=document.querySelector(`[${Gt}]`))==null||n.removeAttribute(Gt),t==="selection-menu"?e.setAttribute(Gt,"true"):e.focus()},Jt=(e,t)=>{const n=Uo({root:e,target:t});Xt(n.el)},Ys=e=>Jt(e,"next"),Gs=e=>Jt(e,"prev"),Ks=e=>Jt(e,"first"),Xs=e=>Jt(e,"last"),Js=(()=>{let e=[];const t=o=>{let r=o.parentNode&&o.parentNode.firstChild;for(;r;){const s=r!==o,l=r.nodeType===1&&!r.hasAttribute("aria-hidden");s&&l&&(r.setAttribute("aria-hidden","true"),e.push(r)),r=r.nextSibling}},n=()=>{e.forEach(o=>{o.removeAttribute("aria-hidden")}),e=[]};return o=>{let r=o;for(e.length&&n();r!==document.body;)t(r),r=r.parentElement;return{release:n}}})(),Zt=(()=>{let e=null,t=null;const n=new Us;return(o,r={})=>{const{mode:s="dialog",onNavigateOutside:l,includeTrigger:a}=r,d=Kt(),m=s==="dialog",u=s==="content-menu",f=s==="selection-menu",_=m||u,b=s==="action-menu"||f,v=Bn(o,a?d:void 0);let g;const w=new MutationObserver(()=>{if(o.contains(document.activeElement))return;const C=Bn(o,a?d:void 0);C.length&&Xt(C[0],s)}),y=(C={})=>{const{withoutFocusReturn:N}=C;n.removePreviousTill(g,k=>document.body.contains(k.data.trigger)),w.disconnect(),d&&d.focus({preventScroll:N||!Ho()}),e&&(e(),t&&t.release(),e=null,t=null);const S=n.tailId&&n.get(n.tailId);S&&Zt(S.data.root,S.data.options)},x=C=>{const N=C.key,S=N===Rs,k=S&&!C.shiftKey,$=S&&C.shiftKey,A=b&&N===Ln,M=b&&N===Pn,q=$&&_||A,O=k&&_||M,R=Kt()===d,L=Uo({root:o,target:q?"prev":"next",extraElement:a?d:void 0,mode:s});if(S&&b||u&&S&&L.overflow){$&&!R&&C.preventDefault(),y(),l==null||l();return}!q&&!O||(C.preventDefault(),L.el&&Xt(L.el,s))};if(e&&e(),m&&(t=Js(o)),w.observe(o,{childList:!0,subtree:!0}),!v.length)return null;document.addEventListener("keydown",x),e=()=>document.removeEventListener("keydown",x);const j=n.tailId&&n.get(n.tailId);return(!j||o!==j.data.root)&&(g=n.add({root:o,trigger:d,options:r}),Xt(v[0],s)),y}})(),Zs=100,Qs=150;let gt={},We=null;const Yo=e=>{gt[e]&&(e===We&&(We=gt[e].parentId),delete gt[e],We===null&&(gt={}))},ei=(e,t,n)=>{var s;const o=We?gt[We]:void 0;!((n==null?void 0:n.current)&&o&&((s=o.contentRef.current)==null?void 0:s.contains(n.current)))&&n&&We&&Yo(We),gt[e]={parentId:We,triggerRef:n,contentRef:t},We=e},Go=(e=!1,t,n)=>{const o=Pe(),r=c.useCallback(()=>We===o,[o]);return c.useEffect(()=>{e?ei(o,t,n):Yo(o)},[e,o,t,n]),r},ae=typeof window!="undefined"?c.useLayoutEffect:c.useEffect,vt="+",Ve={},Wn=[],Ko=e=>e===" "?e:e.replace(/\s/g,"").toLowerCase(),Hn=e=>Ko(e).split(vt).sort().join(vt),Xo=e=>{if(e.key)return e.altKey&&e.key!=="Alt"?e.code.toLowerCase().replace(/key|digit|numpad/,""):e.key.toLowerCase()},ti=e=>{const t=[],n=e.join(vt),r=Hn(n).split(vt),s=(l,a)=>{a.forEach((d,m)=>{const u=l?`${l}+${d}`:d;t.push(u),s(u,a.slice(m+1))})};return s("",r),t},ni=(e,t)=>{const n=Object.keys(e);n.length&&ti(n).forEach(o=>{t(o)})},Rn=(e,t)=>{Object.keys(e).forEach(n=>{n.split(",").forEach(o=>{const r=e[n];r&&t(Hn(o),r)})})};class oi{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(t,n)=>{Rn(t,(o,r)=>{r&&(this.hotkeyMap[o]||(this.hotkeyMap[o]={data:new Set,used:!1}),this.hotkeyMap[o].data.add({callback:r,ref:n}))})},this.unbindHotkeys=t=>{Rn(t,(n,o)=>{var r,s;o&&((r=this.hotkeyMap[n])==null||r.data.forEach(l=>{l.callback===o&&this.hotkeyMap[n].data.delete(l)}),(s=this.hotkeyMap[n])!=null&&s.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(t,n)=>{ni(t,o=>{const r=this.hotkeyMap[o];!r||r.used||r!=null&&r.data.size&&r.data.forEach(s=>{var l;(l=s.ref)!=null&&l.current&&!(n.target===s.ref.current||s.ref.current.contains(n.target))||(s.callback(t[o]),this.hotkeyMap[o].used=!0)})})},this.handleKeyUp=t=>{const n=Hn(t.key);Rn(this.hotkeyMap,(o,r)=>{o.split(vt).includes(n)&&(r.used=!1)})}}}const Qt=new oi,Jo=c.createContext({}),ri=e=>{const{children:t}=e,[n,o]=c.useState(0),[r,s]=c.useState(0),l=c.useCallback(_=>{if(_.repeat||r===0)return;const b=Xo(_);b&&(Ve[b]=_,(b==="meta"||b==="control")&&(Ve.mod=_),o(Object.keys(Ve).length),b==="meta"&&Wn.push(...Object.keys(Ve)),Ve.Meta&&Wn.push(b))},[r]),a=c.useCallback(_=>{if(r===0)return;const b=Xo(_);b&&(delete Ve[b],(b==="meta"||b==="control")&&delete Ve.mod,b==="meta"&&Wn.forEach(v=>{delete Ve[v]}),o(Object.keys(Ve).length))},[r]),d=_=>!Ko(_).split(vt).some(v=>!Ve[v]),m=c.useCallback((_,b)=>(s(v=>v+1),Qt.bindHotkeys(_,b),()=>{s(v=>v-1),Qt.unbindHotkeys(_)}),[]),u=c.useCallback(_=>{_.key&&(l(_),Qt.handleKeyDown(Ve,_))},[l]),f=c.useCallback(_=>{_.key&&(a(_),Qt.handleKeyUp(_))},[a]);return c.useEffect(()=>(window.addEventListener("keydown",u),window.addEventListener("keyup",f),()=>{window.removeEventListener("keydown",u),window.removeEventListener("keyup",f)}),[u,f]),i.jsx(Jo.Provider,{value:{addHotkeys:m,isPressed:d},children:t})},si=()=>c.useContext(Jo),nt=(e,t=[],n)=>{const{addHotkeys:o,isPressed:r}=si(),s=c.useRef(null),l=(n==null?void 0:n.ref)||s;return c.useEffect(()=>{const a=o(e,l);return()=>a==null?void 0:a()},[o,Object.keys(e).join(","),...t]),{ref:l,checkHotkeyState:r}},Un=c.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),ii=e=>{const t=c.useState(e||!1),[n,o]=t;return ae(()=>{const r=new MutationObserver(s=>{s.forEach(l=>{if(l.attributeName!=="dir")return;const a=l.target.dir==="rtl";n!==a&&o(a)})});return r.observe(document.documentElement,{attributes:!0}),()=>r.disconnect()},[n]),ae(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),t},ot=()=>c.useContext(Un).rtl,Yn=e=>{const t=e&&window.getComputedStyle(e),n=t==null?void 0:t.overflowY,o=t==null?void 0:t.position,r=n==null?void 0:n.includes("scroll"),s=o==="fixed";return e===document.body||!e?document.body:r&&e.scrollHeight>e.clientHeight||s?e:Yn(e.parentElement)},Gn=()=>{document.body.style.userSelect="none"},Kn=()=>{document.body.style.userSelect=""},Zo=16,en=["top-start","top","top-end"],tn=["bottom-start","bottom","bottom-end"],nn=["start","start-bottom","start-top"],on=["end","end-bottom","end-top"],li={top:[...en,...tn,...on,...nn],bottom:[...tn,...en,...on,...nn],start:[...nn,...on,...en,...tn],end:[...on,...nn,...en,...tn]},ai=e=>e.includes("start")?e.replace("start","end"):e.includes("end")?e.replace("end","start"):e,Qo=(e,t)=>Math.floor(e/2-t/2),ci=e=>{const n=["top","bottom","start","end"].find(o=>e.startsWith(o))||"bottom";return li[n]},Xn=e=>{const t=document.documentElement,n=t.scrollLeft,o=n+t.clientWidth,r=t.scrollTop,s=r+t.clientHeight;return e.left>=n&&e.left+e.width<=o&&e.top>=r&&e.top+e.height<=s},er=(e,t,n,o)=>{const{position:r,rtl:s,width:l}=o;let a=0,d=0,m=r;switch(s&&(m=ai(m)),(l==="full"||l==="trigger")&&(m=m.includes("top")?"top":"bottom"),m){case"bottom":case"top":a=Qo(e.width,t.width)+e.left;break;case"start":case"start-top":case"start-bottom":a=e.left-t.width;break;case"end":case"end-top":case"end-bottom":a=e.right;break;case"top-start":case"bottom-start":a=e.left;break;case"top-end":case"bottom-end":a=e.right-t.width;break}switch(m){case"top":case"top-start":case"top-end":d=e.top-t.height;break;case"bottom":case"bottom-start":case"bottom-end":d=e.bottom;break;case"start":case"end":d=Qo(e.height,t.height)+e.top;break;case"start-top":case"end-top":d=e.top;break;case"start-bottom":case"end-bottom":d=e.bottom-t.height;break}if(d===void 0||a===void 0)throw Error(`[Reshaped, flyout]: ${m} position is not valid`);d=Math.round(d+(window.scrollY||0)-n.top),a=Math.round(a+(window.scrollX||0)-n.left);let u=Math.ceil(t.width);const f=Math.ceil(t.height);return l==="full"?(a=Zo,u=window.innerWidth-Zo*2):l==="trigger"&&(u=e.width),{styles:{left:a,top:d,width:u,height:f},position:m}},tr={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},rn={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},di=(e,t,n)=>{const{position:o,forcePosition:r,width:s}=n,l=t.cloneNode(!0),a=e.getBoundingClientRect();l.style="",Object.keys(rn).forEach(b=>{const v=rn[b];l.style[b]=v.toString()}),s&&(s==="trigger"?l.style.width=`${a.width}px`:s!=="full"&&(l.style.width=s)),document.body.appendChild(l);const d=l.getBoundingClientRect(),m=Yn(e),u=m.getBoundingClientRect(),f={top:u.top+document.documentElement.scrollTop-m.scrollTop,left:u.left+document.documentElement.scrollLeft-m.scrollLeft};let _=er(a,d,f,n);if(!Xn(_.styles)&&!r){const b=ci(o),v=b.filter(w=>w==="top"||w==="bottom"),g=(w,y={})=>{const{fullWidth:x}=y;w.some(j=>{const C=z(p({},n),{width:x?"full":n.width,position:j}),N=er(a,d,f,C);return Xn(N.styles)?(_=N,!0):!1})};g(b),Xn(_.styles)||g(v,{fullWidth:!0})}return l.parentNode.removeChild(l),_},ui=(e,t)=>{switch(t.type){case"render":return z(p({},e),{status:"rendered",styles:p({pointerEvents:"none"},rn)});case"position":return z(p({},e),{status:e.status==="visible"?"visible":"positioned",position:t.payload.position,styles:p(p({},tr),t.payload.styles)});case"show":return z(p({},e),{status:"visible"});case"hide":return z(p({},e),{status:e.status==="idle"?"idle":"hidden"});case"remove":return z(p({},e),{status:"idle",styles:rn});default:throw new Error("Invalid reducer type")}},_i=(e,t,n)=>{const{position:o="bottom",forcePosition:r,width:s}=n,[l]=ot(),[a,d]=c.useReducer(ui,{position:o,styles:tr,status:"idle"}),m=c.useCallback(()=>{d({type:"render"})},[]),u=c.useCallback(()=>{d({type:"show"})},[]),f=c.useCallback(()=>{d({type:"hide"})},[]),_=c.useCallback(()=>{d({type:"remove"})},[]),b=c.useCallback(()=>{if(!e.current||!t.current)return;const v=di(e.current,t.current,{width:s,position:o,forcePosition:r,rtl:l});d({type:"position",payload:v})},[e,t,o,l,r,s]);return c.useEffect(()=>{a.status==="rendered"&&b(),a.status==="positioned"&&Ye(()=>u())},[a.status,b,u]),c.useMemo(()=>({position:a.position,styles:a.styles,status:a.status,updatePosition:b,render:m,hide:f,remove:_}),[m,b,f,_,a.position,a.styles,a.status])},mi=(e,t)=>{c.useEffect(()=>{if(!t)return;const n=o=>{let r=!1;e.forEach(s=>{(!s.current||s.current===o.target||s.current.contains(o.target))&&(r=!0)}),!r&&t(o)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[t,...e])},nr=c.createContext({}),sn=()=>c.useContext(nr),fi=nr.Provider,or=e=>{const{triggerType:t="click",onOpen:n,onClose:o,children:r,forcePosition:s,trapFocusMode:l,width:a,disableHideAnimation:d,contentGap:m,contentClassName:u,contentAttributes:f,position:_,active:b,id:v,instanceRef:g}=e,[w]=ot(),y=c.useRef(null),x=c.useRef(null),j=Pe(v),C=c.useRef(),N=c.useRef(null),S=c.useRef(!1),k=c.useRef(!1),$=c.useRef(!0),A=_i(y,x,{width:a,position:_,defaultActive:b,forcePosition:s}),M=sn(),{status:q,updatePosition:O,render:R,hide:L,remove:U}=A,W=Go(t!=="hover"&&q!=="idle",x,y),H=c.useCallback(()=>{C.current&&clearTimeout(C.current)},[C]),B=c.useCallback(()=>{!S.current&&q==="idle"&&(n==null||n())},[q]),Q=c.useCallback(F=>{var me;!(t==="click"&&!W())&&q!=="idle"&&(o==null||o(),F!=null&&F.closeParents&&((me=M==null?void 0:M.handleClose)==null||me.call(M)))},[q,W,t]),_e=c.useCallback(F=>{var le;(le=x.current)!=null&&le.contains(F.relatedTarget)||t==="hover"&&l==="content-menu"||k.current||Q()},[Q,t,l]),ce=c.useCallback(()=>{B()},[B]),Ce=c.useCallback(()=>{H(),C.current=setTimeout(B,Zs)},[H,C,B]),ke=c.useCallback(()=>{H(),C.current=setTimeout(()=>Q(),Qs)},[H,C,Q]),Me=c.useCallback(()=>{q==="idle"?B():Q()},[q,B,Q]),ee=()=>k.current=!0,J=()=>k.current=!1;ae(()=>{if(b){R();return}Ss()&&!d?L():U()},[b,R,L,d]);const G=c.useCallback(F=>{x.current!==F.currentTarget||F.propertyName!=="transform"||q==="hidden"&&U()},[U,q]);return ae(()=>{q!=="visible"||!x.current||(N.current=Zt(x.current,{mode:l,includeTrigger:t==="hover"&&l==="content-menu",onNavigateOutside:()=>{N.current=null,Q()}}))},[q,t,Q,l]),c.useEffect(()=>{!d&&q!=="hidden"||d&&q!=="idle"||N.current&&(t==="hover"&&(S.current=!0,setTimeout(()=>{S.current=!1},100)),N.current({withoutFocusReturn:!$.current}),N.current=null,$.current=!0)},[q,t,d]),c.useEffect(()=>()=>{N.current&&N.current(),N.current=null},[]),c.useEffect(()=>{const F=$o(O,10);return window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)},[O]),c.useEffect(()=>{O()},[w,O]),c.useImperativeHandle(g,()=>({open:B,close:Q}),[B,Q]),nt({Escape:()=>Q()},[Q]),mi([x,y],()=>{$.current=!1,Q()}),i.jsx(fi,{value:{id:j,flyout:A,width:a,triggerElRef:y,flyoutElRef:x,handleClose:Q,handleOpen:B,handleFocus:ce,handleBlur:_e,handleMouseEnter:Ce,handleMouseLeave:ke,handleTransitionEnd:G,handleClick:Me,handleContentMouseDown:ee,handleContentMouseUp:J,triggerType:t,trapFocusMode:l,contentGap:m,contentClassName:u,contentAttributes:f},children:r})},hi=e=>{const{defaultActive:t,onClose:n,onOpen:o}=e,[r,s]=c.useState(t||!1),l=()=>{s(!1),n&&n()},a=()=>{s(!0),o&&o()};return i.jsx(or,z(p({},e),{defaultActive:void 0,active:r,onClose:l,onOpen:a}))},bi=e=>{const{children:t}=e,{id:n,triggerElRef:o,triggerType:r,flyout:s,handleFocus:l,handleBlur:a,handleMouseEnter:d,handleMouseLeave:m,handleClick:u,trapFocusMode:f}=sn();let _={onBlur:a,ref:o};return(r==="click"||f==="action-menu")&&(_.onClick=u),r==="hover"&&(_.onMouseEnter=d,_.onMouseLeave=m),(r==="hover"&&f!=="action-menu"||r==="focus")&&(_.onFocus=l,_["aria-describedby"]=n),(r==="click"||r==="focus"||f==="action-menu")&&(f==="dialog"?_["aria-haspopup"]="dialog":f==="selection-menu"?(_["aria-haspopup"]="listbox",_["aria-autocomplete"]="list"):_["aria-haspopup"]="menu",_["aria-expanded"]=s.status!=="idle",_["aria-controls"]=s.status!=="idle"?n:void 0),i.jsx(i.Fragment,{children:t(_)})},rr=c.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),Jn=c.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),gi=()=>{const{mode:e}=c.useContext(Jn);return e},sr=()=>{const{colorMode:e,theme:t,setTheme:n}=c.useContext(rr),{mode:o,setMode:r,invertMode:s}=c.useContext(Jn);return c.useMemo(()=>({theme:t,setTheme:n,colorMode:e||o,setColorMode:r,invertColorMode:s}),[e,o,r,s,t,n])},vi={root:"_root_ve3fz_1"},pt=e=>{const{name:t,defaultName:n,colorMode:o,children:r,className:s}=e,[l,a]=c.useState(!1),[d,m]=c.useState(n),u=gi(),f=sr(),_=!f.theme,b=t||d||f.theme,v=_?u:f.colorMode,w=o==="inverted"?v==="light"?"dark":"light":o||v,y=I(vi.root,s),x=j=>{m(j)};return ae(()=>{a(!0)},[]),ae(()=>{if(!document||!_)return;const j=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",b),j||document.documentElement.setAttribute("data-rs-color-mode",w),()=>{document.documentElement.removeAttribute("data-rs-theme"),j||document.documentElement.removeAttribute("data-rs-color-mode")}},[b,w,_]),i.jsx(rr.Provider,{value:{theme:b,colorMode:w,setTheme:x},children:i.jsx("div",{className:y,"data-rs-theme":_?void 0:b,"data-rs-color-mode":_||!o&&!l?void 0:w,children:r})})},pi=e=>{const{defaultMode:t,children:n}=e,[o,r]=c.useState(t||"light"),s=c.useCallback(a=>{document.documentElement.setAttribute("data-rs-color-mode",a),r(d=>(d!==a&&Ts(),a))},[]);ae(()=>{Ye(()=>{Ms()})},[o]),ae(()=>{const a=document.documentElement.getAttribute("data-rs-color-mode");a&&s(a)},[]);const l=c.useMemo(()=>({mode:o,setMode:s,invertMode:()=>{s(o==="light"?"dark":"light")}}),[o,s]);return i.jsx(Jn.Provider,{value:l,children:n})},ir=c.createContext({}),xi=()=>c.useContext(ir),lr=e=>{const{children:t,targetRef:n}=e,o=xi(),r=n||o.scopeRef;return ge.createPortal(i.jsx(pt,{children:t}),(r==null?void 0:r.current)||document.body)};function yi(e){const{children:t}=e,n=c.useRef(null);return i.jsx(ir.Provider,{value:{scopeRef:n},children:t(n)})}lr.Scope=yi;const Zn=lr,xt={content:"_content_12uuh_1",inner:"_inner_12uuh_9","--width-trigger":"_--width-trigger_12uuh_15","--position-top":"_--position-top_12uuh_19","--position-top-end":"_--position-top-end_12uuh_20","--position-top-start":"_--position-top-start_12uuh_21","--position-bottom":"_--position-bottom_12uuh_27","--position-bottom-end":"_--position-bottom-end_12uuh_28","--position-bottom-start":"_--position-bottom-start_12uuh_29","--position-start":"_--position-start_12uuh_45","--position-start-top":"_--position-start-top_12uuh_46","--position-start-bottom":"_--position-start-bottom_12uuh_47","--position-end":"_--position-end_12uuh_53","--position-end-top":"_--position-end-top_12uuh_54","--position-end-bottom":"_--position-end-bottom_12uuh_55","--visible":"_--visible_12uuh_71","--animated":"_--animated_12uuh_76"},wi=e=>{const{children:t,className:n,attributes:o}=e,{flyout:r,id:s,flyoutElRef:l,triggerElRef:a,handleTransitionEnd:d,triggerType:m,handleMouseEnter:u,handleMouseLeave:f,handleContentMouseDown:_,handleContentMouseUp:b,contentGap:v,contentClassName:g,contentAttributes:w,trapFocusMode:y,width:x}=sn(),{styles:j,status:C,position:N}=r,[S,k]=c.useState(!1);if(ae(()=>{k(!0)},[]),C==="idle"||!S)return null;const $=I(xt.content,C==="visible"&&xt["--visible"],["visible","hidden"].includes(C)&&xt["--animated"],N&&xt[`--position-${N}`],x==="trigger"&&xt["--width-trigger"]),A=I(xt.inner,n,g);let M;m==="hover"?M="tooltip":y==="dialog"?M="dialog":y==="selection-menu"?M="listbox":y==="action-menu"&&(M="menu");const q=i.jsx("div",{className:$,style:z(p({},j),{"--rs-flyout-gap":v}),ref:l,onTransitionEnd:d,onMouseEnter:m==="hover"?u:void 0,onMouseLeave:m==="hover"?f:void 0,onMouseDown:_,onTouchStart:_,onMouseUp:b,onTouchEnd:b,children:i.jsx("div",z(p({role:M},o),{id:s,"aria-modal":m==="click",style:w==null?void 0:w.style,className:A,children:t}))}),O=Yn(a.current);return i.jsx(Zn,{targetRef:O===document.body?void 0:{current:O},children:q})},Qn=e=>{const{active:t}=e;return typeof t=="boolean"?i.jsx(or,p({},e)):i.jsx(hi,p({},e))};Qn.Trigger=bi,Qn.Content=wi;const yt=Qn,eo={content:"_content_kjjlu_1","content--variant-elevated":"_content--variant-elevated_kjjlu_5","content--has-width":"_content--has-width_kjjlu_15"},ji={root:"_root_e7w6q_1"},to=e=>{if(!e)return null;const t=se("--rs-p",e);return{classNames:ji.root,variables:t}},no=e=>{var j;const{id:t,forcePosition:n,onOpen:o,onClose:r,active:s,defaultActive:l,children:a,width:d,contentGap:m,variant:u="elevated",triggerType:f="click",position:_="bottom",disableHideAnimation:b,instanceRef:v}=e,g=(j=e.padding)!=null?j:u==="headless"?0:4,w=e.trapFocusMode||(f==="hover"?"content-menu":void 0),y=to(g),x=I(eo.content,!!d&&eo["content--has-width"],u&&eo[`content--variant-${u}`],y==null?void 0:y.classNames);return i.jsx(yt,{id:t,instanceRef:v,position:_,forcePosition:n,onOpen:o,onClose:r,trapFocusMode:w,triggerType:f,active:s,defaultActive:l,width:d,disableHideAnimation:b,contentGap:m,contentClassName:x,contentAttributes:{style:p({},y==null?void 0:y.variables)},children:a})};no.Trigger=yt.Trigger,no.Content=yt.Content;const ln=no,Ke={root:"_root_1dqcq_1",icon:"_icon_1dqcq_14",content:"_content_1dqcq_19","--rounded-corners":"_--rounded-corners_1dqcq_24","--size-small":"_--size-small_1dqcq_1","--size-medium":"_--size-medium_1dqcq_1","--size-large":"_--size-large_1dqcq_1","--color-neutral":"_--color-neutral_1dqcq_63","--selected":"_--selected_1dqcq_67","--color-critical":"_--color-critical_1dqcq_73","--color-primary":"_--color-primary_1dqcq_83","--disabled":"_--disabled_1dqcq_104",aligner:"_aligner_1dqcq_125","--rounded-corners-true--m":"_--rounded-corners-true--m_1dqcq_1","--rounded-corners-false--m":"_--rounded-corners-false--m_1dqcq_1","--size-small--m":"_--size-small--m_1dqcq_1","--size-medium--m":"_--size-medium--m_1dqcq_1","--size-large--m":"_--size-large--m_1dqcq_1","--rounded-corners-true--l":"_--rounded-corners-true--l_1dqcq_1","--rounded-corners-false--l":"_--rounded-corners-false--l_1dqcq_1","--size-small--l":"_--size-small--l_1dqcq_1","--size-medium--l":"_--size-medium--l_1dqcq_1","--size-large--l":"_--size-large--l_1dqcq_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_1dqcq_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_1dqcq_1","--size-small--xl":"_--size-small--xl_1dqcq_1","--size-medium--xl":"_--size-medium--xl_1dqcq_1","--size-large--xl":"_--size-large--xl_1dqcq_1"},Ci=e=>i.jsx(Yt,z(p({},e),{side:e.side||"inline",className:[Ke.aligner,e.className]})),ar=c.forwardRef((e,t)=>{const{icon:n,startSlot:o,endSlot:r,children:s,color:l="primary",selected:a,disabled:d,onClick:m,href:u,size:f="medium",roundedCorners:_,as:b,className:v,attributes:g}=e,w=I(Ke.root,v,X(Ke,"--size",f),X(Ke,"--rounded-corners",_),l&&Ke[`--color-${l}`],a&&Ke["--selected"],d&&Ke["--disabled"]),y=Le(f,j=>j==="large"?3:2),x=Le(f,j=>j==="large"?5:4);return i.jsx(De,{disabled:d,className:w,attributes:z(p({},g),{"data-rs-aligner-target":!0}),onClick:m,href:u,ref:t,as:b,children:i.jsxs(P,{direction:"row",gap:y,align:"center",children:[n&&i.jsx(ue,{svg:n,className:Ke.icon,size:x}),!n&&o,s&&i.jsx(P.Item,{grow:!0,className:Ke.content,children:s}),r]})})});ar.Aligner=Ci;const cr=ar,wt=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"9 18 15 12 9 6"})}),an={menu:"_menu_tat3a_1",section:"_section_tat3a_5",item:"_item_tat3a_11",arrow:"_arrow_tat3a_15"},oo=c.createContext(null),Xe=e=>{const l=e,{children:t,position:n="bottom-start",triggerType:o="click",trapFocusMode:r="action-menu"}=l,s=Se(l,["children","position","triggerType","trapFocusMode"]);return i.jsx(ln,z(p({},s),{position:n,padding:0,trapFocusMode:r,triggerType:o,children:t}))},ki=e=>{const{children:t,attributes:n,className:o}=e,r=c.useContext(oo),[s]=ot(),{ref:l}=nt({[s?Fn:Vn]:()=>{var d;(d=r==null?void 0:r.current)==null||d.close()},[Hs]:()=>{const d=Kt();d==null||d.click()}},[r==null?void 0:r.current]),a=I(an.menu,o);return i.jsx(ln.Content,{className:a,attributes:z(p({},n),{ref:l}),children:t})},$i=e=>{const{children:t}=e;return i.jsx("div",{className:an.section,role:"group",children:t})},dr=e=>{const{onClick:t}=e,{handleClose:n}=sn(),o=r=>{n&&n({closeParents:!0}),t&&t(r)};return i.jsx(cr,z(p({},e),{roundedCorners:!0,className:an.item,attributes:p({role:"menuitem"},e.attributes),onClick:o}))},zi=e=>{const{children:t}=e,n=c.useRef();return i.jsx(oo.Provider,{value:n,children:i.jsx(Xe,{triggerType:"hover",position:"end-top",contentGap:.5,instanceRef:n,children:t})})},Ni=e=>{const a=e,{children:t,attributes:n}=a,o=Se(a,["children","attributes"]),r=c.useContext(oo),[s]=ot(),{ref:l}=nt({[s?Vn:Fn]:()=>{var d;(d=r==null?void 0:r.current)==null||d.open()}},[],{ref:n==null?void 0:n.ref});return i.jsx(dr,z(p({},o),{attributes:z(p({},n),{ref:l}),endSlot:i.jsx(ue,{autoWidth:!0,svg:wt,className:an.arrow}),children:t}))},Ei=e=>{const{children:t}=e;return i.jsx(Xe.Trigger,{children:n=>i.jsx(Ni,{attributes:n,children:t})})};Xe.Trigger=ln.Trigger,Xe.Content=ki,Xe.Section=$i,Xe.Item=dr,Xe.SubMenu=zi,Xe.SubTrigger=Ei;const qt=Xe,ur=c.createContext({}),_r=e=>{const y=e,{children:t,onChange:n,onItemSelect:o,name:r}=y,s=Se(y,["children","onChange","onItemSelect","name"]),l=c.useRef(null),[a,d]=c.useState(!1),[m,u]=c.useState(!1),f=!!c.Children.toArray(t).filter(Boolean).length,_=c.useCallback(()=>d(!0),[]),b=()=>d(!1);nt({[`${Ln},${Pn}`]:()=>_()},[_],{ref:l});const v=x=>{n==null||n(x),u(!1),_()},g=x=>{n==null||n({value:x.value,name:r}),o==null||o({value:x.value}),u(!0)},w=x=>{var j;requestAnimationFrame(()=>{m&&(d(!1),u(!1))}),(j=s.onFocus)==null||j.call(s,x)};return i.jsx(ur.Provider,{value:{onItemClick:g},children:i.jsxs(qt,{position:"bottom",width:"trigger",triggerType:"focus",trapFocusMode:"selection-menu",active:!m&&f&&a,onClose:b,onOpen:_,disableHideAnimation:!0,children:[i.jsx(qt.Trigger,{children:C=>{var N=C,{ref:x}=N,j=Se(N,["ref"]);return i.jsx(Wo,z(p({},s),{name:r,onChange:v,attributes:z(p({},s.attributes),{ref:x}),inputAttributes:z(p({},s.inputAttributes),{onFocus:S=>{var k;(k=j.onFocus)==null||k.call(j),w(S)},ref:l,role:"combobox"})}))}}),i.jsx(qt.Content,{children:t})]})})},Ti=e=>{const l=e,{value:t,onClick:n}=l,o=Se(l,["value","onClick"]),{onItemClick:r}=c.useContext(ur),s=a=>{n==null||n(a),r({value:t})};return i.jsx(qt.Item,z(p({},o),{attributes:z(p({},o.attributes),{role:"option"}),onClick:s}))};_r.Item=Ti;const Mi=_r,cn={root:"_root_12o47_1",img:"_img_12o47_13","--variant-faded":"_--variant-faded_12o47_20","--color-neutral":"_--color-neutral_12o47_21","--color-critical":"_--color-critical_12o47_25","--color-positive":"_--color-positive_12o47_29","--color-warning":"_--color-warning_12o47_33","--color-primary":"_--color-primary_12o47_37"},Si=e=>{const{color:t="neutral",variant:n,src:o,size:r=12,squared:s,initials:l,icon:a,alt:d,className:m,attributes:u}=e,f=s?Le(r,g=>g>=24?"large":g>=12?"medium":"small"):"circular",_=bt(r),b=I(cn.root,m,_==null?void 0:_.classNames,t&&cn[`--color-${t}`],n&&cn[`--variant-${n}`]),v=()=>o?i.jsx("img",{role:l?void 0:"presentation",src:o,alt:d,className:cn.img}):a?i.jsx(ue,{svg:a,size:Le(r,g=>Math.ceil(g*.4))}):l;return i.jsx(P,{borderRadius:f,attributes:z(p({},u),{style:p({},_==null?void 0:_.variables)}),backgroundColor:n==="faded"?`${t}-${n}`:t,className:b,children:v()})},mr=()=>i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),i.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),Oe={root:"_root_1ltqe_1",dismiss:"_dismiss_1ltqe_21","--actionable":"_--actionable_1ltqe_26","--variant-faded":"_--variant-faded_1ltqe_1","--variant-outline":"_--variant-outline_1ltqe_1","--color-positive":"_--color-positive_1ltqe_47","--color-critical":"_--color-critical_1ltqe_67","--color-warning":"_--color-warning_1ltqe_87","--color-primary":"_--color-primary_1ltqe_107","--size-small":"_--size-small_1ltqe_1","--size-medium":"_--size-medium_1ltqe_1","--size-large":"_--size-large_1ltqe_1","--rounded":"_--rounded_1ltqe_153","--hidden":"_--hidden_1ltqe_165",container:"_container_1ltqe_172","--container-overlap":"_--container-overlap_1ltqe_198","--container-position-top-end":"_--container-position-top-end_1ltqe_202","--container-position-bottom-end":"_--container-position-bottom-end_1ltqe_214"},Di=e=>{const{children:t,position:n="top-end",overlap:o,className:r,attributes:s}=e,l=I(Oe.container,r,o&&Oe["--container-overlap"],n&&Oe[`--container-position-${n}`]);return i.jsx("div",z(p({},s),{className:l,children:t}))},fr=e=>{const{children:t,color:n,rounded:o,size:r="medium",icon:s,endIcon:l,variant:a,hidden:d,href:m,onClick:u,onDismiss:f,dismissAriaLabel:_,className:b,attributes:v}=e,g=!!(u||m),w=r==="large"?4:3.5,y=I(Oe.root,b,o&&Oe["--rounded"],d&&Oe["--hidden"],r&&Oe[`--size-${r}`],n&&Oe[`--color-${n}`],a&&Oe[`--variant-${a}`],g&&Oe["--actionable"]);return i.jsxs(De,{onClick:u,href:m,className:y,attributes:v,children:[s&&i.jsx(ue,{svg:s,autoWidth:!0,size:w}),t&&i.jsx(ne,{variant:r==="large"?"body-3":"caption-1",weight:"medium",attributes:{"aria-hidden":d?"true":void 0},children:t}),l&&i.jsx(ue,{svg:l,autoWidth:!0,size:w}),f&&i.jsx(De,{onClick:f,className:Oe.dismiss,as:"span",attributes:{"aria-label":_},children:i.jsx(ue,{svg:mr,size:w})})]})};fr.Container=Di;const Ii=fr,dn={root:"_root_1ty16_15","rs-reshaped-loader":"_rs-reshaped-loader_1ty16_1",inner:"_inner_1ty16_44","--color-inherit":"_--color-inherit_1ty16_63","--color-primary":"_--color-primary_1ty16_67","--color-positive":"_--color-positive_1ty16_71","--color-critical":"_--color-critical_1ty16_75","--size-small":"_--size-small_1ty16_1","--size-medium":"_--size-medium_1ty16_1","--size-small--m":"_--size-small--m_1ty16_1","--size-medium--m":"_--size-medium--m_1ty16_1","--size-small--l":"_--size-small--l_1ty16_1","--size-medium--l":"_--size-medium--l_1ty16_1","--size-small--xl":"_--size-small--xl_1ty16_1","--size-medium--xl":"_--size-medium--xl_1ty16_1"},hr=e=>{const{size:t="small",color:n="primary",className:o,attributes:r}=e,s=r==null?void 0:r["aria-label"],l=I(dn.root,o,X(dn,"--size",t),n&&dn[`--color-${n}`]);return i.jsx("span",z(p({},r),{role:"progressbar","aria-live":s?"assertive":void 0,"aria-label":s,className:l,children:i.jsx("span",{className:dn.inner})}))},be={root:"_root_qjphi_1",loader:"_loader_qjphi_37",icon:"_icon_qjphi_45","--icon-position-end":"_--icon-position-end_qjphi_49",text:"_text_qjphi_60","--loading":"_--loading_qjphi_72","--elevated":"_--elevated_qjphi_89","--icon-only":"_--icon-only_qjphi_93","--rounded":"_--rounded_qjphi_99","--size-small":"_--size-small_qjphi_1","--size-medium":"_--size-medium_qjphi_1","--size-large":"_--size-large_qjphi_1","--size-xlarge":"_--size-xlarge_qjphi_1","--full-width":"_--full-width_qjphi_141","--variant-solid":"_--variant-solid_qjphi_155","--color-black":"_--color-black_qjphi_155","--color-white":"_--color-white_qjphi_156","--variant-faded":"_--variant-faded_qjphi_157","--color-neutral":"_--color-neutral_qjphi_157","--color-primary":"_--color-primary_qjphi_158","--color-critical":"_--color-critical_qjphi_159","--color-positive":"_--color-positive_qjphi_160","--color-inherit":"_--color-inherit_qjphi_161","--variant-outline":"_--variant-outline_qjphi_162","--variant-ghost":"_--variant-ghost_qjphi_163","--highlighted":"_--highlighted_qjphi_182","--disabled":"_--disabled_qjphi_535",group:"_group_qjphi_567",aligner:"_aligner_qjphi_628","--size-small--m":"_--size-small--m_qjphi_1","--size-medium--m":"_--size-medium--m_qjphi_1","--size-large--m":"_--size-large--m_qjphi_1","--size-xlarge--m":"_--size-xlarge--m_qjphi_1","--full-width-true--m":"_--full-width-true--m_qjphi_1","--full-width-false--m":"_--full-width-false--m_qjphi_1","--size-small--l":"_--size-small--l_qjphi_1","--size-medium--l":"_--size-medium--l_qjphi_1","--size-large--l":"_--size-large--l_qjphi_1","--size-xlarge--l":"_--size-xlarge--l_qjphi_1","--full-width-true--l":"_--full-width-true--l_qjphi_1","--full-width-false--l":"_--full-width-false--l_qjphi_1","--size-small--xl":"_--size-small--xl_qjphi_1","--size-medium--xl":"_--size-medium--xl_qjphi_1","--size-large--xl":"_--size-large--xl_qjphi_1","--size-xlarge--xl":"_--size-xlarge--xl_qjphi_1","--full-width-true--xl":"_--full-width-true--xl_qjphi_1","--full-width-false--xl":"_--full-width-false--xl_qjphi_1"},Ai=e=>{const{children:t,className:n,attributes:o}=e,r=I(be.group,n);return i.jsx("div",z(p({},o),{className:r,role:"group",children:t}))},qi=e=>i.jsx(Yt,z(p({},e),{side:e.side||e.position,className:[be.aligner,e.className]})),ro=c.forwardRef((e,t)=>{const{variant:n="solid",color:o="neutral",elevated:r,highlighted:s,fullWidth:l,loading:a,disabled:d,type:m,href:u,size:f="medium",children:_,rounded:b,onClick:v,icon:g,endIcon:w,as:y,className:x,attributes:j}=e,C=(g||w)&&!_,N=I(be.root,x,o&&be[`--color-${o}`],n&&be[`--variant-${n}`],X(be,"--size",f),X(be,"--full-width",l),r&&n!=="ghost"&&be["--elevated"],b&&be["--rounded"],d&&be["--disabled"],a&&be["--loading"],s&&be["--highlighted"],C&&be["--icon-only"]),S=k=>{if(!(k==="start"&&g||k==="end"&&w))return null;const q=I(be.icon,k==="end"&&be["--icon-position-end"]),O=Le(f,R=>R==="large"?5:R==="xlarge"?6:4);return i.jsx(ue,{className:q,svg:k==="start"?g:w,size:O,autoWidth:!0})};return i.jsxs(De,{disabled:d||a,className:N,attributes:z(p({},j),{"data-rs-aligner-target":!0}),type:m,onClick:v,href:u,ref:t,as:y,children:[a&&i.jsx("div",{className:be.loader,children:i.jsx(hr,{size:"small",color:"inherit"})}),S("start"),_&&i.jsx("span",{className:be.text,children:_}),S("end")]})});ro.Group=Ai,ro.Aligner=qi;const ve=ro,br=()=>i.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z",fill:"currentColor"}),i.jsx("path",{d:"M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z",fill:"currentColor"}),i.jsx("path",{d:"M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z",fill:"currentColor"})]}),Li=e=>{const{children:t,separator:n,color:o,defaultVisibleItems:r,disableExpand:s,ariaLabel:l,className:a,attributes:d}=e,m=r&&r>=2?r:null,[u,f]=c.useState(!1),_=I(a),b=c.Children.count(t);let v=0;const g=()=>{f(!0)};return i.jsx("nav",z(p({},d),{"aria-label":l||(d==null?void 0:d["aria-label"]),className:_,children:i.jsx(P,{as:"ol",direction:"row",gap:2,align:"center",children:c.Children.map(t,(w,y)=>{if(!w)return null;const x=b-(m||0),j=v===0,C=v>x,N=!m||j||C||u,S=v===x;v+=1;let k=null;return N?k=w:S&&(k=s?i.jsx(ue,{svg:br,size:4}):i.jsx(ve.Aligner,{children:i.jsx(ve,{variant:"ghost",size:"small",icon:br,onClick:g})})),k===null?null:i.jsxs(P,{as:"li",gap:2,direction:"row",align:"center",children:[y>0&&(N||S)&&i.jsx(ne,{color:"neutral-faded",children:n||i.jsx(ue,{svg:wt,size:3})}),i.jsx(ne,{variant:"body-3",color:o==="primary"?"primary":"neutral-faded",children:k})]},y)})})}))},Lt={root:"_root_80rry_1","--color-primary":"_--color-primary_80rry_6","--color-critical":"_--color-critical_80rry_10","--color-positive":"_--color-positive_80rry_14","--color-inherit":"_--color-inherit_80rry_18","--variant-plain":"_--variant-plain_80rry_23","--disabled":"_--disabled_80rry_27","--variant-underline":"_--variant-underline_80rry_33","--with-icon":"_--with-icon_80rry_49"},gr=c.forwardRef((e,t)=>{const{icon:n,disabled:o,href:r,color:s="primary",variant:l="underline",className:a,children:d,attributes:m,type:u,onClick:f}=e,_=I(Lt.root,a,o&&Lt["--disabled"],l&&Lt[`--variant-${l}`],s&&Lt[`--color-${s}`],n&&Lt["--with-icon"]);return i.jsxs(De,{href:r,disabled:o,className:_,attributes:m,type:u,onClick:f,ref:t,children:[n&&i.jsx(ue,{svg:n}),d]})}),Pi=e=>{const{children:t,onClick:n,href:o,icon:r,disabled:s}=e;return!o&&!n&&!s?i.jsx(ne,{variant:"body-3",weight:"medium",color:"neutral",children:t}):i.jsx(gr,{onClick:n,href:o,icon:r,disabled:s,variant:"plain",color:"inherit",children:t})},vr=Li;vr.Item=Pi;const pr=7,xr=1,Pt=e=>{const{date:t}=e;return[t.getFullYear(),(t.getMonth()+1).toString().padStart(2,"0"),t.getDate().toString().padStart(2,"0")].join("-")},so=e=>{const{date:t,firstWeekDay:n=xr}=e,o=t.getDay();return o<n?pr-o-n:o-n},Fi=e=>{const{firstWeekDay:t=xr,renderWeekDay:n}=e,o=new Date(2021,1,t),r=[];for(let s=t;s<t+pr;s++){const l=n?n({weekDay:s,date:o}):o.toLocaleDateString("en-US",{weekday:"short"});r.push(l.slice(0,2)),o.setDate(o.getDate()+1)}return r},Vi=e=>{const{renderMonthLabel:t}=e;return new Array(12).fill(null).map((n,o)=>{const r=new Date(0,o);return t?t({month:o,date:r}):r.toLocaleString("default",{month:"short"})})},Oi=e=>{const{date:t,firstWeekDay:n}=e,o=t.getMonth(),r=t.getFullYear(),s=[],l=new Date(r,o,1),a=so({date:l,firstWeekDay:n});for(a!==0&&s.push(new Array(a).fill(null));o===l.getMonth();)(so({date:l,firstWeekDay:n})===0||!s.length)&&s.push([]),s[s.length-1].push(new Date(l)),l.setDate(l.getDate()+1);const d=so({date:l,firstWeekDay:n});return d!==0&&s[s.length-1].push(...new Array(7-d).fill(null)),s},yr=e=>(e==null?void 0:e.querySelectorAll("[data-rs-date]"))||[],io=(e,t)=>{const n=new Date(e);return n.setMonth(t),n},Bi=e=>io(e,e.getMonth()-1),wr=e=>io(e,e.getMonth()+1),jr=(e,t)=>{const n=new Date(e);return n.setFullYear(t),n},Wi=e=>jr(e,e.getFullYear()-1),Hi=e=>jr(e,e.getFullYear()+1),Ri=e=>{const{date:t,min:n,max:o}=e,r=t.getMonth(),s=t.getFullYear(),l=new Date(s,r,0),a=wr(t);return a.setDate(0),{isFirstMonth:n&&n>l,isLastMonth:o&&o<a}},Ui=e=>{const{rootRef:t,changeToNextMonth:n,changeToPreviousMonth:o,monthDate:r,verticalDelta:s,min:l,max:a}=e,d=c.useRef(0),m=c.useCallback(u=>{const{delta:f,onMonthChange:_}=u,b=document.activeElement;if(!b)return;const v=yr(t.current),g=Array.from(v),y=g.findIndex(A=>A===b)+f,x=g[y],j=b.getAttribute("data-rs-date");if(!j)return;const[C,N,S]=j==null?void 0:j.split("-").map(Number);let k;if(S?k=new Date(C,N-1,S+f):f>0?k=new Date(C,N-1+f,1):k=new Date(C,N-1+f+1,0),!(l&&k<l||a&&k>a)){if(x){x.focus();return}d.current=y<0?y:y-(g.length-1),_()}},[t,l,a]);c.useEffect(()=>{const u=d.current;if(u===0)return;const f=yr(t.current),_=u<0?f.length+u:u-1,b=f[_];b&&b.focus(),d.current=0},[r,t]),nt({[Vn]:()=>m({delta:-1,onMonthChange:o}),[Fn]:()=>m({delta:1,onMonthChange:n}),[Ln]:()=>m({delta:-s,onMonthChange:o}),[Pn]:()=>m({delta:s,onMonthChange:n})},[n,o,m,s],{ref:t})},pe={selection:"_selection_ai5jc_1",weekday:"_weekday_ai5jc_6",row:"_row_ai5jc_12",control:"_control_ai5jc_16","cell-button":"_cell-button_ai5jc_20",cell:"_cell_ai5jc_20","cell--in-range":"_cell--in-range_ai5jc_1","cell--active-start":"_cell--active-start_ai5jc_1","cell--active-end":"_cell--active-end_ai5jc_1","cell--active-single":"_cell--active-single_ai5jc_1"},Yi=e=>{const{date:t,startValue:n,endValue:o,isActiveStart:r,isActiveEnd:s,disabled:l,focusable:a,onChange:d,range:m,hoveredDate:u,onDateHover:f,onDateHoverEnd:_,renderAriaLabel:b}=e;if(!t)return i.jsx("td",{className:pe.cell,"aria-hidden":"true"});const v=n&&n<t&&(o&&o>t||u&&!o&&u>t),g=I([pe.cell,!m&&r&&pe["cell--active-single"],r&&pe["cell--active-start"],(s||!o&&r&&!(u&&n&&u>n))&&pe["cell--active-end"],v&&pe["cell--in-range"]]),w=()=>{if(!m){d==null||d({value:t});return}const j=n&&o,C=!n&&!o,N=n&&t<n,S=j||C||N,k=S?t:n,$=S?null:t;d==null||d({value:{start:k,end:$}})},y=()=>{f(t)},x=()=>{_(t)};return i.jsx("td",{className:g,role:l?"presentation":"gridcell",children:i.jsx(De,{fullWidth:!0,insetFocus:!0,className:pe["cell-button"],disabled:l,onClick:w,attributes:{role:"checkbox",tabIndex:a?0:-1,"aria-hidden":l,"aria-label":b?b({date:t}):t.toLocaleDateString("en-us",{month:"long",day:"numeric",weekday:"long"}),"aria-checked":r||s,"data-rs-date":Pt({date:t}),onMouseEnter:y,onMouseLeave:x,onFocus:y,onBlur:x},children:t.getDate()})})},Gi=e=>{const{date:t,value:n,onChange:o,min:r,max:s,range:l,firstWeekDay:a,hoveredDate:d,onDateHover:m,onDateHoverEnd:u,renderWeekDay:f,renderDateAriaLabel:_}=e;let b=!1;const v=t.getMonth(),g=Oi({date:t,firstWeekDay:a}),w=Fi({firstWeekDay:a,renderWeekDay:f});return i.jsxs("table",{className:pe.selection,role:"grid",children:[i.jsx("thead",{"aria-hidden":"true",children:i.jsx("tr",{children:w.map(y=>i.jsx("th",{className:pe.weekday,scope:"col",children:y},y))})}),i.jsx("tbody",{children:g.map(y=>{var j;const x=[v,(j=y[0])==null?void 0:j.getDate()].filter(Boolean).join("-");return i.jsx("tr",{className:pe.row,children:y.map((C,N)=>{const S=!!C&&(r&&C<r||s&&C>s),k=C==null?void 0:C.getMonth(),$=new Date,A=Pt({date:$}),M=n&&"start"in n?n.start:n,q=n&&"end"in n?n.end:n,O=C&&Pt({date:C}),R=M&&Pt({date:M}),L=q&&Pt({date:q}),U=!!O&&!!R&&O===R,W=!!O&&!!L&&O===L;let H=!1;return!b&&C&&(M&&M.getMonth()===(C==null?void 0:C.getMonth())?H=+M==+C:O&&k===$.getMonth()?H=O>=A&&!S:H=!S),H&&(b=!0),i.jsx(Yi,{date:C,disabled:S,range:l,focusable:H,startValue:M,endValue:q,isActiveStart:U,isActiveEnd:W,onChange:o,hoveredDate:d,onDateHover:m,onDateHoverEnd:u,renderAriaLabel:_},N)})},x)})})]})},lo=3,Ki=e=>{const{renderMonthLabel:t,renderMonthAriaLabel:n,monthDate:o,min:r,max:s,onMonthClick:l}=e,a=c.useRef(null),d=Vi({renderMonthLabel:t}),m=[];for(let u=0;u<d.length;u+=lo){const f=d.slice(u,u+lo);m.push(f)}return c.useEffect(()=>{var f;const u=(f=a.current)==null?void 0:f.querySelector('[tabIndex="0"]');Ye(()=>{u==null||u.focus()})},[]),i.jsx("table",{ref:a,role:"grid",className:pe.selection,children:i.jsx("tbody",{children:m.map((u,f)=>i.jsx("tr",{className:pe.row,children:u.map((_,b)=>{const v=f*lo+b,g=new Date(o.getFullYear(),v),w=r&&r.getFullYear()>=g.getFullYear()&&r.getMonth()>g.getMonth(),x=s&&s.getFullYear()<=g.getFullYear()&&s.getMonth()<g.getMonth()||w;return i.jsx("td",{role:x?"presentation":"gridcell",className:pe.cell,children:i.jsx(De,{fullWidth:!0,insetFocus:!0,className:pe["cell-button"],disabled:x,onClick:()=>l(v),attributes:{tabIndex:v===o.getMonth()?0:-1,"aria-hidden":x,"aria-label":n?n({month:v}):_,"data-rs-date":`${o.getFullYear()}-${(v+1).toString().padStart(2,"0")}`},children:_})},_)})},f))})})},Xi={root:"_root_1g94s_1"},ao=e=>{const{children:t}=e;return i.jsx("div",{className:Xi.root,children:t})},un=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"15 18 9 12 15 6"})}),Ji=e=>{const{selectionMode:t,onMonthTitleClick:n,monthTitleRef:o,monthDate:r,renderSelectedMonthLabel:s,isFirstMonth:l,isLastMonth:a,onNextClick:d,onPreviousClick:m,monthSelectionAriaLabel:u="Select a month",previousMonthAriaLabel:f="Previous month",previousYearAriaLabel:_="Previous year",nextMonthAriaLabel:b="Next month",nextYearAriaLabel:v="Next year"}=e,g=c.useRef(null),w=c.useRef(null);return c.useEffect(()=>{if(!l||document.activeElement!==g.current)return;const y=w.current||o.current;Ye(()=>{y==null||y.focus()})},[l,o]),c.useEffect(()=>{if(!a||document.activeElement!==w.current)return;const y=g.current||o.current;Ye(()=>{y==null||y.focus()})},[a,o]),i.jsxs(P,{direction:"row",gap:2,align:"center",children:[i.jsx(ht,{visibility:!0,hide:l,children:i.jsx("div",{className:pe.control,children:i.jsx(ve,{variant:"ghost",icon:un,onClick:m,attributes:{ref:g,"aria-label":t==="date"?f:_}})})}),i.jsxs(P.Item,{grow:!0,children:[t==="date"&&i.jsxs(ve,{fullWidth:!0,variant:"ghost",onClick:n,attributes:{ref:o},children:[s?s({date:r}):r.toLocaleDateString("en-US",{month:"long",year:"numeric"}),i.jsx(ao,{children:u})]}),t==="month"&&i.jsx(ne,{align:"center",weight:"medium",children:r.toLocaleDateString("en-US",{year:"numeric"})})]}),i.jsx(ht,{visibility:!0,hide:a,children:i.jsx("div",{className:pe.control,children:i.jsx(ve,{variant:"ghost",icon:wt,onClick:d,attributes:{ref:w,"aria-label":t==="date"?b:v}})})})]})},co=e=>{const{value:t,onChange:n,defaultMonth:o,min:r,max:s,range:l,firstWeekDay:a,renderMonthLabel:d,renderSelectedMonthLabel:m,renderWeekDay:u,previousMonthAriaLabel:f,previousYearAriaLabel:_,nextMonthAriaLabel:b,nextYearAriaLabel:v,monthSelectionAriaLabel:g,renderMonthAriaLabel:w,renderDateAriaLabel:y}=e,[x,j]=c.useState("date"),[C,N]=c.useState(o||new Date),[S,k]=c.useState(null),$=c.useRef(null),A=c.useRef(x),M=Ri({date:C,min:r,max:s}),q=c.useRef(null),O=()=>{if(x==="month"){N(B=>Wi(B));return}N(B=>Bi(B))},R=()=>{if(x==="month"){N(B=>Hi(B));return}N(B=>wr(B))},L=()=>{j("month")},U=B=>{N(Q=>io(Q,B)),j("date")},W=B=>{k(B)},H=B=>{S&&+S==+B&&k(null)};return c.useEffect(()=>{x==="date"&&x!==A.current&&Ye(()=>{var B;(B=$.current)==null||B.focus()}),A.current=x},[x]),Ui({monthDate:C,rootRef:q,changeToNextMonth:R,changeToPreviousMonth:O,verticalDelta:x==="date"?7:3,min:r,max:s}),i.jsxs(P,{gap:2,children:[i.jsx(Ji,{renderSelectedMonthLabel:m,monthDate:C,selectionMode:x,isFirstMonth:M.isFirstMonth,isLastMonth:M.isLastMonth,monthTitleRef:$,onMonthTitleClick:L,onNextClick:R,onPreviousClick:O,previousMonthAriaLabel:f,previousYearAriaLabel:_,nextMonthAriaLabel:b,nextYearAriaLabel:v,monthSelectionAriaLabel:g}),i.jsxs(P.Item,{attributes:{ref:q},children:[x==="date"&&i.jsx(Gi,{date:C,value:t,onChange:n,min:r,max:s,range:l,firstWeekDay:a,hoveredDate:S,onDateHover:W,onDateHoverEnd:H,renderWeekDay:u,renderDateAriaLabel:y}),x==="month"&&i.jsx(Ki,{monthDate:C,onMonthClick:U,renderMonthLabel:d,renderMonthAriaLabel:w,min:r,max:s})]})]})},Zi=e=>{const a=e,{onChange:t,defaultValue:n,range:o}=a,r=Se(a,["onChange","defaultValue","range"]),[s,l]=c.useState(n||null);return o?i.jsx(co,z(p({range:!0},r),{value:s,onChange:d=>{l(d.value),t==null||t(d)}})):i.jsx(co,z(p({},r),{value:s,onChange:d=>{l(d.value),t==null||t(d)}}))},Qi=e=>e.value!==void 0?i.jsx(co,p({},e)):i.jsx(Zi,p({},e)),jt={root:"_root_1mrfd_1",content:"_content_1mrfd_13","--selected":"_--selected_1mrfd_18","--elevated":"_--elevated_1mrfd_24","--actionable":"_--actionable_1mrfd_29"},el=c.forwardRef((e,t)=>{const{padding:n=4}=e,{selected:o,elevated:r,bleed:s,height:l,onClick:a,href:d,children:m,className:u,attributes:f,as:_="div"}=e,b=!!d||!!a,v=Nn("medium"),g=Mo(s),w=to(n),y=bt(l),x=I(jt.root,v==null?void 0:v.classNames,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,b&&jt["--actionable"],r&&jt["--elevated"],o&&jt["--selected"],u),j=p(p(p(p({},f==null?void 0:f.style),g==null?void 0:g.variables),w==null?void 0:w.variables),y==null?void 0:y.variables);return b?i.jsx(De,{className:x,attributes:z(p({},f),{style:j}),href:d,as:_,onClick:a,ref:t,children:i.jsx("span",{className:jt.content,children:m})}):i.jsx(_,z(p({},f),{onClick:a,href:d,ref:t,className:x,style:j,children:i.jsx("span",{className:jt.content,children:m})}))});var Ct=(e=>(e.back="back",e.forward="forward",e))(Ct||{});const Je={root:"_root_xql9y_1",control:"_control_xql9y_5","--control-prev":"_--control-prev_xql9y_17","--control-next":"_--control-next_xql9y_21","--control-visible":"_--control-visible_xql9y_25",scroll:"_scroll_xql9y_30",item:"_item_xql9y_51","--control-rendered":"_--control-rendered_xql9y_63","--bleed":"_--bleed_xql9y_69","--bleed-true--m":"_--bleed-true--m_xql9y_1","--bleed-false--m":"_--bleed-false--m_xql9y_1","--bleed-true--l":"_--bleed-true--l_xql9y_1","--bleed-false--l":"_--bleed-false--l_xql9y_1","--bleed-true--xl":"_--bleed-true--xl_xql9y_1","--bleed-false--xl":"_--bleed-false--xl_xql9y_1"},Cr=e=>{const{type:t,scrollElRef:n,scrollPosition:o,onClick:r,isRTL:s,mounted:l}=e,[a,d]=c.useState(!1),[m,u]=c.useState(!1),f=t===Ct.forward,_=t===(s?Ct.back:Ct.forward),b=I(Je.control,_?Je["--control-next"]:Je["--control-prev"],a&&Je["--control-visible"],m&&Je["--control-rendered"]);return ae(()=>{const v=n.current;if(!v||!l)return;let g;const w=Math.abs(o),y=w<=0,x=w+v.clientWidth>=v.scrollWidth-1;return(f?x:y)?(d(!1),g=setTimeout(()=>u(!1),1500)):(u(!0),d(!0)),()=>{g&&clearTimeout(g)}},[o,n.current,l]),i.jsx("div",{className:b,"aria-hidden":"true",children:i.jsx(ve,{onClick:r,icon:_?wt:un,rounded:!0,variant:"faded",elevated:!0,attributes:{"aria-disabled":!a}})})},tl=e=>{const{children:t,gap:n=3,visibleItems:o,bleed:r,navigationDisplay:s,instanceRef:l,className:a,attributes:d}=e,[m,u]=c.useState(!1),[f,_]=c.useState(0),[b]=ot(),v=c.useRef(null),g={};typeof r=="object"&&Object.entries(r).forEach(([k,$])=>{g[k]=typeof $=="number"&&$>0});const w=I(Je.root,a,...X(Je,"--bleed",typeof r=="number"?!0:g)),y=us(k=>{const $=k.target;_($.scrollLeft)},16),x=()=>{const $=getComputedStyle(v.current).gap.split(" ")[0];return Number($.replace("px",""))},j=()=>{const k=v.current;k.scrollBy({left:k.clientWidth+x(),top:0,behavior:"smooth"})},C=()=>{const k=v.current;k.scrollBy({left:-k.clientWidth-x(),top:0,behavior:"smooth"})},N=b?j:C,S=b?C:j;return c.useImperativeHandle(l,()=>({navigateBack:N,navigateForward:S})),ae(()=>{u(!0)},[]),i.jsxs("section",z(p({},d),{className:w,style:p(p({},se("--rs-carousel-items",o)),se("--rs-carousel-bleed",r)),children:[s!=="hidden"&&i.jsxs(i.Fragment,{children:[i.jsx(Cr,{isRTL:b,type:Ct.back,scrollElRef:v,scrollPosition:f,onClick:N,mounted:m}),i.jsx(Cr,{isRTL:b,type:Ct.forward,scrollElRef:v,scrollPosition:f,onClick:S,mounted:m})]}),i.jsx(P,{as:"ul",direction:"row",wrap:!1,gap:n,className:Je.scroll,attributes:{ref:v,onScroll:y},children:c.Children.map(t,k=>i.jsx(P.Item,{className:Je.item,as:"li",children:k}))})]}))},nl={root:"_root_1feer_1"},uo=e=>{const{name:t,value:n,type:o,onChange:r,onFocus:s,onBlur:l,checked:a,defaultChecked:d,disabled:m,className:u,attributes:f}=e,_=I(nl.root,u);return i.jsx("input",z(p({},f),{className:_,type:o,name:t,value:n,checked:a,defaultChecked:d,disabled:m,onChange:r,onFocus:s||(f==null?void 0:f.onFocus),onBlur:l||(f==null?void 0:f.onBlur)}))},kr=c.createContext(null),ol=()=>c.useContext(kr),$r=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=d=>{const{event:m,value:u,checked:f}=d;if(!u)return;let _=[...r];f?_.push(u):_=_.filter(b=>b!==u),t&&t({name:n,value:_,event:m})};return i.jsx(kr.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},rl=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||[]),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx($r,z(p({},e),{value:o,defaultValue:void 0,onChange:s}))},sl=e=>{const{value:t}=e;return t!==void 0?i.jsx($r,p({},e)):i.jsx(rl,p({},e))},zr=()=>i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:i.jsx("polyline",{points:"20 6 9 17 4 12"})}),rt={root:"_root_187rd_1",decorator:"_decorator_187rd_11",field:"_field_187rd_15",icon:"_icon_187rd_44",input:"_input_187rd_54","--error":"_--error_187rd_60","--disabled":"_--disabled_187rd_91"},il=e=>{var C;const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,indeterminate:l,className:a,attributes:d,inputAttributes:m}=e,u=ol(),f=tt(),_=(f==null?void 0:f.hasError)||e.hasError||(u==null?void 0:u.hasError),b=(f==null?void 0:f.disabled)||e.disabled||(u==null?void 0:u.disabled),v=u?(C=u.value)==null?void 0:C.includes(n):e.checked,g=u?void 0:e.defaultChecked,w=u?u.name:e.name,y=c.useRef(null),x=I(rt.root,a,_&&rt["--error"],b&&rt["--disabled"]),j=N=>{if(!w)return;const{checked:S}=N.target,k={name:w,value:n,checked:S,event:N};o&&o(k),u!=null&&u.onChange&&u.onChange(k)};return ae(()=>{y.current.indeterminate=l||!1},[l,v]),i.jsxs("label",z(p({},d),{className:x,children:[i.jsxs("span",{className:rt.field,children:[i.jsx(uo,{className:rt.input,type:"checkbox",checked:v,defaultChecked:g,name:w,disabled:b,value:n,onChange:j,onFocus:r,onBlur:s,attributes:z(p({},m),{ref:y})}),i.jsx("div",{className:rt.decorator,children:i.jsx(ue,{svg:zr,className:rt.icon})})]}),t&&i.jsx("span",{className:rt.text,children:t})]}))},ll={root:"_root_1c40o_1"},al=e=>{const{children:t,padding:n=4,width:o,className:r,attributes:s}=e,l=I(ll.root,r);return i.jsx(P,{attributes:s,className:l,paddingInline:n,width:o,maxWidth:"100%",children:t})},Ft={root:"_root_1md53_1",close:"_close_1md53_7","--variant-media":"_--variant-media_1md53_14","--hide-close":"_--hide-close_1md53_15","--align-center":"_--align-center_1md53_24"},cl=e=>{const{children:t,align:n,onClose:o,hideCloseButton:r,variant:s,closeAriaLabel:l,className:a,attributes:d}=e,m=I(Ft.root,a,s&&Ft[`--variant-${s}`],n&&Ft[`--align-${n}`],r&&Ft["--hide-close"]),u=s==="media"?"div":ve.Aligner;return i.jsxs("div",z(p({},d),{className:m,children:[t,!r&&i.jsx(u,{className:Ft.close,children:i.jsx(ve,z(p({size:"small"},s==="media"?{color:"black",variant:"faded"}:{variant:"ghost"}),{onClick:o,attributes:{"aria-label":o?l:void 0},icon:mr}))})]}))},_n=e=>{const[t,n]=c.useState(e||!1),o=c.useCallback(()=>{n(!0)},[]),r=c.useCallback(()=>{n(!1)},[]),s=c.useCallback(()=>{n(l=>!l)},[]);return{active:t,activate:o,deactivate:r,toggle:s}},Vt={root:"_root_1dzzo_1","--highlighted":"_--highlighted_1dzzo_2",triggerLayer:"_triggerLayer_1dzzo_2",trigger:"_trigger_1dzzo_2"},dl=e=>{const{children:t}=e;return i.jsx("span",{className:Vt.trigger,children:t})},Nr=e=>{const{name:t,children:n,className:o,attributes:r,inputAttributes:s,onChange:l}=e,a=_n(),d=I(Vt.root,a.active&&Vt["--highlighted"],o),m=v=>{var g;v.preventDefault(),(g=r==null?void 0:r.onDragOver)==null||g.call(r,v)},u=v=>{var g;a.activate(),(g=r==null?void 0:r.onDragEnter)==null||g.call(r,v)},f=v=>{var g;v.currentTarget.contains(v.relatedTarget)||(a.deactivate(),(g=r==null?void 0:r.onDragLeave)==null||g.call(r,v))},_=v=>{var g;v.preventDefault(),a.deactivate(),l==null||l({name:t,value:Array.from(v.dataTransfer.files),event:v}),(g=r==null?void 0:r.onDrop)==null||g.call(r,v)},b=v=>{var w;const g=v.target.files;g&&(l==null||l({name:t,event:v,value:Array.from(g)}),(w=s==null?void 0:s.onChange)==null||w.call(s,v))};return i.jsx("div",z(p({},r),{className:d,onDragOver:m,onDragEnter:u,onDragLeave:f,onDrop:_,children:i.jsxs(P,{as:"label",className:Vt.triggerLayer,padding:6,borderRadius:"medium",gap:2,align:"center",textAlign:"center",animated:!0,children:[i.jsx(P.Item,{children:n}),i.jsx(ao,{children:i.jsx("input",z(p({},s),{type:"file",className:Vt.field,name:t,onChange:b}))})]})}))};Nr.Trigger=dl;const ul=Nr,Er={root:"_root_y4hmt_1","--active":"_--active_y4hmt_15"},_l=e=>{const{children:t,active:n,className:o,attributes:r}=e,s=I(Er.root,n&&Er["--active"],o);return i.jsx(ne,{as:"kbd",variant:"caption-1",weight:"medium",color:"neutral-faded",className:s,attributes:r,children:t})},mn={root:"_root_qqeu9_1",fallback:"_fallback_qqeu9_6","--display-mode-cover":"_--display-mode-cover_qqeu9_15","--display-mode-contain":"_--display-mode-contain_qqeu9_19"},ml=e=>{const{src:t,alt:n,width:o,height:r,onLoad:s,onError:l,fallback:a,displayMode:d="cover",borderRadius:m,className:u,attributes:f,imageAttributes:_}=e,[b,v]=c.useState("loading"),g=Nn(m),w=En(o),y=bt(r),x=I(mn.root,g==null?void 0:g.classNames,w==null?void 0:w.classNames,y==null?void 0:y.classNames,d&&mn[`--display-mode-${d}`],u),j=I(mn.image,x),C=I(mn.fallback,x),N=p(p({},w==null?void 0:w.variables),y==null?void 0:y.variables),S=$=>{v("success"),s==null||s($)},k=$=>{v("error"),l==null||l($)};return c.useEffect(()=>{v("loading")},[t]),(b==="error"||!t)&&a?typeof a=="string"?i.jsx("img",z(p({},f),{src:a,alt:n,role:n?void 0:"presentation",className:C,style:N})):i.jsx("div",z(p({},f),{className:C,style:N,children:a})):i.jsx("img",z(p(p({},f),_),{src:t,alt:n,role:n?void 0:"presentation",onLoad:S,onError:k,className:j,style:N}))},kt={m:660,l:900,xl:1280},Tr={s:`(max-width: ${kt.m-1}px)`,m:`(min-width: ${kt.m}px) and (max-width: ${kt.l-1}px)`,l:`(min-width: ${kt.l}px) and (max-width: ${kt.xl-1}px)`,xl:`(min-width: ${kt.xl}px)`},Mr=e=>{const{defaultViewport:t}=c.useContext(Un),[n,o]=c.useState(t);return ae(()=>{const s=Object.keys(Tr).map(l=>{const a=window.matchMedia(Tr[l]);return{mq:a,handler:()=>a.matches&&o(l)}});return s.forEach(({handler:l,mq:a})=>{l(),a.addEventListener("change",l)}),()=>{s.forEach(({handler:l,mq:a})=>{a.removeEventListener("change",l)})}},[]),typeof e!="object"||e===null||!("s"in e)?e:n==="xl"?e.xl||e.l||e.m||e.s:n==="l"?e.l||e.m||e.s:n==="m"&&e.m||e.s},fl=(()=>{let e;return()=>{if(e)return e;const t=document.createElement("div");return t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),e=t.getBoundingClientRect().width-t.clientWidth,document.body.removeChild(t),e}})(),Sr=()=>{const[e,t]=c.useState(!1),n=c.useRef(),o=c.useRef(!1),r=c.useCallback(()=>{const{body:l}=document,a=l.getBoundingClientRect();if(o.current=a.left+a.right<window.innerWidth,n.current=l.style.overflow,l.style.overflow="hidden",o.current){const d=fl();document.body.style.paddingRight=`${d}px`}t(!0)},[t,o,n]),s=c.useCallback(()=>{document.body.style.overflow=n.current||"",o.current&&(document.body.style.paddingRight=""),t(!1)},[t,o,n]);return{scrollLocked:e,lockScroll:r,unlockScroll:s}},ut={root:"_root_10obs_1",wrapper:"_wrapper_10obs_22",inner:"_inner_10obs_28",content:"_content_10obs_34","--visible":"_--visible_10obs_42","--click-through":"_--click-through_10obs_47","--animated":"_--animated_10obs_60"},Dr=e=>{const{active:t,children:n,transparent:o,onClose:r,className:s,attributes:l}=e,a=o===!0,d=a?0:(1-(o||0))*.7,[m,u]=c.useState(!1),[f,_]=c.useState(!1),b=c.useRef(null),v=c.useRef(!1),g=c.useRef(null),{lockScroll:w,unlockScroll:y}=Sr(),{active:x,activate:j,deactivate:C}=_n(t||!1),{active:N,activate:S,deactivate:k}=_n(t||!1),$=Go(t,b),A=I(ut.root,N&&ut["--visible"],a&&ut["--click-through"],f&&ut["--animated"],s),M=H=>{if(!b.current)return;const B=b.current.firstChild;if(B)return B.contains(H)},q=()=>{b.current&&(g.current=Zt(b.current))},O=()=>{g.current&&(g.current(),g.current=null)},R=c.useCallback(()=>{!N||!$()||r&&r()},[N,$]),L=H=>{v.current=!M(H.target)},U=H=>{const B=!M(H.target);v.current&&B&&!a&&R()},W=H=>{H.propertyName!=="transform"||!H.pseudoElement||(_(!1),!N&&(a||y(),C()))};return nt({Escape:R},[R]),c.useEffect(()=>{_(!0),t&&!x&&j(),!t&&x&&k()},[t,j,k,x]),c.useEffect(()=>{x&&(a||w(),Ye(()=>{S()}))},[x,S,w,a]),c.useEffect(()=>{if(x)return q(),()=>O()},[x]),c.useEffect(()=>()=>{a||y()},[y,a]),ae(()=>{u(!0)},[]),!x||!m?null:i.jsx(Zn,{children:i.jsx(Zn.Scope,{children:H=>i.jsx("div",z(p({},l),{ref:H,style:{"--rs-overlay-opacity":d},role:"button",tabIndex:-1,className:A,onMouseDown:L,onMouseUp:U,onTransitionEnd:W,children:i.jsx("div",{className:ut.wrapper,children:i.jsx("div",{className:ut.inner,children:i.jsx("div",{className:ut.content,ref:b,children:typeof n=="function"?n({active:N}):n})})})}))})})},fn={root:"_root_ab12p_1","--dragging":"_--dragging_ab12p_10","--position-center":"_--position-center_ab12p_1","--active":"_--active_ab12p_34","--position-bottom":"_--position-bottom_ab12p_1","--position-start":"_--position-start_ab12p_1","--position-end":"_--position-end_ab12p_1","--position-center--m":"_--position-center--m_ab12p_1","--position-bottom--m":"_--position-bottom--m_ab12p_1","--position-start--m":"_--position-start--m_ab12p_1","--position-end--m":"_--position-end--m_ab12p_1","--position-center--l":"_--position-center--l_ab12p_1","--position-bottom--l":"_--position-bottom--l_ab12p_1","--position-start--l":"_--position-start--l_ab12p_1","--position-end--l":"_--position-end--l_ab12p_1","--position-center--xl":"_--position-center--xl_ab12p_1","--position-bottom--xl":"_--position-bottom--xl_ab12p_1","--position-start--xl":"_--position-start--xl_ab12p_1","--position-end--xl":"_--position-end--xl_ab12p_1"},_o=32,hl=100,bl=32,Ir=c.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),Ar=()=>c.useContext(Ir),gl=e=>{const{children:t}=e,{id:n,setTitleMounted:o}=Ar();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ne,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`},children:t})},vl=e=>{const{children:t}=e,{id:n,setSubtitleMounted:o}=Ar();return c.useEffect(()=>(o(!0),()=>o(!1)),[o]),i.jsx(ne,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`},children:t})},mo=e=>{const{children:t,onClose:n,active:o,size:r,padding:s=4,position:l="center",transparentOverlay:a,className:d,attributes:m}=e,u=Pe(),f=Mr(l),[_,b]=c.useState(!1),[v,g]=c.useState(!1),[w,y]=c.useState(!1),x=c.useRef(null),j=c.useRef({x:0,y:0}),C=c.useRef(0),N=c.useRef(0),S=c.useRef(0),[k,$]=c.useState(0),[A,M]=c.useState(0),q=to(s),O=c.useMemo(()=>({titleMounted:_,setTitleMounted:b,subtitleMounted:v,setSubtitleMounted:g,id:u}),[u,v,_]),R=()=>{j.current={x:0,y:0},C.current=0,S.current=0,$(0)},L=W=>{const H=W.target;H.scrollTop!==0||H.scrollLeft!==0||H.matches("input,textarea")||f==="start"&&W.targetTouches[0].clientX<bl||(Gn(),y(!0))},U=W=>{o||W.propertyName==="transform"&&W.currentTarget===W.target&&R()};return c.useEffect(()=>{if(!w)return;const W=()=>{Kn(),y(!1);const B=f==="start"?S.current<0:S.current>0;Math.abs(N.current)>_o&&B?n==null||n():R()},H=B=>{if(!w||f==="center")return;const Q=B.targetTouches[0],_e={x:Q.clientX,y:Q.clientY},ce=f==="bottom"?"y":"x",Ce=f==="bottom"?"x":"y";j.current[ce]||(j.current=_e,C.current=_e[ce]);const ke=Math.abs(_e[ce]-j.current[ce]),Me=Math.abs(_e[Ce]-j.current[Ce]);if(l!=="bottom"&&(ke<Me||Me>hl)){C.current=_e[ce];return}S.current=_e[ce]-C.current,C.current=_e[ce],$(ee=>f==="start"?Math.min(0,ee+S.current):Math.max(0,ee+S.current))};return document.addEventListener("touchmove",H),document.addEventListener("touchend",W),()=>{document.removeEventListener("touchmove",H),document.removeEventListener("touchend",W)}},[w,f]),c.useEffect(()=>{const W=x.current;if(!W||!f)return;const B=["start","end"].includes(f)?W.clientWidth:W.clientHeight,Q=Math.abs(k)/B;M(Q/2),N.current=k},[k,f]),i.jsx(Dr,{onClose:n,active:o,transparent:a||A,attributes:{onTouchStart:L},children:({active:W})=>{const H=I(fn.root,d,q==null?void 0:q.classNames,W&&fn["--active"],w&&fn["--dragging"],X(fn,"--position",l));return i.jsx(Ir.Provider,{value:O,children:i.jsx("div",z(p({},m),{style:z(p(p({},q==null?void 0:q.variables),se("--rs-modal-size",r)),{"--rs-modal-drag":Math.abs(k)<_o?"0px":`${k+_o*(f==="start"?1:-1)}px`}),"aria-labelledby":_?`${u}-title`:void 0,"aria-describedby":v?`${u}-subtitle`:void 0,className:H,"aria-modal":"true",role:"dialog",ref:x,onTransitionEnd:U,children:t}))})}})};mo.Title=gl,mo.Subtitle=vl;const pl=mo,qr=e=>{const{total:t,page:n=1,onChange:o,pageAriaLabel:r,previousAriaLabel:s,nextAriaLabel:l,className:a,attributes:d}=e,m=1,u=1,f=[],_=n-m>u+2,b=n+m<t-u;let v=m*2+1;_||(v+=u+1),b||(v+=u+1);const g=_?Math.min(t-v+1,Math.max(1,n-m)):1,w=b?Math.min(g+v-1,t):t;_&&f.push(...kn(1,u),null),f.push(...kn(g,w)),b&&f.push(null,...kn(t-u+1,t));const y=x=>{const j=Math.min(t,Math.max(1,x));o==null||o({page:j})};return i.jsxs(P,{direction:"row",align:"center",gap:1,className:a,attributes:d,children:[i.jsx(ve,{variant:"ghost",size:"small",icon:un,onClick:()=>y(n-1),disabled:n===1,attributes:{"aria-label":s}}),f.map((x,j)=>x===null?i.jsx(P,{width:7,align:"center",children:"..."},`dots-${j}`):i.jsx(ve,{size:"small",variant:x===n?"solid":"ghost",color:x===n?"primary":"neutral",onClick:()=>y(x),attributes:{"aria-label":r==null?void 0:r({page:x}),"aria-current":x===n},children:x},j)),i.jsx(ve,{variant:"ghost",size:"small",icon:wt,onClick:()=>y(n+1),disabled:n===t,attributes:{"aria-label":l}})]})},xl=e=>{const a=e,{defaultPage:t=1,onChange:n}=a,o=Se(a,["defaultPage","onChange"]),[r,s]=c.useState(t||1),l=d=>{s(d.page),n==null||n(d)};return i.jsx(qr,z(p({},o),{onChange:l,page:r}))},yl=e=>{const{page:t}=e;return t!==void 0?i.jsx(qr,p({},e)):i.jsx(xl,p({},e))},Ot={root:"_root_1a3na_1",value:"_value_1a3na_9","--duration":"_--duration_1a3na_23","--size-small":"_--size-small_1a3na_27","--size-medium":"_--size-medium_1a3na_31","--color-primary":"_--color-primary_1a3na_35","--color-critical":"_--color-critical_1a3na_39","--color-warning":"_--color-warning_1a3na_43","--color-positive":"_--color-positive_1a3na_47","--color-white":"_--color-white_1a3na_51"},wl=e=>{const{value:t=0,min:n=0,max:o=100,color:r="primary",size:s="medium",duration:l,className:a,attributes:d}=e,m=I(Ot.root,a,r&&Ot[`--color-${r}`],s&&Ot[`--size-${s}`],!!l&&Ot["--duration"]),u=o-n,f=t-n,v=`${Math.max(n,Math.min(o,f))/u*100-100}%`;return i.jsx("div",z(p({role:"progressbar"},d),{className:m,"aria-valuemax":o,"aria-valuemin":n,"aria-valuenow":t,children:i.jsx("div",{className:Ot.value,style:{"--rs-progress-value":v,"--rs-progress-duration":l?`${l}ms`:void 0}})}))},Lr=c.createContext(null),jl=()=>c.useContext(Lr),Pr=e=>{const{onChange:t,name:n,disabled:o,value:r,children:s,hasError:l}=e,a=({event:d,value:m})=>{m&&t&&t({name:n,value:m,event:d})};return i.jsx(Lr.Provider,{value:{onChange:a,disabled:o,value:r,name:n,hasError:l},children:s})},Cl=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t||null),s=l=>{l.value&&(r(l.value),n&&n(l))};return i.jsx(Pr,z(p({},e),{value:o,defaultValue:void 0,onChange:s}))},kl=e=>{const{value:t}=e;return t!==void 0?i.jsx(Pr,p({},e)):i.jsx(Cl,p({},e))},_t={root:"_root_1o7zq_1",input:"_input_1o7zq_10",decorator:"_decorator_1o7zq_10",field:"_field_1o7zq_14","--error":"_--error_1o7zq_48",text:"_text_1o7zq_60","--disabled":"_--disabled_1o7zq_71"},$l=e=>{const{children:t,value:n,onChange:o,onFocus:r,onBlur:s,className:l,attributes:a,inputAttributes:d}=e,m=tt(),u=jl(),f=(m==null?void 0:m.hasError)||e.hasError||(u==null?void 0:u.hasError),_=(m==null?void 0:m.disabled)||e.disabled||(u==null?void 0:u.disabled),b=u?u.value===n:e.checked,v=u?void 0:e.defaultChecked,g=u?u.name:e.name,w=I(_t.root,l,f&&_t["--error"],_&&_t["--disabled"]),y=x=>{if(!g)return;const{checked:j}=x.target,C={name:g,value:n,checked:j,event:x};o&&o(C),u!=null&&u.onChange&&u.onChange(C)};return i.jsxs("label",z(p({},a),{className:w,children:[i.jsxs("span",{className:_t.field,children:[i.jsx(uo,{className:_t.input,type:"radio",checked:b,defaultChecked:v,name:g,disabled:_,value:n,onChange:y,onFocus:r,onBlur:s,attributes:d}),i.jsx("div",{className:_t.decorator})]}),t&&i.jsx("span",{className:_t.text,children:t})]}))},Fr={short:4e3,long:8e3},Bt=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Vr={queues:Bt.reduce((e,t)=>p({[t]:[]},e),{}),show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},hn=c.createContext(Vr),zl=()=>{const{add:e,hide:t}=c.useContext(hn);return c.useMemo(()=>({show:e,hide:t}),[e,t])},He={container:"_container_gthtf_1","container--visible":"_container--visible_gthtf_1",wrapper:"_wrapper_gthtf_12","container--index-0":"_container--index-0_gthtf_1","container--index-1":"_container--index-1_gthtf_1","container--index-2":"_container--index-2_gthtf_104","container--index-overflow":"_container--index-overflow_gthtf_108",region:"_region_gthtf_64","region--position-top":"_region--position-top_gthtf_1","region--position-top-start":"_region--position-top-start_gthtf_1","region--position-top-end":"_region--position-top-end_gthtf_1","region--position-bottom":"_region--position-bottom_gthtf_1","region--position-bottom-start":"_region--position-bottom-start_gthtf_1","region--position-bottom-end":"_region--position-bottom-end_gthtf_1"},Nl=e=>{const{size:t="small",text:n,children:o,color:r="inverted",icon:s,title:l,actionsSlot:a,startSlot:d,collapsed:m,className:u,attributes:f}=e;let _=r==="inverted"||r==="neutral"?"elevation-overlay":r;r==="neutral"&&(_=m?"neutral":"elevation-overlay");const b=r==="neutral"?"neutral-faded":"transparent",v=t==="small"?"span":"div",g=t==="large";let w=[];a&&(w=Array.isArray(a)?a:[a]);const y=(l||n)&&i.jsxs(i.Fragment,{children:[l&&i.jsxs(ne,{variant:"body-3",weight:"bold",as:v,children:[l," "]}),i.jsx(ne,{variant:"body-3",as:v,children:n})]}),x=i.jsxs(P,{backgroundColor:_,borderColor:b,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:g?"start":"center",className:[He.toast,u],attributes:f,children:[s&&i.jsx(ue,{size:5,svg:s,className:He.icon}),d&&!s&&i.jsx(P.Item,{children:d}),i.jsx(P.Item,{grow:!0,children:i.jsxs(P,{direction:g?"column":"row",align:g?"start":"center",gap:3,children:[i.jsx(P.Item,{grow:!0,children:y&&o||t!=="small"?i.jsxs(P,{gap:.5,children:[y,o&&i.jsx(P,{gap:3,children:o})]}):y||o}),w.length&&i.jsx(P,{direction:"row",align:"center",gap:2,children:w.map((j,C)=>{const N=t==="large"?C===0:C===w.length-1,k={variant:N?"solid":"ghost",size:"small",color:N?r==="neutral"||r==="inverted"?"neutral":"white":"inherit",elevated:r!=="neutral"};return j.type===ve?c.createElement(ve,z(p(p({},k),j.props),{key:C})):j})})]})})]});return r==="inverted"?i.jsx(pt,{colorMode:"inverted",children:x}):x},El=e=>{const{toastProps:t,id:n,status:o,inspected:r,index:s}=e,{timeout:l="short"}=t,{show:a,hide:d,remove:m}=c.useContext(hn),[u,f]=c.useState(),_=c.useRef(),b=c.useRef(!1),v=c.useRef(null),g=c.useRef(null),w=o==="entered",y=I(He.container,w&&He["container--visible"],s===0&&He[`container--index-${s}`],!r&&(s===1||s===2)&&He[`container--index-${s}`],!r&&s>=3&&He["container--index-overflow"]),x=c.useCallback(()=>{_.current&&clearTimeout(_.current)},[]),j=c.useCallback(()=>{x();const N=typeof l=="string"?Fr[l]:l;l!==0&&(_.current=setTimeout(()=>{d(n)},N!=null?N:Fr.short))},[d,n,l,x]),C=N=>{N.propertyName==="height"&&(w||m(n))};return c.useEffect(()=>{w&&(r?x():j())},[r,j,x,w]),c.useEffect(()=>{g.current&&f(g.current.clientHeight),a(n),j()},[a,n,j]),c.useEffect(()=>{g.current&&(w?v.current=Zt(g.current,{includeTrigger:!0,mode:"content-menu"}):v.current&&Ho()&&(v.current(),v.current=null))},[w]),c.useEffect(()=>{if(!w||s>0)return;const N=()=>{b.current=!0,Ye(()=>{b.current=!1}),g.current&&f(g.current.clientHeight)};return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[w,s]),i.jsx("li",{className:y,style:{height:o==="entered"?`calc(${u}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:b.current?"0s":void 0},onTransitionEnd:C,onFocus:x,onBlur:j,children:i.jsx("span",{className:He.wrapper,children:i.jsx(Nl,z(p({},t),{collapsed:s>0&&!r,attributes:z(p({},t.attributes),{ref:g})}))})})},Tl=e=>{const{position:t}=e,{queues:n,options:o}=c.useContext(hn),[r,s]=c.useState(!1),l=c.useRef(!1),a=c.useRef(null),d=n[t],{width:m,expanded:u}=(o==null?void 0:o[t])||{},f=I(He.region,He[`region--position-${t}`]),_=d.filter(x=>x.status==="entered").length;let b=0;const v=()=>{l.current=!0},g=x=>{let j=x.target,C=!1;for(;j&&j!==a.current&&!C;)C=j.matches(Ro),j=j.parentElement;C||s(N=>!N),l.current=!1},w=()=>{l.current||s(!0)},y=()=>{l.current||s(!1)};return c.useEffect(()=>{d.length===0&&s(!1)},[d.length]),d.length?i.jsx("ul",{role:"region","aria-live":"polite",className:f,ref:a,onTouchStart:v,onClick:g,onMouseEnter:w,onMouseLeave:y,style:{width:m},children:d.map((x,j)=>{const C=_-j+b-1;return x.status!=="entered"&&(b+=1),i.jsx(El,z(p({},x),{index:C,inspected:r||!!u}),x.id)})}):null};let Ml=0;const Sl=()=>`__rs-toast-${Ml++}`,Dl=(e,t)=>{let n;switch(t.type){case"add":const o=t.payload.toastProps||{},{position:r="bottom-end"}=o,s=Se(o,["position"]);return z(p({},e),{[r]:[...e[r],{id:t.payload.id,toastProps:s,status:"entering"}]});case"show":const{id:l}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].map(u=>u.status!=="entering"?u:u.id===l?z(p({},u),{status:"entered"}):u)}),n;case"hide":const{id:a}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].map(u=>u.id===a?z(p({},u),{status:"exiting"}):u)}),n;case"remove":const{id:d}=t.payload;return n=p({},e),Bt.forEach(m=>{n[m]=n[m].filter(u=>u.id!==d)}),n}},Il=e=>{const{children:t,options:n}=e,[o,r]=c.useReducer(Dl,Vr.queues),s=c.useCallback(u=>{const f=Sl();return r({type:"add",payload:{toastProps:u,id:f}}),f},[]),l=c.useCallback(u=>{r({type:"show",payload:{id:u}})},[]),a=c.useCallback(u=>{r({type:"hide",payload:{id:u}})},[]),d=c.useCallback(u=>{r({type:"remove",payload:{id:u}})},[]),m=c.useMemo(()=>({queues:o,add:s,show:l,hide:a,remove:d,inspecting:!1,options:n}),[o,l,a,s,d,n]);return i.jsxs(hn.Provider,{value:m,children:[t,Bt.map(u=>i.jsx(Tl,{position:u},u))]})},Al=()=>{c.useEffect(()=>{const e=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(On,"true")},t=()=>{document.documentElement.removeAttribute(On)};return window.addEventListener("keydown",e),window.addEventListener("mousedown",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("mousedown",t)}},[])},ql={root:"_root_18j53_1"},Ll=e=>{const{children:t,defaultRTL:n,defaultViewport:o="s",toastOptions:r}=e,s=ii(n);return Al(),i.jsx(Un.Provider,{value:{rtl:s,defaultViewport:o},children:i.jsx(ri,{children:i.jsx(Il,{options:r,children:t})})})},Pl=e=>{const{theme:t,defaultTheme:n="reshaped",defaultColorMode:o,className:r}=e,s=I(ql.root,r);return i.jsx(pi,{defaultMode:o,children:i.jsx(pt,{name:t,defaultName:n,className:s,children:i.jsx(Ll,z(p({},e),{children:e.children}))})})},Wt={root:"_root_f2om1_1",scrim:"_scrim_f2om1_2",content:"_content_f2om1_31","--position-cover":"_--position-cover_f2om1_37","--position-top":"_--position-top_f2om1_56","--position-bottom":"_--position-bottom_f2om1_57","--position-start":"_--position-start_f2om1_61","--position-end":"_--position-end_f2om1_62","--with-background":"_--with-background_f2om1_100"},Fl=e=>{const{children:t,backgroundSlot:n,position:o="cover",attributes:r,className:s,scrimClassName:l}=e,a=I(Wt.root,!!n&&Wt["--with-background"],o&&Wt[`--position-${o}`],s),d=I(Wt.scrim,l);return i.jsxs("div",z(p({},r),{className:a,children:[n,i.jsx("div",{className:d,children:i.jsx("div",{className:Wt.content,children:t})})]}))},st={root:"_root_kge89_1",scrollable:"_scrollable_kge89_9",scrollbar:"_scrollbar_kge89_26","--scrollbar-dragging":"_--scrollbar-dragging_kge89_31",thumb:"_thumb_kge89_31","--scrollbar-y":"_--scrollbar-y_kge89_53","--scrollbar-x":"_--scrollbar-x_kge89_65","--display-visible":"_--display-visible_kge89_85","--display-hover":"_--display-hover_kge89_89"},Or=e=>{const{ratio:t,position:n,vertical:o,onThumbMove:r}=e,[s,l]=c.useState(!1),a=c.useRef(0),d=c.useRef(null),m=I(st.scrollbar,o?st["--scrollbar-y"]:st["--scrollbar-x"],s&&st["--scrollbar-dragging"]),u=v=>{const g=d.current,w=a.current;if(a.current=0,w||!g||v.currentTarget!==g)return;const y=g.getBoundingClientRect(),x=o?v.pageY-y.top:v.pageX-y.left,j=o?g.clientHeight:g.clientWidth;r({value:x/j-t/2,type:"absolute"})},f=c.useCallback(v=>{a.current||(a.current=o?v.pageY:v.pageX);const g=d.current;if(!g||!s)return;const w=o?v.movementY:v.movementX,y=o?g.scrollHeight:g.scrollWidth;r({value:w/y,type:"relative"})},[t,o,s]),_=c.useCallback(()=>{l(!1),Kn()},[]),b=()=>{l(!0),Gn()};return c.useEffect(()=>{if(s)return document.addEventListener("mousemove",f),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",_)}},[f,_,s]),i.jsx("div",{className:m,style:{"--rs-scroll-area-ratio":t,"--rs-scroll-area-position":n},ref:d,onClick:u,onMouseDown:b,"aria-hidden":"true",children:i.jsx("div",{className:st.thumb})})},Vl=c.forwardRef((e,t)=>{const{children:n,height:o,maxHeight:r,scrollbarDisplay:s="hover",onScroll:l,className:a,attributes:d}=e,[m,u]=c.useState({x:1,y:1}),[f,_]=c.useState({x:0,y:0}),b=c.useRef(null),v=c.useRef(),g=bt(o),w=So(r),y=I(st.root,s&&st[`--display-${s}`],g==null?void 0:g.classNames,w==null?void 0:w.classNames,a),x=p(p({},g==null?void 0:g.variables),w==null?void 0:w.variables),j=c.useCallback(()=>{const k=b.current;k&&u({x:k.clientWidth/k.scrollWidth,y:k.clientHeight/k.scrollHeight})},[]),C=k=>{const $=b.current;if(!$)return;const A={x:k.currentTarget.scrollLeft/$.scrollWidth,y:k.currentTarget.scrollTop/$.scrollHeight};_(A),l==null||l(A)},N=k=>{const $=b.current;if(!$)return;const A=$.scrollHeight*k.value;k.type==="absolute"?$.scrollTop=A:$.scrollTop+=A},S=k=>{const $=b.current;if(!$)return;const A=$.clientWidth*k.value;k.type==="absolute"?$.scrollLeft=A:$.scrollLeft+=A};return c.useImperativeHandle(t,()=>b.current),ae(()=>{j()},[j]),ae(()=>{const k=b.current;if(k)return v.current=new ResizeObserver(j),v.current.observe(k),()=>{var $;($=v.current)==null||$.disconnect()}},[j]),i.jsxs("div",z(p({},d),{className:y,style:x,children:[i.jsx("div",{className:st.scrollable,ref:b,onScroll:C,children:n}),m.y<1&&s!=="hidden"&&i.jsx(Or,{vertical:!0,onThumbMove:N,ratio:m.y,position:f.y}),m.x<1&&s!=="hidden"&&i.jsx(Or,{onThumbMove:S,ratio:m.x,position:f.x})]}))}),Ol=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Re={root:"_root_1jhw5_1",input:"_input_1jhw5_18",slot:"_slot_1jhw5_45",arrow:"_arrow_1jhw5_60","--size-medium":"_--size-medium_1jhw5_1","--size-large":"_--size-large_1jhw5_1","--size-xlarge":"_--size-xlarge_1jhw5_1","--variant-faded":"_--variant-faded_1jhw5_115","--variant-headless":"_--variant-headless_1jhw5_124","--status-error":"_--status-error_1jhw5_129","--placeholder":"_--placeholder_1jhw5_144","--disabled":"_--disabled_1jhw5_148","--size-medium--m":"_--size-medium--m_1jhw5_1","--size-large--m":"_--size-large--m_1jhw5_1","--size-xlarge--m":"_--size-xlarge--m_1jhw5_1","--size-medium--l":"_--size-medium--l_1jhw5_1","--size-large--l":"_--size-large--l_1jhw5_1","--size-xlarge--l":"_--size-xlarge--l_1jhw5_1","--size-medium--xl":"_--size-medium--xl_1jhw5_1","--size-large--xl":"_--size-large--xl_1jhw5_1","--size-xlarge--xl":"_--size-xlarge--xl_1jhw5_1"},Bl=e=>{var O,R;const{onChange:t,onClick:n,onFocus:o,onBlur:r,name:s,value:l,defaultValue:a,placeholder:d,options:m,children:u,icon:f,startSlot:_,size:b="medium",variant:v="outline",className:g,attributes:w}=e,[y,x]=c.useState(l===void 0?!a:!l),j=tt(),C=Pe(e.id),N=((O=j==null?void 0:j.attributes)==null?void 0:O.id)||((R=e.inputAttributes)==null?void 0:R.id)||C,S=(j==null?void 0:j.disabled)||e.disabled,k=(j==null?void 0:j.hasError)||e.hasError,$=p(p({},e.inputAttributes),j==null?void 0:j.attributes),A=I(Re.root,g,b&&X(Re,"--size",b),k&&Re["--status-error"],S&&Re["--disabled"],y&&m&&Re["--placeholder"],v&&Re[`--variant-${v}`]),M=L=>{const U=L.target.value;l===void 0&&x(!U),t&&t({name:s,value:U,event:L})};c.useEffect(()=>{l!==void 0&&x(!l)},[l]);const q=(_||f)&&i.jsx("div",{className:Re.slot,children:f?i.jsx(ue,{size:Le(b,L=>L==="large"?5:L==="xlarge"?6:4),svg:f}):_});return i.jsxs("div",z(p({},w),{className:A,children:[m?i.jsxs(i.Fragment,{children:[q,i.jsxs("select",z(p({},$),{className:Re.input,disabled:S,name:s,value:l,defaultValue:a,onChange:M,onFocus:o||($==null?void 0:$.onFocus),onBlur:r||($==null?void 0:$.onBlur),id:N,children:[d&&i.jsx("option",{value:"",children:d}),m.map(L=>i.jsx("option",{value:L.value,disabled:L.disabled,children:L.label},L.value))]}))]}):i.jsxs(i.Fragment,{children:[i.jsxs(De,{className:Re.input,disabled:S,onClick:n,attributes:z(p({},$),{onFocus:o||($==null?void 0:$.onFocus),onBlur:r||($==null?void 0:$.onBlur)}),children:[q,u||(d?i.jsx(ne,{color:"neutral-faded",children:d}):null)]}),i.jsx("input",{type:"hidden",value:l,name:s})]}),i.jsx("div",{className:Re.arrow,children:i.jsx(ue,{svg:Ol,color:S?"disabled":"neutral-faded",size:Le(b,L=>L==="large"||L==="xlarge"?5:4)})})]}))},Wl={root:"_root_xavah_1","rs-skeleton-pulse":"_rs-skeleton-pulse_xavah_1"},Hl=e=>{const{borderRadius:t="small",width:n,height:o,className:r,attributes:s}=e,l=I(Wl.root,r);return i.jsx(P,{backgroundColor:"disabled",width:n,height:o,borderRadius:t,className:l,attributes:s})},it={root:"_root_1s5j6_1",bar:"_bar_1s5j6_11",input:"_input_1s5j6_20",selection:"_selection_1s5j6_29",tooltip:"_tooltip_1s5j6_35",thumb:"_thumb_1s5j6_59","thumb--active":"_thumb--active_1s5j6_1","--disabled":"_--disabled_1s5j6_116"},Rl=(e,t)=>{const{name:n,value:o,disabled:r,active:s,position:l,max:a,min:d,onChange:m,onDragStart:u,renderValue:f,tooltipRef:_}=e,b=c.useId(),v=I(it.thumb,s&&it["thumb--active"]),g=f?f({value:o}):o,w=y=>{m(+y.target.value)};return i.jsxs(i.Fragment,{children:[i.jsx("input",{className:it.input,type:"range",name:n,value:o,onChange:w,disabled:r,max:a,min:d,"aria-labelledby":b}),i.jsx("div",{ref:t,className:v,onMouseDown:u,onTouchStart:u,style:{insetInlineStart:`${l}%`},id:b,"aria-hidden":"true",children:i.jsx(pt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",weight:"medium",className:it.tooltip,attributes:{ref:_},children:g})})})]})},Br=c.forwardRef(Rl),Wr=e=>e instanceof MouseEvent?e.pageX||e.screenX:e.changedTouches[0].pageX,fo=(e,t)=>Math.round(e/t)*t,ho=e=>{var Me;const{name:t,range:n,max:o,min:r,step:s=1,onChange:l,onChangeCommit:a,renderValue:d,className:m,attributes:u}=e,f=n&&e.minValue!==void 0?fo(e.minValue,s):void 0,_=fo(n?e.maxValue:e.value,s),b=c.useRef(null),v=c.useRef(null),g=c.useRef(null),w=c.useRef(null),y=c.useRef(null),[x,j]=c.useState(null),[C]=ot(),N=tt(),S=Pe(),k=((Me=N==null?void 0:N.attributes)==null?void 0:Me.id)||S,$=`${k}-min`,A=`${k}-max`,M=(N==null?void 0:N.disabled)||e.disabled,q=I(it.root,M&&it["--disabled"],m),O=c.useCallback(ee=>{if(!b.current)return;const J=b.current.clientWidth;let F=(ee-b.current.getBoundingClientRect().left)/J;C&&(F=1-F);let oe=(o-r)*F+r;return oe=Math.max(r,Math.min(o,oe)),fo(oe,s)},[o,r,C,s]),R=ee=>(ee-r)/(o-r)*100,L=c.useCallback(ee=>{var Ie,Ae,Ee;const J=ee===$?w:y,G=ee===$?v:g;let F=0;const oe=(Ie=b.current)==null?void 0:Ie.getBoundingClientRect(),le=(Ae=J.current)==null?void 0:Ae.getBoundingClientRect(),me=(Ee=G.current)==null?void 0:Ee.getBoundingClientRect(),xe=oe==null?void 0:oe.left,$e=xe&&xe+(oe==null?void 0:oe.width),lt=me&&le&&me.left-le.width/2,ze=me&&le&&me.left+le.width/2;lt&&xe&<<xe-8&&(F=le.width/2-8),ze&&$e&&ze>$e&&(F=-(le.width/2-8));const Ne=J.current;Ne&&Ne.style.setProperty("--rs-slider-tooltip-offset",`${F||0}px`)},[$]),U=c.useCallback((ee,J)=>{if(!n)return;const G=J!=null&&J.commit?a:l;G==null||G({minValue:ee,maxValue:_,name:t})},[_,t,n]),W=c.useCallback((ee,J)=>{if(n){const F=J!=null&&J.commit?a:l;F==null||F({minValue:f,maxValue:ee,name:t});return}const G=J!=null&&J.commit?a:l;G==null||G({value:ee,name:t})},[f,t,n]),H=({nativeEvent:ee})=>{if(M)return;let J,G;const F=Wr(ee),oe=O(F);[{ref:v,id:$},{ref:g,id:A}].forEach(me=>{if(!me.ref.current)return;const xe=me.ref.current,$e=Math.abs(xe.getBoundingClientRect().left-F);(J===void 0||$e<=J)&&(J=$e,G=me.id)}),!(!G||oe===void 0)&&(G===$&&U(oe),G===A&&W(oe),Gn(),j(G))},B=()=>{M||j($)},Q=()=>{M||j(A)},_e=c.useCallback(()=>{x===$&&f!==void 0&&U(f,{commit:!0}),x===A&&W(_,{commit:!0}),Kn(),j(null)},[f,_,U,W,x,$,A]),ce=c.useCallback(ee=>{if(!x)return;const J=Wr(ee),G=O(J);if(L(x),G===void 0)return;let F=x;x===$&&G>_&&(F=A),x===A&&f&&G<f&&(F=$),F===$&&U(G),F===A&&W(G),x!==F&&j(F)},[x,f,_,O,W,U,A,$,L]);c.useEffect(()=>{L($),L(A)},[L,$,A]),c.useEffect(()=>(window.addEventListener("mouseup",_e),window.addEventListener("touchend",_e),window.addEventListener("mousemove",ce),window.addEventListener("touchmove",ce),()=>{window.removeEventListener("mouseup",_e),window.removeEventListener("touchend",_e),window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce)}),[_e,ce]);const Ce=f&&R(f),ke=R(_);return i.jsxs("div",z(p({},u),{className:q,onMouseDown:H,onTouchStart:H,children:[i.jsx("div",{className:it.bar,ref:b,children:i.jsx("div",{className:it.selection,style:{insetInlineStart:`${Ce||0}%`,width:`${ke-(Ce||0)}%`}})}),f!==void 0&&Ce!==void 0&&i.jsx(Br,{id:$,active:$===x,name:t,disabled:M,onChange:U,value:f,onDragStart:B,position:Ce,max:o,min:r,ref:v,tooltipRef:w,renderValue:d}),i.jsx(Br,{id:A,active:A===x,name:t,disabled:M,onChange:W,value:_,onDragStart:Q,position:ke,max:o,min:r,ref:g,tooltipRef:y,renderValue:d})]}))},Ul=e=>{const{min:t,max:n,onChange:o,range:r}=e,s="defaultMinValue"in e&&e.defaultMinValue!==void 0&&e.defaultMinValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||t,l="defaultMaxValue"in e&&e.defaultMaxValue!==void 0&&e.defaultMaxValue||"defaultValue"in e&&e.defaultValue!==void 0&&e.defaultValue||(r?n:t),[a,d]=c.useState(s),[m,u]=c.useState(l),f=b=>{r||(u(b.value),o==null||o(b))},_=b=>{r&&(d(b.minValue),u(b.maxValue),o==null||o(b))};return r?i.jsx(ho,z(p({},e),{min:t,max:n,minValue:a,maxValue:m,defaultMinValue:void 0,defaultMaxValue:void 0,onChange:_})):i.jsx(ho,z(p({},e),{min:t,max:n,value:m,defaultValue:void 0,onChange:f}))},Yl=e=>{const r=e,{min:t=0,max:n=100}=r,o=Se(r,["min","max"]);return"value"in e&&e.value!==void 0||"minValue"in e&&"maxValue"in e&&e.minValue!==void 0&&e.maxValue!==void 0?i.jsx(ho,z(p({},o),{min:t,max:n})):i.jsx(Ul,z(p({},o),{min:t,max:n}))},Gl={verticalDivider:"_verticalDivider_oa23g_1"},Kl=e=>{const{title:t,subtitle:n,children:o,direction:r,className:s,attributes:l,labelDisplay:a,step:d,completed:m,active:u,last:f}=e,_=a&&Le(a,v=>v==="hidden"),b=i.jsx(P,{gap:3,grow:!0,children:i.jsxs(P.Item,{children:[i.jsx(ne,{variant:"body-3",weight:"medium",children:t}),i.jsx(ne,{variant:"caption-1",color:"neutral-faded",children:n})]})});return i.jsxs(P,{children:[i.jsxs(P,{attributes:l,className:s,direction:"row",gap:2,align:"center",position:"static",children:[i.jsxs(P.Item,{children:[i.jsx(P,{align:"center",justify:"center",backgroundColor:u||m?"primary":"neutral-faded",borderColor:u||m?void 0:"neutral-faded",borderRadius:"circular",as:"span",width:8,height:8,zIndex:5,children:i.jsx(ne,{variant:"body-3",weight:u?"bold":"medium",children:m?i.jsx(ue,{svg:zr,size:4}):d})}),r==="column"&&!f&&i.jsx(Ht,{vertical:!0,className:Gl.verticalDivider})]}),a?i.jsx(ht,{hide:_,children:b}):b]}),r==="column"&&o&&i.jsx(qo,{active:u,children:i.jsx(P,{paddingStart:10,paddingTop:2,children:o})})]})},Xl=e=>null,Hr=e=>{const{children:t,direction:n="row",activeId:o,labelDisplay:r,className:s,attributes:l}=e,a=n==="column",d=c.Children.count(t);return i.jsx(P,{attributes:l,direction:n,align:a?"stretch":"center",className:s,gap:3,wrap:!1,children:c.Children.map(t,(m,u)=>{const f=m.props.id||`${u}`;return i.jsxs(c.Fragment,{children:[i.jsx(Kl,z(p({},m.props),{id:m.props.id||`${u}`,active:(o==null?void 0:o.toString())===f,step:u+1,last:u===d-1,direction:n,labelDisplay:r})),!a&&u<d-1&&i.jsx(P,{grow:!0,children:i.jsx(Ht,{})})]},u)})})};Hr.Item=Xl;const Jl=Hr,$t={root:"_root_1zzd0_1",input:"_input_1zzd0_10",area:"_area_1zzd0_22",thumb:"_thumb_1zzd0_26","root--size-small":"_root--size-small_1zzd0_82","root--reversed":"_root--reversed_1zzd0_102"},Zl=e=>{var x;const{children:t,name:n,checked:o,size:r,reversed:s,defaultChecked:l,onChange:a,onFocus:d,onBlur:m,className:u,attributes:f}=e,_=I($t.root,r&&$t[`root--size-${r}`],s&&$t["root--reversed"],u),b=tt(),v=Pe((b==null?void 0:b.attributes.id)||e.id||((x=e.inputAttributes)==null?void 0:x.id)),g=p(p({},e.inputAttributes),b==null?void 0:b.attributes),w=(b==null?void 0:b.disabled)||e.disabled,y=j=>{a&&a({name:n,event:j,checked:j.target.checked})};return i.jsxs("label",z(p({},f),{className:_,children:[i.jsx("input",z(p({type:"checkbox"},g),{className:$t.input,name:n,checked:o,defaultChecked:l,disabled:w,onChange:y,onFocus:d||(g==null?void 0:g.onFocus),onBlur:m||(g==null?void 0:g.onBlur),id:v})),i.jsx("span",{className:$t.area,"aria-hidden":"true",children:i.jsx("span",{className:$t.thumb})}),t&&i.jsx(ne,{variant:"body-3",weight:"medium",children:t})]}))},Ze={root:"_root_1x4k9_1",table:"_table_1x4k9_14",row:"_row_1x4k9_20",cell:"_cell_1x4k9_24","cell--align-start":"_cell--align-start_1x4k9_1","cell--align-center":"_cell--align-center_1x4k9_1","cell--align-end":"_cell--align-end_1x4k9_1","cell--valign-start":"_cell--valign-start_1x4k9_1","cell--valign-center":"_cell--valign-center_1x4k9_1","cell--valign-end":"_cell--valign-end_1x4k9_1","--row-highlighted":"_--row-highlighted_1x4k9_54","--border-outer":"_--border-outer_1x4k9_58","--border-column":"_--border-column_1x4k9_63"},Rr=e=>{const{minWidth:t,rowSpan:n,colSpan:o,align:r,verticalAlign:s,tagName:l,padding:a,paddingInline:d,paddingBlock:m,children:u,attributes:f}=e,_=e.width==="auto"?"0px":e.width,b=En(_),v=Do(t||_),g=I(Ze.cell,b==null?void 0:b.classNames,v==null?void 0:v.classNames,r&&Ze[`cell--align-${r}`],s&&Ze[`cell--valign-${s}`]),w=p(p(p(p({},b==null?void 0:b.variables),v==null?void 0:v.variables),se("--rs-table-p-vertical",m!=null?m:a)),se("--rs-table-p-horizontal",d!=null?d:a));return i.jsx(l,z(p({},f),{className:g,rowSpan:n,colSpan:o,style:w,children:u}))},Ql=e=>i.jsx(Rr,z(p({},e),{tagName:"td"})),ea=e=>i.jsx(Rr,z(p({},e),{tagName:"th"})),ta=e=>{const{highlighted:t,children:n,attributes:o}=e,r=I(Ze.row,t&&Ze["--row-highlighted"]);return i.jsx("tr",z(p({},o),{className:r,children:n}))},bo=e=>i.jsx("tbody",{children:e.children}),Ur=e=>i.jsx("thead",{children:e.children}),zt=e=>{const{children:t,border:n,columnBorder:o,className:r,attributes:s}=e,l=I(Ze.root,r,n&&Ze["--border-outer"],o&&Ze["--border-column"]),[a]=c.Children.toArray(t);return i.jsx("div",z(p({},s),{className:l,children:i.jsx("table",{className:Ze.table,children:c.isValidElement(a)&&(a.type===bo||a.type===Ur)?t:i.jsx(bo,{children:t})})}))};zt.Cell=Ql,zt.Heading=ea,zt.Row=ta,zt.Body=bo,zt.Head=Ur;const na=zt,Yr=c.createContext({}),oa=Yr.Provider,go=e=>{const o=c.useContext(Yr),{id:t}=o,n=Se(o,["id"]);return z(p({},n),{panelId:e!==void 0?`${t}-tabs-panel-${e}`:void 0,buttonId:e!==void 0?`${t}-tabs-button-${e}`:void 0})},Gr=e=>{const{children:t,value:n,onChange:o,onSilentChange:r,itemWidth:s,variant:l,name:a,direction:d="row",size:m="medium"}=e,u=Pe(),f=c.useRef(null),_=c.useRef(f.current),b=c.useRef(null),[v,g]=c.useState({scaleX:0,scaleY:0,left:0,top:0,status:"idle"}),w=y=>{y!==void 0&&r&&r({value:y,name:a})};return i.jsx(oa,{value:{value:n,name:a,size:m,direction:d,itemWidth:s,variant:l,onChange:o,id:u,setDefaultValue:w,elActiveRef:f,elPrevActiveRef:_,elScrollableRef:b,selection:v,setSelection:g},children:t})},ra=e=>{const{defaultValue:t,onChange:n}=e,[o,r]=c.useState(t),s=({value:a})=>{r(a),n&&n({value:a})},l=({value:a})=>{r(a)};return i.jsx(Gr,z(p({},e),{onChange:s,onSilentChange:l,value:o,defaultValue:void 0}))},ie={root:"_root_mz4y6_1",list:"_list_mz4y6_12",inner:"_inner_mz4y6_16",listItem:"_listItem_mz4y6_23",button:"_button_mz4y6_30",buttonContent:"_buttonContent_mz4y6_46",icon:"_icon_mz4y6_59",radio:"_radio_mz4y6_64","--item-active":"_--item-active_mz4y6_72",selector:"_selector_mz4y6_77","--selector-hidden":"_--selector-hidden_mz4y6_95","--selector-animated":"_--selector-animated_mz4y6_99",next:"_next_mz4y6_104",prev:"_prev_mz4y6_105",panel:"_panel_mz4y6_125","--panel-hidden":"_--panel-hidden_mz4y6_133","--direction-row":"_--direction-row_mz4y6_137","--direction-column":"_--direction-column_mz4y6_205",item:"_item_mz4y6_223","--variant-borderless":"_--variant-borderless_mz4y6_258","--variant-pills":"_--variant-pills_mz4y6_259","--variant-pills-elevated":"_--variant-pills-elevated_mz4y6_260","--size-medium":"_--size-medium_mz4y6_331","--size-large":"_--size-large_mz4y6_336","--item-width-equal":"_--item-width-equal_mz4y6_341","--cut-off-start":"_--cut-off-start_mz4y6_360","--cut-off-end":"_--cut-off-end_mz4y6_361","--cut-off-both":"_--cut-off-both_mz4y6_382"},sa=(e,t)=>{const{value:n,children:o,icon:r,href:s,attributes:l}=e,{onChange:a,panelId:d,name:m,size:u,value:f,selection:_,elActiveRef:b,elPrevActiveRef:v,elScrollableRef:g}=go(n),w=c.useRef(null),y=f===n,x=y&&_.status==="idle",j=I(ie.item,x&&ie["--item-active"]),C=!!m,N={role:"tab",tabIndex:y?0:-1,"aria-selected":y},S=c.useCallback(()=>{if(!("current"in w))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");v.current=b.current,b.current=w.current},[b,v]),k=()=>{var L,U,W;if(s&&!a)return;const $=g.current,A=(L=w.current)==null?void 0:L.parentElement,M=(U=b.current)==null?void 0:U.parentElement;if(S(),a&&a({value:n,name:m}),!$||!A||!M||$.scrollWidth===$.clientWidth)return;const q=A.offsetLeft<M.offsetLeft,O=(A.offsetLeft-$.scrollLeft)/$.clientWidth;(q?O<.3:O>.5)&&((W=w.current)==null||W.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return c.useEffect(()=>{y&&S()},[y,S]),i.jsx("div",z(p({},l),{className:j,ref:w,role:"presentation",children:i.jsxs(De,{ref:t,href:s,insetFocus:!0,onClick:m?void 0:k,className:ie.button,as:m?"label":void 0,attributes:z(p({},!C&&N),{"aria-controls":d}),children:[m&&i.jsx(uo,{type:"radio",name:m,value:n,checked:x,onChange:k,className:ie.radio}),i.jsxs("span",{className:ie.buttonContent,children:[r&&i.jsx(ue,{svg:r,className:ie.icon,size:4}),o&&i.jsx(ne,{variant:u==="large"?"body-2":"body-3",children:o})]})]})}))},Kr=c.forwardRef(sa),Xr=(e,t)=>e===t||!e?null:e.classList.contains(ie.listItem)?e:Xr(e.parentElement,t),ia=e=>{const{children:t,className:n,attributes:o}=e,{value:r,setDefaultValue:s,itemWidth:l,variant:a,name:d,direction:m,size:u,selection:f,setSelection:_,elActiveRef:b,elPrevActiveRef:v,elScrollableRef:g}=go(),[w]=ot(),[y,x]=c.useState(null),j=I(ie.root,u&&ie[`--size-${u}`],m&&ie[`--direction-${m}`],l&&ie[`--item-width-${l}`],a&&ie[`--variant-${a}`],y&&ie[`--cut-off-${y}`],n),C=I(ie.selector,f.status==="idle"&&ie["--selector-hidden"],f.status==="animated"&&ie["--selector-animated"]),N=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?-1:1),behavior:"smooth"})},S=()=>{g.current.scrollBy({left:Math.ceil(g.current.clientWidth/2)*(w?1:-1),behavior:"smooth"})},k=()=>{_(M=>z(p({},M),{status:"idle"}))},$=c.useCallback(M=>{if(!g.current)return null;const q=Xr(M,g.current);return q?{scaleX:q.clientWidth,scaleY:q.clientHeight,top:q.offsetTop,left:q.offsetLeft}:null},[g]),{ref:A}=nt({"ArrowLeft, ArrowUp":M=>{d||(M.preventDefault(),Gs(g.current))},"ArrowRight, ArrowDown":M=>{d||(M.preventDefault(),Ys(g.current))},Home:M=>{d||(M.preventDefault(),Ks(g.current))},End:M=>{d||(M.preventDefault(),Xs(g.current))}});return ae(()=>{if(r)return;const M=c.Children.toArray(t)[0];!M||M.type!==Kr||s(M.props.value)},[r]),ae(()=>{if(!v.current||v.current===b.current)return;const M=$(v.current);M&&_(z(p({},M),{status:"prepared"}))},[r,$]),ae(()=>{if(f.status!=="prepared"||!b.current)return;const M=$(b.current);M&&_(z(p({},M),{status:"animated"}))},[f]),ae(()=>{const M=g.current;if(!M||m==="column")return;const q=()=>{M.clientWidth<M.scrollWidth||x(null);const L=M.scrollLeft*(w?-1:1),U=L>1,W=L+M.clientWidth<M.scrollWidth-1;if(W&&U)return x("both");if(U)return x("start");if(W)return x("end")},O=_s(q,100);return requestAnimationFrame(()=>{q()}),window.addEventListener("resize",O),M.addEventListener("scroll",O),()=>{window.removeEventListener("resize",O),M.removeEventListener("scroll",O)}},[w]),i.jsxs("div",z(p({},o),{className:j,children:[i.jsx("div",{className:ie.inner,ref:g,children:i.jsxs("div",{className:ie.list,role:"tablist",ref:A,children:[c.Children.map(t,(M,q)=>M?i.jsx("div",{className:ie.listItem,children:M},M.props.value||M.key||q):null),i.jsx("div",{onTransitionEnd:k,className:C,style:{"--rs-tab-selection-x":f.left,"--rs-tab-selection-y":f.top,"--rs-tab-selection-scale-x":f.scaleX,"--rs-tab-selection-scale-y":f.scaleY}})]})}),(y==="start"||y==="both")&&i.jsx("span",{className:ie.prev,children:i.jsx(ve,{onClick:S,size:"small",icon:un,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})}),(y==="end"||y==="both")&&i.jsx("span",{className:ie.next,children:i.jsx(ve,{onClick:N,size:"small",icon:wt,rounded:!0,attributes:{"aria-hidden":!0,tabIndex:-1}})})]}))},la=e=>{const{value:t,children:n}=e,{value:o,panelId:r,buttonId:s}=go(t),l=t===o,a=I(ie.panel,!l&&ie["--panel-hidden"]);return i.jsx("div",{className:a,tabIndex:0,role:"tabpanel",id:r,"aria-labelledby":s,children:l&&n})},bn=e=>{const{value:t}=e;return t!==void 0?i.jsx(Gr,p({},e)):i.jsx(ra,p({},e))};bn.Item=Kr,bn.List=ia,bn.Panel=la;const aa=bn,mt={root:"_root_2v7p2_1",input:"_input_2v7p2_13","--size-medium":"_--size-medium_2v7p2_1","--size-large":"_--size-large_2v7p2_1","--size-xlarge":"_--size-xlarge_2v7p2_1","--variant-faded":"_--variant-faded_2v7p2_80","--variant-headless":"_--variant-headless_2v7p2_91","--status-error":"_--status-error_2v7p2_98","--resize-none":"_--resize-none_2v7p2_117","--resize-auto":"_--resize-auto_2v7p2_118","--size-medium--m":"_--size-medium--m_2v7p2_1","--size-large--m":"_--size-large--m_2v7p2_1","--size-xlarge--m":"_--size-xlarge--m_2v7p2_1","--size-medium--l":"_--size-medium--l_2v7p2_1","--size-large--l":"_--size-large--l_2v7p2_1","--size-xlarge--l":"_--size-xlarge--l_2v7p2_1","--size-medium--xl":"_--size-medium--xl_2v7p2_1","--size-large--xl":"_--size-large--xl_2v7p2_1","--size-xlarge--xl":"_--size-xlarge--xl_2v7p2_1"},Jr=e=>{var k,$;const{onChange:t,onFocus:n,onBlur:o,name:r,value:s,defaultValue:l,placeholder:a,size:d="medium",variant:m="outline",resize:u,className:f,attributes:_}=e,[b,v]=c.useState(s||l||""),g=tt(),w=Pe(e.id),y=((k=g==null?void 0:g.attributes)==null?void 0:k.id)||(($=e.inputAttributes)==null?void 0:$.id)||w,x=(g==null?void 0:g.disabled)||e.disabled,j=(g==null?void 0:g.hasError)||e.hasError,C=p(p({},e.inputAttributes),g==null?void 0:g.attributes),N=I(mt.root,d&&X(mt,"--size",d),j&&mt["--status-error"],x&&mt["--disabled"],m&&mt[`--variant-${m}`],u!==void 0&&mt[`--resize-${u}`],f),S=A=>{const M=A.target.value;t==null||t({name:r,value:M,event:A}),u==="auto"&&typeof s!="string"&&v(M)};return c.useEffect(()=>{typeof s!="string"||u!=="auto"||v(s)},[s,u]),i.jsx("div",z(p({},_),{"data-rs-aligner-target":!0,className:N,"data-rs-textarea-value":b,children:i.jsx("textarea",z(p({rows:3},C),{className:mt.input,disabled:x,name:r,placeholder:a,value:s,defaultValue:l,onChange:S,onFocus:n||(C==null?void 0:C.onFocus),onBlur:o||(C==null?void 0:C.onBlur),id:y}))}))};Jr.Aligner=Yt;const ca=Jr,vo={item:"_item_gwbgg_1","item--full-width":"_item--full-width_gwbgg_1",marker:"_marker_gwbgg_36"},po=e=>{const{children:t,markerSlot:n,className:o,attributes:r}=e,s=n!==null,l=I(vo.item,!s&&vo["item--full-width"],o);return i.jsxs(P,{as:"li",direction:"row",align:"stretch",gap:3,attributes:r,className:l,children:[s&&i.jsx("span",{className:vo.marker,children:n}),i.jsx(P.Item,{grow:!0,children:t})]})},Zr=e=>{const{children:t,className:n,attributes:o}=e,r=I(n);return i.jsx("ul",z(p({},o),{className:r,children:c.Children.map(t,(s,l)=>(s==null?void 0:s.type)===po?s:i.jsx(po,{children:s},l))}))};Zr.Item=po;const da=Zr,ua={root:"_root_9090g_1"},_a=e=>{const{id:t,text:n,children:o,onOpen:r,onClose:s,position:l="bottom",active:a}=e;return i.jsxs(yt,{id:t,active:a,position:l,onOpen:r,onClose:s,triggerType:"hover",children:[i.jsx(yt.Trigger,{children:o}),i.jsx(yt.Content,{children:i.jsx(pt,{colorMode:"inverted",children:i.jsx(ne,{variant:"caption-1",className:ua.root,children:n})})})]})},ma=e=>{const{w:t="auto",h:n=50,children:o}=e;return i.jsx("div",{style:{width:t,height:n,minWidth:n,padding:"var(--rs-unit-x2)",background:"rgba(var(--rs-color-rgb-background-neutral), 0.32)",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--rs-unit-radius-small)"},children:o})};T.Accordion=Is,T.ActionBar=As,T.Actionable=De,T.Alert=Ls,T.Autocomplete=Mi,T.Avatar=Si,T.Badge=Ii,T.Breadcrumbs=vr,T.Button=ve,T.Calendar=Qi,T.Card=el,T.Carousel=tl,T.Checkbox=il,T.CheckboxGroup=sl,T.Container=al,T.Dismissible=cl,T.Divider=Ht,T.DropdownMenu=qt,T.FileUpload=ul,T.FormControl=Ws,T.Hidden=ht,T.HiddenVisually=ao,T.Hotkey=_l,T.Icon=ue,T.Image=ml,T.Link=gr,T.Loader=hr,T.MenuItem=cr,T.Modal=pl,T.Overlay=Dr,T.Pagination=yl,T.Placeholder=ma,T.Popover=ln,T.Progress=wl,T.Radio=$l,T.RadioGroup=kl,T.Reshaped=Pl,T.Scrim=Fl,T.ScrollArea=Vl,T.Select=Bl,T.Skeleton=Hl,T.Slider=Yl,T.Stepper=Jl,T.Switch=Zl,T.Table=na,T.Tabs=aa,T.Text=ne,T.TextArea=ca,T.TextField=Wo,T.Theme=pt,T.Timeline=da,T.Tooltip=_a,T.View=P,T.classNames=I,T.responsiveClassNames=X,T.responsivePropDependency=Le,T.useFormControl=tt,T.useHotkeys=nt,T.useIsomorphicLayoutEffect=ae,T.useRTL=ot,T.useResponsiveClientValue=Mr,T.useScrollLock=Sr,T.useTheme=sr,T.useToast=zl,T.useToggle=_n,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|
@@ -9,7 +9,7 @@ import Button from "../Button/index.js";
|
|
9
9
|
import IconChevronRight from "../../icons/ChevronRight.js";
|
10
10
|
import IconDotsHorizontal from "../../icons/DotsHorizontal.js";
|
11
11
|
const Breadcrumbs = (props) => {
|
12
|
-
const { children, separator, color, defaultVisibleItems, ariaLabel, className, attributes } = props;
|
12
|
+
const { children, separator, color, defaultVisibleItems, disableExpand, ariaLabel, className, attributes, } = props;
|
13
13
|
const visibleItems = defaultVisibleItems && defaultVisibleItems >= 2 ? defaultVisibleItems : null;
|
14
14
|
const [expanded, setExpanded] = React.useState(false);
|
15
15
|
const rootClassNames = classNames(className);
|
@@ -32,7 +32,7 @@ const Breadcrumbs = (props) => {
|
|
32
32
|
itemNode = child;
|
33
33
|
}
|
34
34
|
else if (isCollapseButton) {
|
35
|
-
itemNode = (_jsx(Button.Aligner, { children: _jsx(Button, { variant: "ghost", size: "small", icon: IconDotsHorizontal, onClick: handleExpand }) }));
|
35
|
+
itemNode = disableExpand ? (_jsx(Icon, { svg: IconDotsHorizontal, size: 4 })) : (_jsx(Button.Aligner, { children: _jsx(Button, { variant: "ghost", size: "small", icon: IconDotsHorizontal, onClick: handleExpand }) }));
|
36
36
|
}
|
37
37
|
if (itemNode === null)
|
38
38
|
return null;
|
@@ -90,6 +90,16 @@ export const collapsed = () => (<Example>
|
|
90
90
|
<Breadcrumbs.Item>Item 5</Breadcrumbs.Item>
|
91
91
|
</Breadcrumbs>
|
92
92
|
</Example.Item>
|
93
|
+
|
94
|
+
<Example.Item title="collapsed, 3 items shown by default, not expandable">
|
95
|
+
<Breadcrumbs defaultVisibleItems={3} ariaLabel="breadcrumb with 3 items" disableExpand>
|
96
|
+
<Breadcrumbs.Item onClick={() => { }}>Item 1</Breadcrumbs.Item>
|
97
|
+
<Breadcrumbs.Item onClick={() => { }}>Item 2</Breadcrumbs.Item>
|
98
|
+
<Breadcrumbs.Item onClick={() => { }}>Item 3</Breadcrumbs.Item>
|
99
|
+
<Breadcrumbs.Item onClick={() => { }}>Item 4</Breadcrumbs.Item>
|
100
|
+
<Breadcrumbs.Item>Item 5</Breadcrumbs.Item>
|
101
|
+
</Breadcrumbs>
|
102
|
+
</Example.Item>
|
93
103
|
</Example>);
|
94
104
|
export const edgeCases = () => (<Example>
|
95
105
|
<Example.Item title="wraps content when multiline">
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "reshaped",
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
4
|
-
"version": "2.10.
|
4
|
+
"version": "2.10.3",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"email": "hello@reshaped.so",
|
7
7
|
"homepage": "https://reshaped.so",
|