skillgrid 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const b=require("react"),$=require("clsx"),wr=require("rc-tooltip");function Cr(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const Pt=Cr(b);function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Oe={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const b=require("react"),E=require("clsx"),wr=require("rc-tooltip");function Cr(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const Bt=Cr(b);function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},Ae={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
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 vt;function Lr(){if(vt)return Oe;vt=1;var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(d,c,f){var p,g={},x=null,h=null;f!==void 0&&(x=""+f),c.key!==void 0&&(x=""+c.key),c.ref!==void 0&&(h=c.ref);for(p in c)s.call(c,p)&&!o.hasOwnProperty(p)&&(g[p]=c[p]);if(d&&d.defaultProps)for(p in c=d.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:a,type:d,key:x,ref:h,props:g,_owner:i.current}}return Oe.Fragment=r,Oe.jsx=l,Oe.jsxs=l,Oe}var De={};/**
9
+ */var vt;function Lr(){if(vt)return Ae;vt=1;var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function l(d,c,f){var p,g={},x=null,h=null;f!==void 0&&(x=""+f),c.key!==void 0&&(x=""+c.key),c.ref!==void 0&&(h=c.ref);for(p in c)s.call(c,p)&&!n.hasOwnProperty(p)&&(g[p]=c[p]);if(d&&d.defaultProps)for(p in c=d.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:a,type:d,key:x,ref:h,props:g,_owner:i.current}}return Ae.Fragment=r,Ae.jsx=l,Ae.jsxs=l,Ae}var Pe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wt;function Er(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y=Symbol.iterator,L="@@iterator";function v(t){if(t===null||typeof t!="object")return null;var u=y&&t[y]||t[L];return typeof u=="function"?u:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var u=arguments.length,m=new Array(u>1?u-1:0),k=1;k<u;k++)m[k-1]=arguments[k];C("error",t,m)}}function C(t,u,m){{var k=w.ReactDebugCurrentFrame,q=k.getStackAddendum();q!==""&&(u+="%s",m=m.concat([q]));var z=m.map(function(N){return String(N)});z.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,z)}}var E=!1,R=!1,j=!1,M=!1,O=!1,D;D=Symbol.for("react.module.reference");function U(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===o||O||t===i||t===f||t===p||M||t===h||E||R||j||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===g||t.$$typeof===l||t.$$typeof===d||t.$$typeof===c||t.$$typeof===D||t.getModuleId!==void 0))}function W(t,u,m){var k=t.displayName;if(k)return k;var q=u.displayName||u.name||"";return q!==""?m+"("+q+")":m}function P(t){return t.displayName||"Context"}function S(t){if(t==null)return null;if(typeof t.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case d:var u=t;return P(u)+".Consumer";case l:var m=t;return P(m._context)+".Provider";case c:return W(t,t.render,"ForwardRef");case g:var k=t.displayName||null;return k!==null?k:S(t.type)||"Memo";case x:{var q=t,z=q._payload,N=q._init;try{return S(N(z))}catch{return null}}}return null}var T=Object.assign,B=0,F,H,Q,ie,Y,ce,ee;function ve(){}ve.__reactDisabledLog=!0;function Ae(){{if(B===0){F=console.log,H=console.info,Q=console.warn,ie=console.error,Y=console.group,ce=console.groupCollapsed,ee=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}B++}}function ge(){{if(B--,B===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},t,{value:F}),info:T({},t,{value:H}),warn:T({},t,{value:Q}),error:T({},t,{value:ie}),group:T({},t,{value:Y}),groupCollapsed:T({},t,{value:ce}),groupEnd:T({},t,{value:ee})})}B<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=w.ReactCurrentDispatcher,ke;function Ce(t,u,m){{if(ke===void 0)try{throw Error()}catch(q){var k=q.stack.trim().match(/\n( *(at )?)/);ke=k&&k[1]||""}return`
18
- `+ke+t}}var qe=!1,je;{var Ge=typeof WeakMap=="function"?WeakMap:Map;je=new Ge}function Be(t,u){if(!t||qe)return"";{var m=je.get(t);if(m!==void 0)return m}var k;qe=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=Ee.current,Ee.current=null,Ae();try{if(u){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(ae){k=ae}Reflect.construct(t,[],N)}else{try{N.call()}catch(ae){k=ae}t.call(N.prototype)}}else{try{throw Error()}catch(ae){k=ae}t()}}catch(ae){if(ae&&k&&typeof ae.stack=="string"){for(var I=ae.stack.split(`
19
- `),te=k.stack.split(`
20
- `),G=I.length-1,Z=te.length-1;G>=1&&Z>=0&&I[G]!==te[Z];)Z--;for(;G>=1&&Z>=0;G--,Z--)if(I[G]!==te[Z]){if(G!==1||Z!==1)do if(G--,Z--,Z<0||I[G]!==te[Z]){var de=`
21
- `+I[G].replace(" at new "," at ");return t.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",t.displayName)),typeof t=="function"&&je.set(t,de),de}while(G>=1&&Z>=0);break}}}finally{qe=!1,Ee.current=z,ge(),Error.prepareStackTrace=q}var Re=t?t.displayName||t.name:"",Se=Re?Ce(Re):"";return typeof t=="function"&&je.set(t,Se),Se}function Ze(t,u,m){return Be(t,!1)}function Ye(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function J(t,u,m){if(t==null)return"";if(typeof t=="function")return Be(t,Ye(t));if(typeof t=="string")return Ce(t);switch(t){case f:return Ce("Suspense");case p:return Ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case c:return Ze(t.render);case g:return J(t.type,u,m);case x:{var k=t,q=k._payload,z=k._init;try{return J(z(q),u,m)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,fe={},lt=w.ReactDebugCurrentFrame;function ze(t){if(t){var u=t._owner,m=J(t.type,t._source,u?u.type:null);lt.setExtraStackFrame(m)}else lt.setExtraStackFrame(null)}function er(t,u,m,k,q){{var z=Function.call.bind(K);for(var N in t)if(z(t,N)){var I=void 0;try{if(typeof t[N]!="function"){var te=Error((k||"React class")+": "+m+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}I=t[N](u,N,k,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){I=G}I&&!(I instanceof Error)&&(ze(q),_("%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).",k||"React class",m,N,typeof I),ze(null)),I instanceof Error&&!(I.message in fe)&&(fe[I.message]=!0,ze(q),_("Failed %s type: %s",m,I.message),ze(null))}}}var tr=Array.isArray;function Je(t){return tr(t)}function rr(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,m=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return m}}function ar(t){try{return ct(t),!1}catch{return!0}}function ct(t){return""+t}function dt(t){if(ar(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(t)),ct(t)}var ut=w.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},_t,pt;function nr(t){if(K.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function or(t){if(K.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function ir(t,u){typeof t.ref=="string"&&ut.current}function lr(t,u){{var m=function(){_t||(_t=!0,_("%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)",u))};m.isReactWarning=!0,Object.defineProperty(t,"key",{get:m,configurable:!0})}}function cr(t,u){{var m=function(){pt||(pt=!0,_("%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)",u))};m.isReactWarning=!0,Object.defineProperty(t,"ref",{get:m,configurable:!0})}}var dr=function(t,u,m,k,q,z,N){var I={$$typeof:a,type:t,key:u,ref:m,props:N,_owner:z};return I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(I,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(I,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I};function ur(t,u,m,k,q){{var z,N={},I=null,te=null;m!==void 0&&(dt(m),I=""+m),or(u)&&(dt(u.key),I=""+u.key),nr(u)&&(te=u.ref,ir(u,q));for(z in u)K.call(u,z)&&!sr.hasOwnProperty(z)&&(N[z]=u[z]);if(t&&t.defaultProps){var G=t.defaultProps;for(z in G)N[z]===void 0&&(N[z]=G[z])}if(I||te){var Z=typeof t=="function"?t.displayName||t.name||"Unknown":t;I&&lr(N,Z),te&&cr(N,Z)}return dr(t,I,te,q,k,ut.current,N)}}var Ke=w.ReactCurrentOwner,ft=w.ReactDebugCurrentFrame;function $e(t){if(t){var u=t._owner,m=J(t.type,t._source,u?u.type:null);ft.setExtraStackFrame(m)}else ft.setExtraStackFrame(null)}var Xe;Xe=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function bt(){{if(Ke.current){var t=S(Ke.current.type);if(t)return`
17
+ */var wt;function kr(){return wt||(wt=1,process.env.NODE_ENV!=="production"&&function(){var e=b,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator,L="@@iterator";function v(t){if(t===null||typeof t!="object")return null;var u=m&&t[m]||t[L];return typeof u=="function"?u:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var u=arguments.length,y=new Array(u>1?u-1:0),j=1;j<u;j++)y[j-1]=arguments[j];C("error",t,y)}}function C(t,u,y){{var j=w.ReactDebugCurrentFrame,z=j.getStackAddendum();z!==""&&(u+="%s",y=y.concat([z]));var q=y.map(function(O){return String(O)});q.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,q)}}var k=!1,R=!1,$=!1,T=!1,A=!1,P;P=Symbol.for("react.module.reference");function F(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===n||A||t===i||t===f||t===p||T||t===h||k||R||$||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===g||t.$$typeof===l||t.$$typeof===d||t.$$typeof===c||t.$$typeof===P||t.getModuleId!==void 0))}function H(t,u,y){var j=t.displayName;if(j)return j;var z=u.displayName||u.name||"";return z!==""?y+"("+z+")":y}function B(t){return t.displayName||"Context"}function S(t){if(t==null)return null;if(typeof t.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case r:return"Portal";case n:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case d:var u=t;return B(u)+".Consumer";case l:var y=t;return B(y._context)+".Provider";case c:return H(t,t.render,"ForwardRef");case g:var j=t.displayName||null;return j!==null?j:S(t.type)||"Memo";case x:{var z=t,q=z._payload,O=z._init;try{return S(O(q))}catch{return null}}}return null}var M=Object.assign,D=0,W,U,Q,le,ae,ee,te;function ge(){}ge.__reactDisabledLog=!0;function Oe(){{if(D===0){W=console.log,U=console.info,Q=console.warn,le=console.error,ae=console.group,ee=console.groupCollapsed,te=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}D++}}function ke(){{if(D--,D===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},t,{value:W}),info:M({},t,{value:U}),warn:M({},t,{value:Q}),error:M({},t,{value:le}),group:M({},t,{value:ae}),groupCollapsed:M({},t,{value:ee}),groupEnd:M({},t,{value:te})})}D<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=w.ReactCurrentDispatcher,je;function Ce(t,u,y){{if(je===void 0)try{throw Error()}catch(z){var j=z.stack.trim().match(/\n( *(at )?)/);je=j&&j[1]||""}return`
18
+ `+je+t}}var ze=!1,$e;{var Ue=typeof WeakMap=="function"?WeakMap:Map;$e=new Ue}function De(t,u){if(!t||ze)return"";{var y=$e.get(t);if(y!==void 0)return y}var j;ze=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=fe.current,fe.current=null,Oe();try{if(u){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(se){j=se}Reflect.construct(t,[],O)}else{try{O.call()}catch(se){j=se}t.call(O.prototype)}}else{try{throw Error()}catch(se){j=se}t()}}catch(se){if(se&&j&&typeof se.stack=="string"){for(var N=se.stack.split(`
19
+ `),re=j.stack.split(`
20
+ `),G=N.length-1,X=re.length-1;G>=1&&X>=0&&N[G]!==re[X];)X--;for(;G>=1&&X>=0;G--,X--)if(N[G]!==re[X]){if(G!==1||X!==1)do if(G--,X--,X<0||N[G]!==re[X]){var ue=`
21
+ `+N[G].replace(" at new "," at ");return t.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",t.displayName)),typeof t=="function"&&$e.set(t,ue),ue}while(G>=1&&X>=0);break}}}finally{ze=!1,fe.current=q,ke(),Error.prepareStackTrace=z}var Re=t?t.displayName||t.name:"",Se=Re?Ce(Re):"";return typeof t=="function"&&$e.set(t,Se),Se}function Ge(t,u,y){return De(t,!1)}function Xe(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function Y(t,u,y){if(t==null)return"";if(typeof t=="function")return De(t,Xe(t));if(typeof t=="string")return Ce(t);switch(t){case f:return Ce("Suspense");case p:return Ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case c:return Ge(t.render);case g:return Y(t.type,u,y);case x:{var j=t,z=j._payload,q=j._init;try{return Y(q(z),u,y)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,be={},lt=w.ReactDebugCurrentFrame;function qe(t){if(t){var u=t._owner,y=Y(t.type,t._source,u?u.type:null);lt.setExtraStackFrame(y)}else lt.setExtraStackFrame(null)}function er(t,u,y,j,z){{var q=Function.call.bind(J);for(var O in t)if(q(t,O)){var N=void 0;try{if(typeof t[O]!="function"){var re=Error((j||"React class")+": "+y+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw re.name="Invariant Violation",re}N=t[O](u,O,j,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){N=G}N&&!(N instanceof Error)&&(qe(z),_("%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).",j||"React class",y,O,typeof N),qe(null)),N instanceof Error&&!(N.message in be)&&(be[N.message]=!0,qe(z),_("Failed %s type: %s",y,N.message),qe(null))}}}var tr=Array.isArray;function Ye(t){return tr(t)}function rr(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,y=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return y}}function ar(t){try{return ct(t),!1}catch{return!0}}function ct(t){return""+t}function dt(t){if(ar(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rr(t)),ct(t)}var ut=w.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0},_t,pt;function or(t){if(J.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function nr(t){if(J.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function ir(t,u){typeof t.ref=="string"&&ut.current}function lr(t,u){{var y=function(){_t||(_t=!0,_("%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)",u))};y.isReactWarning=!0,Object.defineProperty(t,"key",{get:y,configurable:!0})}}function cr(t,u){{var y=function(){pt||(pt=!0,_("%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)",u))};y.isReactWarning=!0,Object.defineProperty(t,"ref",{get:y,configurable:!0})}}var dr=function(t,u,y,j,z,q,O){var N={$$typeof:a,type:t,key:u,ref:y,props:O,_owner:q};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function ur(t,u,y,j,z){{var q,O={},N=null,re=null;y!==void 0&&(dt(y),N=""+y),nr(u)&&(dt(u.key),N=""+u.key),or(u)&&(re=u.ref,ir(u,z));for(q in u)J.call(u,q)&&!sr.hasOwnProperty(q)&&(O[q]=u[q]);if(t&&t.defaultProps){var G=t.defaultProps;for(q in G)O[q]===void 0&&(O[q]=G[q])}if(N||re){var X=typeof t=="function"?t.displayName||t.name||"Unknown":t;N&&lr(O,X),re&&cr(O,X)}return dr(t,N,re,z,j,ut.current,O)}}var Je=w.ReactCurrentOwner,ft=w.ReactDebugCurrentFrame;function Ee(t){if(t){var u=t._owner,y=Y(t.type,t._source,u?u.type:null);ft.setExtraStackFrame(y)}else ft.setExtraStackFrame(null)}var Ke;Ke=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function bt(){{if(Je.current){var t=S(Je.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function _r(t){return""}var gt={};function pr(t){{var u=bt();if(!u){var m=typeof t=="string"?t:t.displayName||t.name;m&&(u=`
23
+ Check the render method of \``+t+"`."}return""}}function _r(t){return""}var gt={};function pr(t){{var u=bt();if(!u){var y=typeof t=="string"?t:t.displayName||t.name;y&&(u=`
24
24
 
25
- Check the top-level render call using <`+m+">.")}return u}}function ht(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var m=pr(u);if(gt[m])return;gt[m]=!0;var k="";t&&t._owner&&t._owner!==Ke.current&&(k=" It was passed a child from "+S(t._owner.type)+"."),$e(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,k),$e(null)}}function mt(t,u){{if(typeof t!="object")return;if(Je(t))for(var m=0;m<t.length;m++){var k=t[m];Qe(k)&&ht(k,u)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var q=v(t);if(typeof q=="function"&&q!==t.entries)for(var z=q.call(t),N;!(N=z.next()).done;)Qe(N.value)&&ht(N.value,u)}}}function fr(t){{var u=t.type;if(u==null||typeof u=="string")return;var m;if(typeof u=="function")m=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===c||u.$$typeof===g))m=u.propTypes;else return;if(m){var k=S(u);er(m,t.props,"prop",k,t)}else if(u.PropTypes!==void 0&&!Xe){Xe=!0;var q=S(u);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function br(t){{for(var u=Object.keys(t.props),m=0;m<u.length;m++){var k=u[m];if(k!=="children"&&k!=="key"){$e(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),$e(null);break}}t.ref!==null&&($e(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var yt={};function xt(t,u,m,k,q,z){{var N=U(t);if(!N){var I="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(I+=" 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 te=_r();te?I+=te:I+=bt();var G;t===null?G="null":Je(t)?G="array":t!==void 0&&t.$$typeof===a?(G="<"+(S(t.type)||"Unknown")+" />",I=" Did you accidentally export a JSX literal instead of a component?"):G=typeof t,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,I)}var Z=ur(t,u,m,q,z);if(Z==null)return Z;if(N){var de=u.children;if(de!==void 0)if(k)if(Je(de)){for(var Re=0;Re<de.length;Re++)mt(de[Re],t);Object.freeze&&Object.freeze(de)}else _("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 mt(de,t)}if(K.call(u,"key")){var Se=S(t),ae=Object.keys(u).filter(function(vr){return vr!=="key"}),et=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!yt[Se+et]){var xr=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+y+">.")}return u}}function ht(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var y=pr(u);if(gt[y])return;gt[y]=!0;var j="";t&&t._owner&&t._owner!==Je.current&&(j=" It was passed a child from "+S(t._owner.type)+"."),Ee(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,j),Ee(null)}}function yt(t,u){{if(typeof t!="object")return;if(Ye(t))for(var y=0;y<t.length;y++){var j=t[y];Qe(j)&&ht(j,u)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var z=v(t);if(typeof z=="function"&&z!==t.entries)for(var q=z.call(t),O;!(O=q.next()).done;)Qe(O.value)&&ht(O.value,u)}}}function fr(t){{var u=t.type;if(u==null||typeof u=="string")return;var y;if(typeof u=="function")y=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===c||u.$$typeof===g))y=u.propTypes;else return;if(y){var j=S(u);er(y,t.props,"prop",j,t)}else if(u.PropTypes!==void 0&&!Ke){Ke=!0;var z=S(u);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function br(t){{for(var u=Object.keys(t.props),y=0;y<u.length;y++){var j=u[y];if(j!=="children"&&j!=="key"){Ee(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),Ee(null);break}}t.ref!==null&&(Ee(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var mt={};function xt(t,u,y,j,z,q){{var O=F(t);if(!O){var N="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(N+=" 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 re=_r();re?N+=re:N+=bt();var G;t===null?G="null":Ye(t)?G="array":t!==void 0&&t.$$typeof===a?(G="<"+(S(t.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):G=typeof t,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,N)}var X=ur(t,u,y,z,q);if(X==null)return X;if(O){var ue=u.children;if(ue!==void 0)if(j)if(Ye(ue)){for(var Re=0;Re<ue.length;Re++)yt(ue[Re],t);Object.freeze&&Object.freeze(ue)}else _("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 yt(ue,t)}if(J.call(u,"key")){var Se=S(t),se=Object.keys(u).filter(function(vr){return vr!=="key"}),et=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!mt[Se+et]){var xr=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,et,Se,xr,Se),yt[Se+et]=!0}}return t===s?br(Z):fr(Z),Z}}function gr(t,u,m){return xt(t,u,m,!0)}function hr(t,u,m){return xt(t,u,m,!1)}var mr=hr,yr=gr;De.Fragment=s,De.jsx=mr,De.jsxs=yr}()),De}var Ct;function kr(){return Ct||(Ct=1,process.env.NODE_ENV==="production"?Ue.exports=Lr():Ue.exports=Er()),Ue.exports}var n=kr();const jr=e=>e.as==="a",$r=e=>e.as===void 0||e.as==="button",Me=e=>e.displayAs===void 0||e.displayAs==="button",tt=e=>e.displayAs==="link",Rr="_button_6bymk_1",Mr="_link_6bymk_17",Ir="_disabled_6bymk_22",Tr="_loading_6bymk_22",Nr="_neutral_6bymk_50",Ar="_accent_6bymk_54",Or="_positive_6bymk_58",Dr="_negative_6bymk_62",Pr="_contrast_6bymk_66",qr="_special_6bymk_70",Br="_primary_6bymk_74",zr="_secondary_6bymk_75",Ur="_tertiary_6bymk_76",Fr="_spaceBetween_6bymk_116",Wr="_rightGroup_6bymk_116",Vr="_label_6bymk_136",Hr="_iconOnly_6bymk_155",Gr="_stretched_6bymk_171",Zr="_icon_6bymk_155",Yr="_postfix_6bymk_176",Jr="_underline_6bymk_202",Kr="_warning_6bymk_1082",Xr="_withSubcaption_6bymk_1268",Qr="_subcaption_6bymk_1273",ea="_loader_6bymk_1279",ta="_spin_6bymk_1",ra="_l_6bymk_17",aa="_m_6bymk_1318",sa="_s_6bymk_70",na="_xs_6bymk_1364",oa="_iconRight_6bymk_1410",V={button:Rr,link:Mr,disabled:Ir,loading:Tr,neutral:Nr,accent:Ar,positive:Or,negative:Dr,contrast:Pr,special:qr,primary:Br,secondary:zr,tertiary:Ur,spaceBetween:Fr,rightGroup:Wr,label:Vr,iconOnly:Hr,stretched:Gr,icon:Zr,postfix:Yr,underline:Jr,warning:Kr,withSubcaption:Xr,subcaption:Qr,loader:ea,spin:ta,l:ra,m:aa,s:sa,xs:na,iconRight:oa},ia=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),St=e=>{const a={};for(const r in e)ia.has(r)||(a[r]=e[r]);return a},la={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function ca(e){return la[e]||"typography-label-2-regular"}const oe={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},Lt=({isLoading:e,iconRight:a,iconLeft:r,children:s,postfix:i,subcaption:o,size:l,isAsButton:d})=>{if(e&&d)return n.jsx("span",{className:V.loader,"data-testid":"button-loader","aria-hidden":"true"});const c=a&&d||a&&!d&&l,f=o&&d&&l!=="s"&&l!=="xs";return n.jsxs(b.Fragment,{children:[f&&n.jsxs(b.Fragment,{children:[n.jsx("span",{"data-testid":"button-label",className:V.label,children:s}),n.jsx("span",{"data-testid":"button-subcaption",className:V.subcaption,children:o})]}),!f&&s&&n.jsxs(b.Fragment,{children:[n.jsxs("span",{"data-testid":"button-label",className:V.label,children:[!d&&r&&n.jsx("span",{"data-testid":"button-left-icon",className:V.icon,children:r}),s,!d&&a&&n.jsx("span",{"data-testid":"button-icon",className:$.clsx(V.icon,V.iconRight),children:a})]}),d&&n.jsxs("div",{"data-testid":"button-right-group",className:V.rightGroup,children:[c&&n.jsx("span",{"data-testid":"button-icon",className:V.icon,children:a}),i&&d&&n.jsx("span",{"data-testid":"button-postfix",className:V.postfix,children:i})]})]}),!f&&!s&&n.jsx("span",{"data-testid":"button-icon",className:V.icon,children:a})]})},qt=b.forwardRef((e,a)=>{const{mode:r="primary",size:s="m",buttonStyle:i=Me(e)?"neutral":"accent",disabled:o=!1,displayAs:l="button",iconRight:d,className:c,children:f,tabIndex:p}=e,g=Me(e)?e.subcaption:void 0,x=Me(e)?e.postfix:void 0,h=Me(e)?e.stretched:void 0,y=!(tt(e)&&e.size===void 0),L=tt(e)&&y?e.iconLeft:void 0,v=!!(l==="button"&&"loading"in e&&e.loading),w=Me(e)?o:o||v,_=!w&&!v,C=y?d:void 0,E=!!(C&&!f),R=typeof h=="object"?h.justify==="space-between":void 0,j=tt(e)?ca(e.size??"m"):void 0,M=j?oe[j]:void 0,O=w||v?-1:p,D=$.clsx(V.button,V[s],V[r],V[i],M,{[V.disabled]:w,[V.loading]:l==="button"&&"loading"in e&&e.loading,[V.stretched]:h,[V.spaceBetween]:R,[V.withSubcaption]:g&&s!=="s"&&s!=="xs",[V.iconOnly]:E,[V.link]:l==="link",[V.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},c),U={isLoading:v,iconRight:C,iconLeft:L,children:f,postfix:x,subcaption:g,size:s,isAsButton:Me(e)};if(jr(e)){const{href:W,onClick:P,style:S,target:T,rel:B,"data-testid":F,...H}=e,Q=St(H),ie=T??(e.isExternal?"_blank":void 0);let Y=B;if(ie==="_blank"){const ee=new Set((B??"").split(/\s+/).filter(Boolean));ee.add("noopener").add("noreferrer"),Y=Array.from(ee).join(" ")}const ce=ee=>{if(!_){ee.preventDefault();return}P==null||P(ee)};return n.jsx("a",{ref:a,className:D,href:_?W:void 0,tabIndex:O,onClick:ce,"data-testid":F,"aria-disabled":w||v,style:S,target:ie,rel:Y,...Q,children:n.jsx(Lt,{...U})})}if($r(e)){const{type:W="button",onClick:P,style:S,"data-testid":T,...B}=e,F=St(B),H=Q=>{_&&P&&P(Q)};return n.jsx("button",{ref:a,type:W,className:D,disabled:w,tabIndex:O,onClick:H,"data-testid":T,"aria-disabled":w||v,style:S,...F,children:n.jsx(Lt,{...U})})}return null});var rt={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,et,Se,xr,Se),mt[Se+et]=!0}}return t===s?br(X):fr(X),X}}function gr(t,u,y){return xt(t,u,y,!0)}function hr(t,u,y){return xt(t,u,y,!1)}var yr=hr,mr=gr;Pe.Fragment=s,Pe.jsx=yr,Pe.jsxs=mr}()),Pe}var Ct;function jr(){return Ct||(Ct=1,process.env.NODE_ENV==="production"?Fe.exports=Lr():Fe.exports=kr()),Fe.exports}var o=jr();const $r=e=>e.as==="a",Er=e=>e.as===void 0||e.as==="button",Te=e=>e.displayAs===void 0||e.displayAs==="button",tt=e=>e.displayAs==="link",Rr="_button_6bymk_1",Tr="_link_6bymk_17",Nr="_disabled_6bymk_22",Ir="_loading_6bymk_22",Mr="_neutral_6bymk_50",Or="_accent_6bymk_54",Ar="_positive_6bymk_58",Pr="_negative_6bymk_62",Br="_contrast_6bymk_66",zr="_special_6bymk_70",Dr="_primary_6bymk_74",qr="_secondary_6bymk_75",Fr="_tertiary_6bymk_76",Wr="_spaceBetween_6bymk_116",Hr="_rightGroup_6bymk_116",Vr="_label_6bymk_136",Zr="_iconOnly_6bymk_155",Ur="_stretched_6bymk_171",Gr="_icon_6bymk_155",Xr="_postfix_6bymk_176",Yr="_underline_6bymk_202",Jr="_warning_6bymk_1082",Kr="_withSubcaption_6bymk_1268",Qr="_subcaption_6bymk_1273",ea="_loader_6bymk_1279",ta="_spin_6bymk_1",ra="_l_6bymk_17",aa="_m_6bymk_1318",sa="_s_6bymk_70",oa="_xs_6bymk_1364",na="_iconRight_6bymk_1410",Z={button:Rr,link:Tr,disabled:Nr,loading:Ir,neutral:Mr,accent:Or,positive:Ar,negative:Pr,contrast:Br,special:zr,primary:Dr,secondary:qr,tertiary:Fr,spaceBetween:Wr,rightGroup:Hr,label:Vr,iconOnly:Zr,stretched:Ur,icon:Gr,postfix:Xr,underline:Yr,warning:Jr,withSubcaption:Kr,subcaption:Qr,loader:ea,spin:ta,l:ra,m:aa,s:sa,xs:oa,iconRight:na},ia=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),St=e=>{const a={};for(const r in e)ia.has(r)||(a[r]=e[r]);return a},la={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function ca(e){return la[e]||"typography-label-2-regular"}const ie={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},Lt=({isLoading:e,iconRight:a,iconLeft:r,children:s,postfix:i,subcaption:n,size:l,isAsButton:d})=>{if(e&&d)return o.jsx("span",{className:Z.loader,"data-testid":"button-loader","aria-hidden":"true"});const c=a&&d||a&&!d&&l,f=n&&d&&l!=="s"&&l!=="xs";return o.jsxs(b.Fragment,{children:[f&&o.jsxs(b.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:Z.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:Z.subcaption,children:n})]}),!f&&s&&o.jsxs(b.Fragment,{children:[o.jsxs("span",{"data-testid":"button-label",className:Z.label,children:[!d&&r&&o.jsx("span",{"data-testid":"button-left-icon",className:Z.icon,children:r}),s,!d&&a&&o.jsx("span",{"data-testid":"button-icon",className:E.clsx(Z.icon,Z.iconRight),children:a})]}),d&&o.jsxs("div",{"data-testid":"button-right-group",className:Z.rightGroup,children:[c&&o.jsx("span",{"data-testid":"button-icon",className:Z.icon,children:a}),i&&d&&o.jsx("span",{"data-testid":"button-postfix",className:Z.postfix,children:i})]})]}),!f&&!s&&o.jsx("span",{"data-testid":"button-icon",className:Z.icon,children:a})]})},zt=b.forwardRef((e,a)=>{const{mode:r="primary",size:s="m",buttonStyle:i=Te(e)?"neutral":"accent",disabled:n=!1,displayAs:l="button",iconRight:d,className:c,children:f,tabIndex:p}=e,g=Te(e)?e.subcaption:void 0,x=Te(e)?e.postfix:void 0,h=Te(e)?e.stretched:void 0,m=!(tt(e)&&e.size===void 0),L=tt(e)&&m?e.iconLeft:void 0,v=!!(l==="button"&&"loading"in e&&e.loading),w=Te(e)?n:n||v,_=!w&&!v,C=m?d:void 0,k=!!(C&&!f),R=typeof h=="object"?h.justify==="space-between":void 0,$=tt(e)?ca(e.size??"m"):void 0,T=$?ie[$]:void 0,A=w||v?-1:p,P=E.clsx(Z.button,Z[s],Z[r],Z[i],T,{[Z.disabled]:w,[Z.loading]:l==="button"&&"loading"in e&&e.loading,[Z.stretched]:h,[Z.spaceBetween]:R,[Z.withSubcaption]:g&&s!=="s"&&s!=="xs",[Z.iconOnly]:k,[Z.link]:l==="link",[Z.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},c),F={isLoading:v,iconRight:C,iconLeft:L,children:f,postfix:x,subcaption:g,size:s,isAsButton:Te(e)};if($r(e)){const{href:H,onClick:B,style:S,target:M,rel:D,"data-testid":W,...U}=e,Q=St(U),le=M??(e.isExternal?"_blank":void 0);let ae=D;if(le==="_blank"){const te=new Set((D??"").split(/\s+/).filter(Boolean));te.add("noopener").add("noreferrer"),ae=Array.from(te).join(" ")}const ee=te=>{if(!_){te.preventDefault();return}B==null||B(te)};return o.jsx("a",{ref:a,className:P,href:_?H:void 0,tabIndex:A,onClick:ee,"data-testid":W,"aria-disabled":w||v,style:S,target:le,rel:ae,...Q,children:o.jsx(Lt,{...F})})}if(Er(e)){const{type:H="button",onClick:B,style:S,"data-testid":M,...D}=e,W=St(D),U=Q=>{_&&B&&B(Q)};return o.jsx("button",{ref:a,type:H,className:P,disabled:w,tabIndex:A,onClick:U,"data-testid":M,"aria-disabled":w||v,style:S,...W,children:o.jsx(Lt,{...F})})}return null});var rt={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */var Et;function da(){return Et||(Et=1,function(e){(function(){var a={}.hasOwnProperty;function r(){for(var o="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(o=i(o,s(d)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var d in o)a.call(o,d)&&o[d]&&(l=i(l,d));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(rt)),rt.exports}var ua=da();const we=Sr(ua),_a="_avatar_1kyiq_17",pa="_clickable_1kyiq_41",fa="_icon_1kyiq_58",ba="_disabled_1kyiq_63",ga="_loading_1kyiq_68",ha="_image_1kyiq_74",ma="_name_1kyiq_74",be={avatar:_a,clickable:pa,icon:fa,disabled:ba,loading:ga,image:ha,name:ma,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},kt=99;function ya(e){return e<kt?`+${e}`:`${kt}+`}function He(e){const a=typeof e=="string"?e:JSON.stringify(e);let r=5381;for(let s=0;s<a.length;s++){const i=a.charCodeAt(s);r=(r<<5)+r+i}return r>>>0}const xa=["red","orange","yellow","green","blue","lightblue","purple"];function va(e,a=xa){if(!e)return"gray";const r=He(e),s=Math.abs(r)%a.length;return a[s]}const jt=2;function wa(e){if(!e)return"";const a=e.trim().split(/\s+/);return a.length===1?e.slice(0,jt).toUpperCase():a.map(r=>r[0]).slice(0,jt).join("").toUpperCase()}const Ca={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Bt(e,a){return a==="circle"?e/2:Ca[e]||12}const Sa={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function La(e){return Sa[e]||"typography-subtitle-1-semibold"}const Ea="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ka="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",ja="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",$a="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Ra={male:Ea,female:ka,org:$a,neutral:ja},We=b.forwardRef((e,a)=>{const{style:r,size:s=40,isLoading:i=!1,isDisabled:o=!1,shape:l="circle",variant:d="filled",placeholderType:c="neutral",name:f,imgSrc:p,imgAlt:g,icon:x,imgProps:h,colorScheme:y,className:L,"data-testid":v,...w}=e,{onClick:_,onPointerDown:C}=w,R=!o&&!i&&(!!_||!!C),[j,M]=b.useState(!1);b.useEffect(()=>{p&&M(!1)},[p]);const O=p&&!j?"image":x?"icon":f?"name":"placeholder",D=y||O==="name"&&va(f)||"gray",U=La(s),W=Bt(s,l),P=$.clsx(L,be.avatar,be[`variant-${d}`],be[`color-${D}`],oe[U],{[be.disabled]:o,[be.loading]:i,[be.clickable]:R}),S={"--avatar-size":`${s}px`,"--avatar-border-radius":`${W}px`,...r},T={icon:()=>n.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:be.icon,children:x==null?void 0:x({})}),name:()=>n.jsx("span",{role:"textbox","data-testid":"avatar-name",className:be.name,title:g||void 0,children:wa(f||"")}),placeholder:()=>n.jsx("img",{...h,"data-testid":"avatar-placeholder",className:be.image,src:Ra[c],alt:g||void 0}),image:()=>n.jsx("img",{"data-testid":"avatar-image",...h,className:be.image,src:p||void 0,alt:g||void 0,onLoad:()=>M(!1),onError:F=>{var H;M(!0),(H=h==null?void 0:h.onError)==null||H.call(h,F)}})},B=F=>{R&&(_==null||_(F))};return n.jsx("div",{ref:a,onClick:B,className:P,style:S,"data-testid":v,"aria-disabled":o||i,children:T[O](null)})}),Ma="_avatarGroup_157g4_1",Ia={avatarGroup:Ma};let Ta=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((a,r)=>(r&=63,r<36?a+=r.toString(36):r<62?a+=(r-26).toString(36).toUpperCase():r>62?a+="-":a+="_",a),"");function Na(e,a,r,s,i,o,l){const d=Math.min(i,o)/2,c=Math.min(l,d),f=["M0,0",`H${e}`,`V${a}`,"H0","V0","Z"].join(" "),p=[`M${r+c},${s}`,`L${r+i-c},${s}`,`A${c},${c} 0 0 1 ${r+i},${s+c}`,`L${r+i},${s+o-c}`,`A${c},${c} 0 0 1 ${r+i-c},${s+o}`,`L${r+c},${s+o}`,`A${c},${c} 0 0 1 ${r},${s+o-c}`,`L${r},${s+c}`,`A${c},${c} 0 0 1 ${r+c},${s}`,"Z"].join(" ");return`${f} ${p}`}const Aa=3,Oa=e=>{const{avatars:a=[],size:r=40,overlap:s=.3,shape:i="circle",overflowCount:o=0,overflowProps:l}=e,d=r*s,c=-d+Aa,f=Bt(r,i),g=b.useRef(Ta()).current.toString(),x=we(Ia.avatarGroup),h=Na(r,r,r-d,0,r,r,f);return a.length===0?null:n.jsxs("div",{className:x,children:[a.map((y,L,v)=>{const w=L+1>=v.length;if(y.wrapper){const _=y.wrapper;return n.jsx("div",{style:{clipPath:w&&!o?void 0:`url(#${g})`,marginRight:c},children:n.jsx(_,{children:n.jsx(We,{size:r,shape:i,...y})})},He(y)+L)}return n.jsx("div",{style:{clipPath:w&&!o?void 0:`url(#${g})`,marginRight:c},children:n.jsx(We,{size:r,shape:i,...y})},He(y)+L)}),o>0&&n.jsx("div",{style:{marginRight:c},children:n.jsx(We,{size:r,shape:i,icon:()=>ya(o),colorScheme:"gray",variant:"light",...l})}),n.jsx("svg",{width:"0",height:"0",children:n.jsx("clipPath",{id:`${g}`,children:n.jsx("path",{clipPathUnits:"objectBoundingBox",d:h,clipRule:"evenodd"})})})]})},Da=Object.assign(We,{Group:Oa}),Pa="_wrapper_ecbsu_5",qa="_badge__container_ecbsu_6",Ba="_badge__content_ecbsu_7",za="_interactive_ecbsu_20",Ua="_disabled_ecbsu_21",Fa="_icon_ecbsu_22",he={wrapper:Pa,badge__container:qa,badge__content:Ba,interactive:za,disabled:Ua,icon:Fa,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Wa=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Va=e=>{if(!e)return null;let a=e;for(;a;){const s=window.getComputedStyle(a).backgroundColor;if(!Wa(s))return s;a=a.parentElement}return null},zt=()=>{const e=b.useRef(null),[a,r]=b.useState(null);return b.useEffect(()=>{if(e.current){const s=Va(e.current);r(s)}},[]),{ref:e,bgColor:a}};function $t(e,a,r){b.useEffect(()=>(window.addEventListener(e,a,r),()=>window.removeEventListener(e,a,r)),[e,a])}const Rt={passive:!0};function Ha(){const[e,a]=b.useState({width:0,height:0}),r=b.useCallback(()=>{a({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return $t("resize",r,Rt),$t("orientationchange",r,Rt),b.useEffect(r,[]),e}function Ga(e=768){const{width:a}=Ha();return b.useMemo(()=>a<=e,[a,e])}const Ut=b.forwardRef((e,a)=>{const{icon:r,children:s,variant:i="filled",label:o,isHidden:l=!1,colorScheme:d="red",size:c=20,position:f="top-right",positionOffset:p={x:0,y:0},cutoutBackground:g,isDisabled:x,className:h,"data-testid":y="badge",...L}=e,{onClick:v,onPointerDown:w}=L,{ref:_,bgColor:C}=zt(),E=g||C,j=!x&&(!!v||!!w),M=we(he.badge__container,he[`position-${f}`]),O=we(h,he.badge__content,he[`color-${d}`],he[`variant-${i}`],{[he.disabled]:x,[he.icon]:!!r,[he.interactive]:j}),D={"--badge-height":`${c}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...E&&{"--badge-cutout-bg":E},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(r==null?void 0:r({}))||o,W=P=>{j&&(v==null||v(P))};return n.jsxs("div",{className:he.wrapper,ref:_,"data-testid":y+"-wrapper",children:[s,!l&&n.jsx("span",{className:M,style:D,"data-testid":y+"-container",children:n.jsx("span",{...L,onClick:W,className:O,"data-testid":y+"-content",ref:a,"aria-disabled":x,children:U})})]})}),Za="_container_op5yl_7",Ya="_image_op5yl_22",Ja="_loading_op5yl_34",at={container:Za,image:Ya,loading:Ja},Ka="_loader_isv17_1",Xa="_spin_isv17_1",Qa="_accent_isv17_19",es="_neutral_isv17_23",ts="_positive_isv17_27",rs="_negative_isv17_31",as="_gray_isv17_35",ss="_special_isv17_39",ns="_contrast_isv17_43",os="_container_isv17_47",is="_overlay_isv17_57",Pe={loader:Ka,spin:Xa,accent:Qa,neutral:es,positive:ts,negative:rs,gray:as,special:ss,contrast:ns,container:os,overlay:is,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Ft=b.forwardRef(({size:e=24,variant:a="accent",className:r,"data-testid":s="loader",style:i,...o},l)=>{const d=we(Pe.loader,Pe[a],Pe[`size-${e}`],r);return n.jsx("svg",{ref:l,className:d,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...o,children:n.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),ls=b.forwardRef((e,a)=>{const{loading:r=!1,size:s=24,variant:i="accent",children:o,className:l,style:d,"data-testid":c,...f}=e,p=we(Pe.container,l);return n.jsxs("div",{ref:a,className:p,style:d,"data-testid":c,...f,children:[o,r&&n.jsx("div",{className:Pe.overlay,children:n.jsx(Ft,{size:s,variant:i,"data-testid":`${c}-spinner`})})]})}),Wt=b.forwardRef((e,a)=>e.children?n.jsx(ls,{ref:a,...e}):n.jsx(Ft,{ref:a,...e})),cs=({width:e=48,height:a=48,className:r,"data-testid":s})=>n.jsx("svg",{width:e,height:a,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,"data-testid":s,children:n.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),ds=b.forwardRef((e,a)=>{const{alt:r="",loading:s="lazy",src:i,isLoading:o=!1,className:l,"data-testid":d="image",onError:c,onLoad:f,...p}=e,[g,x]=b.useState("loading"),h=g==="error",y=(o||g==="loading")&&!h,L=g==="loaded"&&!o,v=we(at.image,{[at.loading]:y},l),w=b.useCallback(E=>{x("loaded"),f==null||f(E)},[f]),_=b.useCallback(E=>{x("error"),c==null||c(E)},[c]),C={loader:n.jsxs(b.Fragment,{children:[n.jsx(Wt,{size:48,variant:"special","data-testid":`${d}-loader`}),n.jsx("img",{alt:r,src:i,onLoad:w,onError:_,style:{display:"none"}})]}),error:n.jsx(cs,{"data-testid":`${d}-fallback`}),image:n.jsx("img",{ref:a,alt:r,"data-testid":d,loading:s,src:i,className:v})};return b.useEffect(()=>{if(!i){x("error");return}x("loading")},[i]),n.jsxs("div",{className:at.container,"data-testid":`${d}-container`,...p,children:[y&&C.loader,h&&C.error,L&&C.image]})}),Vt={},Ht=b.createContext({locale:Vt}),Gt=()=>{const e=b.useContext(Ht);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},us=()=>{const{locale:e}=Gt();return e},_s={},ps={},fs={},bs={},gs={},hs="_base_1p0qo_50",ms="_content_1p0qo_54",ys="_background_1p0qo_58",xs="_button_1p0qo_62",vs="_link_1p0qo_66",ws="_input_1p0qo_70",Cs="_suffix_1p0qo_74",Ss="_prefix_1p0qo_78",Ls="_tooltip_1p0qo_82",Es="_hint_1p0qo_86",ks="_dropdown_1p0qo_90",js="_popover_1p0qo_94",$s="_modalBackdrop_1p0qo_98",Rs="_modal_1p0qo_98",Ms="_overlay_1p0qo_106",Is="_drawer_1p0qo_110",Ts="_notification_1p0qo_114",Ns="_alert_1p0qo_118",As="_toast_1p0qo_122",Os="_loading_1p0qo_126",Ds="_error_1p0qo_130",Ps="_critical_1p0qo_134",qs={base:hs,content:ms,background:ys,button:xs,link:vs,input:ws,suffix:Cs,prefix:Ss,tooltip:Ls,hint:Es,dropdown:ks,popover:js,modalBackdrop:$s,modal:Rs,overlay:Ms,drawer:Is,notification:Ts,alert:Ns,toast:As,loading:Os,error:Ds,critical:Ps},Bs=({locale:e={},theme:a,children:r,className:s})=>(b.useLayoutEffect(()=>{if(a){const i=document.documentElement;Object.entries(a).forEach(([o,l])=>{i.style.setProperty(o,l)})}},[a]),n.jsxs(b.Fragment,{children:[n.jsx("div",{"data-testid":"ConfigProvider-component",className:$.clsx(_s,ps,fs,bs,gs,qs,oe,s)}),n.jsx(Ht.Provider,{value:{locale:e},children:r})]})),zs={},Us="_tag_1llsi_1",Fs="_label_1llsi_16",Ws="_iconWrapper_1llsi_20",Vs="_medium_1llsi_27",Hs="_large_1llsi_33",Gs="_disabled_1llsi_43",Zs="_neutral_1llsi_47",Ys="_positive_1llsi_53",Js="_negative_1llsi_59",Ks="_warning_1llsi_65",Xs="_vivid_1llsi_71",Qs="_special_1llsi_77",en="_accent_1llsi_84",tn="_blue_1llsi_90",rn="_lovely_1llsi_96",an="_dreamy_1llsi_102",Le={tag:Us,label:Fs,iconWrapper:Ws,medium:Vs,large:Hs,disabled:Gs,neutral:Zs,positive:Ys,negative:Js,warning:Ks,vivid:Xs,special:Qs,accent:en,blue:tn,lovely:rn,dreamy:an},sn=b.forwardRef((e,a)=>{const{className:r,children:s,componentStyle:i="neutral",size:o="medium",disabled:l=!1,showLabel:d=!!s,slotStart:c,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":x}=e,{className:h,...y}=p,{className:L,...v}=g;return n.jsxs("div",{className:$.clsx(Le.tag,Le[o],Le[i],{[Le.disabled]:l,[oe["typography-label-3-regular"]]:o==="medium",[oe["typography-subtitle-1-semibold"]]:o==="large"},r),"data-testid":x||"tag-component",ref:a,children:[c&&n.jsx("span",{className:$.clsx([Le.iconWrapper,h]),...y,children:c}),d&&n.jsx("span",{className:$.clsx([Le.label]),children:s}),f&&n.jsx("span",{className:$.clsx([Le.iconWrapper,L]),...v,children:f})]})}),nn="_checkbox_17txq_43",on="_input_17txq_64",ln="_icon_17txq_72",cn="_container_17txq_92",dn="_error_17txq_143",un="_checkboxWrapper_17txq_156",_n="_medium_17txq_211",pn="_large_17txq_216",fn="_label_17txq_258",ye={checkbox:nn,input:on,icon:ln,container:cn,error:dn,checkboxWrapper:un,medium:_n,large:pn,label:fn},bn=({width:e=12,height:a=9,className:r="",color:s="currentColor",...i})=>n.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),gn=({width:e=12,height:a=2,className:r="",color:s="currentColor",...i})=>n.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),hn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},mn=({size:e,isChecked:a,isDisabled:r,indeterminate:s,dataTestId:i})=>{const{width:o,height:l}=hn[e];return n.jsx("div",{className:ye.icon,"data-testid":`${i}-icon`,"data-checked":a,"data-disabled":r,"data-indeterminate":s,children:s?n.jsx(gn,{width:o,height:l}):n.jsx(bn,{width:o,height:l})})},yn=b.forwardRef((e,a)=>{const{name:r,value:s,size:i="medium",indeterminate:o=!1,loading:l=!1,error:d,disabled:c=!1,containerClassName:f,className:p,containerStyle:g,style:x,children:h,clickableLabel:y=!0,tabIndex:L,onChange:v,"data-testid":w="checkbox"}=e,[_,C]=b.useState(!1),E=s??_,R=c||l,j=!!d,M=E||o,O=$.clsx(ye.container,ye[i],f),D=$.clsx(ye.checkbox,ye[i],{[ye.error]:j},p),U=T=>{R||(C(T.target.checked),v==null||v(T.target.checked,T))},W=T=>{if(T.key==="Enter"&&!R){T.preventDefault();const B=!M;C(B),v==null||v(B)}},P=T=>{y||T.preventDefault()},S=T=>T.stopPropagation();return n.jsxs("label",{className:O,htmlFor:r,style:g,"data-testid":w,"data-clickable-label":y,children:[n.jsx("div",{className:ye.checkboxWrapper,children:n.jsxs("div",{tabIndex:L||0,className:D,style:x,onKeyDown:W,"aria-checked":M,"aria-disabled":R,"aria-invalid":j,"aria-describedby":d?`${r}-error`:void 0,"data-testid":`${w}-label`,children:[n.jsx("input",{ref:a,type:"checkbox",id:r,name:r,checked:M,disabled:R,className:ye.input,onChange:U,onClick:S,"aria-checked":M,"aria-invalid":j,"aria-describedby":d?`${r}-error`:void 0,"data-testid":`${w}-input`}),n.jsx(mn,{name:r,size:i,isChecked:M,isDisabled:R,indeterminate:o,dataTestId:w})]})}),h&&n.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":y,className:ye.label,onClick:P,children:h})]})}),xn="_typography_zt7xg_1",vn="_disabled_zt7xg_8",wn="_primary_zt7xg_13",Cn="_secondary_zt7xg_18",Sn="_tertiary_zt7xg_23",Ln="_accent_zt7xg_28",En="_positive_zt7xg_38",kn="_negative_zt7xg_48",jn="_warning_zt7xg_58",$n="_special_zt7xg_68",Rn="_contrast_zt7xg_78",Ne={typography:xn,disabled:vn,primary:wn,secondary:Cn,tertiary:Sn,accent:Ln,"accent-secondary":"_accent-secondary_zt7xg_33",positive:En,"positive-secondary":"_positive-secondary_zt7xg_43",negative:kn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:jn,"warning-secondary":"_warning-secondary_zt7xg_63",special:$n,"special-secondary":"_special-secondary_zt7xg_73",contrast:Rn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Mn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Mt=e=>{const a=Pt.forwardRef(({size:r=3,children:s,className:i,"data-testid":o,as:l,fontWeight:d="semibold",disabled:c=!1,typographyStyle:f="primary",...p},g)=>{const x=l||Mn[r],h=$.clsx(Ne.typography,oe[`typography-${e}-${r}-${d}`],Ne[f],{[Ne.disabled]:c},i);return s?n.jsx(x,{ref:g,className:h,"data-testid":o,...p,children:s}):null});return a.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,a},It=e=>{const a=Pt.forwardRef(({size:r=3,children:s,className:i,"data-testid":o,as:l="p",fontWeight:d="regular",disabled:c=!1,typographyStyle:f="primary",...p},g)=>{const x=l,h=$.clsx(Ne.typography,oe[`typography-${e}-${r}-${d}`],Ne[f],{[Ne.disabled]:c},i);return s?n.jsx(x,{ref:g,className:h,"data-testid":o,...p,children:s}):null});return a.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,a},it={Title:Mt("title"),Subtitle:Mt("subtitle"),Label:It("label"),Paragraph:It("paragraph")},In="_inputBase_1q54n_82",Tn="_wrapper_1q54n_92",Nn="_gripHandle_1q54n_172",An="_error_1q54n_238",On="_tabFocused_1q54n_245",Dn="_disabled_1q54n_270",Pn="_loading_1q54n_277",qn="_label_1q54n_287",Bn="_small_1q54n_301",zn="_large_1q54n_308",Un="_leftSection_1q54n_315",Fn="_rightSection_1q54n_327",Wn="_helper_1q54n_365",Vn="_floatingLabel_1q54n_393",Hn="_focused_1q54n_461",Gn="_filled_1q54n_462",Zn="_medium_1q54n_503",Yn="_characterLimit_1q54n_545",Jn="_input_1q54n_82",Kn="_textarea_1q54n_110",Xn="_truncate_1q54n_678",Qn="_hint_1q54n_765",A={inputBase:In,wrapper:Tn,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:Nn,error:An,tabFocused:On,disabled:Dn,loading:Pn,label:qn,small:Bn,large:zn,leftSection:Un,rightSection:Fn,helper:Wn,floatingLabel:Vn,focused:Hn,filled:Gn,medium:Zn,characterLimit:Yn,input:Jn,textarea:Kn,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:Xn,hint:Qn,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},eo=({width:e=8,height:a=8,className:r,color:s="#AABBCA"})=>n.jsx("svg",{width:e,height:a,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),Zt=({className:e="",style:a,size:r="md",color:s="currentColor",onClick:i,...o})=>{const d={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[r],...a};return n.jsx("svg",{className:e,style:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...o,children:n.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},to=(e,a)=>{const r=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{const i=a==="textarea"?r.current:s.current;i&&i.value!==e&&(i.value=e||"")},[e,a]),{textareaRef:r,inputRef:s,currentRef:a==="textarea"?r:s}},ro=(e,a,r)=>{const s=()=>{if(!r.current||a!=="hug")return;const i=r.current.scrollTop;if(r.current.style.setProperty("height","auto","important"),!e)return;const o=r.current.scrollHeight+"px";r.current.style.setProperty("height",o,"important"),r.current.scrollTop=i;const l=r.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(s,[e,a]),b.useEffect(()=>{a==="hug"&&r.current&&s()},[]),{resizeTextArea:s}},ao=(e,a,r,s)=>({handleGripMouseDown:b.useCallback(o=>{if(!e||a||r||!(s==="fixed"||!s))return;o.preventDefault(),o.stopPropagation();const l=o.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const d=o.clientY,c=l.clientHeight,f=g=>{const x=g.clientY-d,h=Math.min(100,c),y=Math.max(h,c+x);l.style.height=`${y}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[e,a,r,s])}),Tt=30,so=b.forwardRef(({component:e="input",size:a="medium",value:r="",placeholder:s,disabled:i=!1,loading:o=!1,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:x,style:h,truncate:y=!1,shouldShowFloatingLabelClass:L=!1,"aria-invalid":v,"aria-errormessage":w,id:_,resize:C,...E},R)=>{const{textareaRef:j,inputRef:M,currentRef:O}=to(r,e);if(ro(r,C,j),b.useImperativeHandle(R,()=>O.current,[O]),e==="textarea")return n.jsx("textarea",{ref:j,id:_,value:r,placeholder:s,disabled:i||o,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:$.clsx(A.textarea,A[`size-${a}`],L&&A["with-floating-label"],x),style:h,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,"data-resize":C,...E});if(e==="input")return n.jsx("input",{ref:M,id:_,value:r,placeholder:s,disabled:i||o,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:$.clsx(A.input,A[`size-${a}`],L&&A["with-floating-label"],y&&A.truncate,x),style:h,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,...E});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Yt=b.forwardRef(({children:e,size:a="medium",error:r=!1,disabled:s=!1,loading:i=!1,className:o,wrapperProps:l,wrapperStyles:d,floatingLabelStyles:c,prefixStyles:f,suffixStyles:p,labelProps:g,helperProps:x,showLimit:h=!1,maxLength:y,hint:L,showHint:v=!1,showHintOnEmpty:w=!1,prefix:_,suffix:C,onSuffixClick:E,placeholder:R,showLabel:j=!0,labelClassName:M,hasValue:O=!1,helper:D,id:U,value:W="",resize:P,showGrip:S=!1,...T},B)=>{const F=b.useId(),H=U||F,Q=v&&L&&(O||w),ie=L&&L.length>Tt?L.substring(0,Tt)+"...":L,Y=$.clsx(A.wrapper,r&&A.error,s&&A.disabled,i&&A.loading,Q&&A["has-hint"],C&&A["has-suffix"],h&&A["has-limit"],o),ce=$.clsx(A.floatingLabel,A[a],O&&A.filled,M),{handleGripMouseDown:ee}=ao(S,s,i,P);return n.jsxs("div",{ref:B,className:A.inputBase,"data-testid":"input-base-wrapper",...T,children:[n.jsxs("div",{className:Y,style:d,"data-resize":P,"data-show-grip":S?"true":"false",...l,children:[_&&n.jsx("label",{htmlFor:H,className:A.leftSection,style:f,children:_}),C&&n.jsx("label",{htmlFor:H,className:A.rightSection,style:p,onClick:E,children:C}),R&&j&&n.jsx("label",{htmlFor:H,className:ce,style:c,...g,children:R}),e,S&&!h&&(P==="fixed"||!P)&&n.jsx("div",{className:A.gripHandle,onMouseDown:ee,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:n.jsx(eo,{})}),Q&&n.jsx("div",{className:$.clsx(A.hint,O&&A.truncate),"data-disabled":s||i,children:ie}),h&&y&&n.jsxs("div",{className:A.characterLimit,children:[(W||"").length," из ",y]})]}),D&&n.jsx("div",{className:$.clsx(A.helper,r&&A.error,(s||i)&&A.disabled),...x,id:r?`${H}-error`:void 0,children:D})]})});Yt.displayName="InputWrapperComponent";const Nt=Object.assign(so,{Wrapper:Yt}),Jt=b.forwardRef(({component:e="input",size:a="medium",className:r,error:s=!1,disabled:i=!1,loading:o=!1,placeholder:l,showLabel:d=!0,labelClassName:c,helper:f,prefix:p,suffix:g,id:x,onFocus:h,onBlur:y,onKeyDown:L,onSuffixClick:v,onChange:w,value:_="",wrapperProps:C,wrapperStyles:E,floatingLabelStyles:R,prefixStyles:j,suffixStyles:M,textareaStyles:O,labelProps:D,helperProps:U,showLimit:W=!1,maxLength:P,inputProps:S,hint:T,showHint:B=!1,showHintOnEmpty:F=!1,truncate:H=!1,resize:Q,showGrip:ie=!1,...Y},ce)=>{const ee=b.useId(),ve=x||ee,[Ae,ge]=b.useState(_),Ee=_!==void 0?_:Ae,ke=(Ee||"").length>0,Ce=Ee||"",je=d&&(a==="large"||e==="textarea")&&!p,Ge=b.useCallback(J=>{var K;i||o||(h==null||h(),(K=S==null?void 0:S.onFocus)==null||K.call(S,J))},[h,S,i,o]),Be=b.useCallback(J=>{var K;if(J.key==="Tab"){const fe=J.target.closest(`.${A.wrapper}`);fe&&fe.classList.add(A.tabFocused)}(K=S==null?void 0:S.onKeyUp)==null||K.call(S,J)},[S]),Ze=b.useCallback(J=>{var fe;const K=J.target.closest(`.${A.wrapper}`);K&&K.classList.remove(A.tabFocused),y==null||y(),(fe=S==null?void 0:S.onBlur)==null||fe.call(S,J)},[y,S]),Ye=b.useCallback(J=>{var fe;if(i||o)return;const K=J.target.value;ge(K),w==null||w(K,J),(fe=S==null?void 0:S.onChange)==null||fe.call(S,J)},[w,S,i,o]);return b.useEffect(()=>{ge(_||"")},[_]),n.jsx(Nt.Wrapper,{ref:ce,size:a,error:s,disabled:i||o,loading:o,className:$.clsx(r,e==="textarea"&&A["textarea-wrapper"]),wrapperProps:C,wrapperStyles:E,floatingLabelStyles:R,prefixStyles:j,suffixStyles:M,labelProps:D,helperProps:U,showLimit:W,maxLength:P,hint:T,showHint:B,showHintOnEmpty:F,prefix:p,suffix:g,onSuffixClick:v,placeholder:l,showLabel:d,labelClassName:c,hasValue:ke,helper:f,id:ve,value:Ce,showGrip:ie,resize:Q,...Y,children:n.jsx(Nt,{component:e,size:a,value:Ce,placeholder:l,disabled:i,loading:o,onFocus:Ge,onBlur:Ze,onChange:Ye,onKeyDown:L,onKeyUp:Be,maxLength:P,truncate:H,"data-empty":!ke,shouldShowFloatingLabelClass:je,style:e==="textarea"?O:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${ve}-error`:void 0,id:ve,resize:Q,...S})})}),re={SMALL:"small",MEDIUM:"medium",LARGE:"large"},no=(e,a,r,s)=>{switch(e){case re.LARGE:return a&&r?"8px 16px 8px 16px":"16px 16px 16px 16px";case re.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case re.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},oo=e=>{switch(e){case re.LARGE:return"56px";case re.MEDIUM:return"48px";case re.SMALL:return"40px";default:return"48px"}},io=e=>{switch(e){case re.SMALL:return 8;case re.MEDIUM:case re.LARGE:return 12;default:return 12}},lo=(e,a,r)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),co=(e,a,r)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),uo=(e,a,r)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),_o=(e,a,r,s)=>{const i=oo(e),o=no(e,a,r,s),l=io(e);switch(e){case re.LARGE:return lo(i,o,l);case re.MEDIUM:return co(i,o,l);case re.SMALL:return uo(i,o,l);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},po=b.forwardRef(({value:e="",onChange:a,type:r="text",placeholder:s,maxLength:i,minLength:o,autoComplete:l,autoFocus:d,size:c=re.MEDIUM,inputProps:f,error:p,disabled:g,loading:x,helper:h,prefix:y,suffix:L,clearable:v=!1,id:w,showLabel:_=!0,onFocus:C,onBlur:E,onSuffixClick:R,onClear:j,className:M,truncate:O=!0,hint:D,showHint:U=!1,showHintOnEmpty:W=!1,wrapperProps:P,labelProps:S,helperProps:T,...B},F)=>{const H=(e||"").length>0,Q=c===re.LARGE,ie=!!y,Y=Q&&_&&!y,ce=v&&H&&!(g||x),ee=()=>{a==null||a(""),j==null||j()},ve=ce?n.jsx(Zt,{size:c===re.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):L,Ae={type:r,minLength:o,autoComplete:l,autoFocus:d,...f},ge=_o(c,Y,H,ie);return n.jsx(Jt,{size:c,error:p,disabled:g||x,loading:x,helper:h,prefix:y,suffix:ve,id:w,showLabel:Y,onFocus:C,onBlur:E,onSuffixClick:R,onChange:a,value:e,placeholder:s,className:M,wrapperStyles:ge.wrapperStyles,floatingLabelStyles:ge.floatingLabelStyles,prefixStyles:ge.prefixStyles,suffixStyles:ge.suffixStyles,wrapperProps:P,labelProps:S,helperProps:T,showLimit:!1,maxLength:i,inputProps:Ae,hint:D,showHint:U,showHintOnEmpty:W,truncate:O,...B})}),pe={SMALL:"small",MEDIUM:"medium"},Ve={SMALL:"12px",MEDIUM:"16px"},fo={SMALL:"xs",MEDIUM:"sm"},Fe={FILL:"fill",FIXED:"fixed"},st={SMALL:"112px",MEDIUM:"56px"},Ie={SMALL:"48px",MEDIUM:"22px"},me={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},xe={SMALL:48,MEDIUM:56,LARGE:112},bo=(e,a)=>{if(e===pe.SMALL)return st.SMALL;if(a)return`${a}px`;switch(e){case pe.MEDIUM:return st.MEDIUM;default:return st.MEDIUM}},go=(e,a)=>{if(e===pe.SMALL)return Ie.SMALL;if(a)switch(a){case xe.SMALL:case xe.MEDIUM:return Ie.MEDIUM;case xe.LARGE:return Ie.SMALL;default:return Ie.MEDIUM}switch(e){case pe.MEDIUM:return Ie.MEDIUM;default:return Ie.MEDIUM}},ho=(e,a,r)=>{if(e===pe.SMALL)return me.SMALL;if(a)switch(a){case xe.SMALL:return me.MEDIUM_WITH_PREFIX;case xe.MEDIUM:return r?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;case xe.LARGE:return me.MEDIUM;default:return me.MEDIUM}switch(e){case pe.MEDIUM:return r?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;default:return me.MEDIUM}},mo=(e,a)=>{if(e===pe.SMALL)return"small";if(a)switch(a){case xe.SMALL:return"small";case xe.MEDIUM:return"medium";case xe.LARGE:return"medium";default:return"medium"}return e},yo=e=>fo[e.toUpperCase()],xo=e=>Ve[e.toUpperCase()],vo=(e,a,r,s)=>{const i=bo(e,a),o=go(e,a),l=ho(e,a,r);return{wrapperStyles:{minHeight:i,...s===Fe.FILL&&{height:"100%"},...s===Fe.FIXED&&a&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===pe.SMALL?Ve.SMALL:Ve.MEDIUM,transformOrigin:"left top",top:a===112&&r&&e===pe.MEDIUM?Ve.MEDIUM:void 0},suffixStyles:{right:xo(e)},textareaStyles:{minHeight:o,...s===Fe.FILL&&{flex:1,minHeight:0},...s===Fe.FIXED&&a&&{height:o}}}},wo=b.forwardRef(({value:e="",onChange:a,placeholder:r,maxLength:s,minLength:i,autoFocus:o,size:l=pe.MEDIUM,textareaProps:d,error:c,disabled:f,loading:p,helper:g,suffix:x,clearable:h=!1,id:y,showLabel:L=!0,onFocus:v,onBlur:w,onClear:_,onKeyDown:C,className:E,rows:R=1,showLimit:j=!1,wrapperProps:M,labelProps:O,helperProps:D,showGrip:U,minHeight:W,resize:P,...S},T)=>{const B=(e||"").length>0,F=L&&!!r&&(l===pe.SMALL||W!==48),H=h&&B&&!(f||p),Q=()=>{a==null||a(""),_==null||_()},ie=H?n.jsx(Zt,{size:yo(l),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):x,Y=vo(l,W,F&&B,P),ce=mo(l,W),ee={rows:R,minLength:i,autoFocus:o,resize:P,...d};return n.jsx(Jt,{ref:T,component:"textarea",size:ce,error:c,disabled:f||p,loading:p,helper:g,suffix:ie,id:y,showLabel:F,onFocus:v,onBlur:w,onKeyDown:C,onChange:a,value:e||"",placeholder:r,className:E,"data-floating-label":F,wrapperStyles:Y.wrapperStyles,floatingLabelStyles:Y.floatingLabelStyles,suffixStyles:Y.suffixStyles,textareaStyles:Y.textareaStyles,wrapperProps:M,labelProps:O,helperProps:D,showLimit:j&&(W===112||l===pe.SMALL),maxLength:s,inputProps:ee,resize:P,showGrip:U,...S})}),Co="_helper_1jq7j_16",nt={helper:Co,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},So=({title:e,error:a,className:r="",style:s,disabled:i=!1,"data-testid":o,"aria-label":l,"aria-describedby":d})=>{const c=!!a,f=$.clsx(nt.helper,c&&nt["helper--error"],i&&nt["helper--disabled"],r),p=i?e:a||e;return n.jsx("div",{className:f,style:s,"data-testid":o,"aria-label":l,"aria-describedby":d,children:n.jsx("p",{children:p})})},Lo="_radio_1q34w_54",Eo="_checked_1q34w_75",ko="_error_1q34w_80",jo="_disabled_1q34w_89",$o="_icon_1q34w_125",Ro="_small_1q34w_133",Mo="_medium_1q34w_140",Io="_large_1q34w_147",To="_label_1q34w_154",No="_container_1q34w_180",Ao="_input_1q34w_193",Oo="_card_1q34w_200",Do="_smallCard_1q34w_206",Po="_mediumCard_1q34w_210",qo="_largeCard_1q34w_214",le={radio:Lo,checked:Eo,error:ko,disabled:jo,icon:$o,small:Ro,medium:Mo,large:Io,label:To,container:No,input:Ao,card:Oo,smallCard:Do,mediumCard:Po,largeCard:qo},Bo="radio-container-",zo="radio-label",Kt=b.forwardRef((e,a)=>{const{name:r,id:s,value:i,size:o="large",loading:l=!1,error:d,disabled:c=!1,checked:f=!1,containerClassName:p,className:g,children:x,clickable:h="all",mode:y="default",tabIndex:L,style:v,containerStyle:w,onChange:_,"data-testid":C,...E}=e,R=!!d,j=c||l,M=h==="all",O=y==="card",D=le[`${o}Card`],U=s??r,W=F=>{j||_==null||_(i,F)},P=F=>{F.key==="Enter"&&!j&&(F.preventDefault(),_==null||_(i))},S=F=>F.stopPropagation(),T=()=>n.jsxs("div",{className:$.clsx(le.radio,le[o],{[le.checked]:f,[le.disabled]:j,[le.error]:R&&!j},g),style:v,tabIndex:L||1,"data-testid":`${Bo}${U}`,children:[n.jsx("input",{"aria-errormessage":d,"aria-invalid":R,checked:f,className:le.input,"data-testid":`radio-${U}`,disabled:j,id:U,name:r,ref:a,type:"radio",value:i,onChange:W,onClick:S}),n.jsx("svg",{"data-testid":`radio-icon-${U}`,viewBox:"0 0 8 8",className:le.icon,children:n.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),B=()=>n.jsxs("label",{"aria-checked":f,"aria-disabled":j,"data-testid":M?C:zo,htmlFor:U,style:w,className:$.clsx(le.label,{[$.clsx(le.container,le[y],p)]:M,[D]:M&&O}),onKeyDown:P,...E,children:[T(),M&&x]});return M?B():n.jsxs("div",{className:$.clsx(le.container,le[y],p,{[D]:O}),"data-testid":C,children:[B(),x]})}),Uo="_group_o6mjt_7",Fo="_vertical_o6mjt_12",Wo="_horizontal_o6mjt_16",At={group:Uo,vertical:Fo,horizontal:Wo},Vo=b.forwardRef((e,a)=>{const{id:r,name:s,value:i,options:o,className:l,radioClassName:d,disabled:c=!1,layout:f="vertical","data-testid":p,...g}=e;return n.jsx("div",{className:we(At.group,At[f],l),"data-testid":p??`radio-group-${s}`,id:r,ref:a,children:o.map(({label:x,value:h,disabled:y})=>{const L=`${s}-${String(h)}`,v=String(h)===String(i);return n.jsx(Kt,{id:L,checked:v,"data-testid":L,disabled:c||y,name:s,value:h,className:d,...g,children:x},L)})})}),Ho=Object.assign(Kt,{Group:Vo}),Go="_root_1jj3e_25",Zo="_unordered_1jj3e_39",Yo="_ordered_1jj3e_43",Jo="_sm_1jj3e_48",Ko="_md_1jj3e_59",Xo="_lg_1jj3e_70",Qo="_xl_1jj3e_81",ot={root:Go,unordered:Zo,ordered:Yo,sm:Jo,md:Ko,lg:Xo,xl:Qo},ei=e=>{const{children:a,className:r,"data-testid":s="list-item"}=e;return n.jsx("li",{"data-testid":s,className:r,children:a})},ti=Object.assign(b.forwardRef((e,a)=>{const{variant:r="unordered",className:s,children:i,size:o="md","data-testid":l="list",...d}=e,c=r==="ordered"?"ol":"ul";return n.jsx(c,{"data-testid":l,ref:a,className:we(ot.root,ot[r],ot[o],s),...r==="ordered"&&d,children:i})}),{Item:ei}),ri="_wrapper_1v8xn_5",ai="_viewport_1v8xn_12",si="_mask_1v8xn_26",ni="_maskLeft_1v8xn_37",oi="_maskRight_1v8xn_42",ii="_visible_1v8xn_46",li="_control_1v8xn_51",ci="_xs_1v8xn_70",di="_sm_1v8xn_73",ui="_md_1v8xn_76",_i="_left_1v8xn_80",pi="_right_1v8xn_83",se={wrapper:ri,viewport:ai,mask:si,maskLeft:ni,maskRight:oi,visible:ii,control:li,xs:ci,sm:di,md:ui,left:_i,right:pi},fi="white",bi=({children:e,withControls:a=!0,className:r,size:s})=>{const i=b.useRef(null),[o,l]=b.useState(!1),[d,c]=b.useState(!1),{ref:f,bgColor:p}=zt(),g=f??{current:null},x=p??fi,h=a&&o,y=a&&d,L=({direction:_})=>n.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:n.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),v=()=>{const _=i.current;if(!_)return;const C=Math.round(_.scrollLeft),E=Math.round(_.scrollLeft+_.clientWidth),R=Math.round(_.scrollWidth);l(C>0),c(E<R)},w=_=>{const C=i.current;if(!C)return;const E=C.clientWidth;C.scrollBy({left:_==="left"?-E:E,behavior:"smooth"})};return b.useEffect(()=>{const _=i.current;if(!_)return;const C=E=>{Math.abs(E.deltaX)>Math.abs(E.deltaY)||_.scrollWidth>_.clientWidth&&(E.preventDefault(),_.scrollBy({left:E.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",C,{passive:!1}),()=>_.removeEventListener("wheel",C)},[]),b.useEffect(()=>{v();const _=i.current;if(_)return _.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{_.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[]),n.jsxs("div",{ref:g,className:$.clsx(se.wrapper,r),children:[h&&n.jsx("div",{className:$.clsx(se.mask,se.maskLeft,o&&se.visible),style:{background:`linear-gradient(to right, ${x} 17%, transparent 80%)`}}),y&&n.jsx("div",{className:$.clsx(se.mask,se.maskRight,d&&se.visible),style:{background:`linear-gradient(to left, ${x} 17%, transparent 80%)`}}),n.jsx("div",{ref:i,className:se.viewport,children:e}),h&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:$.clsx(se.control,se.left,se[s]),onClick:()=>w("left"),children:n.jsx(L,{direction:"left"})}),y&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:$.clsx(se.control,se.right,se[s]),onClick:()=>w("right"),children:n.jsx(L,{direction:"right"})})]})},gi="_tabBar_1ndpm_82",hi="_primary_1ndpm_88",mi="_secondary_1ndpm_93",yi="_tab_1ndpm_82",xi="_md_1ndpm_125",vi="_sm_1ndpm_129",wi="_xs_1ndpm_133",Ci="_disabled_1ndpm_137",Si="_selected_1ndpm_143",Li="_tabLabel_1ndpm_222",Ei="_tabPrefix_1ndpm_234",ki="_tabPostfix_1ndpm_270",X={tabBar:gi,primary:hi,secondary:mi,tab:yi,md:xi,sm:vi,xs:wi,disabled:Ci,selected:Si,tabLabel:Li,tabPrefix:Ei,tabPostfix:ki},ji="md",$i=!1,Ri=8,Mi="top-right-inside",Xt=b.createContext(null),Qt=()=>{const e=b.useContext(Xt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},Ii=({children:e,defaultActiveTab:a,activeTab:r,onChange:s})=>{const[i,o]=b.useState(a),l=r!==void 0,d=l?r:i,c=f=>{l||o(f),s&&s(f)};return n.jsx(Xt.Provider,{value:{activeTab:d,setTab:c},children:e})},Ti=({mode:e,item:a,isActive:r,showBadge:s,badgeProps:i,size:o,isDisabled:l,onSelectTab:d})=>{const{value:c,label:f,prefix:p,prefixWrapperProps:g={},postfix:x,postfixWrapperProps:h={}}=a,{className:y,...L}=g,{className:v,...w}=h,_={primary:oe["typography-label-3-medium"],secondary:oe["typography-label-3-regular"],prefix:oe["typography-label-3-medium"],postfix:oe["typography-label-3-medium"]},C={size:Ri,position:Mi,...i},E=$.clsx(X.tab,X[e],X[o],{[X.selected]:r,[X.disabled]:l}),R=$.clsx(X.tabPrefix,y,X[e],_.prefix,{[X.selected]:r,[X.disabled]:l}),j=$.clsx(X.tabPostfix,v,X[e],_.postfix,{[X.selected]:r,[X.disabled]:l}),M=$.clsx(X.tabLabel,X[e],_[e]),O=U=>{r||l||(d(c),U.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},D=n.jsxs("button",{className:E,role:"tab","aria-label":f,"aria-selected":r,"aria-disabled":l,"aria-controls":`tab-panel-${c}`,"data-testid":`tab-item-${c}`,onClick:O,children:[p&&n.jsx("span",{className:R,...L,"data-testid":`tab-prefix-${c}`,children:p}),n.jsx("span",{className:M,"data-testid":`tab-label-${c}`,children:f}),x&&n.jsx("span",{className:j,...w,"data-testid":`tab-postfix-${c}`,children:x})]});return s?n.jsx(Ut,{...C,"data-testid":`tab-badge-${c}`,children:D}):D},Ni=({mode:e,items:a,size:r=ji,isAllItemsDisabled:s=$i})=>{const{activeTab:i,setTab:o}=Qt(),l=Ga();return n.jsx(bi,{size:r,withControls:l,children:n.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:$.clsx(X.tabBar,X[e]),children:a.map(d=>n.jsx(Ti,{size:r,item:d,mode:e,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:s||d.isDisabled,onSelectTab:o},d.value))})})},Ai=({tabValue:e,children:a,...r})=>n.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...r,children:a}),Oi=({children:e,...a})=>{const{activeTab:r}=Qt(),s=Array.isArray(e)?e:[e],i=(o,l)=>b.isValidElement(o)&&typeof o.props=="object"&&o.props!==null&&l in o.props;return n.jsx("div",{"data-testid":"tab-content",...a,children:s.map(o=>i(o,"tabValue")&&String(o.props.tabValue)===r?o:null)})},Di={Provider:Ii,Content:Oi,Panel:Ai,Bar:Ni},Pi="_root_1fbbw_34",qi="_open_1fbbw_51",Bi="_xs_1fbbw_55",zi="_s_1fbbw_61",Ui="_m_1fbbw_67",Fi="_neutral_1fbbw_73",Wi="_contrast_1fbbw_78",Vi="_accent_1fbbw_84",Hi="_typography_1fbbw_89",Gi="_title_1fbbw_89",Zi="_text_1fbbw_93",Yi="_mediaWrapper_1fbbw_97",Ji="_content_1fbbw_112",Ki="_closeButton_1fbbw_116",Xi="_hasMedia_1fbbw_142",Qi="_buttonStack_1fbbw_148",ne={root:Pi,open:qi,xs:Bi,s:zi,m:Ui,neutral:Fi,contrast:Wi,accent:Vi,typography:Hi,title:Gi,text:Zi,mediaWrapper:Yi,content:Ji,closeButton:Ki,hasMedia:Xi,buttonStack:Qi},el=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),tl=()=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[n.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),n.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),ue={shiftX:64,adjustY:1},_e={adjustX:1,shiftY:!0},rl={left:{points:["cr","cl"],overflow:_e,offset:[-22,0]},right:{points:["cl","cr"],overflow:_e,offset:[22,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:_e,offset:[-22,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:_e,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:_e,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:_e,offset:[-22,0]}},al={left:{points:["cr","cl"],overflow:_e,offset:[-16,0]},right:{points:["cl","cr"],overflow:_e,offset:[16,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:_e,offset:[-16,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:_e,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:_e,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:_e,offset:[-16,0]}},sl={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},nl=(e,a,r)=>Math.min(Math.max(e,a),r),ol=(e,a,r)=>{const s=nl(a,1,3),i=sl[r][s];return i[Math.min(e,i.length-1)]},Ot=({text:e,title:a,media:r,variant:s="neutral",size:i,classNames:o={},onClose:l,buttons:d,buttonProps:c,showClose:f})=>{const p=["neutral","accent"].includes(s)?"contrast":"primary",g=i==="m",x=!!(a&&g),h=!!(r&&g),y=d&&!!d.length,L=!!(f&&g)||!f&&g&&!y,v=i==="xs"?4:3;return n.jsxs("div",{className:ne.content,children:[h&&n.jsx("div",{className:$.clsx(ne.mediaWrapper,o.mediaWrapper),children:r}),n.jsxs("div",{className:o.textWrapper,children:[x&&n.jsx(it.Subtitle,{className:$.clsx(ne.typography,ne.title,o.typography),size:1,as:"h3",typographyStyle:p,children:a}),n.jsx(it.Label,{className:$.clsx(ne.typography,ne.text,o.typography),typographyStyle:p,size:v,children:e})]}),L&&n.jsx("button",{type:"button",className:$.clsx(ne.closeButton,ne[s],o.closeButton,{[ne.hasMedia]:h}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:n.jsx(el,{})}),g&&y&&n.jsx("div",{className:ne.buttonStack,children:d.map((w,_)=>{const E={...ol(_,d.length,s),...c,...w},{closeOnClick:R,...j}=E,M=O=>{var D;(D=j.onClick)==null||D.call(j,O),R&&(l==null||l())};return n.jsx(qt,{...j,onClick:M},_)})})]})},il=({customContent:e,children:a,placement:r="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:o=.1,showArrow:l=!0,showClose:d=!0,trigger:c="hover",variant:f="neutral",size:p="s",text:g,title:x,media:h,buttons:y,buttonProps:L,onClose:v,...w})=>{const[_,C]=b.useState(!1),[E,R]=b.useState(!1),j=p==="m"?rl:al,M=()=>{C(!1),v==null||v()},O=e||(p==="m"?n.jsx(Ot,{classNames:s,text:g,variant:f,size:p,onClose:M,title:x,media:h,showClose:d,buttons:y,buttonProps:L}):n.jsx(Ot,{classNames:s,text:g,variant:f,size:p,onClose:M}));return b.useEffect(()=>{if(_){const D=requestAnimationFrame(()=>R(!0));return()=>cancelAnimationFrame(D)}R(!1)},[_]),n.jsx(wr,{visible:_,onVisibleChange:C,classNames:{root:$.clsx(ne.root,ne[f],ne[p],E&&ne.open),...w.classNames},placement:r,overlay:()=>O,trigger:c,mouseEnterDelay:i,mouseLeaveDelay:o,motion:{motionName:"tooltipMotion"},builtinPlacements:j,showArrow:l?{content:n.jsx(tl,{}),className:`tooltipArrow tooltipArrow-${p}`}:!1,destroyTooltipOnHide:!0,...w,children:a})},ll="_segmentedControl_1yvz7_5",cl="_segment_1yvz7_5",dl="_activeSegmentIndicator_1yvz7_51",ul="_stretched_1yvz7_82",_l="_s_1yvz7_5",pl="_icon_1yvz7_90",fl="_label_1yvz7_94",bl="_m_1yvz7_98",gl="_l_1yvz7_94",Te={segmentedControl:ll,segment:cl,activeSegmentIndicator:dl,stretched:ul,s:_l,icon:pl,label:fl,m:bl,l:gl},Dt={s:oe["typography-label-3-regular"],m:oe["typography-label-2-regular"],l:oe["typography-label-2-regular"]},hl=e=>{var _;const{className:a,defaultValue:r,value:s,size:i="m",segments:o,stretched:l,mode:d="label",onChange:c}=e,f=b.useId(),[p,g]=b.useState(r||o[0].value),[x,h]=b.useState({width:0,left:0}),y=b.useRef(null);b.useEffect(()=>{s&&g(s)},[s]),b.useEffect(()=>{L()},[p,o,i,l,d]);const L=()=>{if(!(y!=null&&y.current))return;const C=y.current.querySelector('[data-is-active-segment="true"]');C&&h({width:C.offsetWidth,left:C.offsetLeft})},v=(_=o.find(C=>C.value===p))==null?void 0:_.label,w=C=>{g(C),c==null||c(C)};return(o==null?void 0:o.length)===0?null:n.jsxs("div",{className:$.clsx(Te.segmentedControl,Te[i],Te[d],{[Te.stretched]:l},a),"data-testid":"segmented-control-container",ref:y,children:[o==null?void 0:o.map(({label:C,value:E},R)=>{const j=()=>w(E);return n.jsxs(b.Fragment,{children:[n.jsx("input",{id:f+JSON.stringify(E),value:JSON.stringify(E),type:"radio",checked:p===E,onClick:j}),n.jsx("label",{"data-is-active-segment":p===E,className:$.clsx(Te.segment,Dt[i]),htmlFor:f+JSON.stringify(E),"data-testid":"segmented-control-segment",children:C})]},He(JSON.stringify(E))+R)}),n.jsx("div",{className:$.clsx(Te.activeSegmentIndicator,Dt[i]),"data-testid":"segmented-control-active-segment",style:{width:x.width,left:x.left},children:v})]})};exports.Avatar=Da;exports.Badge=Ut;exports.Button=qt;exports.Checkbox=yn;exports.ConfigProvider=Bs;exports.Helper=So;exports.Image=ds;exports.List=ti;exports.Loader=Wt;exports.Radio=Ho;exports.SegmentedControl=hl;exports.Tabs=Di;exports.Tag=sn;exports.TextArea=wo;exports.TextInput=po;exports.Tooltip=il;exports.Typography=it;exports.enUS=Vt;exports.ruRU=zs;exports.useConfig=Gt;exports.useLocale=us;
34
+ */var kt;function da(){return kt||(kt=1,function(e){(function(){var a={}.hasOwnProperty;function r(){for(var n="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(n=i(n,s(d)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var l="";for(var d in n)a.call(n,d)&&n[d]&&(l=i(l,d));return l}function i(n,l){return l?n?n+" "+l:n+l:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(rt)),rt.exports}var ua=da();const we=Sr(ua),_a="_avatar_1kyiq_17",pa="_clickable_1kyiq_41",fa="_icon_1kyiq_58",ba="_disabled_1kyiq_63",ga="_loading_1kyiq_68",ha="_image_1kyiq_74",ya="_name_1kyiq_74",he={avatar:_a,clickable:pa,icon:fa,disabled:ba,loading:ga,image:ha,name:ya,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},jt=99;function ma(e){return e<jt?`+${e}`:`${jt}+`}function Ze(e){const a=typeof e=="string"?e:JSON.stringify(e);let r=5381;for(let s=0;s<a.length;s++){const i=a.charCodeAt(s);r=(r<<5)+r+i}return r>>>0}const xa=["red","orange","yellow","green","blue","lightblue","purple"];function va(e,a=xa){if(!e)return"gray";const r=Ze(e),s=Math.abs(r)%a.length;return a[s]}const $t=2;function wa(e){if(!e)return"";const a=e.trim().split(/\s+/);return a.length===1?e.slice(0,$t).toUpperCase():a.map(r=>r[0]).slice(0,$t).join("").toUpperCase()}const Ca={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Dt(e,a){return a==="circle"?e/2:Ca[e]||12}const Sa={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function La(e){return Sa[e]||"typography-subtitle-1-semibold"}const ka="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ja="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",$a="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Ea="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Ra={male:ka,female:ja,org:Ea,neutral:$a},He=b.forwardRef((e,a)=>{const{style:r,size:s=40,isLoading:i=!1,isDisabled:n=!1,shape:l="circle",variant:d="filled",placeholderType:c="neutral",name:f,imgSrc:p,imgAlt:g,icon:x,imgProps:h,colorScheme:m,className:L,"data-testid":v,...w}=e,{onClick:_,onPointerDown:C}=w,R=!n&&!i&&(!!_||!!C),[$,T]=b.useState(!1);b.useEffect(()=>{p&&T(!1)},[p]);const A=p&&!$?"image":x?"icon":f?"name":"placeholder",P=m||A==="name"&&va(f)||"gray",F=La(s),H=Dt(s,l),B=E.clsx(L,he.avatar,he[`variant-${d}`],he[`color-${P}`],ie[F],{[he.disabled]:n,[he.loading]:i,[he.clickable]:R}),S={"--avatar-size":`${s}px`,"--avatar-border-radius":`${H}px`,...r},M={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:he.icon,children:x==null?void 0:x({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:he.name,title:g||void 0,children:wa(f||"")}),placeholder:()=>o.jsx("img",{...h,"data-testid":"avatar-placeholder",className:he.image,src:Ra[c],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...h,className:he.image,src:p||void 0,alt:g||void 0,onLoad:()=>T(!1),onError:W=>{var U;T(!0),(U=h==null?void 0:h.onError)==null||U.call(h,W)}})},D=W=>{R&&(_==null||_(W))};return o.jsx("div",{ref:a,onClick:D,className:B,style:S,"data-testid":v,"aria-disabled":n||i,children:M[A](null)})}),Ta="_avatarGroup_157g4_1",Na={avatarGroup:Ta};let Ia=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((a,r)=>(r&=63,r<36?a+=r.toString(36):r<62?a+=(r-26).toString(36).toUpperCase():r>62?a+="-":a+="_",a),"");function Ma(e,a,r,s,i,n,l){const d=Math.min(i,n)/2,c=Math.min(l,d),f=["M0,0",`H${e}`,`V${a}`,"H0","V0","Z"].join(" "),p=[`M${r+c},${s}`,`L${r+i-c},${s}`,`A${c},${c} 0 0 1 ${r+i},${s+c}`,`L${r+i},${s+n-c}`,`A${c},${c} 0 0 1 ${r+i-c},${s+n}`,`L${r+c},${s+n}`,`A${c},${c} 0 0 1 ${r},${s+n-c}`,`L${r},${s+c}`,`A${c},${c} 0 0 1 ${r+c},${s}`,"Z"].join(" ");return`${f} ${p}`}const Oa=3,Aa=e=>{const{avatars:a=[],size:r=40,overlap:s=.3,shape:i="circle",overflowCount:n=0,overflowProps:l}=e,d=r*s,c=-d+Oa,f=Dt(r,i),g=b.useRef(Ia()).current.toString(),x=we(Na.avatarGroup),h=Ma(r,r,r-d,0,r,r,f);return a.length===0?null:o.jsxs("div",{className:x,children:[a.map((m,L,v)=>{const w=L+1>=v.length;if(m.wrapper){const _=m.wrapper;return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${g})`,marginRight:c},children:o.jsx(_,{children:o.jsx(He,{size:r,shape:i,...m})})},Ze(m)+L)}return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${g})`,marginRight:c},children:o.jsx(He,{size:r,shape:i,...m})},Ze(m)+L)}),n>0&&o.jsx("div",{style:{marginRight:c},children:o.jsx(He,{size:r,shape:i,icon:()=>ma(n),colorScheme:"gray",variant:"light",...l})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${g}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:h,clipRule:"evenodd"})})})]})},Pa=Object.assign(He,{Group:Aa}),Ba="_wrapper_ecbsu_5",za="_badge__container_ecbsu_6",Da="_badge__content_ecbsu_7",qa="_interactive_ecbsu_20",Fa="_disabled_ecbsu_21",Wa="_icon_ecbsu_22",ye={wrapper:Ba,badge__container:za,badge__content:Da,interactive:qa,disabled:Fa,icon:Wa,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Ha=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Va=e=>{if(!e)return null;let a=e;for(;a;){const s=window.getComputedStyle(a).backgroundColor;if(!Ha(s))return s;a=a.parentElement}return null},qt=()=>{const e=b.useRef(null),[a,r]=b.useState(null);return b.useEffect(()=>{if(e.current){const s=Va(e.current);r(s)}},[]),{ref:e,bgColor:a}};function Et(e,a,r){b.useEffect(()=>(window.addEventListener(e,a,r),()=>window.removeEventListener(e,a,r)),[e,a])}const Rt={passive:!0};function Za(){const[e,a]=b.useState({width:0,height:0}),r=b.useCallback(()=>{a({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Et("resize",r,Rt),Et("orientationchange",r,Rt),b.useEffect(r,[]),e}function Ua(e=768){const{width:a}=Za();return b.useMemo(()=>a<=e,[a,e])}const Ft=b.forwardRef((e,a)=>{const{icon:r,children:s,variant:i="filled",label:n,isHidden:l=!1,colorScheme:d="red",size:c=20,position:f="top-right",positionOffset:p={x:0,y:0},cutoutBackground:g,isDisabled:x,className:h,"data-testid":m="badge",...L}=e,{onClick:v,onPointerDown:w}=L,{ref:_,bgColor:C}=qt(),k=g||C,$=!x&&(!!v||!!w),T=we(ye.badge__container,ye[`position-${f}`]),A=we(h,ye.badge__content,ye[`color-${d}`],ye[`variant-${i}`],{[ye.disabled]:x,[ye.icon]:!!r,[ye.interactive]:$}),P={"--badge-height":`${c}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...k&&{"--badge-cutout-bg":k},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},F=(r==null?void 0:r({}))||n,H=B=>{$&&(v==null||v(B))};return o.jsxs("div",{className:ye.wrapper,ref:_,"data-testid":m+"-wrapper",children:[s,!l&&o.jsx("span",{className:T,style:P,"data-testid":m+"-container",children:o.jsx("span",{...L,onClick:H,className:A,"data-testid":m+"-content",ref:a,"aria-disabled":x,children:F})})]})}),Ga="_container_op5yl_7",Xa="_image_op5yl_22",Ya="_loading_op5yl_34",at={container:Ga,image:Xa,loading:Ya},Ja="_loader_isv17_1",Ka="_spin_isv17_1",Qa="_accent_isv17_19",es="_neutral_isv17_23",ts="_positive_isv17_27",rs="_negative_isv17_31",as="_gray_isv17_35",ss="_special_isv17_39",os="_contrast_isv17_43",ns="_container_isv17_47",is="_overlay_isv17_57",Be={loader:Ja,spin:Ka,accent:Qa,neutral:es,positive:ts,negative:rs,gray:as,special:ss,contrast:os,container:ns,overlay:is,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Wt=b.forwardRef(({size:e=24,variant:a="accent",className:r,"data-testid":s="loader",style:i,...n},l)=>{const d=we(Be.loader,Be[a],Be[`size-${e}`],r);return o.jsx("svg",{ref:l,className:d,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...n,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),ls=b.forwardRef((e,a)=>{const{loading:r=!1,size:s=24,variant:i="accent",children:n,className:l,style:d,"data-testid":c,...f}=e,p=we(Be.container,l);return o.jsxs("div",{ref:a,className:p,style:d,"data-testid":c,...f,children:[n,r&&o.jsx("div",{className:Be.overlay,children:o.jsx(Wt,{size:s,variant:i,"data-testid":`${c}-spinner`})})]})}),Ht=b.forwardRef((e,a)=>e.children?o.jsx(ls,{ref:a,...e}):o.jsx(Wt,{ref:a,...e})),cs=({width:e=48,height:a=48,className:r,"data-testid":s})=>o.jsx("svg",{width:e,height:a,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,"data-testid":s,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),ds=b.forwardRef((e,a)=>{const{alt:r="",loading:s="lazy",src:i,isLoading:n=!1,className:l,"data-testid":d="image",onError:c,onLoad:f,...p}=e,[g,x]=b.useState("loading"),h=g==="error",m=(n||g==="loading")&&!h,L=g==="loaded"&&!n,v=we(at.image,{[at.loading]:m},l),w=b.useCallback(k=>{x("loaded"),f==null||f(k)},[f]),_=b.useCallback(k=>{x("error"),c==null||c(k)},[c]),C={loader:o.jsxs(b.Fragment,{children:[o.jsx(Ht,{size:48,variant:"special","data-testid":`${d}-loader`}),o.jsx("img",{alt:r,src:i,onLoad:w,onError:_,style:{display:"none"}})]}),error:o.jsx(cs,{"data-testid":`${d}-fallback`}),image:o.jsx("img",{ref:a,alt:r,"data-testid":d,loading:s,src:i,className:v})};return b.useEffect(()=>{if(!i){x("error");return}x("loading")},[i]),o.jsxs("div",{className:at.container,"data-testid":`${d}-container`,...p,children:[m&&C.loader,h&&C.error,L&&C.image]})}),Vt={},Zt=b.createContext({locale:Vt}),Ut=()=>{const e=b.useContext(Zt);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},us=()=>{const{locale:e}=Ut();return e},_s={},ps={},fs={},bs={},gs={},hs="_base_1p0qo_50",ys="_content_1p0qo_54",ms="_background_1p0qo_58",xs="_button_1p0qo_62",vs="_link_1p0qo_66",ws="_input_1p0qo_70",Cs="_suffix_1p0qo_74",Ss="_prefix_1p0qo_78",Ls="_tooltip_1p0qo_82",ks="_hint_1p0qo_86",js="_dropdown_1p0qo_90",$s="_popover_1p0qo_94",Es="_modalBackdrop_1p0qo_98",Rs="_modal_1p0qo_98",Ts="_overlay_1p0qo_106",Ns="_drawer_1p0qo_110",Is="_notification_1p0qo_114",Ms="_alert_1p0qo_118",Os="_toast_1p0qo_122",As="_loading_1p0qo_126",Ps="_error_1p0qo_130",Bs="_critical_1p0qo_134",zs={base:hs,content:ys,background:ms,button:xs,link:vs,input:ws,suffix:Cs,prefix:Ss,tooltip:Ls,hint:ks,dropdown:js,popover:$s,modalBackdrop:Es,modal:Rs,overlay:Ts,drawer:Ns,notification:Is,alert:Ms,toast:Os,loading:As,error:Ps,critical:Bs},Ds=({locale:e={},theme:a,children:r,className:s})=>(b.useLayoutEffect(()=>{if(a){const i=document.documentElement;Object.entries(a).forEach(([n,l])=>{i.style.setProperty(n,l)})}},[a]),o.jsxs(b.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:E.clsx(_s,ps,fs,bs,gs,zs,ie,s)}),o.jsx(Zt.Provider,{value:{locale:e},children:r})]})),qs={},Fs="_tag_1llsi_1",Ws="_label_1llsi_16",Hs="_iconWrapper_1llsi_20",Vs="_medium_1llsi_27",Zs="_large_1llsi_33",Us="_disabled_1llsi_43",Gs="_neutral_1llsi_47",Xs="_positive_1llsi_53",Ys="_negative_1llsi_59",Js="_warning_1llsi_65",Ks="_vivid_1llsi_71",Qs="_special_1llsi_77",eo="_accent_1llsi_84",to="_blue_1llsi_90",ro="_lovely_1llsi_96",ao="_dreamy_1llsi_102",Le={tag:Fs,label:Ws,iconWrapper:Hs,medium:Vs,large:Zs,disabled:Us,neutral:Gs,positive:Xs,negative:Ys,warning:Js,vivid:Ks,special:Qs,accent:eo,blue:to,lovely:ro,dreamy:ao},so=b.forwardRef((e,a)=>{const{className:r,children:s,componentStyle:i="neutral",size:n="medium",disabled:l=!1,showLabel:d=!!s,slotStart:c,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":x}=e,{className:h,...m}=p,{className:L,...v}=g;return o.jsxs("div",{className:E.clsx(Le.tag,Le[n],Le[i],{[Le.disabled]:l,[ie["typography-label-3-regular"]]:n==="medium",[ie["typography-subtitle-1-semibold"]]:n==="large"},r),"data-testid":x||"tag-component",ref:a,children:[c&&o.jsx("span",{className:E.clsx([Le.iconWrapper,h]),...m,children:c}),d&&o.jsx("span",{className:E.clsx([Le.label]),children:s}),f&&o.jsx("span",{className:E.clsx([Le.iconWrapper,L]),...v,children:f})]})}),oo="_checkbox_17txq_43",no="_input_17txq_64",io="_icon_17txq_72",lo="_container_17txq_92",co="_error_17txq_143",uo="_checkboxWrapper_17txq_156",_o="_medium_17txq_211",po="_large_17txq_216",fo="_label_17txq_258",xe={checkbox:oo,input:no,icon:io,container:lo,error:co,checkboxWrapper:uo,medium:_o,large:po,label:fo},bo=({width:e=12,height:a=9,className:r="",color:s="currentColor",...i})=>o.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),go=({width:e=12,height:a=2,className:r="",color:s="currentColor",...i})=>o.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),ho={medium:{width:10.83,height:7.5},large:{width:13,height:9}},yo=({size:e,isChecked:a,isDisabled:r,indeterminate:s,dataTestId:i})=>{const{width:n,height:l}=ho[e];return o.jsx("div",{className:xe.icon,"data-testid":`${i}-icon`,"data-checked":a,"data-disabled":r,"data-indeterminate":s,children:s?o.jsx(go,{width:n,height:l}):o.jsx(bo,{width:n,height:l})})},mo=b.forwardRef((e,a)=>{const{name:r,value:s,size:i="medium",indeterminate:n=!1,loading:l=!1,error:d,disabled:c=!1,containerClassName:f,className:p,containerStyle:g,style:x,children:h,clickableLabel:m=!0,tabIndex:L,onChange:v,"data-testid":w="checkbox"}=e,[_,C]=b.useState(!1),k=s??_,R=c||l,$=!!d,T=k||n,A=E.clsx(xe.container,xe[i],f),P=E.clsx(xe.checkbox,xe[i],{[xe.error]:$},p),F=M=>{R||(C(M.target.checked),v==null||v(M.target.checked,M))},H=M=>{if(M.key==="Enter"&&!R){M.preventDefault();const D=!T;C(D),v==null||v(D)}},B=M=>{m||M.preventDefault()},S=M=>M.stopPropagation();return o.jsxs("label",{className:A,htmlFor:r,style:g,"data-testid":w,"data-clickable-label":m,children:[o.jsx("div",{className:xe.checkboxWrapper,children:o.jsxs("div",{tabIndex:L||0,className:P,style:x,onKeyDown:H,"aria-checked":T,"aria-disabled":R,"aria-invalid":$,"aria-describedby":d?`${r}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:a,type:"checkbox",id:r,name:r,checked:T,disabled:R,className:xe.input,onChange:F,onClick:S,"aria-checked":T,"aria-invalid":$,"aria-describedby":d?`${r}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(yo,{name:r,size:i,isChecked:T,isDisabled:R,indeterminate:n,dataTestId:w})]})}),h&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":m,className:xe.label,onClick:B,children:h})]})}),xo="_typography_zt7xg_1",vo="_disabled_zt7xg_8",wo="_primary_zt7xg_13",Co="_secondary_zt7xg_18",So="_tertiary_zt7xg_23",Lo="_accent_zt7xg_28",ko="_positive_zt7xg_38",jo="_negative_zt7xg_48",$o="_warning_zt7xg_58",Eo="_special_zt7xg_68",Ro="_contrast_zt7xg_78",Me={typography:xo,disabled:vo,primary:wo,secondary:Co,tertiary:So,accent:Lo,"accent-secondary":"_accent-secondary_zt7xg_33",positive:ko,"positive-secondary":"_positive-secondary_zt7xg_43",negative:jo,"negative-secondary":"_negative-secondary_zt7xg_53",warning:$o,"warning-secondary":"_warning-secondary_zt7xg_63",special:Eo,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ro,"contrast-secondary":"_contrast-secondary_zt7xg_83"},To={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Tt=e=>{const a=Bt.forwardRef(({size:r=3,children:s,className:i,"data-testid":n,as:l,fontWeight:d="semibold",disabled:c=!1,typographyStyle:f="primary",...p},g)=>{const x=l||To[r],h=E.clsx(Me.typography,ie[`typography-${e}-${r}-${d}`],Me[f],{[Me.disabled]:c},i);return s?o.jsx(x,{ref:g,className:h,"data-testid":n,...p,children:s}):null});return a.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,a},Nt=e=>{const a=Bt.forwardRef(({size:r=3,children:s,className:i,"data-testid":n,as:l="p",fontWeight:d="regular",disabled:c=!1,typographyStyle:f="primary",...p},g)=>{const x=l,h=E.clsx(Me.typography,ie[`typography-${e}-${r}-${d}`],Me[f],{[Me.disabled]:c},i);return s?o.jsx(x,{ref:g,className:h,"data-testid":n,...p,children:s}):null});return a.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,a},it={Title:Tt("title"),Subtitle:Tt("subtitle"),Label:Nt("label"),Paragraph:Nt("paragraph")},No="_base_10oxr_1",Io="_content_10oxr_1",Mo="_background_10oxr_1",Oo="_button_10oxr_1",Ao="_link_10oxr_1",Po="_input_10oxr_96",Bo="_suffix_10oxr_1",zo="_prefix_10oxr_1",Do="_tooltip_10oxr_1",qo="_hint_10oxr_794",Fo="_dropdown_10oxr_1",Wo="_popover_10oxr_1",Ho="_modalBackdrop_10oxr_1",Vo="_modal_10oxr_1",Zo="_overlay_10oxr_1",Uo="_drawer_10oxr_1",Go="_notification_10oxr_1",Xo="_alert_10oxr_1",Yo="_toast_10oxr_1",Jo="_loading_10oxr_291",Ko="_error_10oxr_252",Qo="_critical_10oxr_1",en="_inputBase_10oxr_96",tn="_wrapper_10oxr_106",rn="_gripHandle_10oxr_186",an="_tabFocused_10oxr_259",sn="_disabled_10oxr_284",on="_label_10oxr_301",nn="_S_10oxr_315",ln="_M_10oxr_321",cn="_XL_10oxr_328",dn="_leftSection_10oxr_335",un="_rightSection_10oxr_347",_n="_helper_10oxr_385",pn="_floatingLabel_10oxr_415",fn="_focused_10oxr_481",bn="_filled_10oxr_482",gn="_L_10oxr_522",hn="_characterLimit_10oxr_564",yn="_textarea_10oxr_124",mn="_truncate_10oxr_707",I={base:No,content:Io,background:Mo,button:Oo,link:Ao,input:Po,suffix:Bo,prefix:zo,tooltip:Do,hint:qo,dropdown:Fo,popover:Wo,modalBackdrop:Ho,modal:Vo,overlay:Zo,drawer:Uo,notification:Go,alert:Xo,toast:Yo,loading:Jo,error:Ko,critical:Qo,inputBase:en,wrapper:tn,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:rn,tabFocused:an,disabled:sn,label:on,S:nn,M:ln,XL:cn,leftSection:dn,rightSection:un,helper:_n,floatingLabel:pn,focused:fn,filled:bn,L:gn,characterLimit:hn,textarea:yn,"size-S":"_size-S_10oxr_646","size-M":"_size-M_10oxr_656","size-L":"_size-L_10oxr_662","size-XL":"_size-XL_10oxr_668","with-floating-label":"_with-floating-label_10oxr_675",truncate:mn,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},xn=({width:e=8,height:a=8,className:r,color:s="#AABBCA"})=>o.jsx("svg",{width:e,height:a,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),Gt=({className:e="",style:a,size:r="md",color:s="currentColor",onClick:i,...n})=>{const d={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[r],...a};return o.jsx("svg",{className:e,style:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},vn=(e,a)=>{const r=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{const i=a==="textarea"?r.current:s.current;i&&i.value!==e&&(i.value=e||"")},[e,a]),{textareaRef:r,inputRef:s,currentRef:a==="textarea"?r:s}},wn=(e,a,r)=>{const s=()=>{if(!r.current||a!=="hug")return;const i=r.current.scrollTop;if(r.current.style.setProperty("height","auto","important"),!e)return;const n=r.current.scrollHeight+"px";r.current.style.setProperty("height",n,"important"),r.current.scrollTop=i;const l=r.current.closest(`.${I.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(s,[e,a]),b.useEffect(()=>{a==="hug"&&r.current&&s()},[]),{resizeTextArea:s}},Cn=(e,a,r,s)=>({handleGripMouseDown:b.useCallback(n=>{if(!e||a||r||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const l=n.currentTarget.closest(`.${I.wrapper}`);if(!l)return;const d=n.clientY,c=l.clientHeight,f=g=>{const x=g.clientY-d,h=Math.min(100,c),m=Math.max(h,c+x);l.style.height=`${m}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[e,a,r,s])}),It=30,Sn=b.forwardRef(({component:e="input",size:a="L",value:r="",placeholder:s,disabled:i=!1,loading:n=!1,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:x,style:h,truncate:m=!1,shouldShowFloatingLabelClass:L=!1,"aria-invalid":v,"aria-errormessage":w,id:_,resize:C,...k},R)=>{const{textareaRef:$,inputRef:T,currentRef:A}=vn(r,e);if(wn(r,C,$),b.useImperativeHandle(R,()=>A.current,[A]),e==="textarea")return o.jsx("textarea",{ref:$,id:_,value:r,placeholder:s,disabled:i||n,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:E.clsx(I.textarea,I[`size-${a}`],L&&I["with-floating-label"],x),style:h,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,"data-resize":C,...k});if(e==="input")return o.jsx("input",{ref:T,id:_,value:r,placeholder:s,disabled:i||n,onFocus:l,onBlur:d,onChange:c,onKeyDown:f,onKeyUp:p,maxLength:g,className:E.clsx(I.input,I[`size-${a}`],L&&I["with-floating-label"],m&&I.truncate,x),style:h,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,...k});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Xt=b.forwardRef(({children:e,size:a="L",error:r=!1,disabled:s=!1,loading:i=!1,className:n,wrapperProps:l,wrapperStyles:d,floatingLabelStyles:c,prefixStyles:f,suffixStyles:p,labelProps:g,helperProps:x,showLimit:h=!1,maxLength:m,hint:L,showHint:v=!1,showHintOnEmpty:w=!1,prefix:_,suffix:C,onSuffixClick:k,placeholder:R,showLabel:$=!0,labelClassName:T,hasValue:A=!1,helper:P,id:F,value:H="",resize:B,showGrip:S=!1,...M},D)=>{const W=b.useId(),U=F||W,Q=v&&L&&(A||w),le=L&&L.length>It?L.substring(0,It)+"...":L,ae=E.clsx(I.wrapper,I[`size-${a}`],r&&I.error,s&&I.disabled,i&&I.loading,Q&&I["has-hint"],C&&I["has-suffix"],h&&I["has-limit"],n),ee=E.clsx(I.floatingLabel,I[a],A&&I.filled,T),{handleGripMouseDown:te}=Cn(S,s,i,B);return o.jsxs("div",{ref:D,className:I.inputBase,"data-testid":"input-base-wrapper",...M,children:[o.jsxs("div",{className:ae,style:d,"data-resize":B,"data-show-grip":S?"true":"false",...l,children:[_&&o.jsx("label",{htmlFor:U,className:I.leftSection,style:f,children:_}),C&&o.jsx("label",{htmlFor:U,className:I.rightSection,style:p,onClick:k,children:C}),R&&$&&o.jsx("label",{htmlFor:U,className:ee,style:c,...g,children:R}),e,S&&!h&&(B==="fixed"||!B)&&o.jsx("div",{className:I.gripHandle,onMouseDown:te,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(xn,{})}),Q&&o.jsx("div",{className:E.clsx(I.hint,A&&I.truncate),"data-disabled":s||i,children:le}),h&&m&&o.jsxs("div",{className:I.characterLimit,children:[(H||"").length," из ",m]})]}),P&&o.jsx("div",{className:E.clsx(I.helper,r&&I.error,(s||i)&&I.disabled),...x,id:r?`${U}-error`:void 0,children:P})]})});Xt.displayName="InputWrapperComponent";const Mt=Object.assign(Sn,{Wrapper:Xt}),Yt=b.forwardRef(({component:e="input",size:a="L",className:r,error:s=!1,disabled:i=!1,loading:n=!1,placeholder:l,showLabel:d=!0,labelClassName:c,helper:f,prefix:p,suffix:g,id:x,onFocus:h,onBlur:m,onKeyDown:L,onSuffixClick:v,onChange:w,value:_="",wrapperProps:C,wrapperStyles:k,floatingLabelStyles:R,prefixStyles:$,suffixStyles:T,textareaStyles:A,labelProps:P,helperProps:F,showLimit:H=!1,maxLength:B,inputProps:S,hint:M,showHint:D=!1,showHintOnEmpty:W=!1,truncate:U=!1,resize:Q,showGrip:le=!1,...ae},ee)=>{const te=b.useId(),ge=x||te,[Oe,ke]=b.useState(_),fe=_!==void 0?_:Oe,je=(fe||"").length>0,Ce=fe||"",$e=d&&(a==="XL"||e==="textarea")&&!p,Ue=b.useCallback(Y=>{var J;i||n||(h==null||h(),(J=S==null?void 0:S.onFocus)==null||J.call(S,Y))},[h,S,i,n]),De=b.useCallback(Y=>{var J;if(Y.key==="Tab"){const be=Y.target.closest(`.${I.wrapper}`);be&&be.classList.add(I.tabFocused)}(J=S==null?void 0:S.onKeyUp)==null||J.call(S,Y)},[S]),Ge=b.useCallback(Y=>{var be;const J=Y.target.closest(`.${I.wrapper}`);J&&J.classList.remove(I.tabFocused),m==null||m(),(be=S==null?void 0:S.onBlur)==null||be.call(S,Y)},[m,S]),Xe=b.useCallback(Y=>{var be;if(i||n)return;const J=Y.target.value;ke(J),w==null||w(J,Y),(be=S==null?void 0:S.onChange)==null||be.call(S,Y)},[w,S,i,n]);return b.useEffect(()=>{ke(_||"")},[_]),o.jsx(Mt.Wrapper,{ref:ee,size:a,error:s,disabled:i||n,loading:n,className:E.clsx(r,e==="textarea"&&I["textarea-wrapper"]),wrapperProps:C,wrapperStyles:k,floatingLabelStyles:R,prefixStyles:$,suffixStyles:T,labelProps:P,helperProps:F,showLimit:H,maxLength:B,hint:M,showHint:D,showHintOnEmpty:W,prefix:p,suffix:g,onSuffixClick:v,placeholder:l,showLabel:d,labelClassName:c,hasValue:je,helper:f,id:ge,value:Ce,showGrip:le,resize:Q,...ae,children:o.jsx(Mt,{component:e,size:a,value:Ce,placeholder:l,disabled:i,loading:n,onFocus:Ue,onBlur:Ge,onChange:Xe,onKeyDown:L,onKeyUp:De,maxLength:B,truncate:U,"data-empty":!je,shouldShowFloatingLabelClass:$e,style:e==="textarea"?A:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${ge}-error`:void 0,id:ge,resize:Q,...S})})}),V={S:"S",M:"M",L:"L",XL:"XL"},Ln=(e,a,r,s)=>{switch(e){case V.XL:return a&&r?"8px 16px 8px 16px":"16px 16px 16px 16px";case V.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case V.M:return"10px 12px 10px 12px";case V.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},kn=e=>{switch(e){case V.XL:return"56px";case V.L:return"48px";case V.M:return"40px";case V.S:return"32px";default:return"48px"}},jn=e=>{switch(e){case V.S:case V.M:case V.L:return 4;case V.XL:return 8;default:return 8}},$n=e=>{switch(e){case V.S:case V.M:return 8;case V.L:case V.XL:return 12;default:return 12}},En=(e,a,r,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Rn=(e,a,r,s)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Tn=(e,a,r,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Nn=(e,a,r,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),In=(e,a,r,s)=>{const i=kn(e),n=Ln(e,a,r,s),l=$n(e),d=jn(e);switch(e){case V.XL:return Rn(i,n,l,d);case V.L:return Tn(i,n,l,d);case V.M:return Nn(i,n,l,d);case V.S:return En(i,n,l,d);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Mn=b.forwardRef(({value:e="",onChange:a,type:r="text",placeholder:s,maxLength:i,minLength:n,autoComplete:l,autoFocus:d,size:c=V.L,inputProps:f,error:p,disabled:g,loading:x,helper:h,prefix:m,suffix:L,clearable:v=!1,id:w,showLabel:_=!0,onFocus:C,onBlur:k,onSuffixClick:R,onClear:$,className:T,truncate:A=!0,hint:P,showHint:F=!1,showHintOnEmpty:H=!1,wrapperProps:B,labelProps:S,helperProps:M,...D},W)=>{const U=(e||"").length>0,Q=c===V.XL,le=!!m,ae=Q&&_&&!m,ee=v&&U&&!(g||x),te=()=>{a==null||a(""),$==null||$()},ge=()=>{ee&&te(),R==null||R()},Oe=ee?o.jsx(Gt,{size:c===V.S||c===V.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):L,ke={type:r,minLength:n,autoComplete:l,autoFocus:d,...f},fe=In(c,ae,U,le);return o.jsx(Yt,{size:c,error:p,disabled:g||x,loading:x,helper:h,prefix:m,suffix:Oe,id:w,showLabel:ae,onFocus:C,onBlur:k,onSuffixClick:ge,onChange:a,value:e,placeholder:s,className:T,wrapperStyles:fe.wrapperStyles,floatingLabelStyles:fe.floatingLabelStyles,prefixStyles:fe.prefixStyles,suffixStyles:fe.suffixStyles,wrapperProps:B,labelProps:S,helperProps:M,showLimit:!1,maxLength:i,inputProps:ke,hint:P,showHint:F,showHintOnEmpty:H,truncate:A,...D})}),de={M:"M",L:"L"},Ve={M:"12px",L:"16px"},On={M:"xs",L:"sm"},We={FILL:"fill",FIXED:"fixed"},st={M:"112px",L:"56px"},Ne={M:"48px",L:"22px"},me={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},ve={M:48,L:56,XL:112},An=(e,a)=>{if(e===de.M)return st.M;if(a)return`${a}px`;switch(e){case de.L:return st.L;default:return st.L}},Pn=(e,a)=>{if(e===de.M)return Ne.M;if(a)switch(a){case ve.M:case ve.L:return Ne.L;case ve.XL:return Ne.M;default:return Ne.L}switch(e){case de.L:return Ne.L;default:return Ne.L}},Bn=(e,a,r)=>{if(e===de.M)return me.M;if(a)switch(a){case ve.M:return me.L_WITH_PREFIX;case ve.L:return r?me.L_FLOATING_LABEL:me.L;case ve.XL:return me.L;default:return me.L}switch(e){case de.L:return r?me.L_FLOATING_LABEL:me.L;default:return me.L}},zn=(e,a)=>{if(e===de.M)return"M";if(a)switch(a){case ve.M:return"M";case ve.L:return"L";case ve.XL:return"L";default:return"L"}return e},Dn=e=>On[e],qn=e=>Ve[e],Fn=(e,a,r,s)=>{const i=An(e,a),n=Pn(e,a),l=Bn(e,a,r);return{wrapperStyles:{minHeight:i,...s===We.FILL&&{height:"100%"},...s===We.FIXED&&a&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===de.M?Ve.M:Ve.L,transformOrigin:"left top",top:a===112&&r&&e===de.L?Ve.L:void 0},suffixStyles:{right:qn(e),top:a===48&&e===de.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:n,...s===We.FILL&&{flex:1,minHeight:0},...s===We.FIXED&&a&&{height:n}}}},Wn=b.forwardRef(({value:e="",onChange:a,placeholder:r,maxLength:s,minLength:i,autoFocus:n,size:l=de.L,textareaProps:d,error:c,disabled:f,loading:p,helper:g,suffix:x,clearable:h=!1,id:m,showLabel:L=!0,onFocus:v,onBlur:w,onClear:_,onKeyDown:C,className:k,rows:R=1,showLimit:$=!1,wrapperProps:T,labelProps:A,helperProps:P,showGrip:F,minHeight:H,resize:B,...S},M)=>{const D=(e||"").length>0,W=L&&!!r&&(l===de.M||H!==48),U=h&&D&&!(f||p),Q=()=>{a==null||a(""),_==null||_()},le=()=>{U&&Q()},ae=U?o.jsx(Gt,{size:Dn(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):x,ee=Fn(l,H,W&&D,B),te=zn(l,H),ge={rows:R,minLength:i,autoFocus:n,resize:B,...d};return o.jsx(Yt,{ref:M,component:"textarea",size:te,error:c,disabled:f||p,loading:p,onSuffixClick:le,helper:g,suffix:ae,id:m,showLabel:W,onFocus:v,onBlur:w,onKeyDown:C,onChange:a,value:e||"",placeholder:r,className:k,"data-floating-label":W,wrapperStyles:ee.wrapperStyles,floatingLabelStyles:ee.floatingLabelStyles,suffixStyles:ee.suffixStyles,textareaStyles:ee.textareaStyles,wrapperProps:T,labelProps:A,helperProps:P,showLimit:$&&(H===112||l===de.M),maxLength:s,inputProps:ge,resize:B,showGrip:F,...S})}),Hn="_helper_1jq7j_16",ot={helper:Hn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Vn=({title:e,error:a,className:r="",style:s,disabled:i=!1,"data-testid":n,"aria-label":l,"aria-describedby":d})=>{const c=!!a,f=E.clsx(ot.helper,c&&ot["helper--error"],i&&ot["helper--disabled"],r),p=i?e:a||e;return o.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":l,"aria-describedby":d,children:o.jsx("p",{children:p})})},Zn="_radio_1q34w_54",Un="_checked_1q34w_75",Gn="_error_1q34w_80",Xn="_disabled_1q34w_89",Yn="_icon_1q34w_125",Jn="_small_1q34w_133",Kn="_medium_1q34w_140",Qn="_large_1q34w_147",ei="_label_1q34w_154",ti="_container_1q34w_180",ri="_input_1q34w_193",ai="_card_1q34w_200",si="_smallCard_1q34w_206",oi="_mediumCard_1q34w_210",ni="_largeCard_1q34w_214",ce={radio:Zn,checked:Un,error:Gn,disabled:Xn,icon:Yn,small:Jn,medium:Kn,large:Qn,label:ei,container:ti,input:ri,card:ai,smallCard:si,mediumCard:oi,largeCard:ni},ii="radio-container-",li="radio-label",Jt=b.forwardRef((e,a)=>{const{name:r,id:s,value:i,size:n="large",loading:l=!1,error:d,disabled:c=!1,checked:f=!1,containerClassName:p,className:g,children:x,clickable:h="all",mode:m="default",tabIndex:L,style:v,containerStyle:w,onChange:_,"data-testid":C,...k}=e,R=!!d,$=c||l,T=h==="all",A=m==="card",P=ce[`${n}Card`],F=s??r,H=W=>{$||_==null||_(i,W)},B=W=>{W.key==="Enter"&&!$&&(W.preventDefault(),_==null||_(i))},S=W=>W.stopPropagation(),M=()=>o.jsxs("div",{className:E.clsx(ce.radio,ce[n],{[ce.checked]:f,[ce.disabled]:$,[ce.error]:R&&!$},g),style:v,tabIndex:L||1,"data-testid":`${ii}${F}`,children:[o.jsx("input",{"aria-errormessage":d,"aria-invalid":R,checked:f,className:ce.input,"data-testid":`radio-${F}`,disabled:$,id:F,name:r,ref:a,type:"radio",value:i,onChange:H,onClick:S}),o.jsx("svg",{"data-testid":`radio-icon-${F}`,viewBox:"0 0 8 8",className:ce.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),D=()=>o.jsxs("label",{"aria-checked":f,"aria-disabled":$,"data-testid":T?C:li,htmlFor:F,style:w,className:E.clsx(ce.label,{[E.clsx(ce.container,ce[m],p)]:T,[P]:T&&A}),onKeyDown:B,...k,children:[M(),T&&x]});return T?D():o.jsxs("div",{className:E.clsx(ce.container,ce[m],p,{[P]:A}),"data-testid":C,children:[D(),x]})}),ci="_group_o6mjt_7",di="_vertical_o6mjt_12",ui="_horizontal_o6mjt_16",Ot={group:ci,vertical:di,horizontal:ui},_i=b.forwardRef((e,a)=>{const{id:r,name:s,value:i,options:n,className:l,radioClassName:d,disabled:c=!1,layout:f="vertical","data-testid":p,...g}=e;return o.jsx("div",{className:we(Ot.group,Ot[f],l),"data-testid":p??`radio-group-${s}`,id:r,ref:a,children:n.map(({label:x,value:h,disabled:m})=>{const L=`${s}-${String(h)}`,v=String(h)===String(i);return o.jsx(Jt,{id:L,checked:v,"data-testid":L,disabled:c||m,name:s,value:h,className:d,...g,children:x},L)})})}),pi=Object.assign(Jt,{Group:_i}),fi="_root_1jj3e_25",bi="_unordered_1jj3e_39",gi="_ordered_1jj3e_43",hi="_sm_1jj3e_48",yi="_md_1jj3e_59",mi="_lg_1jj3e_70",xi="_xl_1jj3e_81",nt={root:fi,unordered:bi,ordered:gi,sm:hi,md:yi,lg:mi,xl:xi},vi=e=>{const{children:a,className:r,"data-testid":s="list-item"}=e;return o.jsx("li",{"data-testid":s,className:r,children:a})},wi=Object.assign(b.forwardRef((e,a)=>{const{variant:r="unordered",className:s,children:i,size:n="md","data-testid":l="list",...d}=e,c=r==="ordered"?"ol":"ul";return o.jsx(c,{"data-testid":l,ref:a,className:we(nt.root,nt[r],nt[n],s),...r==="ordered"&&d,children:i})}),{Item:vi}),Ci="_wrapper_1v8xn_5",Si="_viewport_1v8xn_12",Li="_mask_1v8xn_26",ki="_maskLeft_1v8xn_37",ji="_maskRight_1v8xn_42",$i="_visible_1v8xn_46",Ei="_control_1v8xn_51",Ri="_xs_1v8xn_70",Ti="_sm_1v8xn_73",Ni="_md_1v8xn_76",Ii="_left_1v8xn_80",Mi="_right_1v8xn_83",oe={wrapper:Ci,viewport:Si,mask:Li,maskLeft:ki,maskRight:ji,visible:$i,control:Ei,xs:Ri,sm:Ti,md:Ni,left:Ii,right:Mi},Oi="white",Ai=({children:e,withControls:a=!0,className:r,size:s})=>{const i=b.useRef(null),[n,l]=b.useState(!1),[d,c]=b.useState(!1),{ref:f,bgColor:p}=qt(),g=f??{current:null},x=p??Oi,h=a&&n,m=a&&d,L=({direction:_})=>o.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:o.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),v=()=>{const _=i.current;if(!_)return;const C=Math.round(_.scrollLeft),k=Math.round(_.scrollLeft+_.clientWidth),R=Math.round(_.scrollWidth);l(C>0),c(k<R)},w=_=>{const C=i.current;if(!C)return;const k=C.clientWidth;C.scrollBy({left:_==="left"?-k:k,behavior:"smooth"})};return b.useEffect(()=>{const _=i.current;if(!_)return;const C=k=>{Math.abs(k.deltaX)>Math.abs(k.deltaY)||_.scrollWidth>_.clientWidth&&(k.preventDefault(),_.scrollBy({left:k.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",C,{passive:!1}),()=>_.removeEventListener("wheel",C)},[]),b.useEffect(()=>{v();const _=i.current;if(_)return _.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{_.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[]),o.jsxs("div",{ref:g,className:E.clsx(oe.wrapper,r),children:[h&&o.jsx("div",{className:E.clsx(oe.mask,oe.maskLeft,n&&oe.visible),style:{background:`linear-gradient(to right, ${x} 17%, transparent 80%)`}}),m&&o.jsx("div",{className:E.clsx(oe.mask,oe.maskRight,d&&oe.visible),style:{background:`linear-gradient(to left, ${x} 17%, transparent 80%)`}}),o.jsx("div",{ref:i,className:oe.viewport,children:e}),h&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:E.clsx(oe.control,oe.left,oe[s]),onClick:()=>w("left"),children:o.jsx(L,{direction:"left"})}),m&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:E.clsx(oe.control,oe.right,oe[s]),onClick:()=>w("right"),children:o.jsx(L,{direction:"right"})})]})},Pi="_tabBar_1ndpm_82",Bi="_primary_1ndpm_88",zi="_secondary_1ndpm_93",Di="_tab_1ndpm_82",qi="_md_1ndpm_125",Fi="_sm_1ndpm_129",Wi="_xs_1ndpm_133",Hi="_disabled_1ndpm_137",Vi="_selected_1ndpm_143",Zi="_tabLabel_1ndpm_222",Ui="_tabPrefix_1ndpm_234",Gi="_tabPostfix_1ndpm_270",K={tabBar:Pi,primary:Bi,secondary:zi,tab:Di,md:qi,sm:Fi,xs:Wi,disabled:Hi,selected:Vi,tabLabel:Zi,tabPrefix:Ui,tabPostfix:Gi},Xi="md",Yi=!1,Ji=8,Ki="top-right-inside",Kt=b.createContext(null),Qt=()=>{const e=b.useContext(Kt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},Qi=({children:e,defaultActiveTab:a,activeTab:r,onChange:s})=>{const[i,n]=b.useState(a),l=r!==void 0,d=l?r:i,c=f=>{l||n(f),s&&s(f)};return o.jsx(Kt.Provider,{value:{activeTab:d,setTab:c},children:e})},el=({mode:e,item:a,isActive:r,showBadge:s,badgeProps:i,size:n,isDisabled:l,onSelectTab:d})=>{const{value:c,label:f,prefix:p,prefixWrapperProps:g={},postfix:x,postfixWrapperProps:h={}}=a,{className:m,...L}=g,{className:v,...w}=h,_={primary:ie["typography-label-3-medium"],secondary:ie["typography-label-3-regular"],prefix:ie["typography-label-3-medium"],postfix:ie["typography-label-3-medium"]},C={size:Ji,position:Ki,...i},k=E.clsx(K.tab,K[e],K[n],{[K.selected]:r,[K.disabled]:l}),R=E.clsx(K.tabPrefix,m,K[e],_.prefix,{[K.selected]:r,[K.disabled]:l}),$=E.clsx(K.tabPostfix,v,K[e],_.postfix,{[K.selected]:r,[K.disabled]:l}),T=E.clsx(K.tabLabel,K[e],_[e]),A=F=>{r||l||(d(c),F.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},P=o.jsxs("button",{className:k,role:"tab","aria-label":f,"aria-selected":r,"aria-disabled":l,"aria-controls":`tab-panel-${c}`,"data-testid":`tab-item-${c}`,onClick:A,children:[p&&o.jsx("span",{className:R,...L,"data-testid":`tab-prefix-${c}`,children:p}),o.jsx("span",{className:T,"data-testid":`tab-label-${c}`,children:f}),x&&o.jsx("span",{className:$,...w,"data-testid":`tab-postfix-${c}`,children:x})]});return s?o.jsx(Ft,{...C,"data-testid":`tab-badge-${c}`,children:P}):P},tl=({mode:e,items:a,size:r=Xi,isAllItemsDisabled:s=Yi})=>{const{activeTab:i,setTab:n}=Qt(),l=Ua();return o.jsx(Ai,{size:r,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:E.clsx(K.tabBar,K[e]),children:a.map(d=>o.jsx(el,{size:r,item:d,mode:e,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:s||d.isDisabled,onSelectTab:n},d.value))})})},rl=({tabValue:e,children:a,...r})=>o.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...r,children:a}),al=({children:e,...a})=>{const{activeTab:r}=Qt(),s=Array.isArray(e)?e:[e],i=(n,l)=>b.isValidElement(n)&&typeof n.props=="object"&&n.props!==null&&l in n.props;return o.jsx("div",{"data-testid":"tab-content",...a,children:s.map(n=>i(n,"tabValue")&&String(n.props.tabValue)===r?n:null)})},sl={Provider:Qi,Content:al,Panel:rl,Bar:tl},ol="_root_1fbbw_34",nl="_open_1fbbw_51",il="_xs_1fbbw_55",ll="_s_1fbbw_61",cl="_m_1fbbw_67",dl="_neutral_1fbbw_73",ul="_contrast_1fbbw_78",_l="_accent_1fbbw_84",pl="_typography_1fbbw_89",fl="_title_1fbbw_89",bl="_text_1fbbw_93",gl="_mediaWrapper_1fbbw_97",hl="_content_1fbbw_112",yl="_closeButton_1fbbw_116",ml="_hasMedia_1fbbw_142",xl="_buttonStack_1fbbw_148",ne={root:ol,open:nl,xs:il,s:ll,m:cl,neutral:dl,contrast:ul,accent:_l,typography:pl,title:fl,text:bl,mediaWrapper:gl,content:hl,closeButton:yl,hasMedia:ml,buttonStack:xl},vl=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),wl=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[o.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),o.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),_e={shiftX:64,adjustY:1},pe={adjustX:1,shiftY:!0},Cl={left:{points:["cr","cl"],overflow:pe,offset:[-22,0]},right:{points:["cl","cr"],overflow:pe,offset:[22,0]},top:{points:["bc","tc"],overflow:_e,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:_e,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-22,0]},topRight:{points:["br","tr"],overflow:_e,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:pe,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:pe,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:pe,offset:[-22,0]}},Sl={left:{points:["cr","cl"],overflow:pe,offset:[-16,0]},right:{points:["cl","cr"],overflow:pe,offset:[16,0]},top:{points:["bc","tc"],overflow:_e,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:_e,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-16,0]},topRight:{points:["br","tr"],overflow:_e,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:pe,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:pe,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:pe,offset:[-16,0]}},Ll={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},kl=(e,a,r)=>Math.min(Math.max(e,a),r),jl=(e,a,r)=>{const s=kl(a,1,3),i=Ll[r][s];return i[Math.min(e,i.length-1)]},At=({text:e,title:a,media:r,variant:s="neutral",size:i,classNames:n={},onClose:l,buttons:d,buttonProps:c,showClose:f})=>{const p=["neutral","accent"].includes(s)?"contrast":"primary",g=i==="m",x=!!(a&&g),h=!!(r&&g),m=d&&!!d.length,L=!!(f&&g)||!f&&g&&!m,v=i==="xs"?4:3;return o.jsxs("div",{className:ne.content,children:[h&&o.jsx("div",{className:E.clsx(ne.mediaWrapper,n.mediaWrapper),children:r}),o.jsxs("div",{className:n.textWrapper,children:[x&&o.jsx(it.Subtitle,{className:E.clsx(ne.typography,ne.title,n.typography),size:1,as:"h3",typographyStyle:p,children:a}),o.jsx(it.Label,{className:E.clsx(ne.typography,ne.text,n.typography),typographyStyle:p,size:v,children:e})]}),L&&o.jsx("button",{type:"button",className:E.clsx(ne.closeButton,ne[s],n.closeButton,{[ne.hasMedia]:h}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(vl,{})}),g&&m&&o.jsx("div",{className:ne.buttonStack,children:d.map((w,_)=>{const k={...jl(_,d.length,s),...c,...w},{closeOnClick:R,...$}=k,T=A=>{var P;(P=$.onClick)==null||P.call($,A),R&&(l==null||l())};return o.jsx(zt,{...$,onClick:T},_)})})]})},$l=({customContent:e,children:a,placement:r="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:n=.1,showArrow:l=!0,showClose:d=!0,trigger:c="hover",variant:f="neutral",size:p="s",text:g,title:x,media:h,buttons:m,buttonProps:L,onClose:v,...w})=>{const[_,C]=b.useState(!1),[k,R]=b.useState(!1),$=p==="m"?Cl:Sl,T=()=>{C(!1),v==null||v()},A=e||(p==="m"?o.jsx(At,{classNames:s,text:g,variant:f,size:p,onClose:T,title:x,media:h,showClose:d,buttons:m,buttonProps:L}):o.jsx(At,{classNames:s,text:g,variant:f,size:p,onClose:T}));return b.useEffect(()=>{if(_){const P=requestAnimationFrame(()=>R(!0));return()=>cancelAnimationFrame(P)}R(!1)},[_]),o.jsx(wr,{visible:_,onVisibleChange:C,classNames:{root:E.clsx(ne.root,ne[f],ne[p],k&&ne.open),...w.classNames},placement:r,overlay:()=>A,trigger:c,mouseEnterDelay:i,mouseLeaveDelay:n,motion:{motionName:"tooltipMotion"},builtinPlacements:$,showArrow:l?{content:o.jsx(wl,{}),className:`tooltipArrow tooltipArrow-${p}`}:!1,destroyTooltipOnHide:!0,...w,children:a})},El="_segmentedControl_1yvz7_5",Rl="_segment_1yvz7_5",Tl="_activeSegmentIndicator_1yvz7_51",Nl="_stretched_1yvz7_82",Il="_s_1yvz7_5",Ml="_icon_1yvz7_90",Ol="_label_1yvz7_94",Al="_m_1yvz7_98",Pl="_l_1yvz7_94",Ie={segmentedControl:El,segment:Rl,activeSegmentIndicator:Tl,stretched:Nl,s:Il,icon:Ml,label:Ol,m:Al,l:Pl},Pt={s:ie["typography-label-3-regular"],m:ie["typography-label-2-regular"],l:ie["typography-label-2-regular"]},Bl=e=>{var _;const{className:a,defaultValue:r,value:s,size:i="m",segments:n,stretched:l,mode:d="label",onChange:c}=e,f=b.useId(),[p,g]=b.useState(r||n[0].value),[x,h]=b.useState({width:0,left:0}),m=b.useRef(null);b.useEffect(()=>{s&&g(s)},[s]),b.useEffect(()=>{L()},[p,n,i,l,d]);const L=()=>{if(!(m!=null&&m.current))return;const C=m.current.querySelector('[data-is-active-segment="true"]');C&&h({width:C.offsetWidth,left:C.offsetLeft})},v=(_=n.find(C=>C.value===p))==null?void 0:_.label,w=C=>{g(C),c==null||c(C)};return(n==null?void 0:n.length)===0?null:o.jsxs("div",{className:E.clsx(Ie.segmentedControl,Ie[i],Ie[d],{[Ie.stretched]:l},a),"data-testid":"segmented-control-container",ref:m,children:[n==null?void 0:n.map(({label:C,value:k},R)=>{const $=()=>w(k);return o.jsxs(b.Fragment,{children:[o.jsx("input",{id:f+JSON.stringify(k),value:JSON.stringify(k),type:"radio",checked:p===k,onClick:$}),o.jsx("label",{"data-is-active-segment":p===k,className:E.clsx(Ie.segment,Pt[i]),htmlFor:f+JSON.stringify(k),"data-testid":"segmented-control-segment",children:C})]},Ze(JSON.stringify(k))+R)}),o.jsx("div",{className:E.clsx(Ie.activeSegmentIndicator,Pt[i]),"data-testid":"segmented-control-active-segment",style:{width:x.width,left:x.left},children:v})]})};exports.Avatar=Pa;exports.Badge=Ft;exports.Button=zt;exports.Checkbox=mo;exports.ConfigProvider=Ds;exports.Helper=Vn;exports.Image=ds;exports.List=wi;exports.Loader=Ht;exports.Radio=pi;exports.SegmentedControl=Bl;exports.Tabs=sl;exports.Tag=so;exports.TextArea=Wn;exports.TextInput=Mn;exports.Tooltip=$l;exports.Typography=it;exports.enUS=Vt;exports.ruRU=qs;exports.useConfig=Ut;exports.useLocale=us;